ss-component-new 1.1.621 → 1.1.623
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{index-B4fU_Oqr.js → index-B5t2-ZF6.js} +1 -1
- package/dist/{index-JuKGX07D.js → index-BCMeBOjv.js} +1 -1
- package/dist/{index-D5P_BYL7.cjs → index-BD6RuAif.cjs} +1 -1
- package/dist/{index-DE4qOxcb.cjs → index-BdEXRw33.cjs} +1 -1
- package/dist/{index-aptPIfv7.cjs → index-Bf6gYS22.cjs} +1 -1
- package/dist/{index-twApCU3A.js → index-BkdY6cw6.js} +1 -1
- package/dist/{index-CX298lYO.cjs → index-BoSad116.cjs} +1 -1
- package/dist/{index-BLUSTZzG.js → index-Br-w0WJD.js} +2 -2
- package/dist/{index-CEcr_wVS.js → index-BrKRAOn4.js} +2 -2
- package/dist/{index-CMgvFfxY.js → index-C9WrVGHF.js} +2 -2
- package/dist/{index-CW1zJWa7.cjs → index-CTmwu9TK.cjs} +1 -1
- package/dist/{index-CgHGkDUQ.js → index-ClfctUMo.js} +2 -2
- package/dist/{index-BdAqAS8j.cjs → index-Cn6GByoU.cjs} +1 -1
- package/dist/{index-DfQCPyug.js → index-CnWb9Gz8.js} +2 -2
- package/dist/{index-rBRZ7zGU.cjs → index-CzX-ygFB.cjs} +1 -1
- package/dist/{index-B6QTa9We.cjs → index-DJRurgY2.cjs} +1 -1
- package/dist/{index-OUcbra1H.cjs → index-DJSmgjQk.cjs} +1 -1
- package/dist/index-DN5pkkVv.cjs +1 -0
- package/dist/{index-BFWDxfM0.js → index-DOoBCwOE.js} +2 -2
- package/dist/{index-COcl6KL3.cjs → index-DWdWY1BZ.cjs} +1 -1
- package/dist/{index-By4IZGWU.cjs → index-DXCMSB90.cjs} +1 -1
- package/dist/{index-tyYdP21K.cjs → index-De1UH5m5.cjs} +1 -1
- package/dist/{index-YTvm8Dyq.cjs → index-Df_pm0Y-.cjs} +1 -1
- package/dist/{index-CMwn0ZEb.js → index-Df_wLpcP.js} +2 -2
- package/dist/{index-DUyXqunV.js → index-DqZD4y9T.js} +5 -5
- package/dist/{index-Cz_YKerb.js → index-J9CTbDdp.js} +10 -10
- package/dist/{index-D1eHyt-Y.js → index-NoRGArvy.js} +330 -328
- package/dist/{index-cwNAtWkQ.js → index-QkD67YhY.js} +3 -3
- package/dist/{index-DbxbzUiK.js → index-Qyw2gFZu.js} +1 -1
- package/dist/{index-BS0NY42k.js → index-S285mI0p.js} +1 -1
- package/dist/{index-Dmc9yBFD.cjs → index-Viq8WtM7.cjs} +13 -13
- package/dist/{index-DnY817qu.cjs → index-_kKZEgxm.cjs} +1 -1
- package/dist/{index-CPeCOE_d.js → index-koQady1K.js} +2128 -2010
- package/dist/{index-B6McL4Y5.cjs → index-meJ6fhCn.cjs} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-BH9_Te0S.js → index.vue_vue_type_script_setup_true_lang-BhbHPZ34.js} +22 -22
- package/dist/{index.vue_vue_type_script_setup_true_lang-at_JPyg5.cjs → index.vue_vue_type_script_setup_true_lang-DoqHilMG.cjs} +1 -1
- package/dist/index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BfNWM92-.cjs +1339 -0
- package/dist/index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-EGVEMSWV.js +62017 -0
- package/dist/{index.vue_vue_type_style_index_0_scoped_1ee6cc73_lang-DtoHG_C9.cjs → index.vue_vue_type_style_index_0_scoped_1ee6cc73_lang-DIgKXB3H.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_1ee6cc73_lang-CHdL2mdi.js → index.vue_vue_type_style_index_0_scoped_1ee6cc73_lang-DkeTpBJu.js} +7 -7
- package/dist/{index.vue_vue_type_style_index_0_scoped_57a7854d_lang-CZvlVQ3K.js → index.vue_vue_type_style_index_0_scoped_57a7854d_lang-D7pmcVtE.js} +4 -4
- package/dist/{index.vue_vue_type_style_index_0_scoped_57a7854d_lang-BmbIlTnn.cjs → index.vue_vue_type_style_index_0_scoped_57a7854d_lang-DG6bewEh.cjs} +1 -1
- package/dist/{main-DZAZF0E8.js → main-CJ_KB_5P.js} +2 -2
- package/dist/{main-MdhpVHXc.cjs → main-thQ5jkR7.cjs} +1 -1
- package/dist/obj/model.mtl +42 -0
- package/dist/obj/model.obj +26110 -0
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +2 -2
- package/dist/ss-component.js +7 -7
- package/dist/ss-component2.cjs +1 -1
- package/dist/ss-component2.js +8 -8
- package/dist/{threeModel-BRkJrghm.cjs → threeModel-CGGVqbwo.cjs} +1 -1
- package/dist/{threeModel-C2biL1qd.js → threeModel-CkKiopXp.js} +1 -1
- package/package.json +3 -1
- package/public/obj/model.mtl +42 -0
- package/public/obj/model.obj +26110 -0
- package/dist/index-Noso3rqY.cjs +0 -1
- package/dist/index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-Br0-XuvP.js +0 -52928
- package/dist/index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CZZJYhO9.cjs +0 -1286
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
"use strict";const u=require("vue"),Ws=require("./index-BpPyaNFa.cjs"),It=require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CZZJYhO9.cjs"),de=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),te=require("./menu-CcabvNj6.cjs"),th=require("./modelComp-B8kjqlTY.cjs"),ih=require("./index.vue_vue_type_script_setup_true_lang-at_JPyg5.cjs");var nh="[object Number]";function Fs(n){return typeof n=="number"||te.isObjectLike(n)&&te.baseGetTag(n)==nh}const qr={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0},activeText:{type:String,default:"是"},inactiveText:{type:String,default:"否"}},setup(n){const e=n,t=u.ref(e.value);return(i,s)=>{const o=u.resolveComponent("el-switch");return u.openBlock(),u.createBlock(o,{modelValue:t.value,"onUpdate:modelValue":s[0]||(s[0]=r=>t.value=r),"active-color":"#13ce66","inactive-color":"#ff4949","active-text":e==null?void 0:e.activeText,"inactive-text":e==null?void 0:e.inactiveText},null,8,["modelValue","active-text","inactive-text"])}}},Ur={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},setup(n){const e=n,t=u.ref(e.value);return(i,s)=>{const o=u.resolveComponent("el-input");return u.openBlock(),u.createBlock(o,{modelValue:t.value,"onUpdate:modelValue":s[0]||(s[0]=r=>t.value=r),disabled:!(e!=null&&e.isEdit),clearable:""},null,8,["modelValue","disabled"])}}},sh="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1751963315312'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='4705'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='16'%20height='16'%3e%3cpath%20d='M363.485867%20865.117867h305.5616c21.6576%200%2039.2192-17.194667%2039.2192-38.4s-17.5616-38.4-39.2192-38.4H363.485867c-21.6576%200-39.2192%2017.194667-39.2192%2038.4s17.5616%2038.4%2039.2192%2038.4z'%20fill='%23A6ADB4'%20p-id='4706'%3e%3c/path%3e%3cpath%20d='M945.288533%20699.835733a40.448%2040.448%200%200%200-43.195733%2043.1872v147.037867a46.865067%2046.865067%200%200%201-45.960533%2048.708267H166.766933a46.882133%2046.882133%200%200%201-45.038933-48.708267v-147.029333a40.439467%2040.439467%200%201%200-80.887467%200v147.029333a125.883733%20125.883733%200%200%200%20125.9264%20128.657067h693.0432c70.203733-1.006933%20126.4384-58.461867%20125.9264-128.657067v-147.029333a40.430933%2040.430933%200%200%200-40.448-43.195734zM40.840533%20127.735467v147.959466a39.517867%2039.517867%200%200%200%2079.044267%200V127.735467a45.943467%2045.943467%200%200%201%2046.882133-47.786667h693.0432a46.882133%2046.882133%200%200%201%2045.960534%2047.786667v147.959466a39.509333%2039.509333%200%200%200%2039.517866%2039.509334%2040.448%2040.448%200%200%200%2040.448-39.509334V127.735467C986.248533%2058.052267%20930.423467%201.024%20860.7232%200H166.775467A125.934933%20125.934933%200%200%200%2040.840533%20127.744z%20m168.4992%20427.972266H326.229333L357.316267%20640H418.133333L295.150933%20315.733333h-52.701866L119.466667%20640h60.817066l29.056-84.292267zM269.124267%20392.533333L307.2%20503.466667h-76.8l38.724267-110.933334z%20m231.552%20131.959467h32.631466a123.246933%20123.246933%200%200%200%2088.192-28.535467c23.389867-19.959467%2036.394667-49.134933%2035.413334-79.488%201.6384-28.245333-9.838933-55.722667-31.249067-74.743466a127.573333%20127.573333%200%200%200-84.0192-25.813334H443.733333V640h56.942934V524.4928zM503.466667%20366.933333h32.136533c42.180267%200%2061.602133%2017.493333%2061.602133%2053.162667%201.092267%2016.0256-4.8128%2031.701333-16.068266%2042.666667a71.364267%2071.364267%200%200%201-51.5584%2014.677333H503.466667V366.933333z%20m286.293333-51.0976H691.2V640h57.3184V524.4672h32.853333c31.837867%201.928533%2063.189333-8.311467%2087.381334-28.544%2023.543467-19.959467%2036.625067-49.152%2035.643733-79.505067%201.536-28.100267-9.710933-55.441067-30.754133-74.752a131.84%20131.84%200%200%200-83.882667-25.8304z%20m39.4752%20147.131734a73.813333%2073.813333%200%200%201-49.527467%2014.72H750.933333V366.933333h32.119467c42.1632%200%2061.576533%2017.527467%2061.576533%2053.2736%201.262933%2015.957333-4.394667%2031.650133-15.394133%2042.752z'%20fill='%23A6ADB4'%20p-id='4707'%3e%3c/path%3e%3c/svg%3e",oh=Object.freeze(Object.defineProperty({__proto__:null,default:sh},Symbol.toStringTag,{value:"Module"})),rh="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1750407294483'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='13930'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M925.866667%20797.866667c-12.8-25.6-34.133333-46.933333-64-64-29.866667-21.333333-68.266667-34.133333-119.466667-42.666667-4.266667%200-29.866667-4.266667-59.733333-12.8-21.333333-4.266667-34.133333-8.533333-38.4-12.8v-17.066667c4.266667-51.2%2029.866667-76.8%2055.466666-106.666666%208.533333-8.533333%2017.066667-21.333333%2025.6-29.866667%2029.866667-42.666667%2034.133333-89.6%2034.133334-98.133333%200-8.533333%200-17.066667-4.266667-21.333334-4.266667-8.533333-8.533333-12.8-12.8-21.333333%200-12.8%204.266667-21.333333%204.266667-29.866667%200-21.333333%204.266667-55.466667-4.266667-89.6%200-8.533333-4.266667-12.8-4.266667-21.333333-8.533333-25.6-17.066667-46.933333-34.133333-68.266667-4.266667-12.8-64-72.533333-234.666667-85.333333H401.066667c-4.266667%200-17.066667%200-25.6%204.266667-21.333333%204.266667-38.4%2021.333333-42.666667%2042.666666v21.333334c-8.533333%208.533333-55.466667%2051.2-55.466667%20102.4-4.266667%2034.133333-4.266667%2085.333333%200%20123.733333-8.533333%208.533333-17.066667%2021.333333-12.8%2042.666667%200%2012.8%204.266667%2055.466667%2034.133334%2098.133333%208.533333%208.533333%2017.066667%2017.066667%2025.6%2029.866667%2025.6%2029.866667%2051.2%2055.466667%2055.466666%20106.666666v17.066667c-4.266667%204.266667-17.066667%208.533333-38.4%2012.8-29.866667%208.533333-59.733333%2012.8-64%2012.8-46.933333%208.533333-85.333333%2021.333333-115.2%2042.666667-25.6%2017.066667-46.933333%2038.4-64%2064-25.6%2038.4-25.6%2076.8-25.6%2085.333333v21.333333c0%2025.6%2021.333333%2046.933333%2046.933334%2046.933334H896c25.6%200%2046.933333-21.333333%2046.933333-46.933334v-17.066666c8.533333-12.8%208.533333-51.2-17.066666-89.6z%20m-546.133334-128c0%204.266667%200%204.266667%200%200v4.266666c-4.266667%200-4.266667%200%200-4.266666z%20m503.466667%20213.333333l-742.4%204.266667v-4.266667s0-25.6%2012.8-51.2c8.533333-17.066667%2025.6-29.866667%2042.666667-42.666667%2025.6-17.066667%2055.466667-25.6%2089.6-34.133333%204.266667%200%2034.133333-4.266667%2068.266666-12.8%2051.2-12.8%2076.8-29.866667%2085.333334-46.933333%200-4.266667%200-4.266667%204.266666-8.533334v-42.666666c-8.533333-72.533333-42.666667-115.2-72.533333-145.066667-8.533333-8.533333-12.8-17.066667-21.333333-21.333333-21.333333-29.866667-21.333333-59.733333-21.333334-64l4.266667-4.266667%208.533333-8.533333c4.266667-17.066667%200-25.6%200-29.866667-4.266667-34.133333-4.266667-81.066667%200-119.466667%200-29.866667%2029.866667-55.466667%2029.866667-55.466666%208.533333-4.266667%2017.066667-12.8%2021.333333-21.333334%200-4.266667%204.266667-4.266667%204.266667-8.533333v-25.6H465.066667c140.8%208.533333%20192%2059.733333%20192%2059.733333%208.533333%2012.8%2017.066667%2025.6%2021.333333%2042.666667%204.266667%204.266667%204.266667%208.533333%204.266667%2012.8%204.266667%2029.866667%204.266667%2055.466667%204.266666%2076.8%200%2012.8%200%2021.333333-4.266666%2038.4%200%2012.8%200%2025.6%208.533333%2029.866667l4.266667%204.266666%204.266666%204.266667s0%2034.133333-21.333333%2064c-4.266667%208.533333-12.8%2012.8-21.333333%2021.333333-29.866667%2029.866667-64%2072.533333-72.533334%20145.066667v42.666667c0%204.266667%200%204.266667%204.266667%208.533333%208.533333%2021.333333%2034.133333%2034.133333%2085.333333%2046.933333%2034.133333%208.533333%2064%2012.8%2068.266667%2012.8%2038.4%208.533333%2068.266667%2017.066667%2093.866667%2034.133334%2017.066667%2012.8%2034.133333%2025.6%2042.666666%2042.666666%208.533333%2025.6%208.533333%2051.2%204.266667%2055.466667z'%20p-id='13931'%3e%3c/path%3e%3c/svg%3e",lh=Object.freeze(Object.defineProperty({__proto__:null,default:rh},Symbol.toStringTag,{value:"Module"})),ah="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1750642267995'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='15790'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M926.3%20337.9c-22.6-53.3-54.8-101.2-96-142.3-41.1-41.1-89-73.4-142.3-96-55.2-23.4-113.9-35.2-174.3-35.2S394.6%2076.2%20339.3%2099.6c-53.3%2022.6-101.2%2054.8-142.3%2096-41.1%2041.1-73.4%2089-96%20142.3-23.4%2055.2-35.2%20113.9-35.2%20174.3%200%2060.4%2011.8%20119.1%2035.2%20174.3%2022.6%2053.3%2054.8%20101.2%2096%20142.3%2041.1%2041.1%2089%2073.4%20142.3%2096%2055.2%2023.4%20113.9%2035.2%20174.3%2035.2s119.1-11.8%20174.3-35.2c53.3-22.6%20101.2-54.8%20142.3-96%2041.1-41.1%2073.4-89%2096-142.3%2023.4-55.2%2035.2-113.9%2035.2-174.3%200.1-60.4-11.8-119.1-35.1-174.3zM513.7%20879.1c-202.3%200-366.9-164.6-366.9-366.9s164.6-366.9%20366.9-366.9c202.3%200%20366.9%20164.6%20366.9%20366.9S716%20879.1%20513.7%20879.1z'%20p-id='15791'%3e%3c/path%3e%3cpath%20d='M697.9%20329.1c-15.6-15.6-41-15.6-56.6%200L513%20457.4%20384.7%20329.1c-15.6-15.6-41-15.6-56.6%200-15.6%2015.6-15.6%2041%200%2056.6L456.4%20514%20328.1%20642.3c-15.6%2015.6-15.6%2041%200%2056.6%2015.6%2015.6%2041%2015.6%2056.6%200L513%20570.6l128.3%20128.3c15.6%2015.6%2041%2015.6%2056.6%200%2015.6-15.6%2015.6-41%200-56.6L569.6%20514l128.3-128.3c15.6-15.6%2015.6-41.1%200-56.6z'%20p-id='15792'%3e%3c/path%3e%3c/svg%3e",ch=Object.freeze(Object.defineProperty({__proto__:null,default:ah},Symbol.toStringTag,{value:"Module"})),hh="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1750816526374'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='9498'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M926.3%20337.9c-22.6-53.3-54.8-101.2-96-142.3-41.1-41.1-89-73.4-142.3-96-55.2-23.4-113.9-35.2-174.3-35.2S394.6%2076.2%20339.3%2099.6c-53.3%2022.6-101.2%2054.8-142.3%2096-41.1%2041.1-73.4%2089-96%20142.3-23.4%2055.2-35.2%20113.9-35.2%20174.3%200%2060.4%2011.8%20119.1%2035.2%20174.3%2022.6%2053.3%2054.8%20101.2%2096%20142.3%2041.1%2041.1%2089%2073.4%20142.3%2096%2055.2%2023.4%20113.9%2035.2%20174.3%2035.2s119.1-11.8%20174.3-35.2c53.3-22.6%20101.2-54.8%20142.3-96%2041.1-41.1%2073.4-89%2096-142.3%2023.4-55.2%2035.2-113.9%2035.2-174.3%200.1-60.4-11.8-119.1-35.1-174.3zM513.7%20879.1c-202.3%200-366.9-164.6-366.9-366.9s164.6-366.9%20366.9-366.9c202.3%200%20366.9%20164.6%20366.9%20366.9S716%20879.1%20513.7%20879.1z'%20p-id='9499'%3e%3c/path%3e%3cpath%20d='M695.7%20469.2h-139v-139c0-23.6-19.3-43-43-43-23.6%200-43%2019.3-43%2043v139h-139c-23.6%200-43%2019.3-43%2043s19.3%2043%2043%2043h139v139c0%2023.7%2019.3%2043%2043%2043%2023.6%200%2043-19.3%2043-43v-139h139c23.6%200%2043-19.3%2043-43s-19.4-43-43-43z'%20p-id='9500'%3e%3c/path%3e%3c/svg%3e",uh=Object.freeze(Object.defineProperty({__proto__:null,default:hh},Symbol.toStringTag,{value:"Module"})),fh="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1750816329545'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='9351'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M926.3%20337.9c-22.6-53.3-54.8-101.2-96-142.3-41.1-41.1-89-73.4-142.3-96-55.2-23.4-113.9-35.2-174.3-35.2S394.6%2076.2%20339.3%2099.6c-53.3%2022.6-101.2%2054.8-142.3%2096-41.1%2041.1-73.4%2089-96%20142.3-23.4%2055.2-35.2%20113.9-35.2%20174.3%200%2060.4%2011.8%20119.1%2035.2%20174.3%2022.6%2053.3%2054.8%20101.2%2096%20142.3%2041.1%2041.1%2089%2073.4%20142.3%2096%2055.2%2023.4%20113.9%2035.2%20174.3%2035.2s119.1-11.8%20174.3-35.2c53.3-22.6%20101.2-54.8%20142.3-96%2041.1-41.1%2073.4-89%2096-142.3%2023.4-55.2%2035.2-113.9%2035.2-174.3%200.1-60.4-11.8-119.1-35.1-174.3zM513.7%20879.1c-202.3%200-366.9-164.6-366.9-366.9s164.6-366.9%20366.9-366.9c202.3%200%20366.9%20164.6%20366.9%20366.9S716%20879.1%20513.7%20879.1z'%20p-id='9352'%3e%3c/path%3e%3cpath%20d='M697.9%20329.1c-15.6-15.6-41-15.6-56.6%200L513%20457.4%20384.7%20329.1c-15.6-15.6-41-15.6-56.6%200-15.6%2015.6-15.6%2041%200%2056.6L456.4%20514%20328.1%20642.3c-15.6%2015.6-15.6%2041%200%2056.6%2015.6%2015.6%2041%2015.6%2056.6%200L513%20570.6l128.3%20128.3c15.6%2015.6%2041%2015.6%2056.6%200%2015.6-15.6%2015.6-41%200-56.6L569.6%20514l128.3-128.3c15.6-15.6%2015.6-41.1%200-56.6z'%20p-id='9353'%3e%3c/path%3e%3c/svg%3e",dh=Object.freeze(Object.defineProperty({__proto__:null,default:fh},Symbol.toStringTag,{value:"Module"})),ph="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1750815766948'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='9204'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M923.9%20335.8c-22.6-53.3-54.8-101.2-96-142.3-41.1-41.1-89-73.4-142.3-96-55.2-23.4-113.8-35.2-174.3-35.2S392.2%2074.1%20337%2097.5c-53.3%2022.6-101.2%2054.8-142.3%2096-41.1%2041.1-73.4%2089-96%20142.3C75.3%20391%2063.5%20449.7%2063.5%20510.1c0%2060.4%2011.8%20119.1%2035.2%20174.3%2022.6%2053.3%2054.8%20101.2%2096%20142.3%2041.1%2041.1%2089%2073.4%20142.3%2096%2055.2%2023.4%20113.9%2035.2%20174.3%2035.2s119.1-11.8%20174.3-35.2c35.9-15.2%2069.3-34.8%2099.8-58.5l-0.1-0.1c9.1-7.4%2014.8-18.6%2014.8-31.2%200-22.3-18-40.3-40.3-40.3-9.2%200-17.7%203.1-24.5%208.3l-0.2-0.3c-62%2047.9-139.7%2076.4-223.9%2076.4-202.3%200-366.9-164.6-366.9-366.9s164.7-366.9%20367-366.9%20366.9%20164.6%20366.9%20366.9c0%2066.2-17.6%20128.3-48.4%20182l0.4%200.2c-4.4%206.5-7%2014.2-7%2022.6%200%2022.3%2018%2040.3%2040.3%2040.3%2016%200%2029.8-9.3%2036.3-22.8l0.2%200.1c8.9-15.5%2016.8-31.5%2023.8-48.1%2023.4-55.2%2035.2-113.9%2035.2-174.3%200.1-60.4-11.7-119.1-35.1-174.3z'%20p-id='9205'%3e%3c/path%3e%3cpath%20d='M693.7%20626.5H507.6l-57.1%2066.1h243.2zM663.2%20411.4c7.5-7.6%207.5-23.5%200-31.3l-45.4-46.8c-7.7-7.6-22.9-7.6-30.4%200l-45.7%2046.8%2076.1%2078.1%2045.4-46.8zM328.8%20614.5v78.1h76.1l197.5-218.7-76-77.9z'%20p-id='9206'%3e%3c/path%3e%3c/svg%3e",gh=Object.freeze(Object.defineProperty({__proto__:null,default:ph},Symbol.toStringTag,{value:"Module"})),mh="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1750815629946'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='9058'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M78.768011%20168.230165c0-30.999918%2024.230644-56.076722%2054.15419-56.076722L403.692131%20112.153443%20403.692131%2056.076722c0-30.999918%2024.230644-56.076722%2054.15419-56.076722l108.306335%200c29.923546%200%2054.155214%2025.076803%2054.155214%2056.076722l0%2056.077745%20270.768906%200c29.923546%200%2054.15419%2025.076803%2054.15419%2056.076722l0%2056.076722L78.768011%20224.307909%2078.768011%20168.230165zM891.076776%20336.461352l0%20112.153443%200%20519.30746c0%2030.923181-24.231667%2056.077745-54.153167%2056.077745L187.076392%201024c-29.923546%200-54.15419-25.154564-54.15419-56.077745L132.922201%20448.614796%20132.922201%20336.461352l0-56.077745%20758.154574%200L891.076776%20336.461352zM349.53794%20448.614796c0-30.923181-24.230644-56.076722-54.15419-56.076722-29.922523%200-54.153167%2025.153541-54.153167%2056.076722l0%20407.154017c0%2030.923181%2024.230644%2056.077745%2054.153167%2056.077745%2029.923546%200%2054.15419-25.154564%2054.15419-56.077745L349.53794%20448.614796zM566.153679%20448.614796c0-30.923181-24.230644-56.076722-54.15419-56.076722-29.922523%200-54.153167%2025.153541-54.153167%2056.076722l0%20407.154017c0%2030.923181%2024.230644%2056.077745%2054.153167%2056.077745%2029.923546%200%2054.15419-25.154564%2054.15419-56.077745L566.153679%20448.614796zM782.770441%20448.614796c0-30.923181-24.231667-56.076722-54.155214-56.076722s-54.15419%2025.153541-54.15419%2056.076722l0%20407.154017c0%2030.923181%2024.230644%2056.077745%2054.15419%2056.077745s54.155214-25.154564%2054.155214-56.077745L782.770441%20448.614796z'%20p-id='9059'%3e%3c/path%3e%3c/svg%3e",vh=Object.freeze(Object.defineProperty({__proto__:null,default:mh},Symbol.toStringTag,{value:"Module"})),wh="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1753424743198'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='51312'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M672.768%2062.890667l147.797333%2085.333333-34.048%2095.146667a384.725333%20384.725333%200%200%201%2058.026667%2076.629333c16.469333%2028.501333%2028.842667%2058.24%2037.376%2088.533333L981.333333%20426.666667v170.666666l-99.541333%2018.133334a383.573333%20383.573333%200%200%201-95.274667%20165.162666l34.048%2095.146667-147.797333%2085.333333-65.408-77.056a383.573333%20383.573333%200%200%201-190.677333-0.085333l-65.450667%2077.141333-147.797333-85.333333%2034.048-95.146667a384.725333%20384.725333%200%200%201-58.026667-76.629333%20384.725333%20384.725333%200%200%201-37.376-88.576L42.666667%20597.333333v-170.666666l99.541333-18.133334a383.573333%20383.573333%200%200%201%2095.274667-165.162666l-34.048-95.146667%20147.797333-85.333333L416.64%20139.946667a383.573333%20383.573333%200%200%201%20190.677333%200.085333l65.450667-77.141333zM405.333333%20327.253333a213.333333%20213.333333%200%201%200%20213.333334%20369.493334%20213.333333%20213.333333%200%200%200-213.333334-369.493334zM512%20384a128%20128%200%201%201%200%20256%20128%20128%200%200%201%200-256z'%20p-id='51313'%3e%3c/path%3e%3c/svg%3e",xh=Object.freeze(Object.defineProperty({__proto__:null,default:wh},Symbol.toStringTag,{value:"Module"})),bh="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1750815488055'%20class='icon'%20viewBox='0%200%201025%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='8912'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200.1953125'%20height='200'%3e%3cpath%20d='M127.110228%20701.648461q0%2026.438928%2018.812314%2045.251241t46.268123%2018.812314l253.203575%200%200%20128.12711-318.284012%200q-26.438928%200-49.82721-9.660377t-40.675273-26.947368-26.947368-40.675273-9.660377-50.844091l0-637.584906q0-26.438928%209.660377-49.82721t26.947368-40.675273%2040.675273-27.455809%2049.82721-10.168818l766.728898%200q26.438928%200%2049.82721%2010.168818t40.675273%2027.455809%2027.455809%2040.675273%2010.168818%2049.82721l0%20187.106256-128.12711%201.016882q-2.033764-25.422046-19.829196-43.217478t-44.234359-17.795432l-637.584906%200q-27.455809%200-46.268123%2018.812314t-18.812314%2045.251241l0%20382.347567zM1016.881827%20501.322741q6.101291%209.151936%207.626614%2023.388282t-10.677259%2028.472691q-11.1857%2014.236346-18.303873%2021.354518l-8.135055%208.135055-105.75571-95.586892q5.084409-6.101291%2014.236346-14.744786t14.236346-13.727905q14.236346-14.236346%2030.506455-12.711023t27.455809%206.609732q12.202582%205.084409%2026.438928%2018.812314t22.3714%2029.998014zM613.179742%20789.100298q3.050645-3.050645%2014.236346-16.270109t27.96425-32.540218%2037.116187-42.200596%2040.675273-46.268123q48.810328-54.911619%20108.806356-122.025819l107.789474%2095.586892q-59.996028%2068.131082-108.806356%20123.042701-20.337637%2023.388282-40.675273%2046.268123t-37.116187%2041.183714-27.455809%2029.998014-12.711023%2013.727905q-9.151936%2012.202582-25.422046%2020.337637-7.118173%205.084409-21.354518%2011.1857t-29.998014%2012.202582-29.489573%2010.677259-20.846077%205.59285q-26.438928%205.084409-23.388282-22.3714%201.016882-7.118173%204.067527-21.862959t6.609732-30.506455%207.118173-28.981132%205.59285-18.303873q5.084409-13.219464%2017.286991-28.472691z'%20p-id='8913'%3e%3c/path%3e%3c/svg%3e",yh=Object.freeze(Object.defineProperty({__proto__:null,default:bh},Symbol.toStringTag,{value:"Module"})),kh="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1753088395767'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='23263'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M508%20512m-112%200a112%20112%200%201%200%20224%200%20112%20112%200%201%200-224%200Z'%20p-id='23264'%3e%3c/path%3e%3cpath%20d='M942.2%20486.2C847.4%20286.5%20704.1%20186%20512%20186c-192.2%200-335.4%20100.5-430.2%20300.3-7.7%2016.2-7.7%2035.2%200%2051.5C176.6%20737.5%20319.9%20838%20512%20838c192.2%200%20335.4-100.5%20430.2-300.3%207.7-16.2%207.7-35%200-51.5zM508%20688c-97.2%200-176-78.8-176-176s78.8-176%20176-176%20176%2078.8%20176%20176-78.8%20176-176%20176z'%20p-id='23265'%3e%3c/path%3e%3c/svg%3e",Sh=Object.freeze(Object.defineProperty({__proto__:null,default:kh},Symbol.toStringTag,{value:"Module"})),Ch="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1750407346075'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='14076'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M122.368%20165.888h778.24c-9.216%200-16.384-7.168-16.384-16.384v713.728c0-9.216%207.168-16.384%2016.384-16.384h-778.24c9.216%200%2016.384%207.168%2016.384%2016.384V150.016c0%208.192-6.656%2015.872-16.384%2015.872z%20m-32.768%20684.544c0%2026.112%2020.992%2047.104%2047.104%2047.104h750.08c26.112%200%2047.104-20.992%2047.104-47.104V162.304c0-26.112-20.992-47.104-47.104-47.104H136.704c-26.112%200-47.104%2020.992-47.104%2047.104v688.128z'%20p-id='14077'%3e%3c/path%3e%3cpath%20d='M510.464%20639.488l207.872-254.976H302.08z'%20p-id='14078'%3e%3c/path%3e%3c/svg%3e",_h=Object.freeze(Object.defineProperty({__proto__:null,default:Ch},Symbol.toStringTag,{value:"Module"})),Oh="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1750407433101'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='14223'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M122.88%20165.888h778.24c-9.216%200-16.384-7.168-16.384-16.384v713.728c0-9.216%207.168-16.384%2016.384-16.384H122.88c9.216%200%2016.384%207.168%2016.384%2016.384V150.016c0%208.192-6.656%2015.872-16.384%2015.872z%20m-32.768%20684.544c0%2026.112%2020.992%2047.104%2047.104%2047.104h750.08c26.112%200%2047.104-20.992%2047.104-47.104V162.304c0-26.112-20.992-47.104-47.104-47.104H137.216c-26.112%200-47.104%2020.992-47.104%2047.104v688.128z'%20p-id='14224'%3e%3c/path%3e%3cpath%20d='M244.224%20279.04h142.848v49.152H244.224zM244.224%20425.472h142.848v49.152H244.224zM436.736%20279.04h342.528v49.152H436.736zM436.736%20425.472h342.528v49.152H436.736zM244.224%20572.416h142.848v49.152H244.224zM436.736%20572.416h342.528v172.544H436.736z'%20p-id='14225'%3e%3c/path%3e%3c/svg%3e",Mh=Object.freeze(Object.defineProperty({__proto__:null,default:Oh},Symbol.toStringTag,{value:"Module"})),Dh="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1751708264977'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='5492'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='16'%20height='16'%3e%3cpath%20d='M512%2064C264.6%2064%2064%20264.6%2064%20512s200.6%20448%20448%20448%20448-200.6%20448-448S759.4%2064%20512%2064z%20m104%20316.9c0%2010.2-4.9%2019.9-13.2%2025.9L457.4%20512l145.4%20105.2c8.3%206%2013.2%2015.6%2013.2%2025.9V690c0%206.5-7.4%2010.3-12.7%206.5l-246-178c-4.4-3.2-4.4-9.7%200-12.9l246-178c5.3-3.8%2012.7-0.1%2012.7%206.5v46.8z'%20p-id='5493'%20fill='%2372B02D'%3e%3c/path%3e%3c/svg%3e",Th=Object.freeze(Object.defineProperty({__proto__:null,default:Dh},Symbol.toStringTag,{value:"Module"})),Ah="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1750411679824'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='35651'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M474%20152m8%200l60%200q8%200%208%208l0%20704q0%208-8%208l-60%200q-8%200-8-8l0-704q0-8%208-8Z'%20p-id='35652'%3e%3c/path%3e%3cpath%20d='M168%20474m8%200l672%200q8%200%208%208l0%2060q0%208-8%208l-672%200q-8%200-8-8l0-60q0-8%208-8Z'%20p-id='35653'%3e%3c/path%3e%3c/svg%3e",Bh=Object.freeze(Object.defineProperty({__proto__:null,default:Ah},Symbol.toStringTag,{value:"Module"})),Ph="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1751708287937'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='5743'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='16'%20height='16'%3e%3cpath%20d='M512%2064C264.6%2064%2064%20264.6%2064%20512s200.6%20448%20448%20448%20448-200.6%20448-448S759.4%2064%20512%2064z%20m154.7%20454.5l-246%20178c-5.3%203.8-12.7%200-12.7-6.5v-46.9c0-10.2%204.9-19.9%2013.2-25.9L566.6%20512%20421.2%20406.8c-8.3-6-13.2-15.6-13.2-25.9V334c0-6.5%207.4-10.3%2012.7-6.5l246%20178c4.4%203.2%204.4%209.8%200%2013z'%20p-id='5744'%20fill='%2372B02D'%3e%3c/path%3e%3c/svg%3e",Eh=Object.freeze(Object.defineProperty({__proto__:null,default:Ph},Symbol.toStringTag,{value:"Module"})),Vh="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1750643434994'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='16376'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M926.3%20337.9c-22.6-53.3-54.8-101.2-96-142.3-41.1-41.1-89-73.4-142.3-96-55.2-23.4-113.9-35.2-174.3-35.2S394.6%2076.2%20339.3%2099.6c-53.3%2022.6-101.2%2054.8-142.3%2096-41.1%2041.1-73.4%2089-96%20142.3-23.4%2055.2-35.2%20113.9-35.2%20174.3%200%2060.4%2011.8%20119.1%2035.2%20174.3%2022.6%2053.3%2054.8%20101.2%2096%20142.3%2041.1%2041.1%2089%2073.4%20142.3%2096%2055.2%2023.4%20113.9%2035.2%20174.3%2035.2s119.1-11.8%20174.3-35.2c53.3-22.6%20101.2-54.8%20142.3-96%2041.1-41.1%2073.4-89%2096-142.3%2023.4-55.2%2035.2-113.9%2035.2-174.3%200.1-60.4-11.8-119.1-35.1-174.3zM513.7%20879.1c-202.3%200-366.9-164.6-366.9-366.9s164.6-366.9%20366.9-366.9c202.3%200%20366.9%20164.6%20366.9%20366.9S716%20879.1%20513.7%20879.1z'%20p-id='16377'%3e%3c/path%3e%3cpath%20d='M715.6%20371.6c-15.7-15.7-41.4-15.7-57%200l-196%20196-95.9-95.9c-15.7-15.7-41.4-15.7-57%200-15.7%2015.7-15.7%2041.4%200%2057l124.5%20124.5c15.7%2015.7%2041.4%2015.7%2057%200l224.5-224.5c15.6-15.7%2015.6-41.4-0.1-57.1z'%20p-id='16378'%3e%3c/path%3e%3c/svg%3e",zh=Object.freeze(Object.defineProperty({__proto__:null,default:Vh},Symbol.toStringTag,{value:"Module"})),Lh="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1750406704613'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='13783'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M122.368%20165.888h778.24c-9.216%200-16.384-7.168-16.384-16.384v713.728c0-9.216%207.168-16.384%2016.384-16.384h-778.24c9.216%200%2016.384%207.168%2016.384%2016.384V150.016c0%208.192-6.656%2015.872-16.384%2015.872z%20m-32.768%20684.544c0%2026.112%2020.992%2047.104%2047.104%2047.104h750.08c26.112%200%2047.104-20.992%2047.104-47.104V162.304c0-26.112-20.992-47.104-47.104-47.104H136.704c-26.112%200-47.104%2020.992-47.104%2047.104v688.128z'%20p-id='13784'%3e%3c/path%3e%3cpath%20d='M573.44%20646.656l-3.072%206.144c-8.192%2012.288-14.336%2025.088-19.456%2038.912-6.656%2018.944-3.072%2036.352%2016.896%2043.008%2034.816%2011.264%2072.704%209.216%20106.496-4.608%209.216-3.072%2011.264-4.096%2034.304-12.8%2016.384-6.656%2033.792-12.8%2051.2-17.408%201.024%200%202.048-0.512%203.072-1.024%2010.24-2.048%206.656-5.632%2016.896%201.024%203.584%203.072%208.704%204.096%2013.312%203.072%204.608-1.024%205.632-3.072%208.192-7.68%205.632-8.192%203.584-19.456-4.608-25.088-18.944-12.8-22.528-10.24-41.472-6.144-1.536%200.512-3.072%200.512-4.096%201.024-18.944%205.12-37.376%2011.264-55.808%2018.432-22.016%208.704-24.064%209.728-32.768%2012.288-24.576%2010.24-52.224%2012.8-78.336%206.144%204.608-11.264%2010.24-22.016%2016.896-32.256%201.536-2.048%202.56-4.096%203.584-6.144%208.704-13.824%2015.36-29.184%2018.432-45.056%204.096-19.456-7.68-38.4-27.136-42.496-0.512%200-1.536-0.512-2.048-0.512-27.648-6.656-59.392%203.072-148.992%2037.888-81.92%2032.256-117.76%2041.984-129.024%2035.84-4.096-2.56-8.704-3.072-13.312-1.536-9.728%202.56-15.36%2012.8-12.8%2022.016%201.024%204.608%204.096%208.192%208.192%2010.752%2023.04%208.704%2048.64%207.68%2071.168-2.048%2029.696-9.216%2059.392-19.456%2088.064-32.256%2077.824-30.72%20111.104-40.448%20126.976-36.352%203.072%201.024%203.072%200%202.56%203.072-2.56%2012.288-7.168%2023.552-13.312%2033.792zM665.088%20235.52c-19.456-17.92-49.664-17.408-68.608%201.024L312.32%20519.68c-2.048%202.048-3.584%204.608-4.608%207.68l-22.528%2080.896c-2.56%209.728%203.072%2019.456%2012.8%2021.504%203.584%201.024%207.68%200.512%2011.264-0.512l71.168-29.696c5.632-2.56%2010.752-5.632%2015.36-10.24l283.648-269.824%202.56-2.56c18.432-19.456%2017.92-50.176-2.048-68.608l-1.024-1.024-13.824-11.776z'%20p-id='13785'%3e%3c/path%3e%3c/svg%3e",Nh=Object.freeze(Object.defineProperty({__proto__:null,default:Lh},Symbol.toStringTag,{value:"Module"})),Rh="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1750642902470'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='16229'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M0%200h1024v1024H0z'%20fill='%23FFFFFF'%20fill-opacity='0'%20p-id='16230'%3e%3c/path%3e%3cpath%20d='M204%20372c66.31%200%20121.852%2046.1%20136.326%20108h137.53c12.901-33.907%2045.71-58%2084.144-58%2038.435%200%2071.243%2024.093%2084.145%2058h139.71c12.902-33.907%2045.71-58%2084.145-58%2049.706%200%2090%2040.294%2090%2090s-40.294%2090-90%2090c-38.434%200-71.242-24.092-84.144-57.998H646.144C633.242%20577.908%20600.434%20602%20562%20602c-38.434%200-71.242-24.092-84.144-57.998h-137.53C325.852%20605.9%20270.309%20652%20204%20652c-77.32%200-140-62.68-140-140s62.68-140%20140-140z%20m0%2064c-41.974%200-76%2034.026-76%2076s34.026%2076%2076%2076%2076-34.026%2076-76-34.026-76-76-76z%20m358%2050c-14.36%200-26%2011.64-26%2026s11.64%2026%2026%2026%2026-11.64%2026-26-11.64-26-26-26z%20m308%200c-14.36%200-26%2011.64-26%2026s11.64%2026%2026%2026%2026-11.64%2026-26-11.64-26-26-26z'%20p-id='16231'%3e%3c/path%3e%3c/svg%3e",Ih=Object.freeze(Object.defineProperty({__proto__:null,default:Rh},Symbol.toStringTag,{value:"Module"})),Hh="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1750667945909'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='16523'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M778.7%2097.2H247.3C165%2097.2%2098%20164.3%2098%20246.7v532.2c0%2082.4%2067%20149.4%20149.3%20149.4h531.5c82.3%200%20149.3-67%20149.3-149.4V246.7C928%20164.3%20861%2097.2%20778.7%2097.2z%20m-452.2%2079.9h373.1v83.7H331.9c-2.9%200-5.5-2.6-5.5-5.5v-78.2z%20m373%20671.3h-373v-225h373.1v225z%20m148.7-69.6c0%2038.1-30.8%2069.2-68.8%2069.5V612.9c0-38.3-31.1-69.4-69.3-69.4H316c-38.2%200-69.3%2031.1-69.3%2069.4v235.4c-38-0.3-68.8-31.4-68.8-69.5V246.7c0-38.1%2030.8-69.2%2068.8-69.5v78.2c0%2047.1%2038.3%2085.4%2085.3%2085.4h378c38.2%200%2069.3-31.1%2069.3-69.4v-94.2c38%200.3%2068.8%2031.4%2068.8%2069.5v532.1z'%20p-id='16524'%3e%3c/path%3e%3c/svg%3e",$h=Object.freeze(Object.defineProperty({__proto__:null,default:Hh},Symbol.toStringTag,{value:"Module"})),Wh="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1750407459145'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='14370'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M122.368%20165.888h778.24c-9.216%200-16.384-7.168-16.384-16.384v713.728c0-9.216%207.168-16.384%2016.384-16.384h-778.24c9.216%200%2016.384%207.168%2016.384%2016.384V150.016c0%208.192-6.656%2015.872-16.384%2015.872z%20m-32.768%20684.544c0%2026.112%2020.992%2047.104%2047.104%2047.104h750.08c26.112%200%2047.104-20.992%2047.104-47.104V162.304c0-26.112-20.992-47.104-47.104-47.104H136.704c-26.112%200-47.104%2020.992-47.104%2047.104v688.128z'%20p-id='14371'%3e%3c/path%3e%3cpath%20d='M249.344%20347.648h49.152v499.2h-49.152zM584.704%20347.648h49.152v499.2h-49.152zM137.728%20165.888h746.496v181.76H137.728z'%20p-id='14372'%3e%3c/path%3e%3cpath%20d='M137.728%20481.792h746.496v49.152H137.728zM137.728%20664.576h746.496v49.152H137.728z'%20p-id='14373'%3e%3c/path%3e%3c/svg%3e",Fh=Object.freeze(Object.defineProperty({__proto__:null,default:Wh},Symbol.toStringTag,{value:"Module"})),Gh="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1750813714349'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='4271'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M376.6%20494.8c5.1%204.8%207.9%2011.7%207.6%2018.7%200.4%207.1-2.5%2014-7.6%2018.7-5.3%204.7-12.3%207.2-19.3%206.9h-69.6v235.1c0.2%207.4-2.9%2014.4-8.4%2019.1-5.5%205.4-12.9%208.3-20.5%208.1-7.6%200.3-15.1-2.7-20.5-8.1-5.3-4.9-8.2-11.9-8.1-19.1v-235H161c-7.2%200.3-14.2-2.3-19.3-7.3-5.2-4.8-8-11.7-7.6-18.7-0.3-7%202.5-13.7%207.6-18.3%205.3-4.8%2012.2-7.3%2019.3-7h198.4c6.3%200%2012.4%202.5%2017.2%206.9z%20m215.7%2070.1c5.2%205.1%208%2012.2%207.7%2019.6v189.9c0.3%207.2-2.5%2014.2-7.7%2019.1-4.8%205.3-11.7%208.3-18.9%208.1-7.1%200.1-13.9-2.7-18.9-7.7-4.8-5.2-7.6-12-7.6-19.1-18%2019.5-42.9%2030.8-69.2%2031.4-19.7%200.3-38.9-5.3-55.5-15.9-17.2-10.7-31.2-26.1-40.3-44.4-19.3-40.4-19.3-87.6%200-128%208.9-18.4%2022.9-33.8%2040.3-44.4%2016-10.5%2034.8-16.1%2053.9-15.9%2026.3-0.1%2051.8%209.8%2071.2%2027.7-0.2-7.3%202.6-14.4%207.7-19.6%2010.6-10.2%2027.2-10.2%2037.8%200l-0.5-0.8z%20m-61.2%20168.7c24.1-31.6%2024.1-75.6%200-107.2-11.5-14.3-28.9-22.3-47.1-21.6-17.9-0.5-35.1%207.4-46.3%2021.6-12.1%2015-18.5%2034-18.1%2053.4-0.6%2019.5%205.7%2038.6%2017.7%2053.8%2011.6%2013.9%2028.8%2021.7%2046.7%2021.2%2018.1%200.4%2035.3-7.4%2047.1-21.2zM835.4%20573c17.1%2010.7%2031%2025.9%2040.3%2044%209.9%2019.8%2014.9%2041.8%2014.5%2064%200.4%2022.3-4.6%2044.4-14.5%2064.4-9%2018.3-23%2033.7-40.3%2044.4-16%2010.6-34.8%2016.1-53.9%2015.9-13.9%200.2-27.7-2.9-40.3-9-11.6-5-22.1-12.2-31-21.2v2.8c0.2%207.2-2.5%2014.2-7.5%2019.4-5%205.1-11.9%208-19.1%207.9-7.1%200.3-14-2.5-18.9-7.7-5.2-5.1-8-12.2-7.6-19.6V497.2c-0.2-7.3%202.5-14.4%207.6-19.6%2010.6-10.3%2027.2-10.3%2037.8%200%205.1%205.2%207.9%2012.2%207.6%2019.6v93.3c8-9.8%2018-17.7%2029.4-23.2%2012.4-6.8%2026.2-10.3%2040.3-10.2%2019.7-0.2%2039%205.3%2055.6%2015.9z%20m-15.7%20163c12.2-15.1%2018.6-34.3%2018.1-53.8%200.6-19.4-5.7-38.3-17.7-53.4-12-13.4-29-21.1-46.9-21.1s-34.9%207.7-46.9%2021.1c-24.1%2031.6-24.1%2075.6%200%20107.2%2011.6%2014.1%2029%2022.1%2047.1%2021.6%2018.3-0.2%2035.4-9.1%2046.3-24v2.4zM708.1%20253.5c-15.5%200-28-12.5-28-28V113.4c-0.1-8%200-15.9%200-23.8V77.9c0-15.5%2012.5-28%2028-28H886c17%200%2032.9%206.6%2045%2018.6%2011.3%2011.3%2017.8%2026%2018.6%2041.8%200.1%200.7%200.1%201.4%200.1%202.1v113.2c0%2015.5-12.5%2028-28%2028H708.1z%20m28-56h157.4v-84.1c0-2-0.8-3.9-2.2-5.4-1.4-1.4-3.4-2.2-5.4-2.2H736.1v91.7zM371.9%20254.6c-15.5%200-28-12.5-28-28V78.9c0-15.4%2012.5-27.9%2027.9-28l213.4-1.1h0.1c17%200%2032.9%206.6%2045%2018.6%2012%2012.1%2018.6%2028%2018.6%2045v113.2c0%2015.5-12.5%2028-28%2028h-249z%20m28-56.1h193v-85.2c0-2-0.8-3.9-2.2-5.4-1.4-1.4-3.3-2.2-5.3-2.2l-185.5%200.9v91.9z'%20p-id='4272'%3e%3c/path%3e%3cpath%20d='M72.4%20974.2c-17.3%200-33.5-6.7-45.7-18.7-12.2-12.1-18.9-28.1-18.9-45.1V113.6c0-35.2%2029-63.8%2064.6-63.8h169c17.3%200%2033.5%206.6%2045.7%2018.7%2012.2%2012%2018.9%2028.1%2018.9%2045.1V283c0%202%200.8%203.9%202.3%205.4%201.5%201.4%203.4%202.2%205.4%202.2h637.9c17.3%200%2033.5%206.6%2045.7%2018.7%2012.2%2012%2018.9%2028%2018.9%2045.1v556c0%2017.1-6.7%2033.1-18.9%2045.1s-28.4%2018.7-45.7%2018.7H72.4z%20m7.7-860.6c-4.3%200-7.7%203.4-7.7%207.6v788.7c0%202%200.8%204%202.3%205.4%201.4%201.4%203.4%202.2%205.4%202.2h871.5c2.1%200%204-0.8%205.4-2.2%201.5-1.4%202.3-3.3%202.3-5.4V350.6c0-2-0.8-3.9-2.2-5.3-1.5-1.5-3.4-2.3-5.4-2.3h-638c-17.3%200-33.5-6.7-45.7-18.7-12.2-12-18.9-28.1-18.9-45.1V121.1c0-2-0.8-3.9-2.3-5.4-1.4-1.4-3.4-2.2-5.4-2.2H80.1z'%20p-id='4273'%3e%3c/path%3e%3c/svg%3e",jh=Object.freeze(Object.defineProperty({__proto__:null,default:Gh},Symbol.toStringTag,{value:"Module"})),qh="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1750482237209'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2084'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='48'%20height='48'%3e%3cpath%20d='M171.52%20924.16v-107.52c0-19.968%2015.872-35.84%2035.84-35.84s35.84%2015.872%2035.84%2035.84v107.52c0%2019.968-15.872%2035.84-35.84%2035.84s-35.84-15.872-35.84-35.84z%20m0-322.56v-107.52c0-19.968%2015.872-35.84%2035.84-35.84s35.84%2015.872%2035.84%2035.84v107.52c0%2019.968-15.872%2035.84-35.84%2035.84s-35.84-15.872-35.84-35.84z%20m0-394.24v-107.52c0-19.968%2015.872-35.84%2035.84-35.84s35.84%2015.872%2035.84%2035.84v107.52c0%2019.968-15.872%2035.84-35.84%2035.84s-35.84-15.872-35.84-35.84z'%20p-id='2085'%3e%3c/path%3e%3cpath%20d='M350.72%20350.72c0%2079.36-64%20143.36-143.36%20143.36s-143.36-64-143.36-143.36%2064-143.36%20143.36-143.36%20143.36%2064%20143.36%20143.36z%20m-143.36-71.68c-39.424%200-71.68%2032.256-71.68%2071.68s32.256%2071.68%2071.68%2071.68%2071.68-32.256%2071.68-71.68-32.256-71.68-71.68-71.68z%20m143.36%20430.08c0%2079.36-64%20143.36-143.36%20143.36s-143.36-64-143.36-143.36%2064-143.36%20143.36-143.36%20143.36%2064%20143.36%20143.36z%20m-143.36-71.68c-39.424%200-71.68%2032.256-71.68%2071.68s32.256%2071.68%2071.68%2071.68%2071.68-32.256%2071.68-71.68-32.256-71.68-71.68-71.68z%20m716.8-286.72h-501.76c-19.968%200-35.84-15.872-35.84-35.84s15.872-35.84%2035.84-35.84h501.76c19.968%200%2035.84%2015.872%2035.84%2035.84s-15.872%2035.84-35.84%2035.84z%20m-284.672%20107.52H420.352c-18.432%200-33.792-15.36-33.792-33.792v-4.096c0-18.432%2015.36-33.792%2033.792-33.792h219.136c18.432%200%2033.792%2015.36%2033.792%2033.792v4.096c0%2018.432-15.36%2033.792-33.792%2033.792z%20m284.672%20250.88h-501.76c-19.968%200-35.84-15.872-35.84-35.84s15.872-35.84%2035.84-35.84h501.76c19.968%200%2035.84%2015.872%2035.84%2035.84s-15.872%2035.84-35.84%2035.84z%20m-284.672%20107.52H420.352c-18.432%200-33.792-15.36-33.792-33.792v-4.096c0-18.432%2015.36-33.792%2033.792-33.792h219.136c18.432%200%2033.792%2015.36%2033.792%2033.792v4.096c0%2018.432-15.36%2033.792-33.792%2033.792z'%20p-id='2086'%3e%3c/path%3e%3c/svg%3e",Uh=Object.freeze(Object.defineProperty({__proto__:null,default:qh},Symbol.toStringTag,{value:"Module"})),Yh="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1752140707910'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='4361'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='16'%20height='16'%3e%3cpath%20d='M512%20315.9c-108.3%200-196.1%2087.8-196.1%20196.1S403.7%20708.1%20512%20708.1%20708.1%20620.3%20708.1%20512%20620.3%20315.9%20512%20315.9z%20m93.41%20289.51A132.11%20132.11%200%201%201%20644.1%20512a131.25%20131.25%200%200%201-38.69%2093.41z'%20p-id='4362'%3e%3c/path%3e%3cpath%20d='M851.37%20512c0-7.13-0.23-14.33-0.69-21.54l68.83-62.15-4.73-18.69a413.07%20413.07%200%200%200-45.62-110L859.29%20283l-92.59%204.73a340.49%20340.49%200%200%200-30.45-30.45l4.75-92.57-16.56-9.87a413.07%20413.07%200%200%200-110-45.62l-18.69-4.74-62.15%2068.84a336.56%20336.56%200%200%200-43.08%200l-62.15-68.84-18.69%204.74a413.07%20413.07%200%200%200-110%2045.62L283%20164.71l4.73%2092.59a341.81%20341.81%200%200%200-30.45%2030.45L164.71%20283l-9.87%2016.56a413.07%20413.07%200%200%200-45.62%20110l-4.74%2018.69%2068.84%2062.15c-0.46%207.21-0.69%2014.41-0.69%2021.54s0.23%2014.33%200.69%2021.54l-68.84%2062.15%204.74%2018.69a413.07%20413.07%200%200%200%2045.62%20110l9.87%2016.68%2092.59-4.73a340.49%20340.49%200%200%200%2030.45%2030.45L283%20859.29l16.56%209.87a413.07%20413.07%200%200%200%20110%2045.62l18.69%204.73%2062.15-68.83a336.56%20336.56%200%200%200%2043.08%200l62.15%2068.83%2018.69-4.73a413.07%20413.07%200%200%200%20110-45.62l16.68-9.87-4.73-92.59a341.81%20341.81%200%200%200%2030.45-30.45l92.57%204.75%209.87-16.56a413.07%20413.07%200%200%200%2045.62-110l4.73-18.69-68.83-62.15c0.46-7.27%200.69-14.47%200.69-21.6z%20m-65.75-31.06a276.51%20276.51%200%200%201%200%2062.12l-1.83%2016.32L847.57%20617a349.88%20349.88%200%200%201-24.1%2058.1l-85.81-4.38-10.25%2012.85a277.6%20277.6%200%200%201-43.88%2043.88l-12.85%2010.25%204.38%2085.81a349.88%20349.88%200%200%201-58.1%2024.1l-57.58-63.78-16.32%201.83a276.51%20276.51%200%200%201-62.12%200l-16.32-1.83L407%20847.57a349.88%20349.88%200%200%201-58.1-24.1l4.38-85.81-12.85-10.25a277.66%20277.66%200%200%201-43.89-43.88l-10.24-12.85-85.81%204.38A349%20349%200%200%201%20176.44%20617l63.77-57.58-1.83-16.32a276.51%20276.51%200%200%201%200-62.12l1.83-16.32L176.43%20407a349.88%20349.88%200%200%201%2024.1-58.1l85.81%204.38%2010.24-12.85a278.57%20278.57%200%200%201%2043.89-43.89l12.85-10.24-4.38-85.81a349.88%20349.88%200%200%201%2058.1-24.1l57.58%2063.78%2016.32-1.83a276.51%20276.51%200%200%201%2062.12%200l16.32%201.83L617%20176.44a349%20349%200%200%201%2058.1%2024.09l-4.38%2085.81%2012.85%2010.24a277.66%20277.66%200%200%201%2043.88%2043.89l10.25%2012.85%2085.81-4.38a349.88%20349.88%200%200%201%2024.1%2058.1l-63.78%2057.58z'%20p-id='4363'%3e%3c/path%3e%3c/svg%3e",Kh=Object.freeze(Object.defineProperty({__proto__:null,default:Yh},Symbol.toStringTag,{value:"Module"})),Xh="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1754014497867'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='6026'%20width='32'%20height='32'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3cpath%20d='M938.666667%20390.186667V207.274667A121.941333%20121.941333%200%200%200%20816.725333%2085.333333H207.274667A121.941333%20121.941333%200%200%200%2085.333333%20207.274667v609.450666A121.941333%20121.941333%200%200%200%20207.274667%20938.666667h609.450666A121.941333%20121.941333%200%200%200%20938.666667%20816.725333V390.186667zM164.138667%20164.138667c11.434667-11.52%2026.965333-17.92%2043.178666-17.92h609.578667a60.928%2060.928%200%200%201%2060.885333%2061.098666v121.984H146.218667v-122.026666c0-16.170667%206.4-31.701333%2017.92-43.136z%20m195.413333%20439.381333h-213.333333v-213.333333h213.333333v213.333333z%20m-195.413333%20256.426667c-11.52-11.349333-17.92-26.88-17.92-43.050667v-152.448h213.333333v213.333333H207.36a60.586667%2060.586667%200%200%201-43.178667-17.792z%20m702.677333-6.741334c-25.472%2026.282667-82.346667%2021.546667-118.357333%2021.461334h-340.053334V384h475.733334v350.72c0.085333%2037.12%208.106667%2092.245333-17.322667%20118.485333z'%20fill='%23646E78'%20p-id='6027'%3e%3c/path%3e%3cpath%20d='M807.594667%20506.709333a41.941333%2041.941333%200%200%201%203.072%2015.701334c0%202.986667-0.554667%205.930667-1.706667%208.874666a27.093333%2027.093333%200%200%201-5.418667%208.533334c-2.730667%202.730667-5.12%205.12-7.296%207.168-2.133333%202.048-4.053333%203.84-5.632%205.461333-1.792%201.834667-3.498667%203.413333-5.12%204.778667l-63.488-63.829334c2.730667-2.474667%205.973333-5.504%209.685334-9.045333%203.754667-3.498667%206.826667-6.314667%209.344-8.362667a29.781333%2029.781333%200%200%201%2019.882666-6.656%2037.76%2037.76%200%200%201%209.514667%201.536c3.029333%200.938667%205.717333%201.962667%207.978667%203.072%204.736%202.517333%2010.026667%206.912%2015.786666%2013.141334%205.76%206.272%2010.24%2012.8%2013.397334%2019.626666z%20m-264.618667%20166.528l9.514667-9.728c4.992-5.12%2011.221333-11.434667%2018.688-18.901333l24.789333-24.917333%2027.52-27.648%2073.045333-73.386667%2063.530667%2064.170667-73.045333%2073.386666-27.178667%2027.605334c-9.045333%208.874667-17.194667%2017.024-24.448%2024.405333-7.253333%207.381333-13.226667%2013.482667-18.005333%2018.261333a147.328%20147.328%200%200%201-16.298667%2014.677334%2042.453333%2042.453333%200%200%201-9.173333%205.461333%20147.925333%20147.925333%200%200%201-13.952%205.802667%20469.418667%20469.418667%200%200%201-38.186667%2012.288%20143.36%20143.36%200%200%201-13.44%203.072c-6.101333%200.682667-10.197333-0.213333-12.202667-2.730667-2.048-2.517333-2.602667-6.698667-1.706666-12.629333a115.626667%20115.626667%200%200%201%203.2-13.824l5.461333-18.773334c1.92-6.485333%203.797333-12.458667%205.589333-17.92%201.834667-5.461333%203.285333-9.216%204.437334-11.264%201.365333-3.157333%202.858667-6.058667%204.565333-8.704%201.706667-2.602667%204.138667-5.504%207.296-8.704z'%20fill='%23646E78'%20p-id='6028'%3e%3c/path%3e%3c/svg%3e",Qh=Object.freeze(Object.defineProperty({__proto__:null,default:Xh},Symbol.toStringTag,{value:"Module"})),Jh="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1750819285235'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='5686'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='48'%20height='48'%3e%3cpath%20d='M804.571429%20511.890286A219.428571%20219.428571%200%200%201%201024%20731.428571a219.428571%20219.428571%200%201%201-219.428571-219.501714z%20m131.291428%20139.885714l-210.176%20210.212571a155.026286%20155.026286%200%200%200%2078.884572%2021.394286c85.101714%200%20154.112-68.022857%20154.112-151.990857%200-29.184-8.338286-56.466286-22.784-79.616zM804.571429%20579.364571c-85.101714%200-154.112%2068.059429-154.112%20152.027429%200%2029.184%208.338286%2056.429714%2022.784%2079.579429l210.176-210.212572A155.026286%20155.026286%200%200%200%20804.571429%20579.364571zM804.498286%2073.142857c36.754286%200%2072.813714%2036.315429%2072.813714%2073.069714v315.757715a254.171429%20254.171429%200%200%200-72.667429-21.796572V146.212571H72.704l-0.036571%20487.716572%20248.978285-249.417143%20193.353143%20195.510857%2033.536-37.449143v19.2a254.646857%20254.646857%200%200%200-36.205714%20119.369143l-190.902857-193.097143-243.529143%20243.931429h437.028571c3.84%2025.782857%2011.556571%2050.285714%2022.491429%2072.96H72.96C36.534857%20804.937143%200%20768.475429%200%20731.940571V146.212571C0%20110.006857%2036.352%2073.142857%2072.96%2073.142857h731.538286zM581.851429%20256c40.155429%200%2072.704%2032.804571%2072.704%2073.216%200%2040.448-32.548571%2073.252571-72.704%2073.252571a72.96%2072.96%200%200%201-72.777143-73.252571c0-40.411429%2032.585143-73.216%2072.777143-73.216z'%20p-id='5687'%3e%3c/path%3e%3c/svg%3e",Zh=Object.freeze(Object.defineProperty({__proto__:null,default:Jh},Symbol.toStringTag,{value:"Module"})),e1="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1750387251918'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='9358'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M764.9%2064H225.4l1.4%20224.2%2064-0.4-1-159.8h383.6v224H896v544H289.8l1-159.8-64-0.4-1.4%20224.2H960V277.7L764.9%2064z%20m-27.6%2064.7L882.8%20288H737.3V128.7z'%20p-id='9359'%3e%3c/path%3e%3cpath%20d='M356.5%20224h255.9v64H356.5z'%20p-id='9360'%3e%3c/path%3e%3cpath%20d='M576.4%20416h255.9v64H576.4zM512.5%20576h319.8v64H512.5zM384.5%20736h447.8v64H384.5z'%20p-id='9361'%3e%3c/path%3e%3cpath%20d='M336.9%20349H198.6l98.9%2098.9H64v128.2h233.5L198.6%20675h138.3l162.9-163z'%20p-id='9362'%3e%3c/path%3e%3c/svg%3e",t1=Object.freeze(Object.defineProperty({__proto__:null,default:e1},Symbol.toStringTag,{value:"Module"})),i1="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1753759000039'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2839'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='32'%20height='32'%3e%3cpath%20d='M952.167422%201011.201424a43.463154%2043.463154%200%200%201-61.58846%200l-43.029534-43.072896a195.533604%20195.533604%200%201%201%2062.238889-60.851307l42.379105%2042.350197a43.52097%2043.52097%200%200%201%200%2061.574006zM746.472662%20682.951266a119.028624%20119.028624%200%201%200%20119.028624%20118.956354%20119.043078%20119.043078%200%200%200-119.028624-118.956354z%20m-430.092986-17.344791h126.515792a43.477608%2043.477608%200%200%201%2043.361976%2043.361976%2042.292381%2042.292381%200%200%201-43.361976%2042.061117h-126.515792a42.306835%2042.306835%200%200%201-43.361976-42.061117%2043.492062%2043.492062%200%200%201%2043.361976-43.361976z%20m0-260.460935a43.434246%2043.434246%200%201%201%200-86.868492h320.372733a43.434246%2043.434246%200%200%201%200%2086.868492H316.379676z%20m320.083653%20173.447904H316.090597a43.434246%2043.434246%200%200%201%200-86.868492h320.40164a43.434246%2043.434246%200%201%201%200%2086.868492z%20m173.274456-376.960111c0-43.651056%201.705571-42.061117-42.046663-42.061117h-88.588517v12.285893c0%2030.064303-10.03107%2031.076083-40.109828%2031.076083H315.613615c-30.078757%200-42.523644-1.011779-42.523645-31.076083v-12.285893h-85.278552c-43.73778%200-42.899448-3.035338-42.899448%2040.760257v655.488537c0%2043.651056-5.665965%2040.760257%2038.086268%2040.760257h302.276335c4.798725%2028.329824%2019.773061%2053.19069%2045.862516%2086.001253H158.845618c-66.936437%200-100.180618-37.435839-100.180619-104.357823V181.831364c0-66.921983%2034.212599-109.272179%20101.177944-109.27218h113.203665V54.636234a52.988335%2052.988335%200%200%201%203.94594-19.079269l1.633301-3.468958a65.968019%2065.968019%200%200%201%208.556764-13.153133l2.71735-3.035338a56.370569%2056.370569%200%200%201%2016.463097-11.563194A54.000114%2054.000114%200%200%201%20327.624882%200.000145h296.942811a53.638764%2053.638764%200%200%201%2021.218461%204.336197%2054.534912%2054.534912%200%200%201%2015.566949%2010.551414l3.786946%204.191658a55.055255%2055.055255%200%200%201%207.588346%2011.418654l1.907927%203.758038a54.679452%2054.679452%200%200%201%204.495191%2020.380128v17.92295h113.247027c66.936437%200%20104.068742%2039.025778%20104.068743%20105.947762v390.402323l-86.723952-38.158539V201.633333z'%20fill='%238a8a8a'%20p-id='2840'%3e%3c/path%3e%3c/svg%3e",n1=Object.freeze(Object.defineProperty({__proto__:null,default:i1},Symbol.toStringTag,{value:"Module"})),s1="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1751614934560'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2487'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='16'%20height='16'%3e%3cpath%20d='M807.936%2099.328c-17.408%200-32.256%209.216-40.448%2023.552h-348.16L284.672%20355.84l35.84%2035.84%20126.976-219.648h321.536c8.192%2012.8%2022.528%2020.992%2038.912%2020.992%2025.6%200%2046.592-20.992%2046.592-46.592s-20.992-47.104-46.592-47.104z'%20p-id='2488'%3e%3c/path%3e%3cpath%20d='M301.056%2050.688c-8.704%2014.848-7.68%2032.768%200%2046.592L127.488%20399.36l134.656%20232.448%2048.64-13.312L183.808%20399.36l160.256-279.04c15.36-1.024%2029.696-9.216%2037.888-23.04%2012.8-22.528%205.12-50.688-17.408-63.488s-50.688-5.632-63.488%2016.896z'%20p-id='2489'%3e%3c/path%3e%3cpath%20d='M15.872%20467.456c8.704%2014.848%2024.064%2023.552%2040.448%2023.552L228.352%20793.6l268.8%201.536%2013.312-48.64-253.44-1.536-159.232-279.552c6.656-13.312%207.168-30.208-1.024-44.032-12.8-22.528-40.96-30.208-63.488-17.408-22.528%2012.8-30.208%2040.96-17.408%2063.488z'%20p-id='2490'%3e%3c/path%3e%3cpath%20d='M216.064%20924.672c17.408%200%2032.256-9.216%2040.448-23.552h348.16l134.144-232.448-35.84-35.84-126.976%20219.648H254.976c-8.192-12.8-22.528-20.992-38.912-20.992-25.6%200-46.592%2020.992-46.592%2046.592s20.992%2046.592%2046.592%2046.592z'%20p-id='2491'%3e%3c/path%3e%3cpath%20d='M722.944%20973.312c8.704-14.848%207.68-32.768%200-46.592l173.568-302.08-134.656-232.448-48.64%2013.312%20127.488%20219.136-160.256%20279.04c-15.36%201.024-29.696%209.216-37.888%2023.04-12.8%2022.528-5.12%2050.688%2017.408%2063.488%2022.016%2013.312%2050.176%205.632%2062.976-16.896z'%20p-id='2492'%3e%3c/path%3e%3cpath%20d='M1008.128%20556.544c-8.704-14.848-24.064-23.552-40.448-23.552L795.648%20230.4l-268.8-1.536-13.312%2048.64%20253.44%201.536%20159.232%20279.552c-6.656%2013.312-7.168%2030.208%201.024%2044.032%2012.8%2022.528%2040.96%2030.208%2063.488%2017.408%2022.528-12.8%2030.208-40.96%2017.408-63.488zM512%20391.168C445.44%20391.168%20391.168%20445.44%20391.168%20512S445.44%20632.832%20512%20632.832s120.832-54.272%20120.832-120.832S578.56%20391.168%20512%20391.168z%20m0%20196.096c-41.472%200-75.264-33.792-75.264-75.264s33.792-75.264%2075.264-75.264%2075.264%2033.792%2075.264%2075.264-33.792%2075.264-75.264%2075.264z'%20p-id='2493'%3e%3c/path%3e%3c/svg%3e",o1=Object.freeze(Object.defineProperty({__proto__:null,default:s1},Symbol.toStringTag,{value:"Module"})),r1="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1753428217148'%20class='icon'%20viewBox='0%200%201230%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='34443'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='19.21875'%20height='16'%3e%3cpath%20d='M800.585901%20666.312904a71.402697%2071.402697%200%201%200-71.739503-71.402697%2071.514965%2071.514965%200%200%200%2071.739503%2071.402697z%20m412.47407-192.877097a456.820086%20456.820086%200%200%201%200%20242.611995%20102.051968%20102.051968%200%200%200-41.090231-8.644666%20104.521873%20104.521873%200%200%200-92.060081%2056.134195%20110.135292%20110.135292%200%200%200%2028.965245%20138.090122%20338.938274%20338.938274%200%200%201-204.216204%20121.586668%20104.634141%20104.634141%200%200%200-208.370135%200%20434.590944%20434.590944%200%200%201-204.216205-121.586668%20110.247561%20110.247561%200%200%200%2031.884224-132.476702%20104.858678%20104.858678%200%200%200-94.866791-61.859884%20102.501042%20102.501042%200%200%200-41.2025%208.644666%20456.371012%20456.371012%200%200%201%200-242.499726%20101.041552%20101.041552%200%200%200%2040.977963%208.532398%20106.430435%20106.430435%200%200%200%20104.858678-108.002193%20108.90034%20108.90034%200%200%200-41.539305-86.109856A434.029602%20434.029602%200%200%201%20696.064028%20166.718562a104.634141%20104.634141%200%200%200%20208.370135%200%20455.13606%20455.13606%200%200%201%20203.991668%20121.249863%20108.788071%20108.788071%200%200%200-41.651574%2086.109856%20106.430435%20106.430435%200%200%200%20104.970946%20108.002193%20102.61331%20102.61331%200%200%200%2040.977963-8.532398z%20m-55.460585%20167.841246a747.258415%20747.258415%200%200%200%200-93.182765%20163.799583%20163.799583%200%200%201-135.283412-84.762636%20166.269488%20166.269488%200%200%201-2.582173-155.379454%20358.472974%20358.472974%200%200%200-80.047363-46.591382%20171.546102%20171.546102%200%200%201-275.618902%200%20358.136169%20358.136169%200%200%200-79.935094%2046.591382%20163.125973%20163.125973%200%200%201-5.501152%20158.747506%20168.402587%20168.402587%200%200%201-134.72207%2080.496437%20767.915799%20767.915799%200%200%200%200%2095.203596%20168.402587%20168.402587%200%200%201%20134.04846%2078.587874%20162.901436%20162.901436%200%200%201%206.399298%20160.880605%20357.013485%20357.013485%200%200%200%2080.159632%2046.703651%20168.402587%20168.402587%200%200%201%20275.618901%200%20357.911632%20357.911632%200%200%200%2080.159632-46.703651%20166.15722%20166.15722%200%200%201%205.725688-161.21741%20163.687315%20163.687315%200%200%201%20132.027629-78.587874z%20m-357.013485-189.17224A142.805394%20142.805394%200%201%201%20657.668238%20595.022476a142.805394%20142.805394%200%200%201%20142.917663-142.693126zM0%20499.931148v-71.402697h261.922158v71.402697zM0%2071.402697V0h1142.779958v71.402697H0z%20m0%20857.16917v-71.402697h333.324855v71.402697z'%20fill='%23404040'%20p-id='34444'%3e%3c/path%3e%3c/svg%3e",l1=Object.freeze(Object.defineProperty({__proto__:null,default:r1},Symbol.toStringTag,{value:"Module"})),a1="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1753925874638'%20class='icon'%20viewBox='0%200%201061%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='8169'%20id='mx_n_1753925874640'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='33.15625'%20height='32'%3e%3cpath%20d='M781.840418%20802.807076c28.893762-28.892004%2043.339764-66.758919%2043.339765-104.62056s-14.446002-75.728556-43.339765-104.62056c-28.892004-28.893762-66.758919-43.339764-104.620559-43.339764s-75.728556%2014.446002-104.62056%2043.339764c-28.893762%2028.892004-43.339764%2066.758919-43.339764%20104.62056s14.446002%2075.728556%2043.339764%20104.62056c28.892004%2028.893762%2066.758919%2043.339764%20104.62056%2043.339764s75.728556-14.446002%20104.620559-43.339764z%20m79.575197%2011.332472l130.608245%20130.608245c13.361277%2013.359519%2013.774422%2034.892273%200.937047%2048.754597l-17.807418%2019.227933c-6.742171%207.27838-15.207243%2011.07228-25.126234%2011.262151-9.917232%200.191629-18.521192-3.277029-25.535862-10.2917l-131.316744-131.316743c-18.493063-18.493063-43.672038-25.054153-68.838707-17.949822-15.379533%204.342415-31.247808%206.515381-47.116083%206.515381-44.21528%200-88.432317-16.866855-122.164269-50.598806s-50.600564-77.948989-50.600564-122.164268%2016.868613-88.432317%2050.600564-122.164269%2077.948989-50.600564%20122.164269-50.600563%2088.432317%2016.868613%20122.164268%2050.600563%2050.598806%2077.948989%2050.598806%20122.164269c0%2015.866517-2.174724%2031.733034-6.517139%2047.114325-7.109606%2025.168427-0.543241%2050.345645%2017.949821%2068.838707z'%20p-id='8170'%3e%3c/path%3e%3cpath%20d='M180.758744%20295.896035c-13.700583%200-24.808024-11.107441-24.808024-24.808024s11.107441-24.808024%2024.808024-24.808024h604.829864c13.700583%200%2024.808024%2011.107441%2024.808025%2024.808024s-11.107441%2024.808024-24.808025%2024.808024H180.758744zM170.572528%20471.702316c-8.074782%200-14.621808-11.107441-14.621808-24.808024s6.547026-24.808024%2014.621808-24.808024h356.489428c8.074782%200%2014.621808%2011.107441%2014.621808%2024.808024s-6.547026%2024.808024-14.621808%2024.808024H170.572528zM177.035167%20647.508597c-11.64365%200-21.084447-11.107441-21.084447-24.808024s9.440797-24.808024%2021.084447-24.808024h221.044753c11.64365%200%2021.084447%2011.107441%2021.084447%2024.808024s-9.440797%2024.808024-21.084447%2024.808024H177.035167zM179.104407%20823.314878c-12.786391%200-23.153687-11.107441-23.153687-24.808024s10.367296-24.808024%2023.153687-24.808024h257.220411c12.786391%200%2023.153687%2011.107441%2023.153688%2024.808024s-10.367296%2024.808024-23.153688%2024.808024H179.104407z'%20p-id='8171'%3e%3c/path%3e%3c/svg%3e",c1=Object.freeze(Object.defineProperty({__proto__:null,default:a1},Symbol.toStringTag,{value:"Module"})),h1="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1754014546465'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='7433'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='32'%20height='32'%3e%3cpath%20d='M896%20384v384a85.333333%2085.333333%200%200%201-85.333333%2085.333333h-256l341.333333-469.333333z'%20fill='%23B4D3FF'%20p-id='7434'%3e%3c/path%3e%3cpath%20d='M810.666667%20128a85.333333%2085.333333%200%200%201%2085.333333%2085.333333v597.333334a85.333333%2085.333333%200%200%201-85.333333%2085.333333H213.333333a85.333333%2085.333333%200%200%201-85.333333-85.333333V213.333333a85.333333%2085.333333%200%200%201%2085.333333-85.333333h597.333334z%20m0%2051.2H213.333333a34.133333%2034.133333%200%200%200-34.133333%2034.133333v597.333334a34.133333%2034.133333%200%200%200%2034.133333%2034.133333h597.333334a34.133333%2034.133333%200%200%200%2034.133333-34.133333V213.333333a34.133333%2034.133333%200%200%200-34.133333-34.133333z'%20fill='%23333333'%20p-id='7435'%3e%3c/path%3e%3cpath%20d='M388.266667%20391.936v51.2H166.4v-51.2zM857.6%20622.336v51.2H166.4v-51.2z'%20fill='%23333333'%20p-id='7436'%3e%3c/path%3e%3cpath%20d='M403.2%20166.741333V858.026667h-51.2V166.741333zM672%20647.936v210.133333h-51.2v-210.133333z'%20fill='%23333333'%20p-id='7437'%3e%3c/path%3e%3cpath%20d='M772.224%20293.717333a25.6%2025.6%200%200%201%2037.632%2034.730667l-174.378667%20189.098667a34.133333%2034.133333%200%200%201-47.786666%202.346666l-103.893334-92.586666a25.6%2025.6%200%200%201%2034.090667-38.186667l91.306667%2081.365333%20162.986666-176.768z'%20fill='%23333333'%20p-id='7438'%3e%3c/path%3e%3c/svg%3e",u1=Object.freeze(Object.defineProperty({__proto__:null,default:h1},Symbol.toStringTag,{value:"Module"})),f1="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1754017588044'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='3671'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='32'%20height='32'%3e%3cpath%20d='M465.454545%20465.454545V139.636364a46.545455%2046.545455%200%200%201%2093.09091%200v325.818181h325.818181a46.545455%2046.545455%200%200%201%200%2093.09091H558.545455v325.818181a46.545455%2046.545455%200%200%201-93.09091%200V558.545455H139.636364a46.545455%2046.545455%200%200%201%200-93.09091z'%20p-id='3672'%3e%3c/path%3e%3c/svg%3e",d1=Object.freeze(Object.defineProperty({__proto__:null,default:f1},Symbol.toStringTag,{value:"Module"})),p1="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1751513326254'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2635'%20width='16'%20height='16'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3cpath%20d='M273.54647%20325.996013h476.395357c19.444708-2.046811%2036.842605%2011.769166%2039.40112%2030.702171%202.046811%2019.444708-11.769166%2036.330903-31.213874%2038.377714-2.558514%200.511703-5.117029%200.511703-7.675543%200H273.54647c-10.234057-0.511703-19.956411-4.605326-26.608548-11.257463-6.652137-6.652137-10.74576-15.351086-10.74576-24.561737%200.511703-19.956411%2017.397897-35.307497%2037.866011-34.284091v1.023406z%20m0%20209.286467h476.395357c19.444708-2.046811%2036.842605%2011.769166%2039.40112%2030.702171%202.046811%2019.444708-11.769166%2036.330903-31.213874%2038.377714-2.558514%200.511703-5.117029%200.511703-7.675543%200H273.54647c-9.722354%200-19.444708-3.58192-26.608548-10.234057-6.652137-6.652137-10.74576-15.351086-10.74576-24.561737%200.511703-19.444708%2017.397897-35.307497%2037.354308-34.284091z%20m0%20185.748136h324.931312c19.444708%200%2035.307497%2015.862788%2035.307497%2034.795794%200%2019.444708-15.862788%2034.795794-35.307497%2034.795794H273.54647c-9.722354-0.511703-19.444708-4.093623-26.608548-10.74576-6.652137-6.140434-10.74576-14.839383-10.74576-24.050034%200.511703-19.444708%2017.397897-35.307497%2037.354308-34.795794zM135.898402%200.041294h96.71184c17.397897-0.511703%2033.772388%208.187246%2043.494742%2022.514926l53.217097%2082.38416c4.605326%207.16384%2012.792571%2011.769166%2020.979817%2011.257462h322.884501c8.698949%200%2016.886194-4.093623%2021.49152-11.257462l53.217097-82.38416c9.722354-14.32768%2026.096846-23.026628%2043.494742-22.514926h97.223543c53.7288-1.535109%2098.246948%2039.912823%20100.293759%2093.12992v837.657572c-2.046811%2052.705394-46.56496%2094.153325-100.293759%2093.12992h-752.203196c-53.7288%201.535109-98.758651-39.912823-100.293759-92.618217V93.171214C37.139751%2039.954117%2082.169603-1.493814%20135.898402%200.041294z%20m82.895863%2070.103291H135.898402c-6.652137%200-13.304274%202.558514-18.421303%206.652138-4.605326%204.093623-7.16384%2010.234057-7.16384%2016.374491v837.657572c0.511703%2013.304274%2011.769166%2023.538331%2025.07344%2023.026629h752.203196c6.652137%200%2013.304274-2.558514%2018.421303-6.652138%204.605326-4.093623%207.16384-10.234057%207.16384-16.374491V93.171214c0.511703-6.140434-2.046811-12.280868-7.16384-16.374491-5.117029-4.605326-11.257463-6.652137-18.421303-6.652138h-82.895862l-46.053257%2070.614994c-18.933006%2028.65536-51.681988%2045.541554-86.477783%2045.029851H350.813601c-34.795794%200.511703-67.544777-16.374491-86.477782-45.029851l-45.541554-70.614994zM399.425372%200.041294h225.149256c19.956411-0.511703%2036.842605%2015.351086%2037.866011%2034.795795-0.511703%2019.956411-17.397897%2035.307497-37.866011%2034.795794H399.425372c-10.234057-0.511703-19.956411-4.093623-27.120251-10.74576-6.652137-6.140434-10.74576-15.351086-10.234057-24.050034C362.582767%2015.39238%20378.957258-0.470408%20399.425372%200.041294z'%20p-id='2636'%3e%3c/path%3e%3c/svg%3e",g1=Object.freeze(Object.defineProperty({__proto__:null,default:p1},Symbol.toStringTag,{value:"Module"})),m1="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1751513344245'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2848'%20width='16'%20height='16'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3cpath%20d='M855.04%20385.024q19.456%202.048%2038.912%2010.24t33.792%2023.04%2021.504%2037.376%202.048%2054.272q-2.048%208.192-8.192%2040.448t-14.336%2074.24-18.432%2086.528-19.456%2076.288q-5.12%2018.432-14.848%2037.888t-25.088%2035.328-36.864%2026.112-51.2%2010.24l-567.296%200q-21.504%200-44.544-9.216t-42.496-26.112-31.744-40.96-12.288-53.76l0-439.296q0-62.464%2033.792-97.792t95.232-35.328l503.808%200q22.528%200%2046.592%208.704t43.52%2024.064%2031.744%2035.84%2012.288%2044.032l0%2011.264-53.248%200q-40.96%200-95.744-0.512t-116.736-0.512-115.712-0.512-92.672-0.512l-47.104%200q-26.624%200-41.472%2016.896t-23.04%2044.544q-8.192%2029.696-18.432%2062.976t-18.432%2061.952q-10.24%2033.792-20.48%2065.536-2.048%208.192-2.048%2013.312%200%2017.408%2011.776%2029.184t29.184%2011.776q31.744%200%2043.008-39.936l54.272-198.656q133.12%201.024%20243.712%201.024l286.72%200z'%20p-id='2849'%3e%3c/path%3e%3c/svg%3e",v1=Object.freeze(Object.defineProperty({__proto__:null,default:m1},Symbol.toStringTag,{value:"Module"})),w1="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1750406004238'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='9507'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M896%20128H128c-25.6%200-42.666667%2017.066667-42.666667%2042.666667v682.666666c0%2025.6%2017.066667%2042.666667%2042.666667%2042.666667h768c25.6%200%2042.666667-17.066667%2042.666667-42.666667V170.666667c0-25.6-17.066667-42.666667-42.666667-42.666667zM170.666667%20213.333333h298.666666v341.333334H170.666667V213.333333z%20m0%20597.333334v-170.666667h298.666666v170.666667H170.666667z%20m682.666666%200h-298.666666v-341.333334h298.666666v341.333334z%20m0-426.666667h-298.666666V213.333333h298.666666v170.666667z'%20p-id='9508'%3e%3c/path%3e%3c/svg%3e",x1=Object.freeze(Object.defineProperty({__proto__:null,default:w1},Symbol.toStringTag,{value:"Module"})),b1="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1753777791101'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='3501'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='32'%20height='32'%3e%3cpath%20d='M512%2010.24a71.68%2071.68%200%200%201%2071.68%2071.68v10.24h81.92a92.20096%2092.20096%200%200%201%2086.91712%2061.44h23.10144c37.64224%200%2056.77056%203.4304%2076.77952%2013.3632%2018.71872%209.29792%2033.72032%2023.2448%2043.9296%2040.93952C907.4688%20227.25632%20911.36%20245.97504%20911.36%20281.83552v603.68896c0%2035.86048-3.8912%2054.5792-15.04256%2073.9328-10.19904%2017.70496-25.20064%2031.6416-43.9296%2040.93952-19.99872%209.9328-39.1168%2013.3632-76.76928%2013.3632H248.38144c-37.64224%200-56.77056-3.4304-76.77952-13.3632-18.71872-9.29792-33.72032-23.2448-43.9296-40.93952C116.5312%20940.10368%20112.64%20921.38496%20112.64%20885.52448V281.83552c0-35.86048%203.8912-54.5792%2015.04256-73.9328%2010.19904-17.70496%2025.20064-31.6416%2043.9296-40.93952%2019.99872-9.9328%2039.1168-13.3632%2076.76928-13.3632h23.10144A92.20096%2092.20096%200%200%201%20358.4%2092.16h81.92V81.92a71.68%2071.68%200%200%201%2071.68-71.68zM271.48288%20215.04h-26.368c-26.4704%200.14336-36.2496%202.01728-46.1824%206.9632-7.9872%203.95264-13.9264%209.472-18.01216%2016.56832-4.87424%208.45824-6.69696%2016.60928-6.83008%2040.23296v609.75104c0.13312%2023.62368%201.95584%2031.77472%206.83008%2040.2432%204.08576%207.08608%2010.0352%2012.5952%2018.01216%2016.56832%2010.3424%205.13024%2020.50048%206.95296%2049.44896%206.95296h527.23712c28.94848%200%2039.1168-1.82272%2049.44896-6.9632%207.9872-3.95264%2013.9264-9.472%2018.01216-16.56832%205.07904-8.8064%206.84032-17.29536%206.84032-43.264V281.83552c0-25.96864-1.76128-34.44736-6.84032-43.264-4.08576-7.09632-10.0352-12.61568-18.01216-16.57856-9.9328-4.93568-19.712-6.8096-46.1824-6.94272h-26.368A92.20096%2092.20096%200%200%201%20665.6%20276.48H358.4a92.20096%2092.20096%200%200%201-86.91712-61.44zM686.08%20788.48a30.72%2030.72%200%200%201%200%2061.44H337.92a30.72%2030.72%200%200%201%200-61.44h348.16z%20m8.22272-377.01632a30.72%2030.72%200%201%201%2043.44832%2043.44832L506.05056%20686.61248a30.72%2030.72%200%200%201-43.44832%200L332.26752%20556.27776a30.72%2030.72%200%200%201%200-43.44832l1.31072-1.2288a30.72%2030.72%200%200%201%2042.1376%201.2288l108.60544%20108.61568zM665.6%20153.6H358.4a30.72%2030.72%200%200%200%200%2061.44h307.2a30.72%2030.72%200%200%200%200-61.44zM512%2071.68a10.24%2010.24%200%200%200-10.24%2010.24v10.24h20.48V81.92a10.24%2010.24%200%200%200-10.24-10.24z'%20fill='%23000000'%20p-id='3502'%3e%3c/path%3e%3c/svg%3e",y1=Object.freeze(Object.defineProperty({__proto__:null,default:b1},Symbol.toStringTag,{value:"Module"})),k1="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1752200265785'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='4294'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='16'%20height='16'%3e%3cpath%20d='M930.4%20337.3c-22.7-53.7-55.2-101.9-96.6-143.3-41.4-41.4-89.6-73.9-143.3-96.6C634.9%2073.9%20575.9%2062%20515.1%2062c-60.8%200-119.9%2011.9-175.5%2035.4-53.7%2022.7-101.9%2055.2-143.3%2096.6-41.4%2041.4-73.9%2089.6-96.6%20143.3-23.5%2055.6-35.4%20114.6-35.4%20175.5%200%2050.5%208.3%20100.1%2024.7%20147.4l66.1-22.9c-13.8-39.9-20.8-81.8-20.8-124.5%200-209.9%20170.8-380.7%20380.7-380.7%20209.9%200%20380.8%20170.8%20380.8%20380.7%200%2041.6-6.7%2082.5-19.8%20121.5l66.3%2022.3c15.6-46.2%2023.5-94.7%2023.5-143.9%200-60.8-11.9-119.8-35.4-175.4z'%20p-id='4295'%3e%3c/path%3e%3cpath%20d='M656.9%20422.2c0-76.9-62.6-139.5-139.5-139.5s-139.5%2062.6-139.5%20139.5%2062.6%20139.5%20139.5%20139.5%20139.5-62.6%20139.5-139.5z%20m-209%200c0-38.3%2031.2-69.5%2069.5-69.5s69.5%2031.2%2069.5%2069.5-31.2%2069.5-69.5%2069.5-69.5-31.2-69.5-69.5zM713.8%20627.8c-62-27.2-128.1-40.9-196.4-40.9-69%200-135.7%2014-198.2%2041.7-60.4%2026.7-114.1%2064.9-159.5%20113.3l-20.3%2021.7%2018.1%2023.6c41.2%2053.6%2094.8%2098%20155%20128.3%2063.2%2031.8%20131.3%2048%20202.6%2048%2071.9%200%20140.6-16.4%20204.2-48.8%2060.7-30.9%20114.5-76%20155.6-130.4l17.9-23.7-20.5-21.6c-45.3-47.6-98.6-85-158.5-111.2zM515.1%20893.5c-109%200-210.3-45.3-282.5-125.4%2077.7-71.9%20177.7-111.2%20284.8-111.2%20105.8%200%20204.9%2038.4%20282.2%20108.8-72.2%2081.6-174.3%20127.8-284.5%20127.8z'%20p-id='4296'%3e%3c/path%3e%3c/svg%3e",S1=Object.freeze(Object.defineProperty({__proto__:null,default:k1},Symbol.toStringTag,{value:"Module"})),C1="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1752200308077'%20class='icon'%20viewBox='0%200%201169%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='5263'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='18.265625'%20height='16'%3e%3cpath%20d='M787.333831%20588.946093a75.189984%2075.189984%200%200%200-75.093984%2075.092984%2075.189984%2075.189984%200%200%200%2075.093984%2075.093984%2075.165984%2075.165984%200%200%200%2075.067984-75.093984%2075.165984%2075.165984%200%200%200-75.067984-75.092984m0%20222.841953a147.919968%20147.919968%200%200%201-147.748968-147.748969c0-81.455982%2066.291986-147.747968%20147.748968-147.747968%2081.431983%200%20147.747968%2066.291986%20147.747968%20147.747968%200%2081.480982-66.315986%20147.748968-147.747968%20147.748969m89.452981%20102.106978c0.342%200.244%201.317%200.585%202.315999%200.585h0.122l71.484985-39.496992c-1.706-4.022999-9.605998-23.478995-9.605998-43.739991a113.858976%20113.858976%200%200%201%20107.739977-113.613975c0.853-4.729999%205.557999-31.524993%205.557998-51.639989s-4.704999-46.88399-5.558998-51.637989a113.858976%20113.858976%200%200%201-107.738977-113.565976c0-20.357996%207.923998-39.813991%209.605998-43.81299l-70.313985-39.057992-0.293-0.025a5.339999%205.339999%200%200%200-2.706%200.732%20196.753958%20196.753958%200%200%201-26.014994%2021.819995c-21.698995%2015.238997-42.153991%2022.967995-60.951987%2022.967995-18.919996%200-39.594991-7.874998-61.390987-23.405995a194.705958%20194.705958%200%200%201-26.160994-22.283995%205.777999%205.777999%200%200%200-2.729999-0.707h-0.245l-72.824985%2040.032992c1.706%204.046999%209.580998%2023.479995%209.580998%2043.73999A113.858976%20113.858976%200%200%201%20528.895886%20614.350088c-0.854%204.729999-5.509999%2031.524993-5.509998%2051.638989s4.655999%2046.90899%205.533998%2051.662989a113.858976%20113.858976%200%200%201%20107.763977%20113.589975c0%2020.334996-7.972998%2039.863991-9.679998%2043.788991l68.973985%2038.545992h0.146c1.024%200%201.95-0.365%202.317-0.585a200.849957%20200.849957%200%200%201%2026.428994-23.161995c22.088995-16.188997%2043.079991-24.429995%2062.414987-24.429995%2019.552996%200%2040.715991%208.387998%2062.950986%2024.917995%2014.920997%2011.068998%2025.258995%2022.185995%2026.550995%2023.575995m22.673995%20108.397976c-13.774997-0.025-27.135994-5.704999-35.765993-15.213996-11.775997-12.896997-49.005989-46.44599-79.530982-46.44599-30.280993%200-68.119985%2033.767993-78.993984%2045.54399-8.606998%209.386998-21.869995%2014.969997-35.498992%2014.969997-6.484999%200-12.604997-1.243-18.187996-3.706l-0.975-0.414-92.69698-51.833988-0.926-0.683a44.46999%2044.46999%200%200%201-14.920996-53.735989c0.049-0.146%208.532998-19.699996%208.532998-37.594992a98.376979%2098.376979%200%200%200-98.254979-98.254978h-3.900999c-15.505997%200-28.159994-13.799997-32.182993-35.108993-0.341-1.706-7.923998-42.178991-7.923999-74.044984%200-31.913993%207.557998-72.361984%207.899999-74.117984%204.119999-21.576995%2016.992996-35.449992%2032.816993-35.083993h3.266999a98.400979%2098.400979%200%200%200%2098.279979-98.303978c0-17.846996-8.484998-37.399992-8.558998-37.619992a44.34899%2044.34899%200%200%201%2015.067996-53.661989l0.95-0.658%2097.840979-53.759988%201.024-0.415c5.485999-2.364999%2011.507998-3.534999%2017.895996-3.534999%2013.604997%200%2026.891994%205.436999%2035.595992%2014.628997%2011.580998%2012.116997%2048.17699%2043.641991%2077.774984%2043.64199%2029.354994%200%2065.755986-30.914993%2077.287983-42.812991%208.654998-8.996998%2021.844995-14.335997%2035.302992-14.335997%206.509999%200%2012.653997%201.219%2018.285997%203.657l0.974999%200.414%2094.47698%2052.516988%200.95%200.658c16.895996%2011.751997%2023.332995%2034.889993%2014.945997%2053.735989-0.049%200.146-8.532998%2019.699996-8.532999%2037.545992a98.400979%2098.400979%200%200%200%2098.254979%2098.279978h3.291c15.774997-0.341%2028.719994%2013.506997%2032.816993%2035.107993%200.317%201.707%207.899998%2042.203991%207.899998%2074.069984%200%2031.889993-7.582998%2072.410984-7.948998%2074.117984-4.046999%2021.551995-16.992996%2035.424992-32.767993%2035.059993h-3.291a98.400979%2098.400979%200%200%200-98.254979%2098.278978c0%2017.846996%208.483998%2037.449992%208.556999%2037.619992a44.42199%2044.42199%200%200%201-15.017997%2053.710989l-0.927%200.683-96.133979%2053.100988-0.975%200.415a44.88499%2044.88499%200%200%201-17.846996%203.583999z%20m222.061952-705.339848a48.76199%2048.76199%200%201%201-97.523979%200V121.977194c0-13.457997-10.873998-24.453995-24.307995-24.453995h-877.859811c-13.262997%200-24.306995%2010.970998-24.306995%2024.453995v584.995874c0%2013.457997%2010.873998%2024.453995%2024.307995%2024.453995h219.500953a48.76199%2048.76199%200%201%201%200%2097.523979H48.907989A48.76199%2048.76199%200%200%201%200%20780.190052V48.76221C0%2021.822215%2021.893995%200.00022%2048.907989%200.00022h1023.706781a48.76199%2048.76199%200%200%201%2048.907989%2048.76199v268.189942zM219.427953%20975.23701c0-26.940994%2021.991995-48.76199%2048.981989-48.761989h194.607959a48.76199%2048.76199%200%201%201%200%2097.523979H268.433942a48.76199%2048.76199%200%200%201-49.005989-48.76199z'%20p-id='5264'%3e%3c/path%3e%3c/svg%3e",_1=Object.freeze(Object.defineProperty({__proto__:null,default:C1},Symbol.toStringTag,{value:"Module"})),O1="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1753759014120'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='3160'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='32'%20height='32'%3e%3cpath%20d='M567.466667%20908.8H128c-17.066667%200-34.133333-17.066667-34.133333-34.133333V290.133333c0-17.066667%20170.666667-187.733333%20187.733333-187.733333h285.866667c17.066667%200%2034.133333%2017.066667%2034.133333%2034.133333v733.866667c0%2021.333333-17.066667%2038.4-34.133333%2038.4z%20m-430.933334-42.666667h422.4V149.333333H285.866667c-21.333333%2017.066667-128%20123.733333-149.333334%20149.333334v567.466666zM567.466667%20149.333333zM887.466667%20256h-170.666667c-25.6%200-42.666667-21.333333-42.666667-46.933333V153.6c0-25.6%2017.066667-46.933333%2042.666667-46.933333h170.666667c25.6%200%2042.666667%2021.333333%2042.666666%2046.933333v51.2c0%2029.866667-17.066667%2051.2-42.666666%2051.2z%20m-166.4-106.666667V209.066667h170.666666V153.6v-4.266667h-170.666666z%20m-4.266667%200zM887.466667%20785.066667h-170.666667c-25.6%200-42.666667-17.066667-42.666667-38.4V307.2c0-21.333333%2017.066667-38.4%2042.666667-38.4h170.666667c25.6%200%2042.666667%2017.066667%2042.666666%2038.4v435.2c0%2025.6-17.066667%2042.666667-42.666666%2042.666667z%20m0-477.866667l-170.666667%204.266667v430.933333l170.666667-4.266667V307.2z'%20fill='%23707070'%20p-id='3161'%3e%3c/path%3e%3cpath%20d='M802.133333%20917.333333c-8.533333%200-12.8-4.266667-17.066666-8.533333L678.4%20768c-4.266667-8.533333-4.266667-17.066667%200-21.333333%204.266667-8.533333%2012.8-12.8%2017.066667-12.8h213.333333c8.533333%200%2017.066667%204.266667%2017.066667%2012.8%204.266667%208.533333%204.266667%2017.066667%200%2021.333333l-106.666667%20140.8c-4.266667%208.533333-8.533333%208.533333-17.066667%208.533333z%20m-64-140.8l64%2085.333334%2064-85.333334h-128zM290.133333%20337.066667l-179.2-25.6c-4.266667%200-12.8-4.266667-17.066666-12.8-4.266667-8.533333%200-17.066667%204.266666-21.333334L247.466667%20128c8.533333-8.533333%2017.066667-8.533333%2025.6-8.533333%208.533333%204.266667%2012.8%208.533333%2012.8%2017.066666l25.6%20174.933334c0%208.533333%200%2012.8-4.266667%2017.066666-4.266667%208.533333-8.533333%208.533333-17.066667%208.533334z%20m-128-59.733334l106.666667%2012.8-17.066667-102.4-89.6%2089.6zM448%20456.533333H302.933333c-12.8%200-21.333333-8.533333-21.333333-21.333333s8.533333-21.333333%2021.333333-21.333333h145.066667c12.8%200%2021.333333%208.533333%2021.333333%2021.333333s-8.533333%2021.333333-21.333333%2021.333333zM460.8%20593.066667h-256c-12.8%200-21.333333-8.533333-21.333333-21.333334s8.533333-21.333333%2021.333333-21.333333h256c12.8%200%2021.333333%208.533333%2021.333333%2021.333333s-8.533333%2021.333333-21.333333%2021.333334zM460.8%20704h-256c-12.8%200-21.333333-8.533333-21.333333-21.333333s8.533333-21.333333%2021.333333-21.333334h256c12.8%200%2021.333333%208.533333%2021.333333%2021.333334s-8.533333%2021.333333-21.333333%2021.333333z'%20p-id='3162'%3e%3c/path%3e%3c/svg%3e",M1=Object.freeze(Object.defineProperty({__proto__:null,default:O1},Symbol.toStringTag,{value:"Module"})),D1="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1753759021503'%20class='icon'%20viewBox='0%200%201170%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='3318'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='36.5625'%20height='32'%3e%3cpath%20d='M1165.165714%20493.714286L890.88%2018.285714a36.571429%2036.571429%200%200%200-31.451429-18.285714h-548.571428a36.571429%2036.571429%200%200%200-31.451429%2018.285714L5.12%20493.714286a36.571429%2036.571429%200%200%200%200%2036.571428l274.285714%20475.428572a36.571429%2036.571429%200%200%200%2031.451429%2018.285714h548.571428a36.571429%2036.571429%200%200%200%2031.451429-18.285714l274.285714-475.428572a36.571429%2036.571429%200%200%200%200-36.571428zM78.994286%20512l227.474285-393.508571%2073.142858%20128a950.857143%20950.857143%200%200%201-82.651429%20210.651428q14.628571%2057.782857%2021.942857%20103.862857%2019.748571-30.72%2037.302857-64.365714v268.434286h73.142857V338.651429l3.657143-11.702858%2065.828572%20111.908572v21.211428H512l13.897143%2023.405715H444.708571v89.965714h73.142858V541.257143h40.228571L585.142857%20585.142857H484.937143v58.514286h135.314286l17.554285%2029.257143a23.405714%2023.405714%200%200%201-27.062857%2024.137143h-73.142857q9.508571%2044.617143%2013.897143%2073.142857a915.748571%20915.748571%200%200%200%2099.474286%200%2065.828571%2065.828571%200%200%200%2032.182857-10.24L804.571429%20950.857143H332.068571z%20m785.554285%20393.508571L714.605714%20658.285714v-14.628571h122.148572V585.142857H670.72l-25.6-43.885714h151.405714v32.914286h73.142857V483.474286H610.742857l-13.897143-23.405715h225.28v-131.657142H517.851429l-13.897143-23.405715h365.714285v-57.782857H707.291429l-18.285715-49.737143-84.845714%2014.628572%2015.36%2035.108571H468.845714l-7.314285-12.434286c0-7.314286%204.388571-13.165714%206.582857-20.48l-21.942857-4.388571L365.714286%2073.142857h473.234285l253.074286%20438.857143z%20m-292.571428-496.64v-29.257142h173.348571v29.988571z'%20p-id='3319'%3e%3c/path%3e%3c/svg%3e",T1=Object.freeze(Object.defineProperty({__proto__:null,default:D1},Symbol.toStringTag,{value:"Module"})),A1="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1753759312255'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2472'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='32'%20height='32'%3e%3cpath%20d='M381.525333%20351.765333v160c0%2023.402667%203.136%2053.888%209.408%2091.456L426.666667%20731.690667V652.8l76.181333-0.021333V601.6h50.794667v-0.021333l-25.386667%200.021333v-51.2l25.386667-0.021333V499.2h25.386666v51.178667h25.408V448h25.386667v102.378667l25.408%200.021333v51.2l-76.202667-0.021333v0.021333h253.994667l-0.021333%2051.178667L960%20652.8v232.277333h64v42.666667H0v-42.666667h21.333333c72.746667-160%20109.141333-284.437333%20109.141334-373.333333v-160h251.050666zM921.898667%20789.333333H515.562667v25.6h406.336V789.333333z%20m0-51.2H515.562667v25.6h406.336v-25.6zM353.877333%20234.666667c0%2041.216-63.210667%2072.106667-109.482666%2059.626666-34.709333-9.386667-70.016%2013.162667-84.053334%2022.186667l-3.029333%201.92c-2.581333%201.621333-3.712%202.154667-3.072%200.896%2038.890667-75.52%2090.154667-60.309333%2090.154667-60.309333%2069.354667%2024.32%20109.482667-24.32%20109.482666-24.32z%20m64-85.333334c0%2051.52-79.018667%2090.154667-136.853333%2074.517334-57.856-15.637333-117.013333%2039.68-112.682667%2031.274666%2048.597333-94.4%20112.682667-75.392%20112.682667-75.392C367.722667%20210.133333%20417.877333%20149.333333%20417.877333%20149.333333z'%20fill='%23000000'%20p-id='2473'%3e%3c/path%3e%3c/svg%3e",B1=Object.freeze(Object.defineProperty({__proto__:null,default:A1},Symbol.toStringTag,{value:"Module"})),P1="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1752204045219'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='4010'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='16'%20height='16'%3e%3cpath%20d='M345.216%20664.192a315.84%20315.84%200%200%201%2093.12-224.64%20315.84%20315.84%200%200%201%20100.992-68.16%20315.392%20315.392%200%200%201%20123.648-24.96%20315.392%20315.392%200%200%201%20158.72%2042.368V124.8a24.768%2024.768%200%200%200-24.768-24.768H559.296a32.64%2032.64%200%200%201%200.704%206.976v133.184c0%2019.2-15.616%2034.816-34.816%2034.816H395.072a34.816%2034.816%200%200%201-34.752-34.816v-133.12a32.64%2032.64%200%200%201%200.64-6.976H123.456a24.768%2024.768%200%200%200-24.768%2024.832v676.544c0%2013.76%2011.072%2024.832%2024.768%2024.832h266.24a316.224%20316.224%200%200%201-44.416-162.112z%20m317.76-257.792a257.792%20257.792%200%201%200%200%20515.52%20257.792%20257.792%200%200%200%200-515.52z%20m112.256%20293.376a104.704%20104.704%200%200%201-107.328%2025.216l-68.48%2068.48a46.528%2046.528%200%200%201-65.728-65.664l68.48-68.48a104.512%20104.512%200%200%201%20140.8-129.28L675.904%20597.12l10.88%2042.88%2043.328%2011.328%2067.072-67.136c16.64%2038.336%209.216%2084.416-21.952%20115.584z%20m-220.16%2051.456a20.928%2020.928%200%201%200%2041.856%200%2020.928%2020.928%200%200%200-41.856%200z'%20p-id='4011'%3e%3c/path%3e%3c/svg%3e",E1=Object.freeze(Object.defineProperty({__proto__:null,default:P1},Symbol.toStringTag,{value:"Module"})),V1="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1752024926580'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='1794'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='16'%20height='16'%3e%3cpath%20d='M896%20810.666667h85.333333v85.333333H42.666667v-85.333333h85.333333V170.666667a42.666667%2042.666667%200%200%201%2042.666667-42.666667h426.666666a42.666667%2042.666667%200%200%201%2042.666667%2042.666667v640h85.333333V384h128a42.666667%2042.666667%200%200%201%2042.666667%2042.666667v384zM298.666667%20469.333333v85.333334h170.666666v-85.333334H298.666667z%20m0-170.666666v85.333333h170.666666V298.666667H298.666667z'%20fill='%23000000'%20p-id='1795'%3e%3c/path%3e%3c/svg%3e",z1=Object.freeze(Object.defineProperty({__proto__:null,default:V1},Symbol.toStringTag,{value:"Module"})),L1="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1753777755003'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2702'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='32'%20height='32'%3e%3cpath%20d='M393.6%20768l105.6-105.6L605.6%20768l46.4-46.4L545.6%20616l105.6-105.6-45.6-46.4-105.6%20106.4L393.6%20464l-46.4%2046.4L453.6%20616%20348%20722.4l45.6%2045.6z%20m420.8-608h-43.2V73.6H684V160H336.8V73.6H250.4V160h-43.2c-48%200-86.4%2039.2-86.4%2087.2l-0.8%20608c0%2048%2038.4%2087.2%2087.2%2087.2h608c48%200%2087.2-39.2%2087.2-87.2v-608c-0.8-48-40-87.2-88-87.2z%20m0%20695.2h-608V377.6h608v477.6z'%20fill=''%20p-id='2703'%3e%3c/path%3e%3c/svg%3e",N1=Object.freeze(Object.defineProperty({__proto__:null,default:L1},Symbol.toStringTag,{value:"Module"})),R1="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1753777764300'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2863'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='32'%20height='32'%3e%3cpath%20d='M709.6%20514.4l-46.4-46.4-212.8%20213.6-92.8-92.8-45.6%2046.4%20139.2%20139.2c-0.8-0.8%20258.4-260%20258.4-260z%20m108-351.2h-44v-88H686.4v87.2H337.6V75.2H250.4v87.2h-44c-48.8%200-87.2%2039.2-87.2%2087.2l-0.8%20611.2c0%2048%2039.2%2087.2%2087.2%2087.2h611.2c48%200%2087.2-39.2%2087.2-87.2V250.4c0.8-48-38.4-87.2-86.4-87.2z%20m0%20697.6H206.4v-480h611.2v480z'%20fill=''%20p-id='2864'%3e%3c/path%3e%3c/svg%3e",I1=Object.freeze(Object.defineProperty({__proto__:null,default:R1},Symbol.toStringTag,{value:"Module"})),H1="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1753758984014'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2517'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='32'%20height='32'%3e%3cpath%20d='M733.090909%20744.727273h-442.181818a34.909091%2034.909091%200%201%200%200%2069.818182h442.181818a34.909091%2034.909091%200%201%200%200-69.818182m-297.681454-229.818182a52.037818%2052.037818%200%200%200%2050.129454-38.050909L512%20381.928727l26.461091%2094.929455a52.037818%2052.037818%200%200%200%20100.119273%200.372363l70.283636-244.736a34.955636%2034.955636%200%200%200-29.672727-44.357818c-17.268364-2.048-33.117091%2010.146909-37.911273%2026.856728l-52.433455%20182.574545-43.659636-153.227636a35.025455%2035.025455%200%200%200-67.374545%200.186181l-42.658909%20153.041455-52.433455-182.574545c-4.794182-16.709818-20.642909-28.904727-37.911273-26.856728a34.955636%2034.955636%200%200%200-29.672727%2044.357818l70.283636%20244.736a52.014545%2052.014545%200%200%200%2049.989819%2037.678546M733.090909%20605.090909h-442.181818a34.909091%2034.909091%200%201%200%200%2069.818182h442.181818a34.909091%2034.909091%200%201%200%200-69.818182m139.636364%20116.363636a34.909091%2034.909091%200%200%200%2034.909091-34.90909V93.090909a69.818182%2069.818182%200%200%200-69.818182-69.818182H186.181818a69.818182%2069.818182%200%200%200-69.818182%2069.818182v837.818182a69.818182%2069.818182%200%200%200%2069.818182%2069.818182h651.636364a69.818182%2069.818182%200%200%200%2069.818182-69.818182v-81.454546a34.909091%2034.909091%200%201%200-69.818182%200V930.909091H186.181818V93.090909h651.636364v593.454546a34.909091%2034.909091%200%200%200%2034.909091%2034.90909'%20p-id='2518'%3e%3c/path%3e%3c/svg%3e",$1=Object.freeze(Object.defineProperty({__proto__:null,default:H1},Symbol.toStringTag,{value:"Module"})),W1="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1753759028609'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='3475'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='32'%20height='32'%3e%3cpath%20d='M867.288842%2064.648392%20157.782559%2064.648392c-16.954137%200-30.699186%2013.745049-30.699186%2030.699186L127.083373%20928.244122c0%2016.954137%2013.745049%2030.699186%2030.699186%2030.699186l709.506283%200c16.954137%200%2030.699186-13.745049%2030.699186-30.699186L897.988028%2095.347578C897.988028%2078.392418%20884.242979%2064.648392%20867.288842%2064.648392zM574.652945%20126.046764l131.487683%200%200%20273.587052-53.983495-32.547277c-10.112312-6.095835-22.824845-5.852288-32.694633%200.62524l-44.809555%2029.408797L574.652945%20126.046764zM513.254573%20126.046764l0%20327.943031c0%2011.281951%206.187933%2021.655206%2016.116049%2027.01426%204.562922%202.463098%209.577123%203.684926%2014.58109%203.684926%205.881964%200%2011.749602-1.688455%2016.84669-5.033643l76.202543-50.012044%2083.98888%2050.637284c9.478885%205.715165%2021.305235%205.884011%2030.946826%200.440022%209.640568-5.445012%2015.60235-15.658631%2015.60235-26.730805L767.539001%20126.046764l69.050656%200%200%20642.611733L188.481745%20768.658498%20188.481745%20126.046764%20513.254573%20126.046764zM188.481745%20897.544937l0-67.488067%20648.107911%200%200%2067.488067L188.481745%20897.544937z'%20p-id='3476'%3e%3c/path%3e%3c/svg%3e",F1=Object.freeze(Object.defineProperty({__proto__:null,default:W1},Symbol.toStringTag,{value:"Module"})),G1="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1752025080767'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2430'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='16'%20height='16'%3e%3cpath%20d='M976%2016H48A48%2048%200%200%200%200%2064v720a48%2048%200%200%200%2048%2048h928a48%2048%200%200%200%2048-48V64a48%2048%200%200%200-48-48zM303.12%20272.8a8%208%200%200%201%208-8%20165.76%20165.76%200%200%201%2094.4%2035.44%208%208%200%200%201%201.04%2011.76l-39.44%2040a8.8%208.8%200%200%201-11.28%200.88%2093.84%2093.84%200%200%200-44.32-16%209.12%209.12%200%200%201-8-8.8z%20m92.16%20298.16a169.52%20169.52%200%200%201-64.48%2026.56h-0.4a153.76%20153.76%200%200%201-27.28%202.4%20168%20168%200%200%201-33.36-332.08%208%208%200%200%201%209.44%208v57.2a8.8%208.8%200%200%201-6.16%208A96%2096%200%200%200%20303.12%20528a93.6%2093.6%200%200%200%2043.2-10.72%208.8%208.8%200%200%201%2010.4%201.36l39.52%2040a8%208%200%200%201-0.96%2012.32z%20m34.8-29.84a8%208%200%200%201-11.84%200l-39.04-39.04a9.12%209.12%200%200%201-0.48-11.84A94.8%2094.8%200%200%200%20384%20381.36a9.04%209.04%200%200%201%200.96-11.12l39.6-40a8%208%200%200%201%2012%200.64%20168%20168%200%200%201-6.24%20210.08z%20m190.56%208.56a33.44%2033.44%200%201%201-66.88%200V415.44a33.44%2033.44%200%201%201%2066.88%200z%20m133.68%200a33.44%2033.44%200%201%201-66.88%200V289.6a33.44%2033.44%200%201%201%2066.88%200z%20m133.68%200a33.44%2033.44%200%201%201-66.88%200V289.6a33.44%2033.44%200%201%201%2066.88%200zM800%20936H240a40%2040%200%200%200%200%2080h560a40%2040%200%200%200%200-80z'%20p-id='2431'%3e%3c/path%3e%3c/svg%3e",j1=Object.freeze(Object.defineProperty({__proto__:null,default:G1},Symbol.toStringTag,{value:"Module"})),q1="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1752025102384'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2587'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='16'%20height='16'%3e%3cpath%20d='M744.459278%20327.891539v-30.371913c0-19.963561%2016.323482-36.17329%2036.457671-36.173291h151.120177l1.82004-0.341257c20.191066%200%2036.514548%2016.152853%2036.514548%2036.17329v144.636285a319.075722%20319.075722%200%200%200-98.566529-72.34658%20408.371423%20408.371423%200%200%200-127.345907-41.576534z%20m-463.200121%20343.134372l-102.149732%201.080649v36.17329h105.107297c-2.27505%2027.186844-2.27505%2054.544317%200%2081.731161%205.061986%2035.661404%2013.820927%2070.69717%2026.276824%20104.538534H28.671763V74.735383C28.671763%2033.613859%2062.342499%200.284381%20103.919032%200.284381h526.617131c41.576533%200%2075.190393%2033.329478%2075.190393%2074.451002v250.994859s-198.896221-2.559431-319.360102%20121.828912a403.025056%20403.025056%200%200%200-105.107297%20223.466757zM179.109425%20149.243261H103.919032v75.929784h75.190393V149.243261z%20m0%20148.958879H103.919032v75.986661h75.190393V298.20214z%20m0%20149.015756H103.919032v75.929784h75.190393V447.217896z%20m150.32391-297.974635H254.299818v75.929784h75.133517V149.243261z%20m0%20148.958879H254.299818v75.986661h75.133517V298.20214z%20m0%20149.015756H254.299818v75.929784h75.133517V447.217896z%20m225.969312-111.363683s25.139299-7.621417%2039.415236-11.20462c14.219061-3.64008%2036.457672-7.223283%2036.457672-7.223283l-0.739392-17.745387H555.402647v36.17329z%20m-0.398134-110.681168h76.271042l-1.080649-75.929784H555.004513v75.929784zM404.623727%20373.44941h76.271042L479.81412%20298.20214H404.623727v75.24727z%20m0-148.276365h76.271042L479.81412%20149.243261H404.623727v75.929784z%20m281.082392%20185.13217c170.913109%200%20309.463637%20137.29925%20309.463636%20306.6767%200%20169.320575-138.550527%20306.619824-309.463636%20306.619825-170.969986%200-309.520513-137.29925-309.520513-306.619825%200-169.377451%20138.550527-306.676701%20309.520513-306.6767z%20m-127.744041%20481.684899L685.706119%20824.705519l128.82469%2067.625853-24.456785-142.816246%20104.367906-100.500321-144.124399-20.646076-64.611412-129.450328-63.530763%20129.791586-144.181275%2020.646076%20104.424781%20100.557197-24.456784%20142.076854z'%20p-id='2588'%3e%3c/path%3e%3c/svg%3e",U1=Object.freeze(Object.defineProperty({__proto__:null,default:q1},Symbol.toStringTag,{value:"Module"})),Y1="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1753854781584'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2732'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='32'%20height='32'%3e%3cpath%20d='M755.81%20727.284a73.167%2073.167%200%201%200-48.762%200v52.906h-73.143a24.381%2024.381%200%200%200-24.381%2024.381v48.762a24.381%2024.381%200%200%200%2024.38%2024.381h195.048a24.381%2024.381%200%200%200%2024.381-24.38V804.57a24.381%2024.381%200%200%200-24.38-24.38H755.81v-52.907z%20m146.285-233.521a291.255%20291.255%200%200%200-170.666-54.906c-161.573%200-292.572%20130.999-292.572%20292.572%200%2087.38%2038.303%20165.814%2099.06%20219.428h-342.87a73.143%2073.143%200%200%201-73.142-73.143V146.286a73.143%2073.143%200%200%201%2073.143-73.143h633.904a73.143%2073.143%200%200%201%2073.143%2073.143v347.477zM731.43%20975.238c-134.656%200-243.81-109.153-243.81-243.81S596.773%20487.62%20731.429%20487.62s243.81%20109.154%20243.81%20243.81-109.154%20243.81-243.81%20243.81z%20m-243.81-780.19a24.381%2024.381%200%200%200%200%2048.762H780.19a24.381%2024.381%200%200%200%200-48.762H487.62z%20m-243.81%200a24.381%2024.381%200%200%200-24.38%2024.38v146.286a24.381%2024.381%200%200%200%2024.38%2024.381h121.905a24.381%2024.381%200%200%200%2024.381-24.38V219.428a24.381%2024.381%200%200%200-24.38-24.381H243.81z%20m243.81%20146.285a24.381%2024.381%200%200%200%200%2048.762H780.19a24.381%2024.381%200%200%200%200-48.762H487.62zM243.809%20487.62a24.381%2024.381%200%200%200%200%2048.762h195.048a24.381%2024.381%200%200%200%200-48.762H243.81z%20m0%20146.286a24.381%2024.381%200%200%200%200%2048.762h97.524a24.381%2024.381%200%200%200%200-48.762H243.81z'%20p-id='2733'%3e%3c/path%3e%3c/svg%3e",K1=Object.freeze(Object.defineProperty({__proto__:null,default:Y1},Symbol.toStringTag,{value:"Module"})),X1="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1753766097595'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='3186'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='32'%20height='32'%3e%3cpath%20d='M201.813333%20776.32h620.373334a37.12%2037.12%200%200%200%2035.2-42.666667l-14.08-77.653333a71.04%2071.04%200%200%200-66.986667-56.32h-169.173333L593.066667%20512a208%20208%200%200%200%20130.56-193.92%20211.626667%20211.626667%200%200%200-423.04%200A207.786667%20207.786667%200%200%200%20430.933333%20512l-10.666666%2088.106667h-168.96a67.84%2067.84%200%200%200-66.986667%2056.32L170.666667%20733.866667a32.853333%2032.853333%200%200%200%2031.146666%2042.453333z%20m627.413334%2070.4H194.773333a35.413333%2035.413333%200%200%200%200%2070.613333h634.453334a35.413333%2035.413333%200%200%200%200-70.613333z'%20p-id='3187'%3e%3c/path%3e%3c/svg%3e",Q1=Object.freeze(Object.defineProperty({__proto__:null,default:X1},Symbol.toStringTag,{value:"Module"})),J1="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1751524519735'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2598'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='16'%20height='16'%3e%3cpath%20d='M798.72%20320v446.976H223.232V320H63.488v532.48c0%2041.472%2033.792%2075.264%2075.264%2075.264h745.472c41.472%200%2075.264-33.792%2075.264-75.264v-532.48H798.72z'%20p-id='2599'%3e%3c/path%3e%3cpath%20d='M608.256%20494.592z%20m-10.24-4.608z'%20p-id='2600'%3e%3c/path%3e%3cpath%20d='M819.2%2096.256H203.776c-41.472%200-75.264%2033.792-75.264%2075.264V286.72h128v448h510.464V286.72h128V171.008c-0.512-41.472-34.304-74.752-75.776-74.752z%20m-154.112%20493.056l-12.8%2012.8c-12.8%2012.8-33.28%2012.8-46.08%200L477.184%20473.088c-33.792%2011.776-72.704%204.608-99.328-22.528-27.136-27.136-34.304-66.048-22.528-99.84l38.4%2038.4c12.8%2012.8%2033.28%2012.8%2046.08%200l12.8-12.8c12.8-12.8%2012.8-33.28%200-46.08L414.208%20291.84c33.792-11.776%2072.704-4.096%2099.84%2022.528%2027.136%2027.136%2034.304%2066.048%2022.528%2099.84l128.512%20128.512c12.288%2013.312%2012.288%2033.792%200%2046.592z'%20p-id='2601'%3e%3c/path%3e%3c/svg%3e",Z1=Object.freeze(Object.defineProperty({__proto__:null,default:J1},Symbol.toStringTag,{value:"Module"})),e3="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1752201011725'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='4040'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='16'%20height='16'%3e%3cpath%20d='M567.68%2072.277l320.725%20170.667a94.805%2094.805%200%200%201%2050.262%2083.627v371.626c0%2035.158-19.414%2067.414-50.432%2083.798L567.467%20951.936a118.43%20118.43%200%200%201-110.934%200L135.765%20782.08a94.805%2094.805%200%200%201-50.432-83.797V326.656c0-35.072%2019.328-67.285%2050.262-83.755L456.32%2072.277a118.528%20118.528%200%200%201%20111.36%200z%20m123.35%20294.144L512.596%20469.333h-1.237L332.97%20366.421a42.667%2042.667%200%201%200-42.666%2073.899l179.03%20103.381v181.632a42.667%2042.667%200%200%200%2037.674%2042.368L512%20768a42.667%2042.667%200%200%200%2042.667-42.667V543.66L733.696%20440.32a42.667%2042.667%200%200%200-42.667-73.899z'%20p-id='4041'%3e%3c/path%3e%3c/svg%3e",t3=Object.freeze(Object.defineProperty({__proto__:null,default:e3},Symbol.toStringTag,{value:"Module"})),i3="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1752200860282'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2792'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='16'%20height='16'%3e%3cpath%20d='M1024%20806.4V25.6c0-12.8-12.8-25.6-25.6-25.6H25.6C12.8%200%200%2012.8%200%2025.6v780.8h435.2v166.4H236.8v51.2h556.8v-51.2H588.8v-166.4H1024zM320%20281.6c-12.8-12.8-19.2-25.6-32-32l44.8-76.8c44.8%2025.6%2096%2012.8%20121.6-32%2012.8-12.8%2012.8-32%2012.8-44.8h89.6c0%2051.2%2038.4%2083.2%2089.6%2083.2%2012.8%200%2032-6.4%2044.8-12.8l44.8%2076.8c-44.8%2025.6-57.6%2076.8-32%20115.2%2012.8%2012.8%2019.2%2025.6%2032%2032l-44.8%2076.8c-44.8-19.2-96-6.4-121.6%2038.4-12.8%2012.8-12.8%2025.6-12.8%2044.8H467.2c0-44.8-38.4-83.2-89.6-83.2-12.8%200-32%206.4-44.8%2012.8l-44.8-83.2c38.4-25.6%2051.2-76.8%2032-115.2zM102.4%20704v-51.2h825.6v51.2H102.4zM512%20416c51.2%200%2096-38.4%2096-89.6S569.6%20236.8%20512%20236.8c-51.2%200-96%2038.4-96%2089.6%200%2051.2%2044.8%2089.6%2096%2089.6z'%20p-id='2793'%3e%3c/path%3e%3c/svg%3e",n3=Object.freeze(Object.defineProperty({__proto__:null,default:i3},Symbol.toStringTag,{value:"Module"})),s3="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1753777785512'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='3343'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='32'%20height='32'%3e%3cpath%20d='M730.55%20249.234a29.038%2029.038%200%200%201-30.39-25.746v-120.1c0-16.421%2012.873-29.733%2028.672-29.77l1.719%200.037h20.955c15.982-0.658%2029.44%2012.105%2030.281%2028.635v121.271a28.891%2028.891%200%200%201-30.28%2027.429l-20.956-1.756z%20m-430.445%200a28.197%2028.197%200%200%201-32.768-23.369l-0.366-2.377v-120.1a28.855%2028.855%200%200%201%2027.136-30.245%2027.136%2027.136%200%200%201%205.998%200.439h20.444c16.018-0.659%2029.732%2012.032%2030.902%2028.635v121.271c-1.206%2016.42-14.994%2028.709-30.72%2027.465h-0.219l-20.407-1.719z%20m579.401-78.884c30.391-1.646%2056.32%2022.637%2057.93%2054.162a78.994%2078.994%200%200%201%200%205.888v655.653c-2.305%2032.768-29.002%2057.929-60.673%2057.16H168.777c-31.268%200.366-57.307-24.831-59.063-57.197V230.363c0-33.17%2025.93-60.086%2057.93-60.086a11.337%2011.337%200%200%201%201.133%200.036h62.354v53.212c0.878%2038.217%2031.488%2068.498%2068.352%2067.51h21.614c35.913-0.292%2065.06-30.28%2065.646-67.547v-51.456H662.6v51.493c0%2038.217%2029.879%2069.23%2066.78%2069.23h21.504c36.9%201.572%2067.986-28.124%2069.449-66.305l0.073-2.889v-51.529l59.1-1.682zM168.777%20886.016h709.669V371.09H168.777v514.926z'%20p-id='3344'%3e%3c/path%3e%3cpath%20d='M305.445%20687.799h69.01V570.55h151.698v-72.96H400.165a623.799%20623.799%200%200%201-64.732%2091.83%20220.965%20220.965%200%200%200-26.587-22.966%20441.82%20441.82%200%200%200%2091.282-147.164l35.145%209.436c-5.998%2013.531-12.288%2026.66-18.87%2039.35H711.24v29.514H560.823v72.96h143.14v28.708h-143.14v88.54H730.55v29.513H560.823v110.665h-34.706V717.312H305.445v-29.513z%20m102.875%200h117.87v-88.54H408.32v88.54z'%20p-id='3345'%3e%3c/path%3e%3c/svg%3e",o3=Object.freeze(Object.defineProperty({__proto__:null,default:s3},Symbol.toStringTag,{value:"Module"})),r3="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1753759007967'%20class='icon'%20viewBox='0%200%201099%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='3000'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='34.34375'%20height='32'%3e%3cpath%20d='M214.47633%20310.45989h112.733945a37.577982%2037.577982%200%201%201%200%2075.155963h-112.733945a37.577982%2037.577982%200%201%201%200-75.155963z%20m296.715743%200h112.733945a37.577982%2037.577982%200%201%201%200%2075.155963h-112.733945a37.577982%2037.577982%200%201%201%200-75.155963zM214.47633%20472.590092h112.733945a37.577982%2037.577982%200%201%201%200%2075.155963h-112.733945a37.577982%2037.577982%200%201%201%200-75.155963z%20m0%20162.111413h112.733945a37.577982%2037.577982%200%201%201%200%2075.155963h-112.733945a37.577982%2037.577982%200%201%201%200-75.155963z'%20fill='%23000000'%20p-id='3001'%3e%3c/path%3e%3cpath%20d='M426.641615%20837.124697H75.193541v-695.19266h108.036698v28.183486a37.577982%2037.577982%200%201%200%2075.155963%200v-28.183486h126.825688v28.183486a37.577982%2037.577982%200%201%200%2075.155963%200v-28.183486h126.844477v28.183486a37.577982%2037.577982%200%201%200%2075.155964%200v-28.183486h108.027302v177.912954a37.577982%2037.577982%200%201%200%2075.155964%200V141.941431c0-41.448514-33.726239-75.155963-75.155964-75.155963h-108.036697v-28.183486a37.577982%2037.577982%200%201%200-75.155963%200v28.183486h-126.825688v-28.183486a37.577982%2037.577982%200%201%200-75.155964%200v28.183486H258.386202v-28.183486a37.577982%2037.577982%200%201%200-75.155963%200v28.183486h-108.036698c-41.429725%200-75.155963%2033.716844-75.155963%2075.155963v695.192661c0%2041.429725%2033.726239%2075.155963%2075.155963%2075.155963h351.448074a37.577982%2037.577982%200%201%200%200-75.155963z'%20fill='%23000000'%20p-id='3002'%3e%3c/path%3e%3cpath%20d='M779.743119%20385.174312c-176.128%200-319.412844%20143.284844-319.412844%20319.412844%200%20176.128%20143.284844%20319.412844%20319.412844%20319.412844%20176.128%200%20319.412844-143.284844%20319.412844-319.412844%200-176.128-143.294239-319.412844-319.412844-319.412844z%20m0%20563.669725c-134.679486%200-244.256881-109.577394-244.25688-244.256881s109.577394-244.256881%20244.25688-244.256881%20244.256881%20109.577394%20244.256881%20244.256881-109.577394%20244.256881-244.256881%20244.256881z'%20fill='%23000000'%20p-id='3003'%3e%3c/path%3e%3cpath%20d='M814.54033%20864.293578v-54.957798H939.449541v-32.702239H814.54033v-74.225908h119.563743v-32.692844H814.54033v-54.441101H939.449541v-32.692844H687.395229L688.945321%20563.669725h-32.899523c-3.44778%2023.448661-8.389284%2040.706349-14.815119%2051.782458-4.255706%207.186789-11.320367%2013.546862-21.193982%2019.089615v36.40367c14.815119-4.359046%2026.417321-10.484257%2034.797211-18.375633%208.849615-8.248367%2016.834936-20.677284%2023.955964-37.296147h103.88433v54.431706H684.295046c-10.446679%200-19.869358%204.302679-28.249248%2012.908037-8.267156%208.718092-12.400734%2020.141798-12.400734%2034.289908v59.730202H620.036697v32.692844h162.637505V864.293578h31.866128zM779.743119%20779.743119H676.40367v-50.82422c0-8.586569%201.719193-14.730569%205.148183-18.422605%203.663853-3.945688%2010.136661-5.909138%2019.446606-5.909138H779.743119v75.155963z'%20fill='%23000000'%20p-id='3004'%3e%3c/path%3e%3c/svg%3e",l3=Object.freeze(Object.defineProperty({__proto__:null,default:r3},Symbol.toStringTag,{value:"Module"})),a3="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1753766077288'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2709'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='32'%20height='32'%3e%3cpath%20d='M728%20103.583H145.25c-46.35%201.35-83.25%2039.15-83.25%2085.5v675.45c0%2046.35%2036.9%2084.15%2083.25%2085.95H467.9c-47.7-60.3-73.35-135-73.35-211.95-1.8-185.4%20147.15-337.05%20332.55-338.85h0.45c27.9%200%2056.25%204.05%2083.25%2011.25v-222.75c-0.45-45.9-36.9-83.25-82.8-84.6z%20m-395.55%20391.95h-166.5v-77.85H332.9v77.85z%20m374.85-198.45H165.95v-75.6h540.9l0.45%2075.6z'%20p-id='2710'%3e%3c/path%3e%3cpath%20d='M727.55%20486.533c-131.85-2.25-240.3%20103.05-242.1%20234.45s103.05%20240.3%20234.45%20242.1%20240.3-103.05%20242.1-234.45v-4.05c1.35-130.05-103.5-237.15-234.45-238.05z%20m-42.75%20380.25a17.111%2017.111%200%200%201-24.3%200l-99.9-98.1c-5.85-5.85-5.85-14.85%200-20.7l21.15-20.7c5.85-5.85%2015.3-5.85%2021.15%200l68.4%2067.5%20195.3-198c5.85-5.85%2014.85-5.85%2020.7%200l20.7%2021.15c5.85%205.85%205.85%2015.3%200%2021.15l-223.2%20227.7z'%20p-id='2711'%3e%3c/path%3e%3c/svg%3e",c3=Object.freeze(Object.defineProperty({__proto__:null,default:a3},Symbol.toStringTag,{value:"Module"})),h3="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1753759318614'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2633'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='32'%20height='32'%3e%3cpath%20d='M990.263463%20965.191663c-4.679457-35.882495-21.525502-63.876334-54.148857-80.555577-19.705657-10.060083-40.144446-18.767768-60.584233-27.27569-39.090694-16.311678-78.048546-32.891038-119.212784-43.72021-21.693303-5.71523-42.533616-14.289074-61.302383-26.990028-25.737512-17.41537-42.082151-40.796673-43.285725-72.616981-1.253515-33.023881%206.283557-62.021531%2037.704336-80.254932%2014.623677-8.489943%2024.767661-21.827144%2030.935355-37.671376%205.615348-14.405935%2010.277825-29.196415%2015.69341-43.70323%201.102694-2.892574%203.108318-6.468338%205.648309-7.604991%2012.233509-5.498487%2021.4426-14.138252%2027.693196-25.687572%2010.714308-19.837501%2014.95928-41.18821%2011.983804-63.55871-1.471257-11.054905-4.914179-21.951996-13.570924-29.639889-4.11113-3.668654-4.880219-7.328319-4.780338-12.200548%200.200762-10.696329%200.066921-21.409639%200.066921-31.913196h-481.277892c0%2011.974815%200.166802%2023.289412-0.116862%2034.596018-0.07591%202.991456-0.876961%206.417398-2.532001%208.832537-8.114388%2011.849963-13.454063%2024.79363-14.723558%2039.016782-2.707792%2030.359038%205.364645%2057.591778%2030.667672%2075.675357%2010.135993%207.236428%2015.952104%2014.573736%2018.634925%2025.804433%200.794059%203.34304%202.030595%206.585199%203.167248%209.84334%208.198289%2023.548106%2018.333283%2045.726833%2039.985635%2060.517313%205.849071%203.994269%2010.68734%209.459794%2015.994053%2014.273093%207.720854%206.969744%2013.587904%2015.525609%2015.016213%2025.703552%202.005624%2014.306053%202.790694%2028.846829%203.33405%2043.336665%200.644237%2017.264549-5.381625%2032.439573-16.929945%2045.224428-19.746609%2021.861104-44.121735%2037.503574-71.472336%2047.280993-41.957299%2014.958281-84.758597%2027.625276-126.966599%2041.948309-26.089096%208.857508-52.228132%2017.882817-77.472229%2028.813868-35.589841%2015.408747-57.457937%2042.166051-61.444215%2081.992873-0.02497%200.267683-0.066921%200.534367-0.10088%200.80205-1.186594%2011.197735-3.618713%2022.26163-5.481507%2033.392445%200%208.373081%200%2016.747162%200.01698%2025.136224h435.041662c5.139911-39.677%2015.65146-78.098487%2027.459473-116.187368%201.762912-5.716229%201.194585-9.057271-3.30109-13.2533-6.233616-5.83309-11.54832-12.717935-16.746163-19.537856-5.071992-6.685081-5.047021-14.222153-1.63806-21.693303%206.55923-14.406934%2017.773946-24.634818%2030.425959-33.459365%201.62108-1.119674%204.203021-1.152635%206.342487-1.202576%201.378367-0.01698%202.766723%200.032961%204.162069%200.065922%200.442476-0.01698%200.885951-0.032961%201.303456-0.032961%203.776526-0.066921%207.588011%200.149823%2011.397499%200.267683%202.273307-0.065922%204.513653-0.183782%206.753001-0.551347%203.441923-0.552346%206.651121-0.585307%209.726478-0.384544%2015.241945-0.969851%2026.572523%206.350477%2037.369733%2016.895985%2021.358699%2020.874273%2022.394472%2038.890931%200.567328%2059.296759-7.42021%206.969744-7.603993%2012.585092-5.564409%2021.542482%208.20528%2035.933434%2015.408747%2072.132554%2022.962799%20108.248771h395.557435v-41.430922c-0.985832-5.81611-2.189406-11.5653-2.958496-17.38141z%20m-163.216658-613.325473c1.72196%200%203.475883-0.175792%205.164882%200.032961%204.96412%200.635248%206.834904-1.63806%206.233616-6.342487-1.6041-12.434271-2.390169-25.044333-5.01506-37.252872-4.612536-21.45059-17.681056-35.297188-39.708962-39.850793-1.437297-0.300644-2.841634-0.727139-4.295911-1.061743-7.470151-1.688-10.562488-5.915992-11.247676-13.988429-1.353397-16.144875-2.340228-32.707256-6.784963-48.140974-1.454277-5.005071-3.042396-9.785408-4.646496-14.464865a0.576317%200.576317%200%200%201-0.065922-0.166803c-34.762821-99.666938-109.201643-125.671134-149.780574-139.234067-5.196844-1.746931-7.620972%200.777079-9.225072%204.554604-3.408962%207.913626-7.253408%2015.794291-9.259032%2024.099453-10.227884%2042.625507-19.921402%2085.385854-29.815682%20128.095262-0.384544%201.62108-0.969851%203.184228-1.471257%204.771348-1.152635-1.796871-1.152635-3.276119-1.152634-4.746377%200.049941-56.222401%200.082902-112.451793%200.082901-168.682185%200-4.922169%200.133841-9.89428-0.434485-14.765509-1.538178-13.354181-11.949845-23.021729-25.336987-23.323372-13.068519-0.283664-26.147027-0.216743-39.207555%200.049941-10.637399%200.208753-18.542036%205.615348-22.478373%2015.266915-2.156446%205.297724-2.874595%2011.498379-2.891575%2017.29751-0.200762%2056.473104-0.108871%20112.945208-0.108871%20169.417314v7.270387c-2.172427-2.657852-2.732763-5.256773-3.32606-7.855694-8.348111-36.500762-16.336648-73.084426-25.244097-109.452346-3.083348-12.593083-8.31515-24.684759-12.901717-36.876317-1.538178-4.061189-4.028228-6.793952-9.668547-5.079983-90.240104%2027.492433-158.837845%20105.407138-161.153102%20199.951144-0.291655%2011.598261-1.762912%2013.17739-12.876747%2016.445519-2.841634%200.835011-5.674278%201.64605-8.514913%202.48206-14.189192%204.161071-23.92466%2013.295251-29.765741%2026.723344-7.446179%2017.113728-8.464973%2035.247247-8.941408%2054.826055%204.95513%200%208.849517%200%2012.734915%200.00799%20203.704697-0.006992%20407.408396-0.006992%20611.103105-0.006991z'%20p-id='2634'%3e%3c/path%3e%3c/svg%3e",u3=Object.freeze(Object.defineProperty({__proto__:null,default:h3},Symbol.toStringTag,{value:"Module"})),f3="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1753777770979'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='3024'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='32'%20height='32'%3e%3cpath%20d='M905.8%20974.5H116.1c-28.2%200-51.1-22.9-51.1-51.1V100.7c0-28.2%2022.9-51.1%2051.1-51.1h789.7c28.2%200%2051.1%2022.9%2051.1%2051.1v822.7c0%2028.1-22.9%2051.1-51.1%2051.1z%20m-760.8-80h731.9v-765H145v765z'%20p-id='3025'%3e%3c/path%3e%3cpath%20d='M673.6%20269.5H230.8c-22.1%200-40-17.9-40-40s17.9-40%2040-40h442.7c22.1%200%2040%2017.9%2040%2040s-17.8%2040-39.9%2040zM673.6%20434.4H230.8c-22.1%200-40-17.9-40-40s17.9-40%2040-40h442.7c22.1%200%2040%2017.9%2040%2040s-17.8%2040-39.9%2040zM433.5%20599.3H230.8c-22.1%200-40-17.9-40-40s17.9-40%2040-40h202.7c22.1%200%2040%2017.9%2040%2040s-17.9%2040-40%2040z'%20p-id='3026'%3e%3c/path%3e%3cpath%20d='M681.1%20833.5h-66.5v-44.8c-13.2-3.3-25.9-8.6-37.6-15.6l-31.7%2031.7-47-47%2031.7-31.7c-7-11.7-12.3-24.4-15.6-37.6h-44.8V622h44.8c3.3-13.2%208.6-25.9%2015.6-37.6l-31.7-31.7%2047-47%2031.7%2031.7c11.7-7%2024.4-12.3%2037.6-15.6V477h66.5v44.8c13.2%203.3%2025.9%208.6%2037.6%2015.6l31.7-31.7%2047%2047-31.7%2031.7c7%2011.7%2012.3%2024.4%2015.6%2037.6h44.8v66.5h-44.8c-3.3%2013.2-8.6%2025.9-15.6%2037.6l31.7%2031.7-47%2047-31.7-31.7c-11.7%207-24.4%2012.3-37.6%2015.6v44.8z%20m-36.5-30h6.5v-40l12.8-1.9c17.2-2.6%2033.8-9.4%2047.8-19.8l10.4-7.7%2028.3%2028.3%204.6-4.6-28.3-28.3%207.7-10.4c10.4-14.1%2017.3-30.6%2019.8-47.8l1.9-12.8h40V652h-40l-1.9-12.8c-2.6-17.2-9.4-33.8-19.8-47.8l-7.7-10.4%2028.3-28.3-4.6-4.6-28.3%2028.3-10.4-7.7c-14.1-10.4-30.6-17.3-47.8-19.8l-12.8-1.9v-40h-6.5v40l-12.8%201.9c-17.2%202.6-33.8%209.4-47.8%2019.8l-10.4%207.7-28.3-28.3-4.6%204.6L569%20581l-7.7%2010.4c-10.4%2014.1-17.3%2030.6-19.8%2047.8l-1.9%2012.8h-40v6.5h40l1.9%2012.8c2.6%2017.2%209.4%2033.8%2019.8%2047.8l7.7%2010.4-28.3%2028.3%204.6%204.6%2028.3-28.3%2010.4%207.7c14.1%2010.4%2030.6%2017.3%2047.8%2019.8l12.8%201.9v40z'%20p-id='3027'%3e%3c/path%3e%3cpath%20d='M647.9%20728.8c-40.5%200-73.5-33-73.5-73.5s33-73.5%2073.5-73.5%2073.5%2033%2073.5%2073.5-33%2073.5-73.5%2073.5z%20m0-117.1c-24%200-43.5%2019.5-43.5%2043.5s19.5%2043.5%2043.5%2043.5%2043.5-19.5%2043.5-43.5-19.5-43.5-43.5-43.5z'%20p-id='3028'%3e%3c/path%3e%3c/svg%3e",d3=Object.freeze(Object.defineProperty({__proto__:null,default:f3},Symbol.toStringTag,{value:"Module"})),p3="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1752025036400'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2116'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='16'%20height='16'%3e%3cpath%20d='M992.768%20859.940571v29.696c0%2044.470857-35.108571%2094.866286-78.848%2094.866286H122.733714C78.921143%20984.502857%2043.885714%20934.034286%2043.885714%20889.636571v-29.696c0-7.387429%205.851429-11.849143%2011.702857-11.849142h925.476572c5.851429-1.462857%2011.702857%204.388571%2011.702857%2011.849142zM204.653714%20218.038857v600.429714h-115.565714V266.971429c0-26.697143%2021.942857-49.005714%2048.274286-49.005715h67.291428z%20m694.637715%200a49.005714%2049.005714%200%200%201%2048.201142%2048.932572v551.497142H829.44V217.965714h69.851429zM759.954286%2048.274286c7.314286%200%2012.580571%204.096%2014.116571%2010.605714l0.512%204.242286V818.468571H257.828571V186.88H370.834286c7.314286%200%2012.507429-4.096%2014.116571-10.678857l0.438857-4.169143V48.274286h374.491429zM721.188571%20686.226286H316.854857c-8.777143%200-14.555429%2012.434286-14.555428%2023.04%200%209.069714%205.339429%2019.456%2011.483428%2022.235428l3.072%200.731429H719.725714c8.777143%200%2016.091429-10.166857%2016.091429-23.113143%200-12.141714-7.314286-22.893714-14.628572-22.893714z%20m0-133.412572H316.854857c-8.777143%200-14.555429%2012.434286-14.555428%2022.966857%200%209.142857%205.339429%2019.529143%2011.483428%2022.308572l3.072%200.731428H719.725714c8.777143%200%2016.091429-10.24%2016.091429-23.113142%200-12.141714-7.314286-22.893714-14.628572-22.893715z%20m-294.4-329.874285C326.948571%20324.388571%20398.994286%20497.371429%20539.794286%20497.371429c40.96%200%2081.92-16.603429%20111.323428-46.592a16.164571%2016.164571%200%200%200%202.779429-19.748572l-2.779429-3.510857-88.429714-91.428571%2088.502857-89.892572a16.237714%2016.237714%200%200%200%200-23.259428%20156.452571%20156.452571%200%200%200-224.402286%200z%20m187.392%201.462857l10.093715%206.875428L532.992%20324.022857a16.676571%2016.676571%200%200%200-2.779429%2020.333714l2.779429%203.657143%2091.282286%2092.745143c-21.942857%2017.115429-50.761143%2027.428571-79.433143%2027.428572-116.589714%200-174.08-142.409143-92.891429-224.841143a131.657143%20131.657143%200%200%201%20162.230857-18.870857z%20m75.264%2018.285714l-3.291428%202.486857-75.849143%2077.092572a14.409143%2014.409143%200%200%200-2.852571%2016.896l2.852571%203.876571L686.08%20420.132571c5.851429%205.924571%2016.091429%205.924571%2021.942857-1.462857a148.772571%20148.772571%200%200%200%200-171.958857%2014.628571%2014.628571%200%200%200-18.651428-3.949714z%20m4.022858%2035.108571c15.579429%2030.354286%2017.334857%2065.316571%205.193142%2096.694858l-5.12%2011.556571-52.662857-53.394286%2052.662857-54.857143zM357.741714%2048.274286v108.982857H259.291429c0-1.974857%200.658286-3.949714%201.462857-5.485714l1.462857-1.974858L348.891429%2051.273143a10.825143%2010.825143%200%200%201%204.388571-2.56l2.925714-0.438857h1.462857z'%20p-id='2117'%3e%3c/path%3e%3c/svg%3e",g3=Object.freeze(Object.defineProperty({__proto__:null,default:p3},Symbol.toStringTag,{value:"Module"})),m3="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1753777796588'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='3658'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='32'%20height='32'%3e%3cpath%20d='M768%20682.666667v-85.333334h42.666667V170.666667H256v428.16c6.954667-0.981333%2014.08-1.493333%2021.333333-1.493334H341.333333v85.333334H277.333333a64%2064%200%200%200%200%20128H426.666667v85.333333H277.333333A149.333333%20149.333333%200%200%201%20128%20746.666667V213.333333a128%20128%200%200%201%20128-128h597.333333a42.666667%2042.666667%200%200%201%2042.666667%2042.666667v725.333333a42.666667%2042.666667%200%200%201-42.666667%2042.666667h-170.666666v-85.333333h128v-128h-42.666667zM298.666667%20213.333333h85.333333v85.333334H298.666667V213.333333z%20m0%20128h85.333333v85.333334H298.666667V341.333333z%20m298.666666%20384v256h-85.333333v-256H384l170.666667-213.333333%20170.666666%20213.333333h-128z'%20fill='%23000000'%20p-id='3659'%3e%3c/path%3e%3c/svg%3e",v3=Object.freeze(Object.defineProperty({__proto__:null,default:m3},Symbol.toStringTag,{value:"Module"})),w3="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1753759785431'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2822'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='32'%20height='32'%3e%3cpath%20d='M959%20830.7V295.2c0-42.9-20.8-62.8-62.5-59.6H544.9c-13.3%200-24.2-3.2-32.6-9.5-9.9-15.8-25.4-35.5-42.5-61.8-18-27.7-35.3-35.8-57.5-35.8H141.1c-51.6%200.2-77.4%2023.4-77.4%2069.4v628.5c0%2052.4%2020.8%2075.5%2062.5%2069.1h778.2c43-0.3%2061.3-21.8%2054.6-64.8zM262.4%20670.1c-17.7%200-32-14.3-32-32s14.3-32%2032-32%2032%2014.3%2032%2032-14.3%2032-32%2032z%20m0-174.4c-17.7%200-32-14.3-32-32s14.3-32%2032-32%2032%2014.3%2032%2032-14.3%2032-32%2032z%20m531.2%20142.4c0%2017.7-14.3%2032-32%2032h-388c-17.7%200-32-14.3-32-32s14.3-32%2032-32h388c17.7%200%2032%2014.3%2032%2032z%20m0-174.6c0%2017.7-14.3%2032-32%2032h-388c-17.7%200-32-14.3-32-32s14.3-32%2032-32h388c17.7%200%2032%2014.3%2032%2032z'%20p-id='2823'%3e%3c/path%3e%3c/svg%3e",x3=Object.freeze(Object.defineProperty({__proto__:null,default:w3},Symbol.toStringTag,{value:"Module"})),b3="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1752023937641'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='1733'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='16'%20height='16'%3e%3cpath%20d='M604.672%20640c-45.568-78.848-129.536-127.488-220.672-128H128c-70.656%200-128%2057.344-128%20128v384h1024v-384h-419.328z'%20p-id='1734'%3e%3c/path%3e%3cpath%20d='M640%20576h256V128c0-70.656-57.344-128-128-128H256C185.344%200%20128%2057.344%20128%20128v320h256c100.864%200%20195.584%2047.616%20256%20128zM352.256%20198.656h320v104.448H352.256V198.656z'%20p-id='1735'%3e%3c/path%3e%3c/svg%3e",y3=Object.freeze(Object.defineProperty({__proto__:null,default:b3},Symbol.toStringTag,{value:"Module"})),k3="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1751524549947'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2910'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='16'%20height='16'%3e%3cpath%20d='M256%20170.496v170.496h512V170.496h85.504c23.552%200%2042.496%2018.944%2042.496%2042.496V896c0%2023.552-18.944%2042.496-42.496%2042.496H170.496c-23.552%200-42.496-18.944-42.496-42.496V212.992c0-23.552%2018.944-42.496%2042.496-42.496H256z%20m256%20513.024H256v83.456h256v-83.456zM768%20491.52H256v83.456h512V491.52zM341.504%2085.504h341.504V256H341.504V85.504z'%20p-id='2911'%3e%3c/path%3e%3c/svg%3e",S3=Object.freeze(Object.defineProperty({__proto__:null,default:k3},Symbol.toStringTag,{value:"Module"})),C3="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1753758992227'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2678'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='32'%20height='32'%3e%3cpath%20d='M733.090909%20744.727273h-442.181818a34.909091%2034.909091%200%201%200%200%2069.818182h442.181818a34.909091%2034.909091%200%201%200%200-69.818182zM440.389818%20238.987636h58.065455c30.254545%200%2051.549091%207.889455%2065.303272%2024.296728%2013.172364%2015.522909%2019.851636%2039.586909%2019.851637%2071.493818%200%2031.069091-7.330909%2054.295273-22.411637%2070.958545-15.150545%2016.686545-37.236364%2024.808727-67.514181%2024.808728h-53.294546v-191.557819z%20m53.294546%20261.376c50.362182%200%2090.461091-16.034909%20119.249454-47.732363%2026.856727-29.696%2040.494545-69.352727%2040.494546-117.853091%200-48.942545-12.264727-88.203636-36.305455-116.48-27.275636-32.605091-67.188364-49.128727-118.667636-49.128727h-90.670546c-20.503273%200-37.213091%2016.709818-37.213091%2037.236363V463.127273c0%2020.526545%2016.709818%2037.236364%2037.213091%2037.236363h85.899637zM733.090909%20605.090909h-442.181818a34.909091%2034.909091%200%201%200%200%2069.818182h442.181818a34.909091%2034.909091%200%201%200%200-69.818182z%20m139.636364%20116.363636a34.909091%2034.909091%200%200%200%2034.909091-34.90909V93.090909a69.818182%2069.818182%200%200%200-69.818182-69.818182H186.181818a69.818182%2069.818182%200%200%200-69.818182%2069.818182v837.818182a69.818182%2069.818182%200%200%200%2069.818182%2069.818182h651.636364a69.818182%2069.818182%200%200%200%2069.818182-69.818182v-81.454546a34.909091%2034.909091%200%201%200-69.818182%200V930.909091H186.181818V93.090909h651.636364v593.454546a34.909091%2034.909091%200%200%200%2034.909091%2034.90909z'%20p-id='2679'%3e%3c/path%3e%3c/svg%3e",_3=Object.freeze(Object.defineProperty({__proto__:null,default:C3},Symbol.toStringTag,{value:"Module"})),O3="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1753759086010'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='3951'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='32'%20height='32'%3e%3cpath%20d='M733.090909%20744.727273h-442.181818a34.909091%2034.909091%200%201%200%200%2069.818182h442.181818a34.909091%2034.909091%200%201%200%200-69.818182M651.636364%20498.618182a34.909091%2034.909091%200%200%200%2034.909091-34.909091V206.824727a53.806545%2053.806545%200%200%200-103.121455-21.550545l-71.144727%20163.002182-71.703273-163.118546a53.829818%2053.829818%200%200%200-49.268364-32.139636h-0.046545A53.806545%2053.806545%200%200%200%20337.454545%20206.824727v256.884364a34.909091%2034.909091%200%201%200%2069.818182%200v-180.782546l73.634909%20165.213091a35.002182%2035.002182%200%200%200%2064.046546-0.256l71.773091-164.375272v180.200727a34.909091%2034.909091%200%200%200%2034.909091%2034.909091M872.727273%20721.454545a34.909091%2034.909091%200%200%200%2034.909091-34.90909V93.090909a69.818182%2069.818182%200%200%200-69.818182-69.818182H186.181818a69.818182%2069.818182%200%200%200-69.818182%2069.818182v837.818182a69.818182%2069.818182%200%200%200%2069.818182%2069.818182h651.636364a69.818182%2069.818182%200%200%200%2069.818182-69.818182v-81.454546a34.909091%2034.909091%200%201%200-69.818182%200V930.909091H186.181818V93.090909h651.636364v593.454546a34.909091%2034.909091%200%200%200%2034.909091%2034.90909m-139.636364-116.363636h-442.181818a34.909091%2034.909091%200%201%200%200%2069.818182h442.181818a34.909091%2034.909091%200%201%200%200-69.818182'%20p-id='3952'%3e%3c/path%3e%3c/svg%3e",M3=Object.freeze(Object.defineProperty({__proto__:null,default:O3},Symbol.toStringTag,{value:"Module"})),D3="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1753759499798'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2663'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='32'%20height='32'%3e%3cpath%20d='M32%20992V640A96%2096%200%200%201%20128%20544h256a221.44%20221.44%200%200%201%20192%20112l9.6%2016h406.4v320z'%20p-id='2664'%3e%3c/path%3e%3cpath%20d='M384%20576a192%20192%200%200%201%20165.12%2096l18.56%2032H960v256H64v-320a64%2064%200%200%201%2064-64h256m0-64H128a128%20128%200%200%200-128%20128v384h1024v-384H604.8A256%20256%200%200%200%20384%20512z'%20p-id='2665'%3e%3c/path%3e%3cpath%20d='M640%20576h256V128a128%20128%200%200%200-128-128H256a128%20128%200%200%200-128%20128v320h256a320%20320%200%200%201%20256%20128zM352%20198.4h320v104.32h-320z'%20p-id='2666'%3e%3c/path%3e%3c/svg%3e",T3=Object.freeze(Object.defineProperty({__proto__:null,default:D3},Symbol.toStringTag,{value:"Module"})),A3="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1752130130786'%20class='icon'%20viewBox='0%200%201131%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2045'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='17.671875'%20height='16'%3e%3cpath%20d='M60.576386%202.134361c8.093301-1.603855%2016.371663-1.184386%2024.563662-1.233734%20289.125783%200%20578.239229%200%20867.365012%200.012337%2011.769831%200.012337%2023.539663%202.825253%2033.989398%208.278361%2019.110554%209.808193%2033.495904%2028.326554%2038.134747%2049.312386%201.961639%208.105639%201.924627%2016.495036%201.838265%2024.785735-20.529349-0.481157-41.071036-0.098699-61.612723-0.222073-274.320964%200.012337-548.654265-0.012337-822.987566%200.024675-20.183904-0.098699-40.12106%208.61147-53.889542%2023.342265-12.70747%2013.435373-20.072867%2031.768675-20.048193%2050.274699-0.012337%20199.556627%200.024675%20399.113253-0.024675%20598.66988-18.629398-1.44347-36.49388-10.375711-48.942265-24.304579C7.612145%20718.564241%200.962313%20702.081542%200%20685.253398V70.569639c0.986988-11.967229%204.404434-23.78641%2010.733494-34.038747C21.479325%2018.703422%2040.047036%205.77388%2060.576386%202.134361z'%20p-id='2046'%3e%3c/path%3e%3cpath%20d='M127.62988%20141.213301c13.583422-13.163952%2032.360867-20.726747%2051.274024-20.628048%20292.814651-0.012337%20585.616964-0.012337%20878.419277%200%2018.308627-0.086361%2036.49388%206.98294%2049.953927%2019.406651%2014.113928%2012.732145%2022.639036%2031.065446%2024.057832%2049.978602v614.844145c-0.900627%2015.471036-6.477108%2030.682988-16.260627%2042.736578-13.484723%2017.025542-34.791325%2027.536964-56.529735%2027.722024-61.588048%200.049349-123.163759%200-184.751807%200.024675-20.776096%2035.889349-41.478169%2071.828048-62.22959%20107.742072-5.699855%209.314699-10.091952%2019.764434-18.506024%2027.068145-12.288%2011.387373-30.201831%2016.174265-46.561157%2012.596433-14.311325-2.960964-27.142169-12.238651-34.482892-24.859759-23.589012-40.848964-47.153349-81.710265-70.767036-122.546891-154.118169-0.012337-308.236337%200.012337-462.354506-0.012338-20.751422%200.135711-41.280771-9.055614-55.06159-24.551325-12.250988-13.521735-19.147566-31.719325-18.962506-49.966265V194.843759c-0.160386-19.998843%208.278361-39.849639%2022.76241-53.630458m213.312771%20283.808386c-26.932434%202.109687-52.224%2018.01253-65.967808%2041.256096-11.535422%2019.024193-15.002217%2042.63788-9.672482%2064.215904%204.416771%2018.283952%2015.17494%2034.914699%2029.918073%2046.573494%2014.484048%2011.572434%2032.854361%2018.185253%2051.397397%2018.469012%2018.000193%200.41947%2036.062072-5.095325%2050.755856-15.495711%2015.026892-10.511422%2026.512964-25.994795%2032.151132-43.452145%205.564145-17.03788%205.564145-35.827663%200.012338-52.865542-5.897253-18.283952-18.209928-34.371855-34.248482-44.907952-15.878169-10.573108-35.371181-15.446361-54.346024-13.793156m270.138602%200c-27.22853%202.146699-52.754506%2018.407325-66.387277%2042.045686-11.819181%2019.974169-14.792482%2044.87094-8.204337%2067.102844%205.35441%2018.543036%2017.309301%2035.038072%2033.125783%2046.042988%2014.780145%2010.375711%2032.916048%2015.816482%2050.96559%2015.31065%2017.03788-0.357783%2033.903036-6.020627%2047.70853-16.001542%2014.656771-10.486747%2025.859084-25.723373%2031.410892-42.872289%205.576482-17.062554%205.576482-35.877012%200.024674-52.939566-5.90959-18.296289-18.24694-34.408867-34.322506-44.944964-15.865831-10.548434-35.346506-15.409349-54.321349-13.743807m270.15094%200.012337c-26.586988%202.109687-51.545446%2017.64241-65.375615%2040.404819-11.041928%2017.77812-15.039229%2039.713928-11.189976%2060.28029%203.627181%2020.122217%2014.891181%2038.702265%2030.929735%2051.360385%2026.179855%2021.306602%2065.30159%2024.501976%2094.590458%207.710843%2018.678747-10.338699%2033.212145-27.931759%2039.726265-48.26371%205.53947-17.025542%205.53947-35.790651-0.012337-52.816193-5.983614-18.567711-18.604723-34.877687-35.025735-45.413783-15.742458-10.227663-34.951711-14.915855-53.642795-13.262651z'%20p-id='2047'%3e%3c/path%3e%3c/svg%3e",B3=Object.freeze(Object.defineProperty({__proto__:null,default:A3},Symbol.toStringTag,{value:"Module"})),P3="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1753759479045'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2341'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='32'%20height='32'%3e%3cpath%20d='M554.41%20897.187c16.52%200%2029.913%2013.39%2029.913%2029.906%200%2016.281-13.013%2029.524-29.207%2029.899l-0.707%200.008H407.145c-16.52%200-29.913-13.39-29.913-29.907%200-16.28%2013.013-29.523%2029.207-29.898l0.706-0.008H554.41z%20m40.268-84.377c16.52%200%2029.913%2013.39%2029.913%2029.907%200%2016.28-13.013%2029.523-29.207%2029.898l-0.706%200.009H365.323c-16.52%200-29.913-13.39-29.913-29.907%200-16.281%2013.013-29.524%2029.207-29.899l0.706-0.008h229.355zM480%2069c189.986%200%20344%20153.982%20344%20343.927%200%20120.12-61.593%20225.858-154.926%20287.365l-2.205%2010.384c-1.519%207.084-3.529%2016.359-6.03%2027.826-5.927%2027.183-29.801%2046.65-57.546%2047.072H356.239c-28.52%200-53.076-20.128-58.666-48.09l-2.757-13.628c-3.321-16.19-5.226-24.448-5.715-24.775C196.791%20637.403%20136%20532.263%20136%20412.927%20136%20222.982%20290.014%2069%20480%2069z%20m-62.585%20133.938C316.255%20221.817%20266.292%20290.58%20260.3%20399.042c-0.911%2016.492%2011.722%2030.6%2028.218%2031.51%2016.495%200.912%2030.606-11.72%2031.517-28.211%204.58-82.907%2036.8-127.25%20108.358-140.605%2016.24-3.031%2026.947-18.65%2023.916-34.887-3.032-16.237-18.654-26.942-34.894-23.911z'%20p-id='2342'%3e%3c/path%3e%3c/svg%3e",E3=Object.freeze(Object.defineProperty({__proto__:null,default:P3},Symbol.toStringTag,{value:"Module"})),V3="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1753766090732'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='3028'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='32'%20height='32'%3e%3cpath%20d='M736%20256H320c-16%200-32%2016-32%2032s16%2032%2032%2032h416c16%200%2032-16%2032-32s-16-32-32-32zM736%20448H320c-16%200-32%2016-32%2032s16%2032%2032%2032h416c16%200%2032-16%2032-32s-16-32-32-32z'%20p-id='3029'%3e%3c/path%3e%3cpath%20d='M192%20160c0-35.2%2028.8-64%2064-64h544c35.2%200%2064%2028.8%2064%2064v512h96V64c0-35.2-28.8-64-64-64H160C124.8%200%2096%2028.8%2096%2064v608h96V160zM992%20672H64c-19.2%200-32%2012.8-32%2032v288c0%2019.2%2012.8%2032%2032%2032h928c19.2%200%2032-12.8%2032-32v-288c0-16-12.8-32-32-32z%20m-320%20224h-288v-96h288v96z'%20p-id='3030'%3e%3c/path%3e%3c/svg%3e",z3=Object.freeze(Object.defineProperty({__proto__:null,default:V3},Symbol.toStringTag,{value:"Module"})),L3="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1752200274113'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='4456'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='16'%20height='16'%3e%3cpath%20d='M751.4%20553.2c-42.5-38.5-92.1-67.1-145.5-84.6%2053.2-38.9%2087.8-101.8%2087.8-172.7C693.7%20178%20597.7%2082%20479.8%2082c-57.1%200-110.8%2022.2-151.2%2062.6C288.2%20185%20266%20238.7%20266%20295.8s22.2%20110.8%2062.6%20151.2c7.8%207.8%2016.2%2015%2025%2021.4-10.5%203.5-20.9%207.3-31.2%2011.7-48.2%2020.4-91.4%2049.5-128.5%2086.7s-66.3%2080.4-86.7%20128.5c-21.1%2049.9-31.8%20102.9-31.8%20157.4%200%2024.8%202.3%2049.7%206.8%2073.9l68.8-12.7c-3.7-20-5.6-40.6-5.6-61.2%200-184.4%20150-334.4%20334.4-334.4%2083.2%200%20163%2030.8%20224.5%2086.6l47.1-51.7zM479.8%20152c79.3%200%20143.9%2064.5%20143.9%20143.9s-64.5%20143.9-143.9%20143.9S336%20375.2%20336%20295.9%20400.5%20152%20479.8%20152zM726.3%20665.3h213.8v70H726.3zM503%20831.6h437.1v70H503z'%20p-id='4457'%3e%3c/path%3e%3c/svg%3e",N3=Object.freeze(Object.defineProperty({__proto__:null,default:L3},Symbol.toStringTag,{value:"Module"})),R3="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1752023723226'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='1733'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='16'%20height='16'%3e%3cpath%20d='M34.816%2080.896v862.208c0%2044.544%2036.352%2080.896%2080.896%2080.896h38.912V0h-38.912C71.168%200%2034.816%2036.352%2034.816%2080.896zM908.288%200H839.68v252.928l-126.976-125.952L586.24%20250.88l-0.512-250.88H244.736v1024h663.552c44.544%200%2080.896-36.352%2080.896-80.896V80.896c0-44.544-36.352-80.896-80.896-80.896z%20m-66.048%20681.472H413.696v-57.856h429.056v57.856z%20m0-115.712H413.696V507.904h429.056v57.856z'%20p-id='1734'%3e%3c/path%3e%3c/svg%3e",I3=Object.freeze(Object.defineProperty({__proto__:null,default:R3},Symbol.toStringTag,{value:"Module"})),H3="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1753777777175'%20class='icon'%20viewBox='0%200%201170%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='3184'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='36.5625'%20height='32'%3e%3cpath%20d='M743.893333%200H45.013333A45.226667%2045.226667%200%200%200%200%2045.013333v805.973334A45.226667%2045.226667%200%200%200%2045.013333%20896h698.88a45.226667%2045.226667%200%200%200%2045.013334-45.013333V45.013333A45.226667%2045.226667%200%200%200%20743.893333%200z%20m-682.666666%2061.653333h666.026666v772.693334H61.866667z'%20p-id='3185'%3e%3c/path%3e%3cpath%20d='M464.64%20279.466667h132.266667a27.946667%2027.946667%200%200%200%2027.946666-27.733334%20160.426667%20160.426667%200%200%200-160.213333-160%2027.306667%2027.306667%200%200%200-19.626667%208.106667%2028.16%2028.16%200%200%200-8.106666%2019.626667v132.266666a27.733333%2027.733333%200%200%200%208.106666%2019.626667%2027.52%2027.52%200%200%200%2019.626667%208.106667z%20m100.906667-55.68h-73.173334V150.826667a105.386667%20105.386667%200%200%201%2073.173334%2072.96zM598.186667%20580.266667H185.173333a30.933333%2030.933333%200%200%200-26.666666%2046.293333%2031.36%2031.36%200%200%200%2026.666666%2015.36h413.013334a30.933333%2030.933333%200%201%200%200-61.653333zM598.186667%20711.893333H185.173333a30.933333%2030.933333%200%200%200-26.666666%2046.293334%2031.36%2031.36%200%200%200%2026.666666%2015.36h413.013334a30.933333%2030.933333%200%201%200%200-61.653334z'%20p-id='3186'%3e%3c/path%3e%3cpath%20d='M375.893333%20533.76a192%20192%200%200%200%20193.28-193.28%2027.733333%2027.733333%200%200%200-27.733333-27.733333h-137.813333V174.933333a27.733333%2027.733333%200%200%200-27.733334-27.733333%20193.28%20193.28%200%201%200%200%20386.56zM347.946667%20205.44v135.04a27.946667%2027.946667%200%200%200%2027.946666%2027.733333h135.04a137.813333%20137.813333%200%201%201-162.986666-162.773333z'%20p-id='3187'%3e%3c/path%3e%3c/svg%3e",$3=Object.freeze(Object.defineProperty({__proto__:null,default:H3},Symbol.toStringTag,{value:"Module"})),W3="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1753766068495'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2552'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='32'%20height='32'%3e%3cpath%20d='M816%20161H208c-44.183%200-80%2035.817-80%2080v542c0%2044.183%2035.817%2080%2080%2080h608c44.183%200%2080-35.817%2080-80V241c0-44.183-35.817-80-80-80zM325.379%20516.243l55.154%2055.154c12.497%2012.497%2012.497%2032.758%200%2045.255s-32.758%2012.497-45.255%200l-59.397-59.396-22.627-22.628c-12.497-12.497-12.497-32.758%200-45.255l22.627-22.627%2059.397-59.397c12.497-12.496%2032.758-12.496%2045.255%200%2012.497%2012.497%2012.497%2032.759%200%2045.255l-55.154%2055.154a6%206%200%200%200%200%208.485z%20m263.065-84.345L492.65%20621.021c-7.986%2015.767-27.24%2022.073-43.006%2014.088s-22.073-27.24-14.087-43.007l95.793-189.123c7.985-15.766%2027.24-22.073%2043.006-14.087%2015.766%207.985%2022.073%2027.24%2014.088%2043.006z%20m182.302%20102.729l-22.627%2022.628-59.397%2059.396c-12.497%2012.497-32.758%2012.497-45.255%200s-12.497-32.758%200-45.255l55.154-55.154a6%206%200%200%200%200-8.485l-55.154-55.154c-12.497-12.496-12.497-32.758%200-45.255%2012.497-12.496%2032.758-12.496%2045.255%200l59.397%2059.397%2022.627%2022.627c12.497%2012.498%2012.497%2032.758%200%2045.255z'%20p-id='2553'%3e%3c/path%3e%3c/svg%3e",F3=Object.freeze(Object.defineProperty({__proto__:null,default:W3},Symbol.toStringTag,{value:"Module"})),G3="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1752200066150'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='1884'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='16'%20height='16'%3e%3cpath%20d='M381.3%2087.3h-238C99.7%2087.3%2064%20123%2064%20166.7v238c0%2043.6%2035.7%2079.3%2079.3%2079.3h238c43.6%200%2079.3-35.7%2079.3-79.3v-238c0.1-43.7-35.6-79.4-79.3-79.4zM381.3%20563.3h-238C99.7%20563.3%2064%20599%2064%20642.7v238c0%2043.6%2035.7%2079.3%2079.3%2079.3h238c43.6%200%2079.3-35.7%2079.3-79.3v-238c0.1-43.7-35.6-79.4-79.3-79.4zM857.3%20563.3h-238c-43.6%200-79.3%2035.7-79.3%2079.3v238c0%2043.6%2035.7%2079.3%2079.3%2079.3h238c43.6%200%2079.3-35.7%2079.3-79.3v-238c0.1-43.6-35.6-79.3-79.3-79.3zM936.8%20229.6L794.4%2087.2c-30.9-30.9-81.3-30.9-112.2%200L539.8%20229.6c-30.9%2030.9-30.9%2081.3%200%20112.2l142.4%20142.4c30.9%2030.9%2081.3%2030.9%20112.2%200l142.4-142.4c30.9-30.9%2030.9-81.4%200-112.2z'%20p-id='1885'%3e%3c/path%3e%3c/svg%3e",j3=Object.freeze(Object.defineProperty({__proto__:null,default:G3},Symbol.toStringTag,{value:"Module"})),q3="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1753766544167'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2552'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='32'%20height='32'%3e%3cpath%20d='M771.584%20590.336c-116.224%200-209.92%2094.208-209.92%20209.92s94.208%20209.92%20209.92%20209.92c116.224%200%20209.92-94.208%20209.92-209.92s-93.696-209.92-209.92-209.92z%20m-122.88%20217.088c0%208.192-6.656%2014.336-14.336%2014.336-8.192%200-14.336-6.656-14.336-14.336%200-55.808%2045.568-101.376%20101.376-101.376h64l-43.52-31.744c-6.656-4.608-7.68-13.824-3.072-19.968%204.608-6.656%2013.824-7.68%2020.48-3.072l66.56%2048.128c14.336%2010.752%2014.336%2032.256%200%2042.496l-66.56%2048.128c-2.56%202.048-5.632%202.56-8.704%202.56-6.144%200-11.776-4.096-13.824-10.24-2.048-6.144%200-12.288%205.12-16.384l43.52-31.744h-64c-40.448%201.024-72.704%2033.28-72.704%2073.216z%20m166.4%2087.04h-64l43.52%2031.744c5.12%203.584%207.168%2010.24%205.12%2016.384-2.048%206.144-7.68%2010.24-13.824%2010.24-3.072%200-6.144-1.024-8.704-2.56l-66.56-48.128c-14.336-10.752-14.336-32.256%200-42.496l66.56-48.128c6.656-4.608%2015.36-3.072%2020.48%203.072%204.608%206.656%203.072%2015.36-3.072%2019.968l-43.52%2031.744h64c39.936%200%2072.192-32.256%2072.192-72.192%200-8.192%206.656-14.336%2014.336-14.336%208.192%200%2014.336%206.656%2014.336%2014.336%200.512%2054.784-45.056%20100.352-100.864%20100.352z'%20p-id='2553'%3e%3c/path%3e%3cpath%20d='M724.48%2013.824H174.08C101.376%2013.824%2042.496%2072.704%2042.496%20145.408v703.488c0%2072.704%2058.88%20132.096%20132.096%20132.096H593.92c-44.032-46.08-71.168-108.032-71.168-176.64%200-140.8%20114.176-254.976%20254.976-254.976%2027.648%200%2054.272%204.608%2079.36%2012.8V145.408c-1.024-72.704-59.904-131.584-132.608-131.584zM414.208%20850.432H260.096c-19.456%200-34.816-15.872-34.816-34.816s15.872-34.816%2034.816-34.816h154.112c19.456%200%2034.816%2015.872%2034.816%2034.816s-15.36%2034.816-34.816%2034.816z%20m0-153.088H260.096c-19.456%200-34.816-15.872-34.816-34.816%200-19.456%2015.872-34.816%2034.816-34.816h154.112c19.456%200%2034.816%2015.872%2034.816%2034.816%200%2018.944-15.36%2034.816-34.816%2034.816zM624.64%20324.608c-23.04%2022.528-46.592%2045.056-69.632%2068.096%205.12%2029.184%2010.24%2058.368%2014.848%2087.552%201.536%207.68%203.072%2015.872-0.512%2023.04-5.632%2012.288-21.504%2017.408-33.28%2011.776-28.672-15.36-57.856-30.208-86.528-45.568-28.672%2014.848-57.344%2030.208-86.016%2045.056-8.192%204.096-18.432%203.584-25.6-1.536-7.68-5.632-12.288-15.36-10.24-25.088%205.632-31.744%2010.752-63.488%2016.384-95.232-20.992-20.992-42.496-41.472-64-62.464-3.584-3.584-8.192-7.168-10.24-11.776-4.096-8.192-3.584-18.432%202.048-25.6%204.096-5.632%2010.24-9.216%2016.896-10.24L384%20268.8c14.336-29.184%2028.672-58.368%2043.52-87.552%203.584-6.656%2010.24-11.776%2017.92-12.8%207.68-1.536%2016.384%201.536%2021.504%207.168%203.072%203.072%205.12%207.168%206.656%2011.264%2013.312%2027.136%2026.624%2053.76%2039.936%2080.896%200.512%201.536%202.56%201.024%203.584%201.536l93.696%2013.824c11.776%201.536%2021.504%2012.8%2020.992%2025.088-0.512%205.632-3.072%2011.776-7.168%2016.384z'%20p-id='2554'%3e%3c/path%3e%3c/svg%3e",U3=Object.freeze(Object.defineProperty({__proto__:null,default:q3},Symbol.toStringTag,{value:"Module"})),Y3="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1753766865378'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='11941'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='32'%20height='32'%3e%3cpath%20d='M853.339798%208.145455h-682.666667A72.04202%2072.04202%200%200%200%2098.682828%2080.161616v863.676768a72.04202%2072.04202%200%200%200%2071.977374%2072.016161h682.666667a72.04202%2072.04202%200%200%200%2071.990303-72.016161V80.161616a72.04202%2072.04202%200%200%200-71.977374-72.016161zM777.470707%2080.161616h39.925657a35.956364%2035.956364%200%200%201%2035.995151%2035.995152v791.725252A35.956364%2035.956364%200%200%201%20817.344646%20943.838384H206.655354a35.956364%2035.956364%200%200%201-35.995152-35.995152V116.11798A35.956364%2035.956364%200%200%201%20206.655354%2080.161616h426.808888m219.875556%20827.720404'%20p-id='11942'%3e%3c/path%3e%3cpath%20d='M727.369697%20655.954747h-431.838384a35.995152%2035.995152%200%201%200%200%2071.977374h431.838384a35.995152%2035.995152%200%201%200%200-71.977374z%20m0-215.919191h-431.838384a35.982222%2035.982222%200%201%200%200%2071.977373h431.838384a35.982222%2035.982222%200%201%200%200-71.977373zM295.505455%20296.080808h215.919191a35.982222%2035.982222%200%200%200%200-71.977374h-215.919191a35.982222%2035.982222%200%201%200%200%2071.977374z%20m0%200M639.709091%20222.926869l2.029899-5.288081%2019.083636-48.536566c4.473535-11.468283%2016.252121-18.967273%2029.659798-18.967273a31.030303%2031.030303%200%200%201%2029.246061%2019.39394L738.010505%20218.505051l2.029899%205.30101%209.748687%200.439596%2012.192323%200.439596%200.814546-145.583839a10.343434%2010.343434%200%200%200-3.65899-7.990303%2012.101818%2012.101818%200%200%200-8.533334-3.090101L630.774949%2067.232323c-6.464646%200-12.179394%204.861414-12.179393%2011.028687l-0.814546%20145.596768h12.179394z'%20p-id='11943'%3e%3c/path%3e%3cpath%20d='M789.999192%20245.010101l-36.964849-0.814545-10.96404-0.400809-10.96404-0.413737-9.347879-0.400808h-4.460606l-22.742626-63.353535a6.606869%206.606869%200%200%200-12.192324%200l-21.979798%2057.263838-2.430707%206.089697h-35.710707l-36.964848%200.400808a6.244848%206.244848%200%200%200-6.089697%204.059798%205.973333%205.973333%200%200%200%202.430707%206.904243l57.276767%2041.024646-21.527272%2064.18101a5.986263%205.986263%200%200%200%202.430707%206.904242%203.090101%203.090101%200%200%200%202.029899%200.814546h4.059798a2.107475%202.107475%200%200%200%201.629091-0.814546l59.707474-38.180202%2059.306667%2038.994748a6.529293%206.529293%200%200%200%203.65899%201.215353%207.757576%207.757576%200%200%200%204.059798-1.215353%205.805253%205.805253%200%200%200%202.430707-6.904242l-20.686869-64.646465%2058.078384-40.210101a6.606869%206.606869%200%200%200%202.430707-6.904243%2010.252929%2010.252929%200%200%200-6.464646-3.658989z%20m0%200'%20p-id='11944'%3e%3c/path%3e%3c/svg%3e",K3=Object.freeze(Object.defineProperty({__proto__:null,default:Y3},Symbol.toStringTag,{value:"Module"})),X3="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1752024794809'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='1891'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='16'%20height='16'%3e%3cpath%20d='M730.2%2045.8H72c-41.1%200-72%2030.9-72%2072v776.5c0%2041.1%2030.9%2077.2%2072%2077.2h447.3c-10.3-15.5-20.6-41.1-20.6-61.7v-41.1c0-61.7%2051.4-118.2%20118.2-118.2h10.3l46.2-56.5c-15.5-15.5-30.9-35.9-35.9-61.7C606.6%20550%20653%20457.5%20740.3%20431.7c15.5-5.2%2035.9-10.3%2051.4-10.3h15.5V112.6c0-36-35.9-66.8-77-66.8zM179.9%20236H365c20.6%200%2035.9%2015.5%2035.9%2035.9%200%2020.6-15.5%2035.9-35.9%2035.9H179.9c-20.6%200-35.9-15.5-35.9-35.9-0.1-20.4%2015.3-35.9%2035.9-35.9z%20m298.2%20498.8H179.9c-20.6%200-35.9-15.5-35.9-35.9%200-20.6%2015.5-35.9%2035.9-35.9h303.3c20.6%200%2035.9%2015.5%2035.9%2035.9-4.9%2015.4-20.4%2035.9-41%2035.9z%20m56.7-215.9H179.9c-20.6%200-35.9-15.5-35.9-35.9%200-20.6%2015.5-35.9%2035.9-35.9h354.9c20.6%200%2035.9%2015.5%2035.9%2035.9s-15.4%2035.9-35.9%2035.9z'%20p-id='1892'%3e%3c/path%3e%3cpath%20d='M966.7%20806.8h-41.1L822.8%20688.5c56.5-20.6%2087.5-77.2%2066.9-133.7-15.5-46.2-56.5-72-102.8-72-10.3%200-20.6%200-35.9%205.2-56.5%2020.6-87.5%2077.2-66.9%20133.7%2010.3%2030.9%2035.9%2056.5%2066.9%2066.9L648.1%20806.8h-30.9c-35.9%200-61.7%2025.8-61.7%2061.7v35.9c0%2035.9%2030.9%2061.7%2061.7%2061.7h344.6c35.9%200%2061.7-25.8%2061.7-61.7v-35.9c4.9-30.8-25.9-61.7-56.8-61.7z'%20p-id='1893'%3e%3c/path%3e%3c/svg%3e",Q3=Object.freeze(Object.defineProperty({__proto__:null,default:X3},Symbol.toStringTag,{value:"Module"})),J3="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1752200287229'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='4780'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='16'%20height='16'%3e%3cpath%20d='M878.4%20243.5h-91.2v-41.2c0-58.6-47.7-106.2-106.2-106.2H354.2c-58.6%200-106.2%2047.7-106.2%20106.2v41.2h-91.2c-43.2%200-78.4%2035.1-78.4%2078.4V856c0%2043.2%2035.1%2078.4%2078.4%2078.4h721.5c43.2%200%2078.4-35.1%2078.4-78.4V321.8c0-43.2-35.1-78.3-78.3-78.3zM318%20202.3c0-20%2016.2-36.2%2036.2-36.2H681c20%200%2036.2%2016.3%2036.2%2036.2v41.2H318v-41.2zM156.8%20313.5h721.5c4.6%200%208.4%203.7%208.4%208.4V554H692.4c-14.8-45.3-57.4-78.2-107.6-78.2H450.4c-50.2%200-92.9%2032.9-107.6%2078.2H148.5V321.8c0-4.6%203.7-8.3%208.3-8.3zM628%20588.9c0%2023.8-19.4%2043.2-43.2%2043.2H450.4c-23.8%200-43.2-19.4-43.2-43.2%200-23.8%2019.4-43.2%2043.2-43.2h134.3c23.9%200%2043.3%2019.4%2043.3%2043.2z%20m250.4%20275.5H156.8c-4.6%200-8.4-3.7-8.4-8.4V623.9h194.3c14.8%2045.3%2057.4%2078.2%20107.6%2078.2h134.3c50.2%200%2092.9-32.9%20107.6-78.2h194.3V856c0.2%204.6-3.5%208.4-8.1%208.4z'%20p-id='4781'%3e%3c/path%3e%3c/svg%3e",Z3=Object.freeze(Object.defineProperty({__proto__:null,default:J3},Symbol.toStringTag,{value:"Module"})),eu="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1752200301883'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='5102'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='16'%20height='16'%3e%3cpath%20d='M414.2%2078H158.6c-41.5%200-75.3%2033.8-75.3%2075.3v255.5c0%2041.5%2033.8%2075.3%2075.3%2075.3h255.5c41.5%200%2075.3-33.8%2075.3-75.3V153.3c0-41.5-33.7-75.3-75.2-75.3z%20m5.2%20330.8c0%202.9-2.4%205.3-5.3%205.3H158.6c-2.9%200-5.3-2.4-5.3-5.3V153.3c0-2.9%202.4-5.3%205.3-5.3h255.5c2.9%200%205.3%202.4%205.3%205.3v255.5zM414.2%20544.8H158.6c-41.5%200-75.3%2033.8-75.3%2075.3v255.5c0%2041.5%2033.8%2075.3%2075.3%2075.3h255.5c41.5%200%2075.3-33.8%2075.3-75.3V620.1c0-41.5-33.7-75.3-75.2-75.3z%20m5.2%20330.8c0%202.9-2.4%205.3-5.3%205.3H158.6c-2.9%200-5.3-2.4-5.3-5.3V620.1c0-2.9%202.4-5.3%205.3-5.3h255.5c2.9%200%205.3%202.4%205.3%205.3v255.5zM908.8%20119.3H607.2c-19.3%200-35%2015.7-35%2035s15.7%2035%2035%2035h301.6c19.3%200%2035-15.7%2035-35s-15.7-35-35-35zM908.8%20343.8H607.2c-19.3%200-35%2015.7-35%2035s15.7%2035%2035%2035h301.6c19.3%200%2035-15.7%2035-35s-15.7-35-35-35zM908.8%20568.3H607.2c-19.3%200-35%2015.7-35%2035s15.7%2035%2035%2035h301.6c19.3%200%2035-15.7%2035-35s-15.7-35-35-35zM908.8%20792.8H607.2c-19.3%200-35%2015.7-35%2035s15.7%2035%2035%2035h301.6c19.3%200%2035-15.7%2035-35s-15.7-35-35-35z'%20p-id='5103'%3e%3c/path%3e%3c/svg%3e",tu=Object.freeze(Object.defineProperty({__proto__:null,default:eu},Symbol.toStringTag,{value:"Module"})),iu="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1753759305280'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2311'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='32'%20height='32'%3e%3cpath%20d='M919.3%20526.2l-174-68.2c-42.7-16.7-88.8%2014.7-88.8%2060.5v343c0%2035.9%2029.1%2065%2065%2065h174c35.9%200%2065-29.1%2065-65V586.7c0.1-26.7-16.3-50.8-41.2-60.5zM488.5%20115.1L108.3%20252.4c-25.8%209.3-42.9%2033.8-42.9%2061.2v547.9c0%2035.9%2029.1%2065%2065%2065h380.2c35.9%200%2065-29.1%2065-65V176.3c0-45.1-44.7-76.5-87.1-61.2z%20m-53.9%20573.2H197.3c-23.9%200-43.4-19.4-43.4-43.4%200-23.9%2019.4-43.4%2043.4-43.4h237.3c23.9%200%2043.4%2019.4%2043.4%2043.4s-19.4%2043.4-43.4%2043.4z%20m0-177.1H197.3c-23.9%200-43.4-19.4-43.4-43.4%200-23.9%2019.4-43.4%2043.4-43.4h237.3c23.9%200%2043.4%2019.4%2043.4%2043.4s-19.4%2043.4-43.4%2043.4z'%20p-id='2312'%3e%3c/path%3e%3c/svg%3e",nu=Object.freeze(Object.defineProperty({__proto__:null,default:iu},Symbol.toStringTag,{value:"Module"})),su="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1753759035832'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='3636'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='32'%20height='32'%3e%3cpath%20d='M512%20446c0%2017.6-14.4%2032-32%2032H288c-17.6%200-32-14.4-32-32s14.4-32%2032-32h192c17.6%200%2032%2014.4%2032%2032z%20m223.9-66c-8.2%200-16.5%203.1-22.7%209.3l-45.6%2045.3-22.7-22.6c-6.2-6.2-14.5-9.3-22.7-9.3s-16.5%203.1-22.7%209.3c-12.5%2012.4-12.5%2032.8%200%2045.3l45.6%2045.3c6.2%206.2%2014.5%209.3%2022.7%209.3s16.5-3.1%2022.7-9.3l68.3-68c12.5-12.4%2012.5-32.8%200-45.3-6.4-6.2-14.6-9.3-22.9-9.3zM480%20638H288c-17.6%200-32%2014.4-32%2032s14.4%2032%2032%2032h192c17.6%200%2032-14.4%2032-32s-14.4-32-32-32z%20m255.9-34c-8.2%200-16.5%203.1-22.7%209.3l-45.6%2045.3-22.7-22.6c-6.2-6.2-14.5-9.3-22.7-9.3s-16.5%203.1-22.7%209.3c-12.5%2012.4-12.5%2032.8%200%2045.3l45.6%2045.3c6.2%206.2%2014.5%209.3%2022.7%209.3s16.5-3.1%2022.7-9.3l68.3-68c12.5-12.4%2012.5-32.8%200-45.3-6.4-6.2-14.6-9.3-22.9-9.3zM888%20192v704c0%2035.2-28.8%2064-64%2064H200c-35.2%200-64-28.8-64-64V192c0-35.2%2028.8-64%2064-64h136c0-35.2%2028.8-64%2064-64h224c35.2%200%2064%2028.8%2064%2064h136c35.2%200%2064%2028.8%2064%2064z%20m-488-0.1l0.1%200.1h223.8l0.1-0.1v-63.8l-0.1-0.1H400.1l-0.1%200.1v63.8z%20m424%200.2l-0.1-0.1H688c0%2035.2-28.8%2064-64%2064H400c-35.2%200-64-28.8-64-64H200.1l-0.1%200.1v703.8l0.1%200.1h623.8l0.1-0.1V192.1z'%20p-id='3637'%3e%3c/path%3e%3c/svg%3e",ou=Object.freeze(Object.defineProperty({__proto__:null,default:su},Symbol.toStringTag,{value:"Module"})),ru="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1752200293861'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='4941'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='16'%20height='16'%3e%3cpath%20d='M874.9%20577.3c-26.1-27.2-56.8-48.9-90.3-64.1%205.4-4.6%2010.6-9.6%2015.5-14.8%2032.3-34.7%2050.1-79.8%2050.1-127.2%200-102.9-83.7-186.7-186.7-186.7-11%200-21.8%200.9-32.5%202.8-7.1-9.6-14.9-18.7-23.4-27.2-44.6-44.6-103.9-69.2-167-69.2s-122.4%2024.6-167%2069.2-69.2%20103.9-69.2%20167%2024.6%20122.4%2069.2%20167c10.8%2010.8%2022.4%2020.4%2034.8%2028.7-4.9%201.8-9.7%203.8-14.5%205.8-44.9%2019-85.2%2046.2-119.9%2080.8-34.6%2034.6-61.8%2075-80.8%20119.9-19.7%2046.5-29.6%2095.9-29.6%20146.8%200%2017.7%201.2%2035.5%203.7%2052.9l69.3-9.7c-2-14.2-3-28.7-3-43.1%200-169.4%20137.8-307.1%20307.1-307.1s307.1%20137.8%20307.1%20307.1c0%2014.4-1%2028.9-3%2043.1l69.3%209.7c2.4-17.4%203.7-35.2%203.7-52.9%200-50.9-10-100.3-29.6-146.8-19-44.9-46.2-85.2-80.8-119.9-34.6-34.6-74.9-61.8-119.9-80.8-4.8-2-9.7-4-14.6-5.8%2012.3-8.4%2024-18%2034.8-28.7%2044.6-44.6%2069.2-103.9%2069.2-167%200-25-3.9-49.4-11.3-72.6%2063.4%201.1%20114.7%2053%20114.7%20116.6%200%2045.5-26.6%2085.6-65.3%20104.7-16.3%208.1-26.8%2024.4-26.8%2042.6v1c0%2021.2%2014.1%2040%2034.6%2045.5%2094.9%2025.8%20163.8%20112.4%20163.8%20215%200%2010.5-0.7%2021-2.2%2031.3l69.3%209.7c1.9-13.5%202.9-27.3%202.9-41-0.1-75.8-29.1-147.8-81.7-202.6z%20m-434.3-84c-91.6%200-166.2-74.6-166.2-166.2S349%20160.9%20440.6%20160.9s166.2%2074.6%20166.2%20166.2-74.5%20166.2-166.2%20166.2z'%20p-id='4942'%3e%3c/path%3e%3c/svg%3e",lu=Object.freeze(Object.defineProperty({__proto__:null,default:ru},Symbol.toStringTag,{value:"Module"})),au="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1753759042395'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='3793'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='32'%20height='32'%3e%3cpath%20d='M751.104%20402.432H272.896a33.6896%2033.6896%200%200%201%200-67.3792h478.208a33.6896%2033.6896%200%201%201%200%2067.3792m0%20192.7168H272.896a33.7408%2033.7408%200%200%201%200-67.4304h478.208a33.7408%2033.7408%200%200%201%200%2067.4304m0%20192.6144H272.896a33.6896%2033.6896%200%201%201%200-67.3792h478.208a33.7408%2033.7408%200%201%201%200%2067.4304M621.6192%2075.3152H402.3296a33.6896%2033.6896%200%201%201%200-67.3792h219.2896a33.6896%2033.6896%200%200%201%200%2067.3792'%20p-id='3794'%3e%3c/path%3e%3cpath%20d='M169.2672%2070.912a37.9392%2037.9392%200%200%200-37.888%2037.8368v806.5024a37.888%2037.888%200%200%200%2037.888%2037.888h685.4656a37.888%2037.888%200%200%200%2037.8368-37.888V108.7488a37.9392%2037.9392%200%200%200-37.8368-37.8368h-72.704a128%20128%200%200%201-127.1296%20116.0192H369.1008a127.6928%20127.6928%200%200%201-127.1808-116.0192z%20m685.4656%20949.6576H169.2672a105.3696%20105.3696%200%200%201-105.2672-105.3184V108.7488A105.3696%20105.3696%200%200%201%20169.2672%203.4304h139.52v55.9104a60.2112%2060.2112%200%200%200%2060.3136%2060.16h285.7984a60.1088%2060.1088%200%200%200%2060.2112-60.16V3.4304h139.52a105.4208%20105.4208%200%200%201%20105.3696%20105.3184v806.5024a105.3184%20105.3184%200%200%201-105.2672%20105.3184z'%20p-id='3795'%3e%3c/path%3e%3c/svg%3e",cu=Object.freeze(Object.defineProperty({__proto__:null,default:au},Symbol.toStringTag,{value:"Module"})),hu="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1751524561033'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='3065'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='16'%20height='16'%3e%3cpath%20d='M960%20491.52v380.416c0%2026.112-23.04%2047.616-52.224%2047.616H116.224c-29.184%200-52.224-21.504-52.224-47.616V491.52c0-26.112%2023.04-47.616%2052.224-47.616h791.552c28.672%200%2052.224%2021.504%2052.224%2047.616z%20m-149.504%20156.16H213.504V783.36h596.992v-135.68z%20m149.504-500.736v186.88c0%2023.04-20.992%2042.496-46.592%2042.496H110.592c-25.6%200-46.592-18.944-46.592-42.496V146.944c0-23.04%2020.992-42.496%2046.592-42.496h802.304c26.112%200%2047.104%2018.944%2047.104%2042.496z%20m-671.744%2025.6c-41.472%200-74.752%2030.208-74.752%2068.096s33.792%2068.096%2074.752%2068.096S363.008%20278.528%20363.008%20240.64s-33.792-68.096-74.752-68.096z%20m224.256%200c-41.472%200-74.752%2030.208-74.752%2068.096s33.792%2068.096%2074.752%2068.096%2074.752-30.208%2074.752-68.096-33.792-68.096-74.752-68.096z'%20p-id='3066'%3e%3c/path%3e%3c/svg%3e",uu=Object.freeze(Object.defineProperty({__proto__:null,default:hu},Symbol.toStringTag,{value:"Module"})),fu="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1753855001552'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2987'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='32'%20height='32'%3e%3cpath%20d='M599.445496%20583.730177A44.076284%2044.076284%200%200%200%20568.283207%20508.598529H232.067891a44.052523%2044.052523%200%200%200%200%2088.105045h336.215316a43.862436%2043.862436%200%200%200%2031.162289-12.973397zM436.707779%20672.963861H232.067891a44.052523%2044.052523%200%200%200%200.059402%2088.105045h204.746811a44.123805%2044.123805%200%200%200%2043.95748-44.111924%2044.088164%2044.088164%200%200%200-44.040642-43.95748zM599.338573%20368.041518A43.696111%2043.696111%200%200%200%20568.283207%20355.198805H232.067891a44.040642%2044.040642%200%200%200%200%2088.081285h336.215316a44.064403%2044.064403%200%200%200%2031.055366-75.238572zM960.55025%20696.890986a19.662062%2019.662062%200%200%201-18.794792-20.19668%2022.168826%2022.168826%200%200%201%202.447362-8.708333A35.272907%2035.272907%200%200%200%20930.635404%20620.856427l-79.277909-45.858343a35.189744%2035.189744%200%200%200-47.676044%2012.165529%2019.341291%2019.341291%200%200%201-16.561278%209.231071%2019.733344%2019.733344%200%200%201-16.513756-9.183549%2035.165984%2035.165984%200%200%200-47.878011-12.17741l-79.01654%2045.620735a34.655126%2034.655126%200%200%200-13.412971%2013.412972%2035.011538%2035.011538%200%200%200%200%2034.17991%2019.353171%2019.353171%200%200%201-0.332651%2019.115564%2019.00864%2019.00864%200%200%201-16.014779%209.611243%2035.154103%2035.154103%200%200%200-33.882901%2035.320429v91.21771c0.106924%205.9402%201.627615%2011.785357%205.488745%2018.771032a35.890688%2035.890688%200%200%200%2028.394156%2016.775125A19.448215%2019.448215%200%200%201%20632.437367%20879.71846a16.715723%2016.715723%200%200%201-2.114711%207.841064%2035.546156%2035.546156%200%200%200%2013.793144%2046.511765l79.491755%2045.775181a35.6412%2035.6412%200%200%200%2047.402796-11.345782c7.282685-11.191337%2025.530979-11.131935%2032.69486%200a35.177864%2035.177864%200%200%200%2029.701%2016.181105h0.368292a34.631366%2034.631366%200%200%200%2016.347431-4.122499l79.598679-45.882104a35.154103%2035.154103%200%200%200%2013.98323-46.808776%2018.937357%2018.937357%200%200%201-2.114711-7.983628%2019.448215%2019.448215%200%200%201%2018.521544-20.315484%2036.128296%2036.128296%200%200%200%2034.310595-35.914449v-91.479079a35.522396%2035.522396%200%200%200-33.871021-35.284788z%20m-89.102999%20189.480498l-32.623578%2018.901716a89.970268%2089.970268%200%200%200-103.359479%200l-32.362209-18.735391a90.457365%2090.457365%200%200%200-52.345042-90.065311v-37.13813a90.980102%2090.980102%200%200%200%2052.178717-91.253351l31.447418-18.272055a91.21771%2091.21771%200%200%200%20105.664277%200l31.435538%2018.272055a91.003863%2091.003863%200%200%200%2052.273759%2091.384035v37.007446a89.863345%2089.863345%200%200%200-52.321281%2089.839584z'%20p-id='2988'%3e%3c/path%3e%3cpath%20d='M787.060771%20679.806971a97.645007%2097.645007%200%201%200%2097.680648%2097.633126%2097.75193%2097.75193%200%200%200-97.680648-97.633126z%20m33.716575%2097.633126a33.692814%2033.692814%200%201%201-33.716575-33.669053%2033.704694%2033.704694%200%200%201%2033.716575%2033.669053z'%20p-id='2989'%3e%3c/path%3e%3cpath%20d='M606.39553%20935.924632H116.447839V174.153392h159.423086v45.858343A44.123805%2044.123805%200%200%200%20319.98285%20264.088019h0.225728a44.064403%2044.064403%200%200%200%2043.814914-43.95748V174.153392H473.240008v45.858343a44.100044%2044.100044%200%200%200%2043.95748%2044.076284h0.059402a44.230729%2044.230729%200%200%200%2043.957479-43.95748V174.153392h182.673029v340.884313a44.135686%2044.135686%200%200%200%2044.040642%2043.95748h0.142565a44.147566%2044.147566%200%200%200%2043.95748-44.100044V130.195912a44.100044%2044.100044%200%200%200-44.040643-44.064403H561.273771V44.763957a44.040642%2044.040642%200%201%200-88.069404%200v41.403193h-109.204635V44.763957a44.064403%2044.064403%200%201%200-88.128807%200v41.403193H72.953695A44.111925%2044.111925%200%200%200%2028.913053%20130.195912v849.543635a44.111925%2044.111925%200%200%200%2044.040642%2044.040642h497.064051l-0.320771%200.213847h36.698555a44.040642%2044.040642%200%201%200%200-88.069404z'%20p-id='2990'%3e%3c/path%3e%3c/svg%3e",du=Object.freeze(Object.defineProperty({__proto__:null,default:fu},Symbol.toStringTag,{value:"Module"})),pu="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1752025057554'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2273'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='16'%20height='16'%3e%3cpath%20d='M768%20544c105.6%200%20192%2086.4%20192%20192%200%20106.24-85.76%20192-192%20192s-192-85.76-192-192%2085.76-192%20192-192z%20m12.8-454.4a32%2032%200%200%201%2032%2032v362.368A255.744%20255.744%200%200%200%20530.56%20640H192a32%2032%200%200%200-5.76%2063.488L192%20704h321.92a255.104%20255.104%200%200%200%2065.024%20204.864L128.064%20908.8a32%2032%200%200%201-32-32V121.6a32%2032%200%200%201%2032-32h652.8z%20m62.72%20562.752l-4.352%203.712-100.992%20103.872-36.288-39.296-4.288-3.84a32%2032%200%200%200-46.208%2042.752l3.52%204.608%2059.264%2064%204.48%203.968a32%2032%200%200%200%2037.376%200.448l4.544-3.84%20124.48-128%203.648-4.48a32%2032%200%200%200-45.12-43.904zM384%20768H192a32%2032%200%200%200-5.76%2063.488L192%20832h192a32%2032%200%201%200%200-64z%20m76.8-384a89.6%2089.6%200%201%200%200%20179.2%2089.6%2089.6%200%200%200%200-179.2z%20m3.392-251.584a32%2032%200%200%200-43.776%2011.392l-217.6%20371.2-2.496%205.248a32%2032%200%200%200%2057.664%2027.136l217.6-371.2%202.496-5.248a32%2032%200%200%200-13.888-38.528zM460.8%20448a25.6%2025.6%200%201%201%200%2051.2%2025.6%2025.6%200%200%201%200-51.2zM230.4%20128a89.6%2089.6%200%201%200%200%20179.2%2089.6%2089.6%200%200%200%200-179.2z%20m0%2064a25.6%2025.6%200%201%201%200%2051.2%2025.6%2025.6%200%200%201%200-51.2z'%20p-id='2274'%3e%3c/path%3e%3c/svg%3e",gu=Object.freeze(Object.defineProperty({__proto__:null,default:pu},Symbol.toStringTag,{value:"Module"})),mu="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1752024911338'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='1794'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='16'%20height='16'%3e%3cpath%20d='M588.8%20532.3c-9.3-35.1-40.9-61-78.9-61-37.5%200-68.7%2025.3-78.5%2059.7-35.1%209.3-61%2040.9-61%2078.9%200%2037.5%2025.3%2068.7%2059.7%2078.5%209.3%2035.1%2040.9%2061%2078.9%2061%2037.5%200%2068.7-25.3%2078.5-59.7%2035-9.3%2061-40.9%2061-78.9%200-37.5-25.3-68.7-59.7-78.5zM624.4%20777.8H405.6c-8.1%200-14.7%206.3-14.7%2014l-6%20136.5c0%207.7%206.6%2014%2014.7%2014h29.9c8%200%2014.5-6%2014.7-13.6%200.8-29.4%2014.7-96%2069-96.4%2057.3-0.4%2071.5%2066.9%2072.3%2096.4%200.2%207.6%206.7%2013.6%2014.7%2013.6h30.2c8.2%200%2014.8-6.3%2014.7-14l-6-136.5c0-7.7-6.6-14-14.7-14z'%20fill='%23020202'%20p-id='1795'%3e%3c/path%3e%3cpath%20d='M797.5%2080H231.7c-68.5%200-124%2055.5-124%20124v454.5c0%2066.3%2053.7%20120%20120%20120h116.5c12.5%200%2022.6-10.1%2022.6-22.6v-27.2s-0.4-18.8-3.8-31.4c-1.2-4.2-3.6-8-6.9-10.8-23.6-20.7-38.6-50.9-38.6-84.8%200-48.9%2031.1-90.3%2074.5-106.2%206.2-2.3%2011-7%2013.4-13.2%2016.4-42.4%2057.2-72.7%20105.4-72.7%2048.9%200%2090.3%2031.1%20106.2%2074.5%202.3%206.2%207%2011%2013.2%2013.4%2042.4%2016.4%2072.7%2057.2%2072.7%20105.4%200%2035.1-16%2066.2-41%2086.9-1%200.8%201.1%2032.7%201.5%2038%200%200.5%200.1%201%200.1%201.5v26.4c0%2012.5%2010.1%2022.6%2022.6%2022.6h115.4c66.3%200%20120-53.7%20120-120V204c0-68.5-55.5-124-124-124z%20m-74.4%20246.5c0%2020.6-16.9%2037.5-37.5%2037.5h-342c-20.6%200-37.5-16.9-37.5-37.5S323%20289%20343.6%20289h342c20.6%200%2037.5%2016.9%2037.5%2037.5z%20m0-124c0%2020.6-16.9%2037.5-37.5%2037.5h-342c-20.6%200-37.5-16.9-37.5-37.5S323%20165%20343.6%20165h342c20.6%200%2037.5%2016.9%2037.5%2037.5z'%20fill='%23020202'%20p-id='1796'%3e%3c/path%3e%3c/svg%3e",vu=Object.freeze(Object.defineProperty({__proto__:null,default:mu},Symbol.toStringTag,{value:"Module"})),wu="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://%20www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1753759802627'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='3075'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='32'%20height='32'%3e%3cpath%20d='M538.229%20225.071l322.441%200.03c46.887%200%2081.569%2034.381%2084.651%2082.355v487.122c0%2046.889-37.765%2086.494-84.651%2086.494H163.763c-46.887%200-84.651-38.579-84.651-86.494V225.102c0-46.887%2037.765-86.494%2084.651-86.494h208.153c81.632-0.001%2081.632%2086.494%20166.313%2086.463z%20m113.199%20377.577h-15.469c-17.098%200-30.935%2013.837-30.935%2030.936v92.809c0%2017.1%2013.837%2030.936%2030.935%2030.936h92.81c17.098%200%2030.938-13.836%2030.938-30.936v-92.809c0-17.099-13.84-30.936-30.938-30.936H713.3v-61.872c0-17.1-13.837-30.936-30.935-30.936H527.684v-30.936h15.469c17.098%200%2030.935-13.836%2030.935-30.936v-92.81c0-17.098-13.837-30.936-30.935-30.936h-92.81c-17.098%200-30.934%2013.838-30.934%2030.936v92.81c0%2017.1%2013.836%2030.936%2030.934%2030.936h15.469v30.936H342.068c-17.098%200-30.938%2013.836-30.938%2030.936v61.872h-15.466c-17.101%200-30.938%2013.837-30.938%2030.936v92.809c0%2017.1%2013.836%2030.936%2030.938%2030.936h92.807c17.101%200%2030.938-13.836%2030.938-30.936v-92.809c0-17.099-13.837-30.936-30.938-30.936h-15.466v-30.936h278.423v30.936z'%20p-id='3076'%3e%3c/path%3e%3c/svg%3e",xu=Object.freeze(Object.defineProperty({__proto__:null,default:wu},Symbol.toStringTag,{value:"Module"})),bu="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1752200280399'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='4617'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='16'%20height='16'%3e%3cpath%20d='M322.5%2062h384.6v70H322.5z'%20p-id='4618'%3e%3c/path%3e%3cpath%20d='M870.2%2062h-59.3v70h59.3c7.2%200%2013%205.8%2013%2013v733.9c0%207.2-5.8%2013-13%2013h-720c-7.2%200-13-5.8-13-13V145c0-7.2%205.8-13%2013-13h68.6V62h-68.6c-45.8%200-83%2037.2-83%2083v733.9c0%2045.8%2037.2%2083%2083%2083h720c45.8%200%2083-37.2%2083-83V145c0-45.8-37.3-83-83-83z'%20p-id='4619'%3e%3c/path%3e%3cpath%20d='M295%20806.2c-0.5-5.7-0.7-11.6-0.7-17.3%200-119%2096.8-215.8%20215.8-215.8S726%20669.8%20726%20788.8c0%205.8-0.2%2011.6-0.7%2017.3l69.8%205.6c0.6-7.6%200.9-15.3%200.9-22.9%200-76.4-29.7-148.1-83.7-202.1-29.7-29.8-64.9-52.1-103.3-66.2%2045.6-31.5%2075.5-84.1%2075.5-143.5%200-96.1-78.2-174.4-174.4-174.4-96.1%200-174.4%2078.2-174.4%20174.4%200%2059.5%2029.9%20112%2075.5%20143.5C373%20534.6%20337.8%20557%20308%20586.7c-54%2054-83.7%20125.8-83.7%20202.1%200%207.6%200.3%2015.3%200.9%2022.9l69.8-5.5z%20m215.2-533.6c57.5%200%20104.4%2046.8%20104.4%20104.4%200%2057.5-46.8%20104.4-104.4%20104.4-57.5%200-104.4-46.8-104.4-104.4%200-57.6%2046.8-104.4%20104.4-104.4z'%20p-id='4620'%3e%3c/path%3e%3c/svg%3e",yu=Object.freeze(Object.defineProperty({__proto__:null,default:bu},Symbol.toStringTag,{value:"Module"})),ku="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1753776005679'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2552'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='32'%20height='32'%3e%3cpath%20d='M875.7248%20656.5376H634.624a29.44%2029.44%200%200%200-28.3648%2021.3248%2094.5152%2094.5152%200%200%201-181.8624%200%2029.44%2029.44%200%200%200-28.3904-21.3248H160.6656A58.2656%2058.2656%200%200%200%20102.4%20714.8032v172.2368a58.2656%2058.2656%200%200%200%2058.2656%2058.2656h715.0592a58.2656%2058.2656%200%200%200%2058.2656-58.2656v-172.2368a58.2656%2058.2656%200%200%200-58.2656-58.2656z%20m-229.632-481.3312v3.1488c-4.0448-1.8944-4.0448-2.5344%200-3.1488-4.0448-1.2544%200-1.8944%200-3.1488v3.1488z'%20fill='%23000000'%20p-id='2553'%3e%3c/path%3e%3cpath%20d='M833.6896%20102.4H354.1504c-17.5872%200-32.0768%2016.3072-32.0768%2035.7632V610.816h127.488c0%2040.1664%2028.8768%2072.7808%2064.0256%2072.7808%2035.7888%200%2064-32.6144%2064-72.7808h288.1024V138.1632c0-20.0704-14.4384-35.7632-32-35.7632zM457.472%20261.12h272.9472c13.056%200%2022.7584%2010.7008%2023.296%2023.296%200.5888%2012.6464-11.1104%2023.3472-23.296%2023.3472H457.4976c-13.056%200-22.7328-10.7008-23.296-23.3216-0.5632-12.6464%2011.1104-23.296%2023.296-23.296z%20m273.2288%20209.4592h-272.896c-13.0816%200-22.784-10.6752-23.3216-23.296-0.5632-12.6464%2011.1104-23.296%2023.296-23.296h272.9216c13.056%200%2022.7584%2010.6752%2023.296%2023.296%200.5888%2012.6208-11.0848%2023.296-23.296%2023.296z%20m-512-295.3728h39.4496v435.584H162.1248V231.7568c0-31.232%2025.344-56.576%2056.576-56.576z'%20fill='%23000000'%20p-id='2554'%3e%3c/path%3e%3c/svg%3e",Su=Object.freeze(Object.defineProperty({__proto__:null,default:ku},Symbol.toStringTag,{value:"Module"})),Cu="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1752025023308'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='1955'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='16'%20height='16'%3e%3cpath%20d='M481.322667%20891.349333l-328.533334-157.866666a72.064%2072.064%200%200%201-38.4-85.333334l366.933334%20179.2%2034.133333%2017.066667%20328.533333-157.866667%2068.266667-38.4a77.354667%2077.354667%200%200%201-38.4%2085.333334l-328.533333%20157.866666a58.069333%2058.069333%200%200%201-64%200z%20m0-153.6l-328.533334-157.866666a71.978667%2071.978667%200%200%201-38.4-85.333334l366.933334%20179.2%2034.133333%2017.066667%20328.533333-157.866667%2068.266667-38.4a77.269333%2077.269333%200%200%201-38.4%2085.333334l-328.533333%20157.866666a58.069333%2058.069333%200%200%201-64%200z%20m0-153.6l-328.533334-158.08a71.509333%2071.509333%200%200%201-34.133333-97.92%2067.626667%2067.626667%200%200%201%2034.133333-34.133333l328.533334-157.866667a57.770667%2057.770667%200%200%201%2064%200l328.533333%20157.866667a71.808%2071.808%200%200%201%2034.133333%2098.133333%2065.792%2065.792%200%200%201-34.133333%2034.133334l-328.533333%20158.08a58.496%2058.496%200%200%201-64%200z'%20p-id='1956'%3e%3c/path%3e%3c/svg%3e",_u=Object.freeze(Object.defineProperty({__proto__:null,default:Cu},Symbol.toStringTag,{value:"Module"})),Ou="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1753766109243'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='3509'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='32'%20height='32'%3e%3cpath%20d='M287.976534%20569.570276l76.718651%200%200%2063.953068-76.718651%200%200-63.953068Z'%20p-id='3510'%3e%3c/path%3e%3cpath%20d='M390.351503%20441.538988l-95.992178%200%200%2063.953068%2070.461012%200C364.820337%20479.96089%20377.58592%20460.812515%20390.351503%20441.538988z'%20p-id='3511'%3e%3c/path%3e%3cpath%20d='M287.976534%20313.632853l447.92178%200%200%2063.953068-447.92178%200%200-63.953068Z'%20p-id='3512'%3e%3c/path%3e%3cpath%20d='M287.976534%20697.601564l76.718651%200%200%2063.953068-76.718651%200%200-63.953068Z'%20p-id='3513'%3e%3c/path%3e%3cpath%20d='M921.625031%20441.538988%20492.726473%20441.538988c-38.421902%200-70.461012%2032.03911-70.461012%2070.461012L422.265461%20940.773405c0%2038.421902%2032.03911%2070.461012%2070.461012%2070.461012l428.773405%200c38.421902%200%2070.461012-32.03911%2070.461012-70.461012L991.96089%20512C991.96089%20473.578098%20959.92178%20441.538988%20921.625031%20441.538988zM911.863114%20917.494989c0%200-40.549499-157.692496-211.13273-180.219995l0%2061.700318c0%2012.139819-13.141041%2019.774138-23.653874%2013.641652l-184.850648-106.755317c-10.512833-6.132486-10.512833-21.275972%200-27.283305l184.850648-106.755317c10.512833-6.132486%2023.653874%201.501833%2023.653874%2013.641652l0%2050.06111C700.730384%20635.400636%20915.617697%20609.619164%20911.863114%20917.494989z'%20p-id='3514'%3e%3c/path%3e%3cpath%20d='M895.968712%200%20128.031288%200C76.843803%200.125153%2032.03911%2044.804693%2032.03911%2096.117331l0%20831.890491c0%2051.187485%2044.804693%2095.992178%2095.992178%2095.992178l255.937424%200c-12.765583-19.273527-25.531166-44.804693-25.531166-70.461012L358.437546%20889.460768%20160.070398%20889.460768%20160.070398%20121.648497l703.859203%200%200%20268.703007%2057.570276%200c25.531166%200%2051.187485%206.382791%2070.461012%2025.531166L991.96089%2095.992178C991.96089%2044.804693%20947.156197%200%20895.968712%200z'%20p-id='3515'%3e%3c/path%3e%3c/svg%3e",Mu=Object.freeze(Object.defineProperty({__proto__:null,default:Ou},Symbol.toStringTag,{value:"Module"}));function Yr(){const n=Object.assign({"/public/icons/svg/App.svg":oh,"/public/icons/svg/Avatar.svg":lh,"/public/icons/svg/Cancel.svg":ch,"/public/icons/svg/ChildAdd.svg":uh,"/public/icons/svg/ChildDelete.svg":dh,"/public/icons/svg/ChildFix.svg":gh,"/public/icons/svg/Delete.svg":vh,"/public/icons/svg/DongHuaFangZhen.svg":xh,"/public/icons/svg/Edit.svg":yh,"/public/icons/svg/EyeFill.svg":Sh,"/public/icons/svg/Fold.svg":_h,"/public/icons/svg/Form.svg":Mh,"/public/icons/svg/Left.svg":Th,"/public/icons/svg/Plus.svg":Bh,"/public/icons/svg/Right.svg":Eh,"/public/icons/svg/Save.svg":zh,"/public/icons/svg/Signature.svg":Nh,"/public/icons/svg/Step.svg":Ih,"/public/icons/svg/Store.svg":$h,"/public/icons/svg/Table.svg":Fh,"/public/icons/svg/Tabs.svg":jh,"/public/icons/svg/TimeLine.svg":Uh,"/public/icons/svg/config.svg":Kh,"/public/icons/svg/editTable.svg":Qh,"/public/icons/svg/emptyImg.svg":Zh,"/public/icons/svg/import.svg":t1,"/public/icons/svg/jd单.svg":n1,"/public/icons/svg/logo.svg":o1,"/public/icons/svg/operate.svg":l1,"/public/icons/svg/query.svg":c1,"/public/icons/svg/readTable.svg":u1,"/public/icons/svg/rowCreate.svg":d1,"/public/icons/svg/wenjian.svg":g1,"/public/icons/svg/wenjianjia.svg":v1,"/public/icons/svg/write.svg":x1,"/public/icons/svg/专项监督报告.svg":y1,"/public/icons/svg/个人中心.svg":S1,"/public/icons/svg/主菜单管理.svg":_1,"/public/icons/svg/会议纪要.svg":M1,"/public/icons/svg/停工令.svg":T1,"/public/icons/svg/制造厂.svg":B1,"/public/icons/svg/加工.svg":E1,"/public/icons/svg/协作单位.svg":z1,"/public/icons/svg/取消.svg":N1,"/public/icons/svg/同意.svg":I1,"/public/icons/svg/周报.svg":$1,"/public/icons/svg/备忘录.svg":F1,"/public/icons/svg/大屏.svg":j1,"/public/icons/svg/审批中心0.svg":U1,"/public/icons/svg/审批中心1.svg":K1,"/public/icons/svg/审核.svg":Q1,"/public/icons/svg/工件库.svg":Z1,"/public/icons/svg/工作台.svg":t3,"/public/icons/svg/平台管理.svg":n3,"/public/icons/svg/年度监造.svg":o3,"/public/icons/svg/年度计划.svg":l3,"/public/icons/svg/批准.svg":c3,"/public/icons/svg/承包商.svg":u3,"/public/icons/svg/技术监督单.svg":d3,"/public/icons/svg/报告中心.svg":g3,"/public/icons/svg/提交.svg":v3,"/public/icons/svg/文件管理.svg":x3,"/public/icons/svg/文档管理.svg":y3,"/public/icons/svg/方法库.svg":S3,"/public/icons/svg/日报.svg":_3,"/public/icons/svg/月报.svg":M3,"/public/icons/svg/档案管理.svg":T3,"/public/icons/svg/消息中心.svg":B3,"/public/icons/svg/灯泡维修.svg":E3,"/public/icons/svg/生成报告.svg":z3,"/public/icons/svg/用户管理.svg":N3,"/public/icons/svg/知识库.svg":I3,"/public/icons/svg/策划报告.svg":$3,"/public/icons/svg/算法.svg":F3,"/public/icons/svg/系统管理.svg":j3,"/public/icons/svg/经验反馈1.svg":U3,"/public/icons/svg/经验反馈2.svg":K3,"/public/icons/svg/考核.svg":Q3,"/public/icons/svg/职位管理.svg":Z3,"/public/icons/svg/菜单管理.svg":tu,"/public/icons/svg/营运单位.svg":nu,"/public/icons/svg/观察意见单.svg":ou,"/public/icons/svg/角色管理.svg":lu,"/public/icons/svg/记录单.svg":cu,"/public/icons/svg/设备库.svg":uu,"/public/icons/svg/质量计划审查意见单.svg":du,"/public/icons/svg/质量计划见证点.svg":gu,"/public/icons/svg/资质管理.svg":vu,"/public/icons/svg/部门文件.svg":xu,"/public/icons/svg/部门管理.svg":yu,"/public/icons/svg/项目信息.svg":Su,"/public/icons/svg/项目管理0.svg":_u,"/public/icons/svg/驳回.svg":Mu});return Object.keys(n).map(e=>({value:e.split("/").pop().replace(".svg",""),path:n[e].default}))}const Du={class:"icon-popover"},Tu=["onClick"],Au=u.defineComponent({__name:"index",props:{modelValue:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},emits:["update:modelValue"],setup(n,{emit:e}){const t=n,i=e,s=u.ref(t.modelValue),o=u.ref(!1),r=u.ref([]),l=()=>{o.value=!0},a=()=>{o.value=!1},h=c=>{s.value=c.value,i("update:modelValue",c.value)};return u.onMounted(()=>{r.value=Yr()}),(c,f)=>{const d=u.resolveComponent("el-input"),p=u.resolveComponent("el-popover");return u.openBlock(),u.createBlock(p,{width:"400",visible:o.value,title:"图标",placement:"bottom"},{default:u.withCtx(()=>[u.createElementVNode("div",Du,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(r.value,(g,m)=>(u.openBlock(),u.createElementBlock("div",{key:m,class:"icon-wrap",onClick:v=>h(g)},[u.createVNode(Ws.SvgIcon,{name:g==null?void 0:g.value,style:{width:"20px",height:"20px"}},null,8,["name"])],8,Tu))),128))])]),reference:u.withCtx(()=>[u.createVNode(d,{modelValue:s.value,"onUpdate:modelValue":f[0]||(f[0]=g=>s.value=g),placeholder:"请输入",disabled:!(t!=null&&t.isEdit),clearable:"",onFocus:l,onBlur:a},{prepend:u.withCtx(()=>[u.createVNode(Ws.SvgIcon,{name:s.value,style:{width:"20px",height:"20px"}},null,8,["name"])]),_:1},8,["modelValue","disabled"])]),_:1},8,["visible"])}}}),Bu=de._export_sfc(Au,[["__scopeId","data-v-d9981dd9"]]),Pu={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},setup(n){const e=n,t=u.ref(e.value);return(i,s)=>{const o=u.resolveComponent("el-input");return u.openBlock(),u.createBlock(o,{modelValue:t.value,"onUpdate:modelValue":s[0]||(s[0]=r=>t.value=r),disabled:!(e!=null&&e.isEdit),type:"password","show-password":"",clearable:""},null,8,["modelValue","disabled"])}}},Eu={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},setup(n){const e=n,t=u.ref(e.value);return(i,s)=>{const o=u.resolveComponent("el-color-picker");return u.openBlock(),u.createBlock(o,{modelValue:t.value,"onUpdate:modelValue":s[0]||(s[0]=r=>t.value=r),"show-alpha":""},null,8,["modelValue"])}}},Vu={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},setup(n){const e=n,t=u.ref(e.value);return(i,s)=>{const o=u.resolveComponent("el-input");return u.openBlock(),u.createBlock(o,{modelValue:t.value,"onUpdate:modelValue":s[0]||(s[0]=r=>t.value=r),style:{height:"100%"},type:"number"},null,8,["modelValue"])}}},Ri=u.defineComponent({__name:"index",props:{modelValue:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0},loading:{type:Boolean,default:!1},emptyColor:{type:Boolean,default:!1},buttonType:{type:String,default:"primary"}},emits:["clickTrigger"],setup(n,{emit:e}){const t=n,i=u.ref(t.modelValue),s=e,o=r=>{s("clickTrigger",r)};return(r,l)=>{const a=u.resolveComponent("el-button");return u.openBlock(),u.createBlock(a,{type:t==null?void 0:t.buttonType,id:t!=null&&t.emptyColor?"":"themeButton",onClick:l[0]||(l[0]=h=>o(i.value)),loading:t==null?void 0:t.loading},{default:u.withCtx(()=>[u.createTextVNode(u.toDisplayString(i.value),1)]),_:1},8,["type","id","loading"])}}}),zu={class:"form-content-view"},Lu={class:"form-item-label-child"},Nu=["onClick"],Ru={class:"form-item-label-child"},Iu=["onClick"],Hu=["onClick"],$u={__name:"index",props:{formRules:Object,rowContents:Array,buttonValue:Array,isEnableWrap:{default:!0,type:Boolean},isRowFlex:{default:!1,type:Boolean},isButtonRow:{default:!0,type:Boolean},rowValues:Array,isEdit:{type:Boolean,default:!0},isStartJustify:{type:Boolean,default:!0}},emits:["change","onButtonClick","clickTrigger","blur","changeVisible","blurChange","preview"],setup(n,{emit:e}){const t=n;u.onMounted(()=>{});const i=e,s=u.ref(null),o=u.ref(null),r=u.ref(),l=u.ref(),a=u.ref(0),h=b=>Dn(b),c=b=>{i("clickTrigger",b)},f=b=>{i("preview",b)},d=()=>{i("blur",l.value)},p=()=>{i("blurChange",l.value)},g=()=>{u.nextTick(()=>{a.value++})},m=(b,S)=>{switch(b){case"datetime":return It.dayjs(S).format("YYYY-MM-DD HH:mm:ss");case"date":return It.dayjs(S).format("YYYY-MM-DD");default:return S}},v=b=>{i("changeVisible",b)};u.watch(()=>t==null?void 0:t.rowContents,()=>{var S,_;if(((S=t==null?void 0:t.rowContents)==null?void 0:S.length)===0)return;const b={};(_=te.cloneDeep(t==null?void 0:t.rowContents))==null||_.forEach(y=>{b[(y==null?void 0:y.name)??(y==null?void 0:y.prop)]=m(y==null?void 0:y.type,y==null?void 0:y.value)}),r.value=b,l.value=b,g()},{deep:!0,immediate:!0});const w=async(b,S)=>{await u.nextTick(),S&&await(S==null?void 0:S.validate((_,y)=>{_?i("onButtonClick",{content:l.value,buttonName:b}):console.log("表单校验失败",y)}))};return u.watch(()=>l.value,()=>{i("change",l.value)},{deep:!0}),(b,S)=>{var k;const _=u.resolveComponent("el-form-item"),y=u.resolveComponent("el-form"),C=u.resolveComponent("el-button");return u.openBlock(),u.createElementBlock("div",{class:"form-content",style:u.normalizeStyle({flexDirection:n.isButtonRow?"row":"column"})},[u.createElementVNode("div",zu,[t.isEnableWrap?(u.openBlock(),u.createBlock(y,{ref_key:"formWrapRef",ref:s,model:r.value,rules:n.formRules,class:"form-data",key:t.isRowFlex+a.value},{default:u.withCtx(()=>{var T,P;return[(T=b.item)!=null&&T.isFormColHidden?u.createCommentVNode("",!0):(u.openBlock(!0),u.createElementBlock(u.Fragment,{key:0},u.renderList(u.unref(te.cloneDeep)(t==null?void 0:t.rowContents),(x,H)=>(u.openBlock(),u.createBlock(_,{key:H,class:"form-item",prop:(x==null?void 0:x.prop)??(x==null?void 0:x.name),style:u.normalizeStyle({flexDirection:n.isRowFlex?"row":"column",alignItems:n.isRowFlex?"center":"start",height:n.isRowFlex?"100%":"auto"})},u.createSlots({default:u.withCtx(()=>{var N,M,B,E;return[x!=null&&x.isFormColHidden?u.createCommentVNode("",!0):(u.openBlock(),u.createBlock(u.resolveDynamicComponent(h((x==null?void 0:x.type)??"Input")),{modelValue:l.value[(x==null?void 0:x.prop)??x.name],"onUpdate:modelValue":$=>l.value[(x==null?void 0:x.prop)??x.name]=$,key:x==null?void 0:x.type,content:(x==null?void 0:x.contents)??[],isEdit:t==null?void 0:t.isEdit,onClickTrigger:c,onBlur:d,optionUrl:x==null?void 0:x.optionUrl,onChangeVisible:v,onBlurChange:p,config:x==null?void 0:x.config},null,40,["modelValue","onUpdate:modelValue","content","isEdit","optionUrl","config"])),typeof l.value[(x==null?void 0:x.prop)??x.name]=="string"&&((N=l.value[(x==null?void 0:x.prop)??x.name])!=null&&N.includes(".stl")||(M=l.value[(x==null?void 0:x.prop)??x.name])!=null&&M.includes(".obj")||(B=l.value[(x==null?void 0:x.prop)??x.name])!=null&&B.includes(".urdf")||(E=l.value[(x==null?void 0:x.prop)??x.name])!=null&&E.includes(".ls"))?(u.openBlock(),u.createBlock(Ri,{key:1,class:"calculator-content",onClickTrigger:$=>f(l.value[(x==null?void 0:x.prop)??x.name]),modelValue:"预览"},null,8,["onClickTrigger"])):u.createCommentVNode("",!0)]}),_:2},[x!=null&&x.isFormColHidden?void 0:{name:"label",fn:u.withCtx(()=>[x!=null&&x.label?(u.openBlock(),u.createElementBlock("div",{key:0,class:"from-item-label",style:u.normalizeStyle({width:n.isRowFlex?"72px":"260px",minWidth:n.isRowFlex?"72px":"260px"})},[u.createElementVNode("div",Lu,u.toDisplayString(x==null?void 0:x.label),1)],4)):u.createCommentVNode("",!0)]),key:"0"}]),1032,["prop","style"]))),128)),((P=t.buttonValue)==null?void 0:P.length)>0&&n.isButtonRow?(u.openBlock(),u.createElementBlock("div",{key:1,class:"form-button",style:u.normalizeStyle({paddingTop:n.isRowFlex?"0":"26px",justifyContent:n.isStartJustify?"start":"end"})},[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(t==null?void 0:t.buttonValue,(x,H)=>(u.openBlock(),u.createElementBlock("div",{key:H,class:"form-button-content"},[x?(u.openBlock(),u.createElementBlock("div",{key:0,class:"form-button-item",style:u.normalizeStyle({background:(x==null?void 0:x.background)??"var(--ssComponent-primary-color)"}),onClick:N=>w(x==null?void 0:x.label,s.value)},u.toDisplayString(x==null?void 0:x.label),13,Nu)):u.createCommentVNode("",!0)]))),128))],4)):u.createCommentVNode("",!0)]}),_:1},8,["model","rules"])):(u.openBlock(),u.createBlock(y,{ref_key:"formRef",ref:o,model:l.value,rules:n.formRules,class:"form-noRegular-data",key:a.value},{default:u.withCtx(()=>{var T,P;return[(T=b.item)!=null&&T.isFormColHidden?u.createCommentVNode("",!0):(u.openBlock(!0),u.createElementBlock(u.Fragment,{key:0},u.renderList(u.unref(te.cloneDeep)(t==null?void 0:t.rowContents),(x,H)=>(u.openBlock(),u.createBlock(_,{key:H,class:u.normalizeClass(["form-item",{"form-row-content":!n.isRowFlex}]),prop:(x==null?void 0:x.prop)??(x==null?void 0:x.name),style:u.normalizeStyle({flexDirection:n.isRowFlex?"row":"column",alignItems:n.isRowFlex?"center":"start",height:n.isRowFlex?"100%":"auto",width:`calc((100% / ${(x==null?void 0:x.width)??1}) - 12px)`,minWidth:`calc((100% / ${(x==null?void 0:x.width)??1}) - 12px)`})},u.createSlots({default:u.withCtx(()=>{var N,M,B,E;return[x!=null&&x.isFormColHidden?u.createCommentVNode("",!0):(u.openBlock(),u.createBlock(u.resolveDynamicComponent(h((x==null?void 0:x.type)??"Input")),{modelValue:l.value[(x==null?void 0:x.prop)??x.name],"onUpdate:modelValue":$=>l.value[(x==null?void 0:x.prop)??x.name]=$,isEdit:t==null?void 0:t.isEdit,content:(x==null?void 0:x.contents)??[],onClickTrigger:c,onBlur:d,key:x==null?void 0:x.type,optionUrl:x==null?void 0:x.optionUrl,onChangeVisible:v,onBlurChange:p,config:x==null?void 0:x.config},null,40,["modelValue","onUpdate:modelValue","isEdit","content","optionUrl","config"])),typeof l.value[(x==null?void 0:x.prop)??x.name]=="string"&&((N=l.value[(x==null?void 0:x.prop)??x.name])!=null&&N.includes(".stl")||(M=l.value[(x==null?void 0:x.prop)??x.name])!=null&&M.includes(".obj")||(B=l.value[(x==null?void 0:x.prop)??x.name])!=null&&B.includes(".urdf")||(E=l.value[(x==null?void 0:x.prop)??x.name])!=null&&E.includes(".ls"))?(u.openBlock(),u.createBlock(Ri,{key:1,class:"calculator-content form-preview",onClickTrigger:$=>f(l.value[(x==null?void 0:x.prop)??x.name]),modelValue:"预览"},null,8,["onClickTrigger"])):u.createCommentVNode("",!0)]}),_:2},[x!=null&&x.isFormColHidden?void 0:{name:"label",fn:u.withCtx(()=>[x!=null&&x.label?(u.openBlock(),u.createElementBlock("div",{key:0,class:"from-item-label",style:u.normalizeStyle({width:n.isRowFlex?"72px":"auto",minWidth:n.isRowFlex?"72px":`calc((100% / ${(x==null?void 0:x.width)??1}) - 8px)`})},[u.createElementVNode("div",Ru,u.toDisplayString(x==null?void 0:x.label),1)],4)):u.createCommentVNode("",!0)]),key:"0"}]),1032,["prop","class","style"]))),128)),((P=t.buttonValue)==null?void 0:P.length)>0&&n.isButtonRow?(u.openBlock(),u.createElementBlock("div",{key:1,class:"form-button",style:u.normalizeStyle({paddingTop:n.isRowFlex?"0":"26px",justifyContent:n.isStartJustify?"start":"end"})},[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(t==null?void 0:t.buttonValue,(x,H)=>(u.openBlock(),u.createElementBlock("div",{key:H,class:"form-button-content"},[x?(u.openBlock(),u.createElementBlock("div",{key:0,class:"form-button-item",style:u.normalizeStyle({background:(x==null?void 0:x.background)??"var(--ssComponent-primary-color)"}),onClick:N=>w(x==null?void 0:x.label,o.value)},u.toDisplayString(x==null?void 0:x.label),13,Iu)):u.createCommentVNode("",!0)]))),128))],4)):u.createCommentVNode("",!0)]}),_:1},8,["model","rules"]))]),((k=t.buttonValue)==null?void 0:k.length)>0&&!n.isButtonRow?(u.openBlock(),u.createElementBlock("div",{key:0,class:"form-button",style:u.normalizeStyle({justifyContent:n.isStartJustify?"start":"end"})},[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(t==null?void 0:t.buttonValue,(T,P)=>(u.openBlock(),u.createElementBlock("div",{key:P,class:"form-button-content",onClick:x=>w(T==null?void 0:T.label,t.isEnableWrap?s.value:o.value)},[u.createVNode(C,{id:"themeButton",style:u.normalizeStyle({background:(T==null?void 0:T.background)??"var(--ssbutton-theme-bg)",color:"var(--ssbutton-theme-color)"})},{default:u.withCtx(()=>[u.createTextVNode(u.toDisplayString(T==null?void 0:T.label),1)]),_:2},1032,["style"])],8,Hu))),128))],4)):u.createCommentVNode("",!0)],4)}}},Kr=de._export_sfc($u,[["__scopeId","data-v-0db4b732"]]),Wu={__name:"index",props:{value:String,formRules:{type:Object,default:()=>{}},content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},emits:["clickTrigger","changeTrigger"],setup(n,{emit:e}){const t=n,i=e,s=r=>{i("clickTrigger",r)},o=r=>{i("changeTrigger",r)};return(r,l)=>{var a,h,c,f,d,p,g;return u.openBlock(),u.createBlock(Kr,{rowContents:((a=t==null?void 0:t.content)==null?void 0:a.rowContents)??[],formRules:(h=t==null?void 0:t.content)==null?void 0:h.formRules,buttonValue:((c=t==null?void 0:t.content)==null?void 0:c.buttonValue)??[],isEnableWrap:(f=t==null?void 0:t.content)==null?void 0:f.isEnableWrap,isRowFlex:(d=t==null?void 0:t.content)==null?void 0:d.isRowFlex,isButtonRow:(p=t==null?void 0:t.content)==null?void 0:p.isButtonRow,rowValues:((g=t==null?void 0:t.content)==null?void 0:g.rowValues)??[],onOnButtonClick:s,onChange:o},null,8,["rowContents","formRules","buttonValue","isEnableWrap","isRowFlex","isButtonRow","rowValues"])}}},Xr={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},emits:["change"],setup(n,{emit:e}){const t=n,i=u.ref(t.value),s=e,o=r=>{s("change",r)};return(r,l)=>{const a=u.resolveComponent("el-radio"),h=u.resolveComponent("el-radio-group");return u.openBlock(),u.createBlock(h,{modelValue:i.value,"onUpdate:modelValue":l[0]||(l[0]=c=>i.value=c),style:{height:"100%"},onChange:l[1]||(l[1]=c=>o(c))},{default:u.withCtx(()=>[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(t.content,(c,f)=>(u.openBlock(),u.createBlock(a,{key:f,label:c.value},{default:u.withCtx(()=>[u.createTextVNode(u.toDisplayString(c==null?void 0:c.label),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"])}}},Qr={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0},isWrap:{type:Boolean,default:!1},min:{type:Number,default:1}},emits:["change"],setup(n,{emit:e}){const t=n,i=u.ref(t.value),s=e,o=r=>{s("change",r)};return(r,l)=>{const a=u.resolveComponent("el-checkbox"),h=u.resolveComponent("el-checkbox-group");return u.openBlock(),u.createBlock(h,{modelValue:i.value,"onUpdate:modelValue":l[0]||(l[0]=c=>i.value=c),style:{height:"100%"},min:n.min,onChange:l[1]||(l[1]=c=>o(c))},{default:u.withCtx(()=>[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(n.content,c=>(u.openBlock(),u.createBlock(a,{key:c.label,label:c.label,value:c.label,style:u.normalizeStyle({width:n.isWrap?"90%":"auto"})},null,8,["label","value","style"]))),128))]),_:1},8,["modelValue","min"])}}},Fu={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},setup(n){const e=n;return u.onMounted(()=>{document.querySelectorAll(".el-tab-pane").forEach(i=>{i.style.display="block"})}),(t,i)=>{var s;return u.openBlock(),u.createBlock(Hs,{tabsContents:((s=e==null?void 0:e.content)==null?void 0:s.tabsContents)??[]},u.createSlots({_:2},[u.renderList(t.$slots,(o,r)=>({name:r,fn:u.withCtx(l=>[u.renderSlot(t.$slots,r,u.normalizeProps(u.guardReactiveProps(l||{})))])}))]),1032,["tabsContents"])}}},Gu={class:"extra-button-content"},ju={__name:"header",props:{buttons:{type:Array,default:()=>[]},columns:{type:Array,default:()=>[]}},emits:["buttonClick"],setup(n,{emit:e}){const t=n;u.ref(!1);const i=u.ref([]);u.ref([{label:"取消"},{label:"确认"}]);const s=o=>{var r;i.value=(r=o==null?void 0:o.filter(l=>(l==null?void 0:l.label)!==""&&(l==null?void 0:l.label)!=="操作"))==null?void 0:r.map(l=>({label:(l==null?void 0:l.label)??"",value:"",name:(l==null?void 0:l.prop)??""}))};return u.onMounted(()=>{s(t.columns)}),u.watch(()=>t.columns,()=>{s(t.columns)},{deep:!0,immediate:!0}),(o,r)=>(u.openBlock(),u.createElementBlock("div",Gu,[u.renderSlot(o.$slots,"headerButton",{},void 0,!0)]))}},qu=de._export_sfc(ju,[["__scopeId","data-v-9727dc88"]]),Uu={key:0},Yu=u.defineComponent({__name:"recurseCol",props:{column:{type:Object,default:{}}},setup(n){return(e,t)=>{var l,a,h,c,f,d,p,g,m;const i=u.resolveComponent("svg-icon"),s=u.resolveComponent("el-tooltip"),o=u.resolveComponent("RecurseCol",!0),r=u.resolveComponent("el-table-column");return n.column.isHidden?u.createCommentVNode("",!0):(u.openBlock(),u.createBlock(r,{key:0,label:n.column.label,prop:n.column.prop,fixed:((l=n.column)==null?void 0:l.label)==="操作"?"right":(a=n.column)==null?void 0:a.fixed,align:((h=n.column)==null?void 0:h.align)??"center",sortable:((c=n.column)==null?void 0:c.sortable)??!0,"show-overflow-tooltip":((f=n.column)==null?void 0:f.showOverflowTooltip)??!0,width:((d=n.column)==null?void 0:d.label)==="操作"?80:(p=n.column)==null?void 0:p.width,"min-width":(g=n.column)!=null&&g.width?parseInt(n.column.width):void 0,"class-name":(((m=n.column)==null?void 0:m.isNotDrag)??!1)===!0?"is-not-drag":"is-drag"},{header:u.withCtx(()=>[n.column.label!=="操作"?(u.openBlock(),u.createElementBlock("span",Uu,u.toDisplayString(n.column.label),1)):(u.openBlock(),u.createBlock(s,{key:1,content:"操作",placement:"left-start",effect:"light"},{default:u.withCtx(()=>[u.createVNode(i,{name:"operate",style:{width:"15px",height:"15px"}})]),_:1}))]),default:u.withCtx(v=>[u.renderSlot(e.$slots,"content",{row:v.row,column:v.column,$index:v.$index}),(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(n.column.children,(w,b)=>(u.openBlock(),u.createBlock(o,{key:b,column:w},u.createSlots({_:2},[u.renderList(e.$slots,(S,_)=>({name:_,fn:u.withCtx(y=>[u.renderSlot(e.$slots,_,u.mergeProps({ref_for:!0},y,{slotData:y,row:v.row,item:{child:w}}))])}))]),1032,["column"]))),128))]),_:3},8,["label","prop","fixed","align","sortable","show-overflow-tooltip","width","min-width","class-name"]))}}}),Ku={key:0},Xu=u.defineComponent({__name:"index",props:{column:{type:Object,default:{}}},setup(n){return(e,t)=>{var s,o,r,l,a,h,c,f,d,p;const i=u.resolveComponent("el-table-column");return n.column.isTableColHidden?u.createCommentVNode("",!0):(u.openBlock(),u.createBlock(i,{key:0,label:n.column.label,prop:n.column.prop,fixed:((s=n.column)==null?void 0:s.label)==="操作"?"right":(o=n.column)==null?void 0:o.fixed,align:((r=n.column)==null?void 0:r.align)??"center",sortable:((l=n.column)==null?void 0:l.sortable)??!0,"show-overflow-tooltip":((a=n.column)==null?void 0:a.showOverflowTooltip)??!0,width:((h=n.column)==null?void 0:h.label)==="操作"?80:(c=n.column)==null?void 0:c.width,"min-width":(f=n.column)!=null&&f.width?parseInt(n.column.width):void 0,"class-name":((d=n.column)==null?void 0:d.prop)==="operate"?"action":(((p=n.column)==null?void 0:p.isNotDrag)??!1)===!0?"is-not-drag":"is-drag"},{header:u.withCtx(()=>[n.column.label!=="操作"?(u.openBlock(),u.createElementBlock("span",Ku,u.toDisplayString(n.column.label),1)):u.renderSlot(e.$slots,"operateHeader",{key:1})]),default:u.withCtx(g=>[u.renderSlot(e.$slots,"content",{row:g.row,column:g.column,$index:g.$index}),(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(n.column.children,(m,v)=>(u.openBlock(),u.createBlock(Yu,{key:v,column:m},u.createSlots({_:2},[u.renderList(e.$slots,(w,b)=>({name:b,fn:u.withCtx(({row:S,slotData:_,item:y})=>[u.renderSlot(e.$slots,b,u.mergeProps({ref_for:!0},_??S,{item:y??m,slotData:_??S}))])}))]),1032,["column"]))),128))]),_:3},8,["label","prop","fixed","align","sortable","show-overflow-tooltip","width","min-width","class-name"]))}}}),Qu={class:"table-content-show"},Ju=["onClick"],Zu=["onClick"],ef=["onClick"],tf={key:2,class:"table-content"},nf={__name:"index",props:{checkedColumns:Array,columns:Array,tableData:Array,currentPage:Number,total:Number,pageSize:Number,extraButton:{type:Array,default:()=>[]},isShowPagination:{type:Boolean,default:!0},isShowEdit:{type:Boolean,default:!0},isMoveColumn:{type:Boolean,default:!0},isShowDelete:{type:Boolean,default:!0}},emits:["cellChange","selectChange","dbClickRow","fixRow","deleteRow","doSizeChange","doCurrentChange","buttonClick","contentClick","rowClick"],setup(n,{emit:e}){const t=n,i=th.useModelComp(te.pinia),{viewport:s}=te.storeToRefs(i),o=u.ref([]),r=u.ref([]),l=u.ref(0),a=u.ref(null),h=u.ref(null),c=e;u.onMounted(()=>{var M;o.value=t==null?void 0:t.columns,r.value=(M=t==null?void 0:t.tableData)==null?void 0:M.map(B=>{var $;let E={};for(let F in B)E[F]=Fs(B[F])&&B[F]===0?($=B[F])==null?void 0:$.toString():B[F];return E}),t.isMoveColumn&&k(),P()});const f=(M,B,E)=>{c("cellChange",B,E,M)},d=M=>{c("selectChange",M)},p=(M,B,E,$)=>u.computed(()=>{var R,Q,X,I,K,re,ie,Me,Bt,g0;let F=M!=null&&M[B==null?void 0:B.prop]?((Q=(R=M==null?void 0:M[B==null?void 0:B.prop])==null?void 0:R[0])==null?void 0:Q.contents)??(M==null?void 0:M[B==null?void 0:B.prop]):((I=(X=M==null?void 0:M[E==null?void 0:E.prop])==null?void 0:X[0])==null?void 0:I.contents)??(M==null?void 0:M[E==null?void 0:E.prop])??((re=(K=$==null?void 0:$[E==null?void 0:E.prop])==null?void 0:K[0])==null?void 0:re.contents)??($==null?void 0:$[E==null?void 0:E.prop])??((Bt=(Me=M==null?void 0:M[(ie=E==null?void 0:E.child)==null?void 0:ie.prop])==null?void 0:Me[0])==null?void 0:Bt.contents)??(M==null?void 0:M[(g0=E==null?void 0:E.child)==null?void 0:g0.prop]);return Array.isArray(F)&&!(F!=null&&F.every($s=>typeof $s=="string"||typeof $s=="number"))?"查看":F}),g=M=>{c("rowClick",{row:M,type:"table"})},m=M=>{c("buttonClick",M)};u.watch(()=>t==null?void 0:t.tableData,()=>{var M;r.value=(M=t==null?void 0:t.tableData)==null?void 0:M.map(B=>{var $;let E={};for(let F in B)E[F]=Fs(B[F])&&B[F]===0?($=B[F])==null?void 0:$.toString():B[F];return E})},{deep:!0});const v=M=>Dn(M),w=M=>{c("doCurrentChange",M)},b=(M,B)=>{c("dbClickRow",M)},S=M=>{c("doSizeChange",M)},_=M=>{c("fixRow",M)},y=M=>{c("deleteRow",M)},C=(M,B,E,$)=>{c("contentClick",M,B,E,$)},k=()=>{var B;const M=(B=a.value)==null?void 0:B.$el.querySelector(".el-table__header-wrapper tr");!M||!t.isMoveColumn||It.Sortable.create(M,{animation:180,delay:0,handle:".is-drag .cell",onMove:E=>!E.related.classList.contains("is-not-drag"),onEnd:E=>{l.value++;const $=E.oldIndex,F=E.newIndex,R=o.value.splice($,1)[0];o.value.splice(F,0,R),t.isMoveColumn&&u.nextTick(()=>{k(),P()})}})};u.watch(()=>t.isMoveColumn,()=>{t.isMoveColumn&&u.nextTick(()=>{k(),P()})});const T=({column:M})=>M.label&&M.label.length>8?"long-header":"",P=()=>{var B;const M=(B=a.value)==null?void 0:B.$el.querySelector(".el-table__body-wrapper tbody");M&&new It.Sortable(M,{animation:150,handle:".el-table__row",ghostClass:"sortable-ghost",onEnd:({newIndex:E,oldIndex:$})=>{const F=[...r.value],[R]=F.splice($,1);F.splice(E,0,R),r.value=F,u.nextTick(()=>{P()})}})},x=M=>{M.preventDefault();try{const E=(M.clipboardData||(window==null?void 0:window.clipboardData)).getData("text/plain");if(!E)return;const $=H(E);if(!$.length)return;const{rowIndex:F,columnIndex:R}=h.value||{rowIndex:0,columnIndex:0},Q=[];if($==null||$.forEach(X=>{Q.push(X.length+R)}),(Q==null?void 0:Q.filter(X=>{var I;return X>Object.keys((I=r.value)==null?void 0:I[0]).length}).length)>0){te.ElMessage({type:"warning",message:"所剩列数不够"});return}for(let X=0;X<$.length;X++){const I=$[X],K=r.value[F+X],re=te.cloneDeep(o.value).map(ie=>ie.prop);for(let ie=0;ie<I.length&&R+ie<re.length;ie++){const Me=re[R+ie];K[Me]=I[ie]||""}}}catch(B){console.error("粘贴失败:",B)}},H=M=>M.trim().split(/\r\n|\n|\r/).map($=>$.trim()?$.split(" ").map(F=>F.replace(/^"(.*)"$/,"$1")):[""]),N=({row:M,rowIndex:B})=>B%2===0?"default-row":"special-row";return(M,B)=>{const E=u.resolveComponent("el-table-column"),$=u.resolveComponent("el-table"),F=u.resolveComponent("el-pagination");return u.openBlock(),u.createElementBlock("div",Qu,[u.createVNode(qu,{buttons:t==null?void 0:t.extraButton,onButtonClick:m,columns:o.value},{headerButton:u.withCtx(()=>[u.renderSlot(M.$slots,"headerButton",{buttons:t==null?void 0:t.extraButton,columns:o.value},void 0,!0)]),_:3},8,["buttons","columns"]),u.renderSlot(M.$slots,"viewport",{},void 0,!0),(u.openBlock(),u.createBlock($,{border:!1,class:"table-wrap",data:r.value,stripe:"",style:{width:"100%"},"max-height":"600",ref_key:"tableRef",ref:a,"empty-text":"暂无数据",onCellClick:g,onSelectionChange:d,onRowDblclick:b,key:l.value,onPaste:x,"row-class-name":N,"header-cell-class-name":T},{default:u.withCtx(()=>[u.unref(s)==="edit"?(u.openBlock(),u.createBlock(E,{key:0,type:"index",width:"55"},{default:u.withCtx(({row:R,column:Q,$index:X})=>{var I;return[u.unref(s)==="edit"&&X===((I=r.value)==null?void 0:I.length)-1?u.renderSlot(M.$slots,"rowCreate",{key:0,row:R},void 0,!0):u.createCommentVNode("",!0)]}),_:3})):u.createCommentVNode("",!0),(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(o.value,(R,Q)=>{var X;return u.openBlock(),u.createElementBlock(u.Fragment,null,[(X=n.checkedColumns)!=null&&X.includes(R==null?void 0:R.label)?(u.openBlock(),u.createBlock(Xu,{key:0,column:R},{operateHeader:u.withCtx(()=>[u.renderSlot(M.$slots,"operateCol",{},void 0,!0)]),content:u.withCtx(({row:I,item:K,slotData:re})=>[((R==null?void 0:R.type)??"text")==="text"&&((I==null?void 0:I.tableEditType)??"text")==="text"?(u.openBlock(),u.createElementBlock("span",{key:0,class:"table-content",style:u.normalizeStyle({cursor:I!=null&&I.children?"pointer":"default"}),onClick:ie=>{var Me;return C(I!=null&&I[R==null?void 0:R.prop]?I==null?void 0:I[R==null?void 0:R.prop]:(I==null?void 0:I[K==null?void 0:K.prop])??(re==null?void 0:re[K==null?void 0:K.prop])??(I==null?void 0:I[(Me=K==null?void 0:K.child)==null?void 0:Me.prop]),K==null?void 0:K.prop,I??re,{data:p(I,R,K,re).value})}},u.toDisplayString(p(I,R,K,re)),13,Ju)):u.createCommentVNode("",!0),((R==null?void 0:R.type)??"text")==="operate"?(u.openBlock(),u.createElementBlock("span",{key:1,class:"table-operate",style:u.normalizeStyle({justifyContent:n.isShowEdit&&n.isShowDelete?"space-between":"center"})},[u.renderSlot(M.$slots,"actions",{item:I},void 0,!0),n.isShowEdit?(u.openBlock(),u.createElementBlock("span",{key:0,onClick:ie=>_(I),class:"blue-table-operate table-operate-content"},"编辑",8,Zu)):u.createCommentVNode("",!0),n.isShowDelete?(u.openBlock(),u.createElementBlock("span",{key:1,onClick:ie=>y(I),class:"red-table-operate table-operate-content"},"删除",8,ef)):u.createCommentVNode("",!0)],4)):u.createCommentVNode("",!0),((R==null?void 0:R.type)??"text")==="edit"&&((I==null?void 0:I.tableEditType)??"text")!=="edit"||((R==null?void 0:R.type)??"text")==="text"&&((I==null?void 0:I.tableEditType)??"text")==="edit"?(u.openBlock(),u.createElementBlock("span",tf,[(u.openBlock(),u.createBlock(u.resolveDynamicComponent(v((R==null?void 0:R.columnType)??"Input")),{modelValue:I[R.prop],"onUpdate:modelValue":ie=>I[R.prop]=ie,style:{height:"100%"},content:(R==null?void 0:R.contents)??[],onChange:ie=>f(ie,I,R)},null,40,["modelValue","onUpdate:modelValue","content","onChange"]))])):u.createCommentVNode("",!0)]),_:2},1032,["column"])):u.createCommentVNode("",!0)],64)}),256))]),_:3},8,["data"])),(t==null?void 0:t.isShowPagination)??!1?(u.openBlock(),u.createBlock(F,{key:0,onSizeChange:S,onCurrentChange:w,"current-page":(t==null?void 0:t.currentPage)??1,"page-sizes":[5,10,20,50,100],"page-size":(t==null?void 0:t.pageSize)??10,layout:"total, sizes, prev, pager, next, jumper",total:(t==null?void 0:t.total)??0},null,8,["current-page","page-size","total"])):u.createCommentVNode("",!0)])}}},Jr=de._export_sfc(nf,[["__scopeId","data-v-74dc1c32"]]),sf={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},emits:["dbChange"],setup(n,{emit:e}){const t=n,i=u.ref([]);u.watch(()=>{var r;return(r=t==null?void 0:t.content)==null?void 0:r.tableData},()=>{var r,l,a,h;((l=(r=t==null?void 0:t.content)==null?void 0:r.tableData)==null?void 0:l.length)===0||!((a=t==null?void 0:t.content)!=null&&a.tableData)||(i.value=te.cloneDeep((h=t==null?void 0:t.content)==null?void 0:h.tableData))},{deep:!0,immediate:!0});const s=e,o=r=>{var c,f,d,p;if(((c=t==null?void 0:t.content)==null?void 0:c.dbType)!=="edit"||!i.value||((f=i.value)==null?void 0:f.length)===0)return;let l=i.value,a=[];((d=l==null?void 0:l.filter(g=>(g==null?void 0:g.tableEditType)==="edit"))==null?void 0:d.length)!==(((p=t==null?void 0:t.content)==null?void 0:p.editNumber)??1)&&(l=l==null?void 0:l.map(g=>((g==null?void 0:g.id)===(r==null?void 0:r.id)&&(g.tableEditType="edit",a.push(g)),g)),s("dbChange",{content:l,item:a}))};return(r,l)=>{var a,h,c,f,d,p,g;return u.openBlock(),u.createElementBlock(u.Fragment,null,[u.renderSlot(r.$slots,`${(a=t==null?void 0:t.content)==null?void 0:a.value}_tableHeader`),(u.openBlock(),u.createBlock(Jr,{columns:((h=t==null?void 0:t.content)==null?void 0:h.columns)??[],tableData:i.value??[],currentPage:(c=t==null?void 0:t.content)==null?void 0:c.currentPage,total:(f=t==null?void 0:t.content)==null?void 0:f.total,pageSize:(d=t==null?void 0:t.content)==null?void 0:d.pageSize,isShowPagination:(p=t==null?void 0:t.content)==null?void 0:p.isShowPagination,isShowEdit:!1,isMoveColumn:(g=t==null?void 0:t.content)==null?void 0:g.isMoveColumn,isShowDelete:!1,onDoClickRow:o,key:i.value??[]},{actions:u.withCtx(({item:m})=>{var v;return[u.renderSlot(r.$slots,`${(v=t==null?void 0:t.content)==null?void 0:v.value}_action`,{item:m})]}),_:3},8,["columns","tableData","currentPage","total","pageSize","isShowPagination","isMoveColumn"]))],64)}}},of=async n=>{var i,s,o;const e=await te.getInsofDataApi({key:{pageKey:n==null?void 0:n.path,tableId:n==null?void 0:n.id,type:"data",systemKey:sessionStorage.getItem("systemKey")}});let t=[];return((i=e==null?void 0:e.data)==null?void 0:i.type)==="success"&&(t=(o=(s=e==null?void 0:e.data)==null?void 0:s.result)==null?void 0:o.map(r=>{var l;return(l=r==null?void 0:r.value)==null?void 0:l.tableData})),t=t==null?void 0:t.map(r=>({label:r==null?void 0:r[n==null?void 0:n.columnType],value:r==null?void 0:r[n==null?void 0:n.columnType]})),t},rf=async n=>{var s,o,r,l,a;let e="",t=[];(s=n==null?void 0:n.menuSelect)==null||s.forEach(h=>{e=e===""?e+h:e+"/"+h});let i="";return(l=(r=(o=await It.menuToParent(n==null?void 0:n.menuSelect))==null?void 0:o.data)==null?void 0:r.result)==null||l.forEach(h=>{var c,f,d,p;((f=(c=h==null?void 0:h.value)==null?void 0:c.pageData)==null?void 0:f.name)===(((p=(d=n==null?void 0:n.groupSelect)==null?void 0:d[0])==null?void 0:p.replaceAll("'",""))??"")&&(i=h==null?void 0:h.id)}),i!==""&&(t=of({path:e,id:i,columnType:(a=n==null?void 0:n.groupSelect)==null?void 0:a[1]})),t},lf={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0},optionUrl:{type:Object,default:()=>{}}},emits:["blurChange"],setup(n,{emit:e}){const t=n,i=e,s=u.ref(t.value),o=u.ref();u.onMounted(()=>{o.value=t==null?void 0:t.content});const r=()=>{i("blurChange")};return u.watch(()=>t.optionUrl,async()=>{var l,a,h,c;((a=(l=t.optionUrl)==null?void 0:l.menuSelect)==null?void 0:a.length)>0&&(o.value=await rf(t.optionUrl),s.value=(c=(h=o.value)==null?void 0:h[0])==null?void 0:c.value)},{immediate:!0,deep:!0}),(l,a)=>{const h=u.resolveComponent("el-option"),c=u.resolveComponent("el-select");return u.openBlock(),u.createBlock(c,{modelValue:s.value,"onUpdate:modelValue":a[0]||(a[0]=f=>s.value=f),clearable:"",placeholder:"请选择下拉内容...",style:{width:"100%"},onChange:r},{default:u.withCtx(()=>[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(o.value,f=>(u.openBlock(),u.createBlock(h,{key:f.value,label:f.label,value:f.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])}}},af=u.defineComponent({__name:"index",props:{value:String,config:Object,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},emits:["changeVisible"],setup(n,{emit:e}){const t=n,i=u.ref(t.value),s=e,o=u.ref({checkStrictly:!0}),r=l=>{s("changeVisible",l)};return(l,a)=>{const h=u.resolveComponent("el-cascader");return u.openBlock(),u.createBlock(h,{modelValue:i.value,"onUpdate:modelValue":a[0]||(a[0]=c=>i.value=c),clearable:"",props:o.value,options:t==null?void 0:t.content,style:{width:"100%"},onVisibleChange:r},null,8,["modelValue","props","options"])}}}),cf={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},setup(n){const e=n,t=u.ref(e.value);return(i,s)=>{const o=u.resolveComponent("el-option"),r=u.resolveComponent("el-select");return u.openBlock(),u.createBlock(r,{modelValue:t.value,"onUpdate:modelValue":s[0]||(s[0]=l=>t.value=l),multiple:"",clearable:"",placeholder:"请选择下拉内容...",style:{width:"100%"}},{default:u.withCtx(()=>[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(e==null?void 0:e.content,l=>(u.openBlock(),u.createBlock(o,{key:l.value,label:l.label,value:l.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])}}},hf=u.defineComponent({__name:"menuItem",props:{menuList:{type:Array,default:()=>[]}},emits:["clickMenu","openMenu","closeMenu"],setup(n,{emit:e}){const t=e,i=r=>{t("clickMenu",r)},s=r=>{t("openMenu",r)},o=r=>{t("closeMenu",r)};return u.onMounted(()=>{}),(r,l)=>{const a=u.resolveComponent("MenuItem",!0),h=u.resolveComponent("el-sub-menu"),c=u.resolveComponent("el-menu-item");return u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(n.menuList,f=>(u.openBlock(),u.createElementBlock(u.Fragment,null,[f.show&&f.children&&f.children.length>0?(u.openBlock(),u.createBlock(h,{index:f.path,key:f.path},{title:u.withCtx(()=>[u.renderSlot(r.$slots,"title",{menu:f})]),default:u.withCtx(()=>[u.createVNode(a,{menuList:f.children,onClickMenu:i,onOpenMenu:s,onCloseMenu:o},u.createSlots({_:2},[u.renderList(r.$slots,(d,p)=>({name:p,fn:u.withCtx(g=>[u.renderSlot(r.$slots,p,u.mergeProps({ref_for:!0},g))])}))]),1032,["menuList"])]),_:2},1032,["index"])):f.show?(u.openBlock(),u.createBlock(c,{index:f.path,key:f.path,onClick:d=>i(f)},{title:u.withCtx(()=>[u.renderSlot(r.$slots,"title",{menu:f})]),_:2},1032,["index","onClick"])):u.createCommentVNode("",!0)],64))),256)}}}),uf=u.defineComponent({__name:"index",props:{menuList:{type:Array,default:()=>[]},mode:{type:String,default:"vertical"}},emits:["clickMenu","openMenu","closeMenu"],setup(n,{emit:e}){const t=te.useMenuState(),{activeMenuPath:i,activeMenuOpenPaths:s,activeTopMenuPath:o}=te.storeToRefs(t),r=n,l=e,a=p=>{l("clickMenu",p)},h=p=>{l("openMenu",p)},c=p=>{l("closeMenu",p)},f=u.computed(()=>(r==null?void 0:r.mode)==="vertical"?i.value:o.value),d=u.computed(()=>s.value);return(p,g)=>{const m=u.resolveComponent("el-sub-menu"),v=u.resolveComponent("el-menu-item"),w=u.resolveComponent("el-menu");return u.openBlock(),u.createBlock(w,{class:"menu-wrap",mode:n.mode,"default-active":f.value,"default-openeds":d.value,"unique-opened":!0,"collapse-transition":!1,"popper-offset":12,ellipsis:!0,onOpen:h,onClose:c},{default:u.withCtx(()=>[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(n.menuList,b=>(u.openBlock(),u.createElementBlock(u.Fragment,null,[b.show&&b.children&&b.children.length>0?(u.openBlock(),u.createBlock(m,{index:b.path,key:b.path,style:u.normalizeStyle(b.style)},{title:u.withCtx(()=>[u.renderSlot(p.$slots,"title",{menu:b},void 0,!0)]),default:u.withCtx(()=>[u.createVNode(hf,{menuList:b.children,onClickMenu:a},u.createSlots({_:2},[u.renderList(p.$slots,(S,_)=>({name:_,fn:u.withCtx(y=>[u.renderSlot(p.$slots,_,u.mergeProps({ref_for:!0},y),void 0,!0)])}))]),1032,["menuList"])]),_:2},1032,["index","style"])):b.show?(u.openBlock(),u.createBlock(v,{index:b.path,key:b.path,style:u.normalizeStyle(b.style),onClick:S=>a(b)},{title:u.withCtx(()=>[u.renderSlot(p.$slots,"title",{menu:b},void 0,!0)]),_:2},1032,["index","style","onClick"])):u.createCommentVNode("",!0)],64))),256))]),_:3},8,["mode","default-active","default-openeds"])}}}),Zr=de._export_sfc(uf,[["__scopeId","data-v-6a992c79"]]),ff=Object.freeze(Object.defineProperty({__proto__:null,default:Zr},Symbol.toStringTag,{value:"Module"})),df={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},setup(n){const e=n,t=u.ref(e.value);return(i,s)=>{const o=u.resolveComponent("el-date-picker");return u.openBlock(),u.createBlock(o,{modelValue:t.value,"onUpdate:modelValue":s[0]||(s[0]=r=>t.value=r),type:"date",placeholder:"请选择日期",format:"YYYY-MM-DD",style:{width:"100%"}},null,8,["modelValue"])}}},pf={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},setup(n){const e=n,t=u.ref(e.value);return(i,s)=>{const o=u.resolveComponent("el-date-picker");return u.openBlock(),u.createBlock(o,{modelValue:t.value,"onUpdate:modelValue":s[0]||(s[0]=r=>t.value=r),type:"datetime",placeholder:"请选择时间",format:"YYYY-MM-DD HH:mm:ss",style:{width:"100%"}},null,8,["modelValue"])}}},gf={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},setup(n){const e=n,t=u.ref(e.value);return(i,s)=>{const o=u.resolveComponent("el-input");return u.openBlock(),u.createBlock(o,{modelValue:t.value,"onUpdate:modelValue":s[0]||(s[0]=r=>t.value=r),type:"textarea",placeholder:"请输入内容...",disabled:!(e!=null&&e.isEdit)},null,8,["modelValue","disabled"])}}},mf=de._export_sfc(gf,[["__scopeId","data-v-e31bf677"]]),vf={class:"dialog-title"},wf={__name:"index",props:{title:{type:String,default:""},dialogWidth:{type:Number,default:600},visible:{type:Boolean,default:!1},fullScreen:{type:Boolean,default:!1},dialogHeight:{type:Number,default:600},showClose:{type:Boolean,default:!0}},emits:["beforeDestroy"],setup(n,{emit:e}){const t=n,i=e,s=u.ref(!1),o=()=>{i("beforeDestroy")};return u.watch(()=>t==null?void 0:t.visible,()=>{s.value=t==null?void 0:t.visible},{deep:!0,immediate:!0}),(r,l)=>{const a=u.resolveComponent("el-dialog");return u.openBlock(),u.createBlock(a,{modelValue:s.value,"onUpdate:modelValue":l[0]||(l[0]=h=>s.value=h),width:t==null?void 0:t.dialogWidth,"before-close":o,draggable:"",style:u.normalizeStyle({height:t==null?void 0:t.dialogHeight}),fullscreen:t==null?void 0:t.fullScreen,"destroy-on-close":!0,"show-close":t==null?void 0:t.showClose},{default:u.withCtx(()=>[u.renderSlot(r.$slots,"default",{},void 0,!0)]),header:u.withCtx(()=>[u.createElementVNode("div",vf,u.toDisplayString(t==null?void 0:t.title),1),u.renderSlot(r.$slots,"header",{},void 0,!0)]),footer:u.withCtx(()=>[u.renderSlot(r.$slots,"footer",{},void 0,!0)]),_:3},8,["modelValue","width","style","fullscreen","show-close"])}}},E0=de._export_sfc(wf,[["__scopeId","data-v-048a6610"]]);function xf(n){const e=sessionStorage.getItem("loginToken")??"123456";return te.service({url:"/api/sysFile/uploadFile",method:"post",data:n,headers:{Authorization:e,"Content-Type":"multipart/form-data"}})}function bf(n){const e=sessionStorage.getItem("loginToken")??"123456";return te.service({url:"/api/sysFile/uploadAvatar",method:"post",data:n,headers:{Authorization:e,"Content-Type":"multipart/form-data"}})}function el(n){const e=sessionStorage.getItem("loginToken")??"123456";return te.service({url:"/api/sysFile/downloadFile",method:"post",data:n,headers:{Authorization:e,Accept:"application/octet-stream"},responseType:"blob"})}const yf={class:"txt-renderer"},kf={class:"txt-wrapper"},Sf={__name:"index",props:{fileName:String,blobUrl:String},setup(n){const e=n,t=u.computed(()=>e.blobUrl),i=u.ref("");return u.watchEffect(async()=>{t.value;const o=await(await fetch(t.value)).blob(),r=new FileReader;r.onload=function(l){i.value=l.target.result},r.readAsText(o)}),(s,o)=>(u.openBlock(),u.createElementBlock("div",yf,[u.createElementVNode("pre",kf,u.toDisplayString(i.value),1)]))}},Cf=de._export_sfc(Sf,[["__scopeId","data-v-fde812b6"]]),_f={class:"docx-renderer"},Of={__name:"index",props:{fileName:String,blobUrl:String},setup(n){const e=n,t=u.computed(()=>e.blobUrl),i=u.ref(null);return u.watchEffect(async()=>{t.value;const o=await(await fetch(t.value)).blob();await It.renderAsync(o,i.value,null,{})}),(s,o)=>(u.openBlock(),u.createElementBlock("div",_f,[u.createElementVNode("div",{ref_key:"docxPreview",ref:i,class:"render-docx-wrappper"},null,512)]))}},Mf=de._export_sfc(Of,[["__scopeId","data-v-78135a17"]]),Df={class:"xlsx-renderer"},Tf={__name:"index",props:{fileName:String,blobUrl:String},setup(n){const e=n,t=u.computed(()=>e.blobUrl),i=u.ref(null);return u.watchEffect(async()=>{t.value;const o=await(await fetch(t.value)).blob();i.value=It.Hg.init(document.getElementById("excel")),i.value.preview(o).then(()=>{console.log("预览完成")}).catch(r=>{console.log("预览失败",r)})}),(s,o)=>(u.openBlock(),u.createElementBlock("div",Df,o[0]||(o[0]=[u.createElementVNode("div",{id:"excel"},null,-1)])))}},Af=de._export_sfc(Tf,[["__scopeId","data-v-08dbfb73"]]),Bf={class:"pdf-renderer"},Pf=["src"],Ef={__name:"index",props:{fileName:String,blobUrl:String},setup(n){const e=n,t=u.computed(()=>e.blobUrl),i=u.ref("");return u.watchEffect(async()=>{t.value;const o=await(await fetch(t.value)).blob(),r=new Blob([o],{type:"application/pdf"}),l=URL.createObjectURL(r);i.value=l}),u.onUnmounted(()=>{i.value&&URL.revokeObjectURL(i.value)}),(s,o)=>(u.openBlock(),u.createElementBlock("div",Bf,[u.createElementVNode("iframe",{src:i.value,class:"pdf-iframe"},null,8,Pf)]))}},Vf=de._export_sfc(Ef,[["__scopeId","data-v-b4ab8c04"]]);let o2=[],tl=[];(()=>{let n="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(e=>e?parseInt(e,36):1);for(let e=0,t=0;e<n.length;e++)(e%2?tl:o2).push(t=t+n[e])})();function zf(n){if(n<768)return!1;for(let e=0,t=o2.length;;){let i=e+t>>1;if(n<o2[i])t=i;else if(n>=tl[i])e=i+1;else return!0;if(e==t)return!1}}function Gs(n){return n>=127462&&n<=127487}const js=8205;function Lf(n,e,t=!0,i=!0){return(t?il:Nf)(n,e,i)}function il(n,e,t){if(e==n.length)return e;e&&nl(n.charCodeAt(e))&&sl(n.charCodeAt(e-1))&&e--;let i=Tn(n,e);for(e+=qs(i);e<n.length;){let s=Tn(n,e);if(i==js||s==js||t&&zf(s))e+=qs(s),i=s;else if(Gs(s)){let o=0,r=e-2;for(;r>=0&&Gs(Tn(n,r));)o++,r-=2;if(o%2==0)break;e+=2}else break}return e}function Nf(n,e,t){for(;e>0;){let i=il(n,e-2,t);if(i<e)return i;e--}return 0}function Tn(n,e){let t=n.charCodeAt(e);if(!sl(t)||e+1==n.length)return t;let i=n.charCodeAt(e+1);return nl(i)?(t-55296<<10)+(i-56320)+65536:t}function nl(n){return n>=56320&&n<57344}function sl(n){return n>=55296&&n<56320}function qs(n){return n<65536?1:2}class Y{lineAt(e){if(e<0||e>this.length)throw new RangeError(`Invalid position ${e} in document of length ${this.length}`);return this.lineInner(e,!1,1,0)}line(e){if(e<1||e>this.lines)throw new RangeError(`Invalid line number ${e} in ${this.lines}-line document`);return this.lineInner(e,!0,1,0)}replace(e,t,i){[e,t]=o0(this,e,t);let s=[];return this.decompose(0,e,s,2),i.length&&i.decompose(0,i.length,s,3),this.decompose(t,this.length,s,1),et.from(s,this.length-(t-e)+i.length)}append(e){return this.replace(this.length,this.length,e)}slice(e,t=this.length){[e,t]=o0(this,e,t);let i=[];return this.decompose(e,t,i,0),et.from(i,t-e)}eq(e){if(e==this)return!0;if(e.length!=this.length||e.lines!=this.lines)return!1;let t=this.scanIdentical(e,1),i=this.length-this.scanIdentical(e,-1),s=new O0(this),o=new O0(e);for(let r=t,l=t;;){if(s.next(r),o.next(r),r=0,s.lineBreak!=o.lineBreak||s.done!=o.done||s.value!=o.value)return!1;if(l+=s.value.length,s.done||l>=i)return!0}}iter(e=1){return new O0(this,e)}iterRange(e,t=this.length){return new ol(this,e,t)}iterLines(e,t){let i;if(e==null)i=this.iter();else{t==null&&(t=this.lines+1);let s=this.line(e).from;i=this.iterRange(s,Math.max(s,t==this.lines+1?this.length:t<=1?0:this.line(t-1).to))}return new rl(i)}toString(){return this.sliceString(0)}toJSON(){let e=[];return this.flatten(e),e}constructor(){}static of(e){if(e.length==0)throw new RangeError("A document must have at least one line");return e.length==1&&!e[0]?Y.empty:e.length<=32?new le(e):et.from(le.split(e,[]))}}class le extends Y{constructor(e,t=Rf(e)){super(),this.text=e,this.length=t}get lines(){return this.text.length}get children(){return null}lineInner(e,t,i,s){for(let o=0;;o++){let r=this.text[o],l=s+r.length;if((t?i:l)>=e)return new If(s,l,i,r);s=l+1,i++}}decompose(e,t,i,s){let o=e<=0&&t>=this.length?this:new le(Us(this.text,e,t),Math.min(t,this.length)-Math.max(0,e));if(s&1){let r=i.pop(),l=Oi(o.text,r.text.slice(),0,o.length);if(l.length<=32)i.push(new le(l,r.length+o.length));else{let a=l.length>>1;i.push(new le(l.slice(0,a)),new le(l.slice(a)))}}else i.push(o)}replace(e,t,i){if(!(i instanceof le))return super.replace(e,t,i);[e,t]=o0(this,e,t);let s=Oi(this.text,Oi(i.text,Us(this.text,0,e)),t),o=this.length+i.length-(t-e);return s.length<=32?new le(s,o):et.from(le.split(s,[]),o)}sliceString(e,t=this.length,i=`
|
|
2
|
-
`){[e,t]=
|
|
3
|
-
`){[e,t]=
|
|
4
|
-
`,this;e--}else if(s instanceof le){let a=s.text[r+(t<0?-1:0)];if(this.offsets[i]+=t,a.length>Math.max(0,e))return this.value=e==0?a:t>0?a.slice(e):a.slice(0,a.length-e),this;e-=a.length}else{let a=s.children[r+(t<0?-1:0)];e>a.length?(e-=a.length,this.offsets[i]+=t):(t<0&&this.offsets[i]--,this.nodes.push(a),this.offsets.push(t>0?1:(a instanceof le?a.text.length:a.children.length)<<1))}}}next(e=0){return e<0&&(this.nextInner(-e,-this.dir),e=this.value.length),this.nextInner(e,this.dir)}}class ol{constructor(e,t,i){this.value="",this.done=!1,this.cursor=new O0(e,t>i?-1:1),this.pos=t>i?e.length:0,this.from=Math.min(t,i),this.to=Math.max(t,i)}nextInner(e,t){if(t<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;e+=Math.max(0,t<0?this.pos-this.to:this.from-this.pos);let i=t<0?this.pos-this.from:this.to-this.pos;e>i&&(e=i),i-=e;let{value:s}=this.cursor.next(e);return this.pos+=(s.length+e)*t,this.value=s.length<=i?s:t<0?s.slice(s.length-i):s.slice(0,i),this.done=!this.value,this}next(e=0){return e<0?e=Math.max(e,this.from-this.pos):e>0&&(e=Math.min(e,this.to-this.pos)),this.nextInner(e,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&this.value!=""}}class rl{constructor(e){this.inner=e,this.afterBreak=!0,this.value="",this.done=!1}next(e=0){let{done:t,lineBreak:i,value:s}=this.inner.next(e);return t&&this.afterBreak?(this.value="",this.afterBreak=!1):t?(this.done=!0,this.value=""):i?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=s,this.afterBreak=!1),this}get lineBreak(){return!1}}typeof Symbol<"u"&&(Y.prototype[Symbol.iterator]=function(){return this.iter()},O0.prototype[Symbol.iterator]=ol.prototype[Symbol.iterator]=rl.prototype[Symbol.iterator]=function(){return this});class If{constructor(e,t,i,s){this.from=e,this.to=t,this.number=i,this.text=s}get length(){return this.to-this.from}}function o0(n,e,t){return e=Math.max(0,Math.min(n.length,e)),[e,Math.max(e,Math.min(n.length,t))]}function xe(n,e,t=!0,i=!0){return Lf(n,e,t,i)}function Hf(n){return n>=56320&&n<57344}function $f(n){return n>=55296&&n<56320}function Te(n,e){let t=n.charCodeAt(e);if(!$f(t)||e+1==n.length)return t;let i=n.charCodeAt(e+1);return Hf(i)?(t-55296<<10)+(i-56320)+65536:t}function is(n){return n<=65535?String.fromCharCode(n):(n-=65536,String.fromCharCode((n>>10)+55296,(n&1023)+56320))}function tt(n){return n<65536?1:2}const r2=/\r\n?|\n/;var Ce=function(n){return n[n.Simple=0]="Simple",n[n.TrackDel=1]="TrackDel",n[n.TrackBefore=2]="TrackBefore",n[n.TrackAfter=3]="TrackAfter",n}(Ce||(Ce={}));class ot{constructor(e){this.sections=e}get length(){let e=0;for(let t=0;t<this.sections.length;t+=2)e+=this.sections[t];return e}get newLength(){let e=0;for(let t=0;t<this.sections.length;t+=2){let i=this.sections[t+1];e+=i<0?this.sections[t]:i}return e}get empty(){return this.sections.length==0||this.sections.length==2&&this.sections[1]<0}iterGaps(e){for(let t=0,i=0,s=0;t<this.sections.length;){let o=this.sections[t++],r=this.sections[t++];r<0?(e(i,s,o),s+=o):s+=r,i+=o}}iterChangedRanges(e,t=!1){l2(this,e,t)}get invertedDesc(){let e=[];for(let t=0;t<this.sections.length;){let i=this.sections[t++],s=this.sections[t++];s<0?e.push(i,s):e.push(s,i)}return new ot(e)}composeDesc(e){return this.empty?e:e.empty?this:ll(this,e)}mapDesc(e,t=!1){return e.empty?this:a2(this,e,t)}mapPos(e,t=-1,i=Ce.Simple){let s=0,o=0;for(let r=0;r<this.sections.length;){let l=this.sections[r++],a=this.sections[r++],h=s+l;if(a<0){if(h>e)return o+(e-s);o+=l}else{if(i!=Ce.Simple&&h>=e&&(i==Ce.TrackDel&&s<e&&h>e||i==Ce.TrackBefore&&s<e||i==Ce.TrackAfter&&h>e))return null;if(h>e||h==e&&t<0&&!l)return e==s||t<0?o:o+a;o+=a}s=h}if(e>s)throw new RangeError(`Position ${e} is out of range for changeset of length ${s}`);return o}touchesRange(e,t=e){for(let i=0,s=0;i<this.sections.length&&s<=t;){let o=this.sections[i++],r=this.sections[i++],l=s+o;if(r>=0&&s<=t&&l>=e)return s<e&&l>t?"cover":!0;s=l}return!1}toString(){let e="";for(let t=0;t<this.sections.length;){let i=this.sections[t++],s=this.sections[t++];e+=(e?" ":"")+i+(s>=0?":"+s:"")}return e}toJSON(){return this.sections}static fromJSON(e){if(!Array.isArray(e)||e.length%2||e.some(t=>typeof t!="number"))throw new RangeError("Invalid JSON representation of ChangeDesc");return new ot(e)}static create(e){return new ot(e)}}class ue extends ot{constructor(e,t){super(e),this.inserted=t}apply(e){if(this.length!=e.length)throw new RangeError("Applying change set to a document with the wrong length");return l2(this,(t,i,s,o,r)=>e=e.replace(s,s+(i-t),r),!1),e}mapDesc(e,t=!1){return a2(this,e,t,!0)}invert(e){let t=this.sections.slice(),i=[];for(let s=0,o=0;s<t.length;s+=2){let r=t[s],l=t[s+1];if(l>=0){t[s]=l,t[s+1]=r;let a=s>>1;for(;i.length<a;)i.push(Y.empty);i.push(r?e.slice(o,o+r):Y.empty)}o+=r}return new ue(t,i)}compose(e){return this.empty?e:e.empty?this:ll(this,e,!0)}map(e,t=!1){return e.empty?this:a2(this,e,t,!0)}iterChanges(e,t=!1){l2(this,e,t)}get desc(){return ot.create(this.sections)}filter(e){let t=[],i=[],s=[],o=new V0(this);e:for(let r=0,l=0;;){let a=r==e.length?1e9:e[r++];for(;l<a||l==a&&o.len==0;){if(o.done)break e;let c=Math.min(o.len,a-l);ye(s,c,-1);let f=o.ins==-1?-1:o.off==0?o.ins:0;ye(t,c,f),f>0&&xt(i,t,o.text),o.forward(c),l+=c}let h=e[r++];for(;l<h;){if(o.done)break e;let c=Math.min(o.len,h-l);ye(t,c,-1),ye(s,c,o.ins==-1?-1:o.off==0?o.ins:0),o.forward(c),l+=c}}return{changes:new ue(t,i),filtered:ot.create(s)}}toJSON(){let e=[];for(let t=0;t<this.sections.length;t+=2){let i=this.sections[t],s=this.sections[t+1];s<0?e.push(i):s==0?e.push([i]):e.push([i].concat(this.inserted[t>>1].toJSON()))}return e}static of(e,t,i){let s=[],o=[],r=0,l=null;function a(c=!1){if(!c&&!s.length)return;r<t&&ye(s,t-r,-1);let f=new ue(s,o);l=l?l.compose(f.map(l)):f,s=[],o=[],r=0}function h(c){if(Array.isArray(c))for(let f of c)h(f);else if(c instanceof ue){if(c.length!=t)throw new RangeError(`Mismatched change set length (got ${c.length}, expected ${t})`);a(),l=l?l.compose(c.map(l)):c}else{let{from:f,to:d=f,insert:p}=c;if(f>d||f<0||d>t)throw new RangeError(`Invalid change range ${f} to ${d} (in doc of length ${t})`);let g=p?typeof p=="string"?Y.of(p.split(i||r2)):p:Y.empty,m=g.length;if(f==d&&m==0)return;f<r&&a(),f>r&&ye(s,f-r,-1),ye(s,d-f,m),xt(o,s,g),r=d}}return h(e),a(!l),l}static empty(e){return new ue(e?[e,-1]:[],[])}static fromJSON(e){if(!Array.isArray(e))throw new RangeError("Invalid JSON representation of ChangeSet");let t=[],i=[];for(let s=0;s<e.length;s++){let o=e[s];if(typeof o=="number")t.push(o,-1);else{if(!Array.isArray(o)||typeof o[0]!="number"||o.some((r,l)=>l&&typeof r!="string"))throw new RangeError("Invalid JSON representation of ChangeSet");if(o.length==1)t.push(o[0],0);else{for(;i.length<s;)i.push(Y.empty);i[s]=Y.of(o.slice(1)),t.push(o[0],i[s].length)}}}return new ue(t,i)}static createSet(e,t){return new ue(e,t)}}function ye(n,e,t,i=!1){if(e==0&&t<=0)return;let s=n.length-2;s>=0&&t<=0&&t==n[s+1]?n[s]+=e:s>=0&&e==0&&n[s]==0?n[s+1]+=t:i?(n[s]+=e,n[s+1]+=t):n.push(e,t)}function xt(n,e,t){if(t.length==0)return;let i=e.length-2>>1;if(i<n.length)n[n.length-1]=n[n.length-1].append(t);else{for(;n.length<i;)n.push(Y.empty);n.push(t)}}function l2(n,e,t){let i=n.inserted;for(let s=0,o=0,r=0;r<n.sections.length;){let l=n.sections[r++],a=n.sections[r++];if(a<0)s+=l,o+=l;else{let h=s,c=o,f=Y.empty;for(;h+=l,c+=a,a&&i&&(f=f.append(i[r-2>>1])),!(t||r==n.sections.length||n.sections[r+1]<0);)l=n.sections[r++],a=n.sections[r++];e(s,h,o,c,f),s=h,o=c}}}function a2(n,e,t,i=!1){let s=[],o=i?[]:null,r=new V0(n),l=new V0(e);for(let a=-1;;){if(r.done&&l.len||l.done&&r.len)throw new Error("Mismatched change set lengths");if(r.ins==-1&&l.ins==-1){let h=Math.min(r.len,l.len);ye(s,h,-1),r.forward(h),l.forward(h)}else if(l.ins>=0&&(r.ins<0||a==r.i||r.off==0&&(l.len<r.len||l.len==r.len&&!t))){let h=l.len;for(ye(s,l.ins,-1);h;){let c=Math.min(r.len,h);r.ins>=0&&a<r.i&&r.len<=c&&(ye(s,0,r.ins),o&&xt(o,s,r.text),a=r.i),r.forward(c),h-=c}l.next()}else if(r.ins>=0){let h=0,c=r.len;for(;c;)if(l.ins==-1){let f=Math.min(c,l.len);h+=f,c-=f,l.forward(f)}else if(l.ins==0&&l.len<c)c-=l.len,l.next();else break;ye(s,h,a<r.i?r.ins:0),o&&a<r.i&&xt(o,s,r.text),a=r.i,r.forward(r.len-c)}else{if(r.done&&l.done)return o?ue.createSet(s,o):ot.create(s);throw new Error("Mismatched change set lengths")}}}function ll(n,e,t=!1){let i=[],s=t?[]:null,o=new V0(n),r=new V0(e);for(let l=!1;;){if(o.done&&r.done)return s?ue.createSet(i,s):ot.create(i);if(o.ins==0)ye(i,o.len,0,l),o.next();else if(r.len==0&&!r.done)ye(i,0,r.ins,l),s&&xt(s,i,r.text),r.next();else{if(o.done||r.done)throw new Error("Mismatched change set lengths");{let a=Math.min(o.len2,r.len),h=i.length;if(o.ins==-1){let c=r.ins==-1?-1:r.off?0:r.ins;ye(i,a,c,l),s&&c&&xt(s,i,r.text)}else r.ins==-1?(ye(i,o.off?0:o.len,a,l),s&&xt(s,i,o.textBit(a))):(ye(i,o.off?0:o.len,r.off?0:r.ins,l),s&&!r.off&&xt(s,i,r.text));l=(o.ins>a||r.ins>=0&&r.len>a)&&(l||i.length>h),o.forward2(a),r.forward(a)}}}}class V0{constructor(e){this.set=e,this.i=0,this.next()}next(){let{sections:e}=this.set;this.i<e.length?(this.len=e[this.i++],this.ins=e[this.i++]):(this.len=0,this.ins=-2),this.off=0}get done(){return this.ins==-2}get len2(){return this.ins<0?this.len:this.ins}get text(){let{inserted:e}=this.set,t=this.i-2>>1;return t>=e.length?Y.empty:e[t]}textBit(e){let{inserted:t}=this.set,i=this.i-2>>1;return i>=t.length&&!e?Y.empty:t[i].slice(this.off,e==null?void 0:this.off+e)}forward(e){e==this.len?this.next():(this.len-=e,this.off+=e)}forward2(e){this.ins==-1?this.forward(e):e==this.ins?this.next():(this.ins-=e,this.off+=e)}}class zt{constructor(e,t,i){this.from=e,this.to=t,this.flags=i}get anchor(){return this.flags&32?this.to:this.from}get head(){return this.flags&32?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return this.flags&8?-1:this.flags&16?1:0}get bidiLevel(){let e=this.flags&7;return e==7?null:e}get goalColumn(){let e=this.flags>>6;return e==16777215?void 0:e}map(e,t=-1){let i,s;return this.empty?i=s=e.mapPos(this.from,t):(i=e.mapPos(this.from,1),s=e.mapPos(this.to,-1)),i==this.from&&s==this.to?this:new zt(i,s,this.flags)}extend(e,t=e){if(e<=this.anchor&&t>=this.anchor)return O.range(e,t);let i=Math.abs(e-this.anchor)>Math.abs(t-this.anchor)?e:t;return O.range(this.anchor,i)}eq(e,t=!1){return this.anchor==e.anchor&&this.head==e.head&&(!t||!this.empty||this.assoc==e.assoc)}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(e){if(!e||typeof e.anchor!="number"||typeof e.head!="number")throw new RangeError("Invalid JSON representation for SelectionRange");return O.range(e.anchor,e.head)}static create(e,t,i){return new zt(e,t,i)}}class O{constructor(e,t){this.ranges=e,this.mainIndex=t}map(e,t=-1){return e.empty?this:O.create(this.ranges.map(i=>i.map(e,t)),this.mainIndex)}eq(e,t=!1){if(this.ranges.length!=e.ranges.length||this.mainIndex!=e.mainIndex)return!1;for(let i=0;i<this.ranges.length;i++)if(!this.ranges[i].eq(e.ranges[i],t))return!1;return!0}get main(){return this.ranges[this.mainIndex]}asSingle(){return this.ranges.length==1?this:new O([this.main],0)}addRange(e,t=!0){return O.create([e].concat(this.ranges),t?0:this.mainIndex+1)}replaceRange(e,t=this.mainIndex){let i=this.ranges.slice();return i[t]=e,O.create(i,this.mainIndex)}toJSON(){return{ranges:this.ranges.map(e=>e.toJSON()),main:this.mainIndex}}static fromJSON(e){if(!e||!Array.isArray(e.ranges)||typeof e.main!="number"||e.main>=e.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new O(e.ranges.map(t=>zt.fromJSON(t)),e.main)}static single(e,t=e){return new O([O.range(e,t)],0)}static create(e,t=0){if(e.length==0)throw new RangeError("A selection needs at least one range");for(let i=0,s=0;s<e.length;s++){let o=e[s];if(o.empty?o.from<=i:o.from<i)return O.normalized(e.slice(),t);i=o.to}return new O(e,t)}static cursor(e,t=0,i,s){return zt.create(e,e,(t==0?0:t<0?8:16)|(i==null?7:Math.min(6,i))|(s??16777215)<<6)}static range(e,t,i,s){let o=(i??16777215)<<6|(s==null?7:Math.min(6,s));return t<e?zt.create(t,e,48|o):zt.create(e,t,(t>e?8:0)|o)}static normalized(e,t=0){let i=e[t];e.sort((s,o)=>s.from-o.from),t=e.indexOf(i);for(let s=1;s<e.length;s++){let o=e[s],r=e[s-1];if(o.empty?o.from<=r.to:o.from<r.to){let l=r.from,a=Math.max(o.to,r.to);s<=t&&t--,e.splice(--s,2,o.anchor>o.head?O.range(a,l):O.range(l,a))}}return new O(e,t)}}function al(n,e){for(let t of n.ranges)if(t.to>e)throw new RangeError("Selection points outside of document")}let ns=0;class L{constructor(e,t,i,s,o){this.combine=e,this.compareInput=t,this.compare=i,this.isStatic=s,this.id=ns++,this.default=e([]),this.extensions=typeof o=="function"?o(this):o}get reader(){return this}static define(e={}){return new L(e.combine||(t=>t),e.compareInput||((t,i)=>t===i),e.compare||(e.combine?(t,i)=>t===i:ss),!!e.static,e.enables)}of(e){return new Mi([],this,0,e)}compute(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new Mi(e,this,1,t)}computeN(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new Mi(e,this,2,t)}from(e,t){return t||(t=i=>i),this.compute([e],i=>t(i.field(e)))}}function ss(n,e){return n==e||n.length==e.length&&n.every((t,i)=>t===e[i])}class Mi{constructor(e,t,i,s){this.dependencies=e,this.facet=t,this.type=i,this.value=s,this.id=ns++}dynamicSlot(e){var t;let i=this.value,s=this.facet.compareInput,o=this.id,r=e[o]>>1,l=this.type==2,a=!1,h=!1,c=[];for(let f of this.dependencies)f=="doc"?a=!0:f=="selection"?h=!0:(((t=e[f.id])!==null&&t!==void 0?t:1)&1)==0&&c.push(e[f.id]);return{create(f){return f.values[r]=i(f),1},update(f,d){if(a&&d.docChanged||h&&(d.docChanged||d.selection)||c2(f,c)){let p=i(f);if(l?!Ys(p,f.values[r],s):!s(p,f.values[r]))return f.values[r]=p,1}return 0},reconfigure:(f,d)=>{let p,g=d.config.address[o];if(g!=null){let m=Hi(d,g);if(this.dependencies.every(v=>v instanceof L?d.facet(v)===f.facet(v):v instanceof be?d.field(v,!1)==f.field(v,!1):!0)||(l?Ys(p=i(f),m,s):s(p=i(f),m)))return f.values[r]=m,0}else p=i(f);return f.values[r]=p,1}}}}function Ys(n,e,t){if(n.length!=e.length)return!1;for(let i=0;i<n.length;i++)if(!t(n[i],e[i]))return!1;return!0}function c2(n,e){let t=!1;for(let i of e)M0(n,i)&1&&(t=!0);return t}function Wf(n,e,t){let i=t.map(a=>n[a.id]),s=t.map(a=>a.type),o=i.filter(a=>!(a&1)),r=n[e.id]>>1;function l(a){let h=[];for(let c=0;c<i.length;c++){let f=Hi(a,i[c]);if(s[c]==2)for(let d of f)h.push(d);else h.push(f)}return e.combine(h)}return{create(a){for(let h of i)M0(a,h);return a.values[r]=l(a),1},update(a,h){if(!c2(a,o))return 0;let c=l(a);return e.compare(c,a.values[r])?0:(a.values[r]=c,1)},reconfigure(a,h){let c=c2(a,i),f=h.config.facets[e.id],d=h.facet(e);if(f&&!c&&ss(t,f))return a.values[r]=d,0;let p=l(a);return e.compare(p,d)?(a.values[r]=d,0):(a.values[r]=p,1)}}}const ii=L.define({static:!0});class be{constructor(e,t,i,s,o){this.id=e,this.createF=t,this.updateF=i,this.compareF=s,this.spec=o,this.provides=void 0}static define(e){let t=new be(ns++,e.create,e.update,e.compare||((i,s)=>i===s),e);return e.provide&&(t.provides=e.provide(t)),t}create(e){let t=e.facet(ii).find(i=>i.field==this);return((t==null?void 0:t.create)||this.createF)(e)}slot(e){let t=e[this.id]>>1;return{create:i=>(i.values[t]=this.create(i),1),update:(i,s)=>{let o=i.values[t],r=this.updateF(o,s);return this.compareF(o,r)?0:(i.values[t]=r,1)},reconfigure:(i,s)=>{let o=i.facet(ii),r=s.facet(ii),l;return(l=o.find(a=>a.field==this))&&l!=r.find(a=>a.field==this)?(i.values[t]=l.create(i),1):s.config.address[this.id]!=null?(i.values[t]=s.field(this),0):(i.values[t]=this.create(i),1)}}}init(e){return[this,ii.of({field:this,create:e})]}get extension(){return this}}const Et={lowest:4,low:3,default:2,high:1,highest:0};function m0(n){return e=>new cl(e,n)}const jt={highest:m0(Et.highest),high:m0(Et.high),default:m0(Et.default),low:m0(Et.low),lowest:m0(Et.lowest)};class cl{constructor(e,t){this.inner=e,this.prec=t}}class gn{of(e){return new h2(this,e)}reconfigure(e){return gn.reconfigure.of({compartment:this,extension:e})}get(e){return e.config.compartments.get(this)}}class h2{constructor(e,t){this.compartment=e,this.inner=t}}class Ii{constructor(e,t,i,s,o,r){for(this.base=e,this.compartments=t,this.dynamicSlots=i,this.address=s,this.staticValues=o,this.facets=r,this.statusTemplate=[];this.statusTemplate.length<i.length;)this.statusTemplate.push(0)}staticFacet(e){let t=this.address[e.id];return t==null?e.default:this.staticValues[t>>1]}static resolve(e,t,i){let s=[],o=Object.create(null),r=new Map;for(let d of Ff(e,t,r))d instanceof be?s.push(d):(o[d.facet.id]||(o[d.facet.id]=[])).push(d);let l=Object.create(null),a=[],h=[];for(let d of s)l[d.id]=h.length<<1,h.push(p=>d.slot(p));let c=i==null?void 0:i.config.facets;for(let d in o){let p=o[d],g=p[0].facet,m=c&&c[d]||[];if(p.every(v=>v.type==0))if(l[g.id]=a.length<<1|1,ss(m,p))a.push(i.facet(g));else{let v=g.combine(p.map(w=>w.value));a.push(i&&g.compare(v,i.facet(g))?i.facet(g):v)}else{for(let v of p)v.type==0?(l[v.id]=a.length<<1|1,a.push(v.value)):(l[v.id]=h.length<<1,h.push(w=>v.dynamicSlot(w)));l[g.id]=h.length<<1,h.push(v=>Wf(v,g,p))}}let f=h.map(d=>d(l));return new Ii(e,r,f,l,a,o)}}function Ff(n,e,t){let i=[[],[],[],[],[]],s=new Map;function o(r,l){let a=s.get(r);if(a!=null){if(a<=l)return;let h=i[a].indexOf(r);h>-1&&i[a].splice(h,1),r instanceof h2&&t.delete(r.compartment)}if(s.set(r,l),Array.isArray(r))for(let h of r)o(h,l);else if(r instanceof h2){if(t.has(r.compartment))throw new RangeError("Duplicate use of compartment in extensions");let h=e.get(r.compartment)||r.inner;t.set(r.compartment,h),o(h,l)}else if(r instanceof cl)o(r.inner,r.prec);else if(r instanceof be)i[l].push(r),r.provides&&o(r.provides,l);else if(r instanceof Mi)i[l].push(r),r.facet.extensions&&o(r.facet.extensions,Et.default);else{let h=r.extension;if(!h)throw new Error(`Unrecognized extension value in extension set (${r}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);o(h,l)}}return o(n,Et.default),i.reduce((r,l)=>r.concat(l))}function M0(n,e){if(e&1)return 2;let t=e>>1,i=n.status[t];if(i==4)throw new Error("Cyclic dependency between fields and/or facets");if(i&2)return i;n.status[t]=4;let s=n.computeSlot(n,n.config.dynamicSlots[t]);return n.status[t]=2|s}function Hi(n,e){return e&1?n.config.staticValues[e>>1]:n.values[e>>1]}const hl=L.define(),u2=L.define({combine:n=>n.some(e=>e),static:!0}),ul=L.define({combine:n=>n.length?n[0]:void 0,static:!0}),fl=L.define(),dl=L.define(),pl=L.define(),gl=L.define({combine:n=>n.length?n[0]:!1});class gt{constructor(e,t){this.type=e,this.value=t}static define(){return new Gf}}class Gf{of(e){return new gt(this,e)}}class jf{constructor(e){this.map=e}of(e){return new G(this,e)}}class G{constructor(e,t){this.type=e,this.value=t}map(e){let t=this.type.map(this.value,e);return t===void 0?void 0:t==this.value?this:new G(this.type,t)}is(e){return this.type==e}static define(e={}){return new jf(e.map||(t=>t))}static mapEffects(e,t){if(!e.length)return e;let i=[];for(let s of e){let o=s.map(t);o&&i.push(o)}return i}}G.reconfigure=G.define();G.appendConfig=G.define();class fe{constructor(e,t,i,s,o,r){this.startState=e,this.changes=t,this.selection=i,this.effects=s,this.annotations=o,this.scrollIntoView=r,this._doc=null,this._state=null,i&&al(i,t.newLength),o.some(l=>l.type==fe.time)||(this.annotations=o.concat(fe.time.of(Date.now())))}static create(e,t,i,s,o,r){return new fe(e,t,i,s,o,r)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(e){for(let t of this.annotations)if(t.type==e)return t.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(e){let t=this.annotation(fe.userEvent);return!!(t&&(t==e||t.length>e.length&&t.slice(0,e.length)==e&&t[e.length]=="."))}}fe.time=gt.define();fe.userEvent=gt.define();fe.addToHistory=gt.define();fe.remote=gt.define();function qf(n,e){let t=[];for(let i=0,s=0;;){let o,r;if(i<n.length&&(s==e.length||e[s]>=n[i]))o=n[i++],r=n[i++];else if(s<e.length)o=e[s++],r=e[s++];else return t;!t.length||t[t.length-1]<o?t.push(o,r):t[t.length-1]<r&&(t[t.length-1]=r)}}function ml(n,e,t){var i;let s,o,r;return t?(s=e.changes,o=ue.empty(e.changes.length),r=n.changes.compose(e.changes)):(s=e.changes.map(n.changes),o=n.changes.mapDesc(e.changes,!0),r=n.changes.compose(s)),{changes:r,selection:e.selection?e.selection.map(o):(i=n.selection)===null||i===void 0?void 0:i.map(s),effects:G.mapEffects(n.effects,s).concat(G.mapEffects(e.effects,o)),annotations:n.annotations.length?n.annotations.concat(e.annotations):e.annotations,scrollIntoView:n.scrollIntoView||e.scrollIntoView}}function f2(n,e,t){let i=e.selection,s=Zt(e.annotations);return e.userEvent&&(s=s.concat(fe.userEvent.of(e.userEvent))),{changes:e.changes instanceof ue?e.changes:ue.of(e.changes||[],t,n.facet(ul)),selection:i&&(i instanceof O?i:O.single(i.anchor,i.head)),effects:Zt(e.effects),annotations:s,scrollIntoView:!!e.scrollIntoView}}function vl(n,e,t){let i=f2(n,e.length?e[0]:{},n.doc.length);e.length&&e[0].filter===!1&&(t=!1);for(let o=1;o<e.length;o++){e[o].filter===!1&&(t=!1);let r=!!e[o].sequential;i=ml(i,f2(n,e[o],r?i.changes.newLength:n.doc.length),r)}let s=fe.create(n,i.changes,i.selection,i.effects,i.annotations,i.scrollIntoView);return Yf(t?Uf(s):s)}function Uf(n){let e=n.startState,t=!0;for(let s of e.facet(fl)){let o=s(n);if(o===!1){t=!1;break}Array.isArray(o)&&(t=t===!0?o:qf(t,o))}if(t!==!0){let s,o;if(t===!1)o=n.changes.invertedDesc,s=ue.empty(e.doc.length);else{let r=n.changes.filter(t);s=r.changes,o=r.filtered.mapDesc(r.changes).invertedDesc}n=fe.create(e,s,n.selection&&n.selection.map(o),G.mapEffects(n.effects,o),n.annotations,n.scrollIntoView)}let i=e.facet(dl);for(let s=i.length-1;s>=0;s--){let o=i[s](n);o instanceof fe?n=o:Array.isArray(o)&&o.length==1&&o[0]instanceof fe?n=o[0]:n=vl(e,Zt(o),!1)}return n}function Yf(n){let e=n.startState,t=e.facet(pl),i=n;for(let s=t.length-1;s>=0;s--){let o=t[s](n);o&&Object.keys(o).length&&(i=ml(i,f2(e,o,n.changes.newLength),!0))}return i==n?n:fe.create(e,n.changes,n.selection,i.effects,i.annotations,i.scrollIntoView)}const Kf=[];function Zt(n){return n==null?Kf:Array.isArray(n)?n:[n]}var oe=function(n){return n[n.Word=0]="Word",n[n.Space=1]="Space",n[n.Other=2]="Other",n}(oe||(oe={}));const Xf=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let d2;try{d2=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch{}function Qf(n){if(d2)return d2.test(n);for(let e=0;e<n.length;e++){let t=n[e];if(/\w/.test(t)||t>""&&(t.toUpperCase()!=t.toLowerCase()||Xf.test(t)))return!0}return!1}function Jf(n){return e=>{if(!/\S/.test(e))return oe.Space;if(Qf(e))return oe.Word;for(let t=0;t<n.length;t++)if(e.indexOf(n[t])>-1)return oe.Word;return oe.Other}}class q{constructor(e,t,i,s,o,r){this.config=e,this.doc=t,this.selection=i,this.values=s,this.status=e.statusTemplate.slice(),this.computeSlot=o,r&&(r._state=this);for(let l=0;l<this.config.dynamicSlots.length;l++)M0(this,l<<1);this.computeSlot=null}field(e,t=!0){let i=this.config.address[e.id];if(i==null){if(t)throw new RangeError("Field is not present in this state");return}return M0(this,i),Hi(this,i)}update(...e){return vl(this,e,!0)}applyTransaction(e){let t=this.config,{base:i,compartments:s}=t;for(let l of e.effects)l.is(gn.reconfigure)?(t&&(s=new Map,t.compartments.forEach((a,h)=>s.set(h,a)),t=null),s.set(l.value.compartment,l.value.extension)):l.is(G.reconfigure)?(t=null,i=l.value):l.is(G.appendConfig)&&(t=null,i=Zt(i).concat(l.value));let o;t?o=e.startState.values.slice():(t=Ii.resolve(i,s,this),o=new q(t,this.doc,this.selection,t.dynamicSlots.map(()=>null),(a,h)=>h.reconfigure(a,this),null).values);let r=e.startState.facet(u2)?e.newSelection:e.newSelection.asSingle();new q(t,e.newDoc,r,o,(l,a)=>a.update(l,e),e)}replaceSelection(e){return typeof e=="string"&&(e=this.toText(e)),this.changeByRange(t=>({changes:{from:t.from,to:t.to,insert:e},range:O.cursor(t.from+e.length)}))}changeByRange(e){let t=this.selection,i=e(t.ranges[0]),s=this.changes(i.changes),o=[i.range],r=Zt(i.effects);for(let l=1;l<t.ranges.length;l++){let a=e(t.ranges[l]),h=this.changes(a.changes),c=h.map(s);for(let d=0;d<l;d++)o[d]=o[d].map(c);let f=s.mapDesc(h,!0);o.push(a.range.map(f)),s=s.compose(c),r=G.mapEffects(r,c).concat(G.mapEffects(Zt(a.effects),f))}return{changes:s,selection:O.create(o,t.mainIndex),effects:r}}changes(e=[]){return e instanceof ue?e:ue.of(e,this.doc.length,this.facet(q.lineSeparator))}toText(e){return Y.of(e.split(this.facet(q.lineSeparator)||r2))}sliceDoc(e=0,t=this.doc.length){return this.doc.sliceString(e,t,this.lineBreak)}facet(e){let t=this.config.address[e.id];return t==null?e.default:(M0(this,t),Hi(this,t))}toJSON(e){let t={doc:this.sliceDoc(),selection:this.selection.toJSON()};if(e)for(let i in e){let s=e[i];s instanceof be&&this.config.address[s.id]!=null&&(t[i]=s.spec.toJSON(this.field(e[i]),this))}return t}static fromJSON(e,t={},i){if(!e||typeof e.doc!="string")throw new RangeError("Invalid JSON representation for EditorState");let s=[];if(i){for(let o in i)if(Object.prototype.hasOwnProperty.call(e,o)){let r=i[o],l=e[o];s.push(r.init(a=>r.spec.fromJSON(l,a)))}}return q.create({doc:e.doc,selection:O.fromJSON(e.selection),extensions:t.extensions?s.concat([t.extensions]):s})}static create(e={}){let t=Ii.resolve(e.extensions||[],new Map),i=e.doc instanceof Y?e.doc:Y.of((e.doc||"").split(t.staticFacet(q.lineSeparator)||r2)),s=e.selection?e.selection instanceof O?e.selection:O.single(e.selection.anchor,e.selection.head):O.single(0);return al(s,i.length),t.staticFacet(u2)||(s=s.asSingle()),new q(t,i,s,t.dynamicSlots.map(()=>null),(o,r)=>r.create(o),null)}get tabSize(){return this.facet(q.tabSize)}get lineBreak(){return this.facet(q.lineSeparator)||`
|
|
5
|
-
`}get readOnly(){return this.facet(gl)}phrase(e,...t){for(let i of this.facet(q.phrases))if(Object.prototype.hasOwnProperty.call(i,e)){e=i[e];break}return t.length&&(e=e.replace(/\$(\$|\d*)/g,(i,s)=>{if(s=="$")return"$";let o=+(s||1);return!o||o>t.length?i:t[o-1]})),e}languageDataAt(e,t,i=-1){let s=[];for(let o of this.facet(hl))for(let r of o(this,t,i))Object.prototype.hasOwnProperty.call(r,e)&&s.push(r[e]);return s}charCategorizer(e){return Jf(this.languageDataAt("wordChars",e).join(""))}wordAt(e){let{text:t,from:i,length:s}=this.doc.lineAt(e),o=this.charCategorizer(e),r=e-i,l=e-i;for(;r>0;){let a=xe(t,r,!1);if(o(t.slice(a,r))!=oe.Word)break;r=a}for(;l<s;){let a=xe(t,l);if(o(t.slice(l,a))!=oe.Word)break;l=a}return r==l?null:O.range(r+i,l+i)}}q.allowMultipleSelections=u2;q.tabSize=L.define({combine:n=>n.length?n[0]:4});q.lineSeparator=ul;q.readOnly=gl;q.phrases=L.define({compare(n,e){let t=Object.keys(n),i=Object.keys(e);return t.length==i.length&&t.every(s=>n[s]==e[s])}});q.languageData=hl;q.changeFilter=fl;q.transactionFilter=dl;q.transactionExtender=pl;gn.reconfigure=G.define();function lt(n,e,t={}){let i={};for(let s of n)for(let o of Object.keys(s)){let r=s[o],l=i[o];if(l===void 0)i[o]=r;else if(!(l===r||r===void 0))if(Object.hasOwnProperty.call(t,o))i[o]=t[o](l,r);else throw new Error("Config merge conflict for field "+o)}for(let s in e)i[s]===void 0&&(i[s]=e[s]);return i}class Ht{eq(e){return this==e}range(e,t=e){return p2.create(e,t,this)}}Ht.prototype.startSide=Ht.prototype.endSide=0;Ht.prototype.point=!1;Ht.prototype.mapMode=Ce.TrackDel;let p2=class wl{constructor(e,t,i){this.from=e,this.to=t,this.value=i}static create(e,t,i){return new wl(e,t,i)}};function g2(n,e){return n.from-e.from||n.value.startSide-e.value.startSide}class os{constructor(e,t,i,s){this.from=e,this.to=t,this.value=i,this.maxPoint=s}get length(){return this.to[this.to.length-1]}findIndex(e,t,i,s=0){let o=i?this.to:this.from;for(let r=s,l=o.length;;){if(r==l)return r;let a=r+l>>1,h=o[a]-e||(i?this.value[a].endSide:this.value[a].startSide)-t;if(a==r)return h>=0?r:l;h>=0?l=a:r=a+1}}between(e,t,i,s){for(let o=this.findIndex(t,-1e9,!0),r=this.findIndex(i,1e9,!1,o);o<r;o++)if(s(this.from[o]+e,this.to[o]+e,this.value[o])===!1)return!1}map(e,t){let i=[],s=[],o=[],r=-1,l=-1;for(let a=0;a<this.value.length;a++){let h=this.value[a],c=this.from[a]+e,f=this.to[a]+e,d,p;if(c==f){let g=t.mapPos(c,h.startSide,h.mapMode);if(g==null||(d=p=g,h.startSide!=h.endSide&&(p=t.mapPos(c,h.endSide),p<d)))continue}else if(d=t.mapPos(c,h.startSide),p=t.mapPos(f,h.endSide),d>p||d==p&&h.startSide>0&&h.endSide<=0)continue;(p-d||h.endSide-h.startSide)<0||(r<0&&(r=d),h.point&&(l=Math.max(l,p-d)),i.push(h),s.push(d-r),o.push(p-r))}return{mapped:i.length?new os(s,o,i,l):null,pos:r}}}class U{constructor(e,t,i,s){this.chunkPos=e,this.chunk=t,this.nextLayer=i,this.maxPoint=s}static create(e,t,i,s){return new U(e,t,i,s)}get length(){let e=this.chunk.length-1;return e<0?0:Math.max(this.chunkEnd(e),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let e=this.nextLayer.size;for(let t of this.chunk)e+=t.value.length;return e}chunkEnd(e){return this.chunkPos[e]+this.chunk[e].length}update(e){let{add:t=[],sort:i=!1,filterFrom:s=0,filterTo:o=this.length}=e,r=e.filter;if(t.length==0&&!r)return this;if(i&&(t=t.slice().sort(g2)),this.isEmpty)return t.length?U.of(t):this;let l=new xl(this,null,-1).goto(0),a=0,h=[],c=new ft;for(;l.value||a<t.length;)if(a<t.length&&(l.from-t[a].from||l.startSide-t[a].value.startSide)>=0){let f=t[a++];c.addInner(f.from,f.to,f.value)||h.push(f)}else l.rangeIndex==1&&l.chunkIndex<this.chunk.length&&(a==t.length||this.chunkEnd(l.chunkIndex)<t[a].from)&&(!r||s>this.chunkEnd(l.chunkIndex)||o<this.chunkPos[l.chunkIndex])&&c.addChunk(this.chunkPos[l.chunkIndex],this.chunk[l.chunkIndex])?l.nextChunk():((!r||s>l.to||o<l.from||r(l.from,l.to,l.value))&&(c.addInner(l.from,l.to,l.value)||h.push(p2.create(l.from,l.to,l.value))),l.next());return c.finishInner(this.nextLayer.isEmpty&&!h.length?U.empty:this.nextLayer.update({add:h,filter:r,filterFrom:s,filterTo:o}))}map(e){if(e.empty||this.isEmpty)return this;let t=[],i=[],s=-1;for(let r=0;r<this.chunk.length;r++){let l=this.chunkPos[r],a=this.chunk[r],h=e.touchesRange(l,l+a.length);if(h===!1)s=Math.max(s,a.maxPoint),t.push(a),i.push(e.mapPos(l));else if(h===!0){let{mapped:c,pos:f}=a.map(l,e);c&&(s=Math.max(s,c.maxPoint),t.push(c),i.push(f))}}let o=this.nextLayer.map(e);return t.length==0?o:new U(i,t,o||U.empty,s)}between(e,t,i){if(!this.isEmpty){for(let s=0;s<this.chunk.length;s++){let o=this.chunkPos[s],r=this.chunk[s];if(t>=o&&e<=o+r.length&&r.between(o,e-o,t-o,i)===!1)return}this.nextLayer.between(e,t,i)}}iter(e=0){return z0.from([this]).goto(e)}get isEmpty(){return this.nextLayer==this}static iter(e,t=0){return z0.from(e).goto(t)}static compare(e,t,i,s,o=-1){let r=e.filter(f=>f.maxPoint>0||!f.isEmpty&&f.maxPoint>=o),l=t.filter(f=>f.maxPoint>0||!f.isEmpty&&f.maxPoint>=o),a=Ks(r,l,i),h=new v0(r,a,o),c=new v0(l,a,o);i.iterGaps((f,d,p)=>Xs(h,f,c,d,p,s)),i.empty&&i.length==0&&Xs(h,0,c,0,0,s)}static eq(e,t,i=0,s){s==null&&(s=999999999);let o=e.filter(c=>!c.isEmpty&&t.indexOf(c)<0),r=t.filter(c=>!c.isEmpty&&e.indexOf(c)<0);if(o.length!=r.length)return!1;if(!o.length)return!0;let l=Ks(o,r),a=new v0(o,l,0).goto(i),h=new v0(r,l,0).goto(i);for(;;){if(a.to!=h.to||!m2(a.active,h.active)||a.point&&(!h.point||!a.point.eq(h.point)))return!1;if(a.to>s)return!0;a.next(),h.next()}}static spans(e,t,i,s,o=-1){let r=new v0(e,null,o).goto(t),l=t,a=r.openStart;for(;;){let h=Math.min(r.to,i);if(r.point){let c=r.activeForPoint(r.to),f=r.pointFrom<t?c.length+1:r.point.startSide<0?c.length:Math.min(c.length,a);s.point(l,h,r.point,c,f,r.pointRank),a=Math.min(r.openEnd(h),c.length)}else h>l&&(s.span(l,h,r.active,a),a=r.openEnd(h));if(r.to>i)return a+(r.point&&r.to>i?1:0);l=r.to,r.next()}}static of(e,t=!1){let i=new ft;for(let s of e instanceof p2?[e]:t?Zf(e):e)i.add(s.from,s.to,s.value);return i.finish()}static join(e){if(!e.length)return U.empty;let t=e[e.length-1];for(let i=e.length-2;i>=0;i--)for(let s=e[i];s!=U.empty;s=s.nextLayer)t=new U(s.chunkPos,s.chunk,t,Math.max(s.maxPoint,t.maxPoint));return t}}U.empty=new U([],[],null,-1);function Zf(n){if(n.length>1)for(let e=n[0],t=1;t<n.length;t++){let i=n[t];if(g2(e,i)>0)return n.slice().sort(g2);e=i}return n}U.empty.nextLayer=U.empty;class ft{finishChunk(e){this.chunks.push(new os(this.from,this.to,this.value,this.maxPoint)),this.chunkPos.push(this.chunkStart),this.chunkStart=-1,this.setMaxPoint=Math.max(this.setMaxPoint,this.maxPoint),this.maxPoint=-1,e&&(this.from=[],this.to=[],this.value=[])}constructor(){this.chunks=[],this.chunkPos=[],this.chunkStart=-1,this.last=null,this.lastFrom=-1e9,this.lastTo=-1e9,this.from=[],this.to=[],this.value=[],this.maxPoint=-1,this.setMaxPoint=-1,this.nextLayer=null}add(e,t,i){this.addInner(e,t,i)||(this.nextLayer||(this.nextLayer=new ft)).add(e,t,i)}addInner(e,t,i){let s=e-this.lastTo||i.startSide-this.last.endSide;if(s<=0&&(e-this.lastFrom||i.startSide-this.last.startSide)<0)throw new Error("Ranges must be added sorted by `from` position and `startSide`");return s<0?!1:(this.from.length==250&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=e),this.from.push(e-this.chunkStart),this.to.push(t-this.chunkStart),this.last=i,this.lastFrom=e,this.lastTo=t,this.value.push(i),i.point&&(this.maxPoint=Math.max(this.maxPoint,t-e)),!0)}addChunk(e,t){if((e-this.lastTo||t.value[0].startSide-this.last.endSide)<0)return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,t.maxPoint),this.chunks.push(t),this.chunkPos.push(e);let i=t.value.length-1;return this.last=t.value[i],this.lastFrom=t.from[i]+e,this.lastTo=t.to[i]+e,!0}finish(){return this.finishInner(U.empty)}finishInner(e){if(this.from.length&&this.finishChunk(!1),this.chunks.length==0)return e;let t=U.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(e):e,this.setMaxPoint);return this.from=null,t}}function Ks(n,e,t){let i=new Map;for(let o of n)for(let r=0;r<o.chunk.length;r++)o.chunk[r].maxPoint<=0&&i.set(o.chunk[r],o.chunkPos[r]);let s=new Set;for(let o of e)for(let r=0;r<o.chunk.length;r++){let l=i.get(o.chunk[r]);l!=null&&(t?t.mapPos(l):l)==o.chunkPos[r]&&!(t!=null&&t.touchesRange(l,l+o.chunk[r].length))&&s.add(o.chunk[r])}return s}class xl{constructor(e,t,i,s=0){this.layer=e,this.skip=t,this.minPoint=i,this.rank=s}get startSide(){return this.value?this.value.startSide:0}get endSide(){return this.value?this.value.endSide:0}goto(e,t=-1e9){return this.chunkIndex=this.rangeIndex=0,this.gotoInner(e,t,!1),this}gotoInner(e,t,i){for(;this.chunkIndex<this.layer.chunk.length;){let s=this.layer.chunk[this.chunkIndex];if(!(this.skip&&this.skip.has(s)||this.layer.chunkEnd(this.chunkIndex)<e||s.maxPoint<this.minPoint))break;this.chunkIndex++,i=!1}if(this.chunkIndex<this.layer.chunk.length){let s=this.layer.chunk[this.chunkIndex].findIndex(e-this.layer.chunkPos[this.chunkIndex],t,!0);(!i||this.rangeIndex<s)&&this.setRangeIndex(s)}this.next()}forward(e,t){(this.to-e||this.endSide-t)<0&&this.gotoInner(e,t,!0)}next(){for(;;)if(this.chunkIndex==this.layer.chunk.length){this.from=this.to=1e9,this.value=null;break}else{let e=this.layer.chunkPos[this.chunkIndex],t=this.layer.chunk[this.chunkIndex],i=e+t.from[this.rangeIndex];if(this.from=i,this.to=e+t.to[this.rangeIndex],this.value=t.value[this.rangeIndex],this.setRangeIndex(this.rangeIndex+1),this.minPoint<0||this.value.point&&this.to-this.from>=this.minPoint)break}}setRangeIndex(e){if(e==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex<this.layer.chunk.length&&this.skip.has(this.layer.chunk[this.chunkIndex]);)this.chunkIndex++;this.rangeIndex=0}else this.rangeIndex=e}nextChunk(){this.chunkIndex++,this.rangeIndex=0,this.next()}compare(e){return this.from-e.from||this.startSide-e.startSide||this.rank-e.rank||this.to-e.to||this.endSide-e.endSide}}class z0{constructor(e){this.heap=e}static from(e,t=null,i=-1){let s=[];for(let o=0;o<e.length;o++)for(let r=e[o];!r.isEmpty;r=r.nextLayer)r.maxPoint>=i&&s.push(new xl(r,t,i,o));return s.length==1?s[0]:new z0(s)}get startSide(){return this.value?this.value.startSide:0}goto(e,t=-1e9){for(let i of this.heap)i.goto(e,t);for(let i=this.heap.length>>1;i>=0;i--)An(this.heap,i);return this.next(),this}forward(e,t){for(let i of this.heap)i.forward(e,t);for(let i=this.heap.length>>1;i>=0;i--)An(this.heap,i);(this.to-e||this.value.endSide-t)<0&&this.next()}next(){if(this.heap.length==0)this.from=this.to=1e9,this.value=null,this.rank=-1;else{let e=this.heap[0];this.from=e.from,this.to=e.to,this.value=e.value,this.rank=e.rank,e.value&&e.next(),An(this.heap,0)}}}function An(n,e){for(let t=n[e];;){let i=(e<<1)+1;if(i>=n.length)break;let s=n[i];if(i+1<n.length&&s.compare(n[i+1])>=0&&(s=n[i+1],i++),t.compare(s)<0)break;n[i]=t,n[e]=s,e=i}}class v0{constructor(e,t,i){this.minPoint=i,this.active=[],this.activeTo=[],this.activeRank=[],this.minActive=-1,this.point=null,this.pointFrom=0,this.pointRank=0,this.to=-1e9,this.endSide=0,this.openStart=-1,this.cursor=z0.from(e,t,i)}goto(e,t=-1e9){return this.cursor.goto(e,t),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=e,this.endSide=t,this.openStart=-1,this.next(),this}forward(e,t){for(;this.minActive>-1&&(this.activeTo[this.minActive]-e||this.active[this.minActive].endSide-t)<0;)this.removeActive(this.minActive);this.cursor.forward(e,t)}removeActive(e){ni(this.active,e),ni(this.activeTo,e),ni(this.activeRank,e),this.minActive=Qs(this.active,this.activeTo)}addActive(e){let t=0,{value:i,to:s,rank:o}=this.cursor;for(;t<this.activeRank.length&&(o-this.activeRank[t]||s-this.activeTo[t])>0;)t++;si(this.active,t,i),si(this.activeTo,t,s),si(this.activeRank,t,o),e&&si(e,t,this.cursor.from),this.minActive=Qs(this.active,this.activeTo)}next(){let e=this.to,t=this.point;this.point=null;let i=this.openStart<0?[]:null;for(;;){let s=this.minActive;if(s>-1&&(this.activeTo[s]-this.cursor.from||this.active[s].endSide-this.cursor.startSide)<0){if(this.activeTo[s]>e){this.to=this.activeTo[s],this.endSide=this.active[s].endSide;break}this.removeActive(s),i&&ni(i,s)}else if(this.cursor.value)if(this.cursor.from>e){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}else{let o=this.cursor.value;if(!o.point)this.addActive(i),this.cursor.next();else if(t&&this.cursor.to==this.to&&this.cursor.from<this.cursor.to)this.cursor.next();else{this.point=o,this.pointFrom=this.cursor.from,this.pointRank=this.cursor.rank,this.to=this.cursor.to,this.endSide=o.endSide,this.cursor.next(),this.forward(this.to,this.endSide);break}}else{this.to=this.endSide=1e9;break}}if(i){this.openStart=0;for(let s=i.length-1;s>=0&&i[s]<e;s--)this.openStart++}}activeForPoint(e){if(!this.active.length)return this.active;let t=[];for(let i=this.active.length-1;i>=0&&!(this.activeRank[i]<this.pointRank);i--)(this.activeTo[i]>e||this.activeTo[i]==e&&this.active[i].endSide>=this.point.endSide)&&t.push(this.active[i]);return t.reverse()}openEnd(e){let t=0;for(let i=this.activeTo.length-1;i>=0&&this.activeTo[i]>e;i--)t++;return t}}function Xs(n,e,t,i,s,o){n.goto(e),t.goto(i);let r=i+s,l=i,a=i-e;for(;;){let h=n.to+a-t.to,c=h||n.endSide-t.endSide,f=c<0?n.to+a:t.to,d=Math.min(f,r);if(n.point||t.point?n.point&&t.point&&(n.point==t.point||n.point.eq(t.point))&&m2(n.activeForPoint(n.to),t.activeForPoint(t.to))||o.comparePoint(l,d,n.point,t.point):d>l&&!m2(n.active,t.active)&&o.compareRange(l,d,n.active,t.active),f>r)break;(h||n.openEnd!=t.openEnd)&&o.boundChange&&o.boundChange(f),l=f,c<=0&&n.next(),c>=0&&t.next()}}function m2(n,e){if(n.length!=e.length)return!1;for(let t=0;t<n.length;t++)if(n[t]!=e[t]&&!n[t].eq(e[t]))return!1;return!0}function ni(n,e){for(let t=e,i=n.length-1;t<i;t++)n[t]=n[t+1];n.pop()}function si(n,e,t){for(let i=n.length-1;i>=e;i--)n[i+1]=n[i];n[e]=t}function Qs(n,e){let t=-1,i=1e9;for(let s=0;s<e.length;s++)(e[s]-i||n[s].endSide-n[t].endSide)<0&&(t=s,i=e[s]);return t}function f0(n,e,t=n.length){let i=0;for(let s=0;s<t&&s<n.length;)n.charCodeAt(s)==9?(i+=e-i%e,s++):(i++,s=xe(n,s));return i}function v2(n,e,t,i){for(let s=0,o=0;;){if(o>=e)return s;if(s==n.length)break;o+=n.charCodeAt(s)==9?t-o%t:1,s=xe(n,s)}return i===!0?-1:n.length}const w2="ͼ",Js=typeof Symbol>"u"?"__"+w2:Symbol.for(w2),x2=typeof Symbol>"u"?"__styleSet"+Math.floor(Math.random()*1e8):Symbol("styleSet"),Zs=typeof globalThis<"u"?globalThis:typeof window<"u"?window:{};class Ct{constructor(e,t){this.rules=[];let{finish:i}=t||{};function s(r){return/^@/.test(r)?[r]:r.split(/,\s*/)}function o(r,l,a,h){let c=[],f=/^@(\w+)\b/.exec(r[0]),d=f&&f[1]=="keyframes";if(f&&l==null)return a.push(r[0]+";");for(let p in l){let g=l[p];if(/&/.test(p))o(p.split(/,\s*/).map(m=>r.map(v=>m.replace(/&/,v))).reduce((m,v)=>m.concat(v)),g,a);else if(g&&typeof g=="object"){if(!f)throw new RangeError("The value of a property ("+p+") should be a primitive value.");o(s(p),g,c,d)}else g!=null&&c.push(p.replace(/_.*/,"").replace(/[A-Z]/g,m=>"-"+m.toLowerCase())+": "+g+";")}(c.length||d)&&a.push((i&&!f&&!h?r.map(i):r).join(", ")+" {"+c.join(" ")+"}")}for(let r in e)o(s(r),e[r],this.rules)}getRules(){return this.rules.join(`
|
|
6
|
-
`)}static newName(){let e=
|
|
7
|
-
`;this.styleTag.textContent=r;let l=t.head||t;this.styleTag.parentNode!=l&&l.insertBefore(this.styleTag,l.firstChild)}}setNonce(e){this.styleTag&&this.styleTag.getAttribute("nonce")!=e&&this.styleTag.setAttribute("nonce",e)}}var _t={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},L0={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},td=typeof navigator<"u"&&/Mac/.test(navigator.platform),id=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);for(var we=0;we<10;we++)_t[48+we]=_t[96+we]=String(we);for(var we=1;we<=24;we++)_t[we+111]="F"+we;for(var we=65;we<=90;we++)_t[we]=String.fromCharCode(we+32),L0[we]=String.fromCharCode(we);for(var Bn in _t)L0.hasOwnProperty(Bn)||(L0[Bn]=_t[Bn]);function nd(n){var e=td&&n.metaKey&&n.shiftKey&&!n.ctrlKey&&!n.altKey||id&&n.shiftKey&&n.key&&n.key.length==1||n.key=="Unidentified",t=!e&&n.key||(n.shiftKey?L0:_t)[n.keyCode]||n.key||"Unidentified";return t=="Esc"&&(t="Escape"),t=="Del"&&(t="Delete"),t=="Left"&&(t="ArrowLeft"),t=="Up"&&(t="ArrowUp"),t=="Right"&&(t="ArrowRight"),t=="Down"&&(t="ArrowDown"),t}function J(){var n=arguments[0];typeof n=="string"&&(n=document.createElement(n));var e=1,t=arguments[1];if(t&&typeof t=="object"&&t.nodeType==null&&!Array.isArray(t)){for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)){var s=t[i];typeof s=="string"?n.setAttribute(i,s):s!=null&&(n[i]=s)}e++}for(;e<arguments.length;e++)bl(n,arguments[e]);return n}function bl(n,e){if(typeof e=="string")n.appendChild(document.createTextNode(e));else if(e!=null)if(e.nodeType!=null)n.appendChild(e);else if(Array.isArray(e))for(var t=0;t<e.length;t++)bl(n,e[t]);else throw new RangeError("Unsupported child node: "+e)}function N0(n){let e;return n.nodeType==11?e=n.getSelection?n:n.ownerDocument:e=n,e.getSelection()}function b2(n,e){return e?n==e||n.contains(e.nodeType!=1?e.parentNode:e):!1}function Di(n,e){if(!e.anchorNode)return!1;try{return b2(n,e.anchorNode)}catch{return!1}}function R0(n){return n.nodeType==3?Wt(n,0,n.nodeValue.length).getClientRects():n.nodeType==1?n.getClientRects():[]}function D0(n,e,t,i){return t?to(n,e,t,i,-1)||to(n,e,t,i,1):!1}function $t(n){for(var e=0;;e++)if(n=n.previousSibling,!n)return e}function $i(n){return n.nodeType==1&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(n.nodeName)}function to(n,e,t,i,s){for(;;){if(n==t&&e==i)return!0;if(e==(s<0?0:rt(n))){if(n.nodeName=="DIV")return!1;let o=n.parentNode;if(!o||o.nodeType!=1)return!1;e=$t(n)+(s<0?0:1),n=o}else if(n.nodeType==1){if(n=n.childNodes[e+(s<0?-1:0)],n.nodeType==1&&n.contentEditable=="false")return!1;e=s<0?rt(n):0}else return!1}}function rt(n){return n.nodeType==3?n.nodeValue.length:n.childNodes.length}function mn(n,e){let t=e?n.left:n.right;return{left:t,right:t,top:n.top,bottom:n.bottom}}function sd(n){let e=n.visualViewport;return e?{left:0,right:e.width,top:0,bottom:e.height}:{left:0,right:n.innerWidth,top:0,bottom:n.innerHeight}}function yl(n,e){let t=e.width/n.offsetWidth,i=e.height/n.offsetHeight;return(t>.995&&t<1.005||!isFinite(t)||Math.abs(e.width-n.offsetWidth)<1)&&(t=1),(i>.995&&i<1.005||!isFinite(i)||Math.abs(e.height-n.offsetHeight)<1)&&(i=1),{scaleX:t,scaleY:i}}function od(n,e,t,i,s,o,r,l){let a=n.ownerDocument,h=a.defaultView||window;for(let c=n,f=!1;c&&!f;)if(c.nodeType==1){let d,p=c==a.body,g=1,m=1;if(p)d=sd(h);else{if(/^(fixed|sticky)$/.test(getComputedStyle(c).position)&&(f=!0),c.scrollHeight<=c.clientHeight&&c.scrollWidth<=c.clientWidth){c=c.assignedSlot||c.parentNode;continue}let b=c.getBoundingClientRect();({scaleX:g,scaleY:m}=yl(c,b)),d={left:b.left,right:b.left+c.clientWidth*g,top:b.top,bottom:b.top+c.clientHeight*m}}let v=0,w=0;if(s=="nearest")e.top<d.top?(w=e.top-(d.top+r),t>0&&e.bottom>d.bottom+w&&(w=e.bottom-d.bottom+r)):e.bottom>d.bottom&&(w=e.bottom-d.bottom+r,t<0&&e.top-w<d.top&&(w=e.top-(d.top+r)));else{let b=e.bottom-e.top,S=d.bottom-d.top;w=(s=="center"&&b<=S?e.top+b/2-S/2:s=="start"||s=="center"&&t<0?e.top-r:e.bottom-S+r)-d.top}if(i=="nearest"?e.left<d.left?(v=e.left-(d.left+o),t>0&&e.right>d.right+v&&(v=e.right-d.right+o)):e.right>d.right&&(v=e.right-d.right+o,t<0&&e.left<d.left+v&&(v=e.left-(d.left+o))):v=(i=="center"?e.left+(e.right-e.left)/2-(d.right-d.left)/2:i=="start"==l?e.left-o:e.right-(d.right-d.left)+o)-d.left,v||w)if(p)h.scrollBy(v,w);else{let b=0,S=0;if(w){let _=c.scrollTop;c.scrollTop+=w/m,S=(c.scrollTop-_)*m}if(v){let _=c.scrollLeft;c.scrollLeft+=v/g,b=(c.scrollLeft-_)*g}e={left:e.left-b,top:e.top-S,right:e.right-b,bottom:e.bottom-S},b&&Math.abs(b-v)<1&&(i="nearest"),S&&Math.abs(S-w)<1&&(s="nearest")}if(p)break;(e.top<d.top||e.bottom>d.bottom||e.left<d.left||e.right>d.right)&&(e={left:Math.max(e.left,d.left),right:Math.min(e.right,d.right),top:Math.max(e.top,d.top),bottom:Math.min(e.bottom,d.bottom)}),c=c.assignedSlot||c.parentNode}else if(c.nodeType==11)c=c.host;else break}function rd(n){let e=n.ownerDocument,t,i;for(let s=n.parentNode;s&&!(s==e.body||t&&i);)if(s.nodeType==1)!i&&s.scrollHeight>s.clientHeight&&(i=s),!t&&s.scrollWidth>s.clientWidth&&(t=s),s=s.assignedSlot||s.parentNode;else if(s.nodeType==11)s=s.host;else break;return{x:t,y:i}}class ld{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}eq(e){return this.anchorNode==e.anchorNode&&this.anchorOffset==e.anchorOffset&&this.focusNode==e.focusNode&&this.focusOffset==e.focusOffset}setRange(e){let{anchorNode:t,focusNode:i}=e;this.set(t,Math.min(e.anchorOffset,t?rt(t):0),i,Math.min(e.focusOffset,i?rt(i):0))}set(e,t,i,s){this.anchorNode=e,this.anchorOffset=t,this.focusNode=i,this.focusOffset=s}}let qt=null;function kl(n){if(n.setActive)return n.setActive();if(qt)return n.focus(qt);let e=[];for(let t=n;t&&(e.push(t,t.scrollTop,t.scrollLeft),t!=t.ownerDocument);t=t.parentNode);if(n.focus(qt==null?{get preventScroll(){return qt={preventScroll:!0},!0}}:void 0),!qt){qt=!1;for(let t=0;t<e.length;){let i=e[t++],s=e[t++],o=e[t++];i.scrollTop!=s&&(i.scrollTop=s),i.scrollLeft!=o&&(i.scrollLeft=o)}}}let io;function Wt(n,e,t=e){let i=io||(io=document.createRange());return i.setEnd(n,t),i.setStart(n,e),i}function e0(n,e,t,i){let s={key:e,code:e,keyCode:t,which:t,cancelable:!0};i&&({altKey:s.altKey,ctrlKey:s.ctrlKey,shiftKey:s.shiftKey,metaKey:s.metaKey}=i);let o=new KeyboardEvent("keydown",s);o.synthetic=!0,n.dispatchEvent(o);let r=new KeyboardEvent("keyup",s);return r.synthetic=!0,n.dispatchEvent(r),o.defaultPrevented||r.defaultPrevented}function ad(n){for(;n;){if(n&&(n.nodeType==9||n.nodeType==11&&n.host))return n;n=n.assignedSlot||n.parentNode}return null}function Sl(n){for(;n.attributes.length;)n.removeAttributeNode(n.attributes[0])}function cd(n,e){let t=e.focusNode,i=e.focusOffset;if(!t||e.anchorNode!=t||e.anchorOffset!=i)return!1;for(i=Math.min(i,rt(t));;)if(i){if(t.nodeType!=1)return!1;let s=t.childNodes[i-1];s.contentEditable=="false"?i--:(t=s,i=rt(t))}else{if(t==n)return!0;i=$t(t),t=t.parentNode}}function Cl(n){return n.scrollTop>Math.max(1,n.scrollHeight-n.clientHeight-4)}function _l(n,e){for(let t=n,i=e;;){if(t.nodeType==3&&i>0)return{node:t,offset:i};if(t.nodeType==1&&i>0){if(t.contentEditable=="false")return null;t=t.childNodes[i-1],i=rt(t)}else if(t.parentNode&&!$i(t))i=$t(t),t=t.parentNode;else return null}}function Ol(n,e){for(let t=n,i=e;;){if(t.nodeType==3&&i<t.nodeValue.length)return{node:t,offset:i};if(t.nodeType==1&&i<t.childNodes.length){if(t.contentEditable=="false")return null;t=t.childNodes[i],i=0}else if(t.parentNode&&!$i(t))i=$t(t)+1,t=t.parentNode;else return null}}class ke{constructor(e,t,i=!0){this.node=e,this.offset=t,this.precise=i}static before(e,t){return new ke(e.parentNode,$t(e),t)}static after(e,t){return new ke(e.parentNode,$t(e)+1,t)}}const rs=[];class ee{constructor(){this.parent=null,this.dom=null,this.flags=2}get overrideDOMText(){return null}get posAtStart(){return this.parent?this.parent.posBefore(this):0}get posAtEnd(){return this.posAtStart+this.length}posBefore(e){let t=this.posAtStart;for(let i of this.children){if(i==e)return t;t+=i.length+i.breakAfter}throw new RangeError("Invalid child in posBefore")}posAfter(e){return this.posBefore(e)+e.length}sync(e,t){if(this.flags&2){let i=this.dom,s=null,o;for(let r of this.children){if(r.flags&7){if(!r.dom&&(o=s?s.nextSibling:i.firstChild)){let l=ee.get(o);(!l||!l.parent&&l.canReuseDOM(r))&&r.reuseDOM(o)}r.sync(e,t),r.flags&=-8}if(o=s?s.nextSibling:i.firstChild,t&&!t.written&&t.node==i&&o!=r.dom&&(t.written=!0),r.dom.parentNode==i)for(;o&&o!=r.dom;)o=no(o);else i.insertBefore(r.dom,o);s=r.dom}for(o=s?s.nextSibling:i.firstChild,o&&t&&t.node==i&&(t.written=!0);o;)o=no(o)}else if(this.flags&1)for(let i of this.children)i.flags&7&&(i.sync(e,t),i.flags&=-8)}reuseDOM(e){}localPosFromDOM(e,t){let i;if(e==this.dom)i=this.dom.childNodes[t];else{let s=rt(e)==0?0:t==0?-1:1;for(;;){let o=e.parentNode;if(o==this.dom)break;s==0&&o.firstChild!=o.lastChild&&(e==o.firstChild?s=-1:s=1),e=o}s<0?i=e:i=e.nextSibling}if(i==this.dom.firstChild)return 0;for(;i&&!ee.get(i);)i=i.nextSibling;if(!i)return this.length;for(let s=0,o=0;;s++){let r=this.children[s];if(r.dom==i)return o;o+=r.length+r.breakAfter}}domBoundsAround(e,t,i=0){let s=-1,o=-1,r=-1,l=-1;for(let a=0,h=i,c=i;a<this.children.length;a++){let f=this.children[a],d=h+f.length;if(h<e&&d>t)return f.domBoundsAround(e,t,h);if(d>=e&&s==-1&&(s=a,o=h),h>t&&f.dom.parentNode==this.dom){r=a,l=c;break}c=d,h=d+f.breakAfter}return{from:o,to:l<0?i+this.length:l,startDOM:(s?this.children[s-1].dom.nextSibling:null)||this.dom.firstChild,endDOM:r<this.children.length&&r>=0?this.children[r].dom:null}}markDirty(e=!1){this.flags|=2,this.markParentsDirty(e)}markParentsDirty(e){for(let t=this.parent;t;t=t.parent){if(e&&(t.flags|=2),t.flags&1)return;t.flags|=1,e=!1}}setParent(e){this.parent!=e&&(this.parent=e,this.flags&7&&this.markParentsDirty(!0))}setDOM(e){this.dom!=e&&(this.dom&&(this.dom.cmView=null),this.dom=e,e.cmView=this)}get rootView(){for(let e=this;;){let t=e.parent;if(!t)return e;e=t}}replaceChildren(e,t,i=rs){this.markDirty();for(let s=e;s<t;s++){let o=this.children[s];o.parent==this&&i.indexOf(o)<0&&o.destroy()}i.length<250?this.children.splice(e,t-e,...i):this.children=[].concat(this.children.slice(0,e),i,this.children.slice(t));for(let s=0;s<i.length;s++)i[s].setParent(this)}ignoreMutation(e){return!1}ignoreEvent(e){return!1}childCursor(e=this.length){return new Ml(this.children,e,this.children.length)}childPos(e,t=1){return this.childCursor().findPos(e,t)}toString(){let e=this.constructor.name.replace("View","");return e+(this.children.length?"("+this.children.join()+")":this.length?"["+(e=="Text"?this.text:this.length)+"]":"")+(this.breakAfter?"#":"")}static get(e){return e.cmView}get isEditable(){return!0}get isWidget(){return!1}get isHidden(){return!1}merge(e,t,i,s,o,r){return!1}become(e){return!1}canReuseDOM(e){return e.constructor==this.constructor&&!((this.flags|e.flags)&8)}getSide(){return 0}destroy(){for(let e of this.children)e.parent==this&&e.destroy();this.parent=null}}ee.prototype.breakAfter=0;function no(n){let e=n.nextSibling;return n.parentNode.removeChild(n),e}class Ml{constructor(e,t,i){this.children=e,this.pos=t,this.i=i,this.off=0}findPos(e,t=1){for(;;){if(e>this.pos||e==this.pos&&(t>0||this.i==0||this.children[this.i-1].breakAfter))return this.off=e-this.pos,this;let i=this.children[--this.i];this.pos-=i.length+i.breakAfter}}}function Dl(n,e,t,i,s,o,r,l,a){let{children:h}=n,c=h.length?h[e]:null,f=o.length?o[o.length-1]:null,d=f?f.breakAfter:r;if(!(e==i&&c&&!r&&!d&&o.length<2&&c.merge(t,s,o.length?f:null,t==0,l,a))){if(i<h.length){let p=h[i];p&&(s<p.length||p.breakAfter&&(f!=null&&f.breakAfter))?(e==i&&(p=p.split(s),s=0),!d&&f&&p.merge(0,s,f,!0,0,a)?o[o.length-1]=p:((s||p.children.length&&!p.children[0].length)&&p.merge(0,s,null,!1,0,a),o.push(p))):p!=null&&p.breakAfter&&(f?f.breakAfter=1:r=1),i++}for(c&&(c.breakAfter=r,t>0&&(!r&&o.length&&c.merge(t,c.length,o[0],!1,l,0)?c.breakAfter=o.shift().breakAfter:(t<c.length||c.children.length&&c.children[c.children.length-1].length==0)&&c.merge(t,c.length,null,!1,l,0),e++));e<i&&o.length;)if(h[i-1].become(o[o.length-1]))i--,o.pop(),a=o.length?0:l;else if(h[e].become(o[0]))e++,o.shift(),l=o.length?0:a;else break;!o.length&&e&&i<h.length&&!h[e-1].breakAfter&&h[i].merge(0,0,h[e-1],!1,l,a)&&e--,(e<i||o.length)&&n.replaceChildren(e,i,o)}}function Tl(n,e,t,i,s,o){let r=n.childCursor(),{i:l,off:a}=r.findPos(t,1),{i:h,off:c}=r.findPos(e,-1),f=e-t;for(let d of i)f+=d.length;n.length+=f,Dl(n,h,c,l,a,i,0,s,o)}let Ae=typeof navigator<"u"?navigator:{userAgent:"",vendor:"",platform:""},y2=typeof document<"u"?document:{documentElement:{style:{}}};const k2=/Edge\/(\d+)/.exec(Ae.userAgent),Al=/MSIE \d/.test(Ae.userAgent),S2=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Ae.userAgent),vn=!!(Al||S2||k2),so=!vn&&/gecko\/(\d+)/i.test(Ae.userAgent),Pn=!vn&&/Chrome\/(\d+)/.exec(Ae.userAgent),hd="webkitFontSmoothing"in y2.documentElement.style,Bl=!vn&&/Apple Computer/.test(Ae.vendor),oo=Bl&&(/Mobile\/\w+/.test(Ae.userAgent)||Ae.maxTouchPoints>2);var V={mac:oo||/Mac/.test(Ae.platform),windows:/Win/.test(Ae.platform),linux:/Linux|X11/.test(Ae.platform),ie:vn,ie_version:Al?y2.documentMode||6:S2?+S2[1]:k2?+k2[1]:0,gecko:so,gecko_version:so?+(/Firefox\/(\d+)/.exec(Ae.userAgent)||[0,0])[1]:0,chrome:!!Pn,chrome_version:Pn?+Pn[1]:0,ios:oo,android:/Android\b/.test(Ae.userAgent),safari:Bl,webkit_version:hd?+(/\bAppleWebKit\/(\d+)/.exec(Ae.userAgent)||[0,0])[1]:0,tabSize:y2.documentElement.style.tabSize!=null?"tab-size":"-moz-tab-size"};const ud=256;class Ue extends ee{constructor(e){super(),this.text=e}get length(){return this.text.length}createDOM(e){this.setDOM(e||document.createTextNode(this.text))}sync(e,t){this.dom||this.createDOM(),this.dom.nodeValue!=this.text&&(t&&t.node==this.dom&&(t.written=!0),this.dom.nodeValue=this.text)}reuseDOM(e){e.nodeType==3&&this.createDOM(e)}merge(e,t,i){return this.flags&8||i&&(!(i instanceof Ue)||this.length-(t-e)+i.length>ud||i.flags&8)?!1:(this.text=this.text.slice(0,e)+(i?i.text:"")+this.text.slice(t),this.markDirty(),!0)}split(e){let t=new Ue(this.text.slice(e));return this.text=this.text.slice(0,e),this.markDirty(),t.flags|=this.flags&8,t}localPosFromDOM(e,t){return e==this.dom?t:t?this.text.length:0}domAtPos(e){return new ke(this.dom,e)}domBoundsAround(e,t,i){return{from:i,to:i+this.length,startDOM:this.dom,endDOM:this.dom.nextSibling}}coordsAt(e,t){return fd(this.dom,e,t)}}class dt extends ee{constructor(e,t=[],i=0){super(),this.mark=e,this.children=t,this.length=i;for(let s of t)s.setParent(this)}setAttrs(e){if(Sl(e),this.mark.class&&(e.className=this.mark.class),this.mark.attrs)for(let t in this.mark.attrs)e.setAttribute(t,this.mark.attrs[t]);return e}canReuseDOM(e){return super.canReuseDOM(e)&&!((this.flags|e.flags)&8)}reuseDOM(e){e.nodeName==this.mark.tagName.toUpperCase()&&(this.setDOM(e),this.flags|=6)}sync(e,t){this.dom?this.flags&4&&this.setAttrs(this.dom):this.setDOM(this.setAttrs(document.createElement(this.mark.tagName))),super.sync(e,t)}merge(e,t,i,s,o,r){return i&&(!(i instanceof dt&&i.mark.eq(this.mark))||e&&o<=0||t<this.length&&r<=0)?!1:(Tl(this,e,t,i?i.children.slice():[],o-1,r-1),this.markDirty(),!0)}split(e){let t=[],i=0,s=-1,o=0;for(let l of this.children){let a=i+l.length;a>e&&t.push(i<e?l.split(e-i):l),s<0&&i>=e&&(s=o),i=a,o++}let r=this.length-e;return this.length=e,s>-1&&(this.children.length=s,this.markDirty()),new dt(this.mark,t,r)}domAtPos(e){return Pl(this,e)}coordsAt(e,t){return Vl(this,e,t)}}function fd(n,e,t){let i=n.nodeValue.length;e>i&&(e=i);let s=e,o=e,r=0;e==0&&t<0||e==i&&t>=0?V.chrome||V.gecko||(e?(s--,r=1):o<i&&(o++,r=-1)):t<0?s--:o<i&&o++;let l=Wt(n,s,o).getClientRects();if(!l.length)return null;let a=l[(r?r<0:t>=0)?0:l.length-1];return V.safari&&!r&&a.width==0&&(a=Array.prototype.find.call(l,h=>h.width)||a),r?mn(a,r<0):a||null}class bt extends ee{static create(e,t,i){return new bt(e,t,i)}constructor(e,t,i){super(),this.widget=e,this.length=t,this.side=i,this.prevWidget=null}split(e){let t=bt.create(this.widget,this.length-e,this.side);return this.length-=e,t}sync(e){(!this.dom||!this.widget.updateDOM(this.dom,e))&&(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(e)),this.widget.editable||(this.dom.contentEditable="false"))}getSide(){return this.side}merge(e,t,i,s,o,r){return i&&(!(i instanceof bt)||!this.widget.compare(i.widget)||e>0&&o<=0||t<this.length&&r<=0)?!1:(this.length=e+(i?i.length:0)+(this.length-t),!0)}become(e){return e instanceof bt&&e.side==this.side&&this.widget.constructor==e.widget.constructor?(this.widget.compare(e.widget)||this.markDirty(!0),this.dom&&!this.prevWidget&&(this.prevWidget=this.widget),this.widget=e.widget,this.length=e.length,!0):!1}ignoreMutation(){return!0}ignoreEvent(e){return this.widget.ignoreEvent(e)}get overrideDOMText(){if(this.length==0)return Y.empty;let e=this;for(;e.parent;)e=e.parent;let{view:t}=e,i=t&&t.state.doc,s=this.posAtStart;return i?i.slice(s,s+this.length):Y.empty}domAtPos(e){return(this.length?e==0:this.side>0)?ke.before(this.dom):ke.after(this.dom,e==this.length)}domBoundsAround(){return null}coordsAt(e,t){let i=this.widget.coordsAt(this.dom,e,t);if(i)return i;let s=this.dom.getClientRects(),o=null;if(!s.length)return null;let r=this.side?this.side<0:e>0;for(let l=r?s.length-1:0;o=s[l],!(e>0?l==0:l==s.length-1||o.top<o.bottom);l+=r?-1:1);return mn(o,!r)}get isEditable(){return!1}get isWidget(){return!0}get isHidden(){return this.widget.isHidden}destroy(){super.destroy(),this.dom&&this.widget.destroy(this.dom)}}class r0 extends ee{constructor(e){super(),this.side=e}get length(){return 0}merge(){return!1}become(e){return e instanceof r0&&e.side==this.side}split(){return new r0(this.side)}sync(){if(!this.dom){let e=document.createElement("img");e.className="cm-widgetBuffer",e.setAttribute("aria-hidden","true"),this.setDOM(e)}}getSide(){return this.side}domAtPos(e){return this.side>0?ke.before(this.dom):ke.after(this.dom)}localPosFromDOM(){return 0}domBoundsAround(){return null}coordsAt(e){return this.dom.getBoundingClientRect()}get overrideDOMText(){return Y.empty}get isHidden(){return!0}}Ue.prototype.children=bt.prototype.children=r0.prototype.children=rs;function Pl(n,e){let t=n.dom,{children:i}=n,s=0;for(let o=0;s<i.length;s++){let r=i[s],l=o+r.length;if(!(l==o&&r.getSide()<=0)){if(e>o&&e<l&&r.dom.parentNode==t)return r.domAtPos(e-o);if(e<=o)break;o=l}}for(let o=s;o>0;o--){let r=i[o-1];if(r.dom.parentNode==t)return r.domAtPos(r.length)}for(let o=s;o<i.length;o++){let r=i[o];if(r.dom.parentNode==t)return r.domAtPos(0)}return new ke(t,0)}function El(n,e,t){let i,{children:s}=n;t>0&&e instanceof dt&&s.length&&(i=s[s.length-1])instanceof dt&&i.mark.eq(e.mark)?El(i,e.children[0],t-1):(s.push(e),e.setParent(n)),n.length+=e.length}function Vl(n,e,t){let i=null,s=-1,o=null,r=-1;function l(h,c){for(let f=0,d=0;f<h.children.length&&d<=c;f++){let p=h.children[f],g=d+p.length;g>=c&&(p.children.length?l(p,c-d):(!o||o.isHidden&&(t>0||pd(o,p)))&&(g>c||d==g&&p.getSide()>0)?(o=p,r=c-d):(d<c||d==g&&p.getSide()<0&&!p.isHidden)&&(i=p,s=c-d)),d=g}}l(n,e);let a=(t<0?i:o)||i||o;return a?a.coordsAt(Math.max(0,a==i?s:r),t):dd(n)}function dd(n){let e=n.dom.lastChild;if(!e)return n.dom.getBoundingClientRect();let t=R0(e);return t[t.length-1]||null}function pd(n,e){let t=n.coordsAt(0,1),i=e.coordsAt(0,1);return t&&i&&i.top<t.bottom}function C2(n,e){for(let t in n)t=="class"&&e.class?e.class+=" "+n.class:t=="style"&&e.style?e.style+=";"+n.style:e[t]=n[t];return e}const ro=Object.create(null);function Wi(n,e,t){if(n==e)return!0;n||(n=ro),e||(e=ro);let i=Object.keys(n),s=Object.keys(e);if(i.length-(t&&i.indexOf(t)>-1?1:0)!=s.length-(t&&s.indexOf(t)>-1?1:0))return!1;for(let o of i)if(o!=t&&(s.indexOf(o)==-1||n[o]!==e[o]))return!1;return!0}function _2(n,e,t){let i=!1;if(e)for(let s in e)t&&s in t||(i=!0,s=="style"?n.style.cssText="":n.removeAttribute(s));if(t)for(let s in t)e&&e[s]==t[s]||(i=!0,s=="style"?n.style.cssText=t[s]:n.setAttribute(s,t[s]));return i}function gd(n){let e=Object.create(null);for(let t=0;t<n.attributes.length;t++){let i=n.attributes[t];e[i.name]=i.value}return e}class Tt{eq(e){return!1}updateDOM(e,t){return!1}compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}get estimatedHeight(){return-1}get lineBreaks(){return 0}ignoreEvent(e){return!0}coordsAt(e,t,i){return null}get isHidden(){return!1}get editable(){return!1}destroy(e){}}var _e=function(n){return n[n.Text=0]="Text",n[n.WidgetBefore=1]="WidgetBefore",n[n.WidgetAfter=2]="WidgetAfter",n[n.WidgetRange=3]="WidgetRange",n}(_e||(_e={}));class W extends Ht{constructor(e,t,i,s){super(),this.startSide=e,this.endSide=t,this.widget=i,this.spec=s}get heightRelevant(){return!1}static mark(e){return new X0(e)}static widget(e){let t=Math.max(-1e4,Math.min(1e4,e.side||0)),i=!!e.block;return t+=i&&!e.inlineOrder?t>0?3e8:-4e8:t>0?1e8:-1e8,new Ot(e,t,t,i,e.widget||null,!1)}static replace(e){let t=!!e.block,i,s;if(e.isBlockGap)i=-5e8,s=4e8;else{let{start:o,end:r}=zl(e,t);i=(o?t?-3e8:-1:5e8)-1,s=(r?t?2e8:1:-6e8)+1}return new Ot(e,i,s,t,e.widget||null,!0)}static line(e){return new Q0(e)}static set(e,t=!1){return U.of(e,t)}hasHeight(){return this.widget?this.widget.estimatedHeight>-1:!1}}W.none=U.empty;class X0 extends W{constructor(e){let{start:t,end:i}=zl(e);super(t?-1:5e8,i?1:-6e8,null,e),this.tagName=e.tagName||"span",this.class=e.class||"",this.attrs=e.attributes||null}eq(e){var t,i;return this==e||e instanceof X0&&this.tagName==e.tagName&&(this.class||((t=this.attrs)===null||t===void 0?void 0:t.class))==(e.class||((i=e.attrs)===null||i===void 0?void 0:i.class))&&Wi(this.attrs,e.attrs,"class")}range(e,t=e){if(e>=t)throw new RangeError("Mark decorations may not be empty");return super.range(e,t)}}X0.prototype.point=!1;class Q0 extends W{constructor(e){super(-2e8,-2e8,null,e)}eq(e){return e instanceof Q0&&this.spec.class==e.spec.class&&Wi(this.spec.attributes,e.spec.attributes)}range(e,t=e){if(t!=e)throw new RangeError("Line decoration ranges must be zero-length");return super.range(e,t)}}Q0.prototype.mapMode=Ce.TrackBefore;Q0.prototype.point=!0;class Ot extends W{constructor(e,t,i,s,o,r){super(t,i,o,e),this.block=s,this.isReplace=r,this.mapMode=s?t<=0?Ce.TrackBefore:Ce.TrackAfter:Ce.TrackDel}get type(){return this.startSide!=this.endSide?_e.WidgetRange:this.startSide<=0?_e.WidgetBefore:_e.WidgetAfter}get heightRelevant(){return this.block||!!this.widget&&(this.widget.estimatedHeight>=5||this.widget.lineBreaks>0)}eq(e){return e instanceof Ot&&md(this.widget,e.widget)&&this.block==e.block&&this.startSide==e.startSide&&this.endSide==e.endSide}range(e,t=e){if(this.isReplace&&(e>t||e==t&&this.startSide>0&&this.endSide<=0))throw new RangeError("Invalid range for replacement decoration");if(!this.isReplace&&t!=e)throw new RangeError("Widget decorations can only have zero-length ranges");return super.range(e,t)}}Ot.prototype.point=!0;function zl(n,e=!1){let{inclusiveStart:t,inclusiveEnd:i}=n;return t==null&&(t=n.inclusive),i==null&&(i=n.inclusive),{start:t??e,end:i??e}}function md(n,e){return n==e||!!(n&&e&&n.compare(e))}function Ti(n,e,t,i=0){let s=t.length-1;s>=0&&t[s]+i>=n?t[s]=Math.max(t[s],e):t.push(n,e)}class ae extends ee{constructor(){super(...arguments),this.children=[],this.length=0,this.prevAttrs=void 0,this.attrs=null,this.breakAfter=0}merge(e,t,i,s,o,r){if(i){if(!(i instanceof ae))return!1;this.dom||i.transferDOM(this)}return s&&this.setDeco(i?i.attrs:null),Tl(this,e,t,i?i.children.slice():[],o,r),!0}split(e){let t=new ae;if(t.breakAfter=this.breakAfter,this.length==0)return t;let{i,off:s}=this.childPos(e);s&&(t.append(this.children[i].split(s),0),this.children[i].merge(s,this.children[i].length,null,!1,0,0),i++);for(let o=i;o<this.children.length;o++)t.append(this.children[o],0);for(;i>0&&this.children[i-1].length==0;)this.children[--i].destroy();return this.children.length=i,this.markDirty(),this.length=e,t}transferDOM(e){this.dom&&(this.markDirty(),e.setDOM(this.dom),e.prevAttrs=this.prevAttrs===void 0?this.attrs:this.prevAttrs,this.prevAttrs=void 0,this.dom=null)}setDeco(e){Wi(this.attrs,e)||(this.dom&&(this.prevAttrs=this.attrs,this.markDirty()),this.attrs=e)}append(e,t){El(this,e,t)}addLineDeco(e){let t=e.spec.attributes,i=e.spec.class;t&&(this.attrs=C2(t,this.attrs||{})),i&&(this.attrs=C2({class:i},this.attrs||{}))}domAtPos(e){return Pl(this,e)}reuseDOM(e){e.nodeName=="DIV"&&(this.setDOM(e),this.flags|=6)}sync(e,t){var i;this.dom?this.flags&4&&(Sl(this.dom),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0):(this.setDOM(document.createElement("div")),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0),this.prevAttrs!==void 0&&(_2(this.dom,this.prevAttrs,this.attrs),this.dom.classList.add("cm-line"),this.prevAttrs=void 0),super.sync(e,t);let s=this.dom.lastChild;for(;s&&ee.get(s)instanceof dt;)s=s.lastChild;if(!s||!this.length||s.nodeName!="BR"&&((i=ee.get(s))===null||i===void 0?void 0:i.isEditable)==!1&&(!V.ios||!this.children.some(o=>o instanceof Ue))){let o=document.createElement("BR");o.cmIgnore=!0,this.dom.appendChild(o)}}measureTextSize(){if(this.children.length==0||this.length>20)return null;let e=0,t;for(let i of this.children){if(!(i instanceof Ue)||/[^ -~]/.test(i.text))return null;let s=R0(i.dom);if(s.length!=1)return null;e+=s[0].width,t=s[0].height}return e?{lineHeight:this.dom.getBoundingClientRect().height,charWidth:e/this.length,textHeight:t}:null}coordsAt(e,t){let i=Vl(this,e,t);if(!this.children.length&&i&&this.parent){let{heightOracle:s}=this.parent.view.viewState,o=i.bottom-i.top;if(Math.abs(o-s.lineHeight)<2&&s.textHeight<o){let r=(o-s.textHeight)/2;return{top:i.top+r,bottom:i.bottom-r,left:i.left,right:i.left}}}return i}become(e){return e instanceof ae&&this.children.length==0&&e.children.length==0&&Wi(this.attrs,e.attrs)&&this.breakAfter==e.breakAfter}covers(){return!0}static find(e,t){for(let i=0,s=0;i<e.children.length;i++){let o=e.children[i],r=s+o.length;if(r>=t){if(o instanceof ae)return o;if(r>t)break}s=r+o.breakAfter}return null}}class ut extends ee{constructor(e,t,i){super(),this.widget=e,this.length=t,this.deco=i,this.breakAfter=0,this.prevWidget=null}merge(e,t,i,s,o,r){return i&&(!(i instanceof ut)||!this.widget.compare(i.widget)||e>0&&o<=0||t<this.length&&r<=0)?!1:(this.length=e+(i?i.length:0)+(this.length-t),!0)}domAtPos(e){return e==0?ke.before(this.dom):ke.after(this.dom,e==this.length)}split(e){let t=this.length-e;this.length=e;let i=new ut(this.widget,t,this.deco);return i.breakAfter=this.breakAfter,i}get children(){return rs}sync(e){(!this.dom||!this.widget.updateDOM(this.dom,e))&&(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(e)),this.widget.editable||(this.dom.contentEditable="false"))}get overrideDOMText(){return this.parent?this.parent.view.state.doc.slice(this.posAtStart,this.posAtEnd):Y.empty}domBoundsAround(){return null}become(e){return e instanceof ut&&e.widget.constructor==this.widget.constructor?(e.widget.compare(this.widget)||this.markDirty(!0),this.dom&&!this.prevWidget&&(this.prevWidget=this.widget),this.widget=e.widget,this.length=e.length,this.deco=e.deco,this.breakAfter=e.breakAfter,!0):!1}ignoreMutation(){return!0}ignoreEvent(e){return this.widget.ignoreEvent(e)}get isEditable(){return!1}get isWidget(){return!0}coordsAt(e,t){let i=this.widget.coordsAt(this.dom,e,t);return i||(this.widget instanceof O2?null:mn(this.dom.getBoundingClientRect(),this.length?e==0:t<=0))}destroy(){super.destroy(),this.dom&&this.widget.destroy(this.dom)}covers(e){let{startSide:t,endSide:i}=this.deco;return t==i?!1:e<0?t<0:i>0}}class O2 extends Tt{constructor(e){super(),this.height=e}toDOM(){let e=document.createElement("div");return e.className="cm-gap",this.updateDOM(e),e}eq(e){return e.height==this.height}updateDOM(e){return e.style.height=this.height+"px",!0}get editable(){return!0}get estimatedHeight(){return this.height}ignoreEvent(){return!1}}class T0{constructor(e,t,i,s){this.doc=e,this.pos=t,this.end=i,this.disallowBlockEffectsFor=s,this.content=[],this.curLine=null,this.breakAtStart=0,this.pendingBuffer=0,this.bufferMarks=[],this.atCursorPos=!0,this.openStart=-1,this.openEnd=-1,this.text="",this.textOff=0,this.cursor=e.iter(),this.skip=t}posCovered(){if(this.content.length==0)return!this.breakAtStart&&this.doc.lineAt(this.pos).from!=this.pos;let e=this.content[this.content.length-1];return!(e.breakAfter||e instanceof ut&&e.deco.endSide<0)}getLine(){return this.curLine||(this.content.push(this.curLine=new ae),this.atCursorPos=!0),this.curLine}flushBuffer(e=this.bufferMarks){this.pendingBuffer&&(this.curLine.append(oi(new r0(-1),e),e.length),this.pendingBuffer=0)}addBlockWidget(e){this.flushBuffer(),this.curLine=null,this.content.push(e)}finish(e){this.pendingBuffer&&e<=this.bufferMarks.length?this.flushBuffer():this.pendingBuffer=0,!this.posCovered()&&!(e&&this.content.length&&this.content[this.content.length-1]instanceof ut)&&this.getLine()}buildText(e,t,i){for(;e>0;){if(this.textOff==this.text.length){let{value:o,lineBreak:r,done:l}=this.cursor.next(this.skip);if(this.skip=0,l)throw new Error("Ran out of text content when drawing inline views");if(r){this.posCovered()||this.getLine(),this.content.length?this.content[this.content.length-1].breakAfter=1:this.breakAtStart=1,this.flushBuffer(),this.curLine=null,this.atCursorPos=!0,e--;continue}else this.text=o,this.textOff=0}let s=Math.min(this.text.length-this.textOff,e,512);this.flushBuffer(t.slice(t.length-i)),this.getLine().append(oi(new Ue(this.text.slice(this.textOff,this.textOff+s)),t),i),this.atCursorPos=!0,this.textOff+=s,e-=s,i=0}}span(e,t,i,s){this.buildText(t-e,i,s),this.pos=t,this.openStart<0&&(this.openStart=s)}point(e,t,i,s,o,r){if(this.disallowBlockEffectsFor[r]&&i instanceof Ot){if(i.block)throw new RangeError("Block decorations may not be specified via plugins");if(t>this.doc.lineAt(this.pos).to)throw new RangeError("Decorations that replace line breaks may not be specified via plugins")}let l=t-e;if(i instanceof Ot)if(i.block)i.startSide>0&&!this.posCovered()&&this.getLine(),this.addBlockWidget(new ut(i.widget||l0.block,l,i));else{let a=bt.create(i.widget||l0.inline,l,l?0:i.startSide),h=this.atCursorPos&&!a.isEditable&&o<=s.length&&(e<t||i.startSide>0),c=!a.isEditable&&(e<t||o>s.length||i.startSide<=0),f=this.getLine();this.pendingBuffer==2&&!h&&!a.isEditable&&(this.pendingBuffer=0),this.flushBuffer(s),h&&(f.append(oi(new r0(1),s),o),o=s.length+Math.max(0,o-s.length)),f.append(oi(a,s),o),this.atCursorPos=c,this.pendingBuffer=c?e<t||o>s.length?1:2:0,this.pendingBuffer&&(this.bufferMarks=s.slice())}else this.doc.lineAt(this.pos).from==this.pos&&this.getLine().addLineDeco(i);l&&(this.textOff+l<=this.text.length?this.textOff+=l:(this.skip+=l-(this.text.length-this.textOff),this.text="",this.textOff=0),this.pos=t),this.openStart<0&&(this.openStart=o)}static build(e,t,i,s,o){let r=new T0(e,t,i,o);return r.openEnd=U.spans(s,t,i,r),r.openStart<0&&(r.openStart=r.openEnd),r.finish(r.openEnd),r}}function oi(n,e){for(let t of e)n=new dt(t,[n],n.length);return n}class l0 extends Tt{constructor(e){super(),this.tag=e}eq(e){return e.tag==this.tag}toDOM(){return document.createElement(this.tag)}updateDOM(e){return e.nodeName.toLowerCase()==this.tag}get isHidden(){return!0}}l0.inline=new l0("span");l0.block=new l0("div");var se=function(n){return n[n.LTR=0]="LTR",n[n.RTL=1]="RTL",n}(se||(se={}));const Ft=se.LTR,ls=se.RTL;function Ll(n){let e=[];for(let t=0;t<n.length;t++)e.push(1<<+n[t]);return e}const vd=Ll("88888888888888888888888888888888888666888888787833333333337888888000000000000000000000000008888880000000000000000000000000088888888888888888888888888888888888887866668888088888663380888308888800000000000000000000000800000000000000000000000000000008"),wd=Ll("4444448826627288999999999992222222222222222222222222222222222222222222222229999999999999999999994444444444644222822222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222999999949999999229989999223333333333"),M2=Object.create(null),Xe=[];for(let n of["()","[]","{}"]){let e=n.charCodeAt(0),t=n.charCodeAt(1);M2[e]=t,M2[t]=-e}function Nl(n){return n<=247?vd[n]:1424<=n&&n<=1524?2:1536<=n&&n<=1785?wd[n-1536]:1774<=n&&n<=2220?4:8192<=n&&n<=8204?256:64336<=n&&n<=65023?4:1}const xd=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\ufb50-\ufdff]/;class yt{get dir(){return this.level%2?ls:Ft}constructor(e,t,i){this.from=e,this.to=t,this.level=i}side(e,t){return this.dir==t==e?this.to:this.from}forward(e,t){return e==(this.dir==t)}static find(e,t,i,s){let o=-1;for(let r=0;r<e.length;r++){let l=e[r];if(l.from<=t&&l.to>=t){if(l.level==i)return r;(o<0||(s!=0?s<0?l.from<t:l.to>t:e[o].level>l.level))&&(o=r)}}if(o<0)throw new RangeError("Index out of range");return o}}function Rl(n,e){if(n.length!=e.length)return!1;for(let t=0;t<n.length;t++){let i=n[t],s=e[t];if(i.from!=s.from||i.to!=s.to||i.direction!=s.direction||!Rl(i.inner,s.inner))return!1}return!0}const Z=[];function bd(n,e,t,i,s){for(let o=0;o<=i.length;o++){let r=o?i[o-1].to:e,l=o<i.length?i[o].from:t,a=o?256:s;for(let h=r,c=a,f=a;h<l;h++){let d=Nl(n.charCodeAt(h));d==512?d=c:d==8&&f==4&&(d=16),Z[h]=d==4?2:d,d&7&&(f=d),c=d}for(let h=r,c=a,f=a;h<l;h++){let d=Z[h];if(d==128)h<l-1&&c==Z[h+1]&&c&24?d=Z[h]=c:Z[h]=256;else if(d==64){let p=h+1;for(;p<l&&Z[p]==64;)p++;let g=h&&c==8||p<t&&Z[p]==8?f==1?1:8:256;for(let m=h;m<p;m++)Z[m]=g;h=p-1}else d==8&&f==1&&(Z[h]=1);c=d,d&7&&(f=d)}}}function yd(n,e,t,i,s){let o=s==1?2:1;for(let r=0,l=0,a=0;r<=i.length;r++){let h=r?i[r-1].to:e,c=r<i.length?i[r].from:t;for(let f=h,d,p,g;f<c;f++)if(p=M2[d=n.charCodeAt(f)])if(p<0){for(let m=l-3;m>=0;m-=3)if(Xe[m+1]==-p){let v=Xe[m+2],w=v&2?s:v&4?v&1?o:s:0;w&&(Z[f]=Z[Xe[m]]=w),l=m;break}}else{if(Xe.length==189)break;Xe[l++]=f,Xe[l++]=d,Xe[l++]=a}else if((g=Z[f])==2||g==1){let m=g==s;a=m?0:1;for(let v=l-3;v>=0;v-=3){let w=Xe[v+2];if(w&2)break;if(m)Xe[v+2]|=2;else{if(w&4)break;Xe[v+2]|=4}}}}}function kd(n,e,t,i){for(let s=0,o=i;s<=t.length;s++){let r=s?t[s-1].to:n,l=s<t.length?t[s].from:e;for(let a=r;a<l;){let h=Z[a];if(h==256){let c=a+1;for(;;)if(c==l){if(s==t.length)break;c=t[s++].to,l=s<t.length?t[s].from:e}else if(Z[c]==256)c++;else break;let f=o==1,d=(c<e?Z[c]:i)==1,p=f==d?f?1:2:i;for(let g=c,m=s,v=m?t[m-1].to:n;g>a;)g==v&&(g=t[--m].from,v=m?t[m-1].to:n),Z[--g]=p;a=c}else o=h,a++}}}function D2(n,e,t,i,s,o,r){let l=i%2?2:1;if(i%2==s%2)for(let a=e,h=0;a<t;){let c=!0,f=!1;if(h==o.length||a<o[h].from){let m=Z[a];m!=l&&(c=!1,f=m==16)}let d=!c&&l==1?[]:null,p=c?i:i+1,g=a;e:for(;;)if(h<o.length&&g==o[h].from){if(f)break e;let m=o[h];if(!c)for(let v=m.to,w=h+1;;){if(v==t)break e;if(w<o.length&&o[w].from==v)v=o[w++].to;else{if(Z[v]==l)break e;break}}if(h++,d)d.push(m);else{m.from>a&&r.push(new yt(a,m.from,p));let v=m.direction==Ft!=!(p%2);T2(n,v?i+1:i,s,m.inner,m.from,m.to,r),a=m.to}g=m.to}else{if(g==t||(c?Z[g]!=l:Z[g]==l))break;g++}d?D2(n,a,g,i+1,s,d,r):a<g&&r.push(new yt(a,g,p)),a=g}else for(let a=t,h=o.length;a>e;){let c=!0,f=!1;if(!h||a>o[h-1].to){let m=Z[a-1];m!=l&&(c=!1,f=m==16)}let d=!c&&l==1?[]:null,p=c?i:i+1,g=a;e:for(;;)if(h&&g==o[h-1].to){if(f)break e;let m=o[--h];if(!c)for(let v=m.from,w=h;;){if(v==e)break e;if(w&&o[w-1].to==v)v=o[--w].from;else{if(Z[v-1]==l)break e;break}}if(d)d.push(m);else{m.to<a&&r.push(new yt(m.to,a,p));let v=m.direction==Ft!=!(p%2);T2(n,v?i+1:i,s,m.inner,m.from,m.to,r),a=m.from}g=m.from}else{if(g==e||(c?Z[g-1]!=l:Z[g-1]==l))break;g--}d?D2(n,g,a,i+1,s,d,r):g<a&&r.push(new yt(g,a,p)),a=g}}function T2(n,e,t,i,s,o,r){let l=e%2?2:1;bd(n,s,o,i,l),yd(n,s,o,i,l),kd(s,o,i,l),D2(n,s,o,e,t,i,r)}function Sd(n,e,t){if(!n)return[new yt(0,0,e==ls?1:0)];if(e==Ft&&!t.length&&!xd.test(n))return Il(n.length);if(t.length)for(;n.length>Z.length;)Z[Z.length]=256;let i=[],s=e==Ft?0:1;return T2(n,s,s,t,0,n.length,i),i}function Il(n){return[new yt(0,n,0)]}let Hl="";function Cd(n,e,t,i,s){var o;let r=i.head-n.from,l=yt.find(e,r,(o=i.bidiLevel)!==null&&o!==void 0?o:-1,i.assoc),a=e[l],h=a.side(s,t);if(r==h){let d=l+=s?1:-1;if(d<0||d>=e.length)return null;a=e[l=d],r=a.side(!s,t),h=a.side(s,t)}let c=xe(n.text,r,a.forward(s,t));(c<a.from||c>a.to)&&(c=h),Hl=n.text.slice(Math.min(r,c),Math.max(r,c));let f=l==(s?e.length-1:0)?null:e[l+(s?1:-1)];return f&&c==h&&f.level+(s?0:1)<a.level?O.cursor(f.side(!s,t)+n.from,f.forward(s,t)?1:-1,f.level):O.cursor(c+n.from,a.forward(s,t)?-1:1,a.level)}function _d(n,e,t){for(let i=e;i<t;i++){let s=Nl(n.charCodeAt(i));if(s==1)return Ft;if(s==2||s==4)return ls}return Ft}const $l=L.define(),Wl=L.define(),Fl=L.define(),Gl=L.define(),A2=L.define(),jl=L.define(),ql=L.define(),as=L.define(),cs=L.define(),Ul=L.define({combine:n=>n.some(e=>e)}),Yl=L.define({combine:n=>n.some(e=>e)}),Kl=L.define();class t0{constructor(e,t="nearest",i="nearest",s=5,o=5,r=!1){this.range=e,this.y=t,this.x=i,this.yMargin=s,this.xMargin=o,this.isSnapshot=r}map(e){return e.empty?this:new t0(this.range.map(e),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}clip(e){return this.range.to<=e.doc.length?this:new t0(O.cursor(e.doc.length),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}}const ri=G.define({map:(n,e)=>n.map(e)}),Xl=G.define();function Pe(n,e,t){let i=n.facet(Gl);i.length?i[0](e):window.onerror&&window.onerror(String(e),t,void 0,void 0,e)||(t?console.error(t+":",e):console.error(e))}const ht=L.define({combine:n=>n.length?n[0]:!0});let Od=0;const Kt=L.define({combine(n){return n.filter((e,t)=>{for(let i=0;i<t;i++)if(n[i].plugin==e.plugin)return!1;return!0})}});class he{constructor(e,t,i,s,o){this.id=e,this.create=t,this.domEventHandlers=i,this.domEventObservers=s,this.baseExtensions=o(this),this.extension=this.baseExtensions.concat(Kt.of({plugin:this,arg:void 0}))}of(e){return this.baseExtensions.concat(Kt.of({plugin:this,arg:e}))}static define(e,t){const{eventHandlers:i,eventObservers:s,provide:o,decorations:r}=t||{};return new he(Od++,e,i,s,l=>{let a=[];return r&&a.push(I0.of(h=>{let c=h.plugin(l);return c?r(c):W.none})),o&&a.push(o(l)),a})}static fromClass(e,t){return he.define((i,s)=>new e(i,s),t)}}class En{constructor(e){this.spec=e,this.mustUpdate=null,this.value=null}get plugin(){return this.spec&&this.spec.plugin}update(e){if(this.value){if(this.mustUpdate){let t=this.mustUpdate;if(this.mustUpdate=null,this.value.update)try{this.value.update(t)}catch(i){if(Pe(t.state,i,"CodeMirror plugin crashed"),this.value.destroy)try{this.value.destroy()}catch{}this.deactivate()}}}else if(this.spec)try{this.value=this.spec.plugin.create(e,this.spec.arg)}catch(t){Pe(e.state,t,"CodeMirror plugin crashed"),this.deactivate()}return this}destroy(e){var t;if(!((t=this.value)===null||t===void 0)&&t.destroy)try{this.value.destroy()}catch(i){Pe(e.state,i,"CodeMirror plugin crashed")}}deactivate(){this.spec=this.value=null}}const Ql=L.define(),hs=L.define(),I0=L.define(),Jl=L.define(),us=L.define(),Zl=L.define();function lo(n,e){let t=n.state.facet(Zl);if(!t.length)return t;let i=t.map(o=>o instanceof Function?o(n):o),s=[];return U.spans(i,e.from,e.to,{point(){},span(o,r,l,a){let h=o-e.from,c=r-e.from,f=s;for(let d=l.length-1;d>=0;d--,a--){let p=l[d].spec.bidiIsolate,g;if(p==null&&(p=_d(e.text,h,c)),a>0&&f.length&&(g=f[f.length-1]).to==h&&g.direction==p)g.to=c,f=g.inner;else{let m={from:h,to:c,direction:p,inner:[]};f.push(m),f=m.inner}}}}),s}const ea=L.define();function fs(n){let e=0,t=0,i=0,s=0;for(let o of n.state.facet(ea)){let r=o(n);r&&(r.left!=null&&(e=Math.max(e,r.left)),r.right!=null&&(t=Math.max(t,r.right)),r.top!=null&&(i=Math.max(i,r.top)),r.bottom!=null&&(s=Math.max(s,r.bottom)))}return{left:e,right:t,top:i,bottom:s}}const k0=L.define();class We{constructor(e,t,i,s){this.fromA=e,this.toA=t,this.fromB=i,this.toB=s}join(e){return new We(Math.min(this.fromA,e.fromA),Math.max(this.toA,e.toA),Math.min(this.fromB,e.fromB),Math.max(this.toB,e.toB))}addToSet(e){let t=e.length,i=this;for(;t>0;t--){let s=e[t-1];if(!(s.fromA>i.toA)){if(s.toA<i.fromA)break;i=i.join(s),e.splice(t-1,1)}}return e.splice(t,0,i),e}static extendWithRanges(e,t){if(t.length==0)return e;let i=[];for(let s=0,o=0,r=0,l=0;;s++){let a=s==e.length?null:e[s],h=r-l,c=a?a.fromB:1e9;for(;o<t.length&&t[o]<c;){let f=t[o],d=t[o+1],p=Math.max(l,f),g=Math.min(c,d);if(p<=g&&new We(p+h,g+h,p,g).addToSet(i),d>c)break;o+=2}if(!a)return i;new We(a.fromA,a.toA,a.fromB,a.toB).addToSet(i),r=a.toA,l=a.toB}}}class Fi{constructor(e,t,i){this.view=e,this.state=t,this.transactions=i,this.flags=0,this.startState=e.state,this.changes=ue.empty(this.startState.doc.length);for(let o of i)this.changes=this.changes.compose(o.changes);let s=[];this.changes.iterChangedRanges((o,r,l,a)=>s.push(new We(o,r,l,a))),this.changedRanges=s}static create(e,t,i){return new Fi(e,t,i)}get viewportChanged(){return(this.flags&4)>0}get viewportMoved(){return(this.flags&8)>0}get heightChanged(){return(this.flags&2)>0}get geometryChanged(){return this.docChanged||(this.flags&18)>0}get focusChanged(){return(this.flags&1)>0}get docChanged(){return!this.changes.empty}get selectionSet(){return this.transactions.some(e=>e.selection)}get empty(){return this.flags==0&&this.transactions.length==0}}class ao extends ee{get length(){return this.view.state.doc.length}constructor(e){super(),this.view=e,this.decorations=[],this.dynamicDecorationMap=[!1],this.domChanged=null,this.hasComposition=null,this.markedForComposition=new Set,this.editContextFormatting=W.none,this.lastCompositionAfterCursor=!1,this.minWidth=0,this.minWidthFrom=0,this.minWidthTo=0,this.impreciseAnchor=null,this.impreciseHead=null,this.forceSelection=!1,this.lastUpdate=Date.now(),this.setDOM(e.contentDOM),this.children=[new ae],this.children[0].setParent(this),this.updateDeco(),this.updateInner([new We(0,0,0,e.state.doc.length)],0,null)}update(e){var t;let i=e.changedRanges;this.minWidth>0&&i.length&&(i.every(({fromA:h,toA:c})=>c<this.minWidthFrom||h>this.minWidthTo)?(this.minWidthFrom=e.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=e.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0),this.updateEditContextFormatting(e);let s=-1;this.view.inputState.composing>=0&&!this.view.observer.editContext&&(!((t=this.domChanged)===null||t===void 0)&&t.newSel?s=this.domChanged.newSel.head:!Ed(e.changes,this.hasComposition)&&!e.selectionSet&&(s=e.state.selection.main.head));let o=s>-1?Dd(this.view,e.changes,s):null;if(this.domChanged=null,this.hasComposition){this.markedForComposition.clear();let{from:h,to:c}=this.hasComposition;i=new We(h,c,e.changes.mapPos(h,-1),e.changes.mapPos(c,1)).addToSet(i.slice())}this.hasComposition=o?{from:o.range.fromB,to:o.range.toB}:null,(V.ie||V.chrome)&&!o&&e&&e.state.doc.lines!=e.startState.doc.lines&&(this.forceSelection=!0);let r=this.decorations,l=this.updateDeco(),a=Bd(r,l,e.changes);return i=We.extendWithRanges(i,a),!(this.flags&7)&&i.length==0?!1:(this.updateInner(i,e.startState.doc.length,o),e.transactions.length&&(this.lastUpdate=Date.now()),!0)}updateInner(e,t,i){this.view.viewState.mustMeasureContent=!0,this.updateChildren(e,t,i);let{observer:s}=this.view;s.ignore(()=>{this.dom.style.height=this.view.viewState.contentHeight/this.view.scaleY+"px",this.dom.style.flexBasis=this.minWidth?this.minWidth+"px":"";let r=V.chrome||V.ios?{node:s.selectionRange.focusNode,written:!1}:void 0;this.sync(this.view,r),this.flags&=-8,r&&(r.written||s.selectionRange.focusNode!=r.node)&&(this.forceSelection=!0),this.dom.style.height=""}),this.markedForComposition.forEach(r=>r.flags&=-9);let o=[];if(this.view.viewport.from||this.view.viewport.to<this.view.state.doc.length)for(let r of this.children)r instanceof ut&&r.widget instanceof O2&&o.push(r.dom);s.updateGaps(o)}updateChildren(e,t,i){let s=i?i.range.addToSet(e.slice()):e,o=this.childCursor(t);for(let r=s.length-1;;r--){let l=r>=0?s[r]:null;if(!l)break;let{fromA:a,toA:h,fromB:c,toB:f}=l,d,p,g,m;if(i&&i.range.fromB<f&&i.range.toB>c){let _=T0.build(this.view.state.doc,c,i.range.fromB,this.decorations,this.dynamicDecorationMap),y=T0.build(this.view.state.doc,i.range.toB,f,this.decorations,this.dynamicDecorationMap);p=_.breakAtStart,g=_.openStart,m=y.openEnd;let C=this.compositionView(i);y.breakAtStart?C.breakAfter=1:y.content.length&&C.merge(C.length,C.length,y.content[0],!1,y.openStart,0)&&(C.breakAfter=y.content[0].breakAfter,y.content.shift()),_.content.length&&C.merge(0,0,_.content[_.content.length-1],!0,0,_.openEnd)&&_.content.pop(),d=_.content.concat(C).concat(y.content)}else({content:d,breakAtStart:p,openStart:g,openEnd:m}=T0.build(this.view.state.doc,c,f,this.decorations,this.dynamicDecorationMap));let{i:v,off:w}=o.findPos(h,1),{i:b,off:S}=o.findPos(a,-1);Dl(this,b,S,v,w,d,p,g,m)}i&&this.fixCompositionDOM(i)}updateEditContextFormatting(e){this.editContextFormatting=this.editContextFormatting.map(e.changes);for(let t of e.transactions)for(let i of t.effects)i.is(Xl)&&(this.editContextFormatting=i.value)}compositionView(e){let t=new Ue(e.text.nodeValue);t.flags|=8;for(let{deco:s}of e.marks)t=new dt(s,[t],t.length);let i=new ae;return i.append(t,0),i}fixCompositionDOM(e){let t=(o,r)=>{r.flags|=8|(r.children.some(a=>a.flags&7)?1:0),this.markedForComposition.add(r);let l=ee.get(o);l&&l!=r&&(l.dom=null),r.setDOM(o)},i=this.childPos(e.range.fromB,1),s=this.children[i.i];t(e.line,s);for(let o=e.marks.length-1;o>=-1;o--)i=s.childPos(i.off,1),s=s.children[i.i],t(o>=0?e.marks[o].node:e.text,s)}updateSelection(e=!1,t=!1){(e||!this.view.observer.selectionRange.focusNode)&&this.view.observer.readSelectionRange();let i=this.view.root.activeElement,s=i==this.dom,o=!s&&!(this.view.state.facet(ht)||this.dom.tabIndex>-1)&&Di(this.dom,this.view.observer.selectionRange)&&!(i&&this.dom.contains(i));if(!(s||t||o))return;let r=this.forceSelection;this.forceSelection=!1;let l=this.view.state.selection.main,a=this.moveToLine(this.domAtPos(l.anchor)),h=l.empty?a:this.moveToLine(this.domAtPos(l.head));if(V.gecko&&l.empty&&!this.hasComposition&&Md(a)){let f=document.createTextNode("");this.view.observer.ignore(()=>a.node.insertBefore(f,a.node.childNodes[a.offset]||null)),a=h=new ke(f,0),r=!0}let c=this.view.observer.selectionRange;(r||!c.focusNode||(!D0(a.node,a.offset,c.anchorNode,c.anchorOffset)||!D0(h.node,h.offset,c.focusNode,c.focusOffset))&&!this.suppressWidgetCursorChange(c,l))&&(this.view.observer.ignore(()=>{V.android&&V.chrome&&this.dom.contains(c.focusNode)&&Pd(c.focusNode,this.dom)&&(this.dom.blur(),this.dom.focus({preventScroll:!0}));let f=N0(this.view.root);if(f)if(l.empty){if(V.gecko){let d=Td(a.node,a.offset);if(d&&d!=3){let p=(d==1?_l:Ol)(a.node,a.offset);p&&(a=new ke(p.node,p.offset))}}f.collapse(a.node,a.offset),l.bidiLevel!=null&&f.caretBidiLevel!==void 0&&(f.caretBidiLevel=l.bidiLevel)}else if(f.extend){f.collapse(a.node,a.offset);try{f.extend(h.node,h.offset)}catch{}}else{let d=document.createRange();l.anchor>l.head&&([a,h]=[h,a]),d.setEnd(h.node,h.offset),d.setStart(a.node,a.offset),f.removeAllRanges(),f.addRange(d)}o&&this.view.root.activeElement==this.dom&&(this.dom.blur(),i&&i.focus())}),this.view.observer.setSelectionRange(a,h)),this.impreciseAnchor=a.precise?null:new ke(c.anchorNode,c.anchorOffset),this.impreciseHead=h.precise?null:new ke(c.focusNode,c.focusOffset)}suppressWidgetCursorChange(e,t){return this.hasComposition&&t.empty&&D0(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset)&&this.posFromDOM(e.focusNode,e.focusOffset)==t.head}enforceCursorAssoc(){if(this.hasComposition)return;let{view:e}=this,t=e.state.selection.main,i=N0(e.root),{anchorNode:s,anchorOffset:o}=e.observer.selectionRange;if(!i||!t.empty||!t.assoc||!i.modify)return;let r=ae.find(this,t.head);if(!r)return;let l=r.posAtStart;if(t.head==l||t.head==l+r.length)return;let a=this.coordsAt(t.head,-1),h=this.coordsAt(t.head,1);if(!a||!h||a.bottom>h.top)return;let c=this.domAtPos(t.head+t.assoc);i.collapse(c.node,c.offset),i.modify("move",t.assoc<0?"forward":"backward","lineboundary"),e.observer.readSelectionRange();let f=e.observer.selectionRange;e.docView.posFromDOM(f.anchorNode,f.anchorOffset)!=t.from&&i.collapse(s,o)}moveToLine(e){let t=this.dom,i;if(e.node!=t)return e;for(let s=e.offset;!i&&s<t.childNodes.length;s++){let o=ee.get(t.childNodes[s]);o instanceof ae&&(i=o.domAtPos(0))}for(let s=e.offset-1;!i&&s>=0;s--){let o=ee.get(t.childNodes[s]);o instanceof ae&&(i=o.domAtPos(o.length))}return i?new ke(i.node,i.offset,!0):e}nearest(e){for(let t=e;t;){let i=ee.get(t);if(i&&i.rootView==this)return i;t=t.parentNode}return null}posFromDOM(e,t){let i=this.nearest(e);if(!i)throw new RangeError("Trying to find position for a DOM position outside of the document");return i.localPosFromDOM(e,t)+i.posAtStart}domAtPos(e){let{i:t,off:i}=this.childCursor().findPos(e,-1);for(;t<this.children.length-1;){let s=this.children[t];if(i<s.length||s instanceof ae)break;t++,i=0}return this.children[t].domAtPos(i)}coordsAt(e,t){let i=null,s=0;for(let o=this.length,r=this.children.length-1;r>=0;r--){let l=this.children[r],a=o-l.breakAfter,h=a-l.length;if(a<e)break;if(h<=e&&(h<e||l.covers(-1))&&(a>e||l.covers(1))&&(!i||l instanceof ae&&!(i instanceof ae&&t>=0)))i=l,s=h;else if(i&&h==e&&a==e&&l instanceof ut&&Math.abs(t)<2){if(l.deco.startSide<0)break;r&&(i=null)}o=h}return i?i.coordsAt(e-s,t):null}coordsForChar(e){let{i:t,off:i}=this.childPos(e,1),s=this.children[t];if(!(s instanceof ae))return null;for(;s.children.length;){let{i:l,off:a}=s.childPos(i,1);for(;;l++){if(l==s.children.length)return null;if((s=s.children[l]).length)break}i=a}if(!(s instanceof Ue))return null;let o=xe(s.text,i);if(o==i)return null;let r=Wt(s.dom,i,o).getClientRects();for(let l=0;l<r.length;l++){let a=r[l];if(l==r.length-1||a.top<a.bottom&&a.left<a.right)return a}return null}measureVisibleLineHeights(e){let t=[],{from:i,to:s}=e,o=this.view.contentDOM.clientWidth,r=o>Math.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,l=-1,a=this.view.textDirection==se.LTR;for(let h=0,c=0;c<this.children.length;c++){let f=this.children[c],d=h+f.length;if(d>s)break;if(h>=i){let p=f.dom.getBoundingClientRect();if(t.push(p.height),r){let g=f.dom.lastChild,m=g?R0(g):[];if(m.length){let v=m[m.length-1],w=a?v.right-p.left:p.right-v.left;w>l&&(l=w,this.minWidth=o,this.minWidthFrom=h,this.minWidthTo=d)}}}h=d+f.breakAfter}return t}textDirectionAt(e){let{i:t}=this.childPos(e,1);return getComputedStyle(this.children[t].dom).direction=="rtl"?se.RTL:se.LTR}measureTextSize(){for(let o of this.children)if(o instanceof ae){let r=o.measureTextSize();if(r)return r}let e=document.createElement("div"),t,i,s;return e.className="cm-line",e.style.width="99999px",e.style.position="absolute",e.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore(()=>{this.dom.appendChild(e);let o=R0(e.firstChild)[0];t=e.getBoundingClientRect().height,i=o?o.width/27:7,s=o?o.height:t,e.remove()}),{lineHeight:t,charWidth:i,textHeight:s}}childCursor(e=this.length){let t=this.children.length;return t&&(e-=this.children[--t].length),new Ml(this.children,e,t)}computeBlockGapDeco(){let e=[],t=this.view.viewState;for(let i=0,s=0;;s++){let o=s==t.viewports.length?null:t.viewports[s],r=o?o.from-1:this.length;if(r>i){let l=(t.lineBlockAt(r).bottom-t.lineBlockAt(i).top)/this.view.scaleY;e.push(W.replace({widget:new O2(l),block:!0,inclusive:!0,isBlockGap:!0}).range(i,r))}if(!o)break;i=o.to+1}return W.set(e)}updateDeco(){let e=1,t=this.view.state.facet(I0).map(o=>(this.dynamicDecorationMap[e++]=typeof o=="function")?o(this.view):o),i=!1,s=this.view.state.facet(Jl).map((o,r)=>{let l=typeof o=="function";return l&&(i=!0),l?o(this.view):o});for(s.length&&(this.dynamicDecorationMap[e++]=i,t.push(U.join(s))),this.decorations=[this.editContextFormatting,...t,this.computeBlockGapDeco(),this.view.viewState.lineGapDeco];e<this.decorations.length;)this.dynamicDecorationMap[e++]=!1;return this.decorations}scrollIntoView(e){if(e.isSnapshot){let h=this.view.viewState.lineBlockAt(e.range.head);this.view.scrollDOM.scrollTop=h.top-e.yMargin,this.view.scrollDOM.scrollLeft=e.xMargin;return}for(let h of this.view.state.facet(Kl))try{if(h(this.view,e.range,e))return!0}catch(c){Pe(this.view.state,c,"scroll handler")}let{range:t}=e,i=this.coordsAt(t.head,t.empty?t.assoc:t.head>t.anchor?-1:1),s;if(!i)return;!t.empty&&(s=this.coordsAt(t.anchor,t.anchor>t.head?-1:1))&&(i={left:Math.min(i.left,s.left),top:Math.min(i.top,s.top),right:Math.max(i.right,s.right),bottom:Math.max(i.bottom,s.bottom)});let o=fs(this.view),r={left:i.left-o.left,top:i.top-o.top,right:i.right+o.right,bottom:i.bottom+o.bottom},{offsetWidth:l,offsetHeight:a}=this.view.scrollDOM;od(this.view.scrollDOM,r,t.head<t.anchor?-1:1,e.x,e.y,Math.max(Math.min(e.xMargin,l),-l),Math.max(Math.min(e.yMargin,a),-a),this.view.textDirection==se.LTR)}}function Md(n){return n.node.nodeType==1&&n.node.firstChild&&(n.offset==0||n.node.childNodes[n.offset-1].contentEditable=="false")&&(n.offset==n.node.childNodes.length||n.node.childNodes[n.offset].contentEditable=="false")}function ta(n,e){let t=n.observer.selectionRange;if(!t.focusNode)return null;let i=_l(t.focusNode,t.focusOffset),s=Ol(t.focusNode,t.focusOffset),o=i||s;if(s&&i&&s.node!=i.node){let l=ee.get(s.node);if(!l||l instanceof Ue&&l.text!=s.node.nodeValue)o=s;else if(n.docView.lastCompositionAfterCursor){let a=ee.get(i.node);!a||a instanceof Ue&&a.text!=i.node.nodeValue||(o=s)}}if(n.docView.lastCompositionAfterCursor=o!=i,!o)return null;let r=e-o.offset;return{from:r,to:r+o.node.nodeValue.length,node:o.node}}function Dd(n,e,t){let i=ta(n,t);if(!i)return null;let{node:s,from:o,to:r}=i,l=s.nodeValue;if(/[\n\r]/.test(l)||n.state.doc.sliceString(i.from,i.to)!=l)return null;let a=e.invertedDesc,h=new We(a.mapPos(o),a.mapPos(r),o,r),c=[];for(let f=s.parentNode;;f=f.parentNode){let d=ee.get(f);if(d instanceof dt)c.push({node:f,deco:d.mark});else{if(d instanceof ae||f.nodeName=="DIV"&&f.parentNode==n.contentDOM)return{range:h,text:s,marks:c,line:f};if(f!=n.contentDOM)c.push({node:f,deco:new X0({inclusive:!0,attributes:gd(f),tagName:f.tagName.toLowerCase()})});else return null}}}function Td(n,e){return n.nodeType!=1?0:(e&&n.childNodes[e-1].contentEditable=="false"?1:0)|(e<n.childNodes.length&&n.childNodes[e].contentEditable=="false"?2:0)}let Ad=class{constructor(){this.changes=[]}compareRange(e,t){Ti(e,t,this.changes)}comparePoint(e,t){Ti(e,t,this.changes)}boundChange(e){Ti(e,e,this.changes)}};function Bd(n,e,t){let i=new Ad;return U.compare(n,e,t,i),i.changes}function Pd(n,e){for(let t=n;t&&t!=e;t=t.assignedSlot||t.parentNode)if(t.nodeType==1&&t.contentEditable=="false")return!0;return!1}function Ed(n,e){let t=!1;return e&&n.iterChangedRanges((i,s)=>{i<e.to&&s>e.from&&(t=!0)}),t}function Vd(n,e,t=1){let i=n.charCategorizer(e),s=n.doc.lineAt(e),o=e-s.from;if(s.length==0)return O.cursor(e);o==0?t=1:o==s.length&&(t=-1);let r=o,l=o;t<0?r=xe(s.text,o,!1):l=xe(s.text,o);let a=i(s.text.slice(r,l));for(;r>0;){let h=xe(s.text,r,!1);if(i(s.text.slice(h,r))!=a)break;r=h}for(;l<s.length;){let h=xe(s.text,l);if(i(s.text.slice(l,h))!=a)break;l=h}return O.range(r+s.from,l+s.from)}function zd(n,e){return e.left>n?e.left-n:Math.max(0,n-e.right)}function Ld(n,e){return e.top>n?e.top-n:Math.max(0,n-e.bottom)}function Vn(n,e){return n.top<e.bottom-1&&n.bottom>e.top+1}function co(n,e){return e<n.top?{top:e,left:n.left,right:n.right,bottom:n.bottom}:n}function ho(n,e){return e>n.bottom?{top:n.top,left:n.left,right:n.right,bottom:e}:n}function B2(n,e,t){let i,s,o,r,l=!1,a,h,c,f;for(let g=n.firstChild;g;g=g.nextSibling){let m=R0(g);for(let v=0;v<m.length;v++){let w=m[v];s&&Vn(s,w)&&(w=co(ho(w,s.bottom),s.top));let b=zd(e,w),S=Ld(t,w);if(b==0&&S==0)return g.nodeType==3?uo(g,e,t):B2(g,e,t);(!i||r>S||r==S&&o>b)&&(i=g,s=w,o=b,r=S,l=b?e<w.left?v>0:v<m.length-1:!0),b==0?t>w.bottom&&(!c||c.bottom<w.bottom)?(a=g,c=w):t<w.top&&(!f||f.top>w.top)&&(h=g,f=w):c&&Vn(c,w)?c=ho(c,w.bottom):f&&Vn(f,w)&&(f=co(f,w.top))}}if(c&&c.bottom>=t?(i=a,s=c):f&&f.top<=t&&(i=h,s=f),!i)return{node:n,offset:0};let d=Math.max(s.left,Math.min(s.right,e));if(i.nodeType==3)return uo(i,d,t);if(l&&i.contentEditable!="false")return B2(i,d,t);let p=Array.prototype.indexOf.call(n.childNodes,i)+(e>=(s.left+s.right)/2?1:0);return{node:n,offset:p}}function uo(n,e,t){let i=n.nodeValue.length,s=-1,o=1e9,r=0;for(let l=0;l<i;l++){let a=Wt(n,l,l+1).getClientRects();for(let h=0;h<a.length;h++){let c=a[h];if(c.top==c.bottom)continue;r||(r=e-c.left);let f=(c.top>t?c.top-t:t-c.bottom)-1;if(c.left-1<=e&&c.right+1>=e&&f<o){let d=e>=(c.left+c.right)/2,p=d;if((V.chrome||V.gecko)&&Wt(n,l).getBoundingClientRect().left==c.right&&(p=!d),f<=0)return{node:n,offset:l+(p?1:0)};s=l+(p?1:0),o=f}}}return{node:n,offset:s>-1?s:r>0?n.nodeValue.length:0}}function ia(n,e,t,i=-1){var s,o;let r=n.contentDOM.getBoundingClientRect(),l=r.top+n.viewState.paddingTop,a,{docHeight:h}=n.viewState,{x:c,y:f}=e,d=f-l;if(d<0)return 0;if(d>h)return n.state.doc.length;for(let _=n.viewState.heightOracle.textHeight/2,y=!1;a=n.elementAtHeight(d),a.type!=_e.Text;)for(;d=i>0?a.bottom+_:a.top-_,!(d>=0&&d<=h);){if(y)return t?null:0;y=!0,i=-i}f=l+d;let p=a.from;if(p<n.viewport.from)return n.viewport.from==0?0:t?null:fo(n,r,a,c,f);if(p>n.viewport.to)return n.viewport.to==n.state.doc.length?n.state.doc.length:t?null:fo(n,r,a,c,f);let g=n.dom.ownerDocument,m=n.root.elementFromPoint?n.root:g,v=m.elementFromPoint(c,f);v&&!n.contentDOM.contains(v)&&(v=null),v||(c=Math.max(r.left+1,Math.min(r.right-1,c)),v=m.elementFromPoint(c,f),v&&!n.contentDOM.contains(v)&&(v=null));let w,b=-1;if(v&&((s=n.docView.nearest(v))===null||s===void 0?void 0:s.isEditable)!=!1){if(g.caretPositionFromPoint){let _=g.caretPositionFromPoint(c,f);_&&({offsetNode:w,offset:b}=_)}else if(g.caretRangeFromPoint){let _=g.caretRangeFromPoint(c,f);_&&({startContainer:w,startOffset:b}=_,(!n.contentDOM.contains(w)||V.safari&&Nd(w,b,c)||V.chrome&&Rd(w,b,c))&&(w=void 0))}w&&(b=Math.min(rt(w),b))}if(!w||!n.docView.dom.contains(w)){let _=ae.find(n.docView,p);if(!_)return d>a.top+a.height/2?a.to:a.from;({node:w,offset:b}=B2(_.dom,c,f))}let S=n.docView.nearest(w);if(!S)return null;if(S.isWidget&&((o=S.dom)===null||o===void 0?void 0:o.nodeType)==1){let _=S.dom.getBoundingClientRect();return e.y<_.top||e.y<=_.bottom&&e.x<=(_.left+_.right)/2?S.posAtStart:S.posAtEnd}else return S.localPosFromDOM(w,b)+S.posAtStart}function fo(n,e,t,i,s){let o=Math.round((i-e.left)*n.defaultCharacterWidth);if(n.lineWrapping&&t.height>n.defaultLineHeight*1.5){let l=n.viewState.heightOracle.textHeight,a=Math.floor((s-t.top-(n.defaultLineHeight-l)*.5)/l);o+=a*n.viewState.heightOracle.lineLength}let r=n.state.sliceDoc(t.from,t.to);return t.from+v2(r,o,n.state.tabSize)}function Nd(n,e,t){let i,s=n;if(n.nodeType!=3||e!=(i=n.nodeValue.length))return!1;for(;;){let o=s.nextSibling;if(o){if(o.nodeName=="BR")break;return!1}else{let r=s.parentNode;if(!r||r.nodeName=="DIV")break;s=r}}return Wt(n,i-1,i).getBoundingClientRect().right>t}function Rd(n,e,t){if(e!=0)return!1;for(let s=n;;){let o=s.parentNode;if(!o||o.nodeType!=1||o.firstChild!=s)return!1;if(o.classList.contains("cm-line"))break;s=o}let i=n.nodeType==1?n.getBoundingClientRect():Wt(n,0,Math.max(n.nodeValue.length,1)).getBoundingClientRect();return t-i.left>5}function P2(n,e,t){let i=n.lineBlockAt(e);if(Array.isArray(i.type)){let s;for(let o of i.type){if(o.from>e)break;if(!(o.to<e)){if(o.from<e&&o.to>e)return o;(!s||o.type==_e.Text&&(s.type!=o.type||(t<0?o.from<e:o.to>e)))&&(s=o)}}return s||i}return i}function Id(n,e,t,i){let s=P2(n,e.head,e.assoc||-1),o=!i||s.type!=_e.Text||!(n.lineWrapping||s.widgetLineBreaks)?null:n.coordsAtPos(e.assoc<0&&e.head>s.from?e.head-1:e.head);if(o){let r=n.dom.getBoundingClientRect(),l=n.textDirectionAt(s.from),a=n.posAtCoords({x:t==(l==se.LTR)?r.right-1:r.left+1,y:(o.top+o.bottom)/2});if(a!=null)return O.cursor(a,t?-1:1)}return O.cursor(t?s.to:s.from,t?-1:1)}function po(n,e,t,i){let s=n.state.doc.lineAt(e.head),o=n.bidiSpans(s),r=n.textDirectionAt(s.from);for(let l=e,a=null;;){let h=Cd(s,o,r,l,t),c=Hl;if(!h){if(s.number==(t?n.state.doc.lines:1))return l;c=`
|
|
8
|
-
`,s=n.state.doc.line(s.number+(t?1:-1)),o=n.bidiSpans(s),h=n.visualLineSide(s,!t)}if(a){if(!a(c))return l}else{if(!i)return h;a=i(c)}l=h}}function
|
|
9
|
-
`&&n.lineWrapping&&(i&&(i=O.single(i.main.anchor-1,i.main.head-1)),t={from:s.from,to:s.to,insert:Y.of([" "])}),t)return ds(n,t,i,o);if(i&&!i.main.eq(s)){let r=!1,l="select";return n.inputState.lastSelectionTime>Date.now()-50&&(n.inputState.lastSelectionOrigin=="select"&&(r=!0),l=n.inputState.lastSelectionOrigin),n.dispatch({selection:i,scrollIntoView:r,userEvent:l}),!0}else return!1}function ds(n,e,t,i=-1){if(V.ios&&n.inputState.flushIOSKey(e))return!0;let s=n.state.selection.main;if(V.android&&(e.to==s.to&&(e.from==s.from||e.from==s.from-1&&n.state.sliceDoc(e.from,s.from)==" ")&&e.insert.length==1&&e.insert.lines==2&&e0(n.contentDOM,"Enter",13)||(e.from==s.from-1&&e.to==s.to&&e.insert.length==0||i==8&&e.insert.length<e.to-e.from&&e.to>s.head)&&e0(n.contentDOM,"Backspace",8)||e.from==s.from&&e.to==s.to+1&&e.insert.length==0&&e0(n.contentDOM,"Delete",46)))return!0;let o=e.insert.toString();n.inputState.composing>=0&&n.inputState.composing++;let r,l=()=>r||(r=jd(n,e,t));return n.state.facet(jl).some(a=>a(n,e.from,e.to,o,l))||n.dispatch(l()),!0}function jd(n,e,t){let i,s=n.state,o=s.selection.main;if(e.from>=o.from&&e.to<=o.to&&e.to-e.from>=(o.to-o.from)/3&&(!t||t.main.empty&&t.main.from==e.from+e.insert.length)&&n.inputState.composing<0){let l=o.from<e.from?s.sliceDoc(o.from,e.from):"",a=o.to>e.to?s.sliceDoc(e.to,o.to):"";i=s.replaceSelection(n.state.toText(l+e.insert.sliceString(0,void 0,n.state.lineBreak)+a))}else{let l=s.changes(e),a=t&&t.main.to<=l.newLength?t.main:void 0;if(s.selection.ranges.length>1&&n.inputState.composing>=0&&e.to<=o.to&&e.to>=o.to-10){let h=n.state.sliceDoc(e.from,e.to),c,f=t&&ta(n,t.main.head);if(f){let g=e.insert.length-(e.to-e.from);c={from:f.from,to:f.to-g}}else c=n.state.doc.lineAt(o.head);let d=o.to-e.to,p=o.to-o.from;i=s.changeByRange(g=>{if(g.from==o.from&&g.to==o.to)return{changes:l,range:a||g.map(l)};let m=g.to-d,v=m-h.length;if(g.to-g.from!=p||n.state.sliceDoc(v,m)!=h||g.to>=c.from&&g.from<=c.to)return{range:g};let w=s.changes({from:v,to:m,insert:e.insert}),b=g.to-o.to;return{changes:w,range:a?O.range(Math.max(0,a.anchor+b),Math.max(0,a.head+b)):g.map(w)}})}else i={changes:l,selection:a&&s.selection.replaceRange(a)}}let r="input.type";return(n.composing||n.inputState.compositionPendingChange&&n.inputState.compositionEndedAt>Date.now()-50)&&(n.inputState.compositionPendingChange=!1,r+=".compose",n.inputState.compositionFirstChange&&(r+=".start",n.inputState.compositionFirstChange=!1)),s.update(i,{userEvent:r,scrollIntoView:!0})}function qd(n,e,t,i){let s=Math.min(n.length,e.length),o=0;for(;o<s&&n.charCodeAt(o)==e.charCodeAt(o);)o++;if(o==s&&n.length==e.length)return null;let r=n.length,l=e.length;for(;r>0&&l>0&&n.charCodeAt(r-1)==e.charCodeAt(l-1);)r--,l--;if(i=="end"){let a=Math.max(0,o-Math.min(r,l));t-=r+a-o}if(r<o&&n.length<e.length){let a=t<=o&&t>=r?o-t:0;o-=a,l=o+(l-r),r=o}else if(l<o){let a=t<=o&&t>=l?o-t:0;o-=a,r=o+(r-l),l=o}return{from:o,toA:r,toB:l}}function Ud(n){let e=[];if(n.root.activeElement!=n.contentDOM)return e;let{anchorNode:t,anchorOffset:i,focusNode:s,focusOffset:o}=n.observer.selectionRange;return t&&(e.push(new go(t,i)),(s!=t||o!=i)&&e.push(new go(s,o))),e}function Yd(n,e){if(n.length==0)return null;let t=n[0].pos,i=n.length==2?n[1].pos:t;return t>-1&&i>-1?O.single(t+e,i+e):null}class Kd{setSelectionOrigin(e){this.lastSelectionOrigin=e,this.lastSelectionTime=Date.now()}constructor(e){this.view=e,this.lastKeyCode=0,this.lastKeyTime=0,this.lastTouchTime=0,this.lastFocusTime=0,this.lastScrollTop=0,this.lastScrollLeft=0,this.pendingIOSKey=void 0,this.tabFocusMode=-1,this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastContextMenu=0,this.scrollHandlers=[],this.handlers=Object.create(null),this.composing=-1,this.compositionFirstChange=null,this.compositionEndedAt=0,this.compositionPendingKey=!1,this.compositionPendingChange=!1,this.mouseSelection=null,this.draggedContent=null,this.handleEvent=this.handleEvent.bind(this),this.notifiedFocused=e.hasFocus,V.safari&&e.contentDOM.addEventListener("input",()=>null),V.gecko&&u6(e.contentDOM.ownerDocument)}handleEvent(e){!n6(this.view,e)||this.ignoreDuringComposition(e)||e.type=="keydown"&&this.keydown(e)||(this.view.updateState!=0?Promise.resolve().then(()=>this.runHandlers(e.type,e)):this.runHandlers(e.type,e))}runHandlers(e,t){let i=this.handlers[e];if(i){for(let s of i.observers)s(this.view,t);for(let s of i.handlers){if(t.defaultPrevented)break;if(s(this.view,t)){t.preventDefault();break}}}}ensureHandlers(e){let t=Xd(e),i=this.handlers,s=this.view.contentDOM;for(let o in t)if(o!="scroll"){let r=!t[o].handlers.length,l=i[o];l&&r!=!l.handlers.length&&(s.removeEventListener(o,this.handleEvent),l=null),l||s.addEventListener(o,this.handleEvent,{passive:r})}for(let o in i)o!="scroll"&&!t[o]&&s.removeEventListener(o,this.handleEvent);this.handlers=t}keydown(e){if(this.lastKeyCode=e.keyCode,this.lastKeyTime=Date.now(),e.keyCode==9&&this.tabFocusMode>-1&&(!this.tabFocusMode||Date.now()<=this.tabFocusMode))return!0;if(this.tabFocusMode>0&&e.keyCode!=27&&oa.indexOf(e.keyCode)<0&&(this.tabFocusMode=-1),V.android&&V.chrome&&!e.synthetic&&(e.keyCode==13||e.keyCode==8))return this.view.observer.delayAndroidKey(e.key,e.keyCode),!0;let t;return V.ios&&!e.synthetic&&!e.altKey&&!e.metaKey&&((t=sa.find(i=>i.keyCode==e.keyCode))&&!e.ctrlKey||Qd.indexOf(e.key)>-1&&e.ctrlKey&&!e.shiftKey)?(this.pendingIOSKey=t||e,setTimeout(()=>this.flushIOSKey(),250),!0):(e.keyCode!=229&&this.view.observer.forceFlush(),!1)}flushIOSKey(e){let t=this.pendingIOSKey;return!t||t.key=="Enter"&&e&&e.from<e.to&&/^\S+$/.test(e.insert.toString())?!1:(this.pendingIOSKey=void 0,e0(this.view.contentDOM,t.key,t.keyCode,t instanceof KeyboardEvent?t:void 0))}ignoreDuringComposition(e){return/^key/.test(e.type)?this.composing>0?!0:V.safari&&!V.ios&&this.compositionPendingKey&&Date.now()-this.compositionEndedAt<100?(this.compositionPendingKey=!1,!0):!1:!1}startMouseSelection(e){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=e}update(e){this.view.observer.update(e),this.mouseSelection&&this.mouseSelection.update(e),this.draggedContent&&e.docChanged&&(this.draggedContent=this.draggedContent.map(e.changes)),e.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}destroy(){this.mouseSelection&&this.mouseSelection.destroy()}}function mo(n,e){return(t,i)=>{try{return e.call(n,i,t)}catch(s){Pe(t.state,s)}}}function Xd(n){let e=Object.create(null);function t(i){return e[i]||(e[i]={observers:[],handlers:[]})}for(let i of n){let s=i.spec,o=s&&s.plugin.domEventHandlers,r=s&&s.plugin.domEventObservers;if(o)for(let l in o){let a=o[l];a&&t(l).handlers.push(mo(i.value,a))}if(r)for(let l in r){let a=r[l];a&&t(l).observers.push(mo(i.value,a))}}for(let i in Ye)t(i).handlers.push(Ye[i]);for(let i in Ge)t(i).observers.push(Ge[i]);return e}const sa=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Enter",keyCode:13,inputType:"insertLineBreak"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],Qd="dthko",oa=[16,17,18,20,91,92,224,225],li=6;function ai(n){return Math.max(0,n)*.7+8}function Jd(n,e){return Math.max(Math.abs(n.clientX-e.clientX),Math.abs(n.clientY-e.clientY))}class Zd{constructor(e,t,i,s){this.view=e,this.startEvent=t,this.style=i,this.mustSelect=s,this.scrollSpeed={x:0,y:0},this.scrolling=-1,this.lastEvent=t,this.scrollParents=rd(e.contentDOM),this.atoms=e.state.facet(us).map(r=>r(e));let o=e.contentDOM.ownerDocument;o.addEventListener("mousemove",this.move=this.move.bind(this)),o.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=t.shiftKey,this.multiple=e.state.facet(q.allowMultipleSelections)&&e6(e,t),this.dragging=i6(e,t)&&aa(t)==1?null:!1}start(e){this.dragging===!1&&this.select(e)}move(e){if(e.buttons==0)return this.destroy();if(this.dragging||this.dragging==null&&Jd(this.startEvent,e)<10)return;this.select(this.lastEvent=e);let t=0,i=0,s=0,o=0,r=this.view.win.innerWidth,l=this.view.win.innerHeight;this.scrollParents.x&&({left:s,right:r}=this.scrollParents.x.getBoundingClientRect()),this.scrollParents.y&&({top:o,bottom:l}=this.scrollParents.y.getBoundingClientRect());let a=fs(this.view);e.clientX-a.left<=s+li?t=-ai(s-e.clientX):e.clientX+a.right>=r-li&&(t=ai(e.clientX-r)),e.clientY-a.top<=o+li?i=-ai(o-e.clientY):e.clientY+a.bottom>=l-li&&(i=ai(e.clientY-l)),this.setScrollSpeed(t,i)}up(e){this.dragging==null&&this.select(this.lastEvent),this.dragging||e.preventDefault(),this.destroy()}destroy(){this.setScrollSpeed(0,0);let e=this.view.contentDOM.ownerDocument;e.removeEventListener("mousemove",this.move),e.removeEventListener("mouseup",this.up),this.view.inputState.mouseSelection=this.view.inputState.draggedContent=null}setScrollSpeed(e,t){this.scrollSpeed={x:e,y:t},e||t?this.scrolling<0&&(this.scrolling=setInterval(()=>this.scroll(),50)):this.scrolling>-1&&(clearInterval(this.scrolling),this.scrolling=-1)}scroll(){let{x:e,y:t}=this.scrollSpeed;e&&this.scrollParents.x&&(this.scrollParents.x.scrollLeft+=e,e=0),t&&this.scrollParents.y&&(this.scrollParents.y.scrollTop+=t,t=0),(e||t)&&this.view.win.scrollBy(e,t),this.dragging===!1&&this.select(this.lastEvent)}skipAtoms(e){let t=null;for(let i=0;i<e.ranges.length;i++){let s=e.ranges[i],o=null;if(s.empty){let r=Ai(this.atoms,s.from,0);r!=s.from&&(o=O.cursor(r,-1))}else{let r=Ai(this.atoms,s.from,-1),l=Ai(this.atoms,s.to,1);(r!=s.from||l!=s.to)&&(o=O.range(s.from==s.anchor?r:l,s.from==s.head?r:l))}o&&(t||(t=e.ranges.slice()),t[i]=o)}return t?O.create(t,e.mainIndex):e}select(e){let{view:t}=this,i=this.skipAtoms(this.style.get(e,this.extend,this.multiple));(this.mustSelect||!i.eq(t.state.selection,this.dragging===!1))&&this.view.dispatch({selection:i,userEvent:"select.pointer"}),this.mustSelect=!1}update(e){e.transactions.some(t=>t.isUserEvent("input.type"))?this.destroy():this.style.update(e)&&setTimeout(()=>this.select(this.lastEvent),20)}}function e6(n,e){let t=n.state.facet($l);return t.length?t[0](e):V.mac?e.metaKey:e.ctrlKey}function t6(n,e){let t=n.state.facet(Wl);return t.length?t[0](e):V.mac?!e.altKey:!e.ctrlKey}function i6(n,e){let{main:t}=n.state.selection;if(t.empty)return!1;let i=N0(n.root);if(!i||i.rangeCount==0)return!0;let s=i.getRangeAt(0).getClientRects();for(let o=0;o<s.length;o++){let r=s[o];if(r.left<=e.clientX&&r.right>=e.clientX&&r.top<=e.clientY&&r.bottom>=e.clientY)return!0}return!1}function n6(n,e){if(!e.bubbles)return!0;if(e.defaultPrevented)return!1;for(let t=e.target,i;t!=n.contentDOM;t=t.parentNode)if(!t||t.nodeType==11||(i=ee.get(t))&&i.ignoreEvent(e))return!1;return!0}const Ye=Object.create(null),Ge=Object.create(null),ra=V.ie&&V.ie_version<15||V.ios&&V.webkit_version<604;function s6(n){let e=n.dom.parentNode;if(!e)return;let t=e.appendChild(document.createElement("textarea"));t.style.cssText="position: fixed; left: -10000px; top: 10px",t.focus(),setTimeout(()=>{n.focus(),t.remove(),la(n,t.value)},50)}function wn(n,e,t){for(let i of n.facet(e))t=i(t,n);return t}function la(n,e){e=wn(n.state,as,e);let{state:t}=n,i,s=1,o=t.toText(e),r=o.lines==t.selection.ranges.length;if(E2!=null&&t.selection.ranges.every(a=>a.empty)&&E2==o.toString()){let a=-1;i=t.changeByRange(h=>{let c=t.doc.lineAt(h.from);if(c.from==a)return{range:h};a=c.from;let f=t.toText((r?o.line(s++).text:e)+t.lineBreak);return{changes:{from:c.from,insert:f},range:O.cursor(h.from+f.length)}})}else r?i=t.changeByRange(a=>{let h=o.line(s++);return{changes:{from:a.from,to:a.to,insert:h.text},range:O.cursor(a.from+h.length)}}):i=t.replaceSelection(o);n.dispatch(i,{userEvent:"input.paste",scrollIntoView:!0})}Ge.scroll=n=>{n.inputState.lastScrollTop=n.scrollDOM.scrollTop,n.inputState.lastScrollLeft=n.scrollDOM.scrollLeft};Ye.keydown=(n,e)=>(n.inputState.setSelectionOrigin("select"),e.keyCode==27&&n.inputState.tabFocusMode!=0&&(n.inputState.tabFocusMode=Date.now()+2e3),!1);Ge.touchstart=(n,e)=>{n.inputState.lastTouchTime=Date.now(),n.inputState.setSelectionOrigin("select.pointer")};Ge.touchmove=n=>{n.inputState.setSelectionOrigin("select.pointer")};Ye.mousedown=(n,e)=>{if(n.observer.flush(),n.inputState.lastTouchTime>Date.now()-2e3)return!1;let t=null;for(let i of n.state.facet(Fl))if(t=i(n,e),t)break;if(!t&&e.button==0&&(t=l6(n,e)),t){let i=!n.hasFocus;n.inputState.startMouseSelection(new Zd(n,e,t,i)),i&&n.observer.ignore(()=>{kl(n.contentDOM);let o=n.root.activeElement;o&&!o.contains(n.contentDOM)&&o.blur()});let s=n.inputState.mouseSelection;if(s)return s.start(e),s.dragging===!1}return!1};function vo(n,e,t,i){if(i==1)return O.cursor(e,t);if(i==2)return Vd(n.state,e,t);{let s=ae.find(n.docView,e),o=n.state.doc.lineAt(s?s.posAtEnd:e),r=s?s.posAtStart:o.from,l=s?s.posAtEnd:o.to;return l<n.state.doc.length&&l==o.to&&l++,O.range(r,l)}}let wo=(n,e,t)=>e>=t.top&&e<=t.bottom&&n>=t.left&&n<=t.right;function o6(n,e,t,i){let s=ae.find(n.docView,e);if(!s)return 1;let o=e-s.posAtStart;if(o==0)return 1;if(o==s.length)return-1;let r=s.coordsAt(o,-1);if(r&&wo(t,i,r))return-1;let l=s.coordsAt(o,1);return l&&wo(t,i,l)?1:r&&r.bottom>=i?-1:1}function xo(n,e){let t=n.posAtCoords({x:e.clientX,y:e.clientY},!1);return{pos:t,bias:o6(n,t,e.clientX,e.clientY)}}const r6=V.ie&&V.ie_version<=11;let bo=null,yo=0,ko=0;function aa(n){if(!r6)return n.detail;let e=bo,t=ko;return bo=n,ko=Date.now(),yo=!e||t>Date.now()-400&&Math.abs(e.clientX-n.clientX)<2&&Math.abs(e.clientY-n.clientY)<2?(yo+1)%3:1}function l6(n,e){let t=xo(n,e),i=aa(e),s=n.state.selection;return{update(o){o.docChanged&&(t.pos=o.changes.mapPos(t.pos),s=s.map(o.changes))},get(o,r,l){let a=xo(n,o),h,c=vo(n,a.pos,a.bias,i);if(t.pos!=a.pos&&!r){let f=vo(n,t.pos,t.bias,i),d=Math.min(f.from,c.from),p=Math.max(f.to,c.to);c=d<c.from?O.range(d,p):O.range(p,d)}return r?s.replaceRange(s.main.extend(c.from,c.to)):l&&i==1&&s.ranges.length>1&&(h=a6(s,a.pos))?h:l?s.addRange(c):O.create([c])}}}function a6(n,e){for(let t=0;t<n.ranges.length;t++){let{from:i,to:s}=n.ranges[t];if(i<=e&&s>=e)return O.create(n.ranges.slice(0,t).concat(n.ranges.slice(t+1)),n.mainIndex==t?0:n.mainIndex-(n.mainIndex>t?1:0))}return null}Ye.dragstart=(n,e)=>{let{selection:{main:t}}=n.state;if(e.target.draggable){let s=n.docView.nearest(e.target);if(s&&s.isWidget){let o=s.posAtStart,r=o+s.length;(o>=t.to||r<=t.from)&&(t=O.range(o,r))}}let{inputState:i}=n;return i.mouseSelection&&(i.mouseSelection.dragging=!0),i.draggedContent=t,e.dataTransfer&&(e.dataTransfer.setData("Text",wn(n.state,cs,n.state.sliceDoc(t.from,t.to))),e.dataTransfer.effectAllowed="copyMove"),!1};Ye.dragend=n=>(n.inputState.draggedContent=null,!1);function So(n,e,t,i){if(t=wn(n.state,as,t),!t)return;let s=n.posAtCoords({x:e.clientX,y:e.clientY},!1),{draggedContent:o}=n.inputState,r=i&&o&&t6(n,e)?{from:o.from,to:o.to}:null,l={from:s,insert:t},a=n.state.changes(r?[r,l]:l);n.focus(),n.dispatch({changes:a,selection:{anchor:a.mapPos(s,-1),head:a.mapPos(s,1)},userEvent:r?"move.drop":"input.drop"}),n.inputState.draggedContent=null}Ye.drop=(n,e)=>{if(!e.dataTransfer)return!1;if(n.state.readOnly)return!0;let t=e.dataTransfer.files;if(t&&t.length){let i=Array(t.length),s=0,o=()=>{++s==t.length&&So(n,e,i.filter(r=>r!=null).join(n.state.lineBreak),!1)};for(let r=0;r<t.length;r++){let l=new FileReader;l.onerror=o,l.onload=()=>{/[\x00-\x08\x0e-\x1f]{2}/.test(l.result)||(i[r]=l.result),o()},l.readAsText(t[r])}return!0}else{let i=e.dataTransfer.getData("Text");if(i)return So(n,e,i,!0),!0}return!1};Ye.paste=(n,e)=>{if(n.state.readOnly)return!0;n.observer.flush();let t=ra?null:e.clipboardData;return t?(la(n,t.getData("text/plain")||t.getData("text/uri-list")),!0):(s6(n),!1)};function c6(n,e){let t=n.dom.parentNode;if(!t)return;let i=t.appendChild(document.createElement("textarea"));i.style.cssText="position: fixed; left: -10000px; top: 10px",i.value=e,i.focus(),i.selectionEnd=e.length,i.selectionStart=0,setTimeout(()=>{i.remove(),n.focus()},50)}function h6(n){let e=[],t=[],i=!1;for(let s of n.selection.ranges)s.empty||(e.push(n.sliceDoc(s.from,s.to)),t.push(s));if(!e.length){let s=-1;for(let{from:o}of n.selection.ranges){let r=n.doc.lineAt(o);r.number>s&&(e.push(r.text),t.push({from:r.from,to:Math.min(n.doc.length,r.to+1)})),s=r.number}i=!0}return{text:wn(n,cs,e.join(n.lineBreak)),ranges:t,linewise:i}}let E2=null;Ye.copy=Ye.cut=(n,e)=>{let{text:t,ranges:i,linewise:s}=h6(n.state);if(!t&&!s)return!1;E2=s?t:null,e.type=="cut"&&!n.state.readOnly&&n.dispatch({changes:i,scrollIntoView:!0,userEvent:"delete.cut"});let o=ra?null:e.clipboardData;return o?(o.clearData(),o.setData("text/plain",t),!0):(c6(n,t),!1)};const ca=gt.define();function ha(n,e){let t=[];for(let i of n.facet(ql)){let s=i(n,e);s&&t.push(s)}return t.length?n.update({effects:t,annotations:ca.of(!0)}):null}function ua(n){setTimeout(()=>{let e=n.hasFocus;if(e!=n.inputState.notifiedFocused){let t=ha(n.state,e);t?n.dispatch(t):n.update([])}},10)}Ge.focus=n=>{n.inputState.lastFocusTime=Date.now(),!n.scrollDOM.scrollTop&&(n.inputState.lastScrollTop||n.inputState.lastScrollLeft)&&(n.scrollDOM.scrollTop=n.inputState.lastScrollTop,n.scrollDOM.scrollLeft=n.inputState.lastScrollLeft),ua(n)};Ge.blur=n=>{n.observer.clearSelectionRange(),ua(n)};Ge.compositionstart=Ge.compositionupdate=n=>{n.observer.editContext||(n.inputState.compositionFirstChange==null&&(n.inputState.compositionFirstChange=!0),n.inputState.composing<0&&(n.inputState.composing=0))};Ge.compositionend=n=>{n.observer.editContext||(n.inputState.composing=-1,n.inputState.compositionEndedAt=Date.now(),n.inputState.compositionPendingKey=!0,n.inputState.compositionPendingChange=n.observer.pendingRecords().length>0,n.inputState.compositionFirstChange=null,V.chrome&&V.android?n.observer.flushSoon():n.inputState.compositionPendingChange?Promise.resolve().then(()=>n.observer.flush()):setTimeout(()=>{n.inputState.composing<0&&n.docView.hasComposition&&n.update([])},50))};Ge.contextmenu=n=>{n.inputState.lastContextMenu=Date.now()};Ye.beforeinput=(n,e)=>{var t,i;if(e.inputType=="insertReplacementText"&&n.observer.editContext){let o=(t=e.dataTransfer)===null||t===void 0?void 0:t.getData("text/plain"),r=e.getTargetRanges();if(o&&r.length){let l=r[0],a=n.posAtDOM(l.startContainer,l.startOffset),h=n.posAtDOM(l.endContainer,l.endOffset);return ds(n,{from:a,to:h,insert:n.state.toText(o)},null),!0}}let s;if(V.chrome&&V.android&&(s=sa.find(o=>o.inputType==e.inputType))&&(n.observer.delayAndroidKey(s.key,s.keyCode),s.key=="Backspace"||s.key=="Delete")){let o=((i=window.visualViewport)===null||i===void 0?void 0:i.height)||0;setTimeout(()=>{var r;(((r=window.visualViewport)===null||r===void 0?void 0:r.height)||0)>o+10&&n.hasFocus&&(n.contentDOM.blur(),n.focus())},100)}return V.ios&&e.inputType=="deleteContentForward"&&n.observer.flushSoon(),V.safari&&e.inputType=="insertText"&&n.inputState.composing>=0&&setTimeout(()=>Ge.compositionend(n,e),20),!1};const Co=new Set;function u6(n){Co.has(n)||(Co.add(n),n.addEventListener("copy",()=>{}),n.addEventListener("cut",()=>{}))}const _o=["pre-wrap","normal","pre-line","break-spaces"];let a0=!1;function Oo(){a0=!1}class f6{constructor(e){this.lineWrapping=e,this.doc=Y.empty,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.textHeight=14,this.lineLength=30}heightForGap(e,t){let i=this.doc.lineAt(t).number-this.doc.lineAt(e).number+1;return this.lineWrapping&&(i+=Math.max(0,Math.ceil((t-e-i*this.lineLength*.5)/this.lineLength))),this.lineHeight*i}heightForLine(e){return this.lineWrapping?(1+Math.max(0,Math.ceil((e-this.lineLength)/Math.max(1,this.lineLength-5))))*this.lineHeight:this.lineHeight}setDoc(e){return this.doc=e,this}mustRefreshForWrapping(e){return _o.indexOf(e)>-1!=this.lineWrapping}mustRefreshForHeights(e){let t=!1;for(let i=0;i<e.length;i++){let s=e[i];s<0?i++:this.heightSamples[Math.floor(s*10)]||(t=!0,this.heightSamples[Math.floor(s*10)]=!0)}return t}refresh(e,t,i,s,o,r){let l=_o.indexOf(e)>-1,a=Math.round(t)!=Math.round(this.lineHeight)||this.lineWrapping!=l;if(this.lineWrapping=l,this.lineHeight=t,this.charWidth=i,this.textHeight=s,this.lineLength=o,a){this.heightSamples={};for(let h=0;h<r.length;h++){let c=r[h];c<0?h++:this.heightSamples[Math.floor(c*10)]=!0}}return a}}class d6{constructor(e,t){this.from=e,this.heights=t,this.index=0}get more(){return this.index<this.heights.length}}class it{constructor(e,t,i,s,o){this.from=e,this.length=t,this.top=i,this.height=s,this._content=o}get type(){return typeof this._content=="number"?_e.Text:Array.isArray(this._content)?this._content:this._content.type}get to(){return this.from+this.length}get bottom(){return this.top+this.height}get widget(){return this._content instanceof Ot?this._content.widget:null}get widgetLineBreaks(){return typeof this._content=="number"?this._content:0}join(e){let t=(Array.isArray(this._content)?this._content:[this]).concat(Array.isArray(e._content)?e._content:[e]);return new it(this.from,this.length+e.length,this.top,this.height+e.height,t)}}var ne=function(n){return n[n.ByPos=0]="ByPos",n[n.ByHeight=1]="ByHeight",n[n.ByPosNoHeight=2]="ByPosNoHeight",n}(ne||(ne={}));const Bi=.001;class Oe{constructor(e,t,i=2){this.length=e,this.height=t,this.flags=i}get outdated(){return(this.flags&2)>0}set outdated(e){this.flags=(e?2:0)|this.flags&-3}setHeight(e){this.height!=e&&(Math.abs(this.height-e)>Bi&&(a0=!0),this.height=e)}replace(e,t,i){return Oe.of(i)}decomposeLeft(e,t){t.push(this)}decomposeRight(e,t){t.push(this)}applyChanges(e,t,i,s){let o=this,r=i.doc;for(let l=s.length-1;l>=0;l--){let{fromA:a,toA:h,fromB:c,toB:f}=s[l],d=o.lineAt(a,ne.ByPosNoHeight,i.setDoc(t),0,0),p=d.to>=h?d:o.lineAt(h,ne.ByPosNoHeight,i,0,0);for(f+=p.to-h,h=p.to;l>0&&d.from<=s[l-1].toA;)a=s[l-1].fromA,c=s[l-1].fromB,l--,a<d.from&&(d=o.lineAt(a,ne.ByPosNoHeight,i,0,0));c+=d.from-a,a=d.from;let g=ps.build(i.setDoc(r),e,c,f);o=Gi(o,o.replace(a,h,g))}return o.updateHeight(i,0)}static empty(){return new Ne(0,0)}static of(e){if(e.length==1)return e[0];let t=0,i=e.length,s=0,o=0;for(;;)if(t==i)if(s>o*2){let l=e[t-1];l.break?e.splice(--t,1,l.left,null,l.right):e.splice(--t,1,l.left,l.right),i+=1+l.break,s-=l.size}else if(o>s*2){let l=e[i];l.break?e.splice(i,1,l.left,null,l.right):e.splice(i,1,l.left,l.right),i+=2+l.break,o-=l.size}else break;else if(s<o){let l=e[t++];l&&(s+=l.size)}else{let l=e[--i];l&&(o+=l.size)}let r=0;return e[t-1]==null?(r=1,t--):e[t]==null&&(r=1,i++),new p6(Oe.of(e.slice(0,t)),r,Oe.of(e.slice(i)))}}function Gi(n,e){return n==e?n:(n.constructor!=e.constructor&&(a0=!0),e)}Oe.prototype.size=1;class fa extends Oe{constructor(e,t,i){super(e,t),this.deco=i}blockAt(e,t,i,s){return new it(s,this.length,i,this.height,this.deco||0)}lineAt(e,t,i,s,o){return this.blockAt(0,i,s,o)}forEachLine(e,t,i,s,o,r){e<=o+this.length&&t>=o&&r(this.blockAt(0,i,s,o))}updateHeight(e,t=0,i=!1,s){return s&&s.from<=t&&s.more&&this.setHeight(s.heights[s.index++]),this.outdated=!1,this}toString(){return`block(${this.length})`}}class Ne extends fa{constructor(e,t){super(e,t,null),this.collapsed=0,this.widgetHeight=0,this.breaks=0}blockAt(e,t,i,s){return new it(s,this.length,i,this.height,this.breaks)}replace(e,t,i){let s=i[0];return i.length==1&&(s instanceof Ne||s instanceof ve&&s.flags&4)&&Math.abs(this.length-s.length)<10?(s instanceof ve?s=new Ne(s.length,this.height):s.height=this.height,this.outdated||(s.outdated=!1),s):Oe.of(i)}updateHeight(e,t=0,i=!1,s){return s&&s.from<=t&&s.more?this.setHeight(s.heights[s.index++]):(i||this.outdated)&&this.setHeight(Math.max(this.widgetHeight,e.heightForLine(this.length-this.collapsed))+this.breaks*e.lineHeight),this.outdated=!1,this}toString(){return`line(${this.length}${this.collapsed?-this.collapsed:""}${this.widgetHeight?":"+this.widgetHeight:""})`}}class ve extends Oe{constructor(e){super(e,0)}heightMetrics(e,t){let i=e.doc.lineAt(t).number,s=e.doc.lineAt(t+this.length).number,o=s-i+1,r,l=0;if(e.lineWrapping){let a=Math.min(this.height,e.lineHeight*o);r=a/o,this.length>o+1&&(l=(this.height-a)/(this.length-o-1))}else r=this.height/o;return{firstLine:i,lastLine:s,perLine:r,perChar:l}}blockAt(e,t,i,s){let{firstLine:o,lastLine:r,perLine:l,perChar:a}=this.heightMetrics(t,s);if(t.lineWrapping){let h=s+(e<t.lineHeight?0:Math.round(Math.max(0,Math.min(1,(e-i)/this.height))*this.length)),c=t.doc.lineAt(h),f=l+c.length*a,d=Math.max(i,e-f/2);return new it(c.from,c.length,d,f,0)}else{let h=Math.max(0,Math.min(r-o,Math.floor((e-i)/l))),{from:c,length:f}=t.doc.line(o+h);return new it(c,f,i+l*h,l,0)}}lineAt(e,t,i,s,o){if(t==ne.ByHeight)return this.blockAt(e,i,s,o);if(t==ne.ByPosNoHeight){let{from:p,to:g}=i.doc.lineAt(e);return new it(p,g-p,0,0,0)}let{firstLine:r,perLine:l,perChar:a}=this.heightMetrics(i,o),h=i.doc.lineAt(e),c=l+h.length*a,f=h.number-r,d=s+l*f+a*(h.from-o-f);return new it(h.from,h.length,Math.max(s,Math.min(d,s+this.height-c)),c,0)}forEachLine(e,t,i,s,o,r){e=Math.max(e,o),t=Math.min(t,o+this.length);let{firstLine:l,perLine:a,perChar:h}=this.heightMetrics(i,o);for(let c=e,f=s;c<=t;){let d=i.doc.lineAt(c);if(c==e){let g=d.number-l;f+=a*g+h*(e-o-g)}let p=a+h*d.length;r(new it(d.from,d.length,f,p,0)),f+=p,c=d.to+1}}replace(e,t,i){let s=this.length-t;if(s>0){let o=i[i.length-1];o instanceof ve?i[i.length-1]=new ve(o.length+s):i.push(null,new ve(s-1))}if(e>0){let o=i[0];o instanceof ve?i[0]=new ve(e+o.length):i.unshift(new ve(e-1),null)}return Oe.of(i)}decomposeLeft(e,t){t.push(new ve(e-1),null)}decomposeRight(e,t){t.push(null,new ve(this.length-e-1))}updateHeight(e,t=0,i=!1,s){let o=t+this.length;if(s&&s.from<=t+this.length&&s.more){let r=[],l=Math.max(t,s.from),a=-1;for(s.from>t&&r.push(new ve(s.from-t-1).updateHeight(e,t));l<=o&&s.more;){let c=e.doc.lineAt(l).length;r.length&&r.push(null);let f=s.heights[s.index++];a==-1?a=f:Math.abs(f-a)>=Bi&&(a=-2);let d=new Ne(c,f);d.outdated=!1,r.push(d),l+=c+1}l<=o&&r.push(null,new ve(o-l).updateHeight(e,l));let h=Oe.of(r);return(a<0||Math.abs(h.height-this.height)>=Bi||Math.abs(a-this.heightMetrics(e,t).perLine)>=Bi)&&(a0=!0),Gi(this,h)}else(i||this.outdated)&&(this.setHeight(e.heightForGap(t,t+this.length)),this.outdated=!1);return this}toString(){return`gap(${this.length})`}}class p6 extends Oe{constructor(e,t,i){super(e.length+t+i.length,e.height+i.height,t|(e.outdated||i.outdated?2:0)),this.left=e,this.right=i,this.size=e.size+i.size}get break(){return this.flags&1}blockAt(e,t,i,s){let o=i+this.left.height;return e<o?this.left.blockAt(e,t,i,s):this.right.blockAt(e,t,o,s+this.left.length+this.break)}lineAt(e,t,i,s,o){let r=s+this.left.height,l=o+this.left.length+this.break,a=t==ne.ByHeight?e<r:e<l,h=a?this.left.lineAt(e,t,i,s,o):this.right.lineAt(e,t,i,r,l);if(this.break||(a?h.to<l:h.from>l))return h;let c=t==ne.ByPosNoHeight?ne.ByPosNoHeight:ne.ByPos;return a?h.join(this.right.lineAt(l,c,i,r,l)):this.left.lineAt(l,c,i,s,o).join(h)}forEachLine(e,t,i,s,o,r){let l=s+this.left.height,a=o+this.left.length+this.break;if(this.break)e<a&&this.left.forEachLine(e,t,i,s,o,r),t>=a&&this.right.forEachLine(e,t,i,l,a,r);else{let h=this.lineAt(a,ne.ByPos,i,s,o);e<h.from&&this.left.forEachLine(e,h.from-1,i,s,o,r),h.to>=e&&h.from<=t&&r(h),t>h.to&&this.right.forEachLine(h.to+1,t,i,l,a,r)}}replace(e,t,i){let s=this.left.length+this.break;if(t<s)return this.balanced(this.left.replace(e,t,i),this.right);if(e>this.left.length)return this.balanced(this.left,this.right.replace(e-s,t-s,i));let o=[];e>0&&this.decomposeLeft(e,o);let r=o.length;for(let l of i)o.push(l);if(e>0&&Mo(o,r-1),t<this.length){let l=o.length;this.decomposeRight(t,o),Mo(o,l)}return Oe.of(o)}decomposeLeft(e,t){let i=this.left.length;if(e<=i)return this.left.decomposeLeft(e,t);t.push(this.left),this.break&&(i++,e>=i&&t.push(null)),e>i&&this.right.decomposeLeft(e-i,t)}decomposeRight(e,t){let i=this.left.length,s=i+this.break;if(e>=s)return this.right.decomposeRight(e-s,t);e<i&&this.left.decomposeRight(e,t),this.break&&e<s&&t.push(null),t.push(this.right)}balanced(e,t){return e.size>2*t.size||t.size>2*e.size?Oe.of(this.break?[e,null,t]:[e,t]):(this.left=Gi(this.left,e),this.right=Gi(this.right,t),this.setHeight(e.height+t.height),this.outdated=e.outdated||t.outdated,this.size=e.size+t.size,this.length=e.length+this.break+t.length,this)}updateHeight(e,t=0,i=!1,s){let{left:o,right:r}=this,l=t+o.length+this.break,a=null;return s&&s.from<=t+o.length&&s.more?a=o=o.updateHeight(e,t,i,s):o.updateHeight(e,t,i),s&&s.from<=l+r.length&&s.more?a=r=r.updateHeight(e,l,i,s):r.updateHeight(e,l,i),a?this.balanced(o,r):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}toString(){return this.left+(this.break?" ":"-")+this.right}}function Mo(n,e){let t,i;n[e]==null&&(t=n[e-1])instanceof ve&&(i=n[e+1])instanceof ve&&n.splice(e-1,3,new ve(t.length+1+i.length))}const g6=5;class ps{constructor(e,t){this.pos=e,this.oracle=t,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=e}get isCovered(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}span(e,t){if(this.lineStart>-1){let i=Math.min(t,this.lineEnd),s=this.nodes[this.nodes.length-1];s instanceof Ne?s.length+=i-this.pos:(i>this.pos||!this.isCovered)&&this.nodes.push(new Ne(i-this.pos,-1)),this.writtenTo=i,t>i&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=t}point(e,t,i){if(e<t||i.heightRelevant){let s=i.widget?i.widget.estimatedHeight:0,o=i.widget?i.widget.lineBreaks:0;s<0&&(s=this.oracle.lineHeight);let r=t-e;i.block?this.addBlock(new fa(r,s,i)):(r||o||s>=g6)&&this.addLineDeco(s,o,r)}else t>e&&this.span(e,t);this.lineEnd>-1&&this.lineEnd<this.pos&&(this.lineEnd=this.oracle.doc.lineAt(this.pos).to)}enterLine(){if(this.lineStart>-1)return;let{from:e,to:t}=this.oracle.doc.lineAt(this.pos);this.lineStart=e,this.lineEnd=t,this.writtenTo<e&&((this.writtenTo<e-1||this.nodes[this.nodes.length-1]==null)&&this.nodes.push(this.blankContent(this.writtenTo,e-1)),this.nodes.push(null)),this.pos>e&&this.nodes.push(new Ne(this.pos-e,-1)),this.writtenTo=this.pos}blankContent(e,t){let i=new ve(t-e);return this.oracle.doc.lineAt(e).to==t&&(i.flags|=4),i}ensureLine(){this.enterLine();let e=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(e instanceof Ne)return e;let t=new Ne(0,-1);return this.nodes.push(t),t}addBlock(e){this.enterLine();let t=e.deco;t&&t.startSide>0&&!this.isCovered&&this.ensureLine(),this.nodes.push(e),this.writtenTo=this.pos=this.pos+e.length,t&&t.endSide>0&&(this.covering=e)}addLineDeco(e,t,i){let s=this.ensureLine();s.length+=i,s.collapsed+=i,s.widgetHeight=Math.max(s.widgetHeight,e),s.breaks+=t,this.writtenTo=this.pos=this.pos+i}finish(e){let t=this.nodes.length==0?null:this.nodes[this.nodes.length-1];this.lineStart>-1&&!(t instanceof Ne)&&!this.isCovered?this.nodes.push(new Ne(0,-1)):(this.writtenTo<this.pos||t==null)&&this.nodes.push(this.blankContent(this.writtenTo,this.pos));let i=e;for(let s of this.nodes)s instanceof Ne&&s.updateHeight(this.oracle,i),i+=s?s.length:1;return this.nodes}static build(e,t,i,s){let o=new ps(i,e);return U.spans(t,i,s,o,0),o.finish(i)}}function m6(n,e,t){let i=new v6;return U.compare(n,e,t,i,0),i.changes}class v6{constructor(){this.changes=[]}compareRange(){}comparePoint(e,t,i,s){(e<t||i&&i.heightRelevant||s&&s.heightRelevant)&&Ti(e,t,this.changes,5)}}function w6(n,e){let t=n.getBoundingClientRect(),i=n.ownerDocument,s=i.defaultView||window,o=Math.max(0,t.left),r=Math.min(s.innerWidth,t.right),l=Math.max(0,t.top),a=Math.min(s.innerHeight,t.bottom);for(let h=n.parentNode;h&&h!=i.body;)if(h.nodeType==1){let c=h,f=window.getComputedStyle(c);if((c.scrollHeight>c.clientHeight||c.scrollWidth>c.clientWidth)&&f.overflow!="visible"){let d=c.getBoundingClientRect();o=Math.max(o,d.left),r=Math.min(r,d.right),l=Math.max(l,d.top),a=Math.min(h==n.parentNode?s.innerHeight:a,d.bottom)}h=f.position=="absolute"||f.position=="fixed"?c.offsetParent:c.parentNode}else if(h.nodeType==11)h=h.host;else break;return{left:o-t.left,right:Math.max(o,r)-t.left,top:l-(t.top+e),bottom:Math.max(l,a)-(t.top+e)}}function x6(n){let e=n.getBoundingClientRect(),t=n.ownerDocument.defaultView||window;return e.left<t.innerWidth&&e.right>0&&e.top<t.innerHeight&&e.bottom>0}function b6(n,e){let t=n.getBoundingClientRect();return{left:0,right:t.right-t.left,top:e,bottom:t.bottom-(t.top+e)}}class Ln{constructor(e,t,i,s){this.from=e,this.to=t,this.size=i,this.displaySize=s}static same(e,t){if(e.length!=t.length)return!1;for(let i=0;i<e.length;i++){let s=e[i],o=t[i];if(s.from!=o.from||s.to!=o.to||s.size!=o.size)return!1}return!0}draw(e,t){return W.replace({widget:new y6(this.displaySize*(t?e.scaleY:e.scaleX),t)}).range(this.from,this.to)}}class y6 extends Tt{constructor(e,t){super(),this.size=e,this.vertical=t}eq(e){return e.size==this.size&&e.vertical==this.vertical}toDOM(){let e=document.createElement("div");return this.vertical?e.style.height=this.size+"px":(e.style.width=this.size+"px",e.style.height="2px",e.style.display="inline-block"),e}get estimatedHeight(){return this.vertical?this.size:-1}}class Do{constructor(e){this.state=e,this.pixelViewport={left:0,right:window.innerWidth,top:0,bottom:0},this.inView=!0,this.paddingTop=0,this.paddingBottom=0,this.contentDOMWidth=0,this.contentDOMHeight=0,this.editorHeight=0,this.editorWidth=0,this.scrollTop=0,this.scrolledToBottom=!1,this.scaleX=1,this.scaleY=1,this.scrollAnchorPos=0,this.scrollAnchorHeight=-1,this.scaler=To,this.scrollTarget=null,this.printing=!1,this.mustMeasureContent=!0,this.defaultTextDirection=se.LTR,this.visibleRanges=[],this.mustEnforceCursorAssoc=!1;let t=e.facet(hs).some(i=>typeof i!="function"&&i.class=="cm-lineWrapping");this.heightOracle=new f6(t),this.stateDeco=e.facet(I0).filter(i=>typeof i!="function"),this.heightMap=Oe.empty().applyChanges(this.stateDeco,Y.empty,this.heightOracle.setDoc(e.doc),[new We(0,0,0,e.doc.length)]);for(let i=0;i<2&&(this.viewport=this.getViewport(0,null),!!this.updateForViewport());i++);this.updateViewportLines(),this.lineGaps=this.ensureLineGaps([]),this.lineGapDeco=W.set(this.lineGaps.map(i=>i.draw(this,!1))),this.computeVisibleRanges()}updateForViewport(){let e=[this.viewport],{main:t}=this.state.selection;for(let i=0;i<=1;i++){let s=i?t.head:t.anchor;if(!e.some(({from:o,to:r})=>s>=o&&s<=r)){let{from:o,to:r}=this.lineBlockAt(s);e.push(new ci(o,r))}}return this.viewports=e.sort((i,s)=>i.from-s.from),this.updateScaler()}updateScaler(){let e=this.scaler;return this.scaler=this.heightMap.height<=7e6?To:new gs(this.heightOracle,this.heightMap,this.viewports),e.eq(this.scaler)?0:2}updateViewportLines(){this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.heightOracle.setDoc(this.state.doc),0,0,e=>{this.viewportLines.push(C0(e,this.scaler))})}update(e,t=null){this.state=e.state;let i=this.stateDeco;this.stateDeco=this.state.facet(I0).filter(c=>typeof c!="function");let s=e.changedRanges,o=We.extendWithRanges(s,m6(i,this.stateDeco,e?e.changes:ue.empty(this.state.doc.length))),r=this.heightMap.height,l=this.scrolledToBottom?null:this.scrollAnchorAt(this.scrollTop);Oo(),this.heightMap=this.heightMap.applyChanges(this.stateDeco,e.startState.doc,this.heightOracle.setDoc(this.state.doc),o),(this.heightMap.height!=r||a0)&&(e.flags|=2),l?(this.scrollAnchorPos=e.changes.mapPos(l.from,-1),this.scrollAnchorHeight=l.top):(this.scrollAnchorPos=-1,this.scrollAnchorHeight=r);let a=o.length?this.mapViewport(this.viewport,e.changes):this.viewport;(t&&(t.range.head<a.from||t.range.head>a.to)||!this.viewportIsAppropriate(a))&&(a=this.getViewport(0,t));let h=a.from!=this.viewport.from||a.to!=this.viewport.to;this.viewport=a,e.flags|=this.updateForViewport(),(h||!e.changes.empty||e.flags&2)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,e.changes))),e.flags|=this.computeVisibleRanges(e.changes),t&&(this.scrollTarget=t),!this.mustEnforceCursorAssoc&&e.selectionSet&&e.view.lineWrapping&&e.state.selection.main.empty&&e.state.selection.main.assoc&&!e.state.facet(Yl)&&(this.mustEnforceCursorAssoc=!0)}measure(e){let t=e.contentDOM,i=window.getComputedStyle(t),s=this.heightOracle,o=i.whiteSpace;this.defaultTextDirection=i.direction=="rtl"?se.RTL:se.LTR;let r=this.heightOracle.mustRefreshForWrapping(o),l=t.getBoundingClientRect(),a=r||this.mustMeasureContent||this.contentDOMHeight!=l.height;this.contentDOMHeight=l.height,this.mustMeasureContent=!1;let h=0,c=0;if(l.width&&l.height){let{scaleX:_,scaleY:y}=yl(t,l);(_>.005&&Math.abs(this.scaleX-_)>.005||y>.005&&Math.abs(this.scaleY-y)>.005)&&(this.scaleX=_,this.scaleY=y,h|=16,r=a=!0)}let f=(parseInt(i.paddingTop)||0)*this.scaleY,d=(parseInt(i.paddingBottom)||0)*this.scaleY;(this.paddingTop!=f||this.paddingBottom!=d)&&(this.paddingTop=f,this.paddingBottom=d,h|=18),this.editorWidth!=e.scrollDOM.clientWidth&&(s.lineWrapping&&(a=!0),this.editorWidth=e.scrollDOM.clientWidth,h|=16);let p=e.scrollDOM.scrollTop*this.scaleY;this.scrollTop!=p&&(this.scrollAnchorHeight=-1,this.scrollTop=p),this.scrolledToBottom=Cl(e.scrollDOM);let g=(this.printing?b6:w6)(t,this.paddingTop),m=g.top-this.pixelViewport.top,v=g.bottom-this.pixelViewport.bottom;this.pixelViewport=g;let w=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(w!=this.inView&&(this.inView=w,w&&(a=!0)),!this.inView&&!this.scrollTarget&&!x6(e.dom))return 0;let b=l.width;if((this.contentDOMWidth!=b||this.editorHeight!=e.scrollDOM.clientHeight)&&(this.contentDOMWidth=l.width,this.editorHeight=e.scrollDOM.clientHeight,h|=16),a){let _=e.docView.measureVisibleLineHeights(this.viewport);if(s.mustRefreshForHeights(_)&&(r=!0),r||s.lineWrapping&&Math.abs(b-this.contentDOMWidth)>s.charWidth){let{lineHeight:y,charWidth:C,textHeight:k}=e.docView.measureTextSize();r=y>0&&s.refresh(o,y,C,k,Math.max(5,b/C),_),r&&(e.docView.minWidth=0,h|=16)}m>0&&v>0?c=Math.max(m,v):m<0&&v<0&&(c=Math.min(m,v)),Oo();for(let y of this.viewports){let C=y.from==this.viewport.from?_:e.docView.measureVisibleLineHeights(y);this.heightMap=(r?Oe.empty().applyChanges(this.stateDeco,Y.empty,this.heightOracle,[new We(0,0,0,e.state.doc.length)]):this.heightMap).updateHeight(s,0,r,new d6(y.from,C))}a0&&(h|=2)}let S=!this.viewportIsAppropriate(this.viewport,c)||this.scrollTarget&&(this.scrollTarget.range.head<this.viewport.from||this.scrollTarget.range.head>this.viewport.to);return S&&(h&2&&(h|=this.updateScaler()),this.viewport=this.getViewport(c,this.scrollTarget),h|=this.updateForViewport()),(h&2||S)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(r?[]:this.lineGaps,e)),h|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,e.docView.enforceCursorAssoc()),h}get visibleTop(){return this.scaler.fromDOM(this.pixelViewport.top)}get visibleBottom(){return this.scaler.fromDOM(this.pixelViewport.bottom)}getViewport(e,t){let i=.5-Math.max(-.5,Math.min(.5,e/1e3/2)),s=this.heightMap,o=this.heightOracle,{visibleTop:r,visibleBottom:l}=this,a=new ci(s.lineAt(r-i*1e3,ne.ByHeight,o,0,0).from,s.lineAt(l+(1-i)*1e3,ne.ByHeight,o,0,0).to);if(t){let{head:h}=t.range;if(h<a.from||h>a.to){let c=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),f=s.lineAt(h,ne.ByPos,o,0,0),d;t.y=="center"?d=(f.top+f.bottom)/2-c/2:t.y=="start"||t.y=="nearest"&&h<a.from?d=f.top:d=f.bottom-c,a=new ci(s.lineAt(d-1e3/2,ne.ByHeight,o,0,0).from,s.lineAt(d+c+1e3/2,ne.ByHeight,o,0,0).to)}}return a}mapViewport(e,t){let i=t.mapPos(e.from,-1),s=t.mapPos(e.to,1);return new ci(this.heightMap.lineAt(i,ne.ByPos,this.heightOracle,0,0).from,this.heightMap.lineAt(s,ne.ByPos,this.heightOracle,0,0).to)}viewportIsAppropriate({from:e,to:t},i=0){if(!this.inView)return!0;let{top:s}=this.heightMap.lineAt(e,ne.ByPos,this.heightOracle,0,0),{bottom:o}=this.heightMap.lineAt(t,ne.ByPos,this.heightOracle,0,0),{visibleTop:r,visibleBottom:l}=this;return(e==0||s<=r-Math.max(10,Math.min(-i,250)))&&(t==this.state.doc.length||o>=l+Math.max(10,Math.min(i,250)))&&s>r-2*1e3&&o<l+2*1e3}mapLineGaps(e,t){if(!e.length||t.empty)return e;let i=[];for(let s of e)t.touchesRange(s.from,s.to)||i.push(new Ln(t.mapPos(s.from),t.mapPos(s.to),s.size,s.displaySize));return i}ensureLineGaps(e,t){let i=this.heightOracle.lineWrapping,s=i?1e4:2e3,o=s>>1,r=s<<1;if(this.defaultTextDirection!=se.LTR&&!i)return[];let l=[],a=(c,f,d,p)=>{if(f-c<o)return;let g=this.state.selection.main,m=[g.from];g.empty||m.push(g.to);for(let w of m)if(w>c&&w<f){a(c,w-10,d,p),a(w+10,f,d,p);return}let v=S6(e,w=>w.from>=d.from&&w.to<=d.to&&Math.abs(w.from-c)<o&&Math.abs(w.to-f)<o&&!m.some(b=>w.from<b&&w.to>b));if(!v){if(f<d.to&&t&&i&&t.visibleRanges.some(S=>S.from<=f&&S.to>=f)){let S=t.moveToLineBoundary(O.cursor(f),!1,!0).head;S>c&&(f=S)}let w=this.gapSize(d,c,f,p),b=i||w<2e6?w:2e6;v=new Ln(c,f,w,b)}l.push(v)},h=c=>{if(c.length<r||c.type!=_e.Text)return;let f=k6(c.from,c.to,this.stateDeco);if(f.total<r)return;let d=this.scrollTarget?this.scrollTarget.range.head:null,p,g;if(i){let m=s/this.heightOracle.lineLength*this.heightOracle.lineHeight,v,w;if(d!=null){let b=ui(f,d),S=((this.visibleBottom-this.visibleTop)/2+m)/c.height;v=b-S,w=b+S}else v=(this.visibleTop-c.top-m)/c.height,w=(this.visibleBottom-c.top+m)/c.height;p=hi(f,v),g=hi(f,w)}else{let m=f.total*this.heightOracle.charWidth,v=s*this.heightOracle.charWidth,w=0;if(m>2e6)for(let C of e)C.from>=c.from&&C.from<c.to&&C.size!=C.displaySize&&C.from*this.heightOracle.charWidth+w<this.pixelViewport.left&&(w=C.size-C.displaySize);let b=this.pixelViewport.left+w,S=this.pixelViewport.right+w,_,y;if(d!=null){let C=ui(f,d),k=((S-b)/2+v)/m;_=C-k,y=C+k}else _=(b-v)/m,y=(S+v)/m;p=hi(f,_),g=hi(f,y)}p>c.from&&a(c.from,p,c,f),g<c.to&&a(g,c.to,c,f)};for(let c of this.viewportLines)Array.isArray(c.type)?c.type.forEach(h):h(c);return l}gapSize(e,t,i,s){let o=ui(s,i)-ui(s,t);return this.heightOracle.lineWrapping?e.height*o:s.total*this.heightOracle.charWidth*o}updateLineGaps(e){Ln.same(e,this.lineGaps)||(this.lineGaps=e,this.lineGapDeco=W.set(e.map(t=>t.draw(this,this.heightOracle.lineWrapping))))}computeVisibleRanges(e){let t=this.stateDeco;this.lineGaps.length&&(t=t.concat(this.lineGapDeco));let i=[];U.spans(t,this.viewport.from,this.viewport.to,{span(o,r){i.push({from:o,to:r})},point(){}},20);let s=0;if(i.length!=this.visibleRanges.length)s=12;else for(let o=0;o<i.length&&!(s&8);o++){let r=this.visibleRanges[o],l=i[o];(r.from!=l.from||r.to!=l.to)&&(s|=4,e&&e.mapPos(r.from,-1)==l.from&&e.mapPos(r.to,1)==l.to||(s|=8))}return this.visibleRanges=i,s}lineBlockAt(e){return e>=this.viewport.from&&e<=this.viewport.to&&this.viewportLines.find(t=>t.from<=e&&t.to>=e)||C0(this.heightMap.lineAt(e,ne.ByPos,this.heightOracle,0,0),this.scaler)}lineBlockAtHeight(e){return e>=this.viewportLines[0].top&&e<=this.viewportLines[this.viewportLines.length-1].bottom&&this.viewportLines.find(t=>t.top<=e&&t.bottom>=e)||C0(this.heightMap.lineAt(this.scaler.fromDOM(e),ne.ByHeight,this.heightOracle,0,0),this.scaler)}scrollAnchorAt(e){let t=this.lineBlockAtHeight(e+8);return t.from>=this.viewport.from||this.viewportLines[0].top-e>200?t:this.viewportLines[0]}elementAtHeight(e){return C0(this.heightMap.blockAt(this.scaler.fromDOM(e),this.heightOracle,0,0),this.scaler)}get docHeight(){return this.scaler.toDOM(this.heightMap.height)}get contentHeight(){return this.docHeight+this.paddingTop+this.paddingBottom}}class ci{constructor(e,t){this.from=e,this.to=t}}function k6(n,e,t){let i=[],s=n,o=0;return U.spans(t,n,e,{span(){},point(r,l){r>s&&(i.push({from:s,to:r}),o+=r-s),s=l}},20),s<e&&(i.push({from:s,to:e}),o+=e-s),{total:o,ranges:i}}function hi({total:n,ranges:e},t){if(t<=0)return e[0].from;if(t>=1)return e[e.length-1].to;let i=Math.floor(n*t);for(let s=0;;s++){let{from:o,to:r}=e[s],l=r-o;if(i<=l)return o+i;i-=l}}function ui(n,e){let t=0;for(let{from:i,to:s}of n.ranges){if(e<=s){t+=e-i;break}t+=s-i}return t/n.total}function S6(n,e){for(let t of n)if(e(t))return t}const To={toDOM(n){return n},fromDOM(n){return n},scale:1,eq(n){return n==this}};class gs{constructor(e,t,i){let s=0,o=0,r=0;this.viewports=i.map(({from:l,to:a})=>{let h=t.lineAt(l,ne.ByPos,e,0,0).top,c=t.lineAt(a,ne.ByPos,e,0,0).bottom;return s+=c-h,{from:l,to:a,top:h,bottom:c,domTop:0,domBottom:0}}),this.scale=(7e6-s)/(t.height-s);for(let l of this.viewports)l.domTop=r+(l.top-o)*this.scale,r=l.domBottom=l.domTop+(l.bottom-l.top),o=l.bottom}toDOM(e){for(let t=0,i=0,s=0;;t++){let o=t<this.viewports.length?this.viewports[t]:null;if(!o||e<o.top)return s+(e-i)*this.scale;if(e<=o.bottom)return o.domTop+(e-o.top);i=o.bottom,s=o.domBottom}}fromDOM(e){for(let t=0,i=0,s=0;;t++){let o=t<this.viewports.length?this.viewports[t]:null;if(!o||e<o.domTop)return i+(e-s)/this.scale;if(e<=o.domBottom)return o.top+(e-o.domTop);i=o.bottom,s=o.domBottom}}eq(e){return e instanceof gs?this.scale==e.scale&&this.viewports.length==e.viewports.length&&this.viewports.every((t,i)=>t.from==e.viewports[i].from&&t.to==e.viewports[i].to):!1}}function C0(n,e){if(e.scale==1)return n;let t=e.toDOM(n.top),i=e.toDOM(n.bottom);return new it(n.from,n.length,t,i-t,Array.isArray(n._content)?n._content.map(s=>C0(s,e)):n._content)}const fi=L.define({combine:n=>n.join(" ")}),V2=L.define({combine:n=>n.indexOf(!0)>-1}),z2=Ct.newName(),da=Ct.newName(),pa=Ct.newName(),ga={"&light":"."+da,"&dark":"."+pa};function L2(n,e,t){return new Ct(e,{finish(i){return/&/.test(i)?i.replace(/&\w*/,s=>{if(s=="&")return n;if(!t||!t[s])throw new RangeError(`Unsupported selector: ${s}`);return t[s]}):n+" "+i}})}const C6=L2("."+z2,{"&":{position:"relative !important",boxSizing:"border-box","&.cm-focused":{outline:"1px dotted #212121"},display:"flex !important",flexDirection:"column"},".cm-scroller":{display:"flex !important",alignItems:"flex-start !important",fontFamily:"monospace",lineHeight:1.4,height:"100%",overflowX:"auto",position:"relative",zIndex:0,overflowAnchor:"none"},".cm-content":{margin:0,flexGrow:2,flexShrink:0,display:"block",whiteSpace:"pre",wordWrap:"normal",boxSizing:"border-box",minHeight:"100%",padding:"4px 0",outline:"none","&[contenteditable=true]":{WebkitUserModify:"read-write-plaintext-only"}},".cm-lineWrapping":{whiteSpace_fallback:"pre-wrap",whiteSpace:"break-spaces",wordBreak:"break-word",overflowWrap:"anywhere",flexShrink:1},"&light .cm-content":{caretColor:"black"},"&dark .cm-content":{caretColor:"white"},".cm-line":{display:"block",padding:"0 2px 0 6px"},".cm-layer":{position:"absolute",left:0,top:0,contain:"size style","& > *":{position:"absolute"}},"&light .cm-selectionBackground":{background:"#d9d9d9"},"&dark .cm-selectionBackground":{background:"#222"},"&light.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#d7d4f0"},"&dark.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#233"},".cm-cursorLayer":{pointerEvents:"none"},"&.cm-focused > .cm-scroller > .cm-cursorLayer":{animation:"steps(1) cm-blink 1.2s infinite"},"@keyframes cm-blink":{"0%":{},"50%":{opacity:0},"100%":{}},"@keyframes cm-blink2":{"0%":{},"50%":{opacity:0},"100%":{}},".cm-cursor, .cm-dropCursor":{borderLeft:"1.2px solid black",marginLeft:"-0.6px",pointerEvents:"none"},".cm-cursor":{display:"none"},"&dark .cm-cursor":{borderLeftColor:"#ddd"},".cm-dropCursor":{position:"absolute"},"&.cm-focused > .cm-scroller > .cm-cursorLayer .cm-cursor":{display:"block"},".cm-iso":{unicodeBidi:"isolate"},".cm-announced":{position:"fixed",top:"-10000px"},"@media print":{".cm-announced":{display:"none"}},"&light .cm-activeLine":{backgroundColor:"#cceeff44"},"&dark .cm-activeLine":{backgroundColor:"#99eeff33"},"&light .cm-specialChar":{color:"red"},"&dark .cm-specialChar":{color:"#f78"},".cm-gutters":{flexShrink:0,display:"flex",height:"100%",boxSizing:"border-box",zIndex:200},".cm-gutters-before":{insetInlineStart:0},".cm-gutters-after":{insetInlineEnd:0},"&light .cm-gutters":{backgroundColor:"#f5f5f5",color:"#6c6c6c",border:"0px solid #ddd","&.cm-gutters-before":{borderRightWidth:"1px"},"&.cm-gutters-after":{borderLeftWidth:"1px"}},"&dark .cm-gutters":{backgroundColor:"#333338",color:"#ccc"},".cm-gutter":{display:"flex !important",flexDirection:"column",flexShrink:0,boxSizing:"border-box",minHeight:"100%",overflow:"hidden"},".cm-gutterElement":{boxSizing:"border-box"},".cm-lineNumbers .cm-gutterElement":{padding:"0 3px 0 5px",minWidth:"20px",textAlign:"right",whiteSpace:"nowrap"},"&light .cm-activeLineGutter":{backgroundColor:"#e2f2ff"},"&dark .cm-activeLineGutter":{backgroundColor:"#222227"},".cm-panels":{boxSizing:"border-box",position:"sticky",left:0,right:0,zIndex:300},"&light .cm-panels":{backgroundColor:"#f5f5f5",color:"black"},"&light .cm-panels-top":{borderBottom:"1px solid #ddd"},"&light .cm-panels-bottom":{borderTop:"1px solid #ddd"},"&dark .cm-panels":{backgroundColor:"#333338",color:"white"},".cm-dialog":{padding:"2px 19px 4px 6px",position:"relative","& label":{fontSize:"80%"}},".cm-dialog-close":{position:"absolute",top:"3px",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",fontSize:"14px",padding:"0"},".cm-tab":{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"},".cm-widgetBuffer":{verticalAlign:"text-top",height:"1em",width:0,display:"inline"},".cm-placeholder":{color:"#888",display:"inline-block",verticalAlign:"top",userSelect:"none"},".cm-highlightSpace":{backgroundImage:"radial-gradient(circle at 50% 55%, #aaa 20%, transparent 5%)",backgroundPosition:"center"},".cm-highlightTab":{backgroundImage:`url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="20"><path stroke="%23888" stroke-width="1" fill="none" d="M1 10H196L190 5M190 15L196 10M197 4L197 16"/></svg>')`,backgroundSize:"auto 100%",backgroundPosition:"right 90%",backgroundRepeat:"no-repeat"},".cm-trailingSpace":{backgroundColor:"#ff332255"},".cm-button":{verticalAlign:"middle",color:"inherit",fontSize:"70%",padding:".2em 1em",borderRadius:"1px"},"&light .cm-button":{backgroundImage:"linear-gradient(#eff1f5, #d9d9df)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#b4b4b4, #d0d3d6)"}},"&dark .cm-button":{backgroundImage:"linear-gradient(#393939, #111)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#111, #333)"}},".cm-textfield":{verticalAlign:"middle",color:"inherit",fontSize:"70%",border:"1px solid silver",padding:".2em .5em"},"&light .cm-textfield":{backgroundColor:"white"},"&dark .cm-textfield":{border:"1px solid #555",backgroundColor:"inherit"}},ga),_6={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},Nn=V.ie&&V.ie_version<=11;class O6{constructor(e){this.view=e,this.active=!1,this.editContext=null,this.selectionRange=new ld,this.selectionChanged=!1,this.delayedFlush=-1,this.resizeTimeout=-1,this.queue=[],this.delayedAndroidKey=null,this.flushingAndroidKey=-1,this.lastChange=0,this.scrollTargets=[],this.intersection=null,this.resizeScroll=null,this.intersecting=!1,this.gapIntersection=null,this.gaps=[],this.printQuery=null,this.parentCheck=-1,this.dom=e.contentDOM,this.observer=new MutationObserver(t=>{for(let i of t)this.queue.push(i);(V.ie&&V.ie_version<=11||V.ios&&e.composing)&&t.some(i=>i.type=="childList"&&i.removedNodes.length||i.type=="characterData"&&i.oldValue.length>i.target.nodeValue.length)?this.flushSoon():this.flush()}),window.EditContext&&V.android&&e.constructor.EDIT_CONTEXT!==!1&&!(V.chrome&&V.chrome_version<126)&&(this.editContext=new D6(e),e.state.facet(ht)&&(e.contentDOM.editContext=this.editContext.editContext)),Nn&&(this.onCharData=t=>{this.queue.push({target:t.target,type:"characterData",oldValue:t.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.onResize=this.onResize.bind(this),this.onPrint=this.onPrint.bind(this),this.onScroll=this.onScroll.bind(this),window.matchMedia&&(this.printQuery=window.matchMedia("print")),typeof ResizeObserver=="function"&&(this.resizeScroll=new ResizeObserver(()=>{var t;((t=this.view.docView)===null||t===void 0?void 0:t.lastUpdate)<Date.now()-75&&this.onResize()}),this.resizeScroll.observe(e.scrollDOM)),this.addWindowListeners(this.win=e.win),this.start(),typeof IntersectionObserver=="function"&&(this.intersection=new IntersectionObserver(t=>{this.parentCheck<0&&(this.parentCheck=setTimeout(this.listenForScroll.bind(this),1e3)),t.length>0&&t[t.length-1].intersectionRatio>0!=this.intersecting&&(this.intersecting=!this.intersecting,this.intersecting!=this.view.inView&&this.onScrollChanged(document.createEvent("Event")))},{threshold:[0,.001]}),this.intersection.observe(this.dom),this.gapIntersection=new IntersectionObserver(t=>{t.length>0&&t[t.length-1].intersectionRatio>0&&this.onScrollChanged(document.createEvent("Event"))},{})),this.listenForScroll(),this.readSelectionRange()}onScrollChanged(e){this.view.inputState.runHandlers("scroll",e),this.intersecting&&this.view.measure()}onScroll(e){this.intersecting&&this.flush(!1),this.editContext&&this.view.requestMeasure(this.editContext.measureReq),this.onScrollChanged(e)}onResize(){this.resizeTimeout<0&&(this.resizeTimeout=setTimeout(()=>{this.resizeTimeout=-1,this.view.requestMeasure()},50))}onPrint(e){(e.type=="change"||!e.type)&&!e.matches||(this.view.viewState.printing=!0,this.view.measure(),setTimeout(()=>{this.view.viewState.printing=!1,this.view.requestMeasure()},500))}updateGaps(e){if(this.gapIntersection&&(e.length!=this.gaps.length||this.gaps.some((t,i)=>t!=e[i]))){this.gapIntersection.disconnect();for(let t of e)this.gapIntersection.observe(t);this.gaps=e}}onSelectionChange(e){let t=this.selectionChanged;if(!this.readSelectionRange()||this.delayedAndroidKey)return;let{view:i}=this,s=this.selectionRange;if(i.state.facet(ht)?i.root.activeElement!=this.dom:!Di(this.dom,s))return;let o=s.anchorNode&&i.docView.nearest(s.anchorNode);if(o&&o.ignoreEvent(e)){t||(this.selectionChanged=!1);return}(V.ie&&V.ie_version<=11||V.android&&V.chrome)&&!i.state.selection.main.empty&&s.focusNode&&D0(s.focusNode,s.focusOffset,s.anchorNode,s.anchorOffset)?this.flushSoon():this.flush(!1)}readSelectionRange(){let{view:e}=this,t=N0(e.root);if(!t)return!1;let i=V.safari&&e.root.nodeType==11&&e.root.activeElement==this.dom&&M6(this.view,t)||t;if(!i||this.selectionRange.eq(i))return!1;let s=Di(this.dom,i);return s&&!this.selectionChanged&&e.inputState.lastFocusTime>Date.now()-200&&e.inputState.lastTouchTime<Date.now()-300&&cd(this.dom,i)?(this.view.inputState.lastFocusTime=0,e.docView.updateSelection(),!1):(this.selectionRange.setRange(i),s&&(this.selectionChanged=!0),!0)}setSelectionRange(e,t){this.selectionRange.set(e.node,e.offset,t.node,t.offset),this.selectionChanged=!1}clearSelectionRange(){this.selectionRange.set(null,0,null,0)}listenForScroll(){this.parentCheck=-1;let e=0,t=null;for(let i=this.dom;i;)if(i.nodeType==1)!t&&e<this.scrollTargets.length&&this.scrollTargets[e]==i?e++:t||(t=this.scrollTargets.slice(0,e)),t&&t.push(i),i=i.assignedSlot||i.parentNode;else if(i.nodeType==11)i=i.host;else break;if(e<this.scrollTargets.length&&!t&&(t=this.scrollTargets.slice(0,e)),t){for(let i of this.scrollTargets)i.removeEventListener("scroll",this.onScroll);for(let i of this.scrollTargets=t)i.addEventListener("scroll",this.onScroll)}}ignore(e){if(!this.active)return e();try{return this.stop(),e()}finally{this.start(),this.clear()}}start(){this.active||(this.observer.observe(this.dom,_6),Nn&&this.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.active=!0)}stop(){this.active&&(this.active=!1,this.observer.disconnect(),Nn&&this.dom.removeEventListener("DOMCharacterDataModified",this.onCharData))}clear(){this.processRecords(),this.queue.length=0,this.selectionChanged=!1}delayAndroidKey(e,t){var i;if(!this.delayedAndroidKey){let s=()=>{let o=this.delayedAndroidKey;o&&(this.clearDelayedAndroidKey(),this.view.inputState.lastKeyCode=o.keyCode,this.view.inputState.lastKeyTime=Date.now(),!this.flush()&&o.force&&e0(this.dom,o.key,o.keyCode))};this.flushingAndroidKey=this.view.win.requestAnimationFrame(s)}(!this.delayedAndroidKey||e=="Enter")&&(this.delayedAndroidKey={key:e,keyCode:t,force:this.lastChange<Date.now()-50||!!(!((i=this.delayedAndroidKey)===null||i===void 0)&&i.force)})}clearDelayedAndroidKey(){this.win.cancelAnimationFrame(this.flushingAndroidKey),this.delayedAndroidKey=null,this.flushingAndroidKey=-1}flushSoon(){this.delayedFlush<0&&(this.delayedFlush=this.view.win.requestAnimationFrame(()=>{this.delayedFlush=-1,this.flush()}))}forceFlush(){this.delayedFlush>=0&&(this.view.win.cancelAnimationFrame(this.delayedFlush),this.delayedFlush=-1),this.flush()}pendingRecords(){for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}processRecords(){let e=this.pendingRecords();e.length&&(this.queue=[]);let t=-1,i=-1,s=!1;for(let o of e){let r=this.readMutation(o);r&&(r.typeOver&&(s=!0),t==-1?{from:t,to:i}=r:(t=Math.min(r.from,t),i=Math.max(r.to,i)))}return{from:t,to:i,typeOver:s}}readChange(){let{from:e,to:t,typeOver:i}=this.processRecords(),s=this.selectionChanged&&Di(this.dom,this.selectionRange);if(e<0&&!s)return null;e>-1&&(this.lastChange=Date.now()),this.view.inputState.lastFocusTime=0,this.selectionChanged=!1;let o=new Gd(this.view,e,t,i);return this.view.docView.domChanged={newSel:o.newSel?o.newSel.main:null},o}flush(e=!0){if(this.delayedFlush>=0||this.delayedAndroidKey)return!1;e&&this.readSelectionRange();let t=this.readChange();if(!t)return this.view.requestMeasure(),!1;let i=this.view.state,s=na(this.view,t);return this.view.state==i&&(t.domChanged||t.newSel&&!t.newSel.main.eq(this.view.state.selection.main))&&this.view.update([]),s}readMutation(e){let t=this.view.docView.nearest(e.target);if(!t||t.ignoreMutation(e))return null;if(t.markDirty(e.type=="attributes"),e.type=="attributes"&&(t.flags|=4),e.type=="childList"){let i=Ao(t,e.previousSibling||e.target.previousSibling,-1),s=Ao(t,e.nextSibling||e.target.nextSibling,1);return{from:i?t.posAfter(i):t.posAtStart,to:s?t.posBefore(s):t.posAtEnd,typeOver:!1}}else return e.type=="characterData"?{from:t.posAtStart,to:t.posAtEnd,typeOver:e.target.nodeValue==e.oldValue}:null}setWindow(e){e!=this.win&&(this.removeWindowListeners(this.win),this.win=e,this.addWindowListeners(this.win))}addWindowListeners(e){e.addEventListener("resize",this.onResize),this.printQuery?this.printQuery.addEventListener?this.printQuery.addEventListener("change",this.onPrint):this.printQuery.addListener(this.onPrint):e.addEventListener("beforeprint",this.onPrint),e.addEventListener("scroll",this.onScroll),e.document.addEventListener("selectionchange",this.onSelectionChange)}removeWindowListeners(e){e.removeEventListener("scroll",this.onScroll),e.removeEventListener("resize",this.onResize),this.printQuery?this.printQuery.removeEventListener?this.printQuery.removeEventListener("change",this.onPrint):this.printQuery.removeListener(this.onPrint):e.removeEventListener("beforeprint",this.onPrint),e.document.removeEventListener("selectionchange",this.onSelectionChange)}update(e){this.editContext&&(this.editContext.update(e),e.startState.facet(ht)!=e.state.facet(ht)&&(e.view.contentDOM.editContext=e.state.facet(ht)?this.editContext.editContext:null))}destroy(){var e,t,i;this.stop(),(e=this.intersection)===null||e===void 0||e.disconnect(),(t=this.gapIntersection)===null||t===void 0||t.disconnect(),(i=this.resizeScroll)===null||i===void 0||i.disconnect();for(let s of this.scrollTargets)s.removeEventListener("scroll",this.onScroll);this.removeWindowListeners(this.win),clearTimeout(this.parentCheck),clearTimeout(this.resizeTimeout),this.win.cancelAnimationFrame(this.delayedFlush),this.win.cancelAnimationFrame(this.flushingAndroidKey),this.editContext&&(this.view.contentDOM.editContext=null,this.editContext.destroy())}}function Ao(n,e,t){for(;e;){let i=ee.get(e);if(i&&i.parent==n)return i;let s=e.parentNode;e=s!=n.dom?s:t>0?e.nextSibling:e.previousSibling}return null}function Bo(n,e){let t=e.startContainer,i=e.startOffset,s=e.endContainer,o=e.endOffset,r=n.docView.domAtPos(n.state.selection.main.anchor);return D0(r.node,r.offset,s,o)&&([t,i,s,o]=[s,o,t,i]),{anchorNode:t,anchorOffset:i,focusNode:s,focusOffset:o}}function M6(n,e){if(e.getComposedRanges){let s=e.getComposedRanges(n.root)[0];if(s)return Bo(n,s)}let t=null;function i(s){s.preventDefault(),s.stopImmediatePropagation(),t=s.getTargetRanges()[0]}return n.contentDOM.addEventListener("beforeinput",i,!0),n.dom.ownerDocument.execCommand("indent"),n.contentDOM.removeEventListener("beforeinput",i,!0),t?Bo(n,t):null}class D6{constructor(e){this.from=0,this.to=0,this.pendingContextChange=null,this.handlers=Object.create(null),this.composing=null,this.resetRange(e.state);let t=this.editContext=new window.EditContext({text:e.state.doc.sliceString(this.from,this.to),selectionStart:this.toContextPos(Math.max(this.from,Math.min(this.to,e.state.selection.main.anchor))),selectionEnd:this.toContextPos(e.state.selection.main.head)});this.handlers.textupdate=i=>{let s=e.state.selection.main,{anchor:o,head:r}=s,l=this.toEditorPos(i.updateRangeStart),a=this.toEditorPos(i.updateRangeEnd);e.inputState.composing>=0&&!this.composing&&(this.composing={contextBase:i.updateRangeStart,editorBase:l,drifted:!1});let h={from:l,to:a,insert:Y.of(i.text.split(`
|
|
10
|
-
`))};if(h.from==this.from&&o<this.from?h.from=o:h.to==this.to&&o>this.to&&(h.to=o),h.from==h.to&&!h.insert.length){let c=O.single(this.toEditorPos(i.selectionStart),this.toEditorPos(i.selectionEnd));c.main.eq(s)||e.dispatch({selection:c,userEvent:"select"});return}if((V.mac||V.android)&&h.from==r-1&&/^\. ?$/.test(i.text)&&e.contentDOM.getAttribute("autocorrect")=="off"&&(h={from:l,to:a,insert:Y.of([i.text.replace("."," ")])}),this.pendingContextChange=h,!e.state.readOnly){let c=this.to-this.from+(h.to-h.from+h.insert.length);ds(e,h,O.single(this.toEditorPos(i.selectionStart,c),this.toEditorPos(i.selectionEnd,c)))}this.pendingContextChange&&(this.revertPending(e.state),this.setSelection(e.state))},this.handlers.characterboundsupdate=i=>{let s=[],o=null;for(let r=this.toEditorPos(i.rangeStart),l=this.toEditorPos(i.rangeEnd);r<l;r++){let a=e.coordsForChar(r);o=a&&new DOMRect(a.left,a.top,a.right-a.left,a.bottom-a.top)||o||new DOMRect,s.push(o)}t.updateCharacterBounds(i.rangeStart,s)},this.handlers.textformatupdate=i=>{let s=[];for(let o of i.getTextFormats()){let r=o.underlineStyle,l=o.underlineThickness;if(r!="None"&&l!="None"){let a=this.toEditorPos(o.rangeStart),h=this.toEditorPos(o.rangeEnd);if(a<h){let c=`text-decoration: underline ${r=="Dashed"?"dashed ":r=="Squiggle"?"wavy ":""}${l=="Thin"?1:2}px`;s.push(W.mark({attributes:{style:c}}).range(a,h))}}}e.dispatch({effects:Xl.of(W.set(s))})},this.handlers.compositionstart=()=>{e.inputState.composing<0&&(e.inputState.composing=0,e.inputState.compositionFirstChange=!0)},this.handlers.compositionend=()=>{if(e.inputState.composing=-1,e.inputState.compositionFirstChange=null,this.composing){let{drifted:i}=this.composing;this.composing=null,i&&this.reset(e.state)}};for(let i in this.handlers)t.addEventListener(i,this.handlers[i]);this.measureReq={read:i=>{this.editContext.updateControlBounds(i.contentDOM.getBoundingClientRect());let s=N0(i.root);s&&s.rangeCount&&this.editContext.updateSelectionBounds(s.getRangeAt(0).getBoundingClientRect())}}}applyEdits(e){let t=0,i=!1,s=this.pendingContextChange;return e.changes.iterChanges((o,r,l,a,h)=>{if(i)return;let c=h.length-(r-o);if(s&&r>=s.to)if(s.from==o&&s.to==r&&s.insert.eq(h)){s=this.pendingContextChange=null,t+=c,this.to+=c;return}else s=null,this.revertPending(e.state);if(o+=t,r+=t,r<=this.from)this.from+=c,this.to+=c;else if(o<this.to){if(o<this.from||r>this.to||this.to-this.from+h.length>3e4){i=!0;return}this.editContext.updateText(this.toContextPos(o),this.toContextPos(r),h.toString()),this.to+=c}t+=c}),s&&!i&&this.revertPending(e.state),!i}update(e){let t=this.pendingContextChange,i=e.startState.selection.main;this.composing&&(this.composing.drifted||!e.changes.touchesRange(i.from,i.to)&&e.transactions.some(s=>!s.isUserEvent("input.type")&&s.changes.touchesRange(this.from,this.to)))?(this.composing.drifted=!0,this.composing.editorBase=e.changes.mapPos(this.composing.editorBase)):!this.applyEdits(e)||!this.rangeIsValid(e.state)?(this.pendingContextChange=null,this.reset(e.state)):(e.docChanged||e.selectionSet||t)&&this.setSelection(e.state),(e.geometryChanged||e.docChanged||e.selectionSet)&&e.view.requestMeasure(this.measureReq)}resetRange(e){let{head:t}=e.selection.main;this.from=Math.max(0,t-1e4),this.to=Math.min(e.doc.length,t+1e4)}reset(e){this.resetRange(e),this.editContext.updateText(0,this.editContext.text.length,e.doc.sliceString(this.from,this.to)),this.setSelection(e)}revertPending(e){let t=this.pendingContextChange;this.pendingContextChange=null,this.editContext.updateText(this.toContextPos(t.from),this.toContextPos(t.from+t.insert.length),e.doc.sliceString(t.from,t.to))}setSelection(e){let{main:t}=e.selection,i=this.toContextPos(Math.max(this.from,Math.min(this.to,t.anchor))),s=this.toContextPos(t.head);(this.editContext.selectionStart!=i||this.editContext.selectionEnd!=s)&&this.editContext.updateSelection(i,s)}rangeIsValid(e){let{head:t}=e.selection.main;return!(this.from>0&&t-this.from<500||this.to<e.doc.length&&this.to-t<500||this.to-this.from>1e4*3)}toEditorPos(e,t=this.to-this.from){e=Math.min(e,t);let i=this.composing;return i&&i.drifted?i.editorBase+(e-i.contextBase):e+this.from}toContextPos(e){let t=this.composing;return t&&t.drifted?t.contextBase+(e-t.editorBase):e-this.from}destroy(){for(let e in this.handlers)this.editContext.removeEventListener(e,this.handlers[e])}}class z{get state(){return this.viewState.state}get viewport(){return this.viewState.viewport}get visibleRanges(){return this.viewState.visibleRanges}get inView(){return this.viewState.inView}get composing(){return!!this.inputState&&this.inputState.composing>0}get compositionStarted(){return!!this.inputState&&this.inputState.composing>=0}get root(){return this._root}get win(){return this.dom.ownerDocument.defaultView||window}constructor(e={}){var t;this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.contentDOM=document.createElement("div"),this.scrollDOM=document.createElement("div"),this.scrollDOM.tabIndex=-1,this.scrollDOM.className="cm-scroller",this.scrollDOM.appendChild(this.contentDOM),this.announceDOM=document.createElement("div"),this.announceDOM.className="cm-announced",this.announceDOM.setAttribute("aria-live","polite"),this.dom=document.createElement("div"),this.dom.appendChild(this.announceDOM),this.dom.appendChild(this.scrollDOM),e.parent&&e.parent.appendChild(this.dom);let{dispatch:i}=e;this.dispatchTransactions=e.dispatchTransactions||i&&(s=>s.forEach(o=>i(o,this)))||(s=>this.update(s)),this.dispatch=this.dispatch.bind(this),this._root=e.root||ad(e.parent)||document,this.viewState=new Do(e.state||q.create(e)),e.scrollTo&&e.scrollTo.is(ri)&&(this.viewState.scrollTarget=e.scrollTo.value.clip(this.viewState.state)),this.plugins=this.state.facet(Kt).map(s=>new En(s));for(let s of this.plugins)s.update(this);this.observer=new O6(this),this.inputState=new Kd(this),this.inputState.ensureHandlers(this.plugins),this.docView=new ao(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure(),!((t=document.fonts)===null||t===void 0)&&t.ready&&document.fonts.ready.then(()=>this.requestMeasure())}dispatch(...e){let t=e.length==1&&e[0]instanceof fe?e:e.length==1&&Array.isArray(e[0])?e[0]:[this.state.update(...e)];this.dispatchTransactions(t,this)}update(e){if(this.updateState!=0)throw new Error("Calls to EditorView.update are not allowed while an update is in progress");let t=!1,i=!1,s,o=this.state;for(let d of e){if(d.startState!=o)throw new RangeError("Trying to update state with a transaction that doesn't start from the previous state.");o=d.state}if(this.destroyed){this.viewState.state=o;return}let r=this.hasFocus,l=0,a=null;e.some(d=>d.annotation(ca))?(this.inputState.notifiedFocused=r,l=1):r!=this.inputState.notifiedFocused&&(this.inputState.notifiedFocused=r,a=ha(o,r),a||(l=1));let h=this.observer.delayedAndroidKey,c=null;if(h?(this.observer.clearDelayedAndroidKey(),c=this.observer.readChange(),(c&&!this.state.doc.eq(o.doc)||!this.state.selection.eq(o.selection))&&(c=null)):this.observer.clear(),o.facet(q.phrases)!=this.state.facet(q.phrases))return this.setState(o);s=Fi.create(this,o,e),s.flags|=l;let f=this.viewState.scrollTarget;try{this.updateState=2;for(let d of e){if(f&&(f=f.map(d.changes)),d.scrollIntoView){let{main:p}=d.state.selection;f=new t0(p.empty?p:O.cursor(p.head,p.head>p.anchor?-1:1))}for(let p of d.effects)p.is(ri)&&(f=p.value.clip(this.state))}this.viewState.update(s,f),this.bidiCache=ji.update(this.bidiCache,s.changes),s.empty||(this.updatePlugins(s),this.inputState.update(s)),t=this.docView.update(s),this.state.facet(k0)!=this.styleModules&&this.mountStyles(),i=this.updateAttrs(),this.showAnnouncements(e),this.docView.updateSelection(t,e.some(d=>d.isUserEvent("select.pointer")))}finally{this.updateState=0}if(s.startState.facet(fi)!=s.state.facet(fi)&&(this.viewState.mustMeasureContent=!0),(t||i||f||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),t&&this.docViewUpdate(),!s.empty)for(let d of this.state.facet(A2))try{d(s)}catch(p){Pe(this.state,p,"update listener")}(a||c)&&Promise.resolve().then(()=>{a&&this.state==a.startState&&this.dispatch(a),c&&!na(this,c)&&h.force&&e0(this.contentDOM,h.key,h.keyCode)})}setState(e){if(this.updateState!=0)throw new Error("Calls to EditorView.setState are not allowed while an update is in progress");if(this.destroyed){this.viewState.state=e;return}this.updateState=2;let t=this.hasFocus;try{for(let i of this.plugins)i.destroy(this);this.viewState=new Do(e),this.plugins=e.facet(Kt).map(i=>new En(i)),this.pluginMap.clear();for(let i of this.plugins)i.update(this);this.docView.destroy(),this.docView=new ao(this),this.inputState.ensureHandlers(this.plugins),this.mountStyles(),this.updateAttrs(),this.bidiCache=[]}finally{this.updateState=0}t&&this.focus(),this.requestMeasure()}updatePlugins(e){let t=e.startState.facet(Kt),i=e.state.facet(Kt);if(t!=i){let s=[];for(let o of i){let r=t.indexOf(o);if(r<0)s.push(new En(o));else{let l=this.plugins[r];l.mustUpdate=e,s.push(l)}}for(let o of this.plugins)o.mustUpdate!=e&&o.destroy(this);this.plugins=s,this.pluginMap.clear()}else for(let s of this.plugins)s.mustUpdate=e;for(let s=0;s<this.plugins.length;s++)this.plugins[s].update(this);t!=i&&this.inputState.ensureHandlers(this.plugins)}docViewUpdate(){for(let e of this.plugins){let t=e.value;if(t&&t.docViewUpdate)try{t.docViewUpdate(this)}catch(i){Pe(this.state,i,"doc view update listener")}}}measure(e=!0){if(this.destroyed)return;if(this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.observer.delayedAndroidKey){this.measureScheduled=-1,this.requestMeasure();return}this.measureScheduled=0,e&&this.observer.forceFlush();let t=null,i=this.scrollDOM,s=i.scrollTop*this.scaleY,{scrollAnchorPos:o,scrollAnchorHeight:r}=this.viewState;Math.abs(s-this.viewState.scrollTop)>1&&(r=-1),this.viewState.scrollAnchorHeight=-1;try{for(let l=0;;l++){if(r<0)if(Cl(i))o=-1,r=this.viewState.heightMap.height;else{let p=this.viewState.scrollAnchorAt(s);o=p.from,r=p.top}this.updateState=1;let a=this.viewState.measure(this);if(!a&&!this.measureRequests.length&&this.viewState.scrollTarget==null)break;if(l>5){console.warn(this.measureRequests.length?"Measure loop restarted more than 5 times":"Viewport failed to stabilize");break}let h=[];a&4||([this.measureRequests,h]=[h,this.measureRequests]);let c=h.map(p=>{try{return p.read(this)}catch(g){return Pe(this.state,g),Po}}),f=Fi.create(this,this.state,[]),d=!1;f.flags|=a,t?t.flags|=a:t=f,this.updateState=2,f.empty||(this.updatePlugins(f),this.inputState.update(f),this.updateAttrs(),d=this.docView.update(f),d&&this.docViewUpdate());for(let p=0;p<h.length;p++)if(c[p]!=Po)try{let g=h[p];g.write&&g.write(c[p],this)}catch(g){Pe(this.state,g)}if(d&&this.docView.updateSelection(!0),!f.viewportChanged&&this.measureRequests.length==0){if(this.viewState.editorHeight)if(this.viewState.scrollTarget){this.docView.scrollIntoView(this.viewState.scrollTarget),this.viewState.scrollTarget=null,r=-1;continue}else{let g=(o<0?this.viewState.heightMap.height:this.viewState.lineBlockAt(o).top)-r;if(g>1||g<-1){s=s+g,i.scrollTop=s/this.scaleY,r=-1;continue}}break}}}finally{this.updateState=0,this.measureScheduled=-1}if(t&&!t.empty)for(let l of this.state.facet(A2))l(t)}get themeClasses(){return z2+" "+(this.state.facet(V2)?pa:da)+" "+this.state.facet(fi)}updateAttrs(){let e=Eo(this,Ql,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),t={spellcheck:"false",autocorrect:"off",autocapitalize:"off",writingsuggestions:"false",translate:"no",contenteditable:this.state.facet(ht)?"true":"false",class:"cm-content",style:`${V.tabSize}: ${this.state.tabSize}`,role:"textbox","aria-multiline":"true"};this.state.readOnly&&(t["aria-readonly"]="true"),Eo(this,hs,t);let i=this.observer.ignore(()=>{let s=_2(this.contentDOM,this.contentAttrs,t),o=_2(this.dom,this.editorAttrs,e);return s||o});return this.editorAttrs=e,this.contentAttrs=t,i}showAnnouncements(e){let t=!0;for(let i of e)for(let s of i.effects)if(s.is(z.announce)){t&&(this.announceDOM.textContent=""),t=!1;let o=this.announceDOM.appendChild(document.createElement("div"));o.textContent=s.value}}mountStyles(){this.styleModules=this.state.facet(k0);let e=this.state.facet(z.cspNonce);Ct.mount(this.root,this.styleModules.concat(C6).reverse(),e?{nonce:e}:void 0)}readMeasured(){if(this.updateState==2)throw new Error("Reading the editor layout isn't allowed during an update");this.updateState==0&&this.measureScheduled>-1&&this.measure(!1)}requestMeasure(e){if(this.measureScheduled<0&&(this.measureScheduled=this.win.requestAnimationFrame(()=>this.measure())),e){if(this.measureRequests.indexOf(e)>-1)return;if(e.key!=null){for(let t=0;t<this.measureRequests.length;t++)if(this.measureRequests[t].key===e.key){this.measureRequests[t]=e;return}}this.measureRequests.push(e)}}plugin(e){let t=this.pluginMap.get(e);return(t===void 0||t&&t.plugin!=e)&&this.pluginMap.set(e,t=this.plugins.find(i=>i.plugin==e)||null),t&&t.update(this).value}get documentTop(){return this.contentDOM.getBoundingClientRect().top+this.viewState.paddingTop}get documentPadding(){return{top:this.viewState.paddingTop,bottom:this.viewState.paddingBottom}}get scaleX(){return this.viewState.scaleX}get scaleY(){return this.viewState.scaleY}elementAtHeight(e){return this.readMeasured(),this.viewState.elementAtHeight(e)}lineBlockAtHeight(e){return this.readMeasured(),this.viewState.lineBlockAtHeight(e)}get viewportLineBlocks(){return this.viewState.viewportLines}lineBlockAt(e){return this.viewState.lineBlockAt(e)}get contentHeight(){return this.viewState.contentHeight}moveByChar(e,t,i){return zn(this,e,po(this,e,t,i))}moveByGroup(e,t){return zn(this,e,po(this,e,t,i=>Hd(this,e.head,i)))}visualLineSide(e,t){let i=this.bidiSpans(e),s=this.textDirectionAt(e.from),o=i[t?i.length-1:0];return O.cursor(o.side(t,s)+e.from,o.forward(!t,s)?1:-1)}moveToLineBoundary(e,t,i=!0){return Id(this,e,t,i)}moveVertically(e,t,i){return zn(this,e,$d(this,e,t,i))}domAtPos(e){return this.docView.domAtPos(e)}posAtDOM(e,t=0){return this.docView.posFromDOM(e,t)}posAtCoords(e,t=!0){return this.readMeasured(),ia(this,e,t)}coordsAtPos(e,t=1){this.readMeasured();let i=this.docView.coordsAt(e,t);if(!i||i.left==i.right)return i;let s=this.state.doc.lineAt(e),o=this.bidiSpans(s),r=o[yt.find(o,e-s.from,-1,t)];return mn(i,r.dir==se.LTR==t>0)}coordsForChar(e){return this.readMeasured(),this.docView.coordsForChar(e)}get defaultCharacterWidth(){return this.viewState.heightOracle.charWidth}get defaultLineHeight(){return this.viewState.heightOracle.lineHeight}get textDirection(){return this.viewState.defaultTextDirection}textDirectionAt(e){return!this.state.facet(Ul)||e<this.viewport.from||e>this.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(e))}get lineWrapping(){return this.viewState.heightOracle.lineWrapping}bidiSpans(e){if(e.length>T6)return Il(e.length);let t=this.textDirectionAt(e.from),i;for(let o of this.bidiCache)if(o.from==e.from&&o.dir==t&&(o.fresh||Rl(o.isolates,i=lo(this,e))))return o.order;i||(i=lo(this,e));let s=Sd(e.text,t,i);return this.bidiCache.push(new ji(e.from,e.to,t,i,!0,s)),s}get hasFocus(){var e;return(this.dom.ownerDocument.hasFocus()||V.safari&&((e=this.inputState)===null||e===void 0?void 0:e.lastContextMenu)>Date.now()-3e4)&&this.root.activeElement==this.contentDOM}focus(){this.observer.ignore(()=>{kl(this.contentDOM),this.docView.updateSelection()})}setRoot(e){this._root!=e&&(this._root=e,this.observer.setWindow((e.nodeType==9?e:e.ownerDocument).defaultView||window),this.mountStyles())}destroy(){this.root.activeElement==this.contentDOM&&this.contentDOM.blur();for(let e of this.plugins)e.destroy(this);this.plugins=[],this.inputState.destroy(),this.docView.destroy(),this.dom.remove(),this.observer.destroy(),this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.destroyed=!0}static scrollIntoView(e,t={}){return ri.of(new t0(typeof e=="number"?O.cursor(e):e,t.y,t.x,t.yMargin,t.xMargin))}scrollSnapshot(){let{scrollTop:e,scrollLeft:t}=this.scrollDOM,i=this.viewState.scrollAnchorAt(e);return ri.of(new t0(O.cursor(i.from),"start","start",i.top-e,t,!0))}setTabFocusMode(e){e==null?this.inputState.tabFocusMode=this.inputState.tabFocusMode<0?0:-1:typeof e=="boolean"?this.inputState.tabFocusMode=e?0:-1:this.inputState.tabFocusMode!=0&&(this.inputState.tabFocusMode=Date.now()+e)}static domEventHandlers(e){return he.define(()=>({}),{eventHandlers:e})}static domEventObservers(e){return he.define(()=>({}),{eventObservers:e})}static theme(e,t){let i=Ct.newName(),s=[fi.of(i),k0.of(L2(`.${i}`,e))];return t&&t.dark&&s.push(V2.of(!0)),s}static baseTheme(e){return jt.lowest(k0.of(L2("."+z2,e,ga)))}static findFromDOM(e){var t;let i=e.querySelector(".cm-content"),s=i&&ee.get(i)||ee.get(e);return((t=s==null?void 0:s.rootView)===null||t===void 0?void 0:t.view)||null}}z.styleModule=k0;z.inputHandler=jl;z.clipboardInputFilter=as;z.clipboardOutputFilter=cs;z.scrollHandler=Kl;z.focusChangeEffect=ql;z.perLineTextDirection=Ul;z.exceptionSink=Gl;z.updateListener=A2;z.editable=ht;z.mouseSelectionStyle=Fl;z.dragMovesSelection=Wl;z.clickAddsSelectionRange=$l;z.decorations=I0;z.outerDecorations=Jl;z.atomicRanges=us;z.bidiIsolatedRanges=Zl;z.scrollMargins=ea;z.darkTheme=V2;z.cspNonce=L.define({combine:n=>n.length?n[0]:""});z.contentAttributes=hs;z.editorAttributes=Ql;z.lineWrapping=z.contentAttributes.of({class:"cm-lineWrapping"});z.announce=G.define();const T6=4096,Po={};class ji{constructor(e,t,i,s,o,r){this.from=e,this.to=t,this.dir=i,this.isolates=s,this.fresh=o,this.order=r}static update(e,t){if(t.empty&&!e.some(o=>o.fresh))return e;let i=[],s=e.length?e[e.length-1].dir:se.LTR;for(let o=Math.max(0,e.length-10);o<e.length;o++){let r=e[o];r.dir==s&&!t.touchesRange(r.from,r.to)&&i.push(new ji(t.mapPos(r.from,1),t.mapPos(r.to,-1),r.dir,r.isolates,!1,r.order))}return i}}function Eo(n,e,t){for(let i=n.state.facet(e),s=i.length-1;s>=0;s--){let o=i[s],r=typeof o=="function"?o(n):o;r&&C2(r,t)}return t}const A6=V.mac?"mac":V.windows?"win":V.linux?"linux":"key";function B6(n,e){const t=n.split(/-(?!$)/);let i=t[t.length-1];i=="Space"&&(i=" ");let s,o,r,l;for(let a=0;a<t.length-1;++a){const h=t[a];if(/^(cmd|meta|m)$/i.test(h))l=!0;else if(/^a(lt)?$/i.test(h))s=!0;else if(/^(c|ctrl|control)$/i.test(h))o=!0;else if(/^s(hift)?$/i.test(h))r=!0;else if(/^mod$/i.test(h))e=="mac"?l=!0:o=!0;else throw new Error("Unrecognized modifier name: "+h)}return s&&(i="Alt-"+i),o&&(i="Ctrl-"+i),l&&(i="Meta-"+i),r&&(i="Shift-"+i),i}function di(n,e,t){return e.altKey&&(n="Alt-"+n),e.ctrlKey&&(n="Ctrl-"+n),e.metaKey&&(n="Meta-"+n),t!==!1&&e.shiftKey&&(n="Shift-"+n),n}const P6=jt.default(z.domEventHandlers({keydown(n,e){return va(ma(e.state),n,e,"editor")}})),ms=L.define({enables:P6}),Vo=new WeakMap;function ma(n){let e=n.facet(ms),t=Vo.get(e);return t||Vo.set(e,t=z6(e.reduce((i,s)=>i.concat(s),[]))),t}function E6(n,e,t){return va(ma(n.state),e,n,t)}let wt=null;const V6=4e3;function z6(n,e=A6){let t=Object.create(null),i=Object.create(null),s=(r,l)=>{let a=i[r];if(a==null)i[r]=l;else if(a!=l)throw new Error("Key binding "+r+" is used both as a regular binding and as a multi-stroke prefix")},o=(r,l,a,h,c)=>{var f,d;let p=t[r]||(t[r]=Object.create(null)),g=l.split(/ (?!$)/).map(w=>B6(w,e));for(let w=1;w<g.length;w++){let b=g.slice(0,w).join(" ");s(b,!0),p[b]||(p[b]={preventDefault:!0,stopPropagation:!1,run:[S=>{let _=wt={view:S,prefix:b,scope:r};return setTimeout(()=>{wt==_&&(wt=null)},V6),!0}]})}let m=g.join(" ");s(m,!1);let v=p[m]||(p[m]={preventDefault:!1,stopPropagation:!1,run:((d=(f=p._any)===null||f===void 0?void 0:f.run)===null||d===void 0?void 0:d.slice())||[]});a&&v.run.push(a),h&&(v.preventDefault=!0),c&&(v.stopPropagation=!0)};for(let r of n){let l=r.scope?r.scope.split(" "):["editor"];if(r.any)for(let h of l){let c=t[h]||(t[h]=Object.create(null));c._any||(c._any={preventDefault:!1,stopPropagation:!1,run:[]});let{any:f}=r;for(let d in c)c[d].run.push(p=>f(p,N2))}let a=r[e]||r.key;if(a)for(let h of l)o(h,a,r.run,r.preventDefault,r.stopPropagation),r.shift&&o(h,"Shift-"+a,r.shift,r.preventDefault,r.stopPropagation)}return t}let N2=null;function va(n,e,t,i){N2=e;let s=nd(e),o=Te(s,0),r=tt(o)==s.length&&s!=" ",l="",a=!1,h=!1,c=!1;wt&&wt.view==t&&wt.scope==i&&(l=wt.prefix+" ",oa.indexOf(e.keyCode)<0&&(h=!0,wt=null));let f=new Set,d=v=>{if(v){for(let w of v.run)if(!f.has(w)&&(f.add(w),w(t)))return v.stopPropagation&&(c=!0),!0;v.preventDefault&&(v.stopPropagation&&(c=!0),h=!0)}return!1},p=n[i],g,m;return p&&(d(p[l+di(s,e,!r)])?a=!0:r&&(e.altKey||e.metaKey||e.ctrlKey)&&!(V.windows&&e.ctrlKey&&e.altKey)&&!(V.mac&&e.altKey&&!e.ctrlKey)&&(g=_t[e.keyCode])&&g!=s?(d(p[l+di(g,e,!0)])||e.shiftKey&&(m=L0[e.keyCode])!=s&&m!=g&&d(p[l+di(m,e,!1)]))&&(a=!0):r&&e.shiftKey&&d(p[l+di(s,e,!0)])&&(a=!0),!a&&d(p._any)&&(a=!0)),h&&(a=!0),a&&c&&e.stopPropagation(),N2=null,a}class J0{constructor(e,t,i,s,o){this.className=e,this.left=t,this.top=i,this.width=s,this.height=o}draw(){let e=document.createElement("div");return e.className=this.className,this.adjust(e),e}update(e,t){return t.className!=this.className?!1:(this.adjust(e),!0)}adjust(e){e.style.left=this.left+"px",e.style.top=this.top+"px",this.width!=null&&(e.style.width=this.width+"px"),e.style.height=this.height+"px"}eq(e){return this.left==e.left&&this.top==e.top&&this.width==e.width&&this.height==e.height&&this.className==e.className}static forRange(e,t,i){if(i.empty){let s=e.coordsAtPos(i.head,i.assoc||1);if(!s)return[];let o=wa(e);return[new J0(t,s.left-o.left,s.top-o.top,null,s.bottom-s.top)]}else return L6(e,t,i)}}function wa(n){let e=n.scrollDOM.getBoundingClientRect();return{left:(n.textDirection==se.LTR?e.left:e.right-n.scrollDOM.clientWidth*n.scaleX)-n.scrollDOM.scrollLeft*n.scaleX,top:e.top-n.scrollDOM.scrollTop*n.scaleY}}function zo(n,e,t,i){let s=n.coordsAtPos(e,t*2);if(!s)return i;let o=n.dom.getBoundingClientRect(),r=(s.top+s.bottom)/2,l=n.posAtCoords({x:o.left+1,y:r}),a=n.posAtCoords({x:o.right-1,y:r});return l==null||a==null?i:{from:Math.max(i.from,Math.min(l,a)),to:Math.min(i.to,Math.max(l,a))}}function L6(n,e,t){if(t.to<=n.viewport.from||t.from>=n.viewport.to)return[];let i=Math.max(t.from,n.viewport.from),s=Math.min(t.to,n.viewport.to),o=n.textDirection==se.LTR,r=n.contentDOM,l=r.getBoundingClientRect(),a=wa(n),h=r.querySelector(".cm-line"),c=h&&window.getComputedStyle(h),f=l.left+(c?parseInt(c.paddingLeft)+Math.min(0,parseInt(c.textIndent)):0),d=l.right-(c?parseInt(c.paddingRight):0),p=P2(n,i,1),g=P2(n,s,-1),m=p.type==_e.Text?p:null,v=g.type==_e.Text?g:null;if(m&&(n.lineWrapping||p.widgetLineBreaks)&&(m=zo(n,i,1,m)),v&&(n.lineWrapping||g.widgetLineBreaks)&&(v=zo(n,s,-1,v)),m&&v&&m.from==v.from&&m.to==v.to)return b(S(t.from,t.to,m));{let y=m?S(t.from,null,m):_(p,!1),C=v?S(null,t.to,v):_(g,!0),k=[];return(m||p).to<(v||g).from-(m&&v?1:0)||p.widgetLineBreaks>1&&y.bottom+n.defaultLineHeight/2<C.top?k.push(w(f,y.bottom,d,C.top)):y.bottom<C.top&&n.elementAtHeight((y.bottom+C.top)/2).type==_e.Text&&(y.bottom=C.top=(y.bottom+C.top)/2),b(y).concat(k).concat(b(C))}function w(y,C,k,T){return new J0(e,y-a.left,C-a.top,k-y,T-C)}function b({top:y,bottom:C,horizontal:k}){let T=[];for(let P=0;P<k.length;P+=2)T.push(w(k[P],y,k[P+1],C));return T}function S(y,C,k){let T=1e9,P=-1e9,x=[];function H(B,E,$,F,R){let Q=n.coordsAtPos(B,B==k.to?-2:2),X=n.coordsAtPos($,$==k.from?2:-2);!Q||!X||(T=Math.min(Q.top,X.top,T),P=Math.max(Q.bottom,X.bottom,P),R==se.LTR?x.push(o&&E?f:Q.left,o&&F?d:X.right):x.push(!o&&F?f:X.left,!o&&E?d:Q.right))}let N=y??k.from,M=C??k.to;for(let B of n.visibleRanges)if(B.to>N&&B.from<M)for(let E=Math.max(B.from,N),$=Math.min(B.to,M);;){let F=n.state.doc.lineAt(E);for(let R of n.bidiSpans(F)){let Q=R.from+F.from,X=R.to+F.from;if(Q>=$)break;X>E&&H(Math.max(Q,E),y==null&&Q<=N,Math.min(X,$),C==null&&X>=M,R.dir)}if(E=F.to+1,E>=$)break}return x.length==0&&H(N,y==null,M,C==null,n.textDirection),{top:T,bottom:P,horizontal:x}}function _(y,C){let k=l.top+(C?y.top:y.bottom);return{top:k,bottom:k,horizontal:[]}}}function N6(n,e){return n.constructor==e.constructor&&n.eq(e)}class R6{constructor(e,t){this.view=e,this.layer=t,this.drawn=[],this.scaleX=1,this.scaleY=1,this.measureReq={read:this.measure.bind(this),write:this.draw.bind(this)},this.dom=e.scrollDOM.appendChild(document.createElement("div")),this.dom.classList.add("cm-layer"),t.above&&this.dom.classList.add("cm-layer-above"),t.class&&this.dom.classList.add(t.class),this.scale(),this.dom.setAttribute("aria-hidden","true"),this.setOrder(e.state),e.requestMeasure(this.measureReq),t.mount&&t.mount(this.dom,e)}update(e){e.startState.facet(Pi)!=e.state.facet(Pi)&&this.setOrder(e.state),(this.layer.update(e,this.dom)||e.geometryChanged)&&(this.scale(),e.view.requestMeasure(this.measureReq))}docViewUpdate(e){this.layer.updateOnDocViewUpdate!==!1&&e.requestMeasure(this.measureReq)}setOrder(e){let t=0,i=e.facet(Pi);for(;t<i.length&&i[t]!=this.layer;)t++;this.dom.style.zIndex=String((this.layer.above?150:-1)-t)}measure(){return this.layer.markers(this.view)}scale(){let{scaleX:e,scaleY:t}=this.view;(e!=this.scaleX||t!=this.scaleY)&&(this.scaleX=e,this.scaleY=t,this.dom.style.transform=`scale(${1/e}, ${1/t})`)}draw(e){if(e.length!=this.drawn.length||e.some((t,i)=>!N6(t,this.drawn[i]))){let t=this.dom.firstChild,i=0;for(let s of e)s.update&&t&&s.constructor&&this.drawn[i].constructor&&s.update(t,this.drawn[i])?(t=t.nextSibling,i++):this.dom.insertBefore(s.draw(),t);for(;t;){let s=t.nextSibling;t.remove(),t=s}this.drawn=e}}destroy(){this.layer.destroy&&this.layer.destroy(this.dom,this.view),this.dom.remove()}}const Pi=L.define();function xa(n){return[he.define(e=>new R6(e,n)),Pi.of(n)]}const H0=L.define({combine(n){return lt(n,{cursorBlinkRate:1200,drawRangeCursor:!0},{cursorBlinkRate:(e,t)=>Math.min(e,t),drawRangeCursor:(e,t)=>e||t})}});function I6(n={}){return[H0.of(n),H6,$6,W6,Yl.of(!0)]}function ba(n){return n.startState.facet(H0)!=n.state.facet(H0)}const H6=xa({above:!0,markers(n){let{state:e}=n,t=e.facet(H0),i=[];for(let s of e.selection.ranges){let o=s==e.selection.main;if(s.empty||t.drawRangeCursor){let r=o?"cm-cursor cm-cursor-primary":"cm-cursor cm-cursor-secondary",l=s.empty?s:O.cursor(s.head,s.head>s.anchor?-1:1);for(let a of J0.forRange(n,r,l))i.push(a)}}return i},update(n,e){n.transactions.some(i=>i.selection)&&(e.style.animationName=e.style.animationName=="cm-blink"?"cm-blink2":"cm-blink");let t=ba(n);return t&&Lo(n.state,e),n.docChanged||n.selectionSet||t},mount(n,e){Lo(e.state,n)},class:"cm-cursorLayer"});function Lo(n,e){e.style.animationDuration=n.facet(H0).cursorBlinkRate+"ms"}const $6=xa({above:!1,markers(n){return n.state.selection.ranges.map(e=>e.empty?[]:J0.forRange(n,"cm-selectionBackground",e)).reduce((e,t)=>e.concat(t))},update(n,e){return n.docChanged||n.selectionSet||n.viewportChanged||ba(n)},class:"cm-selectionLayer"}),W6=jt.highest(z.theme({".cm-line":{"& ::selection, &::selection":{backgroundColor:"transparent !important"},caretColor:"transparent !important"},".cm-content":{caretColor:"transparent !important","& :focus":{caretColor:"initial !important","&::selection, & ::selection":{backgroundColor:"Highlight !important"}}}})),ya=G.define({map(n,e){return n==null?null:e.mapPos(n)}}),_0=be.define({create(){return null},update(n,e){return n!=null&&(n=e.changes.mapPos(n)),e.effects.reduce((t,i)=>i.is(ya)?i.value:t,n)}}),F6=he.fromClass(class{constructor(n){this.view=n,this.cursor=null,this.measureReq={read:this.readPos.bind(this),write:this.drawCursor.bind(this)}}update(n){var e;let t=n.state.field(_0);t==null?this.cursor!=null&&((e=this.cursor)===null||e===void 0||e.remove(),this.cursor=null):(this.cursor||(this.cursor=this.view.scrollDOM.appendChild(document.createElement("div")),this.cursor.className="cm-dropCursor"),(n.startState.field(_0)!=t||n.docChanged||n.geometryChanged)&&this.view.requestMeasure(this.measureReq))}readPos(){let{view:n}=this,e=n.state.field(_0),t=e!=null&&n.coordsAtPos(e);if(!t)return null;let i=n.scrollDOM.getBoundingClientRect();return{left:t.left-i.left+n.scrollDOM.scrollLeft*n.scaleX,top:t.top-i.top+n.scrollDOM.scrollTop*n.scaleY,height:t.bottom-t.top}}drawCursor(n){if(this.cursor){let{scaleX:e,scaleY:t}=this.view;n?(this.cursor.style.left=n.left/e+"px",this.cursor.style.top=n.top/t+"px",this.cursor.style.height=n.height/t+"px"):this.cursor.style.left="-100000px"}}destroy(){this.cursor&&this.cursor.remove()}setDropPos(n){this.view.state.field(_0)!=n&&this.view.dispatch({effects:ya.of(n)})}},{eventObservers:{dragover(n){this.setDropPos(this.view.posAtCoords({x:n.clientX,y:n.clientY}))},dragleave(n){(n.target==this.view.contentDOM||!this.view.contentDOM.contains(n.relatedTarget))&&this.setDropPos(null)},dragend(){this.setDropPos(null)},drop(){this.setDropPos(null)}}});function G6(){return[_0,F6]}function No(n,e,t,i,s){e.lastIndex=0;for(let o=n.iterRange(t,i),r=t,l;!o.next().done;r+=o.value.length)if(!o.lineBreak)for(;l=e.exec(o.value);)s(r+l.index,l)}function j6(n,e){let t=n.visibleRanges;if(t.length==1&&t[0].from==n.viewport.from&&t[0].to==n.viewport.to)return t;let i=[];for(let{from:s,to:o}of t)s=Math.max(n.state.doc.lineAt(s).from,s-e),o=Math.min(n.state.doc.lineAt(o).to,o+e),i.length&&i[i.length-1].to>=s?i[i.length-1].to=o:i.push({from:s,to:o});return i}class q6{constructor(e){const{regexp:t,decoration:i,decorate:s,boundary:o,maxLength:r=1e3}=e;if(!t.global)throw new RangeError("The regular expression given to MatchDecorator should have its 'g' flag set");if(this.regexp=t,s)this.addMatch=(l,a,h,c)=>s(c,h,h+l[0].length,l,a);else if(typeof i=="function")this.addMatch=(l,a,h,c)=>{let f=i(l,a,h);f&&c(h,h+l[0].length,f)};else if(i)this.addMatch=(l,a,h,c)=>c(h,h+l[0].length,i);else throw new RangeError("Either 'decorate' or 'decoration' should be provided to MatchDecorator");this.boundary=o,this.maxLength=r}createDeco(e){let t=new ft,i=t.add.bind(t);for(let{from:s,to:o}of j6(e,this.maxLength))No(e.state.doc,this.regexp,s,o,(r,l)=>this.addMatch(l,e,r,i));return t.finish()}updateDeco(e,t){let i=1e9,s=-1;return e.docChanged&&e.changes.iterChanges((o,r,l,a)=>{a>=e.view.viewport.from&&l<=e.view.viewport.to&&(i=Math.min(l,i),s=Math.max(a,s))}),e.viewportMoved||s-i>1e3?this.createDeco(e.view):s>-1?this.updateRange(e.view,t.map(e.changes),i,s):t}updateRange(e,t,i,s){for(let o of e.visibleRanges){let r=Math.max(o.from,i),l=Math.min(o.to,s);if(l>=r){let a=e.state.doc.lineAt(r),h=a.to<l?e.state.doc.lineAt(l):a,c=Math.max(o.from,a.from),f=Math.min(o.to,h.to);if(this.boundary){for(;r>a.from;r--)if(this.boundary.test(a.text[r-1-a.from])){c=r;break}for(;l<h.to;l++)if(this.boundary.test(h.text[l-h.from])){f=l;break}}let d=[],p,g=(m,v,w)=>d.push(w.range(m,v));if(a==h)for(this.regexp.lastIndex=c-a.from;(p=this.regexp.exec(a.text))&&p.index<f-a.from;)this.addMatch(p,e,p.index+a.from,g);else No(e.state.doc,this.regexp,c,f,(m,v)=>this.addMatch(v,e,m,g));t=t.update({filterFrom:c,filterTo:f,filter:(m,v)=>m<c||v>f,add:d})}}return t}}const R2=/x/.unicode!=null?"gu":"g",U6=new RegExp(`[\0-\b
|
|
11
|
-
--\u2028\u2029\uFEFF-]`,R2),Y6={0:"null",7:"bell",8:"backspace",10:"newline",11:"vertical tab",13:"carriage return",27:"escape",8203:"zero width space",8204:"zero width non-joiner",8205:"zero width joiner",8206:"left-to-right mark",8207:"right-to-left mark",8232:"line separator",8237:"left-to-right override",8238:"right-to-left override",8294:"left-to-right isolate",8295:"right-to-left isolate",8297:"pop directional isolate",8233:"paragraph separator",65279:"zero width no-break space",65532:"object replacement"};let Rn=null;function K6(){var n;if(Rn==null&&typeof document<"u"&&document.body){let e=document.body.style;Rn=((n=e.tabSize)!==null&&n!==void 0?n:e.MozTabSize)!=null}return Rn||!1}const Ei=L.define({combine(n){let e=lt(n,{render:null,specialChars:U6,addSpecialChars:null});return(e.replaceTabs=!K6())&&(e.specialChars=new RegExp(" |"+e.specialChars.source,R2)),e.addSpecialChars&&(e.specialChars=new RegExp(e.specialChars.source+"|"+e.addSpecialChars.source,R2)),e}});function X6(n={}){return[Ei.of(n),Q6()]}let Ro=null;function Q6(){return Ro||(Ro=he.fromClass(class{constructor(n){this.view=n,this.decorations=W.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(n.state.facet(Ei)),this.decorations=this.decorator.createDeco(n)}makeDecorator(n){return new q6({regexp:n.specialChars,decoration:(e,t,i)=>{let{doc:s}=t.state,o=Te(e[0],0);if(o==9){let r=s.lineAt(i),l=t.state.tabSize,a=f0(r.text,l,i-r.from);return W.replace({widget:new t4((l-a%l)*this.view.defaultCharacterWidth/this.view.scaleX)})}return this.decorationCache[o]||(this.decorationCache[o]=W.replace({widget:new e4(n,o)}))},boundary:n.replaceTabs?void 0:/[^]/})}update(n){let e=n.state.facet(Ei);n.startState.facet(Ei)!=e?(this.decorator=this.makeDecorator(e),this.decorations=this.decorator.createDeco(n.view)):this.decorations=this.decorator.updateDeco(n,this.decorations)}},{decorations:n=>n.decorations}))}const J6="•";function Z6(n){return n>=32?J6:n==10?"":String.fromCharCode(9216+n)}class e4 extends Tt{constructor(e,t){super(),this.options=e,this.code=t}eq(e){return e.code==this.code}toDOM(e){let t=Z6(this.code),i=e.state.phrase("Control character")+" "+(Y6[this.code]||"0x"+this.code.toString(16)),s=this.options.render&&this.options.render(this.code,i,t);if(s)return s;let o=document.createElement("span");return o.textContent=t,o.title=i,o.setAttribute("aria-label",i),o.className="cm-specialChar",o}ignoreEvent(){return!1}}class t4 extends Tt{constructor(e){super(),this.width=e}eq(e){return e.width==this.width}toDOM(){let e=document.createElement("span");return e.textContent=" ",e.className="cm-tab",e.style.width=this.width+"px",e}ignoreEvent(){return!1}}function i4(){return s4}const n4=W.line({class:"cm-activeLine"}),s4=he.fromClass(class{constructor(n){this.decorations=this.getDeco(n)}update(n){(n.docChanged||n.selectionSet)&&(this.decorations=this.getDeco(n.view))}getDeco(n){let e=-1,t=[];for(let i of n.state.selection.ranges){let s=n.lineBlockAt(i.head);s.from>e&&(t.push(n4.range(s.from)),e=s.from)}return W.set(t)}},{decorations:n=>n.decorations}),I2=2e3;function o4(n,e,t){let i=Math.min(e.line,t.line),s=Math.max(e.line,t.line),o=[];if(e.off>I2||t.off>I2||e.col<0||t.col<0){let r=Math.min(e.off,t.off),l=Math.max(e.off,t.off);for(let a=i;a<=s;a++){let h=n.doc.line(a);h.length<=l&&o.push(O.range(h.from+r,h.to+l))}}else{let r=Math.min(e.col,t.col),l=Math.max(e.col,t.col);for(let a=i;a<=s;a++){let h=n.doc.line(a),c=v2(h.text,r,n.tabSize,!0);if(c<0)o.push(O.cursor(h.to));else{let f=v2(h.text,l,n.tabSize);o.push(O.range(h.from+c,h.from+f))}}}return o}function r4(n,e){let t=n.coordsAtPos(n.viewport.from);return t?Math.round(Math.abs((t.left-e)/n.defaultCharacterWidth)):-1}function Io(n,e){let t=n.posAtCoords({x:e.clientX,y:e.clientY},!1),i=n.state.doc.lineAt(t),s=t-i.from,o=s>I2?-1:s==i.length?r4(n,e.clientX):f0(i.text,n.state.tabSize,t-i.from);return{line:i.number,col:o,off:s}}function l4(n,e){let t=Io(n,e),i=n.state.selection;return t?{update(s){if(s.docChanged){let o=s.changes.mapPos(s.startState.doc.line(t.line).from),r=s.state.doc.lineAt(o);t={line:r.number,col:t.col,off:Math.min(t.off,r.length)},i=i.map(s.changes)}},get(s,o,r){let l=Io(n,s);if(!l)return i;let a=o4(n.state,t,l);return a.length?r?O.create(a.concat(i.ranges)):O.create(a):i}}:null}function a4(n){let e=t=>t.altKey&&t.button==0;return z.mouseSelectionStyle.of((t,i)=>e(i)?l4(t,i):null)}const c4={Alt:[18,n=>!!n.altKey],Control:[17,n=>!!n.ctrlKey],Shift:[16,n=>!!n.shiftKey],Meta:[91,n=>!!n.metaKey]},h4={style:"cursor: crosshair"};function u4(n={}){let[e,t]=c4[n.key||"Alt"],i=he.fromClass(class{constructor(s){this.view=s,this.isDown=!1}set(s){this.isDown!=s&&(this.isDown=s,this.view.update([]))}},{eventObservers:{keydown(s){this.set(s.keyCode==e||t(s))},keyup(s){(s.keyCode==e||!t(s))&&this.set(!1)},mousemove(s){this.set(t(s))}}});return[i,z.contentAttributes.of(s=>{var o;return!((o=s.plugin(i))===null||o===void 0)&&o.isDown?h4:null})]}const w0="-10000px";class ka{constructor(e,t,i,s){this.facet=t,this.createTooltipView=i,this.removeTooltipView=s,this.input=e.state.facet(t),this.tooltips=this.input.filter(r=>r);let o=null;this.tooltipViews=this.tooltips.map(r=>o=i(r,o))}update(e,t){var i;let s=e.state.facet(this.facet),o=s.filter(a=>a);if(s===this.input){for(let a of this.tooltipViews)a.update&&a.update(e);return!1}let r=[],l=t?[]:null;for(let a=0;a<o.length;a++){let h=o[a],c=-1;if(h){for(let f=0;f<this.tooltips.length;f++){let d=this.tooltips[f];d&&d.create==h.create&&(c=f)}if(c<0)r[a]=this.createTooltipView(h,a?r[a-1]:null),l&&(l[a]=!!h.above);else{let f=r[a]=this.tooltipViews[c];l&&(l[a]=t[c]),f.update&&f.update(e)}}}for(let a of this.tooltipViews)r.indexOf(a)<0&&(this.removeTooltipView(a),(i=a.destroy)===null||i===void 0||i.call(a));return t&&(l.forEach((a,h)=>t[h]=a),t.length=l.length),this.input=s,this.tooltips=o,this.tooltipViews=r,!0}}function f4(n){let e=n.dom.ownerDocument.documentElement;return{top:0,left:0,bottom:e.clientHeight,right:e.clientWidth}}const In=L.define({combine:n=>{var e,t,i;return{position:V.ios?"absolute":((e=n.find(s=>s.position))===null||e===void 0?void 0:e.position)||"fixed",parent:((t=n.find(s=>s.parent))===null||t===void 0?void 0:t.parent)||null,tooltipSpace:((i=n.find(s=>s.tooltipSpace))===null||i===void 0?void 0:i.tooltipSpace)||f4}}}),Ho=new WeakMap,vs=he.fromClass(class{constructor(n){this.view=n,this.above=[],this.inView=!0,this.madeAbsolute=!1,this.lastTransaction=0,this.measureTimeout=-1;let e=n.state.facet(In);this.position=e.position,this.parent=e.parent,this.classes=n.themeClasses,this.createContainer(),this.measureReq={read:this.readMeasure.bind(this),write:this.writeMeasure.bind(this),key:this},this.resizeObserver=typeof ResizeObserver=="function"?new ResizeObserver(()=>this.measureSoon()):null,this.manager=new ka(n,ws,(t,i)=>this.createTooltip(t,i),t=>{this.resizeObserver&&this.resizeObserver.unobserve(t.dom),t.dom.remove()}),this.above=this.manager.tooltips.map(t=>!!t.above),this.intersectionObserver=typeof IntersectionObserver=="function"?new IntersectionObserver(t=>{Date.now()>this.lastTransaction-50&&t.length>0&&t[t.length-1].intersectionRatio<1&&this.measureSoon()},{threshold:[1]}):null,this.observeIntersection(),n.win.addEventListener("resize",this.measureSoon=this.measureSoon.bind(this)),this.maybeMeasure()}createContainer(){this.parent?(this.container=document.createElement("div"),this.container.style.position="relative",this.container.className=this.view.themeClasses,this.parent.appendChild(this.container)):this.container=this.view.dom}observeIntersection(){if(this.intersectionObserver){this.intersectionObserver.disconnect();for(let n of this.manager.tooltipViews)this.intersectionObserver.observe(n.dom)}}measureSoon(){this.measureTimeout<0&&(this.measureTimeout=setTimeout(()=>{this.measureTimeout=-1,this.maybeMeasure()},50))}update(n){n.transactions.length&&(this.lastTransaction=Date.now());let e=this.manager.update(n,this.above);e&&this.observeIntersection();let t=e||n.geometryChanged,i=n.state.facet(In);if(i.position!=this.position&&!this.madeAbsolute){this.position=i.position;for(let s of this.manager.tooltipViews)s.dom.style.position=this.position;t=!0}if(i.parent!=this.parent){this.parent&&this.container.remove(),this.parent=i.parent,this.createContainer();for(let s of this.manager.tooltipViews)this.container.appendChild(s.dom);t=!0}else this.parent&&this.view.themeClasses!=this.classes&&(this.classes=this.container.className=this.view.themeClasses);t&&this.maybeMeasure()}createTooltip(n,e){let t=n.create(this.view),i=e?e.dom:null;if(t.dom.classList.add("cm-tooltip"),n.arrow&&!t.dom.querySelector(".cm-tooltip > .cm-tooltip-arrow")){let s=document.createElement("div");s.className="cm-tooltip-arrow",t.dom.appendChild(s)}return t.dom.style.position=this.position,t.dom.style.top=w0,t.dom.style.left="0px",this.container.insertBefore(t.dom,i),t.mount&&t.mount(this.view),this.resizeObserver&&this.resizeObserver.observe(t.dom),t}destroy(){var n,e,t;this.view.win.removeEventListener("resize",this.measureSoon);for(let i of this.manager.tooltipViews)i.dom.remove(),(n=i.destroy)===null||n===void 0||n.call(i);this.parent&&this.container.remove(),(e=this.resizeObserver)===null||e===void 0||e.disconnect(),(t=this.intersectionObserver)===null||t===void 0||t.disconnect(),clearTimeout(this.measureTimeout)}readMeasure(){let n=1,e=1,t=!1;if(this.position=="fixed"&&this.manager.tooltipViews.length){let{dom:o}=this.manager.tooltipViews[0];if(V.gecko)t=o.offsetParent!=this.container.ownerDocument.body;else if(o.style.top==w0&&o.style.left=="0px"){let r=o.getBoundingClientRect();t=Math.abs(r.top+1e4)>1||Math.abs(r.left)>1}}if(t||this.position=="absolute")if(this.parent){let o=this.parent.getBoundingClientRect();o.width&&o.height&&(n=o.width/this.parent.offsetWidth,e=o.height/this.parent.offsetHeight)}else({scaleX:n,scaleY:e}=this.view.viewState);let i=this.view.scrollDOM.getBoundingClientRect(),s=fs(this.view);return{visible:{left:i.left+s.left,top:i.top+s.top,right:i.right-s.right,bottom:i.bottom-s.bottom},parent:this.parent?this.container.getBoundingClientRect():this.view.dom.getBoundingClientRect(),pos:this.manager.tooltips.map((o,r)=>{let l=this.manager.tooltipViews[r];return l.getCoords?l.getCoords(o.pos):this.view.coordsAtPos(o.pos)}),size:this.manager.tooltipViews.map(({dom:o})=>o.getBoundingClientRect()),space:this.view.state.facet(In).tooltipSpace(this.view),scaleX:n,scaleY:e,makeAbsolute:t}}writeMeasure(n){var e;if(n.makeAbsolute){this.madeAbsolute=!0,this.position="absolute";for(let l of this.manager.tooltipViews)l.dom.style.position="absolute"}let{visible:t,space:i,scaleX:s,scaleY:o}=n,r=[];for(let l=0;l<this.manager.tooltips.length;l++){let a=this.manager.tooltips[l],h=this.manager.tooltipViews[l],{dom:c}=h,f=n.pos[l],d=n.size[l];if(!f||a.clip!==!1&&(f.bottom<=Math.max(t.top,i.top)||f.top>=Math.min(t.bottom,i.bottom)||f.right<Math.max(t.left,i.left)-.1||f.left>Math.min(t.right,i.right)+.1)){c.style.top=w0;continue}let p=a.arrow?h.dom.querySelector(".cm-tooltip-arrow"):null,g=p?7:0,m=d.right-d.left,v=(e=Ho.get(h))!==null&&e!==void 0?e:d.bottom-d.top,w=h.offset||p4,b=this.view.textDirection==se.LTR,S=d.width>i.right-i.left?b?i.left:i.right-d.width:b?Math.max(i.left,Math.min(f.left-(p?14:0)+w.x,i.right-m)):Math.min(Math.max(i.left,f.left-m+(p?14:0)-w.x),i.right-m),_=this.above[l];!a.strictSide&&(_?f.top-v-g-w.y<i.top:f.bottom+v+g+w.y>i.bottom)&&_==i.bottom-f.bottom>f.top-i.top&&(_=this.above[l]=!_);let y=(_?f.top-i.top:i.bottom-f.bottom)-g;if(y<v&&h.resize!==!1){if(y<this.view.defaultLineHeight){c.style.top=w0;continue}Ho.set(h,v),c.style.height=(v=y)/o+"px"}else c.style.height&&(c.style.height="");let C=_?f.top-v-g-w.y:f.bottom+g+w.y,k=S+m;if(h.overlap!==!0)for(let T of r)T.left<k&&T.right>S&&T.top<C+v&&T.bottom>C&&(C=_?T.top-v-2-g:T.bottom+g+2);if(this.position=="absolute"?(c.style.top=(C-n.parent.top)/o+"px",$o(c,(S-n.parent.left)/s)):(c.style.top=C/o+"px",$o(c,S/s)),p){let T=f.left+(b?w.x:-w.x)-(S+14-7);p.style.left=T/s+"px"}h.overlap!==!0&&r.push({left:S,top:C,right:k,bottom:C+v}),c.classList.toggle("cm-tooltip-above",_),c.classList.toggle("cm-tooltip-below",!_),h.positioned&&h.positioned(n.space)}}maybeMeasure(){if(this.manager.tooltips.length&&(this.view.inView&&this.view.requestMeasure(this.measureReq),this.inView!=this.view.inView&&(this.inView=this.view.inView,!this.inView)))for(let n of this.manager.tooltipViews)n.dom.style.top=w0}},{eventObservers:{scroll(){this.maybeMeasure()}}});function $o(n,e){let t=parseInt(n.style.left,10);(isNaN(t)||Math.abs(e-t)>1)&&(n.style.left=e+"px")}const d4=z.baseTheme({".cm-tooltip":{zIndex:500,boxSizing:"border-box"},"&light .cm-tooltip":{border:"1px solid #bbb",backgroundColor:"#f5f5f5"},"&light .cm-tooltip-section:not(:first-child)":{borderTop:"1px solid #bbb"},"&dark .cm-tooltip":{backgroundColor:"#333338",color:"white"},".cm-tooltip-arrow":{height:"7px",width:`${7*2}px`,position:"absolute",zIndex:-1,overflow:"hidden","&:before, &:after":{content:"''",position:"absolute",width:0,height:0,borderLeft:"7px solid transparent",borderRight:"7px solid transparent"},".cm-tooltip-above &":{bottom:"-7px","&:before":{borderTop:"7px solid #bbb"},"&:after":{borderTop:"7px solid #f5f5f5",bottom:"1px"}},".cm-tooltip-below &":{top:"-7px","&:before":{borderBottom:"7px solid #bbb"},"&:after":{borderBottom:"7px solid #f5f5f5",top:"1px"}}},"&dark .cm-tooltip .cm-tooltip-arrow":{"&:before":{borderTopColor:"#333338",borderBottomColor:"#333338"},"&:after":{borderTopColor:"transparent",borderBottomColor:"transparent"}}}),p4={x:0,y:0},ws=L.define({enables:[vs,d4]}),qi=L.define({combine:n=>n.reduce((e,t)=>e.concat(t),[])});class xn{static create(e){return new xn(e)}constructor(e){this.view=e,this.mounted=!1,this.dom=document.createElement("div"),this.dom.classList.add("cm-tooltip-hover"),this.manager=new ka(e,qi,(t,i)=>this.createHostedView(t,i),t=>t.dom.remove())}createHostedView(e,t){let i=e.create(this.view);return i.dom.classList.add("cm-tooltip-section"),this.dom.insertBefore(i.dom,t?t.dom.nextSibling:this.dom.firstChild),this.mounted&&i.mount&&i.mount(this.view),i}mount(e){for(let t of this.manager.tooltipViews)t.mount&&t.mount(e);this.mounted=!0}positioned(e){for(let t of this.manager.tooltipViews)t.positioned&&t.positioned(e)}update(e){this.manager.update(e)}destroy(){var e;for(let t of this.manager.tooltipViews)(e=t.destroy)===null||e===void 0||e.call(t)}passProp(e){let t;for(let i of this.manager.tooltipViews){let s=i[e];if(s!==void 0){if(t===void 0)t=s;else if(t!==s)return}}return t}get offset(){return this.passProp("offset")}get getCoords(){return this.passProp("getCoords")}get overlap(){return this.passProp("overlap")}get resize(){return this.passProp("resize")}}const g4=ws.compute([qi],n=>{let e=n.facet(qi);return e.length===0?null:{pos:Math.min(...e.map(t=>t.pos)),end:Math.max(...e.map(t=>{var i;return(i=t.end)!==null&&i!==void 0?i:t.pos})),create:xn.create,above:e[0].above,arrow:e.some(t=>t.arrow)}});class m4{constructor(e,t,i,s,o){this.view=e,this.source=t,this.field=i,this.setHover=s,this.hoverTime=o,this.hoverTimeout=-1,this.restartTimeout=-1,this.pending=null,this.lastMove={x:0,y:0,target:e.dom,time:0},this.checkHover=this.checkHover.bind(this),e.dom.addEventListener("mouseleave",this.mouseleave=this.mouseleave.bind(this)),e.dom.addEventListener("mousemove",this.mousemove=this.mousemove.bind(this))}update(){this.pending&&(this.pending=null,clearTimeout(this.restartTimeout),this.restartTimeout=setTimeout(()=>this.startHover(),20))}get active(){return this.view.state.field(this.field)}checkHover(){if(this.hoverTimeout=-1,this.active.length)return;let e=Date.now()-this.lastMove.time;e<this.hoverTime?this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime-e):this.startHover()}startHover(){clearTimeout(this.restartTimeout);let{view:e,lastMove:t}=this,i=e.docView.nearest(t.target);if(!i)return;let s,o=1;if(i instanceof bt)s=i.posAtStart;else{if(s=e.posAtCoords(t),s==null)return;let l=e.coordsAtPos(s);if(!l||t.y<l.top||t.y>l.bottom||t.x<l.left-e.defaultCharacterWidth||t.x>l.right+e.defaultCharacterWidth)return;let a=e.bidiSpans(e.state.doc.lineAt(s)).find(c=>c.from<=s&&c.to>=s),h=a&&a.dir==se.RTL?-1:1;o=t.x<l.left?-h:h}let r=this.source(e,s,o);if(r!=null&&r.then){let l=this.pending={pos:s};r.then(a=>{this.pending==l&&(this.pending=null,a&&!(Array.isArray(a)&&!a.length)&&e.dispatch({effects:this.setHover.of(Array.isArray(a)?a:[a])}))},a=>Pe(e.state,a,"hover tooltip"))}else r&&!(Array.isArray(r)&&!r.length)&&e.dispatch({effects:this.setHover.of(Array.isArray(r)?r:[r])})}get tooltip(){let e=this.view.plugin(vs),t=e?e.manager.tooltips.findIndex(i=>i.create==xn.create):-1;return t>-1?e.manager.tooltipViews[t]:null}mousemove(e){var t,i;this.lastMove={x:e.clientX,y:e.clientY,target:e.target,time:Date.now()},this.hoverTimeout<0&&(this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime));let{active:s,tooltip:o}=this;if(s.length&&o&&!v4(o.dom,e)||this.pending){let{pos:r}=s[0]||this.pending,l=(i=(t=s[0])===null||t===void 0?void 0:t.end)!==null&&i!==void 0?i:r;(r==l?this.view.posAtCoords(this.lastMove)!=r:!w4(this.view,r,l,e.clientX,e.clientY))&&(this.view.dispatch({effects:this.setHover.of([])}),this.pending=null)}}mouseleave(e){clearTimeout(this.hoverTimeout),this.hoverTimeout=-1;let{active:t}=this;if(t.length){let{tooltip:i}=this;i&&i.dom.contains(e.relatedTarget)?this.watchTooltipLeave(i.dom):this.view.dispatch({effects:this.setHover.of([])})}}watchTooltipLeave(e){let t=i=>{e.removeEventListener("mouseleave",t),this.active.length&&!this.view.dom.contains(i.relatedTarget)&&this.view.dispatch({effects:this.setHover.of([])})};e.addEventListener("mouseleave",t)}destroy(){clearTimeout(this.hoverTimeout),this.view.dom.removeEventListener("mouseleave",this.mouseleave),this.view.dom.removeEventListener("mousemove",this.mousemove)}}const pi=4;function v4(n,e){let{left:t,right:i,top:s,bottom:o}=n.getBoundingClientRect(),r;if(r=n.querySelector(".cm-tooltip-arrow")){let l=r.getBoundingClientRect();s=Math.min(l.top,s),o=Math.max(l.bottom,o)}return e.clientX>=t-pi&&e.clientX<=i+pi&&e.clientY>=s-pi&&e.clientY<=o+pi}function w4(n,e,t,i,s,o){let r=n.scrollDOM.getBoundingClientRect(),l=n.documentTop+n.documentPadding.top+n.contentHeight;if(r.left>i||r.right<i||r.top>s||Math.min(r.bottom,l)<s)return!1;let a=n.posAtCoords({x:i,y:s},!1);return a>=e&&a<=t}function x4(n,e={}){let t=G.define(),i=be.define({create(){return[]},update(s,o){if(s.length&&(e.hideOnChange&&(o.docChanged||o.selection)?s=[]:e.hideOn&&(s=s.filter(r=>!e.hideOn(o,r))),o.docChanged)){let r=[];for(let l of s){let a=o.changes.mapPos(l.pos,-1,Ce.TrackDel);if(a!=null){let h=Object.assign(Object.create(null),l);h.pos=a,h.end!=null&&(h.end=o.changes.mapPos(h.end)),r.push(h)}}s=r}for(let r of o.effects)r.is(t)&&(s=r.value),r.is(b4)&&(s=[]);return s},provide:s=>qi.from(s)});return{active:i,extension:[i,he.define(s=>new m4(s,n,i,t,e.hoverTime||300)),g4]}}function Sa(n,e){let t=n.plugin(vs);if(!t)return null;let i=t.manager.tooltips.indexOf(e);return i<0?null:t.manager.tooltipViews[i]}const b4=G.define(),Wo=L.define({combine(n){let e,t;for(let i of n)e=e||i.topContainer,t=t||i.bottomContainer;return{topContainer:e,bottomContainer:t}}});function $0(n,e){let t=n.plugin(Ca),i=t?t.specs.indexOf(e):-1;return i>-1?t.panels[i]:null}const Ca=he.fromClass(class{constructor(n){this.input=n.state.facet(W0),this.specs=this.input.filter(t=>t),this.panels=this.specs.map(t=>t(n));let e=n.state.facet(Wo);this.top=new gi(n,!0,e.topContainer),this.bottom=new gi(n,!1,e.bottomContainer),this.top.sync(this.panels.filter(t=>t.top)),this.bottom.sync(this.panels.filter(t=>!t.top));for(let t of this.panels)t.dom.classList.add("cm-panel"),t.mount&&t.mount()}update(n){let e=n.state.facet(Wo);this.top.container!=e.topContainer&&(this.top.sync([]),this.top=new gi(n.view,!0,e.topContainer)),this.bottom.container!=e.bottomContainer&&(this.bottom.sync([]),this.bottom=new gi(n.view,!1,e.bottomContainer)),this.top.syncClasses(),this.bottom.syncClasses();let t=n.state.facet(W0);if(t!=this.input){let i=t.filter(a=>a),s=[],o=[],r=[],l=[];for(let a of i){let h=this.specs.indexOf(a),c;h<0?(c=a(n.view),l.push(c)):(c=this.panels[h],c.update&&c.update(n)),s.push(c),(c.top?o:r).push(c)}this.specs=i,this.panels=s,this.top.sync(o),this.bottom.sync(r);for(let a of l)a.dom.classList.add("cm-panel"),a.mount&&a.mount()}else for(let i of this.panels)i.update&&i.update(n)}destroy(){this.top.sync([]),this.bottom.sync([])}},{provide:n=>z.scrollMargins.of(e=>{let t=e.plugin(n);return t&&{top:t.top.scrollMargin(),bottom:t.bottom.scrollMargin()}})});class gi{constructor(e,t,i){this.view=e,this.top=t,this.container=i,this.dom=void 0,this.classes="",this.panels=[],this.syncClasses()}sync(e){for(let t of this.panels)t.destroy&&e.indexOf(t)<0&&t.destroy();this.panels=e,this.syncDOM()}syncDOM(){if(this.panels.length==0){this.dom&&(this.dom.remove(),this.dom=void 0);return}if(!this.dom){this.dom=document.createElement("div"),this.dom.className=this.top?"cm-panels cm-panels-top":"cm-panels cm-panels-bottom",this.dom.style[this.top?"top":"bottom"]="0";let t=this.container||this.view.dom;t.insertBefore(this.dom,this.top?t.firstChild:null)}let e=this.dom.firstChild;for(let t of this.panels)if(t.dom.parentNode==this.dom){for(;e!=t.dom;)e=Fo(e);e=e.nextSibling}else this.dom.insertBefore(t.dom,e);for(;e;)e=Fo(e)}scrollMargin(){return!this.dom||this.container?0:Math.max(0,this.top?this.dom.getBoundingClientRect().bottom-Math.max(0,this.view.scrollDOM.getBoundingClientRect().top):Math.min(innerHeight,this.view.scrollDOM.getBoundingClientRect().bottom)-this.dom.getBoundingClientRect().top)}syncClasses(){if(!(!this.container||this.classes==this.view.themeClasses)){for(let e of this.classes.split(" "))e&&this.container.classList.remove(e);for(let e of(this.classes=this.view.themeClasses).split(" "))e&&this.container.classList.add(e)}}}function Fo(n){let e=n.nextSibling;return n.remove(),e}const W0=L.define({enables:Ca});class pt extends Ht{compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}eq(e){return!1}destroy(e){}}pt.prototype.elementClass="";pt.prototype.toDOM=void 0;pt.prototype.mapMode=Ce.TrackBefore;pt.prototype.startSide=pt.prototype.endSide=-1;pt.prototype.point=!0;const Vi=L.define(),y4=L.define(),k4={class:"",renderEmptyElements:!1,elementStyle:"",markers:()=>U.empty,lineMarker:()=>null,widgetMarker:()=>null,lineMarkerChange:null,initialSpacer:null,updateSpacer:null,domEventHandlers:{},side:"before"},A0=L.define();function S4(n){return[_a(),A0.of({...k4,...n})]}const Go=L.define({combine:n=>n.some(e=>e)});function _a(n){return[C4]}const C4=he.fromClass(class{constructor(n){this.view=n,this.domAfter=null,this.prevViewport=n.viewport,this.dom=document.createElement("div"),this.dom.className="cm-gutters cm-gutters-before",this.dom.setAttribute("aria-hidden","true"),this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px",this.gutters=n.state.facet(A0).map(e=>new qo(n,e)),this.fixed=!n.state.facet(Go);for(let e of this.gutters)e.config.side=="after"?this.getDOMAfter().appendChild(e.dom):this.dom.appendChild(e.dom);this.fixed&&(this.dom.style.position="sticky"),this.syncGutters(!1),n.scrollDOM.insertBefore(this.dom,n.contentDOM)}getDOMAfter(){return this.domAfter||(this.domAfter=document.createElement("div"),this.domAfter.className="cm-gutters cm-gutters-after",this.domAfter.setAttribute("aria-hidden","true"),this.domAfter.style.minHeight=this.view.contentHeight/this.view.scaleY+"px",this.domAfter.style.position=this.fixed?"sticky":"",this.view.scrollDOM.appendChild(this.domAfter)),this.domAfter}update(n){if(this.updateGutters(n)){let e=this.prevViewport,t=n.view.viewport,i=Math.min(e.to,t.to)-Math.max(e.from,t.from);this.syncGutters(i<(t.to-t.from)*.8)}if(n.geometryChanged){let e=this.view.contentHeight/this.view.scaleY+"px";this.dom.style.minHeight=e,this.domAfter&&(this.domAfter.style.minHeight=e)}this.view.state.facet(Go)!=!this.fixed&&(this.fixed=!this.fixed,this.dom.style.position=this.fixed?"sticky":"",this.domAfter&&(this.domAfter.style.position=this.fixed?"sticky":"")),this.prevViewport=n.view.viewport}syncGutters(n){let e=this.dom.nextSibling;n&&(this.dom.remove(),this.domAfter&&this.domAfter.remove());let t=U.iter(this.view.state.facet(Vi),this.view.viewport.from),i=[],s=this.gutters.map(o=>new _4(o,this.view.viewport,-this.view.documentPadding.top));for(let o of this.view.viewportLineBlocks)if(i.length&&(i=[]),Array.isArray(o.type)){let r=!0;for(let l of o.type)if(l.type==_e.Text&&r){H2(t,i,l.from);for(let a of s)a.line(this.view,l,i);r=!1}else if(l.widget)for(let a of s)a.widget(this.view,l)}else if(o.type==_e.Text){H2(t,i,o.from);for(let r of s)r.line(this.view,o,i)}else if(o.widget)for(let r of s)r.widget(this.view,o);for(let o of s)o.finish();n&&(this.view.scrollDOM.insertBefore(this.dom,e),this.domAfter&&this.view.scrollDOM.appendChild(this.domAfter))}updateGutters(n){let e=n.startState.facet(A0),t=n.state.facet(A0),i=n.docChanged||n.heightChanged||n.viewportChanged||!U.eq(n.startState.facet(Vi),n.state.facet(Vi),n.view.viewport.from,n.view.viewport.to);if(e==t)for(let s of this.gutters)s.update(n)&&(i=!0);else{i=!0;let s=[];for(let o of t){let r=e.indexOf(o);r<0?s.push(new qo(this.view,o)):(this.gutters[r].update(n),s.push(this.gutters[r]))}for(let o of this.gutters)o.dom.remove(),s.indexOf(o)<0&&o.destroy();for(let o of s)o.config.side=="after"?this.getDOMAfter().appendChild(o.dom):this.dom.appendChild(o.dom);this.gutters=s}return i}destroy(){for(let n of this.gutters)n.destroy();this.dom.remove(),this.domAfter&&this.domAfter.remove()}},{provide:n=>z.scrollMargins.of(e=>{let t=e.plugin(n);if(!t||t.gutters.length==0||!t.fixed)return null;let i=t.dom.offsetWidth*e.scaleX,s=t.domAfter?t.domAfter.offsetWidth*e.scaleX:0;return e.textDirection==se.LTR?{left:i,right:s}:{right:i,left:s}})});function jo(n){return Array.isArray(n)?n:[n]}function H2(n,e,t){for(;n.value&&n.from<=t;)n.from==t&&e.push(n.value),n.next()}class _4{constructor(e,t,i){this.gutter=e,this.height=i,this.i=0,this.cursor=U.iter(e.markers,t.from)}addElement(e,t,i){let{gutter:s}=this,o=(t.top-this.height)/e.scaleY,r=t.height/e.scaleY;if(this.i==s.elements.length){let l=new Oa(e,r,o,i);s.elements.push(l),s.dom.appendChild(l.dom)}else s.elements[this.i].update(e,r,o,i);this.height=t.bottom,this.i++}line(e,t,i){let s=[];H2(this.cursor,s,t.from),i.length&&(s=s.concat(i));let o=this.gutter.config.lineMarker(e,t,s);o&&s.unshift(o);let r=this.gutter;s.length==0&&!r.config.renderEmptyElements||this.addElement(e,t,s)}widget(e,t){let i=this.gutter.config.widgetMarker(e,t.widget,t),s=i?[i]:null;for(let o of e.state.facet(y4)){let r=o(e,t.widget,t);r&&(s||(s=[])).push(r)}s&&this.addElement(e,t,s)}finish(){let e=this.gutter;for(;e.elements.length>this.i;){let t=e.elements.pop();e.dom.removeChild(t.dom),t.destroy()}}}class qo{constructor(e,t){this.view=e,this.config=t,this.elements=[],this.spacer=null,this.dom=document.createElement("div"),this.dom.className="cm-gutter"+(this.config.class?" "+this.config.class:"");for(let i in t.domEventHandlers)this.dom.addEventListener(i,s=>{let o=s.target,r;if(o!=this.dom&&this.dom.contains(o)){for(;o.parentNode!=this.dom;)o=o.parentNode;let a=o.getBoundingClientRect();r=(a.top+a.bottom)/2}else r=s.clientY;let l=e.lineBlockAtHeight(r-e.documentTop);t.domEventHandlers[i](e,l,s)&&s.preventDefault()});this.markers=jo(t.markers(e)),t.initialSpacer&&(this.spacer=new Oa(e,0,0,[t.initialSpacer(e)]),this.dom.appendChild(this.spacer.dom),this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none")}update(e){let t=this.markers;if(this.markers=jo(this.config.markers(e.view)),this.spacer&&this.config.updateSpacer){let s=this.config.updateSpacer(this.spacer.markers[0],e);s!=this.spacer.markers[0]&&this.spacer.update(e.view,0,0,[s])}let i=e.view.viewport;return!U.eq(this.markers,t,i.from,i.to)||(this.config.lineMarkerChange?this.config.lineMarkerChange(e):!1)}destroy(){for(let e of this.elements)e.destroy()}}class Oa{constructor(e,t,i,s){this.height=-1,this.above=0,this.markers=[],this.dom=document.createElement("div"),this.dom.className="cm-gutterElement",this.update(e,t,i,s)}update(e,t,i,s){this.height!=t&&(this.height=t,this.dom.style.height=t+"px"),this.above!=i&&(this.dom.style.marginTop=(this.above=i)?i+"px":""),O4(this.markers,s)||this.setMarkers(e,s)}setMarkers(e,t){let i="cm-gutterElement",s=this.dom.firstChild;for(let o=0,r=0;;){let l=r,a=o<t.length?t[o++]:null,h=!1;if(a){let c=a.elementClass;c&&(i+=" "+c);for(let f=r;f<this.markers.length;f++)if(this.markers[f].compare(a)){l=f,h=!0;break}}else l=this.markers.length;for(;r<l;){let c=this.markers[r++];if(c.toDOM){c.destroy(s);let f=s.nextSibling;s.remove(),s=f}}if(!a)break;a.toDOM&&(h?s=s.nextSibling:this.dom.insertBefore(a.toDOM(e),s)),h&&r++}this.dom.className=i,this.markers=t}destroy(){this.setMarkers(null,[])}}function O4(n,e){if(n.length!=e.length)return!1;for(let t=0;t<n.length;t++)if(!n[t].compare(e[t]))return!1;return!0}const M4=L.define(),D4=L.define(),Xt=L.define({combine(n){return lt(n,{formatNumber:String,domEventHandlers:{}},{domEventHandlers(e,t){let i=Object.assign({},e);for(let s in t){let o=i[s],r=t[s];i[s]=o?(l,a,h)=>o(l,a,h)||r(l,a,h):r}return i}})}});class Hn extends pt{constructor(e){super(),this.number=e}eq(e){return this.number==e.number}toDOM(){return document.createTextNode(this.number)}}function $n(n,e){return n.state.facet(Xt).formatNumber(e,n.state)}const T4=A0.compute([Xt],n=>({class:"cm-lineNumbers",renderEmptyElements:!1,markers(e){return e.state.facet(M4)},lineMarker(e,t,i){return i.some(s=>s.toDOM)?null:new Hn($n(e,e.state.doc.lineAt(t.from).number))},widgetMarker:(e,t,i)=>{for(let s of e.state.facet(D4)){let o=s(e,t,i);if(o)return o}return null},lineMarkerChange:e=>e.startState.facet(Xt)!=e.state.facet(Xt),initialSpacer(e){return new Hn($n(e,Uo(e.state.doc.lines)))},updateSpacer(e,t){let i=$n(t.view,Uo(t.view.state.doc.lines));return i==e.number?e:new Hn(i)},domEventHandlers:n.facet(Xt).domEventHandlers,side:"before"}));function A4(n={}){return[Xt.of(n),_a(),T4]}function Uo(n){let e=9;for(;e<n;)e=e*10+9;return e}const B4=new class extends pt{constructor(){super(...arguments),this.elementClass="cm-activeLineGutter"}},P4=Vi.compute(["selection"],n=>{let e=[],t=-1;for(let i of n.selection.ranges){let s=n.doc.lineAt(i.head).from;s>t&&(t=s,e.push(B4.range(s)))}return U.of(e)});function E4(){return P4}const Ma=1024;let V4=0;class Wn{constructor(e,t){this.from=e,this.to=t}}class j{constructor(e={}){this.id=V4++,this.perNode=!!e.perNode,this.deserialize=e.deserialize||(()=>{throw new Error("This node type doesn't define a deserialize function")})}add(e){if(this.perNode)throw new RangeError("Can't add per-node props to node types");return typeof e!="function"&&(e=Ve.match(e)),t=>{let i=e(t);return i===void 0?null:[this,i]}}}j.closedBy=new j({deserialize:n=>n.split(" ")});j.openedBy=new j({deserialize:n=>n.split(" ")});j.group=new j({deserialize:n=>n.split(" ")});j.isolate=new j({deserialize:n=>{if(n&&n!="rtl"&&n!="ltr"&&n!="auto")throw new RangeError("Invalid value for isolate: "+n);return n||"auto"}});j.contextHash=new j({perNode:!0});j.lookAhead=new j({perNode:!0});j.mounted=new j({perNode:!0});class Ui{constructor(e,t,i){this.tree=e,this.overlay=t,this.parser=i}static get(e){return e&&e.props&&e.props[j.mounted.id]}}const z4=Object.create(null);class Ve{constructor(e,t,i,s=0){this.name=e,this.props=t,this.id=i,this.flags=s}static define(e){let t=e.props&&e.props.length?Object.create(null):z4,i=(e.top?1:0)|(e.skipped?2:0)|(e.error?4:0)|(e.name==null?8:0),s=new Ve(e.name||"",t,e.id,i);if(e.props){for(let o of e.props)if(Array.isArray(o)||(o=o(s)),o){if(o[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");t[o[0].id]=o[1]}}return s}prop(e){return this.props[e.id]}get isTop(){return(this.flags&1)>0}get isSkipped(){return(this.flags&2)>0}get isError(){return(this.flags&4)>0}get isAnonymous(){return(this.flags&8)>0}is(e){if(typeof e=="string"){if(this.name==e)return!0;let t=this.prop(j.group);return t?t.indexOf(e)>-1:!1}return this.id==e}static match(e){let t=Object.create(null);for(let i in e)for(let s of i.split(" "))t[s]=e[i];return i=>{for(let s=i.prop(j.group),o=-1;o<(s?s.length:0);o++){let r=t[o<0?i.name:s[o]];if(r)return r}}}}Ve.none=new Ve("",Object.create(null),0,8);class xs{constructor(e){this.types=e;for(let t=0;t<e.length;t++)if(e[t].id!=t)throw new RangeError("Node type ids should correspond to array positions when creating a node set")}extend(...e){let t=[];for(let i of this.types){let s=null;for(let o of e){let r=o(i);r&&(s||(s=Object.assign({},i.props)),s[r[0].id]=r[1])}t.push(s?new Ve(i.name,s,i.id,i.flags):i)}return new xs(t)}}const mi=new WeakMap,Yo=new WeakMap;var pe;(function(n){n[n.ExcludeBuffers=1]="ExcludeBuffers",n[n.IncludeAnonymous=2]="IncludeAnonymous",n[n.IgnoreMounts=4]="IgnoreMounts",n[n.IgnoreOverlays=8]="IgnoreOverlays"})(pe||(pe={}));class ce{constructor(e,t,i,s,o){if(this.type=e,this.children=t,this.positions=i,this.length=s,this.props=null,o&&o.length){this.props=Object.create(null);for(let[r,l]of o)this.props[typeof r=="number"?r:r.id]=l}}toString(){let e=Ui.get(this);if(e&&!e.overlay)return e.tree.toString();let t="";for(let i of this.children){let s=i.toString();s&&(t&&(t+=","),t+=s)}return this.type.name?(/\W/.test(this.type.name)&&!this.type.isError?JSON.stringify(this.type.name):this.type.name)+(t.length?"("+t+")":""):t}cursor(e=0){return new W2(this.topNode,e)}cursorAt(e,t=0,i=0){let s=mi.get(this)||this.topNode,o=new W2(s);return o.moveTo(e,t),mi.set(this,o._tree),o}get topNode(){return new Fe(this,0,0,null)}resolve(e,t=0){let i=F0(mi.get(this)||this.topNode,e,t,!1);return mi.set(this,i),i}resolveInner(e,t=0){let i=F0(Yo.get(this)||this.topNode,e,t,!0);return Yo.set(this,i),i}resolveStack(e,t=0){return R4(this,e,t)}iterate(e){let{enter:t,leave:i,from:s=0,to:o=this.length}=e,r=e.mode||0,l=(r&pe.IncludeAnonymous)>0;for(let a=this.cursor(r|pe.IncludeAnonymous);;){let h=!1;if(a.from<=o&&a.to>=s&&(!l&&a.type.isAnonymous||t(a)!==!1)){if(a.firstChild())continue;h=!0}for(;h&&i&&(l||!a.type.isAnonymous)&&i(a),!a.nextSibling();){if(!a.parent())return;h=!0}}}prop(e){return e.perNode?this.props?this.props[e.id]:void 0:this.type.prop(e)}get propValues(){let e=[];if(this.props)for(let t in this.props)e.push([+t,this.props[t]]);return e}balance(e={}){return this.children.length<=8?this:ks(Ve.none,this.children,this.positions,0,this.children.length,0,this.length,(t,i,s)=>new ce(this.type,t,i,s,this.propValues),e.makeTree||((t,i,s)=>new ce(Ve.none,t,i,s)))}static build(e){return I4(e)}}ce.empty=new ce(Ve.none,[],[],0);class bs{constructor(e,t){this.buffer=e,this.index=t}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new bs(this.buffer,this.index)}}class Mt{constructor(e,t,i){this.buffer=e,this.length=t,this.set=i}get type(){return Ve.none}toString(){let e=[];for(let t=0;t<this.buffer.length;)e.push(this.childString(t)),t=this.buffer[t+3];return e.join(",")}childString(e){let t=this.buffer[e],i=this.buffer[e+3],s=this.set.types[t],o=s.name;if(/\W/.test(o)&&!s.isError&&(o=JSON.stringify(o)),e+=4,i==e)return o;let r=[];for(;e<i;)r.push(this.childString(e)),e=this.buffer[e+3];return o+"("+r.join(",")+")"}findChild(e,t,i,s,o){let{buffer:r}=this,l=-1;for(let a=e;a!=t&&!(Da(o,s,r[a+1],r[a+2])&&(l=a,i>0));a=r[a+3]);return l}slice(e,t,i){let s=this.buffer,o=new Uint16Array(t-e),r=0;for(let l=e,a=0;l<t;){o[a++]=s[l++],o[a++]=s[l++]-i;let h=o[a++]=s[l++]-i;o[a++]=s[l++]-e,r=Math.max(r,h)}return new Mt(o,r,this.set)}}function Da(n,e,t,i){switch(n){case-2:return t<e;case-1:return i>=e&&t<e;case 0:return t<e&&i>e;case 1:return t<=e&&i>e;case 2:return i>e;case 4:return!0}}function F0(n,e,t,i){for(var s;n.from==n.to||(t<1?n.from>=e:n.from>e)||(t>-1?n.to<=e:n.to<e);){let r=!i&&n instanceof Fe&&n.index<0?null:n.parent;if(!r)return n;n=r}let o=i?0:pe.IgnoreOverlays;if(i)for(let r=n,l=r.parent;l;r=l,l=r.parent)r instanceof Fe&&r.index<0&&((s=l.enter(e,t,o))===null||s===void 0?void 0:s.from)!=r.from&&(n=l);for(;;){let r=n.enter(e,t,o);if(!r)return n;n=r}}class Ta{cursor(e=0){return new W2(this,e)}getChild(e,t=null,i=null){let s=Ko(this,e,t,i);return s.length?s[0]:null}getChildren(e,t=null,i=null){return Ko(this,e,t,i)}resolve(e,t=0){return F0(this,e,t,!1)}resolveInner(e,t=0){return F0(this,e,t,!0)}matchContext(e){return $2(this.parent,e)}enterUnfinishedNodesBefore(e){let t=this.childBefore(e),i=this;for(;t;){let s=t.lastChild;if(!s||s.to!=t.to)break;s.type.isError&&s.from==s.to?(i=t,t=s.prevSibling):t=s}return i}get node(){return this}get next(){return this.parent}}class Fe extends Ta{constructor(e,t,i,s){super(),this._tree=e,this.from=t,this.index=i,this._parent=s}get type(){return this._tree.type}get name(){return this._tree.type.name}get to(){return this.from+this._tree.length}nextChild(e,t,i,s,o=0){for(let r=this;;){for(let{children:l,positions:a}=r._tree,h=t>0?l.length:-1;e!=h;e+=t){let c=l[e],f=a[e]+r.from;if(Da(s,i,f,f+c.length)){if(c instanceof Mt){if(o&pe.ExcludeBuffers)continue;let d=c.findChild(0,c.buffer.length,t,i-f,s);if(d>-1)return new kt(new L4(r,c,e,f),null,d)}else if(o&pe.IncludeAnonymous||!c.type.isAnonymous||ys(c)){let d;if(!(o&pe.IgnoreMounts)&&(d=Ui.get(c))&&!d.overlay)return new Fe(d.tree,f,e,r);let p=new Fe(c,f,e,r);return o&pe.IncludeAnonymous||!p.type.isAnonymous?p:p.nextChild(t<0?c.children.length-1:0,t,i,s)}}}if(o&pe.IncludeAnonymous||!r.type.isAnonymous||(r.index>=0?e=r.index+t:e=t<0?-1:r._parent._tree.children.length,r=r._parent,!r))return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(e){return this.nextChild(0,1,e,2)}childBefore(e){return this.nextChild(this._tree.children.length-1,-1,e,-2)}enter(e,t,i=0){let s;if(!(i&pe.IgnoreOverlays)&&(s=Ui.get(this._tree))&&s.overlay){let o=e-this.from;for(let{from:r,to:l}of s.overlay)if((t>0?r<=o:r<o)&&(t<0?l>=o:l>o))return new Fe(s.tree,s.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,e,t,i)}nextSignificantParent(){let e=this;for(;e.type.isAnonymous&&e._parent;)e=e._parent;return e}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}get tree(){return this._tree}toTree(){return this._tree}toString(){return this._tree.toString()}}function Ko(n,e,t,i){let s=n.cursor(),o=[];if(!s.firstChild())return o;if(t!=null){for(let r=!1;!r;)if(r=s.type.is(t),!s.nextSibling())return o}for(;;){if(i!=null&&s.type.is(i))return o;if(s.type.is(e)&&o.push(s.node),!s.nextSibling())return i==null?o:[]}}function $2(n,e,t=e.length-1){for(let i=n;t>=0;i=i.parent){if(!i)return!1;if(!i.type.isAnonymous){if(e[t]&&e[t]!=i.name)return!1;t--}}return!0}class L4{constructor(e,t,i,s){this.parent=e,this.buffer=t,this.index=i,this.start=s}}class kt extends Ta{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(e,t,i){super(),this.context=e,this._parent=t,this.index=i,this.type=e.buffer.set.types[e.buffer.buffer[i]]}child(e,t,i){let{buffer:s}=this.context,o=s.findChild(this.index+4,s.buffer[this.index+3],e,t-this.context.start,i);return o<0?null:new kt(this.context,this,o)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(e){return this.child(1,e,2)}childBefore(e){return this.child(-1,e,-2)}enter(e,t,i=0){if(i&pe.ExcludeBuffers)return null;let{buffer:s}=this.context,o=s.findChild(this.index+4,s.buffer[this.index+3],t>0?1:-1,e-this.context.start,t);return o<0?null:new kt(this.context,this,o)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(e){return this._parent?null:this.context.parent.nextChild(this.context.index+e,e,0,4)}get nextSibling(){let{buffer:e}=this.context,t=e.buffer[this.index+3];return t<(this._parent?e.buffer[this._parent.index+3]:e.buffer.length)?new kt(this.context,this._parent,t):this.externalSibling(1)}get prevSibling(){let{buffer:e}=this.context,t=this._parent?this._parent.index+4:0;return this.index==t?this.externalSibling(-1):new kt(this.context,this._parent,e.findChild(t,this.index,-1,0,4))}get tree(){return null}toTree(){let e=[],t=[],{buffer:i}=this.context,s=this.index+4,o=i.buffer[this.index+3];if(o>s){let r=i.buffer[this.index+1];e.push(i.slice(s,o,r)),t.push(0)}return new ce(this.type,e,t,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}}function Aa(n){if(!n.length)return null;let e=0,t=n[0];for(let o=1;o<n.length;o++){let r=n[o];(r.from>t.from||r.to<t.to)&&(t=r,e=o)}let i=t instanceof Fe&&t.index<0?null:t.parent,s=n.slice();return i?s[e]=i:s.splice(e,1),new N4(s,t)}class N4{constructor(e,t){this.heads=e,this.node=t}get next(){return Aa(this.heads)}}function R4(n,e,t){let i=n.resolveInner(e,t),s=null;for(let o=i instanceof Fe?i:i.context.parent;o;o=o.parent)if(o.index<0){let r=o.parent;(s||(s=[i])).push(r.resolve(e,t)),o=r}else{let r=Ui.get(o.tree);if(r&&r.overlay&&r.overlay[0].from<=e&&r.overlay[r.overlay.length-1].to>=e){let l=new Fe(r.tree,r.overlay[0].from+o.from,-1,o);(s||(s=[i])).push(F0(l,e,t,!1))}}return s?Aa(s):i}class W2{get name(){return this.type.name}constructor(e,t=0){if(this.mode=t,this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,e instanceof Fe)this.yieldNode(e);else{this._tree=e.context.parent,this.buffer=e.context;for(let i=e._parent;i;i=i._parent)this.stack.unshift(i.index);this.bufferNode=e,this.yieldBuf(e.index)}}yieldNode(e){return e?(this._tree=e,this.type=e.type,this.from=e.from,this.to=e.to,!0):!1}yieldBuf(e,t){this.index=e;let{start:i,buffer:s}=this.buffer;return this.type=t||s.set.types[s.buffer[e]],this.from=i+s.buffer[e+1],this.to=i+s.buffer[e+2],!0}yield(e){return e?e instanceof Fe?(this.buffer=null,this.yieldNode(e)):(this.buffer=e.context,this.yieldBuf(e.index,e.type)):!1}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(e,t,i){if(!this.buffer)return this.yield(this._tree.nextChild(e<0?this._tree._tree.children.length-1:0,e,t,i,this.mode));let{buffer:s}=this.buffer,o=s.findChild(this.index+4,s.buffer[this.index+3],e,t-this.buffer.start,i);return o<0?!1:(this.stack.push(this.index),this.yieldBuf(o))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(e){return this.enterChild(1,e,2)}childBefore(e){return this.enterChild(-1,e,-2)}enter(e,t,i=this.mode){return this.buffer?i&pe.ExcludeBuffers?!1:this.enterChild(1,e,t):this.yield(this._tree.enter(e,t,i))}parent(){if(!this.buffer)return this.yieldNode(this.mode&pe.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let e=this.mode&pe.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(e)}sibling(e){if(!this.buffer)return this._tree._parent?this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+e,e,0,4,this.mode)):!1;let{buffer:t}=this.buffer,i=this.stack.length-1;if(e<0){let s=i<0?0:this.stack[i]+4;if(this.index!=s)return this.yieldBuf(t.findChild(s,this.index,-1,0,4))}else{let s=t.buffer[this.index+3];if(s<(i<0?t.buffer.length:t.buffer[this.stack[i]+3]))return this.yieldBuf(s)}return i<0?this.yield(this.buffer.parent.nextChild(this.buffer.index+e,e,0,4,this.mode)):!1}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(e){let t,i,{buffer:s}=this;if(s){if(e>0){if(this.index<s.buffer.buffer.length)return!1}else for(let o=0;o<this.index;o++)if(s.buffer.buffer[o+3]<this.index)return!1;({index:t,parent:i}=s)}else({index:t,_parent:i}=this._tree);for(;i;{index:t,_parent:i}=i)if(t>-1)for(let o=t+e,r=e<0?-1:i._tree.children.length;o!=r;o+=e){let l=i._tree.children[o];if(this.mode&pe.IncludeAnonymous||l instanceof Mt||!l.type.isAnonymous||ys(l))return!1}return!0}move(e,t){if(t&&this.enterChild(e,0,4))return!0;for(;;){if(this.sibling(e))return!0;if(this.atLastNode(e)||!this.parent())return!1}}next(e=!0){return this.move(1,e)}prev(e=!0){return this.move(-1,e)}moveTo(e,t=0){for(;(this.from==this.to||(t<1?this.from>=e:this.from>e)||(t>-1?this.to<=e:this.to<e))&&this.parent(););for(;this.enterChild(1,e,t););return this}get node(){if(!this.buffer)return this._tree;let e=this.bufferNode,t=null,i=0;if(e&&e.context==this.buffer)e:for(let s=this.index,o=this.stack.length;o>=0;){for(let r=e;r;r=r._parent)if(r.index==s){if(s==this.index)return r;t=r,i=o+1;break e}s=this.stack[--o]}for(let s=i;s<this.stack.length;s++)t=new kt(this.buffer,t,this.stack[s]);return this.bufferNode=new kt(this.buffer,t,this.index)}get tree(){return this.buffer?null:this._tree._tree}iterate(e,t){for(let i=0;;){let s=!1;if(this.type.isAnonymous||e(this)!==!1){if(this.firstChild()){i++;continue}this.type.isAnonymous||(s=!0)}for(;;){if(s&&t&&t(this),s=this.type.isAnonymous,!i)return;if(this.nextSibling())break;this.parent(),i--,s=!0}}}matchContext(e){if(!this.buffer)return $2(this.node.parent,e);let{buffer:t}=this.buffer,{types:i}=t.set;for(let s=e.length-1,o=this.stack.length-1;s>=0;o--){if(o<0)return $2(this._tree,e,s);let r=i[t.buffer[this.stack[o]]];if(!r.isAnonymous){if(e[s]&&e[s]!=r.name)return!1;s--}}return!0}}function ys(n){return n.children.some(e=>e instanceof Mt||!e.type.isAnonymous||ys(e))}function I4(n){var e;let{buffer:t,nodeSet:i,maxBufferLength:s=Ma,reused:o=[],minRepeatType:r=i.types.length}=n,l=Array.isArray(t)?new bs(t,t.length):t,a=i.types,h=0,c=0;function f(y,C,k,T,P,x){let{id:H,start:N,end:M,size:B}=l,E=c,$=h;for(;B<0;)if(l.next(),B==-1){let I=o[H];k.push(I),T.push(N-y);return}else if(B==-3){h=H;return}else if(B==-4){c=H;return}else throw new RangeError(`Unrecognized record size: ${B}`);let F=a[H],R,Q,X=N-y;if(M-N<=s&&(Q=v(l.pos-C,P))){let I=new Uint16Array(Q.size-Q.skip),K=l.pos-Q.size,re=I.length;for(;l.pos>K;)re=w(Q.start,I,re);R=new Mt(I,M-Q.start,i),X=Q.start-y}else{let I=l.pos-B;l.next();let K=[],re=[],ie=H>=r?H:-1,Me=0,Bt=M;for(;l.pos>I;)ie>=0&&l.id==ie&&l.size>=0?(l.end<=Bt-s&&(g(K,re,N,Me,l.end,Bt,ie,E,$),Me=K.length,Bt=l.end),l.next()):x>2500?d(N,I,K,re):f(N,I,K,re,ie,x+1);if(ie>=0&&Me>0&&Me<K.length&&g(K,re,N,Me,N,Bt,ie,E,$),K.reverse(),re.reverse(),ie>-1&&Me>0){let g0=p(F,$);R=ks(F,K,re,0,K.length,0,M-N,g0,g0)}else R=m(F,K,re,M-N,E-M,$)}k.push(R),T.push(X)}function d(y,C,k,T){let P=[],x=0,H=-1;for(;l.pos>C;){let{id:N,start:M,end:B,size:E}=l;if(E>4)l.next();else{if(H>-1&&M<H)break;H<0&&(H=B-s),P.push(N,M,B),x++,l.next()}}if(x){let N=new Uint16Array(x*4),M=P[P.length-2];for(let B=P.length-3,E=0;B>=0;B-=3)N[E++]=P[B],N[E++]=P[B+1]-M,N[E++]=P[B+2]-M,N[E++]=E;k.push(new Mt(N,P[2]-M,i)),T.push(M-y)}}function p(y,C){return(k,T,P)=>{let x=0,H=k.length-1,N,M;if(H>=0&&(N=k[H])instanceof ce){if(!H&&N.type==y&&N.length==P)return N;(M=N.prop(j.lookAhead))&&(x=T[H]+N.length+M)}return m(y,k,T,P,x,C)}}function g(y,C,k,T,P,x,H,N,M){let B=[],E=[];for(;y.length>T;)B.push(y.pop()),E.push(C.pop()+k-P);y.push(m(i.types[H],B,E,x-P,N-x,M)),C.push(P-k)}function m(y,C,k,T,P,x,H){if(x){let N=[j.contextHash,x];H=H?[N].concat(H):[N]}if(P>25){let N=[j.lookAhead,P];H=H?[N].concat(H):[N]}return new ce(y,C,k,T,H)}function v(y,C){let k=l.fork(),T=0,P=0,x=0,H=k.end-s,N={size:0,start:0,skip:0};e:for(let M=k.pos-y;k.pos>M;){let B=k.size;if(k.id==C&&B>=0){N.size=T,N.start=P,N.skip=x,x+=4,T+=4,k.next();continue}let E=k.pos-B;if(B<0||E<M||k.start<H)break;let $=k.id>=r?4:0,F=k.start;for(k.next();k.pos>E;){if(k.size<0)if(k.size==-3)$+=4;else break e;else k.id>=r&&($+=4);k.next()}P=F,T+=B,x+=$}return(C<0||T==y)&&(N.size=T,N.start=P,N.skip=x),N.size>4?N:void 0}function w(y,C,k){let{id:T,start:P,end:x,size:H}=l;if(l.next(),H>=0&&T<r){let N=k;if(H>4){let M=l.pos-(H-4);for(;l.pos>M;)k=w(y,C,k)}C[--k]=N,C[--k]=x-y,C[--k]=P-y,C[--k]=T}else H==-3?h=T:H==-4&&(c=T);return k}let b=[],S=[];for(;l.pos>0;)f(n.start||0,n.bufferStart||0,b,S,-1,0);let _=(e=n.length)!==null&&e!==void 0?e:b.length?S[0]+b[0].length:0;return new ce(a[n.topID],b.reverse(),S.reverse(),_)}const Xo=new WeakMap;function zi(n,e){if(!n.isAnonymous||e instanceof Mt||e.type!=n)return 1;let t=Xo.get(e);if(t==null){t=1;for(let i of e.children){if(i.type!=n||!(i instanceof ce)){t=1;break}t+=zi(n,i)}Xo.set(e,t)}return t}function ks(n,e,t,i,s,o,r,l,a){let h=0;for(let g=i;g<s;g++)h+=zi(n,e[g]);let c=Math.ceil(h*1.5/8),f=[],d=[];function p(g,m,v,w,b){for(let S=v;S<w;){let _=S,y=m[S],C=zi(n,g[S]);for(S++;S<w;S++){let k=zi(n,g[S]);if(C+k>=c)break;C+=k}if(S==_+1){if(C>c){let k=g[_];p(k.children,k.positions,0,k.children.length,m[_]+b);continue}f.push(g[_])}else{let k=m[S-1]+g[S-1].length-y;f.push(ks(n,g,m,_,S,y,k,null,a))}d.push(y+b-o)}}return p(e,t,i,s,0),(l||a)(f,d,r)}class Nt{constructor(e,t,i,s,o=!1,r=!1){this.from=e,this.to=t,this.tree=i,this.offset=s,this.open=(o?1:0)|(r?2:0)}get openStart(){return(this.open&1)>0}get openEnd(){return(this.open&2)>0}static addTree(e,t=[],i=!1){let s=[new Nt(0,e.length,e,0,!1,i)];for(let o of t)o.to>e.length&&s.push(o);return s}static applyChanges(e,t,i=128){if(!t.length)return e;let s=[],o=1,r=e.length?e[0]:null;for(let l=0,a=0,h=0;;l++){let c=l<t.length?t[l]:null,f=c?c.fromA:1e9;if(f-a>=i)for(;r&&r.from<f;){let d=r;if(a>=d.from||f<=d.to||h){let p=Math.max(d.from,a)-h,g=Math.min(d.to,f)-h;d=p>=g?null:new Nt(p,g,d.tree,d.offset+h,l>0,!!c)}if(d&&s.push(d),r.to>f)break;r=o<e.length?e[o++]:null}if(!c)break;a=c.toA,h=c.toA-c.toB}return s}}class Ba{startParse(e,t,i){return typeof e=="string"&&(e=new H4(e)),i=i?i.length?i.map(s=>new Wn(s.from,s.to)):[new Wn(0,0)]:[new Wn(0,e.length)],this.createParse(e,t||[],i)}parse(e,t,i){let s=this.startParse(e,t,i);for(;;){let o=s.advance();if(o)return o}}}class H4{constructor(e){this.string=e}get length(){return this.string.length}chunk(e){return this.string.slice(e)}get lineChunks(){return!1}read(e,t){return this.string.slice(e,t)}}new j({perNode:!0});let $4=0;class Ie{constructor(e,t,i,s){this.name=e,this.set=t,this.base=i,this.modified=s,this.id=$4++}toString(){let{name:e}=this;for(let t of this.modified)t.name&&(e=`${t.name}(${e})`);return e}static define(e,t){let i=typeof e=="string"?e:"?";if(e instanceof Ie&&(t=e),t!=null&&t.base)throw new Error("Can not derive from a modified tag");let s=new Ie(i,[],null,[]);if(s.set.push(s),t)for(let o of t.set)s.set.push(o);return s}static defineModifier(e){let t=new Yi(e);return i=>i.modified.indexOf(t)>-1?i:Yi.get(i.base||i,i.modified.concat(t).sort((s,o)=>s.id-o.id))}}let W4=0;class Yi{constructor(e){this.name=e,this.instances=[],this.id=W4++}static get(e,t){if(!t.length)return e;let i=t[0].instances.find(l=>l.base==e&&F4(t,l.modified));if(i)return i;let s=[],o=new Ie(e.name,s,e,t);for(let l of t)l.instances.push(o);let r=G4(t);for(let l of e.set)if(!l.modified.length)for(let a of r)s.push(Yi.get(l,a));return o}}function F4(n,e){return n.length==e.length&&n.every((t,i)=>t==e[i])}function G4(n){let e=[[]];for(let t=0;t<n.length;t++)for(let i=0,s=e.length;i<s;i++)e.push(e[i].concat(n[t]));return e.sort((t,i)=>i.length-t.length)}function Pa(n){let e=Object.create(null);for(let t in n){let i=n[t];Array.isArray(i)||(i=[i]);for(let s of t.split(" "))if(s){let o=[],r=2,l=s;for(let f=0;;){if(l=="..."&&f>0&&f+3==s.length){r=1;break}let d=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(l);if(!d)throw new RangeError("Invalid path: "+s);if(o.push(d[0]=="*"?"":d[0][0]=='"'?JSON.parse(d[0]):d[0]),f+=d[0].length,f==s.length)break;let p=s[f++];if(f==s.length&&p=="!"){r=0;break}if(p!="/")throw new RangeError("Invalid path: "+s);l=s.slice(f)}let a=o.length-1,h=o[a];if(!h)throw new RangeError("Invalid path: "+s);let c=new Ki(i,r,a>0?o.slice(0,a):null);e[h]=c.sort(e[h])}}return Ea.add(e)}const Ea=new j;class Ki{constructor(e,t,i,s){this.tags=e,this.mode=t,this.context=i,this.next=s}get opaque(){return this.mode==0}get inherit(){return this.mode==1}sort(e){return!e||e.depth<this.depth?(this.next=e,this):(e.next=this.sort(e.next),e)}get depth(){return this.context?this.context.length:0}}Ki.empty=new Ki([],2,null);function Va(n,e){let t=Object.create(null);for(let o of n)if(!Array.isArray(o.tag))t[o.tag.id]=o.class;else for(let r of o.tag)t[r.id]=o.class;let{scope:i,all:s=null}=e||{};return{style:o=>{let r=s;for(let l of o)for(let a of l.set){let h=t[a.id];if(h){r=r?r+" "+h:h;break}}return r},scope:i}}function j4(n,e){let t=null;for(let i of n){let s=i.style(e);s&&(t=t?t+" "+s:s)}return t}function q4(n,e,t,i=0,s=n.length){let o=new U4(i,Array.isArray(e)?e:[e],t);o.highlightRange(n.cursor(),i,s,"",o.highlighters),o.flush(s)}class U4{constructor(e,t,i){this.at=e,this.highlighters=t,this.span=i,this.class=""}startSpan(e,t){t!=this.class&&(this.flush(e),e>this.at&&(this.at=e),this.class=t)}flush(e){e>this.at&&this.class&&this.span(this.at,e,this.class)}highlightRange(e,t,i,s,o){let{type:r,from:l,to:a}=e;if(l>=i||a<=t)return;r.isTop&&(o=this.highlighters.filter(p=>!p.scope||p.scope(r)));let h=s,c=Y4(e)||Ki.empty,f=j4(o,c.tags);if(f&&(h&&(h+=" "),h+=f,c.mode==1&&(s+=(s?" ":"")+f)),this.startSpan(Math.max(t,l),h),c.opaque)return;let d=e.tree&&e.tree.prop(j.mounted);if(d&&d.overlay){let p=e.node.enter(d.overlay[0].from+l,1),g=this.highlighters.filter(v=>!v.scope||v.scope(d.tree.type)),m=e.firstChild();for(let v=0,w=l;;v++){let b=v<d.overlay.length?d.overlay[v]:null,S=b?b.from+l:a,_=Math.max(t,w),y=Math.min(i,S);if(_<y&&m)for(;e.from<y&&(this.highlightRange(e,_,y,s,o),this.startSpan(Math.min(y,e.to),h),!(e.to>=S||!e.nextSibling())););if(!b||S>i)break;w=b.to+l,w>t&&(this.highlightRange(p.cursor(),Math.max(t,b.from+l),Math.min(i,w),"",g),this.startSpan(Math.min(i,w),h))}m&&e.parent()}else if(e.firstChild()){d&&(s="");do if(!(e.to<=t)){if(e.from>=i)break;this.highlightRange(e,t,i,s,o),this.startSpan(Math.min(i,e.to),h)}while(e.nextSibling());e.parent()}}}function Y4(n){let e=n.type.prop(Ea);for(;e&&e.context&&!n.matchContext(e.context);)e=e.next;return e||null}const A=Ie.define,vi=A(),mt=A(),Qo=A(mt),Jo=A(mt),vt=A(),wi=A(vt),Fn=A(vt),Ze=A(),Pt=A(Ze),Qe=A(),Je=A(),F2=A(),x0=A(F2),xi=A(),D={comment:vi,lineComment:A(vi),blockComment:A(vi),docComment:A(vi),name:mt,variableName:A(mt),typeName:Qo,tagName:A(Qo),propertyName:Jo,attributeName:A(Jo),className:A(mt),labelName:A(mt),namespace:A(mt),macroName:A(mt),literal:vt,string:wi,docString:A(wi),character:A(wi),attributeValue:A(wi),number:Fn,integer:A(Fn),float:A(Fn),bool:A(vt),regexp:A(vt),escape:A(vt),color:A(vt),url:A(vt),keyword:Qe,self:A(Qe),null:A(Qe),atom:A(Qe),unit:A(Qe),modifier:A(Qe),operatorKeyword:A(Qe),controlKeyword:A(Qe),definitionKeyword:A(Qe),moduleKeyword:A(Qe),operator:Je,derefOperator:A(Je),arithmeticOperator:A(Je),logicOperator:A(Je),bitwiseOperator:A(Je),compareOperator:A(Je),updateOperator:A(Je),definitionOperator:A(Je),typeOperator:A(Je),controlOperator:A(Je),punctuation:F2,separator:A(F2),bracket:x0,angleBracket:A(x0),squareBracket:A(x0),paren:A(x0),brace:A(x0),content:Ze,heading:Pt,heading1:A(Pt),heading2:A(Pt),heading3:A(Pt),heading4:A(Pt),heading5:A(Pt),heading6:A(Pt),contentSeparator:A(Ze),list:A(Ze),quote:A(Ze),emphasis:A(Ze),strong:A(Ze),link:A(Ze),monospace:A(Ze),strikethrough:A(Ze),inserted:A(),deleted:A(),changed:A(),invalid:A(),meta:xi,documentMeta:A(xi),annotation:A(xi),processingInstruction:A(xi),definition:Ie.defineModifier("definition"),constant:Ie.defineModifier("constant"),function:Ie.defineModifier("function"),standard:Ie.defineModifier("standard"),local:Ie.defineModifier("local"),special:Ie.defineModifier("special")};for(let n in D){let e=D[n];e instanceof Ie&&(e.name=n)}Va([{tag:D.link,class:"tok-link"},{tag:D.heading,class:"tok-heading"},{tag:D.emphasis,class:"tok-emphasis"},{tag:D.strong,class:"tok-strong"},{tag:D.keyword,class:"tok-keyword"},{tag:D.atom,class:"tok-atom"},{tag:D.bool,class:"tok-bool"},{tag:D.url,class:"tok-url"},{tag:D.labelName,class:"tok-labelName"},{tag:D.inserted,class:"tok-inserted"},{tag:D.deleted,class:"tok-deleted"},{tag:D.literal,class:"tok-literal"},{tag:D.string,class:"tok-string"},{tag:D.number,class:"tok-number"},{tag:[D.regexp,D.escape,D.special(D.string)],class:"tok-string2"},{tag:D.variableName,class:"tok-variableName"},{tag:D.local(D.variableName),class:"tok-variableName tok-local"},{tag:D.definition(D.variableName),class:"tok-variableName tok-definition"},{tag:D.special(D.variableName),class:"tok-variableName2"},{tag:D.definition(D.propertyName),class:"tok-propertyName tok-definition"},{tag:D.typeName,class:"tok-typeName"},{tag:D.namespace,class:"tok-namespace"},{tag:D.className,class:"tok-className"},{tag:D.macroName,class:"tok-macroName"},{tag:D.propertyName,class:"tok-propertyName"},{tag:D.operator,class:"tok-operator"},{tag:D.comment,class:"tok-comment"},{tag:D.meta,class:"tok-meta"},{tag:D.invalid,class:"tok-invalid"},{tag:D.punctuation,class:"tok-punctuation"}]);var Gn;const Qt=new j;function K4(n){return L.define({combine:n?e=>e.concat(n):void 0})}const X4=new j;class qe{constructor(e,t,i=[],s=""){this.data=e,this.name=s,q.prototype.hasOwnProperty("tree")||Object.defineProperty(q.prototype,"tree",{get(){return me(this)}}),this.parser=t,this.extension=[Dt.of(this),q.languageData.of((o,r,l)=>{let a=Zo(o,r,l),h=a.type.prop(Qt);if(!h)return[];let c=o.facet(h),f=a.type.prop(X4);if(f){let d=a.resolve(r-a.from,l);for(let p of f)if(p.test(d,o)){let g=o.facet(p.facet);return p.type=="replace"?g:g.concat(c)}}return c})].concat(i)}isActiveAt(e,t,i=-1){return Zo(e,t,i).type.prop(Qt)==this.data}findRegions(e){let t=e.facet(Dt);if((t==null?void 0:t.data)==this.data)return[{from:0,to:e.doc.length}];if(!t||!t.allowsNesting)return[];let i=[],s=(o,r)=>{if(o.prop(Qt)==this.data){i.push({from:r,to:r+o.length});return}let l=o.prop(j.mounted);if(l){if(l.tree.prop(Qt)==this.data){if(l.overlay)for(let a of l.overlay)i.push({from:a.from+r,to:a.to+r});else i.push({from:r,to:r+o.length});return}else if(l.overlay){let a=i.length;if(s(l.tree,l.overlay[0].from+r),i.length>a)return}}for(let a=0;a<o.children.length;a++){let h=o.children[a];h instanceof ce&&s(h,o.positions[a]+r)}};return s(me(e),0),i}get allowsNesting(){return!0}}qe.setState=G.define();function Zo(n,e,t){let i=n.facet(Dt),s=me(n).topNode;if(!i||i.allowsNesting)for(let o=s;o;o=o.enter(e,t,pe.ExcludeBuffers))o.type.isTop&&(s=o);return s}class Xi extends qe{constructor(e,t,i){super(e,t,[],i),this.parser=t}static define(e){let t=K4(e.languageData);return new Xi(t,e.parser.configure({props:[Qt.add(i=>i.isTop?t:void 0)]}),e.name)}configure(e,t){return new Xi(this.data,this.parser.configure(e),t||this.name)}get allowsNesting(){return this.parser.hasWrappers()}}function me(n){let e=n.field(qe.state,!1);return e?e.tree:ce.empty}class Q4{constructor(e){this.doc=e,this.cursorPos=0,this.string="",this.cursor=e.iter()}get length(){return this.doc.length}syncTo(e){return this.string=this.cursor.next(e-this.cursorPos).value,this.cursorPos=e+this.string.length,this.cursorPos-this.string.length}chunk(e){return this.syncTo(e),this.string}get lineChunks(){return!0}read(e,t){let i=this.cursorPos-this.string.length;return e<i||t>=this.cursorPos?this.doc.sliceString(e,t):this.string.slice(e-i,t-i)}}let b0=null;class Qi{constructor(e,t,i=[],s,o,r,l,a){this.parser=e,this.state=t,this.fragments=i,this.tree=s,this.treeLen=o,this.viewport=r,this.skipped=l,this.scheduleOn=a,this.parse=null,this.tempSkipped=[]}static create(e,t,i){return new Qi(e,t,[],ce.empty,0,i,[],null)}startParse(){return this.parser.startParse(new Q4(this.state.doc),this.fragments)}work(e,t){return t!=null&&t>=this.state.doc.length&&(t=void 0),this.tree!=ce.empty&&this.isDone(t??this.state.doc.length)?(this.takeTree(),!0):this.withContext(()=>{var i;if(typeof e=="number"){let s=Date.now()+e;e=()=>Date.now()>s}for(this.parse||(this.parse=this.startParse()),t!=null&&(this.parse.stoppedAt==null||this.parse.stoppedAt>t)&&t<this.state.doc.length&&this.parse.stopAt(t);;){let s=this.parse.advance();if(s)if(this.fragments=this.withoutTempSkipped(Nt.addTree(s,this.fragments,this.parse.stoppedAt!=null)),this.treeLen=(i=this.parse.stoppedAt)!==null&&i!==void 0?i:this.state.doc.length,this.tree=s,this.parse=null,this.treeLen<(t??this.state.doc.length))this.parse=this.startParse();else return!0;if(e())return!1}})}takeTree(){let e,t;this.parse&&(e=this.parse.parsedPos)>=this.treeLen&&((this.parse.stoppedAt==null||this.parse.stoppedAt>e)&&this.parse.stopAt(e),this.withContext(()=>{for(;!(t=this.parse.advance()););}),this.treeLen=e,this.tree=t,this.fragments=this.withoutTempSkipped(Nt.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(e){let t=b0;b0=this;try{return e()}finally{b0=t}}withoutTempSkipped(e){for(let t;t=this.tempSkipped.pop();)e=er(e,t.from,t.to);return e}changes(e,t){let{fragments:i,tree:s,treeLen:o,viewport:r,skipped:l}=this;if(this.takeTree(),!e.empty){let a=[];if(e.iterChangedRanges((h,c,f,d)=>a.push({fromA:h,toA:c,fromB:f,toB:d})),i=Nt.applyChanges(i,a),s=ce.empty,o=0,r={from:e.mapPos(r.from,-1),to:e.mapPos(r.to,1)},this.skipped.length){l=[];for(let h of this.skipped){let c=e.mapPos(h.from,1),f=e.mapPos(h.to,-1);c<f&&l.push({from:c,to:f})}}}return new Qi(this.parser,t,i,s,o,r,l,this.scheduleOn)}updateViewport(e){if(this.viewport.from==e.from&&this.viewport.to==e.to)return!1;this.viewport=e;let t=this.skipped.length;for(let i=0;i<this.skipped.length;i++){let{from:s,to:o}=this.skipped[i];s<e.to&&o>e.from&&(this.fragments=er(this.fragments,s,o),this.skipped.splice(i--,1))}return this.skipped.length>=t?!1:(this.reset(),!0)}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(e,t){this.skipped.push({from:e,to:t})}static getSkippingParser(e){return new class extends Ba{createParse(t,i,s){let o=s[0].from,r=s[s.length-1].to;return{parsedPos:o,advance(){let a=b0;if(a){for(let h of s)a.tempSkipped.push(h);e&&(a.scheduleOn=a.scheduleOn?Promise.all([a.scheduleOn,e]):e)}return this.parsedPos=r,new ce(Ve.none,[],[],r-o)},stoppedAt:null,stopAt(){}}}}}isDone(e){e=Math.min(e,this.state.doc.length);let t=this.fragments;return this.treeLen>=e&&t.length&&t[0].from==0&&t[0].to>=e}static get(){return b0}}function er(n,e,t){return Nt.applyChanges(n,[{fromA:e,toA:t,fromB:e,toB:t}])}class c0{constructor(e){this.context=e,this.tree=e.tree}apply(e){if(!e.docChanged&&this.tree==this.context.tree)return this;let t=this.context.changes(e.changes,e.state),i=this.context.treeLen==e.startState.doc.length?void 0:Math.max(e.changes.mapPos(this.context.treeLen),t.viewport.to);return t.work(20,i)||t.takeTree(),new c0(t)}static init(e){let t=Math.min(3e3,e.doc.length),i=Qi.create(e.facet(Dt).parser,e,{from:0,to:t});return i.work(20,t)||i.takeTree(),new c0(i)}}qe.state=be.define({create:c0.init,update(n,e){for(let t of e.effects)if(t.is(qe.setState))return t.value;return e.startState.facet(Dt)!=e.state.facet(Dt)?c0.init(e.state):n.apply(e)}});let za=n=>{let e=setTimeout(()=>n(),500);return()=>clearTimeout(e)};typeof requestIdleCallback<"u"&&(za=n=>{let e=-1,t=setTimeout(()=>{e=requestIdleCallback(n,{timeout:400})},100);return()=>e<0?clearTimeout(t):cancelIdleCallback(e)});const jn=typeof navigator<"u"&&(!((Gn=navigator.scheduling)===null||Gn===void 0)&&Gn.isInputPending)?()=>navigator.scheduling.isInputPending():null,J4=he.fromClass(class{constructor(e){this.view=e,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}update(e){let t=this.view.state.field(qe.state).context;(t.updateViewport(e.view.viewport)||this.view.viewport.to>t.treeLen)&&this.scheduleWork(),(e.docChanged||e.selectionSet)&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(t)}scheduleWork(){if(this.working)return;let{state:e}=this.view,t=e.field(qe.state);(t.tree!=t.context.tree||!t.context.isDone(e.doc.length))&&(this.working=za(this.work))}work(e){this.working=null;let t=Date.now();if(this.chunkEnd<t&&(this.chunkEnd<0||this.view.hasFocus)&&(this.chunkEnd=t+3e4,this.chunkBudget=3e3),this.chunkBudget<=0)return;let{state:i,viewport:{to:s}}=this.view,o=i.field(qe.state);if(o.tree==o.context.tree&&o.context.isDone(s+1e5))return;let r=Date.now()+Math.min(this.chunkBudget,100,e&&!jn?Math.max(25,e.timeRemaining()-5):1e9),l=o.context.treeLen<s&&i.doc.length>s+1e3,a=o.context.work(()=>jn&&jn()||Date.now()>r,s+(l?0:1e5));this.chunkBudget-=Date.now()-t,(a||this.chunkBudget<=0)&&(o.context.takeTree(),this.view.dispatch({effects:qe.setState.of(new c0(o.context))})),this.chunkBudget>0&&!(a&&!l)&&this.scheduleWork(),this.checkAsyncSchedule(o.context)}checkAsyncSchedule(e){e.scheduleOn&&(this.workScheduled++,e.scheduleOn.then(()=>this.scheduleWork()).catch(t=>Pe(this.view.state,t)).then(()=>this.workScheduled--),e.scheduleOn=null)}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),Dt=L.define({combine(n){return n.length?n[0]:null},enables:n=>[qe.state,J4,z.contentAttributes.compute([n],e=>{let t=e.facet(n);return t&&t.name?{"data-language":t.name}:{}})]});class Z4{constructor(e,t=[]){this.language=e,this.support=t,this.extension=[e,t]}}const ep=L.define(),Ss=L.define({combine:n=>{if(!n.length)return" ";let e=n[0];if(!e||/\S/.test(e)||Array.from(e).some(t=>t!=e[0]))throw new Error("Invalid indent unit: "+JSON.stringify(n[0]));return e}});function Ji(n){let e=n.facet(Ss);return e.charCodeAt(0)==9?n.tabSize*e.length:e.length}function G0(n,e){let t="",i=n.tabSize,s=n.facet(Ss)[0];if(s==" "){for(;e>=i;)t+=" ",e-=i;s=" "}for(let o=0;o<e;o++)t+=s;return t}function Cs(n,e){n instanceof q&&(n=new bn(n));for(let i of n.state.facet(ep)){let s=i(n,e);if(s!==void 0)return s}let t=me(n.state);return t.length>=e?tp(n,t,e):null}class bn{constructor(e,t={}){this.state=e,this.options=t,this.unit=Ji(e)}lineAt(e,t=1){let i=this.state.doc.lineAt(e),{simulateBreak:s,simulateDoubleBreak:o}=this.options;return s!=null&&s>=i.from&&s<=i.to?o&&s==e?{text:"",from:e}:(t<0?s<e:s<=e)?{text:i.text.slice(s-i.from),from:s}:{text:i.text.slice(0,s-i.from),from:i.from}:i}textAfterPos(e,t=1){if(this.options.simulateDoubleBreak&&e==this.options.simulateBreak)return"";let{text:i,from:s}=this.lineAt(e,t);return i.slice(e-s,Math.min(i.length,e+100-s))}column(e,t=1){let{text:i,from:s}=this.lineAt(e,t),o=this.countColumn(i,e-s),r=this.options.overrideIndentation?this.options.overrideIndentation(s):-1;return r>-1&&(o+=r-this.countColumn(i,i.search(/\S|$/))),o}countColumn(e,t=e.length){return f0(e,this.state.tabSize,t)}lineIndent(e,t=1){let{text:i,from:s}=this.lineAt(e,t),o=this.options.overrideIndentation;if(o){let r=o(s);if(r>-1)return r}return this.countColumn(i,i.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}}const La=new j;function tp(n,e,t){let i=e.resolveStack(t),s=e.resolveInner(t,-1).resolve(t,0).enterUnfinishedNodesBefore(t);if(s!=i.node){let o=[];for(let r=s;r&&!(r.from<i.node.from||r.to>i.node.to||r.from==i.node.from&&r.type==i.node.type);r=r.parent)o.push(r);for(let r=o.length-1;r>=0;r--)i={node:o[r],next:i}}return Na(i,n,t)}function Na(n,e,t){for(let i=n;i;i=i.next){let s=np(i.node);if(s)return s(_s.create(e,t,i))}return 0}function ip(n){return n.pos==n.options.simulateBreak&&n.options.simulateDoubleBreak}function np(n){let e=n.type.prop(La);if(e)return e;let t=n.firstChild,i;if(t&&(i=t.type.prop(j.closedBy))){let s=n.lastChild,o=s&&i.indexOf(s.name)>-1;return r=>lp(r,!0,1,void 0,o&&!ip(r)?s.from:void 0)}return n.parent==null?sp:null}function sp(){return 0}class _s extends bn{constructor(e,t,i){super(e.state,e.options),this.base=e,this.pos=t,this.context=i}get node(){return this.context.node}static create(e,t,i){return new _s(e,t,i)}get textAfter(){return this.textAfterPos(this.pos)}get baseIndent(){return this.baseIndentFor(this.node)}baseIndentFor(e){let t=this.state.doc.lineAt(e.from);for(;;){let i=e.resolve(t.from);for(;i.parent&&i.parent.from==i.from;)i=i.parent;if(op(i,e))break;t=this.state.doc.lineAt(i.from)}return this.lineIndent(t.from)}continue(){return Na(this.context.next,this.base,this.pos)}}function op(n,e){for(let t=e;t;t=t.parent)if(n==t)return!0;return!1}function rp(n){let e=n.node,t=e.childAfter(e.from),i=e.lastChild;if(!t)return null;let s=n.options.simulateBreak,o=n.state.doc.lineAt(t.from),r=s==null||s<=o.from?o.to:Math.min(o.to,s);for(let l=t.to;;){let a=e.childAfter(l);if(!a||a==i)return null;if(!a.type.isSkipped){if(a.from>=r)return null;let h=/^ */.exec(o.text.slice(t.to-o.from))[0].length;return{from:t.from,to:t.to+h}}l=a.to}}function lp(n,e,t,i,s){let o=n.textAfter,r=o.match(/^\s*/)[0].length,l=i&&o.slice(r,r+i.length)==i||s==n.pos+r,a=rp(n);return a?l?n.column(a.from):n.column(a.to):n.baseIndent+(l?0:n.unit*t)}const ap=200;function cp(){return q.transactionFilter.of(n=>{if(!n.docChanged||!n.isUserEvent("input.type")&&!n.isUserEvent("input.complete"))return n;let e=n.startState.languageDataAt("indentOnInput",n.startState.selection.main.head);if(!e.length)return n;let t=n.newDoc,{head:i}=n.newSelection.main,s=t.lineAt(i);if(i>s.from+ap)return n;let o=t.sliceString(s.from,i);if(!e.some(h=>h.test(o)))return n;let{state:r}=n,l=-1,a=[];for(let{head:h}of r.selection.ranges){let c=r.doc.lineAt(h);if(c.from==l)continue;l=c.from;let f=Cs(r,c.from);if(f==null)continue;let d=/^\s*/.exec(c.text)[0],p=G0(r,f);d!=p&&a.push({from:c.from,to:c.from+d.length,insert:p})}return a.length?[n,{changes:a,sequential:!0}]:n})}const hp=L.define(),Ra=new j;function up(n,e,t){let i=me(n);if(i.length<t)return null;let s=i.resolveStack(t,1),o=null;for(let r=s;r;r=r.next){let l=r.node;if(l.to<=t||l.from>t)continue;if(o&&l.from<e)break;let a=l.type.prop(Ra);if(a&&(l.to<i.length-50||i.length==n.doc.length||!fp(l))){let h=a(l,n);h&&h.from<=t&&h.from>=e&&h.to>t&&(o=h)}}return o}function fp(n){let e=n.lastChild;return e&&e.to==n.to&&e.type.isError}function Zi(n,e,t){for(let i of n.facet(hp)){let s=i(n,e,t);if(s)return s}return up(n,e,t)}function Ia(n,e){let t=e.mapPos(n.from,1),i=e.mapPos(n.to,-1);return t>=i?void 0:{from:t,to:i}}const yn=G.define({map:Ia}),Z0=G.define({map:Ia});function Ha(n){let e=[];for(let{head:t}of n.state.selection.ranges)e.some(i=>i.from<=t&&i.to>=t)||e.push(n.lineBlockAt(t));return e}const Gt=be.define({create(){return W.none},update(n,e){e.isUserEvent("delete")&&e.changes.iterChangedRanges((t,i)=>n=tr(n,t,i)),n=n.map(e.changes);for(let t of e.effects)if(t.is(yn)&&!dp(n,t.value.from,t.value.to)){let{preparePlaceholder:i}=e.state.facet(Fa),s=i?W.replace({widget:new bp(i(e.state,t.value))}):ir;n=n.update({add:[s.range(t.value.from,t.value.to)]})}else t.is(Z0)&&(n=n.update({filter:(i,s)=>t.value.from!=i||t.value.to!=s,filterFrom:t.value.from,filterTo:t.value.to}));return e.selection&&(n=tr(n,e.selection.main.head)),n},provide:n=>z.decorations.from(n),toJSON(n,e){let t=[];return n.between(0,e.doc.length,(i,s)=>{t.push(i,s)}),t},fromJSON(n){if(!Array.isArray(n)||n.length%2)throw new RangeError("Invalid JSON for fold state");let e=[];for(let t=0;t<n.length;){let i=n[t++],s=n[t++];if(typeof i!="number"||typeof s!="number")throw new RangeError("Invalid JSON for fold state");e.push(ir.range(i,s))}return W.set(e,!0)}});function tr(n,e,t=e){let i=!1;return n.between(e,t,(s,o)=>{s<t&&o>e&&(i=!0)}),i?n.update({filterFrom:e,filterTo:t,filter:(s,o)=>s>=t||o<=e}):n}function en(n,e,t){var i;let s=null;return(i=n.field(Gt,!1))===null||i===void 0||i.between(e,t,(o,r)=>{(!s||s.from>o)&&(s={from:o,to:r})}),s}function dp(n,e,t){let i=!1;return n.between(e,e,(s,o)=>{s==e&&o==t&&(i=!0)}),i}function $a(n,e){return n.field(Gt,!1)?e:e.concat(G.appendConfig.of(Ga()))}const pp=n=>{for(let e of Ha(n)){let t=Zi(n.state,e.from,e.to);if(t)return n.dispatch({effects:$a(n.state,[yn.of(t),Wa(n,t)])}),!0}return!1},gp=n=>{if(!n.state.field(Gt,!1))return!1;let e=[];for(let t of Ha(n)){let i=en(n.state,t.from,t.to);i&&e.push(Z0.of(i),Wa(n,i,!1))}return e.length&&n.dispatch({effects:e}),e.length>0};function Wa(n,e,t=!0){let i=n.state.doc.lineAt(e.from).number,s=n.state.doc.lineAt(e.to).number;return z.announce.of(`${n.state.phrase(t?"Folded lines":"Unfolded lines")} ${i} ${n.state.phrase("to")} ${s}.`)}const mp=n=>{let{state:e}=n,t=[];for(let i=0;i<e.doc.length;){let s=n.lineBlockAt(i),o=Zi(e,s.from,s.to);o&&t.push(yn.of(o)),i=(o?n.lineBlockAt(o.to):s).to+1}return t.length&&n.dispatch({effects:$a(n.state,t)}),!!t.length},vp=n=>{let e=n.state.field(Gt,!1);if(!e||!e.size)return!1;let t=[];return e.between(0,n.state.doc.length,(i,s)=>{t.push(Z0.of({from:i,to:s}))}),n.dispatch({effects:t}),!0},wp=[{key:"Ctrl-Shift-[",mac:"Cmd-Alt-[",run:pp},{key:"Ctrl-Shift-]",mac:"Cmd-Alt-]",run:gp},{key:"Ctrl-Alt-[",run:mp},{key:"Ctrl-Alt-]",run:vp}],xp={placeholderDOM:null,preparePlaceholder:null,placeholderText:"…"},Fa=L.define({combine(n){return lt(n,xp)}});function Ga(n){return[Gt,Sp]}function ja(n,e){let{state:t}=n,i=t.facet(Fa),s=r=>{let l=n.lineBlockAt(n.posAtDOM(r.target)),a=en(n.state,l.from,l.to);a&&n.dispatch({effects:Z0.of(a)}),r.preventDefault()};if(i.placeholderDOM)return i.placeholderDOM(n,s,e);let o=document.createElement("span");return o.textContent=i.placeholderText,o.setAttribute("aria-label",t.phrase("folded code")),o.title=t.phrase("unfold"),o.className="cm-foldPlaceholder",o.onclick=s,o}const ir=W.replace({widget:new class extends Tt{toDOM(n){return ja(n,null)}}});class bp extends Tt{constructor(e){super(),this.value=e}eq(e){return this.value==e.value}toDOM(e){return ja(e,this.value)}}const yp={openText:"⌄",closedText:"›",markerDOM:null,domEventHandlers:{},foldingChanged:()=>!1};class qn extends pt{constructor(e,t){super(),this.config=e,this.open=t}eq(e){return this.config==e.config&&this.open==e.open}toDOM(e){if(this.config.markerDOM)return this.config.markerDOM(this.open);let t=document.createElement("span");return t.textContent=this.open?this.config.openText:this.config.closedText,t.title=e.state.phrase(this.open?"Fold line":"Unfold line"),t}}function kp(n={}){let e={...yp,...n},t=new qn(e,!0),i=new qn(e,!1),s=he.fromClass(class{constructor(r){this.from=r.viewport.from,this.markers=this.buildMarkers(r)}update(r){(r.docChanged||r.viewportChanged||r.startState.facet(Dt)!=r.state.facet(Dt)||r.startState.field(Gt,!1)!=r.state.field(Gt,!1)||me(r.startState)!=me(r.state)||e.foldingChanged(r))&&(this.markers=this.buildMarkers(r.view))}buildMarkers(r){let l=new ft;for(let a of r.viewportLineBlocks){let h=en(r.state,a.from,a.to)?i:Zi(r.state,a.from,a.to)?t:null;h&&l.add(a.from,a.from,h)}return l.finish()}}),{domEventHandlers:o}=e;return[s,S4({class:"cm-foldGutter",markers(r){var l;return((l=r.plugin(s))===null||l===void 0?void 0:l.markers)||U.empty},initialSpacer(){return new qn(e,!1)},domEventHandlers:{...o,click:(r,l,a)=>{if(o.click&&o.click(r,l,a))return!0;let h=en(r.state,l.from,l.to);if(h)return r.dispatch({effects:Z0.of(h)}),!0;let c=Zi(r.state,l.from,l.to);return c?(r.dispatch({effects:yn.of(c)}),!0):!1}}}),Ga()]}const Sp=z.baseTheme({".cm-foldPlaceholder":{backgroundColor:"#eee",border:"1px solid #ddd",color:"#888",borderRadius:".2em",margin:"0 1px",padding:"0 1px",cursor:"pointer"},".cm-foldGutter span":{padding:"0 1px",cursor:"pointer"}});class kn{constructor(e,t){this.specs=e;let i;function s(l){let a=Ct.newName();return(i||(i=Object.create(null)))["."+a]=l,a}const o=typeof t.all=="string"?t.all:t.all?s(t.all):void 0,r=t.scope;this.scope=r instanceof qe?l=>l.prop(Qt)==r.data:r?l=>l==r:void 0,this.style=Va(e.map(l=>({tag:l.tag,class:l.class||s(Object.assign({},l,{tag:null}))})),{all:o}).style,this.module=i?new Ct(i):null,this.themeType=t.themeType}static define(e,t){return new kn(e,t||{})}}const G2=L.define(),qa=L.define({combine(n){return n.length?[n[0]]:null}});function Un(n){let e=n.facet(G2);return e.length?e:n.facet(qa)}function Cp(n,e){let t=[Op],i;return n instanceof kn&&(n.module&&t.push(z.styleModule.of(n.module)),i=n.themeType),e!=null&&e.fallback?t.push(qa.of(n)):i?t.push(G2.computeN([z.darkTheme],s=>s.facet(z.darkTheme)==(i=="dark")?[n]:[])):t.push(G2.of(n)),t}class _p{constructor(e){this.markCache=Object.create(null),this.tree=me(e.state),this.decorations=this.buildDeco(e,Un(e.state)),this.decoratedTo=e.viewport.to}update(e){let t=me(e.state),i=Un(e.state),s=i!=Un(e.startState),{viewport:o}=e.view,r=e.changes.mapPos(this.decoratedTo,1);t.length<o.to&&!s&&t.type==this.tree.type&&r>=o.to?(this.decorations=this.decorations.map(e.changes),this.decoratedTo=r):(t!=this.tree||e.viewportChanged||s)&&(this.tree=t,this.decorations=this.buildDeco(e.view,i),this.decoratedTo=o.to)}buildDeco(e,t){if(!t||!this.tree.length)return W.none;let i=new ft;for(let{from:s,to:o}of e.visibleRanges)q4(this.tree,t,(r,l,a)=>{i.add(r,l,this.markCache[a]||(this.markCache[a]=W.mark({class:a})))},s,o);return i.finish()}}const Op=jt.high(he.fromClass(_p,{decorations:n=>n.decorations})),Mp=kn.define([{tag:D.meta,color:"#404740"},{tag:D.link,textDecoration:"underline"},{tag:D.heading,textDecoration:"underline",fontWeight:"bold"},{tag:D.emphasis,fontStyle:"italic"},{tag:D.strong,fontWeight:"bold"},{tag:D.strikethrough,textDecoration:"line-through"},{tag:D.keyword,color:"#708"},{tag:[D.atom,D.bool,D.url,D.contentSeparator,D.labelName],color:"#219"},{tag:[D.literal,D.inserted],color:"#164"},{tag:[D.string,D.deleted],color:"#a11"},{tag:[D.regexp,D.escape,D.special(D.string)],color:"#e40"},{tag:D.definition(D.variableName),color:"#00f"},{tag:D.local(D.variableName),color:"#30a"},{tag:[D.typeName,D.namespace],color:"#085"},{tag:D.className,color:"#167"},{tag:[D.special(D.variableName),D.macroName],color:"#256"},{tag:D.definition(D.propertyName),color:"#00c"},{tag:D.comment,color:"#940"},{tag:D.invalid,color:"#f00"}]),Dp=z.baseTheme({"&.cm-focused .cm-matchingBracket":{backgroundColor:"#328c8252"},"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bb555544"}}),Ua=1e4,Ya="()[]{}",Ka=L.define({combine(n){return lt(n,{afterCursor:!0,brackets:Ya,maxScanDistance:Ua,renderMatch:Bp})}}),Tp=W.mark({class:"cm-matchingBracket"}),Ap=W.mark({class:"cm-nonmatchingBracket"});function Bp(n){let e=[],t=n.matched?Tp:Ap;return e.push(t.range(n.start.from,n.start.to)),n.end&&e.push(t.range(n.end.from,n.end.to)),e}const Pp=be.define({create(){return W.none},update(n,e){if(!e.docChanged&&!e.selection)return n;let t=[],i=e.state.facet(Ka);for(let s of e.state.selection.ranges){if(!s.empty)continue;let o=nt(e.state,s.head,-1,i)||s.head>0&&nt(e.state,s.head-1,1,i)||i.afterCursor&&(nt(e.state,s.head,1,i)||s.head<e.state.doc.length&&nt(e.state,s.head+1,-1,i));o&&(t=t.concat(i.renderMatch(o,e.state)))}return W.set(t,!0)},provide:n=>z.decorations.from(n)}),Ep=[Pp,Dp];function Vp(n={}){return[Ka.of(n),Ep]}const Xa=new j;function j2(n,e,t){let i=n.prop(e<0?j.openedBy:j.closedBy);if(i)return i;if(n.name.length==1){let s=t.indexOf(n.name);if(s>-1&&s%2==(e<0?1:0))return[t[s+e]]}return null}function q2(n){let e=n.type.prop(Xa);return e?e(n.node):n}function nt(n,e,t,i={}){let s=i.maxScanDistance||Ua,o=i.brackets||Ya,r=me(n),l=r.resolveInner(e,t);for(let a=l;a;a=a.parent){let h=j2(a.type,t,o);if(h&&a.from<a.to){let c=q2(a);if(c&&(t>0?e>=c.from&&e<c.to:e>c.from&&e<=c.to))return zp(n,e,t,a,c,h,o)}}return Lp(n,e,t,r,l.type,s,o)}function zp(n,e,t,i,s,o,r){let l=i.parent,a={from:s.from,to:s.to},h=0,c=l==null?void 0:l.cursor();if(c&&(t<0?c.childBefore(i.from):c.childAfter(i.to)))do if(t<0?c.to<=i.from:c.from>=i.to){if(h==0&&o.indexOf(c.type.name)>-1&&c.from<c.to){let f=q2(c);return{start:a,end:f?{from:f.from,to:f.to}:void 0,matched:!0}}else if(j2(c.type,t,r))h++;else if(j2(c.type,-t,r)){if(h==0){let f=q2(c);return{start:a,end:f&&f.from<f.to?{from:f.from,to:f.to}:void 0,matched:!1}}h--}}while(t<0?c.prevSibling():c.nextSibling());return{start:a,matched:!1}}function Lp(n,e,t,i,s,o,r){let l=t<0?n.sliceDoc(e-1,e):n.sliceDoc(e,e+1),a=r.indexOf(l);if(a<0||a%2==0!=t>0)return null;let h={from:t<0?e-1:e,to:t>0?e+1:e},c=n.doc.iterRange(e,t>0?n.doc.length:0),f=0;for(let d=0;!c.next().done&&d<=o;){let p=c.value;t<0&&(d+=p.length);let g=e+d*t;for(let m=t>0?0:p.length-1,v=t>0?p.length:-1;m!=v;m+=t){let w=r.indexOf(p[m]);if(!(w<0||i.resolveInner(g+m,1).type!=s))if(w%2==0==t>0)f++;else{if(f==1)return{start:h,end:{from:g+m,to:g+m+1},matched:w>>1==a>>1};f--}}t>0&&(d+=p.length)}return c.done?{start:h,matched:!1}:null}const Np=Object.create(null),nr=[Ve.none],sr=[],or=Object.create(null),Rp=Object.create(null);for(let[n,e]of[["variable","variableName"],["variable-2","variableName.special"],["string-2","string.special"],["def","variableName.definition"],["tag","tagName"],["attribute","attributeName"],["type","typeName"],["builtin","variableName.standard"],["qualifier","modifier"],["error","invalid"],["header","heading"],["property","propertyName"]])Rp[n]=Ip(Np,e);function Yn(n,e){sr.indexOf(n)>-1||(sr.push(n),console.warn(e))}function Ip(n,e){let t=[];for(let l of e.split(" ")){let a=[];for(let h of l.split(".")){let c=n[h]||D[h];c?typeof c=="function"?a.length?a=a.map(c):Yn(h,`Modifier ${h} used at start of tag`):a.length?Yn(h,`Tag ${h} used as modifier`):a=Array.isArray(c)?c:[c]:Yn(h,`Unknown highlighting tag ${h}`)}for(let h of a)t.push(h)}if(!t.length)return 0;let i=e.replace(/ /g,"_"),s=i+" "+t.map(l=>l.id),o=or[s];if(o)return o.id;let r=or[s]=Ve.define({id:nr.length,name:i,props:[Pa({[i]:t})]});return nr.push(r),r.id}se.RTL,se.LTR;const Hp=n=>{let{state:e}=n,t=e.doc.lineAt(e.selection.main.from),i=Ms(n.state,t.from);return i.line?$p(n):i.block?Fp(n):!1};function Os(n,e){return({state:t,dispatch:i})=>{if(t.readOnly)return!1;let s=n(e,t);return s?(i(t.update(s)),!0):!1}}const $p=Os(qp,0),Wp=Os(Qa,0),Fp=Os((n,e)=>Qa(n,e,jp(e)),0);function Ms(n,e){let t=n.languageDataAt("commentTokens",e,1);return t.length?t[0]:{}}const y0=50;function Gp(n,{open:e,close:t},i,s){let o=n.sliceDoc(i-y0,i),r=n.sliceDoc(s,s+y0),l=/\s*$/.exec(o)[0].length,a=/^\s*/.exec(r)[0].length,h=o.length-l;if(o.slice(h-e.length,h)==e&&r.slice(a,a+t.length)==t)return{open:{pos:i-l,margin:l&&1},close:{pos:s+a,margin:a&&1}};let c,f;s-i<=2*y0?c=f=n.sliceDoc(i,s):(c=n.sliceDoc(i,i+y0),f=n.sliceDoc(s-y0,s));let d=/^\s*/.exec(c)[0].length,p=/\s*$/.exec(f)[0].length,g=f.length-p-t.length;return c.slice(d,d+e.length)==e&&f.slice(g,g+t.length)==t?{open:{pos:i+d+e.length,margin:/\s/.test(c.charAt(d+e.length))?1:0},close:{pos:s-p-t.length,margin:/\s/.test(f.charAt(g-1))?1:0}}:null}function jp(n){let e=[];for(let t of n.selection.ranges){let i=n.doc.lineAt(t.from),s=t.to<=i.to?i:n.doc.lineAt(t.to);s.from>i.from&&s.from==t.to&&(s=t.to==i.to+1?i:n.doc.lineAt(t.to-1));let o=e.length-1;o>=0&&e[o].to>i.from?e[o].to=s.to:e.push({from:i.from+/^\s*/.exec(i.text)[0].length,to:s.to})}return e}function Qa(n,e,t=e.selection.ranges){let i=t.map(o=>Ms(e,o.from).block);if(!i.every(o=>o))return null;let s=t.map((o,r)=>Gp(e,i[r],o.from,o.to));if(n!=2&&!s.every(o=>o))return{changes:e.changes(t.map((o,r)=>s[r]?[]:[{from:o.from,insert:i[r].open+" "},{from:o.to,insert:" "+i[r].close}]))};if(n!=1&&s.some(o=>o)){let o=[];for(let r=0,l;r<s.length;r++)if(l=s[r]){let a=i[r],{open:h,close:c}=l;o.push({from:h.pos-a.open.length,to:h.pos+h.margin},{from:c.pos-c.margin,to:c.pos+a.close.length})}return{changes:o}}return null}function qp(n,e,t=e.selection.ranges){let i=[],s=-1;for(let{from:o,to:r}of t){let l=i.length,a=1e9,h=Ms(e,o).line;if(h){for(let c=o;c<=r;){let f=e.doc.lineAt(c);if(f.from>s&&(o==r||r>f.from)){s=f.from;let d=/^\s*/.exec(f.text)[0].length,p=d==f.length,g=f.text.slice(d,d+h.length)==h?d:-1;d<f.text.length&&d<a&&(a=d),i.push({line:f,comment:g,token:h,indent:d,empty:p,single:!1})}c=f.to+1}if(a<1e9)for(let c=l;c<i.length;c++)i[c].indent<i[c].line.text.length&&(i[c].indent=a);i.length==l+1&&(i[l].single=!0)}}if(n!=2&&i.some(o=>o.comment<0&&(!o.empty||o.single))){let o=[];for(let{line:l,token:a,indent:h,empty:c,single:f}of i)(f||!c)&&o.push({from:l.from+h,insert:a+" "});let r=e.changes(o);return{changes:r,selection:e.selection.map(r,1)}}else if(n!=1&&i.some(o=>o.comment>=0)){let o=[];for(let{line:r,comment:l,token:a}of i)if(l>=0){let h=r.from+l,c=h+a.length;r.text[c-r.from]==" "&&c++,o.push({from:h,to:c})}return{changes:o}}return null}const U2=gt.define(),Up=gt.define(),Yp=L.define(),Ja=L.define({combine(n){return lt(n,{minDepth:100,newGroupDelay:500,joinToEvent:(e,t)=>t},{minDepth:Math.max,newGroupDelay:Math.min,joinToEvent:(e,t)=>(i,s)=>e(i,s)||t(i,s)})}}),Za=be.define({create(){return st.empty},update(n,e){let t=e.state.facet(Ja),i=e.annotation(U2);if(i){let a=Ee.fromTransaction(e,i.selection),h=i.side,c=h==0?n.undone:n.done;return a?c=tn(c,c.length,t.minDepth,a):c=ic(c,e.startState.selection),new st(h==0?i.rest:c,h==0?c:i.rest)}let s=e.annotation(Up);if((s=="full"||s=="before")&&(n=n.isolate()),e.annotation(fe.addToHistory)===!1)return e.changes.empty?n:n.addMapping(e.changes.desc);let o=Ee.fromTransaction(e),r=e.annotation(fe.time),l=e.annotation(fe.userEvent);return o?n=n.addChanges(o,r,l,t,e):e.selection&&(n=n.addSelection(e.startState.selection,r,l,t.newGroupDelay)),(s=="full"||s=="after")&&(n=n.isolate()),n},toJSON(n){return{done:n.done.map(e=>e.toJSON()),undone:n.undone.map(e=>e.toJSON())}},fromJSON(n){return new st(n.done.map(Ee.fromJSON),n.undone.map(Ee.fromJSON))}});function Kp(n={}){return[Za,Ja.of(n),z.domEventHandlers({beforeinput(e,t){let i=e.inputType=="historyUndo"?ec:e.inputType=="historyRedo"?Y2:null;return i?(e.preventDefault(),i(t)):!1}})]}function Sn(n,e){return function({state:t,dispatch:i}){if(!e&&t.readOnly)return!1;let s=t.field(Za,!1);if(!s)return!1;let o=s.pop(n,t,e);return o?(i(o),!0):!1}}const ec=Sn(0,!1),Y2=Sn(1,!1),Xp=Sn(0,!0),Qp=Sn(1,!0);class Ee{constructor(e,t,i,s,o){this.changes=e,this.effects=t,this.mapped=i,this.startSelection=s,this.selectionsAfter=o}setSelAfter(e){return new Ee(this.changes,this.effects,this.mapped,this.startSelection,e)}toJSON(){var e,t,i;return{changes:(e=this.changes)===null||e===void 0?void 0:e.toJSON(),mapped:(t=this.mapped)===null||t===void 0?void 0:t.toJSON(),startSelection:(i=this.startSelection)===null||i===void 0?void 0:i.toJSON(),selectionsAfter:this.selectionsAfter.map(s=>s.toJSON())}}static fromJSON(e){return new Ee(e.changes&&ue.fromJSON(e.changes),[],e.mapped&&ot.fromJSON(e.mapped),e.startSelection&&O.fromJSON(e.startSelection),e.selectionsAfter.map(O.fromJSON))}static fromTransaction(e,t){let i=He;for(let s of e.startState.facet(Yp)){let o=s(e);o.length&&(i=i.concat(o))}return!i.length&&e.changes.empty?null:new Ee(e.changes.invert(e.startState.doc),i,void 0,t||e.startState.selection,He)}static selection(e){return new Ee(void 0,He,void 0,void 0,e)}}function tn(n,e,t,i){let s=e+1>t+20?e-t-1:0,o=n.slice(s,e);return o.push(i),o}function Jp(n,e){let t=[],i=!1;return n.iterChangedRanges((s,o)=>t.push(s,o)),e.iterChangedRanges((s,o,r,l)=>{for(let a=0;a<t.length;){let h=t[a++],c=t[a++];l>=h&&r<=c&&(i=!0)}}),i}function Zp(n,e){return n.ranges.length==e.ranges.length&&n.ranges.filter((t,i)=>t.empty!=e.ranges[i].empty).length===0}function tc(n,e){return n.length?e.length?n.concat(e):n:e}const He=[],e8=200;function ic(n,e){if(n.length){let t=n[n.length-1],i=t.selectionsAfter.slice(Math.max(0,t.selectionsAfter.length-e8));return i.length&&i[i.length-1].eq(e)?n:(i.push(e),tn(n,n.length-1,1e9,t.setSelAfter(i)))}else return[Ee.selection([e])]}function t8(n){let e=n[n.length-1],t=n.slice();return t[n.length-1]=e.setSelAfter(e.selectionsAfter.slice(0,e.selectionsAfter.length-1)),t}function Kn(n,e){if(!n.length)return n;let t=n.length,i=He;for(;t;){let s=i8(n[t-1],e,i);if(s.changes&&!s.changes.empty||s.effects.length){let o=n.slice(0,t);return o[t-1]=s,o}else e=s.mapped,t--,i=s.selectionsAfter}return i.length?[Ee.selection(i)]:He}function i8(n,e,t){let i=tc(n.selectionsAfter.length?n.selectionsAfter.map(l=>l.map(e)):He,t);if(!n.changes)return Ee.selection(i);let s=n.changes.map(e),o=e.mapDesc(n.changes,!0),r=n.mapped?n.mapped.composeDesc(o):o;return new Ee(s,G.mapEffects(n.effects,e),r,n.startSelection.map(o),i)}const n8=/^(input\.type|delete)($|\.)/;class st{constructor(e,t,i=0,s=void 0){this.done=e,this.undone=t,this.prevTime=i,this.prevUserEvent=s}isolate(){return this.prevTime?new st(this.done,this.undone):this}addChanges(e,t,i,s,o){let r=this.done,l=r[r.length-1];return l&&l.changes&&!l.changes.empty&&e.changes&&(!i||n8.test(i))&&(!l.selectionsAfter.length&&t-this.prevTime<s.newGroupDelay&&s.joinToEvent(o,Jp(l.changes,e.changes))||i=="input.type.compose")?r=tn(r,r.length-1,s.minDepth,new Ee(e.changes.compose(l.changes),tc(G.mapEffects(e.effects,l.changes),l.effects),l.mapped,l.startSelection,He)):r=tn(r,r.length,s.minDepth,e),new st(r,He,t,i)}addSelection(e,t,i,s){let o=this.done.length?this.done[this.done.length-1].selectionsAfter:He;return o.length>0&&t-this.prevTime<s&&i==this.prevUserEvent&&i&&/^select($|\.)/.test(i)&&Zp(o[o.length-1],e)?this:new st(ic(this.done,e),this.undone,t,i)}addMapping(e){return new st(Kn(this.done,e),Kn(this.undone,e),this.prevTime,this.prevUserEvent)}pop(e,t,i){let s=e==0?this.done:this.undone;if(s.length==0)return null;let o=s[s.length-1],r=o.selectionsAfter[0]||t.selection;if(i&&o.selectionsAfter.length)return t.update({selection:o.selectionsAfter[o.selectionsAfter.length-1],annotations:U2.of({side:e,rest:t8(s),selection:r}),userEvent:e==0?"select.undo":"select.redo",scrollIntoView:!0});if(o.changes){let l=s.length==1?He:s.slice(0,s.length-1);return o.mapped&&(l=Kn(l,o.mapped)),t.update({changes:o.changes,selection:o.startSelection,effects:o.effects,annotations:U2.of({side:e,rest:l,selection:r}),filter:!1,userEvent:e==0?"undo":"redo",scrollIntoView:!0})}else return null}}st.empty=new st(He,He);const s8=[{key:"Mod-z",run:ec,preventDefault:!0},{key:"Mod-y",mac:"Mod-Shift-z",run:Y2,preventDefault:!0},{linux:"Ctrl-Shift-z",run:Y2,preventDefault:!0},{key:"Mod-u",run:Xp,preventDefault:!0},{key:"Alt-u",mac:"Mod-Shift-u",run:Qp,preventDefault:!0}];function d0(n,e){return O.create(n.ranges.map(e),n.mainIndex)}function at(n,e){return n.update({selection:e,scrollIntoView:!0,userEvent:"select"})}function Ke({state:n,dispatch:e},t){let i=d0(n.selection,t);return i.eq(n.selection,!0)?!1:(e(at(n,i)),!0)}function Cn(n,e){return O.cursor(e?n.to:n.from)}function nc(n,e){return Ke(n,t=>t.empty?n.moveByChar(t,e):Cn(t,e))}function Se(n){return n.textDirectionAt(n.state.selection.main.head)==se.LTR}const sc=n=>nc(n,!Se(n)),oc=n=>nc(n,Se(n));function rc(n,e){return Ke(n,t=>t.empty?n.moveByGroup(t,e):Cn(t,e))}const o8=n=>rc(n,!Se(n)),r8=n=>rc(n,Se(n));function l8(n,e,t){if(e.type.prop(t))return!0;let i=e.to-e.from;return i&&(i>2||/[^\s,.;:]/.test(n.sliceDoc(e.from,e.to)))||e.firstChild}function _n(n,e,t){let i=me(n).resolveInner(e.head),s=t?j.closedBy:j.openedBy;for(let a=e.head;;){let h=t?i.childAfter(a):i.childBefore(a);if(!h)break;l8(n,h,s)?i=h:a=t?h.to:h.from}let o=i.type.prop(s),r,l;return o&&(r=t?nt(n,i.from,1):nt(n,i.to,-1))&&r.matched?l=t?r.end.to:r.end.from:l=t?i.to:i.from,O.cursor(l,t?-1:1)}const a8=n=>Ke(n,e=>_n(n.state,e,!Se(n))),c8=n=>Ke(n,e=>_n(n.state,e,Se(n)));function lc(n,e){return Ke(n,t=>{if(!t.empty)return Cn(t,e);let i=n.moveVertically(t,e);return i.head!=t.head?i:n.moveToLineBoundary(t,e)})}const ac=n=>lc(n,!1),cc=n=>lc(n,!0);function hc(n){let e=n.scrollDOM.clientHeight<n.scrollDOM.scrollHeight-2,t=0,i=0,s;if(e){for(let o of n.state.facet(z.scrollMargins)){let r=o(n);r!=null&&r.top&&(t=Math.max(r==null?void 0:r.top,t)),r!=null&&r.bottom&&(i=Math.max(r==null?void 0:r.bottom,i))}s=n.scrollDOM.clientHeight-t-i}else s=(n.dom.ownerDocument.defaultView||window).innerHeight;return{marginTop:t,marginBottom:i,selfScroll:e,height:Math.max(n.defaultLineHeight,s-5)}}function uc(n,e){let t=hc(n),{state:i}=n,s=d0(i.selection,r=>r.empty?n.moveVertically(r,e,t.height):Cn(r,e));if(s.eq(i.selection))return!1;let o;if(t.selfScroll){let r=n.coordsAtPos(i.selection.main.head),l=n.scrollDOM.getBoundingClientRect(),a=l.top+t.marginTop,h=l.bottom-t.marginBottom;r&&r.top>a&&r.bottom<h&&(o=z.scrollIntoView(s.main.head,{y:"start",yMargin:r.top-a}))}return n.dispatch(at(i,s),{effects:o}),!0}const rr=n=>uc(n,!1),K2=n=>uc(n,!0);function At(n,e,t){let i=n.lineBlockAt(e.head),s=n.moveToLineBoundary(e,t);if(s.head==e.head&&s.head!=(t?i.to:i.from)&&(s=n.moveToLineBoundary(e,t,!1)),!t&&s.head==i.from&&i.length){let o=/^\s*/.exec(n.state.sliceDoc(i.from,Math.min(i.from+100,i.to)))[0].length;o&&e.head!=i.from+o&&(s=O.cursor(i.from+o))}return s}const h8=n=>Ke(n,e=>At(n,e,!0)),u8=n=>Ke(n,e=>At(n,e,!1)),f8=n=>Ke(n,e=>At(n,e,!Se(n))),d8=n=>Ke(n,e=>At(n,e,Se(n))),p8=n=>Ke(n,e=>O.cursor(n.lineBlockAt(e.head).from,1)),g8=n=>Ke(n,e=>O.cursor(n.lineBlockAt(e.head).to,-1));function m8(n,e,t){let i=!1,s=d0(n.selection,o=>{let r=nt(n,o.head,-1)||nt(n,o.head,1)||o.head>0&&nt(n,o.head-1,1)||o.head<n.doc.length&&nt(n,o.head+1,-1);if(!r||!r.end)return o;i=!0;let l=r.start.from==o.head?r.end.to:r.end.from;return O.cursor(l)});return i?(e(at(n,s)),!0):!1}const v8=({state:n,dispatch:e})=>m8(n,e);function je(n,e){let t=d0(n.state.selection,i=>{let s=e(i);return O.range(i.anchor,s.head,s.goalColumn,s.bidiLevel||void 0)});return t.eq(n.state.selection)?!1:(n.dispatch(at(n.state,t)),!0)}function fc(n,e){return je(n,t=>n.moveByChar(t,e))}const dc=n=>fc(n,!Se(n)),pc=n=>fc(n,Se(n));function gc(n,e){return je(n,t=>n.moveByGroup(t,e))}const w8=n=>gc(n,!Se(n)),x8=n=>gc(n,Se(n)),b8=n=>je(n,e=>_n(n.state,e,!Se(n))),y8=n=>je(n,e=>_n(n.state,e,Se(n)));function mc(n,e){return je(n,t=>n.moveVertically(t,e))}const vc=n=>mc(n,!1),wc=n=>mc(n,!0);function xc(n,e){return je(n,t=>n.moveVertically(t,e,hc(n).height))}const lr=n=>xc(n,!1),ar=n=>xc(n,!0),k8=n=>je(n,e=>At(n,e,!0)),S8=n=>je(n,e=>At(n,e,!1)),C8=n=>je(n,e=>At(n,e,!Se(n))),_8=n=>je(n,e=>At(n,e,Se(n))),O8=n=>je(n,e=>O.cursor(n.lineBlockAt(e.head).from)),M8=n=>je(n,e=>O.cursor(n.lineBlockAt(e.head).to)),cr=({state:n,dispatch:e})=>(e(at(n,{anchor:0})),!0),hr=({state:n,dispatch:e})=>(e(at(n,{anchor:n.doc.length})),!0),ur=({state:n,dispatch:e})=>(e(at(n,{anchor:n.selection.main.anchor,head:0})),!0),fr=({state:n,dispatch:e})=>(e(at(n,{anchor:n.selection.main.anchor,head:n.doc.length})),!0),D8=({state:n,dispatch:e})=>(e(n.update({selection:{anchor:0,head:n.doc.length},userEvent:"select"})),!0),T8=({state:n,dispatch:e})=>{let t=On(n).map(({from:i,to:s})=>O.range(i,Math.min(s+1,n.doc.length)));return e(n.update({selection:O.create(t),userEvent:"select"})),!0},A8=({state:n,dispatch:e})=>{let t=d0(n.selection,i=>{let s=me(n),o=s.resolveStack(i.from,1);if(i.empty){let r=s.resolveStack(i.from,-1);r.node.from>=o.node.from&&r.node.to<=o.node.to&&(o=r)}for(let r=o;r;r=r.next){let{node:l}=r;if((l.from<i.from&&l.to>=i.to||l.to>i.to&&l.from<=i.from)&&r.next)return O.range(l.to,l.from)}return i});return t.eq(n.selection)?!1:(e(at(n,t)),!0)},B8=({state:n,dispatch:e})=>{let t=n.selection,i=null;return t.ranges.length>1?i=O.create([t.main]):t.main.empty||(i=O.create([O.cursor(t.main.head)])),i?(e(at(n,i)),!0):!1};function ei(n,e){if(n.state.readOnly)return!1;let t="delete.selection",{state:i}=n,s=i.changeByRange(o=>{let{from:r,to:l}=o;if(r==l){let a=e(o);a<r?(t="delete.backward",a=bi(n,a,!1)):a>r&&(t="delete.forward",a=bi(n,a,!0)),r=Math.min(r,a),l=Math.max(l,a)}else r=bi(n,r,!1),l=bi(n,l,!0);return r==l?{range:o}:{changes:{from:r,to:l},range:O.cursor(r,r<o.head?-1:1)}});return s.changes.empty?!1:(n.dispatch(i.update(s,{scrollIntoView:!0,userEvent:t,effects:t=="delete.selection"?z.announce.of(i.phrase("Selection deleted")):void 0})),!0)}function bi(n,e,t){if(n instanceof z)for(let i of n.state.facet(z.atomicRanges).map(s=>s(n)))i.between(e,e,(s,o)=>{s<e&&o>e&&(e=t?o:s)});return e}const bc=(n,e,t)=>ei(n,i=>{let s=i.from,{state:o}=n,r=o.doc.lineAt(s),l,a;if(t&&!e&&s>r.from&&s<r.from+200&&!/[^ \t]/.test(l=r.text.slice(0,s-r.from))){if(l[l.length-1]==" ")return s-1;let h=f0(l,o.tabSize),c=h%Ji(o)||Ji(o);for(let f=0;f<c&&l[l.length-1-f]==" ";f++)s--;a=s}else a=xe(r.text,s-r.from,e,e)+r.from,a==s&&r.number!=(e?o.doc.lines:1)?a+=e?1:-1:!e&&/[\ufe00-\ufe0f]/.test(r.text.slice(a-r.from,s-r.from))&&(a=xe(r.text,a-r.from,!1,!1)+r.from);return a}),X2=n=>bc(n,!1,!0),yc=n=>bc(n,!0,!1),kc=(n,e)=>ei(n,t=>{let i=t.head,{state:s}=n,o=s.doc.lineAt(i),r=s.charCategorizer(i);for(let l=null;;){if(i==(e?o.to:o.from)){i==t.head&&o.number!=(e?s.doc.lines:1)&&(i+=e?1:-1);break}let a=xe(o.text,i-o.from,e)+o.from,h=o.text.slice(Math.min(i,a)-o.from,Math.max(i,a)-o.from),c=r(h);if(l!=null&&c!=l)break;(h!=" "||i!=t.head)&&(l=c),i=a}return i}),Sc=n=>kc(n,!1),P8=n=>kc(n,!0),E8=n=>ei(n,e=>{let t=n.lineBlockAt(e.head).to;return e.head<t?t:Math.min(n.state.doc.length,e.head+1)}),V8=n=>ei(n,e=>{let t=n.moveToLineBoundary(e,!1).head;return e.head>t?t:Math.max(0,e.head-1)}),z8=n=>ei(n,e=>{let t=n.moveToLineBoundary(e,!0).head;return e.head<t?t:Math.min(n.state.doc.length,e.head+1)}),L8=({state:n,dispatch:e})=>{if(n.readOnly)return!1;let t=n.changeByRange(i=>({changes:{from:i.from,to:i.to,insert:Y.of(["",""])},range:O.cursor(i.from)}));return e(n.update(t,{scrollIntoView:!0,userEvent:"input"})),!0},N8=({state:n,dispatch:e})=>{if(n.readOnly)return!1;let t=n.changeByRange(i=>{if(!i.empty||i.from==0||i.from==n.doc.length)return{range:i};let s=i.from,o=n.doc.lineAt(s),r=s==o.from?s-1:xe(o.text,s-o.from,!1)+o.from,l=s==o.to?s+1:xe(o.text,s-o.from,!0)+o.from;return{changes:{from:r,to:l,insert:n.doc.slice(s,l).append(n.doc.slice(r,s))},range:O.cursor(l)}});return t.changes.empty?!1:(e(n.update(t,{scrollIntoView:!0,userEvent:"move.character"})),!0)};function On(n){let e=[],t=-1;for(let i of n.selection.ranges){let s=n.doc.lineAt(i.from),o=n.doc.lineAt(i.to);if(!i.empty&&i.to==o.from&&(o=n.doc.lineAt(i.to-1)),t>=s.number){let r=e[e.length-1];r.to=o.to,r.ranges.push(i)}else e.push({from:s.from,to:o.to,ranges:[i]});t=o.number+1}return e}function Cc(n,e,t){if(n.readOnly)return!1;let i=[],s=[];for(let o of On(n)){if(t?o.to==n.doc.length:o.from==0)continue;let r=n.doc.lineAt(t?o.to+1:o.from-1),l=r.length+1;if(t){i.push({from:o.to,to:r.to},{from:o.from,insert:r.text+n.lineBreak});for(let a of o.ranges)s.push(O.range(Math.min(n.doc.length,a.anchor+l),Math.min(n.doc.length,a.head+l)))}else{i.push({from:r.from,to:o.from},{from:o.to,insert:n.lineBreak+r.text});for(let a of o.ranges)s.push(O.range(a.anchor-l,a.head-l))}}return i.length?(e(n.update({changes:i,scrollIntoView:!0,selection:O.create(s,n.selection.mainIndex),userEvent:"move.line"})),!0):!1}const R8=({state:n,dispatch:e})=>Cc(n,e,!1),I8=({state:n,dispatch:e})=>Cc(n,e,!0);function _c(n,e,t){if(n.readOnly)return!1;let i=[];for(let s of On(n))t?i.push({from:s.from,insert:n.doc.slice(s.from,s.to)+n.lineBreak}):i.push({from:s.to,insert:n.lineBreak+n.doc.slice(s.from,s.to)});return e(n.update({changes:i,scrollIntoView:!0,userEvent:"input.copyline"})),!0}const H8=({state:n,dispatch:e})=>_c(n,e,!1),$8=({state:n,dispatch:e})=>_c(n,e,!0),W8=n=>{if(n.state.readOnly)return!1;let{state:e}=n,t=e.changes(On(e).map(({from:s,to:o})=>(s>0?s--:o<e.doc.length&&o++,{from:s,to:o}))),i=d0(e.selection,s=>{let o;if(n.lineWrapping){let r=n.lineBlockAt(s.head),l=n.coordsAtPos(s.head,s.assoc||1);l&&(o=r.bottom+n.documentTop-l.bottom+n.defaultLineHeight/2)}return n.moveVertically(s,!0,o)}).map(t);return n.dispatch({changes:t,selection:i,scrollIntoView:!0,userEvent:"delete.line"}),!0};function F8(n,e){if(/\(\)|\[\]|\{\}/.test(n.sliceDoc(e-1,e+1)))return{from:e,to:e};let t=me(n).resolveInner(e),i=t.childBefore(e),s=t.childAfter(e),o;return i&&s&&i.to<=e&&s.from>=e&&(o=i.type.prop(j.closedBy))&&o.indexOf(s.name)>-1&&n.doc.lineAt(i.to).from==n.doc.lineAt(s.from).from&&!/\S/.test(n.sliceDoc(i.to,s.from))?{from:i.to,to:s.from}:null}const dr=Oc(!1),G8=Oc(!0);function Oc(n){return({state:e,dispatch:t})=>{if(e.readOnly)return!1;let i=e.changeByRange(s=>{let{from:o,to:r}=s,l=e.doc.lineAt(o),a=!n&&o==r&&F8(e,o);n&&(o=r=(r<=l.to?l:e.doc.lineAt(r)).to);let h=new bn(e,{simulateBreak:o,simulateDoubleBreak:!!a}),c=Cs(h,o);for(c==null&&(c=f0(/^\s*/.exec(e.doc.lineAt(o).text)[0],e.tabSize));r<l.to&&/\s/.test(l.text[r-l.from]);)r++;a?{from:o,to:r}=a:o>l.from&&o<l.from+100&&!/\S/.test(l.text.slice(0,o))&&(o=l.from);let f=["",G0(e,c)];return a&&f.push(G0(e,h.lineIndent(l.from,-1))),{changes:{from:o,to:r,insert:Y.of(f)},range:O.cursor(o+1+f[1].length)}});return t(e.update(i,{scrollIntoView:!0,userEvent:"input"})),!0}}function Ds(n,e){let t=-1;return n.changeByRange(i=>{let s=[];for(let r=i.from;r<=i.to;){let l=n.doc.lineAt(r);l.number>t&&(i.empty||i.to>l.from)&&(e(l,s,i),t=l.number),r=l.to+1}let o=n.changes(s);return{changes:s,range:O.range(o.mapPos(i.anchor,1),o.mapPos(i.head,1))}})}const j8=({state:n,dispatch:e})=>{if(n.readOnly)return!1;let t=Object.create(null),i=new bn(n,{overrideIndentation:o=>{let r=t[o];return r??-1}}),s=Ds(n,(o,r,l)=>{let a=Cs(i,o.from);if(a==null)return;/\S/.test(o.text)||(a=0);let h=/^\s*/.exec(o.text)[0],c=G0(n,a);(h!=c||l.from<o.from+h.length)&&(t[o.from]=a,r.push({from:o.from,to:o.from+h.length,insert:c}))});return s.changes.empty||e(n.update(s,{userEvent:"indent"})),!0},q8=({state:n,dispatch:e})=>n.readOnly?!1:(e(n.update(Ds(n,(t,i)=>{i.push({from:t.from,insert:n.facet(Ss)})}),{userEvent:"input.indent"})),!0),U8=({state:n,dispatch:e})=>n.readOnly?!1:(e(n.update(Ds(n,(t,i)=>{let s=/^\s*/.exec(t.text)[0];if(!s)return;let o=f0(s,n.tabSize),r=0,l=G0(n,Math.max(0,o-Ji(n)));for(;r<s.length&&r<l.length&&s.charCodeAt(r)==l.charCodeAt(r);)r++;i.push({from:t.from+r,to:t.from+s.length,insert:l.slice(r)})}),{userEvent:"delete.dedent"})),!0),Y8=n=>(n.setTabFocusMode(),!0),K8=[{key:"Ctrl-b",run:sc,shift:dc,preventDefault:!0},{key:"Ctrl-f",run:oc,shift:pc},{key:"Ctrl-p",run:ac,shift:vc},{key:"Ctrl-n",run:cc,shift:wc},{key:"Ctrl-a",run:p8,shift:O8},{key:"Ctrl-e",run:g8,shift:M8},{key:"Ctrl-d",run:yc},{key:"Ctrl-h",run:X2},{key:"Ctrl-k",run:E8},{key:"Ctrl-Alt-h",run:Sc},{key:"Ctrl-o",run:L8},{key:"Ctrl-t",run:N8},{key:"Ctrl-v",run:K2}],X8=[{key:"ArrowLeft",run:sc,shift:dc,preventDefault:!0},{key:"Mod-ArrowLeft",mac:"Alt-ArrowLeft",run:o8,shift:w8,preventDefault:!0},{mac:"Cmd-ArrowLeft",run:f8,shift:C8,preventDefault:!0},{key:"ArrowRight",run:oc,shift:pc,preventDefault:!0},{key:"Mod-ArrowRight",mac:"Alt-ArrowRight",run:r8,shift:x8,preventDefault:!0},{mac:"Cmd-ArrowRight",run:d8,shift:_8,preventDefault:!0},{key:"ArrowUp",run:ac,shift:vc,preventDefault:!0},{mac:"Cmd-ArrowUp",run:cr,shift:ur},{mac:"Ctrl-ArrowUp",run:rr,shift:lr},{key:"ArrowDown",run:cc,shift:wc,preventDefault:!0},{mac:"Cmd-ArrowDown",run:hr,shift:fr},{mac:"Ctrl-ArrowDown",run:K2,shift:ar},{key:"PageUp",run:rr,shift:lr},{key:"PageDown",run:K2,shift:ar},{key:"Home",run:u8,shift:S8,preventDefault:!0},{key:"Mod-Home",run:cr,shift:ur},{key:"End",run:h8,shift:k8,preventDefault:!0},{key:"Mod-End",run:hr,shift:fr},{key:"Enter",run:dr,shift:dr},{key:"Mod-a",run:D8},{key:"Backspace",run:X2,shift:X2},{key:"Delete",run:yc},{key:"Mod-Backspace",mac:"Alt-Backspace",run:Sc},{key:"Mod-Delete",mac:"Alt-Delete",run:P8},{mac:"Mod-Backspace",run:V8},{mac:"Mod-Delete",run:z8}].concat(K8.map(n=>({mac:n.key,run:n.run,shift:n.shift}))),Q8=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:a8,shift:b8},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:c8,shift:y8},{key:"Alt-ArrowUp",run:R8},{key:"Shift-Alt-ArrowUp",run:H8},{key:"Alt-ArrowDown",run:I8},{key:"Shift-Alt-ArrowDown",run:$8},{key:"Escape",run:B8},{key:"Mod-Enter",run:G8},{key:"Alt-l",mac:"Ctrl-l",run:T8},{key:"Mod-i",run:A8,preventDefault:!0},{key:"Mod-[",run:U8},{key:"Mod-]",run:q8},{key:"Mod-Alt-\\",run:j8},{key:"Shift-Mod-k",run:W8},{key:"Shift-Mod-\\",run:v8},{key:"Mod-/",run:Hp},{key:"Alt-A",run:Wp},{key:"Ctrl-m",mac:"Shift-Alt-m",run:Y8}].concat(X8),pr=typeof String.prototype.normalize=="function"?n=>n.normalize("NFKD"):n=>n;class h0{constructor(e,t,i=0,s=e.length,o,r){this.test=r,this.value={from:0,to:0},this.done=!1,this.matches=[],this.buffer="",this.bufferPos=0,this.iter=e.iterRange(i,s),this.bufferStart=i,this.normalize=o?l=>o(pr(l)):pr,this.query=this.normalize(t)}peek(){if(this.bufferPos==this.buffer.length){if(this.bufferStart+=this.buffer.length,this.iter.next(),this.iter.done)return-1;this.bufferPos=0,this.buffer=this.iter.value}return Te(this.buffer,this.bufferPos)}next(){for(;this.matches.length;)this.matches.pop();return this.nextOverlapping()}nextOverlapping(){for(;;){let e=this.peek();if(e<0)return this.done=!0,this;let t=is(e),i=this.bufferStart+this.bufferPos;this.bufferPos+=tt(e);let s=this.normalize(t);if(s.length)for(let o=0,r=i;;o++){let l=s.charCodeAt(o),a=this.match(l,r,this.bufferPos+this.bufferStart);if(o==s.length-1){if(a)return this.value=a,this;break}r==i&&o<t.length&&t.charCodeAt(o)==l&&r++}}}match(e,t,i){let s=null;for(let o=0;o<this.matches.length;o+=2){let r=this.matches[o],l=!1;this.query.charCodeAt(r)==e&&(r==this.query.length-1?s={from:this.matches[o+1],to:i}:(this.matches[o]++,l=!0)),l||(this.matches.splice(o,2),o-=2)}return this.query.charCodeAt(0)==e&&(this.query.length==1?s={from:t,to:i}:this.matches.push(1,t)),s&&this.test&&!this.test(s.from,s.to,this.buffer,this.bufferStart)&&(s=null),s}}typeof Symbol<"u"&&(h0.prototype[Symbol.iterator]=function(){return this});const Mc={from:-1,to:-1,match:/.*/.exec("")},Ts="gm"+(/x/.unicode==null?"":"u");class Dc{constructor(e,t,i,s=0,o=e.length){if(this.text=e,this.to=o,this.curLine="",this.done=!1,this.value=Mc,/\\[sWDnr]|\n|\r|\[\^/.test(t))return new Tc(e,t,i,s,o);this.re=new RegExp(t,Ts+(i!=null&&i.ignoreCase?"i":"")),this.test=i==null?void 0:i.test,this.iter=e.iter();let r=e.lineAt(s);this.curLineStart=r.from,this.matchPos=nn(e,s),this.getLine(this.curLineStart)}getLine(e){this.iter.next(e),this.iter.lineBreak?this.curLine="":(this.curLine=this.iter.value,this.curLineStart+this.curLine.length>this.to&&(this.curLine=this.curLine.slice(0,this.to-this.curLineStart)),this.iter.next())}nextLine(){this.curLineStart=this.curLineStart+this.curLine.length+1,this.curLineStart>this.to?this.curLine="":this.getLine(0)}next(){for(let e=this.matchPos-this.curLineStart;;){this.re.lastIndex=e;let t=this.matchPos<=this.to&&this.re.exec(this.curLine);if(t){let i=this.curLineStart+t.index,s=i+t[0].length;if(this.matchPos=nn(this.text,s+(i==s?1:0)),i==this.curLineStart+this.curLine.length&&this.nextLine(),(i<s||i>this.value.to)&&(!this.test||this.test(i,s,t)))return this.value={from:i,to:s,match:t},this;e=this.matchPos-this.curLineStart}else if(this.curLineStart+this.curLine.length<this.to)this.nextLine(),e=0;else return this.done=!0,this}}}const Xn=new WeakMap;class i0{constructor(e,t){this.from=e,this.text=t}get to(){return this.from+this.text.length}static get(e,t,i){let s=Xn.get(e);if(!s||s.from>=i||s.to<=t){let l=new i0(t,e.sliceString(t,i));return Xn.set(e,l),l}if(s.from==t&&s.to==i)return s;let{text:o,from:r}=s;return r>t&&(o=e.sliceString(t,r)+o,r=t),s.to<i&&(o+=e.sliceString(s.to,i)),Xn.set(e,new i0(r,o)),new i0(t,o.slice(t-r,i-r))}}class Tc{constructor(e,t,i,s,o){this.text=e,this.to=o,this.done=!1,this.value=Mc,this.matchPos=nn(e,s),this.re=new RegExp(t,Ts+(i!=null&&i.ignoreCase?"i":"")),this.test=i==null?void 0:i.test,this.flat=i0.get(e,s,this.chunkEnd(s+5e3))}chunkEnd(e){return e>=this.to?this.to:this.text.lineAt(e).to}next(){for(;;){let e=this.re.lastIndex=this.matchPos-this.flat.from,t=this.re.exec(this.flat.text);if(t&&!t[0]&&t.index==e&&(this.re.lastIndex=e+1,t=this.re.exec(this.flat.text)),t){let i=this.flat.from+t.index,s=i+t[0].length;if((this.flat.to>=this.to||t.index+t[0].length<=this.flat.text.length-10)&&(!this.test||this.test(i,s,t)))return this.value={from:i,to:s,match:t},this.matchPos=nn(this.text,s+(i==s?1:0)),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=i0.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+this.flat.text.length*2))}}}typeof Symbol<"u"&&(Dc.prototype[Symbol.iterator]=Tc.prototype[Symbol.iterator]=function(){return this});function J8(n){try{return new RegExp(n,Ts),!0}catch{return!1}}function nn(n,e){if(e>=n.length)return e;let t=n.lineAt(e),i;for(;e<t.to&&(i=t.text.charCodeAt(e-t.from))>=56320&&i<57344;)e++;return e}function Q2(n){let e=String(n.state.doc.lineAt(n.state.selection.main.head).number),t=J("input",{class:"cm-textfield",name:"line",value:e}),i=J("form",{class:"cm-gotoLine",onkeydown:o=>{o.keyCode==27?(o.preventDefault(),n.dispatch({effects:B0.of(!1)}),n.focus()):o.keyCode==13&&(o.preventDefault(),s())},onsubmit:o=>{o.preventDefault(),s()}},J("label",n.state.phrase("Go to line"),": ",t)," ",J("button",{class:"cm-button",type:"submit"},n.state.phrase("go")),J("button",{name:"close",onclick:()=>{n.dispatch({effects:B0.of(!1)}),n.focus()},"aria-label":n.state.phrase("close"),type:"button"},["×"]));function s(){let o=/^([+-])?(\d+)?(:\d+)?(%)?$/.exec(t.value);if(!o)return;let{state:r}=n,l=r.doc.lineAt(r.selection.main.head),[,a,h,c,f]=o,d=c?+c.slice(1):0,p=h?+h:l.number;if(h&&f){let v=p/100;a&&(v=v*(a=="-"?-1:1)+l.number/r.doc.lines),p=Math.round(r.doc.lines*v)}else h&&a&&(p=p*(a=="-"?-1:1)+l.number);let g=r.doc.line(Math.max(1,Math.min(r.doc.lines,p))),m=O.cursor(g.from+Math.max(0,Math.min(d,g.length)));n.dispatch({effects:[B0.of(!1),z.scrollIntoView(m.from,{y:"center"})],selection:m}),n.focus()}return{dom:i}}const B0=G.define(),gr=be.define({create(){return!0},update(n,e){for(let t of e.effects)t.is(B0)&&(n=t.value);return n},provide:n=>W0.from(n,e=>e?Q2:null)}),Z8=n=>{let e=$0(n,Q2);if(!e){let t=[B0.of(!0)];n.state.field(gr,!1)==null&&t.push(G.appendConfig.of([gr,e5])),n.dispatch({effects:t}),e=$0(n,Q2)}return e&&e.dom.querySelector("input").select(),!0},e5=z.baseTheme({".cm-panel.cm-gotoLine":{padding:"2px 6px 4px",position:"relative","& label":{fontSize:"80%"},"& [name=close]":{position:"absolute",top:"0",bottom:"0",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",padding:"0"}}}),t5={highlightWordAroundCursor:!1,minSelectionLength:1,maxMatches:100,wholeWords:!1},i5=L.define({combine(n){return lt(n,t5,{highlightWordAroundCursor:(e,t)=>e||t,minSelectionLength:Math.min,maxMatches:Math.min})}});function n5(n){return[a5,l5]}const s5=W.mark({class:"cm-selectionMatch"}),o5=W.mark({class:"cm-selectionMatch cm-selectionMatch-main"});function mr(n,e,t,i){return(t==0||n(e.sliceDoc(t-1,t))!=oe.Word)&&(i==e.doc.length||n(e.sliceDoc(i,i+1))!=oe.Word)}function r5(n,e,t,i){return n(e.sliceDoc(t,t+1))==oe.Word&&n(e.sliceDoc(i-1,i))==oe.Word}const l5=he.fromClass(class{constructor(n){this.decorations=this.getDeco(n)}update(n){(n.selectionSet||n.docChanged||n.viewportChanged)&&(this.decorations=this.getDeco(n.view))}getDeco(n){let e=n.state.facet(i5),{state:t}=n,i=t.selection;if(i.ranges.length>1)return W.none;let s=i.main,o,r=null;if(s.empty){if(!e.highlightWordAroundCursor)return W.none;let a=t.wordAt(s.head);if(!a)return W.none;r=t.charCategorizer(s.head),o=t.sliceDoc(a.from,a.to)}else{let a=s.to-s.from;if(a<e.minSelectionLength||a>200)return W.none;if(e.wholeWords){if(o=t.sliceDoc(s.from,s.to),r=t.charCategorizer(s.head),!(mr(r,t,s.from,s.to)&&r5(r,t,s.from,s.to)))return W.none}else if(o=t.sliceDoc(s.from,s.to),!o)return W.none}let l=[];for(let a of n.visibleRanges){let h=new h0(t.doc,o,a.from,a.to);for(;!h.next().done;){let{from:c,to:f}=h.value;if((!r||mr(r,t,c,f))&&(s.empty&&c<=s.from&&f>=s.to?l.push(o5.range(c,f)):(c>=s.to||f<=s.from)&&l.push(s5.range(c,f)),l.length>e.maxMatches))return W.none}}return W.set(l)}},{decorations:n=>n.decorations}),a5=z.baseTheme({".cm-selectionMatch":{backgroundColor:"#99ff7780"},".cm-searchMatch .cm-selectionMatch":{backgroundColor:"transparent"}}),c5=({state:n,dispatch:e})=>{let{selection:t}=n,i=O.create(t.ranges.map(s=>n.wordAt(s.head)||O.cursor(s.head)),t.mainIndex);return i.eq(t)?!1:(e(n.update({selection:i})),!0)};function h5(n,e){let{main:t,ranges:i}=n.selection,s=n.wordAt(t.head),o=s&&s.from==t.from&&s.to==t.to;for(let r=!1,l=new h0(n.doc,e,i[i.length-1].to);;)if(l.next(),l.done){if(r)return null;l=new h0(n.doc,e,0,Math.max(0,i[i.length-1].from-1)),r=!0}else{if(r&&i.some(a=>a.from==l.value.from))continue;if(o){let a=n.wordAt(l.value.from);if(!a||a.from!=l.value.from||a.to!=l.value.to)continue}return l.value}}const u5=({state:n,dispatch:e})=>{let{ranges:t}=n.selection;if(t.some(o=>o.from===o.to))return c5({state:n,dispatch:e});let i=n.sliceDoc(t[0].from,t[0].to);if(n.selection.ranges.some(o=>n.sliceDoc(o.from,o.to)!=i))return!1;let s=h5(n,i);return s?(e(n.update({selection:n.selection.addRange(O.range(s.from,s.to),!1),effects:z.scrollIntoView(s.to)})),!0):!1},p0=L.define({combine(n){return lt(n,{top:!1,caseSensitive:!1,literal:!1,regexp:!1,wholeWord:!1,createPanel:e=>new S5(e),scrollToMatch:e=>z.scrollIntoView(e)})}});class Ac{constructor(e){this.search=e.search,this.caseSensitive=!!e.caseSensitive,this.literal=!!e.literal,this.regexp=!!e.regexp,this.replace=e.replace||"",this.valid=!!this.search&&(!this.regexp||J8(this.search)),this.unquoted=this.unquote(this.search),this.wholeWord=!!e.wholeWord}unquote(e){return this.literal?e:e.replace(/\\([nrt\\])/g,(t,i)=>i=="n"?`
|
|
12
|
-
`:i=="r"?"\r":i=="t"?" ":"\\")}eq(e){return this.search==e.search&&this.replace==e.replace&&this.caseSensitive==e.caseSensitive&&this.regexp==e.regexp&&this.wholeWord==e.wholeWord}create(){return this.regexp?new g5(this):new d5(this)}getCursor(e,t=0,i){let s=e.doc?e:q.create({doc:e});return i==null&&(i=s.doc.length),this.regexp?Yt(this,s,t,i):Ut(this,s,t,i)}}class Bc{constructor(e){this.spec=e}}function Ut(n,e,t,i){return new h0(e.doc,n.unquoted,t,i,n.caseSensitive?void 0:s=>s.toLowerCase(),n.wholeWord?f5(e.doc,e.charCategorizer(e.selection.main.head)):void 0)}function f5(n,e){return(t,i,s,o)=>((o>t||o+s.length<i)&&(o=Math.max(0,t-2),s=n.sliceString(o,Math.min(n.length,i+2))),(e(sn(s,t-o))!=oe.Word||e(on(s,t-o))!=oe.Word)&&(e(on(s,i-o))!=oe.Word||e(sn(s,i-o))!=oe.Word))}class d5 extends Bc{constructor(e){super(e)}nextMatch(e,t,i){let s=Ut(this.spec,e,i,e.doc.length).nextOverlapping();if(s.done){let o=Math.min(e.doc.length,t+this.spec.unquoted.length);s=Ut(this.spec,e,0,o).nextOverlapping()}return s.done||s.value.from==t&&s.value.to==i?null:s.value}prevMatchInRange(e,t,i){for(let s=i;;){let o=Math.max(t,s-1e4-this.spec.unquoted.length),r=Ut(this.spec,e,o,s),l=null;for(;!r.nextOverlapping().done;)l=r.value;if(l)return l;if(o==t)return null;s-=1e4}}prevMatch(e,t,i){let s=this.prevMatchInRange(e,0,t);return s||(s=this.prevMatchInRange(e,Math.max(0,i-this.spec.unquoted.length),e.doc.length)),s&&(s.from!=t||s.to!=i)?s:null}getReplacement(e){return this.spec.unquote(this.spec.replace)}matchAll(e,t){let i=Ut(this.spec,e,0,e.doc.length),s=[];for(;!i.next().done;){if(s.length>=t)return null;s.push(i.value)}return s}highlight(e,t,i,s){let o=Ut(this.spec,e,Math.max(0,t-this.spec.unquoted.length),Math.min(i+this.spec.unquoted.length,e.doc.length));for(;!o.next().done;)s(o.value.from,o.value.to)}}function Yt(n,e,t,i){return new Dc(e.doc,n.search,{ignoreCase:!n.caseSensitive,test:n.wholeWord?p5(e.charCategorizer(e.selection.main.head)):void 0},t,i)}function sn(n,e){return n.slice(xe(n,e,!1),e)}function on(n,e){return n.slice(e,xe(n,e))}function p5(n){return(e,t,i)=>!i[0].length||(n(sn(i.input,i.index))!=oe.Word||n(on(i.input,i.index))!=oe.Word)&&(n(on(i.input,i.index+i[0].length))!=oe.Word||n(sn(i.input,i.index+i[0].length))!=oe.Word)}class g5 extends Bc{nextMatch(e,t,i){let s=Yt(this.spec,e,i,e.doc.length).next();return s.done&&(s=Yt(this.spec,e,0,t).next()),s.done?null:s.value}prevMatchInRange(e,t,i){for(let s=1;;s++){let o=Math.max(t,i-s*1e4),r=Yt(this.spec,e,o,i),l=null;for(;!r.next().done;)l=r.value;if(l&&(o==t||l.from>o+10))return l;if(o==t)return null}}prevMatch(e,t,i){return this.prevMatchInRange(e,0,t)||this.prevMatchInRange(e,i,e.doc.length)}getReplacement(e){return this.spec.unquote(this.spec.replace).replace(/\$([$&]|\d+)/g,(t,i)=>{if(i=="&")return e.match[0];if(i=="$")return"$";for(let s=i.length;s>0;s--){let o=+i.slice(0,s);if(o>0&&o<e.match.length)return e.match[o]+i.slice(s)}return t})}matchAll(e,t){let i=Yt(this.spec,e,0,e.doc.length),s=[];for(;!i.next().done;){if(s.length>=t)return null;s.push(i.value)}return s}highlight(e,t,i,s){let o=Yt(this.spec,e,Math.max(0,t-250),Math.min(i+250,e.doc.length));for(;!o.next().done;)s(o.value.from,o.value.to)}}const j0=G.define(),As=G.define(),St=be.define({create(n){return new Qn(J2(n).create(),null)},update(n,e){for(let t of e.effects)t.is(j0)?n=new Qn(t.value.create(),n.panel):t.is(As)&&(n=new Qn(n.query,t.value?Bs:null));return n},provide:n=>W0.from(n,e=>e.panel)});class Qn{constructor(e,t){this.query=e,this.panel=t}}const m5=W.mark({class:"cm-searchMatch"}),v5=W.mark({class:"cm-searchMatch cm-searchMatch-selected"}),w5=he.fromClass(class{constructor(n){this.view=n,this.decorations=this.highlight(n.state.field(St))}update(n){let e=n.state.field(St);(e!=n.startState.field(St)||n.docChanged||n.selectionSet||n.viewportChanged)&&(this.decorations=this.highlight(e))}highlight({query:n,panel:e}){if(!e||!n.spec.valid)return W.none;let{view:t}=this,i=new ft;for(let s=0,o=t.visibleRanges,r=o.length;s<r;s++){let{from:l,to:a}=o[s];for(;s<r-1&&a>o[s+1].from-2*250;)a=o[++s].to;n.highlight(t.state,l,a,(h,c)=>{let f=t.state.selection.ranges.some(d=>d.from==h&&d.to==c);i.add(h,c,f?v5:m5)})}return i.finish()}},{decorations:n=>n.decorations});function ti(n){return e=>{let t=e.state.field(St,!1);return t&&t.query.spec.valid?n(e,t):Vc(e)}}const rn=ti((n,{query:e})=>{let{to:t}=n.state.selection.main,i=e.nextMatch(n.state,t,t);if(!i)return!1;let s=O.single(i.from,i.to),o=n.state.facet(p0);return n.dispatch({selection:s,effects:[Ps(n,i),o.scrollToMatch(s.main,n)],userEvent:"select.search"}),Ec(n),!0}),ln=ti((n,{query:e})=>{let{state:t}=n,{from:i}=t.selection.main,s=e.prevMatch(t,i,i);if(!s)return!1;let o=O.single(s.from,s.to),r=n.state.facet(p0);return n.dispatch({selection:o,effects:[Ps(n,s),r.scrollToMatch(o.main,n)],userEvent:"select.search"}),Ec(n),!0}),x5=ti((n,{query:e})=>{let t=e.matchAll(n.state,1e3);return!t||!t.length?!1:(n.dispatch({selection:O.create(t.map(i=>O.range(i.from,i.to))),userEvent:"select.search.matches"}),!0)}),b5=({state:n,dispatch:e})=>{let t=n.selection;if(t.ranges.length>1||t.main.empty)return!1;let{from:i,to:s}=t.main,o=[],r=0;for(let l=new h0(n.doc,n.sliceDoc(i,s));!l.next().done;){if(o.length>1e3)return!1;l.value.from==i&&(r=o.length),o.push(O.range(l.value.from,l.value.to))}return e(n.update({selection:O.create(o,r),userEvent:"select.search.matches"})),!0},vr=ti((n,{query:e})=>{let{state:t}=n,{from:i,to:s}=t.selection.main;if(t.readOnly)return!1;let o=e.nextMatch(t,i,i);if(!o)return!1;let r=o,l=[],a,h,c=[];r.from==i&&r.to==s&&(h=t.toText(e.getReplacement(r)),l.push({from:r.from,to:r.to,insert:h}),r=e.nextMatch(t,r.from,r.to),c.push(z.announce.of(t.phrase("replaced match on line $",t.doc.lineAt(i).number)+".")));let f=n.state.changes(l);return r&&(a=O.single(r.from,r.to).map(f),c.push(Ps(n,r)),c.push(t.facet(p0).scrollToMatch(a.main,n))),n.dispatch({changes:f,selection:a,effects:c,userEvent:"input.replace"}),!0}),y5=ti((n,{query:e})=>{if(n.state.readOnly)return!1;let t=e.matchAll(n.state,1e9).map(s=>{let{from:o,to:r}=s;return{from:o,to:r,insert:e.getReplacement(s)}});if(!t.length)return!1;let i=n.state.phrase("replaced $ matches",t.length)+".";return n.dispatch({changes:t,effects:z.announce.of(i),userEvent:"input.replace.all"}),!0});function Bs(n){return n.state.facet(p0).createPanel(n)}function J2(n,e){var t,i,s,o,r;let l=n.selection.main,a=l.empty||l.to>l.from+100?"":n.sliceDoc(l.from,l.to);if(e&&!a)return e;let h=n.facet(p0);return new Ac({search:((t=e==null?void 0:e.literal)!==null&&t!==void 0?t:h.literal)?a:a.replace(/\n/g,"\\n"),caseSensitive:(i=e==null?void 0:e.caseSensitive)!==null&&i!==void 0?i:h.caseSensitive,literal:(s=e==null?void 0:e.literal)!==null&&s!==void 0?s:h.literal,regexp:(o=e==null?void 0:e.regexp)!==null&&o!==void 0?o:h.regexp,wholeWord:(r=e==null?void 0:e.wholeWord)!==null&&r!==void 0?r:h.wholeWord})}function Pc(n){let e=$0(n,Bs);return e&&e.dom.querySelector("[main-field]")}function Ec(n){let e=Pc(n);e&&e==n.root.activeElement&&e.select()}const Vc=n=>{let e=n.state.field(St,!1);if(e&&e.panel){let t=Pc(n);if(t&&t!=n.root.activeElement){let i=J2(n.state,e.query.spec);i.valid&&n.dispatch({effects:j0.of(i)}),t.focus(),t.select()}}else n.dispatch({effects:[As.of(!0),e?j0.of(J2(n.state,e.query.spec)):G.appendConfig.of(_5)]});return!0},zc=n=>{let e=n.state.field(St,!1);if(!e||!e.panel)return!1;let t=$0(n,Bs);return t&&t.dom.contains(n.root.activeElement)&&n.focus(),n.dispatch({effects:As.of(!1)}),!0},k5=[{key:"Mod-f",run:Vc,scope:"editor search-panel"},{key:"F3",run:rn,shift:ln,scope:"editor search-panel",preventDefault:!0},{key:"Mod-g",run:rn,shift:ln,scope:"editor search-panel",preventDefault:!0},{key:"Escape",run:zc,scope:"editor search-panel"},{key:"Mod-Shift-l",run:b5},{key:"Mod-Alt-g",run:Z8},{key:"Mod-d",run:u5,preventDefault:!0}];class S5{constructor(e){this.view=e;let t=this.query=e.state.field(St).query.spec;this.commit=this.commit.bind(this),this.searchField=J("input",{value:t.search,placeholder:ze(e,"Find"),"aria-label":ze(e,"Find"),class:"cm-textfield",name:"search",form:"","main-field":"true",onchange:this.commit,onkeyup:this.commit}),this.replaceField=J("input",{value:t.replace,placeholder:ze(e,"Replace"),"aria-label":ze(e,"Replace"),class:"cm-textfield",name:"replace",form:"",onchange:this.commit,onkeyup:this.commit}),this.caseField=J("input",{type:"checkbox",name:"case",form:"",checked:t.caseSensitive,onchange:this.commit}),this.reField=J("input",{type:"checkbox",name:"re",form:"",checked:t.regexp,onchange:this.commit}),this.wordField=J("input",{type:"checkbox",name:"word",form:"",checked:t.wholeWord,onchange:this.commit});function i(s,o,r){return J("button",{class:"cm-button",name:s,onclick:o,type:"button"},r)}this.dom=J("div",{onkeydown:s=>this.keydown(s),class:"cm-search"},[this.searchField,i("next",()=>rn(e),[ze(e,"next")]),i("prev",()=>ln(e),[ze(e,"previous")]),i("select",()=>x5(e),[ze(e,"all")]),J("label",null,[this.caseField,ze(e,"match case")]),J("label",null,[this.reField,ze(e,"regexp")]),J("label",null,[this.wordField,ze(e,"by word")]),...e.state.readOnly?[]:[J("br"),this.replaceField,i("replace",()=>vr(e),[ze(e,"replace")]),i("replaceAll",()=>y5(e),[ze(e,"replace all")])],J("button",{name:"close",onclick:()=>zc(e),"aria-label":ze(e,"close"),type:"button"},["×"])])}commit(){let e=new Ac({search:this.searchField.value,caseSensitive:this.caseField.checked,regexp:this.reField.checked,wholeWord:this.wordField.checked,replace:this.replaceField.value});e.eq(this.query)||(this.query=e,this.view.dispatch({effects:j0.of(e)}))}keydown(e){E6(this.view,e,"search-panel")?e.preventDefault():e.keyCode==13&&e.target==this.searchField?(e.preventDefault(),(e.shiftKey?ln:rn)(this.view)):e.keyCode==13&&e.target==this.replaceField&&(e.preventDefault(),vr(this.view))}update(e){for(let t of e.transactions)for(let i of t.effects)i.is(j0)&&!i.value.eq(this.query)&&this.setQuery(i.value)}setQuery(e){this.query=e,this.searchField.value=e.search,this.replaceField.value=e.replace,this.caseField.checked=e.caseSensitive,this.reField.checked=e.regexp,this.wordField.checked=e.wholeWord}mount(){this.searchField.select()}get pos(){return 80}get top(){return this.view.state.facet(p0).top}}function ze(n,e){return n.state.phrase(e)}const yi=30,ki=/[\s\.,:;?!]/;function Ps(n,{from:e,to:t}){let i=n.state.doc.lineAt(e),s=n.state.doc.lineAt(t).to,o=Math.max(i.from,e-yi),r=Math.min(s,t+yi),l=n.state.sliceDoc(o,r);if(o!=i.from){for(let a=0;a<yi;a++)if(!ki.test(l[a+1])&&ki.test(l[a])){l=l.slice(a);break}}if(r!=s){for(let a=l.length-1;a>l.length-yi;a--)if(!ki.test(l[a-1])&&ki.test(l[a])){l=l.slice(0,a);break}}return z.announce.of(`${n.state.phrase("current match")}. ${l} ${n.state.phrase("on line")} ${i.number}.`)}const C5=z.baseTheme({".cm-panel.cm-search":{padding:"2px 6px 4px",position:"relative","& [name=close]":{position:"absolute",top:"0",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",padding:0,margin:0},"& input, & button, & label":{margin:".2em .6em .2em 0"},"& input[type=checkbox]":{marginRight:".2em"},"& label":{fontSize:"80%",whiteSpace:"pre"}},"&light .cm-searchMatch":{backgroundColor:"#ffff0054"},"&dark .cm-searchMatch":{backgroundColor:"#00ffff8a"},"&light .cm-searchMatch-selected":{backgroundColor:"#ff6a0054"},"&dark .cm-searchMatch-selected":{backgroundColor:"#ff00ff8a"}}),_5=[St,jt.low(w5),C5];class Lc{constructor(e,t,i,s){this.state=e,this.pos=t,this.explicit=i,this.view=s,this.abortListeners=[],this.abortOnDocChange=!1}tokenBefore(e){let t=me(this.state).resolveInner(this.pos,-1);for(;t&&e.indexOf(t.name)<0;)t=t.parent;return t?{from:t.from,to:this.pos,text:this.state.sliceDoc(t.from,this.pos),type:t.type}:null}matchBefore(e){let t=this.state.doc.lineAt(this.pos),i=Math.max(t.from,this.pos-250),s=t.text.slice(i-t.from,this.pos-t.from),o=s.search(Nc(e,!1));return o<0?null:{from:i+o,to:this.pos,text:s.slice(o)}}get aborted(){return this.abortListeners==null}addEventListener(e,t,i){e=="abort"&&this.abortListeners&&(this.abortListeners.push(t),i&&i.onDocChange&&(this.abortOnDocChange=!0))}}function wr(n){let e=Object.keys(n).join(""),t=/\w/.test(e);return t&&(e=e.replace(/\w/g,"")),`[${t?"\\w":""}${e.replace(/[^\w\s]/g,"\\$&")}]`}function O5(n){let e=Object.create(null),t=Object.create(null);for(let{label:s}of n){e[s[0]]=!0;for(let o=1;o<s.length;o++)t[s[o]]=!0}let i=wr(e)+wr(t)+"*$";return[new RegExp("^"+i),new RegExp(i)]}function M5(n){let e=n.map(s=>typeof s=="string"?{label:s}:s),[t,i]=e.every(s=>/^\w+$/.test(s.label))?[/\w*$/,/\w+$/]:O5(e);return s=>{let o=s.matchBefore(i);return o||s.explicit?{from:o?o.from:s.pos,options:e,validFor:t}:null}}class xr{constructor(e,t,i,s){this.completion=e,this.source=t,this.match=i,this.score=s}}function Rt(n){return n.selection.main.from}function Nc(n,e){var t;let{source:i}=n,s=e&&i[0]!="^",o=i[i.length-1]!="$";return!s&&!o?n:new RegExp(`${s?"^":""}(?:${i})${o?"$":""}`,(t=n.flags)!==null&&t!==void 0?t:n.ignoreCase?"i":"")}const Rc=gt.define();function D5(n,e,t,i){let{main:s}=n.selection,o=t-s.from,r=i-s.from;return Object.assign(Object.assign({},n.changeByRange(l=>{if(l!=s&&t!=i&&n.sliceDoc(l.from+o,l.from+r)!=n.sliceDoc(t,i))return{range:l};let a=n.toText(e);return{changes:{from:l.from+o,to:i==s.from?l.to:l.from+r,insert:a},range:O.cursor(l.from+o+a.length)}})),{scrollIntoView:!0,userEvent:"input.complete"})}const br=new WeakMap;function T5(n){if(!Array.isArray(n))return n;let e=br.get(n);return e||br.set(n,e=M5(n)),e}const an=G.define(),q0=G.define();class A5{constructor(e){this.pattern=e,this.chars=[],this.folded=[],this.any=[],this.precise=[],this.byWord=[],this.score=0,this.matched=[];for(let t=0;t<e.length;){let i=Te(e,t),s=tt(i);this.chars.push(i);let o=e.slice(t,t+s),r=o.toUpperCase();this.folded.push(Te(r==o?o.toLowerCase():r,0)),t+=s}this.astral=e.length!=this.chars.length}ret(e,t){return this.score=e,this.matched=t,this}match(e){if(this.pattern.length==0)return this.ret(-100,[]);if(e.length<this.pattern.length)return null;let{chars:t,folded:i,any:s,precise:o,byWord:r}=this;if(t.length==1){let b=Te(e,0),S=tt(b),_=S==e.length?0:-100;if(b!=t[0])if(b==i[0])_+=-200;else return null;return this.ret(_,[0,S])}let l=e.indexOf(this.pattern);if(l==0)return this.ret(e.length==this.pattern.length?0:-100,[0,this.pattern.length]);let a=t.length,h=0;if(l<0){for(let b=0,S=Math.min(e.length,200);b<S&&h<a;){let _=Te(e,b);(_==t[h]||_==i[h])&&(s[h++]=b),b+=tt(_)}if(h<a)return null}let c=0,f=0,d=!1,p=0,g=-1,m=-1,v=/[a-z]/.test(e),w=!0;for(let b=0,S=Math.min(e.length,200),_=0;b<S&&f<a;){let y=Te(e,b);l<0&&(c<a&&y==t[c]&&(o[c++]=b),p<a&&(y==t[p]||y==i[p]?(p==0&&(g=b),m=b+1,p++):p=0));let C,k=y<255?y>=48&&y<=57||y>=97&&y<=122?2:y>=65&&y<=90?1:0:(C=is(y))!=C.toLowerCase()?1:C!=C.toUpperCase()?2:0;(!b||k==1&&v||_==0&&k!=0)&&(t[f]==y||i[f]==y&&(d=!0)?r[f++]=b:r.length&&(w=!1)),_=k,b+=tt(y)}return f==a&&r[0]==0&&w?this.result(-100+(d?-200:0),r,e):p==a&&g==0?this.ret(-200-e.length+(m==e.length?0:-100),[0,m]):l>-1?this.ret(-700-e.length,[l,l+this.pattern.length]):p==a?this.ret(-900-e.length,[g,m]):f==a?this.result(-100+(d?-200:0)+-700+(w?0:-1100),r,e):t.length==2?null:this.result((s[0]?-700:0)+-200+-1100,s,e)}result(e,t,i){let s=[],o=0;for(let r of t){let l=r+(this.astral?tt(Te(i,r)):1);o&&s[o-1]==r?s[o-1]=l:(s[o++]=r,s[o++]=l)}return this.ret(e-i.length,s)}}class B5{constructor(e){this.pattern=e,this.matched=[],this.score=0,this.folded=e.toLowerCase()}match(e){if(e.length<this.pattern.length)return null;let t=e.slice(0,this.pattern.length),i=t==this.pattern?0:t.toLowerCase()==this.folded?-200:null;return i==null?null:(this.matched=[0,t.length],this.score=i+(e.length==this.pattern.length?0:-100),this)}}const ge=L.define({combine(n){return lt(n,{activateOnTyping:!0,activateOnCompletion:()=>!1,activateOnTypingDelay:100,selectOnOpen:!0,override:null,closeOnBlur:!0,maxRenderedOptions:100,defaultKeymap:!0,tooltipClass:()=>"",optionClass:()=>"",aboveCursor:!1,icons:!0,addToOptions:[],positionInfo:P5,filterStrict:!1,compareCompletions:(e,t)=>e.label.localeCompare(t.label),interactionDelay:75,updateSyncTime:100},{defaultKeymap:(e,t)=>e&&t,closeOnBlur:(e,t)=>e&&t,icons:(e,t)=>e&&t,tooltipClass:(e,t)=>i=>yr(e(i),t(i)),optionClass:(e,t)=>i=>yr(e(i),t(i)),addToOptions:(e,t)=>e.concat(t),filterStrict:(e,t)=>e||t})}});function yr(n,e){return n?e?n+" "+e:n:e}function P5(n,e,t,i,s,o){let r=n.textDirection==se.RTL,l=r,a=!1,h="top",c,f,d=e.left-s.left,p=s.right-e.right,g=i.right-i.left,m=i.bottom-i.top;if(l&&d<Math.min(g,p)?l=!1:!l&&p<Math.min(g,d)&&(l=!0),g<=(l?d:p))c=Math.max(s.top,Math.min(t.top,s.bottom-m))-e.top,f=Math.min(400,l?d:p);else{a=!0,f=Math.min(400,(r?e.right:s.right-e.left)-30);let b=s.bottom-e.bottom;b>=m||b>e.top?c=t.bottom-e.top:(h="bottom",c=e.bottom-t.top)}let v=(e.bottom-e.top)/o.offsetHeight,w=(e.right-e.left)/o.offsetWidth;return{style:`${h}: ${c/v}px; max-width: ${f/w}px`,class:"cm-completionInfo-"+(a?r?"left-narrow":"right-narrow":l?"left":"right")}}function E5(n){let e=n.addToOptions.slice();return n.icons&&e.push({render(t){let i=document.createElement("div");return i.classList.add("cm-completionIcon"),t.type&&i.classList.add(...t.type.split(/\s+/g).map(s=>"cm-completionIcon-"+s)),i.setAttribute("aria-hidden","true"),i},position:20}),e.push({render(t,i,s,o){let r=document.createElement("span");r.className="cm-completionLabel";let l=t.displayLabel||t.label,a=0;for(let h=0;h<o.length;){let c=o[h++],f=o[h++];c>a&&r.appendChild(document.createTextNode(l.slice(a,c)));let d=r.appendChild(document.createElement("span"));d.appendChild(document.createTextNode(l.slice(c,f))),d.className="cm-completionMatchedText",a=f}return a<l.length&&r.appendChild(document.createTextNode(l.slice(a))),r},position:50},{render(t){if(!t.detail)return null;let i=document.createElement("span");return i.className="cm-completionDetail",i.textContent=t.detail,i},position:80}),e.sort((t,i)=>t.position-i.position).map(t=>t.render)}function Jn(n,e,t){if(n<=t)return{from:0,to:n};if(e<0&&(e=0),e<=n>>1){let s=Math.floor(e/t);return{from:s*t,to:(s+1)*t}}let i=Math.floor((n-e)/t);return{from:n-(i+1)*t,to:n-i*t}}class V5{constructor(e,t,i){this.view=e,this.stateField=t,this.applyCompletion=i,this.info=null,this.infoDestroy=null,this.placeInfoReq={read:()=>this.measureInfo(),write:a=>this.placeInfo(a),key:this},this.space=null,this.currentClass="";let s=e.state.field(t),{options:o,selected:r}=s.open,l=e.state.facet(ge);this.optionContent=E5(l),this.optionClass=l.optionClass,this.tooltipClass=l.tooltipClass,this.range=Jn(o.length,r,l.maxRenderedOptions),this.dom=document.createElement("div"),this.dom.className="cm-tooltip-autocomplete",this.updateTooltipClass(e.state),this.dom.addEventListener("mousedown",a=>{let{options:h}=e.state.field(t).open;for(let c=a.target,f;c&&c!=this.dom;c=c.parentNode)if(c.nodeName=="LI"&&(f=/-(\d+)$/.exec(c.id))&&+f[1]<h.length){this.applyCompletion(e,h[+f[1]]),a.preventDefault();return}}),this.dom.addEventListener("focusout",a=>{let h=e.state.field(this.stateField,!1);h&&h.tooltip&&e.state.facet(ge).closeOnBlur&&a.relatedTarget!=e.contentDOM&&e.dispatch({effects:q0.of(null)})}),this.showOptions(o,s.id)}mount(){this.updateSel()}showOptions(e,t){this.list&&this.list.remove(),this.list=this.dom.appendChild(this.createListBox(e,t,this.range)),this.list.addEventListener("scroll",()=>{this.info&&this.view.requestMeasure(this.placeInfoReq)})}update(e){var t;let i=e.state.field(this.stateField),s=e.startState.field(this.stateField);if(this.updateTooltipClass(e.state),i!=s){let{options:o,selected:r,disabled:l}=i.open;(!s.open||s.open.options!=o)&&(this.range=Jn(o.length,r,e.state.facet(ge).maxRenderedOptions),this.showOptions(o,i.id)),this.updateSel(),l!=((t=s.open)===null||t===void 0?void 0:t.disabled)&&this.dom.classList.toggle("cm-tooltip-autocomplete-disabled",!!l)}}updateTooltipClass(e){let t=this.tooltipClass(e);if(t!=this.currentClass){for(let i of this.currentClass.split(" "))i&&this.dom.classList.remove(i);for(let i of t.split(" "))i&&this.dom.classList.add(i);this.currentClass=t}}positioned(e){this.space=e,this.info&&this.view.requestMeasure(this.placeInfoReq)}updateSel(){let e=this.view.state.field(this.stateField),t=e.open;if((t.selected>-1&&t.selected<this.range.from||t.selected>=this.range.to)&&(this.range=Jn(t.options.length,t.selected,this.view.state.facet(ge).maxRenderedOptions),this.showOptions(t.options,e.id)),this.updateSelectedOption(t.selected)){this.destroyInfo();let{completion:i}=t.options[t.selected],{info:s}=i;if(!s)return;let o=typeof s=="string"?document.createTextNode(s):s(i);if(!o)return;"then"in o?o.then(r=>{r&&this.view.state.field(this.stateField,!1)==e&&this.addInfoPane(r,i)}).catch(r=>Pe(this.view.state,r,"completion info")):this.addInfoPane(o,i)}}addInfoPane(e,t){this.destroyInfo();let i=this.info=document.createElement("div");if(i.className="cm-tooltip cm-completionInfo",e.nodeType!=null)i.appendChild(e),this.infoDestroy=null;else{let{dom:s,destroy:o}=e;i.appendChild(s),this.infoDestroy=o||null}this.dom.appendChild(i),this.view.requestMeasure(this.placeInfoReq)}updateSelectedOption(e){let t=null;for(let i=this.list.firstChild,s=this.range.from;i;i=i.nextSibling,s++)i.nodeName!="LI"||!i.id?s--:s==e?i.hasAttribute("aria-selected")||(i.setAttribute("aria-selected","true"),t=i):i.hasAttribute("aria-selected")&&i.removeAttribute("aria-selected");return t&&L5(this.list,t),t}measureInfo(){let e=this.dom.querySelector("[aria-selected]");if(!e||!this.info)return null;let t=this.dom.getBoundingClientRect(),i=this.info.getBoundingClientRect(),s=e.getBoundingClientRect(),o=this.space;if(!o){let r=this.dom.ownerDocument.documentElement;o={left:0,top:0,right:r.clientWidth,bottom:r.clientHeight}}return s.top>Math.min(o.bottom,t.bottom)-10||s.bottom<Math.max(o.top,t.top)+10?null:this.view.state.facet(ge).positionInfo(this.view,t,s,i,o,this.dom)}placeInfo(e){this.info&&(e?(e.style&&(this.info.style.cssText=e.style),this.info.className="cm-tooltip cm-completionInfo "+(e.class||"")):this.info.style.cssText="top: -1e6px")}createListBox(e,t,i){const s=document.createElement("ul");s.id=t,s.setAttribute("role","listbox"),s.setAttribute("aria-expanded","true"),s.setAttribute("aria-label",this.view.state.phrase("Completions")),s.addEventListener("mousedown",r=>{r.target==s&&r.preventDefault()});let o=null;for(let r=i.from;r<i.to;r++){let{completion:l,match:a}=e[r],{section:h}=l;if(h){let d=typeof h=="string"?h:h.name;if(d!=o&&(r>i.from||i.from==0))if(o=d,typeof h!="string"&&h.header)s.appendChild(h.header(h));else{let p=s.appendChild(document.createElement("completion-section"));p.textContent=d}}const c=s.appendChild(document.createElement("li"));c.id=t+"-"+r,c.setAttribute("role","option");let f=this.optionClass(l);f&&(c.className=f);for(let d of this.optionContent){let p=d(l,this.view.state,this.view,a);p&&c.appendChild(p)}}return i.from&&s.classList.add("cm-completionListIncompleteTop"),i.to<e.length&&s.classList.add("cm-completionListIncompleteBottom"),s}destroyInfo(){this.info&&(this.infoDestroy&&this.infoDestroy(),this.info.remove(),this.info=null)}destroy(){this.destroyInfo()}}function z5(n,e){return t=>new V5(t,n,e)}function L5(n,e){let t=n.getBoundingClientRect(),i=e.getBoundingClientRect(),s=t.height/n.offsetHeight;i.top<t.top?n.scrollTop-=(t.top-i.top)/s:i.bottom>t.bottom&&(n.scrollTop+=(i.bottom-t.bottom)/s)}function kr(n){return(n.boost||0)*100+(n.apply?10:0)+(n.info?5:0)+(n.type?1:0)}function N5(n,e){let t=[],i=null,s=h=>{t.push(h);let{section:c}=h.completion;if(c){i||(i=[]);let f=typeof c=="string"?c:c.name;i.some(d=>d.name==f)||i.push(typeof c=="string"?{name:f}:c)}},o=e.facet(ge);for(let h of n)if(h.hasResult()){let c=h.result.getMatch;if(h.result.filter===!1)for(let f of h.result.options)s(new xr(f,h.source,c?c(f):[],1e9-t.length));else{let f=e.sliceDoc(h.from,h.to),d,p=o.filterStrict?new B5(f):new A5(f);for(let g of h.result.options)if(d=p.match(g.label)){let m=g.displayLabel?c?c(g,d.matched):[]:d.matched;s(new xr(g,h.source,m,d.score+(g.boost||0)))}}}if(i){let h=Object.create(null),c=0,f=(d,p)=>{var g,m;return((g=d.rank)!==null&&g!==void 0?g:1e9)-((m=p.rank)!==null&&m!==void 0?m:1e9)||(d.name<p.name?-1:1)};for(let d of i.sort(f))c-=1e5,h[d.name]=c;for(let d of t){let{section:p}=d.completion;p&&(d.score+=h[typeof p=="string"?p:p.name])}}let r=[],l=null,a=o.compareCompletions;for(let h of t.sort((c,f)=>f.score-c.score||a(c.completion,f.completion))){let c=h.completion;!l||l.label!=c.label||l.detail!=c.detail||l.type!=null&&c.type!=null&&l.type!=c.type||l.apply!=c.apply||l.boost!=c.boost?r.push(h):kr(h.completion)>kr(l)&&(r[r.length-1]=h),l=h.completion}return r}class Jt{constructor(e,t,i,s,o,r){this.options=e,this.attrs=t,this.tooltip=i,this.timestamp=s,this.selected=o,this.disabled=r}setSelected(e,t){return e==this.selected||e>=this.options.length?this:new Jt(this.options,Sr(t,e),this.tooltip,this.timestamp,e,this.disabled)}static build(e,t,i,s,o,r){if(s&&!r&&e.some(h=>h.isPending))return s.setDisabled();let l=N5(e,t);if(!l.length)return s&&e.some(h=>h.isPending)?s.setDisabled():null;let a=t.facet(ge).selectOnOpen?0:-1;if(s&&s.selected!=a&&s.selected!=-1){let h=s.options[s.selected].completion;for(let c=0;c<l.length;c++)if(l[c].completion==h){a=c;break}}return new Jt(l,Sr(i,a),{pos:e.reduce((h,c)=>c.hasResult()?Math.min(h,c.from):h,1e8),create:F5,above:o.aboveCursor},s?s.timestamp:Date.now(),a,!1)}map(e){return new Jt(this.options,this.attrs,Object.assign(Object.assign({},this.tooltip),{pos:e.mapPos(this.tooltip.pos)}),this.timestamp,this.selected,this.disabled)}setDisabled(){return new Jt(this.options,this.attrs,this.tooltip,this.timestamp,this.selected,!0)}}class cn{constructor(e,t,i){this.active=e,this.id=t,this.open=i}static start(){return new cn($5,"cm-ac-"+Math.floor(Math.random()*2e6).toString(36),null)}update(e){let{state:t}=e,i=t.facet(ge),o=(i.override||t.languageDataAt("autocomplete",Rt(t)).map(T5)).map(a=>(this.active.find(c=>c.source==a)||new $e(a,this.active.some(c=>c.state!=0)?1:0)).update(e,i));o.length==this.active.length&&o.every((a,h)=>a==this.active[h])&&(o=this.active);let r=this.open,l=e.effects.some(a=>a.is(Es));r&&e.docChanged&&(r=r.map(e.changes)),e.selection||o.some(a=>a.hasResult()&&e.changes.touchesRange(a.from,a.to))||!R5(o,this.active)||l?r=Jt.build(o,t,this.id,r,i,l):r&&r.disabled&&!o.some(a=>a.isPending)&&(r=null),!r&&o.every(a=>!a.isPending)&&o.some(a=>a.hasResult())&&(o=o.map(a=>a.hasResult()?new $e(a.source,0):a));for(let a of e.effects)a.is(Hc)&&(r=r&&r.setSelected(a.value,this.id));return o==this.active&&r==this.open?this:new cn(o,this.id,r)}get tooltip(){return this.open?this.open.tooltip:null}get attrs(){return this.open?this.open.attrs:this.active.length?I5:H5}}function R5(n,e){if(n==e)return!0;for(let t=0,i=0;;){for(;t<n.length&&!n[t].hasResult();)t++;for(;i<e.length&&!e[i].hasResult();)i++;let s=t==n.length,o=i==e.length;if(s||o)return s==o;if(n[t++].result!=e[i++].result)return!1}}const I5={"aria-autocomplete":"list"},H5={};function Sr(n,e){let t={"aria-autocomplete":"list","aria-haspopup":"listbox","aria-controls":n};return e>-1&&(t["aria-activedescendant"]=n+"-"+e),t}const $5=[];function Ic(n,e){if(n.isUserEvent("input.complete")){let i=n.annotation(Rc);if(i&&e.activateOnCompletion(i))return 12}let t=n.isUserEvent("input.type");return t&&e.activateOnTyping?5:t?1:n.isUserEvent("delete.backward")?2:n.selection?8:n.docChanged?16:0}class $e{constructor(e,t,i=!1){this.source=e,this.state=t,this.explicit=i}hasResult(){return!1}get isPending(){return this.state==1}update(e,t){let i=Ic(e,t),s=this;(i&8||i&16&&this.touches(e))&&(s=new $e(s.source,0)),i&4&&s.state==0&&(s=new $e(this.source,1)),s=s.updateFor(e,i);for(let o of e.effects)if(o.is(an))s=new $e(s.source,1,o.value);else if(o.is(q0))s=new $e(s.source,0);else if(o.is(Es))for(let r of o.value)r.source==s.source&&(s=r);return s}updateFor(e,t){return this.map(e.changes)}map(e){return this}touches(e){return e.changes.touchesRange(Rt(e.state))}}class n0 extends $e{constructor(e,t,i,s,o,r){super(e,3,t),this.limit=i,this.result=s,this.from=o,this.to=r}hasResult(){return!0}updateFor(e,t){var i;if(!(t&3))return this.map(e.changes);let s=this.result;s.map&&!e.changes.empty&&(s=s.map(s,e.changes));let o=e.changes.mapPos(this.from),r=e.changes.mapPos(this.to,1),l=Rt(e.state);if(l>r||!s||t&2&&(Rt(e.startState)==this.from||l<this.limit))return new $e(this.source,t&4?1:0);let a=e.changes.mapPos(this.limit);return W5(s.validFor,e.state,o,r)?new n0(this.source,this.explicit,a,s,o,r):s.update&&(s=s.update(s,o,r,new Lc(e.state,l,!1)))?new n0(this.source,this.explicit,a,s,s.from,(i=s.to)!==null&&i!==void 0?i:Rt(e.state)):new $e(this.source,1,this.explicit)}map(e){return e.empty?this:(this.result.map?this.result.map(this.result,e):this.result)?new n0(this.source,this.explicit,e.mapPos(this.limit),this.result,e.mapPos(this.from),e.mapPos(this.to,1)):new $e(this.source,0)}touches(e){return e.changes.touchesRange(this.from,this.to)}}function W5(n,e,t,i){if(!n)return!1;let s=e.sliceDoc(t,i);return typeof n=="function"?n(s,t,i,e):Nc(n,!0).test(s)}const Es=G.define({map(n,e){return n.map(t=>t.map(e))}}),Hc=G.define(),Be=be.define({create(){return cn.start()},update(n,e){return n.update(e)},provide:n=>[ws.from(n,e=>e.tooltip),z.contentAttributes.from(n,e=>e.attrs)]});function Vs(n,e){const t=e.completion.apply||e.completion.label;let i=n.state.field(Be).active.find(s=>s.source==e.source);return i instanceof n0?(typeof t=="string"?n.dispatch(Object.assign(Object.assign({},D5(n.state,t,i.from,i.to)),{annotations:Rc.of(e.completion)})):t(n,e.completion,i.from,i.to),!0):!1}const F5=z5(Be,Vs);function Si(n,e="option"){return t=>{let i=t.state.field(Be,!1);if(!i||!i.open||i.open.disabled||Date.now()-i.open.timestamp<t.state.facet(ge).interactionDelay)return!1;let s=1,o;e=="page"&&(o=Sa(t,i.open.tooltip))&&(s=Math.max(2,Math.floor(o.dom.offsetHeight/o.dom.querySelector("li").offsetHeight)-1));let{length:r}=i.open.options,l=i.open.selected>-1?i.open.selected+s*(n?1:-1):n?0:r-1;return l<0?l=e=="page"?0:r-1:l>=r&&(l=e=="page"?r-1:0),t.dispatch({effects:Hc.of(l)}),!0}}const G5=n=>{let e=n.state.field(Be,!1);return n.state.readOnly||!e||!e.open||e.open.selected<0||e.open.disabled||Date.now()-e.open.timestamp<n.state.facet(ge).interactionDelay?!1:Vs(n,e.open.options[e.open.selected])},Cr=n=>n.state.field(Be,!1)?(n.dispatch({effects:an.of(!0)}),!0):!1,j5=n=>{let e=n.state.field(Be,!1);return!e||!e.active.some(t=>t.state!=0)?!1:(n.dispatch({effects:q0.of(null)}),!0)};class q5{constructor(e,t){this.active=e,this.context=t,this.time=Date.now(),this.updates=[],this.done=void 0}}const U5=50,Y5=1e3,K5=he.fromClass(class{constructor(n){this.view=n,this.debounceUpdate=-1,this.running=[],this.debounceAccept=-1,this.pendingStart=!1,this.composing=0;for(let e of n.state.field(Be).active)e.isPending&&this.startQuery(e)}update(n){let e=n.state.field(Be),t=n.state.facet(ge);if(!n.selectionSet&&!n.docChanged&&n.startState.field(Be)==e)return;let i=n.transactions.some(o=>{let r=Ic(o,t);return r&8||(o.selection||o.docChanged)&&!(r&3)});for(let o=0;o<this.running.length;o++){let r=this.running[o];if(i||r.context.abortOnDocChange&&n.docChanged||r.updates.length+n.transactions.length>U5&&Date.now()-r.time>Y5){for(let l of r.context.abortListeners)try{l()}catch(a){Pe(this.view.state,a)}r.context.abortListeners=null,this.running.splice(o--,1)}else r.updates.push(...n.transactions)}this.debounceUpdate>-1&&clearTimeout(this.debounceUpdate),n.transactions.some(o=>o.effects.some(r=>r.is(an)))&&(this.pendingStart=!0);let s=this.pendingStart?50:t.activateOnTypingDelay;if(this.debounceUpdate=e.active.some(o=>o.isPending&&!this.running.some(r=>r.active.source==o.source))?setTimeout(()=>this.startUpdate(),s):-1,this.composing!=0)for(let o of n.transactions)o.isUserEvent("input.type")?this.composing=2:this.composing==2&&o.selection&&(this.composing=3)}startUpdate(){this.debounceUpdate=-1,this.pendingStart=!1;let{state:n}=this.view,e=n.field(Be);for(let t of e.active)t.isPending&&!this.running.some(i=>i.active.source==t.source)&&this.startQuery(t);this.running.length&&e.open&&e.open.disabled&&(this.debounceAccept=setTimeout(()=>this.accept(),this.view.state.facet(ge).updateSyncTime))}startQuery(n){let{state:e}=this.view,t=Rt(e),i=new Lc(e,t,n.explicit,this.view),s=new q5(n,i);this.running.push(s),Promise.resolve(n.source(i)).then(o=>{s.context.aborted||(s.done=o||null,this.scheduleAccept())},o=>{this.view.dispatch({effects:q0.of(null)}),Pe(this.view.state,o)})}scheduleAccept(){this.running.every(n=>n.done!==void 0)?this.accept():this.debounceAccept<0&&(this.debounceAccept=setTimeout(()=>this.accept(),this.view.state.facet(ge).updateSyncTime))}accept(){var n;this.debounceAccept>-1&&clearTimeout(this.debounceAccept),this.debounceAccept=-1;let e=[],t=this.view.state.facet(ge),i=this.view.state.field(Be);for(let s=0;s<this.running.length;s++){let o=this.running[s];if(o.done===void 0)continue;if(this.running.splice(s--,1),o.done){let l=Rt(o.updates.length?o.updates[0].startState:this.view.state),a=Math.min(l,o.done.from+(o.active.explicit?0:1)),h=new n0(o.active.source,o.active.explicit,a,o.done,o.done.from,(n=o.done.to)!==null&&n!==void 0?n:l);for(let c of o.updates)h=h.update(c,t);if(h.hasResult()){e.push(h);continue}}let r=i.active.find(l=>l.source==o.active.source);if(r&&r.isPending)if(o.done==null){let l=new $e(o.active.source,0);for(let a of o.updates)l=l.update(a,t);l.isPending||e.push(l)}else this.startQuery(r)}(e.length||i.open&&i.open.disabled)&&this.view.dispatch({effects:Es.of(e)})}},{eventHandlers:{blur(n){let e=this.view.state.field(Be,!1);if(e&&e.tooltip&&this.view.state.facet(ge).closeOnBlur){let t=e.open&&Sa(this.view,e.open.tooltip);(!t||!t.dom.contains(n.relatedTarget))&&setTimeout(()=>this.view.dispatch({effects:q0.of(null)}),10)}},compositionstart(){this.composing=1},compositionend(){this.composing==3&&setTimeout(()=>this.view.dispatch({effects:an.of(!1)}),20),this.composing=0}}}),X5=typeof navigator=="object"&&/Win/.test(navigator.platform),Q5=jt.highest(z.domEventHandlers({keydown(n,e){let t=e.state.field(Be,!1);if(!t||!t.open||t.open.disabled||t.open.selected<0||n.key.length>1||n.ctrlKey&&!(X5&&n.altKey)||n.metaKey)return!1;let i=t.open.options[t.open.selected],s=t.active.find(r=>r.source==i.source),o=i.completion.commitCharacters||s.result.commitCharacters;return o&&o.indexOf(n.key)>-1&&Vs(e,i),!1}})),J5=z.baseTheme({".cm-tooltip.cm-tooltip-autocomplete":{"& > ul":{fontFamily:"monospace",whiteSpace:"nowrap",overflow:"hidden auto",maxWidth_fallback:"700px",maxWidth:"min(700px, 95vw)",minWidth:"250px",maxHeight:"10em",height:"100%",listStyle:"none",margin:0,padding:0,"& > li, & > completion-section":{padding:"1px 3px",lineHeight:1.2},"& > li":{overflowX:"hidden",textOverflow:"ellipsis",cursor:"pointer"},"& > completion-section":{display:"list-item",borderBottom:"1px solid silver",paddingLeft:"0.5em",opacity:.7}}},"&light .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#17c",color:"white"},"&light .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#777"},"&dark .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#347",color:"white"},"&dark .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#444"},".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after":{content:'"···"',opacity:.5,display:"block",textAlign:"center"},".cm-tooltip.cm-completionInfo":{position:"absolute",padding:"3px 9px",width:"max-content",maxWidth:"400px",boxSizing:"border-box",whiteSpace:"pre-line"},".cm-completionInfo.cm-completionInfo-left":{right:"100%"},".cm-completionInfo.cm-completionInfo-right":{left:"100%"},".cm-completionInfo.cm-completionInfo-left-narrow":{right:"30px"},".cm-completionInfo.cm-completionInfo-right-narrow":{left:"30px"},"&light .cm-snippetField":{backgroundColor:"#00000022"},"&dark .cm-snippetField":{backgroundColor:"#ffffff22"},".cm-snippetFieldPosition":{verticalAlign:"text-top",width:0,height:"1.15em",display:"inline-block",margin:"0 -0.7px -.7em",borderLeft:"1.4px dotted #888"},".cm-completionMatchedText":{textDecoration:"underline"},".cm-completionDetail":{marginLeft:"0.5em",fontStyle:"italic"},".cm-completionIcon":{fontSize:"90%",width:".8em",display:"inline-block",textAlign:"center",paddingRight:".6em",opacity:"0.6",boxSizing:"content-box"},".cm-completionIcon-function, .cm-completionIcon-method":{"&:after":{content:"'ƒ'"}},".cm-completionIcon-class":{"&:after":{content:"'○'"}},".cm-completionIcon-interface":{"&:after":{content:"'◌'"}},".cm-completionIcon-variable":{"&:after":{content:"'𝑥'"}},".cm-completionIcon-constant":{"&:after":{content:"'𝐶'"}},".cm-completionIcon-type":{"&:after":{content:"'𝑡'"}},".cm-completionIcon-enum":{"&:after":{content:"'∪'"}},".cm-completionIcon-property":{"&:after":{content:"'□'"}},".cm-completionIcon-keyword":{"&:after":{content:"'🔑︎'"}},".cm-completionIcon-namespace":{"&:after":{content:"'▢'"}},".cm-completionIcon-text":{"&:after":{content:"'abc'",fontSize:"50%",verticalAlign:"middle"}}}),U0={brackets:["(","[","{","'",'"'],before:")]}:;>",stringPrefixes:[]},Lt=G.define({map(n,e){let t=e.mapPos(n,-1,Ce.TrackAfter);return t??void 0}}),zs=new class extends Ht{};zs.startSide=1;zs.endSide=-1;const $c=be.define({create(){return U.empty},update(n,e){if(n=n.map(e.changes),e.selection){let t=e.state.doc.lineAt(e.selection.main.head);n=n.update({filter:i=>i>=t.from&&i<=t.to})}for(let t of e.effects)t.is(Lt)&&(n=n.update({add:[zs.range(t.value,t.value+1)]}));return n}});function Z5(){return[t7,$c]}const Zn="()[]{}<>«»»«[]{}";function Wc(n){for(let e=0;e<Zn.length;e+=2)if(Zn.charCodeAt(e)==n)return Zn.charAt(e+1);return is(n<128?n:n+1)}function Fc(n,e){return n.languageDataAt("closeBrackets",e)[0]||U0}const e7=typeof navigator=="object"&&/Android\b/.test(navigator.userAgent),t7=z.inputHandler.of((n,e,t,i)=>{if((e7?n.composing:n.compositionStarted)||n.state.readOnly)return!1;let s=n.state.selection.main;if(i.length>2||i.length==2&&tt(Te(i,0))==1||e!=s.from||t!=s.to)return!1;let o=s7(n.state,i);return o?(n.dispatch(o),!0):!1}),i7=({state:n,dispatch:e})=>{if(n.readOnly)return!1;let i=Fc(n,n.selection.main.head).brackets||U0.brackets,s=null,o=n.changeByRange(r=>{if(r.empty){let l=o7(n.doc,r.head);for(let a of i)if(a==l&&Mn(n.doc,r.head)==Wc(Te(a,0)))return{changes:{from:r.head-a.length,to:r.head+a.length},range:O.cursor(r.head-a.length)}}return{range:s=r}});return s||e(n.update(o,{scrollIntoView:!0,userEvent:"delete.backward"})),!s},n7=[{key:"Backspace",run:i7}];function s7(n,e){let t=Fc(n,n.selection.main.head),i=t.brackets||U0.brackets;for(let s of i){let o=Wc(Te(s,0));if(e==s)return o==s?a7(n,s,i.indexOf(s+s+s)>-1,t):r7(n,s,o,t.before||U0.before);if(e==o&&Gc(n,n.selection.main.from))return l7(n,s,o)}return null}function Gc(n,e){let t=!1;return n.field($c).between(0,n.doc.length,i=>{i==e&&(t=!0)}),t}function Mn(n,e){let t=n.sliceString(e,e+2);return t.slice(0,tt(Te(t,0)))}function o7(n,e){let t=n.sliceString(e-2,e);return tt(Te(t,0))==t.length?t:t.slice(1)}function r7(n,e,t,i){let s=null,o=n.changeByRange(r=>{if(!r.empty)return{changes:[{insert:e,from:r.from},{insert:t,from:r.to}],effects:Lt.of(r.to+e.length),range:O.range(r.anchor+e.length,r.head+e.length)};let l=Mn(n.doc,r.head);return!l||/\s/.test(l)||i.indexOf(l)>-1?{changes:{insert:e+t,from:r.head},effects:Lt.of(r.head+e.length),range:O.cursor(r.head+e.length)}:{range:s=r}});return s?null:n.update(o,{scrollIntoView:!0,userEvent:"input.type"})}function l7(n,e,t){let i=null,s=n.changeByRange(o=>o.empty&&Mn(n.doc,o.head)==t?{changes:{from:o.head,to:o.head+t.length,insert:t},range:O.cursor(o.head+t.length)}:i={range:o});return i?null:n.update(s,{scrollIntoView:!0,userEvent:"input.type"})}function a7(n,e,t,i){let s=i.stringPrefixes||U0.stringPrefixes,o=null,r=n.changeByRange(l=>{if(!l.empty)return{changes:[{insert:e,from:l.from},{insert:e,from:l.to}],effects:Lt.of(l.to+e.length),range:O.range(l.anchor+e.length,l.head+e.length)};let a=l.head,h=Mn(n.doc,a),c;if(h==e){if(_r(n,a))return{changes:{insert:e+e,from:a},effects:Lt.of(a+e.length),range:O.cursor(a+e.length)};if(Gc(n,a)){let d=t&&n.sliceDoc(a,a+e.length*3)==e+e+e?e+e+e:e;return{changes:{from:a,to:a+d.length,insert:d},range:O.cursor(a+d.length)}}}else{if(t&&n.sliceDoc(a-2*e.length,a)==e+e&&(c=Or(n,a-2*e.length,s))>-1&&_r(n,c))return{changes:{insert:e+e+e+e,from:a},effects:Lt.of(a+e.length),range:O.cursor(a+e.length)};if(n.charCategorizer(a)(h)!=oe.Word&&Or(n,a,s)>-1&&!c7(n,a,e,s))return{changes:{insert:e+e,from:a},effects:Lt.of(a+e.length),range:O.cursor(a+e.length)}}return{range:o=l}});return o?null:n.update(r,{scrollIntoView:!0,userEvent:"input.type"})}function _r(n,e){let t=me(n).resolveInner(e+1);return t.parent&&t.from==e}function c7(n,e,t,i){let s=me(n).resolveInner(e,-1),o=i.reduce((r,l)=>Math.max(r,l.length),0);for(let r=0;r<5;r++){let l=n.sliceDoc(s.from,Math.min(s.to,s.from+t.length+o)),a=l.indexOf(t);if(!a||a>-1&&i.indexOf(l.slice(0,a))>-1){let c=s.firstChild;for(;c&&c.from==s.from&&c.to-c.from>t.length+a;){if(n.sliceDoc(c.to-t.length,c.to)==t)return!1;c=c.firstChild}return!0}let h=s.to==e&&s.parent;if(!h)break;s=h}return!1}function Or(n,e,t){let i=n.charCategorizer(e);if(i(n.sliceDoc(e-1,e))!=oe.Word)return e;for(let s of t){let o=e-s.length;if(n.sliceDoc(o,e)==s&&i(n.sliceDoc(o-1,o))!=oe.Word)return o}return-1}function h7(n={}){return[Q5,Be,ge.of(n),K5,u7,J5]}const jc=[{key:"Ctrl-Space",run:Cr},{mac:"Alt-`",run:Cr},{key:"Escape",run:j5},{key:"ArrowDown",run:Si(!0)},{key:"ArrowUp",run:Si(!1)},{key:"PageDown",run:Si(!0,"page")},{key:"PageUp",run:Si(!1,"page")},{key:"Enter",run:G5}],u7=jt.highest(ms.computeN([ge],n=>n.facet(ge).defaultKeymap?[jc]:[]));class Mr{constructor(e,t,i){this.from=e,this.to=t,this.diagnostic=i}}class Vt{constructor(e,t,i){this.diagnostics=e,this.panel=t,this.selected=i}static init(e,t,i){let s=i.facet(Y0).markerFilter;s&&(e=s(e,i));let o=e.slice().sort((c,f)=>c.from-f.from||c.to-f.to),r=new ft,l=[],a=0;for(let c=0;;){let f=c==o.length?null:o[c];if(!f&&!l.length)break;let d,p;for(l.length?(d=a,p=l.reduce((m,v)=>Math.min(m,v.to),f&&f.from>d?f.from:1e8)):(d=f.from,p=f.to,l.push(f),c++);c<o.length;){let m=o[c];if(m.from==d&&(m.to>m.from||m.to==d))l.push(m),c++,p=Math.min(m.to,p);else{p=Math.min(m.from,p);break}}let g=C7(l);if(l.some(m=>m.from==m.to||m.from==m.to-1&&i.doc.lineAt(m.from).to==m.from))r.add(d,d,W.widget({widget:new b7(g),diagnostics:l.slice()}));else{let m=l.reduce((v,w)=>w.markClass?v+" "+w.markClass:v,"");r.add(d,p,W.mark({class:"cm-lintRange cm-lintRange-"+g+m,diagnostics:l.slice(),inclusiveEnd:l.some(v=>v.to>p)}))}a=p;for(let m=0;m<l.length;m++)l[m].to<=a&&l.splice(m--,1)}let h=r.finish();return new Vt(h,t,u0(h))}}function u0(n,e=null,t=0){let i=null;return n.between(t,1e9,(s,o,{spec:r})=>{if(!(e&&r.diagnostics.indexOf(e)<0))if(!i)i=new Mr(s,o,e||r.diagnostics[0]);else{if(r.diagnostics.indexOf(i.diagnostic)<0)return!1;i=new Mr(i.from,o,i.diagnostic)}}),i}function f7(n,e){let t=e.pos,i=e.end||t,s=n.state.facet(Y0).hideOn(n,t,i);if(s!=null)return s;let o=n.startState.doc.lineAt(e.pos);return!!(n.effects.some(r=>r.is(qc))||n.changes.touchesRange(o.from,Math.max(o.to,i)))}function d7(n,e){return n.field(Re,!1)?e:e.concat(G.appendConfig.of(_7))}const qc=G.define(),Ls=G.define(),Uc=G.define(),Re=be.define({create(){return new Vt(W.none,null,null)},update(n,e){if(e.docChanged&&n.diagnostics.size){let t=n.diagnostics.map(e.changes),i=null,s=n.panel;if(n.selected){let o=e.changes.mapPos(n.selected.from,1);i=u0(t,n.selected.diagnostic,o)||u0(t,null,o)}!t.size&&s&&e.state.facet(Y0).autoPanel&&(s=null),n=new Vt(t,s,i)}for(let t of e.effects)if(t.is(qc)){let i=e.state.facet(Y0).autoPanel?t.value.length?K0.open:null:n.panel;n=Vt.init(t.value,i,e.state)}else t.is(Ls)?n=new Vt(n.diagnostics,t.value?K0.open:null,n.selected):t.is(Uc)&&(n=new Vt(n.diagnostics,n.panel,t.value));return n},provide:n=>[W0.from(n,e=>e.panel),z.decorations.from(n,e=>e.diagnostics)]}),p7=W.mark({class:"cm-lintRange cm-lintRange-active"});function g7(n,e,t){let{diagnostics:i}=n.state.field(Re),s,o=-1,r=-1;i.between(e-(t<0?1:0),e+(t>0?1:0),(a,h,{spec:c})=>{if(e>=a&&e<=h&&(a==h||(e>a||t>0)&&(e<h||t<0)))return s=c.diagnostics,o=a,r=h,!1});let l=n.state.facet(Y0).tooltipFilter;return s&&l&&(s=l(s,n.state)),s?{pos:o,end:r,above:n.state.doc.lineAt(o).to<r,create(){return{dom:m7(n,s)}}}:null}function m7(n,e){return J("ul",{class:"cm-tooltip-lint"},e.map(t=>Kc(n,t,!1)))}const v7=n=>{let e=n.state.field(Re,!1);(!e||!e.panel)&&n.dispatch({effects:d7(n.state,[Ls.of(!0)])});let t=$0(n,K0.open);return t&&t.dom.querySelector(".cm-panel-lint ul").focus(),!0},Dr=n=>{let e=n.state.field(Re,!1);return!e||!e.panel?!1:(n.dispatch({effects:Ls.of(!1)}),!0)},w7=n=>{let e=n.state.field(Re,!1);if(!e)return!1;let t=n.state.selection.main,i=e.diagnostics.iter(t.to+1);return!i.value&&(i=e.diagnostics.iter(0),!i.value||i.from==t.from&&i.to==t.to)?!1:(n.dispatch({selection:{anchor:i.from,head:i.to},scrollIntoView:!0}),!0)},x7=[{key:"Mod-Shift-m",run:v7,preventDefault:!0},{key:"F8",run:w7}],Y0=L.define({combine(n){return Object.assign({sources:n.map(e=>e.source).filter(e=>e!=null)},lt(n.map(e=>e.config),{delay:750,markerFilter:null,tooltipFilter:null,needsRefresh:null,hideOn:()=>null},{needsRefresh:(e,t)=>e?t?i=>e(i)||t(i):e:t}))}});function Yc(n){let e=[];if(n)e:for(let{name:t}of n){for(let i=0;i<t.length;i++){let s=t[i];if(/[a-zA-Z]/.test(s)&&!e.some(o=>o.toLowerCase()==s.toLowerCase())){e.push(s);continue e}}e.push("")}return e}function Kc(n,e,t){var i;let s=t?Yc(e.actions):[];return J("li",{class:"cm-diagnostic cm-diagnostic-"+e.severity},J("span",{class:"cm-diagnosticText"},e.renderMessage?e.renderMessage(n):e.message),(i=e.actions)===null||i===void 0?void 0:i.map((o,r)=>{let l=!1,a=d=>{if(d.preventDefault(),l)return;l=!0;let p=u0(n.state.field(Re).diagnostics,e);p&&o.apply(n,p.from,p.to)},{name:h}=o,c=s[r]?h.indexOf(s[r]):-1,f=c<0?h:[h.slice(0,c),J("u",h.slice(c,c+1)),h.slice(c+1)];return J("button",{type:"button",class:"cm-diagnosticAction",onclick:a,onmousedown:a,"aria-label":` Action: ${h}${c<0?"":` (access key "${s[r]})"`}.`},f)}),e.source&&J("div",{class:"cm-diagnosticSource"},e.source))}class b7 extends Tt{constructor(e){super(),this.sev=e}eq(e){return e.sev==this.sev}toDOM(){return J("span",{class:"cm-lintPoint cm-lintPoint-"+this.sev})}}class Tr{constructor(e,t){this.diagnostic=t,this.id="item_"+Math.floor(Math.random()*4294967295).toString(16),this.dom=Kc(e,t,!0),this.dom.id=this.id,this.dom.setAttribute("role","option")}}class K0{constructor(e){this.view=e,this.items=[];let t=s=>{if(s.keyCode==27)Dr(this.view),this.view.focus();else if(s.keyCode==38||s.keyCode==33)this.moveSelection((this.selectedIndex-1+this.items.length)%this.items.length);else if(s.keyCode==40||s.keyCode==34)this.moveSelection((this.selectedIndex+1)%this.items.length);else if(s.keyCode==36)this.moveSelection(0);else if(s.keyCode==35)this.moveSelection(this.items.length-1);else if(s.keyCode==13)this.view.focus();else if(s.keyCode>=65&&s.keyCode<=90&&this.selectedIndex>=0){let{diagnostic:o}=this.items[this.selectedIndex],r=Yc(o.actions);for(let l=0;l<r.length;l++)if(r[l].toUpperCase().charCodeAt(0)==s.keyCode){let a=u0(this.view.state.field(Re).diagnostics,o);a&&o.actions[l].apply(e,a.from,a.to)}}else return;s.preventDefault()},i=s=>{for(let o=0;o<this.items.length;o++)this.items[o].dom.contains(s.target)&&this.moveSelection(o)};this.list=J("ul",{tabIndex:0,role:"listbox","aria-label":this.view.state.phrase("Diagnostics"),onkeydown:t,onclick:i}),this.dom=J("div",{class:"cm-panel-lint"},this.list,J("button",{type:"button",name:"close","aria-label":this.view.state.phrase("close"),onclick:()=>Dr(this.view)},"×")),this.update()}get selectedIndex(){let e=this.view.state.field(Re).selected;if(!e)return-1;for(let t=0;t<this.items.length;t++)if(this.items[t].diagnostic==e.diagnostic)return t;return-1}update(){let{diagnostics:e,selected:t}=this.view.state.field(Re),i=0,s=!1,o=null,r=new Set;for(e.between(0,this.view.state.doc.length,(l,a,{spec:h})=>{for(let c of h.diagnostics){if(r.has(c))continue;r.add(c);let f=-1,d;for(let p=i;p<this.items.length;p++)if(this.items[p].diagnostic==c){f=p;break}f<0?(d=new Tr(this.view,c),this.items.splice(i,0,d),s=!0):(d=this.items[f],f>i&&(this.items.splice(i,f-i),s=!0)),t&&d.diagnostic==t.diagnostic?d.dom.hasAttribute("aria-selected")||(d.dom.setAttribute("aria-selected","true"),o=d):d.dom.hasAttribute("aria-selected")&&d.dom.removeAttribute("aria-selected"),i++}});i<this.items.length&&!(this.items.length==1&&this.items[0].diagnostic.from<0);)s=!0,this.items.pop();this.items.length==0&&(this.items.push(new Tr(this.view,{from:-1,to:-1,severity:"info",message:this.view.state.phrase("No diagnostics")})),s=!0),o?(this.list.setAttribute("aria-activedescendant",o.id),this.view.requestMeasure({key:this,read:()=>({sel:o.dom.getBoundingClientRect(),panel:this.list.getBoundingClientRect()}),write:({sel:l,panel:a})=>{let h=a.height/this.list.offsetHeight;l.top<a.top?this.list.scrollTop-=(a.top-l.top)/h:l.bottom>a.bottom&&(this.list.scrollTop+=(l.bottom-a.bottom)/h)}})):this.selectedIndex<0&&this.list.removeAttribute("aria-activedescendant"),s&&this.sync()}sync(){let e=this.list.firstChild;function t(){let i=e;e=i.nextSibling,i.remove()}for(let i of this.items)if(i.dom.parentNode==this.list){for(;e!=i.dom;)t();e=i.dom.nextSibling}else this.list.insertBefore(i.dom,e);for(;e;)t()}moveSelection(e){if(this.selectedIndex<0)return;let t=this.view.state.field(Re),i=u0(t.diagnostics,this.items[e].diagnostic);i&&this.view.dispatch({selection:{anchor:i.from,head:i.to},scrollIntoView:!0,effects:Uc.of(i)})}static open(e){return new K0(e)}}function y7(n,e='viewBox="0 0 40 40"'){return`url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" ${e}>${encodeURIComponent(n)}</svg>')`}function Ci(n){return y7(`<path d="m0 2.5 l2 -1.5 l1 0 l2 1.5 l1 0" stroke="${n}" fill="none" stroke-width=".7"/>`,'width="6" height="3"')}const k7=z.baseTheme({".cm-diagnostic":{padding:"3px 6px 3px 8px",marginLeft:"-1px",display:"block",whiteSpace:"pre-wrap"},".cm-diagnostic-error":{borderLeft:"5px solid #d11"},".cm-diagnostic-warning":{borderLeft:"5px solid orange"},".cm-diagnostic-info":{borderLeft:"5px solid #999"},".cm-diagnostic-hint":{borderLeft:"5px solid #66d"},".cm-diagnosticAction":{font:"inherit",border:"none",padding:"2px 4px",backgroundColor:"#444",color:"white",borderRadius:"3px",marginLeft:"8px",cursor:"pointer"},".cm-diagnosticSource":{fontSize:"70%",opacity:.7},".cm-lintRange":{backgroundPosition:"left bottom",backgroundRepeat:"repeat-x",paddingBottom:"0.7px"},".cm-lintRange-error":{backgroundImage:Ci("#d11")},".cm-lintRange-warning":{backgroundImage:Ci("orange")},".cm-lintRange-info":{backgroundImage:Ci("#999")},".cm-lintRange-hint":{backgroundImage:Ci("#66d")},".cm-lintRange-active":{backgroundColor:"#ffdd9980"},".cm-tooltip-lint":{padding:0,margin:0},".cm-lintPoint":{position:"relative","&:after":{content:'""',position:"absolute",bottom:0,left:"-2px",borderLeft:"3px solid transparent",borderRight:"3px solid transparent",borderBottom:"4px solid #d11"}},".cm-lintPoint-warning":{"&:after":{borderBottomColor:"orange"}},".cm-lintPoint-info":{"&:after":{borderBottomColor:"#999"}},".cm-lintPoint-hint":{"&:after":{borderBottomColor:"#66d"}},".cm-panel.cm-panel-lint":{position:"relative","& ul":{maxHeight:"100px",overflowY:"auto","& [aria-selected]":{backgroundColor:"#ddd","& u":{textDecoration:"underline"}},"&:focus [aria-selected]":{background_fallback:"#bdf",backgroundColor:"Highlight",color_fallback:"white",color:"HighlightText"},"& u":{textDecoration:"none"},padding:0,margin:0},"& [name=close]":{position:"absolute",top:"0",right:"2px",background:"inherit",border:"none",font:"inherit",padding:0,margin:0}}});function S7(n){return n=="error"?4:n=="warning"?3:n=="info"?2:1}function C7(n){let e="hint",t=1;for(let i of n){let s=S7(i.severity);s>t&&(t=s,e=i.severity)}return e}const _7=[Re,z.decorations.compute([Re],n=>{let{selected:e,panel:t}=n.field(Re);return!e||!t||e.from==e.to?W.none:W.set([p7.range(e.from,e.to)])}),x4(g7,{hideOn:f7}),k7],O7=[A4(),E4(),X6(),Kp(),kp(),I6(),G6(),q.allowMultipleSelections.of(!0),cp(),Cp(Mp,{fallback:!0}),Vp(),Z5(),h7(),a4(),u4(),i4(),n5(),ms.of([...n7,...Q8,...k5,...s8,...wp,...jc,...x7])];class hn{constructor(e,t,i,s,o,r,l,a,h,c=0,f){this.p=e,this.stack=t,this.state=i,this.reducePos=s,this.pos=o,this.score=r,this.buffer=l,this.bufferBase=a,this.curContext=h,this.lookAhead=c,this.parent=f}toString(){return`[${this.stack.filter((e,t)=>t%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(e,t,i=0){let s=e.parser.context;return new hn(e,[],t,i,i,0,[],0,s?new Ar(s,s.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(e,t){this.stack.push(this.state,t,this.bufferBase+this.buffer.length),this.state=e}reduce(e){var t;let i=e>>19,s=e&65535,{parser:o}=this.p,r=this.reducePos<this.pos-25;r&&this.setLookAhead(this.pos);let l=o.dynamicPrecedence(s);if(l&&(this.score+=l),i==0){this.pushState(o.getGoto(this.state,s,!0),this.reducePos),s<o.minRepeatTerm&&this.storeNode(s,this.reducePos,this.reducePos,r?8:4,!0),this.reduceContext(s,this.reducePos);return}let a=this.stack.length-(i-1)*3-(e&262144?6:0),h=a?this.stack[a-2]:this.p.ranges[0].from,c=this.reducePos-h;c>=2e3&&!(!((t=this.p.parser.nodeSet.types[s])===null||t===void 0)&&t.isAnonymous)&&(h==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=c):this.p.lastBigReductionSize<c&&(this.p.bigReductionCount=1,this.p.lastBigReductionStart=h,this.p.lastBigReductionSize=c));let f=a?this.stack[a-1]:0,d=this.bufferBase+this.buffer.length-f;if(s<o.minRepeatTerm||e&131072){let p=o.stateFlag(this.state,1)?this.pos:this.reducePos;this.storeNode(s,h,p,d+4,!0)}if(e&262144)this.state=this.stack[a];else{let p=this.stack[a-3];this.state=o.getGoto(p,s,!0)}for(;this.stack.length>a;)this.stack.pop();this.reduceContext(s,h)}storeNode(e,t,i,s=4,o=!1){if(e==0&&(!this.stack.length||this.stack[this.stack.length-1]<this.buffer.length+this.bufferBase)){let r=this,l=this.buffer.length;if(l==0&&r.parent&&(l=r.bufferBase-r.parent.bufferBase,r=r.parent),l>0&&r.buffer[l-4]==0&&r.buffer[l-1]>-1){if(t==i)return;if(r.buffer[l-2]>=t){r.buffer[l-2]=i;return}}}if(!o||this.pos==i)this.buffer.push(e,t,i,s);else{let r=this.buffer.length;if(r>0&&this.buffer[r-4]!=0){let l=!1;for(let a=r;a>0&&this.buffer[a-2]>i;a-=4)if(this.buffer[a-1]>=0){l=!0;break}if(l)for(;r>0&&this.buffer[r-2]>i;)this.buffer[r]=this.buffer[r-4],this.buffer[r+1]=this.buffer[r-3],this.buffer[r+2]=this.buffer[r-2],this.buffer[r+3]=this.buffer[r-1],r-=4,s>4&&(s-=4)}this.buffer[r]=e,this.buffer[r+1]=t,this.buffer[r+2]=i,this.buffer[r+3]=s}}shift(e,t,i,s){if(e&131072)this.pushState(e&65535,this.pos);else if((e&262144)==0){let o=e,{parser:r}=this.p;(s>this.pos||t<=r.maxNode)&&(this.pos=s,r.stateFlag(o,1)||(this.reducePos=s)),this.pushState(o,i),this.shiftContext(t,i),t<=r.maxNode&&this.buffer.push(t,i,s,4)}else this.pos=s,this.shiftContext(t,i),t<=this.p.parser.maxNode&&this.buffer.push(t,i,s,4)}apply(e,t,i,s){e&65536?this.reduce(e):this.shift(e,t,i,s)}useNode(e,t){let i=this.p.reused.length-1;(i<0||this.p.reused[i]!=e)&&(this.p.reused.push(e),i++);let s=this.pos;this.reducePos=this.pos=s+e.length,this.pushState(t,s),this.buffer.push(i,s,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,e,this,this.p.stream.reset(this.pos-e.length)))}split(){let e=this,t=e.buffer.length;for(;t>0&&e.buffer[t-2]>e.reducePos;)t-=4;let i=e.buffer.slice(t),s=e.bufferBase+t;for(;e&&s==e.bufferBase;)e=e.parent;return new hn(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,i,s,this.curContext,this.lookAhead,e)}recoverByDelete(e,t){let i=e<=this.p.parser.maxNode;i&&this.storeNode(e,this.pos,t,4),this.storeNode(0,this.pos,t,i?8:4),this.pos=this.reducePos=t,this.score-=190}canShift(e){for(let t=new M7(this);;){let i=this.p.parser.stateSlot(t.state,4)||this.p.parser.hasAction(t.state,e);if(i==0)return!1;if((i&65536)==0)return!0;t.reduce(i)}}recoverByInsert(e){if(this.stack.length>=300)return[];let t=this.p.parser.nextStates(this.state);if(t.length>8||this.stack.length>=120){let s=[];for(let o=0,r;o<t.length;o+=2)(r=t[o+1])!=this.state&&this.p.parser.hasAction(r,e)&&s.push(t[o],r);if(this.stack.length<120)for(let o=0;s.length<8&&o<t.length;o+=2){let r=t[o+1];s.some((l,a)=>a&1&&l==r)||s.push(t[o],r)}t=s}let i=[];for(let s=0;s<t.length&&i.length<4;s+=2){let o=t[s+1];if(o==this.state)continue;let r=this.split();r.pushState(o,this.pos),r.storeNode(0,r.pos,r.pos,4,!0),r.shiftContext(t[s],this.pos),r.reducePos=this.pos,r.score-=200,i.push(r)}return i}forceReduce(){let{parser:e}=this.p,t=e.stateSlot(this.state,5);if((t&65536)==0)return!1;if(!e.validAction(this.state,t)){let i=t>>19,s=t&65535,o=this.stack.length-i*3;if(o<0||e.getGoto(this.stack[o],s,!1)<0){let r=this.findForcedReduction();if(r==null)return!1;t=r}this.storeNode(0,this.pos,this.pos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(t),!0}findForcedReduction(){let{parser:e}=this.p,t=[],i=(s,o)=>{if(!t.includes(s))return t.push(s),e.allActions(s,r=>{if(!(r&393216))if(r&65536){let l=(r>>19)-o;if(l>1){let a=r&65535,h=this.stack.length-l*3;if(h>=0&&e.getGoto(this.stack[h],a,!1)>=0)return l<<19|65536|a}}else{let l=i(r,o+1);if(l!=null)return l}})};return i(this.state,0)}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(this.stack.length!=3)return!1;let{parser:e}=this.p;return e.data[e.stateSlot(this.state,1)]==65535&&!e.stateSlot(this.state,4)}restart(){this.storeNode(0,this.pos,this.pos,4,!0),this.state=this.stack[0],this.stack.length=0}sameState(e){if(this.state!=e.state||this.stack.length!=e.stack.length)return!1;for(let t=0;t<this.stack.length;t+=3)if(this.stack[t]!=e.stack[t])return!1;return!0}get parser(){return this.p.parser}dialectEnabled(e){return this.p.parser.dialect.flags[e]}shiftContext(e,t){this.curContext&&this.updateContext(this.curContext.tracker.shift(this.curContext.context,e,this,this.p.stream.reset(t)))}reduceContext(e,t){this.curContext&&this.updateContext(this.curContext.tracker.reduce(this.curContext.context,e,this,this.p.stream.reset(t)))}emitContext(){let e=this.buffer.length-1;(e<0||this.buffer[e]!=-3)&&this.buffer.push(this.curContext.hash,this.pos,this.pos,-3)}emitLookAhead(){let e=this.buffer.length-1;(e<0||this.buffer[e]!=-4)&&this.buffer.push(this.lookAhead,this.pos,this.pos,-4)}updateContext(e){if(e!=this.curContext.context){let t=new Ar(this.curContext.tracker,e);t.hash!=this.curContext.hash&&this.emitContext(),this.curContext=t}}setLookAhead(e){e>this.lookAhead&&(this.emitLookAhead(),this.lookAhead=e)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}class Ar{constructor(e,t){this.tracker=e,this.context=t,this.hash=e.strict?e.hash(t):0}}class M7{constructor(e){this.start=e,this.state=e.state,this.stack=e.stack,this.base=this.stack.length}reduce(e){let t=e&65535,i=e>>19;i==0?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=(i-1)*3;let s=this.start.p.parser.getGoto(this.stack[this.base-3],t,!0);this.state=s}}class un{constructor(e,t,i){this.stack=e,this.pos=t,this.index=i,this.buffer=e.buffer,this.index==0&&this.maybeNext()}static create(e,t=e.bufferBase+e.buffer.length){return new un(e,t,t-e.bufferBase)}maybeNext(){let e=this.stack.parent;e!=null&&(this.index=this.stack.bufferBase-e.bufferBase,this.stack=e,this.buffer=e.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,this.index==0&&this.maybeNext()}fork(){return new un(this.stack,this.pos,this.index)}}function _i(n,e=Uint16Array){if(typeof n!="string")return n;let t=null;for(let i=0,s=0;i<n.length;){let o=0;for(;;){let r=n.charCodeAt(i++),l=!1;if(r==126){o=65535;break}r>=92&&r--,r>=34&&r--;let a=r-32;if(a>=46&&(a-=46,l=!0),o+=a,l)break;o*=46}t?t[s++]=o:t=new e(o)}return t}class Li{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const Br=new Li;class D7{constructor(e,t){this.input=e,this.ranges=t,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=Br,this.rangeIndex=0,this.pos=this.chunkPos=t[0].from,this.range=t[0],this.end=t[t.length-1].to,this.readNext()}resolveOffset(e,t){let i=this.range,s=this.rangeIndex,o=this.pos+e;for(;o<i.from;){if(!s)return null;let r=this.ranges[--s];o-=i.from-r.to,i=r}for(;t<0?o>i.to:o>=i.to;){if(s==this.ranges.length-1)return null;let r=this.ranges[++s];o+=r.from-i.to,i=r}return o}clipPos(e){if(e>=this.range.from&&e<this.range.to)return e;for(let t of this.ranges)if(t.to>e)return Math.max(e,t.from);return this.end}peek(e){let t=this.chunkOff+e,i,s;if(t>=0&&t<this.chunk.length)i=this.pos+e,s=this.chunk.charCodeAt(t);else{let o=this.resolveOffset(e,1);if(o==null)return-1;if(i=o,i>=this.chunk2Pos&&i<this.chunk2Pos+this.chunk2.length)s=this.chunk2.charCodeAt(i-this.chunk2Pos);else{let r=this.rangeIndex,l=this.range;for(;l.to<=i;)l=this.ranges[++r];this.chunk2=this.input.chunk(this.chunk2Pos=i),i+this.chunk2.length>l.to&&(this.chunk2=this.chunk2.slice(0,l.to-i)),s=this.chunk2.charCodeAt(0)}}return i>=this.token.lookAhead&&(this.token.lookAhead=i+1),s}acceptToken(e,t=0){let i=t?this.resolveOffset(t,-1):this.pos;if(i==null||i<this.token.start)throw new RangeError("Token end out of bounds");this.token.value=e,this.token.end=i}acceptTokenTo(e,t){this.token.value=e,this.token.end=t}getChunk(){if(this.pos>=this.chunk2Pos&&this.pos<this.chunk2Pos+this.chunk2.length){let{chunk:e,chunkPos:t}=this;this.chunk=this.chunk2,this.chunkPos=this.chunk2Pos,this.chunk2=e,this.chunk2Pos=t,this.chunkOff=this.pos-this.chunkPos}else{this.chunk2=this.chunk,this.chunk2Pos=this.chunkPos;let e=this.input.chunk(this.pos),t=this.pos+e.length;this.chunk=t>this.range.to?e.slice(0,this.range.to-this.pos):e,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(e=1){for(this.chunkOff+=e;this.pos+e>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();e-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=e,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(e,t){if(t?(this.token=t,t.start=e,t.lookAhead=e+1,t.value=t.extended=-1):this.token=Br,this.pos!=e){if(this.pos=e,e==this.end)return this.setDone(),this;for(;e<this.range.from;)this.range=this.ranges[--this.rangeIndex];for(;e>=this.range.to;)this.range=this.ranges[++this.rangeIndex];e>=this.chunkPos&&e<this.chunkPos+this.chunk.length?this.chunkOff=e-this.chunkPos:(this.chunk="",this.chunkOff=0),this.readNext()}return this}read(e,t){if(e>=this.chunkPos&&t<=this.chunkPos+this.chunk.length)return this.chunk.slice(e-this.chunkPos,t-this.chunkPos);if(e>=this.chunk2Pos&&t<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(e-this.chunk2Pos,t-this.chunk2Pos);if(e>=this.range.from&&t<=this.range.to)return this.input.read(e,t);let i="";for(let s of this.ranges){if(s.from>=t)break;s.to>e&&(i+=this.input.read(Math.max(s.from,e),Math.min(s.to,t)))}return i}}class s0{constructor(e,t){this.data=e,this.id=t}token(e,t){let{parser:i}=t.p;T7(this.data,e,t,this.id,i.data,i.tokenPrecTable)}}s0.prototype.contextual=s0.prototype.fallback=s0.prototype.extend=!1;s0.prototype.fallback=s0.prototype.extend=!1;class Xc{constructor(e,t={}){this.token=e,this.contextual=!!t.contextual,this.fallback=!!t.fallback,this.extend=!!t.extend}}function T7(n,e,t,i,s,o){let r=0,l=1<<i,{dialect:a}=t.p.parser;e:for(;(l&n[r])!=0;){let h=n[r+1];for(let p=r+3;p<h;p+=2)if((n[p+1]&l)>0){let g=n[p];if(a.allows(g)&&(e.token.value==-1||e.token.value==g||A7(g,e.token.value,s,o))){e.acceptToken(g);break}}let c=e.next,f=0,d=n[r+2];if(e.next<0&&d>f&&n[h+d*3-3]==65535){r=n[h+d*3-1];continue e}for(;f<d;){let p=f+d>>1,g=h+p+(p<<1),m=n[g],v=n[g+1]||65536;if(c<m)d=p;else if(c>=v)f=p+1;else{r=n[g+2],e.advance();continue e}}break}}function Pr(n,e,t){for(let i=e,s;(s=n[i])!=65535;i++)if(s==t)return i-e;return-1}function A7(n,e,t,i){let s=Pr(t,i,e);return s<0||Pr(t,i,n)<s}const Le=typeof process<"u"&&process.env&&/\bparse\b/.test(process.env.LOG);let e2=null;function Er(n,e,t){let i=n.cursor(pe.IncludeAnonymous);for(i.moveTo(e);;)if(!(t<0?i.childBefore(e):i.childAfter(e)))for(;;){if((t<0?i.to<e:i.from>e)&&!i.type.isError)return t<0?Math.max(0,Math.min(i.to-1,e-25)):Math.min(n.length,Math.max(i.from+1,e+25));if(t<0?i.prevSibling():i.nextSibling())break;if(!i.parent())return t<0?0:n.length}}class B7{constructor(e,t){this.fragments=e,this.nodeSet=t,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let e=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(e){for(this.safeFrom=e.openStart?Er(e.tree,e.from+e.offset,1)-e.offset:e.from,this.safeTo=e.openEnd?Er(e.tree,e.to+e.offset,-1)-e.offset:e.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(e.tree),this.start.push(-e.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(e){if(e<this.nextStart)return null;for(;this.fragment&&this.safeTo<=e;)this.nextFragment();if(!this.fragment)return null;for(;;){let t=this.trees.length-1;if(t<0)return this.nextFragment(),null;let i=this.trees[t],s=this.index[t];if(s==i.children.length){this.trees.pop(),this.start.pop(),this.index.pop();continue}let o=i.children[s],r=this.start[t]+i.positions[s];if(r>e)return this.nextStart=r,null;if(o instanceof ce){if(r==e){if(r<this.safeFrom)return null;let l=r+o.length;if(l<=this.safeTo){let a=o.prop(j.lookAhead);if(!a||l+a<this.fragment.to)return o}}this.index[t]++,r+o.length>=Math.max(this.safeFrom,e)&&(this.trees.push(o),this.start.push(r),this.index.push(0))}else this.index[t]++,this.nextStart=r+o.length}}}class P7{constructor(e,t){this.stream=t,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=e.tokenizers.map(i=>new Li)}getActions(e){let t=0,i=null,{parser:s}=e.p,{tokenizers:o}=s,r=s.stateSlot(e.state,3),l=e.curContext?e.curContext.hash:0,a=0;for(let h=0;h<o.length;h++){if((1<<h&r)==0)continue;let c=o[h],f=this.tokens[h];if(!(i&&!c.fallback)&&((c.contextual||f.start!=e.pos||f.mask!=r||f.context!=l)&&(this.updateCachedToken(f,c,e),f.mask=r,f.context=l),f.lookAhead>f.end+25&&(a=Math.max(f.lookAhead,a)),f.value!=0)){let d=t;if(f.extended>-1&&(t=this.addActions(e,f.extended,f.end,t)),t=this.addActions(e,f.value,f.end,t),!c.extend&&(i=f,t>d))break}}for(;this.actions.length>t;)this.actions.pop();return a&&e.setLookAhead(a),!i&&e.pos==this.stream.end&&(i=new Li,i.value=e.p.parser.eofTerm,i.start=i.end=e.pos,t=this.addActions(e,i.value,i.end,t)),this.mainToken=i,this.actions}getMainToken(e){if(this.mainToken)return this.mainToken;let t=new Li,{pos:i,p:s}=e;return t.start=i,t.end=Math.min(i+1,s.stream.end),t.value=i==s.stream.end?s.parser.eofTerm:0,t}updateCachedToken(e,t,i){let s=this.stream.clipPos(i.pos);if(t.token(this.stream.reset(s,e),i),e.value>-1){let{parser:o}=i.p;for(let r=0;r<o.specialized.length;r++)if(o.specialized[r]==e.value){let l=o.specializers[r](this.stream.read(e.start,e.end),i);if(l>=0&&i.p.parser.dialect.allows(l>>1)){(l&1)==0?e.value=l>>1:e.extended=l>>1;break}}}else e.value=0,e.end=this.stream.clipPos(s+1)}putAction(e,t,i,s){for(let o=0;o<s;o+=3)if(this.actions[o]==e)return s;return this.actions[s++]=e,this.actions[s++]=t,this.actions[s++]=i,s}addActions(e,t,i,s){let{state:o}=e,{parser:r}=e.p,{data:l}=r;for(let a=0;a<2;a++)for(let h=r.stateSlot(o,a?2:1);;h+=3){if(l[h]==65535)if(l[h+1]==1)h=ct(l,h+2);else{s==0&&l[h+1]==2&&(s=this.putAction(ct(l,h+2),t,i,s));break}l[h]==t&&(s=this.putAction(ct(l,h+1),t,i,s))}return s}}class E7{constructor(e,t,i,s){this.parser=e,this.input=t,this.ranges=s,this.recovering=0,this.nextStackID=9812,this.minStackPos=0,this.reused=[],this.stoppedAt=null,this.lastBigReductionStart=-1,this.lastBigReductionSize=0,this.bigReductionCount=0,this.stream=new D7(t,s),this.tokens=new P7(e,this.stream),this.topTerm=e.top[1];let{from:o}=s[0];this.stacks=[hn.start(this,e.top[0],o)],this.fragments=i.length&&this.stream.end-o>e.bufferLength*4?new B7(i,e.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let e=this.stacks,t=this.minStackPos,i=this.stacks=[],s,o;if(this.bigReductionCount>300&&e.length==1){let[r]=e;for(;r.forceReduce()&&r.stack.length&&r.stack[r.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let r=0;r<e.length;r++){let l=e[r];for(;;){if(this.tokens.mainToken=null,l.pos>t)i.push(l);else{if(this.advanceStack(l,i,e))continue;{s||(s=[],o=[]),s.push(l);let a=this.tokens.getMainToken(l);o.push(a.value,a.end)}}break}}if(!i.length){let r=s&&L7(s);if(r)return Le&&console.log("Finish with "+this.stackID(r)),this.stackToTree(r);if(this.parser.strict)throw Le&&s&&console.log("Stuck with token "+(this.tokens.mainToken?this.parser.getName(this.tokens.mainToken.value):"none")),new SyntaxError("No parse at "+t);this.recovering||(this.recovering=5)}if(this.recovering&&s){let r=this.stoppedAt!=null&&s[0].pos>this.stoppedAt?s[0]:this.runRecovery(s,o,i);if(r)return Le&&console.log("Force-finish "+this.stackID(r)),this.stackToTree(r.forceAll())}if(this.recovering){let r=this.recovering==1?1:this.recovering*3;if(i.length>r)for(i.sort((l,a)=>a.score-l.score);i.length>r;)i.pop();i.some(l=>l.reducePos>t)&&this.recovering--}else if(i.length>1){e:for(let r=0;r<i.length-1;r++){let l=i[r];for(let a=r+1;a<i.length;a++){let h=i[a];if(l.sameState(h)||l.buffer.length>500&&h.buffer.length>500)if((l.score-h.score||l.buffer.length-h.buffer.length)>0)i.splice(a--,1);else{i.splice(r--,1);continue e}}}i.length>12&&i.splice(12,i.length-12)}this.minStackPos=i[0].pos;for(let r=1;r<i.length;r++)i[r].pos<this.minStackPos&&(this.minStackPos=i[r].pos);return null}stopAt(e){if(this.stoppedAt!=null&&this.stoppedAt<e)throw new RangeError("Can't move stoppedAt forward");this.stoppedAt=e}advanceStack(e,t,i){let s=e.pos,{parser:o}=this,r=Le?this.stackID(e)+" -> ":"";if(this.stoppedAt!=null&&s>this.stoppedAt)return e.forceReduce()?e:null;if(this.fragments){let h=e.curContext&&e.curContext.tracker.strict,c=h?e.curContext.hash:0;for(let f=this.fragments.nodeAt(s);f;){let d=this.parser.nodeSet.types[f.type.id]==f.type?o.getGoto(e.state,f.type.id):-1;if(d>-1&&f.length&&(!h||(f.prop(j.contextHash)||0)==c))return e.useNode(f,d),Le&&console.log(r+this.stackID(e)+` (via reuse of ${o.getName(f.type.id)})`),!0;if(!(f instanceof ce)||f.children.length==0||f.positions[0]>0)break;let p=f.children[0];if(p instanceof ce&&f.positions[0]==0)f=p;else break}}let l=o.stateSlot(e.state,4);if(l>0)return e.reduce(l),Le&&console.log(r+this.stackID(e)+` (via always-reduce ${o.getName(l&65535)})`),!0;if(e.stack.length>=8400)for(;e.stack.length>6e3&&e.forceReduce(););let a=this.tokens.getActions(e);for(let h=0;h<a.length;){let c=a[h++],f=a[h++],d=a[h++],p=h==a.length||!i,g=p?e:e.split(),m=this.tokens.mainToken;if(g.apply(c,f,m?m.start:g.pos,d),Le&&console.log(r+this.stackID(g)+` (via ${(c&65536)==0?"shift":`reduce of ${o.getName(c&65535)}`} for ${o.getName(f)} @ ${s}${g==e?"":", split"})`),p)return!0;g.pos>s?t.push(g):i.push(g)}return!1}advanceFully(e,t){let i=e.pos;for(;;){if(!this.advanceStack(e,null,null))return!1;if(e.pos>i)return Vr(e,t),!0}}runRecovery(e,t,i){let s=null,o=!1;for(let r=0;r<e.length;r++){let l=e[r],a=t[r<<1],h=t[(r<<1)+1],c=Le?this.stackID(l)+" -> ":"";if(l.deadEnd&&(o||(o=!0,l.restart(),Le&&console.log(c+this.stackID(l)+" (restarted)"),this.advanceFully(l,i))))continue;let f=l.split(),d=c;for(let p=0;f.forceReduce()&&p<10&&(Le&&console.log(d+this.stackID(f)+" (via force-reduce)"),!this.advanceFully(f,i));p++)Le&&(d=this.stackID(f)+" -> ");for(let p of l.recoverByInsert(a))Le&&console.log(c+this.stackID(p)+" (via recover-insert)"),this.advanceFully(p,i);this.stream.end>l.pos?(h==l.pos&&(h++,a=0),l.recoverByDelete(a,h),Le&&console.log(c+this.stackID(l)+` (via recover-delete ${this.parser.getName(a)})`),Vr(l,i)):(!s||s.score<l.score)&&(s=l)}return s}stackToTree(e){return e.close(),ce.build({buffer:un.create(e),nodeSet:this.parser.nodeSet,topID:this.topTerm,maxBufferLength:this.parser.bufferLength,reused:this.reused,start:this.ranges[0].from,length:e.pos-this.ranges[0].from,minRepeatType:this.parser.minRepeatTerm})}stackID(e){let t=(e2||(e2=new WeakMap)).get(e);return t||e2.set(e,t=String.fromCodePoint(this.nextStackID++)),t+e}}function Vr(n,e){for(let t=0;t<e.length;t++){let i=e[t];if(i.pos==n.pos&&i.sameState(n)){e[t].score<n.score&&(e[t]=n);return}}e.push(n)}class V7{constructor(e,t,i){this.source=e,this.flags=t,this.disabled=i}allows(e){return!this.disabled||this.disabled[e]==0}}const t2=n=>n;class z7{constructor(e){this.start=e.start,this.shift=e.shift||t2,this.reduce=e.reduce||t2,this.reuse=e.reuse||t2,this.hash=e.hash||(()=>0),this.strict=e.strict!==!1}}class fn extends Ba{constructor(e){if(super(),this.wrappers=[],e.version!=14)throw new RangeError(`Parser version (${e.version}) doesn't match runtime version (14)`);let t=e.nodeNames.split(" ");this.minRepeatTerm=t.length;for(let l=0;l<e.repeatNodeCount;l++)t.push("");let i=Object.keys(e.topRules).map(l=>e.topRules[l][1]),s=[];for(let l=0;l<t.length;l++)s.push([]);function o(l,a,h){s[l].push([a,a.deserialize(String(h))])}if(e.nodeProps)for(let l of e.nodeProps){let a=l[0];typeof a=="string"&&(a=j[a]);for(let h=1;h<l.length;){let c=l[h++];if(c>=0)o(c,a,l[h++]);else{let f=l[h+-c];for(let d=-c;d>0;d--)o(l[h++],a,f);h++}}}this.nodeSet=new xs(t.map((l,a)=>Ve.define({name:a>=this.minRepeatTerm?void 0:l,id:a,props:s[a],top:i.indexOf(a)>-1,error:a==0,skipped:e.skippedNodes&&e.skippedNodes.indexOf(a)>-1}))),e.propSources&&(this.nodeSet=this.nodeSet.extend(...e.propSources)),this.strict=!1,this.bufferLength=Ma;let r=_i(e.tokenData);this.context=e.context,this.specializerSpecs=e.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let l=0;l<this.specializerSpecs.length;l++)this.specialized[l]=this.specializerSpecs[l].term;this.specializers=this.specializerSpecs.map(zr),this.states=_i(e.states,Uint32Array),this.data=_i(e.stateData),this.goto=_i(e.goto),this.maxTerm=e.maxTerm,this.tokenizers=e.tokenizers.map(l=>typeof l=="number"?new s0(r,l):l),this.topRules=e.topRules,this.dialects=e.dialects||{},this.dynamicPrecedences=e.dynamicPrecedences||null,this.tokenPrecTable=e.tokenPrec,this.termNames=e.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(e,t,i){let s=new E7(this,e,t,i);for(let o of this.wrappers)s=o(s,e,t,i);return s}getGoto(e,t,i=!1){let s=this.goto;if(t>=s[0])return-1;for(let o=s[t+1];;){let r=s[o++],l=r&1,a=s[o++];if(l&&i)return a;for(let h=o+(r>>1);o<h;o++)if(s[o]==e)return a;if(l)return-1}}hasAction(e,t){let i=this.data;for(let s=0;s<2;s++)for(let o=this.stateSlot(e,s?2:1),r;;o+=3){if((r=i[o])==65535)if(i[o+1]==1)r=i[o=ct(i,o+2)];else{if(i[o+1]==2)return ct(i,o+2);break}if(r==t||r==0)return ct(i,o+1)}return 0}stateSlot(e,t){return this.states[e*6+t]}stateFlag(e,t){return(this.stateSlot(e,0)&t)>0}validAction(e,t){return!!this.allActions(e,i=>i==t?!0:null)}allActions(e,t){let i=this.stateSlot(e,4),s=i?t(i):void 0;for(let o=this.stateSlot(e,1);s==null;o+=3){if(this.data[o]==65535)if(this.data[o+1]==1)o=ct(this.data,o+2);else break;s=t(ct(this.data,o+1))}return s}nextStates(e){let t=[];for(let i=this.stateSlot(e,1);;i+=3){if(this.data[i]==65535)if(this.data[i+1]==1)i=ct(this.data,i+2);else break;if((this.data[i+2]&1)==0){let s=this.data[i+1];t.some((o,r)=>r&1&&o==s)||t.push(this.data[i],s)}}return t}configure(e){let t=Object.assign(Object.create(fn.prototype),this);if(e.props&&(t.nodeSet=this.nodeSet.extend(...e.props)),e.top){let i=this.topRules[e.top];if(!i)throw new RangeError(`Invalid top rule name ${e.top}`);t.top=i}return e.tokenizers&&(t.tokenizers=this.tokenizers.map(i=>{let s=e.tokenizers.find(o=>o.from==i);return s?s.to:i})),e.specializers&&(t.specializers=this.specializers.slice(),t.specializerSpecs=this.specializerSpecs.map((i,s)=>{let o=e.specializers.find(l=>l.from==i.external);if(!o)return i;let r=Object.assign(Object.assign({},i),{external:o.to});return t.specializers[s]=zr(r),r})),e.contextTracker&&(t.context=e.contextTracker),e.dialect&&(t.dialect=this.parseDialect(e.dialect)),e.strict!=null&&(t.strict=e.strict),e.wrap&&(t.wrappers=t.wrappers.concat(e.wrap)),e.bufferLength!=null&&(t.bufferLength=e.bufferLength),t}hasWrappers(){return this.wrappers.length>0}getName(e){return this.termNames?this.termNames[e]:String(e<=this.maxNode&&this.nodeSet.types[e].name||e)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(e){let t=this.dynamicPrecedences;return t==null?0:t[e]||0}parseDialect(e){let t=Object.keys(this.dialects),i=t.map(()=>!1);if(e)for(let o of e.split(" ")){let r=t.indexOf(o);r>=0&&(i[r]=!0)}let s=null;for(let o=0;o<t.length;o++)if(!i[o])for(let r=this.dialects[t[o]],l;(l=this.data[r++])!=65535;)(s||(s=new Uint8Array(this.maxTerm+1)))[l]=1;return new V7(e,i,s)}static deserialize(e){return new fn(e)}}function ct(n,e){return n[e]|n[e+1]<<16}function L7(n){let e=null;for(let t of n){let i=t.p.stoppedAt;(t.pos==t.p.stream.end||i!=null&&t.pos>i)&&t.p.parser.stateFlag(t.state,2)&&(!e||e.score<t.score)&&(e=t)}return e}function zr(n){if(n.external){let e=n.extend?1:0;return(t,i)=>n.external(t,i)<<1|e}return n.get}const Z2=1,N7=2,R7=3,I7=4,H7=5,$7=36,W7=37,F7=38,G7=11,j7=13;function q7(n){return n==45||n==46||n==58||n>=65&&n<=90||n==95||n>=97&&n<=122||n>=161}function U7(n){return n==9||n==10||n==13||n==32}let Lr=null,Nr=null,Rr=0;function es(n,e){let t=n.pos+e;if(Nr==n&&Rr==t)return Lr;for(;U7(n.peek(e));)e++;let i="";for(;;){let s=n.peek(e);if(!q7(s))break;i+=String.fromCharCode(s),e++}return Nr=n,Rr=t,Lr=i||null}function Ir(n,e){this.name=n,this.parent=e}const Y7=new z7({start:null,shift(n,e,t,i){return e==Z2?new Ir(es(i,1)||"",n):n},reduce(n,e){return e==G7&&n?n.parent:n},reuse(n,e,t,i){let s=e.type.id;return s==Z2||s==j7?new Ir(es(i,1)||"",n):n},strict:!1}),K7=new Xc((n,e)=>{if(n.next==60){if(n.advance(),n.next==47){n.advance();let t=es(n,0);if(!t)return n.acceptToken(H7);if(e.context&&t==e.context.name)return n.acceptToken(N7);for(let i=e.context;i;i=i.parent)if(i.name==t)return n.acceptToken(R7,-2);n.acceptToken(I7)}else if(n.next!=33&&n.next!=63)return n.acceptToken(Z2)}},{contextual:!0});function Ns(n,e){return new Xc(t=>{let i=0,s=e.charCodeAt(0);e:for(;!(t.next<0);t.advance(),i++)if(t.next==s){for(let o=1;o<e.length;o++)if(t.peek(o)!=e.charCodeAt(o))continue e;break}i&&t.acceptToken(n)})}const X7=Ns($7,"-->"),Q7=Ns(W7,"?>"),J7=Ns(F7,"]]>"),Z7=Pa({Text:D.content,"StartTag StartCloseTag EndTag SelfCloseEndTag":D.angleBracket,TagName:D.tagName,"MismatchedCloseTag/TagName":[D.tagName,D.invalid],AttributeName:D.attributeName,AttributeValue:D.attributeValue,Is:D.definitionOperator,"EntityReference CharacterReference":D.character,Comment:D.blockComment,ProcessingInst:D.processingInstruction,DoctypeDecl:D.documentMeta,Cdata:D.special(D.string)}),eg=fn.deserialize({version:14,states:",lOQOaOOOrOxO'#CfOzOpO'#CiO!tOaO'#CgOOOP'#Cg'#CgO!{OrO'#CrO#TOtO'#CsO#]OpO'#CtOOOP'#DT'#DTOOOP'#Cv'#CvQQOaOOOOOW'#Cw'#CwO#eOxO,59QOOOP,59Q,59QOOOO'#Cx'#CxO#mOpO,59TO#uO!bO,59TOOOP'#C|'#C|O$TOaO,59RO$[OpO'#CoOOOP,59R,59ROOOQ'#C}'#C}O$dOrO,59^OOOP,59^,59^OOOS'#DO'#DOO$lOtO,59_OOOP,59_,59_O$tOpO,59`O$|OpO,59`OOOP-E6t-E6tOOOW-E6u-E6uOOOP1G.l1G.lOOOO-E6v-E6vO%UO!bO1G.oO%UO!bO1G.oO%dOpO'#CkO%lO!bO'#CyO%zO!bO1G.oOOOP1G.o1G.oOOOP1G.w1G.wOOOP-E6z-E6zOOOP1G.m1G.mO&VOpO,59ZO&_OpO,59ZOOOQ-E6{-E6{OOOP1G.x1G.xOOOS-E6|-E6|OOOP1G.y1G.yO&gOpO1G.zO&gOpO1G.zOOOP1G.z1G.zO&oO!bO7+$ZO&}O!bO7+$ZOOOP7+$Z7+$ZOOOP7+$c7+$cO'YOpO,59VO'bOpO,59VO'mO!bO,59eOOOO-E6w-E6wO'{OpO1G.uO'{OpO1G.uOOOP1G.u1G.uO(TOpO7+$fOOOP7+$f7+$fO(]O!bO<<GuOOOP<<Gu<<GuOOOP<<G}<<G}O'bOpO1G.qO'bOpO1G.qO(hO#tO'#CnO(vO&jO'#CnOOOO1G.q1G.qO)UOpO7+$aOOOP7+$a7+$aOOOP<<HQ<<HQOOOPAN=aAN=aOOOPAN=iAN=iO'bOpO7+$]OOOO7+$]7+$]OOOO'#Cz'#CzO)^O#tO,59YOOOO,59Y,59YOOOO'#C{'#C{O)lO&jO,59YOOOP<<G{<<G{OOOO<<Gw<<GwOOOO-E6x-E6xOOOO1G.t1G.tOOOO-E6y-E6y",stateData:")z~OPQOSVOTWOVWOWWOXWOiXOyPO!QTO!SUO~OvZOx]O~O^`Oz^O~OPQOQcOSVOTWOVWOWWOXWOyPO!QTO!SUO~ORdO~P!SOteO!PgO~OuhO!RjO~O^lOz^O~OvZOxoO~O^qOz^O~O[vO`sOdwOz^O~ORyO~P!SO^{Oz^O~OteO!P}O~OuhO!R!PO~O^!QOz^O~O[!SOz^O~O[!VO`sOd!WOz^O~Oa!YOz^O~Oz^O[mX`mXdmX~O[!VO`sOd!WO~O^!]Oz^O~O[!_Oz^O~O[!aOz^O~O[!cO`sOd!dOz^O~O[!cO`sOd!dO~Oa!eOz^O~Oz^O{!gO}!hO~Oz^O[ma`madma~O[!kOz^O~O[!lOz^O~O[!mO`sOd!nO~OW!qOX!qO{!sO|!qO~OW!tOX!tO}!sO!O!tO~O[!vOz^O~OW!qOX!qO{!yO|!qO~OW!tOX!tO}!yO!O!tO~O",goto:"%cxPPPPPPPPPPyyP!PP!VPP!`!jP!pyyyP!v!|#S$[$k$q$w$}%TPPPP%ZXWORYbXRORYb_t`qru!T!U!bQ!i!YS!p!e!fR!w!oQdRRybXSORYbQYORmYQ[PRn[Q_QQkVjp_krz!R!T!X!Z!^!`!f!j!oQr`QzcQ!RlQ!TqQ!XsQ!ZtQ!^{Q!`!QQ!f!YQ!j!]R!o!eQu`S!UqrU![u!U!bR!b!TQ!r!gR!x!rQ!u!hR!z!uQbRRxbQfTR|fQiUR!OiSXOYTaRb",nodeNames:"⚠ StartTag StartCloseTag MissingCloseTag StartCloseTag StartCloseTag Document Text EntityReference CharacterReference Cdata Element EndTag OpenTag TagName Attribute AttributeName Is AttributeValue CloseTag SelfCloseEndTag SelfClosingTag Comment ProcessingInst MismatchedCloseTag DoctypeDecl",maxTerm:50,context:Y7,nodeProps:[["closedBy",1,"SelfCloseEndTag EndTag",13,"CloseTag MissingCloseTag"],["openedBy",12,"StartTag StartCloseTag",19,"OpenTag",20,"StartTag"],["isolate",-6,13,18,19,21,22,24,""]],propSources:[Z7],skippedNodes:[0],repeatNodeCount:9,tokenData:"!)v~R!YOX$qXY)iYZ)iZ]$q]^)i^p$qpq)iqr$qrs*vsv$qvw+fwx/ix}$q}!O0[!O!P$q!P!Q2z!Q![$q![!]4n!]!^$q!^!_8U!_!`!#t!`!a!$l!a!b!%d!b!c$q!c!}4n!}#P$q#P#Q!'W#Q#R$q#R#S4n#S#T$q#T#o4n#o%W$q%W%o4n%o%p$q%p&a4n&a&b$q&b1p4n1p4U$q4U4d4n4d4e$q4e$IS4n$IS$I`$q$I`$Ib4n$Ib$Kh$q$Kh%#t4n%#t&/x$q&/x&Et4n&Et&FV$q&FV;'S4n;'S;:j8O;:j;=`)c<%l?&r$q?&r?Ah4n?Ah?BY$q?BY?Mn4n?MnO$qi$zXVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_;'S$q;'S;=`)c<%lO$qa%nVVP!O`Ov%gwx&Tx!^%g!^!_&o!_;'S%g;'S;=`'W<%lO%gP&YTVPOv&Tw!^&T!_;'S&T;'S;=`&i<%lO&TP&lP;=`<%l&T`&tS!O`Ov&ox;'S&o;'S;=`'Q<%lO&o`'TP;=`<%l&oa'ZP;=`<%l%gX'eWVP|WOr'^rs&Tsv'^w!^'^!^!_'}!_;'S'^;'S;=`(i<%lO'^W(ST|WOr'}sv'}w;'S'};'S;=`(c<%lO'}W(fP;=`<%l'}X(lP;=`<%l'^h(vV|W!O`Or(ors&osv(owx'}x;'S(o;'S;=`)]<%lO(oh)`P;=`<%l(oi)fP;=`<%l$qo)t`VP|W!O`zUOX$qXY)iYZ)iZ]$q]^)i^p$qpq)iqr$qrs%gsv$qwx'^x!^$q!^!_(o!_;'S$q;'S;=`)c<%lO$qk+PV{YVP!O`Ov%gwx&Tx!^%g!^!_&o!_;'S%g;'S;=`'W<%lO%g~+iast,n![!]-r!c!}-r#R#S-r#T#o-r%W%o-r%p&a-r&b1p-r4U4d-r4e$IS-r$I`$Ib-r$Kh%#t-r&/x&Et-r&FV;'S-r;'S;:j/c?&r?Ah-r?BY?Mn-r~,qQ!Q![,w#l#m-V~,zQ!Q![,w!]!^-Q~-VOX~~-YR!Q![-c!c!i-c#T#Z-c~-fS!Q![-c!]!^-Q!c!i-c#T#Z-c~-ug}!O-r!O!P-r!Q![-r![!]-r!]!^/^!c!}-r#R#S-r#T#o-r$}%O-r%W%o-r%p&a-r&b1p-r1p4U-r4U4d-r4e$IS-r$I`$Ib-r$Je$Jg-r$Kh%#t-r&/x&Et-r&FV;'S-r;'S;:j/c?&r?Ah-r?BY?Mn-r~/cOW~~/fP;=`<%l-rk/rW}bVP|WOr'^rs&Tsv'^w!^'^!^!_'}!_;'S'^;'S;=`(i<%lO'^k0eZVP|W!O`Or$qrs%gsv$qwx'^x}$q}!O1W!O!^$q!^!_(o!_;'S$q;'S;=`)c<%lO$qk1aZVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_!`$q!`!a2S!a;'S$q;'S;=`)c<%lO$qk2_X!PQVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_;'S$q;'S;=`)c<%lO$qm3TZVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_!`$q!`!a3v!a;'S$q;'S;=`)c<%lO$qm4RXdSVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_;'S$q;'S;=`)c<%lO$qo4{!P`S^QVP|W!O`Or$qrs%gsv$qwx'^x}$q}!O4n!O!P4n!P!Q$q!Q![4n![!]4n!]!^$q!^!_(o!_!c$q!c!}4n!}#R$q#R#S4n#S#T$q#T#o4n#o$}$q$}%O4n%O%W$q%W%o4n%o%p$q%p&a4n&a&b$q&b1p4n1p4U4n4U4d4n4d4e$q4e$IS4n$IS$I`$q$I`$Ib4n$Ib$Je$q$Je$Jg4n$Jg$Kh$q$Kh%#t4n%#t&/x$q&/x&Et4n&Et&FV$q&FV;'S4n;'S;:j8O;:j;=`)c<%l?&r$q?&r?Ah4n?Ah?BY$q?BY?Mn4n?MnO$qo8RP;=`<%l4ni8]Y|W!O`Oq(oqr8{rs&osv(owx'}x!a(o!a!b!#U!b;'S(o;'S;=`)]<%lO(oi9S_|W!O`Or(ors&osv(owx'}x}(o}!O:R!O!f(o!f!g;e!g!}(o!}#ODh#O#W(o#W#XLp#X;'S(o;'S;=`)]<%lO(oi:YX|W!O`Or(ors&osv(owx'}x}(o}!O:u!O;'S(o;'S;=`)]<%lO(oi;OV!QP|W!O`Or(ors&osv(owx'}x;'S(o;'S;=`)]<%lO(oi;lX|W!O`Or(ors&osv(owx'}x!q(o!q!r<X!r;'S(o;'S;=`)]<%lO(oi<`X|W!O`Or(ors&osv(owx'}x!e(o!e!f<{!f;'S(o;'S;=`)]<%lO(oi=SX|W!O`Or(ors&osv(owx'}x!v(o!v!w=o!w;'S(o;'S;=`)]<%lO(oi=vX|W!O`Or(ors&osv(owx'}x!{(o!{!|>c!|;'S(o;'S;=`)]<%lO(oi>jX|W!O`Or(ors&osv(owx'}x!r(o!r!s?V!s;'S(o;'S;=`)]<%lO(oi?^X|W!O`Or(ors&osv(owx'}x!g(o!g!h?y!h;'S(o;'S;=`)]<%lO(oi@QY|W!O`Or?yrs@psv?yvwA[wxBdx!`?y!`!aCr!a;'S?y;'S;=`Db<%lO?ya@uV!O`Ov@pvxA[x!`@p!`!aAy!a;'S@p;'S;=`B^<%lO@pPA_TO!`A[!`!aAn!a;'SA[;'S;=`As<%lOA[PAsOiPPAvP;=`<%lA[aBQSiP!O`Ov&ox;'S&o;'S;=`'Q<%lO&oaBaP;=`<%l@pXBiX|WOrBdrsA[svBdvwA[w!`Bd!`!aCU!a;'SBd;'S;=`Cl<%lOBdXC]TiP|WOr'}sv'}w;'S'};'S;=`(c<%lO'}XCoP;=`<%lBdiC{ViP|W!O`Or(ors&osv(owx'}x;'S(o;'S;=`)]<%lO(oiDeP;=`<%l?yiDoZ|W!O`Or(ors&osv(owx'}x!e(o!e!fEb!f#V(o#V#WIr#W;'S(o;'S;=`)]<%lO(oiEiX|W!O`Or(ors&osv(owx'}x!f(o!f!gFU!g;'S(o;'S;=`)]<%lO(oiF]X|W!O`Or(ors&osv(owx'}x!c(o!c!dFx!d;'S(o;'S;=`)]<%lO(oiGPX|W!O`Or(ors&osv(owx'}x!v(o!v!wGl!w;'S(o;'S;=`)]<%lO(oiGsX|W!O`Or(ors&osv(owx'}x!c(o!c!dH`!d;'S(o;'S;=`)]<%lO(oiHgX|W!O`Or(ors&osv(owx'}x!}(o!}#OIS#O;'S(o;'S;=`)]<%lO(oiI]V|W!O`yPOr(ors&osv(owx'}x;'S(o;'S;=`)]<%lO(oiIyX|W!O`Or(ors&osv(owx'}x#W(o#W#XJf#X;'S(o;'S;=`)]<%lO(oiJmX|W!O`Or(ors&osv(owx'}x#T(o#T#UKY#U;'S(o;'S;=`)]<%lO(oiKaX|W!O`Or(ors&osv(owx'}x#h(o#h#iK|#i;'S(o;'S;=`)]<%lO(oiLTX|W!O`Or(ors&osv(owx'}x#T(o#T#UH`#U;'S(o;'S;=`)]<%lO(oiLwX|W!O`Or(ors&osv(owx'}x#c(o#c#dMd#d;'S(o;'S;=`)]<%lO(oiMkX|W!O`Or(ors&osv(owx'}x#V(o#V#WNW#W;'S(o;'S;=`)]<%lO(oiN_X|W!O`Or(ors&osv(owx'}x#h(o#h#iNz#i;'S(o;'S;=`)]<%lO(oi! RX|W!O`Or(ors&osv(owx'}x#m(o#m#n! n#n;'S(o;'S;=`)]<%lO(oi! uX|W!O`Or(ors&osv(owx'}x#d(o#d#e!!b#e;'S(o;'S;=`)]<%lO(oi!!iX|W!O`Or(ors&osv(owx'}x#X(o#X#Y?y#Y;'S(o;'S;=`)]<%lO(oi!#_V!SP|W!O`Or(ors&osv(owx'}x;'S(o;'S;=`)]<%lO(ok!$PXaQVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_;'S$q;'S;=`)c<%lO$qo!$wX[UVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_;'S$q;'S;=`)c<%lO$qk!%mZVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_!`$q!`!a!&`!a;'S$q;'S;=`)c<%lO$qk!&kX!RQVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_;'S$q;'S;=`)c<%lO$qk!'aZVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_#P$q#P#Q!(S#Q;'S$q;'S;=`)c<%lO$qk!(]ZVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_!`$q!`!a!)O!a;'S$q;'S;=`)c<%lO$qk!)ZXxQVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_;'S$q;'S;=`)c<%lO$q",tokenizers:[K7,X7,Q7,J7,0,1,2,3,4],topRules:{Document:[0,6]},tokenPrec:0});function Ni(n,e){let t=e&&e.getChild("TagName");return t?n.sliceString(t.from,t.to):""}function i2(n,e){let t=e&&e.firstChild;return!t||t.name!="OpenTag"?"":Ni(n,t)}function tg(n,e,t){let i=e&&e.getChildren("Attribute").find(o=>o.from<=t&&o.to>=t),s=i&&i.getChild("AttributeName");return s?n.sliceString(s.from,s.to):""}function n2(n){for(let e=n&&n.parent;e;e=e.parent)if(e.name=="Element")return e;return null}function ig(n,e){var t;let i=me(n).resolveInner(e,-1),s=null;for(let o=i;!s&&o.parent;o=o.parent)(o.name=="OpenTag"||o.name=="CloseTag"||o.name=="SelfClosingTag"||o.name=="MismatchedCloseTag")&&(s=o);if(s&&(s.to>e||s.lastChild.type.isError)){let o=s.parent;if(i.name=="TagName")return s.name=="CloseTag"||s.name=="MismatchedCloseTag"?{type:"closeTag",from:i.from,context:o}:{type:"openTag",from:i.from,context:n2(o)};if(i.name=="AttributeName")return{type:"attrName",from:i.from,context:s};if(i.name=="AttributeValue")return{type:"attrValue",from:i.from,context:s};let r=i==s||i.name=="Attribute"?i.childBefore(e):i;return(r==null?void 0:r.name)=="StartTag"?{type:"openTag",from:e,context:n2(o)}:(r==null?void 0:r.name)=="StartCloseTag"&&r.to<=e?{type:"closeTag",from:e,context:o}:(r==null?void 0:r.name)=="Is"?{type:"attrValue",from:e,context:s}:r?{type:"attrName",from:e,context:s}:null}else if(i.name=="StartCloseTag")return{type:"closeTag",from:e,context:i.parent};for(;i.parent&&i.to==e&&!(!((t=i.lastChild)===null||t===void 0)&&t.type.isError);)i=i.parent;return i.name=="Element"||i.name=="Text"||i.name=="Document"?{type:"tag",from:e,context:i.name=="Element"?i:n2(i)}:null}class ng{constructor(e,t,i){this.attrs=t,this.attrValues=i,this.children=[],this.name=e.name,this.completion=Object.assign(Object.assign({type:"type"},e.completion||{}),{label:this.name}),this.openCompletion=Object.assign(Object.assign({},this.completion),{label:"<"+this.name}),this.closeCompletion=Object.assign(Object.assign({},this.completion),{label:"</"+this.name+">",boost:2}),this.closeNameCompletion=Object.assign(Object.assign({},this.completion),{label:this.name+">"}),this.text=e.textContent?e.textContent.map(s=>({label:s,type:"text"})):[]}}const s2=/^[:\-\.\w\u00b7-\uffff]*$/;function Hr(n){return Object.assign(Object.assign({type:"property"},n.completion||{}),{label:n.name})}function $r(n){return typeof n=="string"?{label:`"${n}"`,type:"constant"}:/^"/.test(n.label)?n:Object.assign(Object.assign({},n),{label:`"${n.label}"`})}function sg(n,e){let t=[],i=[],s=Object.create(null);for(let a of e){let h=Hr(a);t.push(h),a.global&&i.push(h),a.values&&(s[a.name]=a.values.map($r))}let o=[],r=[],l=Object.create(null);for(let a of n){let h=i,c=s;a.attributes&&(h=h.concat(a.attributes.map(d=>typeof d=="string"?t.find(p=>p.label==d)||{label:d,type:"property"}:(d.values&&(c==s&&(c=Object.create(c)),c[d.name]=d.values.map($r)),Hr(d)))));let f=new ng(a,h,c);l[f.name]=f,o.push(f),a.top&&r.push(f)}r.length||(r=o);for(let a=0;a<o.length;a++){let h=n[a],c=o[a];if(h.children)for(let f of h.children)l[f]&&c.children.push(l[f]);else c.children=o}return a=>{var h;let{doc:c}=a.state,f=ig(a.state,a.pos);if(!f||f.type=="tag"&&!a.explicit)return null;let{type:d,from:p,context:g}=f;if(d=="openTag"){let m=r,v=i2(c,g);if(v){let w=l[v];m=(w==null?void 0:w.children)||o}return{from:p,options:m.map(w=>w.completion),validFor:s2}}else if(d=="closeTag"){let m=i2(c,g);return m?{from:p,to:a.pos+(c.sliceString(a.pos,a.pos+1)==">"?1:0),options:[((h=l[m])===null||h===void 0?void 0:h.closeNameCompletion)||{label:m+">",type:"type"}],validFor:s2}:null}else if(d=="attrName"){let m=l[Ni(c,g)];return{from:p,options:(m==null?void 0:m.attrs)||i,validFor:s2}}else if(d=="attrValue"){let m=tg(c,g,p);if(!m)return null;let v=l[Ni(c,g)],w=((v==null?void 0:v.attrValues)||s)[m];return!w||!w.length?null:{from:p,to:a.pos+(c.sliceString(a.pos,a.pos+1)=='"'?1:0),options:w,validFor:/^"[^"]*"?$/}}else if(d=="tag"){let m=i2(c,g),v=l[m],w=[],b=g&&g.lastChild;m&&(!b||b.name!="CloseTag"||Ni(c,b)!=m)&&w.push(v?v.closeCompletion:{label:"</"+m+">",type:"type",boost:2});let S=w.concat(((v==null?void 0:v.children)||(g?o:r)).map(_=>_.openCompletion));if(g&&(v!=null&&v.text.length)){let _=g.firstChild;_.to>a.pos-20&&!/\S/.test(a.state.sliceDoc(_.to,a.pos))&&(S=S.concat(v.text))}return{from:p,options:S,validFor:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}else return null}}const ts=Xi.define({name:"xml",parser:eg.configure({props:[La.add({Element(n){let e=/^\s*<\//.test(n.textAfter);return n.lineIndent(n.node.from)+(e?0:n.unit)},"OpenTag CloseTag SelfClosingTag"(n){return n.column(n.node.from)+n.unit}}),Ra.add({Element(n){let e=n.firstChild,t=n.lastChild;return!e||e.name!="OpenTag"?null:{from:e.to,to:t.name=="CloseTag"?t.from:n.to}}}),Xa.add({"OpenTag CloseTag":n=>n.getChild("TagName")})]}),languageData:{commentTokens:{block:{open:"<!--",close:"-->"}},indentOnInput:/^\s*<\/$/}});function og(n={}){let e=[ts.data.of({autocomplete:sg(n.elements||[],n.attributes||[])})];return n.autoCloseTags!==!1&&e.push(rg),new Z4(ts,e)}function Wr(n,e,t=n.length){if(!e)return"";let i=e.firstChild,s=i&&i.getChild("TagName");return s?n.sliceString(s.from,Math.min(s.to,t)):""}const rg=z.inputHandler.of((n,e,t,i,s)=>{if(n.composing||n.state.readOnly||e!=t||i!=">"&&i!="/"||!ts.isActiveAt(n.state,e,-1))return!1;let o=s(),{state:r}=o,l=r.changeByRange(a=>{var h,c,f;let{head:d}=a,p=r.doc.sliceString(d-1,d)==i,g=me(r).resolveInner(d,-1),m;if(p&&i==">"&&g.name=="EndTag"){let v=g.parent;if(((c=(h=v.parent)===null||h===void 0?void 0:h.lastChild)===null||c===void 0?void 0:c.name)!="CloseTag"&&(m=Wr(r.doc,v.parent,d))){let w=d+(r.doc.sliceString(d,d+1)===">"?1:0),b=`</${m}>`;return{range:a,changes:{from:d,to:w,insert:b}}}}else if(p&&i=="/"&&g.name=="StartCloseTag"){let v=g.parent;if(g.from==d-2&&((f=v.lastChild)===null||f===void 0?void 0:f.name)!="CloseTag"&&(m=Wr(r.doc,v,d))){let w=d+(r.doc.sliceString(d,d+1)===">"?1:0),b=`${m}>`;return{range:O.cursor(d+b.length,-1),changes:{from:d,to:w,insert:b}}}}return{range:a}});return l.changes.empty?!1:(n.dispatch([o,r.update(l,{userEvent:"input.complete",scrollIntoView:!0})]),!0)}),lg={class:"xml-renderer"},ag={ref:"xml-editor",id:"xml-editor"},cg={__name:"index",props:{fileName:String,blobUrl:String},setup(n){const e=n,t=u.computed(()=>e.blobUrl),i=u.ref("");return u.watchEffect(async()=>{const o=await(await fetch(t.value)).blob(),r=new FileReader;r.onload=function(l){i.value=l.target.result},r.readAsText(o)}),u.watchEffect(()=>{const s=new z({doc:i.value,extensions:[O7,og(),z.lineWrapping,q.readOnly.of(!0)],parent:document.querySelector("#xml-editor")});s.dom.style.width="100%"}),(s,o)=>(u.openBlock(),u.createElementBlock("div",lg,[u.createElementVNode("div",ag,null,512)]))}},hg=de._export_sfc(cg,[["__scopeId","data-v-5a7ea2b9"]]),ug={class:"img-renderer"},fg={__name:"index",props:{fileName:String,blobUrl:String},setup(n){const e=n,t=u.computed(()=>e.blobUrl),i=u.computed(()=>[e.blobUrl]);return(s,o)=>{const r=u.resolveComponent("el-image");return u.openBlock(),u.createElementBlock("div",ug,[u.createVNode(r,{class:"render-img",src:t.value,"zoom-rate":1.2,"max-scale":7,"min-scale":.2,"preview-src-list":i.value,fit:"contain"},null,8,["src","preview-src-list"])])}}},dg=de._export_sfc(fg,[["__scopeId","data-v-92be70b7"]]),pg={class:"file-preview"},gg={key:0,class:"preview-docx"},mg={key:1,class:"preview-xlsx"},vg={key:2,class:"preview-pdf"},wg={key:3,class:"preview-xml"},xg={key:4,class:"preview-xml"},bg={key:5,class:"preview-txt"},yg={key:6,class:"not-support"},kg={__name:"index",props:{fileName:String,blobUrl:String},emits:["destroy"],setup(n,{emit:e}){const t=e,i=n,s=u.computed(()=>i.blobUrl),o=u.computed(()=>i.fileName),r=u.computed(()=>{const v=o.value;if(!v)return;const w=v.split(".");return w==null?void 0:w[1]}),l=u.computed(()=>(r==null?void 0:r.value)==="txt"),a=u.computed(()=>(r==null?void 0:r.value)==="ls"),h=u.computed(()=>(r==null?void 0:r.value)==="urdf"),c=u.computed(()=>h.value),f=u.computed(()=>(r==null?void 0:r.value)==="docx"),d=u.computed(()=>(r==null?void 0:r.value)==="xlsx"),p=u.computed(()=>(r==null?void 0:r.value)==="pdf"),g=u.computed(()=>{const v=r==null?void 0:r.value;return v==="jpg"||v==="png"}),m=u.computed(()=>!l&&!a&&!c&&!f&&!d&&!p&&!g);return u.onUnmounted(()=>{t("destroy")}),(v,w)=>(u.openBlock(),u.createElementBlock("div",pg,[f.value?(u.openBlock(),u.createElementBlock("div",gg,[u.createVNode(Mf,{fileName:o.value,blobUrl:s.value},null,8,["fileName","blobUrl"])])):u.createCommentVNode("",!0),d.value?(u.openBlock(),u.createElementBlock("div",mg,[u.createVNode(Af,{fileName:o.value,blobUrl:s.value},null,8,["fileName","blobUrl"])])):u.createCommentVNode("",!0),p.value?(u.openBlock(),u.createElementBlock("div",vg,[u.createVNode(Vf,{fileName:o.value,blobUrl:s.value},null,8,["fileName","blobUrl"])])):u.createCommentVNode("",!0),h.value?(u.openBlock(),u.createElementBlock("div",wg,[u.createVNode(hg,{fileName:o.value,blobUrl:s.value},null,8,["fileName","blobUrl"])])):u.createCommentVNode("",!0),g.value?(u.openBlock(),u.createElementBlock("div",xg,[u.createVNode(dg,{fileName:o.value,blobUrl:s.value},null,8,["fileName","blobUrl"])])):!f.value&&!d.value&&!p.value&&!h.value&&!g.value?(u.openBlock(),u.createElementBlock("div",bg,[u.createVNode(Cf,{fileName:o.value,blobUrl:s.value},null,8,["fileName","blobUrl"])])):u.createCommentVNode("",!0),m.value?(u.openBlock(),u.createElementBlock("div",yg,w[0]||(w[0]=[u.createElementVNode("div",null,"当前文件格式暂不支持预览",-1)]))):u.createCommentVNode("",!0)]))}},Rs=de._export_sfc(kg,[["__scopeId","data-v-4049578c"]]),Sg={key:0,class:"upload-value"},Cg={class:"upload-content-title-wrap"},_g={class:"upload-content-title"},Og={class:"icon"},Mg={style:{display:"flex","justify-content":"space-between",width:"100%"}},Dg={class:"upload-content-title"},Tg={class:"icon"},Ag={class:"dialog-footer"},Bg={__name:"index",props:{modelValue:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},emits:["update:modelValue"],setup(n,{emit:e}){const t=n,i=e,s=u.ref(Array.isArray(t.modelValue)?t.modelValue:[]),o=u.ref(!1),r=u.ref(Array.isArray(t.modelValue)?t.modelValue:[]),l=u.ref(!1),a=u.ref(""),h=u.ref(""),c=u.ref(Array.isArray(t.modelValue)?t.modelValue:[]),f=()=>{l.value=!0,c.value=s.value,r.value=s.value},d=async S=>{var C;const _=await el({url:(C=te.cloneDeep(S))==null?void 0:C.url});let y=URL.createObjectURL(_.data);h.value=y},p=async S=>{var y,C,k,T;if(S==null?void 0:S.url)a.value=(S==null?void 0:S.name)+"."+((T=(y=te.cloneDeep(S))==null?void 0:y.url.split("."))==null?void 0:T[((k=(C=te.cloneDeep(S))==null?void 0:C.url.split("."))==null?void 0:k.length)-1]),await d(S);else{a.value=S==null?void 0:S.name;const P=S.raw;h.value=URL.createObjectURL(P)}o.value=!0},g=S=>{var _;c.value=(_=te.cloneDeep(c.value))==null?void 0:_.filter((y,C)=>C!==S),r.value=c.value},m=S=>{var P;const _=S.split(","),y=(P=_==null?void 0:_[0])==null?void 0:P.match(/:(.*?);/)[1],C=atob(_[1]);let k=C.length;const T=new Uint8Array(k);for(;k--;)T[k]=C.charCodeAt(k);return new Blob([T],{type:y})},v=async()=>{var C;l.value=!1;const S=(C=r.value)==null?void 0:C.map(async k=>{if(k!=null&&k.base64){const T=new FormData,P=m(k==null?void 0:k.base64);return T.append("file",P,k==null?void 0:k.name),await xf(T)}else return k}),_=await Promise.all(S);let y=[];_==null||_.map(k=>{var T,P,x,H,N,M;return y.push({name:((P=(T=k==null?void 0:k.data)==null?void 0:T.result)==null?void 0:P.fileName)??(k==null?void 0:k.name),url:((H=(x=k==null?void 0:k.data)==null?void 0:x.result)==null?void 0:H.url)??(k==null?void 0:k.url)}),(M=(N=k==null?void 0:k.data)==null?void 0:N.result)==null?void 0:M.url}),te.ElMessage.success("上传成功"),s.value=y,i("update:modelValue",y),r.value=[]},w=()=>{l.value=!1,r.value=s.value,c.value=s.value},b=S=>{if(!S)return;const _=new FileReader;_.onload=y=>{const C=r.value===""?[]:r.value;C.push({name:S.name,size:S.size,type:S.type,base64:y.target.result}),r.value=C},_.onerror=y=>{console.error("文件读取错误:",y),fileData.value={name:"",size:0,type:"",base64:""}},_.readAsDataURL(S.raw)};return(S,_)=>{const y=u.resolveComponent("el-button"),C=u.resolveComponent("svg-icon"),k=u.resolveComponent("el-icon"),T=u.resolveComponent("el-upload");return t!=null&&t.isEdit?(u.openBlock(),u.createElementBlock("div",Sg,[u.createVNode(y,{type:"primary",onClick:f,class:"upload-button"},{default:u.withCtx(()=>_[2]||(_[2]=[u.createTextVNode(" 上传 ")])),_:1,__:[2]}),u.createElementVNode("div",Cg,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(s.value,P=>(u.openBlock(),u.createElementBlock("div",{class:"upload-content-title",key:P,style:{display:"flex","justify-content":"space-between",width:"100%"}},[u.createElementVNode("div",_g,u.toDisplayString(P==null?void 0:P.name),1),u.createElementVNode("div",Og,[u.createVNode(C,{name:"EyeFill",style:{width:"20px",height:"20px",cursor:"pointer"},onClick:x=>p(P)},null,8,["onClick"])])]))),128))]),u.createVNode(E0,{visible:l.value,onBeforeDestroy:w,title:"上传文件"},{default:u.withCtx(()=>[u.createVNode(T,{"file-list":c.value,"onUpdate:fileList":_[0]||(_[0]=P=>c.value=P),multiple:"",drag:"",action:"","auto-upload":!1,limit:20,"on-change":b,class:"upload-content"},{tip:u.withCtx(()=>_[3]||(_[3]=[u.createElementVNode("div",{class:"el-upload__tip tip-content"}," 请上传大小不超过10MB的文件 ",-1)])),default:u.withCtx(()=>[u.createVNode(k,{class:"el-icon--upload"},{default:u.withCtx(()=>[u.createVNode(u.unref(te.upload_filled_default))]),_:1}),_[4]||(_[4]=u.createElementVNode("div",{class:"el-upload__text"},[u.createTextVNode(" 将文件拖到此处或"),u.createElementVNode("em",null,"点击上传")],-1))]),file:u.withCtx(({file:P,index:x})=>[u.createElementVNode("div",Mg,[u.createElementVNode("div",Dg,u.toDisplayString(P==null?void 0:P.name),1),u.createElementVNode("div",Tg,[u.createVNode(C,{name:"EyeFill",style:{width:"20px",height:"20px",cursor:"pointer"},onClick:H=>p(P)},null,8,["onClick"]),u.createVNode(C,{name:"Cancel",style:{width:"20px",height:"20px",cursor:"pointer"},onClick:H=>g(x)},null,8,["onClick"])])])]),_:1},8,["file-list"])]),footer:u.withCtx(()=>[u.createElementVNode("div",Ag,[u.createVNode(y,{onClick:w,id:"themeBorderButton"},{default:u.withCtx(()=>_[5]||(_[5]=[u.createTextVNode("取消")])),_:1,__:[5]}),u.createVNode(y,{type:"primary",onClick:v,id:"themeButton"},{default:u.withCtx(()=>_[6]||(_[6]=[u.createTextVNode("确认")])),_:1,__:[6]})])]),_:1},8,["visible"]),u.createVNode(E0,{visible:o.value,onBeforeDestroy:_[1]||(_[1]=P=>o.value=!1),style:{height:"calc(100% - 200px)"}},{default:u.withCtx(()=>[(u.openBlock(),u.createBlock(Rs,{key:a.value+h.value,fileName:a.value,blobUrl:h.value},null,8,["fileName","blobUrl"]))]),_:1},8,["visible"])])):u.createCommentVNode("",!0)}}},Pg=de._export_sfc(Bg,[["__scopeId","data-v-c950e225"]]);/*!
|
|
1
|
+
"use strict";const u=require("vue"),W2=require("./index-BpPyaNFa.cjs"),Ct=require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BfNWM92-.cjs"),ue=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),ee=require("./menu-CcabvNj6.cjs"),th=require("./modelComp-B8kjqlTY.cjs"),ih=require("./index.vue_vue_type_script_setup_true_lang-DoqHilMG.cjs");var nh="[object Number]";function F2(n){return typeof n=="number"||ee.isObjectLike(n)&&ee.baseGetTag(n)==nh}const qr={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0},activeText:{type:String,default:"是"},inactiveText:{type:String,default:"否"}},setup(n){const e=n,t=u.ref(e.value);return(i,s)=>{const o=u.resolveComponent("el-switch");return u.openBlock(),u.createBlock(o,{modelValue:t.value,"onUpdate:modelValue":s[0]||(s[0]=r=>t.value=r),"active-color":"#13ce66","inactive-color":"#ff4949","active-text":e==null?void 0:e.activeText,"inactive-text":e==null?void 0:e.inactiveText},null,8,["modelValue","active-text","inactive-text"])}}},Ur={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},setup(n){const e=n,t=u.ref(e.value);return(i,s)=>{const o=u.resolveComponent("el-input");return u.openBlock(),u.createBlock(o,{modelValue:t.value,"onUpdate:modelValue":s[0]||(s[0]=r=>t.value=r),disabled:!(e!=null&&e.isEdit),clearable:""},null,8,["modelValue","disabled"])}}},sh="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1751963315312'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='4705'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='16'%20height='16'%3e%3cpath%20d='M363.485867%20865.117867h305.5616c21.6576%200%2039.2192-17.194667%2039.2192-38.4s-17.5616-38.4-39.2192-38.4H363.485867c-21.6576%200-39.2192%2017.194667-39.2192%2038.4s17.5616%2038.4%2039.2192%2038.4z'%20fill='%23A6ADB4'%20p-id='4706'%3e%3c/path%3e%3cpath%20d='M945.288533%20699.835733a40.448%2040.448%200%200%200-43.195733%2043.1872v147.037867a46.865067%2046.865067%200%200%201-45.960533%2048.708267H166.766933a46.882133%2046.882133%200%200%201-45.038933-48.708267v-147.029333a40.439467%2040.439467%200%201%200-80.887467%200v147.029333a125.883733%20125.883733%200%200%200%20125.9264%20128.657067h693.0432c70.203733-1.006933%20126.4384-58.461867%20125.9264-128.657067v-147.029333a40.430933%2040.430933%200%200%200-40.448-43.195734zM40.840533%20127.735467v147.959466a39.517867%2039.517867%200%200%200%2079.044267%200V127.735467a45.943467%2045.943467%200%200%201%2046.882133-47.786667h693.0432a46.882133%2046.882133%200%200%201%2045.960534%2047.786667v147.959466a39.509333%2039.509333%200%200%200%2039.517866%2039.509334%2040.448%2040.448%200%200%200%2040.448-39.509334V127.735467C986.248533%2058.052267%20930.423467%201.024%20860.7232%200H166.775467A125.934933%20125.934933%200%200%200%2040.840533%20127.744z%20m168.4992%20427.972266H326.229333L357.316267%20640H418.133333L295.150933%20315.733333h-52.701866L119.466667%20640h60.817066l29.056-84.292267zM269.124267%20392.533333L307.2%20503.466667h-76.8l38.724267-110.933334z%20m231.552%20131.959467h32.631466a123.246933%20123.246933%200%200%200%2088.192-28.535467c23.389867-19.959467%2036.394667-49.134933%2035.413334-79.488%201.6384-28.245333-9.838933-55.722667-31.249067-74.743466a127.573333%20127.573333%200%200%200-84.0192-25.813334H443.733333V640h56.942934V524.4928zM503.466667%20366.933333h32.136533c42.180267%200%2061.602133%2017.493333%2061.602133%2053.162667%201.092267%2016.0256-4.8128%2031.701333-16.068266%2042.666667a71.364267%2071.364267%200%200%201-51.5584%2014.677333H503.466667V366.933333z%20m286.293333-51.0976H691.2V640h57.3184V524.4672h32.853333c31.837867%201.928533%2063.189333-8.311467%2087.381334-28.544%2023.543467-19.959467%2036.625067-49.152%2035.643733-79.505067%201.536-28.100267-9.710933-55.441067-30.754133-74.752a131.84%20131.84%200%200%200-83.882667-25.8304z%20m39.4752%20147.131734a73.813333%2073.813333%200%200%201-49.527467%2014.72H750.933333V366.933333h32.119467c42.1632%200%2061.576533%2017.527467%2061.576533%2053.2736%201.262933%2015.957333-4.394667%2031.650133-15.394133%2042.752z'%20fill='%23A6ADB4'%20p-id='4707'%3e%3c/path%3e%3c/svg%3e",oh=Object.freeze(Object.defineProperty({__proto__:null,default:sh},Symbol.toStringTag,{value:"Module"})),rh="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1750407294483'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='13930'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M925.866667%20797.866667c-12.8-25.6-34.133333-46.933333-64-64-29.866667-21.333333-68.266667-34.133333-119.466667-42.666667-4.266667%200-29.866667-4.266667-59.733333-12.8-21.333333-4.266667-34.133333-8.533333-38.4-12.8v-17.066667c4.266667-51.2%2029.866667-76.8%2055.466666-106.666666%208.533333-8.533333%2017.066667-21.333333%2025.6-29.866667%2029.866667-42.666667%2034.133333-89.6%2034.133334-98.133333%200-8.533333%200-17.066667-4.266667-21.333334-4.266667-8.533333-8.533333-12.8-12.8-21.333333%200-12.8%204.266667-21.333333%204.266667-29.866667%200-21.333333%204.266667-55.466667-4.266667-89.6%200-8.533333-4.266667-12.8-4.266667-21.333333-8.533333-25.6-17.066667-46.933333-34.133333-68.266667-4.266667-12.8-64-72.533333-234.666667-85.333333H401.066667c-4.266667%200-17.066667%200-25.6%204.266667-21.333333%204.266667-38.4%2021.333333-42.666667%2042.666666v21.333334c-8.533333%208.533333-55.466667%2051.2-55.466667%20102.4-4.266667%2034.133333-4.266667%2085.333333%200%20123.733333-8.533333%208.533333-17.066667%2021.333333-12.8%2042.666667%200%2012.8%204.266667%2055.466667%2034.133334%2098.133333%208.533333%208.533333%2017.066667%2017.066667%2025.6%2029.866667%2025.6%2029.866667%2051.2%2055.466667%2055.466666%20106.666666v17.066667c-4.266667%204.266667-17.066667%208.533333-38.4%2012.8-29.866667%208.533333-59.733333%2012.8-64%2012.8-46.933333%208.533333-85.333333%2021.333333-115.2%2042.666667-25.6%2017.066667-46.933333%2038.4-64%2064-25.6%2038.4-25.6%2076.8-25.6%2085.333333v21.333333c0%2025.6%2021.333333%2046.933333%2046.933334%2046.933334H896c25.6%200%2046.933333-21.333333%2046.933333-46.933334v-17.066666c8.533333-12.8%208.533333-51.2-17.066666-89.6z%20m-546.133334-128c0%204.266667%200%204.266667%200%200v4.266666c-4.266667%200-4.266667%200%200-4.266666z%20m503.466667%20213.333333l-742.4%204.266667v-4.266667s0-25.6%2012.8-51.2c8.533333-17.066667%2025.6-29.866667%2042.666667-42.666667%2025.6-17.066667%2055.466667-25.6%2089.6-34.133333%204.266667%200%2034.133333-4.266667%2068.266666-12.8%2051.2-12.8%2076.8-29.866667%2085.333334-46.933333%200-4.266667%200-4.266667%204.266666-8.533334v-42.666666c-8.533333-72.533333-42.666667-115.2-72.533333-145.066667-8.533333-8.533333-12.8-17.066667-21.333333-21.333333-21.333333-29.866667-21.333333-59.733333-21.333334-64l4.266667-4.266667%208.533333-8.533333c4.266667-17.066667%200-25.6%200-29.866667-4.266667-34.133333-4.266667-81.066667%200-119.466667%200-29.866667%2029.866667-55.466667%2029.866667-55.466666%208.533333-4.266667%2017.066667-12.8%2021.333333-21.333334%200-4.266667%204.266667-4.266667%204.266667-8.533333v-25.6H465.066667c140.8%208.533333%20192%2059.733333%20192%2059.733333%208.533333%2012.8%2017.066667%2025.6%2021.333333%2042.666667%204.266667%204.266667%204.266667%208.533333%204.266667%2012.8%204.266667%2029.866667%204.266667%2055.466667%204.266666%2076.8%200%2012.8%200%2021.333333-4.266666%2038.4%200%2012.8%200%2025.6%208.533333%2029.866667l4.266667%204.266666%204.266666%204.266667s0%2034.133333-21.333333%2064c-4.266667%208.533333-12.8%2012.8-21.333333%2021.333333-29.866667%2029.866667-64%2072.533333-72.533334%20145.066667v42.666667c0%204.266667%200%204.266667%204.266667%208.533333%208.533333%2021.333333%2034.133333%2034.133333%2085.333333%2046.933333%2034.133333%208.533333%2064%2012.8%2068.266667%2012.8%2038.4%208.533333%2068.266667%2017.066667%2093.866667%2034.133334%2017.066667%2012.8%2034.133333%2025.6%2042.666666%2042.666666%208.533333%2025.6%208.533333%2051.2%204.266667%2055.466667z'%20p-id='13931'%3e%3c/path%3e%3c/svg%3e",lh=Object.freeze(Object.defineProperty({__proto__:null,default:rh},Symbol.toStringTag,{value:"Module"})),ah="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1750642267995'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='15790'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M926.3%20337.9c-22.6-53.3-54.8-101.2-96-142.3-41.1-41.1-89-73.4-142.3-96-55.2-23.4-113.9-35.2-174.3-35.2S394.6%2076.2%20339.3%2099.6c-53.3%2022.6-101.2%2054.8-142.3%2096-41.1%2041.1-73.4%2089-96%20142.3-23.4%2055.2-35.2%20113.9-35.2%20174.3%200%2060.4%2011.8%20119.1%2035.2%20174.3%2022.6%2053.3%2054.8%20101.2%2096%20142.3%2041.1%2041.1%2089%2073.4%20142.3%2096%2055.2%2023.4%20113.9%2035.2%20174.3%2035.2s119.1-11.8%20174.3-35.2c53.3-22.6%20101.2-54.8%20142.3-96%2041.1-41.1%2073.4-89%2096-142.3%2023.4-55.2%2035.2-113.9%2035.2-174.3%200.1-60.4-11.8-119.1-35.1-174.3zM513.7%20879.1c-202.3%200-366.9-164.6-366.9-366.9s164.6-366.9%20366.9-366.9c202.3%200%20366.9%20164.6%20366.9%20366.9S716%20879.1%20513.7%20879.1z'%20p-id='15791'%3e%3c/path%3e%3cpath%20d='M697.9%20329.1c-15.6-15.6-41-15.6-56.6%200L513%20457.4%20384.7%20329.1c-15.6-15.6-41-15.6-56.6%200-15.6%2015.6-15.6%2041%200%2056.6L456.4%20514%20328.1%20642.3c-15.6%2015.6-15.6%2041%200%2056.6%2015.6%2015.6%2041%2015.6%2056.6%200L513%20570.6l128.3%20128.3c15.6%2015.6%2041%2015.6%2056.6%200%2015.6-15.6%2015.6-41%200-56.6L569.6%20514l128.3-128.3c15.6-15.6%2015.6-41.1%200-56.6z'%20p-id='15792'%3e%3c/path%3e%3c/svg%3e",ch=Object.freeze(Object.defineProperty({__proto__:null,default:ah},Symbol.toStringTag,{value:"Module"})),hh="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1750816526374'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='9498'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M926.3%20337.9c-22.6-53.3-54.8-101.2-96-142.3-41.1-41.1-89-73.4-142.3-96-55.2-23.4-113.9-35.2-174.3-35.2S394.6%2076.2%20339.3%2099.6c-53.3%2022.6-101.2%2054.8-142.3%2096-41.1%2041.1-73.4%2089-96%20142.3-23.4%2055.2-35.2%20113.9-35.2%20174.3%200%2060.4%2011.8%20119.1%2035.2%20174.3%2022.6%2053.3%2054.8%20101.2%2096%20142.3%2041.1%2041.1%2089%2073.4%20142.3%2096%2055.2%2023.4%20113.9%2035.2%20174.3%2035.2s119.1-11.8%20174.3-35.2c53.3-22.6%20101.2-54.8%20142.3-96%2041.1-41.1%2073.4-89%2096-142.3%2023.4-55.2%2035.2-113.9%2035.2-174.3%200.1-60.4-11.8-119.1-35.1-174.3zM513.7%20879.1c-202.3%200-366.9-164.6-366.9-366.9s164.6-366.9%20366.9-366.9c202.3%200%20366.9%20164.6%20366.9%20366.9S716%20879.1%20513.7%20879.1z'%20p-id='9499'%3e%3c/path%3e%3cpath%20d='M695.7%20469.2h-139v-139c0-23.6-19.3-43-43-43-23.6%200-43%2019.3-43%2043v139h-139c-23.6%200-43%2019.3-43%2043s19.3%2043%2043%2043h139v139c0%2023.7%2019.3%2043%2043%2043%2023.6%200%2043-19.3%2043-43v-139h139c23.6%200%2043-19.3%2043-43s-19.4-43-43-43z'%20p-id='9500'%3e%3c/path%3e%3c/svg%3e",uh=Object.freeze(Object.defineProperty({__proto__:null,default:hh},Symbol.toStringTag,{value:"Module"})),fh="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1750816329545'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='9351'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M926.3%20337.9c-22.6-53.3-54.8-101.2-96-142.3-41.1-41.1-89-73.4-142.3-96-55.2-23.4-113.9-35.2-174.3-35.2S394.6%2076.2%20339.3%2099.6c-53.3%2022.6-101.2%2054.8-142.3%2096-41.1%2041.1-73.4%2089-96%20142.3-23.4%2055.2-35.2%20113.9-35.2%20174.3%200%2060.4%2011.8%20119.1%2035.2%20174.3%2022.6%2053.3%2054.8%20101.2%2096%20142.3%2041.1%2041.1%2089%2073.4%20142.3%2096%2055.2%2023.4%20113.9%2035.2%20174.3%2035.2s119.1-11.8%20174.3-35.2c53.3-22.6%20101.2-54.8%20142.3-96%2041.1-41.1%2073.4-89%2096-142.3%2023.4-55.2%2035.2-113.9%2035.2-174.3%200.1-60.4-11.8-119.1-35.1-174.3zM513.7%20879.1c-202.3%200-366.9-164.6-366.9-366.9s164.6-366.9%20366.9-366.9c202.3%200%20366.9%20164.6%20366.9%20366.9S716%20879.1%20513.7%20879.1z'%20p-id='9352'%3e%3c/path%3e%3cpath%20d='M697.9%20329.1c-15.6-15.6-41-15.6-56.6%200L513%20457.4%20384.7%20329.1c-15.6-15.6-41-15.6-56.6%200-15.6%2015.6-15.6%2041%200%2056.6L456.4%20514%20328.1%20642.3c-15.6%2015.6-15.6%2041%200%2056.6%2015.6%2015.6%2041%2015.6%2056.6%200L513%20570.6l128.3%20128.3c15.6%2015.6%2041%2015.6%2056.6%200%2015.6-15.6%2015.6-41%200-56.6L569.6%20514l128.3-128.3c15.6-15.6%2015.6-41.1%200-56.6z'%20p-id='9353'%3e%3c/path%3e%3c/svg%3e",dh=Object.freeze(Object.defineProperty({__proto__:null,default:fh},Symbol.toStringTag,{value:"Module"})),ph="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1750815766948'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='9204'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M923.9%20335.8c-22.6-53.3-54.8-101.2-96-142.3-41.1-41.1-89-73.4-142.3-96-55.2-23.4-113.8-35.2-174.3-35.2S392.2%2074.1%20337%2097.5c-53.3%2022.6-101.2%2054.8-142.3%2096-41.1%2041.1-73.4%2089-96%20142.3C75.3%20391%2063.5%20449.7%2063.5%20510.1c0%2060.4%2011.8%20119.1%2035.2%20174.3%2022.6%2053.3%2054.8%20101.2%2096%20142.3%2041.1%2041.1%2089%2073.4%20142.3%2096%2055.2%2023.4%20113.9%2035.2%20174.3%2035.2s119.1-11.8%20174.3-35.2c35.9-15.2%2069.3-34.8%2099.8-58.5l-0.1-0.1c9.1-7.4%2014.8-18.6%2014.8-31.2%200-22.3-18-40.3-40.3-40.3-9.2%200-17.7%203.1-24.5%208.3l-0.2-0.3c-62%2047.9-139.7%2076.4-223.9%2076.4-202.3%200-366.9-164.6-366.9-366.9s164.7-366.9%20367-366.9%20366.9%20164.6%20366.9%20366.9c0%2066.2-17.6%20128.3-48.4%20182l0.4%200.2c-4.4%206.5-7%2014.2-7%2022.6%200%2022.3%2018%2040.3%2040.3%2040.3%2016%200%2029.8-9.3%2036.3-22.8l0.2%200.1c8.9-15.5%2016.8-31.5%2023.8-48.1%2023.4-55.2%2035.2-113.9%2035.2-174.3%200.1-60.4-11.7-119.1-35.1-174.3z'%20p-id='9205'%3e%3c/path%3e%3cpath%20d='M693.7%20626.5H507.6l-57.1%2066.1h243.2zM663.2%20411.4c7.5-7.6%207.5-23.5%200-31.3l-45.4-46.8c-7.7-7.6-22.9-7.6-30.4%200l-45.7%2046.8%2076.1%2078.1%2045.4-46.8zM328.8%20614.5v78.1h76.1l197.5-218.7-76-77.9z'%20p-id='9206'%3e%3c/path%3e%3c/svg%3e",gh=Object.freeze(Object.defineProperty({__proto__:null,default:ph},Symbol.toStringTag,{value:"Module"})),mh="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1750815629946'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='9058'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M78.768011%20168.230165c0-30.999918%2024.230644-56.076722%2054.15419-56.076722L403.692131%20112.153443%20403.692131%2056.076722c0-30.999918%2024.230644-56.076722%2054.15419-56.076722l108.306335%200c29.923546%200%2054.155214%2025.076803%2054.155214%2056.076722l0%2056.077745%20270.768906%200c29.923546%200%2054.15419%2025.076803%2054.15419%2056.076722l0%2056.076722L78.768011%20224.307909%2078.768011%20168.230165zM891.076776%20336.461352l0%20112.153443%200%20519.30746c0%2030.923181-24.231667%2056.077745-54.153167%2056.077745L187.076392%201024c-29.923546%200-54.15419-25.154564-54.15419-56.077745L132.922201%20448.614796%20132.922201%20336.461352l0-56.077745%20758.154574%200L891.076776%20336.461352zM349.53794%20448.614796c0-30.923181-24.230644-56.076722-54.15419-56.076722-29.922523%200-54.153167%2025.153541-54.153167%2056.076722l0%20407.154017c0%2030.923181%2024.230644%2056.077745%2054.153167%2056.077745%2029.923546%200%2054.15419-25.154564%2054.15419-56.077745L349.53794%20448.614796zM566.153679%20448.614796c0-30.923181-24.230644-56.076722-54.15419-56.076722-29.922523%200-54.153167%2025.153541-54.153167%2056.076722l0%20407.154017c0%2030.923181%2024.230644%2056.077745%2054.153167%2056.077745%2029.923546%200%2054.15419-25.154564%2054.15419-56.077745L566.153679%20448.614796zM782.770441%20448.614796c0-30.923181-24.231667-56.076722-54.155214-56.076722s-54.15419%2025.153541-54.15419%2056.076722l0%20407.154017c0%2030.923181%2024.230644%2056.077745%2054.15419%2056.077745s54.155214-25.154564%2054.155214-56.077745L782.770441%20448.614796z'%20p-id='9059'%3e%3c/path%3e%3c/svg%3e",vh=Object.freeze(Object.defineProperty({__proto__:null,default:mh},Symbol.toStringTag,{value:"Module"})),wh="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1753424743198'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='51312'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M672.768%2062.890667l147.797333%2085.333333-34.048%2095.146667a384.725333%20384.725333%200%200%201%2058.026667%2076.629333c16.469333%2028.501333%2028.842667%2058.24%2037.376%2088.533333L981.333333%20426.666667v170.666666l-99.541333%2018.133334a383.573333%20383.573333%200%200%201-95.274667%20165.162666l34.048%2095.146667-147.797333%2085.333333-65.408-77.056a383.573333%20383.573333%200%200%201-190.677333-0.085333l-65.450667%2077.141333-147.797333-85.333333%2034.048-95.146667a384.725333%20384.725333%200%200%201-58.026667-76.629333%20384.725333%20384.725333%200%200%201-37.376-88.576L42.666667%20597.333333v-170.666666l99.541333-18.133334a383.573333%20383.573333%200%200%201%2095.274667-165.162666l-34.048-95.146667%20147.797333-85.333333L416.64%20139.946667a383.573333%20383.573333%200%200%201%20190.677333%200.085333l65.450667-77.141333zM405.333333%20327.253333a213.333333%20213.333333%200%201%200%20213.333334%20369.493334%20213.333333%20213.333333%200%200%200-213.333334-369.493334zM512%20384a128%20128%200%201%201%200%20256%20128%20128%200%200%201%200-256z'%20p-id='51313'%3e%3c/path%3e%3c/svg%3e",xh=Object.freeze(Object.defineProperty({__proto__:null,default:wh},Symbol.toStringTag,{value:"Module"})),bh="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1750815488055'%20class='icon'%20viewBox='0%200%201025%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='8912'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200.1953125'%20height='200'%3e%3cpath%20d='M127.110228%20701.648461q0%2026.438928%2018.812314%2045.251241t46.268123%2018.812314l253.203575%200%200%20128.12711-318.284012%200q-26.438928%200-49.82721-9.660377t-40.675273-26.947368-26.947368-40.675273-9.660377-50.844091l0-637.584906q0-26.438928%209.660377-49.82721t26.947368-40.675273%2040.675273-27.455809%2049.82721-10.168818l766.728898%200q26.438928%200%2049.82721%2010.168818t40.675273%2027.455809%2027.455809%2040.675273%2010.168818%2049.82721l0%20187.106256-128.12711%201.016882q-2.033764-25.422046-19.829196-43.217478t-44.234359-17.795432l-637.584906%200q-27.455809%200-46.268123%2018.812314t-18.812314%2045.251241l0%20382.347567zM1016.881827%20501.322741q6.101291%209.151936%207.626614%2023.388282t-10.677259%2028.472691q-11.1857%2014.236346-18.303873%2021.354518l-8.135055%208.135055-105.75571-95.586892q5.084409-6.101291%2014.236346-14.744786t14.236346-13.727905q14.236346-14.236346%2030.506455-12.711023t27.455809%206.609732q12.202582%205.084409%2026.438928%2018.812314t22.3714%2029.998014zM613.179742%20789.100298q3.050645-3.050645%2014.236346-16.270109t27.96425-32.540218%2037.116187-42.200596%2040.675273-46.268123q48.810328-54.911619%20108.806356-122.025819l107.789474%2095.586892q-59.996028%2068.131082-108.806356%20123.042701-20.337637%2023.388282-40.675273%2046.268123t-37.116187%2041.183714-27.455809%2029.998014-12.711023%2013.727905q-9.151936%2012.202582-25.422046%2020.337637-7.118173%205.084409-21.354518%2011.1857t-29.998014%2012.202582-29.489573%2010.677259-20.846077%205.59285q-26.438928%205.084409-23.388282-22.3714%201.016882-7.118173%204.067527-21.862959t6.609732-30.506455%207.118173-28.981132%205.59285-18.303873q5.084409-13.219464%2017.286991-28.472691z'%20p-id='8913'%3e%3c/path%3e%3c/svg%3e",yh=Object.freeze(Object.defineProperty({__proto__:null,default:bh},Symbol.toStringTag,{value:"Module"})),kh="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1753088395767'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='23263'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M508%20512m-112%200a112%20112%200%201%200%20224%200%20112%20112%200%201%200-224%200Z'%20p-id='23264'%3e%3c/path%3e%3cpath%20d='M942.2%20486.2C847.4%20286.5%20704.1%20186%20512%20186c-192.2%200-335.4%20100.5-430.2%20300.3-7.7%2016.2-7.7%2035.2%200%2051.5C176.6%20737.5%20319.9%20838%20512%20838c192.2%200%20335.4-100.5%20430.2-300.3%207.7-16.2%207.7-35%200-51.5zM508%20688c-97.2%200-176-78.8-176-176s78.8-176%20176-176%20176%2078.8%20176%20176-78.8%20176-176%20176z'%20p-id='23265'%3e%3c/path%3e%3c/svg%3e",Sh=Object.freeze(Object.defineProperty({__proto__:null,default:kh},Symbol.toStringTag,{value:"Module"})),Ch="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1750407346075'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='14076'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M122.368%20165.888h778.24c-9.216%200-16.384-7.168-16.384-16.384v713.728c0-9.216%207.168-16.384%2016.384-16.384h-778.24c9.216%200%2016.384%207.168%2016.384%2016.384V150.016c0%208.192-6.656%2015.872-16.384%2015.872z%20m-32.768%20684.544c0%2026.112%2020.992%2047.104%2047.104%2047.104h750.08c26.112%200%2047.104-20.992%2047.104-47.104V162.304c0-26.112-20.992-47.104-47.104-47.104H136.704c-26.112%200-47.104%2020.992-47.104%2047.104v688.128z'%20p-id='14077'%3e%3c/path%3e%3cpath%20d='M510.464%20639.488l207.872-254.976H302.08z'%20p-id='14078'%3e%3c/path%3e%3c/svg%3e",_h=Object.freeze(Object.defineProperty({__proto__:null,default:Ch},Symbol.toStringTag,{value:"Module"})),Oh="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1750407433101'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='14223'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M122.88%20165.888h778.24c-9.216%200-16.384-7.168-16.384-16.384v713.728c0-9.216%207.168-16.384%2016.384-16.384H122.88c9.216%200%2016.384%207.168%2016.384%2016.384V150.016c0%208.192-6.656%2015.872-16.384%2015.872z%20m-32.768%20684.544c0%2026.112%2020.992%2047.104%2047.104%2047.104h750.08c26.112%200%2047.104-20.992%2047.104-47.104V162.304c0-26.112-20.992-47.104-47.104-47.104H137.216c-26.112%200-47.104%2020.992-47.104%2047.104v688.128z'%20p-id='14224'%3e%3c/path%3e%3cpath%20d='M244.224%20279.04h142.848v49.152H244.224zM244.224%20425.472h142.848v49.152H244.224zM436.736%20279.04h342.528v49.152H436.736zM436.736%20425.472h342.528v49.152H436.736zM244.224%20572.416h142.848v49.152H244.224zM436.736%20572.416h342.528v172.544H436.736z'%20p-id='14225'%3e%3c/path%3e%3c/svg%3e",Mh=Object.freeze(Object.defineProperty({__proto__:null,default:Oh},Symbol.toStringTag,{value:"Module"})),Dh="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1751708264977'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='5492'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='16'%20height='16'%3e%3cpath%20d='M512%2064C264.6%2064%2064%20264.6%2064%20512s200.6%20448%20448%20448%20448-200.6%20448-448S759.4%2064%20512%2064z%20m104%20316.9c0%2010.2-4.9%2019.9-13.2%2025.9L457.4%20512l145.4%20105.2c8.3%206%2013.2%2015.6%2013.2%2025.9V690c0%206.5-7.4%2010.3-12.7%206.5l-246-178c-4.4-3.2-4.4-9.7%200-12.9l246-178c5.3-3.8%2012.7-0.1%2012.7%206.5v46.8z'%20p-id='5493'%20fill='%2372B02D'%3e%3c/path%3e%3c/svg%3e",Th=Object.freeze(Object.defineProperty({__proto__:null,default:Dh},Symbol.toStringTag,{value:"Module"})),Ah="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1750411679824'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='35651'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M474%20152m8%200l60%200q8%200%208%208l0%20704q0%208-8%208l-60%200q-8%200-8-8l0-704q0-8%208-8Z'%20p-id='35652'%3e%3c/path%3e%3cpath%20d='M168%20474m8%200l672%200q8%200%208%208l0%2060q0%208-8%208l-672%200q-8%200-8-8l0-60q0-8%208-8Z'%20p-id='35653'%3e%3c/path%3e%3c/svg%3e",Bh=Object.freeze(Object.defineProperty({__proto__:null,default:Ah},Symbol.toStringTag,{value:"Module"})),Ph="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1751708287937'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='5743'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='16'%20height='16'%3e%3cpath%20d='M512%2064C264.6%2064%2064%20264.6%2064%20512s200.6%20448%20448%20448%20448-200.6%20448-448S759.4%2064%20512%2064z%20m154.7%20454.5l-246%20178c-5.3%203.8-12.7%200-12.7-6.5v-46.9c0-10.2%204.9-19.9%2013.2-25.9L566.6%20512%20421.2%20406.8c-8.3-6-13.2-15.6-13.2-25.9V334c0-6.5%207.4-10.3%2012.7-6.5l246%20178c4.4%203.2%204.4%209.8%200%2013z'%20p-id='5744'%20fill='%2372B02D'%3e%3c/path%3e%3c/svg%3e",Eh=Object.freeze(Object.defineProperty({__proto__:null,default:Ph},Symbol.toStringTag,{value:"Module"})),Vh="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1750643434994'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='16376'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M926.3%20337.9c-22.6-53.3-54.8-101.2-96-142.3-41.1-41.1-89-73.4-142.3-96-55.2-23.4-113.9-35.2-174.3-35.2S394.6%2076.2%20339.3%2099.6c-53.3%2022.6-101.2%2054.8-142.3%2096-41.1%2041.1-73.4%2089-96%20142.3-23.4%2055.2-35.2%20113.9-35.2%20174.3%200%2060.4%2011.8%20119.1%2035.2%20174.3%2022.6%2053.3%2054.8%20101.2%2096%20142.3%2041.1%2041.1%2089%2073.4%20142.3%2096%2055.2%2023.4%20113.9%2035.2%20174.3%2035.2s119.1-11.8%20174.3-35.2c53.3-22.6%20101.2-54.8%20142.3-96%2041.1-41.1%2073.4-89%2096-142.3%2023.4-55.2%2035.2-113.9%2035.2-174.3%200.1-60.4-11.8-119.1-35.1-174.3zM513.7%20879.1c-202.3%200-366.9-164.6-366.9-366.9s164.6-366.9%20366.9-366.9c202.3%200%20366.9%20164.6%20366.9%20366.9S716%20879.1%20513.7%20879.1z'%20p-id='16377'%3e%3c/path%3e%3cpath%20d='M715.6%20371.6c-15.7-15.7-41.4-15.7-57%200l-196%20196-95.9-95.9c-15.7-15.7-41.4-15.7-57%200-15.7%2015.7-15.7%2041.4%200%2057l124.5%20124.5c15.7%2015.7%2041.4%2015.7%2057%200l224.5-224.5c15.6-15.7%2015.6-41.4-0.1-57.1z'%20p-id='16378'%3e%3c/path%3e%3c/svg%3e",zh=Object.freeze(Object.defineProperty({__proto__:null,default:Vh},Symbol.toStringTag,{value:"Module"})),Lh="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1750406704613'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='13783'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M122.368%20165.888h778.24c-9.216%200-16.384-7.168-16.384-16.384v713.728c0-9.216%207.168-16.384%2016.384-16.384h-778.24c9.216%200%2016.384%207.168%2016.384%2016.384V150.016c0%208.192-6.656%2015.872-16.384%2015.872z%20m-32.768%20684.544c0%2026.112%2020.992%2047.104%2047.104%2047.104h750.08c26.112%200%2047.104-20.992%2047.104-47.104V162.304c0-26.112-20.992-47.104-47.104-47.104H136.704c-26.112%200-47.104%2020.992-47.104%2047.104v688.128z'%20p-id='13784'%3e%3c/path%3e%3cpath%20d='M573.44%20646.656l-3.072%206.144c-8.192%2012.288-14.336%2025.088-19.456%2038.912-6.656%2018.944-3.072%2036.352%2016.896%2043.008%2034.816%2011.264%2072.704%209.216%20106.496-4.608%209.216-3.072%2011.264-4.096%2034.304-12.8%2016.384-6.656%2033.792-12.8%2051.2-17.408%201.024%200%202.048-0.512%203.072-1.024%2010.24-2.048%206.656-5.632%2016.896%201.024%203.584%203.072%208.704%204.096%2013.312%203.072%204.608-1.024%205.632-3.072%208.192-7.68%205.632-8.192%203.584-19.456-4.608-25.088-18.944-12.8-22.528-10.24-41.472-6.144-1.536%200.512-3.072%200.512-4.096%201.024-18.944%205.12-37.376%2011.264-55.808%2018.432-22.016%208.704-24.064%209.728-32.768%2012.288-24.576%2010.24-52.224%2012.8-78.336%206.144%204.608-11.264%2010.24-22.016%2016.896-32.256%201.536-2.048%202.56-4.096%203.584-6.144%208.704-13.824%2015.36-29.184%2018.432-45.056%204.096-19.456-7.68-38.4-27.136-42.496-0.512%200-1.536-0.512-2.048-0.512-27.648-6.656-59.392%203.072-148.992%2037.888-81.92%2032.256-117.76%2041.984-129.024%2035.84-4.096-2.56-8.704-3.072-13.312-1.536-9.728%202.56-15.36%2012.8-12.8%2022.016%201.024%204.608%204.096%208.192%208.192%2010.752%2023.04%208.704%2048.64%207.68%2071.168-2.048%2029.696-9.216%2059.392-19.456%2088.064-32.256%2077.824-30.72%20111.104-40.448%20126.976-36.352%203.072%201.024%203.072%200%202.56%203.072-2.56%2012.288-7.168%2023.552-13.312%2033.792zM665.088%20235.52c-19.456-17.92-49.664-17.408-68.608%201.024L312.32%20519.68c-2.048%202.048-3.584%204.608-4.608%207.68l-22.528%2080.896c-2.56%209.728%203.072%2019.456%2012.8%2021.504%203.584%201.024%207.68%200.512%2011.264-0.512l71.168-29.696c5.632-2.56%2010.752-5.632%2015.36-10.24l283.648-269.824%202.56-2.56c18.432-19.456%2017.92-50.176-2.048-68.608l-1.024-1.024-13.824-11.776z'%20p-id='13785'%3e%3c/path%3e%3c/svg%3e",Nh=Object.freeze(Object.defineProperty({__proto__:null,default:Lh},Symbol.toStringTag,{value:"Module"})),Rh="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1750642902470'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='16229'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M0%200h1024v1024H0z'%20fill='%23FFFFFF'%20fill-opacity='0'%20p-id='16230'%3e%3c/path%3e%3cpath%20d='M204%20372c66.31%200%20121.852%2046.1%20136.326%20108h137.53c12.901-33.907%2045.71-58%2084.144-58%2038.435%200%2071.243%2024.093%2084.145%2058h139.71c12.902-33.907%2045.71-58%2084.145-58%2049.706%200%2090%2040.294%2090%2090s-40.294%2090-90%2090c-38.434%200-71.242-24.092-84.144-57.998H646.144C633.242%20577.908%20600.434%20602%20562%20602c-38.434%200-71.242-24.092-84.144-57.998h-137.53C325.852%20605.9%20270.309%20652%20204%20652c-77.32%200-140-62.68-140-140s62.68-140%20140-140z%20m0%2064c-41.974%200-76%2034.026-76%2076s34.026%2076%2076%2076%2076-34.026%2076-76-34.026-76-76-76z%20m358%2050c-14.36%200-26%2011.64-26%2026s11.64%2026%2026%2026%2026-11.64%2026-26-11.64-26-26-26z%20m308%200c-14.36%200-26%2011.64-26%2026s11.64%2026%2026%2026%2026-11.64%2026-26-11.64-26-26-26z'%20p-id='16231'%3e%3c/path%3e%3c/svg%3e",Ih=Object.freeze(Object.defineProperty({__proto__:null,default:Rh},Symbol.toStringTag,{value:"Module"})),Hh="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1750667945909'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='16523'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M778.7%2097.2H247.3C165%2097.2%2098%20164.3%2098%20246.7v532.2c0%2082.4%2067%20149.4%20149.3%20149.4h531.5c82.3%200%20149.3-67%20149.3-149.4V246.7C928%20164.3%20861%2097.2%20778.7%2097.2z%20m-452.2%2079.9h373.1v83.7H331.9c-2.9%200-5.5-2.6-5.5-5.5v-78.2z%20m373%20671.3h-373v-225h373.1v225z%20m148.7-69.6c0%2038.1-30.8%2069.2-68.8%2069.5V612.9c0-38.3-31.1-69.4-69.3-69.4H316c-38.2%200-69.3%2031.1-69.3%2069.4v235.4c-38-0.3-68.8-31.4-68.8-69.5V246.7c0-38.1%2030.8-69.2%2068.8-69.5v78.2c0%2047.1%2038.3%2085.4%2085.3%2085.4h378c38.2%200%2069.3-31.1%2069.3-69.4v-94.2c38%200.3%2068.8%2031.4%2068.8%2069.5v532.1z'%20p-id='16524'%3e%3c/path%3e%3c/svg%3e",$h=Object.freeze(Object.defineProperty({__proto__:null,default:Hh},Symbol.toStringTag,{value:"Module"})),Wh="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1750407459145'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='14370'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M122.368%20165.888h778.24c-9.216%200-16.384-7.168-16.384-16.384v713.728c0-9.216%207.168-16.384%2016.384-16.384h-778.24c9.216%200%2016.384%207.168%2016.384%2016.384V150.016c0%208.192-6.656%2015.872-16.384%2015.872z%20m-32.768%20684.544c0%2026.112%2020.992%2047.104%2047.104%2047.104h750.08c26.112%200%2047.104-20.992%2047.104-47.104V162.304c0-26.112-20.992-47.104-47.104-47.104H136.704c-26.112%200-47.104%2020.992-47.104%2047.104v688.128z'%20p-id='14371'%3e%3c/path%3e%3cpath%20d='M249.344%20347.648h49.152v499.2h-49.152zM584.704%20347.648h49.152v499.2h-49.152zM137.728%20165.888h746.496v181.76H137.728z'%20p-id='14372'%3e%3c/path%3e%3cpath%20d='M137.728%20481.792h746.496v49.152H137.728zM137.728%20664.576h746.496v49.152H137.728z'%20p-id='14373'%3e%3c/path%3e%3c/svg%3e",Fh=Object.freeze(Object.defineProperty({__proto__:null,default:Wh},Symbol.toStringTag,{value:"Module"})),Gh="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1750813714349'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='4271'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M376.6%20494.8c5.1%204.8%207.9%2011.7%207.6%2018.7%200.4%207.1-2.5%2014-7.6%2018.7-5.3%204.7-12.3%207.2-19.3%206.9h-69.6v235.1c0.2%207.4-2.9%2014.4-8.4%2019.1-5.5%205.4-12.9%208.3-20.5%208.1-7.6%200.3-15.1-2.7-20.5-8.1-5.3-4.9-8.2-11.9-8.1-19.1v-235H161c-7.2%200.3-14.2-2.3-19.3-7.3-5.2-4.8-8-11.7-7.6-18.7-0.3-7%202.5-13.7%207.6-18.3%205.3-4.8%2012.2-7.3%2019.3-7h198.4c6.3%200%2012.4%202.5%2017.2%206.9z%20m215.7%2070.1c5.2%205.1%208%2012.2%207.7%2019.6v189.9c0.3%207.2-2.5%2014.2-7.7%2019.1-4.8%205.3-11.7%208.3-18.9%208.1-7.1%200.1-13.9-2.7-18.9-7.7-4.8-5.2-7.6-12-7.6-19.1-18%2019.5-42.9%2030.8-69.2%2031.4-19.7%200.3-38.9-5.3-55.5-15.9-17.2-10.7-31.2-26.1-40.3-44.4-19.3-40.4-19.3-87.6%200-128%208.9-18.4%2022.9-33.8%2040.3-44.4%2016-10.5%2034.8-16.1%2053.9-15.9%2026.3-0.1%2051.8%209.8%2071.2%2027.7-0.2-7.3%202.6-14.4%207.7-19.6%2010.6-10.2%2027.2-10.2%2037.8%200l-0.5-0.8z%20m-61.2%20168.7c24.1-31.6%2024.1-75.6%200-107.2-11.5-14.3-28.9-22.3-47.1-21.6-17.9-0.5-35.1%207.4-46.3%2021.6-12.1%2015-18.5%2034-18.1%2053.4-0.6%2019.5%205.7%2038.6%2017.7%2053.8%2011.6%2013.9%2028.8%2021.7%2046.7%2021.2%2018.1%200.4%2035.3-7.4%2047.1-21.2zM835.4%20573c17.1%2010.7%2031%2025.9%2040.3%2044%209.9%2019.8%2014.9%2041.8%2014.5%2064%200.4%2022.3-4.6%2044.4-14.5%2064.4-9%2018.3-23%2033.7-40.3%2044.4-16%2010.6-34.8%2016.1-53.9%2015.9-13.9%200.2-27.7-2.9-40.3-9-11.6-5-22.1-12.2-31-21.2v2.8c0.2%207.2-2.5%2014.2-7.5%2019.4-5%205.1-11.9%208-19.1%207.9-7.1%200.3-14-2.5-18.9-7.7-5.2-5.1-8-12.2-7.6-19.6V497.2c-0.2-7.3%202.5-14.4%207.6-19.6%2010.6-10.3%2027.2-10.3%2037.8%200%205.1%205.2%207.9%2012.2%207.6%2019.6v93.3c8-9.8%2018-17.7%2029.4-23.2%2012.4-6.8%2026.2-10.3%2040.3-10.2%2019.7-0.2%2039%205.3%2055.6%2015.9z%20m-15.7%20163c12.2-15.1%2018.6-34.3%2018.1-53.8%200.6-19.4-5.7-38.3-17.7-53.4-12-13.4-29-21.1-46.9-21.1s-34.9%207.7-46.9%2021.1c-24.1%2031.6-24.1%2075.6%200%20107.2%2011.6%2014.1%2029%2022.1%2047.1%2021.6%2018.3-0.2%2035.4-9.1%2046.3-24v2.4zM708.1%20253.5c-15.5%200-28-12.5-28-28V113.4c-0.1-8%200-15.9%200-23.8V77.9c0-15.5%2012.5-28%2028-28H886c17%200%2032.9%206.6%2045%2018.6%2011.3%2011.3%2017.8%2026%2018.6%2041.8%200.1%200.7%200.1%201.4%200.1%202.1v113.2c0%2015.5-12.5%2028-28%2028H708.1z%20m28-56h157.4v-84.1c0-2-0.8-3.9-2.2-5.4-1.4-1.4-3.4-2.2-5.4-2.2H736.1v91.7zM371.9%20254.6c-15.5%200-28-12.5-28-28V78.9c0-15.4%2012.5-27.9%2027.9-28l213.4-1.1h0.1c17%200%2032.9%206.6%2045%2018.6%2012%2012.1%2018.6%2028%2018.6%2045v113.2c0%2015.5-12.5%2028-28%2028h-249z%20m28-56.1h193v-85.2c0-2-0.8-3.9-2.2-5.4-1.4-1.4-3.3-2.2-5.3-2.2l-185.5%200.9v91.9z'%20p-id='4272'%3e%3c/path%3e%3cpath%20d='M72.4%20974.2c-17.3%200-33.5-6.7-45.7-18.7-12.2-12.1-18.9-28.1-18.9-45.1V113.6c0-35.2%2029-63.8%2064.6-63.8h169c17.3%200%2033.5%206.6%2045.7%2018.7%2012.2%2012%2018.9%2028.1%2018.9%2045.1V283c0%202%200.8%203.9%202.3%205.4%201.5%201.4%203.4%202.2%205.4%202.2h637.9c17.3%200%2033.5%206.6%2045.7%2018.7%2012.2%2012%2018.9%2028%2018.9%2045.1v556c0%2017.1-6.7%2033.1-18.9%2045.1s-28.4%2018.7-45.7%2018.7H72.4z%20m7.7-860.6c-4.3%200-7.7%203.4-7.7%207.6v788.7c0%202%200.8%204%202.3%205.4%201.4%201.4%203.4%202.2%205.4%202.2h871.5c2.1%200%204-0.8%205.4-2.2%201.5-1.4%202.3-3.3%202.3-5.4V350.6c0-2-0.8-3.9-2.2-5.3-1.5-1.5-3.4-2.3-5.4-2.3h-638c-17.3%200-33.5-6.7-45.7-18.7-12.2-12-18.9-28.1-18.9-45.1V121.1c0-2-0.8-3.9-2.3-5.4-1.4-1.4-3.4-2.2-5.4-2.2H80.1z'%20p-id='4273'%3e%3c/path%3e%3c/svg%3e",jh=Object.freeze(Object.defineProperty({__proto__:null,default:Gh},Symbol.toStringTag,{value:"Module"})),qh="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1750482237209'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2084'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='48'%20height='48'%3e%3cpath%20d='M171.52%20924.16v-107.52c0-19.968%2015.872-35.84%2035.84-35.84s35.84%2015.872%2035.84%2035.84v107.52c0%2019.968-15.872%2035.84-35.84%2035.84s-35.84-15.872-35.84-35.84z%20m0-322.56v-107.52c0-19.968%2015.872-35.84%2035.84-35.84s35.84%2015.872%2035.84%2035.84v107.52c0%2019.968-15.872%2035.84-35.84%2035.84s-35.84-15.872-35.84-35.84z%20m0-394.24v-107.52c0-19.968%2015.872-35.84%2035.84-35.84s35.84%2015.872%2035.84%2035.84v107.52c0%2019.968-15.872%2035.84-35.84%2035.84s-35.84-15.872-35.84-35.84z'%20p-id='2085'%3e%3c/path%3e%3cpath%20d='M350.72%20350.72c0%2079.36-64%20143.36-143.36%20143.36s-143.36-64-143.36-143.36%2064-143.36%20143.36-143.36%20143.36%2064%20143.36%20143.36z%20m-143.36-71.68c-39.424%200-71.68%2032.256-71.68%2071.68s32.256%2071.68%2071.68%2071.68%2071.68-32.256%2071.68-71.68-32.256-71.68-71.68-71.68z%20m143.36%20430.08c0%2079.36-64%20143.36-143.36%20143.36s-143.36-64-143.36-143.36%2064-143.36%20143.36-143.36%20143.36%2064%20143.36%20143.36z%20m-143.36-71.68c-39.424%200-71.68%2032.256-71.68%2071.68s32.256%2071.68%2071.68%2071.68%2071.68-32.256%2071.68-71.68-32.256-71.68-71.68-71.68z%20m716.8-286.72h-501.76c-19.968%200-35.84-15.872-35.84-35.84s15.872-35.84%2035.84-35.84h501.76c19.968%200%2035.84%2015.872%2035.84%2035.84s-15.872%2035.84-35.84%2035.84z%20m-284.672%20107.52H420.352c-18.432%200-33.792-15.36-33.792-33.792v-4.096c0-18.432%2015.36-33.792%2033.792-33.792h219.136c18.432%200%2033.792%2015.36%2033.792%2033.792v4.096c0%2018.432-15.36%2033.792-33.792%2033.792z%20m284.672%20250.88h-501.76c-19.968%200-35.84-15.872-35.84-35.84s15.872-35.84%2035.84-35.84h501.76c19.968%200%2035.84%2015.872%2035.84%2035.84s-15.872%2035.84-35.84%2035.84z%20m-284.672%20107.52H420.352c-18.432%200-33.792-15.36-33.792-33.792v-4.096c0-18.432%2015.36-33.792%2033.792-33.792h219.136c18.432%200%2033.792%2015.36%2033.792%2033.792v4.096c0%2018.432-15.36%2033.792-33.792%2033.792z'%20p-id='2086'%3e%3c/path%3e%3c/svg%3e",Uh=Object.freeze(Object.defineProperty({__proto__:null,default:qh},Symbol.toStringTag,{value:"Module"})),Yh="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1752140707910'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='4361'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='16'%20height='16'%3e%3cpath%20d='M512%20315.9c-108.3%200-196.1%2087.8-196.1%20196.1S403.7%20708.1%20512%20708.1%20708.1%20620.3%20708.1%20512%20620.3%20315.9%20512%20315.9z%20m93.41%20289.51A132.11%20132.11%200%201%201%20644.1%20512a131.25%20131.25%200%200%201-38.69%2093.41z'%20p-id='4362'%3e%3c/path%3e%3cpath%20d='M851.37%20512c0-7.13-0.23-14.33-0.69-21.54l68.83-62.15-4.73-18.69a413.07%20413.07%200%200%200-45.62-110L859.29%20283l-92.59%204.73a340.49%20340.49%200%200%200-30.45-30.45l4.75-92.57-16.56-9.87a413.07%20413.07%200%200%200-110-45.62l-18.69-4.74-62.15%2068.84a336.56%20336.56%200%200%200-43.08%200l-62.15-68.84-18.69%204.74a413.07%20413.07%200%200%200-110%2045.62L283%20164.71l4.73%2092.59a341.81%20341.81%200%200%200-30.45%2030.45L164.71%20283l-9.87%2016.56a413.07%20413.07%200%200%200-45.62%20110l-4.74%2018.69%2068.84%2062.15c-0.46%207.21-0.69%2014.41-0.69%2021.54s0.23%2014.33%200.69%2021.54l-68.84%2062.15%204.74%2018.69a413.07%20413.07%200%200%200%2045.62%20110l9.87%2016.68%2092.59-4.73a340.49%20340.49%200%200%200%2030.45%2030.45L283%20859.29l16.56%209.87a413.07%20413.07%200%200%200%20110%2045.62l18.69%204.73%2062.15-68.83a336.56%20336.56%200%200%200%2043.08%200l62.15%2068.83%2018.69-4.73a413.07%20413.07%200%200%200%20110-45.62l16.68-9.87-4.73-92.59a341.81%20341.81%200%200%200%2030.45-30.45l92.57%204.75%209.87-16.56a413.07%20413.07%200%200%200%2045.62-110l4.73-18.69-68.83-62.15c0.46-7.27%200.69-14.47%200.69-21.6z%20m-65.75-31.06a276.51%20276.51%200%200%201%200%2062.12l-1.83%2016.32L847.57%20617a349.88%20349.88%200%200%201-24.1%2058.1l-85.81-4.38-10.25%2012.85a277.6%20277.6%200%200%201-43.88%2043.88l-12.85%2010.25%204.38%2085.81a349.88%20349.88%200%200%201-58.1%2024.1l-57.58-63.78-16.32%201.83a276.51%20276.51%200%200%201-62.12%200l-16.32-1.83L407%20847.57a349.88%20349.88%200%200%201-58.1-24.1l4.38-85.81-12.85-10.25a277.66%20277.66%200%200%201-43.89-43.88l-10.24-12.85-85.81%204.38A349%20349%200%200%201%20176.44%20617l63.77-57.58-1.83-16.32a276.51%20276.51%200%200%201%200-62.12l1.83-16.32L176.43%20407a349.88%20349.88%200%200%201%2024.1-58.1l85.81%204.38%2010.24-12.85a278.57%20278.57%200%200%201%2043.89-43.89l12.85-10.24-4.38-85.81a349.88%20349.88%200%200%201%2058.1-24.1l57.58%2063.78%2016.32-1.83a276.51%20276.51%200%200%201%2062.12%200l16.32%201.83L617%20176.44a349%20349%200%200%201%2058.1%2024.09l-4.38%2085.81%2012.85%2010.24a277.66%20277.66%200%200%201%2043.88%2043.89l10.25%2012.85%2085.81-4.38a349.88%20349.88%200%200%201%2024.1%2058.1l-63.78%2057.58z'%20p-id='4363'%3e%3c/path%3e%3c/svg%3e",Kh=Object.freeze(Object.defineProperty({__proto__:null,default:Yh},Symbol.toStringTag,{value:"Module"})),Xh="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1754014497867'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='6026'%20width='32'%20height='32'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3cpath%20d='M938.666667%20390.186667V207.274667A121.941333%20121.941333%200%200%200%20816.725333%2085.333333H207.274667A121.941333%20121.941333%200%200%200%2085.333333%20207.274667v609.450666A121.941333%20121.941333%200%200%200%20207.274667%20938.666667h609.450666A121.941333%20121.941333%200%200%200%20938.666667%20816.725333V390.186667zM164.138667%20164.138667c11.434667-11.52%2026.965333-17.92%2043.178666-17.92h609.578667a60.928%2060.928%200%200%201%2060.885333%2061.098666v121.984H146.218667v-122.026666c0-16.170667%206.4-31.701333%2017.92-43.136z%20m195.413333%20439.381333h-213.333333v-213.333333h213.333333v213.333333z%20m-195.413333%20256.426667c-11.52-11.349333-17.92-26.88-17.92-43.050667v-152.448h213.333333v213.333333H207.36a60.586667%2060.586667%200%200%201-43.178667-17.792z%20m702.677333-6.741334c-25.472%2026.282667-82.346667%2021.546667-118.357333%2021.461334h-340.053334V384h475.733334v350.72c0.085333%2037.12%208.106667%2092.245333-17.322667%20118.485333z'%20fill='%23646E78'%20p-id='6027'%3e%3c/path%3e%3cpath%20d='M807.594667%20506.709333a41.941333%2041.941333%200%200%201%203.072%2015.701334c0%202.986667-0.554667%205.930667-1.706667%208.874666a27.093333%2027.093333%200%200%201-5.418667%208.533334c-2.730667%202.730667-5.12%205.12-7.296%207.168-2.133333%202.048-4.053333%203.84-5.632%205.461333-1.792%201.834667-3.498667%203.413333-5.12%204.778667l-63.488-63.829334c2.730667-2.474667%205.973333-5.504%209.685334-9.045333%203.754667-3.498667%206.826667-6.314667%209.344-8.362667a29.781333%2029.781333%200%200%201%2019.882666-6.656%2037.76%2037.76%200%200%201%209.514667%201.536c3.029333%200.938667%205.717333%201.962667%207.978667%203.072%204.736%202.517333%2010.026667%206.912%2015.786666%2013.141334%205.76%206.272%2010.24%2012.8%2013.397334%2019.626666z%20m-264.618667%20166.528l9.514667-9.728c4.992-5.12%2011.221333-11.434667%2018.688-18.901333l24.789333-24.917333%2027.52-27.648%2073.045333-73.386667%2063.530667%2064.170667-73.045333%2073.386666-27.178667%2027.605334c-9.045333%208.874667-17.194667%2017.024-24.448%2024.405333-7.253333%207.381333-13.226667%2013.482667-18.005333%2018.261333a147.328%20147.328%200%200%201-16.298667%2014.677334%2042.453333%2042.453333%200%200%201-9.173333%205.461333%20147.925333%20147.925333%200%200%201-13.952%205.802667%20469.418667%20469.418667%200%200%201-38.186667%2012.288%20143.36%20143.36%200%200%201-13.44%203.072c-6.101333%200.682667-10.197333-0.213333-12.202667-2.730667-2.048-2.517333-2.602667-6.698667-1.706666-12.629333a115.626667%20115.626667%200%200%201%203.2-13.824l5.461333-18.773334c1.92-6.485333%203.797333-12.458667%205.589333-17.92%201.834667-5.461333%203.285333-9.216%204.437334-11.264%201.365333-3.157333%202.858667-6.058667%204.565333-8.704%201.706667-2.602667%204.138667-5.504%207.296-8.704z'%20fill='%23646E78'%20p-id='6028'%3e%3c/path%3e%3c/svg%3e",Qh=Object.freeze(Object.defineProperty({__proto__:null,default:Xh},Symbol.toStringTag,{value:"Module"})),Jh="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1750819285235'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='5686'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='48'%20height='48'%3e%3cpath%20d='M804.571429%20511.890286A219.428571%20219.428571%200%200%201%201024%20731.428571a219.428571%20219.428571%200%201%201-219.428571-219.501714z%20m131.291428%20139.885714l-210.176%20210.212571a155.026286%20155.026286%200%200%200%2078.884572%2021.394286c85.101714%200%20154.112-68.022857%20154.112-151.990857%200-29.184-8.338286-56.466286-22.784-79.616zM804.571429%20579.364571c-85.101714%200-154.112%2068.059429-154.112%20152.027429%200%2029.184%208.338286%2056.429714%2022.784%2079.579429l210.176-210.212572A155.026286%20155.026286%200%200%200%20804.571429%20579.364571zM804.498286%2073.142857c36.754286%200%2072.813714%2036.315429%2072.813714%2073.069714v315.757715a254.171429%20254.171429%200%200%200-72.667429-21.796572V146.212571H72.704l-0.036571%20487.716572%20248.978285-249.417143%20193.353143%20195.510857%2033.536-37.449143v19.2a254.646857%20254.646857%200%200%200-36.205714%20119.369143l-190.902857-193.097143-243.529143%20243.931429h437.028571c3.84%2025.782857%2011.556571%2050.285714%2022.491429%2072.96H72.96C36.534857%20804.937143%200%20768.475429%200%20731.940571V146.212571C0%20110.006857%2036.352%2073.142857%2072.96%2073.142857h731.538286zM581.851429%20256c40.155429%200%2072.704%2032.804571%2072.704%2073.216%200%2040.448-32.548571%2073.252571-72.704%2073.252571a72.96%2072.96%200%200%201-72.777143-73.252571c0-40.411429%2032.585143-73.216%2072.777143-73.216z'%20p-id='5687'%3e%3c/path%3e%3c/svg%3e",Zh=Object.freeze(Object.defineProperty({__proto__:null,default:Jh},Symbol.toStringTag,{value:"Module"})),e1="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1750387251918'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='9358'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M764.9%2064H225.4l1.4%20224.2%2064-0.4-1-159.8h383.6v224H896v544H289.8l1-159.8-64-0.4-1.4%20224.2H960V277.7L764.9%2064z%20m-27.6%2064.7L882.8%20288H737.3V128.7z'%20p-id='9359'%3e%3c/path%3e%3cpath%20d='M356.5%20224h255.9v64H356.5z'%20p-id='9360'%3e%3c/path%3e%3cpath%20d='M576.4%20416h255.9v64H576.4zM512.5%20576h319.8v64H512.5zM384.5%20736h447.8v64H384.5z'%20p-id='9361'%3e%3c/path%3e%3cpath%20d='M336.9%20349H198.6l98.9%2098.9H64v128.2h233.5L198.6%20675h138.3l162.9-163z'%20p-id='9362'%3e%3c/path%3e%3c/svg%3e",t1=Object.freeze(Object.defineProperty({__proto__:null,default:e1},Symbol.toStringTag,{value:"Module"})),i1="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1753759000039'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2839'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='32'%20height='32'%3e%3cpath%20d='M952.167422%201011.201424a43.463154%2043.463154%200%200%201-61.58846%200l-43.029534-43.072896a195.533604%20195.533604%200%201%201%2062.238889-60.851307l42.379105%2042.350197a43.52097%2043.52097%200%200%201%200%2061.574006zM746.472662%20682.951266a119.028624%20119.028624%200%201%200%20119.028624%20118.956354%20119.043078%20119.043078%200%200%200-119.028624-118.956354z%20m-430.092986-17.344791h126.515792a43.477608%2043.477608%200%200%201%2043.361976%2043.361976%2042.292381%2042.292381%200%200%201-43.361976%2042.061117h-126.515792a42.306835%2042.306835%200%200%201-43.361976-42.061117%2043.492062%2043.492062%200%200%201%2043.361976-43.361976z%20m0-260.460935a43.434246%2043.434246%200%201%201%200-86.868492h320.372733a43.434246%2043.434246%200%200%201%200%2086.868492H316.379676z%20m320.083653%20173.447904H316.090597a43.434246%2043.434246%200%200%201%200-86.868492h320.40164a43.434246%2043.434246%200%201%201%200%2086.868492z%20m173.274456-376.960111c0-43.651056%201.705571-42.061117-42.046663-42.061117h-88.588517v12.285893c0%2030.064303-10.03107%2031.076083-40.109828%2031.076083H315.613615c-30.078757%200-42.523644-1.011779-42.523645-31.076083v-12.285893h-85.278552c-43.73778%200-42.899448-3.035338-42.899448%2040.760257v655.488537c0%2043.651056-5.665965%2040.760257%2038.086268%2040.760257h302.276335c4.798725%2028.329824%2019.773061%2053.19069%2045.862516%2086.001253H158.845618c-66.936437%200-100.180618-37.435839-100.180619-104.357823V181.831364c0-66.921983%2034.212599-109.272179%20101.177944-109.27218h113.203665V54.636234a52.988335%2052.988335%200%200%201%203.94594-19.079269l1.633301-3.468958a65.968019%2065.968019%200%200%201%208.556764-13.153133l2.71735-3.035338a56.370569%2056.370569%200%200%201%2016.463097-11.563194A54.000114%2054.000114%200%200%201%20327.624882%200.000145h296.942811a53.638764%2053.638764%200%200%201%2021.218461%204.336197%2054.534912%2054.534912%200%200%201%2015.566949%2010.551414l3.786946%204.191658a55.055255%2055.055255%200%200%201%207.588346%2011.418654l1.907927%203.758038a54.679452%2054.679452%200%200%201%204.495191%2020.380128v17.92295h113.247027c66.936437%200%20104.068742%2039.025778%20104.068743%20105.947762v390.402323l-86.723952-38.158539V201.633333z'%20fill='%238a8a8a'%20p-id='2840'%3e%3c/path%3e%3c/svg%3e",n1=Object.freeze(Object.defineProperty({__proto__:null,default:i1},Symbol.toStringTag,{value:"Module"})),s1="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1751614934560'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2487'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='16'%20height='16'%3e%3cpath%20d='M807.936%2099.328c-17.408%200-32.256%209.216-40.448%2023.552h-348.16L284.672%20355.84l35.84%2035.84%20126.976-219.648h321.536c8.192%2012.8%2022.528%2020.992%2038.912%2020.992%2025.6%200%2046.592-20.992%2046.592-46.592s-20.992-47.104-46.592-47.104z'%20p-id='2488'%3e%3c/path%3e%3cpath%20d='M301.056%2050.688c-8.704%2014.848-7.68%2032.768%200%2046.592L127.488%20399.36l134.656%20232.448%2048.64-13.312L183.808%20399.36l160.256-279.04c15.36-1.024%2029.696-9.216%2037.888-23.04%2012.8-22.528%205.12-50.688-17.408-63.488s-50.688-5.632-63.488%2016.896z'%20p-id='2489'%3e%3c/path%3e%3cpath%20d='M15.872%20467.456c8.704%2014.848%2024.064%2023.552%2040.448%2023.552L228.352%20793.6l268.8%201.536%2013.312-48.64-253.44-1.536-159.232-279.552c6.656-13.312%207.168-30.208-1.024-44.032-12.8-22.528-40.96-30.208-63.488-17.408-22.528%2012.8-30.208%2040.96-17.408%2063.488z'%20p-id='2490'%3e%3c/path%3e%3cpath%20d='M216.064%20924.672c17.408%200%2032.256-9.216%2040.448-23.552h348.16l134.144-232.448-35.84-35.84-126.976%20219.648H254.976c-8.192-12.8-22.528-20.992-38.912-20.992-25.6%200-46.592%2020.992-46.592%2046.592s20.992%2046.592%2046.592%2046.592z'%20p-id='2491'%3e%3c/path%3e%3cpath%20d='M722.944%20973.312c8.704-14.848%207.68-32.768%200-46.592l173.568-302.08-134.656-232.448-48.64%2013.312%20127.488%20219.136-160.256%20279.04c-15.36%201.024-29.696%209.216-37.888%2023.04-12.8%2022.528-5.12%2050.688%2017.408%2063.488%2022.016%2013.312%2050.176%205.632%2062.976-16.896z'%20p-id='2492'%3e%3c/path%3e%3cpath%20d='M1008.128%20556.544c-8.704-14.848-24.064-23.552-40.448-23.552L795.648%20230.4l-268.8-1.536-13.312%2048.64%20253.44%201.536%20159.232%20279.552c-6.656%2013.312-7.168%2030.208%201.024%2044.032%2012.8%2022.528%2040.96%2030.208%2063.488%2017.408%2022.528-12.8%2030.208-40.96%2017.408-63.488zM512%20391.168C445.44%20391.168%20391.168%20445.44%20391.168%20512S445.44%20632.832%20512%20632.832s120.832-54.272%20120.832-120.832S578.56%20391.168%20512%20391.168z%20m0%20196.096c-41.472%200-75.264-33.792-75.264-75.264s33.792-75.264%2075.264-75.264%2075.264%2033.792%2075.264%2075.264-33.792%2075.264-75.264%2075.264z'%20p-id='2493'%3e%3c/path%3e%3c/svg%3e",o1=Object.freeze(Object.defineProperty({__proto__:null,default:s1},Symbol.toStringTag,{value:"Module"})),r1="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1753428217148'%20class='icon'%20viewBox='0%200%201230%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='34443'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='19.21875'%20height='16'%3e%3cpath%20d='M800.585901%20666.312904a71.402697%2071.402697%200%201%200-71.739503-71.402697%2071.514965%2071.514965%200%200%200%2071.739503%2071.402697z%20m412.47407-192.877097a456.820086%20456.820086%200%200%201%200%20242.611995%20102.051968%20102.051968%200%200%200-41.090231-8.644666%20104.521873%20104.521873%200%200%200-92.060081%2056.134195%20110.135292%20110.135292%200%200%200%2028.965245%20138.090122%20338.938274%20338.938274%200%200%201-204.216204%20121.586668%20104.634141%20104.634141%200%200%200-208.370135%200%20434.590944%20434.590944%200%200%201-204.216205-121.586668%20110.247561%20110.247561%200%200%200%2031.884224-132.476702%20104.858678%20104.858678%200%200%200-94.866791-61.859884%20102.501042%20102.501042%200%200%200-41.2025%208.644666%20456.371012%20456.371012%200%200%201%200-242.499726%20101.041552%20101.041552%200%200%200%2040.977963%208.532398%20106.430435%20106.430435%200%200%200%20104.858678-108.002193%20108.90034%20108.90034%200%200%200-41.539305-86.109856A434.029602%20434.029602%200%200%201%20696.064028%20166.718562a104.634141%20104.634141%200%200%200%20208.370135%200%20455.13606%20455.13606%200%200%201%20203.991668%20121.249863%20108.788071%20108.788071%200%200%200-41.651574%2086.109856%20106.430435%20106.430435%200%200%200%20104.970946%20108.002193%20102.61331%20102.61331%200%200%200%2040.977963-8.532398z%20m-55.460585%20167.841246a747.258415%20747.258415%200%200%200%200-93.182765%20163.799583%20163.799583%200%200%201-135.283412-84.762636%20166.269488%20166.269488%200%200%201-2.582173-155.379454%20358.472974%20358.472974%200%200%200-80.047363-46.591382%20171.546102%20171.546102%200%200%201-275.618902%200%20358.136169%20358.136169%200%200%200-79.935094%2046.591382%20163.125973%20163.125973%200%200%201-5.501152%20158.747506%20168.402587%20168.402587%200%200%201-134.72207%2080.496437%20767.915799%20767.915799%200%200%200%200%2095.203596%20168.402587%20168.402587%200%200%201%20134.04846%2078.587874%20162.901436%20162.901436%200%200%201%206.399298%20160.880605%20357.013485%20357.013485%200%200%200%2080.159632%2046.703651%20168.402587%20168.402587%200%200%201%20275.618901%200%20357.911632%20357.911632%200%200%200%2080.159632-46.703651%20166.15722%20166.15722%200%200%201%205.725688-161.21741%20163.687315%20163.687315%200%200%201%20132.027629-78.587874z%20m-357.013485-189.17224A142.805394%20142.805394%200%201%201%20657.668238%20595.022476a142.805394%20142.805394%200%200%201%20142.917663-142.693126zM0%20499.931148v-71.402697h261.922158v71.402697zM0%2071.402697V0h1142.779958v71.402697H0z%20m0%20857.16917v-71.402697h333.324855v71.402697z'%20fill='%23404040'%20p-id='34444'%3e%3c/path%3e%3c/svg%3e",l1=Object.freeze(Object.defineProperty({__proto__:null,default:r1},Symbol.toStringTag,{value:"Module"})),a1="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1753925874638'%20class='icon'%20viewBox='0%200%201061%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='8169'%20id='mx_n_1753925874640'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='33.15625'%20height='32'%3e%3cpath%20d='M781.840418%20802.807076c28.893762-28.892004%2043.339764-66.758919%2043.339765-104.62056s-14.446002-75.728556-43.339765-104.62056c-28.892004-28.893762-66.758919-43.339764-104.620559-43.339764s-75.728556%2014.446002-104.62056%2043.339764c-28.893762%2028.892004-43.339764%2066.758919-43.339764%20104.62056s14.446002%2075.728556%2043.339764%20104.62056c28.892004%2028.893762%2066.758919%2043.339764%20104.62056%2043.339764s75.728556-14.446002%20104.620559-43.339764z%20m79.575197%2011.332472l130.608245%20130.608245c13.361277%2013.359519%2013.774422%2034.892273%200.937047%2048.754597l-17.807418%2019.227933c-6.742171%207.27838-15.207243%2011.07228-25.126234%2011.262151-9.917232%200.191629-18.521192-3.277029-25.535862-10.2917l-131.316744-131.316743c-18.493063-18.493063-43.672038-25.054153-68.838707-17.949822-15.379533%204.342415-31.247808%206.515381-47.116083%206.515381-44.21528%200-88.432317-16.866855-122.164269-50.598806s-50.600564-77.948989-50.600564-122.164268%2016.868613-88.432317%2050.600564-122.164269%2077.948989-50.600564%20122.164269-50.600563%2088.432317%2016.868613%20122.164268%2050.600563%2050.598806%2077.948989%2050.598806%20122.164269c0%2015.866517-2.174724%2031.733034-6.517139%2047.114325-7.109606%2025.168427-0.543241%2050.345645%2017.949821%2068.838707z'%20p-id='8170'%3e%3c/path%3e%3cpath%20d='M180.758744%20295.896035c-13.700583%200-24.808024-11.107441-24.808024-24.808024s11.107441-24.808024%2024.808024-24.808024h604.829864c13.700583%200%2024.808024%2011.107441%2024.808025%2024.808024s-11.107441%2024.808024-24.808025%2024.808024H180.758744zM170.572528%20471.702316c-8.074782%200-14.621808-11.107441-14.621808-24.808024s6.547026-24.808024%2014.621808-24.808024h356.489428c8.074782%200%2014.621808%2011.107441%2014.621808%2024.808024s-6.547026%2024.808024-14.621808%2024.808024H170.572528zM177.035167%20647.508597c-11.64365%200-21.084447-11.107441-21.084447-24.808024s9.440797-24.808024%2021.084447-24.808024h221.044753c11.64365%200%2021.084447%2011.107441%2021.084447%2024.808024s-9.440797%2024.808024-21.084447%2024.808024H177.035167zM179.104407%20823.314878c-12.786391%200-23.153687-11.107441-23.153687-24.808024s10.367296-24.808024%2023.153687-24.808024h257.220411c12.786391%200%2023.153687%2011.107441%2023.153688%2024.808024s-10.367296%2024.808024-23.153688%2024.808024H179.104407z'%20p-id='8171'%3e%3c/path%3e%3c/svg%3e",c1=Object.freeze(Object.defineProperty({__proto__:null,default:a1},Symbol.toStringTag,{value:"Module"})),h1="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1754014546465'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='7433'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='32'%20height='32'%3e%3cpath%20d='M896%20384v384a85.333333%2085.333333%200%200%201-85.333333%2085.333333h-256l341.333333-469.333333z'%20fill='%23B4D3FF'%20p-id='7434'%3e%3c/path%3e%3cpath%20d='M810.666667%20128a85.333333%2085.333333%200%200%201%2085.333333%2085.333333v597.333334a85.333333%2085.333333%200%200%201-85.333333%2085.333333H213.333333a85.333333%2085.333333%200%200%201-85.333333-85.333333V213.333333a85.333333%2085.333333%200%200%201%2085.333333-85.333333h597.333334z%20m0%2051.2H213.333333a34.133333%2034.133333%200%200%200-34.133333%2034.133333v597.333334a34.133333%2034.133333%200%200%200%2034.133333%2034.133333h597.333334a34.133333%2034.133333%200%200%200%2034.133333-34.133333V213.333333a34.133333%2034.133333%200%200%200-34.133333-34.133333z'%20fill='%23333333'%20p-id='7435'%3e%3c/path%3e%3cpath%20d='M388.266667%20391.936v51.2H166.4v-51.2zM857.6%20622.336v51.2H166.4v-51.2z'%20fill='%23333333'%20p-id='7436'%3e%3c/path%3e%3cpath%20d='M403.2%20166.741333V858.026667h-51.2V166.741333zM672%20647.936v210.133333h-51.2v-210.133333z'%20fill='%23333333'%20p-id='7437'%3e%3c/path%3e%3cpath%20d='M772.224%20293.717333a25.6%2025.6%200%200%201%2037.632%2034.730667l-174.378667%20189.098667a34.133333%2034.133333%200%200%201-47.786666%202.346666l-103.893334-92.586666a25.6%2025.6%200%200%201%2034.090667-38.186667l91.306667%2081.365333%20162.986666-176.768z'%20fill='%23333333'%20p-id='7438'%3e%3c/path%3e%3c/svg%3e",u1=Object.freeze(Object.defineProperty({__proto__:null,default:h1},Symbol.toStringTag,{value:"Module"})),f1="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1754017588044'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='3671'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='32'%20height='32'%3e%3cpath%20d='M465.454545%20465.454545V139.636364a46.545455%2046.545455%200%200%201%2093.09091%200v325.818181h325.818181a46.545455%2046.545455%200%200%201%200%2093.09091H558.545455v325.818181a46.545455%2046.545455%200%200%201-93.09091%200V558.545455H139.636364a46.545455%2046.545455%200%200%201%200-93.09091z'%20p-id='3672'%3e%3c/path%3e%3c/svg%3e",d1=Object.freeze(Object.defineProperty({__proto__:null,default:f1},Symbol.toStringTag,{value:"Module"})),p1="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1751513326254'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2635'%20width='16'%20height='16'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3cpath%20d='M273.54647%20325.996013h476.395357c19.444708-2.046811%2036.842605%2011.769166%2039.40112%2030.702171%202.046811%2019.444708-11.769166%2036.330903-31.213874%2038.377714-2.558514%200.511703-5.117029%200.511703-7.675543%200H273.54647c-10.234057-0.511703-19.956411-4.605326-26.608548-11.257463-6.652137-6.652137-10.74576-15.351086-10.74576-24.561737%200.511703-19.956411%2017.397897-35.307497%2037.866011-34.284091v1.023406z%20m0%20209.286467h476.395357c19.444708-2.046811%2036.842605%2011.769166%2039.40112%2030.702171%202.046811%2019.444708-11.769166%2036.330903-31.213874%2038.377714-2.558514%200.511703-5.117029%200.511703-7.675543%200H273.54647c-9.722354%200-19.444708-3.58192-26.608548-10.234057-6.652137-6.652137-10.74576-15.351086-10.74576-24.561737%200.511703-19.444708%2017.397897-35.307497%2037.354308-34.284091z%20m0%20185.748136h324.931312c19.444708%200%2035.307497%2015.862788%2035.307497%2034.795794%200%2019.444708-15.862788%2034.795794-35.307497%2034.795794H273.54647c-9.722354-0.511703-19.444708-4.093623-26.608548-10.74576-6.652137-6.140434-10.74576-14.839383-10.74576-24.050034%200.511703-19.444708%2017.397897-35.307497%2037.354308-34.795794zM135.898402%200.041294h96.71184c17.397897-0.511703%2033.772388%208.187246%2043.494742%2022.514926l53.217097%2082.38416c4.605326%207.16384%2012.792571%2011.769166%2020.979817%2011.257462h322.884501c8.698949%200%2016.886194-4.093623%2021.49152-11.257462l53.217097-82.38416c9.722354-14.32768%2026.096846-23.026628%2043.494742-22.514926h97.223543c53.7288-1.535109%2098.246948%2039.912823%20100.293759%2093.12992v837.657572c-2.046811%2052.705394-46.56496%2094.153325-100.293759%2093.12992h-752.203196c-53.7288%201.535109-98.758651-39.912823-100.293759-92.618217V93.171214C37.139751%2039.954117%2082.169603-1.493814%20135.898402%200.041294z%20m82.895863%2070.103291H135.898402c-6.652137%200-13.304274%202.558514-18.421303%206.652138-4.605326%204.093623-7.16384%2010.234057-7.16384%2016.374491v837.657572c0.511703%2013.304274%2011.769166%2023.538331%2025.07344%2023.026629h752.203196c6.652137%200%2013.304274-2.558514%2018.421303-6.652138%204.605326-4.093623%207.16384-10.234057%207.16384-16.374491V93.171214c0.511703-6.140434-2.046811-12.280868-7.16384-16.374491-5.117029-4.605326-11.257463-6.652137-18.421303-6.652138h-82.895862l-46.053257%2070.614994c-18.933006%2028.65536-51.681988%2045.541554-86.477783%2045.029851H350.813601c-34.795794%200.511703-67.544777-16.374491-86.477782-45.029851l-45.541554-70.614994zM399.425372%200.041294h225.149256c19.956411-0.511703%2036.842605%2015.351086%2037.866011%2034.795795-0.511703%2019.956411-17.397897%2035.307497-37.866011%2034.795794H399.425372c-10.234057-0.511703-19.956411-4.093623-27.120251-10.74576-6.652137-6.140434-10.74576-15.351086-10.234057-24.050034C362.582767%2015.39238%20378.957258-0.470408%20399.425372%200.041294z'%20p-id='2636'%3e%3c/path%3e%3c/svg%3e",g1=Object.freeze(Object.defineProperty({__proto__:null,default:p1},Symbol.toStringTag,{value:"Module"})),m1="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1751513344245'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2848'%20width='16'%20height='16'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3cpath%20d='M855.04%20385.024q19.456%202.048%2038.912%2010.24t33.792%2023.04%2021.504%2037.376%202.048%2054.272q-2.048%208.192-8.192%2040.448t-14.336%2074.24-18.432%2086.528-19.456%2076.288q-5.12%2018.432-14.848%2037.888t-25.088%2035.328-36.864%2026.112-51.2%2010.24l-567.296%200q-21.504%200-44.544-9.216t-42.496-26.112-31.744-40.96-12.288-53.76l0-439.296q0-62.464%2033.792-97.792t95.232-35.328l503.808%200q22.528%200%2046.592%208.704t43.52%2024.064%2031.744%2035.84%2012.288%2044.032l0%2011.264-53.248%200q-40.96%200-95.744-0.512t-116.736-0.512-115.712-0.512-92.672-0.512l-47.104%200q-26.624%200-41.472%2016.896t-23.04%2044.544q-8.192%2029.696-18.432%2062.976t-18.432%2061.952q-10.24%2033.792-20.48%2065.536-2.048%208.192-2.048%2013.312%200%2017.408%2011.776%2029.184t29.184%2011.776q31.744%200%2043.008-39.936l54.272-198.656q133.12%201.024%20243.712%201.024l286.72%200z'%20p-id='2849'%3e%3c/path%3e%3c/svg%3e",v1=Object.freeze(Object.defineProperty({__proto__:null,default:m1},Symbol.toStringTag,{value:"Module"})),w1="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1750406004238'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='9507'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M896%20128H128c-25.6%200-42.666667%2017.066667-42.666667%2042.666667v682.666666c0%2025.6%2017.066667%2042.666667%2042.666667%2042.666667h768c25.6%200%2042.666667-17.066667%2042.666667-42.666667V170.666667c0-25.6-17.066667-42.666667-42.666667-42.666667zM170.666667%20213.333333h298.666666v341.333334H170.666667V213.333333z%20m0%20597.333334v-170.666667h298.666666v170.666667H170.666667z%20m682.666666%200h-298.666666v-341.333334h298.666666v341.333334z%20m0-426.666667h-298.666666V213.333333h298.666666v170.666667z'%20p-id='9508'%3e%3c/path%3e%3c/svg%3e",x1=Object.freeze(Object.defineProperty({__proto__:null,default:w1},Symbol.toStringTag,{value:"Module"})),b1="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1753777791101'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='3501'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='32'%20height='32'%3e%3cpath%20d='M512%2010.24a71.68%2071.68%200%200%201%2071.68%2071.68v10.24h81.92a92.20096%2092.20096%200%200%201%2086.91712%2061.44h23.10144c37.64224%200%2056.77056%203.4304%2076.77952%2013.3632%2018.71872%209.29792%2033.72032%2023.2448%2043.9296%2040.93952C907.4688%20227.25632%20911.36%20245.97504%20911.36%20281.83552v603.68896c0%2035.86048-3.8912%2054.5792-15.04256%2073.9328-10.19904%2017.70496-25.20064%2031.6416-43.9296%2040.93952-19.99872%209.9328-39.1168%2013.3632-76.76928%2013.3632H248.38144c-37.64224%200-56.77056-3.4304-76.77952-13.3632-18.71872-9.29792-33.72032-23.2448-43.9296-40.93952C116.5312%20940.10368%20112.64%20921.38496%20112.64%20885.52448V281.83552c0-35.86048%203.8912-54.5792%2015.04256-73.9328%2010.19904-17.70496%2025.20064-31.6416%2043.9296-40.93952%2019.99872-9.9328%2039.1168-13.3632%2076.76928-13.3632h23.10144A92.20096%2092.20096%200%200%201%20358.4%2092.16h81.92V81.92a71.68%2071.68%200%200%201%2071.68-71.68zM271.48288%20215.04h-26.368c-26.4704%200.14336-36.2496%202.01728-46.1824%206.9632-7.9872%203.95264-13.9264%209.472-18.01216%2016.56832-4.87424%208.45824-6.69696%2016.60928-6.83008%2040.23296v609.75104c0.13312%2023.62368%201.95584%2031.77472%206.83008%2040.2432%204.08576%207.08608%2010.0352%2012.5952%2018.01216%2016.56832%2010.3424%205.13024%2020.50048%206.95296%2049.44896%206.95296h527.23712c28.94848%200%2039.1168-1.82272%2049.44896-6.9632%207.9872-3.95264%2013.9264-9.472%2018.01216-16.56832%205.07904-8.8064%206.84032-17.29536%206.84032-43.264V281.83552c0-25.96864-1.76128-34.44736-6.84032-43.264-4.08576-7.09632-10.0352-12.61568-18.01216-16.57856-9.9328-4.93568-19.712-6.8096-46.1824-6.94272h-26.368A92.20096%2092.20096%200%200%201%20665.6%20276.48H358.4a92.20096%2092.20096%200%200%201-86.91712-61.44zM686.08%20788.48a30.72%2030.72%200%200%201%200%2061.44H337.92a30.72%2030.72%200%200%201%200-61.44h348.16z%20m8.22272-377.01632a30.72%2030.72%200%201%201%2043.44832%2043.44832L506.05056%20686.61248a30.72%2030.72%200%200%201-43.44832%200L332.26752%20556.27776a30.72%2030.72%200%200%201%200-43.44832l1.31072-1.2288a30.72%2030.72%200%200%201%2042.1376%201.2288l108.60544%20108.61568zM665.6%20153.6H358.4a30.72%2030.72%200%200%200%200%2061.44h307.2a30.72%2030.72%200%200%200%200-61.44zM512%2071.68a10.24%2010.24%200%200%200-10.24%2010.24v10.24h20.48V81.92a10.24%2010.24%200%200%200-10.24-10.24z'%20fill='%23000000'%20p-id='3502'%3e%3c/path%3e%3c/svg%3e",y1=Object.freeze(Object.defineProperty({__proto__:null,default:b1},Symbol.toStringTag,{value:"Module"})),k1="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1752200265785'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='4294'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='16'%20height='16'%3e%3cpath%20d='M930.4%20337.3c-22.7-53.7-55.2-101.9-96.6-143.3-41.4-41.4-89.6-73.9-143.3-96.6C634.9%2073.9%20575.9%2062%20515.1%2062c-60.8%200-119.9%2011.9-175.5%2035.4-53.7%2022.7-101.9%2055.2-143.3%2096.6-41.4%2041.4-73.9%2089.6-96.6%20143.3-23.5%2055.6-35.4%20114.6-35.4%20175.5%200%2050.5%208.3%20100.1%2024.7%20147.4l66.1-22.9c-13.8-39.9-20.8-81.8-20.8-124.5%200-209.9%20170.8-380.7%20380.7-380.7%20209.9%200%20380.8%20170.8%20380.8%20380.7%200%2041.6-6.7%2082.5-19.8%20121.5l66.3%2022.3c15.6-46.2%2023.5-94.7%2023.5-143.9%200-60.8-11.9-119.8-35.4-175.4z'%20p-id='4295'%3e%3c/path%3e%3cpath%20d='M656.9%20422.2c0-76.9-62.6-139.5-139.5-139.5s-139.5%2062.6-139.5%20139.5%2062.6%20139.5%20139.5%20139.5%20139.5-62.6%20139.5-139.5z%20m-209%200c0-38.3%2031.2-69.5%2069.5-69.5s69.5%2031.2%2069.5%2069.5-31.2%2069.5-69.5%2069.5-69.5-31.2-69.5-69.5zM713.8%20627.8c-62-27.2-128.1-40.9-196.4-40.9-69%200-135.7%2014-198.2%2041.7-60.4%2026.7-114.1%2064.9-159.5%20113.3l-20.3%2021.7%2018.1%2023.6c41.2%2053.6%2094.8%2098%20155%20128.3%2063.2%2031.8%20131.3%2048%20202.6%2048%2071.9%200%20140.6-16.4%20204.2-48.8%2060.7-30.9%20114.5-76%20155.6-130.4l17.9-23.7-20.5-21.6c-45.3-47.6-98.6-85-158.5-111.2zM515.1%20893.5c-109%200-210.3-45.3-282.5-125.4%2077.7-71.9%20177.7-111.2%20284.8-111.2%20105.8%200%20204.9%2038.4%20282.2%20108.8-72.2%2081.6-174.3%20127.8-284.5%20127.8z'%20p-id='4296'%3e%3c/path%3e%3c/svg%3e",S1=Object.freeze(Object.defineProperty({__proto__:null,default:k1},Symbol.toStringTag,{value:"Module"})),C1="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1752200308077'%20class='icon'%20viewBox='0%200%201169%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='5263'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='18.265625'%20height='16'%3e%3cpath%20d='M787.333831%20588.946093a75.189984%2075.189984%200%200%200-75.093984%2075.092984%2075.189984%2075.189984%200%200%200%2075.093984%2075.093984%2075.165984%2075.165984%200%200%200%2075.067984-75.093984%2075.165984%2075.165984%200%200%200-75.067984-75.092984m0%20222.841953a147.919968%20147.919968%200%200%201-147.748968-147.748969c0-81.455982%2066.291986-147.747968%20147.748968-147.747968%2081.431983%200%20147.747968%2066.291986%20147.747968%20147.747968%200%2081.480982-66.315986%20147.748968-147.747968%20147.748969m89.452981%20102.106978c0.342%200.244%201.317%200.585%202.315999%200.585h0.122l71.484985-39.496992c-1.706-4.022999-9.605998-23.478995-9.605998-43.739991a113.858976%20113.858976%200%200%201%20107.739977-113.613975c0.853-4.729999%205.557999-31.524993%205.557998-51.639989s-4.704999-46.88399-5.558998-51.637989a113.858976%20113.858976%200%200%201-107.738977-113.565976c0-20.357996%207.923998-39.813991%209.605998-43.81299l-70.313985-39.057992-0.293-0.025a5.339999%205.339999%200%200%200-2.706%200.732%20196.753958%20196.753958%200%200%201-26.014994%2021.819995c-21.698995%2015.238997-42.153991%2022.967995-60.951987%2022.967995-18.919996%200-39.594991-7.874998-61.390987-23.405995a194.705958%20194.705958%200%200%201-26.160994-22.283995%205.777999%205.777999%200%200%200-2.729999-0.707h-0.245l-72.824985%2040.032992c1.706%204.046999%209.580998%2023.479995%209.580998%2043.73999A113.858976%20113.858976%200%200%201%20528.895886%20614.350088c-0.854%204.729999-5.509999%2031.524993-5.509998%2051.638989s4.655999%2046.90899%205.533998%2051.662989a113.858976%20113.858976%200%200%201%20107.763977%20113.589975c0%2020.334996-7.972998%2039.863991-9.679998%2043.788991l68.973985%2038.545992h0.146c1.024%200%201.95-0.365%202.317-0.585a200.849957%20200.849957%200%200%201%2026.428994-23.161995c22.088995-16.188997%2043.079991-24.429995%2062.414987-24.429995%2019.552996%200%2040.715991%208.387998%2062.950986%2024.917995%2014.920997%2011.068998%2025.258995%2022.185995%2026.550995%2023.575995m22.673995%20108.397976c-13.774997-0.025-27.135994-5.704999-35.765993-15.213996-11.775997-12.896997-49.005989-46.44599-79.530982-46.44599-30.280993%200-68.119985%2033.767993-78.993984%2045.54399-8.606998%209.386998-21.869995%2014.969997-35.498992%2014.969997-6.484999%200-12.604997-1.243-18.187996-3.706l-0.975-0.414-92.69698-51.833988-0.926-0.683a44.46999%2044.46999%200%200%201-14.920996-53.735989c0.049-0.146%208.532998-19.699996%208.532998-37.594992a98.376979%2098.376979%200%200%200-98.254979-98.254978h-3.900999c-15.505997%200-28.159994-13.799997-32.182993-35.108993-0.341-1.706-7.923998-42.178991-7.923999-74.044984%200-31.913993%207.557998-72.361984%207.899999-74.117984%204.119999-21.576995%2016.992996-35.449992%2032.816993-35.083993h3.266999a98.400979%2098.400979%200%200%200%2098.279979-98.303978c0-17.846996-8.484998-37.399992-8.558998-37.619992a44.34899%2044.34899%200%200%201%2015.067996-53.661989l0.95-0.658%2097.840979-53.759988%201.024-0.415c5.485999-2.364999%2011.507998-3.534999%2017.895996-3.534999%2013.604997%200%2026.891994%205.436999%2035.595992%2014.628997%2011.580998%2012.116997%2048.17699%2043.641991%2077.774984%2043.64199%2029.354994%200%2065.755986-30.914993%2077.287983-42.812991%208.654998-8.996998%2021.844995-14.335997%2035.302992-14.335997%206.509999%200%2012.653997%201.219%2018.285997%203.657l0.974999%200.414%2094.47698%2052.516988%200.95%200.658c16.895996%2011.751997%2023.332995%2034.889993%2014.945997%2053.735989-0.049%200.146-8.532998%2019.699996-8.532999%2037.545992a98.400979%2098.400979%200%200%200%2098.254979%2098.279978h3.291c15.774997-0.341%2028.719994%2013.506997%2032.816993%2035.107993%200.317%201.707%207.899998%2042.203991%207.899998%2074.069984%200%2031.889993-7.582998%2072.410984-7.948998%2074.117984-4.046999%2021.551995-16.992996%2035.424992-32.767993%2035.059993h-3.291a98.400979%2098.400979%200%200%200-98.254979%2098.278978c0%2017.846996%208.483998%2037.449992%208.556999%2037.619992a44.42199%2044.42199%200%200%201-15.017997%2053.710989l-0.927%200.683-96.133979%2053.100988-0.975%200.415a44.88499%2044.88499%200%200%201-17.846996%203.583999z%20m222.061952-705.339848a48.76199%2048.76199%200%201%201-97.523979%200V121.977194c0-13.457997-10.873998-24.453995-24.307995-24.453995h-877.859811c-13.262997%200-24.306995%2010.970998-24.306995%2024.453995v584.995874c0%2013.457997%2010.873998%2024.453995%2024.307995%2024.453995h219.500953a48.76199%2048.76199%200%201%201%200%2097.523979H48.907989A48.76199%2048.76199%200%200%201%200%20780.190052V48.76221C0%2021.822215%2021.893995%200.00022%2048.907989%200.00022h1023.706781a48.76199%2048.76199%200%200%201%2048.907989%2048.76199v268.189942zM219.427953%20975.23701c0-26.940994%2021.991995-48.76199%2048.981989-48.761989h194.607959a48.76199%2048.76199%200%201%201%200%2097.523979H268.433942a48.76199%2048.76199%200%200%201-49.005989-48.76199z'%20p-id='5264'%3e%3c/path%3e%3c/svg%3e",_1=Object.freeze(Object.defineProperty({__proto__:null,default:C1},Symbol.toStringTag,{value:"Module"})),O1="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1753759014120'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='3160'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='32'%20height='32'%3e%3cpath%20d='M567.466667%20908.8H128c-17.066667%200-34.133333-17.066667-34.133333-34.133333V290.133333c0-17.066667%20170.666667-187.733333%20187.733333-187.733333h285.866667c17.066667%200%2034.133333%2017.066667%2034.133333%2034.133333v733.866667c0%2021.333333-17.066667%2038.4-34.133333%2038.4z%20m-430.933334-42.666667h422.4V149.333333H285.866667c-21.333333%2017.066667-128%20123.733333-149.333334%20149.333334v567.466666zM567.466667%20149.333333zM887.466667%20256h-170.666667c-25.6%200-42.666667-21.333333-42.666667-46.933333V153.6c0-25.6%2017.066667-46.933333%2042.666667-46.933333h170.666667c25.6%200%2042.666667%2021.333333%2042.666666%2046.933333v51.2c0%2029.866667-17.066667%2051.2-42.666666%2051.2z%20m-166.4-106.666667V209.066667h170.666666V153.6v-4.266667h-170.666666z%20m-4.266667%200zM887.466667%20785.066667h-170.666667c-25.6%200-42.666667-17.066667-42.666667-38.4V307.2c0-21.333333%2017.066667-38.4%2042.666667-38.4h170.666667c25.6%200%2042.666667%2017.066667%2042.666666%2038.4v435.2c0%2025.6-17.066667%2042.666667-42.666666%2042.666667z%20m0-477.866667l-170.666667%204.266667v430.933333l170.666667-4.266667V307.2z'%20fill='%23707070'%20p-id='3161'%3e%3c/path%3e%3cpath%20d='M802.133333%20917.333333c-8.533333%200-12.8-4.266667-17.066666-8.533333L678.4%20768c-4.266667-8.533333-4.266667-17.066667%200-21.333333%204.266667-8.533333%2012.8-12.8%2017.066667-12.8h213.333333c8.533333%200%2017.066667%204.266667%2017.066667%2012.8%204.266667%208.533333%204.266667%2017.066667%200%2021.333333l-106.666667%20140.8c-4.266667%208.533333-8.533333%208.533333-17.066667%208.533333z%20m-64-140.8l64%2085.333334%2064-85.333334h-128zM290.133333%20337.066667l-179.2-25.6c-4.266667%200-12.8-4.266667-17.066666-12.8-4.266667-8.533333%200-17.066667%204.266666-21.333334L247.466667%20128c8.533333-8.533333%2017.066667-8.533333%2025.6-8.533333%208.533333%204.266667%2012.8%208.533333%2012.8%2017.066666l25.6%20174.933334c0%208.533333%200%2012.8-4.266667%2017.066666-4.266667%208.533333-8.533333%208.533333-17.066667%208.533334z%20m-128-59.733334l106.666667%2012.8-17.066667-102.4-89.6%2089.6zM448%20456.533333H302.933333c-12.8%200-21.333333-8.533333-21.333333-21.333333s8.533333-21.333333%2021.333333-21.333333h145.066667c12.8%200%2021.333333%208.533333%2021.333333%2021.333333s-8.533333%2021.333333-21.333333%2021.333333zM460.8%20593.066667h-256c-12.8%200-21.333333-8.533333-21.333333-21.333334s8.533333-21.333333%2021.333333-21.333333h256c12.8%200%2021.333333%208.533333%2021.333333%2021.333333s-8.533333%2021.333333-21.333333%2021.333334zM460.8%20704h-256c-12.8%200-21.333333-8.533333-21.333333-21.333333s8.533333-21.333333%2021.333333-21.333334h256c12.8%200%2021.333333%208.533333%2021.333333%2021.333334s-8.533333%2021.333333-21.333333%2021.333333z'%20p-id='3162'%3e%3c/path%3e%3c/svg%3e",M1=Object.freeze(Object.defineProperty({__proto__:null,default:O1},Symbol.toStringTag,{value:"Module"})),D1="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1753759021503'%20class='icon'%20viewBox='0%200%201170%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='3318'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='36.5625'%20height='32'%3e%3cpath%20d='M1165.165714%20493.714286L890.88%2018.285714a36.571429%2036.571429%200%200%200-31.451429-18.285714h-548.571428a36.571429%2036.571429%200%200%200-31.451429%2018.285714L5.12%20493.714286a36.571429%2036.571429%200%200%200%200%2036.571428l274.285714%20475.428572a36.571429%2036.571429%200%200%200%2031.451429%2018.285714h548.571428a36.571429%2036.571429%200%200%200%2031.451429-18.285714l274.285714-475.428572a36.571429%2036.571429%200%200%200%200-36.571428zM78.994286%20512l227.474285-393.508571%2073.142858%20128a950.857143%20950.857143%200%200%201-82.651429%20210.651428q14.628571%2057.782857%2021.942857%20103.862857%2019.748571-30.72%2037.302857-64.365714v268.434286h73.142857V338.651429l3.657143-11.702858%2065.828572%20111.908572v21.211428H512l13.897143%2023.405715H444.708571v89.965714h73.142858V541.257143h40.228571L585.142857%20585.142857H484.937143v58.514286h135.314286l17.554285%2029.257143a23.405714%2023.405714%200%200%201-27.062857%2024.137143h-73.142857q9.508571%2044.617143%2013.897143%2073.142857a915.748571%20915.748571%200%200%200%2099.474286%200%2065.828571%2065.828571%200%200%200%2032.182857-10.24L804.571429%20950.857143H332.068571z%20m785.554285%20393.508571L714.605714%20658.285714v-14.628571h122.148572V585.142857H670.72l-25.6-43.885714h151.405714v32.914286h73.142857V483.474286H610.742857l-13.897143-23.405715h225.28v-131.657142H517.851429l-13.897143-23.405715h365.714285v-57.782857H707.291429l-18.285715-49.737143-84.845714%2014.628572%2015.36%2035.108571H468.845714l-7.314285-12.434286c0-7.314286%204.388571-13.165714%206.582857-20.48l-21.942857-4.388571L365.714286%2073.142857h473.234285l253.074286%20438.857143z%20m-292.571428-496.64v-29.257142h173.348571v29.988571z'%20p-id='3319'%3e%3c/path%3e%3c/svg%3e",T1=Object.freeze(Object.defineProperty({__proto__:null,default:D1},Symbol.toStringTag,{value:"Module"})),A1="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1753759312255'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2472'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='32'%20height='32'%3e%3cpath%20d='M381.525333%20351.765333v160c0%2023.402667%203.136%2053.888%209.408%2091.456L426.666667%20731.690667V652.8l76.181333-0.021333V601.6h50.794667v-0.021333l-25.386667%200.021333v-51.2l25.386667-0.021333V499.2h25.386666v51.178667h25.408V448h25.386667v102.378667l25.408%200.021333v51.2l-76.202667-0.021333v0.021333h253.994667l-0.021333%2051.178667L960%20652.8v232.277333h64v42.666667H0v-42.666667h21.333333c72.746667-160%20109.141333-284.437333%20109.141334-373.333333v-160h251.050666zM921.898667%20789.333333H515.562667v25.6h406.336V789.333333z%20m0-51.2H515.562667v25.6h406.336v-25.6zM353.877333%20234.666667c0%2041.216-63.210667%2072.106667-109.482666%2059.626666-34.709333-9.386667-70.016%2013.162667-84.053334%2022.186667l-3.029333%201.92c-2.581333%201.621333-3.712%202.154667-3.072%200.896%2038.890667-75.52%2090.154667-60.309333%2090.154667-60.309333%2069.354667%2024.32%20109.482667-24.32%20109.482666-24.32z%20m64-85.333334c0%2051.52-79.018667%2090.154667-136.853333%2074.517334-57.856-15.637333-117.013333%2039.68-112.682667%2031.274666%2048.597333-94.4%20112.682667-75.392%20112.682667-75.392C367.722667%20210.133333%20417.877333%20149.333333%20417.877333%20149.333333z'%20fill='%23000000'%20p-id='2473'%3e%3c/path%3e%3c/svg%3e",B1=Object.freeze(Object.defineProperty({__proto__:null,default:A1},Symbol.toStringTag,{value:"Module"})),P1="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1752204045219'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='4010'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='16'%20height='16'%3e%3cpath%20d='M345.216%20664.192a315.84%20315.84%200%200%201%2093.12-224.64%20315.84%20315.84%200%200%201%20100.992-68.16%20315.392%20315.392%200%200%201%20123.648-24.96%20315.392%20315.392%200%200%201%20158.72%2042.368V124.8a24.768%2024.768%200%200%200-24.768-24.768H559.296a32.64%2032.64%200%200%201%200.704%206.976v133.184c0%2019.2-15.616%2034.816-34.816%2034.816H395.072a34.816%2034.816%200%200%201-34.752-34.816v-133.12a32.64%2032.64%200%200%201%200.64-6.976H123.456a24.768%2024.768%200%200%200-24.768%2024.832v676.544c0%2013.76%2011.072%2024.832%2024.768%2024.832h266.24a316.224%20316.224%200%200%201-44.416-162.112z%20m317.76-257.792a257.792%20257.792%200%201%200%200%20515.52%20257.792%20257.792%200%200%200%200-515.52z%20m112.256%20293.376a104.704%20104.704%200%200%201-107.328%2025.216l-68.48%2068.48a46.528%2046.528%200%200%201-65.728-65.664l68.48-68.48a104.512%20104.512%200%200%201%20140.8-129.28L675.904%20597.12l10.88%2042.88%2043.328%2011.328%2067.072-67.136c16.64%2038.336%209.216%2084.416-21.952%20115.584z%20m-220.16%2051.456a20.928%2020.928%200%201%200%2041.856%200%2020.928%2020.928%200%200%200-41.856%200z'%20p-id='4011'%3e%3c/path%3e%3c/svg%3e",E1=Object.freeze(Object.defineProperty({__proto__:null,default:P1},Symbol.toStringTag,{value:"Module"})),V1="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1752024926580'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='1794'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='16'%20height='16'%3e%3cpath%20d='M896%20810.666667h85.333333v85.333333H42.666667v-85.333333h85.333333V170.666667a42.666667%2042.666667%200%200%201%2042.666667-42.666667h426.666666a42.666667%2042.666667%200%200%201%2042.666667%2042.666667v640h85.333333V384h128a42.666667%2042.666667%200%200%201%2042.666667%2042.666667v384zM298.666667%20469.333333v85.333334h170.666666v-85.333334H298.666667z%20m0-170.666666v85.333333h170.666666V298.666667H298.666667z'%20fill='%23000000'%20p-id='1795'%3e%3c/path%3e%3c/svg%3e",z1=Object.freeze(Object.defineProperty({__proto__:null,default:V1},Symbol.toStringTag,{value:"Module"})),L1="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1753777755003'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2702'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='32'%20height='32'%3e%3cpath%20d='M393.6%20768l105.6-105.6L605.6%20768l46.4-46.4L545.6%20616l105.6-105.6-45.6-46.4-105.6%20106.4L393.6%20464l-46.4%2046.4L453.6%20616%20348%20722.4l45.6%2045.6z%20m420.8-608h-43.2V73.6H684V160H336.8V73.6H250.4V160h-43.2c-48%200-86.4%2039.2-86.4%2087.2l-0.8%20608c0%2048%2038.4%2087.2%2087.2%2087.2h608c48%200%2087.2-39.2%2087.2-87.2v-608c-0.8-48-40-87.2-88-87.2z%20m0%20695.2h-608V377.6h608v477.6z'%20fill=''%20p-id='2703'%3e%3c/path%3e%3c/svg%3e",N1=Object.freeze(Object.defineProperty({__proto__:null,default:L1},Symbol.toStringTag,{value:"Module"})),R1="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1753777764300'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2863'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='32'%20height='32'%3e%3cpath%20d='M709.6%20514.4l-46.4-46.4-212.8%20213.6-92.8-92.8-45.6%2046.4%20139.2%20139.2c-0.8-0.8%20258.4-260%20258.4-260z%20m108-351.2h-44v-88H686.4v87.2H337.6V75.2H250.4v87.2h-44c-48.8%200-87.2%2039.2-87.2%2087.2l-0.8%20611.2c0%2048%2039.2%2087.2%2087.2%2087.2h611.2c48%200%2087.2-39.2%2087.2-87.2V250.4c0.8-48-38.4-87.2-86.4-87.2z%20m0%20697.6H206.4v-480h611.2v480z'%20fill=''%20p-id='2864'%3e%3c/path%3e%3c/svg%3e",I1=Object.freeze(Object.defineProperty({__proto__:null,default:R1},Symbol.toStringTag,{value:"Module"})),H1="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1753758984014'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2517'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='32'%20height='32'%3e%3cpath%20d='M733.090909%20744.727273h-442.181818a34.909091%2034.909091%200%201%200%200%2069.818182h442.181818a34.909091%2034.909091%200%201%200%200-69.818182m-297.681454-229.818182a52.037818%2052.037818%200%200%200%2050.129454-38.050909L512%20381.928727l26.461091%2094.929455a52.037818%2052.037818%200%200%200%20100.119273%200.372363l70.283636-244.736a34.955636%2034.955636%200%200%200-29.672727-44.357818c-17.268364-2.048-33.117091%2010.146909-37.911273%2026.856728l-52.433455%20182.574545-43.659636-153.227636a35.025455%2035.025455%200%200%200-67.374545%200.186181l-42.658909%20153.041455-52.433455-182.574545c-4.794182-16.709818-20.642909-28.904727-37.911273-26.856728a34.955636%2034.955636%200%200%200-29.672727%2044.357818l70.283636%20244.736a52.014545%2052.014545%200%200%200%2049.989819%2037.678546M733.090909%20605.090909h-442.181818a34.909091%2034.909091%200%201%200%200%2069.818182h442.181818a34.909091%2034.909091%200%201%200%200-69.818182m139.636364%20116.363636a34.909091%2034.909091%200%200%200%2034.909091-34.90909V93.090909a69.818182%2069.818182%200%200%200-69.818182-69.818182H186.181818a69.818182%2069.818182%200%200%200-69.818182%2069.818182v837.818182a69.818182%2069.818182%200%200%200%2069.818182%2069.818182h651.636364a69.818182%2069.818182%200%200%200%2069.818182-69.818182v-81.454546a34.909091%2034.909091%200%201%200-69.818182%200V930.909091H186.181818V93.090909h651.636364v593.454546a34.909091%2034.909091%200%200%200%2034.909091%2034.90909'%20p-id='2518'%3e%3c/path%3e%3c/svg%3e",$1=Object.freeze(Object.defineProperty({__proto__:null,default:H1},Symbol.toStringTag,{value:"Module"})),W1="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1753759028609'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='3475'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='32'%20height='32'%3e%3cpath%20d='M867.288842%2064.648392%20157.782559%2064.648392c-16.954137%200-30.699186%2013.745049-30.699186%2030.699186L127.083373%20928.244122c0%2016.954137%2013.745049%2030.699186%2030.699186%2030.699186l709.506283%200c16.954137%200%2030.699186-13.745049%2030.699186-30.699186L897.988028%2095.347578C897.988028%2078.392418%20884.242979%2064.648392%20867.288842%2064.648392zM574.652945%20126.046764l131.487683%200%200%20273.587052-53.983495-32.547277c-10.112312-6.095835-22.824845-5.852288-32.694633%200.62524l-44.809555%2029.408797L574.652945%20126.046764zM513.254573%20126.046764l0%20327.943031c0%2011.281951%206.187933%2021.655206%2016.116049%2027.01426%204.562922%202.463098%209.577123%203.684926%2014.58109%203.684926%205.881964%200%2011.749602-1.688455%2016.84669-5.033643l76.202543-50.012044%2083.98888%2050.637284c9.478885%205.715165%2021.305235%205.884011%2030.946826%200.440022%209.640568-5.445012%2015.60235-15.658631%2015.60235-26.730805L767.539001%20126.046764l69.050656%200%200%20642.611733L188.481745%20768.658498%20188.481745%20126.046764%20513.254573%20126.046764zM188.481745%20897.544937l0-67.488067%20648.107911%200%200%2067.488067L188.481745%20897.544937z'%20p-id='3476'%3e%3c/path%3e%3c/svg%3e",F1=Object.freeze(Object.defineProperty({__proto__:null,default:W1},Symbol.toStringTag,{value:"Module"})),G1="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1752025080767'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2430'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='16'%20height='16'%3e%3cpath%20d='M976%2016H48A48%2048%200%200%200%200%2064v720a48%2048%200%200%200%2048%2048h928a48%2048%200%200%200%2048-48V64a48%2048%200%200%200-48-48zM303.12%20272.8a8%208%200%200%201%208-8%20165.76%20165.76%200%200%201%2094.4%2035.44%208%208%200%200%201%201.04%2011.76l-39.44%2040a8.8%208.8%200%200%201-11.28%200.88%2093.84%2093.84%200%200%200-44.32-16%209.12%209.12%200%200%201-8-8.8z%20m92.16%20298.16a169.52%20169.52%200%200%201-64.48%2026.56h-0.4a153.76%20153.76%200%200%201-27.28%202.4%20168%20168%200%200%201-33.36-332.08%208%208%200%200%201%209.44%208v57.2a8.8%208.8%200%200%201-6.16%208A96%2096%200%200%200%20303.12%20528a93.6%2093.6%200%200%200%2043.2-10.72%208.8%208.8%200%200%201%2010.4%201.36l39.52%2040a8%208%200%200%201-0.96%2012.32z%20m34.8-29.84a8%208%200%200%201-11.84%200l-39.04-39.04a9.12%209.12%200%200%201-0.48-11.84A94.8%2094.8%200%200%200%20384%20381.36a9.04%209.04%200%200%201%200.96-11.12l39.6-40a8%208%200%200%201%2012%200.64%20168%20168%200%200%201-6.24%20210.08z%20m190.56%208.56a33.44%2033.44%200%201%201-66.88%200V415.44a33.44%2033.44%200%201%201%2066.88%200z%20m133.68%200a33.44%2033.44%200%201%201-66.88%200V289.6a33.44%2033.44%200%201%201%2066.88%200z%20m133.68%200a33.44%2033.44%200%201%201-66.88%200V289.6a33.44%2033.44%200%201%201%2066.88%200zM800%20936H240a40%2040%200%200%200%200%2080h560a40%2040%200%200%200%200-80z'%20p-id='2431'%3e%3c/path%3e%3c/svg%3e",j1=Object.freeze(Object.defineProperty({__proto__:null,default:G1},Symbol.toStringTag,{value:"Module"})),q1="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1752025102384'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2587'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='16'%20height='16'%3e%3cpath%20d='M744.459278%20327.891539v-30.371913c0-19.963561%2016.323482-36.17329%2036.457671-36.173291h151.120177l1.82004-0.341257c20.191066%200%2036.514548%2016.152853%2036.514548%2036.17329v144.636285a319.075722%20319.075722%200%200%200-98.566529-72.34658%20408.371423%20408.371423%200%200%200-127.345907-41.576534z%20m-463.200121%20343.134372l-102.149732%201.080649v36.17329h105.107297c-2.27505%2027.186844-2.27505%2054.544317%200%2081.731161%205.061986%2035.661404%2013.820927%2070.69717%2026.276824%20104.538534H28.671763V74.735383C28.671763%2033.613859%2062.342499%200.284381%20103.919032%200.284381h526.617131c41.576533%200%2075.190393%2033.329478%2075.190393%2074.451002v250.994859s-198.896221-2.559431-319.360102%20121.828912a403.025056%20403.025056%200%200%200-105.107297%20223.466757zM179.109425%20149.243261H103.919032v75.929784h75.190393V149.243261z%20m0%20148.958879H103.919032v75.986661h75.190393V298.20214z%20m0%20149.015756H103.919032v75.929784h75.190393V447.217896z%20m150.32391-297.974635H254.299818v75.929784h75.133517V149.243261z%20m0%20148.958879H254.299818v75.986661h75.133517V298.20214z%20m0%20149.015756H254.299818v75.929784h75.133517V447.217896z%20m225.969312-111.363683s25.139299-7.621417%2039.415236-11.20462c14.219061-3.64008%2036.457672-7.223283%2036.457672-7.223283l-0.739392-17.745387H555.402647v36.17329z%20m-0.398134-110.681168h76.271042l-1.080649-75.929784H555.004513v75.929784zM404.623727%20373.44941h76.271042L479.81412%20298.20214H404.623727v75.24727z%20m0-148.276365h76.271042L479.81412%20149.243261H404.623727v75.929784z%20m281.082392%20185.13217c170.913109%200%20309.463637%20137.29925%20309.463636%20306.6767%200%20169.320575-138.550527%20306.619824-309.463636%20306.619825-170.969986%200-309.520513-137.29925-309.520513-306.619825%200-169.377451%20138.550527-306.676701%20309.520513-306.6767z%20m-127.744041%20481.684899L685.706119%20824.705519l128.82469%2067.625853-24.456785-142.816246%20104.367906-100.500321-144.124399-20.646076-64.611412-129.450328-63.530763%20129.791586-144.181275%2020.646076%20104.424781%20100.557197-24.456784%20142.076854z'%20p-id='2588'%3e%3c/path%3e%3c/svg%3e",U1=Object.freeze(Object.defineProperty({__proto__:null,default:q1},Symbol.toStringTag,{value:"Module"})),Y1="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1753854781584'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2732'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='32'%20height='32'%3e%3cpath%20d='M755.81%20727.284a73.167%2073.167%200%201%200-48.762%200v52.906h-73.143a24.381%2024.381%200%200%200-24.381%2024.381v48.762a24.381%2024.381%200%200%200%2024.38%2024.381h195.048a24.381%2024.381%200%200%200%2024.381-24.38V804.57a24.381%2024.381%200%200%200-24.38-24.38H755.81v-52.907z%20m146.285-233.521a291.255%20291.255%200%200%200-170.666-54.906c-161.573%200-292.572%20130.999-292.572%20292.572%200%2087.38%2038.303%20165.814%2099.06%20219.428h-342.87a73.143%2073.143%200%200%201-73.142-73.143V146.286a73.143%2073.143%200%200%201%2073.143-73.143h633.904a73.143%2073.143%200%200%201%2073.143%2073.143v347.477zM731.43%20975.238c-134.656%200-243.81-109.153-243.81-243.81S596.773%20487.62%20731.429%20487.62s243.81%20109.154%20243.81%20243.81-109.154%20243.81-243.81%20243.81z%20m-243.81-780.19a24.381%2024.381%200%200%200%200%2048.762H780.19a24.381%2024.381%200%200%200%200-48.762H487.62z%20m-243.81%200a24.381%2024.381%200%200%200-24.38%2024.38v146.286a24.381%2024.381%200%200%200%2024.38%2024.381h121.905a24.381%2024.381%200%200%200%2024.381-24.38V219.428a24.381%2024.381%200%200%200-24.38-24.381H243.81z%20m243.81%20146.285a24.381%2024.381%200%200%200%200%2048.762H780.19a24.381%2024.381%200%200%200%200-48.762H487.62zM243.809%20487.62a24.381%2024.381%200%200%200%200%2048.762h195.048a24.381%2024.381%200%200%200%200-48.762H243.81z%20m0%20146.286a24.381%2024.381%200%200%200%200%2048.762h97.524a24.381%2024.381%200%200%200%200-48.762H243.81z'%20p-id='2733'%3e%3c/path%3e%3c/svg%3e",K1=Object.freeze(Object.defineProperty({__proto__:null,default:Y1},Symbol.toStringTag,{value:"Module"})),X1="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1753766097595'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='3186'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='32'%20height='32'%3e%3cpath%20d='M201.813333%20776.32h620.373334a37.12%2037.12%200%200%200%2035.2-42.666667l-14.08-77.653333a71.04%2071.04%200%200%200-66.986667-56.32h-169.173333L593.066667%20512a208%20208%200%200%200%20130.56-193.92%20211.626667%20211.626667%200%200%200-423.04%200A207.786667%20207.786667%200%200%200%20430.933333%20512l-10.666666%2088.106667h-168.96a67.84%2067.84%200%200%200-66.986667%2056.32L170.666667%20733.866667a32.853333%2032.853333%200%200%200%2031.146666%2042.453333z%20m627.413334%2070.4H194.773333a35.413333%2035.413333%200%200%200%200%2070.613333h634.453334a35.413333%2035.413333%200%200%200%200-70.613333z'%20p-id='3187'%3e%3c/path%3e%3c/svg%3e",Q1=Object.freeze(Object.defineProperty({__proto__:null,default:X1},Symbol.toStringTag,{value:"Module"})),J1="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1751524519735'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2598'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='16'%20height='16'%3e%3cpath%20d='M798.72%20320v446.976H223.232V320H63.488v532.48c0%2041.472%2033.792%2075.264%2075.264%2075.264h745.472c41.472%200%2075.264-33.792%2075.264-75.264v-532.48H798.72z'%20p-id='2599'%3e%3c/path%3e%3cpath%20d='M608.256%20494.592z%20m-10.24-4.608z'%20p-id='2600'%3e%3c/path%3e%3cpath%20d='M819.2%2096.256H203.776c-41.472%200-75.264%2033.792-75.264%2075.264V286.72h128v448h510.464V286.72h128V171.008c-0.512-41.472-34.304-74.752-75.776-74.752z%20m-154.112%20493.056l-12.8%2012.8c-12.8%2012.8-33.28%2012.8-46.08%200L477.184%20473.088c-33.792%2011.776-72.704%204.608-99.328-22.528-27.136-27.136-34.304-66.048-22.528-99.84l38.4%2038.4c12.8%2012.8%2033.28%2012.8%2046.08%200l12.8-12.8c12.8-12.8%2012.8-33.28%200-46.08L414.208%20291.84c33.792-11.776%2072.704-4.096%2099.84%2022.528%2027.136%2027.136%2034.304%2066.048%2022.528%2099.84l128.512%20128.512c12.288%2013.312%2012.288%2033.792%200%2046.592z'%20p-id='2601'%3e%3c/path%3e%3c/svg%3e",Z1=Object.freeze(Object.defineProperty({__proto__:null,default:J1},Symbol.toStringTag,{value:"Module"})),e3="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1752201011725'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='4040'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='16'%20height='16'%3e%3cpath%20d='M567.68%2072.277l320.725%20170.667a94.805%2094.805%200%200%201%2050.262%2083.627v371.626c0%2035.158-19.414%2067.414-50.432%2083.798L567.467%20951.936a118.43%20118.43%200%200%201-110.934%200L135.765%20782.08a94.805%2094.805%200%200%201-50.432-83.797V326.656c0-35.072%2019.328-67.285%2050.262-83.755L456.32%2072.277a118.528%20118.528%200%200%201%20111.36%200z%20m123.35%20294.144L512.596%20469.333h-1.237L332.97%20366.421a42.667%2042.667%200%201%200-42.666%2073.899l179.03%20103.381v181.632a42.667%2042.667%200%200%200%2037.674%2042.368L512%20768a42.667%2042.667%200%200%200%2042.667-42.667V543.66L733.696%20440.32a42.667%2042.667%200%200%200-42.667-73.899z'%20p-id='4041'%3e%3c/path%3e%3c/svg%3e",t3=Object.freeze(Object.defineProperty({__proto__:null,default:e3},Symbol.toStringTag,{value:"Module"})),i3="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1752200860282'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2792'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='16'%20height='16'%3e%3cpath%20d='M1024%20806.4V25.6c0-12.8-12.8-25.6-25.6-25.6H25.6C12.8%200%200%2012.8%200%2025.6v780.8h435.2v166.4H236.8v51.2h556.8v-51.2H588.8v-166.4H1024zM320%20281.6c-12.8-12.8-19.2-25.6-32-32l44.8-76.8c44.8%2025.6%2096%2012.8%20121.6-32%2012.8-12.8%2012.8-32%2012.8-44.8h89.6c0%2051.2%2038.4%2083.2%2089.6%2083.2%2012.8%200%2032-6.4%2044.8-12.8l44.8%2076.8c-44.8%2025.6-57.6%2076.8-32%20115.2%2012.8%2012.8%2019.2%2025.6%2032%2032l-44.8%2076.8c-44.8-19.2-96-6.4-121.6%2038.4-12.8%2012.8-12.8%2025.6-12.8%2044.8H467.2c0-44.8-38.4-83.2-89.6-83.2-12.8%200-32%206.4-44.8%2012.8l-44.8-83.2c38.4-25.6%2051.2-76.8%2032-115.2zM102.4%20704v-51.2h825.6v51.2H102.4zM512%20416c51.2%200%2096-38.4%2096-89.6S569.6%20236.8%20512%20236.8c-51.2%200-96%2038.4-96%2089.6%200%2051.2%2044.8%2089.6%2096%2089.6z'%20p-id='2793'%3e%3c/path%3e%3c/svg%3e",n3=Object.freeze(Object.defineProperty({__proto__:null,default:i3},Symbol.toStringTag,{value:"Module"})),s3="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1753777785512'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='3343'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='32'%20height='32'%3e%3cpath%20d='M730.55%20249.234a29.038%2029.038%200%200%201-30.39-25.746v-120.1c0-16.421%2012.873-29.733%2028.672-29.77l1.719%200.037h20.955c15.982-0.658%2029.44%2012.105%2030.281%2028.635v121.271a28.891%2028.891%200%200%201-30.28%2027.429l-20.956-1.756z%20m-430.445%200a28.197%2028.197%200%200%201-32.768-23.369l-0.366-2.377v-120.1a28.855%2028.855%200%200%201%2027.136-30.245%2027.136%2027.136%200%200%201%205.998%200.439h20.444c16.018-0.659%2029.732%2012.032%2030.902%2028.635v121.271c-1.206%2016.42-14.994%2028.709-30.72%2027.465h-0.219l-20.407-1.719z%20m579.401-78.884c30.391-1.646%2056.32%2022.637%2057.93%2054.162a78.994%2078.994%200%200%201%200%205.888v655.653c-2.305%2032.768-29.002%2057.929-60.673%2057.16H168.777c-31.268%200.366-57.307-24.831-59.063-57.197V230.363c0-33.17%2025.93-60.086%2057.93-60.086a11.337%2011.337%200%200%201%201.133%200.036h62.354v53.212c0.878%2038.217%2031.488%2068.498%2068.352%2067.51h21.614c35.913-0.292%2065.06-30.28%2065.646-67.547v-51.456H662.6v51.493c0%2038.217%2029.879%2069.23%2066.78%2069.23h21.504c36.9%201.572%2067.986-28.124%2069.449-66.305l0.073-2.889v-51.529l59.1-1.682zM168.777%20886.016h709.669V371.09H168.777v514.926z'%20p-id='3344'%3e%3c/path%3e%3cpath%20d='M305.445%20687.799h69.01V570.55h151.698v-72.96H400.165a623.799%20623.799%200%200%201-64.732%2091.83%20220.965%20220.965%200%200%200-26.587-22.966%20441.82%20441.82%200%200%200%2091.282-147.164l35.145%209.436c-5.998%2013.531-12.288%2026.66-18.87%2039.35H711.24v29.514H560.823v72.96h143.14v28.708h-143.14v88.54H730.55v29.513H560.823v110.665h-34.706V717.312H305.445v-29.513z%20m102.875%200h117.87v-88.54H408.32v88.54z'%20p-id='3345'%3e%3c/path%3e%3c/svg%3e",o3=Object.freeze(Object.defineProperty({__proto__:null,default:s3},Symbol.toStringTag,{value:"Module"})),r3="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1753759007967'%20class='icon'%20viewBox='0%200%201099%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='3000'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='34.34375'%20height='32'%3e%3cpath%20d='M214.47633%20310.45989h112.733945a37.577982%2037.577982%200%201%201%200%2075.155963h-112.733945a37.577982%2037.577982%200%201%201%200-75.155963z%20m296.715743%200h112.733945a37.577982%2037.577982%200%201%201%200%2075.155963h-112.733945a37.577982%2037.577982%200%201%201%200-75.155963zM214.47633%20472.590092h112.733945a37.577982%2037.577982%200%201%201%200%2075.155963h-112.733945a37.577982%2037.577982%200%201%201%200-75.155963z%20m0%20162.111413h112.733945a37.577982%2037.577982%200%201%201%200%2075.155963h-112.733945a37.577982%2037.577982%200%201%201%200-75.155963z'%20fill='%23000000'%20p-id='3001'%3e%3c/path%3e%3cpath%20d='M426.641615%20837.124697H75.193541v-695.19266h108.036698v28.183486a37.577982%2037.577982%200%201%200%2075.155963%200v-28.183486h126.825688v28.183486a37.577982%2037.577982%200%201%200%2075.155963%200v-28.183486h126.844477v28.183486a37.577982%2037.577982%200%201%200%2075.155964%200v-28.183486h108.027302v177.912954a37.577982%2037.577982%200%201%200%2075.155964%200V141.941431c0-41.448514-33.726239-75.155963-75.155964-75.155963h-108.036697v-28.183486a37.577982%2037.577982%200%201%200-75.155963%200v28.183486h-126.825688v-28.183486a37.577982%2037.577982%200%201%200-75.155964%200v28.183486H258.386202v-28.183486a37.577982%2037.577982%200%201%200-75.155963%200v28.183486h-108.036698c-41.429725%200-75.155963%2033.716844-75.155963%2075.155963v695.192661c0%2041.429725%2033.726239%2075.155963%2075.155963%2075.155963h351.448074a37.577982%2037.577982%200%201%200%200-75.155963z'%20fill='%23000000'%20p-id='3002'%3e%3c/path%3e%3cpath%20d='M779.743119%20385.174312c-176.128%200-319.412844%20143.284844-319.412844%20319.412844%200%20176.128%20143.284844%20319.412844%20319.412844%20319.412844%20176.128%200%20319.412844-143.284844%20319.412844-319.412844%200-176.128-143.294239-319.412844-319.412844-319.412844z%20m0%20563.669725c-134.679486%200-244.256881-109.577394-244.25688-244.256881s109.577394-244.256881%20244.25688-244.256881%20244.256881%20109.577394%20244.256881%20244.256881-109.577394%20244.256881-244.256881%20244.256881z'%20fill='%23000000'%20p-id='3003'%3e%3c/path%3e%3cpath%20d='M814.54033%20864.293578v-54.957798H939.449541v-32.702239H814.54033v-74.225908h119.563743v-32.692844H814.54033v-54.441101H939.449541v-32.692844H687.395229L688.945321%20563.669725h-32.899523c-3.44778%2023.448661-8.389284%2040.706349-14.815119%2051.782458-4.255706%207.186789-11.320367%2013.546862-21.193982%2019.089615v36.40367c14.815119-4.359046%2026.417321-10.484257%2034.797211-18.375633%208.849615-8.248367%2016.834936-20.677284%2023.955964-37.296147h103.88433v54.431706H684.295046c-10.446679%200-19.869358%204.302679-28.249248%2012.908037-8.267156%208.718092-12.400734%2020.141798-12.400734%2034.289908v59.730202H620.036697v32.692844h162.637505V864.293578h31.866128zM779.743119%20779.743119H676.40367v-50.82422c0-8.586569%201.719193-14.730569%205.148183-18.422605%203.663853-3.945688%2010.136661-5.909138%2019.446606-5.909138H779.743119v75.155963z'%20fill='%23000000'%20p-id='3004'%3e%3c/path%3e%3c/svg%3e",l3=Object.freeze(Object.defineProperty({__proto__:null,default:r3},Symbol.toStringTag,{value:"Module"})),a3="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1753766077288'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2709'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='32'%20height='32'%3e%3cpath%20d='M728%20103.583H145.25c-46.35%201.35-83.25%2039.15-83.25%2085.5v675.45c0%2046.35%2036.9%2084.15%2083.25%2085.95H467.9c-47.7-60.3-73.35-135-73.35-211.95-1.8-185.4%20147.15-337.05%20332.55-338.85h0.45c27.9%200%2056.25%204.05%2083.25%2011.25v-222.75c-0.45-45.9-36.9-83.25-82.8-84.6z%20m-395.55%20391.95h-166.5v-77.85H332.9v77.85z%20m374.85-198.45H165.95v-75.6h540.9l0.45%2075.6z'%20p-id='2710'%3e%3c/path%3e%3cpath%20d='M727.55%20486.533c-131.85-2.25-240.3%20103.05-242.1%20234.45s103.05%20240.3%20234.45%20242.1%20240.3-103.05%20242.1-234.45v-4.05c1.35-130.05-103.5-237.15-234.45-238.05z%20m-42.75%20380.25a17.111%2017.111%200%200%201-24.3%200l-99.9-98.1c-5.85-5.85-5.85-14.85%200-20.7l21.15-20.7c5.85-5.85%2015.3-5.85%2021.15%200l68.4%2067.5%20195.3-198c5.85-5.85%2014.85-5.85%2020.7%200l20.7%2021.15c5.85%205.85%205.85%2015.3%200%2021.15l-223.2%20227.7z'%20p-id='2711'%3e%3c/path%3e%3c/svg%3e",c3=Object.freeze(Object.defineProperty({__proto__:null,default:a3},Symbol.toStringTag,{value:"Module"})),h3="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1753759318614'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2633'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='32'%20height='32'%3e%3cpath%20d='M990.263463%20965.191663c-4.679457-35.882495-21.525502-63.876334-54.148857-80.555577-19.705657-10.060083-40.144446-18.767768-60.584233-27.27569-39.090694-16.311678-78.048546-32.891038-119.212784-43.72021-21.693303-5.71523-42.533616-14.289074-61.302383-26.990028-25.737512-17.41537-42.082151-40.796673-43.285725-72.616981-1.253515-33.023881%206.283557-62.021531%2037.704336-80.254932%2014.623677-8.489943%2024.767661-21.827144%2030.935355-37.671376%205.615348-14.405935%2010.277825-29.196415%2015.69341-43.70323%201.102694-2.892574%203.108318-6.468338%205.648309-7.604991%2012.233509-5.498487%2021.4426-14.138252%2027.693196-25.687572%2010.714308-19.837501%2014.95928-41.18821%2011.983804-63.55871-1.471257-11.054905-4.914179-21.951996-13.570924-29.639889-4.11113-3.668654-4.880219-7.328319-4.780338-12.200548%200.200762-10.696329%200.066921-21.409639%200.066921-31.913196h-481.277892c0%2011.974815%200.166802%2023.289412-0.116862%2034.596018-0.07591%202.991456-0.876961%206.417398-2.532001%208.832537-8.114388%2011.849963-13.454063%2024.79363-14.723558%2039.016782-2.707792%2030.359038%205.364645%2057.591778%2030.667672%2075.675357%2010.135993%207.236428%2015.952104%2014.573736%2018.634925%2025.804433%200.794059%203.34304%202.030595%206.585199%203.167248%209.84334%208.198289%2023.548106%2018.333283%2045.726833%2039.985635%2060.517313%205.849071%203.994269%2010.68734%209.459794%2015.994053%2014.273093%207.720854%206.969744%2013.587904%2015.525609%2015.016213%2025.703552%202.005624%2014.306053%202.790694%2028.846829%203.33405%2043.336665%200.644237%2017.264549-5.381625%2032.439573-16.929945%2045.224428-19.746609%2021.861104-44.121735%2037.503574-71.472336%2047.280993-41.957299%2014.958281-84.758597%2027.625276-126.966599%2041.948309-26.089096%208.857508-52.228132%2017.882817-77.472229%2028.813868-35.589841%2015.408747-57.457937%2042.166051-61.444215%2081.992873-0.02497%200.267683-0.066921%200.534367-0.10088%200.80205-1.186594%2011.197735-3.618713%2022.26163-5.481507%2033.392445%200%208.373081%200%2016.747162%200.01698%2025.136224h435.041662c5.139911-39.677%2015.65146-78.098487%2027.459473-116.187368%201.762912-5.716229%201.194585-9.057271-3.30109-13.2533-6.233616-5.83309-11.54832-12.717935-16.746163-19.537856-5.071992-6.685081-5.047021-14.222153-1.63806-21.693303%206.55923-14.406934%2017.773946-24.634818%2030.425959-33.459365%201.62108-1.119674%204.203021-1.152635%206.342487-1.202576%201.378367-0.01698%202.766723%200.032961%204.162069%200.065922%200.442476-0.01698%200.885951-0.032961%201.303456-0.032961%203.776526-0.066921%207.588011%200.149823%2011.397499%200.267683%202.273307-0.065922%204.513653-0.183782%206.753001-0.551347%203.441923-0.552346%206.651121-0.585307%209.726478-0.384544%2015.241945-0.969851%2026.572523%206.350477%2037.369733%2016.895985%2021.358699%2020.874273%2022.394472%2038.890931%200.567328%2059.296759-7.42021%206.969744-7.603993%2012.585092-5.564409%2021.542482%208.20528%2035.933434%2015.408747%2072.132554%2022.962799%20108.248771h395.557435v-41.430922c-0.985832-5.81611-2.189406-11.5653-2.958496-17.38141z%20m-163.216658-613.325473c1.72196%200%203.475883-0.175792%205.164882%200.032961%204.96412%200.635248%206.834904-1.63806%206.233616-6.342487-1.6041-12.434271-2.390169-25.044333-5.01506-37.252872-4.612536-21.45059-17.681056-35.297188-39.708962-39.850793-1.437297-0.300644-2.841634-0.727139-4.295911-1.061743-7.470151-1.688-10.562488-5.915992-11.247676-13.988429-1.353397-16.144875-2.340228-32.707256-6.784963-48.140974-1.454277-5.005071-3.042396-9.785408-4.646496-14.464865a0.576317%200.576317%200%200%201-0.065922-0.166803c-34.762821-99.666938-109.201643-125.671134-149.780574-139.234067-5.196844-1.746931-7.620972%200.777079-9.225072%204.554604-3.408962%207.913626-7.253408%2015.794291-9.259032%2024.099453-10.227884%2042.625507-19.921402%2085.385854-29.815682%20128.095262-0.384544%201.62108-0.969851%203.184228-1.471257%204.771348-1.152635-1.796871-1.152635-3.276119-1.152634-4.746377%200.049941-56.222401%200.082902-112.451793%200.082901-168.682185%200-4.922169%200.133841-9.89428-0.434485-14.765509-1.538178-13.354181-11.949845-23.021729-25.336987-23.323372-13.068519-0.283664-26.147027-0.216743-39.207555%200.049941-10.637399%200.208753-18.542036%205.615348-22.478373%2015.266915-2.156446%205.297724-2.874595%2011.498379-2.891575%2017.29751-0.200762%2056.473104-0.108871%20112.945208-0.108871%20169.417314v7.270387c-2.172427-2.657852-2.732763-5.256773-3.32606-7.855694-8.348111-36.500762-16.336648-73.084426-25.244097-109.452346-3.083348-12.593083-8.31515-24.684759-12.901717-36.876317-1.538178-4.061189-4.028228-6.793952-9.668547-5.079983-90.240104%2027.492433-158.837845%20105.407138-161.153102%20199.951144-0.291655%2011.598261-1.762912%2013.17739-12.876747%2016.445519-2.841634%200.835011-5.674278%201.64605-8.514913%202.48206-14.189192%204.161071-23.92466%2013.295251-29.765741%2026.723344-7.446179%2017.113728-8.464973%2035.247247-8.941408%2054.826055%204.95513%200%208.849517%200%2012.734915%200.00799%20203.704697-0.006992%20407.408396-0.006992%20611.103105-0.006991z'%20p-id='2634'%3e%3c/path%3e%3c/svg%3e",u3=Object.freeze(Object.defineProperty({__proto__:null,default:h3},Symbol.toStringTag,{value:"Module"})),f3="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1753777770979'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='3024'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='32'%20height='32'%3e%3cpath%20d='M905.8%20974.5H116.1c-28.2%200-51.1-22.9-51.1-51.1V100.7c0-28.2%2022.9-51.1%2051.1-51.1h789.7c28.2%200%2051.1%2022.9%2051.1%2051.1v822.7c0%2028.1-22.9%2051.1-51.1%2051.1z%20m-760.8-80h731.9v-765H145v765z'%20p-id='3025'%3e%3c/path%3e%3cpath%20d='M673.6%20269.5H230.8c-22.1%200-40-17.9-40-40s17.9-40%2040-40h442.7c22.1%200%2040%2017.9%2040%2040s-17.8%2040-39.9%2040zM673.6%20434.4H230.8c-22.1%200-40-17.9-40-40s17.9-40%2040-40h442.7c22.1%200%2040%2017.9%2040%2040s-17.8%2040-39.9%2040zM433.5%20599.3H230.8c-22.1%200-40-17.9-40-40s17.9-40%2040-40h202.7c22.1%200%2040%2017.9%2040%2040s-17.9%2040-40%2040z'%20p-id='3026'%3e%3c/path%3e%3cpath%20d='M681.1%20833.5h-66.5v-44.8c-13.2-3.3-25.9-8.6-37.6-15.6l-31.7%2031.7-47-47%2031.7-31.7c-7-11.7-12.3-24.4-15.6-37.6h-44.8V622h44.8c3.3-13.2%208.6-25.9%2015.6-37.6l-31.7-31.7%2047-47%2031.7%2031.7c11.7-7%2024.4-12.3%2037.6-15.6V477h66.5v44.8c13.2%203.3%2025.9%208.6%2037.6%2015.6l31.7-31.7%2047%2047-31.7%2031.7c7%2011.7%2012.3%2024.4%2015.6%2037.6h44.8v66.5h-44.8c-3.3%2013.2-8.6%2025.9-15.6%2037.6l31.7%2031.7-47%2047-31.7-31.7c-11.7%207-24.4%2012.3-37.6%2015.6v44.8z%20m-36.5-30h6.5v-40l12.8-1.9c17.2-2.6%2033.8-9.4%2047.8-19.8l10.4-7.7%2028.3%2028.3%204.6-4.6-28.3-28.3%207.7-10.4c10.4-14.1%2017.3-30.6%2019.8-47.8l1.9-12.8h40V652h-40l-1.9-12.8c-2.6-17.2-9.4-33.8-19.8-47.8l-7.7-10.4%2028.3-28.3-4.6-4.6-28.3%2028.3-10.4-7.7c-14.1-10.4-30.6-17.3-47.8-19.8l-12.8-1.9v-40h-6.5v40l-12.8%201.9c-17.2%202.6-33.8%209.4-47.8%2019.8l-10.4%207.7-28.3-28.3-4.6%204.6L569%20581l-7.7%2010.4c-10.4%2014.1-17.3%2030.6-19.8%2047.8l-1.9%2012.8h-40v6.5h40l1.9%2012.8c2.6%2017.2%209.4%2033.8%2019.8%2047.8l7.7%2010.4-28.3%2028.3%204.6%204.6%2028.3-28.3%2010.4%207.7c14.1%2010.4%2030.6%2017.3%2047.8%2019.8l12.8%201.9v40z'%20p-id='3027'%3e%3c/path%3e%3cpath%20d='M647.9%20728.8c-40.5%200-73.5-33-73.5-73.5s33-73.5%2073.5-73.5%2073.5%2033%2073.5%2073.5-33%2073.5-73.5%2073.5z%20m0-117.1c-24%200-43.5%2019.5-43.5%2043.5s19.5%2043.5%2043.5%2043.5%2043.5-19.5%2043.5-43.5-19.5-43.5-43.5-43.5z'%20p-id='3028'%3e%3c/path%3e%3c/svg%3e",d3=Object.freeze(Object.defineProperty({__proto__:null,default:f3},Symbol.toStringTag,{value:"Module"})),p3="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1752025036400'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2116'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='16'%20height='16'%3e%3cpath%20d='M992.768%20859.940571v29.696c0%2044.470857-35.108571%2094.866286-78.848%2094.866286H122.733714C78.921143%20984.502857%2043.885714%20934.034286%2043.885714%20889.636571v-29.696c0-7.387429%205.851429-11.849143%2011.702857-11.849142h925.476572c5.851429-1.462857%2011.702857%204.388571%2011.702857%2011.849142zM204.653714%20218.038857v600.429714h-115.565714V266.971429c0-26.697143%2021.942857-49.005714%2048.274286-49.005715h67.291428z%20m694.637715%200a49.005714%2049.005714%200%200%201%2048.201142%2048.932572v551.497142H829.44V217.965714h69.851429zM759.954286%2048.274286c7.314286%200%2012.580571%204.096%2014.116571%2010.605714l0.512%204.242286V818.468571H257.828571V186.88H370.834286c7.314286%200%2012.507429-4.096%2014.116571-10.678857l0.438857-4.169143V48.274286h374.491429zM721.188571%20686.226286H316.854857c-8.777143%200-14.555429%2012.434286-14.555428%2023.04%200%209.069714%205.339429%2019.456%2011.483428%2022.235428l3.072%200.731429H719.725714c8.777143%200%2016.091429-10.166857%2016.091429-23.113143%200-12.141714-7.314286-22.893714-14.628572-22.893714z%20m0-133.412572H316.854857c-8.777143%200-14.555429%2012.434286-14.555428%2022.966857%200%209.142857%205.339429%2019.529143%2011.483428%2022.308572l3.072%200.731428H719.725714c8.777143%200%2016.091429-10.24%2016.091429-23.113142%200-12.141714-7.314286-22.893714-14.628572-22.893715z%20m-294.4-329.874285C326.948571%20324.388571%20398.994286%20497.371429%20539.794286%20497.371429c40.96%200%2081.92-16.603429%20111.323428-46.592a16.164571%2016.164571%200%200%200%202.779429-19.748572l-2.779429-3.510857-88.429714-91.428571%2088.502857-89.892572a16.237714%2016.237714%200%200%200%200-23.259428%20156.452571%20156.452571%200%200%200-224.402286%200z%20m187.392%201.462857l10.093715%206.875428L532.992%20324.022857a16.676571%2016.676571%200%200%200-2.779429%2020.333714l2.779429%203.657143%2091.282286%2092.745143c-21.942857%2017.115429-50.761143%2027.428571-79.433143%2027.428572-116.589714%200-174.08-142.409143-92.891429-224.841143a131.657143%20131.657143%200%200%201%20162.230857-18.870857z%20m75.264%2018.285714l-3.291428%202.486857-75.849143%2077.092572a14.409143%2014.409143%200%200%200-2.852571%2016.896l2.852571%203.876571L686.08%20420.132571c5.851429%205.924571%2016.091429%205.924571%2021.942857-1.462857a148.772571%20148.772571%200%200%200%200-171.958857%2014.628571%2014.628571%200%200%200-18.651428-3.949714z%20m4.022858%2035.108571c15.579429%2030.354286%2017.334857%2065.316571%205.193142%2096.694858l-5.12%2011.556571-52.662857-53.394286%2052.662857-54.857143zM357.741714%2048.274286v108.982857H259.291429c0-1.974857%200.658286-3.949714%201.462857-5.485714l1.462857-1.974858L348.891429%2051.273143a10.825143%2010.825143%200%200%201%204.388571-2.56l2.925714-0.438857h1.462857z'%20p-id='2117'%3e%3c/path%3e%3c/svg%3e",g3=Object.freeze(Object.defineProperty({__proto__:null,default:p3},Symbol.toStringTag,{value:"Module"})),m3="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1753777796588'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='3658'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='32'%20height='32'%3e%3cpath%20d='M768%20682.666667v-85.333334h42.666667V170.666667H256v428.16c6.954667-0.981333%2014.08-1.493333%2021.333333-1.493334H341.333333v85.333334H277.333333a64%2064%200%200%200%200%20128H426.666667v85.333333H277.333333A149.333333%20149.333333%200%200%201%20128%20746.666667V213.333333a128%20128%200%200%201%20128-128h597.333333a42.666667%2042.666667%200%200%201%2042.666667%2042.666667v725.333333a42.666667%2042.666667%200%200%201-42.666667%2042.666667h-170.666666v-85.333333h128v-128h-42.666667zM298.666667%20213.333333h85.333333v85.333334H298.666667V213.333333z%20m0%20128h85.333333v85.333334H298.666667V341.333333z%20m298.666666%20384v256h-85.333333v-256H384l170.666667-213.333333%20170.666666%20213.333333h-128z'%20fill='%23000000'%20p-id='3659'%3e%3c/path%3e%3c/svg%3e",v3=Object.freeze(Object.defineProperty({__proto__:null,default:m3},Symbol.toStringTag,{value:"Module"})),w3="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1753759785431'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2822'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='32'%20height='32'%3e%3cpath%20d='M959%20830.7V295.2c0-42.9-20.8-62.8-62.5-59.6H544.9c-13.3%200-24.2-3.2-32.6-9.5-9.9-15.8-25.4-35.5-42.5-61.8-18-27.7-35.3-35.8-57.5-35.8H141.1c-51.6%200.2-77.4%2023.4-77.4%2069.4v628.5c0%2052.4%2020.8%2075.5%2062.5%2069.1h778.2c43-0.3%2061.3-21.8%2054.6-64.8zM262.4%20670.1c-17.7%200-32-14.3-32-32s14.3-32%2032-32%2032%2014.3%2032%2032-14.3%2032-32%2032z%20m0-174.4c-17.7%200-32-14.3-32-32s14.3-32%2032-32%2032%2014.3%2032%2032-14.3%2032-32%2032z%20m531.2%20142.4c0%2017.7-14.3%2032-32%2032h-388c-17.7%200-32-14.3-32-32s14.3-32%2032-32h388c17.7%200%2032%2014.3%2032%2032z%20m0-174.6c0%2017.7-14.3%2032-32%2032h-388c-17.7%200-32-14.3-32-32s14.3-32%2032-32h388c17.7%200%2032%2014.3%2032%2032z'%20p-id='2823'%3e%3c/path%3e%3c/svg%3e",x3=Object.freeze(Object.defineProperty({__proto__:null,default:w3},Symbol.toStringTag,{value:"Module"})),b3="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1752023937641'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='1733'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='16'%20height='16'%3e%3cpath%20d='M604.672%20640c-45.568-78.848-129.536-127.488-220.672-128H128c-70.656%200-128%2057.344-128%20128v384h1024v-384h-419.328z'%20p-id='1734'%3e%3c/path%3e%3cpath%20d='M640%20576h256V128c0-70.656-57.344-128-128-128H256C185.344%200%20128%2057.344%20128%20128v320h256c100.864%200%20195.584%2047.616%20256%20128zM352.256%20198.656h320v104.448H352.256V198.656z'%20p-id='1735'%3e%3c/path%3e%3c/svg%3e",y3=Object.freeze(Object.defineProperty({__proto__:null,default:b3},Symbol.toStringTag,{value:"Module"})),k3="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1751524549947'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2910'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='16'%20height='16'%3e%3cpath%20d='M256%20170.496v170.496h512V170.496h85.504c23.552%200%2042.496%2018.944%2042.496%2042.496V896c0%2023.552-18.944%2042.496-42.496%2042.496H170.496c-23.552%200-42.496-18.944-42.496-42.496V212.992c0-23.552%2018.944-42.496%2042.496-42.496H256z%20m256%20513.024H256v83.456h256v-83.456zM768%20491.52H256v83.456h512V491.52zM341.504%2085.504h341.504V256H341.504V85.504z'%20p-id='2911'%3e%3c/path%3e%3c/svg%3e",S3=Object.freeze(Object.defineProperty({__proto__:null,default:k3},Symbol.toStringTag,{value:"Module"})),C3="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1753758992227'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2678'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='32'%20height='32'%3e%3cpath%20d='M733.090909%20744.727273h-442.181818a34.909091%2034.909091%200%201%200%200%2069.818182h442.181818a34.909091%2034.909091%200%201%200%200-69.818182zM440.389818%20238.987636h58.065455c30.254545%200%2051.549091%207.889455%2065.303272%2024.296728%2013.172364%2015.522909%2019.851636%2039.586909%2019.851637%2071.493818%200%2031.069091-7.330909%2054.295273-22.411637%2070.958545-15.150545%2016.686545-37.236364%2024.808727-67.514181%2024.808728h-53.294546v-191.557819z%20m53.294546%20261.376c50.362182%200%2090.461091-16.034909%20119.249454-47.732363%2026.856727-29.696%2040.494545-69.352727%2040.494546-117.853091%200-48.942545-12.264727-88.203636-36.305455-116.48-27.275636-32.605091-67.188364-49.128727-118.667636-49.128727h-90.670546c-20.503273%200-37.213091%2016.709818-37.213091%2037.236363V463.127273c0%2020.526545%2016.709818%2037.236364%2037.213091%2037.236363h85.899637zM733.090909%20605.090909h-442.181818a34.909091%2034.909091%200%201%200%200%2069.818182h442.181818a34.909091%2034.909091%200%201%200%200-69.818182z%20m139.636364%20116.363636a34.909091%2034.909091%200%200%200%2034.909091-34.90909V93.090909a69.818182%2069.818182%200%200%200-69.818182-69.818182H186.181818a69.818182%2069.818182%200%200%200-69.818182%2069.818182v837.818182a69.818182%2069.818182%200%200%200%2069.818182%2069.818182h651.636364a69.818182%2069.818182%200%200%200%2069.818182-69.818182v-81.454546a34.909091%2034.909091%200%201%200-69.818182%200V930.909091H186.181818V93.090909h651.636364v593.454546a34.909091%2034.909091%200%200%200%2034.909091%2034.90909z'%20p-id='2679'%3e%3c/path%3e%3c/svg%3e",_3=Object.freeze(Object.defineProperty({__proto__:null,default:C3},Symbol.toStringTag,{value:"Module"})),O3="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1753759086010'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='3951'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='32'%20height='32'%3e%3cpath%20d='M733.090909%20744.727273h-442.181818a34.909091%2034.909091%200%201%200%200%2069.818182h442.181818a34.909091%2034.909091%200%201%200%200-69.818182M651.636364%20498.618182a34.909091%2034.909091%200%200%200%2034.909091-34.909091V206.824727a53.806545%2053.806545%200%200%200-103.121455-21.550545l-71.144727%20163.002182-71.703273-163.118546a53.829818%2053.829818%200%200%200-49.268364-32.139636h-0.046545A53.806545%2053.806545%200%200%200%20337.454545%20206.824727v256.884364a34.909091%2034.909091%200%201%200%2069.818182%200v-180.782546l73.634909%20165.213091a35.002182%2035.002182%200%200%200%2064.046546-0.256l71.773091-164.375272v180.200727a34.909091%2034.909091%200%200%200%2034.909091%2034.909091M872.727273%20721.454545a34.909091%2034.909091%200%200%200%2034.909091-34.90909V93.090909a69.818182%2069.818182%200%200%200-69.818182-69.818182H186.181818a69.818182%2069.818182%200%200%200-69.818182%2069.818182v837.818182a69.818182%2069.818182%200%200%200%2069.818182%2069.818182h651.636364a69.818182%2069.818182%200%200%200%2069.818182-69.818182v-81.454546a34.909091%2034.909091%200%201%200-69.818182%200V930.909091H186.181818V93.090909h651.636364v593.454546a34.909091%2034.909091%200%200%200%2034.909091%2034.90909m-139.636364-116.363636h-442.181818a34.909091%2034.909091%200%201%200%200%2069.818182h442.181818a34.909091%2034.909091%200%201%200%200-69.818182'%20p-id='3952'%3e%3c/path%3e%3c/svg%3e",M3=Object.freeze(Object.defineProperty({__proto__:null,default:O3},Symbol.toStringTag,{value:"Module"})),D3="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1753759499798'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2663'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='32'%20height='32'%3e%3cpath%20d='M32%20992V640A96%2096%200%200%201%20128%20544h256a221.44%20221.44%200%200%201%20192%20112l9.6%2016h406.4v320z'%20p-id='2664'%3e%3c/path%3e%3cpath%20d='M384%20576a192%20192%200%200%201%20165.12%2096l18.56%2032H960v256H64v-320a64%2064%200%200%201%2064-64h256m0-64H128a128%20128%200%200%200-128%20128v384h1024v-384H604.8A256%20256%200%200%200%20384%20512z'%20p-id='2665'%3e%3c/path%3e%3cpath%20d='M640%20576h256V128a128%20128%200%200%200-128-128H256a128%20128%200%200%200-128%20128v320h256a320%20320%200%200%201%20256%20128zM352%20198.4h320v104.32h-320z'%20p-id='2666'%3e%3c/path%3e%3c/svg%3e",T3=Object.freeze(Object.defineProperty({__proto__:null,default:D3},Symbol.toStringTag,{value:"Module"})),A3="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1752130130786'%20class='icon'%20viewBox='0%200%201131%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2045'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='17.671875'%20height='16'%3e%3cpath%20d='M60.576386%202.134361c8.093301-1.603855%2016.371663-1.184386%2024.563662-1.233734%20289.125783%200%20578.239229%200%20867.365012%200.012337%2011.769831%200.012337%2023.539663%202.825253%2033.989398%208.278361%2019.110554%209.808193%2033.495904%2028.326554%2038.134747%2049.312386%201.961639%208.105639%201.924627%2016.495036%201.838265%2024.785735-20.529349-0.481157-41.071036-0.098699-61.612723-0.222073-274.320964%200.012337-548.654265-0.012337-822.987566%200.024675-20.183904-0.098699-40.12106%208.61147-53.889542%2023.342265-12.70747%2013.435373-20.072867%2031.768675-20.048193%2050.274699-0.012337%20199.556627%200.024675%20399.113253-0.024675%20598.66988-18.629398-1.44347-36.49388-10.375711-48.942265-24.304579C7.612145%20718.564241%200.962313%20702.081542%200%20685.253398V70.569639c0.986988-11.967229%204.404434-23.78641%2010.733494-34.038747C21.479325%2018.703422%2040.047036%205.77388%2060.576386%202.134361z'%20p-id='2046'%3e%3c/path%3e%3cpath%20d='M127.62988%20141.213301c13.583422-13.163952%2032.360867-20.726747%2051.274024-20.628048%20292.814651-0.012337%20585.616964-0.012337%20878.419277%200%2018.308627-0.086361%2036.49388%206.98294%2049.953927%2019.406651%2014.113928%2012.732145%2022.639036%2031.065446%2024.057832%2049.978602v614.844145c-0.900627%2015.471036-6.477108%2030.682988-16.260627%2042.736578-13.484723%2017.025542-34.791325%2027.536964-56.529735%2027.722024-61.588048%200.049349-123.163759%200-184.751807%200.024675-20.776096%2035.889349-41.478169%2071.828048-62.22959%20107.742072-5.699855%209.314699-10.091952%2019.764434-18.506024%2027.068145-12.288%2011.387373-30.201831%2016.174265-46.561157%2012.596433-14.311325-2.960964-27.142169-12.238651-34.482892-24.859759-23.589012-40.848964-47.153349-81.710265-70.767036-122.546891-154.118169-0.012337-308.236337%200.012337-462.354506-0.012338-20.751422%200.135711-41.280771-9.055614-55.06159-24.551325-12.250988-13.521735-19.147566-31.719325-18.962506-49.966265V194.843759c-0.160386-19.998843%208.278361-39.849639%2022.76241-53.630458m213.312771%20283.808386c-26.932434%202.109687-52.224%2018.01253-65.967808%2041.256096-11.535422%2019.024193-15.002217%2042.63788-9.672482%2064.215904%204.416771%2018.283952%2015.17494%2034.914699%2029.918073%2046.573494%2014.484048%2011.572434%2032.854361%2018.185253%2051.397397%2018.469012%2018.000193%200.41947%2036.062072-5.095325%2050.755856-15.495711%2015.026892-10.511422%2026.512964-25.994795%2032.151132-43.452145%205.564145-17.03788%205.564145-35.827663%200.012338-52.865542-5.897253-18.283952-18.209928-34.371855-34.248482-44.907952-15.878169-10.573108-35.371181-15.446361-54.346024-13.793156m270.138602%200c-27.22853%202.146699-52.754506%2018.407325-66.387277%2042.045686-11.819181%2019.974169-14.792482%2044.87094-8.204337%2067.102844%205.35441%2018.543036%2017.309301%2035.038072%2033.125783%2046.042988%2014.780145%2010.375711%2032.916048%2015.816482%2050.96559%2015.31065%2017.03788-0.357783%2033.903036-6.020627%2047.70853-16.001542%2014.656771-10.486747%2025.859084-25.723373%2031.410892-42.872289%205.576482-17.062554%205.576482-35.877012%200.024674-52.939566-5.90959-18.296289-18.24694-34.408867-34.322506-44.944964-15.865831-10.548434-35.346506-15.409349-54.321349-13.743807m270.15094%200.012337c-26.586988%202.109687-51.545446%2017.64241-65.375615%2040.404819-11.041928%2017.77812-15.039229%2039.713928-11.189976%2060.28029%203.627181%2020.122217%2014.891181%2038.702265%2030.929735%2051.360385%2026.179855%2021.306602%2065.30159%2024.501976%2094.590458%207.710843%2018.678747-10.338699%2033.212145-27.931759%2039.726265-48.26371%205.53947-17.025542%205.53947-35.790651-0.012337-52.816193-5.983614-18.567711-18.604723-34.877687-35.025735-45.413783-15.742458-10.227663-34.951711-14.915855-53.642795-13.262651z'%20p-id='2047'%3e%3c/path%3e%3c/svg%3e",B3=Object.freeze(Object.defineProperty({__proto__:null,default:A3},Symbol.toStringTag,{value:"Module"})),P3="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1753759479045'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2341'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='32'%20height='32'%3e%3cpath%20d='M554.41%20897.187c16.52%200%2029.913%2013.39%2029.913%2029.906%200%2016.281-13.013%2029.524-29.207%2029.899l-0.707%200.008H407.145c-16.52%200-29.913-13.39-29.913-29.907%200-16.28%2013.013-29.523%2029.207-29.898l0.706-0.008H554.41z%20m40.268-84.377c16.52%200%2029.913%2013.39%2029.913%2029.907%200%2016.28-13.013%2029.523-29.207%2029.898l-0.706%200.009H365.323c-16.52%200-29.913-13.39-29.913-29.907%200-16.281%2013.013-29.524%2029.207-29.899l0.706-0.008h229.355zM480%2069c189.986%200%20344%20153.982%20344%20343.927%200%20120.12-61.593%20225.858-154.926%20287.365l-2.205%2010.384c-1.519%207.084-3.529%2016.359-6.03%2027.826-5.927%2027.183-29.801%2046.65-57.546%2047.072H356.239c-28.52%200-53.076-20.128-58.666-48.09l-2.757-13.628c-3.321-16.19-5.226-24.448-5.715-24.775C196.791%20637.403%20136%20532.263%20136%20412.927%20136%20222.982%20290.014%2069%20480%2069z%20m-62.585%20133.938C316.255%20221.817%20266.292%20290.58%20260.3%20399.042c-0.911%2016.492%2011.722%2030.6%2028.218%2031.51%2016.495%200.912%2030.606-11.72%2031.517-28.211%204.58-82.907%2036.8-127.25%20108.358-140.605%2016.24-3.031%2026.947-18.65%2023.916-34.887-3.032-16.237-18.654-26.942-34.894-23.911z'%20p-id='2342'%3e%3c/path%3e%3c/svg%3e",E3=Object.freeze(Object.defineProperty({__proto__:null,default:P3},Symbol.toStringTag,{value:"Module"})),V3="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1753766090732'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='3028'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='32'%20height='32'%3e%3cpath%20d='M736%20256H320c-16%200-32%2016-32%2032s16%2032%2032%2032h416c16%200%2032-16%2032-32s-16-32-32-32zM736%20448H320c-16%200-32%2016-32%2032s16%2032%2032%2032h416c16%200%2032-16%2032-32s-16-32-32-32z'%20p-id='3029'%3e%3c/path%3e%3cpath%20d='M192%20160c0-35.2%2028.8-64%2064-64h544c35.2%200%2064%2028.8%2064%2064v512h96V64c0-35.2-28.8-64-64-64H160C124.8%200%2096%2028.8%2096%2064v608h96V160zM992%20672H64c-19.2%200-32%2012.8-32%2032v288c0%2019.2%2012.8%2032%2032%2032h928c19.2%200%2032-12.8%2032-32v-288c0-16-12.8-32-32-32z%20m-320%20224h-288v-96h288v96z'%20p-id='3030'%3e%3c/path%3e%3c/svg%3e",z3=Object.freeze(Object.defineProperty({__proto__:null,default:V3},Symbol.toStringTag,{value:"Module"})),L3="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1752200274113'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='4456'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='16'%20height='16'%3e%3cpath%20d='M751.4%20553.2c-42.5-38.5-92.1-67.1-145.5-84.6%2053.2-38.9%2087.8-101.8%2087.8-172.7C693.7%20178%20597.7%2082%20479.8%2082c-57.1%200-110.8%2022.2-151.2%2062.6C288.2%20185%20266%20238.7%20266%20295.8s22.2%20110.8%2062.6%20151.2c7.8%207.8%2016.2%2015%2025%2021.4-10.5%203.5-20.9%207.3-31.2%2011.7-48.2%2020.4-91.4%2049.5-128.5%2086.7s-66.3%2080.4-86.7%20128.5c-21.1%2049.9-31.8%20102.9-31.8%20157.4%200%2024.8%202.3%2049.7%206.8%2073.9l68.8-12.7c-3.7-20-5.6-40.6-5.6-61.2%200-184.4%20150-334.4%20334.4-334.4%2083.2%200%20163%2030.8%20224.5%2086.6l47.1-51.7zM479.8%20152c79.3%200%20143.9%2064.5%20143.9%20143.9s-64.5%20143.9-143.9%20143.9S336%20375.2%20336%20295.9%20400.5%20152%20479.8%20152zM726.3%20665.3h213.8v70H726.3zM503%20831.6h437.1v70H503z'%20p-id='4457'%3e%3c/path%3e%3c/svg%3e",N3=Object.freeze(Object.defineProperty({__proto__:null,default:L3},Symbol.toStringTag,{value:"Module"})),R3="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1752023723226'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='1733'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='16'%20height='16'%3e%3cpath%20d='M34.816%2080.896v862.208c0%2044.544%2036.352%2080.896%2080.896%2080.896h38.912V0h-38.912C71.168%200%2034.816%2036.352%2034.816%2080.896zM908.288%200H839.68v252.928l-126.976-125.952L586.24%20250.88l-0.512-250.88H244.736v1024h663.552c44.544%200%2080.896-36.352%2080.896-80.896V80.896c0-44.544-36.352-80.896-80.896-80.896z%20m-66.048%20681.472H413.696v-57.856h429.056v57.856z%20m0-115.712H413.696V507.904h429.056v57.856z'%20p-id='1734'%3e%3c/path%3e%3c/svg%3e",I3=Object.freeze(Object.defineProperty({__proto__:null,default:R3},Symbol.toStringTag,{value:"Module"})),H3="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1753777777175'%20class='icon'%20viewBox='0%200%201170%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='3184'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='36.5625'%20height='32'%3e%3cpath%20d='M743.893333%200H45.013333A45.226667%2045.226667%200%200%200%200%2045.013333v805.973334A45.226667%2045.226667%200%200%200%2045.013333%20896h698.88a45.226667%2045.226667%200%200%200%2045.013334-45.013333V45.013333A45.226667%2045.226667%200%200%200%20743.893333%200z%20m-682.666666%2061.653333h666.026666v772.693334H61.866667z'%20p-id='3185'%3e%3c/path%3e%3cpath%20d='M464.64%20279.466667h132.266667a27.946667%2027.946667%200%200%200%2027.946666-27.733334%20160.426667%20160.426667%200%200%200-160.213333-160%2027.306667%2027.306667%200%200%200-19.626667%208.106667%2028.16%2028.16%200%200%200-8.106666%2019.626667v132.266666a27.733333%2027.733333%200%200%200%208.106666%2019.626667%2027.52%2027.52%200%200%200%2019.626667%208.106667z%20m100.906667-55.68h-73.173334V150.826667a105.386667%20105.386667%200%200%201%2073.173334%2072.96zM598.186667%20580.266667H185.173333a30.933333%2030.933333%200%200%200-26.666666%2046.293333%2031.36%2031.36%200%200%200%2026.666666%2015.36h413.013334a30.933333%2030.933333%200%201%200%200-61.653333zM598.186667%20711.893333H185.173333a30.933333%2030.933333%200%200%200-26.666666%2046.293334%2031.36%2031.36%200%200%200%2026.666666%2015.36h413.013334a30.933333%2030.933333%200%201%200%200-61.653334z'%20p-id='3186'%3e%3c/path%3e%3cpath%20d='M375.893333%20533.76a192%20192%200%200%200%20193.28-193.28%2027.733333%2027.733333%200%200%200-27.733333-27.733333h-137.813333V174.933333a27.733333%2027.733333%200%200%200-27.733334-27.733333%20193.28%20193.28%200%201%200%200%20386.56zM347.946667%20205.44v135.04a27.946667%2027.946667%200%200%200%2027.946666%2027.733333h135.04a137.813333%20137.813333%200%201%201-162.986666-162.773333z'%20p-id='3187'%3e%3c/path%3e%3c/svg%3e",$3=Object.freeze(Object.defineProperty({__proto__:null,default:H3},Symbol.toStringTag,{value:"Module"})),W3="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1753766068495'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2552'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='32'%20height='32'%3e%3cpath%20d='M816%20161H208c-44.183%200-80%2035.817-80%2080v542c0%2044.183%2035.817%2080%2080%2080h608c44.183%200%2080-35.817%2080-80V241c0-44.183-35.817-80-80-80zM325.379%20516.243l55.154%2055.154c12.497%2012.497%2012.497%2032.758%200%2045.255s-32.758%2012.497-45.255%200l-59.397-59.396-22.627-22.628c-12.497-12.497-12.497-32.758%200-45.255l22.627-22.627%2059.397-59.397c12.497-12.496%2032.758-12.496%2045.255%200%2012.497%2012.497%2012.497%2032.759%200%2045.255l-55.154%2055.154a6%206%200%200%200%200%208.485z%20m263.065-84.345L492.65%20621.021c-7.986%2015.767-27.24%2022.073-43.006%2014.088s-22.073-27.24-14.087-43.007l95.793-189.123c7.985-15.766%2027.24-22.073%2043.006-14.087%2015.766%207.985%2022.073%2027.24%2014.088%2043.006z%20m182.302%20102.729l-22.627%2022.628-59.397%2059.396c-12.497%2012.497-32.758%2012.497-45.255%200s-12.497-32.758%200-45.255l55.154-55.154a6%206%200%200%200%200-8.485l-55.154-55.154c-12.497-12.496-12.497-32.758%200-45.255%2012.497-12.496%2032.758-12.496%2045.255%200l59.397%2059.397%2022.627%2022.627c12.497%2012.498%2012.497%2032.758%200%2045.255z'%20p-id='2553'%3e%3c/path%3e%3c/svg%3e",F3=Object.freeze(Object.defineProperty({__proto__:null,default:W3},Symbol.toStringTag,{value:"Module"})),G3="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1752200066150'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='1884'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='16'%20height='16'%3e%3cpath%20d='M381.3%2087.3h-238C99.7%2087.3%2064%20123%2064%20166.7v238c0%2043.6%2035.7%2079.3%2079.3%2079.3h238c43.6%200%2079.3-35.7%2079.3-79.3v-238c0.1-43.7-35.6-79.4-79.3-79.4zM381.3%20563.3h-238C99.7%20563.3%2064%20599%2064%20642.7v238c0%2043.6%2035.7%2079.3%2079.3%2079.3h238c43.6%200%2079.3-35.7%2079.3-79.3v-238c0.1-43.7-35.6-79.4-79.3-79.4zM857.3%20563.3h-238c-43.6%200-79.3%2035.7-79.3%2079.3v238c0%2043.6%2035.7%2079.3%2079.3%2079.3h238c43.6%200%2079.3-35.7%2079.3-79.3v-238c0.1-43.6-35.6-79.3-79.3-79.3zM936.8%20229.6L794.4%2087.2c-30.9-30.9-81.3-30.9-112.2%200L539.8%20229.6c-30.9%2030.9-30.9%2081.3%200%20112.2l142.4%20142.4c30.9%2030.9%2081.3%2030.9%20112.2%200l142.4-142.4c30.9-30.9%2030.9-81.4%200-112.2z'%20p-id='1885'%3e%3c/path%3e%3c/svg%3e",j3=Object.freeze(Object.defineProperty({__proto__:null,default:G3},Symbol.toStringTag,{value:"Module"})),q3="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1753766544167'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2552'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='32'%20height='32'%3e%3cpath%20d='M771.584%20590.336c-116.224%200-209.92%2094.208-209.92%20209.92s94.208%20209.92%20209.92%20209.92c116.224%200%20209.92-94.208%20209.92-209.92s-93.696-209.92-209.92-209.92z%20m-122.88%20217.088c0%208.192-6.656%2014.336-14.336%2014.336-8.192%200-14.336-6.656-14.336-14.336%200-55.808%2045.568-101.376%20101.376-101.376h64l-43.52-31.744c-6.656-4.608-7.68-13.824-3.072-19.968%204.608-6.656%2013.824-7.68%2020.48-3.072l66.56%2048.128c14.336%2010.752%2014.336%2032.256%200%2042.496l-66.56%2048.128c-2.56%202.048-5.632%202.56-8.704%202.56-6.144%200-11.776-4.096-13.824-10.24-2.048-6.144%200-12.288%205.12-16.384l43.52-31.744h-64c-40.448%201.024-72.704%2033.28-72.704%2073.216z%20m166.4%2087.04h-64l43.52%2031.744c5.12%203.584%207.168%2010.24%205.12%2016.384-2.048%206.144-7.68%2010.24-13.824%2010.24-3.072%200-6.144-1.024-8.704-2.56l-66.56-48.128c-14.336-10.752-14.336-32.256%200-42.496l66.56-48.128c6.656-4.608%2015.36-3.072%2020.48%203.072%204.608%206.656%203.072%2015.36-3.072%2019.968l-43.52%2031.744h64c39.936%200%2072.192-32.256%2072.192-72.192%200-8.192%206.656-14.336%2014.336-14.336%208.192%200%2014.336%206.656%2014.336%2014.336%200.512%2054.784-45.056%20100.352-100.864%20100.352z'%20p-id='2553'%3e%3c/path%3e%3cpath%20d='M724.48%2013.824H174.08C101.376%2013.824%2042.496%2072.704%2042.496%20145.408v703.488c0%2072.704%2058.88%20132.096%20132.096%20132.096H593.92c-44.032-46.08-71.168-108.032-71.168-176.64%200-140.8%20114.176-254.976%20254.976-254.976%2027.648%200%2054.272%204.608%2079.36%2012.8V145.408c-1.024-72.704-59.904-131.584-132.608-131.584zM414.208%20850.432H260.096c-19.456%200-34.816-15.872-34.816-34.816s15.872-34.816%2034.816-34.816h154.112c19.456%200%2034.816%2015.872%2034.816%2034.816s-15.36%2034.816-34.816%2034.816z%20m0-153.088H260.096c-19.456%200-34.816-15.872-34.816-34.816%200-19.456%2015.872-34.816%2034.816-34.816h154.112c19.456%200%2034.816%2015.872%2034.816%2034.816%200%2018.944-15.36%2034.816-34.816%2034.816zM624.64%20324.608c-23.04%2022.528-46.592%2045.056-69.632%2068.096%205.12%2029.184%2010.24%2058.368%2014.848%2087.552%201.536%207.68%203.072%2015.872-0.512%2023.04-5.632%2012.288-21.504%2017.408-33.28%2011.776-28.672-15.36-57.856-30.208-86.528-45.568-28.672%2014.848-57.344%2030.208-86.016%2045.056-8.192%204.096-18.432%203.584-25.6-1.536-7.68-5.632-12.288-15.36-10.24-25.088%205.632-31.744%2010.752-63.488%2016.384-95.232-20.992-20.992-42.496-41.472-64-62.464-3.584-3.584-8.192-7.168-10.24-11.776-4.096-8.192-3.584-18.432%202.048-25.6%204.096-5.632%2010.24-9.216%2016.896-10.24L384%20268.8c14.336-29.184%2028.672-58.368%2043.52-87.552%203.584-6.656%2010.24-11.776%2017.92-12.8%207.68-1.536%2016.384%201.536%2021.504%207.168%203.072%203.072%205.12%207.168%206.656%2011.264%2013.312%2027.136%2026.624%2053.76%2039.936%2080.896%200.512%201.536%202.56%201.024%203.584%201.536l93.696%2013.824c11.776%201.536%2021.504%2012.8%2020.992%2025.088-0.512%205.632-3.072%2011.776-7.168%2016.384z'%20p-id='2554'%3e%3c/path%3e%3c/svg%3e",U3=Object.freeze(Object.defineProperty({__proto__:null,default:q3},Symbol.toStringTag,{value:"Module"})),Y3="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1753766865378'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='11941'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='32'%20height='32'%3e%3cpath%20d='M853.339798%208.145455h-682.666667A72.04202%2072.04202%200%200%200%2098.682828%2080.161616v863.676768a72.04202%2072.04202%200%200%200%2071.977374%2072.016161h682.666667a72.04202%2072.04202%200%200%200%2071.990303-72.016161V80.161616a72.04202%2072.04202%200%200%200-71.977374-72.016161zM777.470707%2080.161616h39.925657a35.956364%2035.956364%200%200%201%2035.995151%2035.995152v791.725252A35.956364%2035.956364%200%200%201%20817.344646%20943.838384H206.655354a35.956364%2035.956364%200%200%201-35.995152-35.995152V116.11798A35.956364%2035.956364%200%200%201%20206.655354%2080.161616h426.808888m219.875556%20827.720404'%20p-id='11942'%3e%3c/path%3e%3cpath%20d='M727.369697%20655.954747h-431.838384a35.995152%2035.995152%200%201%200%200%2071.977374h431.838384a35.995152%2035.995152%200%201%200%200-71.977374z%20m0-215.919191h-431.838384a35.982222%2035.982222%200%201%200%200%2071.977373h431.838384a35.982222%2035.982222%200%201%200%200-71.977373zM295.505455%20296.080808h215.919191a35.982222%2035.982222%200%200%200%200-71.977374h-215.919191a35.982222%2035.982222%200%201%200%200%2071.977374z%20m0%200M639.709091%20222.926869l2.029899-5.288081%2019.083636-48.536566c4.473535-11.468283%2016.252121-18.967273%2029.659798-18.967273a31.030303%2031.030303%200%200%201%2029.246061%2019.39394L738.010505%20218.505051l2.029899%205.30101%209.748687%200.439596%2012.192323%200.439596%200.814546-145.583839a10.343434%2010.343434%200%200%200-3.65899-7.990303%2012.101818%2012.101818%200%200%200-8.533334-3.090101L630.774949%2067.232323c-6.464646%200-12.179394%204.861414-12.179393%2011.028687l-0.814546%20145.596768h12.179394z'%20p-id='11943'%3e%3c/path%3e%3cpath%20d='M789.999192%20245.010101l-36.964849-0.814545-10.96404-0.400809-10.96404-0.413737-9.347879-0.400808h-4.460606l-22.742626-63.353535a6.606869%206.606869%200%200%200-12.192324%200l-21.979798%2057.263838-2.430707%206.089697h-35.710707l-36.964848%200.400808a6.244848%206.244848%200%200%200-6.089697%204.059798%205.973333%205.973333%200%200%200%202.430707%206.904243l57.276767%2041.024646-21.527272%2064.18101a5.986263%205.986263%200%200%200%202.430707%206.904242%203.090101%203.090101%200%200%200%202.029899%200.814546h4.059798a2.107475%202.107475%200%200%200%201.629091-0.814546l59.707474-38.180202%2059.306667%2038.994748a6.529293%206.529293%200%200%200%203.65899%201.215353%207.757576%207.757576%200%200%200%204.059798-1.215353%205.805253%205.805253%200%200%200%202.430707-6.904242l-20.686869-64.646465%2058.078384-40.210101a6.606869%206.606869%200%200%200%202.430707-6.904243%2010.252929%2010.252929%200%200%200-6.464646-3.658989z%20m0%200'%20p-id='11944'%3e%3c/path%3e%3c/svg%3e",K3=Object.freeze(Object.defineProperty({__proto__:null,default:Y3},Symbol.toStringTag,{value:"Module"})),X3="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1752024794809'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='1891'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='16'%20height='16'%3e%3cpath%20d='M730.2%2045.8H72c-41.1%200-72%2030.9-72%2072v776.5c0%2041.1%2030.9%2077.2%2072%2077.2h447.3c-10.3-15.5-20.6-41.1-20.6-61.7v-41.1c0-61.7%2051.4-118.2%20118.2-118.2h10.3l46.2-56.5c-15.5-15.5-30.9-35.9-35.9-61.7C606.6%20550%20653%20457.5%20740.3%20431.7c15.5-5.2%2035.9-10.3%2051.4-10.3h15.5V112.6c0-36-35.9-66.8-77-66.8zM179.9%20236H365c20.6%200%2035.9%2015.5%2035.9%2035.9%200%2020.6-15.5%2035.9-35.9%2035.9H179.9c-20.6%200-35.9-15.5-35.9-35.9-0.1-20.4%2015.3-35.9%2035.9-35.9z%20m298.2%20498.8H179.9c-20.6%200-35.9-15.5-35.9-35.9%200-20.6%2015.5-35.9%2035.9-35.9h303.3c20.6%200%2035.9%2015.5%2035.9%2035.9-4.9%2015.4-20.4%2035.9-41%2035.9z%20m56.7-215.9H179.9c-20.6%200-35.9-15.5-35.9-35.9%200-20.6%2015.5-35.9%2035.9-35.9h354.9c20.6%200%2035.9%2015.5%2035.9%2035.9s-15.4%2035.9-35.9%2035.9z'%20p-id='1892'%3e%3c/path%3e%3cpath%20d='M966.7%20806.8h-41.1L822.8%20688.5c56.5-20.6%2087.5-77.2%2066.9-133.7-15.5-46.2-56.5-72-102.8-72-10.3%200-20.6%200-35.9%205.2-56.5%2020.6-87.5%2077.2-66.9%20133.7%2010.3%2030.9%2035.9%2056.5%2066.9%2066.9L648.1%20806.8h-30.9c-35.9%200-61.7%2025.8-61.7%2061.7v35.9c0%2035.9%2030.9%2061.7%2061.7%2061.7h344.6c35.9%200%2061.7-25.8%2061.7-61.7v-35.9c4.9-30.8-25.9-61.7-56.8-61.7z'%20p-id='1893'%3e%3c/path%3e%3c/svg%3e",Q3=Object.freeze(Object.defineProperty({__proto__:null,default:X3},Symbol.toStringTag,{value:"Module"})),J3="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1752200287229'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='4780'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='16'%20height='16'%3e%3cpath%20d='M878.4%20243.5h-91.2v-41.2c0-58.6-47.7-106.2-106.2-106.2H354.2c-58.6%200-106.2%2047.7-106.2%20106.2v41.2h-91.2c-43.2%200-78.4%2035.1-78.4%2078.4V856c0%2043.2%2035.1%2078.4%2078.4%2078.4h721.5c43.2%200%2078.4-35.1%2078.4-78.4V321.8c0-43.2-35.1-78.3-78.3-78.3zM318%20202.3c0-20%2016.2-36.2%2036.2-36.2H681c20%200%2036.2%2016.3%2036.2%2036.2v41.2H318v-41.2zM156.8%20313.5h721.5c4.6%200%208.4%203.7%208.4%208.4V554H692.4c-14.8-45.3-57.4-78.2-107.6-78.2H450.4c-50.2%200-92.9%2032.9-107.6%2078.2H148.5V321.8c0-4.6%203.7-8.3%208.3-8.3zM628%20588.9c0%2023.8-19.4%2043.2-43.2%2043.2H450.4c-23.8%200-43.2-19.4-43.2-43.2%200-23.8%2019.4-43.2%2043.2-43.2h134.3c23.9%200%2043.3%2019.4%2043.3%2043.2z%20m250.4%20275.5H156.8c-4.6%200-8.4-3.7-8.4-8.4V623.9h194.3c14.8%2045.3%2057.4%2078.2%20107.6%2078.2h134.3c50.2%200%2092.9-32.9%20107.6-78.2h194.3V856c0.2%204.6-3.5%208.4-8.1%208.4z'%20p-id='4781'%3e%3c/path%3e%3c/svg%3e",Z3=Object.freeze(Object.defineProperty({__proto__:null,default:J3},Symbol.toStringTag,{value:"Module"})),eu="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1752200301883'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='5102'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='16'%20height='16'%3e%3cpath%20d='M414.2%2078H158.6c-41.5%200-75.3%2033.8-75.3%2075.3v255.5c0%2041.5%2033.8%2075.3%2075.3%2075.3h255.5c41.5%200%2075.3-33.8%2075.3-75.3V153.3c0-41.5-33.7-75.3-75.2-75.3z%20m5.2%20330.8c0%202.9-2.4%205.3-5.3%205.3H158.6c-2.9%200-5.3-2.4-5.3-5.3V153.3c0-2.9%202.4-5.3%205.3-5.3h255.5c2.9%200%205.3%202.4%205.3%205.3v255.5zM414.2%20544.8H158.6c-41.5%200-75.3%2033.8-75.3%2075.3v255.5c0%2041.5%2033.8%2075.3%2075.3%2075.3h255.5c41.5%200%2075.3-33.8%2075.3-75.3V620.1c0-41.5-33.7-75.3-75.2-75.3z%20m5.2%20330.8c0%202.9-2.4%205.3-5.3%205.3H158.6c-2.9%200-5.3-2.4-5.3-5.3V620.1c0-2.9%202.4-5.3%205.3-5.3h255.5c2.9%200%205.3%202.4%205.3%205.3v255.5zM908.8%20119.3H607.2c-19.3%200-35%2015.7-35%2035s15.7%2035%2035%2035h301.6c19.3%200%2035-15.7%2035-35s-15.7-35-35-35zM908.8%20343.8H607.2c-19.3%200-35%2015.7-35%2035s15.7%2035%2035%2035h301.6c19.3%200%2035-15.7%2035-35s-15.7-35-35-35zM908.8%20568.3H607.2c-19.3%200-35%2015.7-35%2035s15.7%2035%2035%2035h301.6c19.3%200%2035-15.7%2035-35s-15.7-35-35-35zM908.8%20792.8H607.2c-19.3%200-35%2015.7-35%2035s15.7%2035%2035%2035h301.6c19.3%200%2035-15.7%2035-35s-15.7-35-35-35z'%20p-id='5103'%3e%3c/path%3e%3c/svg%3e",tu=Object.freeze(Object.defineProperty({__proto__:null,default:eu},Symbol.toStringTag,{value:"Module"})),iu="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1753759305280'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2311'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='32'%20height='32'%3e%3cpath%20d='M919.3%20526.2l-174-68.2c-42.7-16.7-88.8%2014.7-88.8%2060.5v343c0%2035.9%2029.1%2065%2065%2065h174c35.9%200%2065-29.1%2065-65V586.7c0.1-26.7-16.3-50.8-41.2-60.5zM488.5%20115.1L108.3%20252.4c-25.8%209.3-42.9%2033.8-42.9%2061.2v547.9c0%2035.9%2029.1%2065%2065%2065h380.2c35.9%200%2065-29.1%2065-65V176.3c0-45.1-44.7-76.5-87.1-61.2z%20m-53.9%20573.2H197.3c-23.9%200-43.4-19.4-43.4-43.4%200-23.9%2019.4-43.4%2043.4-43.4h237.3c23.9%200%2043.4%2019.4%2043.4%2043.4s-19.4%2043.4-43.4%2043.4z%20m0-177.1H197.3c-23.9%200-43.4-19.4-43.4-43.4%200-23.9%2019.4-43.4%2043.4-43.4h237.3c23.9%200%2043.4%2019.4%2043.4%2043.4s-19.4%2043.4-43.4%2043.4z'%20p-id='2312'%3e%3c/path%3e%3c/svg%3e",nu=Object.freeze(Object.defineProperty({__proto__:null,default:iu},Symbol.toStringTag,{value:"Module"})),su="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1753759035832'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='3636'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='32'%20height='32'%3e%3cpath%20d='M512%20446c0%2017.6-14.4%2032-32%2032H288c-17.6%200-32-14.4-32-32s14.4-32%2032-32h192c17.6%200%2032%2014.4%2032%2032z%20m223.9-66c-8.2%200-16.5%203.1-22.7%209.3l-45.6%2045.3-22.7-22.6c-6.2-6.2-14.5-9.3-22.7-9.3s-16.5%203.1-22.7%209.3c-12.5%2012.4-12.5%2032.8%200%2045.3l45.6%2045.3c6.2%206.2%2014.5%209.3%2022.7%209.3s16.5-3.1%2022.7-9.3l68.3-68c12.5-12.4%2012.5-32.8%200-45.3-6.4-6.2-14.6-9.3-22.9-9.3zM480%20638H288c-17.6%200-32%2014.4-32%2032s14.4%2032%2032%2032h192c17.6%200%2032-14.4%2032-32s-14.4-32-32-32z%20m255.9-34c-8.2%200-16.5%203.1-22.7%209.3l-45.6%2045.3-22.7-22.6c-6.2-6.2-14.5-9.3-22.7-9.3s-16.5%203.1-22.7%209.3c-12.5%2012.4-12.5%2032.8%200%2045.3l45.6%2045.3c6.2%206.2%2014.5%209.3%2022.7%209.3s16.5-3.1%2022.7-9.3l68.3-68c12.5-12.4%2012.5-32.8%200-45.3-6.4-6.2-14.6-9.3-22.9-9.3zM888%20192v704c0%2035.2-28.8%2064-64%2064H200c-35.2%200-64-28.8-64-64V192c0-35.2%2028.8-64%2064-64h136c0-35.2%2028.8-64%2064-64h224c35.2%200%2064%2028.8%2064%2064h136c35.2%200%2064%2028.8%2064%2064z%20m-488-0.1l0.1%200.1h223.8l0.1-0.1v-63.8l-0.1-0.1H400.1l-0.1%200.1v63.8z%20m424%200.2l-0.1-0.1H688c0%2035.2-28.8%2064-64%2064H400c-35.2%200-64-28.8-64-64H200.1l-0.1%200.1v703.8l0.1%200.1h623.8l0.1-0.1V192.1z'%20p-id='3637'%3e%3c/path%3e%3c/svg%3e",ou=Object.freeze(Object.defineProperty({__proto__:null,default:su},Symbol.toStringTag,{value:"Module"})),ru="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1752200293861'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='4941'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='16'%20height='16'%3e%3cpath%20d='M874.9%20577.3c-26.1-27.2-56.8-48.9-90.3-64.1%205.4-4.6%2010.6-9.6%2015.5-14.8%2032.3-34.7%2050.1-79.8%2050.1-127.2%200-102.9-83.7-186.7-186.7-186.7-11%200-21.8%200.9-32.5%202.8-7.1-9.6-14.9-18.7-23.4-27.2-44.6-44.6-103.9-69.2-167-69.2s-122.4%2024.6-167%2069.2-69.2%20103.9-69.2%20167%2024.6%20122.4%2069.2%20167c10.8%2010.8%2022.4%2020.4%2034.8%2028.7-4.9%201.8-9.7%203.8-14.5%205.8-44.9%2019-85.2%2046.2-119.9%2080.8-34.6%2034.6-61.8%2075-80.8%20119.9-19.7%2046.5-29.6%2095.9-29.6%20146.8%200%2017.7%201.2%2035.5%203.7%2052.9l69.3-9.7c-2-14.2-3-28.7-3-43.1%200-169.4%20137.8-307.1%20307.1-307.1s307.1%20137.8%20307.1%20307.1c0%2014.4-1%2028.9-3%2043.1l69.3%209.7c2.4-17.4%203.7-35.2%203.7-52.9%200-50.9-10-100.3-29.6-146.8-19-44.9-46.2-85.2-80.8-119.9-34.6-34.6-74.9-61.8-119.9-80.8-4.8-2-9.7-4-14.6-5.8%2012.3-8.4%2024-18%2034.8-28.7%2044.6-44.6%2069.2-103.9%2069.2-167%200-25-3.9-49.4-11.3-72.6%2063.4%201.1%20114.7%2053%20114.7%20116.6%200%2045.5-26.6%2085.6-65.3%20104.7-16.3%208.1-26.8%2024.4-26.8%2042.6v1c0%2021.2%2014.1%2040%2034.6%2045.5%2094.9%2025.8%20163.8%20112.4%20163.8%20215%200%2010.5-0.7%2021-2.2%2031.3l69.3%209.7c1.9-13.5%202.9-27.3%202.9-41-0.1-75.8-29.1-147.8-81.7-202.6z%20m-434.3-84c-91.6%200-166.2-74.6-166.2-166.2S349%20160.9%20440.6%20160.9s166.2%2074.6%20166.2%20166.2-74.5%20166.2-166.2%20166.2z'%20p-id='4942'%3e%3c/path%3e%3c/svg%3e",lu=Object.freeze(Object.defineProperty({__proto__:null,default:ru},Symbol.toStringTag,{value:"Module"})),au="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1753759042395'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='3793'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='32'%20height='32'%3e%3cpath%20d='M751.104%20402.432H272.896a33.6896%2033.6896%200%200%201%200-67.3792h478.208a33.6896%2033.6896%200%201%201%200%2067.3792m0%20192.7168H272.896a33.7408%2033.7408%200%200%201%200-67.4304h478.208a33.7408%2033.7408%200%200%201%200%2067.4304m0%20192.6144H272.896a33.6896%2033.6896%200%201%201%200-67.3792h478.208a33.7408%2033.7408%200%201%201%200%2067.4304M621.6192%2075.3152H402.3296a33.6896%2033.6896%200%201%201%200-67.3792h219.2896a33.6896%2033.6896%200%200%201%200%2067.3792'%20p-id='3794'%3e%3c/path%3e%3cpath%20d='M169.2672%2070.912a37.9392%2037.9392%200%200%200-37.888%2037.8368v806.5024a37.888%2037.888%200%200%200%2037.888%2037.888h685.4656a37.888%2037.888%200%200%200%2037.8368-37.888V108.7488a37.9392%2037.9392%200%200%200-37.8368-37.8368h-72.704a128%20128%200%200%201-127.1296%20116.0192H369.1008a127.6928%20127.6928%200%200%201-127.1808-116.0192z%20m685.4656%20949.6576H169.2672a105.3696%20105.3696%200%200%201-105.2672-105.3184V108.7488A105.3696%20105.3696%200%200%201%20169.2672%203.4304h139.52v55.9104a60.2112%2060.2112%200%200%200%2060.3136%2060.16h285.7984a60.1088%2060.1088%200%200%200%2060.2112-60.16V3.4304h139.52a105.4208%20105.4208%200%200%201%20105.3696%20105.3184v806.5024a105.3184%20105.3184%200%200%201-105.2672%20105.3184z'%20p-id='3795'%3e%3c/path%3e%3c/svg%3e",cu=Object.freeze(Object.defineProperty({__proto__:null,default:au},Symbol.toStringTag,{value:"Module"})),hu="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1751524561033'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='3065'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='16'%20height='16'%3e%3cpath%20d='M960%20491.52v380.416c0%2026.112-23.04%2047.616-52.224%2047.616H116.224c-29.184%200-52.224-21.504-52.224-47.616V491.52c0-26.112%2023.04-47.616%2052.224-47.616h791.552c28.672%200%2052.224%2021.504%2052.224%2047.616z%20m-149.504%20156.16H213.504V783.36h596.992v-135.68z%20m149.504-500.736v186.88c0%2023.04-20.992%2042.496-46.592%2042.496H110.592c-25.6%200-46.592-18.944-46.592-42.496V146.944c0-23.04%2020.992-42.496%2046.592-42.496h802.304c26.112%200%2047.104%2018.944%2047.104%2042.496z%20m-671.744%2025.6c-41.472%200-74.752%2030.208-74.752%2068.096s33.792%2068.096%2074.752%2068.096S363.008%20278.528%20363.008%20240.64s-33.792-68.096-74.752-68.096z%20m224.256%200c-41.472%200-74.752%2030.208-74.752%2068.096s33.792%2068.096%2074.752%2068.096%2074.752-30.208%2074.752-68.096-33.792-68.096-74.752-68.096z'%20p-id='3066'%3e%3c/path%3e%3c/svg%3e",uu=Object.freeze(Object.defineProperty({__proto__:null,default:hu},Symbol.toStringTag,{value:"Module"})),fu="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1753855001552'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2987'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='32'%20height='32'%3e%3cpath%20d='M599.445496%20583.730177A44.076284%2044.076284%200%200%200%20568.283207%20508.598529H232.067891a44.052523%2044.052523%200%200%200%200%2088.105045h336.215316a43.862436%2043.862436%200%200%200%2031.162289-12.973397zM436.707779%20672.963861H232.067891a44.052523%2044.052523%200%200%200%200.059402%2088.105045h204.746811a44.123805%2044.123805%200%200%200%2043.95748-44.111924%2044.088164%2044.088164%200%200%200-44.040642-43.95748zM599.338573%20368.041518A43.696111%2043.696111%200%200%200%20568.283207%20355.198805H232.067891a44.040642%2044.040642%200%200%200%200%2088.081285h336.215316a44.064403%2044.064403%200%200%200%2031.055366-75.238572zM960.55025%20696.890986a19.662062%2019.662062%200%200%201-18.794792-20.19668%2022.168826%2022.168826%200%200%201%202.447362-8.708333A35.272907%2035.272907%200%200%200%20930.635404%20620.856427l-79.277909-45.858343a35.189744%2035.189744%200%200%200-47.676044%2012.165529%2019.341291%2019.341291%200%200%201-16.561278%209.231071%2019.733344%2019.733344%200%200%201-16.513756-9.183549%2035.165984%2035.165984%200%200%200-47.878011-12.17741l-79.01654%2045.620735a34.655126%2034.655126%200%200%200-13.412971%2013.412972%2035.011538%2035.011538%200%200%200%200%2034.17991%2019.353171%2019.353171%200%200%201-0.332651%2019.115564%2019.00864%2019.00864%200%200%201-16.014779%209.611243%2035.154103%2035.154103%200%200%200-33.882901%2035.320429v91.21771c0.106924%205.9402%201.627615%2011.785357%205.488745%2018.771032a35.890688%2035.890688%200%200%200%2028.394156%2016.775125A19.448215%2019.448215%200%200%201%20632.437367%20879.71846a16.715723%2016.715723%200%200%201-2.114711%207.841064%2035.546156%2035.546156%200%200%200%2013.793144%2046.511765l79.491755%2045.775181a35.6412%2035.6412%200%200%200%2047.402796-11.345782c7.282685-11.191337%2025.530979-11.131935%2032.69486%200a35.177864%2035.177864%200%200%200%2029.701%2016.181105h0.368292a34.631366%2034.631366%200%200%200%2016.347431-4.122499l79.598679-45.882104a35.154103%2035.154103%200%200%200%2013.98323-46.808776%2018.937357%2018.937357%200%200%201-2.114711-7.983628%2019.448215%2019.448215%200%200%201%2018.521544-20.315484%2036.128296%2036.128296%200%200%200%2034.310595-35.914449v-91.479079a35.522396%2035.522396%200%200%200-33.871021-35.284788z%20m-89.102999%20189.480498l-32.623578%2018.901716a89.970268%2089.970268%200%200%200-103.359479%200l-32.362209-18.735391a90.457365%2090.457365%200%200%200-52.345042-90.065311v-37.13813a90.980102%2090.980102%200%200%200%2052.178717-91.253351l31.447418-18.272055a91.21771%2091.21771%200%200%200%20105.664277%200l31.435538%2018.272055a91.003863%2091.003863%200%200%200%2052.273759%2091.384035v37.007446a89.863345%2089.863345%200%200%200-52.321281%2089.839584z'%20p-id='2988'%3e%3c/path%3e%3cpath%20d='M787.060771%20679.806971a97.645007%2097.645007%200%201%200%2097.680648%2097.633126%2097.75193%2097.75193%200%200%200-97.680648-97.633126z%20m33.716575%2097.633126a33.692814%2033.692814%200%201%201-33.716575-33.669053%2033.704694%2033.704694%200%200%201%2033.716575%2033.669053z'%20p-id='2989'%3e%3c/path%3e%3cpath%20d='M606.39553%20935.924632H116.447839V174.153392h159.423086v45.858343A44.123805%2044.123805%200%200%200%20319.98285%20264.088019h0.225728a44.064403%2044.064403%200%200%200%2043.814914-43.95748V174.153392H473.240008v45.858343a44.100044%2044.100044%200%200%200%2043.95748%2044.076284h0.059402a44.230729%2044.230729%200%200%200%2043.957479-43.95748V174.153392h182.673029v340.884313a44.135686%2044.135686%200%200%200%2044.040642%2043.95748h0.142565a44.147566%2044.147566%200%200%200%2043.95748-44.100044V130.195912a44.100044%2044.100044%200%200%200-44.040643-44.064403H561.273771V44.763957a44.040642%2044.040642%200%201%200-88.069404%200v41.403193h-109.204635V44.763957a44.064403%2044.064403%200%201%200-88.128807%200v41.403193H72.953695A44.111925%2044.111925%200%200%200%2028.913053%20130.195912v849.543635a44.111925%2044.111925%200%200%200%2044.040642%2044.040642h497.064051l-0.320771%200.213847h36.698555a44.040642%2044.040642%200%201%200%200-88.069404z'%20p-id='2990'%3e%3c/path%3e%3c/svg%3e",du=Object.freeze(Object.defineProperty({__proto__:null,default:fu},Symbol.toStringTag,{value:"Module"})),pu="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1752025057554'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2273'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='16'%20height='16'%3e%3cpath%20d='M768%20544c105.6%200%20192%2086.4%20192%20192%200%20106.24-85.76%20192-192%20192s-192-85.76-192-192%2085.76-192%20192-192z%20m12.8-454.4a32%2032%200%200%201%2032%2032v362.368A255.744%20255.744%200%200%200%20530.56%20640H192a32%2032%200%200%200-5.76%2063.488L192%20704h321.92a255.104%20255.104%200%200%200%2065.024%20204.864L128.064%20908.8a32%2032%200%200%201-32-32V121.6a32%2032%200%200%201%2032-32h652.8z%20m62.72%20562.752l-4.352%203.712-100.992%20103.872-36.288-39.296-4.288-3.84a32%2032%200%200%200-46.208%2042.752l3.52%204.608%2059.264%2064%204.48%203.968a32%2032%200%200%200%2037.376%200.448l4.544-3.84%20124.48-128%203.648-4.48a32%2032%200%200%200-45.12-43.904zM384%20768H192a32%2032%200%200%200-5.76%2063.488L192%20832h192a32%2032%200%201%200%200-64z%20m76.8-384a89.6%2089.6%200%201%200%200%20179.2%2089.6%2089.6%200%200%200%200-179.2z%20m3.392-251.584a32%2032%200%200%200-43.776%2011.392l-217.6%20371.2-2.496%205.248a32%2032%200%200%200%2057.664%2027.136l217.6-371.2%202.496-5.248a32%2032%200%200%200-13.888-38.528zM460.8%20448a25.6%2025.6%200%201%201%200%2051.2%2025.6%2025.6%200%200%201%200-51.2zM230.4%20128a89.6%2089.6%200%201%200%200%20179.2%2089.6%2089.6%200%200%200%200-179.2z%20m0%2064a25.6%2025.6%200%201%201%200%2051.2%2025.6%2025.6%200%200%201%200-51.2z'%20p-id='2274'%3e%3c/path%3e%3c/svg%3e",gu=Object.freeze(Object.defineProperty({__proto__:null,default:pu},Symbol.toStringTag,{value:"Module"})),mu="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1752024911338'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='1794'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='16'%20height='16'%3e%3cpath%20d='M588.8%20532.3c-9.3-35.1-40.9-61-78.9-61-37.5%200-68.7%2025.3-78.5%2059.7-35.1%209.3-61%2040.9-61%2078.9%200%2037.5%2025.3%2068.7%2059.7%2078.5%209.3%2035.1%2040.9%2061%2078.9%2061%2037.5%200%2068.7-25.3%2078.5-59.7%2035-9.3%2061-40.9%2061-78.9%200-37.5-25.3-68.7-59.7-78.5zM624.4%20777.8H405.6c-8.1%200-14.7%206.3-14.7%2014l-6%20136.5c0%207.7%206.6%2014%2014.7%2014h29.9c8%200%2014.5-6%2014.7-13.6%200.8-29.4%2014.7-96%2069-96.4%2057.3-0.4%2071.5%2066.9%2072.3%2096.4%200.2%207.6%206.7%2013.6%2014.7%2013.6h30.2c8.2%200%2014.8-6.3%2014.7-14l-6-136.5c0-7.7-6.6-14-14.7-14z'%20fill='%23020202'%20p-id='1795'%3e%3c/path%3e%3cpath%20d='M797.5%2080H231.7c-68.5%200-124%2055.5-124%20124v454.5c0%2066.3%2053.7%20120%20120%20120h116.5c12.5%200%2022.6-10.1%2022.6-22.6v-27.2s-0.4-18.8-3.8-31.4c-1.2-4.2-3.6-8-6.9-10.8-23.6-20.7-38.6-50.9-38.6-84.8%200-48.9%2031.1-90.3%2074.5-106.2%206.2-2.3%2011-7%2013.4-13.2%2016.4-42.4%2057.2-72.7%20105.4-72.7%2048.9%200%2090.3%2031.1%20106.2%2074.5%202.3%206.2%207%2011%2013.2%2013.4%2042.4%2016.4%2072.7%2057.2%2072.7%20105.4%200%2035.1-16%2066.2-41%2086.9-1%200.8%201.1%2032.7%201.5%2038%200%200.5%200.1%201%200.1%201.5v26.4c0%2012.5%2010.1%2022.6%2022.6%2022.6h115.4c66.3%200%20120-53.7%20120-120V204c0-68.5-55.5-124-124-124z%20m-74.4%20246.5c0%2020.6-16.9%2037.5-37.5%2037.5h-342c-20.6%200-37.5-16.9-37.5-37.5S323%20289%20343.6%20289h342c20.6%200%2037.5%2016.9%2037.5%2037.5z%20m0-124c0%2020.6-16.9%2037.5-37.5%2037.5h-342c-20.6%200-37.5-16.9-37.5-37.5S323%20165%20343.6%20165h342c20.6%200%2037.5%2016.9%2037.5%2037.5z'%20fill='%23020202'%20p-id='1796'%3e%3c/path%3e%3c/svg%3e",vu=Object.freeze(Object.defineProperty({__proto__:null,default:mu},Symbol.toStringTag,{value:"Module"})),wu="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://%20www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1753759802627'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='3075'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='32'%20height='32'%3e%3cpath%20d='M538.229%20225.071l322.441%200.03c46.887%200%2081.569%2034.381%2084.651%2082.355v487.122c0%2046.889-37.765%2086.494-84.651%2086.494H163.763c-46.887%200-84.651-38.579-84.651-86.494V225.102c0-46.887%2037.765-86.494%2084.651-86.494h208.153c81.632-0.001%2081.632%2086.494%20166.313%2086.463z%20m113.199%20377.577h-15.469c-17.098%200-30.935%2013.837-30.935%2030.936v92.809c0%2017.1%2013.837%2030.936%2030.935%2030.936h92.81c17.098%200%2030.938-13.836%2030.938-30.936v-92.809c0-17.099-13.84-30.936-30.938-30.936H713.3v-61.872c0-17.1-13.837-30.936-30.935-30.936H527.684v-30.936h15.469c17.098%200%2030.935-13.836%2030.935-30.936v-92.81c0-17.098-13.837-30.936-30.935-30.936h-92.81c-17.098%200-30.934%2013.838-30.934%2030.936v92.81c0%2017.1%2013.836%2030.936%2030.934%2030.936h15.469v30.936H342.068c-17.098%200-30.938%2013.836-30.938%2030.936v61.872h-15.466c-17.101%200-30.938%2013.837-30.938%2030.936v92.809c0%2017.1%2013.836%2030.936%2030.938%2030.936h92.807c17.101%200%2030.938-13.836%2030.938-30.936v-92.809c0-17.099-13.837-30.936-30.938-30.936h-15.466v-30.936h278.423v30.936z'%20p-id='3076'%3e%3c/path%3e%3c/svg%3e",xu=Object.freeze(Object.defineProperty({__proto__:null,default:wu},Symbol.toStringTag,{value:"Module"})),bu="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1752200280399'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='4617'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='16'%20height='16'%3e%3cpath%20d='M322.5%2062h384.6v70H322.5z'%20p-id='4618'%3e%3c/path%3e%3cpath%20d='M870.2%2062h-59.3v70h59.3c7.2%200%2013%205.8%2013%2013v733.9c0%207.2-5.8%2013-13%2013h-720c-7.2%200-13-5.8-13-13V145c0-7.2%205.8-13%2013-13h68.6V62h-68.6c-45.8%200-83%2037.2-83%2083v733.9c0%2045.8%2037.2%2083%2083%2083h720c45.8%200%2083-37.2%2083-83V145c0-45.8-37.3-83-83-83z'%20p-id='4619'%3e%3c/path%3e%3cpath%20d='M295%20806.2c-0.5-5.7-0.7-11.6-0.7-17.3%200-119%2096.8-215.8%20215.8-215.8S726%20669.8%20726%20788.8c0%205.8-0.2%2011.6-0.7%2017.3l69.8%205.6c0.6-7.6%200.9-15.3%200.9-22.9%200-76.4-29.7-148.1-83.7-202.1-29.7-29.8-64.9-52.1-103.3-66.2%2045.6-31.5%2075.5-84.1%2075.5-143.5%200-96.1-78.2-174.4-174.4-174.4-96.1%200-174.4%2078.2-174.4%20174.4%200%2059.5%2029.9%20112%2075.5%20143.5C373%20534.6%20337.8%20557%20308%20586.7c-54%2054-83.7%20125.8-83.7%20202.1%200%207.6%200.3%2015.3%200.9%2022.9l69.8-5.5z%20m215.2-533.6c57.5%200%20104.4%2046.8%20104.4%20104.4%200%2057.5-46.8%20104.4-104.4%20104.4-57.5%200-104.4-46.8-104.4-104.4%200-57.6%2046.8-104.4%20104.4-104.4z'%20p-id='4620'%3e%3c/path%3e%3c/svg%3e",yu=Object.freeze(Object.defineProperty({__proto__:null,default:bu},Symbol.toStringTag,{value:"Module"})),ku="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1753776005679'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2552'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='32'%20height='32'%3e%3cpath%20d='M875.7248%20656.5376H634.624a29.44%2029.44%200%200%200-28.3648%2021.3248%2094.5152%2094.5152%200%200%201-181.8624%200%2029.44%2029.44%200%200%200-28.3904-21.3248H160.6656A58.2656%2058.2656%200%200%200%20102.4%20714.8032v172.2368a58.2656%2058.2656%200%200%200%2058.2656%2058.2656h715.0592a58.2656%2058.2656%200%200%200%2058.2656-58.2656v-172.2368a58.2656%2058.2656%200%200%200-58.2656-58.2656z%20m-229.632-481.3312v3.1488c-4.0448-1.8944-4.0448-2.5344%200-3.1488-4.0448-1.2544%200-1.8944%200-3.1488v3.1488z'%20fill='%23000000'%20p-id='2553'%3e%3c/path%3e%3cpath%20d='M833.6896%20102.4H354.1504c-17.5872%200-32.0768%2016.3072-32.0768%2035.7632V610.816h127.488c0%2040.1664%2028.8768%2072.7808%2064.0256%2072.7808%2035.7888%200%2064-32.6144%2064-72.7808h288.1024V138.1632c0-20.0704-14.4384-35.7632-32-35.7632zM457.472%20261.12h272.9472c13.056%200%2022.7584%2010.7008%2023.296%2023.296%200.5888%2012.6464-11.1104%2023.3472-23.296%2023.3472H457.4976c-13.056%200-22.7328-10.7008-23.296-23.3216-0.5632-12.6464%2011.1104-23.296%2023.296-23.296z%20m273.2288%20209.4592h-272.896c-13.0816%200-22.784-10.6752-23.3216-23.296-0.5632-12.6464%2011.1104-23.296%2023.296-23.296h272.9216c13.056%200%2022.7584%2010.6752%2023.296%2023.296%200.5888%2012.6208-11.0848%2023.296-23.296%2023.296z%20m-512-295.3728h39.4496v435.584H162.1248V231.7568c0-31.232%2025.344-56.576%2056.576-56.576z'%20fill='%23000000'%20p-id='2554'%3e%3c/path%3e%3c/svg%3e",Su=Object.freeze(Object.defineProperty({__proto__:null,default:ku},Symbol.toStringTag,{value:"Module"})),Cu="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1752025023308'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='1955'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='16'%20height='16'%3e%3cpath%20d='M481.322667%20891.349333l-328.533334-157.866666a72.064%2072.064%200%200%201-38.4-85.333334l366.933334%20179.2%2034.133333%2017.066667%20328.533333-157.866667%2068.266667-38.4a77.354667%2077.354667%200%200%201-38.4%2085.333334l-328.533333%20157.866666a58.069333%2058.069333%200%200%201-64%200z%20m0-153.6l-328.533334-157.866666a71.978667%2071.978667%200%200%201-38.4-85.333334l366.933334%20179.2%2034.133333%2017.066667%20328.533333-157.866667%2068.266667-38.4a77.269333%2077.269333%200%200%201-38.4%2085.333334l-328.533333%20157.866666a58.069333%2058.069333%200%200%201-64%200z%20m0-153.6l-328.533334-158.08a71.509333%2071.509333%200%200%201-34.133333-97.92%2067.626667%2067.626667%200%200%201%2034.133333-34.133333l328.533334-157.866667a57.770667%2057.770667%200%200%201%2064%200l328.533333%20157.866667a71.808%2071.808%200%200%201%2034.133333%2098.133333%2065.792%2065.792%200%200%201-34.133333%2034.133334l-328.533333%20158.08a58.496%2058.496%200%200%201-64%200z'%20p-id='1956'%3e%3c/path%3e%3c/svg%3e",_u=Object.freeze(Object.defineProperty({__proto__:null,default:Cu},Symbol.toStringTag,{value:"Module"})),Ou="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1753766109243'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='3509'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='32'%20height='32'%3e%3cpath%20d='M287.976534%20569.570276l76.718651%200%200%2063.953068-76.718651%200%200-63.953068Z'%20p-id='3510'%3e%3c/path%3e%3cpath%20d='M390.351503%20441.538988l-95.992178%200%200%2063.953068%2070.461012%200C364.820337%20479.96089%20377.58592%20460.812515%20390.351503%20441.538988z'%20p-id='3511'%3e%3c/path%3e%3cpath%20d='M287.976534%20313.632853l447.92178%200%200%2063.953068-447.92178%200%200-63.953068Z'%20p-id='3512'%3e%3c/path%3e%3cpath%20d='M287.976534%20697.601564l76.718651%200%200%2063.953068-76.718651%200%200-63.953068Z'%20p-id='3513'%3e%3c/path%3e%3cpath%20d='M921.625031%20441.538988%20492.726473%20441.538988c-38.421902%200-70.461012%2032.03911-70.461012%2070.461012L422.265461%20940.773405c0%2038.421902%2032.03911%2070.461012%2070.461012%2070.461012l428.773405%200c38.421902%200%2070.461012-32.03911%2070.461012-70.461012L991.96089%20512C991.96089%20473.578098%20959.92178%20441.538988%20921.625031%20441.538988zM911.863114%20917.494989c0%200-40.549499-157.692496-211.13273-180.219995l0%2061.700318c0%2012.139819-13.141041%2019.774138-23.653874%2013.641652l-184.850648-106.755317c-10.512833-6.132486-10.512833-21.275972%200-27.283305l184.850648-106.755317c10.512833-6.132486%2023.653874%201.501833%2023.653874%2013.641652l0%2050.06111C700.730384%20635.400636%20915.617697%20609.619164%20911.863114%20917.494989z'%20p-id='3514'%3e%3c/path%3e%3cpath%20d='M895.968712%200%20128.031288%200C76.843803%200.125153%2032.03911%2044.804693%2032.03911%2096.117331l0%20831.890491c0%2051.187485%2044.804693%2095.992178%2095.992178%2095.992178l255.937424%200c-12.765583-19.273527-25.531166-44.804693-25.531166-70.461012L358.437546%20889.460768%20160.070398%20889.460768%20160.070398%20121.648497l703.859203%200%200%20268.703007%2057.570276%200c25.531166%200%2051.187485%206.382791%2070.461012%2025.531166L991.96089%2095.992178C991.96089%2044.804693%20947.156197%200%20895.968712%200z'%20p-id='3515'%3e%3c/path%3e%3c/svg%3e",Mu=Object.freeze(Object.defineProperty({__proto__:null,default:Ou},Symbol.toStringTag,{value:"Module"}));function Yr(){const n=Object.assign({"/public/icons/svg/App.svg":oh,"/public/icons/svg/Avatar.svg":lh,"/public/icons/svg/Cancel.svg":ch,"/public/icons/svg/ChildAdd.svg":uh,"/public/icons/svg/ChildDelete.svg":dh,"/public/icons/svg/ChildFix.svg":gh,"/public/icons/svg/Delete.svg":vh,"/public/icons/svg/DongHuaFangZhen.svg":xh,"/public/icons/svg/Edit.svg":yh,"/public/icons/svg/EyeFill.svg":Sh,"/public/icons/svg/Fold.svg":_h,"/public/icons/svg/Form.svg":Mh,"/public/icons/svg/Left.svg":Th,"/public/icons/svg/Plus.svg":Bh,"/public/icons/svg/Right.svg":Eh,"/public/icons/svg/Save.svg":zh,"/public/icons/svg/Signature.svg":Nh,"/public/icons/svg/Step.svg":Ih,"/public/icons/svg/Store.svg":$h,"/public/icons/svg/Table.svg":Fh,"/public/icons/svg/Tabs.svg":jh,"/public/icons/svg/TimeLine.svg":Uh,"/public/icons/svg/config.svg":Kh,"/public/icons/svg/editTable.svg":Qh,"/public/icons/svg/emptyImg.svg":Zh,"/public/icons/svg/import.svg":t1,"/public/icons/svg/jd单.svg":n1,"/public/icons/svg/logo.svg":o1,"/public/icons/svg/operate.svg":l1,"/public/icons/svg/query.svg":c1,"/public/icons/svg/readTable.svg":u1,"/public/icons/svg/rowCreate.svg":d1,"/public/icons/svg/wenjian.svg":g1,"/public/icons/svg/wenjianjia.svg":v1,"/public/icons/svg/write.svg":x1,"/public/icons/svg/专项监督报告.svg":y1,"/public/icons/svg/个人中心.svg":S1,"/public/icons/svg/主菜单管理.svg":_1,"/public/icons/svg/会议纪要.svg":M1,"/public/icons/svg/停工令.svg":T1,"/public/icons/svg/制造厂.svg":B1,"/public/icons/svg/加工.svg":E1,"/public/icons/svg/协作单位.svg":z1,"/public/icons/svg/取消.svg":N1,"/public/icons/svg/同意.svg":I1,"/public/icons/svg/周报.svg":$1,"/public/icons/svg/备忘录.svg":F1,"/public/icons/svg/大屏.svg":j1,"/public/icons/svg/审批中心0.svg":U1,"/public/icons/svg/审批中心1.svg":K1,"/public/icons/svg/审核.svg":Q1,"/public/icons/svg/工件库.svg":Z1,"/public/icons/svg/工作台.svg":t3,"/public/icons/svg/平台管理.svg":n3,"/public/icons/svg/年度监造.svg":o3,"/public/icons/svg/年度计划.svg":l3,"/public/icons/svg/批准.svg":c3,"/public/icons/svg/承包商.svg":u3,"/public/icons/svg/技术监督单.svg":d3,"/public/icons/svg/报告中心.svg":g3,"/public/icons/svg/提交.svg":v3,"/public/icons/svg/文件管理.svg":x3,"/public/icons/svg/文档管理.svg":y3,"/public/icons/svg/方法库.svg":S3,"/public/icons/svg/日报.svg":_3,"/public/icons/svg/月报.svg":M3,"/public/icons/svg/档案管理.svg":T3,"/public/icons/svg/消息中心.svg":B3,"/public/icons/svg/灯泡维修.svg":E3,"/public/icons/svg/生成报告.svg":z3,"/public/icons/svg/用户管理.svg":N3,"/public/icons/svg/知识库.svg":I3,"/public/icons/svg/策划报告.svg":$3,"/public/icons/svg/算法.svg":F3,"/public/icons/svg/系统管理.svg":j3,"/public/icons/svg/经验反馈1.svg":U3,"/public/icons/svg/经验反馈2.svg":K3,"/public/icons/svg/考核.svg":Q3,"/public/icons/svg/职位管理.svg":Z3,"/public/icons/svg/菜单管理.svg":tu,"/public/icons/svg/营运单位.svg":nu,"/public/icons/svg/观察意见单.svg":ou,"/public/icons/svg/角色管理.svg":lu,"/public/icons/svg/记录单.svg":cu,"/public/icons/svg/设备库.svg":uu,"/public/icons/svg/质量计划审查意见单.svg":du,"/public/icons/svg/质量计划见证点.svg":gu,"/public/icons/svg/资质管理.svg":vu,"/public/icons/svg/部门文件.svg":xu,"/public/icons/svg/部门管理.svg":yu,"/public/icons/svg/项目信息.svg":Su,"/public/icons/svg/项目管理0.svg":_u,"/public/icons/svg/驳回.svg":Mu});return Object.keys(n).map(e=>({value:e.split("/").pop().replace(".svg",""),path:n[e].default}))}const Du={class:"icon-popover"},Tu=["onClick"],Au=u.defineComponent({__name:"index",props:{modelValue:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},emits:["update:modelValue"],setup(n,{emit:e}){const t=n,i=e,s=u.ref(t.modelValue),o=u.ref(!1),r=u.ref([]),l=()=>{o.value=!0},a=()=>{o.value=!1},h=c=>{s.value=c.value,i("update:modelValue",c.value)};return u.onMounted(()=>{r.value=Yr()}),(c,f)=>{const d=u.resolveComponent("el-input"),p=u.resolveComponent("el-popover");return u.openBlock(),u.createBlock(p,{width:"400",visible:o.value,title:"图标",placement:"bottom"},{default:u.withCtx(()=>[u.createElementVNode("div",Du,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(r.value,(g,m)=>(u.openBlock(),u.createElementBlock("div",{key:m,class:"icon-wrap",onClick:v=>h(g)},[u.createVNode(W2.SvgIcon,{name:g==null?void 0:g.value,style:{width:"20px",height:"20px"}},null,8,["name"])],8,Tu))),128))])]),reference:u.withCtx(()=>[u.createVNode(d,{modelValue:s.value,"onUpdate:modelValue":f[0]||(f[0]=g=>s.value=g),placeholder:"请输入",disabled:!(t!=null&&t.isEdit),clearable:"",onFocus:l,onBlur:a},{prepend:u.withCtx(()=>[u.createVNode(W2.SvgIcon,{name:s.value,style:{width:"20px",height:"20px"}},null,8,["name"])]),_:1},8,["modelValue","disabled"])]),_:1},8,["visible"])}}}),Bu=ue._export_sfc(Au,[["__scopeId","data-v-d9981dd9"]]),Pu={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},setup(n){const e=n,t=u.ref(e.value);return(i,s)=>{const o=u.resolveComponent("el-input");return u.openBlock(),u.createBlock(o,{modelValue:t.value,"onUpdate:modelValue":s[0]||(s[0]=r=>t.value=r),disabled:!(e!=null&&e.isEdit),type:"password","show-password":"",clearable:""},null,8,["modelValue","disabled"])}}},Eu={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},setup(n){const e=n,t=u.ref(e.value);return(i,s)=>{const o=u.resolveComponent("el-color-picker");return u.openBlock(),u.createBlock(o,{modelValue:t.value,"onUpdate:modelValue":s[0]||(s[0]=r=>t.value=r),"show-alpha":""},null,8,["modelValue"])}}},Vu={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},setup(n){const e=n,t=u.ref(e.value);return(i,s)=>{const o=u.resolveComponent("el-input");return u.openBlock(),u.createBlock(o,{modelValue:t.value,"onUpdate:modelValue":s[0]||(s[0]=r=>t.value=r),style:{height:"100%"},type:"number"},null,8,["modelValue"])}}},R0=u.defineComponent({__name:"index",props:{modelValue:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0},loading:{type:Boolean,default:!1},emptyColor:{type:Boolean,default:!1},buttonType:{type:String,default:"primary"}},emits:["clickTrigger"],setup(n,{emit:e}){const t=n,i=u.ref(t.modelValue),s=e,o=r=>{s("clickTrigger",r)};return(r,l)=>{const a=u.resolveComponent("el-button");return u.openBlock(),u.createBlock(a,{type:t==null?void 0:t.buttonType,id:t!=null&&t.emptyColor?"":"themeButton",onClick:l[0]||(l[0]=h=>o(i.value)),loading:t==null?void 0:t.loading},{default:u.withCtx(()=>[u.createTextVNode(u.toDisplayString(i.value),1)]),_:1},8,["type","id","loading"])}}}),zu={class:"form-content-view"},Lu={class:"form-item-label-child"},Nu=["onClick"],Ru={class:"form-item-label-child"},Iu=["onClick"],Hu=["onClick"],$u={__name:"index",props:{formRules:Object,rowContents:Array,buttonValue:Array,isEnableWrap:{default:!0,type:Boolean},isRowFlex:{default:!1,type:Boolean},isButtonRow:{default:!0,type:Boolean},rowValues:Array,isEdit:{type:Boolean,default:!0},isStartJustify:{type:Boolean,default:!0}},emits:["change","onButtonClick","clickTrigger","blur","changeVisible","blurChange","preview"],setup(n,{emit:e}){const t=n;u.onMounted(()=>{});const i=e,s=u.ref(null),o=u.ref(null),r=u.ref(),l=u.ref(),a=u.ref(0),h=b=>Dn(b),c=b=>{i("clickTrigger",b)},f=b=>{i("preview",b)},d=()=>{i("blur",l.value)},p=()=>{i("blurChange",l.value)},g=()=>{u.nextTick(()=>{a.value++})},m=(b,S)=>{switch(b){case"datetime":return Ct.dayjs(S).format("YYYY-MM-DD HH:mm:ss");case"date":return Ct.dayjs(S).format("YYYY-MM-DD");default:return S}},v=b=>{i("changeVisible",b)};u.watch(()=>t==null?void 0:t.rowContents,()=>{var S,k;if(((S=t==null?void 0:t.rowContents)==null?void 0:S.length)===0)return;const b={};(k=ee.cloneDeep(t==null?void 0:t.rowContents))==null||k.forEach(y=>{b[(y==null?void 0:y.name)??(y==null?void 0:y.prop)]=m(y==null?void 0:y.type,y==null?void 0:y.value)}),r.value=b,l.value=b,g()},{deep:!0,immediate:!0});const w=async(b,S)=>{await u.nextTick(),S&&await(S==null?void 0:S.validate((k,y)=>{k?i("onButtonClick",{content:l.value,buttonName:b}):console.log("表单校验失败",y)}))};return u.watch(()=>l.value,()=>{i("change",l.value)},{deep:!0}),(b,S)=>{var C;const k=u.resolveComponent("el-form-item"),y=u.resolveComponent("el-form"),_=u.resolveComponent("el-button");return u.openBlock(),u.createElementBlock("div",{class:"form-content",style:u.normalizeStyle({flexDirection:n.isButtonRow?"row":"column"})},[u.createElementVNode("div",zu,[t.isEnableWrap?(u.openBlock(),u.createBlock(y,{ref_key:"formWrapRef",ref:s,model:r.value,rules:n.formRules,class:"form-data",key:t.isRowFlex+a.value},{default:u.withCtx(()=>{var T,P;return[(T=b.item)!=null&&T.isFormColHidden?u.createCommentVNode("",!0):(u.openBlock(!0),u.createElementBlock(u.Fragment,{key:0},u.renderList(u.unref(ee.cloneDeep)(t==null?void 0:t.rowContents),(x,H)=>(u.openBlock(),u.createBlock(k,{key:H,class:"form-item",prop:(x==null?void 0:x.prop)??(x==null?void 0:x.name),style:u.normalizeStyle({flexDirection:n.isRowFlex?"row":"column",alignItems:n.isRowFlex?"center":"start",height:n.isRowFlex?"100%":"auto"})},u.createSlots({default:u.withCtx(()=>{var N,M,B,E;return[x!=null&&x.isFormColHidden?u.createCommentVNode("",!0):(u.openBlock(),u.createBlock(u.resolveDynamicComponent(h((x==null?void 0:x.type)??"Input")),{modelValue:l.value[(x==null?void 0:x.prop)??x.name],"onUpdate:modelValue":$=>l.value[(x==null?void 0:x.prop)??x.name]=$,key:x==null?void 0:x.type,content:(x==null?void 0:x.contents)??[],isEdit:t==null?void 0:t.isEdit,onClickTrigger:c,onBlur:d,optionUrl:x==null?void 0:x.optionUrl,onChangeVisible:v,onBlurChange:p,config:x==null?void 0:x.config},null,40,["modelValue","onUpdate:modelValue","content","isEdit","optionUrl","config"])),typeof l.value[(x==null?void 0:x.prop)??x.name]=="string"&&((N=l.value[(x==null?void 0:x.prop)??x.name])!=null&&N.includes(".stl")||(M=l.value[(x==null?void 0:x.prop)??x.name])!=null&&M.includes(".obj")||(B=l.value[(x==null?void 0:x.prop)??x.name])!=null&&B.includes(".urdf")||(E=l.value[(x==null?void 0:x.prop)??x.name])!=null&&E.includes(".ls"))?(u.openBlock(),u.createBlock(R0,{key:1,class:"calculator-content",onClickTrigger:$=>f(l.value[(x==null?void 0:x.prop)??x.name]),modelValue:"预览"},null,8,["onClickTrigger"])):u.createCommentVNode("",!0)]}),_:2},[x!=null&&x.isFormColHidden?void 0:{name:"label",fn:u.withCtx(()=>[x!=null&&x.label?(u.openBlock(),u.createElementBlock("div",{key:0,class:"from-item-label",style:u.normalizeStyle({width:n.isRowFlex?"72px":"260px",minWidth:n.isRowFlex?"72px":"260px"})},[u.createElementVNode("div",Lu,u.toDisplayString(x==null?void 0:x.label),1)],4)):u.createCommentVNode("",!0)]),key:"0"}]),1032,["prop","style"]))),128)),((P=t.buttonValue)==null?void 0:P.length)>0&&n.isButtonRow?(u.openBlock(),u.createElementBlock("div",{key:1,class:"form-button",style:u.normalizeStyle({paddingTop:n.isRowFlex?"0":"26px",justifyContent:n.isStartJustify?"start":"end"})},[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(t==null?void 0:t.buttonValue,(x,H)=>(u.openBlock(),u.createElementBlock("div",{key:H,class:"form-button-content"},[x?(u.openBlock(),u.createElementBlock("div",{key:0,class:"form-button-item",style:u.normalizeStyle({background:(x==null?void 0:x.background)??"var(--ssComponent-primary-color)"}),onClick:N=>w(x==null?void 0:x.label,s.value)},u.toDisplayString(x==null?void 0:x.label),13,Nu)):u.createCommentVNode("",!0)]))),128))],4)):u.createCommentVNode("",!0)]}),_:1},8,["model","rules"])):(u.openBlock(),u.createBlock(y,{ref_key:"formRef",ref:o,model:l.value,rules:n.formRules,class:"form-noRegular-data",key:a.value},{default:u.withCtx(()=>{var T,P;return[(T=b.item)!=null&&T.isFormColHidden?u.createCommentVNode("",!0):(u.openBlock(!0),u.createElementBlock(u.Fragment,{key:0},u.renderList(u.unref(ee.cloneDeep)(t==null?void 0:t.rowContents),(x,H)=>(u.openBlock(),u.createBlock(k,{key:H,class:u.normalizeClass(["form-item",{"form-row-content":!n.isRowFlex}]),prop:(x==null?void 0:x.prop)??(x==null?void 0:x.name),style:u.normalizeStyle({flexDirection:n.isRowFlex?"row":"column",alignItems:n.isRowFlex?"center":"start",height:n.isRowFlex?"100%":"auto",width:`calc((100% / ${(x==null?void 0:x.width)??1}) - 12px)`,minWidth:`calc((100% / ${(x==null?void 0:x.width)??1}) - 12px)`})},u.createSlots({default:u.withCtx(()=>{var N,M,B,E;return[x!=null&&x.isFormColHidden?u.createCommentVNode("",!0):(u.openBlock(),u.createBlock(u.resolveDynamicComponent(h((x==null?void 0:x.type)??"Input")),{modelValue:l.value[(x==null?void 0:x.prop)??x.name],"onUpdate:modelValue":$=>l.value[(x==null?void 0:x.prop)??x.name]=$,isEdit:t==null?void 0:t.isEdit,content:(x==null?void 0:x.contents)??[],onClickTrigger:c,onBlur:d,key:x==null?void 0:x.type,optionUrl:x==null?void 0:x.optionUrl,onChangeVisible:v,onBlurChange:p,config:x==null?void 0:x.config},null,40,["modelValue","onUpdate:modelValue","isEdit","content","optionUrl","config"])),typeof l.value[(x==null?void 0:x.prop)??x.name]=="string"&&((N=l.value[(x==null?void 0:x.prop)??x.name])!=null&&N.includes(".stl")||(M=l.value[(x==null?void 0:x.prop)??x.name])!=null&&M.includes(".obj")||(B=l.value[(x==null?void 0:x.prop)??x.name])!=null&&B.includes(".urdf")||(E=l.value[(x==null?void 0:x.prop)??x.name])!=null&&E.includes(".ls"))?(u.openBlock(),u.createBlock(R0,{key:1,class:"calculator-content form-preview",onClickTrigger:$=>f(l.value[(x==null?void 0:x.prop)??x.name]),modelValue:"预览"},null,8,["onClickTrigger"])):u.createCommentVNode("",!0)]}),_:2},[x!=null&&x.isFormColHidden?void 0:{name:"label",fn:u.withCtx(()=>[x!=null&&x.label?(u.openBlock(),u.createElementBlock("div",{key:0,class:"from-item-label",style:u.normalizeStyle({width:n.isRowFlex?"72px":"auto",minWidth:n.isRowFlex?"72px":`calc((100% / ${(x==null?void 0:x.width)??1}) - 8px)`})},[u.createElementVNode("div",Ru,u.toDisplayString(x==null?void 0:x.label),1)],4)):u.createCommentVNode("",!0)]),key:"0"}]),1032,["prop","class","style"]))),128)),((P=t.buttonValue)==null?void 0:P.length)>0&&n.isButtonRow?(u.openBlock(),u.createElementBlock("div",{key:1,class:"form-button",style:u.normalizeStyle({paddingTop:n.isRowFlex?"0":"26px",justifyContent:n.isStartJustify?"start":"end"})},[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(t==null?void 0:t.buttonValue,(x,H)=>(u.openBlock(),u.createElementBlock("div",{key:H,class:"form-button-content"},[x?(u.openBlock(),u.createElementBlock("div",{key:0,class:"form-button-item",style:u.normalizeStyle({background:(x==null?void 0:x.background)??"var(--ssComponent-primary-color)"}),onClick:N=>w(x==null?void 0:x.label,o.value)},u.toDisplayString(x==null?void 0:x.label),13,Iu)):u.createCommentVNode("",!0)]))),128))],4)):u.createCommentVNode("",!0)]}),_:1},8,["model","rules"]))]),((C=t.buttonValue)==null?void 0:C.length)>0&&!n.isButtonRow?(u.openBlock(),u.createElementBlock("div",{key:0,class:"form-button",style:u.normalizeStyle({justifyContent:n.isStartJustify?"start":"end"})},[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(t==null?void 0:t.buttonValue,(T,P)=>(u.openBlock(),u.createElementBlock("div",{key:P,class:"form-button-content",onClick:x=>w(T==null?void 0:T.label,t.isEnableWrap?s.value:o.value)},[u.createVNode(_,{id:"themeButton",style:u.normalizeStyle({background:(T==null?void 0:T.background)??"var(--ssbutton-theme-bg)",color:"var(--ssbutton-theme-color)"})},{default:u.withCtx(()=>[u.createTextVNode(u.toDisplayString(T==null?void 0:T.label),1)]),_:2},1032,["style"])],8,Hu))),128))],4)):u.createCommentVNode("",!0)],4)}}},Kr=ue._export_sfc($u,[["__scopeId","data-v-7c37228f"]]),Wu={__name:"index",props:{value:String,formRules:{type:Object,default:()=>{}},content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},emits:["clickTrigger","changeTrigger"],setup(n,{emit:e}){const t=n,i=e,s=r=>{i("clickTrigger",r)},o=r=>{i("changeTrigger",r)};return(r,l)=>{var a,h,c,f,d,p,g;return u.openBlock(),u.createBlock(Kr,{rowContents:((a=t==null?void 0:t.content)==null?void 0:a.rowContents)??[],formRules:(h=t==null?void 0:t.content)==null?void 0:h.formRules,buttonValue:((c=t==null?void 0:t.content)==null?void 0:c.buttonValue)??[],isEnableWrap:(f=t==null?void 0:t.content)==null?void 0:f.isEnableWrap,isRowFlex:(d=t==null?void 0:t.content)==null?void 0:d.isRowFlex,isButtonRow:(p=t==null?void 0:t.content)==null?void 0:p.isButtonRow,rowValues:((g=t==null?void 0:t.content)==null?void 0:g.rowValues)??[],onOnButtonClick:s,onChange:o},null,8,["rowContents","formRules","buttonValue","isEnableWrap","isRowFlex","isButtonRow","rowValues"])}}},Xr={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},emits:["change"],setup(n,{emit:e}){const t=n,i=u.ref(t.value),s=e,o=r=>{s("change",r)};return(r,l)=>{const a=u.resolveComponent("el-radio"),h=u.resolveComponent("el-radio-group");return u.openBlock(),u.createBlock(h,{modelValue:i.value,"onUpdate:modelValue":l[0]||(l[0]=c=>i.value=c),style:{height:"100%"},onChange:l[1]||(l[1]=c=>o(c))},{default:u.withCtx(()=>[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(t.content,(c,f)=>(u.openBlock(),u.createBlock(a,{key:f,label:c.value},{default:u.withCtx(()=>[u.createTextVNode(u.toDisplayString(c==null?void 0:c.label),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"])}}},Qr={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0},isWrap:{type:Boolean,default:!1},min:{type:Number,default:1}},emits:["change"],setup(n,{emit:e}){const t=n,i=u.ref(t.value),s=e,o=r=>{s("change",r)};return(r,l)=>{const a=u.resolveComponent("el-checkbox"),h=u.resolveComponent("el-checkbox-group");return u.openBlock(),u.createBlock(h,{modelValue:i.value,"onUpdate:modelValue":l[0]||(l[0]=c=>i.value=c),style:{height:"100%"},min:n.min,onChange:l[1]||(l[1]=c=>o(c))},{default:u.withCtx(()=>[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(n.content,c=>(u.openBlock(),u.createBlock(a,{key:c.label,label:c.label,value:c.label,style:u.normalizeStyle({width:n.isWrap?"90%":"auto"})},null,8,["label","value","style"]))),128))]),_:1},8,["modelValue","min"])}}},Fu={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},setup(n){const e=n;return u.onMounted(()=>{document.querySelectorAll(".el-tab-pane").forEach(i=>{i.style.display="block"})}),(t,i)=>{var s;return u.openBlock(),u.createBlock(H2,{tabsContents:((s=e==null?void 0:e.content)==null?void 0:s.tabsContents)??[]},u.createSlots({_:2},[u.renderList(t.$slots,(o,r)=>({name:r,fn:u.withCtx(l=>[u.renderSlot(t.$slots,r,u.normalizeProps(u.guardReactiveProps(l||{})))])}))]),1032,["tabsContents"])}}},Gu={class:"extra-button-content"},ju={__name:"header",props:{buttons:{type:Array,default:()=>[]},columns:{type:Array,default:()=>[]}},emits:["buttonClick"],setup(n,{emit:e}){const t=n;u.ref(!1);const i=u.ref([]);u.ref([{label:"取消"},{label:"确认"}]);const s=o=>{var r;i.value=(r=o==null?void 0:o.filter(l=>(l==null?void 0:l.label)!==""&&(l==null?void 0:l.label)!=="操作"))==null?void 0:r.map(l=>({label:(l==null?void 0:l.label)??"",value:"",name:(l==null?void 0:l.prop)??""}))};return u.onMounted(()=>{s(t.columns)}),u.watch(()=>t.columns,()=>{s(t.columns)},{deep:!0,immediate:!0}),(o,r)=>(u.openBlock(),u.createElementBlock("div",Gu,[u.renderSlot(o.$slots,"headerButton",{},void 0,!0)]))}},qu=ue._export_sfc(ju,[["__scopeId","data-v-9727dc88"]]),Uu={key:0},Yu=u.defineComponent({__name:"recurseCol",props:{column:{type:Object,default:{}}},setup(n){return(e,t)=>{var l,a,h,c,f,d,p,g,m;const i=u.resolveComponent("svg-icon"),s=u.resolveComponent("el-tooltip"),o=u.resolveComponent("RecurseCol",!0),r=u.resolveComponent("el-table-column");return n.column.isHidden?u.createCommentVNode("",!0):(u.openBlock(),u.createBlock(r,{key:0,label:n.column.label,prop:n.column.prop,fixed:((l=n.column)==null?void 0:l.label)==="操作"?"right":(a=n.column)==null?void 0:a.fixed,align:((h=n.column)==null?void 0:h.align)??"center",sortable:((c=n.column)==null?void 0:c.sortable)??!0,"show-overflow-tooltip":((f=n.column)==null?void 0:f.showOverflowTooltip)??!0,width:((d=n.column)==null?void 0:d.label)==="操作"?80:(p=n.column)==null?void 0:p.width,"min-width":(g=n.column)!=null&&g.width?parseInt(n.column.width):void 0,"class-name":(((m=n.column)==null?void 0:m.isNotDrag)??!1)===!0?"is-not-drag":"is-drag"},{header:u.withCtx(()=>[n.column.label!=="操作"?(u.openBlock(),u.createElementBlock("span",Uu,u.toDisplayString(n.column.label),1)):(u.openBlock(),u.createBlock(s,{key:1,content:"操作",placement:"left-start",effect:"light"},{default:u.withCtx(()=>[u.createVNode(i,{name:"operate",style:{width:"15px",height:"15px"}})]),_:1}))]),default:u.withCtx(v=>[u.renderSlot(e.$slots,"content",{row:v.row,column:v.column,$index:v.$index}),(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(n.column.children,(w,b)=>(u.openBlock(),u.createBlock(o,{key:b,column:w},u.createSlots({_:2},[u.renderList(e.$slots,(S,k)=>({name:k,fn:u.withCtx(y=>[u.renderSlot(e.$slots,k,u.mergeProps({ref_for:!0},y,{slotData:y,row:v.row,item:{child:w}}))])}))]),1032,["column"]))),128))]),_:3},8,["label","prop","fixed","align","sortable","show-overflow-tooltip","width","min-width","class-name"]))}}}),Ku={key:0},Xu=u.defineComponent({__name:"index",props:{column:{type:Object,default:{}}},setup(n){return(e,t)=>{var s,o,r,l,a,h,c,f,d,p;const i=u.resolveComponent("el-table-column");return n.column.isTableColHidden?u.createCommentVNode("",!0):(u.openBlock(),u.createBlock(i,{key:0,label:n.column.label,prop:n.column.prop,fixed:((s=n.column)==null?void 0:s.label)==="操作"?"right":(o=n.column)==null?void 0:o.fixed,align:((r=n.column)==null?void 0:r.align)??"center",sortable:((l=n.column)==null?void 0:l.sortable)??!0,"show-overflow-tooltip":((a=n.column)==null?void 0:a.showOverflowTooltip)??!0,width:((h=n.column)==null?void 0:h.label)==="操作"?80:(c=n.column)==null?void 0:c.width,"min-width":(f=n.column)!=null&&f.width?parseInt(n.column.width):void 0,"class-name":((d=n.column)==null?void 0:d.prop)==="operate"?"action":(((p=n.column)==null?void 0:p.isNotDrag)??!1)===!0?"is-not-drag":"is-drag"},{header:u.withCtx(()=>[n.column.label!=="操作"?(u.openBlock(),u.createElementBlock("span",Ku,u.toDisplayString(n.column.label),1)):u.renderSlot(e.$slots,"operateHeader",{key:1})]),default:u.withCtx(g=>[u.renderSlot(e.$slots,"content",{row:g.row,column:g.column,$index:g.$index}),(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(n.column.children,(m,v)=>(u.openBlock(),u.createBlock(Yu,{key:v,column:m},u.createSlots({_:2},[u.renderList(e.$slots,(w,b)=>({name:b,fn:u.withCtx(({row:S,slotData:k,item:y})=>[u.renderSlot(e.$slots,b,u.mergeProps({ref_for:!0},k??S,{item:y??m,slotData:k??S}))])}))]),1032,["column"]))),128))]),_:3},8,["label","prop","fixed","align","sortable","show-overflow-tooltip","width","min-width","class-name"]))}}}),Qu={class:"table-content-show"},Ju=["onClick"],Zu=["onClick"],ef=["onClick"],tf={key:2,class:"table-content"},nf={__name:"index",props:{checkedColumns:Array,columns:Array,tableData:Array,currentPage:Number,total:Number,pageSize:Number,extraButton:{type:Array,default:()=>[]},isShowPagination:{type:Boolean,default:!0},isShowEdit:{type:Boolean,default:!0},isMoveColumn:{type:Boolean,default:!0},isShowDelete:{type:Boolean,default:!0}},emits:["cellChange","selectChange","dbClickRow","fixRow","deleteRow","doSizeChange","doCurrentChange","buttonClick","contentClick","rowClick"],setup(n,{emit:e}){const t=n,i=th.useModelComp(ee.pinia),{viewport:s}=ee.storeToRefs(i),o=u.ref([]),r=u.ref([]),l=u.ref(0),a=u.ref(null),h=u.ref(null),c=e;u.onMounted(()=>{var M;o.value=t==null?void 0:t.columns,r.value=(M=t==null?void 0:t.tableData)==null?void 0:M.map(B=>{var $;let E={};for(let F in B)E[F]=F2(B[F])&&B[F]===0?($=B[F])==null?void 0:$.toString():B[F];return E}),t.isMoveColumn&&C(),P()});const f=(M,B,E)=>{c("cellChange",B,E,M)},d=M=>{c("selectChange",M)},p=(M,B,E,$)=>u.computed(()=>{var R,Q,X,I,K,re,ie,Me,Pt,gi;let F=M!=null&&M[B==null?void 0:B.prop]?((Q=(R=M==null?void 0:M[B==null?void 0:B.prop])==null?void 0:R[0])==null?void 0:Q.contents)??(M==null?void 0:M[B==null?void 0:B.prop]):((I=(X=M==null?void 0:M[E==null?void 0:E.prop])==null?void 0:X[0])==null?void 0:I.contents)??(M==null?void 0:M[E==null?void 0:E.prop])??((re=(K=$==null?void 0:$[E==null?void 0:E.prop])==null?void 0:K[0])==null?void 0:re.contents)??($==null?void 0:$[E==null?void 0:E.prop])??((Pt=(Me=M==null?void 0:M[(ie=E==null?void 0:E.child)==null?void 0:ie.prop])==null?void 0:Me[0])==null?void 0:Pt.contents)??(M==null?void 0:M[(gi=E==null?void 0:E.child)==null?void 0:gi.prop]);return Array.isArray(F)&&!(F!=null&&F.every($2=>typeof $2=="string"||typeof $2=="number"))?"查看":F}),g=M=>{c("rowClick",{row:M,type:"table"})},m=M=>{c("buttonClick",M)};u.watch(()=>t==null?void 0:t.tableData,()=>{var M;r.value=(M=t==null?void 0:t.tableData)==null?void 0:M.map(B=>{var $;let E={};for(let F in B)E[F]=F2(B[F])&&B[F]===0?($=B[F])==null?void 0:$.toString():B[F];return E})},{deep:!0});const v=M=>Dn(M),w=M=>{c("doCurrentChange",M)},b=(M,B)=>{c("dbClickRow",M)},S=M=>{c("doSizeChange",M)},k=M=>{c("fixRow",M)},y=M=>{c("deleteRow",M)},_=(M,B,E,$)=>{c("contentClick",M,B,E,$)},C=()=>{var B;const M=(B=a.value)==null?void 0:B.$el.querySelector(".el-table__header-wrapper tr");!M||!t.isMoveColumn||Ct.Sortable.create(M,{animation:180,delay:0,handle:".is-drag .cell",onMove:E=>!E.related.classList.contains("is-not-drag"),onEnd:E=>{l.value++;const $=E.oldIndex,F=E.newIndex,R=o.value.splice($,1)[0];o.value.splice(F,0,R),t.isMoveColumn&&u.nextTick(()=>{C(),P()})}})};u.watch(()=>t.isMoveColumn,()=>{t.isMoveColumn&&u.nextTick(()=>{C(),P()})});const T=({column:M})=>M.label&&M.label.length>8?"long-header":"",P=()=>{var B;const M=(B=a.value)==null?void 0:B.$el.querySelector(".el-table__body-wrapper tbody");M&&new Ct.Sortable(M,{animation:150,handle:".el-table__row",ghostClass:"sortable-ghost",onEnd:({newIndex:E,oldIndex:$})=>{const F=[...r.value],[R]=F.splice($,1);F.splice(E,0,R),r.value=F,u.nextTick(()=>{P()})}})},x=M=>{M.preventDefault();try{const E=(M.clipboardData||(window==null?void 0:window.clipboardData)).getData("text/plain");if(!E)return;const $=H(E);if(!$.length)return;const{rowIndex:F,columnIndex:R}=h.value||{rowIndex:0,columnIndex:0},Q=[];if($==null||$.forEach(X=>{Q.push(X.length+R)}),(Q==null?void 0:Q.filter(X=>{var I;return X>Object.keys((I=r.value)==null?void 0:I[0]).length}).length)>0){ee.ElMessage({type:"warning",message:"所剩列数不够"});return}for(let X=0;X<$.length;X++){const I=$[X],K=r.value[F+X],re=ee.cloneDeep(o.value).map(ie=>ie.prop);for(let ie=0;ie<I.length&&R+ie<re.length;ie++){const Me=re[R+ie];K[Me]=I[ie]||""}}}catch(B){console.error("粘贴失败:",B)}},H=M=>M.trim().split(/\r\n|\n|\r/).map($=>$.trim()?$.split(" ").map(F=>F.replace(/^"(.*)"$/,"$1")):[""]),N=({row:M,rowIndex:B})=>B%2===0?"default-row":"special-row";return(M,B)=>{const E=u.resolveComponent("el-table-column"),$=u.resolveComponent("el-table"),F=u.resolveComponent("el-pagination");return u.openBlock(),u.createElementBlock("div",Qu,[u.createVNode(qu,{buttons:t==null?void 0:t.extraButton,onButtonClick:m,columns:o.value},{headerButton:u.withCtx(()=>[u.renderSlot(M.$slots,"headerButton",{buttons:t==null?void 0:t.extraButton,columns:o.value},void 0,!0)]),_:3},8,["buttons","columns"]),u.renderSlot(M.$slots,"viewport",{},void 0,!0),(u.openBlock(),u.createBlock($,{border:!1,class:"table-wrap",data:r.value,stripe:"",style:{width:"100%"},"max-height":"600",ref_key:"tableRef",ref:a,"empty-text":"暂无数据",onCellClick:g,onSelectionChange:d,onRowDblclick:b,key:l.value,onPaste:x,"row-class-name":N,"header-cell-class-name":T},{default:u.withCtx(()=>[u.unref(s)==="edit"?(u.openBlock(),u.createBlock(E,{key:0,type:"index",width:"55"},{default:u.withCtx(({row:R,column:Q,$index:X})=>{var I;return[u.unref(s)==="edit"&&X===((I=r.value)==null?void 0:I.length)-1?u.renderSlot(M.$slots,"rowCreate",{key:0,row:R},void 0,!0):u.createCommentVNode("",!0)]}),_:3})):u.createCommentVNode("",!0),(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(o.value,(R,Q)=>{var X;return u.openBlock(),u.createElementBlock(u.Fragment,null,[(X=n.checkedColumns)!=null&&X.includes(R==null?void 0:R.label)?(u.openBlock(),u.createBlock(Xu,{key:0,column:R},{operateHeader:u.withCtx(()=>[u.renderSlot(M.$slots,"operateCol",{},void 0,!0)]),content:u.withCtx(({row:I,item:K,slotData:re})=>[((R==null?void 0:R.type)??"text")==="text"&&((I==null?void 0:I.tableEditType)??"text")==="text"?(u.openBlock(),u.createElementBlock("span",{key:0,class:"table-content",style:u.normalizeStyle({cursor:I!=null&&I.children?"pointer":"default"}),onClick:ie=>{var Me;return _(I!=null&&I[R==null?void 0:R.prop]?I==null?void 0:I[R==null?void 0:R.prop]:(I==null?void 0:I[K==null?void 0:K.prop])??(re==null?void 0:re[K==null?void 0:K.prop])??(I==null?void 0:I[(Me=K==null?void 0:K.child)==null?void 0:Me.prop]),K==null?void 0:K.prop,I??re,{data:p(I,R,K,re).value})}},u.toDisplayString(p(I,R,K,re)),13,Ju)):u.createCommentVNode("",!0),((R==null?void 0:R.type)??"text")==="operate"?(u.openBlock(),u.createElementBlock("span",{key:1,class:"table-operate",style:u.normalizeStyle({justifyContent:n.isShowEdit&&n.isShowDelete?"space-between":"center"})},[u.renderSlot(M.$slots,"actions",{item:I},void 0,!0),n.isShowEdit?(u.openBlock(),u.createElementBlock("span",{key:0,onClick:ie=>k(I),class:"blue-table-operate table-operate-content"},"编辑",8,Zu)):u.createCommentVNode("",!0),n.isShowDelete?(u.openBlock(),u.createElementBlock("span",{key:1,onClick:ie=>y(I),class:"red-table-operate table-operate-content"},"删除",8,ef)):u.createCommentVNode("",!0)],4)):u.createCommentVNode("",!0),((R==null?void 0:R.type)??"text")==="edit"&&((I==null?void 0:I.tableEditType)??"text")!=="edit"||((R==null?void 0:R.type)??"text")==="text"&&((I==null?void 0:I.tableEditType)??"text")==="edit"?(u.openBlock(),u.createElementBlock("span",tf,[(u.openBlock(),u.createBlock(u.resolveDynamicComponent(v((R==null?void 0:R.columnType)??"Input")),{modelValue:I[R.prop],"onUpdate:modelValue":ie=>I[R.prop]=ie,style:{height:"100%"},content:(R==null?void 0:R.contents)??[],onChange:ie=>f(ie,I,R)},null,40,["modelValue","onUpdate:modelValue","content","onChange"]))])):u.createCommentVNode("",!0)]),_:2},1032,["column"])):u.createCommentVNode("",!0)],64)}),256))]),_:3},8,["data"])),(t==null?void 0:t.isShowPagination)??!1?(u.openBlock(),u.createBlock(F,{key:0,onSizeChange:S,onCurrentChange:w,"current-page":(t==null?void 0:t.currentPage)??1,"page-sizes":[5,10,20,50,100],"page-size":(t==null?void 0:t.pageSize)??10,layout:"total, sizes, prev, pager, next, jumper",total:(t==null?void 0:t.total)??0},null,8,["current-page","page-size","total"])):u.createCommentVNode("",!0)])}}},Jr=ue._export_sfc(nf,[["__scopeId","data-v-74dc1c32"]]),sf={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},emits:["dbChange"],setup(n,{emit:e}){const t=n,i=u.ref([]);u.watch(()=>{var r;return(r=t==null?void 0:t.content)==null?void 0:r.tableData},()=>{var r,l,a,h;((l=(r=t==null?void 0:t.content)==null?void 0:r.tableData)==null?void 0:l.length)===0||!((a=t==null?void 0:t.content)!=null&&a.tableData)||(i.value=ee.cloneDeep((h=t==null?void 0:t.content)==null?void 0:h.tableData))},{deep:!0,immediate:!0});const s=e,o=r=>{var c,f,d,p;if(((c=t==null?void 0:t.content)==null?void 0:c.dbType)!=="edit"||!i.value||((f=i.value)==null?void 0:f.length)===0)return;let l=i.value,a=[];((d=l==null?void 0:l.filter(g=>(g==null?void 0:g.tableEditType)==="edit"))==null?void 0:d.length)!==(((p=t==null?void 0:t.content)==null?void 0:p.editNumber)??1)&&(l=l==null?void 0:l.map(g=>((g==null?void 0:g.id)===(r==null?void 0:r.id)&&(g.tableEditType="edit",a.push(g)),g)),s("dbChange",{content:l,item:a}))};return(r,l)=>{var a,h,c,f,d,p,g;return u.openBlock(),u.createElementBlock(u.Fragment,null,[u.renderSlot(r.$slots,`${(a=t==null?void 0:t.content)==null?void 0:a.value}_tableHeader`),(u.openBlock(),u.createBlock(Jr,{columns:((h=t==null?void 0:t.content)==null?void 0:h.columns)??[],tableData:i.value??[],currentPage:(c=t==null?void 0:t.content)==null?void 0:c.currentPage,total:(f=t==null?void 0:t.content)==null?void 0:f.total,pageSize:(d=t==null?void 0:t.content)==null?void 0:d.pageSize,isShowPagination:(p=t==null?void 0:t.content)==null?void 0:p.isShowPagination,isShowEdit:!1,isMoveColumn:(g=t==null?void 0:t.content)==null?void 0:g.isMoveColumn,isShowDelete:!1,onDoClickRow:o,key:i.value??[]},{actions:u.withCtx(({item:m})=>{var v;return[u.renderSlot(r.$slots,`${(v=t==null?void 0:t.content)==null?void 0:v.value}_action`,{item:m})]}),_:3},8,["columns","tableData","currentPage","total","pageSize","isShowPagination","isMoveColumn"]))],64)}}},of=async n=>{var i,s,o;const e=await ee.getInsofDataApi({key:{pageKey:n==null?void 0:n.path,tableId:n==null?void 0:n.id,type:"data",systemKey:sessionStorage.getItem("systemKey")}});let t=[];return((i=e==null?void 0:e.data)==null?void 0:i.type)==="success"&&(t=(o=(s=e==null?void 0:e.data)==null?void 0:s.result)==null?void 0:o.map(r=>{var l;return(l=r==null?void 0:r.value)==null?void 0:l.tableData})),t=t==null?void 0:t.map(r=>({label:r==null?void 0:r[n==null?void 0:n.columnType],value:r==null?void 0:r[n==null?void 0:n.columnType]})),t},rf=async n=>{var s,o,r,l,a;let e="",t=[];(s=n==null?void 0:n.menuSelect)==null||s.forEach(h=>{e=e===""?e+h:e+"/"+h});let i="";return(l=(r=(o=await Ct.menuToParent(n==null?void 0:n.menuSelect))==null?void 0:o.data)==null?void 0:r.result)==null||l.forEach(h=>{var c,f,d,p;((f=(c=h==null?void 0:h.value)==null?void 0:c.pageData)==null?void 0:f.name)===(((p=(d=n==null?void 0:n.groupSelect)==null?void 0:d[0])==null?void 0:p.replaceAll("'",""))??"")&&(i=h==null?void 0:h.id)}),i!==""&&(t=of({path:e,id:i,columnType:(a=n==null?void 0:n.groupSelect)==null?void 0:a[1]})),t},lf={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0},optionUrl:{type:Object,default:()=>{}}},emits:["blurChange"],setup(n,{emit:e}){const t=n,i=e,s=u.ref(t.value),o=u.ref();u.onMounted(()=>{o.value=t==null?void 0:t.content});const r=()=>{i("blurChange")};return u.watch(()=>t.optionUrl,async()=>{var l,a,h,c;((a=(l=t.optionUrl)==null?void 0:l.menuSelect)==null?void 0:a.length)>0&&(o.value=await rf(t.optionUrl),s.value=(c=(h=o.value)==null?void 0:h[0])==null?void 0:c.value)},{immediate:!0,deep:!0}),(l,a)=>{const h=u.resolveComponent("el-option"),c=u.resolveComponent("el-select");return u.openBlock(),u.createBlock(c,{modelValue:s.value,"onUpdate:modelValue":a[0]||(a[0]=f=>s.value=f),clearable:"",placeholder:"请选择下拉内容...",style:{width:"100%"},onChange:r},{default:u.withCtx(()=>[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(o.value,f=>(u.openBlock(),u.createBlock(h,{key:f.value,label:f.label,value:f.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])}}},af=u.defineComponent({__name:"index",props:{value:String,config:Object,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},emits:["changeVisible"],setup(n,{emit:e}){const t=n,i=u.ref(t.value),s=e,o=u.ref({checkStrictly:!0}),r=l=>{s("changeVisible",l)};return(l,a)=>{const h=u.resolveComponent("el-cascader");return u.openBlock(),u.createBlock(h,{modelValue:i.value,"onUpdate:modelValue":a[0]||(a[0]=c=>i.value=c),clearable:"",props:o.value,options:t==null?void 0:t.content,style:{width:"100%"},onVisibleChange:r},null,8,["modelValue","props","options"])}}}),cf={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},setup(n){const e=n,t=u.ref(e.value);return(i,s)=>{const o=u.resolveComponent("el-option"),r=u.resolveComponent("el-select");return u.openBlock(),u.createBlock(r,{modelValue:t.value,"onUpdate:modelValue":s[0]||(s[0]=l=>t.value=l),multiple:"",clearable:"",placeholder:"请选择下拉内容...",style:{width:"100%"}},{default:u.withCtx(()=>[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(e==null?void 0:e.content,l=>(u.openBlock(),u.createBlock(o,{key:l.value,label:l.label,value:l.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])}}},hf=u.defineComponent({__name:"menuItem",props:{menuList:{type:Array,default:()=>[]}},emits:["clickMenu","openMenu","closeMenu"],setup(n,{emit:e}){const t=e,i=r=>{t("clickMenu",r)},s=r=>{t("openMenu",r)},o=r=>{t("closeMenu",r)};return u.onMounted(()=>{}),(r,l)=>{const a=u.resolveComponent("MenuItem",!0),h=u.resolveComponent("el-sub-menu"),c=u.resolveComponent("el-menu-item");return u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(n.menuList,f=>(u.openBlock(),u.createElementBlock(u.Fragment,null,[f.show&&f.children&&f.children.length>0?(u.openBlock(),u.createBlock(h,{index:f.path,key:f.path},{title:u.withCtx(()=>[u.renderSlot(r.$slots,"title",{menu:f})]),default:u.withCtx(()=>[u.createVNode(a,{menuList:f.children,onClickMenu:i,onOpenMenu:s,onCloseMenu:o},u.createSlots({_:2},[u.renderList(r.$slots,(d,p)=>({name:p,fn:u.withCtx(g=>[u.renderSlot(r.$slots,p,u.mergeProps({ref_for:!0},g))])}))]),1032,["menuList"])]),_:2},1032,["index"])):f.show?(u.openBlock(),u.createBlock(c,{index:f.path,key:f.path,onClick:d=>i(f)},{title:u.withCtx(()=>[u.renderSlot(r.$slots,"title",{menu:f})]),_:2},1032,["index","onClick"])):u.createCommentVNode("",!0)],64))),256)}}}),uf=u.defineComponent({__name:"index",props:{menuList:{type:Array,default:()=>[]},mode:{type:String,default:"vertical"}},emits:["clickMenu","openMenu","closeMenu"],setup(n,{emit:e}){const t=ee.useMenuState(),{activeMenuPath:i,activeMenuOpenPaths:s,activeTopMenuPath:o}=ee.storeToRefs(t),r=n,l=e,a=p=>{l("clickMenu",p)},h=p=>{l("openMenu",p)},c=p=>{l("closeMenu",p)},f=u.computed(()=>(r==null?void 0:r.mode)==="vertical"?i.value:o.value),d=u.computed(()=>s.value);return(p,g)=>{const m=u.resolveComponent("el-sub-menu"),v=u.resolveComponent("el-menu-item"),w=u.resolveComponent("el-menu");return u.openBlock(),u.createBlock(w,{class:"menu-wrap",mode:n.mode,"default-active":f.value,"default-openeds":d.value,"unique-opened":!0,"collapse-transition":!1,"popper-offset":12,ellipsis:!0,onOpen:h,onClose:c},{default:u.withCtx(()=>[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(n.menuList,b=>(u.openBlock(),u.createElementBlock(u.Fragment,null,[b.show&&b.children&&b.children.length>0?(u.openBlock(),u.createBlock(m,{index:b.path,key:b.path,style:u.normalizeStyle(b.style)},{title:u.withCtx(()=>[u.renderSlot(p.$slots,"title",{menu:b},void 0,!0)]),default:u.withCtx(()=>[u.createVNode(hf,{menuList:b.children,onClickMenu:a},u.createSlots({_:2},[u.renderList(p.$slots,(S,k)=>({name:k,fn:u.withCtx(y=>[u.renderSlot(p.$slots,k,u.mergeProps({ref_for:!0},y),void 0,!0)])}))]),1032,["menuList"])]),_:2},1032,["index","style"])):b.show?(u.openBlock(),u.createBlock(v,{index:b.path,key:b.path,style:u.normalizeStyle(b.style),onClick:S=>a(b)},{title:u.withCtx(()=>[u.renderSlot(p.$slots,"title",{menu:b},void 0,!0)]),_:2},1032,["index","style","onClick"])):u.createCommentVNode("",!0)],64))),256))]),_:3},8,["mode","default-active","default-openeds"])}}}),Zr=ue._export_sfc(uf,[["__scopeId","data-v-6a992c79"]]),ff=Object.freeze(Object.defineProperty({__proto__:null,default:Zr},Symbol.toStringTag,{value:"Module"})),df={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},setup(n){const e=n,t=u.ref(e.value);return(i,s)=>{const o=u.resolveComponent("el-date-picker");return u.openBlock(),u.createBlock(o,{modelValue:t.value,"onUpdate:modelValue":s[0]||(s[0]=r=>t.value=r),type:"date",placeholder:"请选择日期",format:"YYYY-MM-DD",style:{width:"100%"}},null,8,["modelValue"])}}},pf={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},setup(n){const e=n,t=u.ref(e.value);return(i,s)=>{const o=u.resolveComponent("el-date-picker");return u.openBlock(),u.createBlock(o,{modelValue:t.value,"onUpdate:modelValue":s[0]||(s[0]=r=>t.value=r),type:"datetime",placeholder:"请选择时间",format:"YYYY-MM-DD HH:mm:ss",style:{width:"100%"}},null,8,["modelValue"])}}},gf={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},setup(n){const e=n,t=u.ref(e.value);return(i,s)=>{const o=u.resolveComponent("el-input");return u.openBlock(),u.createBlock(o,{modelValue:t.value,"onUpdate:modelValue":s[0]||(s[0]=r=>t.value=r),type:"textarea",placeholder:"请输入内容...",disabled:!(e!=null&&e.isEdit)},null,8,["modelValue","disabled"])}}},mf=ue._export_sfc(gf,[["__scopeId","data-v-e31bf677"]]),vf={class:"dialog-title"},wf={__name:"index",props:{title:{type:String,default:""},dialogWidth:{type:Number,default:600},visible:{type:Boolean,default:!1},fullScreen:{type:Boolean,default:!1},dialogHeight:{type:Number,default:600},showClose:{type:Boolean,default:!0}},emits:["beforeDestroy"],setup(n,{emit:e}){const t=n,i=e,s=u.ref(!1),o=()=>{i("beforeDestroy")};return u.watch(()=>t==null?void 0:t.visible,()=>{s.value=t==null?void 0:t.visible},{deep:!0,immediate:!0}),(r,l)=>{const a=u.resolveComponent("el-dialog");return u.openBlock(),u.createBlock(a,{modelValue:s.value,"onUpdate:modelValue":l[0]||(l[0]=h=>s.value=h),width:t==null?void 0:t.dialogWidth,"before-close":o,draggable:"",style:u.normalizeStyle({height:t==null?void 0:t.dialogHeight}),fullscreen:t==null?void 0:t.fullScreen,"destroy-on-close":!0,"show-close":t==null?void 0:t.showClose},{default:u.withCtx(()=>[u.renderSlot(r.$slots,"default",{},void 0,!0)]),header:u.withCtx(()=>[u.createElementVNode("div",vf,u.toDisplayString(t==null?void 0:t.title),1),u.renderSlot(r.$slots,"header",{},void 0,!0)]),footer:u.withCtx(()=>[u.renderSlot(r.$slots,"footer",{},void 0,!0)]),_:3},8,["modelValue","width","style","fullscreen","show-close"])}}},Ei=ue._export_sfc(wf,[["__scopeId","data-v-048a6610"]]);function xf(n){const e=sessionStorage.getItem("loginToken")??"123456";return ee.service({url:"/api/sysFile/uploadFile",method:"post",data:n,headers:{Authorization:e,"Content-Type":"multipart/form-data"}})}function bf(n){const e=sessionStorage.getItem("loginToken")??"123456";return ee.service({url:"/api/sysFile/uploadAvatar",method:"post",data:n,headers:{Authorization:e,"Content-Type":"multipart/form-data"}})}function yf(n){const e=sessionStorage.getItem("loginToken")??"123456";return ee.service({url:"/api/sysFile/uploadFile",method:"post",data:n,headers:{Authorization:e,"Content-Type":"multipart/form-data"}})}function el(n){const e=sessionStorage.getItem("loginToken")??"123456";return ee.service({url:"/api/sysFile/downloadFile",method:"post",data:n,headers:{Authorization:e,Accept:"application/octet-stream"},responseType:"blob"})}const kf={class:"txt-renderer"},Sf={class:"txt-wrapper"},Cf={__name:"index",props:{fileName:String,blobUrl:String},setup(n){const e=n,t=u.computed(()=>e.blobUrl),i=u.ref("");return u.watchEffect(async()=>{t.value;const o=await(await fetch(t.value)).blob(),r=new FileReader;r.onload=function(l){i.value=l.target.result},r.readAsText(o)}),(s,o)=>(u.openBlock(),u.createElementBlock("div",kf,[u.createElementVNode("pre",Sf,u.toDisplayString(i.value),1)]))}},_f=ue._export_sfc(Cf,[["__scopeId","data-v-fde812b6"]]),Of={class:"docx-renderer"},Mf={__name:"index",props:{fileName:String,blobUrl:String},setup(n){const e=n,t=u.computed(()=>e.blobUrl),i=u.ref(null);return u.watchEffect(async()=>{t.value;const o=await(await fetch(t.value)).blob();await Ct.renderAsync(o,i.value,null,{})}),(s,o)=>(u.openBlock(),u.createElementBlock("div",Of,[u.createElementVNode("div",{ref_key:"docxPreview",ref:i,class:"render-docx-wrappper"},null,512)]))}},Df=ue._export_sfc(Mf,[["__scopeId","data-v-78135a17"]]),Tf={class:"xlsx-renderer"},Af={__name:"index",props:{fileName:String,blobUrl:String},setup(n){const e=n,t=u.computed(()=>e.blobUrl),i=u.ref(null);return u.watchEffect(async()=>{t.value;const o=await(await fetch(t.value)).blob();i.value=Ct.Hg.init(document.getElementById("excel")),i.value.preview(o).then(()=>{console.log("预览完成")}).catch(r=>{console.log("预览失败",r)})}),(s,o)=>(u.openBlock(),u.createElementBlock("div",Tf,o[0]||(o[0]=[u.createElementVNode("div",{id:"excel"},null,-1)])))}},Bf=ue._export_sfc(Af,[["__scopeId","data-v-08dbfb73"]]),Pf={class:"pdf-renderer"},Ef=["src"],Vf={__name:"index",props:{fileName:String,blobUrl:String},setup(n){const e=n,t=u.computed(()=>e.blobUrl),i=u.ref("");return u.watchEffect(async()=>{t.value;const o=await(await fetch(t.value)).blob(),r=new Blob([o],{type:"application/pdf"}),l=URL.createObjectURL(r);i.value=l}),u.onUnmounted(()=>{i.value&&URL.revokeObjectURL(i.value)}),(s,o)=>(u.openBlock(),u.createElementBlock("div",Pf,[u.createElementVNode("iframe",{src:i.value,class:"pdf-iframe"},null,8,Ef)]))}},zf=ue._export_sfc(Vf,[["__scopeId","data-v-b4ab8c04"]]);let os=[],tl=[];(()=>{let n="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(e=>e?parseInt(e,36):1);for(let e=0,t=0;e<n.length;e++)(e%2?tl:os).push(t=t+n[e])})();function Lf(n){if(n<768)return!1;for(let e=0,t=os.length;;){let i=e+t>>1;if(n<os[i])t=i;else if(n>=tl[i])e=i+1;else return!0;if(e==t)return!1}}function G2(n){return n>=127462&&n<=127487}const j2=8205;function Nf(n,e,t=!0,i=!0){return(t?il:Rf)(n,e,i)}function il(n,e,t){if(e==n.length)return e;e&&nl(n.charCodeAt(e))&&sl(n.charCodeAt(e-1))&&e--;let i=Tn(n,e);for(e+=q2(i);e<n.length;){let s=Tn(n,e);if(i==j2||s==j2||t&&Lf(s))e+=q2(s),i=s;else if(G2(s)){let o=0,r=e-2;for(;r>=0&&G2(Tn(n,r));)o++,r-=2;if(o%2==0)break;e+=2}else break}return e}function Rf(n,e,t){for(;e>0;){let i=il(n,e-2,t);if(i<e)return i;e--}return 0}function Tn(n,e){let t=n.charCodeAt(e);if(!sl(t)||e+1==n.length)return t;let i=n.charCodeAt(e+1);return nl(i)?(t-55296<<10)+(i-56320)+65536:t}function nl(n){return n>=56320&&n<57344}function sl(n){return n>=55296&&n<56320}function q2(n){return n<65536?1:2}class Y{lineAt(e){if(e<0||e>this.length)throw new RangeError(`Invalid position ${e} in document of length ${this.length}`);return this.lineInner(e,!1,1,0)}line(e){if(e<1||e>this.lines)throw new RangeError(`Invalid line number ${e} in ${this.lines}-line document`);return this.lineInner(e,!0,1,0)}replace(e,t,i){[e,t]=oi(this,e,t);let s=[];return this.decompose(0,e,s,2),i.length&&i.decompose(0,i.length,s,3),this.decompose(t,this.length,s,1),et.from(s,this.length-(t-e)+i.length)}append(e){return this.replace(this.length,this.length,e)}slice(e,t=this.length){[e,t]=oi(this,e,t);let i=[];return this.decompose(e,t,i,0),et.from(i,t-e)}eq(e){if(e==this)return!0;if(e.length!=this.length||e.lines!=this.lines)return!1;let t=this.scanIdentical(e,1),i=this.length-this.scanIdentical(e,-1),s=new Oi(this),o=new Oi(e);for(let r=t,l=t;;){if(s.next(r),o.next(r),r=0,s.lineBreak!=o.lineBreak||s.done!=o.done||s.value!=o.value)return!1;if(l+=s.value.length,s.done||l>=i)return!0}}iter(e=1){return new Oi(this,e)}iterRange(e,t=this.length){return new ol(this,e,t)}iterLines(e,t){let i;if(e==null)i=this.iter();else{t==null&&(t=this.lines+1);let s=this.line(e).from;i=this.iterRange(s,Math.max(s,t==this.lines+1?this.length:t<=1?0:this.line(t-1).to))}return new rl(i)}toString(){return this.sliceString(0)}toJSON(){let e=[];return this.flatten(e),e}constructor(){}static of(e){if(e.length==0)throw new RangeError("A document must have at least one line");return e.length==1&&!e[0]?Y.empty:e.length<=32?new le(e):et.from(le.split(e,[]))}}class le extends Y{constructor(e,t=If(e)){super(),this.text=e,this.length=t}get lines(){return this.text.length}get children(){return null}lineInner(e,t,i,s){for(let o=0;;o++){let r=this.text[o],l=s+r.length;if((t?i:l)>=e)return new Hf(s,l,i,r);s=l+1,i++}}decompose(e,t,i,s){let o=e<=0&&t>=this.length?this:new le(U2(this.text,e,t),Math.min(t,this.length)-Math.max(0,e));if(s&1){let r=i.pop(),l=O0(o.text,r.text.slice(),0,o.length);if(l.length<=32)i.push(new le(l,r.length+o.length));else{let a=l.length>>1;i.push(new le(l.slice(0,a)),new le(l.slice(a)))}}else i.push(o)}replace(e,t,i){if(!(i instanceof le))return super.replace(e,t,i);[e,t]=oi(this,e,t);let s=O0(this.text,O0(i.text,U2(this.text,0,e)),t),o=this.length+i.length-(t-e);return s.length<=32?new le(s,o):et.from(le.split(s,[]),o)}sliceString(e,t=this.length,i=`
|
|
2
|
+
`){[e,t]=oi(this,e,t);let s="";for(let o=0,r=0;o<=t&&r<this.text.length;r++){let l=this.text[r],a=o+l.length;o>e&&r&&(s+=i),e<a&&t>o&&(s+=l.slice(Math.max(0,e-o),t-o)),o=a+1}return s}flatten(e){for(let t of this.text)e.push(t)}scanIdentical(){return 0}static split(e,t){let i=[],s=-1;for(let o of e)i.push(o),s+=o.length+1,i.length==32&&(t.push(new le(i,s)),i=[],s=-1);return s>-1&&t.push(new le(i,s)),t}}class et extends Y{constructor(e,t){super(),this.children=e,this.length=t,this.lines=0;for(let i of e)this.lines+=i.lines}lineInner(e,t,i,s){for(let o=0;;o++){let r=this.children[o],l=s+r.length,a=i+r.lines-1;if((t?a:l)>=e)return r.lineInner(e,t,i,s);s=l+1,i=a+1}}decompose(e,t,i,s){for(let o=0,r=0;r<=t&&o<this.children.length;o++){let l=this.children[o],a=r+l.length;if(e<=a&&t>=r){let h=s&((r<=e?1:0)|(a>=t?2:0));r>=e&&a<=t&&!h?i.push(l):l.decompose(e-r,t-r,i,h)}r=a+1}}replace(e,t,i){if([e,t]=oi(this,e,t),i.lines<this.lines)for(let s=0,o=0;s<this.children.length;s++){let r=this.children[s],l=o+r.length;if(e>=o&&t<=l){let a=r.replace(e-o,t-o,i),h=this.lines-r.lines+a.lines;if(a.lines<h>>4&&a.lines>h>>6){let c=this.children.slice();return c[s]=a,new et(c,this.length-(t-e)+i.length)}return super.replace(o,l,a)}o=l+1}return super.replace(e,t,i)}sliceString(e,t=this.length,i=`
|
|
3
|
+
`){[e,t]=oi(this,e,t);let s="";for(let o=0,r=0;o<this.children.length&&r<=t;o++){let l=this.children[o],a=r+l.length;r>e&&o&&(s+=i),e<a&&t>r&&(s+=l.sliceString(e-r,t-r,i)),r=a+1}return s}flatten(e){for(let t of this.children)t.flatten(e)}scanIdentical(e,t){if(!(e instanceof et))return 0;let i=0,[s,o,r,l]=t>0?[0,0,this.children.length,e.children.length]:[this.children.length-1,e.children.length-1,-1,-1];for(;;s+=t,o+=t){if(s==r||o==l)return i;let a=this.children[s],h=e.children[o];if(a!=h)return i+a.scanIdentical(h,t);i+=a.length+1}}static from(e,t=e.reduce((i,s)=>i+s.length+1,-1)){let i=0;for(let p of e)i+=p.lines;if(i<32){let p=[];for(let g of e)g.flatten(p);return new le(p,t)}let s=Math.max(32,i>>5),o=s<<1,r=s>>1,l=[],a=0,h=-1,c=[];function f(p){let g;if(p.lines>o&&p instanceof et)for(let m of p.children)f(m);else p.lines>r&&(a>r||!a)?(d(),l.push(p)):p instanceof le&&a&&(g=c[c.length-1])instanceof le&&p.lines+g.lines<=32?(a+=p.lines,h+=p.length+1,c[c.length-1]=new le(g.text.concat(p.text),g.length+1+p.length)):(a+p.lines>s&&d(),a+=p.lines,h+=p.length+1,c.push(p))}function d(){a!=0&&(l.push(c.length==1?c[0]:et.from(c,h)),h=-1,a=c.length=0)}for(let p of e)f(p);return d(),l.length==1?l[0]:new et(l,t)}}Y.empty=new le([""],0);function If(n){let e=-1;for(let t of n)e+=t.length+1;return e}function O0(n,e,t=0,i=1e9){for(let s=0,o=0,r=!0;o<n.length&&s<=i;o++){let l=n[o],a=s+l.length;a>=t&&(a>i&&(l=l.slice(0,i-s)),s<t&&(l=l.slice(t-s)),r?(e[e.length-1]+=l,r=!1):e.push(l)),s=a+1}return e}function U2(n,e,t){return O0(n,[""],e,t)}class Oi{constructor(e,t=1){this.dir=t,this.done=!1,this.lineBreak=!1,this.value="",this.nodes=[e],this.offsets=[t>0?1:(e instanceof le?e.text.length:e.children.length)<<1]}nextInner(e,t){for(this.done=this.lineBreak=!1;;){let i=this.nodes.length-1,s=this.nodes[i],o=this.offsets[i],r=o>>1,l=s instanceof le?s.text.length:s.children.length;if(r==(t>0?l:0)){if(i==0)return this.done=!0,this.value="",this;t>0&&this.offsets[i-1]++,this.nodes.pop(),this.offsets.pop()}else if((o&1)==(t>0?0:1)){if(this.offsets[i]+=t,e==0)return this.lineBreak=!0,this.value=`
|
|
4
|
+
`,this;e--}else if(s instanceof le){let a=s.text[r+(t<0?-1:0)];if(this.offsets[i]+=t,a.length>Math.max(0,e))return this.value=e==0?a:t>0?a.slice(e):a.slice(0,a.length-e),this;e-=a.length}else{let a=s.children[r+(t<0?-1:0)];e>a.length?(e-=a.length,this.offsets[i]+=t):(t<0&&this.offsets[i]--,this.nodes.push(a),this.offsets.push(t>0?1:(a instanceof le?a.text.length:a.children.length)<<1))}}}next(e=0){return e<0&&(this.nextInner(-e,-this.dir),e=this.value.length),this.nextInner(e,this.dir)}}class ol{constructor(e,t,i){this.value="",this.done=!1,this.cursor=new Oi(e,t>i?-1:1),this.pos=t>i?e.length:0,this.from=Math.min(t,i),this.to=Math.max(t,i)}nextInner(e,t){if(t<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;e+=Math.max(0,t<0?this.pos-this.to:this.from-this.pos);let i=t<0?this.pos-this.from:this.to-this.pos;e>i&&(e=i),i-=e;let{value:s}=this.cursor.next(e);return this.pos+=(s.length+e)*t,this.value=s.length<=i?s:t<0?s.slice(s.length-i):s.slice(0,i),this.done=!this.value,this}next(e=0){return e<0?e=Math.max(e,this.from-this.pos):e>0&&(e=Math.min(e,this.to-this.pos)),this.nextInner(e,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&this.value!=""}}class rl{constructor(e){this.inner=e,this.afterBreak=!0,this.value="",this.done=!1}next(e=0){let{done:t,lineBreak:i,value:s}=this.inner.next(e);return t&&this.afterBreak?(this.value="",this.afterBreak=!1):t?(this.done=!0,this.value=""):i?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=s,this.afterBreak=!1),this}get lineBreak(){return!1}}typeof Symbol<"u"&&(Y.prototype[Symbol.iterator]=function(){return this.iter()},Oi.prototype[Symbol.iterator]=ol.prototype[Symbol.iterator]=rl.prototype[Symbol.iterator]=function(){return this});class Hf{constructor(e,t,i,s){this.from=e,this.to=t,this.number=i,this.text=s}get length(){return this.to-this.from}}function oi(n,e,t){return e=Math.max(0,Math.min(n.length,e)),[e,Math.max(e,Math.min(n.length,t))]}function xe(n,e,t=!0,i=!0){return Nf(n,e,t,i)}function $f(n){return n>=56320&&n<57344}function Wf(n){return n>=55296&&n<56320}function Te(n,e){let t=n.charCodeAt(e);if(!Wf(t)||e+1==n.length)return t;let i=n.charCodeAt(e+1);return $f(i)?(t-55296<<10)+(i-56320)+65536:t}function i2(n){return n<=65535?String.fromCharCode(n):(n-=65536,String.fromCharCode((n>>10)+55296,(n&1023)+56320))}function tt(n){return n<65536?1:2}const rs=/\r\n?|\n/;var Ce=function(n){return n[n.Simple=0]="Simple",n[n.TrackDel=1]="TrackDel",n[n.TrackBefore=2]="TrackBefore",n[n.TrackAfter=3]="TrackAfter",n}(Ce||(Ce={}));class ot{constructor(e){this.sections=e}get length(){let e=0;for(let t=0;t<this.sections.length;t+=2)e+=this.sections[t];return e}get newLength(){let e=0;for(let t=0;t<this.sections.length;t+=2){let i=this.sections[t+1];e+=i<0?this.sections[t]:i}return e}get empty(){return this.sections.length==0||this.sections.length==2&&this.sections[1]<0}iterGaps(e){for(let t=0,i=0,s=0;t<this.sections.length;){let o=this.sections[t++],r=this.sections[t++];r<0?(e(i,s,o),s+=o):s+=r,i+=o}}iterChangedRanges(e,t=!1){ls(this,e,t)}get invertedDesc(){let e=[];for(let t=0;t<this.sections.length;){let i=this.sections[t++],s=this.sections[t++];s<0?e.push(i,s):e.push(s,i)}return new ot(e)}composeDesc(e){return this.empty?e:e.empty?this:ll(this,e)}mapDesc(e,t=!1){return e.empty?this:as(this,e,t)}mapPos(e,t=-1,i=Ce.Simple){let s=0,o=0;for(let r=0;r<this.sections.length;){let l=this.sections[r++],a=this.sections[r++],h=s+l;if(a<0){if(h>e)return o+(e-s);o+=l}else{if(i!=Ce.Simple&&h>=e&&(i==Ce.TrackDel&&s<e&&h>e||i==Ce.TrackBefore&&s<e||i==Ce.TrackAfter&&h>e))return null;if(h>e||h==e&&t<0&&!l)return e==s||t<0?o:o+a;o+=a}s=h}if(e>s)throw new RangeError(`Position ${e} is out of range for changeset of length ${s}`);return o}touchesRange(e,t=e){for(let i=0,s=0;i<this.sections.length&&s<=t;){let o=this.sections[i++],r=this.sections[i++],l=s+o;if(r>=0&&s<=t&&l>=e)return s<e&&l>t?"cover":!0;s=l}return!1}toString(){let e="";for(let t=0;t<this.sections.length;){let i=this.sections[t++],s=this.sections[t++];e+=(e?" ":"")+i+(s>=0?":"+s:"")}return e}toJSON(){return this.sections}static fromJSON(e){if(!Array.isArray(e)||e.length%2||e.some(t=>typeof t!="number"))throw new RangeError("Invalid JSON representation of ChangeDesc");return new ot(e)}static create(e){return new ot(e)}}class fe extends ot{constructor(e,t){super(e),this.inserted=t}apply(e){if(this.length!=e.length)throw new RangeError("Applying change set to a document with the wrong length");return ls(this,(t,i,s,o,r)=>e=e.replace(s,s+(i-t),r),!1),e}mapDesc(e,t=!1){return as(this,e,t,!0)}invert(e){let t=this.sections.slice(),i=[];for(let s=0,o=0;s<t.length;s+=2){let r=t[s],l=t[s+1];if(l>=0){t[s]=l,t[s+1]=r;let a=s>>1;for(;i.length<a;)i.push(Y.empty);i.push(r?e.slice(o,o+r):Y.empty)}o+=r}return new fe(t,i)}compose(e){return this.empty?e:e.empty?this:ll(this,e,!0)}map(e,t=!1){return e.empty?this:as(this,e,t,!0)}iterChanges(e,t=!1){ls(this,e,t)}get desc(){return ot.create(this.sections)}filter(e){let t=[],i=[],s=[],o=new Vi(this);e:for(let r=0,l=0;;){let a=r==e.length?1e9:e[r++];for(;l<a||l==a&&o.len==0;){if(o.done)break e;let c=Math.min(o.len,a-l);ye(s,c,-1);let f=o.ins==-1?-1:o.off==0?o.ins:0;ye(t,c,f),f>0&&xt(i,t,o.text),o.forward(c),l+=c}let h=e[r++];for(;l<h;){if(o.done)break e;let c=Math.min(o.len,h-l);ye(t,c,-1),ye(s,c,o.ins==-1?-1:o.off==0?o.ins:0),o.forward(c),l+=c}}return{changes:new fe(t,i),filtered:ot.create(s)}}toJSON(){let e=[];for(let t=0;t<this.sections.length;t+=2){let i=this.sections[t],s=this.sections[t+1];s<0?e.push(i):s==0?e.push([i]):e.push([i].concat(this.inserted[t>>1].toJSON()))}return e}static of(e,t,i){let s=[],o=[],r=0,l=null;function a(c=!1){if(!c&&!s.length)return;r<t&&ye(s,t-r,-1);let f=new fe(s,o);l=l?l.compose(f.map(l)):f,s=[],o=[],r=0}function h(c){if(Array.isArray(c))for(let f of c)h(f);else if(c instanceof fe){if(c.length!=t)throw new RangeError(`Mismatched change set length (got ${c.length}, expected ${t})`);a(),l=l?l.compose(c.map(l)):c}else{let{from:f,to:d=f,insert:p}=c;if(f>d||f<0||d>t)throw new RangeError(`Invalid change range ${f} to ${d} (in doc of length ${t})`);let g=p?typeof p=="string"?Y.of(p.split(i||rs)):p:Y.empty,m=g.length;if(f==d&&m==0)return;f<r&&a(),f>r&&ye(s,f-r,-1),ye(s,d-f,m),xt(o,s,g),r=d}}return h(e),a(!l),l}static empty(e){return new fe(e?[e,-1]:[],[])}static fromJSON(e){if(!Array.isArray(e))throw new RangeError("Invalid JSON representation of ChangeSet");let t=[],i=[];for(let s=0;s<e.length;s++){let o=e[s];if(typeof o=="number")t.push(o,-1);else{if(!Array.isArray(o)||typeof o[0]!="number"||o.some((r,l)=>l&&typeof r!="string"))throw new RangeError("Invalid JSON representation of ChangeSet");if(o.length==1)t.push(o[0],0);else{for(;i.length<s;)i.push(Y.empty);i[s]=Y.of(o.slice(1)),t.push(o[0],i[s].length)}}}return new fe(t,i)}static createSet(e,t){return new fe(e,t)}}function ye(n,e,t,i=!1){if(e==0&&t<=0)return;let s=n.length-2;s>=0&&t<=0&&t==n[s+1]?n[s]+=e:s>=0&&e==0&&n[s]==0?n[s+1]+=t:i?(n[s]+=e,n[s+1]+=t):n.push(e,t)}function xt(n,e,t){if(t.length==0)return;let i=e.length-2>>1;if(i<n.length)n[n.length-1]=n[n.length-1].append(t);else{for(;n.length<i;)n.push(Y.empty);n.push(t)}}function ls(n,e,t){let i=n.inserted;for(let s=0,o=0,r=0;r<n.sections.length;){let l=n.sections[r++],a=n.sections[r++];if(a<0)s+=l,o+=l;else{let h=s,c=o,f=Y.empty;for(;h+=l,c+=a,a&&i&&(f=f.append(i[r-2>>1])),!(t||r==n.sections.length||n.sections[r+1]<0);)l=n.sections[r++],a=n.sections[r++];e(s,h,o,c,f),s=h,o=c}}}function as(n,e,t,i=!1){let s=[],o=i?[]:null,r=new Vi(n),l=new Vi(e);for(let a=-1;;){if(r.done&&l.len||l.done&&r.len)throw new Error("Mismatched change set lengths");if(r.ins==-1&&l.ins==-1){let h=Math.min(r.len,l.len);ye(s,h,-1),r.forward(h),l.forward(h)}else if(l.ins>=0&&(r.ins<0||a==r.i||r.off==0&&(l.len<r.len||l.len==r.len&&!t))){let h=l.len;for(ye(s,l.ins,-1);h;){let c=Math.min(r.len,h);r.ins>=0&&a<r.i&&r.len<=c&&(ye(s,0,r.ins),o&&xt(o,s,r.text),a=r.i),r.forward(c),h-=c}l.next()}else if(r.ins>=0){let h=0,c=r.len;for(;c;)if(l.ins==-1){let f=Math.min(c,l.len);h+=f,c-=f,l.forward(f)}else if(l.ins==0&&l.len<c)c-=l.len,l.next();else break;ye(s,h,a<r.i?r.ins:0),o&&a<r.i&&xt(o,s,r.text),a=r.i,r.forward(r.len-c)}else{if(r.done&&l.done)return o?fe.createSet(s,o):ot.create(s);throw new Error("Mismatched change set lengths")}}}function ll(n,e,t=!1){let i=[],s=t?[]:null,o=new Vi(n),r=new Vi(e);for(let l=!1;;){if(o.done&&r.done)return s?fe.createSet(i,s):ot.create(i);if(o.ins==0)ye(i,o.len,0,l),o.next();else if(r.len==0&&!r.done)ye(i,0,r.ins,l),s&&xt(s,i,r.text),r.next();else{if(o.done||r.done)throw new Error("Mismatched change set lengths");{let a=Math.min(o.len2,r.len),h=i.length;if(o.ins==-1){let c=r.ins==-1?-1:r.off?0:r.ins;ye(i,a,c,l),s&&c&&xt(s,i,r.text)}else r.ins==-1?(ye(i,o.off?0:o.len,a,l),s&&xt(s,i,o.textBit(a))):(ye(i,o.off?0:o.len,r.off?0:r.ins,l),s&&!r.off&&xt(s,i,r.text));l=(o.ins>a||r.ins>=0&&r.len>a)&&(l||i.length>h),o.forward2(a),r.forward(a)}}}}class Vi{constructor(e){this.set=e,this.i=0,this.next()}next(){let{sections:e}=this.set;this.i<e.length?(this.len=e[this.i++],this.ins=e[this.i++]):(this.len=0,this.ins=-2),this.off=0}get done(){return this.ins==-2}get len2(){return this.ins<0?this.len:this.ins}get text(){let{inserted:e}=this.set,t=this.i-2>>1;return t>=e.length?Y.empty:e[t]}textBit(e){let{inserted:t}=this.set,i=this.i-2>>1;return i>=t.length&&!e?Y.empty:t[i].slice(this.off,e==null?void 0:this.off+e)}forward(e){e==this.len?this.next():(this.len-=e,this.off+=e)}forward2(e){this.ins==-1?this.forward(e):e==this.ins?this.next():(this.ins-=e,this.off+=e)}}class Lt{constructor(e,t,i){this.from=e,this.to=t,this.flags=i}get anchor(){return this.flags&32?this.to:this.from}get head(){return this.flags&32?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return this.flags&8?-1:this.flags&16?1:0}get bidiLevel(){let e=this.flags&7;return e==7?null:e}get goalColumn(){let e=this.flags>>6;return e==16777215?void 0:e}map(e,t=-1){let i,s;return this.empty?i=s=e.mapPos(this.from,t):(i=e.mapPos(this.from,1),s=e.mapPos(this.to,-1)),i==this.from&&s==this.to?this:new Lt(i,s,this.flags)}extend(e,t=e){if(e<=this.anchor&&t>=this.anchor)return O.range(e,t);let i=Math.abs(e-this.anchor)>Math.abs(t-this.anchor)?e:t;return O.range(this.anchor,i)}eq(e,t=!1){return this.anchor==e.anchor&&this.head==e.head&&(!t||!this.empty||this.assoc==e.assoc)}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(e){if(!e||typeof e.anchor!="number"||typeof e.head!="number")throw new RangeError("Invalid JSON representation for SelectionRange");return O.range(e.anchor,e.head)}static create(e,t,i){return new Lt(e,t,i)}}class O{constructor(e,t){this.ranges=e,this.mainIndex=t}map(e,t=-1){return e.empty?this:O.create(this.ranges.map(i=>i.map(e,t)),this.mainIndex)}eq(e,t=!1){if(this.ranges.length!=e.ranges.length||this.mainIndex!=e.mainIndex)return!1;for(let i=0;i<this.ranges.length;i++)if(!this.ranges[i].eq(e.ranges[i],t))return!1;return!0}get main(){return this.ranges[this.mainIndex]}asSingle(){return this.ranges.length==1?this:new O([this.main],0)}addRange(e,t=!0){return O.create([e].concat(this.ranges),t?0:this.mainIndex+1)}replaceRange(e,t=this.mainIndex){let i=this.ranges.slice();return i[t]=e,O.create(i,this.mainIndex)}toJSON(){return{ranges:this.ranges.map(e=>e.toJSON()),main:this.mainIndex}}static fromJSON(e){if(!e||!Array.isArray(e.ranges)||typeof e.main!="number"||e.main>=e.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new O(e.ranges.map(t=>Lt.fromJSON(t)),e.main)}static single(e,t=e){return new O([O.range(e,t)],0)}static create(e,t=0){if(e.length==0)throw new RangeError("A selection needs at least one range");for(let i=0,s=0;s<e.length;s++){let o=e[s];if(o.empty?o.from<=i:o.from<i)return O.normalized(e.slice(),t);i=o.to}return new O(e,t)}static cursor(e,t=0,i,s){return Lt.create(e,e,(t==0?0:t<0?8:16)|(i==null?7:Math.min(6,i))|(s??16777215)<<6)}static range(e,t,i,s){let o=(i??16777215)<<6|(s==null?7:Math.min(6,s));return t<e?Lt.create(t,e,48|o):Lt.create(e,t,(t>e?8:0)|o)}static normalized(e,t=0){let i=e[t];e.sort((s,o)=>s.from-o.from),t=e.indexOf(i);for(let s=1;s<e.length;s++){let o=e[s],r=e[s-1];if(o.empty?o.from<=r.to:o.from<r.to){let l=r.from,a=Math.max(o.to,r.to);s<=t&&t--,e.splice(--s,2,o.anchor>o.head?O.range(a,l):O.range(l,a))}}return new O(e,t)}}function al(n,e){for(let t of n.ranges)if(t.to>e)throw new RangeError("Selection points outside of document")}let n2=0;class L{constructor(e,t,i,s,o){this.combine=e,this.compareInput=t,this.compare=i,this.isStatic=s,this.id=n2++,this.default=e([]),this.extensions=typeof o=="function"?o(this):o}get reader(){return this}static define(e={}){return new L(e.combine||(t=>t),e.compareInput||((t,i)=>t===i),e.compare||(e.combine?(t,i)=>t===i:s2),!!e.static,e.enables)}of(e){return new M0([],this,0,e)}compute(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new M0(e,this,1,t)}computeN(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new M0(e,this,2,t)}from(e,t){return t||(t=i=>i),this.compute([e],i=>t(i.field(e)))}}function s2(n,e){return n==e||n.length==e.length&&n.every((t,i)=>t===e[i])}class M0{constructor(e,t,i,s){this.dependencies=e,this.facet=t,this.type=i,this.value=s,this.id=n2++}dynamicSlot(e){var t;let i=this.value,s=this.facet.compareInput,o=this.id,r=e[o]>>1,l=this.type==2,a=!1,h=!1,c=[];for(let f of this.dependencies)f=="doc"?a=!0:f=="selection"?h=!0:(((t=e[f.id])!==null&&t!==void 0?t:1)&1)==0&&c.push(e[f.id]);return{create(f){return f.values[r]=i(f),1},update(f,d){if(a&&d.docChanged||h&&(d.docChanged||d.selection)||cs(f,c)){let p=i(f);if(l?!Y2(p,f.values[r],s):!s(p,f.values[r]))return f.values[r]=p,1}return 0},reconfigure:(f,d)=>{let p,g=d.config.address[o];if(g!=null){let m=H0(d,g);if(this.dependencies.every(v=>v instanceof L?d.facet(v)===f.facet(v):v instanceof be?d.field(v,!1)==f.field(v,!1):!0)||(l?Y2(p=i(f),m,s):s(p=i(f),m)))return f.values[r]=m,0}else p=i(f);return f.values[r]=p,1}}}}function Y2(n,e,t){if(n.length!=e.length)return!1;for(let i=0;i<n.length;i++)if(!t(n[i],e[i]))return!1;return!0}function cs(n,e){let t=!1;for(let i of e)Mi(n,i)&1&&(t=!0);return t}function Ff(n,e,t){let i=t.map(a=>n[a.id]),s=t.map(a=>a.type),o=i.filter(a=>!(a&1)),r=n[e.id]>>1;function l(a){let h=[];for(let c=0;c<i.length;c++){let f=H0(a,i[c]);if(s[c]==2)for(let d of f)h.push(d);else h.push(f)}return e.combine(h)}return{create(a){for(let h of i)Mi(a,h);return a.values[r]=l(a),1},update(a,h){if(!cs(a,o))return 0;let c=l(a);return e.compare(c,a.values[r])?0:(a.values[r]=c,1)},reconfigure(a,h){let c=cs(a,i),f=h.config.facets[e.id],d=h.facet(e);if(f&&!c&&s2(t,f))return a.values[r]=d,0;let p=l(a);return e.compare(p,d)?(a.values[r]=d,0):(a.values[r]=p,1)}}}const i0=L.define({static:!0});class be{constructor(e,t,i,s,o){this.id=e,this.createF=t,this.updateF=i,this.compareF=s,this.spec=o,this.provides=void 0}static define(e){let t=new be(n2++,e.create,e.update,e.compare||((i,s)=>i===s),e);return e.provide&&(t.provides=e.provide(t)),t}create(e){let t=e.facet(i0).find(i=>i.field==this);return((t==null?void 0:t.create)||this.createF)(e)}slot(e){let t=e[this.id]>>1;return{create:i=>(i.values[t]=this.create(i),1),update:(i,s)=>{let o=i.values[t],r=this.updateF(o,s);return this.compareF(o,r)?0:(i.values[t]=r,1)},reconfigure:(i,s)=>{let o=i.facet(i0),r=s.facet(i0),l;return(l=o.find(a=>a.field==this))&&l!=r.find(a=>a.field==this)?(i.values[t]=l.create(i),1):s.config.address[this.id]!=null?(i.values[t]=s.field(this),0):(i.values[t]=this.create(i),1)}}}init(e){return[this,i0.of({field:this,create:e})]}get extension(){return this}}const Vt={lowest:4,low:3,default:2,high:1,highest:0};function mi(n){return e=>new cl(e,n)}const jt={highest:mi(Vt.highest),high:mi(Vt.high),default:mi(Vt.default),low:mi(Vt.low),lowest:mi(Vt.lowest)};class cl{constructor(e,t){this.inner=e,this.prec=t}}class gn{of(e){return new hs(this,e)}reconfigure(e){return gn.reconfigure.of({compartment:this,extension:e})}get(e){return e.config.compartments.get(this)}}class hs{constructor(e,t){this.compartment=e,this.inner=t}}class I0{constructor(e,t,i,s,o,r){for(this.base=e,this.compartments=t,this.dynamicSlots=i,this.address=s,this.staticValues=o,this.facets=r,this.statusTemplate=[];this.statusTemplate.length<i.length;)this.statusTemplate.push(0)}staticFacet(e){let t=this.address[e.id];return t==null?e.default:this.staticValues[t>>1]}static resolve(e,t,i){let s=[],o=Object.create(null),r=new Map;for(let d of Gf(e,t,r))d instanceof be?s.push(d):(o[d.facet.id]||(o[d.facet.id]=[])).push(d);let l=Object.create(null),a=[],h=[];for(let d of s)l[d.id]=h.length<<1,h.push(p=>d.slot(p));let c=i==null?void 0:i.config.facets;for(let d in o){let p=o[d],g=p[0].facet,m=c&&c[d]||[];if(p.every(v=>v.type==0))if(l[g.id]=a.length<<1|1,s2(m,p))a.push(i.facet(g));else{let v=g.combine(p.map(w=>w.value));a.push(i&&g.compare(v,i.facet(g))?i.facet(g):v)}else{for(let v of p)v.type==0?(l[v.id]=a.length<<1|1,a.push(v.value)):(l[v.id]=h.length<<1,h.push(w=>v.dynamicSlot(w)));l[g.id]=h.length<<1,h.push(v=>Ff(v,g,p))}}let f=h.map(d=>d(l));return new I0(e,r,f,l,a,o)}}function Gf(n,e,t){let i=[[],[],[],[],[]],s=new Map;function o(r,l){let a=s.get(r);if(a!=null){if(a<=l)return;let h=i[a].indexOf(r);h>-1&&i[a].splice(h,1),r instanceof hs&&t.delete(r.compartment)}if(s.set(r,l),Array.isArray(r))for(let h of r)o(h,l);else if(r instanceof hs){if(t.has(r.compartment))throw new RangeError("Duplicate use of compartment in extensions");let h=e.get(r.compartment)||r.inner;t.set(r.compartment,h),o(h,l)}else if(r instanceof cl)o(r.inner,r.prec);else if(r instanceof be)i[l].push(r),r.provides&&o(r.provides,l);else if(r instanceof M0)i[l].push(r),r.facet.extensions&&o(r.facet.extensions,Vt.default);else{let h=r.extension;if(!h)throw new Error(`Unrecognized extension value in extension set (${r}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);o(h,l)}}return o(n,Vt.default),i.reduce((r,l)=>r.concat(l))}function Mi(n,e){if(e&1)return 2;let t=e>>1,i=n.status[t];if(i==4)throw new Error("Cyclic dependency between fields and/or facets");if(i&2)return i;n.status[t]=4;let s=n.computeSlot(n,n.config.dynamicSlots[t]);return n.status[t]=2|s}function H0(n,e){return e&1?n.config.staticValues[e>>1]:n.values[e>>1]}const hl=L.define(),us=L.define({combine:n=>n.some(e=>e),static:!0}),ul=L.define({combine:n=>n.length?n[0]:void 0,static:!0}),fl=L.define(),dl=L.define(),pl=L.define(),gl=L.define({combine:n=>n.length?n[0]:!1});class gt{constructor(e,t){this.type=e,this.value=t}static define(){return new jf}}class jf{of(e){return new gt(this,e)}}class qf{constructor(e){this.map=e}of(e){return new G(this,e)}}class G{constructor(e,t){this.type=e,this.value=t}map(e){let t=this.type.map(this.value,e);return t===void 0?void 0:t==this.value?this:new G(this.type,t)}is(e){return this.type==e}static define(e={}){return new qf(e.map||(t=>t))}static mapEffects(e,t){if(!e.length)return e;let i=[];for(let s of e){let o=s.map(t);o&&i.push(o)}return i}}G.reconfigure=G.define();G.appendConfig=G.define();class de{constructor(e,t,i,s,o,r){this.startState=e,this.changes=t,this.selection=i,this.effects=s,this.annotations=o,this.scrollIntoView=r,this._doc=null,this._state=null,i&&al(i,t.newLength),o.some(l=>l.type==de.time)||(this.annotations=o.concat(de.time.of(Date.now())))}static create(e,t,i,s,o,r){return new de(e,t,i,s,o,r)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(e){for(let t of this.annotations)if(t.type==e)return t.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(e){let t=this.annotation(de.userEvent);return!!(t&&(t==e||t.length>e.length&&t.slice(0,e.length)==e&&t[e.length]=="."))}}de.time=gt.define();de.userEvent=gt.define();de.addToHistory=gt.define();de.remote=gt.define();function Uf(n,e){let t=[];for(let i=0,s=0;;){let o,r;if(i<n.length&&(s==e.length||e[s]>=n[i]))o=n[i++],r=n[i++];else if(s<e.length)o=e[s++],r=e[s++];else return t;!t.length||t[t.length-1]<o?t.push(o,r):t[t.length-1]<r&&(t[t.length-1]=r)}}function ml(n,e,t){var i;let s,o,r;return t?(s=e.changes,o=fe.empty(e.changes.length),r=n.changes.compose(e.changes)):(s=e.changes.map(n.changes),o=n.changes.mapDesc(e.changes,!0),r=n.changes.compose(s)),{changes:r,selection:e.selection?e.selection.map(o):(i=n.selection)===null||i===void 0?void 0:i.map(s),effects:G.mapEffects(n.effects,s).concat(G.mapEffects(e.effects,o)),annotations:n.annotations.length?n.annotations.concat(e.annotations):e.annotations,scrollIntoView:n.scrollIntoView||e.scrollIntoView}}function fs(n,e,t){let i=e.selection,s=Zt(e.annotations);return e.userEvent&&(s=s.concat(de.userEvent.of(e.userEvent))),{changes:e.changes instanceof fe?e.changes:fe.of(e.changes||[],t,n.facet(ul)),selection:i&&(i instanceof O?i:O.single(i.anchor,i.head)),effects:Zt(e.effects),annotations:s,scrollIntoView:!!e.scrollIntoView}}function vl(n,e,t){let i=fs(n,e.length?e[0]:{},n.doc.length);e.length&&e[0].filter===!1&&(t=!1);for(let o=1;o<e.length;o++){e[o].filter===!1&&(t=!1);let r=!!e[o].sequential;i=ml(i,fs(n,e[o],r?i.changes.newLength:n.doc.length),r)}let s=de.create(n,i.changes,i.selection,i.effects,i.annotations,i.scrollIntoView);return Kf(t?Yf(s):s)}function Yf(n){let e=n.startState,t=!0;for(let s of e.facet(fl)){let o=s(n);if(o===!1){t=!1;break}Array.isArray(o)&&(t=t===!0?o:Uf(t,o))}if(t!==!0){let s,o;if(t===!1)o=n.changes.invertedDesc,s=fe.empty(e.doc.length);else{let r=n.changes.filter(t);s=r.changes,o=r.filtered.mapDesc(r.changes).invertedDesc}n=de.create(e,s,n.selection&&n.selection.map(o),G.mapEffects(n.effects,o),n.annotations,n.scrollIntoView)}let i=e.facet(dl);for(let s=i.length-1;s>=0;s--){let o=i[s](n);o instanceof de?n=o:Array.isArray(o)&&o.length==1&&o[0]instanceof de?n=o[0]:n=vl(e,Zt(o),!1)}return n}function Kf(n){let e=n.startState,t=e.facet(pl),i=n;for(let s=t.length-1;s>=0;s--){let o=t[s](n);o&&Object.keys(o).length&&(i=ml(i,fs(e,o,n.changes.newLength),!0))}return i==n?n:de.create(e,n.changes,n.selection,i.effects,i.annotations,i.scrollIntoView)}const Xf=[];function Zt(n){return n==null?Xf:Array.isArray(n)?n:[n]}var oe=function(n){return n[n.Word=0]="Word",n[n.Space=1]="Space",n[n.Other=2]="Other",n}(oe||(oe={}));const Qf=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let ds;try{ds=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch{}function Jf(n){if(ds)return ds.test(n);for(let e=0;e<n.length;e++){let t=n[e];if(/\w/.test(t)||t>""&&(t.toUpperCase()!=t.toLowerCase()||Qf.test(t)))return!0}return!1}function Zf(n){return e=>{if(!/\S/.test(e))return oe.Space;if(Jf(e))return oe.Word;for(let t=0;t<n.length;t++)if(e.indexOf(n[t])>-1)return oe.Word;return oe.Other}}class q{constructor(e,t,i,s,o,r){this.config=e,this.doc=t,this.selection=i,this.values=s,this.status=e.statusTemplate.slice(),this.computeSlot=o,r&&(r._state=this);for(let l=0;l<this.config.dynamicSlots.length;l++)Mi(this,l<<1);this.computeSlot=null}field(e,t=!0){let i=this.config.address[e.id];if(i==null){if(t)throw new RangeError("Field is not present in this state");return}return Mi(this,i),H0(this,i)}update(...e){return vl(this,e,!0)}applyTransaction(e){let t=this.config,{base:i,compartments:s}=t;for(let l of e.effects)l.is(gn.reconfigure)?(t&&(s=new Map,t.compartments.forEach((a,h)=>s.set(h,a)),t=null),s.set(l.value.compartment,l.value.extension)):l.is(G.reconfigure)?(t=null,i=l.value):l.is(G.appendConfig)&&(t=null,i=Zt(i).concat(l.value));let o;t?o=e.startState.values.slice():(t=I0.resolve(i,s,this),o=new q(t,this.doc,this.selection,t.dynamicSlots.map(()=>null),(a,h)=>h.reconfigure(a,this),null).values);let r=e.startState.facet(us)?e.newSelection:e.newSelection.asSingle();new q(t,e.newDoc,r,o,(l,a)=>a.update(l,e),e)}replaceSelection(e){return typeof e=="string"&&(e=this.toText(e)),this.changeByRange(t=>({changes:{from:t.from,to:t.to,insert:e},range:O.cursor(t.from+e.length)}))}changeByRange(e){let t=this.selection,i=e(t.ranges[0]),s=this.changes(i.changes),o=[i.range],r=Zt(i.effects);for(let l=1;l<t.ranges.length;l++){let a=e(t.ranges[l]),h=this.changes(a.changes),c=h.map(s);for(let d=0;d<l;d++)o[d]=o[d].map(c);let f=s.mapDesc(h,!0);o.push(a.range.map(f)),s=s.compose(c),r=G.mapEffects(r,c).concat(G.mapEffects(Zt(a.effects),f))}return{changes:s,selection:O.create(o,t.mainIndex),effects:r}}changes(e=[]){return e instanceof fe?e:fe.of(e,this.doc.length,this.facet(q.lineSeparator))}toText(e){return Y.of(e.split(this.facet(q.lineSeparator)||rs))}sliceDoc(e=0,t=this.doc.length){return this.doc.sliceString(e,t,this.lineBreak)}facet(e){let t=this.config.address[e.id];return t==null?e.default:(Mi(this,t),H0(this,t))}toJSON(e){let t={doc:this.sliceDoc(),selection:this.selection.toJSON()};if(e)for(let i in e){let s=e[i];s instanceof be&&this.config.address[s.id]!=null&&(t[i]=s.spec.toJSON(this.field(e[i]),this))}return t}static fromJSON(e,t={},i){if(!e||typeof e.doc!="string")throw new RangeError("Invalid JSON representation for EditorState");let s=[];if(i){for(let o in i)if(Object.prototype.hasOwnProperty.call(e,o)){let r=i[o],l=e[o];s.push(r.init(a=>r.spec.fromJSON(l,a)))}}return q.create({doc:e.doc,selection:O.fromJSON(e.selection),extensions:t.extensions?s.concat([t.extensions]):s})}static create(e={}){let t=I0.resolve(e.extensions||[],new Map),i=e.doc instanceof Y?e.doc:Y.of((e.doc||"").split(t.staticFacet(q.lineSeparator)||rs)),s=e.selection?e.selection instanceof O?e.selection:O.single(e.selection.anchor,e.selection.head):O.single(0);return al(s,i.length),t.staticFacet(us)||(s=s.asSingle()),new q(t,i,s,t.dynamicSlots.map(()=>null),(o,r)=>r.create(o),null)}get tabSize(){return this.facet(q.tabSize)}get lineBreak(){return this.facet(q.lineSeparator)||`
|
|
5
|
+
`}get readOnly(){return this.facet(gl)}phrase(e,...t){for(let i of this.facet(q.phrases))if(Object.prototype.hasOwnProperty.call(i,e)){e=i[e];break}return t.length&&(e=e.replace(/\$(\$|\d*)/g,(i,s)=>{if(s=="$")return"$";let o=+(s||1);return!o||o>t.length?i:t[o-1]})),e}languageDataAt(e,t,i=-1){let s=[];for(let o of this.facet(hl))for(let r of o(this,t,i))Object.prototype.hasOwnProperty.call(r,e)&&s.push(r[e]);return s}charCategorizer(e){return Zf(this.languageDataAt("wordChars",e).join(""))}wordAt(e){let{text:t,from:i,length:s}=this.doc.lineAt(e),o=this.charCategorizer(e),r=e-i,l=e-i;for(;r>0;){let a=xe(t,r,!1);if(o(t.slice(a,r))!=oe.Word)break;r=a}for(;l<s;){let a=xe(t,l);if(o(t.slice(l,a))!=oe.Word)break;l=a}return r==l?null:O.range(r+i,l+i)}}q.allowMultipleSelections=us;q.tabSize=L.define({combine:n=>n.length?n[0]:4});q.lineSeparator=ul;q.readOnly=gl;q.phrases=L.define({compare(n,e){let t=Object.keys(n),i=Object.keys(e);return t.length==i.length&&t.every(s=>n[s]==e[s])}});q.languageData=hl;q.changeFilter=fl;q.transactionFilter=dl;q.transactionExtender=pl;gn.reconfigure=G.define();function lt(n,e,t={}){let i={};for(let s of n)for(let o of Object.keys(s)){let r=s[o],l=i[o];if(l===void 0)i[o]=r;else if(!(l===r||r===void 0))if(Object.hasOwnProperty.call(t,o))i[o]=t[o](l,r);else throw new Error("Config merge conflict for field "+o)}for(let s in e)i[s]===void 0&&(i[s]=e[s]);return i}class Ht{eq(e){return this==e}range(e,t=e){return ps.create(e,t,this)}}Ht.prototype.startSide=Ht.prototype.endSide=0;Ht.prototype.point=!1;Ht.prototype.mapMode=Ce.TrackDel;let ps=class wl{constructor(e,t,i){this.from=e,this.to=t,this.value=i}static create(e,t,i){return new wl(e,t,i)}};function gs(n,e){return n.from-e.from||n.value.startSide-e.value.startSide}class o2{constructor(e,t,i,s){this.from=e,this.to=t,this.value=i,this.maxPoint=s}get length(){return this.to[this.to.length-1]}findIndex(e,t,i,s=0){let o=i?this.to:this.from;for(let r=s,l=o.length;;){if(r==l)return r;let a=r+l>>1,h=o[a]-e||(i?this.value[a].endSide:this.value[a].startSide)-t;if(a==r)return h>=0?r:l;h>=0?l=a:r=a+1}}between(e,t,i,s){for(let o=this.findIndex(t,-1e9,!0),r=this.findIndex(i,1e9,!1,o);o<r;o++)if(s(this.from[o]+e,this.to[o]+e,this.value[o])===!1)return!1}map(e,t){let i=[],s=[],o=[],r=-1,l=-1;for(let a=0;a<this.value.length;a++){let h=this.value[a],c=this.from[a]+e,f=this.to[a]+e,d,p;if(c==f){let g=t.mapPos(c,h.startSide,h.mapMode);if(g==null||(d=p=g,h.startSide!=h.endSide&&(p=t.mapPos(c,h.endSide),p<d)))continue}else if(d=t.mapPos(c,h.startSide),p=t.mapPos(f,h.endSide),d>p||d==p&&h.startSide>0&&h.endSide<=0)continue;(p-d||h.endSide-h.startSide)<0||(r<0&&(r=d),h.point&&(l=Math.max(l,p-d)),i.push(h),s.push(d-r),o.push(p-r))}return{mapped:i.length?new o2(s,o,i,l):null,pos:r}}}class U{constructor(e,t,i,s){this.chunkPos=e,this.chunk=t,this.nextLayer=i,this.maxPoint=s}static create(e,t,i,s){return new U(e,t,i,s)}get length(){let e=this.chunk.length-1;return e<0?0:Math.max(this.chunkEnd(e),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let e=this.nextLayer.size;for(let t of this.chunk)e+=t.value.length;return e}chunkEnd(e){return this.chunkPos[e]+this.chunk[e].length}update(e){let{add:t=[],sort:i=!1,filterFrom:s=0,filterTo:o=this.length}=e,r=e.filter;if(t.length==0&&!r)return this;if(i&&(t=t.slice().sort(gs)),this.isEmpty)return t.length?U.of(t):this;let l=new xl(this,null,-1).goto(0),a=0,h=[],c=new ft;for(;l.value||a<t.length;)if(a<t.length&&(l.from-t[a].from||l.startSide-t[a].value.startSide)>=0){let f=t[a++];c.addInner(f.from,f.to,f.value)||h.push(f)}else l.rangeIndex==1&&l.chunkIndex<this.chunk.length&&(a==t.length||this.chunkEnd(l.chunkIndex)<t[a].from)&&(!r||s>this.chunkEnd(l.chunkIndex)||o<this.chunkPos[l.chunkIndex])&&c.addChunk(this.chunkPos[l.chunkIndex],this.chunk[l.chunkIndex])?l.nextChunk():((!r||s>l.to||o<l.from||r(l.from,l.to,l.value))&&(c.addInner(l.from,l.to,l.value)||h.push(ps.create(l.from,l.to,l.value))),l.next());return c.finishInner(this.nextLayer.isEmpty&&!h.length?U.empty:this.nextLayer.update({add:h,filter:r,filterFrom:s,filterTo:o}))}map(e){if(e.empty||this.isEmpty)return this;let t=[],i=[],s=-1;for(let r=0;r<this.chunk.length;r++){let l=this.chunkPos[r],a=this.chunk[r],h=e.touchesRange(l,l+a.length);if(h===!1)s=Math.max(s,a.maxPoint),t.push(a),i.push(e.mapPos(l));else if(h===!0){let{mapped:c,pos:f}=a.map(l,e);c&&(s=Math.max(s,c.maxPoint),t.push(c),i.push(f))}}let o=this.nextLayer.map(e);return t.length==0?o:new U(i,t,o||U.empty,s)}between(e,t,i){if(!this.isEmpty){for(let s=0;s<this.chunk.length;s++){let o=this.chunkPos[s],r=this.chunk[s];if(t>=o&&e<=o+r.length&&r.between(o,e-o,t-o,i)===!1)return}this.nextLayer.between(e,t,i)}}iter(e=0){return zi.from([this]).goto(e)}get isEmpty(){return this.nextLayer==this}static iter(e,t=0){return zi.from(e).goto(t)}static compare(e,t,i,s,o=-1){let r=e.filter(f=>f.maxPoint>0||!f.isEmpty&&f.maxPoint>=o),l=t.filter(f=>f.maxPoint>0||!f.isEmpty&&f.maxPoint>=o),a=K2(r,l,i),h=new vi(r,a,o),c=new vi(l,a,o);i.iterGaps((f,d,p)=>X2(h,f,c,d,p,s)),i.empty&&i.length==0&&X2(h,0,c,0,0,s)}static eq(e,t,i=0,s){s==null&&(s=999999999);let o=e.filter(c=>!c.isEmpty&&t.indexOf(c)<0),r=t.filter(c=>!c.isEmpty&&e.indexOf(c)<0);if(o.length!=r.length)return!1;if(!o.length)return!0;let l=K2(o,r),a=new vi(o,l,0).goto(i),h=new vi(r,l,0).goto(i);for(;;){if(a.to!=h.to||!ms(a.active,h.active)||a.point&&(!h.point||!a.point.eq(h.point)))return!1;if(a.to>s)return!0;a.next(),h.next()}}static spans(e,t,i,s,o=-1){let r=new vi(e,null,o).goto(t),l=t,a=r.openStart;for(;;){let h=Math.min(r.to,i);if(r.point){let c=r.activeForPoint(r.to),f=r.pointFrom<t?c.length+1:r.point.startSide<0?c.length:Math.min(c.length,a);s.point(l,h,r.point,c,f,r.pointRank),a=Math.min(r.openEnd(h),c.length)}else h>l&&(s.span(l,h,r.active,a),a=r.openEnd(h));if(r.to>i)return a+(r.point&&r.to>i?1:0);l=r.to,r.next()}}static of(e,t=!1){let i=new ft;for(let s of e instanceof ps?[e]:t?ed(e):e)i.add(s.from,s.to,s.value);return i.finish()}static join(e){if(!e.length)return U.empty;let t=e[e.length-1];for(let i=e.length-2;i>=0;i--)for(let s=e[i];s!=U.empty;s=s.nextLayer)t=new U(s.chunkPos,s.chunk,t,Math.max(s.maxPoint,t.maxPoint));return t}}U.empty=new U([],[],null,-1);function ed(n){if(n.length>1)for(let e=n[0],t=1;t<n.length;t++){let i=n[t];if(gs(e,i)>0)return n.slice().sort(gs);e=i}return n}U.empty.nextLayer=U.empty;class ft{finishChunk(e){this.chunks.push(new o2(this.from,this.to,this.value,this.maxPoint)),this.chunkPos.push(this.chunkStart),this.chunkStart=-1,this.setMaxPoint=Math.max(this.setMaxPoint,this.maxPoint),this.maxPoint=-1,e&&(this.from=[],this.to=[],this.value=[])}constructor(){this.chunks=[],this.chunkPos=[],this.chunkStart=-1,this.last=null,this.lastFrom=-1e9,this.lastTo=-1e9,this.from=[],this.to=[],this.value=[],this.maxPoint=-1,this.setMaxPoint=-1,this.nextLayer=null}add(e,t,i){this.addInner(e,t,i)||(this.nextLayer||(this.nextLayer=new ft)).add(e,t,i)}addInner(e,t,i){let s=e-this.lastTo||i.startSide-this.last.endSide;if(s<=0&&(e-this.lastFrom||i.startSide-this.last.startSide)<0)throw new Error("Ranges must be added sorted by `from` position and `startSide`");return s<0?!1:(this.from.length==250&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=e),this.from.push(e-this.chunkStart),this.to.push(t-this.chunkStart),this.last=i,this.lastFrom=e,this.lastTo=t,this.value.push(i),i.point&&(this.maxPoint=Math.max(this.maxPoint,t-e)),!0)}addChunk(e,t){if((e-this.lastTo||t.value[0].startSide-this.last.endSide)<0)return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,t.maxPoint),this.chunks.push(t),this.chunkPos.push(e);let i=t.value.length-1;return this.last=t.value[i],this.lastFrom=t.from[i]+e,this.lastTo=t.to[i]+e,!0}finish(){return this.finishInner(U.empty)}finishInner(e){if(this.from.length&&this.finishChunk(!1),this.chunks.length==0)return e;let t=U.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(e):e,this.setMaxPoint);return this.from=null,t}}function K2(n,e,t){let i=new Map;for(let o of n)for(let r=0;r<o.chunk.length;r++)o.chunk[r].maxPoint<=0&&i.set(o.chunk[r],o.chunkPos[r]);let s=new Set;for(let o of e)for(let r=0;r<o.chunk.length;r++){let l=i.get(o.chunk[r]);l!=null&&(t?t.mapPos(l):l)==o.chunkPos[r]&&!(t!=null&&t.touchesRange(l,l+o.chunk[r].length))&&s.add(o.chunk[r])}return s}class xl{constructor(e,t,i,s=0){this.layer=e,this.skip=t,this.minPoint=i,this.rank=s}get startSide(){return this.value?this.value.startSide:0}get endSide(){return this.value?this.value.endSide:0}goto(e,t=-1e9){return this.chunkIndex=this.rangeIndex=0,this.gotoInner(e,t,!1),this}gotoInner(e,t,i){for(;this.chunkIndex<this.layer.chunk.length;){let s=this.layer.chunk[this.chunkIndex];if(!(this.skip&&this.skip.has(s)||this.layer.chunkEnd(this.chunkIndex)<e||s.maxPoint<this.minPoint))break;this.chunkIndex++,i=!1}if(this.chunkIndex<this.layer.chunk.length){let s=this.layer.chunk[this.chunkIndex].findIndex(e-this.layer.chunkPos[this.chunkIndex],t,!0);(!i||this.rangeIndex<s)&&this.setRangeIndex(s)}this.next()}forward(e,t){(this.to-e||this.endSide-t)<0&&this.gotoInner(e,t,!0)}next(){for(;;)if(this.chunkIndex==this.layer.chunk.length){this.from=this.to=1e9,this.value=null;break}else{let e=this.layer.chunkPos[this.chunkIndex],t=this.layer.chunk[this.chunkIndex],i=e+t.from[this.rangeIndex];if(this.from=i,this.to=e+t.to[this.rangeIndex],this.value=t.value[this.rangeIndex],this.setRangeIndex(this.rangeIndex+1),this.minPoint<0||this.value.point&&this.to-this.from>=this.minPoint)break}}setRangeIndex(e){if(e==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex<this.layer.chunk.length&&this.skip.has(this.layer.chunk[this.chunkIndex]);)this.chunkIndex++;this.rangeIndex=0}else this.rangeIndex=e}nextChunk(){this.chunkIndex++,this.rangeIndex=0,this.next()}compare(e){return this.from-e.from||this.startSide-e.startSide||this.rank-e.rank||this.to-e.to||this.endSide-e.endSide}}class zi{constructor(e){this.heap=e}static from(e,t=null,i=-1){let s=[];for(let o=0;o<e.length;o++)for(let r=e[o];!r.isEmpty;r=r.nextLayer)r.maxPoint>=i&&s.push(new xl(r,t,i,o));return s.length==1?s[0]:new zi(s)}get startSide(){return this.value?this.value.startSide:0}goto(e,t=-1e9){for(let i of this.heap)i.goto(e,t);for(let i=this.heap.length>>1;i>=0;i--)An(this.heap,i);return this.next(),this}forward(e,t){for(let i of this.heap)i.forward(e,t);for(let i=this.heap.length>>1;i>=0;i--)An(this.heap,i);(this.to-e||this.value.endSide-t)<0&&this.next()}next(){if(this.heap.length==0)this.from=this.to=1e9,this.value=null,this.rank=-1;else{let e=this.heap[0];this.from=e.from,this.to=e.to,this.value=e.value,this.rank=e.rank,e.value&&e.next(),An(this.heap,0)}}}function An(n,e){for(let t=n[e];;){let i=(e<<1)+1;if(i>=n.length)break;let s=n[i];if(i+1<n.length&&s.compare(n[i+1])>=0&&(s=n[i+1],i++),t.compare(s)<0)break;n[i]=t,n[e]=s,e=i}}class vi{constructor(e,t,i){this.minPoint=i,this.active=[],this.activeTo=[],this.activeRank=[],this.minActive=-1,this.point=null,this.pointFrom=0,this.pointRank=0,this.to=-1e9,this.endSide=0,this.openStart=-1,this.cursor=zi.from(e,t,i)}goto(e,t=-1e9){return this.cursor.goto(e,t),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=e,this.endSide=t,this.openStart=-1,this.next(),this}forward(e,t){for(;this.minActive>-1&&(this.activeTo[this.minActive]-e||this.active[this.minActive].endSide-t)<0;)this.removeActive(this.minActive);this.cursor.forward(e,t)}removeActive(e){n0(this.active,e),n0(this.activeTo,e),n0(this.activeRank,e),this.minActive=Q2(this.active,this.activeTo)}addActive(e){let t=0,{value:i,to:s,rank:o}=this.cursor;for(;t<this.activeRank.length&&(o-this.activeRank[t]||s-this.activeTo[t])>0;)t++;s0(this.active,t,i),s0(this.activeTo,t,s),s0(this.activeRank,t,o),e&&s0(e,t,this.cursor.from),this.minActive=Q2(this.active,this.activeTo)}next(){let e=this.to,t=this.point;this.point=null;let i=this.openStart<0?[]:null;for(;;){let s=this.minActive;if(s>-1&&(this.activeTo[s]-this.cursor.from||this.active[s].endSide-this.cursor.startSide)<0){if(this.activeTo[s]>e){this.to=this.activeTo[s],this.endSide=this.active[s].endSide;break}this.removeActive(s),i&&n0(i,s)}else if(this.cursor.value)if(this.cursor.from>e){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}else{let o=this.cursor.value;if(!o.point)this.addActive(i),this.cursor.next();else if(t&&this.cursor.to==this.to&&this.cursor.from<this.cursor.to)this.cursor.next();else{this.point=o,this.pointFrom=this.cursor.from,this.pointRank=this.cursor.rank,this.to=this.cursor.to,this.endSide=o.endSide,this.cursor.next(),this.forward(this.to,this.endSide);break}}else{this.to=this.endSide=1e9;break}}if(i){this.openStart=0;for(let s=i.length-1;s>=0&&i[s]<e;s--)this.openStart++}}activeForPoint(e){if(!this.active.length)return this.active;let t=[];for(let i=this.active.length-1;i>=0&&!(this.activeRank[i]<this.pointRank);i--)(this.activeTo[i]>e||this.activeTo[i]==e&&this.active[i].endSide>=this.point.endSide)&&t.push(this.active[i]);return t.reverse()}openEnd(e){let t=0;for(let i=this.activeTo.length-1;i>=0&&this.activeTo[i]>e;i--)t++;return t}}function X2(n,e,t,i,s,o){n.goto(e),t.goto(i);let r=i+s,l=i,a=i-e;for(;;){let h=n.to+a-t.to,c=h||n.endSide-t.endSide,f=c<0?n.to+a:t.to,d=Math.min(f,r);if(n.point||t.point?n.point&&t.point&&(n.point==t.point||n.point.eq(t.point))&&ms(n.activeForPoint(n.to),t.activeForPoint(t.to))||o.comparePoint(l,d,n.point,t.point):d>l&&!ms(n.active,t.active)&&o.compareRange(l,d,n.active,t.active),f>r)break;(h||n.openEnd!=t.openEnd)&&o.boundChange&&o.boundChange(f),l=f,c<=0&&n.next(),c>=0&&t.next()}}function ms(n,e){if(n.length!=e.length)return!1;for(let t=0;t<n.length;t++)if(n[t]!=e[t]&&!n[t].eq(e[t]))return!1;return!0}function n0(n,e){for(let t=e,i=n.length-1;t<i;t++)n[t]=n[t+1];n.pop()}function s0(n,e,t){for(let i=n.length-1;i>=e;i--)n[i+1]=n[i];n[e]=t}function Q2(n,e){let t=-1,i=1e9;for(let s=0;s<e.length;s++)(e[s]-i||n[s].endSide-n[t].endSide)<0&&(t=s,i=e[s]);return t}function fi(n,e,t=n.length){let i=0;for(let s=0;s<t&&s<n.length;)n.charCodeAt(s)==9?(i+=e-i%e,s++):(i++,s=xe(n,s));return i}function vs(n,e,t,i){for(let s=0,o=0;;){if(o>=e)return s;if(s==n.length)break;o+=n.charCodeAt(s)==9?t-o%t:1,s=xe(n,s)}return i===!0?-1:n.length}const ws="ͼ",J2=typeof Symbol>"u"?"__"+ws:Symbol.for(ws),xs=typeof Symbol>"u"?"__styleSet"+Math.floor(Math.random()*1e8):Symbol("styleSet"),Z2=typeof globalThis<"u"?globalThis:typeof window<"u"?window:{};class _t{constructor(e,t){this.rules=[];let{finish:i}=t||{};function s(r){return/^@/.test(r)?[r]:r.split(/,\s*/)}function o(r,l,a,h){let c=[],f=/^@(\w+)\b/.exec(r[0]),d=f&&f[1]=="keyframes";if(f&&l==null)return a.push(r[0]+";");for(let p in l){let g=l[p];if(/&/.test(p))o(p.split(/,\s*/).map(m=>r.map(v=>m.replace(/&/,v))).reduce((m,v)=>m.concat(v)),g,a);else if(g&&typeof g=="object"){if(!f)throw new RangeError("The value of a property ("+p+") should be a primitive value.");o(s(p),g,c,d)}else g!=null&&c.push(p.replace(/_.*/,"").replace(/[A-Z]/g,m=>"-"+m.toLowerCase())+": "+g+";")}(c.length||d)&&a.push((i&&!f&&!h?r.map(i):r).join(", ")+" {"+c.join(" ")+"}")}for(let r in e)o(s(r),e[r],this.rules)}getRules(){return this.rules.join(`
|
|
6
|
+
`)}static newName(){let e=Z2[J2]||1;return Z2[J2]=e+1,ws+e.toString(36)}static mount(e,t,i){let s=e[xs],o=i&&i.nonce;s?o&&s.setNonce(o):s=new td(e,o),s.mount(Array.isArray(t)?t:[t],e)}}let eo=new Map;class td{constructor(e,t){let i=e.ownerDocument||e,s=i.defaultView;if(!e.head&&e.adoptedStyleSheets&&s.CSSStyleSheet){let o=eo.get(i);if(o)return e[xs]=o;this.sheet=new s.CSSStyleSheet,eo.set(i,this)}else this.styleTag=i.createElement("style"),t&&this.styleTag.setAttribute("nonce",t);this.modules=[],e[xs]=this}mount(e,t){let i=this.sheet,s=0,o=0;for(let r=0;r<e.length;r++){let l=e[r],a=this.modules.indexOf(l);if(a<o&&a>-1&&(this.modules.splice(a,1),o--,a=-1),a==-1){if(this.modules.splice(o++,0,l),i)for(let h=0;h<l.rules.length;h++)i.insertRule(l.rules[h],s++)}else{for(;o<a;)s+=this.modules[o++].rules.length;s+=l.rules.length,o++}}if(i)t.adoptedStyleSheets.indexOf(this.sheet)<0&&(t.adoptedStyleSheets=[this.sheet,...t.adoptedStyleSheets]);else{let r="";for(let a=0;a<this.modules.length;a++)r+=this.modules[a].getRules()+`
|
|
7
|
+
`;this.styleTag.textContent=r;let l=t.head||t;this.styleTag.parentNode!=l&&l.insertBefore(this.styleTag,l.firstChild)}}setNonce(e){this.styleTag&&this.styleTag.getAttribute("nonce")!=e&&this.styleTag.setAttribute("nonce",e)}}var Ot={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},Li={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},id=typeof navigator<"u"&&/Mac/.test(navigator.platform),nd=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);for(var we=0;we<10;we++)Ot[48+we]=Ot[96+we]=String(we);for(var we=1;we<=24;we++)Ot[we+111]="F"+we;for(var we=65;we<=90;we++)Ot[we]=String.fromCharCode(we+32),Li[we]=String.fromCharCode(we);for(var Bn in Ot)Li.hasOwnProperty(Bn)||(Li[Bn]=Ot[Bn]);function sd(n){var e=id&&n.metaKey&&n.shiftKey&&!n.ctrlKey&&!n.altKey||nd&&n.shiftKey&&n.key&&n.key.length==1||n.key=="Unidentified",t=!e&&n.key||(n.shiftKey?Li:Ot)[n.keyCode]||n.key||"Unidentified";return t=="Esc"&&(t="Escape"),t=="Del"&&(t="Delete"),t=="Left"&&(t="ArrowLeft"),t=="Up"&&(t="ArrowUp"),t=="Right"&&(t="ArrowRight"),t=="Down"&&(t="ArrowDown"),t}function J(){var n=arguments[0];typeof n=="string"&&(n=document.createElement(n));var e=1,t=arguments[1];if(t&&typeof t=="object"&&t.nodeType==null&&!Array.isArray(t)){for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)){var s=t[i];typeof s=="string"?n.setAttribute(i,s):s!=null&&(n[i]=s)}e++}for(;e<arguments.length;e++)bl(n,arguments[e]);return n}function bl(n,e){if(typeof e=="string")n.appendChild(document.createTextNode(e));else if(e!=null)if(e.nodeType!=null)n.appendChild(e);else if(Array.isArray(e))for(var t=0;t<e.length;t++)bl(n,e[t]);else throw new RangeError("Unsupported child node: "+e)}function Ni(n){let e;return n.nodeType==11?e=n.getSelection?n:n.ownerDocument:e=n,e.getSelection()}function bs(n,e){return e?n==e||n.contains(e.nodeType!=1?e.parentNode:e):!1}function D0(n,e){if(!e.anchorNode)return!1;try{return bs(n,e.anchorNode)}catch{return!1}}function Ri(n){return n.nodeType==3?Wt(n,0,n.nodeValue.length).getClientRects():n.nodeType==1?n.getClientRects():[]}function Di(n,e,t,i){return t?to(n,e,t,i,-1)||to(n,e,t,i,1):!1}function $t(n){for(var e=0;;e++)if(n=n.previousSibling,!n)return e}function $0(n){return n.nodeType==1&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(n.nodeName)}function to(n,e,t,i,s){for(;;){if(n==t&&e==i)return!0;if(e==(s<0?0:rt(n))){if(n.nodeName=="DIV")return!1;let o=n.parentNode;if(!o||o.nodeType!=1)return!1;e=$t(n)+(s<0?0:1),n=o}else if(n.nodeType==1){if(n=n.childNodes[e+(s<0?-1:0)],n.nodeType==1&&n.contentEditable=="false")return!1;e=s<0?rt(n):0}else return!1}}function rt(n){return n.nodeType==3?n.nodeValue.length:n.childNodes.length}function mn(n,e){let t=e?n.left:n.right;return{left:t,right:t,top:n.top,bottom:n.bottom}}function od(n){let e=n.visualViewport;return e?{left:0,right:e.width,top:0,bottom:e.height}:{left:0,right:n.innerWidth,top:0,bottom:n.innerHeight}}function yl(n,e){let t=e.width/n.offsetWidth,i=e.height/n.offsetHeight;return(t>.995&&t<1.005||!isFinite(t)||Math.abs(e.width-n.offsetWidth)<1)&&(t=1),(i>.995&&i<1.005||!isFinite(i)||Math.abs(e.height-n.offsetHeight)<1)&&(i=1),{scaleX:t,scaleY:i}}function rd(n,e,t,i,s,o,r,l){let a=n.ownerDocument,h=a.defaultView||window;for(let c=n,f=!1;c&&!f;)if(c.nodeType==1){let d,p=c==a.body,g=1,m=1;if(p)d=od(h);else{if(/^(fixed|sticky)$/.test(getComputedStyle(c).position)&&(f=!0),c.scrollHeight<=c.clientHeight&&c.scrollWidth<=c.clientWidth){c=c.assignedSlot||c.parentNode;continue}let b=c.getBoundingClientRect();({scaleX:g,scaleY:m}=yl(c,b)),d={left:b.left,right:b.left+c.clientWidth*g,top:b.top,bottom:b.top+c.clientHeight*m}}let v=0,w=0;if(s=="nearest")e.top<d.top?(w=e.top-(d.top+r),t>0&&e.bottom>d.bottom+w&&(w=e.bottom-d.bottom+r)):e.bottom>d.bottom&&(w=e.bottom-d.bottom+r,t<0&&e.top-w<d.top&&(w=e.top-(d.top+r)));else{let b=e.bottom-e.top,S=d.bottom-d.top;w=(s=="center"&&b<=S?e.top+b/2-S/2:s=="start"||s=="center"&&t<0?e.top-r:e.bottom-S+r)-d.top}if(i=="nearest"?e.left<d.left?(v=e.left-(d.left+o),t>0&&e.right>d.right+v&&(v=e.right-d.right+o)):e.right>d.right&&(v=e.right-d.right+o,t<0&&e.left<d.left+v&&(v=e.left-(d.left+o))):v=(i=="center"?e.left+(e.right-e.left)/2-(d.right-d.left)/2:i=="start"==l?e.left-o:e.right-(d.right-d.left)+o)-d.left,v||w)if(p)h.scrollBy(v,w);else{let b=0,S=0;if(w){let k=c.scrollTop;c.scrollTop+=w/m,S=(c.scrollTop-k)*m}if(v){let k=c.scrollLeft;c.scrollLeft+=v/g,b=(c.scrollLeft-k)*g}e={left:e.left-b,top:e.top-S,right:e.right-b,bottom:e.bottom-S},b&&Math.abs(b-v)<1&&(i="nearest"),S&&Math.abs(S-w)<1&&(s="nearest")}if(p)break;(e.top<d.top||e.bottom>d.bottom||e.left<d.left||e.right>d.right)&&(e={left:Math.max(e.left,d.left),right:Math.min(e.right,d.right),top:Math.max(e.top,d.top),bottom:Math.min(e.bottom,d.bottom)}),c=c.assignedSlot||c.parentNode}else if(c.nodeType==11)c=c.host;else break}function ld(n){let e=n.ownerDocument,t,i;for(let s=n.parentNode;s&&!(s==e.body||t&&i);)if(s.nodeType==1)!i&&s.scrollHeight>s.clientHeight&&(i=s),!t&&s.scrollWidth>s.clientWidth&&(t=s),s=s.assignedSlot||s.parentNode;else if(s.nodeType==11)s=s.host;else break;return{x:t,y:i}}class ad{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}eq(e){return this.anchorNode==e.anchorNode&&this.anchorOffset==e.anchorOffset&&this.focusNode==e.focusNode&&this.focusOffset==e.focusOffset}setRange(e){let{anchorNode:t,focusNode:i}=e;this.set(t,Math.min(e.anchorOffset,t?rt(t):0),i,Math.min(e.focusOffset,i?rt(i):0))}set(e,t,i,s){this.anchorNode=e,this.anchorOffset=t,this.focusNode=i,this.focusOffset=s}}let qt=null;function kl(n){if(n.setActive)return n.setActive();if(qt)return n.focus(qt);let e=[];for(let t=n;t&&(e.push(t,t.scrollTop,t.scrollLeft),t!=t.ownerDocument);t=t.parentNode);if(n.focus(qt==null?{get preventScroll(){return qt={preventScroll:!0},!0}}:void 0),!qt){qt=!1;for(let t=0;t<e.length;){let i=e[t++],s=e[t++],o=e[t++];i.scrollTop!=s&&(i.scrollTop=s),i.scrollLeft!=o&&(i.scrollLeft=o)}}}let io;function Wt(n,e,t=e){let i=io||(io=document.createRange());return i.setEnd(n,t),i.setStart(n,e),i}function ei(n,e,t,i){let s={key:e,code:e,keyCode:t,which:t,cancelable:!0};i&&({altKey:s.altKey,ctrlKey:s.ctrlKey,shiftKey:s.shiftKey,metaKey:s.metaKey}=i);let o=new KeyboardEvent("keydown",s);o.synthetic=!0,n.dispatchEvent(o);let r=new KeyboardEvent("keyup",s);return r.synthetic=!0,n.dispatchEvent(r),o.defaultPrevented||r.defaultPrevented}function cd(n){for(;n;){if(n&&(n.nodeType==9||n.nodeType==11&&n.host))return n;n=n.assignedSlot||n.parentNode}return null}function Sl(n){for(;n.attributes.length;)n.removeAttributeNode(n.attributes[0])}function hd(n,e){let t=e.focusNode,i=e.focusOffset;if(!t||e.anchorNode!=t||e.anchorOffset!=i)return!1;for(i=Math.min(i,rt(t));;)if(i){if(t.nodeType!=1)return!1;let s=t.childNodes[i-1];s.contentEditable=="false"?i--:(t=s,i=rt(t))}else{if(t==n)return!0;i=$t(t),t=t.parentNode}}function Cl(n){return n.scrollTop>Math.max(1,n.scrollHeight-n.clientHeight-4)}function _l(n,e){for(let t=n,i=e;;){if(t.nodeType==3&&i>0)return{node:t,offset:i};if(t.nodeType==1&&i>0){if(t.contentEditable=="false")return null;t=t.childNodes[i-1],i=rt(t)}else if(t.parentNode&&!$0(t))i=$t(t),t=t.parentNode;else return null}}function Ol(n,e){for(let t=n,i=e;;){if(t.nodeType==3&&i<t.nodeValue.length)return{node:t,offset:i};if(t.nodeType==1&&i<t.childNodes.length){if(t.contentEditable=="false")return null;t=t.childNodes[i],i=0}else if(t.parentNode&&!$0(t))i=$t(t)+1,t=t.parentNode;else return null}}class ke{constructor(e,t,i=!0){this.node=e,this.offset=t,this.precise=i}static before(e,t){return new ke(e.parentNode,$t(e),t)}static after(e,t){return new ke(e.parentNode,$t(e)+1,t)}}const r2=[];class te{constructor(){this.parent=null,this.dom=null,this.flags=2}get overrideDOMText(){return null}get posAtStart(){return this.parent?this.parent.posBefore(this):0}get posAtEnd(){return this.posAtStart+this.length}posBefore(e){let t=this.posAtStart;for(let i of this.children){if(i==e)return t;t+=i.length+i.breakAfter}throw new RangeError("Invalid child in posBefore")}posAfter(e){return this.posBefore(e)+e.length}sync(e,t){if(this.flags&2){let i=this.dom,s=null,o;for(let r of this.children){if(r.flags&7){if(!r.dom&&(o=s?s.nextSibling:i.firstChild)){let l=te.get(o);(!l||!l.parent&&l.canReuseDOM(r))&&r.reuseDOM(o)}r.sync(e,t),r.flags&=-8}if(o=s?s.nextSibling:i.firstChild,t&&!t.written&&t.node==i&&o!=r.dom&&(t.written=!0),r.dom.parentNode==i)for(;o&&o!=r.dom;)o=no(o);else i.insertBefore(r.dom,o);s=r.dom}for(o=s?s.nextSibling:i.firstChild,o&&t&&t.node==i&&(t.written=!0);o;)o=no(o)}else if(this.flags&1)for(let i of this.children)i.flags&7&&(i.sync(e,t),i.flags&=-8)}reuseDOM(e){}localPosFromDOM(e,t){let i;if(e==this.dom)i=this.dom.childNodes[t];else{let s=rt(e)==0?0:t==0?-1:1;for(;;){let o=e.parentNode;if(o==this.dom)break;s==0&&o.firstChild!=o.lastChild&&(e==o.firstChild?s=-1:s=1),e=o}s<0?i=e:i=e.nextSibling}if(i==this.dom.firstChild)return 0;for(;i&&!te.get(i);)i=i.nextSibling;if(!i)return this.length;for(let s=0,o=0;;s++){let r=this.children[s];if(r.dom==i)return o;o+=r.length+r.breakAfter}}domBoundsAround(e,t,i=0){let s=-1,o=-1,r=-1,l=-1;for(let a=0,h=i,c=i;a<this.children.length;a++){let f=this.children[a],d=h+f.length;if(h<e&&d>t)return f.domBoundsAround(e,t,h);if(d>=e&&s==-1&&(s=a,o=h),h>t&&f.dom.parentNode==this.dom){r=a,l=c;break}c=d,h=d+f.breakAfter}return{from:o,to:l<0?i+this.length:l,startDOM:(s?this.children[s-1].dom.nextSibling:null)||this.dom.firstChild,endDOM:r<this.children.length&&r>=0?this.children[r].dom:null}}markDirty(e=!1){this.flags|=2,this.markParentsDirty(e)}markParentsDirty(e){for(let t=this.parent;t;t=t.parent){if(e&&(t.flags|=2),t.flags&1)return;t.flags|=1,e=!1}}setParent(e){this.parent!=e&&(this.parent=e,this.flags&7&&this.markParentsDirty(!0))}setDOM(e){this.dom!=e&&(this.dom&&(this.dom.cmView=null),this.dom=e,e.cmView=this)}get rootView(){for(let e=this;;){let t=e.parent;if(!t)return e;e=t}}replaceChildren(e,t,i=r2){this.markDirty();for(let s=e;s<t;s++){let o=this.children[s];o.parent==this&&i.indexOf(o)<0&&o.destroy()}i.length<250?this.children.splice(e,t-e,...i):this.children=[].concat(this.children.slice(0,e),i,this.children.slice(t));for(let s=0;s<i.length;s++)i[s].setParent(this)}ignoreMutation(e){return!1}ignoreEvent(e){return!1}childCursor(e=this.length){return new Ml(this.children,e,this.children.length)}childPos(e,t=1){return this.childCursor().findPos(e,t)}toString(){let e=this.constructor.name.replace("View","");return e+(this.children.length?"("+this.children.join()+")":this.length?"["+(e=="Text"?this.text:this.length)+"]":"")+(this.breakAfter?"#":"")}static get(e){return e.cmView}get isEditable(){return!0}get isWidget(){return!1}get isHidden(){return!1}merge(e,t,i,s,o,r){return!1}become(e){return!1}canReuseDOM(e){return e.constructor==this.constructor&&!((this.flags|e.flags)&8)}getSide(){return 0}destroy(){for(let e of this.children)e.parent==this&&e.destroy();this.parent=null}}te.prototype.breakAfter=0;function no(n){let e=n.nextSibling;return n.parentNode.removeChild(n),e}class Ml{constructor(e,t,i){this.children=e,this.pos=t,this.i=i,this.off=0}findPos(e,t=1){for(;;){if(e>this.pos||e==this.pos&&(t>0||this.i==0||this.children[this.i-1].breakAfter))return this.off=e-this.pos,this;let i=this.children[--this.i];this.pos-=i.length+i.breakAfter}}}function Dl(n,e,t,i,s,o,r,l,a){let{children:h}=n,c=h.length?h[e]:null,f=o.length?o[o.length-1]:null,d=f?f.breakAfter:r;if(!(e==i&&c&&!r&&!d&&o.length<2&&c.merge(t,s,o.length?f:null,t==0,l,a))){if(i<h.length){let p=h[i];p&&(s<p.length||p.breakAfter&&(f!=null&&f.breakAfter))?(e==i&&(p=p.split(s),s=0),!d&&f&&p.merge(0,s,f,!0,0,a)?o[o.length-1]=p:((s||p.children.length&&!p.children[0].length)&&p.merge(0,s,null,!1,0,a),o.push(p))):p!=null&&p.breakAfter&&(f?f.breakAfter=1:r=1),i++}for(c&&(c.breakAfter=r,t>0&&(!r&&o.length&&c.merge(t,c.length,o[0],!1,l,0)?c.breakAfter=o.shift().breakAfter:(t<c.length||c.children.length&&c.children[c.children.length-1].length==0)&&c.merge(t,c.length,null,!1,l,0),e++));e<i&&o.length;)if(h[i-1].become(o[o.length-1]))i--,o.pop(),a=o.length?0:l;else if(h[e].become(o[0]))e++,o.shift(),l=o.length?0:a;else break;!o.length&&e&&i<h.length&&!h[e-1].breakAfter&&h[i].merge(0,0,h[e-1],!1,l,a)&&e--,(e<i||o.length)&&n.replaceChildren(e,i,o)}}function Tl(n,e,t,i,s,o){let r=n.childCursor(),{i:l,off:a}=r.findPos(t,1),{i:h,off:c}=r.findPos(e,-1),f=e-t;for(let d of i)f+=d.length;n.length+=f,Dl(n,h,c,l,a,i,0,s,o)}let Ae=typeof navigator<"u"?navigator:{userAgent:"",vendor:"",platform:""},ys=typeof document<"u"?document:{documentElement:{style:{}}};const ks=/Edge\/(\d+)/.exec(Ae.userAgent),Al=/MSIE \d/.test(Ae.userAgent),Ss=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Ae.userAgent),vn=!!(Al||Ss||ks),so=!vn&&/gecko\/(\d+)/i.test(Ae.userAgent),Pn=!vn&&/Chrome\/(\d+)/.exec(Ae.userAgent),ud="webkitFontSmoothing"in ys.documentElement.style,Bl=!vn&&/Apple Computer/.test(Ae.vendor),oo=Bl&&(/Mobile\/\w+/.test(Ae.userAgent)||Ae.maxTouchPoints>2);var V={mac:oo||/Mac/.test(Ae.platform),windows:/Win/.test(Ae.platform),linux:/Linux|X11/.test(Ae.platform),ie:vn,ie_version:Al?ys.documentMode||6:Ss?+Ss[1]:ks?+ks[1]:0,gecko:so,gecko_version:so?+(/Firefox\/(\d+)/.exec(Ae.userAgent)||[0,0])[1]:0,chrome:!!Pn,chrome_version:Pn?+Pn[1]:0,ios:oo,android:/Android\b/.test(Ae.userAgent),safari:Bl,webkit_version:ud?+(/\bAppleWebKit\/(\d+)/.exec(Ae.userAgent)||[0,0])[1]:0,tabSize:ys.documentElement.style.tabSize!=null?"tab-size":"-moz-tab-size"};const fd=256;class Ue extends te{constructor(e){super(),this.text=e}get length(){return this.text.length}createDOM(e){this.setDOM(e||document.createTextNode(this.text))}sync(e,t){this.dom||this.createDOM(),this.dom.nodeValue!=this.text&&(t&&t.node==this.dom&&(t.written=!0),this.dom.nodeValue=this.text)}reuseDOM(e){e.nodeType==3&&this.createDOM(e)}merge(e,t,i){return this.flags&8||i&&(!(i instanceof Ue)||this.length-(t-e)+i.length>fd||i.flags&8)?!1:(this.text=this.text.slice(0,e)+(i?i.text:"")+this.text.slice(t),this.markDirty(),!0)}split(e){let t=new Ue(this.text.slice(e));return this.text=this.text.slice(0,e),this.markDirty(),t.flags|=this.flags&8,t}localPosFromDOM(e,t){return e==this.dom?t:t?this.text.length:0}domAtPos(e){return new ke(this.dom,e)}domBoundsAround(e,t,i){return{from:i,to:i+this.length,startDOM:this.dom,endDOM:this.dom.nextSibling}}coordsAt(e,t){return dd(this.dom,e,t)}}class dt extends te{constructor(e,t=[],i=0){super(),this.mark=e,this.children=t,this.length=i;for(let s of t)s.setParent(this)}setAttrs(e){if(Sl(e),this.mark.class&&(e.className=this.mark.class),this.mark.attrs)for(let t in this.mark.attrs)e.setAttribute(t,this.mark.attrs[t]);return e}canReuseDOM(e){return super.canReuseDOM(e)&&!((this.flags|e.flags)&8)}reuseDOM(e){e.nodeName==this.mark.tagName.toUpperCase()&&(this.setDOM(e),this.flags|=6)}sync(e,t){this.dom?this.flags&4&&this.setAttrs(this.dom):this.setDOM(this.setAttrs(document.createElement(this.mark.tagName))),super.sync(e,t)}merge(e,t,i,s,o,r){return i&&(!(i instanceof dt&&i.mark.eq(this.mark))||e&&o<=0||t<this.length&&r<=0)?!1:(Tl(this,e,t,i?i.children.slice():[],o-1,r-1),this.markDirty(),!0)}split(e){let t=[],i=0,s=-1,o=0;for(let l of this.children){let a=i+l.length;a>e&&t.push(i<e?l.split(e-i):l),s<0&&i>=e&&(s=o),i=a,o++}let r=this.length-e;return this.length=e,s>-1&&(this.children.length=s,this.markDirty()),new dt(this.mark,t,r)}domAtPos(e){return Pl(this,e)}coordsAt(e,t){return Vl(this,e,t)}}function dd(n,e,t){let i=n.nodeValue.length;e>i&&(e=i);let s=e,o=e,r=0;e==0&&t<0||e==i&&t>=0?V.chrome||V.gecko||(e?(s--,r=1):o<i&&(o++,r=-1)):t<0?s--:o<i&&o++;let l=Wt(n,s,o).getClientRects();if(!l.length)return null;let a=l[(r?r<0:t>=0)?0:l.length-1];return V.safari&&!r&&a.width==0&&(a=Array.prototype.find.call(l,h=>h.width)||a),r?mn(a,r<0):a||null}class bt extends te{static create(e,t,i){return new bt(e,t,i)}constructor(e,t,i){super(),this.widget=e,this.length=t,this.side=i,this.prevWidget=null}split(e){let t=bt.create(this.widget,this.length-e,this.side);return this.length-=e,t}sync(e){(!this.dom||!this.widget.updateDOM(this.dom,e))&&(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(e)),this.widget.editable||(this.dom.contentEditable="false"))}getSide(){return this.side}merge(e,t,i,s,o,r){return i&&(!(i instanceof bt)||!this.widget.compare(i.widget)||e>0&&o<=0||t<this.length&&r<=0)?!1:(this.length=e+(i?i.length:0)+(this.length-t),!0)}become(e){return e instanceof bt&&e.side==this.side&&this.widget.constructor==e.widget.constructor?(this.widget.compare(e.widget)||this.markDirty(!0),this.dom&&!this.prevWidget&&(this.prevWidget=this.widget),this.widget=e.widget,this.length=e.length,!0):!1}ignoreMutation(){return!0}ignoreEvent(e){return this.widget.ignoreEvent(e)}get overrideDOMText(){if(this.length==0)return Y.empty;let e=this;for(;e.parent;)e=e.parent;let{view:t}=e,i=t&&t.state.doc,s=this.posAtStart;return i?i.slice(s,s+this.length):Y.empty}domAtPos(e){return(this.length?e==0:this.side>0)?ke.before(this.dom):ke.after(this.dom,e==this.length)}domBoundsAround(){return null}coordsAt(e,t){let i=this.widget.coordsAt(this.dom,e,t);if(i)return i;let s=this.dom.getClientRects(),o=null;if(!s.length)return null;let r=this.side?this.side<0:e>0;for(let l=r?s.length-1:0;o=s[l],!(e>0?l==0:l==s.length-1||o.top<o.bottom);l+=r?-1:1);return mn(o,!r)}get isEditable(){return!1}get isWidget(){return!0}get isHidden(){return this.widget.isHidden}destroy(){super.destroy(),this.dom&&this.widget.destroy(this.dom)}}class ri extends te{constructor(e){super(),this.side=e}get length(){return 0}merge(){return!1}become(e){return e instanceof ri&&e.side==this.side}split(){return new ri(this.side)}sync(){if(!this.dom){let e=document.createElement("img");e.className="cm-widgetBuffer",e.setAttribute("aria-hidden","true"),this.setDOM(e)}}getSide(){return this.side}domAtPos(e){return this.side>0?ke.before(this.dom):ke.after(this.dom)}localPosFromDOM(){return 0}domBoundsAround(){return null}coordsAt(e){return this.dom.getBoundingClientRect()}get overrideDOMText(){return Y.empty}get isHidden(){return!0}}Ue.prototype.children=bt.prototype.children=ri.prototype.children=r2;function Pl(n,e){let t=n.dom,{children:i}=n,s=0;for(let o=0;s<i.length;s++){let r=i[s],l=o+r.length;if(!(l==o&&r.getSide()<=0)){if(e>o&&e<l&&r.dom.parentNode==t)return r.domAtPos(e-o);if(e<=o)break;o=l}}for(let o=s;o>0;o--){let r=i[o-1];if(r.dom.parentNode==t)return r.domAtPos(r.length)}for(let o=s;o<i.length;o++){let r=i[o];if(r.dom.parentNode==t)return r.domAtPos(0)}return new ke(t,0)}function El(n,e,t){let i,{children:s}=n;t>0&&e instanceof dt&&s.length&&(i=s[s.length-1])instanceof dt&&i.mark.eq(e.mark)?El(i,e.children[0],t-1):(s.push(e),e.setParent(n)),n.length+=e.length}function Vl(n,e,t){let i=null,s=-1,o=null,r=-1;function l(h,c){for(let f=0,d=0;f<h.children.length&&d<=c;f++){let p=h.children[f],g=d+p.length;g>=c&&(p.children.length?l(p,c-d):(!o||o.isHidden&&(t>0||gd(o,p)))&&(g>c||d==g&&p.getSide()>0)?(o=p,r=c-d):(d<c||d==g&&p.getSide()<0&&!p.isHidden)&&(i=p,s=c-d)),d=g}}l(n,e);let a=(t<0?i:o)||i||o;return a?a.coordsAt(Math.max(0,a==i?s:r),t):pd(n)}function pd(n){let e=n.dom.lastChild;if(!e)return n.dom.getBoundingClientRect();let t=Ri(e);return t[t.length-1]||null}function gd(n,e){let t=n.coordsAt(0,1),i=e.coordsAt(0,1);return t&&i&&i.top<t.bottom}function Cs(n,e){for(let t in n)t=="class"&&e.class?e.class+=" "+n.class:t=="style"&&e.style?e.style+=";"+n.style:e[t]=n[t];return e}const ro=Object.create(null);function W0(n,e,t){if(n==e)return!0;n||(n=ro),e||(e=ro);let i=Object.keys(n),s=Object.keys(e);if(i.length-(t&&i.indexOf(t)>-1?1:0)!=s.length-(t&&s.indexOf(t)>-1?1:0))return!1;for(let o of i)if(o!=t&&(s.indexOf(o)==-1||n[o]!==e[o]))return!1;return!0}function _s(n,e,t){let i=!1;if(e)for(let s in e)t&&s in t||(i=!0,s=="style"?n.style.cssText="":n.removeAttribute(s));if(t)for(let s in t)e&&e[s]==t[s]||(i=!0,s=="style"?n.style.cssText=t[s]:n.setAttribute(s,t[s]));return i}function md(n){let e=Object.create(null);for(let t=0;t<n.attributes.length;t++){let i=n.attributes[t];e[i.name]=i.value}return e}class At{eq(e){return!1}updateDOM(e,t){return!1}compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}get estimatedHeight(){return-1}get lineBreaks(){return 0}ignoreEvent(e){return!0}coordsAt(e,t,i){return null}get isHidden(){return!1}get editable(){return!1}destroy(e){}}var _e=function(n){return n[n.Text=0]="Text",n[n.WidgetBefore=1]="WidgetBefore",n[n.WidgetAfter=2]="WidgetAfter",n[n.WidgetRange=3]="WidgetRange",n}(_e||(_e={}));class W extends Ht{constructor(e,t,i,s){super(),this.startSide=e,this.endSide=t,this.widget=i,this.spec=s}get heightRelevant(){return!1}static mark(e){return new Xi(e)}static widget(e){let t=Math.max(-1e4,Math.min(1e4,e.side||0)),i=!!e.block;return t+=i&&!e.inlineOrder?t>0?3e8:-4e8:t>0?1e8:-1e8,new Mt(e,t,t,i,e.widget||null,!1)}static replace(e){let t=!!e.block,i,s;if(e.isBlockGap)i=-5e8,s=4e8;else{let{start:o,end:r}=zl(e,t);i=(o?t?-3e8:-1:5e8)-1,s=(r?t?2e8:1:-6e8)+1}return new Mt(e,i,s,t,e.widget||null,!0)}static line(e){return new Qi(e)}static set(e,t=!1){return U.of(e,t)}hasHeight(){return this.widget?this.widget.estimatedHeight>-1:!1}}W.none=U.empty;class Xi extends W{constructor(e){let{start:t,end:i}=zl(e);super(t?-1:5e8,i?1:-6e8,null,e),this.tagName=e.tagName||"span",this.class=e.class||"",this.attrs=e.attributes||null}eq(e){var t,i;return this==e||e instanceof Xi&&this.tagName==e.tagName&&(this.class||((t=this.attrs)===null||t===void 0?void 0:t.class))==(e.class||((i=e.attrs)===null||i===void 0?void 0:i.class))&&W0(this.attrs,e.attrs,"class")}range(e,t=e){if(e>=t)throw new RangeError("Mark decorations may not be empty");return super.range(e,t)}}Xi.prototype.point=!1;class Qi extends W{constructor(e){super(-2e8,-2e8,null,e)}eq(e){return e instanceof Qi&&this.spec.class==e.spec.class&&W0(this.spec.attributes,e.spec.attributes)}range(e,t=e){if(t!=e)throw new RangeError("Line decoration ranges must be zero-length");return super.range(e,t)}}Qi.prototype.mapMode=Ce.TrackBefore;Qi.prototype.point=!0;class Mt extends W{constructor(e,t,i,s,o,r){super(t,i,o,e),this.block=s,this.isReplace=r,this.mapMode=s?t<=0?Ce.TrackBefore:Ce.TrackAfter:Ce.TrackDel}get type(){return this.startSide!=this.endSide?_e.WidgetRange:this.startSide<=0?_e.WidgetBefore:_e.WidgetAfter}get heightRelevant(){return this.block||!!this.widget&&(this.widget.estimatedHeight>=5||this.widget.lineBreaks>0)}eq(e){return e instanceof Mt&&vd(this.widget,e.widget)&&this.block==e.block&&this.startSide==e.startSide&&this.endSide==e.endSide}range(e,t=e){if(this.isReplace&&(e>t||e==t&&this.startSide>0&&this.endSide<=0))throw new RangeError("Invalid range for replacement decoration");if(!this.isReplace&&t!=e)throw new RangeError("Widget decorations can only have zero-length ranges");return super.range(e,t)}}Mt.prototype.point=!0;function zl(n,e=!1){let{inclusiveStart:t,inclusiveEnd:i}=n;return t==null&&(t=n.inclusive),i==null&&(i=n.inclusive),{start:t??e,end:i??e}}function vd(n,e){return n==e||!!(n&&e&&n.compare(e))}function T0(n,e,t,i=0){let s=t.length-1;s>=0&&t[s]+i>=n?t[s]=Math.max(t[s],e):t.push(n,e)}class ae extends te{constructor(){super(...arguments),this.children=[],this.length=0,this.prevAttrs=void 0,this.attrs=null,this.breakAfter=0}merge(e,t,i,s,o,r){if(i){if(!(i instanceof ae))return!1;this.dom||i.transferDOM(this)}return s&&this.setDeco(i?i.attrs:null),Tl(this,e,t,i?i.children.slice():[],o,r),!0}split(e){let t=new ae;if(t.breakAfter=this.breakAfter,this.length==0)return t;let{i,off:s}=this.childPos(e);s&&(t.append(this.children[i].split(s),0),this.children[i].merge(s,this.children[i].length,null,!1,0,0),i++);for(let o=i;o<this.children.length;o++)t.append(this.children[o],0);for(;i>0&&this.children[i-1].length==0;)this.children[--i].destroy();return this.children.length=i,this.markDirty(),this.length=e,t}transferDOM(e){this.dom&&(this.markDirty(),e.setDOM(this.dom),e.prevAttrs=this.prevAttrs===void 0?this.attrs:this.prevAttrs,this.prevAttrs=void 0,this.dom=null)}setDeco(e){W0(this.attrs,e)||(this.dom&&(this.prevAttrs=this.attrs,this.markDirty()),this.attrs=e)}append(e,t){El(this,e,t)}addLineDeco(e){let t=e.spec.attributes,i=e.spec.class;t&&(this.attrs=Cs(t,this.attrs||{})),i&&(this.attrs=Cs({class:i},this.attrs||{}))}domAtPos(e){return Pl(this,e)}reuseDOM(e){e.nodeName=="DIV"&&(this.setDOM(e),this.flags|=6)}sync(e,t){var i;this.dom?this.flags&4&&(Sl(this.dom),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0):(this.setDOM(document.createElement("div")),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0),this.prevAttrs!==void 0&&(_s(this.dom,this.prevAttrs,this.attrs),this.dom.classList.add("cm-line"),this.prevAttrs=void 0),super.sync(e,t);let s=this.dom.lastChild;for(;s&&te.get(s)instanceof dt;)s=s.lastChild;if(!s||!this.length||s.nodeName!="BR"&&((i=te.get(s))===null||i===void 0?void 0:i.isEditable)==!1&&(!V.ios||!this.children.some(o=>o instanceof Ue))){let o=document.createElement("BR");o.cmIgnore=!0,this.dom.appendChild(o)}}measureTextSize(){if(this.children.length==0||this.length>20)return null;let e=0,t;for(let i of this.children){if(!(i instanceof Ue)||/[^ -~]/.test(i.text))return null;let s=Ri(i.dom);if(s.length!=1)return null;e+=s[0].width,t=s[0].height}return e?{lineHeight:this.dom.getBoundingClientRect().height,charWidth:e/this.length,textHeight:t}:null}coordsAt(e,t){let i=Vl(this,e,t);if(!this.children.length&&i&&this.parent){let{heightOracle:s}=this.parent.view.viewState,o=i.bottom-i.top;if(Math.abs(o-s.lineHeight)<2&&s.textHeight<o){let r=(o-s.textHeight)/2;return{top:i.top+r,bottom:i.bottom-r,left:i.left,right:i.left}}}return i}become(e){return e instanceof ae&&this.children.length==0&&e.children.length==0&&W0(this.attrs,e.attrs)&&this.breakAfter==e.breakAfter}covers(){return!0}static find(e,t){for(let i=0,s=0;i<e.children.length;i++){let o=e.children[i],r=s+o.length;if(r>=t){if(o instanceof ae)return o;if(r>t)break}s=r+o.breakAfter}return null}}class ut extends te{constructor(e,t,i){super(),this.widget=e,this.length=t,this.deco=i,this.breakAfter=0,this.prevWidget=null}merge(e,t,i,s,o,r){return i&&(!(i instanceof ut)||!this.widget.compare(i.widget)||e>0&&o<=0||t<this.length&&r<=0)?!1:(this.length=e+(i?i.length:0)+(this.length-t),!0)}domAtPos(e){return e==0?ke.before(this.dom):ke.after(this.dom,e==this.length)}split(e){let t=this.length-e;this.length=e;let i=new ut(this.widget,t,this.deco);return i.breakAfter=this.breakAfter,i}get children(){return r2}sync(e){(!this.dom||!this.widget.updateDOM(this.dom,e))&&(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(e)),this.widget.editable||(this.dom.contentEditable="false"))}get overrideDOMText(){return this.parent?this.parent.view.state.doc.slice(this.posAtStart,this.posAtEnd):Y.empty}domBoundsAround(){return null}become(e){return e instanceof ut&&e.widget.constructor==this.widget.constructor?(e.widget.compare(this.widget)||this.markDirty(!0),this.dom&&!this.prevWidget&&(this.prevWidget=this.widget),this.widget=e.widget,this.length=e.length,this.deco=e.deco,this.breakAfter=e.breakAfter,!0):!1}ignoreMutation(){return!0}ignoreEvent(e){return this.widget.ignoreEvent(e)}get isEditable(){return!1}get isWidget(){return!0}coordsAt(e,t){let i=this.widget.coordsAt(this.dom,e,t);return i||(this.widget instanceof Os?null:mn(this.dom.getBoundingClientRect(),this.length?e==0:t<=0))}destroy(){super.destroy(),this.dom&&this.widget.destroy(this.dom)}covers(e){let{startSide:t,endSide:i}=this.deco;return t==i?!1:e<0?t<0:i>0}}class Os extends At{constructor(e){super(),this.height=e}toDOM(){let e=document.createElement("div");return e.className="cm-gap",this.updateDOM(e),e}eq(e){return e.height==this.height}updateDOM(e){return e.style.height=this.height+"px",!0}get editable(){return!0}get estimatedHeight(){return this.height}ignoreEvent(){return!1}}class Ti{constructor(e,t,i,s){this.doc=e,this.pos=t,this.end=i,this.disallowBlockEffectsFor=s,this.content=[],this.curLine=null,this.breakAtStart=0,this.pendingBuffer=0,this.bufferMarks=[],this.atCursorPos=!0,this.openStart=-1,this.openEnd=-1,this.text="",this.textOff=0,this.cursor=e.iter(),this.skip=t}posCovered(){if(this.content.length==0)return!this.breakAtStart&&this.doc.lineAt(this.pos).from!=this.pos;let e=this.content[this.content.length-1];return!(e.breakAfter||e instanceof ut&&e.deco.endSide<0)}getLine(){return this.curLine||(this.content.push(this.curLine=new ae),this.atCursorPos=!0),this.curLine}flushBuffer(e=this.bufferMarks){this.pendingBuffer&&(this.curLine.append(o0(new ri(-1),e),e.length),this.pendingBuffer=0)}addBlockWidget(e){this.flushBuffer(),this.curLine=null,this.content.push(e)}finish(e){this.pendingBuffer&&e<=this.bufferMarks.length?this.flushBuffer():this.pendingBuffer=0,!this.posCovered()&&!(e&&this.content.length&&this.content[this.content.length-1]instanceof ut)&&this.getLine()}buildText(e,t,i){for(;e>0;){if(this.textOff==this.text.length){let{value:o,lineBreak:r,done:l}=this.cursor.next(this.skip);if(this.skip=0,l)throw new Error("Ran out of text content when drawing inline views");if(r){this.posCovered()||this.getLine(),this.content.length?this.content[this.content.length-1].breakAfter=1:this.breakAtStart=1,this.flushBuffer(),this.curLine=null,this.atCursorPos=!0,e--;continue}else this.text=o,this.textOff=0}let s=Math.min(this.text.length-this.textOff,e,512);this.flushBuffer(t.slice(t.length-i)),this.getLine().append(o0(new Ue(this.text.slice(this.textOff,this.textOff+s)),t),i),this.atCursorPos=!0,this.textOff+=s,e-=s,i=0}}span(e,t,i,s){this.buildText(t-e,i,s),this.pos=t,this.openStart<0&&(this.openStart=s)}point(e,t,i,s,o,r){if(this.disallowBlockEffectsFor[r]&&i instanceof Mt){if(i.block)throw new RangeError("Block decorations may not be specified via plugins");if(t>this.doc.lineAt(this.pos).to)throw new RangeError("Decorations that replace line breaks may not be specified via plugins")}let l=t-e;if(i instanceof Mt)if(i.block)i.startSide>0&&!this.posCovered()&&this.getLine(),this.addBlockWidget(new ut(i.widget||li.block,l,i));else{let a=bt.create(i.widget||li.inline,l,l?0:i.startSide),h=this.atCursorPos&&!a.isEditable&&o<=s.length&&(e<t||i.startSide>0),c=!a.isEditable&&(e<t||o>s.length||i.startSide<=0),f=this.getLine();this.pendingBuffer==2&&!h&&!a.isEditable&&(this.pendingBuffer=0),this.flushBuffer(s),h&&(f.append(o0(new ri(1),s),o),o=s.length+Math.max(0,o-s.length)),f.append(o0(a,s),o),this.atCursorPos=c,this.pendingBuffer=c?e<t||o>s.length?1:2:0,this.pendingBuffer&&(this.bufferMarks=s.slice())}else this.doc.lineAt(this.pos).from==this.pos&&this.getLine().addLineDeco(i);l&&(this.textOff+l<=this.text.length?this.textOff+=l:(this.skip+=l-(this.text.length-this.textOff),this.text="",this.textOff=0),this.pos=t),this.openStart<0&&(this.openStart=o)}static build(e,t,i,s,o){let r=new Ti(e,t,i,o);return r.openEnd=U.spans(s,t,i,r),r.openStart<0&&(r.openStart=r.openEnd),r.finish(r.openEnd),r}}function o0(n,e){for(let t of e)n=new dt(t,[n],n.length);return n}class li extends At{constructor(e){super(),this.tag=e}eq(e){return e.tag==this.tag}toDOM(){return document.createElement(this.tag)}updateDOM(e){return e.nodeName.toLowerCase()==this.tag}get isHidden(){return!0}}li.inline=new li("span");li.block=new li("div");var se=function(n){return n[n.LTR=0]="LTR",n[n.RTL=1]="RTL",n}(se||(se={}));const Ft=se.LTR,l2=se.RTL;function Ll(n){let e=[];for(let t=0;t<n.length;t++)e.push(1<<+n[t]);return e}const wd=Ll("88888888888888888888888888888888888666888888787833333333337888888000000000000000000000000008888880000000000000000000000000088888888888888888888888888888888888887866668888088888663380888308888800000000000000000000000800000000000000000000000000000008"),xd=Ll("4444448826627288999999999992222222222222222222222222222222222222222222222229999999999999999999994444444444644222822222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222999999949999999229989999223333333333"),Ms=Object.create(null),Xe=[];for(let n of["()","[]","{}"]){let e=n.charCodeAt(0),t=n.charCodeAt(1);Ms[e]=t,Ms[t]=-e}function Nl(n){return n<=247?wd[n]:1424<=n&&n<=1524?2:1536<=n&&n<=1785?xd[n-1536]:1774<=n&&n<=2220?4:8192<=n&&n<=8204?256:64336<=n&&n<=65023?4:1}const bd=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\ufb50-\ufdff]/;class yt{get dir(){return this.level%2?l2:Ft}constructor(e,t,i){this.from=e,this.to=t,this.level=i}side(e,t){return this.dir==t==e?this.to:this.from}forward(e,t){return e==(this.dir==t)}static find(e,t,i,s){let o=-1;for(let r=0;r<e.length;r++){let l=e[r];if(l.from<=t&&l.to>=t){if(l.level==i)return r;(o<0||(s!=0?s<0?l.from<t:l.to>t:e[o].level>l.level))&&(o=r)}}if(o<0)throw new RangeError("Index out of range");return o}}function Rl(n,e){if(n.length!=e.length)return!1;for(let t=0;t<n.length;t++){let i=n[t],s=e[t];if(i.from!=s.from||i.to!=s.to||i.direction!=s.direction||!Rl(i.inner,s.inner))return!1}return!0}const Z=[];function yd(n,e,t,i,s){for(let o=0;o<=i.length;o++){let r=o?i[o-1].to:e,l=o<i.length?i[o].from:t,a=o?256:s;for(let h=r,c=a,f=a;h<l;h++){let d=Nl(n.charCodeAt(h));d==512?d=c:d==8&&f==4&&(d=16),Z[h]=d==4?2:d,d&7&&(f=d),c=d}for(let h=r,c=a,f=a;h<l;h++){let d=Z[h];if(d==128)h<l-1&&c==Z[h+1]&&c&24?d=Z[h]=c:Z[h]=256;else if(d==64){let p=h+1;for(;p<l&&Z[p]==64;)p++;let g=h&&c==8||p<t&&Z[p]==8?f==1?1:8:256;for(let m=h;m<p;m++)Z[m]=g;h=p-1}else d==8&&f==1&&(Z[h]=1);c=d,d&7&&(f=d)}}}function kd(n,e,t,i,s){let o=s==1?2:1;for(let r=0,l=0,a=0;r<=i.length;r++){let h=r?i[r-1].to:e,c=r<i.length?i[r].from:t;for(let f=h,d,p,g;f<c;f++)if(p=Ms[d=n.charCodeAt(f)])if(p<0){for(let m=l-3;m>=0;m-=3)if(Xe[m+1]==-p){let v=Xe[m+2],w=v&2?s:v&4?v&1?o:s:0;w&&(Z[f]=Z[Xe[m]]=w),l=m;break}}else{if(Xe.length==189)break;Xe[l++]=f,Xe[l++]=d,Xe[l++]=a}else if((g=Z[f])==2||g==1){let m=g==s;a=m?0:1;for(let v=l-3;v>=0;v-=3){let w=Xe[v+2];if(w&2)break;if(m)Xe[v+2]|=2;else{if(w&4)break;Xe[v+2]|=4}}}}}function Sd(n,e,t,i){for(let s=0,o=i;s<=t.length;s++){let r=s?t[s-1].to:n,l=s<t.length?t[s].from:e;for(let a=r;a<l;){let h=Z[a];if(h==256){let c=a+1;for(;;)if(c==l){if(s==t.length)break;c=t[s++].to,l=s<t.length?t[s].from:e}else if(Z[c]==256)c++;else break;let f=o==1,d=(c<e?Z[c]:i)==1,p=f==d?f?1:2:i;for(let g=c,m=s,v=m?t[m-1].to:n;g>a;)g==v&&(g=t[--m].from,v=m?t[m-1].to:n),Z[--g]=p;a=c}else o=h,a++}}}function Ds(n,e,t,i,s,o,r){let l=i%2?2:1;if(i%2==s%2)for(let a=e,h=0;a<t;){let c=!0,f=!1;if(h==o.length||a<o[h].from){let m=Z[a];m!=l&&(c=!1,f=m==16)}let d=!c&&l==1?[]:null,p=c?i:i+1,g=a;e:for(;;)if(h<o.length&&g==o[h].from){if(f)break e;let m=o[h];if(!c)for(let v=m.to,w=h+1;;){if(v==t)break e;if(w<o.length&&o[w].from==v)v=o[w++].to;else{if(Z[v]==l)break e;break}}if(h++,d)d.push(m);else{m.from>a&&r.push(new yt(a,m.from,p));let v=m.direction==Ft!=!(p%2);Ts(n,v?i+1:i,s,m.inner,m.from,m.to,r),a=m.to}g=m.to}else{if(g==t||(c?Z[g]!=l:Z[g]==l))break;g++}d?Ds(n,a,g,i+1,s,d,r):a<g&&r.push(new yt(a,g,p)),a=g}else for(let a=t,h=o.length;a>e;){let c=!0,f=!1;if(!h||a>o[h-1].to){let m=Z[a-1];m!=l&&(c=!1,f=m==16)}let d=!c&&l==1?[]:null,p=c?i:i+1,g=a;e:for(;;)if(h&&g==o[h-1].to){if(f)break e;let m=o[--h];if(!c)for(let v=m.from,w=h;;){if(v==e)break e;if(w&&o[w-1].to==v)v=o[--w].from;else{if(Z[v-1]==l)break e;break}}if(d)d.push(m);else{m.to<a&&r.push(new yt(m.to,a,p));let v=m.direction==Ft!=!(p%2);Ts(n,v?i+1:i,s,m.inner,m.from,m.to,r),a=m.from}g=m.from}else{if(g==e||(c?Z[g-1]!=l:Z[g-1]==l))break;g--}d?Ds(n,g,a,i+1,s,d,r):g<a&&r.push(new yt(g,a,p)),a=g}}function Ts(n,e,t,i,s,o,r){let l=e%2?2:1;yd(n,s,o,i,l),kd(n,s,o,i,l),Sd(s,o,i,l),Ds(n,s,o,e,t,i,r)}function Cd(n,e,t){if(!n)return[new yt(0,0,e==l2?1:0)];if(e==Ft&&!t.length&&!bd.test(n))return Il(n.length);if(t.length)for(;n.length>Z.length;)Z[Z.length]=256;let i=[],s=e==Ft?0:1;return Ts(n,s,s,t,0,n.length,i),i}function Il(n){return[new yt(0,n,0)]}let Hl="";function _d(n,e,t,i,s){var o;let r=i.head-n.from,l=yt.find(e,r,(o=i.bidiLevel)!==null&&o!==void 0?o:-1,i.assoc),a=e[l],h=a.side(s,t);if(r==h){let d=l+=s?1:-1;if(d<0||d>=e.length)return null;a=e[l=d],r=a.side(!s,t),h=a.side(s,t)}let c=xe(n.text,r,a.forward(s,t));(c<a.from||c>a.to)&&(c=h),Hl=n.text.slice(Math.min(r,c),Math.max(r,c));let f=l==(s?e.length-1:0)?null:e[l+(s?1:-1)];return f&&c==h&&f.level+(s?0:1)<a.level?O.cursor(f.side(!s,t)+n.from,f.forward(s,t)?1:-1,f.level):O.cursor(c+n.from,a.forward(s,t)?-1:1,a.level)}function Od(n,e,t){for(let i=e;i<t;i++){let s=Nl(n.charCodeAt(i));if(s==1)return Ft;if(s==2||s==4)return l2}return Ft}const $l=L.define(),Wl=L.define(),Fl=L.define(),Gl=L.define(),As=L.define(),jl=L.define(),ql=L.define(),a2=L.define(),c2=L.define(),Ul=L.define({combine:n=>n.some(e=>e)}),Yl=L.define({combine:n=>n.some(e=>e)}),Kl=L.define();class ti{constructor(e,t="nearest",i="nearest",s=5,o=5,r=!1){this.range=e,this.y=t,this.x=i,this.yMargin=s,this.xMargin=o,this.isSnapshot=r}map(e){return e.empty?this:new ti(this.range.map(e),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}clip(e){return this.range.to<=e.doc.length?this:new ti(O.cursor(e.doc.length),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}}const r0=G.define({map:(n,e)=>n.map(e)}),Xl=G.define();function Pe(n,e,t){let i=n.facet(Gl);i.length?i[0](e):window.onerror&&window.onerror(String(e),t,void 0,void 0,e)||(t?console.error(t+":",e):console.error(e))}const ht=L.define({combine:n=>n.length?n[0]:!0});let Md=0;const Kt=L.define({combine(n){return n.filter((e,t)=>{for(let i=0;i<t;i++)if(n[i].plugin==e.plugin)return!1;return!0})}});class he{constructor(e,t,i,s,o){this.id=e,this.create=t,this.domEventHandlers=i,this.domEventObservers=s,this.baseExtensions=o(this),this.extension=this.baseExtensions.concat(Kt.of({plugin:this,arg:void 0}))}of(e){return this.baseExtensions.concat(Kt.of({plugin:this,arg:e}))}static define(e,t){const{eventHandlers:i,eventObservers:s,provide:o,decorations:r}=t||{};return new he(Md++,e,i,s,l=>{let a=[];return r&&a.push(Ii.of(h=>{let c=h.plugin(l);return c?r(c):W.none})),o&&a.push(o(l)),a})}static fromClass(e,t){return he.define((i,s)=>new e(i,s),t)}}class En{constructor(e){this.spec=e,this.mustUpdate=null,this.value=null}get plugin(){return this.spec&&this.spec.plugin}update(e){if(this.value){if(this.mustUpdate){let t=this.mustUpdate;if(this.mustUpdate=null,this.value.update)try{this.value.update(t)}catch(i){if(Pe(t.state,i,"CodeMirror plugin crashed"),this.value.destroy)try{this.value.destroy()}catch{}this.deactivate()}}}else if(this.spec)try{this.value=this.spec.plugin.create(e,this.spec.arg)}catch(t){Pe(e.state,t,"CodeMirror plugin crashed"),this.deactivate()}return this}destroy(e){var t;if(!((t=this.value)===null||t===void 0)&&t.destroy)try{this.value.destroy()}catch(i){Pe(e.state,i,"CodeMirror plugin crashed")}}deactivate(){this.spec=this.value=null}}const Ql=L.define(),h2=L.define(),Ii=L.define(),Jl=L.define(),u2=L.define(),Zl=L.define();function lo(n,e){let t=n.state.facet(Zl);if(!t.length)return t;let i=t.map(o=>o instanceof Function?o(n):o),s=[];return U.spans(i,e.from,e.to,{point(){},span(o,r,l,a){let h=o-e.from,c=r-e.from,f=s;for(let d=l.length-1;d>=0;d--,a--){let p=l[d].spec.bidiIsolate,g;if(p==null&&(p=Od(e.text,h,c)),a>0&&f.length&&(g=f[f.length-1]).to==h&&g.direction==p)g.to=c,f=g.inner;else{let m={from:h,to:c,direction:p,inner:[]};f.push(m),f=m.inner}}}}),s}const ea=L.define();function f2(n){let e=0,t=0,i=0,s=0;for(let o of n.state.facet(ea)){let r=o(n);r&&(r.left!=null&&(e=Math.max(e,r.left)),r.right!=null&&(t=Math.max(t,r.right)),r.top!=null&&(i=Math.max(i,r.top)),r.bottom!=null&&(s=Math.max(s,r.bottom)))}return{left:e,right:t,top:i,bottom:s}}const ki=L.define();class We{constructor(e,t,i,s){this.fromA=e,this.toA=t,this.fromB=i,this.toB=s}join(e){return new We(Math.min(this.fromA,e.fromA),Math.max(this.toA,e.toA),Math.min(this.fromB,e.fromB),Math.max(this.toB,e.toB))}addToSet(e){let t=e.length,i=this;for(;t>0;t--){let s=e[t-1];if(!(s.fromA>i.toA)){if(s.toA<i.fromA)break;i=i.join(s),e.splice(t-1,1)}}return e.splice(t,0,i),e}static extendWithRanges(e,t){if(t.length==0)return e;let i=[];for(let s=0,o=0,r=0,l=0;;s++){let a=s==e.length?null:e[s],h=r-l,c=a?a.fromB:1e9;for(;o<t.length&&t[o]<c;){let f=t[o],d=t[o+1],p=Math.max(l,f),g=Math.min(c,d);if(p<=g&&new We(p+h,g+h,p,g).addToSet(i),d>c)break;o+=2}if(!a)return i;new We(a.fromA,a.toA,a.fromB,a.toB).addToSet(i),r=a.toA,l=a.toB}}}class F0{constructor(e,t,i){this.view=e,this.state=t,this.transactions=i,this.flags=0,this.startState=e.state,this.changes=fe.empty(this.startState.doc.length);for(let o of i)this.changes=this.changes.compose(o.changes);let s=[];this.changes.iterChangedRanges((o,r,l,a)=>s.push(new We(o,r,l,a))),this.changedRanges=s}static create(e,t,i){return new F0(e,t,i)}get viewportChanged(){return(this.flags&4)>0}get viewportMoved(){return(this.flags&8)>0}get heightChanged(){return(this.flags&2)>0}get geometryChanged(){return this.docChanged||(this.flags&18)>0}get focusChanged(){return(this.flags&1)>0}get docChanged(){return!this.changes.empty}get selectionSet(){return this.transactions.some(e=>e.selection)}get empty(){return this.flags==0&&this.transactions.length==0}}class ao extends te{get length(){return this.view.state.doc.length}constructor(e){super(),this.view=e,this.decorations=[],this.dynamicDecorationMap=[!1],this.domChanged=null,this.hasComposition=null,this.markedForComposition=new Set,this.editContextFormatting=W.none,this.lastCompositionAfterCursor=!1,this.minWidth=0,this.minWidthFrom=0,this.minWidthTo=0,this.impreciseAnchor=null,this.impreciseHead=null,this.forceSelection=!1,this.lastUpdate=Date.now(),this.setDOM(e.contentDOM),this.children=[new ae],this.children[0].setParent(this),this.updateDeco(),this.updateInner([new We(0,0,0,e.state.doc.length)],0,null)}update(e){var t;let i=e.changedRanges;this.minWidth>0&&i.length&&(i.every(({fromA:h,toA:c})=>c<this.minWidthFrom||h>this.minWidthTo)?(this.minWidthFrom=e.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=e.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0),this.updateEditContextFormatting(e);let s=-1;this.view.inputState.composing>=0&&!this.view.observer.editContext&&(!((t=this.domChanged)===null||t===void 0)&&t.newSel?s=this.domChanged.newSel.head:!Vd(e.changes,this.hasComposition)&&!e.selectionSet&&(s=e.state.selection.main.head));let o=s>-1?Td(this.view,e.changes,s):null;if(this.domChanged=null,this.hasComposition){this.markedForComposition.clear();let{from:h,to:c}=this.hasComposition;i=new We(h,c,e.changes.mapPos(h,-1),e.changes.mapPos(c,1)).addToSet(i.slice())}this.hasComposition=o?{from:o.range.fromB,to:o.range.toB}:null,(V.ie||V.chrome)&&!o&&e&&e.state.doc.lines!=e.startState.doc.lines&&(this.forceSelection=!0);let r=this.decorations,l=this.updateDeco(),a=Pd(r,l,e.changes);return i=We.extendWithRanges(i,a),!(this.flags&7)&&i.length==0?!1:(this.updateInner(i,e.startState.doc.length,o),e.transactions.length&&(this.lastUpdate=Date.now()),!0)}updateInner(e,t,i){this.view.viewState.mustMeasureContent=!0,this.updateChildren(e,t,i);let{observer:s}=this.view;s.ignore(()=>{this.dom.style.height=this.view.viewState.contentHeight/this.view.scaleY+"px",this.dom.style.flexBasis=this.minWidth?this.minWidth+"px":"";let r=V.chrome||V.ios?{node:s.selectionRange.focusNode,written:!1}:void 0;this.sync(this.view,r),this.flags&=-8,r&&(r.written||s.selectionRange.focusNode!=r.node)&&(this.forceSelection=!0),this.dom.style.height=""}),this.markedForComposition.forEach(r=>r.flags&=-9);let o=[];if(this.view.viewport.from||this.view.viewport.to<this.view.state.doc.length)for(let r of this.children)r instanceof ut&&r.widget instanceof Os&&o.push(r.dom);s.updateGaps(o)}updateChildren(e,t,i){let s=i?i.range.addToSet(e.slice()):e,o=this.childCursor(t);for(let r=s.length-1;;r--){let l=r>=0?s[r]:null;if(!l)break;let{fromA:a,toA:h,fromB:c,toB:f}=l,d,p,g,m;if(i&&i.range.fromB<f&&i.range.toB>c){let k=Ti.build(this.view.state.doc,c,i.range.fromB,this.decorations,this.dynamicDecorationMap),y=Ti.build(this.view.state.doc,i.range.toB,f,this.decorations,this.dynamicDecorationMap);p=k.breakAtStart,g=k.openStart,m=y.openEnd;let _=this.compositionView(i);y.breakAtStart?_.breakAfter=1:y.content.length&&_.merge(_.length,_.length,y.content[0],!1,y.openStart,0)&&(_.breakAfter=y.content[0].breakAfter,y.content.shift()),k.content.length&&_.merge(0,0,k.content[k.content.length-1],!0,0,k.openEnd)&&k.content.pop(),d=k.content.concat(_).concat(y.content)}else({content:d,breakAtStart:p,openStart:g,openEnd:m}=Ti.build(this.view.state.doc,c,f,this.decorations,this.dynamicDecorationMap));let{i:v,off:w}=o.findPos(h,1),{i:b,off:S}=o.findPos(a,-1);Dl(this,b,S,v,w,d,p,g,m)}i&&this.fixCompositionDOM(i)}updateEditContextFormatting(e){this.editContextFormatting=this.editContextFormatting.map(e.changes);for(let t of e.transactions)for(let i of t.effects)i.is(Xl)&&(this.editContextFormatting=i.value)}compositionView(e){let t=new Ue(e.text.nodeValue);t.flags|=8;for(let{deco:s}of e.marks)t=new dt(s,[t],t.length);let i=new ae;return i.append(t,0),i}fixCompositionDOM(e){let t=(o,r)=>{r.flags|=8|(r.children.some(a=>a.flags&7)?1:0),this.markedForComposition.add(r);let l=te.get(o);l&&l!=r&&(l.dom=null),r.setDOM(o)},i=this.childPos(e.range.fromB,1),s=this.children[i.i];t(e.line,s);for(let o=e.marks.length-1;o>=-1;o--)i=s.childPos(i.off,1),s=s.children[i.i],t(o>=0?e.marks[o].node:e.text,s)}updateSelection(e=!1,t=!1){(e||!this.view.observer.selectionRange.focusNode)&&this.view.observer.readSelectionRange();let i=this.view.root.activeElement,s=i==this.dom,o=!s&&!(this.view.state.facet(ht)||this.dom.tabIndex>-1)&&D0(this.dom,this.view.observer.selectionRange)&&!(i&&this.dom.contains(i));if(!(s||t||o))return;let r=this.forceSelection;this.forceSelection=!1;let l=this.view.state.selection.main,a=this.moveToLine(this.domAtPos(l.anchor)),h=l.empty?a:this.moveToLine(this.domAtPos(l.head));if(V.gecko&&l.empty&&!this.hasComposition&&Dd(a)){let f=document.createTextNode("");this.view.observer.ignore(()=>a.node.insertBefore(f,a.node.childNodes[a.offset]||null)),a=h=new ke(f,0),r=!0}let c=this.view.observer.selectionRange;(r||!c.focusNode||(!Di(a.node,a.offset,c.anchorNode,c.anchorOffset)||!Di(h.node,h.offset,c.focusNode,c.focusOffset))&&!this.suppressWidgetCursorChange(c,l))&&(this.view.observer.ignore(()=>{V.android&&V.chrome&&this.dom.contains(c.focusNode)&&Ed(c.focusNode,this.dom)&&(this.dom.blur(),this.dom.focus({preventScroll:!0}));let f=Ni(this.view.root);if(f)if(l.empty){if(V.gecko){let d=Ad(a.node,a.offset);if(d&&d!=3){let p=(d==1?_l:Ol)(a.node,a.offset);p&&(a=new ke(p.node,p.offset))}}f.collapse(a.node,a.offset),l.bidiLevel!=null&&f.caretBidiLevel!==void 0&&(f.caretBidiLevel=l.bidiLevel)}else if(f.extend){f.collapse(a.node,a.offset);try{f.extend(h.node,h.offset)}catch{}}else{let d=document.createRange();l.anchor>l.head&&([a,h]=[h,a]),d.setEnd(h.node,h.offset),d.setStart(a.node,a.offset),f.removeAllRanges(),f.addRange(d)}o&&this.view.root.activeElement==this.dom&&(this.dom.blur(),i&&i.focus())}),this.view.observer.setSelectionRange(a,h)),this.impreciseAnchor=a.precise?null:new ke(c.anchorNode,c.anchorOffset),this.impreciseHead=h.precise?null:new ke(c.focusNode,c.focusOffset)}suppressWidgetCursorChange(e,t){return this.hasComposition&&t.empty&&Di(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset)&&this.posFromDOM(e.focusNode,e.focusOffset)==t.head}enforceCursorAssoc(){if(this.hasComposition)return;let{view:e}=this,t=e.state.selection.main,i=Ni(e.root),{anchorNode:s,anchorOffset:o}=e.observer.selectionRange;if(!i||!t.empty||!t.assoc||!i.modify)return;let r=ae.find(this,t.head);if(!r)return;let l=r.posAtStart;if(t.head==l||t.head==l+r.length)return;let a=this.coordsAt(t.head,-1),h=this.coordsAt(t.head,1);if(!a||!h||a.bottom>h.top)return;let c=this.domAtPos(t.head+t.assoc);i.collapse(c.node,c.offset),i.modify("move",t.assoc<0?"forward":"backward","lineboundary"),e.observer.readSelectionRange();let f=e.observer.selectionRange;e.docView.posFromDOM(f.anchorNode,f.anchorOffset)!=t.from&&i.collapse(s,o)}moveToLine(e){let t=this.dom,i;if(e.node!=t)return e;for(let s=e.offset;!i&&s<t.childNodes.length;s++){let o=te.get(t.childNodes[s]);o instanceof ae&&(i=o.domAtPos(0))}for(let s=e.offset-1;!i&&s>=0;s--){let o=te.get(t.childNodes[s]);o instanceof ae&&(i=o.domAtPos(o.length))}return i?new ke(i.node,i.offset,!0):e}nearest(e){for(let t=e;t;){let i=te.get(t);if(i&&i.rootView==this)return i;t=t.parentNode}return null}posFromDOM(e,t){let i=this.nearest(e);if(!i)throw new RangeError("Trying to find position for a DOM position outside of the document");return i.localPosFromDOM(e,t)+i.posAtStart}domAtPos(e){let{i:t,off:i}=this.childCursor().findPos(e,-1);for(;t<this.children.length-1;){let s=this.children[t];if(i<s.length||s instanceof ae)break;t++,i=0}return this.children[t].domAtPos(i)}coordsAt(e,t){let i=null,s=0;for(let o=this.length,r=this.children.length-1;r>=0;r--){let l=this.children[r],a=o-l.breakAfter,h=a-l.length;if(a<e)break;if(h<=e&&(h<e||l.covers(-1))&&(a>e||l.covers(1))&&(!i||l instanceof ae&&!(i instanceof ae&&t>=0)))i=l,s=h;else if(i&&h==e&&a==e&&l instanceof ut&&Math.abs(t)<2){if(l.deco.startSide<0)break;r&&(i=null)}o=h}return i?i.coordsAt(e-s,t):null}coordsForChar(e){let{i:t,off:i}=this.childPos(e,1),s=this.children[t];if(!(s instanceof ae))return null;for(;s.children.length;){let{i:l,off:a}=s.childPos(i,1);for(;;l++){if(l==s.children.length)return null;if((s=s.children[l]).length)break}i=a}if(!(s instanceof Ue))return null;let o=xe(s.text,i);if(o==i)return null;let r=Wt(s.dom,i,o).getClientRects();for(let l=0;l<r.length;l++){let a=r[l];if(l==r.length-1||a.top<a.bottom&&a.left<a.right)return a}return null}measureVisibleLineHeights(e){let t=[],{from:i,to:s}=e,o=this.view.contentDOM.clientWidth,r=o>Math.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,l=-1,a=this.view.textDirection==se.LTR;for(let h=0,c=0;c<this.children.length;c++){let f=this.children[c],d=h+f.length;if(d>s)break;if(h>=i){let p=f.dom.getBoundingClientRect();if(t.push(p.height),r){let g=f.dom.lastChild,m=g?Ri(g):[];if(m.length){let v=m[m.length-1],w=a?v.right-p.left:p.right-v.left;w>l&&(l=w,this.minWidth=o,this.minWidthFrom=h,this.minWidthTo=d)}}}h=d+f.breakAfter}return t}textDirectionAt(e){let{i:t}=this.childPos(e,1);return getComputedStyle(this.children[t].dom).direction=="rtl"?se.RTL:se.LTR}measureTextSize(){for(let o of this.children)if(o instanceof ae){let r=o.measureTextSize();if(r)return r}let e=document.createElement("div"),t,i,s;return e.className="cm-line",e.style.width="99999px",e.style.position="absolute",e.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore(()=>{this.dom.appendChild(e);let o=Ri(e.firstChild)[0];t=e.getBoundingClientRect().height,i=o?o.width/27:7,s=o?o.height:t,e.remove()}),{lineHeight:t,charWidth:i,textHeight:s}}childCursor(e=this.length){let t=this.children.length;return t&&(e-=this.children[--t].length),new Ml(this.children,e,t)}computeBlockGapDeco(){let e=[],t=this.view.viewState;for(let i=0,s=0;;s++){let o=s==t.viewports.length?null:t.viewports[s],r=o?o.from-1:this.length;if(r>i){let l=(t.lineBlockAt(r).bottom-t.lineBlockAt(i).top)/this.view.scaleY;e.push(W.replace({widget:new Os(l),block:!0,inclusive:!0,isBlockGap:!0}).range(i,r))}if(!o)break;i=o.to+1}return W.set(e)}updateDeco(){let e=1,t=this.view.state.facet(Ii).map(o=>(this.dynamicDecorationMap[e++]=typeof o=="function")?o(this.view):o),i=!1,s=this.view.state.facet(Jl).map((o,r)=>{let l=typeof o=="function";return l&&(i=!0),l?o(this.view):o});for(s.length&&(this.dynamicDecorationMap[e++]=i,t.push(U.join(s))),this.decorations=[this.editContextFormatting,...t,this.computeBlockGapDeco(),this.view.viewState.lineGapDeco];e<this.decorations.length;)this.dynamicDecorationMap[e++]=!1;return this.decorations}scrollIntoView(e){if(e.isSnapshot){let h=this.view.viewState.lineBlockAt(e.range.head);this.view.scrollDOM.scrollTop=h.top-e.yMargin,this.view.scrollDOM.scrollLeft=e.xMargin;return}for(let h of this.view.state.facet(Kl))try{if(h(this.view,e.range,e))return!0}catch(c){Pe(this.view.state,c,"scroll handler")}let{range:t}=e,i=this.coordsAt(t.head,t.empty?t.assoc:t.head>t.anchor?-1:1),s;if(!i)return;!t.empty&&(s=this.coordsAt(t.anchor,t.anchor>t.head?-1:1))&&(i={left:Math.min(i.left,s.left),top:Math.min(i.top,s.top),right:Math.max(i.right,s.right),bottom:Math.max(i.bottom,s.bottom)});let o=f2(this.view),r={left:i.left-o.left,top:i.top-o.top,right:i.right+o.right,bottom:i.bottom+o.bottom},{offsetWidth:l,offsetHeight:a}=this.view.scrollDOM;rd(this.view.scrollDOM,r,t.head<t.anchor?-1:1,e.x,e.y,Math.max(Math.min(e.xMargin,l),-l),Math.max(Math.min(e.yMargin,a),-a),this.view.textDirection==se.LTR)}}function Dd(n){return n.node.nodeType==1&&n.node.firstChild&&(n.offset==0||n.node.childNodes[n.offset-1].contentEditable=="false")&&(n.offset==n.node.childNodes.length||n.node.childNodes[n.offset].contentEditable=="false")}function ta(n,e){let t=n.observer.selectionRange;if(!t.focusNode)return null;let i=_l(t.focusNode,t.focusOffset),s=Ol(t.focusNode,t.focusOffset),o=i||s;if(s&&i&&s.node!=i.node){let l=te.get(s.node);if(!l||l instanceof Ue&&l.text!=s.node.nodeValue)o=s;else if(n.docView.lastCompositionAfterCursor){let a=te.get(i.node);!a||a instanceof Ue&&a.text!=i.node.nodeValue||(o=s)}}if(n.docView.lastCompositionAfterCursor=o!=i,!o)return null;let r=e-o.offset;return{from:r,to:r+o.node.nodeValue.length,node:o.node}}function Td(n,e,t){let i=ta(n,t);if(!i)return null;let{node:s,from:o,to:r}=i,l=s.nodeValue;if(/[\n\r]/.test(l)||n.state.doc.sliceString(i.from,i.to)!=l)return null;let a=e.invertedDesc,h=new We(a.mapPos(o),a.mapPos(r),o,r),c=[];for(let f=s.parentNode;;f=f.parentNode){let d=te.get(f);if(d instanceof dt)c.push({node:f,deco:d.mark});else{if(d instanceof ae||f.nodeName=="DIV"&&f.parentNode==n.contentDOM)return{range:h,text:s,marks:c,line:f};if(f!=n.contentDOM)c.push({node:f,deco:new Xi({inclusive:!0,attributes:md(f),tagName:f.tagName.toLowerCase()})});else return null}}}function Ad(n,e){return n.nodeType!=1?0:(e&&n.childNodes[e-1].contentEditable=="false"?1:0)|(e<n.childNodes.length&&n.childNodes[e].contentEditable=="false"?2:0)}let Bd=class{constructor(){this.changes=[]}compareRange(e,t){T0(e,t,this.changes)}comparePoint(e,t){T0(e,t,this.changes)}boundChange(e){T0(e,e,this.changes)}};function Pd(n,e,t){let i=new Bd;return U.compare(n,e,t,i),i.changes}function Ed(n,e){for(let t=n;t&&t!=e;t=t.assignedSlot||t.parentNode)if(t.nodeType==1&&t.contentEditable=="false")return!0;return!1}function Vd(n,e){let t=!1;return e&&n.iterChangedRanges((i,s)=>{i<e.to&&s>e.from&&(t=!0)}),t}function zd(n,e,t=1){let i=n.charCategorizer(e),s=n.doc.lineAt(e),o=e-s.from;if(s.length==0)return O.cursor(e);o==0?t=1:o==s.length&&(t=-1);let r=o,l=o;t<0?r=xe(s.text,o,!1):l=xe(s.text,o);let a=i(s.text.slice(r,l));for(;r>0;){let h=xe(s.text,r,!1);if(i(s.text.slice(h,r))!=a)break;r=h}for(;l<s.length;){let h=xe(s.text,l);if(i(s.text.slice(l,h))!=a)break;l=h}return O.range(r+s.from,l+s.from)}function Ld(n,e){return e.left>n?e.left-n:Math.max(0,n-e.right)}function Nd(n,e){return e.top>n?e.top-n:Math.max(0,n-e.bottom)}function Vn(n,e){return n.top<e.bottom-1&&n.bottom>e.top+1}function co(n,e){return e<n.top?{top:e,left:n.left,right:n.right,bottom:n.bottom}:n}function ho(n,e){return e>n.bottom?{top:n.top,left:n.left,right:n.right,bottom:e}:n}function Bs(n,e,t){let i,s,o,r,l=!1,a,h,c,f;for(let g=n.firstChild;g;g=g.nextSibling){let m=Ri(g);for(let v=0;v<m.length;v++){let w=m[v];s&&Vn(s,w)&&(w=co(ho(w,s.bottom),s.top));let b=Ld(e,w),S=Nd(t,w);if(b==0&&S==0)return g.nodeType==3?uo(g,e,t):Bs(g,e,t);(!i||r>S||r==S&&o>b)&&(i=g,s=w,o=b,r=S,l=b?e<w.left?v>0:v<m.length-1:!0),b==0?t>w.bottom&&(!c||c.bottom<w.bottom)?(a=g,c=w):t<w.top&&(!f||f.top>w.top)&&(h=g,f=w):c&&Vn(c,w)?c=ho(c,w.bottom):f&&Vn(f,w)&&(f=co(f,w.top))}}if(c&&c.bottom>=t?(i=a,s=c):f&&f.top<=t&&(i=h,s=f),!i)return{node:n,offset:0};let d=Math.max(s.left,Math.min(s.right,e));if(i.nodeType==3)return uo(i,d,t);if(l&&i.contentEditable!="false")return Bs(i,d,t);let p=Array.prototype.indexOf.call(n.childNodes,i)+(e>=(s.left+s.right)/2?1:0);return{node:n,offset:p}}function uo(n,e,t){let i=n.nodeValue.length,s=-1,o=1e9,r=0;for(let l=0;l<i;l++){let a=Wt(n,l,l+1).getClientRects();for(let h=0;h<a.length;h++){let c=a[h];if(c.top==c.bottom)continue;r||(r=e-c.left);let f=(c.top>t?c.top-t:t-c.bottom)-1;if(c.left-1<=e&&c.right+1>=e&&f<o){let d=e>=(c.left+c.right)/2,p=d;if((V.chrome||V.gecko)&&Wt(n,l).getBoundingClientRect().left==c.right&&(p=!d),f<=0)return{node:n,offset:l+(p?1:0)};s=l+(p?1:0),o=f}}}return{node:n,offset:s>-1?s:r>0?n.nodeValue.length:0}}function ia(n,e,t,i=-1){var s,o;let r=n.contentDOM.getBoundingClientRect(),l=r.top+n.viewState.paddingTop,a,{docHeight:h}=n.viewState,{x:c,y:f}=e,d=f-l;if(d<0)return 0;if(d>h)return n.state.doc.length;for(let k=n.viewState.heightOracle.textHeight/2,y=!1;a=n.elementAtHeight(d),a.type!=_e.Text;)for(;d=i>0?a.bottom+k:a.top-k,!(d>=0&&d<=h);){if(y)return t?null:0;y=!0,i=-i}f=l+d;let p=a.from;if(p<n.viewport.from)return n.viewport.from==0?0:t?null:fo(n,r,a,c,f);if(p>n.viewport.to)return n.viewport.to==n.state.doc.length?n.state.doc.length:t?null:fo(n,r,a,c,f);let g=n.dom.ownerDocument,m=n.root.elementFromPoint?n.root:g,v=m.elementFromPoint(c,f);v&&!n.contentDOM.contains(v)&&(v=null),v||(c=Math.max(r.left+1,Math.min(r.right-1,c)),v=m.elementFromPoint(c,f),v&&!n.contentDOM.contains(v)&&(v=null));let w,b=-1;if(v&&((s=n.docView.nearest(v))===null||s===void 0?void 0:s.isEditable)!=!1){if(g.caretPositionFromPoint){let k=g.caretPositionFromPoint(c,f);k&&({offsetNode:w,offset:b}=k)}else if(g.caretRangeFromPoint){let k=g.caretRangeFromPoint(c,f);k&&({startContainer:w,startOffset:b}=k,(!n.contentDOM.contains(w)||V.safari&&Rd(w,b,c)||V.chrome&&Id(w,b,c))&&(w=void 0))}w&&(b=Math.min(rt(w),b))}if(!w||!n.docView.dom.contains(w)){let k=ae.find(n.docView,p);if(!k)return d>a.top+a.height/2?a.to:a.from;({node:w,offset:b}=Bs(k.dom,c,f))}let S=n.docView.nearest(w);if(!S)return null;if(S.isWidget&&((o=S.dom)===null||o===void 0?void 0:o.nodeType)==1){let k=S.dom.getBoundingClientRect();return e.y<k.top||e.y<=k.bottom&&e.x<=(k.left+k.right)/2?S.posAtStart:S.posAtEnd}else return S.localPosFromDOM(w,b)+S.posAtStart}function fo(n,e,t,i,s){let o=Math.round((i-e.left)*n.defaultCharacterWidth);if(n.lineWrapping&&t.height>n.defaultLineHeight*1.5){let l=n.viewState.heightOracle.textHeight,a=Math.floor((s-t.top-(n.defaultLineHeight-l)*.5)/l);o+=a*n.viewState.heightOracle.lineLength}let r=n.state.sliceDoc(t.from,t.to);return t.from+vs(r,o,n.state.tabSize)}function Rd(n,e,t){let i,s=n;if(n.nodeType!=3||e!=(i=n.nodeValue.length))return!1;for(;;){let o=s.nextSibling;if(o){if(o.nodeName=="BR")break;return!1}else{let r=s.parentNode;if(!r||r.nodeName=="DIV")break;s=r}}return Wt(n,i-1,i).getBoundingClientRect().right>t}function Id(n,e,t){if(e!=0)return!1;for(let s=n;;){let o=s.parentNode;if(!o||o.nodeType!=1||o.firstChild!=s)return!1;if(o.classList.contains("cm-line"))break;s=o}let i=n.nodeType==1?n.getBoundingClientRect():Wt(n,0,Math.max(n.nodeValue.length,1)).getBoundingClientRect();return t-i.left>5}function Ps(n,e,t){let i=n.lineBlockAt(e);if(Array.isArray(i.type)){let s;for(let o of i.type){if(o.from>e)break;if(!(o.to<e)){if(o.from<e&&o.to>e)return o;(!s||o.type==_e.Text&&(s.type!=o.type||(t<0?o.from<e:o.to>e)))&&(s=o)}}return s||i}return i}function Hd(n,e,t,i){let s=Ps(n,e.head,e.assoc||-1),o=!i||s.type!=_e.Text||!(n.lineWrapping||s.widgetLineBreaks)?null:n.coordsAtPos(e.assoc<0&&e.head>s.from?e.head-1:e.head);if(o){let r=n.dom.getBoundingClientRect(),l=n.textDirectionAt(s.from),a=n.posAtCoords({x:t==(l==se.LTR)?r.right-1:r.left+1,y:(o.top+o.bottom)/2});if(a!=null)return O.cursor(a,t?-1:1)}return O.cursor(t?s.to:s.from,t?-1:1)}function po(n,e,t,i){let s=n.state.doc.lineAt(e.head),o=n.bidiSpans(s),r=n.textDirectionAt(s.from);for(let l=e,a=null;;){let h=_d(s,o,r,l,t),c=Hl;if(!h){if(s.number==(t?n.state.doc.lines:1))return l;c=`
|
|
8
|
+
`,s=n.state.doc.line(s.number+(t?1:-1)),o=n.bidiSpans(s),h=n.visualLineSide(s,!t)}if(a){if(!a(c))return l}else{if(!i)return h;a=i(c)}l=h}}function $d(n,e,t){let i=n.state.charCategorizer(e),s=i(t);return o=>{let r=i(o);return s==oe.Space&&(s=r),s==r}}function Wd(n,e,t,i){let s=e.head,o=t?1:-1;if(s==(t?n.state.doc.length:0))return O.cursor(s,e.assoc);let r=e.goalColumn,l,a=n.contentDOM.getBoundingClientRect(),h=n.coordsAtPos(s,e.assoc||-1),c=n.documentTop;if(h)r==null&&(r=h.left-a.left),l=o<0?h.top:h.bottom;else{let p=n.viewState.lineBlockAt(s);r==null&&(r=Math.min(a.right-a.left,n.defaultCharacterWidth*(s-p.from))),l=(o<0?p.top:p.bottom)+c}let f=a.left+r,d=i??n.viewState.heightOracle.textHeight>>1;for(let p=0;;p+=10){let g=l+(d+p)*o,m=ia(n,{x:f,y:g},!1,o);if(g<a.top||g>a.bottom||(o<0?m<s:m>s)){let v=n.docView.coordsForChar(m),w=!v||g<v.top?-1:1;return O.cursor(m,w,void 0,r)}}}function A0(n,e,t){for(;;){let i=0;for(let s of n)s.between(e-1,e+1,(o,r,l)=>{if(e>o&&e<r){let a=i||t||(e-o<r-e?-1:1);e=a<0?o:r,i=a}});if(!i)return e}}function zn(n,e,t){let i=A0(n.state.facet(u2).map(s=>s(n)),t.from,e.head>t.from?-1:1);return i==t.from?t:O.cursor(i,i<t.from?1:-1)}const Si="";class Fd{constructor(e,t){this.points=e,this.text="",this.lineSeparator=t.facet(q.lineSeparator)}append(e){this.text+=e}lineBreak(){this.text+=Si}readRange(e,t){if(!e)return this;let i=e.parentNode;for(let s=e;;){this.findPointBefore(i,s);let o=this.text.length;this.readNode(s);let r=s.nextSibling;if(r==t)break;let l=te.get(s),a=te.get(r);(l&&a?l.breakAfter:(l?l.breakAfter:$0(s))||$0(r)&&(s.nodeName!="BR"||s.cmIgnore)&&this.text.length>o)&&this.lineBreak(),s=r}return this.findPointBefore(i,t),this}readTextNode(e){let t=e.nodeValue;for(let i of this.points)i.node==e&&(i.pos=this.text.length+Math.min(i.offset,t.length));for(let i=0,s=this.lineSeparator?null:/\r\n?|\n/g;;){let o=-1,r=1,l;if(this.lineSeparator?(o=t.indexOf(this.lineSeparator,i),r=this.lineSeparator.length):(l=s.exec(t))&&(o=l.index,r=l[0].length),this.append(t.slice(i,o<0?t.length:o)),o<0)break;if(this.lineBreak(),r>1)for(let a of this.points)a.node==e&&a.pos>this.text.length&&(a.pos-=r-1);i=o+r}}readNode(e){if(e.cmIgnore)return;let t=te.get(e),i=t&&t.overrideDOMText;if(i!=null){this.findPointInside(e,i.length);for(let s=i.iter();!s.next().done;)s.lineBreak?this.lineBreak():this.append(s.value)}else e.nodeType==3?this.readTextNode(e):e.nodeName=="BR"?e.nextSibling&&this.lineBreak():e.nodeType==1&&this.readRange(e.firstChild,null)}findPointBefore(e,t){for(let i of this.points)i.node==e&&e.childNodes[i.offset]==t&&(i.pos=this.text.length)}findPointInside(e,t){for(let i of this.points)(e.nodeType==3?i.node==e:e.contains(i.node))&&(i.pos=this.text.length+(Gd(e,i.node,i.offset)?t:0))}}function Gd(n,e,t){for(;;){if(!e||t<rt(e))return!1;if(e==n)return!0;t=$t(e)+1,e=e.parentNode}}class go{constructor(e,t){this.node=e,this.offset=t,this.pos=-1}}class jd{constructor(e,t,i,s){this.typeOver=s,this.bounds=null,this.text="",this.domChanged=t>-1;let{impreciseHead:o,impreciseAnchor:r}=e.docView;if(e.state.readOnly&&t>-1)this.newSel=null;else if(t>-1&&(this.bounds=e.docView.domBoundsAround(t,i,0))){let l=o||r?[]:Yd(e),a=new Fd(l,e.state);a.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=a.text,this.newSel=Kd(l,this.bounds.from)}else{let l=e.observer.selectionRange,a=o&&o.node==l.focusNode&&o.offset==l.focusOffset||!bs(e.contentDOM,l.focusNode)?e.state.selection.main.head:e.docView.posFromDOM(l.focusNode,l.focusOffset),h=r&&r.node==l.anchorNode&&r.offset==l.anchorOffset||!bs(e.contentDOM,l.anchorNode)?e.state.selection.main.anchor:e.docView.posFromDOM(l.anchorNode,l.anchorOffset),c=e.viewport;if((V.ios||V.chrome)&&e.state.selection.main.empty&&a!=h&&(c.from>0||c.to<e.state.doc.length)){let f=Math.min(a,h),d=Math.max(a,h),p=c.from-f,g=c.to-d;(p==0||p==1||f==0)&&(g==0||g==-1||d==e.state.doc.length)&&(a=0,h=e.state.doc.length)}this.newSel=O.single(h,a)}}}function na(n,e){let t,{newSel:i}=e,s=n.state.selection.main,o=n.inputState.lastKeyTime>Date.now()-100?n.inputState.lastKeyCode:-1;if(e.bounds){let{from:r,to:l}=e.bounds,a=s.from,h=null;(o===8||V.android&&e.text.length<l-r)&&(a=s.to,h="end");let c=Ud(n.state.doc.sliceString(r,l,Si),e.text,a-r,h);c&&(V.chrome&&o==13&&c.toB==c.from+2&&e.text.slice(c.from,c.toB)==Si+Si&&c.toB--,t={from:r+c.from,to:r+c.toA,insert:Y.of(e.text.slice(c.from,c.toB).split(Si))})}else i&&(!n.hasFocus&&n.state.facet(ht)||i.main.eq(s))&&(i=null);if(!t&&!i)return!1;if(!t&&e.typeOver&&!s.empty&&i&&i.main.empty?t={from:s.from,to:s.to,insert:n.state.doc.slice(s.from,s.to)}:(V.mac||V.android)&&t&&t.from==t.to&&t.from==s.head-1&&/^\. ?$/.test(t.insert.toString())&&n.contentDOM.getAttribute("autocorrect")=="off"?(i&&t.insert.length==2&&(i=O.single(i.main.anchor-1,i.main.head-1)),t={from:t.from,to:t.to,insert:Y.of([t.insert.toString().replace("."," ")])}):t&&t.from>=s.from&&t.to<=s.to&&(t.from!=s.from||t.to!=s.to)&&s.to-s.from-(t.to-t.from)<=4?t={from:s.from,to:s.to,insert:n.state.doc.slice(s.from,t.from).append(t.insert).append(n.state.doc.slice(t.to,s.to))}:V.chrome&&t&&t.from==t.to&&t.from==s.head&&t.insert.toString()==`
|
|
9
|
+
`&&n.lineWrapping&&(i&&(i=O.single(i.main.anchor-1,i.main.head-1)),t={from:s.from,to:s.to,insert:Y.of([" "])}),t)return d2(n,t,i,o);if(i&&!i.main.eq(s)){let r=!1,l="select";return n.inputState.lastSelectionTime>Date.now()-50&&(n.inputState.lastSelectionOrigin=="select"&&(r=!0),l=n.inputState.lastSelectionOrigin),n.dispatch({selection:i,scrollIntoView:r,userEvent:l}),!0}else return!1}function d2(n,e,t,i=-1){if(V.ios&&n.inputState.flushIOSKey(e))return!0;let s=n.state.selection.main;if(V.android&&(e.to==s.to&&(e.from==s.from||e.from==s.from-1&&n.state.sliceDoc(e.from,s.from)==" ")&&e.insert.length==1&&e.insert.lines==2&&ei(n.contentDOM,"Enter",13)||(e.from==s.from-1&&e.to==s.to&&e.insert.length==0||i==8&&e.insert.length<e.to-e.from&&e.to>s.head)&&ei(n.contentDOM,"Backspace",8)||e.from==s.from&&e.to==s.to+1&&e.insert.length==0&&ei(n.contentDOM,"Delete",46)))return!0;let o=e.insert.toString();n.inputState.composing>=0&&n.inputState.composing++;let r,l=()=>r||(r=qd(n,e,t));return n.state.facet(jl).some(a=>a(n,e.from,e.to,o,l))||n.dispatch(l()),!0}function qd(n,e,t){let i,s=n.state,o=s.selection.main;if(e.from>=o.from&&e.to<=o.to&&e.to-e.from>=(o.to-o.from)/3&&(!t||t.main.empty&&t.main.from==e.from+e.insert.length)&&n.inputState.composing<0){let l=o.from<e.from?s.sliceDoc(o.from,e.from):"",a=o.to>e.to?s.sliceDoc(e.to,o.to):"";i=s.replaceSelection(n.state.toText(l+e.insert.sliceString(0,void 0,n.state.lineBreak)+a))}else{let l=s.changes(e),a=t&&t.main.to<=l.newLength?t.main:void 0;if(s.selection.ranges.length>1&&n.inputState.composing>=0&&e.to<=o.to&&e.to>=o.to-10){let h=n.state.sliceDoc(e.from,e.to),c,f=t&&ta(n,t.main.head);if(f){let g=e.insert.length-(e.to-e.from);c={from:f.from,to:f.to-g}}else c=n.state.doc.lineAt(o.head);let d=o.to-e.to,p=o.to-o.from;i=s.changeByRange(g=>{if(g.from==o.from&&g.to==o.to)return{changes:l,range:a||g.map(l)};let m=g.to-d,v=m-h.length;if(g.to-g.from!=p||n.state.sliceDoc(v,m)!=h||g.to>=c.from&&g.from<=c.to)return{range:g};let w=s.changes({from:v,to:m,insert:e.insert}),b=g.to-o.to;return{changes:w,range:a?O.range(Math.max(0,a.anchor+b),Math.max(0,a.head+b)):g.map(w)}})}else i={changes:l,selection:a&&s.selection.replaceRange(a)}}let r="input.type";return(n.composing||n.inputState.compositionPendingChange&&n.inputState.compositionEndedAt>Date.now()-50)&&(n.inputState.compositionPendingChange=!1,r+=".compose",n.inputState.compositionFirstChange&&(r+=".start",n.inputState.compositionFirstChange=!1)),s.update(i,{userEvent:r,scrollIntoView:!0})}function Ud(n,e,t,i){let s=Math.min(n.length,e.length),o=0;for(;o<s&&n.charCodeAt(o)==e.charCodeAt(o);)o++;if(o==s&&n.length==e.length)return null;let r=n.length,l=e.length;for(;r>0&&l>0&&n.charCodeAt(r-1)==e.charCodeAt(l-1);)r--,l--;if(i=="end"){let a=Math.max(0,o-Math.min(r,l));t-=r+a-o}if(r<o&&n.length<e.length){let a=t<=o&&t>=r?o-t:0;o-=a,l=o+(l-r),r=o}else if(l<o){let a=t<=o&&t>=l?o-t:0;o-=a,r=o+(r-l),l=o}return{from:o,toA:r,toB:l}}function Yd(n){let e=[];if(n.root.activeElement!=n.contentDOM)return e;let{anchorNode:t,anchorOffset:i,focusNode:s,focusOffset:o}=n.observer.selectionRange;return t&&(e.push(new go(t,i)),(s!=t||o!=i)&&e.push(new go(s,o))),e}function Kd(n,e){if(n.length==0)return null;let t=n[0].pos,i=n.length==2?n[1].pos:t;return t>-1&&i>-1?O.single(t+e,i+e):null}class Xd{setSelectionOrigin(e){this.lastSelectionOrigin=e,this.lastSelectionTime=Date.now()}constructor(e){this.view=e,this.lastKeyCode=0,this.lastKeyTime=0,this.lastTouchTime=0,this.lastFocusTime=0,this.lastScrollTop=0,this.lastScrollLeft=0,this.pendingIOSKey=void 0,this.tabFocusMode=-1,this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastContextMenu=0,this.scrollHandlers=[],this.handlers=Object.create(null),this.composing=-1,this.compositionFirstChange=null,this.compositionEndedAt=0,this.compositionPendingKey=!1,this.compositionPendingChange=!1,this.mouseSelection=null,this.draggedContent=null,this.handleEvent=this.handleEvent.bind(this),this.notifiedFocused=e.hasFocus,V.safari&&e.contentDOM.addEventListener("input",()=>null),V.gecko&&f6(e.contentDOM.ownerDocument)}handleEvent(e){!s6(this.view,e)||this.ignoreDuringComposition(e)||e.type=="keydown"&&this.keydown(e)||(this.view.updateState!=0?Promise.resolve().then(()=>this.runHandlers(e.type,e)):this.runHandlers(e.type,e))}runHandlers(e,t){let i=this.handlers[e];if(i){for(let s of i.observers)s(this.view,t);for(let s of i.handlers){if(t.defaultPrevented)break;if(s(this.view,t)){t.preventDefault();break}}}}ensureHandlers(e){let t=Qd(e),i=this.handlers,s=this.view.contentDOM;for(let o in t)if(o!="scroll"){let r=!t[o].handlers.length,l=i[o];l&&r!=!l.handlers.length&&(s.removeEventListener(o,this.handleEvent),l=null),l||s.addEventListener(o,this.handleEvent,{passive:r})}for(let o in i)o!="scroll"&&!t[o]&&s.removeEventListener(o,this.handleEvent);this.handlers=t}keydown(e){if(this.lastKeyCode=e.keyCode,this.lastKeyTime=Date.now(),e.keyCode==9&&this.tabFocusMode>-1&&(!this.tabFocusMode||Date.now()<=this.tabFocusMode))return!0;if(this.tabFocusMode>0&&e.keyCode!=27&&oa.indexOf(e.keyCode)<0&&(this.tabFocusMode=-1),V.android&&V.chrome&&!e.synthetic&&(e.keyCode==13||e.keyCode==8))return this.view.observer.delayAndroidKey(e.key,e.keyCode),!0;let t;return V.ios&&!e.synthetic&&!e.altKey&&!e.metaKey&&((t=sa.find(i=>i.keyCode==e.keyCode))&&!e.ctrlKey||Jd.indexOf(e.key)>-1&&e.ctrlKey&&!e.shiftKey)?(this.pendingIOSKey=t||e,setTimeout(()=>this.flushIOSKey(),250),!0):(e.keyCode!=229&&this.view.observer.forceFlush(),!1)}flushIOSKey(e){let t=this.pendingIOSKey;return!t||t.key=="Enter"&&e&&e.from<e.to&&/^\S+$/.test(e.insert.toString())?!1:(this.pendingIOSKey=void 0,ei(this.view.contentDOM,t.key,t.keyCode,t instanceof KeyboardEvent?t:void 0))}ignoreDuringComposition(e){return/^key/.test(e.type)?this.composing>0?!0:V.safari&&!V.ios&&this.compositionPendingKey&&Date.now()-this.compositionEndedAt<100?(this.compositionPendingKey=!1,!0):!1:!1}startMouseSelection(e){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=e}update(e){this.view.observer.update(e),this.mouseSelection&&this.mouseSelection.update(e),this.draggedContent&&e.docChanged&&(this.draggedContent=this.draggedContent.map(e.changes)),e.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}destroy(){this.mouseSelection&&this.mouseSelection.destroy()}}function mo(n,e){return(t,i)=>{try{return e.call(n,i,t)}catch(s){Pe(t.state,s)}}}function Qd(n){let e=Object.create(null);function t(i){return e[i]||(e[i]={observers:[],handlers:[]})}for(let i of n){let s=i.spec,o=s&&s.plugin.domEventHandlers,r=s&&s.plugin.domEventObservers;if(o)for(let l in o){let a=o[l];a&&t(l).handlers.push(mo(i.value,a))}if(r)for(let l in r){let a=r[l];a&&t(l).observers.push(mo(i.value,a))}}for(let i in Ye)t(i).handlers.push(Ye[i]);for(let i in Ge)t(i).observers.push(Ge[i]);return e}const sa=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Enter",keyCode:13,inputType:"insertLineBreak"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],Jd="dthko",oa=[16,17,18,20,91,92,224,225],l0=6;function a0(n){return Math.max(0,n)*.7+8}function Zd(n,e){return Math.max(Math.abs(n.clientX-e.clientX),Math.abs(n.clientY-e.clientY))}class e6{constructor(e,t,i,s){this.view=e,this.startEvent=t,this.style=i,this.mustSelect=s,this.scrollSpeed={x:0,y:0},this.scrolling=-1,this.lastEvent=t,this.scrollParents=ld(e.contentDOM),this.atoms=e.state.facet(u2).map(r=>r(e));let o=e.contentDOM.ownerDocument;o.addEventListener("mousemove",this.move=this.move.bind(this)),o.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=t.shiftKey,this.multiple=e.state.facet(q.allowMultipleSelections)&&t6(e,t),this.dragging=n6(e,t)&&aa(t)==1?null:!1}start(e){this.dragging===!1&&this.select(e)}move(e){if(e.buttons==0)return this.destroy();if(this.dragging||this.dragging==null&&Zd(this.startEvent,e)<10)return;this.select(this.lastEvent=e);let t=0,i=0,s=0,o=0,r=this.view.win.innerWidth,l=this.view.win.innerHeight;this.scrollParents.x&&({left:s,right:r}=this.scrollParents.x.getBoundingClientRect()),this.scrollParents.y&&({top:o,bottom:l}=this.scrollParents.y.getBoundingClientRect());let a=f2(this.view);e.clientX-a.left<=s+l0?t=-a0(s-e.clientX):e.clientX+a.right>=r-l0&&(t=a0(e.clientX-r)),e.clientY-a.top<=o+l0?i=-a0(o-e.clientY):e.clientY+a.bottom>=l-l0&&(i=a0(e.clientY-l)),this.setScrollSpeed(t,i)}up(e){this.dragging==null&&this.select(this.lastEvent),this.dragging||e.preventDefault(),this.destroy()}destroy(){this.setScrollSpeed(0,0);let e=this.view.contentDOM.ownerDocument;e.removeEventListener("mousemove",this.move),e.removeEventListener("mouseup",this.up),this.view.inputState.mouseSelection=this.view.inputState.draggedContent=null}setScrollSpeed(e,t){this.scrollSpeed={x:e,y:t},e||t?this.scrolling<0&&(this.scrolling=setInterval(()=>this.scroll(),50)):this.scrolling>-1&&(clearInterval(this.scrolling),this.scrolling=-1)}scroll(){let{x:e,y:t}=this.scrollSpeed;e&&this.scrollParents.x&&(this.scrollParents.x.scrollLeft+=e,e=0),t&&this.scrollParents.y&&(this.scrollParents.y.scrollTop+=t,t=0),(e||t)&&this.view.win.scrollBy(e,t),this.dragging===!1&&this.select(this.lastEvent)}skipAtoms(e){let t=null;for(let i=0;i<e.ranges.length;i++){let s=e.ranges[i],o=null;if(s.empty){let r=A0(this.atoms,s.from,0);r!=s.from&&(o=O.cursor(r,-1))}else{let r=A0(this.atoms,s.from,-1),l=A0(this.atoms,s.to,1);(r!=s.from||l!=s.to)&&(o=O.range(s.from==s.anchor?r:l,s.from==s.head?r:l))}o&&(t||(t=e.ranges.slice()),t[i]=o)}return t?O.create(t,e.mainIndex):e}select(e){let{view:t}=this,i=this.skipAtoms(this.style.get(e,this.extend,this.multiple));(this.mustSelect||!i.eq(t.state.selection,this.dragging===!1))&&this.view.dispatch({selection:i,userEvent:"select.pointer"}),this.mustSelect=!1}update(e){e.transactions.some(t=>t.isUserEvent("input.type"))?this.destroy():this.style.update(e)&&setTimeout(()=>this.select(this.lastEvent),20)}}function t6(n,e){let t=n.state.facet($l);return t.length?t[0](e):V.mac?e.metaKey:e.ctrlKey}function i6(n,e){let t=n.state.facet(Wl);return t.length?t[0](e):V.mac?!e.altKey:!e.ctrlKey}function n6(n,e){let{main:t}=n.state.selection;if(t.empty)return!1;let i=Ni(n.root);if(!i||i.rangeCount==0)return!0;let s=i.getRangeAt(0).getClientRects();for(let o=0;o<s.length;o++){let r=s[o];if(r.left<=e.clientX&&r.right>=e.clientX&&r.top<=e.clientY&&r.bottom>=e.clientY)return!0}return!1}function s6(n,e){if(!e.bubbles)return!0;if(e.defaultPrevented)return!1;for(let t=e.target,i;t!=n.contentDOM;t=t.parentNode)if(!t||t.nodeType==11||(i=te.get(t))&&i.ignoreEvent(e))return!1;return!0}const Ye=Object.create(null),Ge=Object.create(null),ra=V.ie&&V.ie_version<15||V.ios&&V.webkit_version<604;function o6(n){let e=n.dom.parentNode;if(!e)return;let t=e.appendChild(document.createElement("textarea"));t.style.cssText="position: fixed; left: -10000px; top: 10px",t.focus(),setTimeout(()=>{n.focus(),t.remove(),la(n,t.value)},50)}function wn(n,e,t){for(let i of n.facet(e))t=i(t,n);return t}function la(n,e){e=wn(n.state,a2,e);let{state:t}=n,i,s=1,o=t.toText(e),r=o.lines==t.selection.ranges.length;if(Es!=null&&t.selection.ranges.every(a=>a.empty)&&Es==o.toString()){let a=-1;i=t.changeByRange(h=>{let c=t.doc.lineAt(h.from);if(c.from==a)return{range:h};a=c.from;let f=t.toText((r?o.line(s++).text:e)+t.lineBreak);return{changes:{from:c.from,insert:f},range:O.cursor(h.from+f.length)}})}else r?i=t.changeByRange(a=>{let h=o.line(s++);return{changes:{from:a.from,to:a.to,insert:h.text},range:O.cursor(a.from+h.length)}}):i=t.replaceSelection(o);n.dispatch(i,{userEvent:"input.paste",scrollIntoView:!0})}Ge.scroll=n=>{n.inputState.lastScrollTop=n.scrollDOM.scrollTop,n.inputState.lastScrollLeft=n.scrollDOM.scrollLeft};Ye.keydown=(n,e)=>(n.inputState.setSelectionOrigin("select"),e.keyCode==27&&n.inputState.tabFocusMode!=0&&(n.inputState.tabFocusMode=Date.now()+2e3),!1);Ge.touchstart=(n,e)=>{n.inputState.lastTouchTime=Date.now(),n.inputState.setSelectionOrigin("select.pointer")};Ge.touchmove=n=>{n.inputState.setSelectionOrigin("select.pointer")};Ye.mousedown=(n,e)=>{if(n.observer.flush(),n.inputState.lastTouchTime>Date.now()-2e3)return!1;let t=null;for(let i of n.state.facet(Fl))if(t=i(n,e),t)break;if(!t&&e.button==0&&(t=a6(n,e)),t){let i=!n.hasFocus;n.inputState.startMouseSelection(new e6(n,e,t,i)),i&&n.observer.ignore(()=>{kl(n.contentDOM);let o=n.root.activeElement;o&&!o.contains(n.contentDOM)&&o.blur()});let s=n.inputState.mouseSelection;if(s)return s.start(e),s.dragging===!1}return!1};function vo(n,e,t,i){if(i==1)return O.cursor(e,t);if(i==2)return zd(n.state,e,t);{let s=ae.find(n.docView,e),o=n.state.doc.lineAt(s?s.posAtEnd:e),r=s?s.posAtStart:o.from,l=s?s.posAtEnd:o.to;return l<n.state.doc.length&&l==o.to&&l++,O.range(r,l)}}let wo=(n,e,t)=>e>=t.top&&e<=t.bottom&&n>=t.left&&n<=t.right;function r6(n,e,t,i){let s=ae.find(n.docView,e);if(!s)return 1;let o=e-s.posAtStart;if(o==0)return 1;if(o==s.length)return-1;let r=s.coordsAt(o,-1);if(r&&wo(t,i,r))return-1;let l=s.coordsAt(o,1);return l&&wo(t,i,l)?1:r&&r.bottom>=i?-1:1}function xo(n,e){let t=n.posAtCoords({x:e.clientX,y:e.clientY},!1);return{pos:t,bias:r6(n,t,e.clientX,e.clientY)}}const l6=V.ie&&V.ie_version<=11;let bo=null,yo=0,ko=0;function aa(n){if(!l6)return n.detail;let e=bo,t=ko;return bo=n,ko=Date.now(),yo=!e||t>Date.now()-400&&Math.abs(e.clientX-n.clientX)<2&&Math.abs(e.clientY-n.clientY)<2?(yo+1)%3:1}function a6(n,e){let t=xo(n,e),i=aa(e),s=n.state.selection;return{update(o){o.docChanged&&(t.pos=o.changes.mapPos(t.pos),s=s.map(o.changes))},get(o,r,l){let a=xo(n,o),h,c=vo(n,a.pos,a.bias,i);if(t.pos!=a.pos&&!r){let f=vo(n,t.pos,t.bias,i),d=Math.min(f.from,c.from),p=Math.max(f.to,c.to);c=d<c.from?O.range(d,p):O.range(p,d)}return r?s.replaceRange(s.main.extend(c.from,c.to)):l&&i==1&&s.ranges.length>1&&(h=c6(s,a.pos))?h:l?s.addRange(c):O.create([c])}}}function c6(n,e){for(let t=0;t<n.ranges.length;t++){let{from:i,to:s}=n.ranges[t];if(i<=e&&s>=e)return O.create(n.ranges.slice(0,t).concat(n.ranges.slice(t+1)),n.mainIndex==t?0:n.mainIndex-(n.mainIndex>t?1:0))}return null}Ye.dragstart=(n,e)=>{let{selection:{main:t}}=n.state;if(e.target.draggable){let s=n.docView.nearest(e.target);if(s&&s.isWidget){let o=s.posAtStart,r=o+s.length;(o>=t.to||r<=t.from)&&(t=O.range(o,r))}}let{inputState:i}=n;return i.mouseSelection&&(i.mouseSelection.dragging=!0),i.draggedContent=t,e.dataTransfer&&(e.dataTransfer.setData("Text",wn(n.state,c2,n.state.sliceDoc(t.from,t.to))),e.dataTransfer.effectAllowed="copyMove"),!1};Ye.dragend=n=>(n.inputState.draggedContent=null,!1);function So(n,e,t,i){if(t=wn(n.state,a2,t),!t)return;let s=n.posAtCoords({x:e.clientX,y:e.clientY},!1),{draggedContent:o}=n.inputState,r=i&&o&&i6(n,e)?{from:o.from,to:o.to}:null,l={from:s,insert:t},a=n.state.changes(r?[r,l]:l);n.focus(),n.dispatch({changes:a,selection:{anchor:a.mapPos(s,-1),head:a.mapPos(s,1)},userEvent:r?"move.drop":"input.drop"}),n.inputState.draggedContent=null}Ye.drop=(n,e)=>{if(!e.dataTransfer)return!1;if(n.state.readOnly)return!0;let t=e.dataTransfer.files;if(t&&t.length){let i=Array(t.length),s=0,o=()=>{++s==t.length&&So(n,e,i.filter(r=>r!=null).join(n.state.lineBreak),!1)};for(let r=0;r<t.length;r++){let l=new FileReader;l.onerror=o,l.onload=()=>{/[\x00-\x08\x0e-\x1f]{2}/.test(l.result)||(i[r]=l.result),o()},l.readAsText(t[r])}return!0}else{let i=e.dataTransfer.getData("Text");if(i)return So(n,e,i,!0),!0}return!1};Ye.paste=(n,e)=>{if(n.state.readOnly)return!0;n.observer.flush();let t=ra?null:e.clipboardData;return t?(la(n,t.getData("text/plain")||t.getData("text/uri-list")),!0):(o6(n),!1)};function h6(n,e){let t=n.dom.parentNode;if(!t)return;let i=t.appendChild(document.createElement("textarea"));i.style.cssText="position: fixed; left: -10000px; top: 10px",i.value=e,i.focus(),i.selectionEnd=e.length,i.selectionStart=0,setTimeout(()=>{i.remove(),n.focus()},50)}function u6(n){let e=[],t=[],i=!1;for(let s of n.selection.ranges)s.empty||(e.push(n.sliceDoc(s.from,s.to)),t.push(s));if(!e.length){let s=-1;for(let{from:o}of n.selection.ranges){let r=n.doc.lineAt(o);r.number>s&&(e.push(r.text),t.push({from:r.from,to:Math.min(n.doc.length,r.to+1)})),s=r.number}i=!0}return{text:wn(n,c2,e.join(n.lineBreak)),ranges:t,linewise:i}}let Es=null;Ye.copy=Ye.cut=(n,e)=>{let{text:t,ranges:i,linewise:s}=u6(n.state);if(!t&&!s)return!1;Es=s?t:null,e.type=="cut"&&!n.state.readOnly&&n.dispatch({changes:i,scrollIntoView:!0,userEvent:"delete.cut"});let o=ra?null:e.clipboardData;return o?(o.clearData(),o.setData("text/plain",t),!0):(h6(n,t),!1)};const ca=gt.define();function ha(n,e){let t=[];for(let i of n.facet(ql)){let s=i(n,e);s&&t.push(s)}return t.length?n.update({effects:t,annotations:ca.of(!0)}):null}function ua(n){setTimeout(()=>{let e=n.hasFocus;if(e!=n.inputState.notifiedFocused){let t=ha(n.state,e);t?n.dispatch(t):n.update([])}},10)}Ge.focus=n=>{n.inputState.lastFocusTime=Date.now(),!n.scrollDOM.scrollTop&&(n.inputState.lastScrollTop||n.inputState.lastScrollLeft)&&(n.scrollDOM.scrollTop=n.inputState.lastScrollTop,n.scrollDOM.scrollLeft=n.inputState.lastScrollLeft),ua(n)};Ge.blur=n=>{n.observer.clearSelectionRange(),ua(n)};Ge.compositionstart=Ge.compositionupdate=n=>{n.observer.editContext||(n.inputState.compositionFirstChange==null&&(n.inputState.compositionFirstChange=!0),n.inputState.composing<0&&(n.inputState.composing=0))};Ge.compositionend=n=>{n.observer.editContext||(n.inputState.composing=-1,n.inputState.compositionEndedAt=Date.now(),n.inputState.compositionPendingKey=!0,n.inputState.compositionPendingChange=n.observer.pendingRecords().length>0,n.inputState.compositionFirstChange=null,V.chrome&&V.android?n.observer.flushSoon():n.inputState.compositionPendingChange?Promise.resolve().then(()=>n.observer.flush()):setTimeout(()=>{n.inputState.composing<0&&n.docView.hasComposition&&n.update([])},50))};Ge.contextmenu=n=>{n.inputState.lastContextMenu=Date.now()};Ye.beforeinput=(n,e)=>{var t,i;if(e.inputType=="insertReplacementText"&&n.observer.editContext){let o=(t=e.dataTransfer)===null||t===void 0?void 0:t.getData("text/plain"),r=e.getTargetRanges();if(o&&r.length){let l=r[0],a=n.posAtDOM(l.startContainer,l.startOffset),h=n.posAtDOM(l.endContainer,l.endOffset);return d2(n,{from:a,to:h,insert:n.state.toText(o)},null),!0}}let s;if(V.chrome&&V.android&&(s=sa.find(o=>o.inputType==e.inputType))&&(n.observer.delayAndroidKey(s.key,s.keyCode),s.key=="Backspace"||s.key=="Delete")){let o=((i=window.visualViewport)===null||i===void 0?void 0:i.height)||0;setTimeout(()=>{var r;(((r=window.visualViewport)===null||r===void 0?void 0:r.height)||0)>o+10&&n.hasFocus&&(n.contentDOM.blur(),n.focus())},100)}return V.ios&&e.inputType=="deleteContentForward"&&n.observer.flushSoon(),V.safari&&e.inputType=="insertText"&&n.inputState.composing>=0&&setTimeout(()=>Ge.compositionend(n,e),20),!1};const Co=new Set;function f6(n){Co.has(n)||(Co.add(n),n.addEventListener("copy",()=>{}),n.addEventListener("cut",()=>{}))}const _o=["pre-wrap","normal","pre-line","break-spaces"];let ai=!1;function Oo(){ai=!1}class d6{constructor(e){this.lineWrapping=e,this.doc=Y.empty,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.textHeight=14,this.lineLength=30}heightForGap(e,t){let i=this.doc.lineAt(t).number-this.doc.lineAt(e).number+1;return this.lineWrapping&&(i+=Math.max(0,Math.ceil((t-e-i*this.lineLength*.5)/this.lineLength))),this.lineHeight*i}heightForLine(e){return this.lineWrapping?(1+Math.max(0,Math.ceil((e-this.lineLength)/Math.max(1,this.lineLength-5))))*this.lineHeight:this.lineHeight}setDoc(e){return this.doc=e,this}mustRefreshForWrapping(e){return _o.indexOf(e)>-1!=this.lineWrapping}mustRefreshForHeights(e){let t=!1;for(let i=0;i<e.length;i++){let s=e[i];s<0?i++:this.heightSamples[Math.floor(s*10)]||(t=!0,this.heightSamples[Math.floor(s*10)]=!0)}return t}refresh(e,t,i,s,o,r){let l=_o.indexOf(e)>-1,a=Math.round(t)!=Math.round(this.lineHeight)||this.lineWrapping!=l;if(this.lineWrapping=l,this.lineHeight=t,this.charWidth=i,this.textHeight=s,this.lineLength=o,a){this.heightSamples={};for(let h=0;h<r.length;h++){let c=r[h];c<0?h++:this.heightSamples[Math.floor(c*10)]=!0}}return a}}class p6{constructor(e,t){this.from=e,this.heights=t,this.index=0}get more(){return this.index<this.heights.length}}class it{constructor(e,t,i,s,o){this.from=e,this.length=t,this.top=i,this.height=s,this._content=o}get type(){return typeof this._content=="number"?_e.Text:Array.isArray(this._content)?this._content:this._content.type}get to(){return this.from+this.length}get bottom(){return this.top+this.height}get widget(){return this._content instanceof Mt?this._content.widget:null}get widgetLineBreaks(){return typeof this._content=="number"?this._content:0}join(e){let t=(Array.isArray(this._content)?this._content:[this]).concat(Array.isArray(e._content)?e._content:[e]);return new it(this.from,this.length+e.length,this.top,this.height+e.height,t)}}var ne=function(n){return n[n.ByPos=0]="ByPos",n[n.ByHeight=1]="ByHeight",n[n.ByPosNoHeight=2]="ByPosNoHeight",n}(ne||(ne={}));const B0=.001;class Oe{constructor(e,t,i=2){this.length=e,this.height=t,this.flags=i}get outdated(){return(this.flags&2)>0}set outdated(e){this.flags=(e?2:0)|this.flags&-3}setHeight(e){this.height!=e&&(Math.abs(this.height-e)>B0&&(ai=!0),this.height=e)}replace(e,t,i){return Oe.of(i)}decomposeLeft(e,t){t.push(this)}decomposeRight(e,t){t.push(this)}applyChanges(e,t,i,s){let o=this,r=i.doc;for(let l=s.length-1;l>=0;l--){let{fromA:a,toA:h,fromB:c,toB:f}=s[l],d=o.lineAt(a,ne.ByPosNoHeight,i.setDoc(t),0,0),p=d.to>=h?d:o.lineAt(h,ne.ByPosNoHeight,i,0,0);for(f+=p.to-h,h=p.to;l>0&&d.from<=s[l-1].toA;)a=s[l-1].fromA,c=s[l-1].fromB,l--,a<d.from&&(d=o.lineAt(a,ne.ByPosNoHeight,i,0,0));c+=d.from-a,a=d.from;let g=p2.build(i.setDoc(r),e,c,f);o=G0(o,o.replace(a,h,g))}return o.updateHeight(i,0)}static empty(){return new Ne(0,0)}static of(e){if(e.length==1)return e[0];let t=0,i=e.length,s=0,o=0;for(;;)if(t==i)if(s>o*2){let l=e[t-1];l.break?e.splice(--t,1,l.left,null,l.right):e.splice(--t,1,l.left,l.right),i+=1+l.break,s-=l.size}else if(o>s*2){let l=e[i];l.break?e.splice(i,1,l.left,null,l.right):e.splice(i,1,l.left,l.right),i+=2+l.break,o-=l.size}else break;else if(s<o){let l=e[t++];l&&(s+=l.size)}else{let l=e[--i];l&&(o+=l.size)}let r=0;return e[t-1]==null?(r=1,t--):e[t]==null&&(r=1,i++),new g6(Oe.of(e.slice(0,t)),r,Oe.of(e.slice(i)))}}function G0(n,e){return n==e?n:(n.constructor!=e.constructor&&(ai=!0),e)}Oe.prototype.size=1;class fa extends Oe{constructor(e,t,i){super(e,t),this.deco=i}blockAt(e,t,i,s){return new it(s,this.length,i,this.height,this.deco||0)}lineAt(e,t,i,s,o){return this.blockAt(0,i,s,o)}forEachLine(e,t,i,s,o,r){e<=o+this.length&&t>=o&&r(this.blockAt(0,i,s,o))}updateHeight(e,t=0,i=!1,s){return s&&s.from<=t&&s.more&&this.setHeight(s.heights[s.index++]),this.outdated=!1,this}toString(){return`block(${this.length})`}}class Ne extends fa{constructor(e,t){super(e,t,null),this.collapsed=0,this.widgetHeight=0,this.breaks=0}blockAt(e,t,i,s){return new it(s,this.length,i,this.height,this.breaks)}replace(e,t,i){let s=i[0];return i.length==1&&(s instanceof Ne||s instanceof ve&&s.flags&4)&&Math.abs(this.length-s.length)<10?(s instanceof ve?s=new Ne(s.length,this.height):s.height=this.height,this.outdated||(s.outdated=!1),s):Oe.of(i)}updateHeight(e,t=0,i=!1,s){return s&&s.from<=t&&s.more?this.setHeight(s.heights[s.index++]):(i||this.outdated)&&this.setHeight(Math.max(this.widgetHeight,e.heightForLine(this.length-this.collapsed))+this.breaks*e.lineHeight),this.outdated=!1,this}toString(){return`line(${this.length}${this.collapsed?-this.collapsed:""}${this.widgetHeight?":"+this.widgetHeight:""})`}}class ve extends Oe{constructor(e){super(e,0)}heightMetrics(e,t){let i=e.doc.lineAt(t).number,s=e.doc.lineAt(t+this.length).number,o=s-i+1,r,l=0;if(e.lineWrapping){let a=Math.min(this.height,e.lineHeight*o);r=a/o,this.length>o+1&&(l=(this.height-a)/(this.length-o-1))}else r=this.height/o;return{firstLine:i,lastLine:s,perLine:r,perChar:l}}blockAt(e,t,i,s){let{firstLine:o,lastLine:r,perLine:l,perChar:a}=this.heightMetrics(t,s);if(t.lineWrapping){let h=s+(e<t.lineHeight?0:Math.round(Math.max(0,Math.min(1,(e-i)/this.height))*this.length)),c=t.doc.lineAt(h),f=l+c.length*a,d=Math.max(i,e-f/2);return new it(c.from,c.length,d,f,0)}else{let h=Math.max(0,Math.min(r-o,Math.floor((e-i)/l))),{from:c,length:f}=t.doc.line(o+h);return new it(c,f,i+l*h,l,0)}}lineAt(e,t,i,s,o){if(t==ne.ByHeight)return this.blockAt(e,i,s,o);if(t==ne.ByPosNoHeight){let{from:p,to:g}=i.doc.lineAt(e);return new it(p,g-p,0,0,0)}let{firstLine:r,perLine:l,perChar:a}=this.heightMetrics(i,o),h=i.doc.lineAt(e),c=l+h.length*a,f=h.number-r,d=s+l*f+a*(h.from-o-f);return new it(h.from,h.length,Math.max(s,Math.min(d,s+this.height-c)),c,0)}forEachLine(e,t,i,s,o,r){e=Math.max(e,o),t=Math.min(t,o+this.length);let{firstLine:l,perLine:a,perChar:h}=this.heightMetrics(i,o);for(let c=e,f=s;c<=t;){let d=i.doc.lineAt(c);if(c==e){let g=d.number-l;f+=a*g+h*(e-o-g)}let p=a+h*d.length;r(new it(d.from,d.length,f,p,0)),f+=p,c=d.to+1}}replace(e,t,i){let s=this.length-t;if(s>0){let o=i[i.length-1];o instanceof ve?i[i.length-1]=new ve(o.length+s):i.push(null,new ve(s-1))}if(e>0){let o=i[0];o instanceof ve?i[0]=new ve(e+o.length):i.unshift(new ve(e-1),null)}return Oe.of(i)}decomposeLeft(e,t){t.push(new ve(e-1),null)}decomposeRight(e,t){t.push(null,new ve(this.length-e-1))}updateHeight(e,t=0,i=!1,s){let o=t+this.length;if(s&&s.from<=t+this.length&&s.more){let r=[],l=Math.max(t,s.from),a=-1;for(s.from>t&&r.push(new ve(s.from-t-1).updateHeight(e,t));l<=o&&s.more;){let c=e.doc.lineAt(l).length;r.length&&r.push(null);let f=s.heights[s.index++];a==-1?a=f:Math.abs(f-a)>=B0&&(a=-2);let d=new Ne(c,f);d.outdated=!1,r.push(d),l+=c+1}l<=o&&r.push(null,new ve(o-l).updateHeight(e,l));let h=Oe.of(r);return(a<0||Math.abs(h.height-this.height)>=B0||Math.abs(a-this.heightMetrics(e,t).perLine)>=B0)&&(ai=!0),G0(this,h)}else(i||this.outdated)&&(this.setHeight(e.heightForGap(t,t+this.length)),this.outdated=!1);return this}toString(){return`gap(${this.length})`}}class g6 extends Oe{constructor(e,t,i){super(e.length+t+i.length,e.height+i.height,t|(e.outdated||i.outdated?2:0)),this.left=e,this.right=i,this.size=e.size+i.size}get break(){return this.flags&1}blockAt(e,t,i,s){let o=i+this.left.height;return e<o?this.left.blockAt(e,t,i,s):this.right.blockAt(e,t,o,s+this.left.length+this.break)}lineAt(e,t,i,s,o){let r=s+this.left.height,l=o+this.left.length+this.break,a=t==ne.ByHeight?e<r:e<l,h=a?this.left.lineAt(e,t,i,s,o):this.right.lineAt(e,t,i,r,l);if(this.break||(a?h.to<l:h.from>l))return h;let c=t==ne.ByPosNoHeight?ne.ByPosNoHeight:ne.ByPos;return a?h.join(this.right.lineAt(l,c,i,r,l)):this.left.lineAt(l,c,i,s,o).join(h)}forEachLine(e,t,i,s,o,r){let l=s+this.left.height,a=o+this.left.length+this.break;if(this.break)e<a&&this.left.forEachLine(e,t,i,s,o,r),t>=a&&this.right.forEachLine(e,t,i,l,a,r);else{let h=this.lineAt(a,ne.ByPos,i,s,o);e<h.from&&this.left.forEachLine(e,h.from-1,i,s,o,r),h.to>=e&&h.from<=t&&r(h),t>h.to&&this.right.forEachLine(h.to+1,t,i,l,a,r)}}replace(e,t,i){let s=this.left.length+this.break;if(t<s)return this.balanced(this.left.replace(e,t,i),this.right);if(e>this.left.length)return this.balanced(this.left,this.right.replace(e-s,t-s,i));let o=[];e>0&&this.decomposeLeft(e,o);let r=o.length;for(let l of i)o.push(l);if(e>0&&Mo(o,r-1),t<this.length){let l=o.length;this.decomposeRight(t,o),Mo(o,l)}return Oe.of(o)}decomposeLeft(e,t){let i=this.left.length;if(e<=i)return this.left.decomposeLeft(e,t);t.push(this.left),this.break&&(i++,e>=i&&t.push(null)),e>i&&this.right.decomposeLeft(e-i,t)}decomposeRight(e,t){let i=this.left.length,s=i+this.break;if(e>=s)return this.right.decomposeRight(e-s,t);e<i&&this.left.decomposeRight(e,t),this.break&&e<s&&t.push(null),t.push(this.right)}balanced(e,t){return e.size>2*t.size||t.size>2*e.size?Oe.of(this.break?[e,null,t]:[e,t]):(this.left=G0(this.left,e),this.right=G0(this.right,t),this.setHeight(e.height+t.height),this.outdated=e.outdated||t.outdated,this.size=e.size+t.size,this.length=e.length+this.break+t.length,this)}updateHeight(e,t=0,i=!1,s){let{left:o,right:r}=this,l=t+o.length+this.break,a=null;return s&&s.from<=t+o.length&&s.more?a=o=o.updateHeight(e,t,i,s):o.updateHeight(e,t,i),s&&s.from<=l+r.length&&s.more?a=r=r.updateHeight(e,l,i,s):r.updateHeight(e,l,i),a?this.balanced(o,r):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}toString(){return this.left+(this.break?" ":"-")+this.right}}function Mo(n,e){let t,i;n[e]==null&&(t=n[e-1])instanceof ve&&(i=n[e+1])instanceof ve&&n.splice(e-1,3,new ve(t.length+1+i.length))}const m6=5;class p2{constructor(e,t){this.pos=e,this.oracle=t,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=e}get isCovered(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}span(e,t){if(this.lineStart>-1){let i=Math.min(t,this.lineEnd),s=this.nodes[this.nodes.length-1];s instanceof Ne?s.length+=i-this.pos:(i>this.pos||!this.isCovered)&&this.nodes.push(new Ne(i-this.pos,-1)),this.writtenTo=i,t>i&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=t}point(e,t,i){if(e<t||i.heightRelevant){let s=i.widget?i.widget.estimatedHeight:0,o=i.widget?i.widget.lineBreaks:0;s<0&&(s=this.oracle.lineHeight);let r=t-e;i.block?this.addBlock(new fa(r,s,i)):(r||o||s>=m6)&&this.addLineDeco(s,o,r)}else t>e&&this.span(e,t);this.lineEnd>-1&&this.lineEnd<this.pos&&(this.lineEnd=this.oracle.doc.lineAt(this.pos).to)}enterLine(){if(this.lineStart>-1)return;let{from:e,to:t}=this.oracle.doc.lineAt(this.pos);this.lineStart=e,this.lineEnd=t,this.writtenTo<e&&((this.writtenTo<e-1||this.nodes[this.nodes.length-1]==null)&&this.nodes.push(this.blankContent(this.writtenTo,e-1)),this.nodes.push(null)),this.pos>e&&this.nodes.push(new Ne(this.pos-e,-1)),this.writtenTo=this.pos}blankContent(e,t){let i=new ve(t-e);return this.oracle.doc.lineAt(e).to==t&&(i.flags|=4),i}ensureLine(){this.enterLine();let e=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(e instanceof Ne)return e;let t=new Ne(0,-1);return this.nodes.push(t),t}addBlock(e){this.enterLine();let t=e.deco;t&&t.startSide>0&&!this.isCovered&&this.ensureLine(),this.nodes.push(e),this.writtenTo=this.pos=this.pos+e.length,t&&t.endSide>0&&(this.covering=e)}addLineDeco(e,t,i){let s=this.ensureLine();s.length+=i,s.collapsed+=i,s.widgetHeight=Math.max(s.widgetHeight,e),s.breaks+=t,this.writtenTo=this.pos=this.pos+i}finish(e){let t=this.nodes.length==0?null:this.nodes[this.nodes.length-1];this.lineStart>-1&&!(t instanceof Ne)&&!this.isCovered?this.nodes.push(new Ne(0,-1)):(this.writtenTo<this.pos||t==null)&&this.nodes.push(this.blankContent(this.writtenTo,this.pos));let i=e;for(let s of this.nodes)s instanceof Ne&&s.updateHeight(this.oracle,i),i+=s?s.length:1;return this.nodes}static build(e,t,i,s){let o=new p2(i,e);return U.spans(t,i,s,o,0),o.finish(i)}}function v6(n,e,t){let i=new w6;return U.compare(n,e,t,i,0),i.changes}class w6{constructor(){this.changes=[]}compareRange(){}comparePoint(e,t,i,s){(e<t||i&&i.heightRelevant||s&&s.heightRelevant)&&T0(e,t,this.changes,5)}}function x6(n,e){let t=n.getBoundingClientRect(),i=n.ownerDocument,s=i.defaultView||window,o=Math.max(0,t.left),r=Math.min(s.innerWidth,t.right),l=Math.max(0,t.top),a=Math.min(s.innerHeight,t.bottom);for(let h=n.parentNode;h&&h!=i.body;)if(h.nodeType==1){let c=h,f=window.getComputedStyle(c);if((c.scrollHeight>c.clientHeight||c.scrollWidth>c.clientWidth)&&f.overflow!="visible"){let d=c.getBoundingClientRect();o=Math.max(o,d.left),r=Math.min(r,d.right),l=Math.max(l,d.top),a=Math.min(h==n.parentNode?s.innerHeight:a,d.bottom)}h=f.position=="absolute"||f.position=="fixed"?c.offsetParent:c.parentNode}else if(h.nodeType==11)h=h.host;else break;return{left:o-t.left,right:Math.max(o,r)-t.left,top:l-(t.top+e),bottom:Math.max(l,a)-(t.top+e)}}function b6(n){let e=n.getBoundingClientRect(),t=n.ownerDocument.defaultView||window;return e.left<t.innerWidth&&e.right>0&&e.top<t.innerHeight&&e.bottom>0}function y6(n,e){let t=n.getBoundingClientRect();return{left:0,right:t.right-t.left,top:e,bottom:t.bottom-(t.top+e)}}class Ln{constructor(e,t,i,s){this.from=e,this.to=t,this.size=i,this.displaySize=s}static same(e,t){if(e.length!=t.length)return!1;for(let i=0;i<e.length;i++){let s=e[i],o=t[i];if(s.from!=o.from||s.to!=o.to||s.size!=o.size)return!1}return!0}draw(e,t){return W.replace({widget:new k6(this.displaySize*(t?e.scaleY:e.scaleX),t)}).range(this.from,this.to)}}class k6 extends At{constructor(e,t){super(),this.size=e,this.vertical=t}eq(e){return e.size==this.size&&e.vertical==this.vertical}toDOM(){let e=document.createElement("div");return this.vertical?e.style.height=this.size+"px":(e.style.width=this.size+"px",e.style.height="2px",e.style.display="inline-block"),e}get estimatedHeight(){return this.vertical?this.size:-1}}class Do{constructor(e){this.state=e,this.pixelViewport={left:0,right:window.innerWidth,top:0,bottom:0},this.inView=!0,this.paddingTop=0,this.paddingBottom=0,this.contentDOMWidth=0,this.contentDOMHeight=0,this.editorHeight=0,this.editorWidth=0,this.scrollTop=0,this.scrolledToBottom=!1,this.scaleX=1,this.scaleY=1,this.scrollAnchorPos=0,this.scrollAnchorHeight=-1,this.scaler=To,this.scrollTarget=null,this.printing=!1,this.mustMeasureContent=!0,this.defaultTextDirection=se.LTR,this.visibleRanges=[],this.mustEnforceCursorAssoc=!1;let t=e.facet(h2).some(i=>typeof i!="function"&&i.class=="cm-lineWrapping");this.heightOracle=new d6(t),this.stateDeco=e.facet(Ii).filter(i=>typeof i!="function"),this.heightMap=Oe.empty().applyChanges(this.stateDeco,Y.empty,this.heightOracle.setDoc(e.doc),[new We(0,0,0,e.doc.length)]);for(let i=0;i<2&&(this.viewport=this.getViewport(0,null),!!this.updateForViewport());i++);this.updateViewportLines(),this.lineGaps=this.ensureLineGaps([]),this.lineGapDeco=W.set(this.lineGaps.map(i=>i.draw(this,!1))),this.computeVisibleRanges()}updateForViewport(){let e=[this.viewport],{main:t}=this.state.selection;for(let i=0;i<=1;i++){let s=i?t.head:t.anchor;if(!e.some(({from:o,to:r})=>s>=o&&s<=r)){let{from:o,to:r}=this.lineBlockAt(s);e.push(new c0(o,r))}}return this.viewports=e.sort((i,s)=>i.from-s.from),this.updateScaler()}updateScaler(){let e=this.scaler;return this.scaler=this.heightMap.height<=7e6?To:new g2(this.heightOracle,this.heightMap,this.viewports),e.eq(this.scaler)?0:2}updateViewportLines(){this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.heightOracle.setDoc(this.state.doc),0,0,e=>{this.viewportLines.push(Ci(e,this.scaler))})}update(e,t=null){this.state=e.state;let i=this.stateDeco;this.stateDeco=this.state.facet(Ii).filter(c=>typeof c!="function");let s=e.changedRanges,o=We.extendWithRanges(s,v6(i,this.stateDeco,e?e.changes:fe.empty(this.state.doc.length))),r=this.heightMap.height,l=this.scrolledToBottom?null:this.scrollAnchorAt(this.scrollTop);Oo(),this.heightMap=this.heightMap.applyChanges(this.stateDeco,e.startState.doc,this.heightOracle.setDoc(this.state.doc),o),(this.heightMap.height!=r||ai)&&(e.flags|=2),l?(this.scrollAnchorPos=e.changes.mapPos(l.from,-1),this.scrollAnchorHeight=l.top):(this.scrollAnchorPos=-1,this.scrollAnchorHeight=r);let a=o.length?this.mapViewport(this.viewport,e.changes):this.viewport;(t&&(t.range.head<a.from||t.range.head>a.to)||!this.viewportIsAppropriate(a))&&(a=this.getViewport(0,t));let h=a.from!=this.viewport.from||a.to!=this.viewport.to;this.viewport=a,e.flags|=this.updateForViewport(),(h||!e.changes.empty||e.flags&2)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,e.changes))),e.flags|=this.computeVisibleRanges(e.changes),t&&(this.scrollTarget=t),!this.mustEnforceCursorAssoc&&e.selectionSet&&e.view.lineWrapping&&e.state.selection.main.empty&&e.state.selection.main.assoc&&!e.state.facet(Yl)&&(this.mustEnforceCursorAssoc=!0)}measure(e){let t=e.contentDOM,i=window.getComputedStyle(t),s=this.heightOracle,o=i.whiteSpace;this.defaultTextDirection=i.direction=="rtl"?se.RTL:se.LTR;let r=this.heightOracle.mustRefreshForWrapping(o),l=t.getBoundingClientRect(),a=r||this.mustMeasureContent||this.contentDOMHeight!=l.height;this.contentDOMHeight=l.height,this.mustMeasureContent=!1;let h=0,c=0;if(l.width&&l.height){let{scaleX:k,scaleY:y}=yl(t,l);(k>.005&&Math.abs(this.scaleX-k)>.005||y>.005&&Math.abs(this.scaleY-y)>.005)&&(this.scaleX=k,this.scaleY=y,h|=16,r=a=!0)}let f=(parseInt(i.paddingTop)||0)*this.scaleY,d=(parseInt(i.paddingBottom)||0)*this.scaleY;(this.paddingTop!=f||this.paddingBottom!=d)&&(this.paddingTop=f,this.paddingBottom=d,h|=18),this.editorWidth!=e.scrollDOM.clientWidth&&(s.lineWrapping&&(a=!0),this.editorWidth=e.scrollDOM.clientWidth,h|=16);let p=e.scrollDOM.scrollTop*this.scaleY;this.scrollTop!=p&&(this.scrollAnchorHeight=-1,this.scrollTop=p),this.scrolledToBottom=Cl(e.scrollDOM);let g=(this.printing?y6:x6)(t,this.paddingTop),m=g.top-this.pixelViewport.top,v=g.bottom-this.pixelViewport.bottom;this.pixelViewport=g;let w=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(w!=this.inView&&(this.inView=w,w&&(a=!0)),!this.inView&&!this.scrollTarget&&!b6(e.dom))return 0;let b=l.width;if((this.contentDOMWidth!=b||this.editorHeight!=e.scrollDOM.clientHeight)&&(this.contentDOMWidth=l.width,this.editorHeight=e.scrollDOM.clientHeight,h|=16),a){let k=e.docView.measureVisibleLineHeights(this.viewport);if(s.mustRefreshForHeights(k)&&(r=!0),r||s.lineWrapping&&Math.abs(b-this.contentDOMWidth)>s.charWidth){let{lineHeight:y,charWidth:_,textHeight:C}=e.docView.measureTextSize();r=y>0&&s.refresh(o,y,_,C,Math.max(5,b/_),k),r&&(e.docView.minWidth=0,h|=16)}m>0&&v>0?c=Math.max(m,v):m<0&&v<0&&(c=Math.min(m,v)),Oo();for(let y of this.viewports){let _=y.from==this.viewport.from?k:e.docView.measureVisibleLineHeights(y);this.heightMap=(r?Oe.empty().applyChanges(this.stateDeco,Y.empty,this.heightOracle,[new We(0,0,0,e.state.doc.length)]):this.heightMap).updateHeight(s,0,r,new p6(y.from,_))}ai&&(h|=2)}let S=!this.viewportIsAppropriate(this.viewport,c)||this.scrollTarget&&(this.scrollTarget.range.head<this.viewport.from||this.scrollTarget.range.head>this.viewport.to);return S&&(h&2&&(h|=this.updateScaler()),this.viewport=this.getViewport(c,this.scrollTarget),h|=this.updateForViewport()),(h&2||S)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(r?[]:this.lineGaps,e)),h|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,e.docView.enforceCursorAssoc()),h}get visibleTop(){return this.scaler.fromDOM(this.pixelViewport.top)}get visibleBottom(){return this.scaler.fromDOM(this.pixelViewport.bottom)}getViewport(e,t){let i=.5-Math.max(-.5,Math.min(.5,e/1e3/2)),s=this.heightMap,o=this.heightOracle,{visibleTop:r,visibleBottom:l}=this,a=new c0(s.lineAt(r-i*1e3,ne.ByHeight,o,0,0).from,s.lineAt(l+(1-i)*1e3,ne.ByHeight,o,0,0).to);if(t){let{head:h}=t.range;if(h<a.from||h>a.to){let c=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),f=s.lineAt(h,ne.ByPos,o,0,0),d;t.y=="center"?d=(f.top+f.bottom)/2-c/2:t.y=="start"||t.y=="nearest"&&h<a.from?d=f.top:d=f.bottom-c,a=new c0(s.lineAt(d-1e3/2,ne.ByHeight,o,0,0).from,s.lineAt(d+c+1e3/2,ne.ByHeight,o,0,0).to)}}return a}mapViewport(e,t){let i=t.mapPos(e.from,-1),s=t.mapPos(e.to,1);return new c0(this.heightMap.lineAt(i,ne.ByPos,this.heightOracle,0,0).from,this.heightMap.lineAt(s,ne.ByPos,this.heightOracle,0,0).to)}viewportIsAppropriate({from:e,to:t},i=0){if(!this.inView)return!0;let{top:s}=this.heightMap.lineAt(e,ne.ByPos,this.heightOracle,0,0),{bottom:o}=this.heightMap.lineAt(t,ne.ByPos,this.heightOracle,0,0),{visibleTop:r,visibleBottom:l}=this;return(e==0||s<=r-Math.max(10,Math.min(-i,250)))&&(t==this.state.doc.length||o>=l+Math.max(10,Math.min(i,250)))&&s>r-2*1e3&&o<l+2*1e3}mapLineGaps(e,t){if(!e.length||t.empty)return e;let i=[];for(let s of e)t.touchesRange(s.from,s.to)||i.push(new Ln(t.mapPos(s.from),t.mapPos(s.to),s.size,s.displaySize));return i}ensureLineGaps(e,t){let i=this.heightOracle.lineWrapping,s=i?1e4:2e3,o=s>>1,r=s<<1;if(this.defaultTextDirection!=se.LTR&&!i)return[];let l=[],a=(c,f,d,p)=>{if(f-c<o)return;let g=this.state.selection.main,m=[g.from];g.empty||m.push(g.to);for(let w of m)if(w>c&&w<f){a(c,w-10,d,p),a(w+10,f,d,p);return}let v=C6(e,w=>w.from>=d.from&&w.to<=d.to&&Math.abs(w.from-c)<o&&Math.abs(w.to-f)<o&&!m.some(b=>w.from<b&&w.to>b));if(!v){if(f<d.to&&t&&i&&t.visibleRanges.some(S=>S.from<=f&&S.to>=f)){let S=t.moveToLineBoundary(O.cursor(f),!1,!0).head;S>c&&(f=S)}let w=this.gapSize(d,c,f,p),b=i||w<2e6?w:2e6;v=new Ln(c,f,w,b)}l.push(v)},h=c=>{if(c.length<r||c.type!=_e.Text)return;let f=S6(c.from,c.to,this.stateDeco);if(f.total<r)return;let d=this.scrollTarget?this.scrollTarget.range.head:null,p,g;if(i){let m=s/this.heightOracle.lineLength*this.heightOracle.lineHeight,v,w;if(d!=null){let b=u0(f,d),S=((this.visibleBottom-this.visibleTop)/2+m)/c.height;v=b-S,w=b+S}else v=(this.visibleTop-c.top-m)/c.height,w=(this.visibleBottom-c.top+m)/c.height;p=h0(f,v),g=h0(f,w)}else{let m=f.total*this.heightOracle.charWidth,v=s*this.heightOracle.charWidth,w=0;if(m>2e6)for(let _ of e)_.from>=c.from&&_.from<c.to&&_.size!=_.displaySize&&_.from*this.heightOracle.charWidth+w<this.pixelViewport.left&&(w=_.size-_.displaySize);let b=this.pixelViewport.left+w,S=this.pixelViewport.right+w,k,y;if(d!=null){let _=u0(f,d),C=((S-b)/2+v)/m;k=_-C,y=_+C}else k=(b-v)/m,y=(S+v)/m;p=h0(f,k),g=h0(f,y)}p>c.from&&a(c.from,p,c,f),g<c.to&&a(g,c.to,c,f)};for(let c of this.viewportLines)Array.isArray(c.type)?c.type.forEach(h):h(c);return l}gapSize(e,t,i,s){let o=u0(s,i)-u0(s,t);return this.heightOracle.lineWrapping?e.height*o:s.total*this.heightOracle.charWidth*o}updateLineGaps(e){Ln.same(e,this.lineGaps)||(this.lineGaps=e,this.lineGapDeco=W.set(e.map(t=>t.draw(this,this.heightOracle.lineWrapping))))}computeVisibleRanges(e){let t=this.stateDeco;this.lineGaps.length&&(t=t.concat(this.lineGapDeco));let i=[];U.spans(t,this.viewport.from,this.viewport.to,{span(o,r){i.push({from:o,to:r})},point(){}},20);let s=0;if(i.length!=this.visibleRanges.length)s=12;else for(let o=0;o<i.length&&!(s&8);o++){let r=this.visibleRanges[o],l=i[o];(r.from!=l.from||r.to!=l.to)&&(s|=4,e&&e.mapPos(r.from,-1)==l.from&&e.mapPos(r.to,1)==l.to||(s|=8))}return this.visibleRanges=i,s}lineBlockAt(e){return e>=this.viewport.from&&e<=this.viewport.to&&this.viewportLines.find(t=>t.from<=e&&t.to>=e)||Ci(this.heightMap.lineAt(e,ne.ByPos,this.heightOracle,0,0),this.scaler)}lineBlockAtHeight(e){return e>=this.viewportLines[0].top&&e<=this.viewportLines[this.viewportLines.length-1].bottom&&this.viewportLines.find(t=>t.top<=e&&t.bottom>=e)||Ci(this.heightMap.lineAt(this.scaler.fromDOM(e),ne.ByHeight,this.heightOracle,0,0),this.scaler)}scrollAnchorAt(e){let t=this.lineBlockAtHeight(e+8);return t.from>=this.viewport.from||this.viewportLines[0].top-e>200?t:this.viewportLines[0]}elementAtHeight(e){return Ci(this.heightMap.blockAt(this.scaler.fromDOM(e),this.heightOracle,0,0),this.scaler)}get docHeight(){return this.scaler.toDOM(this.heightMap.height)}get contentHeight(){return this.docHeight+this.paddingTop+this.paddingBottom}}class c0{constructor(e,t){this.from=e,this.to=t}}function S6(n,e,t){let i=[],s=n,o=0;return U.spans(t,n,e,{span(){},point(r,l){r>s&&(i.push({from:s,to:r}),o+=r-s),s=l}},20),s<e&&(i.push({from:s,to:e}),o+=e-s),{total:o,ranges:i}}function h0({total:n,ranges:e},t){if(t<=0)return e[0].from;if(t>=1)return e[e.length-1].to;let i=Math.floor(n*t);for(let s=0;;s++){let{from:o,to:r}=e[s],l=r-o;if(i<=l)return o+i;i-=l}}function u0(n,e){let t=0;for(let{from:i,to:s}of n.ranges){if(e<=s){t+=e-i;break}t+=s-i}return t/n.total}function C6(n,e){for(let t of n)if(e(t))return t}const To={toDOM(n){return n},fromDOM(n){return n},scale:1,eq(n){return n==this}};class g2{constructor(e,t,i){let s=0,o=0,r=0;this.viewports=i.map(({from:l,to:a})=>{let h=t.lineAt(l,ne.ByPos,e,0,0).top,c=t.lineAt(a,ne.ByPos,e,0,0).bottom;return s+=c-h,{from:l,to:a,top:h,bottom:c,domTop:0,domBottom:0}}),this.scale=(7e6-s)/(t.height-s);for(let l of this.viewports)l.domTop=r+(l.top-o)*this.scale,r=l.domBottom=l.domTop+(l.bottom-l.top),o=l.bottom}toDOM(e){for(let t=0,i=0,s=0;;t++){let o=t<this.viewports.length?this.viewports[t]:null;if(!o||e<o.top)return s+(e-i)*this.scale;if(e<=o.bottom)return o.domTop+(e-o.top);i=o.bottom,s=o.domBottom}}fromDOM(e){for(let t=0,i=0,s=0;;t++){let o=t<this.viewports.length?this.viewports[t]:null;if(!o||e<o.domTop)return i+(e-s)/this.scale;if(e<=o.domBottom)return o.top+(e-o.domTop);i=o.bottom,s=o.domBottom}}eq(e){return e instanceof g2?this.scale==e.scale&&this.viewports.length==e.viewports.length&&this.viewports.every((t,i)=>t.from==e.viewports[i].from&&t.to==e.viewports[i].to):!1}}function Ci(n,e){if(e.scale==1)return n;let t=e.toDOM(n.top),i=e.toDOM(n.bottom);return new it(n.from,n.length,t,i-t,Array.isArray(n._content)?n._content.map(s=>Ci(s,e)):n._content)}const f0=L.define({combine:n=>n.join(" ")}),Vs=L.define({combine:n=>n.indexOf(!0)>-1}),zs=_t.newName(),da=_t.newName(),pa=_t.newName(),ga={"&light":"."+da,"&dark":"."+pa};function Ls(n,e,t){return new _t(e,{finish(i){return/&/.test(i)?i.replace(/&\w*/,s=>{if(s=="&")return n;if(!t||!t[s])throw new RangeError(`Unsupported selector: ${s}`);return t[s]}):n+" "+i}})}const _6=Ls("."+zs,{"&":{position:"relative !important",boxSizing:"border-box","&.cm-focused":{outline:"1px dotted #212121"},display:"flex !important",flexDirection:"column"},".cm-scroller":{display:"flex !important",alignItems:"flex-start !important",fontFamily:"monospace",lineHeight:1.4,height:"100%",overflowX:"auto",position:"relative",zIndex:0,overflowAnchor:"none"},".cm-content":{margin:0,flexGrow:2,flexShrink:0,display:"block",whiteSpace:"pre",wordWrap:"normal",boxSizing:"border-box",minHeight:"100%",padding:"4px 0",outline:"none","&[contenteditable=true]":{WebkitUserModify:"read-write-plaintext-only"}},".cm-lineWrapping":{whiteSpace_fallback:"pre-wrap",whiteSpace:"break-spaces",wordBreak:"break-word",overflowWrap:"anywhere",flexShrink:1},"&light .cm-content":{caretColor:"black"},"&dark .cm-content":{caretColor:"white"},".cm-line":{display:"block",padding:"0 2px 0 6px"},".cm-layer":{position:"absolute",left:0,top:0,contain:"size style","& > *":{position:"absolute"}},"&light .cm-selectionBackground":{background:"#d9d9d9"},"&dark .cm-selectionBackground":{background:"#222"},"&light.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#d7d4f0"},"&dark.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#233"},".cm-cursorLayer":{pointerEvents:"none"},"&.cm-focused > .cm-scroller > .cm-cursorLayer":{animation:"steps(1) cm-blink 1.2s infinite"},"@keyframes cm-blink":{"0%":{},"50%":{opacity:0},"100%":{}},"@keyframes cm-blink2":{"0%":{},"50%":{opacity:0},"100%":{}},".cm-cursor, .cm-dropCursor":{borderLeft:"1.2px solid black",marginLeft:"-0.6px",pointerEvents:"none"},".cm-cursor":{display:"none"},"&dark .cm-cursor":{borderLeftColor:"#ddd"},".cm-dropCursor":{position:"absolute"},"&.cm-focused > .cm-scroller > .cm-cursorLayer .cm-cursor":{display:"block"},".cm-iso":{unicodeBidi:"isolate"},".cm-announced":{position:"fixed",top:"-10000px"},"@media print":{".cm-announced":{display:"none"}},"&light .cm-activeLine":{backgroundColor:"#cceeff44"},"&dark .cm-activeLine":{backgroundColor:"#99eeff33"},"&light .cm-specialChar":{color:"red"},"&dark .cm-specialChar":{color:"#f78"},".cm-gutters":{flexShrink:0,display:"flex",height:"100%",boxSizing:"border-box",zIndex:200},".cm-gutters-before":{insetInlineStart:0},".cm-gutters-after":{insetInlineEnd:0},"&light .cm-gutters":{backgroundColor:"#f5f5f5",color:"#6c6c6c",border:"0px solid #ddd","&.cm-gutters-before":{borderRightWidth:"1px"},"&.cm-gutters-after":{borderLeftWidth:"1px"}},"&dark .cm-gutters":{backgroundColor:"#333338",color:"#ccc"},".cm-gutter":{display:"flex !important",flexDirection:"column",flexShrink:0,boxSizing:"border-box",minHeight:"100%",overflow:"hidden"},".cm-gutterElement":{boxSizing:"border-box"},".cm-lineNumbers .cm-gutterElement":{padding:"0 3px 0 5px",minWidth:"20px",textAlign:"right",whiteSpace:"nowrap"},"&light .cm-activeLineGutter":{backgroundColor:"#e2f2ff"},"&dark .cm-activeLineGutter":{backgroundColor:"#222227"},".cm-panels":{boxSizing:"border-box",position:"sticky",left:0,right:0,zIndex:300},"&light .cm-panels":{backgroundColor:"#f5f5f5",color:"black"},"&light .cm-panels-top":{borderBottom:"1px solid #ddd"},"&light .cm-panels-bottom":{borderTop:"1px solid #ddd"},"&dark .cm-panels":{backgroundColor:"#333338",color:"white"},".cm-dialog":{padding:"2px 19px 4px 6px",position:"relative","& label":{fontSize:"80%"}},".cm-dialog-close":{position:"absolute",top:"3px",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",fontSize:"14px",padding:"0"},".cm-tab":{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"},".cm-widgetBuffer":{verticalAlign:"text-top",height:"1em",width:0,display:"inline"},".cm-placeholder":{color:"#888",display:"inline-block",verticalAlign:"top",userSelect:"none"},".cm-highlightSpace":{backgroundImage:"radial-gradient(circle at 50% 55%, #aaa 20%, transparent 5%)",backgroundPosition:"center"},".cm-highlightTab":{backgroundImage:`url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="20"><path stroke="%23888" stroke-width="1" fill="none" d="M1 10H196L190 5M190 15L196 10M197 4L197 16"/></svg>')`,backgroundSize:"auto 100%",backgroundPosition:"right 90%",backgroundRepeat:"no-repeat"},".cm-trailingSpace":{backgroundColor:"#ff332255"},".cm-button":{verticalAlign:"middle",color:"inherit",fontSize:"70%",padding:".2em 1em",borderRadius:"1px"},"&light .cm-button":{backgroundImage:"linear-gradient(#eff1f5, #d9d9df)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#b4b4b4, #d0d3d6)"}},"&dark .cm-button":{backgroundImage:"linear-gradient(#393939, #111)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#111, #333)"}},".cm-textfield":{verticalAlign:"middle",color:"inherit",fontSize:"70%",border:"1px solid silver",padding:".2em .5em"},"&light .cm-textfield":{backgroundColor:"white"},"&dark .cm-textfield":{border:"1px solid #555",backgroundColor:"inherit"}},ga),O6={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},Nn=V.ie&&V.ie_version<=11;class M6{constructor(e){this.view=e,this.active=!1,this.editContext=null,this.selectionRange=new ad,this.selectionChanged=!1,this.delayedFlush=-1,this.resizeTimeout=-1,this.queue=[],this.delayedAndroidKey=null,this.flushingAndroidKey=-1,this.lastChange=0,this.scrollTargets=[],this.intersection=null,this.resizeScroll=null,this.intersecting=!1,this.gapIntersection=null,this.gaps=[],this.printQuery=null,this.parentCheck=-1,this.dom=e.contentDOM,this.observer=new MutationObserver(t=>{for(let i of t)this.queue.push(i);(V.ie&&V.ie_version<=11||V.ios&&e.composing)&&t.some(i=>i.type=="childList"&&i.removedNodes.length||i.type=="characterData"&&i.oldValue.length>i.target.nodeValue.length)?this.flushSoon():this.flush()}),window.EditContext&&V.android&&e.constructor.EDIT_CONTEXT!==!1&&!(V.chrome&&V.chrome_version<126)&&(this.editContext=new T6(e),e.state.facet(ht)&&(e.contentDOM.editContext=this.editContext.editContext)),Nn&&(this.onCharData=t=>{this.queue.push({target:t.target,type:"characterData",oldValue:t.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.onResize=this.onResize.bind(this),this.onPrint=this.onPrint.bind(this),this.onScroll=this.onScroll.bind(this),window.matchMedia&&(this.printQuery=window.matchMedia("print")),typeof ResizeObserver=="function"&&(this.resizeScroll=new ResizeObserver(()=>{var t;((t=this.view.docView)===null||t===void 0?void 0:t.lastUpdate)<Date.now()-75&&this.onResize()}),this.resizeScroll.observe(e.scrollDOM)),this.addWindowListeners(this.win=e.win),this.start(),typeof IntersectionObserver=="function"&&(this.intersection=new IntersectionObserver(t=>{this.parentCheck<0&&(this.parentCheck=setTimeout(this.listenForScroll.bind(this),1e3)),t.length>0&&t[t.length-1].intersectionRatio>0!=this.intersecting&&(this.intersecting=!this.intersecting,this.intersecting!=this.view.inView&&this.onScrollChanged(document.createEvent("Event")))},{threshold:[0,.001]}),this.intersection.observe(this.dom),this.gapIntersection=new IntersectionObserver(t=>{t.length>0&&t[t.length-1].intersectionRatio>0&&this.onScrollChanged(document.createEvent("Event"))},{})),this.listenForScroll(),this.readSelectionRange()}onScrollChanged(e){this.view.inputState.runHandlers("scroll",e),this.intersecting&&this.view.measure()}onScroll(e){this.intersecting&&this.flush(!1),this.editContext&&this.view.requestMeasure(this.editContext.measureReq),this.onScrollChanged(e)}onResize(){this.resizeTimeout<0&&(this.resizeTimeout=setTimeout(()=>{this.resizeTimeout=-1,this.view.requestMeasure()},50))}onPrint(e){(e.type=="change"||!e.type)&&!e.matches||(this.view.viewState.printing=!0,this.view.measure(),setTimeout(()=>{this.view.viewState.printing=!1,this.view.requestMeasure()},500))}updateGaps(e){if(this.gapIntersection&&(e.length!=this.gaps.length||this.gaps.some((t,i)=>t!=e[i]))){this.gapIntersection.disconnect();for(let t of e)this.gapIntersection.observe(t);this.gaps=e}}onSelectionChange(e){let t=this.selectionChanged;if(!this.readSelectionRange()||this.delayedAndroidKey)return;let{view:i}=this,s=this.selectionRange;if(i.state.facet(ht)?i.root.activeElement!=this.dom:!D0(this.dom,s))return;let o=s.anchorNode&&i.docView.nearest(s.anchorNode);if(o&&o.ignoreEvent(e)){t||(this.selectionChanged=!1);return}(V.ie&&V.ie_version<=11||V.android&&V.chrome)&&!i.state.selection.main.empty&&s.focusNode&&Di(s.focusNode,s.focusOffset,s.anchorNode,s.anchorOffset)?this.flushSoon():this.flush(!1)}readSelectionRange(){let{view:e}=this,t=Ni(e.root);if(!t)return!1;let i=V.safari&&e.root.nodeType==11&&e.root.activeElement==this.dom&&D6(this.view,t)||t;if(!i||this.selectionRange.eq(i))return!1;let s=D0(this.dom,i);return s&&!this.selectionChanged&&e.inputState.lastFocusTime>Date.now()-200&&e.inputState.lastTouchTime<Date.now()-300&&hd(this.dom,i)?(this.view.inputState.lastFocusTime=0,e.docView.updateSelection(),!1):(this.selectionRange.setRange(i),s&&(this.selectionChanged=!0),!0)}setSelectionRange(e,t){this.selectionRange.set(e.node,e.offset,t.node,t.offset),this.selectionChanged=!1}clearSelectionRange(){this.selectionRange.set(null,0,null,0)}listenForScroll(){this.parentCheck=-1;let e=0,t=null;for(let i=this.dom;i;)if(i.nodeType==1)!t&&e<this.scrollTargets.length&&this.scrollTargets[e]==i?e++:t||(t=this.scrollTargets.slice(0,e)),t&&t.push(i),i=i.assignedSlot||i.parentNode;else if(i.nodeType==11)i=i.host;else break;if(e<this.scrollTargets.length&&!t&&(t=this.scrollTargets.slice(0,e)),t){for(let i of this.scrollTargets)i.removeEventListener("scroll",this.onScroll);for(let i of this.scrollTargets=t)i.addEventListener("scroll",this.onScroll)}}ignore(e){if(!this.active)return e();try{return this.stop(),e()}finally{this.start(),this.clear()}}start(){this.active||(this.observer.observe(this.dom,O6),Nn&&this.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.active=!0)}stop(){this.active&&(this.active=!1,this.observer.disconnect(),Nn&&this.dom.removeEventListener("DOMCharacterDataModified",this.onCharData))}clear(){this.processRecords(),this.queue.length=0,this.selectionChanged=!1}delayAndroidKey(e,t){var i;if(!this.delayedAndroidKey){let s=()=>{let o=this.delayedAndroidKey;o&&(this.clearDelayedAndroidKey(),this.view.inputState.lastKeyCode=o.keyCode,this.view.inputState.lastKeyTime=Date.now(),!this.flush()&&o.force&&ei(this.dom,o.key,o.keyCode))};this.flushingAndroidKey=this.view.win.requestAnimationFrame(s)}(!this.delayedAndroidKey||e=="Enter")&&(this.delayedAndroidKey={key:e,keyCode:t,force:this.lastChange<Date.now()-50||!!(!((i=this.delayedAndroidKey)===null||i===void 0)&&i.force)})}clearDelayedAndroidKey(){this.win.cancelAnimationFrame(this.flushingAndroidKey),this.delayedAndroidKey=null,this.flushingAndroidKey=-1}flushSoon(){this.delayedFlush<0&&(this.delayedFlush=this.view.win.requestAnimationFrame(()=>{this.delayedFlush=-1,this.flush()}))}forceFlush(){this.delayedFlush>=0&&(this.view.win.cancelAnimationFrame(this.delayedFlush),this.delayedFlush=-1),this.flush()}pendingRecords(){for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}processRecords(){let e=this.pendingRecords();e.length&&(this.queue=[]);let t=-1,i=-1,s=!1;for(let o of e){let r=this.readMutation(o);r&&(r.typeOver&&(s=!0),t==-1?{from:t,to:i}=r:(t=Math.min(r.from,t),i=Math.max(r.to,i)))}return{from:t,to:i,typeOver:s}}readChange(){let{from:e,to:t,typeOver:i}=this.processRecords(),s=this.selectionChanged&&D0(this.dom,this.selectionRange);if(e<0&&!s)return null;e>-1&&(this.lastChange=Date.now()),this.view.inputState.lastFocusTime=0,this.selectionChanged=!1;let o=new jd(this.view,e,t,i);return this.view.docView.domChanged={newSel:o.newSel?o.newSel.main:null},o}flush(e=!0){if(this.delayedFlush>=0||this.delayedAndroidKey)return!1;e&&this.readSelectionRange();let t=this.readChange();if(!t)return this.view.requestMeasure(),!1;let i=this.view.state,s=na(this.view,t);return this.view.state==i&&(t.domChanged||t.newSel&&!t.newSel.main.eq(this.view.state.selection.main))&&this.view.update([]),s}readMutation(e){let t=this.view.docView.nearest(e.target);if(!t||t.ignoreMutation(e))return null;if(t.markDirty(e.type=="attributes"),e.type=="attributes"&&(t.flags|=4),e.type=="childList"){let i=Ao(t,e.previousSibling||e.target.previousSibling,-1),s=Ao(t,e.nextSibling||e.target.nextSibling,1);return{from:i?t.posAfter(i):t.posAtStart,to:s?t.posBefore(s):t.posAtEnd,typeOver:!1}}else return e.type=="characterData"?{from:t.posAtStart,to:t.posAtEnd,typeOver:e.target.nodeValue==e.oldValue}:null}setWindow(e){e!=this.win&&(this.removeWindowListeners(this.win),this.win=e,this.addWindowListeners(this.win))}addWindowListeners(e){e.addEventListener("resize",this.onResize),this.printQuery?this.printQuery.addEventListener?this.printQuery.addEventListener("change",this.onPrint):this.printQuery.addListener(this.onPrint):e.addEventListener("beforeprint",this.onPrint),e.addEventListener("scroll",this.onScroll),e.document.addEventListener("selectionchange",this.onSelectionChange)}removeWindowListeners(e){e.removeEventListener("scroll",this.onScroll),e.removeEventListener("resize",this.onResize),this.printQuery?this.printQuery.removeEventListener?this.printQuery.removeEventListener("change",this.onPrint):this.printQuery.removeListener(this.onPrint):e.removeEventListener("beforeprint",this.onPrint),e.document.removeEventListener("selectionchange",this.onSelectionChange)}update(e){this.editContext&&(this.editContext.update(e),e.startState.facet(ht)!=e.state.facet(ht)&&(e.view.contentDOM.editContext=e.state.facet(ht)?this.editContext.editContext:null))}destroy(){var e,t,i;this.stop(),(e=this.intersection)===null||e===void 0||e.disconnect(),(t=this.gapIntersection)===null||t===void 0||t.disconnect(),(i=this.resizeScroll)===null||i===void 0||i.disconnect();for(let s of this.scrollTargets)s.removeEventListener("scroll",this.onScroll);this.removeWindowListeners(this.win),clearTimeout(this.parentCheck),clearTimeout(this.resizeTimeout),this.win.cancelAnimationFrame(this.delayedFlush),this.win.cancelAnimationFrame(this.flushingAndroidKey),this.editContext&&(this.view.contentDOM.editContext=null,this.editContext.destroy())}}function Ao(n,e,t){for(;e;){let i=te.get(e);if(i&&i.parent==n)return i;let s=e.parentNode;e=s!=n.dom?s:t>0?e.nextSibling:e.previousSibling}return null}function Bo(n,e){let t=e.startContainer,i=e.startOffset,s=e.endContainer,o=e.endOffset,r=n.docView.domAtPos(n.state.selection.main.anchor);return Di(r.node,r.offset,s,o)&&([t,i,s,o]=[s,o,t,i]),{anchorNode:t,anchorOffset:i,focusNode:s,focusOffset:o}}function D6(n,e){if(e.getComposedRanges){let s=e.getComposedRanges(n.root)[0];if(s)return Bo(n,s)}let t=null;function i(s){s.preventDefault(),s.stopImmediatePropagation(),t=s.getTargetRanges()[0]}return n.contentDOM.addEventListener("beforeinput",i,!0),n.dom.ownerDocument.execCommand("indent"),n.contentDOM.removeEventListener("beforeinput",i,!0),t?Bo(n,t):null}class T6{constructor(e){this.from=0,this.to=0,this.pendingContextChange=null,this.handlers=Object.create(null),this.composing=null,this.resetRange(e.state);let t=this.editContext=new window.EditContext({text:e.state.doc.sliceString(this.from,this.to),selectionStart:this.toContextPos(Math.max(this.from,Math.min(this.to,e.state.selection.main.anchor))),selectionEnd:this.toContextPos(e.state.selection.main.head)});this.handlers.textupdate=i=>{let s=e.state.selection.main,{anchor:o,head:r}=s,l=this.toEditorPos(i.updateRangeStart),a=this.toEditorPos(i.updateRangeEnd);e.inputState.composing>=0&&!this.composing&&(this.composing={contextBase:i.updateRangeStart,editorBase:l,drifted:!1});let h={from:l,to:a,insert:Y.of(i.text.split(`
|
|
10
|
+
`))};if(h.from==this.from&&o<this.from?h.from=o:h.to==this.to&&o>this.to&&(h.to=o),h.from==h.to&&!h.insert.length){let c=O.single(this.toEditorPos(i.selectionStart),this.toEditorPos(i.selectionEnd));c.main.eq(s)||e.dispatch({selection:c,userEvent:"select"});return}if((V.mac||V.android)&&h.from==r-1&&/^\. ?$/.test(i.text)&&e.contentDOM.getAttribute("autocorrect")=="off"&&(h={from:l,to:a,insert:Y.of([i.text.replace("."," ")])}),this.pendingContextChange=h,!e.state.readOnly){let c=this.to-this.from+(h.to-h.from+h.insert.length);d2(e,h,O.single(this.toEditorPos(i.selectionStart,c),this.toEditorPos(i.selectionEnd,c)))}this.pendingContextChange&&(this.revertPending(e.state),this.setSelection(e.state))},this.handlers.characterboundsupdate=i=>{let s=[],o=null;for(let r=this.toEditorPos(i.rangeStart),l=this.toEditorPos(i.rangeEnd);r<l;r++){let a=e.coordsForChar(r);o=a&&new DOMRect(a.left,a.top,a.right-a.left,a.bottom-a.top)||o||new DOMRect,s.push(o)}t.updateCharacterBounds(i.rangeStart,s)},this.handlers.textformatupdate=i=>{let s=[];for(let o of i.getTextFormats()){let r=o.underlineStyle,l=o.underlineThickness;if(r!="None"&&l!="None"){let a=this.toEditorPos(o.rangeStart),h=this.toEditorPos(o.rangeEnd);if(a<h){let c=`text-decoration: underline ${r=="Dashed"?"dashed ":r=="Squiggle"?"wavy ":""}${l=="Thin"?1:2}px`;s.push(W.mark({attributes:{style:c}}).range(a,h))}}}e.dispatch({effects:Xl.of(W.set(s))})},this.handlers.compositionstart=()=>{e.inputState.composing<0&&(e.inputState.composing=0,e.inputState.compositionFirstChange=!0)},this.handlers.compositionend=()=>{if(e.inputState.composing=-1,e.inputState.compositionFirstChange=null,this.composing){let{drifted:i}=this.composing;this.composing=null,i&&this.reset(e.state)}};for(let i in this.handlers)t.addEventListener(i,this.handlers[i]);this.measureReq={read:i=>{this.editContext.updateControlBounds(i.contentDOM.getBoundingClientRect());let s=Ni(i.root);s&&s.rangeCount&&this.editContext.updateSelectionBounds(s.getRangeAt(0).getBoundingClientRect())}}}applyEdits(e){let t=0,i=!1,s=this.pendingContextChange;return e.changes.iterChanges((o,r,l,a,h)=>{if(i)return;let c=h.length-(r-o);if(s&&r>=s.to)if(s.from==o&&s.to==r&&s.insert.eq(h)){s=this.pendingContextChange=null,t+=c,this.to+=c;return}else s=null,this.revertPending(e.state);if(o+=t,r+=t,r<=this.from)this.from+=c,this.to+=c;else if(o<this.to){if(o<this.from||r>this.to||this.to-this.from+h.length>3e4){i=!0;return}this.editContext.updateText(this.toContextPos(o),this.toContextPos(r),h.toString()),this.to+=c}t+=c}),s&&!i&&this.revertPending(e.state),!i}update(e){let t=this.pendingContextChange,i=e.startState.selection.main;this.composing&&(this.composing.drifted||!e.changes.touchesRange(i.from,i.to)&&e.transactions.some(s=>!s.isUserEvent("input.type")&&s.changes.touchesRange(this.from,this.to)))?(this.composing.drifted=!0,this.composing.editorBase=e.changes.mapPos(this.composing.editorBase)):!this.applyEdits(e)||!this.rangeIsValid(e.state)?(this.pendingContextChange=null,this.reset(e.state)):(e.docChanged||e.selectionSet||t)&&this.setSelection(e.state),(e.geometryChanged||e.docChanged||e.selectionSet)&&e.view.requestMeasure(this.measureReq)}resetRange(e){let{head:t}=e.selection.main;this.from=Math.max(0,t-1e4),this.to=Math.min(e.doc.length,t+1e4)}reset(e){this.resetRange(e),this.editContext.updateText(0,this.editContext.text.length,e.doc.sliceString(this.from,this.to)),this.setSelection(e)}revertPending(e){let t=this.pendingContextChange;this.pendingContextChange=null,this.editContext.updateText(this.toContextPos(t.from),this.toContextPos(t.from+t.insert.length),e.doc.sliceString(t.from,t.to))}setSelection(e){let{main:t}=e.selection,i=this.toContextPos(Math.max(this.from,Math.min(this.to,t.anchor))),s=this.toContextPos(t.head);(this.editContext.selectionStart!=i||this.editContext.selectionEnd!=s)&&this.editContext.updateSelection(i,s)}rangeIsValid(e){let{head:t}=e.selection.main;return!(this.from>0&&t-this.from<500||this.to<e.doc.length&&this.to-t<500||this.to-this.from>1e4*3)}toEditorPos(e,t=this.to-this.from){e=Math.min(e,t);let i=this.composing;return i&&i.drifted?i.editorBase+(e-i.contextBase):e+this.from}toContextPos(e){let t=this.composing;return t&&t.drifted?t.contextBase+(e-t.editorBase):e-this.from}destroy(){for(let e in this.handlers)this.editContext.removeEventListener(e,this.handlers[e])}}class z{get state(){return this.viewState.state}get viewport(){return this.viewState.viewport}get visibleRanges(){return this.viewState.visibleRanges}get inView(){return this.viewState.inView}get composing(){return!!this.inputState&&this.inputState.composing>0}get compositionStarted(){return!!this.inputState&&this.inputState.composing>=0}get root(){return this._root}get win(){return this.dom.ownerDocument.defaultView||window}constructor(e={}){var t;this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.contentDOM=document.createElement("div"),this.scrollDOM=document.createElement("div"),this.scrollDOM.tabIndex=-1,this.scrollDOM.className="cm-scroller",this.scrollDOM.appendChild(this.contentDOM),this.announceDOM=document.createElement("div"),this.announceDOM.className="cm-announced",this.announceDOM.setAttribute("aria-live","polite"),this.dom=document.createElement("div"),this.dom.appendChild(this.announceDOM),this.dom.appendChild(this.scrollDOM),e.parent&&e.parent.appendChild(this.dom);let{dispatch:i}=e;this.dispatchTransactions=e.dispatchTransactions||i&&(s=>s.forEach(o=>i(o,this)))||(s=>this.update(s)),this.dispatch=this.dispatch.bind(this),this._root=e.root||cd(e.parent)||document,this.viewState=new Do(e.state||q.create(e)),e.scrollTo&&e.scrollTo.is(r0)&&(this.viewState.scrollTarget=e.scrollTo.value.clip(this.viewState.state)),this.plugins=this.state.facet(Kt).map(s=>new En(s));for(let s of this.plugins)s.update(this);this.observer=new M6(this),this.inputState=new Xd(this),this.inputState.ensureHandlers(this.plugins),this.docView=new ao(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure(),!((t=document.fonts)===null||t===void 0)&&t.ready&&document.fonts.ready.then(()=>this.requestMeasure())}dispatch(...e){let t=e.length==1&&e[0]instanceof de?e:e.length==1&&Array.isArray(e[0])?e[0]:[this.state.update(...e)];this.dispatchTransactions(t,this)}update(e){if(this.updateState!=0)throw new Error("Calls to EditorView.update are not allowed while an update is in progress");let t=!1,i=!1,s,o=this.state;for(let d of e){if(d.startState!=o)throw new RangeError("Trying to update state with a transaction that doesn't start from the previous state.");o=d.state}if(this.destroyed){this.viewState.state=o;return}let r=this.hasFocus,l=0,a=null;e.some(d=>d.annotation(ca))?(this.inputState.notifiedFocused=r,l=1):r!=this.inputState.notifiedFocused&&(this.inputState.notifiedFocused=r,a=ha(o,r),a||(l=1));let h=this.observer.delayedAndroidKey,c=null;if(h?(this.observer.clearDelayedAndroidKey(),c=this.observer.readChange(),(c&&!this.state.doc.eq(o.doc)||!this.state.selection.eq(o.selection))&&(c=null)):this.observer.clear(),o.facet(q.phrases)!=this.state.facet(q.phrases))return this.setState(o);s=F0.create(this,o,e),s.flags|=l;let f=this.viewState.scrollTarget;try{this.updateState=2;for(let d of e){if(f&&(f=f.map(d.changes)),d.scrollIntoView){let{main:p}=d.state.selection;f=new ti(p.empty?p:O.cursor(p.head,p.head>p.anchor?-1:1))}for(let p of d.effects)p.is(r0)&&(f=p.value.clip(this.state))}this.viewState.update(s,f),this.bidiCache=j0.update(this.bidiCache,s.changes),s.empty||(this.updatePlugins(s),this.inputState.update(s)),t=this.docView.update(s),this.state.facet(ki)!=this.styleModules&&this.mountStyles(),i=this.updateAttrs(),this.showAnnouncements(e),this.docView.updateSelection(t,e.some(d=>d.isUserEvent("select.pointer")))}finally{this.updateState=0}if(s.startState.facet(f0)!=s.state.facet(f0)&&(this.viewState.mustMeasureContent=!0),(t||i||f||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),t&&this.docViewUpdate(),!s.empty)for(let d of this.state.facet(As))try{d(s)}catch(p){Pe(this.state,p,"update listener")}(a||c)&&Promise.resolve().then(()=>{a&&this.state==a.startState&&this.dispatch(a),c&&!na(this,c)&&h.force&&ei(this.contentDOM,h.key,h.keyCode)})}setState(e){if(this.updateState!=0)throw new Error("Calls to EditorView.setState are not allowed while an update is in progress");if(this.destroyed){this.viewState.state=e;return}this.updateState=2;let t=this.hasFocus;try{for(let i of this.plugins)i.destroy(this);this.viewState=new Do(e),this.plugins=e.facet(Kt).map(i=>new En(i)),this.pluginMap.clear();for(let i of this.plugins)i.update(this);this.docView.destroy(),this.docView=new ao(this),this.inputState.ensureHandlers(this.plugins),this.mountStyles(),this.updateAttrs(),this.bidiCache=[]}finally{this.updateState=0}t&&this.focus(),this.requestMeasure()}updatePlugins(e){let t=e.startState.facet(Kt),i=e.state.facet(Kt);if(t!=i){let s=[];for(let o of i){let r=t.indexOf(o);if(r<0)s.push(new En(o));else{let l=this.plugins[r];l.mustUpdate=e,s.push(l)}}for(let o of this.plugins)o.mustUpdate!=e&&o.destroy(this);this.plugins=s,this.pluginMap.clear()}else for(let s of this.plugins)s.mustUpdate=e;for(let s=0;s<this.plugins.length;s++)this.plugins[s].update(this);t!=i&&this.inputState.ensureHandlers(this.plugins)}docViewUpdate(){for(let e of this.plugins){let t=e.value;if(t&&t.docViewUpdate)try{t.docViewUpdate(this)}catch(i){Pe(this.state,i,"doc view update listener")}}}measure(e=!0){if(this.destroyed)return;if(this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.observer.delayedAndroidKey){this.measureScheduled=-1,this.requestMeasure();return}this.measureScheduled=0,e&&this.observer.forceFlush();let t=null,i=this.scrollDOM,s=i.scrollTop*this.scaleY,{scrollAnchorPos:o,scrollAnchorHeight:r}=this.viewState;Math.abs(s-this.viewState.scrollTop)>1&&(r=-1),this.viewState.scrollAnchorHeight=-1;try{for(let l=0;;l++){if(r<0)if(Cl(i))o=-1,r=this.viewState.heightMap.height;else{let p=this.viewState.scrollAnchorAt(s);o=p.from,r=p.top}this.updateState=1;let a=this.viewState.measure(this);if(!a&&!this.measureRequests.length&&this.viewState.scrollTarget==null)break;if(l>5){console.warn(this.measureRequests.length?"Measure loop restarted more than 5 times":"Viewport failed to stabilize");break}let h=[];a&4||([this.measureRequests,h]=[h,this.measureRequests]);let c=h.map(p=>{try{return p.read(this)}catch(g){return Pe(this.state,g),Po}}),f=F0.create(this,this.state,[]),d=!1;f.flags|=a,t?t.flags|=a:t=f,this.updateState=2,f.empty||(this.updatePlugins(f),this.inputState.update(f),this.updateAttrs(),d=this.docView.update(f),d&&this.docViewUpdate());for(let p=0;p<h.length;p++)if(c[p]!=Po)try{let g=h[p];g.write&&g.write(c[p],this)}catch(g){Pe(this.state,g)}if(d&&this.docView.updateSelection(!0),!f.viewportChanged&&this.measureRequests.length==0){if(this.viewState.editorHeight)if(this.viewState.scrollTarget){this.docView.scrollIntoView(this.viewState.scrollTarget),this.viewState.scrollTarget=null,r=-1;continue}else{let g=(o<0?this.viewState.heightMap.height:this.viewState.lineBlockAt(o).top)-r;if(g>1||g<-1){s=s+g,i.scrollTop=s/this.scaleY,r=-1;continue}}break}}}finally{this.updateState=0,this.measureScheduled=-1}if(t&&!t.empty)for(let l of this.state.facet(As))l(t)}get themeClasses(){return zs+" "+(this.state.facet(Vs)?pa:da)+" "+this.state.facet(f0)}updateAttrs(){let e=Eo(this,Ql,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),t={spellcheck:"false",autocorrect:"off",autocapitalize:"off",writingsuggestions:"false",translate:"no",contenteditable:this.state.facet(ht)?"true":"false",class:"cm-content",style:`${V.tabSize}: ${this.state.tabSize}`,role:"textbox","aria-multiline":"true"};this.state.readOnly&&(t["aria-readonly"]="true"),Eo(this,h2,t);let i=this.observer.ignore(()=>{let s=_s(this.contentDOM,this.contentAttrs,t),o=_s(this.dom,this.editorAttrs,e);return s||o});return this.editorAttrs=e,this.contentAttrs=t,i}showAnnouncements(e){let t=!0;for(let i of e)for(let s of i.effects)if(s.is(z.announce)){t&&(this.announceDOM.textContent=""),t=!1;let o=this.announceDOM.appendChild(document.createElement("div"));o.textContent=s.value}}mountStyles(){this.styleModules=this.state.facet(ki);let e=this.state.facet(z.cspNonce);_t.mount(this.root,this.styleModules.concat(_6).reverse(),e?{nonce:e}:void 0)}readMeasured(){if(this.updateState==2)throw new Error("Reading the editor layout isn't allowed during an update");this.updateState==0&&this.measureScheduled>-1&&this.measure(!1)}requestMeasure(e){if(this.measureScheduled<0&&(this.measureScheduled=this.win.requestAnimationFrame(()=>this.measure())),e){if(this.measureRequests.indexOf(e)>-1)return;if(e.key!=null){for(let t=0;t<this.measureRequests.length;t++)if(this.measureRequests[t].key===e.key){this.measureRequests[t]=e;return}}this.measureRequests.push(e)}}plugin(e){let t=this.pluginMap.get(e);return(t===void 0||t&&t.plugin!=e)&&this.pluginMap.set(e,t=this.plugins.find(i=>i.plugin==e)||null),t&&t.update(this).value}get documentTop(){return this.contentDOM.getBoundingClientRect().top+this.viewState.paddingTop}get documentPadding(){return{top:this.viewState.paddingTop,bottom:this.viewState.paddingBottom}}get scaleX(){return this.viewState.scaleX}get scaleY(){return this.viewState.scaleY}elementAtHeight(e){return this.readMeasured(),this.viewState.elementAtHeight(e)}lineBlockAtHeight(e){return this.readMeasured(),this.viewState.lineBlockAtHeight(e)}get viewportLineBlocks(){return this.viewState.viewportLines}lineBlockAt(e){return this.viewState.lineBlockAt(e)}get contentHeight(){return this.viewState.contentHeight}moveByChar(e,t,i){return zn(this,e,po(this,e,t,i))}moveByGroup(e,t){return zn(this,e,po(this,e,t,i=>$d(this,e.head,i)))}visualLineSide(e,t){let i=this.bidiSpans(e),s=this.textDirectionAt(e.from),o=i[t?i.length-1:0];return O.cursor(o.side(t,s)+e.from,o.forward(!t,s)?1:-1)}moveToLineBoundary(e,t,i=!0){return Hd(this,e,t,i)}moveVertically(e,t,i){return zn(this,e,Wd(this,e,t,i))}domAtPos(e){return this.docView.domAtPos(e)}posAtDOM(e,t=0){return this.docView.posFromDOM(e,t)}posAtCoords(e,t=!0){return this.readMeasured(),ia(this,e,t)}coordsAtPos(e,t=1){this.readMeasured();let i=this.docView.coordsAt(e,t);if(!i||i.left==i.right)return i;let s=this.state.doc.lineAt(e),o=this.bidiSpans(s),r=o[yt.find(o,e-s.from,-1,t)];return mn(i,r.dir==se.LTR==t>0)}coordsForChar(e){return this.readMeasured(),this.docView.coordsForChar(e)}get defaultCharacterWidth(){return this.viewState.heightOracle.charWidth}get defaultLineHeight(){return this.viewState.heightOracle.lineHeight}get textDirection(){return this.viewState.defaultTextDirection}textDirectionAt(e){return!this.state.facet(Ul)||e<this.viewport.from||e>this.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(e))}get lineWrapping(){return this.viewState.heightOracle.lineWrapping}bidiSpans(e){if(e.length>A6)return Il(e.length);let t=this.textDirectionAt(e.from),i;for(let o of this.bidiCache)if(o.from==e.from&&o.dir==t&&(o.fresh||Rl(o.isolates,i=lo(this,e))))return o.order;i||(i=lo(this,e));let s=Cd(e.text,t,i);return this.bidiCache.push(new j0(e.from,e.to,t,i,!0,s)),s}get hasFocus(){var e;return(this.dom.ownerDocument.hasFocus()||V.safari&&((e=this.inputState)===null||e===void 0?void 0:e.lastContextMenu)>Date.now()-3e4)&&this.root.activeElement==this.contentDOM}focus(){this.observer.ignore(()=>{kl(this.contentDOM),this.docView.updateSelection()})}setRoot(e){this._root!=e&&(this._root=e,this.observer.setWindow((e.nodeType==9?e:e.ownerDocument).defaultView||window),this.mountStyles())}destroy(){this.root.activeElement==this.contentDOM&&this.contentDOM.blur();for(let e of this.plugins)e.destroy(this);this.plugins=[],this.inputState.destroy(),this.docView.destroy(),this.dom.remove(),this.observer.destroy(),this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.destroyed=!0}static scrollIntoView(e,t={}){return r0.of(new ti(typeof e=="number"?O.cursor(e):e,t.y,t.x,t.yMargin,t.xMargin))}scrollSnapshot(){let{scrollTop:e,scrollLeft:t}=this.scrollDOM,i=this.viewState.scrollAnchorAt(e);return r0.of(new ti(O.cursor(i.from),"start","start",i.top-e,t,!0))}setTabFocusMode(e){e==null?this.inputState.tabFocusMode=this.inputState.tabFocusMode<0?0:-1:typeof e=="boolean"?this.inputState.tabFocusMode=e?0:-1:this.inputState.tabFocusMode!=0&&(this.inputState.tabFocusMode=Date.now()+e)}static domEventHandlers(e){return he.define(()=>({}),{eventHandlers:e})}static domEventObservers(e){return he.define(()=>({}),{eventObservers:e})}static theme(e,t){let i=_t.newName(),s=[f0.of(i),ki.of(Ls(`.${i}`,e))];return t&&t.dark&&s.push(Vs.of(!0)),s}static baseTheme(e){return jt.lowest(ki.of(Ls("."+zs,e,ga)))}static findFromDOM(e){var t;let i=e.querySelector(".cm-content"),s=i&&te.get(i)||te.get(e);return((t=s==null?void 0:s.rootView)===null||t===void 0?void 0:t.view)||null}}z.styleModule=ki;z.inputHandler=jl;z.clipboardInputFilter=a2;z.clipboardOutputFilter=c2;z.scrollHandler=Kl;z.focusChangeEffect=ql;z.perLineTextDirection=Ul;z.exceptionSink=Gl;z.updateListener=As;z.editable=ht;z.mouseSelectionStyle=Fl;z.dragMovesSelection=Wl;z.clickAddsSelectionRange=$l;z.decorations=Ii;z.outerDecorations=Jl;z.atomicRanges=u2;z.bidiIsolatedRanges=Zl;z.scrollMargins=ea;z.darkTheme=Vs;z.cspNonce=L.define({combine:n=>n.length?n[0]:""});z.contentAttributes=h2;z.editorAttributes=Ql;z.lineWrapping=z.contentAttributes.of({class:"cm-lineWrapping"});z.announce=G.define();const A6=4096,Po={};class j0{constructor(e,t,i,s,o,r){this.from=e,this.to=t,this.dir=i,this.isolates=s,this.fresh=o,this.order=r}static update(e,t){if(t.empty&&!e.some(o=>o.fresh))return e;let i=[],s=e.length?e[e.length-1].dir:se.LTR;for(let o=Math.max(0,e.length-10);o<e.length;o++){let r=e[o];r.dir==s&&!t.touchesRange(r.from,r.to)&&i.push(new j0(t.mapPos(r.from,1),t.mapPos(r.to,-1),r.dir,r.isolates,!1,r.order))}return i}}function Eo(n,e,t){for(let i=n.state.facet(e),s=i.length-1;s>=0;s--){let o=i[s],r=typeof o=="function"?o(n):o;r&&Cs(r,t)}return t}const B6=V.mac?"mac":V.windows?"win":V.linux?"linux":"key";function P6(n,e){const t=n.split(/-(?!$)/);let i=t[t.length-1];i=="Space"&&(i=" ");let s,o,r,l;for(let a=0;a<t.length-1;++a){const h=t[a];if(/^(cmd|meta|m)$/i.test(h))l=!0;else if(/^a(lt)?$/i.test(h))s=!0;else if(/^(c|ctrl|control)$/i.test(h))o=!0;else if(/^s(hift)?$/i.test(h))r=!0;else if(/^mod$/i.test(h))e=="mac"?l=!0:o=!0;else throw new Error("Unrecognized modifier name: "+h)}return s&&(i="Alt-"+i),o&&(i="Ctrl-"+i),l&&(i="Meta-"+i),r&&(i="Shift-"+i),i}function d0(n,e,t){return e.altKey&&(n="Alt-"+n),e.ctrlKey&&(n="Ctrl-"+n),e.metaKey&&(n="Meta-"+n),t!==!1&&e.shiftKey&&(n="Shift-"+n),n}const E6=jt.default(z.domEventHandlers({keydown(n,e){return va(ma(e.state),n,e,"editor")}})),m2=L.define({enables:E6}),Vo=new WeakMap;function ma(n){let e=n.facet(m2),t=Vo.get(e);return t||Vo.set(e,t=L6(e.reduce((i,s)=>i.concat(s),[]))),t}function V6(n,e,t){return va(ma(n.state),e,n,t)}let wt=null;const z6=4e3;function L6(n,e=B6){let t=Object.create(null),i=Object.create(null),s=(r,l)=>{let a=i[r];if(a==null)i[r]=l;else if(a!=l)throw new Error("Key binding "+r+" is used both as a regular binding and as a multi-stroke prefix")},o=(r,l,a,h,c)=>{var f,d;let p=t[r]||(t[r]=Object.create(null)),g=l.split(/ (?!$)/).map(w=>P6(w,e));for(let w=1;w<g.length;w++){let b=g.slice(0,w).join(" ");s(b,!0),p[b]||(p[b]={preventDefault:!0,stopPropagation:!1,run:[S=>{let k=wt={view:S,prefix:b,scope:r};return setTimeout(()=>{wt==k&&(wt=null)},z6),!0}]})}let m=g.join(" ");s(m,!1);let v=p[m]||(p[m]={preventDefault:!1,stopPropagation:!1,run:((d=(f=p._any)===null||f===void 0?void 0:f.run)===null||d===void 0?void 0:d.slice())||[]});a&&v.run.push(a),h&&(v.preventDefault=!0),c&&(v.stopPropagation=!0)};for(let r of n){let l=r.scope?r.scope.split(" "):["editor"];if(r.any)for(let h of l){let c=t[h]||(t[h]=Object.create(null));c._any||(c._any={preventDefault:!1,stopPropagation:!1,run:[]});let{any:f}=r;for(let d in c)c[d].run.push(p=>f(p,Ns))}let a=r[e]||r.key;if(a)for(let h of l)o(h,a,r.run,r.preventDefault,r.stopPropagation),r.shift&&o(h,"Shift-"+a,r.shift,r.preventDefault,r.stopPropagation)}return t}let Ns=null;function va(n,e,t,i){Ns=e;let s=sd(e),o=Te(s,0),r=tt(o)==s.length&&s!=" ",l="",a=!1,h=!1,c=!1;wt&&wt.view==t&&wt.scope==i&&(l=wt.prefix+" ",oa.indexOf(e.keyCode)<0&&(h=!0,wt=null));let f=new Set,d=v=>{if(v){for(let w of v.run)if(!f.has(w)&&(f.add(w),w(t)))return v.stopPropagation&&(c=!0),!0;v.preventDefault&&(v.stopPropagation&&(c=!0),h=!0)}return!1},p=n[i],g,m;return p&&(d(p[l+d0(s,e,!r)])?a=!0:r&&(e.altKey||e.metaKey||e.ctrlKey)&&!(V.windows&&e.ctrlKey&&e.altKey)&&!(V.mac&&e.altKey&&!e.ctrlKey)&&(g=Ot[e.keyCode])&&g!=s?(d(p[l+d0(g,e,!0)])||e.shiftKey&&(m=Li[e.keyCode])!=s&&m!=g&&d(p[l+d0(m,e,!1)]))&&(a=!0):r&&e.shiftKey&&d(p[l+d0(s,e,!0)])&&(a=!0),!a&&d(p._any)&&(a=!0)),h&&(a=!0),a&&c&&e.stopPropagation(),Ns=null,a}class Ji{constructor(e,t,i,s,o){this.className=e,this.left=t,this.top=i,this.width=s,this.height=o}draw(){let e=document.createElement("div");return e.className=this.className,this.adjust(e),e}update(e,t){return t.className!=this.className?!1:(this.adjust(e),!0)}adjust(e){e.style.left=this.left+"px",e.style.top=this.top+"px",this.width!=null&&(e.style.width=this.width+"px"),e.style.height=this.height+"px"}eq(e){return this.left==e.left&&this.top==e.top&&this.width==e.width&&this.height==e.height&&this.className==e.className}static forRange(e,t,i){if(i.empty){let s=e.coordsAtPos(i.head,i.assoc||1);if(!s)return[];let o=wa(e);return[new Ji(t,s.left-o.left,s.top-o.top,null,s.bottom-s.top)]}else return N6(e,t,i)}}function wa(n){let e=n.scrollDOM.getBoundingClientRect();return{left:(n.textDirection==se.LTR?e.left:e.right-n.scrollDOM.clientWidth*n.scaleX)-n.scrollDOM.scrollLeft*n.scaleX,top:e.top-n.scrollDOM.scrollTop*n.scaleY}}function zo(n,e,t,i){let s=n.coordsAtPos(e,t*2);if(!s)return i;let o=n.dom.getBoundingClientRect(),r=(s.top+s.bottom)/2,l=n.posAtCoords({x:o.left+1,y:r}),a=n.posAtCoords({x:o.right-1,y:r});return l==null||a==null?i:{from:Math.max(i.from,Math.min(l,a)),to:Math.min(i.to,Math.max(l,a))}}function N6(n,e,t){if(t.to<=n.viewport.from||t.from>=n.viewport.to)return[];let i=Math.max(t.from,n.viewport.from),s=Math.min(t.to,n.viewport.to),o=n.textDirection==se.LTR,r=n.contentDOM,l=r.getBoundingClientRect(),a=wa(n),h=r.querySelector(".cm-line"),c=h&&window.getComputedStyle(h),f=l.left+(c?parseInt(c.paddingLeft)+Math.min(0,parseInt(c.textIndent)):0),d=l.right-(c?parseInt(c.paddingRight):0),p=Ps(n,i,1),g=Ps(n,s,-1),m=p.type==_e.Text?p:null,v=g.type==_e.Text?g:null;if(m&&(n.lineWrapping||p.widgetLineBreaks)&&(m=zo(n,i,1,m)),v&&(n.lineWrapping||g.widgetLineBreaks)&&(v=zo(n,s,-1,v)),m&&v&&m.from==v.from&&m.to==v.to)return b(S(t.from,t.to,m));{let y=m?S(t.from,null,m):k(p,!1),_=v?S(null,t.to,v):k(g,!0),C=[];return(m||p).to<(v||g).from-(m&&v?1:0)||p.widgetLineBreaks>1&&y.bottom+n.defaultLineHeight/2<_.top?C.push(w(f,y.bottom,d,_.top)):y.bottom<_.top&&n.elementAtHeight((y.bottom+_.top)/2).type==_e.Text&&(y.bottom=_.top=(y.bottom+_.top)/2),b(y).concat(C).concat(b(_))}function w(y,_,C,T){return new Ji(e,y-a.left,_-a.top,C-y,T-_)}function b({top:y,bottom:_,horizontal:C}){let T=[];for(let P=0;P<C.length;P+=2)T.push(w(C[P],y,C[P+1],_));return T}function S(y,_,C){let T=1e9,P=-1e9,x=[];function H(B,E,$,F,R){let Q=n.coordsAtPos(B,B==C.to?-2:2),X=n.coordsAtPos($,$==C.from?2:-2);!Q||!X||(T=Math.min(Q.top,X.top,T),P=Math.max(Q.bottom,X.bottom,P),R==se.LTR?x.push(o&&E?f:Q.left,o&&F?d:X.right):x.push(!o&&F?f:X.left,!o&&E?d:Q.right))}let N=y??C.from,M=_??C.to;for(let B of n.visibleRanges)if(B.to>N&&B.from<M)for(let E=Math.max(B.from,N),$=Math.min(B.to,M);;){let F=n.state.doc.lineAt(E);for(let R of n.bidiSpans(F)){let Q=R.from+F.from,X=R.to+F.from;if(Q>=$)break;X>E&&H(Math.max(Q,E),y==null&&Q<=N,Math.min(X,$),_==null&&X>=M,R.dir)}if(E=F.to+1,E>=$)break}return x.length==0&&H(N,y==null,M,_==null,n.textDirection),{top:T,bottom:P,horizontal:x}}function k(y,_){let C=l.top+(_?y.top:y.bottom);return{top:C,bottom:C,horizontal:[]}}}function R6(n,e){return n.constructor==e.constructor&&n.eq(e)}class I6{constructor(e,t){this.view=e,this.layer=t,this.drawn=[],this.scaleX=1,this.scaleY=1,this.measureReq={read:this.measure.bind(this),write:this.draw.bind(this)},this.dom=e.scrollDOM.appendChild(document.createElement("div")),this.dom.classList.add("cm-layer"),t.above&&this.dom.classList.add("cm-layer-above"),t.class&&this.dom.classList.add(t.class),this.scale(),this.dom.setAttribute("aria-hidden","true"),this.setOrder(e.state),e.requestMeasure(this.measureReq),t.mount&&t.mount(this.dom,e)}update(e){e.startState.facet(P0)!=e.state.facet(P0)&&this.setOrder(e.state),(this.layer.update(e,this.dom)||e.geometryChanged)&&(this.scale(),e.view.requestMeasure(this.measureReq))}docViewUpdate(e){this.layer.updateOnDocViewUpdate!==!1&&e.requestMeasure(this.measureReq)}setOrder(e){let t=0,i=e.facet(P0);for(;t<i.length&&i[t]!=this.layer;)t++;this.dom.style.zIndex=String((this.layer.above?150:-1)-t)}measure(){return this.layer.markers(this.view)}scale(){let{scaleX:e,scaleY:t}=this.view;(e!=this.scaleX||t!=this.scaleY)&&(this.scaleX=e,this.scaleY=t,this.dom.style.transform=`scale(${1/e}, ${1/t})`)}draw(e){if(e.length!=this.drawn.length||e.some((t,i)=>!R6(t,this.drawn[i]))){let t=this.dom.firstChild,i=0;for(let s of e)s.update&&t&&s.constructor&&this.drawn[i].constructor&&s.update(t,this.drawn[i])?(t=t.nextSibling,i++):this.dom.insertBefore(s.draw(),t);for(;t;){let s=t.nextSibling;t.remove(),t=s}this.drawn=e}}destroy(){this.layer.destroy&&this.layer.destroy(this.dom,this.view),this.dom.remove()}}const P0=L.define();function xa(n){return[he.define(e=>new I6(e,n)),P0.of(n)]}const Hi=L.define({combine(n){return lt(n,{cursorBlinkRate:1200,drawRangeCursor:!0},{cursorBlinkRate:(e,t)=>Math.min(e,t),drawRangeCursor:(e,t)=>e||t})}});function H6(n={}){return[Hi.of(n),$6,W6,F6,Yl.of(!0)]}function ba(n){return n.startState.facet(Hi)!=n.state.facet(Hi)}const $6=xa({above:!0,markers(n){let{state:e}=n,t=e.facet(Hi),i=[];for(let s of e.selection.ranges){let o=s==e.selection.main;if(s.empty||t.drawRangeCursor){let r=o?"cm-cursor cm-cursor-primary":"cm-cursor cm-cursor-secondary",l=s.empty?s:O.cursor(s.head,s.head>s.anchor?-1:1);for(let a of Ji.forRange(n,r,l))i.push(a)}}return i},update(n,e){n.transactions.some(i=>i.selection)&&(e.style.animationName=e.style.animationName=="cm-blink"?"cm-blink2":"cm-blink");let t=ba(n);return t&&Lo(n.state,e),n.docChanged||n.selectionSet||t},mount(n,e){Lo(e.state,n)},class:"cm-cursorLayer"});function Lo(n,e){e.style.animationDuration=n.facet(Hi).cursorBlinkRate+"ms"}const W6=xa({above:!1,markers(n){return n.state.selection.ranges.map(e=>e.empty?[]:Ji.forRange(n,"cm-selectionBackground",e)).reduce((e,t)=>e.concat(t))},update(n,e){return n.docChanged||n.selectionSet||n.viewportChanged||ba(n)},class:"cm-selectionLayer"}),F6=jt.highest(z.theme({".cm-line":{"& ::selection, &::selection":{backgroundColor:"transparent !important"},caretColor:"transparent !important"},".cm-content":{caretColor:"transparent !important","& :focus":{caretColor:"initial !important","&::selection, & ::selection":{backgroundColor:"Highlight !important"}}}})),ya=G.define({map(n,e){return n==null?null:e.mapPos(n)}}),_i=be.define({create(){return null},update(n,e){return n!=null&&(n=e.changes.mapPos(n)),e.effects.reduce((t,i)=>i.is(ya)?i.value:t,n)}}),G6=he.fromClass(class{constructor(n){this.view=n,this.cursor=null,this.measureReq={read:this.readPos.bind(this),write:this.drawCursor.bind(this)}}update(n){var e;let t=n.state.field(_i);t==null?this.cursor!=null&&((e=this.cursor)===null||e===void 0||e.remove(),this.cursor=null):(this.cursor||(this.cursor=this.view.scrollDOM.appendChild(document.createElement("div")),this.cursor.className="cm-dropCursor"),(n.startState.field(_i)!=t||n.docChanged||n.geometryChanged)&&this.view.requestMeasure(this.measureReq))}readPos(){let{view:n}=this,e=n.state.field(_i),t=e!=null&&n.coordsAtPos(e);if(!t)return null;let i=n.scrollDOM.getBoundingClientRect();return{left:t.left-i.left+n.scrollDOM.scrollLeft*n.scaleX,top:t.top-i.top+n.scrollDOM.scrollTop*n.scaleY,height:t.bottom-t.top}}drawCursor(n){if(this.cursor){let{scaleX:e,scaleY:t}=this.view;n?(this.cursor.style.left=n.left/e+"px",this.cursor.style.top=n.top/t+"px",this.cursor.style.height=n.height/t+"px"):this.cursor.style.left="-100000px"}}destroy(){this.cursor&&this.cursor.remove()}setDropPos(n){this.view.state.field(_i)!=n&&this.view.dispatch({effects:ya.of(n)})}},{eventObservers:{dragover(n){this.setDropPos(this.view.posAtCoords({x:n.clientX,y:n.clientY}))},dragleave(n){(n.target==this.view.contentDOM||!this.view.contentDOM.contains(n.relatedTarget))&&this.setDropPos(null)},dragend(){this.setDropPos(null)},drop(){this.setDropPos(null)}}});function j6(){return[_i,G6]}function No(n,e,t,i,s){e.lastIndex=0;for(let o=n.iterRange(t,i),r=t,l;!o.next().done;r+=o.value.length)if(!o.lineBreak)for(;l=e.exec(o.value);)s(r+l.index,l)}function q6(n,e){let t=n.visibleRanges;if(t.length==1&&t[0].from==n.viewport.from&&t[0].to==n.viewport.to)return t;let i=[];for(let{from:s,to:o}of t)s=Math.max(n.state.doc.lineAt(s).from,s-e),o=Math.min(n.state.doc.lineAt(o).to,o+e),i.length&&i[i.length-1].to>=s?i[i.length-1].to=o:i.push({from:s,to:o});return i}class U6{constructor(e){const{regexp:t,decoration:i,decorate:s,boundary:o,maxLength:r=1e3}=e;if(!t.global)throw new RangeError("The regular expression given to MatchDecorator should have its 'g' flag set");if(this.regexp=t,s)this.addMatch=(l,a,h,c)=>s(c,h,h+l[0].length,l,a);else if(typeof i=="function")this.addMatch=(l,a,h,c)=>{let f=i(l,a,h);f&&c(h,h+l[0].length,f)};else if(i)this.addMatch=(l,a,h,c)=>c(h,h+l[0].length,i);else throw new RangeError("Either 'decorate' or 'decoration' should be provided to MatchDecorator");this.boundary=o,this.maxLength=r}createDeco(e){let t=new ft,i=t.add.bind(t);for(let{from:s,to:o}of q6(e,this.maxLength))No(e.state.doc,this.regexp,s,o,(r,l)=>this.addMatch(l,e,r,i));return t.finish()}updateDeco(e,t){let i=1e9,s=-1;return e.docChanged&&e.changes.iterChanges((o,r,l,a)=>{a>=e.view.viewport.from&&l<=e.view.viewport.to&&(i=Math.min(l,i),s=Math.max(a,s))}),e.viewportMoved||s-i>1e3?this.createDeco(e.view):s>-1?this.updateRange(e.view,t.map(e.changes),i,s):t}updateRange(e,t,i,s){for(let o of e.visibleRanges){let r=Math.max(o.from,i),l=Math.min(o.to,s);if(l>=r){let a=e.state.doc.lineAt(r),h=a.to<l?e.state.doc.lineAt(l):a,c=Math.max(o.from,a.from),f=Math.min(o.to,h.to);if(this.boundary){for(;r>a.from;r--)if(this.boundary.test(a.text[r-1-a.from])){c=r;break}for(;l<h.to;l++)if(this.boundary.test(h.text[l-h.from])){f=l;break}}let d=[],p,g=(m,v,w)=>d.push(w.range(m,v));if(a==h)for(this.regexp.lastIndex=c-a.from;(p=this.regexp.exec(a.text))&&p.index<f-a.from;)this.addMatch(p,e,p.index+a.from,g);else No(e.state.doc,this.regexp,c,f,(m,v)=>this.addMatch(v,e,m,g));t=t.update({filterFrom:c,filterTo:f,filter:(m,v)=>m<c||v>f,add:d})}}return t}}const Rs=/x/.unicode!=null?"gu":"g",Y6=new RegExp(`[\0-\b
|
|
11
|
+
--\u2028\u2029\uFEFF-]`,Rs),K6={0:"null",7:"bell",8:"backspace",10:"newline",11:"vertical tab",13:"carriage return",27:"escape",8203:"zero width space",8204:"zero width non-joiner",8205:"zero width joiner",8206:"left-to-right mark",8207:"right-to-left mark",8232:"line separator",8237:"left-to-right override",8238:"right-to-left override",8294:"left-to-right isolate",8295:"right-to-left isolate",8297:"pop directional isolate",8233:"paragraph separator",65279:"zero width no-break space",65532:"object replacement"};let Rn=null;function X6(){var n;if(Rn==null&&typeof document<"u"&&document.body){let e=document.body.style;Rn=((n=e.tabSize)!==null&&n!==void 0?n:e.MozTabSize)!=null}return Rn||!1}const E0=L.define({combine(n){let e=lt(n,{render:null,specialChars:Y6,addSpecialChars:null});return(e.replaceTabs=!X6())&&(e.specialChars=new RegExp(" |"+e.specialChars.source,Rs)),e.addSpecialChars&&(e.specialChars=new RegExp(e.specialChars.source+"|"+e.addSpecialChars.source,Rs)),e}});function Q6(n={}){return[E0.of(n),J6()]}let Ro=null;function J6(){return Ro||(Ro=he.fromClass(class{constructor(n){this.view=n,this.decorations=W.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(n.state.facet(E0)),this.decorations=this.decorator.createDeco(n)}makeDecorator(n){return new U6({regexp:n.specialChars,decoration:(e,t,i)=>{let{doc:s}=t.state,o=Te(e[0],0);if(o==9){let r=s.lineAt(i),l=t.state.tabSize,a=fi(r.text,l,i-r.from);return W.replace({widget:new i4((l-a%l)*this.view.defaultCharacterWidth/this.view.scaleX)})}return this.decorationCache[o]||(this.decorationCache[o]=W.replace({widget:new t4(n,o)}))},boundary:n.replaceTabs?void 0:/[^]/})}update(n){let e=n.state.facet(E0);n.startState.facet(E0)!=e?(this.decorator=this.makeDecorator(e),this.decorations=this.decorator.createDeco(n.view)):this.decorations=this.decorator.updateDeco(n,this.decorations)}},{decorations:n=>n.decorations}))}const Z6="•";function e4(n){return n>=32?Z6:n==10?"":String.fromCharCode(9216+n)}class t4 extends At{constructor(e,t){super(),this.options=e,this.code=t}eq(e){return e.code==this.code}toDOM(e){let t=e4(this.code),i=e.state.phrase("Control character")+" "+(K6[this.code]||"0x"+this.code.toString(16)),s=this.options.render&&this.options.render(this.code,i,t);if(s)return s;let o=document.createElement("span");return o.textContent=t,o.title=i,o.setAttribute("aria-label",i),o.className="cm-specialChar",o}ignoreEvent(){return!1}}class i4 extends At{constructor(e){super(),this.width=e}eq(e){return e.width==this.width}toDOM(){let e=document.createElement("span");return e.textContent=" ",e.className="cm-tab",e.style.width=this.width+"px",e}ignoreEvent(){return!1}}function n4(){return o4}const s4=W.line({class:"cm-activeLine"}),o4=he.fromClass(class{constructor(n){this.decorations=this.getDeco(n)}update(n){(n.docChanged||n.selectionSet)&&(this.decorations=this.getDeco(n.view))}getDeco(n){let e=-1,t=[];for(let i of n.state.selection.ranges){let s=n.lineBlockAt(i.head);s.from>e&&(t.push(s4.range(s.from)),e=s.from)}return W.set(t)}},{decorations:n=>n.decorations}),Is=2e3;function r4(n,e,t){let i=Math.min(e.line,t.line),s=Math.max(e.line,t.line),o=[];if(e.off>Is||t.off>Is||e.col<0||t.col<0){let r=Math.min(e.off,t.off),l=Math.max(e.off,t.off);for(let a=i;a<=s;a++){let h=n.doc.line(a);h.length<=l&&o.push(O.range(h.from+r,h.to+l))}}else{let r=Math.min(e.col,t.col),l=Math.max(e.col,t.col);for(let a=i;a<=s;a++){let h=n.doc.line(a),c=vs(h.text,r,n.tabSize,!0);if(c<0)o.push(O.cursor(h.to));else{let f=vs(h.text,l,n.tabSize);o.push(O.range(h.from+c,h.from+f))}}}return o}function l4(n,e){let t=n.coordsAtPos(n.viewport.from);return t?Math.round(Math.abs((t.left-e)/n.defaultCharacterWidth)):-1}function Io(n,e){let t=n.posAtCoords({x:e.clientX,y:e.clientY},!1),i=n.state.doc.lineAt(t),s=t-i.from,o=s>Is?-1:s==i.length?l4(n,e.clientX):fi(i.text,n.state.tabSize,t-i.from);return{line:i.number,col:o,off:s}}function a4(n,e){let t=Io(n,e),i=n.state.selection;return t?{update(s){if(s.docChanged){let o=s.changes.mapPos(s.startState.doc.line(t.line).from),r=s.state.doc.lineAt(o);t={line:r.number,col:t.col,off:Math.min(t.off,r.length)},i=i.map(s.changes)}},get(s,o,r){let l=Io(n,s);if(!l)return i;let a=r4(n.state,t,l);return a.length?r?O.create(a.concat(i.ranges)):O.create(a):i}}:null}function c4(n){let e=t=>t.altKey&&t.button==0;return z.mouseSelectionStyle.of((t,i)=>e(i)?a4(t,i):null)}const h4={Alt:[18,n=>!!n.altKey],Control:[17,n=>!!n.ctrlKey],Shift:[16,n=>!!n.shiftKey],Meta:[91,n=>!!n.metaKey]},u4={style:"cursor: crosshair"};function f4(n={}){let[e,t]=h4[n.key||"Alt"],i=he.fromClass(class{constructor(s){this.view=s,this.isDown=!1}set(s){this.isDown!=s&&(this.isDown=s,this.view.update([]))}},{eventObservers:{keydown(s){this.set(s.keyCode==e||t(s))},keyup(s){(s.keyCode==e||!t(s))&&this.set(!1)},mousemove(s){this.set(t(s))}}});return[i,z.contentAttributes.of(s=>{var o;return!((o=s.plugin(i))===null||o===void 0)&&o.isDown?u4:null})]}const wi="-10000px";class ka{constructor(e,t,i,s){this.facet=t,this.createTooltipView=i,this.removeTooltipView=s,this.input=e.state.facet(t),this.tooltips=this.input.filter(r=>r);let o=null;this.tooltipViews=this.tooltips.map(r=>o=i(r,o))}update(e,t){var i;let s=e.state.facet(this.facet),o=s.filter(a=>a);if(s===this.input){for(let a of this.tooltipViews)a.update&&a.update(e);return!1}let r=[],l=t?[]:null;for(let a=0;a<o.length;a++){let h=o[a],c=-1;if(h){for(let f=0;f<this.tooltips.length;f++){let d=this.tooltips[f];d&&d.create==h.create&&(c=f)}if(c<0)r[a]=this.createTooltipView(h,a?r[a-1]:null),l&&(l[a]=!!h.above);else{let f=r[a]=this.tooltipViews[c];l&&(l[a]=t[c]),f.update&&f.update(e)}}}for(let a of this.tooltipViews)r.indexOf(a)<0&&(this.removeTooltipView(a),(i=a.destroy)===null||i===void 0||i.call(a));return t&&(l.forEach((a,h)=>t[h]=a),t.length=l.length),this.input=s,this.tooltips=o,this.tooltipViews=r,!0}}function d4(n){let e=n.dom.ownerDocument.documentElement;return{top:0,left:0,bottom:e.clientHeight,right:e.clientWidth}}const In=L.define({combine:n=>{var e,t,i;return{position:V.ios?"absolute":((e=n.find(s=>s.position))===null||e===void 0?void 0:e.position)||"fixed",parent:((t=n.find(s=>s.parent))===null||t===void 0?void 0:t.parent)||null,tooltipSpace:((i=n.find(s=>s.tooltipSpace))===null||i===void 0?void 0:i.tooltipSpace)||d4}}}),Ho=new WeakMap,v2=he.fromClass(class{constructor(n){this.view=n,this.above=[],this.inView=!0,this.madeAbsolute=!1,this.lastTransaction=0,this.measureTimeout=-1;let e=n.state.facet(In);this.position=e.position,this.parent=e.parent,this.classes=n.themeClasses,this.createContainer(),this.measureReq={read:this.readMeasure.bind(this),write:this.writeMeasure.bind(this),key:this},this.resizeObserver=typeof ResizeObserver=="function"?new ResizeObserver(()=>this.measureSoon()):null,this.manager=new ka(n,w2,(t,i)=>this.createTooltip(t,i),t=>{this.resizeObserver&&this.resizeObserver.unobserve(t.dom),t.dom.remove()}),this.above=this.manager.tooltips.map(t=>!!t.above),this.intersectionObserver=typeof IntersectionObserver=="function"?new IntersectionObserver(t=>{Date.now()>this.lastTransaction-50&&t.length>0&&t[t.length-1].intersectionRatio<1&&this.measureSoon()},{threshold:[1]}):null,this.observeIntersection(),n.win.addEventListener("resize",this.measureSoon=this.measureSoon.bind(this)),this.maybeMeasure()}createContainer(){this.parent?(this.container=document.createElement("div"),this.container.style.position="relative",this.container.className=this.view.themeClasses,this.parent.appendChild(this.container)):this.container=this.view.dom}observeIntersection(){if(this.intersectionObserver){this.intersectionObserver.disconnect();for(let n of this.manager.tooltipViews)this.intersectionObserver.observe(n.dom)}}measureSoon(){this.measureTimeout<0&&(this.measureTimeout=setTimeout(()=>{this.measureTimeout=-1,this.maybeMeasure()},50))}update(n){n.transactions.length&&(this.lastTransaction=Date.now());let e=this.manager.update(n,this.above);e&&this.observeIntersection();let t=e||n.geometryChanged,i=n.state.facet(In);if(i.position!=this.position&&!this.madeAbsolute){this.position=i.position;for(let s of this.manager.tooltipViews)s.dom.style.position=this.position;t=!0}if(i.parent!=this.parent){this.parent&&this.container.remove(),this.parent=i.parent,this.createContainer();for(let s of this.manager.tooltipViews)this.container.appendChild(s.dom);t=!0}else this.parent&&this.view.themeClasses!=this.classes&&(this.classes=this.container.className=this.view.themeClasses);t&&this.maybeMeasure()}createTooltip(n,e){let t=n.create(this.view),i=e?e.dom:null;if(t.dom.classList.add("cm-tooltip"),n.arrow&&!t.dom.querySelector(".cm-tooltip > .cm-tooltip-arrow")){let s=document.createElement("div");s.className="cm-tooltip-arrow",t.dom.appendChild(s)}return t.dom.style.position=this.position,t.dom.style.top=wi,t.dom.style.left="0px",this.container.insertBefore(t.dom,i),t.mount&&t.mount(this.view),this.resizeObserver&&this.resizeObserver.observe(t.dom),t}destroy(){var n,e,t;this.view.win.removeEventListener("resize",this.measureSoon);for(let i of this.manager.tooltipViews)i.dom.remove(),(n=i.destroy)===null||n===void 0||n.call(i);this.parent&&this.container.remove(),(e=this.resizeObserver)===null||e===void 0||e.disconnect(),(t=this.intersectionObserver)===null||t===void 0||t.disconnect(),clearTimeout(this.measureTimeout)}readMeasure(){let n=1,e=1,t=!1;if(this.position=="fixed"&&this.manager.tooltipViews.length){let{dom:o}=this.manager.tooltipViews[0];if(V.gecko)t=o.offsetParent!=this.container.ownerDocument.body;else if(o.style.top==wi&&o.style.left=="0px"){let r=o.getBoundingClientRect();t=Math.abs(r.top+1e4)>1||Math.abs(r.left)>1}}if(t||this.position=="absolute")if(this.parent){let o=this.parent.getBoundingClientRect();o.width&&o.height&&(n=o.width/this.parent.offsetWidth,e=o.height/this.parent.offsetHeight)}else({scaleX:n,scaleY:e}=this.view.viewState);let i=this.view.scrollDOM.getBoundingClientRect(),s=f2(this.view);return{visible:{left:i.left+s.left,top:i.top+s.top,right:i.right-s.right,bottom:i.bottom-s.bottom},parent:this.parent?this.container.getBoundingClientRect():this.view.dom.getBoundingClientRect(),pos:this.manager.tooltips.map((o,r)=>{let l=this.manager.tooltipViews[r];return l.getCoords?l.getCoords(o.pos):this.view.coordsAtPos(o.pos)}),size:this.manager.tooltipViews.map(({dom:o})=>o.getBoundingClientRect()),space:this.view.state.facet(In).tooltipSpace(this.view),scaleX:n,scaleY:e,makeAbsolute:t}}writeMeasure(n){var e;if(n.makeAbsolute){this.madeAbsolute=!0,this.position="absolute";for(let l of this.manager.tooltipViews)l.dom.style.position="absolute"}let{visible:t,space:i,scaleX:s,scaleY:o}=n,r=[];for(let l=0;l<this.manager.tooltips.length;l++){let a=this.manager.tooltips[l],h=this.manager.tooltipViews[l],{dom:c}=h,f=n.pos[l],d=n.size[l];if(!f||a.clip!==!1&&(f.bottom<=Math.max(t.top,i.top)||f.top>=Math.min(t.bottom,i.bottom)||f.right<Math.max(t.left,i.left)-.1||f.left>Math.min(t.right,i.right)+.1)){c.style.top=wi;continue}let p=a.arrow?h.dom.querySelector(".cm-tooltip-arrow"):null,g=p?7:0,m=d.right-d.left,v=(e=Ho.get(h))!==null&&e!==void 0?e:d.bottom-d.top,w=h.offset||g4,b=this.view.textDirection==se.LTR,S=d.width>i.right-i.left?b?i.left:i.right-d.width:b?Math.max(i.left,Math.min(f.left-(p?14:0)+w.x,i.right-m)):Math.min(Math.max(i.left,f.left-m+(p?14:0)-w.x),i.right-m),k=this.above[l];!a.strictSide&&(k?f.top-v-g-w.y<i.top:f.bottom+v+g+w.y>i.bottom)&&k==i.bottom-f.bottom>f.top-i.top&&(k=this.above[l]=!k);let y=(k?f.top-i.top:i.bottom-f.bottom)-g;if(y<v&&h.resize!==!1){if(y<this.view.defaultLineHeight){c.style.top=wi;continue}Ho.set(h,v),c.style.height=(v=y)/o+"px"}else c.style.height&&(c.style.height="");let _=k?f.top-v-g-w.y:f.bottom+g+w.y,C=S+m;if(h.overlap!==!0)for(let T of r)T.left<C&&T.right>S&&T.top<_+v&&T.bottom>_&&(_=k?T.top-v-2-g:T.bottom+g+2);if(this.position=="absolute"?(c.style.top=(_-n.parent.top)/o+"px",$o(c,(S-n.parent.left)/s)):(c.style.top=_/o+"px",$o(c,S/s)),p){let T=f.left+(b?w.x:-w.x)-(S+14-7);p.style.left=T/s+"px"}h.overlap!==!0&&r.push({left:S,top:_,right:C,bottom:_+v}),c.classList.toggle("cm-tooltip-above",k),c.classList.toggle("cm-tooltip-below",!k),h.positioned&&h.positioned(n.space)}}maybeMeasure(){if(this.manager.tooltips.length&&(this.view.inView&&this.view.requestMeasure(this.measureReq),this.inView!=this.view.inView&&(this.inView=this.view.inView,!this.inView)))for(let n of this.manager.tooltipViews)n.dom.style.top=wi}},{eventObservers:{scroll(){this.maybeMeasure()}}});function $o(n,e){let t=parseInt(n.style.left,10);(isNaN(t)||Math.abs(e-t)>1)&&(n.style.left=e+"px")}const p4=z.baseTheme({".cm-tooltip":{zIndex:500,boxSizing:"border-box"},"&light .cm-tooltip":{border:"1px solid #bbb",backgroundColor:"#f5f5f5"},"&light .cm-tooltip-section:not(:first-child)":{borderTop:"1px solid #bbb"},"&dark .cm-tooltip":{backgroundColor:"#333338",color:"white"},".cm-tooltip-arrow":{height:"7px",width:`${7*2}px`,position:"absolute",zIndex:-1,overflow:"hidden","&:before, &:after":{content:"''",position:"absolute",width:0,height:0,borderLeft:"7px solid transparent",borderRight:"7px solid transparent"},".cm-tooltip-above &":{bottom:"-7px","&:before":{borderTop:"7px solid #bbb"},"&:after":{borderTop:"7px solid #f5f5f5",bottom:"1px"}},".cm-tooltip-below &":{top:"-7px","&:before":{borderBottom:"7px solid #bbb"},"&:after":{borderBottom:"7px solid #f5f5f5",top:"1px"}}},"&dark .cm-tooltip .cm-tooltip-arrow":{"&:before":{borderTopColor:"#333338",borderBottomColor:"#333338"},"&:after":{borderTopColor:"transparent",borderBottomColor:"transparent"}}}),g4={x:0,y:0},w2=L.define({enables:[v2,p4]}),q0=L.define({combine:n=>n.reduce((e,t)=>e.concat(t),[])});class xn{static create(e){return new xn(e)}constructor(e){this.view=e,this.mounted=!1,this.dom=document.createElement("div"),this.dom.classList.add("cm-tooltip-hover"),this.manager=new ka(e,q0,(t,i)=>this.createHostedView(t,i),t=>t.dom.remove())}createHostedView(e,t){let i=e.create(this.view);return i.dom.classList.add("cm-tooltip-section"),this.dom.insertBefore(i.dom,t?t.dom.nextSibling:this.dom.firstChild),this.mounted&&i.mount&&i.mount(this.view),i}mount(e){for(let t of this.manager.tooltipViews)t.mount&&t.mount(e);this.mounted=!0}positioned(e){for(let t of this.manager.tooltipViews)t.positioned&&t.positioned(e)}update(e){this.manager.update(e)}destroy(){var e;for(let t of this.manager.tooltipViews)(e=t.destroy)===null||e===void 0||e.call(t)}passProp(e){let t;for(let i of this.manager.tooltipViews){let s=i[e];if(s!==void 0){if(t===void 0)t=s;else if(t!==s)return}}return t}get offset(){return this.passProp("offset")}get getCoords(){return this.passProp("getCoords")}get overlap(){return this.passProp("overlap")}get resize(){return this.passProp("resize")}}const m4=w2.compute([q0],n=>{let e=n.facet(q0);return e.length===0?null:{pos:Math.min(...e.map(t=>t.pos)),end:Math.max(...e.map(t=>{var i;return(i=t.end)!==null&&i!==void 0?i:t.pos})),create:xn.create,above:e[0].above,arrow:e.some(t=>t.arrow)}});class v4{constructor(e,t,i,s,o){this.view=e,this.source=t,this.field=i,this.setHover=s,this.hoverTime=o,this.hoverTimeout=-1,this.restartTimeout=-1,this.pending=null,this.lastMove={x:0,y:0,target:e.dom,time:0},this.checkHover=this.checkHover.bind(this),e.dom.addEventListener("mouseleave",this.mouseleave=this.mouseleave.bind(this)),e.dom.addEventListener("mousemove",this.mousemove=this.mousemove.bind(this))}update(){this.pending&&(this.pending=null,clearTimeout(this.restartTimeout),this.restartTimeout=setTimeout(()=>this.startHover(),20))}get active(){return this.view.state.field(this.field)}checkHover(){if(this.hoverTimeout=-1,this.active.length)return;let e=Date.now()-this.lastMove.time;e<this.hoverTime?this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime-e):this.startHover()}startHover(){clearTimeout(this.restartTimeout);let{view:e,lastMove:t}=this,i=e.docView.nearest(t.target);if(!i)return;let s,o=1;if(i instanceof bt)s=i.posAtStart;else{if(s=e.posAtCoords(t),s==null)return;let l=e.coordsAtPos(s);if(!l||t.y<l.top||t.y>l.bottom||t.x<l.left-e.defaultCharacterWidth||t.x>l.right+e.defaultCharacterWidth)return;let a=e.bidiSpans(e.state.doc.lineAt(s)).find(c=>c.from<=s&&c.to>=s),h=a&&a.dir==se.RTL?-1:1;o=t.x<l.left?-h:h}let r=this.source(e,s,o);if(r!=null&&r.then){let l=this.pending={pos:s};r.then(a=>{this.pending==l&&(this.pending=null,a&&!(Array.isArray(a)&&!a.length)&&e.dispatch({effects:this.setHover.of(Array.isArray(a)?a:[a])}))},a=>Pe(e.state,a,"hover tooltip"))}else r&&!(Array.isArray(r)&&!r.length)&&e.dispatch({effects:this.setHover.of(Array.isArray(r)?r:[r])})}get tooltip(){let e=this.view.plugin(v2),t=e?e.manager.tooltips.findIndex(i=>i.create==xn.create):-1;return t>-1?e.manager.tooltipViews[t]:null}mousemove(e){var t,i;this.lastMove={x:e.clientX,y:e.clientY,target:e.target,time:Date.now()},this.hoverTimeout<0&&(this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime));let{active:s,tooltip:o}=this;if(s.length&&o&&!w4(o.dom,e)||this.pending){let{pos:r}=s[0]||this.pending,l=(i=(t=s[0])===null||t===void 0?void 0:t.end)!==null&&i!==void 0?i:r;(r==l?this.view.posAtCoords(this.lastMove)!=r:!x4(this.view,r,l,e.clientX,e.clientY))&&(this.view.dispatch({effects:this.setHover.of([])}),this.pending=null)}}mouseleave(e){clearTimeout(this.hoverTimeout),this.hoverTimeout=-1;let{active:t}=this;if(t.length){let{tooltip:i}=this;i&&i.dom.contains(e.relatedTarget)?this.watchTooltipLeave(i.dom):this.view.dispatch({effects:this.setHover.of([])})}}watchTooltipLeave(e){let t=i=>{e.removeEventListener("mouseleave",t),this.active.length&&!this.view.dom.contains(i.relatedTarget)&&this.view.dispatch({effects:this.setHover.of([])})};e.addEventListener("mouseleave",t)}destroy(){clearTimeout(this.hoverTimeout),this.view.dom.removeEventListener("mouseleave",this.mouseleave),this.view.dom.removeEventListener("mousemove",this.mousemove)}}const p0=4;function w4(n,e){let{left:t,right:i,top:s,bottom:o}=n.getBoundingClientRect(),r;if(r=n.querySelector(".cm-tooltip-arrow")){let l=r.getBoundingClientRect();s=Math.min(l.top,s),o=Math.max(l.bottom,o)}return e.clientX>=t-p0&&e.clientX<=i+p0&&e.clientY>=s-p0&&e.clientY<=o+p0}function x4(n,e,t,i,s,o){let r=n.scrollDOM.getBoundingClientRect(),l=n.documentTop+n.documentPadding.top+n.contentHeight;if(r.left>i||r.right<i||r.top>s||Math.min(r.bottom,l)<s)return!1;let a=n.posAtCoords({x:i,y:s},!1);return a>=e&&a<=t}function b4(n,e={}){let t=G.define(),i=be.define({create(){return[]},update(s,o){if(s.length&&(e.hideOnChange&&(o.docChanged||o.selection)?s=[]:e.hideOn&&(s=s.filter(r=>!e.hideOn(o,r))),o.docChanged)){let r=[];for(let l of s){let a=o.changes.mapPos(l.pos,-1,Ce.TrackDel);if(a!=null){let h=Object.assign(Object.create(null),l);h.pos=a,h.end!=null&&(h.end=o.changes.mapPos(h.end)),r.push(h)}}s=r}for(let r of o.effects)r.is(t)&&(s=r.value),r.is(y4)&&(s=[]);return s},provide:s=>q0.from(s)});return{active:i,extension:[i,he.define(s=>new v4(s,n,i,t,e.hoverTime||300)),m4]}}function Sa(n,e){let t=n.plugin(v2);if(!t)return null;let i=t.manager.tooltips.indexOf(e);return i<0?null:t.manager.tooltipViews[i]}const y4=G.define(),Wo=L.define({combine(n){let e,t;for(let i of n)e=e||i.topContainer,t=t||i.bottomContainer;return{topContainer:e,bottomContainer:t}}});function $i(n,e){let t=n.plugin(Ca),i=t?t.specs.indexOf(e):-1;return i>-1?t.panels[i]:null}const Ca=he.fromClass(class{constructor(n){this.input=n.state.facet(Wi),this.specs=this.input.filter(t=>t),this.panels=this.specs.map(t=>t(n));let e=n.state.facet(Wo);this.top=new g0(n,!0,e.topContainer),this.bottom=new g0(n,!1,e.bottomContainer),this.top.sync(this.panels.filter(t=>t.top)),this.bottom.sync(this.panels.filter(t=>!t.top));for(let t of this.panels)t.dom.classList.add("cm-panel"),t.mount&&t.mount()}update(n){let e=n.state.facet(Wo);this.top.container!=e.topContainer&&(this.top.sync([]),this.top=new g0(n.view,!0,e.topContainer)),this.bottom.container!=e.bottomContainer&&(this.bottom.sync([]),this.bottom=new g0(n.view,!1,e.bottomContainer)),this.top.syncClasses(),this.bottom.syncClasses();let t=n.state.facet(Wi);if(t!=this.input){let i=t.filter(a=>a),s=[],o=[],r=[],l=[];for(let a of i){let h=this.specs.indexOf(a),c;h<0?(c=a(n.view),l.push(c)):(c=this.panels[h],c.update&&c.update(n)),s.push(c),(c.top?o:r).push(c)}this.specs=i,this.panels=s,this.top.sync(o),this.bottom.sync(r);for(let a of l)a.dom.classList.add("cm-panel"),a.mount&&a.mount()}else for(let i of this.panels)i.update&&i.update(n)}destroy(){this.top.sync([]),this.bottom.sync([])}},{provide:n=>z.scrollMargins.of(e=>{let t=e.plugin(n);return t&&{top:t.top.scrollMargin(),bottom:t.bottom.scrollMargin()}})});class g0{constructor(e,t,i){this.view=e,this.top=t,this.container=i,this.dom=void 0,this.classes="",this.panels=[],this.syncClasses()}sync(e){for(let t of this.panels)t.destroy&&e.indexOf(t)<0&&t.destroy();this.panels=e,this.syncDOM()}syncDOM(){if(this.panels.length==0){this.dom&&(this.dom.remove(),this.dom=void 0);return}if(!this.dom){this.dom=document.createElement("div"),this.dom.className=this.top?"cm-panels cm-panels-top":"cm-panels cm-panels-bottom",this.dom.style[this.top?"top":"bottom"]="0";let t=this.container||this.view.dom;t.insertBefore(this.dom,this.top?t.firstChild:null)}let e=this.dom.firstChild;for(let t of this.panels)if(t.dom.parentNode==this.dom){for(;e!=t.dom;)e=Fo(e);e=e.nextSibling}else this.dom.insertBefore(t.dom,e);for(;e;)e=Fo(e)}scrollMargin(){return!this.dom||this.container?0:Math.max(0,this.top?this.dom.getBoundingClientRect().bottom-Math.max(0,this.view.scrollDOM.getBoundingClientRect().top):Math.min(innerHeight,this.view.scrollDOM.getBoundingClientRect().bottom)-this.dom.getBoundingClientRect().top)}syncClasses(){if(!(!this.container||this.classes==this.view.themeClasses)){for(let e of this.classes.split(" "))e&&this.container.classList.remove(e);for(let e of(this.classes=this.view.themeClasses).split(" "))e&&this.container.classList.add(e)}}}function Fo(n){let e=n.nextSibling;return n.remove(),e}const Wi=L.define({enables:Ca});class pt extends Ht{compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}eq(e){return!1}destroy(e){}}pt.prototype.elementClass="";pt.prototype.toDOM=void 0;pt.prototype.mapMode=Ce.TrackBefore;pt.prototype.startSide=pt.prototype.endSide=-1;pt.prototype.point=!0;const V0=L.define(),k4=L.define(),S4={class:"",renderEmptyElements:!1,elementStyle:"",markers:()=>U.empty,lineMarker:()=>null,widgetMarker:()=>null,lineMarkerChange:null,initialSpacer:null,updateSpacer:null,domEventHandlers:{},side:"before"},Ai=L.define();function C4(n){return[_a(),Ai.of({...S4,...n})]}const Go=L.define({combine:n=>n.some(e=>e)});function _a(n){return[_4]}const _4=he.fromClass(class{constructor(n){this.view=n,this.domAfter=null,this.prevViewport=n.viewport,this.dom=document.createElement("div"),this.dom.className="cm-gutters cm-gutters-before",this.dom.setAttribute("aria-hidden","true"),this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px",this.gutters=n.state.facet(Ai).map(e=>new qo(n,e)),this.fixed=!n.state.facet(Go);for(let e of this.gutters)e.config.side=="after"?this.getDOMAfter().appendChild(e.dom):this.dom.appendChild(e.dom);this.fixed&&(this.dom.style.position="sticky"),this.syncGutters(!1),n.scrollDOM.insertBefore(this.dom,n.contentDOM)}getDOMAfter(){return this.domAfter||(this.domAfter=document.createElement("div"),this.domAfter.className="cm-gutters cm-gutters-after",this.domAfter.setAttribute("aria-hidden","true"),this.domAfter.style.minHeight=this.view.contentHeight/this.view.scaleY+"px",this.domAfter.style.position=this.fixed?"sticky":"",this.view.scrollDOM.appendChild(this.domAfter)),this.domAfter}update(n){if(this.updateGutters(n)){let e=this.prevViewport,t=n.view.viewport,i=Math.min(e.to,t.to)-Math.max(e.from,t.from);this.syncGutters(i<(t.to-t.from)*.8)}if(n.geometryChanged){let e=this.view.contentHeight/this.view.scaleY+"px";this.dom.style.minHeight=e,this.domAfter&&(this.domAfter.style.minHeight=e)}this.view.state.facet(Go)!=!this.fixed&&(this.fixed=!this.fixed,this.dom.style.position=this.fixed?"sticky":"",this.domAfter&&(this.domAfter.style.position=this.fixed?"sticky":"")),this.prevViewport=n.view.viewport}syncGutters(n){let e=this.dom.nextSibling;n&&(this.dom.remove(),this.domAfter&&this.domAfter.remove());let t=U.iter(this.view.state.facet(V0),this.view.viewport.from),i=[],s=this.gutters.map(o=>new O4(o,this.view.viewport,-this.view.documentPadding.top));for(let o of this.view.viewportLineBlocks)if(i.length&&(i=[]),Array.isArray(o.type)){let r=!0;for(let l of o.type)if(l.type==_e.Text&&r){Hs(t,i,l.from);for(let a of s)a.line(this.view,l,i);r=!1}else if(l.widget)for(let a of s)a.widget(this.view,l)}else if(o.type==_e.Text){Hs(t,i,o.from);for(let r of s)r.line(this.view,o,i)}else if(o.widget)for(let r of s)r.widget(this.view,o);for(let o of s)o.finish();n&&(this.view.scrollDOM.insertBefore(this.dom,e),this.domAfter&&this.view.scrollDOM.appendChild(this.domAfter))}updateGutters(n){let e=n.startState.facet(Ai),t=n.state.facet(Ai),i=n.docChanged||n.heightChanged||n.viewportChanged||!U.eq(n.startState.facet(V0),n.state.facet(V0),n.view.viewport.from,n.view.viewport.to);if(e==t)for(let s of this.gutters)s.update(n)&&(i=!0);else{i=!0;let s=[];for(let o of t){let r=e.indexOf(o);r<0?s.push(new qo(this.view,o)):(this.gutters[r].update(n),s.push(this.gutters[r]))}for(let o of this.gutters)o.dom.remove(),s.indexOf(o)<0&&o.destroy();for(let o of s)o.config.side=="after"?this.getDOMAfter().appendChild(o.dom):this.dom.appendChild(o.dom);this.gutters=s}return i}destroy(){for(let n of this.gutters)n.destroy();this.dom.remove(),this.domAfter&&this.domAfter.remove()}},{provide:n=>z.scrollMargins.of(e=>{let t=e.plugin(n);if(!t||t.gutters.length==0||!t.fixed)return null;let i=t.dom.offsetWidth*e.scaleX,s=t.domAfter?t.domAfter.offsetWidth*e.scaleX:0;return e.textDirection==se.LTR?{left:i,right:s}:{right:i,left:s}})});function jo(n){return Array.isArray(n)?n:[n]}function Hs(n,e,t){for(;n.value&&n.from<=t;)n.from==t&&e.push(n.value),n.next()}class O4{constructor(e,t,i){this.gutter=e,this.height=i,this.i=0,this.cursor=U.iter(e.markers,t.from)}addElement(e,t,i){let{gutter:s}=this,o=(t.top-this.height)/e.scaleY,r=t.height/e.scaleY;if(this.i==s.elements.length){let l=new Oa(e,r,o,i);s.elements.push(l),s.dom.appendChild(l.dom)}else s.elements[this.i].update(e,r,o,i);this.height=t.bottom,this.i++}line(e,t,i){let s=[];Hs(this.cursor,s,t.from),i.length&&(s=s.concat(i));let o=this.gutter.config.lineMarker(e,t,s);o&&s.unshift(o);let r=this.gutter;s.length==0&&!r.config.renderEmptyElements||this.addElement(e,t,s)}widget(e,t){let i=this.gutter.config.widgetMarker(e,t.widget,t),s=i?[i]:null;for(let o of e.state.facet(k4)){let r=o(e,t.widget,t);r&&(s||(s=[])).push(r)}s&&this.addElement(e,t,s)}finish(){let e=this.gutter;for(;e.elements.length>this.i;){let t=e.elements.pop();e.dom.removeChild(t.dom),t.destroy()}}}class qo{constructor(e,t){this.view=e,this.config=t,this.elements=[],this.spacer=null,this.dom=document.createElement("div"),this.dom.className="cm-gutter"+(this.config.class?" "+this.config.class:"");for(let i in t.domEventHandlers)this.dom.addEventListener(i,s=>{let o=s.target,r;if(o!=this.dom&&this.dom.contains(o)){for(;o.parentNode!=this.dom;)o=o.parentNode;let a=o.getBoundingClientRect();r=(a.top+a.bottom)/2}else r=s.clientY;let l=e.lineBlockAtHeight(r-e.documentTop);t.domEventHandlers[i](e,l,s)&&s.preventDefault()});this.markers=jo(t.markers(e)),t.initialSpacer&&(this.spacer=new Oa(e,0,0,[t.initialSpacer(e)]),this.dom.appendChild(this.spacer.dom),this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none")}update(e){let t=this.markers;if(this.markers=jo(this.config.markers(e.view)),this.spacer&&this.config.updateSpacer){let s=this.config.updateSpacer(this.spacer.markers[0],e);s!=this.spacer.markers[0]&&this.spacer.update(e.view,0,0,[s])}let i=e.view.viewport;return!U.eq(this.markers,t,i.from,i.to)||(this.config.lineMarkerChange?this.config.lineMarkerChange(e):!1)}destroy(){for(let e of this.elements)e.destroy()}}class Oa{constructor(e,t,i,s){this.height=-1,this.above=0,this.markers=[],this.dom=document.createElement("div"),this.dom.className="cm-gutterElement",this.update(e,t,i,s)}update(e,t,i,s){this.height!=t&&(this.height=t,this.dom.style.height=t+"px"),this.above!=i&&(this.dom.style.marginTop=(this.above=i)?i+"px":""),M4(this.markers,s)||this.setMarkers(e,s)}setMarkers(e,t){let i="cm-gutterElement",s=this.dom.firstChild;for(let o=0,r=0;;){let l=r,a=o<t.length?t[o++]:null,h=!1;if(a){let c=a.elementClass;c&&(i+=" "+c);for(let f=r;f<this.markers.length;f++)if(this.markers[f].compare(a)){l=f,h=!0;break}}else l=this.markers.length;for(;r<l;){let c=this.markers[r++];if(c.toDOM){c.destroy(s);let f=s.nextSibling;s.remove(),s=f}}if(!a)break;a.toDOM&&(h?s=s.nextSibling:this.dom.insertBefore(a.toDOM(e),s)),h&&r++}this.dom.className=i,this.markers=t}destroy(){this.setMarkers(null,[])}}function M4(n,e){if(n.length!=e.length)return!1;for(let t=0;t<n.length;t++)if(!n[t].compare(e[t]))return!1;return!0}const D4=L.define(),T4=L.define(),Xt=L.define({combine(n){return lt(n,{formatNumber:String,domEventHandlers:{}},{domEventHandlers(e,t){let i=Object.assign({},e);for(let s in t){let o=i[s],r=t[s];i[s]=o?(l,a,h)=>o(l,a,h)||r(l,a,h):r}return i}})}});class Hn extends pt{constructor(e){super(),this.number=e}eq(e){return this.number==e.number}toDOM(){return document.createTextNode(this.number)}}function $n(n,e){return n.state.facet(Xt).formatNumber(e,n.state)}const A4=Ai.compute([Xt],n=>({class:"cm-lineNumbers",renderEmptyElements:!1,markers(e){return e.state.facet(D4)},lineMarker(e,t,i){return i.some(s=>s.toDOM)?null:new Hn($n(e,e.state.doc.lineAt(t.from).number))},widgetMarker:(e,t,i)=>{for(let s of e.state.facet(T4)){let o=s(e,t,i);if(o)return o}return null},lineMarkerChange:e=>e.startState.facet(Xt)!=e.state.facet(Xt),initialSpacer(e){return new Hn($n(e,Uo(e.state.doc.lines)))},updateSpacer(e,t){let i=$n(t.view,Uo(t.view.state.doc.lines));return i==e.number?e:new Hn(i)},domEventHandlers:n.facet(Xt).domEventHandlers,side:"before"}));function B4(n={}){return[Xt.of(n),_a(),A4]}function Uo(n){let e=9;for(;e<n;)e=e*10+9;return e}const P4=new class extends pt{constructor(){super(...arguments),this.elementClass="cm-activeLineGutter"}},E4=V0.compute(["selection"],n=>{let e=[],t=-1;for(let i of n.selection.ranges){let s=n.doc.lineAt(i.head).from;s>t&&(t=s,e.push(P4.range(s)))}return U.of(e)});function V4(){return E4}const Ma=1024;let z4=0;class Wn{constructor(e,t){this.from=e,this.to=t}}class j{constructor(e={}){this.id=z4++,this.perNode=!!e.perNode,this.deserialize=e.deserialize||(()=>{throw new Error("This node type doesn't define a deserialize function")})}add(e){if(this.perNode)throw new RangeError("Can't add per-node props to node types");return typeof e!="function"&&(e=Ve.match(e)),t=>{let i=e(t);return i===void 0?null:[this,i]}}}j.closedBy=new j({deserialize:n=>n.split(" ")});j.openedBy=new j({deserialize:n=>n.split(" ")});j.group=new j({deserialize:n=>n.split(" ")});j.isolate=new j({deserialize:n=>{if(n&&n!="rtl"&&n!="ltr"&&n!="auto")throw new RangeError("Invalid value for isolate: "+n);return n||"auto"}});j.contextHash=new j({perNode:!0});j.lookAhead=new j({perNode:!0});j.mounted=new j({perNode:!0});class U0{constructor(e,t,i){this.tree=e,this.overlay=t,this.parser=i}static get(e){return e&&e.props&&e.props[j.mounted.id]}}const L4=Object.create(null);class Ve{constructor(e,t,i,s=0){this.name=e,this.props=t,this.id=i,this.flags=s}static define(e){let t=e.props&&e.props.length?Object.create(null):L4,i=(e.top?1:0)|(e.skipped?2:0)|(e.error?4:0)|(e.name==null?8:0),s=new Ve(e.name||"",t,e.id,i);if(e.props){for(let o of e.props)if(Array.isArray(o)||(o=o(s)),o){if(o[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");t[o[0].id]=o[1]}}return s}prop(e){return this.props[e.id]}get isTop(){return(this.flags&1)>0}get isSkipped(){return(this.flags&2)>0}get isError(){return(this.flags&4)>0}get isAnonymous(){return(this.flags&8)>0}is(e){if(typeof e=="string"){if(this.name==e)return!0;let t=this.prop(j.group);return t?t.indexOf(e)>-1:!1}return this.id==e}static match(e){let t=Object.create(null);for(let i in e)for(let s of i.split(" "))t[s]=e[i];return i=>{for(let s=i.prop(j.group),o=-1;o<(s?s.length:0);o++){let r=t[o<0?i.name:s[o]];if(r)return r}}}}Ve.none=new Ve("",Object.create(null),0,8);class x2{constructor(e){this.types=e;for(let t=0;t<e.length;t++)if(e[t].id!=t)throw new RangeError("Node type ids should correspond to array positions when creating a node set")}extend(...e){let t=[];for(let i of this.types){let s=null;for(let o of e){let r=o(i);r&&(s||(s=Object.assign({},i.props)),s[r[0].id]=r[1])}t.push(s?new Ve(i.name,s,i.id,i.flags):i)}return new x2(t)}}const m0=new WeakMap,Yo=new WeakMap;var pe;(function(n){n[n.ExcludeBuffers=1]="ExcludeBuffers",n[n.IncludeAnonymous=2]="IncludeAnonymous",n[n.IgnoreMounts=4]="IgnoreMounts",n[n.IgnoreOverlays=8]="IgnoreOverlays"})(pe||(pe={}));class ce{constructor(e,t,i,s,o){if(this.type=e,this.children=t,this.positions=i,this.length=s,this.props=null,o&&o.length){this.props=Object.create(null);for(let[r,l]of o)this.props[typeof r=="number"?r:r.id]=l}}toString(){let e=U0.get(this);if(e&&!e.overlay)return e.tree.toString();let t="";for(let i of this.children){let s=i.toString();s&&(t&&(t+=","),t+=s)}return this.type.name?(/\W/.test(this.type.name)&&!this.type.isError?JSON.stringify(this.type.name):this.type.name)+(t.length?"("+t+")":""):t}cursor(e=0){return new Ws(this.topNode,e)}cursorAt(e,t=0,i=0){let s=m0.get(this)||this.topNode,o=new Ws(s);return o.moveTo(e,t),m0.set(this,o._tree),o}get topNode(){return new Fe(this,0,0,null)}resolve(e,t=0){let i=Fi(m0.get(this)||this.topNode,e,t,!1);return m0.set(this,i),i}resolveInner(e,t=0){let i=Fi(Yo.get(this)||this.topNode,e,t,!0);return Yo.set(this,i),i}resolveStack(e,t=0){return I4(this,e,t)}iterate(e){let{enter:t,leave:i,from:s=0,to:o=this.length}=e,r=e.mode||0,l=(r&pe.IncludeAnonymous)>0;for(let a=this.cursor(r|pe.IncludeAnonymous);;){let h=!1;if(a.from<=o&&a.to>=s&&(!l&&a.type.isAnonymous||t(a)!==!1)){if(a.firstChild())continue;h=!0}for(;h&&i&&(l||!a.type.isAnonymous)&&i(a),!a.nextSibling();){if(!a.parent())return;h=!0}}}prop(e){return e.perNode?this.props?this.props[e.id]:void 0:this.type.prop(e)}get propValues(){let e=[];if(this.props)for(let t in this.props)e.push([+t,this.props[t]]);return e}balance(e={}){return this.children.length<=8?this:k2(Ve.none,this.children,this.positions,0,this.children.length,0,this.length,(t,i,s)=>new ce(this.type,t,i,s,this.propValues),e.makeTree||((t,i,s)=>new ce(Ve.none,t,i,s)))}static build(e){return H4(e)}}ce.empty=new ce(Ve.none,[],[],0);class b2{constructor(e,t){this.buffer=e,this.index=t}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new b2(this.buffer,this.index)}}class Dt{constructor(e,t,i){this.buffer=e,this.length=t,this.set=i}get type(){return Ve.none}toString(){let e=[];for(let t=0;t<this.buffer.length;)e.push(this.childString(t)),t=this.buffer[t+3];return e.join(",")}childString(e){let t=this.buffer[e],i=this.buffer[e+3],s=this.set.types[t],o=s.name;if(/\W/.test(o)&&!s.isError&&(o=JSON.stringify(o)),e+=4,i==e)return o;let r=[];for(;e<i;)r.push(this.childString(e)),e=this.buffer[e+3];return o+"("+r.join(",")+")"}findChild(e,t,i,s,o){let{buffer:r}=this,l=-1;for(let a=e;a!=t&&!(Da(o,s,r[a+1],r[a+2])&&(l=a,i>0));a=r[a+3]);return l}slice(e,t,i){let s=this.buffer,o=new Uint16Array(t-e),r=0;for(let l=e,a=0;l<t;){o[a++]=s[l++],o[a++]=s[l++]-i;let h=o[a++]=s[l++]-i;o[a++]=s[l++]-e,r=Math.max(r,h)}return new Dt(o,r,this.set)}}function Da(n,e,t,i){switch(n){case-2:return t<e;case-1:return i>=e&&t<e;case 0:return t<e&&i>e;case 1:return t<=e&&i>e;case 2:return i>e;case 4:return!0}}function Fi(n,e,t,i){for(var s;n.from==n.to||(t<1?n.from>=e:n.from>e)||(t>-1?n.to<=e:n.to<e);){let r=!i&&n instanceof Fe&&n.index<0?null:n.parent;if(!r)return n;n=r}let o=i?0:pe.IgnoreOverlays;if(i)for(let r=n,l=r.parent;l;r=l,l=r.parent)r instanceof Fe&&r.index<0&&((s=l.enter(e,t,o))===null||s===void 0?void 0:s.from)!=r.from&&(n=l);for(;;){let r=n.enter(e,t,o);if(!r)return n;n=r}}class Ta{cursor(e=0){return new Ws(this,e)}getChild(e,t=null,i=null){let s=Ko(this,e,t,i);return s.length?s[0]:null}getChildren(e,t=null,i=null){return Ko(this,e,t,i)}resolve(e,t=0){return Fi(this,e,t,!1)}resolveInner(e,t=0){return Fi(this,e,t,!0)}matchContext(e){return $s(this.parent,e)}enterUnfinishedNodesBefore(e){let t=this.childBefore(e),i=this;for(;t;){let s=t.lastChild;if(!s||s.to!=t.to)break;s.type.isError&&s.from==s.to?(i=t,t=s.prevSibling):t=s}return i}get node(){return this}get next(){return this.parent}}class Fe extends Ta{constructor(e,t,i,s){super(),this._tree=e,this.from=t,this.index=i,this._parent=s}get type(){return this._tree.type}get name(){return this._tree.type.name}get to(){return this.from+this._tree.length}nextChild(e,t,i,s,o=0){for(let r=this;;){for(let{children:l,positions:a}=r._tree,h=t>0?l.length:-1;e!=h;e+=t){let c=l[e],f=a[e]+r.from;if(Da(s,i,f,f+c.length)){if(c instanceof Dt){if(o&pe.ExcludeBuffers)continue;let d=c.findChild(0,c.buffer.length,t,i-f,s);if(d>-1)return new kt(new N4(r,c,e,f),null,d)}else if(o&pe.IncludeAnonymous||!c.type.isAnonymous||y2(c)){let d;if(!(o&pe.IgnoreMounts)&&(d=U0.get(c))&&!d.overlay)return new Fe(d.tree,f,e,r);let p=new Fe(c,f,e,r);return o&pe.IncludeAnonymous||!p.type.isAnonymous?p:p.nextChild(t<0?c.children.length-1:0,t,i,s)}}}if(o&pe.IncludeAnonymous||!r.type.isAnonymous||(r.index>=0?e=r.index+t:e=t<0?-1:r._parent._tree.children.length,r=r._parent,!r))return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(e){return this.nextChild(0,1,e,2)}childBefore(e){return this.nextChild(this._tree.children.length-1,-1,e,-2)}enter(e,t,i=0){let s;if(!(i&pe.IgnoreOverlays)&&(s=U0.get(this._tree))&&s.overlay){let o=e-this.from;for(let{from:r,to:l}of s.overlay)if((t>0?r<=o:r<o)&&(t<0?l>=o:l>o))return new Fe(s.tree,s.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,e,t,i)}nextSignificantParent(){let e=this;for(;e.type.isAnonymous&&e._parent;)e=e._parent;return e}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}get tree(){return this._tree}toTree(){return this._tree}toString(){return this._tree.toString()}}function Ko(n,e,t,i){let s=n.cursor(),o=[];if(!s.firstChild())return o;if(t!=null){for(let r=!1;!r;)if(r=s.type.is(t),!s.nextSibling())return o}for(;;){if(i!=null&&s.type.is(i))return o;if(s.type.is(e)&&o.push(s.node),!s.nextSibling())return i==null?o:[]}}function $s(n,e,t=e.length-1){for(let i=n;t>=0;i=i.parent){if(!i)return!1;if(!i.type.isAnonymous){if(e[t]&&e[t]!=i.name)return!1;t--}}return!0}class N4{constructor(e,t,i,s){this.parent=e,this.buffer=t,this.index=i,this.start=s}}class kt extends Ta{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(e,t,i){super(),this.context=e,this._parent=t,this.index=i,this.type=e.buffer.set.types[e.buffer.buffer[i]]}child(e,t,i){let{buffer:s}=this.context,o=s.findChild(this.index+4,s.buffer[this.index+3],e,t-this.context.start,i);return o<0?null:new kt(this.context,this,o)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(e){return this.child(1,e,2)}childBefore(e){return this.child(-1,e,-2)}enter(e,t,i=0){if(i&pe.ExcludeBuffers)return null;let{buffer:s}=this.context,o=s.findChild(this.index+4,s.buffer[this.index+3],t>0?1:-1,e-this.context.start,t);return o<0?null:new kt(this.context,this,o)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(e){return this._parent?null:this.context.parent.nextChild(this.context.index+e,e,0,4)}get nextSibling(){let{buffer:e}=this.context,t=e.buffer[this.index+3];return t<(this._parent?e.buffer[this._parent.index+3]:e.buffer.length)?new kt(this.context,this._parent,t):this.externalSibling(1)}get prevSibling(){let{buffer:e}=this.context,t=this._parent?this._parent.index+4:0;return this.index==t?this.externalSibling(-1):new kt(this.context,this._parent,e.findChild(t,this.index,-1,0,4))}get tree(){return null}toTree(){let e=[],t=[],{buffer:i}=this.context,s=this.index+4,o=i.buffer[this.index+3];if(o>s){let r=i.buffer[this.index+1];e.push(i.slice(s,o,r)),t.push(0)}return new ce(this.type,e,t,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}}function Aa(n){if(!n.length)return null;let e=0,t=n[0];for(let o=1;o<n.length;o++){let r=n[o];(r.from>t.from||r.to<t.to)&&(t=r,e=o)}let i=t instanceof Fe&&t.index<0?null:t.parent,s=n.slice();return i?s[e]=i:s.splice(e,1),new R4(s,t)}class R4{constructor(e,t){this.heads=e,this.node=t}get next(){return Aa(this.heads)}}function I4(n,e,t){let i=n.resolveInner(e,t),s=null;for(let o=i instanceof Fe?i:i.context.parent;o;o=o.parent)if(o.index<0){let r=o.parent;(s||(s=[i])).push(r.resolve(e,t)),o=r}else{let r=U0.get(o.tree);if(r&&r.overlay&&r.overlay[0].from<=e&&r.overlay[r.overlay.length-1].to>=e){let l=new Fe(r.tree,r.overlay[0].from+o.from,-1,o);(s||(s=[i])).push(Fi(l,e,t,!1))}}return s?Aa(s):i}class Ws{get name(){return this.type.name}constructor(e,t=0){if(this.mode=t,this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,e instanceof Fe)this.yieldNode(e);else{this._tree=e.context.parent,this.buffer=e.context;for(let i=e._parent;i;i=i._parent)this.stack.unshift(i.index);this.bufferNode=e,this.yieldBuf(e.index)}}yieldNode(e){return e?(this._tree=e,this.type=e.type,this.from=e.from,this.to=e.to,!0):!1}yieldBuf(e,t){this.index=e;let{start:i,buffer:s}=this.buffer;return this.type=t||s.set.types[s.buffer[e]],this.from=i+s.buffer[e+1],this.to=i+s.buffer[e+2],!0}yield(e){return e?e instanceof Fe?(this.buffer=null,this.yieldNode(e)):(this.buffer=e.context,this.yieldBuf(e.index,e.type)):!1}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(e,t,i){if(!this.buffer)return this.yield(this._tree.nextChild(e<0?this._tree._tree.children.length-1:0,e,t,i,this.mode));let{buffer:s}=this.buffer,o=s.findChild(this.index+4,s.buffer[this.index+3],e,t-this.buffer.start,i);return o<0?!1:(this.stack.push(this.index),this.yieldBuf(o))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(e){return this.enterChild(1,e,2)}childBefore(e){return this.enterChild(-1,e,-2)}enter(e,t,i=this.mode){return this.buffer?i&pe.ExcludeBuffers?!1:this.enterChild(1,e,t):this.yield(this._tree.enter(e,t,i))}parent(){if(!this.buffer)return this.yieldNode(this.mode&pe.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let e=this.mode&pe.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(e)}sibling(e){if(!this.buffer)return this._tree._parent?this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+e,e,0,4,this.mode)):!1;let{buffer:t}=this.buffer,i=this.stack.length-1;if(e<0){let s=i<0?0:this.stack[i]+4;if(this.index!=s)return this.yieldBuf(t.findChild(s,this.index,-1,0,4))}else{let s=t.buffer[this.index+3];if(s<(i<0?t.buffer.length:t.buffer[this.stack[i]+3]))return this.yieldBuf(s)}return i<0?this.yield(this.buffer.parent.nextChild(this.buffer.index+e,e,0,4,this.mode)):!1}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(e){let t,i,{buffer:s}=this;if(s){if(e>0){if(this.index<s.buffer.buffer.length)return!1}else for(let o=0;o<this.index;o++)if(s.buffer.buffer[o+3]<this.index)return!1;({index:t,parent:i}=s)}else({index:t,_parent:i}=this._tree);for(;i;{index:t,_parent:i}=i)if(t>-1)for(let o=t+e,r=e<0?-1:i._tree.children.length;o!=r;o+=e){let l=i._tree.children[o];if(this.mode&pe.IncludeAnonymous||l instanceof Dt||!l.type.isAnonymous||y2(l))return!1}return!0}move(e,t){if(t&&this.enterChild(e,0,4))return!0;for(;;){if(this.sibling(e))return!0;if(this.atLastNode(e)||!this.parent())return!1}}next(e=!0){return this.move(1,e)}prev(e=!0){return this.move(-1,e)}moveTo(e,t=0){for(;(this.from==this.to||(t<1?this.from>=e:this.from>e)||(t>-1?this.to<=e:this.to<e))&&this.parent(););for(;this.enterChild(1,e,t););return this}get node(){if(!this.buffer)return this._tree;let e=this.bufferNode,t=null,i=0;if(e&&e.context==this.buffer)e:for(let s=this.index,o=this.stack.length;o>=0;){for(let r=e;r;r=r._parent)if(r.index==s){if(s==this.index)return r;t=r,i=o+1;break e}s=this.stack[--o]}for(let s=i;s<this.stack.length;s++)t=new kt(this.buffer,t,this.stack[s]);return this.bufferNode=new kt(this.buffer,t,this.index)}get tree(){return this.buffer?null:this._tree._tree}iterate(e,t){for(let i=0;;){let s=!1;if(this.type.isAnonymous||e(this)!==!1){if(this.firstChild()){i++;continue}this.type.isAnonymous||(s=!0)}for(;;){if(s&&t&&t(this),s=this.type.isAnonymous,!i)return;if(this.nextSibling())break;this.parent(),i--,s=!0}}}matchContext(e){if(!this.buffer)return $s(this.node.parent,e);let{buffer:t}=this.buffer,{types:i}=t.set;for(let s=e.length-1,o=this.stack.length-1;s>=0;o--){if(o<0)return $s(this._tree,e,s);let r=i[t.buffer[this.stack[o]]];if(!r.isAnonymous){if(e[s]&&e[s]!=r.name)return!1;s--}}return!0}}function y2(n){return n.children.some(e=>e instanceof Dt||!e.type.isAnonymous||y2(e))}function H4(n){var e;let{buffer:t,nodeSet:i,maxBufferLength:s=Ma,reused:o=[],minRepeatType:r=i.types.length}=n,l=Array.isArray(t)?new b2(t,t.length):t,a=i.types,h=0,c=0;function f(y,_,C,T,P,x){let{id:H,start:N,end:M,size:B}=l,E=c,$=h;for(;B<0;)if(l.next(),B==-1){let I=o[H];C.push(I),T.push(N-y);return}else if(B==-3){h=H;return}else if(B==-4){c=H;return}else throw new RangeError(`Unrecognized record size: ${B}`);let F=a[H],R,Q,X=N-y;if(M-N<=s&&(Q=v(l.pos-_,P))){let I=new Uint16Array(Q.size-Q.skip),K=l.pos-Q.size,re=I.length;for(;l.pos>K;)re=w(Q.start,I,re);R=new Dt(I,M-Q.start,i),X=Q.start-y}else{let I=l.pos-B;l.next();let K=[],re=[],ie=H>=r?H:-1,Me=0,Pt=M;for(;l.pos>I;)ie>=0&&l.id==ie&&l.size>=0?(l.end<=Pt-s&&(g(K,re,N,Me,l.end,Pt,ie,E,$),Me=K.length,Pt=l.end),l.next()):x>2500?d(N,I,K,re):f(N,I,K,re,ie,x+1);if(ie>=0&&Me>0&&Me<K.length&&g(K,re,N,Me,N,Pt,ie,E,$),K.reverse(),re.reverse(),ie>-1&&Me>0){let gi=p(F,$);R=k2(F,K,re,0,K.length,0,M-N,gi,gi)}else R=m(F,K,re,M-N,E-M,$)}C.push(R),T.push(X)}function d(y,_,C,T){let P=[],x=0,H=-1;for(;l.pos>_;){let{id:N,start:M,end:B,size:E}=l;if(E>4)l.next();else{if(H>-1&&M<H)break;H<0&&(H=B-s),P.push(N,M,B),x++,l.next()}}if(x){let N=new Uint16Array(x*4),M=P[P.length-2];for(let B=P.length-3,E=0;B>=0;B-=3)N[E++]=P[B],N[E++]=P[B+1]-M,N[E++]=P[B+2]-M,N[E++]=E;C.push(new Dt(N,P[2]-M,i)),T.push(M-y)}}function p(y,_){return(C,T,P)=>{let x=0,H=C.length-1,N,M;if(H>=0&&(N=C[H])instanceof ce){if(!H&&N.type==y&&N.length==P)return N;(M=N.prop(j.lookAhead))&&(x=T[H]+N.length+M)}return m(y,C,T,P,x,_)}}function g(y,_,C,T,P,x,H,N,M){let B=[],E=[];for(;y.length>T;)B.push(y.pop()),E.push(_.pop()+C-P);y.push(m(i.types[H],B,E,x-P,N-x,M)),_.push(P-C)}function m(y,_,C,T,P,x,H){if(x){let N=[j.contextHash,x];H=H?[N].concat(H):[N]}if(P>25){let N=[j.lookAhead,P];H=H?[N].concat(H):[N]}return new ce(y,_,C,T,H)}function v(y,_){let C=l.fork(),T=0,P=0,x=0,H=C.end-s,N={size:0,start:0,skip:0};e:for(let M=C.pos-y;C.pos>M;){let B=C.size;if(C.id==_&&B>=0){N.size=T,N.start=P,N.skip=x,x+=4,T+=4,C.next();continue}let E=C.pos-B;if(B<0||E<M||C.start<H)break;let $=C.id>=r?4:0,F=C.start;for(C.next();C.pos>E;){if(C.size<0)if(C.size==-3)$+=4;else break e;else C.id>=r&&($+=4);C.next()}P=F,T+=B,x+=$}return(_<0||T==y)&&(N.size=T,N.start=P,N.skip=x),N.size>4?N:void 0}function w(y,_,C){let{id:T,start:P,end:x,size:H}=l;if(l.next(),H>=0&&T<r){let N=C;if(H>4){let M=l.pos-(H-4);for(;l.pos>M;)C=w(y,_,C)}_[--C]=N,_[--C]=x-y,_[--C]=P-y,_[--C]=T}else H==-3?h=T:H==-4&&(c=T);return C}let b=[],S=[];for(;l.pos>0;)f(n.start||0,n.bufferStart||0,b,S,-1,0);let k=(e=n.length)!==null&&e!==void 0?e:b.length?S[0]+b[0].length:0;return new ce(a[n.topID],b.reverse(),S.reverse(),k)}const Xo=new WeakMap;function z0(n,e){if(!n.isAnonymous||e instanceof Dt||e.type!=n)return 1;let t=Xo.get(e);if(t==null){t=1;for(let i of e.children){if(i.type!=n||!(i instanceof ce)){t=1;break}t+=z0(n,i)}Xo.set(e,t)}return t}function k2(n,e,t,i,s,o,r,l,a){let h=0;for(let g=i;g<s;g++)h+=z0(n,e[g]);let c=Math.ceil(h*1.5/8),f=[],d=[];function p(g,m,v,w,b){for(let S=v;S<w;){let k=S,y=m[S],_=z0(n,g[S]);for(S++;S<w;S++){let C=z0(n,g[S]);if(_+C>=c)break;_+=C}if(S==k+1){if(_>c){let C=g[k];p(C.children,C.positions,0,C.children.length,m[k]+b);continue}f.push(g[k])}else{let C=m[S-1]+g[S-1].length-y;f.push(k2(n,g,m,k,S,y,C,null,a))}d.push(y+b-o)}}return p(e,t,i,s,0),(l||a)(f,d,r)}class Rt{constructor(e,t,i,s,o=!1,r=!1){this.from=e,this.to=t,this.tree=i,this.offset=s,this.open=(o?1:0)|(r?2:0)}get openStart(){return(this.open&1)>0}get openEnd(){return(this.open&2)>0}static addTree(e,t=[],i=!1){let s=[new Rt(0,e.length,e,0,!1,i)];for(let o of t)o.to>e.length&&s.push(o);return s}static applyChanges(e,t,i=128){if(!t.length)return e;let s=[],o=1,r=e.length?e[0]:null;for(let l=0,a=0,h=0;;l++){let c=l<t.length?t[l]:null,f=c?c.fromA:1e9;if(f-a>=i)for(;r&&r.from<f;){let d=r;if(a>=d.from||f<=d.to||h){let p=Math.max(d.from,a)-h,g=Math.min(d.to,f)-h;d=p>=g?null:new Rt(p,g,d.tree,d.offset+h,l>0,!!c)}if(d&&s.push(d),r.to>f)break;r=o<e.length?e[o++]:null}if(!c)break;a=c.toA,h=c.toA-c.toB}return s}}class Ba{startParse(e,t,i){return typeof e=="string"&&(e=new $4(e)),i=i?i.length?i.map(s=>new Wn(s.from,s.to)):[new Wn(0,0)]:[new Wn(0,e.length)],this.createParse(e,t||[],i)}parse(e,t,i){let s=this.startParse(e,t,i);for(;;){let o=s.advance();if(o)return o}}}class $4{constructor(e){this.string=e}get length(){return this.string.length}chunk(e){return this.string.slice(e)}get lineChunks(){return!1}read(e,t){return this.string.slice(e,t)}}new j({perNode:!0});let W4=0;class Ie{constructor(e,t,i,s){this.name=e,this.set=t,this.base=i,this.modified=s,this.id=W4++}toString(){let{name:e}=this;for(let t of this.modified)t.name&&(e=`${t.name}(${e})`);return e}static define(e,t){let i=typeof e=="string"?e:"?";if(e instanceof Ie&&(t=e),t!=null&&t.base)throw new Error("Can not derive from a modified tag");let s=new Ie(i,[],null,[]);if(s.set.push(s),t)for(let o of t.set)s.set.push(o);return s}static defineModifier(e){let t=new Y0(e);return i=>i.modified.indexOf(t)>-1?i:Y0.get(i.base||i,i.modified.concat(t).sort((s,o)=>s.id-o.id))}}let F4=0;class Y0{constructor(e){this.name=e,this.instances=[],this.id=F4++}static get(e,t){if(!t.length)return e;let i=t[0].instances.find(l=>l.base==e&&G4(t,l.modified));if(i)return i;let s=[],o=new Ie(e.name,s,e,t);for(let l of t)l.instances.push(o);let r=j4(t);for(let l of e.set)if(!l.modified.length)for(let a of r)s.push(Y0.get(l,a));return o}}function G4(n,e){return n.length==e.length&&n.every((t,i)=>t==e[i])}function j4(n){let e=[[]];for(let t=0;t<n.length;t++)for(let i=0,s=e.length;i<s;i++)e.push(e[i].concat(n[t]));return e.sort((t,i)=>i.length-t.length)}function Pa(n){let e=Object.create(null);for(let t in n){let i=n[t];Array.isArray(i)||(i=[i]);for(let s of t.split(" "))if(s){let o=[],r=2,l=s;for(let f=0;;){if(l=="..."&&f>0&&f+3==s.length){r=1;break}let d=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(l);if(!d)throw new RangeError("Invalid path: "+s);if(o.push(d[0]=="*"?"":d[0][0]=='"'?JSON.parse(d[0]):d[0]),f+=d[0].length,f==s.length)break;let p=s[f++];if(f==s.length&&p=="!"){r=0;break}if(p!="/")throw new RangeError("Invalid path: "+s);l=s.slice(f)}let a=o.length-1,h=o[a];if(!h)throw new RangeError("Invalid path: "+s);let c=new K0(i,r,a>0?o.slice(0,a):null);e[h]=c.sort(e[h])}}return Ea.add(e)}const Ea=new j;class K0{constructor(e,t,i,s){this.tags=e,this.mode=t,this.context=i,this.next=s}get opaque(){return this.mode==0}get inherit(){return this.mode==1}sort(e){return!e||e.depth<this.depth?(this.next=e,this):(e.next=this.sort(e.next),e)}get depth(){return this.context?this.context.length:0}}K0.empty=new K0([],2,null);function Va(n,e){let t=Object.create(null);for(let o of n)if(!Array.isArray(o.tag))t[o.tag.id]=o.class;else for(let r of o.tag)t[r.id]=o.class;let{scope:i,all:s=null}=e||{};return{style:o=>{let r=s;for(let l of o)for(let a of l.set){let h=t[a.id];if(h){r=r?r+" "+h:h;break}}return r},scope:i}}function q4(n,e){let t=null;for(let i of n){let s=i.style(e);s&&(t=t?t+" "+s:s)}return t}function U4(n,e,t,i=0,s=n.length){let o=new Y4(i,Array.isArray(e)?e:[e],t);o.highlightRange(n.cursor(),i,s,"",o.highlighters),o.flush(s)}class Y4{constructor(e,t,i){this.at=e,this.highlighters=t,this.span=i,this.class=""}startSpan(e,t){t!=this.class&&(this.flush(e),e>this.at&&(this.at=e),this.class=t)}flush(e){e>this.at&&this.class&&this.span(this.at,e,this.class)}highlightRange(e,t,i,s,o){let{type:r,from:l,to:a}=e;if(l>=i||a<=t)return;r.isTop&&(o=this.highlighters.filter(p=>!p.scope||p.scope(r)));let h=s,c=K4(e)||K0.empty,f=q4(o,c.tags);if(f&&(h&&(h+=" "),h+=f,c.mode==1&&(s+=(s?" ":"")+f)),this.startSpan(Math.max(t,l),h),c.opaque)return;let d=e.tree&&e.tree.prop(j.mounted);if(d&&d.overlay){let p=e.node.enter(d.overlay[0].from+l,1),g=this.highlighters.filter(v=>!v.scope||v.scope(d.tree.type)),m=e.firstChild();for(let v=0,w=l;;v++){let b=v<d.overlay.length?d.overlay[v]:null,S=b?b.from+l:a,k=Math.max(t,w),y=Math.min(i,S);if(k<y&&m)for(;e.from<y&&(this.highlightRange(e,k,y,s,o),this.startSpan(Math.min(y,e.to),h),!(e.to>=S||!e.nextSibling())););if(!b||S>i)break;w=b.to+l,w>t&&(this.highlightRange(p.cursor(),Math.max(t,b.from+l),Math.min(i,w),"",g),this.startSpan(Math.min(i,w),h))}m&&e.parent()}else if(e.firstChild()){d&&(s="");do if(!(e.to<=t)){if(e.from>=i)break;this.highlightRange(e,t,i,s,o),this.startSpan(Math.min(i,e.to),h)}while(e.nextSibling());e.parent()}}}function K4(n){let e=n.type.prop(Ea);for(;e&&e.context&&!n.matchContext(e.context);)e=e.next;return e||null}const A=Ie.define,v0=A(),mt=A(),Qo=A(mt),Jo=A(mt),vt=A(),w0=A(vt),Fn=A(vt),Ze=A(),Et=A(Ze),Qe=A(),Je=A(),Fs=A(),xi=A(Fs),x0=A(),D={comment:v0,lineComment:A(v0),blockComment:A(v0),docComment:A(v0),name:mt,variableName:A(mt),typeName:Qo,tagName:A(Qo),propertyName:Jo,attributeName:A(Jo),className:A(mt),labelName:A(mt),namespace:A(mt),macroName:A(mt),literal:vt,string:w0,docString:A(w0),character:A(w0),attributeValue:A(w0),number:Fn,integer:A(Fn),float:A(Fn),bool:A(vt),regexp:A(vt),escape:A(vt),color:A(vt),url:A(vt),keyword:Qe,self:A(Qe),null:A(Qe),atom:A(Qe),unit:A(Qe),modifier:A(Qe),operatorKeyword:A(Qe),controlKeyword:A(Qe),definitionKeyword:A(Qe),moduleKeyword:A(Qe),operator:Je,derefOperator:A(Je),arithmeticOperator:A(Je),logicOperator:A(Je),bitwiseOperator:A(Je),compareOperator:A(Je),updateOperator:A(Je),definitionOperator:A(Je),typeOperator:A(Je),controlOperator:A(Je),punctuation:Fs,separator:A(Fs),bracket:xi,angleBracket:A(xi),squareBracket:A(xi),paren:A(xi),brace:A(xi),content:Ze,heading:Et,heading1:A(Et),heading2:A(Et),heading3:A(Et),heading4:A(Et),heading5:A(Et),heading6:A(Et),contentSeparator:A(Ze),list:A(Ze),quote:A(Ze),emphasis:A(Ze),strong:A(Ze),link:A(Ze),monospace:A(Ze),strikethrough:A(Ze),inserted:A(),deleted:A(),changed:A(),invalid:A(),meta:x0,documentMeta:A(x0),annotation:A(x0),processingInstruction:A(x0),definition:Ie.defineModifier("definition"),constant:Ie.defineModifier("constant"),function:Ie.defineModifier("function"),standard:Ie.defineModifier("standard"),local:Ie.defineModifier("local"),special:Ie.defineModifier("special")};for(let n in D){let e=D[n];e instanceof Ie&&(e.name=n)}Va([{tag:D.link,class:"tok-link"},{tag:D.heading,class:"tok-heading"},{tag:D.emphasis,class:"tok-emphasis"},{tag:D.strong,class:"tok-strong"},{tag:D.keyword,class:"tok-keyword"},{tag:D.atom,class:"tok-atom"},{tag:D.bool,class:"tok-bool"},{tag:D.url,class:"tok-url"},{tag:D.labelName,class:"tok-labelName"},{tag:D.inserted,class:"tok-inserted"},{tag:D.deleted,class:"tok-deleted"},{tag:D.literal,class:"tok-literal"},{tag:D.string,class:"tok-string"},{tag:D.number,class:"tok-number"},{tag:[D.regexp,D.escape,D.special(D.string)],class:"tok-string2"},{tag:D.variableName,class:"tok-variableName"},{tag:D.local(D.variableName),class:"tok-variableName tok-local"},{tag:D.definition(D.variableName),class:"tok-variableName tok-definition"},{tag:D.special(D.variableName),class:"tok-variableName2"},{tag:D.definition(D.propertyName),class:"tok-propertyName tok-definition"},{tag:D.typeName,class:"tok-typeName"},{tag:D.namespace,class:"tok-namespace"},{tag:D.className,class:"tok-className"},{tag:D.macroName,class:"tok-macroName"},{tag:D.propertyName,class:"tok-propertyName"},{tag:D.operator,class:"tok-operator"},{tag:D.comment,class:"tok-comment"},{tag:D.meta,class:"tok-meta"},{tag:D.invalid,class:"tok-invalid"},{tag:D.punctuation,class:"tok-punctuation"}]);var Gn;const Qt=new j;function X4(n){return L.define({combine:n?e=>e.concat(n):void 0})}const Q4=new j;class qe{constructor(e,t,i=[],s=""){this.data=e,this.name=s,q.prototype.hasOwnProperty("tree")||Object.defineProperty(q.prototype,"tree",{get(){return me(this)}}),this.parser=t,this.extension=[Tt.of(this),q.languageData.of((o,r,l)=>{let a=Zo(o,r,l),h=a.type.prop(Qt);if(!h)return[];let c=o.facet(h),f=a.type.prop(Q4);if(f){let d=a.resolve(r-a.from,l);for(let p of f)if(p.test(d,o)){let g=o.facet(p.facet);return p.type=="replace"?g:g.concat(c)}}return c})].concat(i)}isActiveAt(e,t,i=-1){return Zo(e,t,i).type.prop(Qt)==this.data}findRegions(e){let t=e.facet(Tt);if((t==null?void 0:t.data)==this.data)return[{from:0,to:e.doc.length}];if(!t||!t.allowsNesting)return[];let i=[],s=(o,r)=>{if(o.prop(Qt)==this.data){i.push({from:r,to:r+o.length});return}let l=o.prop(j.mounted);if(l){if(l.tree.prop(Qt)==this.data){if(l.overlay)for(let a of l.overlay)i.push({from:a.from+r,to:a.to+r});else i.push({from:r,to:r+o.length});return}else if(l.overlay){let a=i.length;if(s(l.tree,l.overlay[0].from+r),i.length>a)return}}for(let a=0;a<o.children.length;a++){let h=o.children[a];h instanceof ce&&s(h,o.positions[a]+r)}};return s(me(e),0),i}get allowsNesting(){return!0}}qe.setState=G.define();function Zo(n,e,t){let i=n.facet(Tt),s=me(n).topNode;if(!i||i.allowsNesting)for(let o=s;o;o=o.enter(e,t,pe.ExcludeBuffers))o.type.isTop&&(s=o);return s}class X0 extends qe{constructor(e,t,i){super(e,t,[],i),this.parser=t}static define(e){let t=X4(e.languageData);return new X0(t,e.parser.configure({props:[Qt.add(i=>i.isTop?t:void 0)]}),e.name)}configure(e,t){return new X0(this.data,this.parser.configure(e),t||this.name)}get allowsNesting(){return this.parser.hasWrappers()}}function me(n){let e=n.field(qe.state,!1);return e?e.tree:ce.empty}class J4{constructor(e){this.doc=e,this.cursorPos=0,this.string="",this.cursor=e.iter()}get length(){return this.doc.length}syncTo(e){return this.string=this.cursor.next(e-this.cursorPos).value,this.cursorPos=e+this.string.length,this.cursorPos-this.string.length}chunk(e){return this.syncTo(e),this.string}get lineChunks(){return!0}read(e,t){let i=this.cursorPos-this.string.length;return e<i||t>=this.cursorPos?this.doc.sliceString(e,t):this.string.slice(e-i,t-i)}}let bi=null;class Q0{constructor(e,t,i=[],s,o,r,l,a){this.parser=e,this.state=t,this.fragments=i,this.tree=s,this.treeLen=o,this.viewport=r,this.skipped=l,this.scheduleOn=a,this.parse=null,this.tempSkipped=[]}static create(e,t,i){return new Q0(e,t,[],ce.empty,0,i,[],null)}startParse(){return this.parser.startParse(new J4(this.state.doc),this.fragments)}work(e,t){return t!=null&&t>=this.state.doc.length&&(t=void 0),this.tree!=ce.empty&&this.isDone(t??this.state.doc.length)?(this.takeTree(),!0):this.withContext(()=>{var i;if(typeof e=="number"){let s=Date.now()+e;e=()=>Date.now()>s}for(this.parse||(this.parse=this.startParse()),t!=null&&(this.parse.stoppedAt==null||this.parse.stoppedAt>t)&&t<this.state.doc.length&&this.parse.stopAt(t);;){let s=this.parse.advance();if(s)if(this.fragments=this.withoutTempSkipped(Rt.addTree(s,this.fragments,this.parse.stoppedAt!=null)),this.treeLen=(i=this.parse.stoppedAt)!==null&&i!==void 0?i:this.state.doc.length,this.tree=s,this.parse=null,this.treeLen<(t??this.state.doc.length))this.parse=this.startParse();else return!0;if(e())return!1}})}takeTree(){let e,t;this.parse&&(e=this.parse.parsedPos)>=this.treeLen&&((this.parse.stoppedAt==null||this.parse.stoppedAt>e)&&this.parse.stopAt(e),this.withContext(()=>{for(;!(t=this.parse.advance()););}),this.treeLen=e,this.tree=t,this.fragments=this.withoutTempSkipped(Rt.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(e){let t=bi;bi=this;try{return e()}finally{bi=t}}withoutTempSkipped(e){for(let t;t=this.tempSkipped.pop();)e=er(e,t.from,t.to);return e}changes(e,t){let{fragments:i,tree:s,treeLen:o,viewport:r,skipped:l}=this;if(this.takeTree(),!e.empty){let a=[];if(e.iterChangedRanges((h,c,f,d)=>a.push({fromA:h,toA:c,fromB:f,toB:d})),i=Rt.applyChanges(i,a),s=ce.empty,o=0,r={from:e.mapPos(r.from,-1),to:e.mapPos(r.to,1)},this.skipped.length){l=[];for(let h of this.skipped){let c=e.mapPos(h.from,1),f=e.mapPos(h.to,-1);c<f&&l.push({from:c,to:f})}}}return new Q0(this.parser,t,i,s,o,r,l,this.scheduleOn)}updateViewport(e){if(this.viewport.from==e.from&&this.viewport.to==e.to)return!1;this.viewport=e;let t=this.skipped.length;for(let i=0;i<this.skipped.length;i++){let{from:s,to:o}=this.skipped[i];s<e.to&&o>e.from&&(this.fragments=er(this.fragments,s,o),this.skipped.splice(i--,1))}return this.skipped.length>=t?!1:(this.reset(),!0)}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(e,t){this.skipped.push({from:e,to:t})}static getSkippingParser(e){return new class extends Ba{createParse(t,i,s){let o=s[0].from,r=s[s.length-1].to;return{parsedPos:o,advance(){let a=bi;if(a){for(let h of s)a.tempSkipped.push(h);e&&(a.scheduleOn=a.scheduleOn?Promise.all([a.scheduleOn,e]):e)}return this.parsedPos=r,new ce(Ve.none,[],[],r-o)},stoppedAt:null,stopAt(){}}}}}isDone(e){e=Math.min(e,this.state.doc.length);let t=this.fragments;return this.treeLen>=e&&t.length&&t[0].from==0&&t[0].to>=e}static get(){return bi}}function er(n,e,t){return Rt.applyChanges(n,[{fromA:e,toA:t,fromB:e,toB:t}])}class ci{constructor(e){this.context=e,this.tree=e.tree}apply(e){if(!e.docChanged&&this.tree==this.context.tree)return this;let t=this.context.changes(e.changes,e.state),i=this.context.treeLen==e.startState.doc.length?void 0:Math.max(e.changes.mapPos(this.context.treeLen),t.viewport.to);return t.work(20,i)||t.takeTree(),new ci(t)}static init(e){let t=Math.min(3e3,e.doc.length),i=Q0.create(e.facet(Tt).parser,e,{from:0,to:t});return i.work(20,t)||i.takeTree(),new ci(i)}}qe.state=be.define({create:ci.init,update(n,e){for(let t of e.effects)if(t.is(qe.setState))return t.value;return e.startState.facet(Tt)!=e.state.facet(Tt)?ci.init(e.state):n.apply(e)}});let za=n=>{let e=setTimeout(()=>n(),500);return()=>clearTimeout(e)};typeof requestIdleCallback<"u"&&(za=n=>{let e=-1,t=setTimeout(()=>{e=requestIdleCallback(n,{timeout:400})},100);return()=>e<0?clearTimeout(t):cancelIdleCallback(e)});const jn=typeof navigator<"u"&&(!((Gn=navigator.scheduling)===null||Gn===void 0)&&Gn.isInputPending)?()=>navigator.scheduling.isInputPending():null,Z4=he.fromClass(class{constructor(e){this.view=e,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}update(e){let t=this.view.state.field(qe.state).context;(t.updateViewport(e.view.viewport)||this.view.viewport.to>t.treeLen)&&this.scheduleWork(),(e.docChanged||e.selectionSet)&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(t)}scheduleWork(){if(this.working)return;let{state:e}=this.view,t=e.field(qe.state);(t.tree!=t.context.tree||!t.context.isDone(e.doc.length))&&(this.working=za(this.work))}work(e){this.working=null;let t=Date.now();if(this.chunkEnd<t&&(this.chunkEnd<0||this.view.hasFocus)&&(this.chunkEnd=t+3e4,this.chunkBudget=3e3),this.chunkBudget<=0)return;let{state:i,viewport:{to:s}}=this.view,o=i.field(qe.state);if(o.tree==o.context.tree&&o.context.isDone(s+1e5))return;let r=Date.now()+Math.min(this.chunkBudget,100,e&&!jn?Math.max(25,e.timeRemaining()-5):1e9),l=o.context.treeLen<s&&i.doc.length>s+1e3,a=o.context.work(()=>jn&&jn()||Date.now()>r,s+(l?0:1e5));this.chunkBudget-=Date.now()-t,(a||this.chunkBudget<=0)&&(o.context.takeTree(),this.view.dispatch({effects:qe.setState.of(new ci(o.context))})),this.chunkBudget>0&&!(a&&!l)&&this.scheduleWork(),this.checkAsyncSchedule(o.context)}checkAsyncSchedule(e){e.scheduleOn&&(this.workScheduled++,e.scheduleOn.then(()=>this.scheduleWork()).catch(t=>Pe(this.view.state,t)).then(()=>this.workScheduled--),e.scheduleOn=null)}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),Tt=L.define({combine(n){return n.length?n[0]:null},enables:n=>[qe.state,Z4,z.contentAttributes.compute([n],e=>{let t=e.facet(n);return t&&t.name?{"data-language":t.name}:{}})]});class ep{constructor(e,t=[]){this.language=e,this.support=t,this.extension=[e,t]}}const tp=L.define(),S2=L.define({combine:n=>{if(!n.length)return" ";let e=n[0];if(!e||/\S/.test(e)||Array.from(e).some(t=>t!=e[0]))throw new Error("Invalid indent unit: "+JSON.stringify(n[0]));return e}});function J0(n){let e=n.facet(S2);return e.charCodeAt(0)==9?n.tabSize*e.length:e.length}function Gi(n,e){let t="",i=n.tabSize,s=n.facet(S2)[0];if(s==" "){for(;e>=i;)t+=" ",e-=i;s=" "}for(let o=0;o<e;o++)t+=s;return t}function C2(n,e){n instanceof q&&(n=new bn(n));for(let i of n.state.facet(tp)){let s=i(n,e);if(s!==void 0)return s}let t=me(n.state);return t.length>=e?ip(n,t,e):null}class bn{constructor(e,t={}){this.state=e,this.options=t,this.unit=J0(e)}lineAt(e,t=1){let i=this.state.doc.lineAt(e),{simulateBreak:s,simulateDoubleBreak:o}=this.options;return s!=null&&s>=i.from&&s<=i.to?o&&s==e?{text:"",from:e}:(t<0?s<e:s<=e)?{text:i.text.slice(s-i.from),from:s}:{text:i.text.slice(0,s-i.from),from:i.from}:i}textAfterPos(e,t=1){if(this.options.simulateDoubleBreak&&e==this.options.simulateBreak)return"";let{text:i,from:s}=this.lineAt(e,t);return i.slice(e-s,Math.min(i.length,e+100-s))}column(e,t=1){let{text:i,from:s}=this.lineAt(e,t),o=this.countColumn(i,e-s),r=this.options.overrideIndentation?this.options.overrideIndentation(s):-1;return r>-1&&(o+=r-this.countColumn(i,i.search(/\S|$/))),o}countColumn(e,t=e.length){return fi(e,this.state.tabSize,t)}lineIndent(e,t=1){let{text:i,from:s}=this.lineAt(e,t),o=this.options.overrideIndentation;if(o){let r=o(s);if(r>-1)return r}return this.countColumn(i,i.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}}const La=new j;function ip(n,e,t){let i=e.resolveStack(t),s=e.resolveInner(t,-1).resolve(t,0).enterUnfinishedNodesBefore(t);if(s!=i.node){let o=[];for(let r=s;r&&!(r.from<i.node.from||r.to>i.node.to||r.from==i.node.from&&r.type==i.node.type);r=r.parent)o.push(r);for(let r=o.length-1;r>=0;r--)i={node:o[r],next:i}}return Na(i,n,t)}function Na(n,e,t){for(let i=n;i;i=i.next){let s=sp(i.node);if(s)return s(_2.create(e,t,i))}return 0}function np(n){return n.pos==n.options.simulateBreak&&n.options.simulateDoubleBreak}function sp(n){let e=n.type.prop(La);if(e)return e;let t=n.firstChild,i;if(t&&(i=t.type.prop(j.closedBy))){let s=n.lastChild,o=s&&i.indexOf(s.name)>-1;return r=>ap(r,!0,1,void 0,o&&!np(r)?s.from:void 0)}return n.parent==null?op:null}function op(){return 0}class _2 extends bn{constructor(e,t,i){super(e.state,e.options),this.base=e,this.pos=t,this.context=i}get node(){return this.context.node}static create(e,t,i){return new _2(e,t,i)}get textAfter(){return this.textAfterPos(this.pos)}get baseIndent(){return this.baseIndentFor(this.node)}baseIndentFor(e){let t=this.state.doc.lineAt(e.from);for(;;){let i=e.resolve(t.from);for(;i.parent&&i.parent.from==i.from;)i=i.parent;if(rp(i,e))break;t=this.state.doc.lineAt(i.from)}return this.lineIndent(t.from)}continue(){return Na(this.context.next,this.base,this.pos)}}function rp(n,e){for(let t=e;t;t=t.parent)if(n==t)return!0;return!1}function lp(n){let e=n.node,t=e.childAfter(e.from),i=e.lastChild;if(!t)return null;let s=n.options.simulateBreak,o=n.state.doc.lineAt(t.from),r=s==null||s<=o.from?o.to:Math.min(o.to,s);for(let l=t.to;;){let a=e.childAfter(l);if(!a||a==i)return null;if(!a.type.isSkipped){if(a.from>=r)return null;let h=/^ */.exec(o.text.slice(t.to-o.from))[0].length;return{from:t.from,to:t.to+h}}l=a.to}}function ap(n,e,t,i,s){let o=n.textAfter,r=o.match(/^\s*/)[0].length,l=i&&o.slice(r,r+i.length)==i||s==n.pos+r,a=lp(n);return a?l?n.column(a.from):n.column(a.to):n.baseIndent+(l?0:n.unit*t)}const cp=200;function hp(){return q.transactionFilter.of(n=>{if(!n.docChanged||!n.isUserEvent("input.type")&&!n.isUserEvent("input.complete"))return n;let e=n.startState.languageDataAt("indentOnInput",n.startState.selection.main.head);if(!e.length)return n;let t=n.newDoc,{head:i}=n.newSelection.main,s=t.lineAt(i);if(i>s.from+cp)return n;let o=t.sliceString(s.from,i);if(!e.some(h=>h.test(o)))return n;let{state:r}=n,l=-1,a=[];for(let{head:h}of r.selection.ranges){let c=r.doc.lineAt(h);if(c.from==l)continue;l=c.from;let f=C2(r,c.from);if(f==null)continue;let d=/^\s*/.exec(c.text)[0],p=Gi(r,f);d!=p&&a.push({from:c.from,to:c.from+d.length,insert:p})}return a.length?[n,{changes:a,sequential:!0}]:n})}const up=L.define(),Ra=new j;function fp(n,e,t){let i=me(n);if(i.length<t)return null;let s=i.resolveStack(t,1),o=null;for(let r=s;r;r=r.next){let l=r.node;if(l.to<=t||l.from>t)continue;if(o&&l.from<e)break;let a=l.type.prop(Ra);if(a&&(l.to<i.length-50||i.length==n.doc.length||!dp(l))){let h=a(l,n);h&&h.from<=t&&h.from>=e&&h.to>t&&(o=h)}}return o}function dp(n){let e=n.lastChild;return e&&e.to==n.to&&e.type.isError}function Z0(n,e,t){for(let i of n.facet(up)){let s=i(n,e,t);if(s)return s}return fp(n,e,t)}function Ia(n,e){let t=e.mapPos(n.from,1),i=e.mapPos(n.to,-1);return t>=i?void 0:{from:t,to:i}}const yn=G.define({map:Ia}),Zi=G.define({map:Ia});function Ha(n){let e=[];for(let{head:t}of n.state.selection.ranges)e.some(i=>i.from<=t&&i.to>=t)||e.push(n.lineBlockAt(t));return e}const Gt=be.define({create(){return W.none},update(n,e){e.isUserEvent("delete")&&e.changes.iterChangedRanges((t,i)=>n=tr(n,t,i)),n=n.map(e.changes);for(let t of e.effects)if(t.is(yn)&&!pp(n,t.value.from,t.value.to)){let{preparePlaceholder:i}=e.state.facet(Fa),s=i?W.replace({widget:new yp(i(e.state,t.value))}):ir;n=n.update({add:[s.range(t.value.from,t.value.to)]})}else t.is(Zi)&&(n=n.update({filter:(i,s)=>t.value.from!=i||t.value.to!=s,filterFrom:t.value.from,filterTo:t.value.to}));return e.selection&&(n=tr(n,e.selection.main.head)),n},provide:n=>z.decorations.from(n),toJSON(n,e){let t=[];return n.between(0,e.doc.length,(i,s)=>{t.push(i,s)}),t},fromJSON(n){if(!Array.isArray(n)||n.length%2)throw new RangeError("Invalid JSON for fold state");let e=[];for(let t=0;t<n.length;){let i=n[t++],s=n[t++];if(typeof i!="number"||typeof s!="number")throw new RangeError("Invalid JSON for fold state");e.push(ir.range(i,s))}return W.set(e,!0)}});function tr(n,e,t=e){let i=!1;return n.between(e,t,(s,o)=>{s<t&&o>e&&(i=!0)}),i?n.update({filterFrom:e,filterTo:t,filter:(s,o)=>s>=t||o<=e}):n}function en(n,e,t){var i;let s=null;return(i=n.field(Gt,!1))===null||i===void 0||i.between(e,t,(o,r)=>{(!s||s.from>o)&&(s={from:o,to:r})}),s}function pp(n,e,t){let i=!1;return n.between(e,e,(s,o)=>{s==e&&o==t&&(i=!0)}),i}function $a(n,e){return n.field(Gt,!1)?e:e.concat(G.appendConfig.of(Ga()))}const gp=n=>{for(let e of Ha(n)){let t=Z0(n.state,e.from,e.to);if(t)return n.dispatch({effects:$a(n.state,[yn.of(t),Wa(n,t)])}),!0}return!1},mp=n=>{if(!n.state.field(Gt,!1))return!1;let e=[];for(let t of Ha(n)){let i=en(n.state,t.from,t.to);i&&e.push(Zi.of(i),Wa(n,i,!1))}return e.length&&n.dispatch({effects:e}),e.length>0};function Wa(n,e,t=!0){let i=n.state.doc.lineAt(e.from).number,s=n.state.doc.lineAt(e.to).number;return z.announce.of(`${n.state.phrase(t?"Folded lines":"Unfolded lines")} ${i} ${n.state.phrase("to")} ${s}.`)}const vp=n=>{let{state:e}=n,t=[];for(let i=0;i<e.doc.length;){let s=n.lineBlockAt(i),o=Z0(e,s.from,s.to);o&&t.push(yn.of(o)),i=(o?n.lineBlockAt(o.to):s).to+1}return t.length&&n.dispatch({effects:$a(n.state,t)}),!!t.length},wp=n=>{let e=n.state.field(Gt,!1);if(!e||!e.size)return!1;let t=[];return e.between(0,n.state.doc.length,(i,s)=>{t.push(Zi.of({from:i,to:s}))}),n.dispatch({effects:t}),!0},xp=[{key:"Ctrl-Shift-[",mac:"Cmd-Alt-[",run:gp},{key:"Ctrl-Shift-]",mac:"Cmd-Alt-]",run:mp},{key:"Ctrl-Alt-[",run:vp},{key:"Ctrl-Alt-]",run:wp}],bp={placeholderDOM:null,preparePlaceholder:null,placeholderText:"…"},Fa=L.define({combine(n){return lt(n,bp)}});function Ga(n){return[Gt,Cp]}function ja(n,e){let{state:t}=n,i=t.facet(Fa),s=r=>{let l=n.lineBlockAt(n.posAtDOM(r.target)),a=en(n.state,l.from,l.to);a&&n.dispatch({effects:Zi.of(a)}),r.preventDefault()};if(i.placeholderDOM)return i.placeholderDOM(n,s,e);let o=document.createElement("span");return o.textContent=i.placeholderText,o.setAttribute("aria-label",t.phrase("folded code")),o.title=t.phrase("unfold"),o.className="cm-foldPlaceholder",o.onclick=s,o}const ir=W.replace({widget:new class extends At{toDOM(n){return ja(n,null)}}});class yp extends At{constructor(e){super(),this.value=e}eq(e){return this.value==e.value}toDOM(e){return ja(e,this.value)}}const kp={openText:"⌄",closedText:"›",markerDOM:null,domEventHandlers:{},foldingChanged:()=>!1};class qn extends pt{constructor(e,t){super(),this.config=e,this.open=t}eq(e){return this.config==e.config&&this.open==e.open}toDOM(e){if(this.config.markerDOM)return this.config.markerDOM(this.open);let t=document.createElement("span");return t.textContent=this.open?this.config.openText:this.config.closedText,t.title=e.state.phrase(this.open?"Fold line":"Unfold line"),t}}function Sp(n={}){let e={...kp,...n},t=new qn(e,!0),i=new qn(e,!1),s=he.fromClass(class{constructor(r){this.from=r.viewport.from,this.markers=this.buildMarkers(r)}update(r){(r.docChanged||r.viewportChanged||r.startState.facet(Tt)!=r.state.facet(Tt)||r.startState.field(Gt,!1)!=r.state.field(Gt,!1)||me(r.startState)!=me(r.state)||e.foldingChanged(r))&&(this.markers=this.buildMarkers(r.view))}buildMarkers(r){let l=new ft;for(let a of r.viewportLineBlocks){let h=en(r.state,a.from,a.to)?i:Z0(r.state,a.from,a.to)?t:null;h&&l.add(a.from,a.from,h)}return l.finish()}}),{domEventHandlers:o}=e;return[s,C4({class:"cm-foldGutter",markers(r){var l;return((l=r.plugin(s))===null||l===void 0?void 0:l.markers)||U.empty},initialSpacer(){return new qn(e,!1)},domEventHandlers:{...o,click:(r,l,a)=>{if(o.click&&o.click(r,l,a))return!0;let h=en(r.state,l.from,l.to);if(h)return r.dispatch({effects:Zi.of(h)}),!0;let c=Z0(r.state,l.from,l.to);return c?(r.dispatch({effects:yn.of(c)}),!0):!1}}}),Ga()]}const Cp=z.baseTheme({".cm-foldPlaceholder":{backgroundColor:"#eee",border:"1px solid #ddd",color:"#888",borderRadius:".2em",margin:"0 1px",padding:"0 1px",cursor:"pointer"},".cm-foldGutter span":{padding:"0 1px",cursor:"pointer"}});class kn{constructor(e,t){this.specs=e;let i;function s(l){let a=_t.newName();return(i||(i=Object.create(null)))["."+a]=l,a}const o=typeof t.all=="string"?t.all:t.all?s(t.all):void 0,r=t.scope;this.scope=r instanceof qe?l=>l.prop(Qt)==r.data:r?l=>l==r:void 0,this.style=Va(e.map(l=>({tag:l.tag,class:l.class||s(Object.assign({},l,{tag:null}))})),{all:o}).style,this.module=i?new _t(i):null,this.themeType=t.themeType}static define(e,t){return new kn(e,t||{})}}const Gs=L.define(),qa=L.define({combine(n){return n.length?[n[0]]:null}});function Un(n){let e=n.facet(Gs);return e.length?e:n.facet(qa)}function _p(n,e){let t=[Mp],i;return n instanceof kn&&(n.module&&t.push(z.styleModule.of(n.module)),i=n.themeType),e!=null&&e.fallback?t.push(qa.of(n)):i?t.push(Gs.computeN([z.darkTheme],s=>s.facet(z.darkTheme)==(i=="dark")?[n]:[])):t.push(Gs.of(n)),t}class Op{constructor(e){this.markCache=Object.create(null),this.tree=me(e.state),this.decorations=this.buildDeco(e,Un(e.state)),this.decoratedTo=e.viewport.to}update(e){let t=me(e.state),i=Un(e.state),s=i!=Un(e.startState),{viewport:o}=e.view,r=e.changes.mapPos(this.decoratedTo,1);t.length<o.to&&!s&&t.type==this.tree.type&&r>=o.to?(this.decorations=this.decorations.map(e.changes),this.decoratedTo=r):(t!=this.tree||e.viewportChanged||s)&&(this.tree=t,this.decorations=this.buildDeco(e.view,i),this.decoratedTo=o.to)}buildDeco(e,t){if(!t||!this.tree.length)return W.none;let i=new ft;for(let{from:s,to:o}of e.visibleRanges)U4(this.tree,t,(r,l,a)=>{i.add(r,l,this.markCache[a]||(this.markCache[a]=W.mark({class:a})))},s,o);return i.finish()}}const Mp=jt.high(he.fromClass(Op,{decorations:n=>n.decorations})),Dp=kn.define([{tag:D.meta,color:"#404740"},{tag:D.link,textDecoration:"underline"},{tag:D.heading,textDecoration:"underline",fontWeight:"bold"},{tag:D.emphasis,fontStyle:"italic"},{tag:D.strong,fontWeight:"bold"},{tag:D.strikethrough,textDecoration:"line-through"},{tag:D.keyword,color:"#708"},{tag:[D.atom,D.bool,D.url,D.contentSeparator,D.labelName],color:"#219"},{tag:[D.literal,D.inserted],color:"#164"},{tag:[D.string,D.deleted],color:"#a11"},{tag:[D.regexp,D.escape,D.special(D.string)],color:"#e40"},{tag:D.definition(D.variableName),color:"#00f"},{tag:D.local(D.variableName),color:"#30a"},{tag:[D.typeName,D.namespace],color:"#085"},{tag:D.className,color:"#167"},{tag:[D.special(D.variableName),D.macroName],color:"#256"},{tag:D.definition(D.propertyName),color:"#00c"},{tag:D.comment,color:"#940"},{tag:D.invalid,color:"#f00"}]),Tp=z.baseTheme({"&.cm-focused .cm-matchingBracket":{backgroundColor:"#328c8252"},"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bb555544"}}),Ua=1e4,Ya="()[]{}",Ka=L.define({combine(n){return lt(n,{afterCursor:!0,brackets:Ya,maxScanDistance:Ua,renderMatch:Pp})}}),Ap=W.mark({class:"cm-matchingBracket"}),Bp=W.mark({class:"cm-nonmatchingBracket"});function Pp(n){let e=[],t=n.matched?Ap:Bp;return e.push(t.range(n.start.from,n.start.to)),n.end&&e.push(t.range(n.end.from,n.end.to)),e}const Ep=be.define({create(){return W.none},update(n,e){if(!e.docChanged&&!e.selection)return n;let t=[],i=e.state.facet(Ka);for(let s of e.state.selection.ranges){if(!s.empty)continue;let o=nt(e.state,s.head,-1,i)||s.head>0&&nt(e.state,s.head-1,1,i)||i.afterCursor&&(nt(e.state,s.head,1,i)||s.head<e.state.doc.length&&nt(e.state,s.head+1,-1,i));o&&(t=t.concat(i.renderMatch(o,e.state)))}return W.set(t,!0)},provide:n=>z.decorations.from(n)}),Vp=[Ep,Tp];function zp(n={}){return[Ka.of(n),Vp]}const Xa=new j;function js(n,e,t){let i=n.prop(e<0?j.openedBy:j.closedBy);if(i)return i;if(n.name.length==1){let s=t.indexOf(n.name);if(s>-1&&s%2==(e<0?1:0))return[t[s+e]]}return null}function qs(n){let e=n.type.prop(Xa);return e?e(n.node):n}function nt(n,e,t,i={}){let s=i.maxScanDistance||Ua,o=i.brackets||Ya,r=me(n),l=r.resolveInner(e,t);for(let a=l;a;a=a.parent){let h=js(a.type,t,o);if(h&&a.from<a.to){let c=qs(a);if(c&&(t>0?e>=c.from&&e<c.to:e>c.from&&e<=c.to))return Lp(n,e,t,a,c,h,o)}}return Np(n,e,t,r,l.type,s,o)}function Lp(n,e,t,i,s,o,r){let l=i.parent,a={from:s.from,to:s.to},h=0,c=l==null?void 0:l.cursor();if(c&&(t<0?c.childBefore(i.from):c.childAfter(i.to)))do if(t<0?c.to<=i.from:c.from>=i.to){if(h==0&&o.indexOf(c.type.name)>-1&&c.from<c.to){let f=qs(c);return{start:a,end:f?{from:f.from,to:f.to}:void 0,matched:!0}}else if(js(c.type,t,r))h++;else if(js(c.type,-t,r)){if(h==0){let f=qs(c);return{start:a,end:f&&f.from<f.to?{from:f.from,to:f.to}:void 0,matched:!1}}h--}}while(t<0?c.prevSibling():c.nextSibling());return{start:a,matched:!1}}function Np(n,e,t,i,s,o,r){let l=t<0?n.sliceDoc(e-1,e):n.sliceDoc(e,e+1),a=r.indexOf(l);if(a<0||a%2==0!=t>0)return null;let h={from:t<0?e-1:e,to:t>0?e+1:e},c=n.doc.iterRange(e,t>0?n.doc.length:0),f=0;for(let d=0;!c.next().done&&d<=o;){let p=c.value;t<0&&(d+=p.length);let g=e+d*t;for(let m=t>0?0:p.length-1,v=t>0?p.length:-1;m!=v;m+=t){let w=r.indexOf(p[m]);if(!(w<0||i.resolveInner(g+m,1).type!=s))if(w%2==0==t>0)f++;else{if(f==1)return{start:h,end:{from:g+m,to:g+m+1},matched:w>>1==a>>1};f--}}t>0&&(d+=p.length)}return c.done?{start:h,matched:!1}:null}const Rp=Object.create(null),nr=[Ve.none],sr=[],or=Object.create(null),Ip=Object.create(null);for(let[n,e]of[["variable","variableName"],["variable-2","variableName.special"],["string-2","string.special"],["def","variableName.definition"],["tag","tagName"],["attribute","attributeName"],["type","typeName"],["builtin","variableName.standard"],["qualifier","modifier"],["error","invalid"],["header","heading"],["property","propertyName"]])Ip[n]=Hp(Rp,e);function Yn(n,e){sr.indexOf(n)>-1||(sr.push(n),console.warn(e))}function Hp(n,e){let t=[];for(let l of e.split(" ")){let a=[];for(let h of l.split(".")){let c=n[h]||D[h];c?typeof c=="function"?a.length?a=a.map(c):Yn(h,`Modifier ${h} used at start of tag`):a.length?Yn(h,`Tag ${h} used as modifier`):a=Array.isArray(c)?c:[c]:Yn(h,`Unknown highlighting tag ${h}`)}for(let h of a)t.push(h)}if(!t.length)return 0;let i=e.replace(/ /g,"_"),s=i+" "+t.map(l=>l.id),o=or[s];if(o)return o.id;let r=or[s]=Ve.define({id:nr.length,name:i,props:[Pa({[i]:t})]});return nr.push(r),r.id}se.RTL,se.LTR;const $p=n=>{let{state:e}=n,t=e.doc.lineAt(e.selection.main.from),i=M2(n.state,t.from);return i.line?Wp(n):i.block?Gp(n):!1};function O2(n,e){return({state:t,dispatch:i})=>{if(t.readOnly)return!1;let s=n(e,t);return s?(i(t.update(s)),!0):!1}}const Wp=O2(Up,0),Fp=O2(Qa,0),Gp=O2((n,e)=>Qa(n,e,qp(e)),0);function M2(n,e){let t=n.languageDataAt("commentTokens",e,1);return t.length?t[0]:{}}const yi=50;function jp(n,{open:e,close:t},i,s){let o=n.sliceDoc(i-yi,i),r=n.sliceDoc(s,s+yi),l=/\s*$/.exec(o)[0].length,a=/^\s*/.exec(r)[0].length,h=o.length-l;if(o.slice(h-e.length,h)==e&&r.slice(a,a+t.length)==t)return{open:{pos:i-l,margin:l&&1},close:{pos:s+a,margin:a&&1}};let c,f;s-i<=2*yi?c=f=n.sliceDoc(i,s):(c=n.sliceDoc(i,i+yi),f=n.sliceDoc(s-yi,s));let d=/^\s*/.exec(c)[0].length,p=/\s*$/.exec(f)[0].length,g=f.length-p-t.length;return c.slice(d,d+e.length)==e&&f.slice(g,g+t.length)==t?{open:{pos:i+d+e.length,margin:/\s/.test(c.charAt(d+e.length))?1:0},close:{pos:s-p-t.length,margin:/\s/.test(f.charAt(g-1))?1:0}}:null}function qp(n){let e=[];for(let t of n.selection.ranges){let i=n.doc.lineAt(t.from),s=t.to<=i.to?i:n.doc.lineAt(t.to);s.from>i.from&&s.from==t.to&&(s=t.to==i.to+1?i:n.doc.lineAt(t.to-1));let o=e.length-1;o>=0&&e[o].to>i.from?e[o].to=s.to:e.push({from:i.from+/^\s*/.exec(i.text)[0].length,to:s.to})}return e}function Qa(n,e,t=e.selection.ranges){let i=t.map(o=>M2(e,o.from).block);if(!i.every(o=>o))return null;let s=t.map((o,r)=>jp(e,i[r],o.from,o.to));if(n!=2&&!s.every(o=>o))return{changes:e.changes(t.map((o,r)=>s[r]?[]:[{from:o.from,insert:i[r].open+" "},{from:o.to,insert:" "+i[r].close}]))};if(n!=1&&s.some(o=>o)){let o=[];for(let r=0,l;r<s.length;r++)if(l=s[r]){let a=i[r],{open:h,close:c}=l;o.push({from:h.pos-a.open.length,to:h.pos+h.margin},{from:c.pos-c.margin,to:c.pos+a.close.length})}return{changes:o}}return null}function Up(n,e,t=e.selection.ranges){let i=[],s=-1;for(let{from:o,to:r}of t){let l=i.length,a=1e9,h=M2(e,o).line;if(h){for(let c=o;c<=r;){let f=e.doc.lineAt(c);if(f.from>s&&(o==r||r>f.from)){s=f.from;let d=/^\s*/.exec(f.text)[0].length,p=d==f.length,g=f.text.slice(d,d+h.length)==h?d:-1;d<f.text.length&&d<a&&(a=d),i.push({line:f,comment:g,token:h,indent:d,empty:p,single:!1})}c=f.to+1}if(a<1e9)for(let c=l;c<i.length;c++)i[c].indent<i[c].line.text.length&&(i[c].indent=a);i.length==l+1&&(i[l].single=!0)}}if(n!=2&&i.some(o=>o.comment<0&&(!o.empty||o.single))){let o=[];for(let{line:l,token:a,indent:h,empty:c,single:f}of i)(f||!c)&&o.push({from:l.from+h,insert:a+" "});let r=e.changes(o);return{changes:r,selection:e.selection.map(r,1)}}else if(n!=1&&i.some(o=>o.comment>=0)){let o=[];for(let{line:r,comment:l,token:a}of i)if(l>=0){let h=r.from+l,c=h+a.length;r.text[c-r.from]==" "&&c++,o.push({from:h,to:c})}return{changes:o}}return null}const Us=gt.define(),Yp=gt.define(),Kp=L.define(),Ja=L.define({combine(n){return lt(n,{minDepth:100,newGroupDelay:500,joinToEvent:(e,t)=>t},{minDepth:Math.max,newGroupDelay:Math.min,joinToEvent:(e,t)=>(i,s)=>e(i,s)||t(i,s)})}}),Za=be.define({create(){return st.empty},update(n,e){let t=e.state.facet(Ja),i=e.annotation(Us);if(i){let a=Ee.fromTransaction(e,i.selection),h=i.side,c=h==0?n.undone:n.done;return a?c=tn(c,c.length,t.minDepth,a):c=ic(c,e.startState.selection),new st(h==0?i.rest:c,h==0?c:i.rest)}let s=e.annotation(Yp);if((s=="full"||s=="before")&&(n=n.isolate()),e.annotation(de.addToHistory)===!1)return e.changes.empty?n:n.addMapping(e.changes.desc);let o=Ee.fromTransaction(e),r=e.annotation(de.time),l=e.annotation(de.userEvent);return o?n=n.addChanges(o,r,l,t,e):e.selection&&(n=n.addSelection(e.startState.selection,r,l,t.newGroupDelay)),(s=="full"||s=="after")&&(n=n.isolate()),n},toJSON(n){return{done:n.done.map(e=>e.toJSON()),undone:n.undone.map(e=>e.toJSON())}},fromJSON(n){return new st(n.done.map(Ee.fromJSON),n.undone.map(Ee.fromJSON))}});function Xp(n={}){return[Za,Ja.of(n),z.domEventHandlers({beforeinput(e,t){let i=e.inputType=="historyUndo"?ec:e.inputType=="historyRedo"?Ys:null;return i?(e.preventDefault(),i(t)):!1}})]}function Sn(n,e){return function({state:t,dispatch:i}){if(!e&&t.readOnly)return!1;let s=t.field(Za,!1);if(!s)return!1;let o=s.pop(n,t,e);return o?(i(o),!0):!1}}const ec=Sn(0,!1),Ys=Sn(1,!1),Qp=Sn(0,!0),Jp=Sn(1,!0);class Ee{constructor(e,t,i,s,o){this.changes=e,this.effects=t,this.mapped=i,this.startSelection=s,this.selectionsAfter=o}setSelAfter(e){return new Ee(this.changes,this.effects,this.mapped,this.startSelection,e)}toJSON(){var e,t,i;return{changes:(e=this.changes)===null||e===void 0?void 0:e.toJSON(),mapped:(t=this.mapped)===null||t===void 0?void 0:t.toJSON(),startSelection:(i=this.startSelection)===null||i===void 0?void 0:i.toJSON(),selectionsAfter:this.selectionsAfter.map(s=>s.toJSON())}}static fromJSON(e){return new Ee(e.changes&&fe.fromJSON(e.changes),[],e.mapped&&ot.fromJSON(e.mapped),e.startSelection&&O.fromJSON(e.startSelection),e.selectionsAfter.map(O.fromJSON))}static fromTransaction(e,t){let i=He;for(let s of e.startState.facet(Kp)){let o=s(e);o.length&&(i=i.concat(o))}return!i.length&&e.changes.empty?null:new Ee(e.changes.invert(e.startState.doc),i,void 0,t||e.startState.selection,He)}static selection(e){return new Ee(void 0,He,void 0,void 0,e)}}function tn(n,e,t,i){let s=e+1>t+20?e-t-1:0,o=n.slice(s,e);return o.push(i),o}function Zp(n,e){let t=[],i=!1;return n.iterChangedRanges((s,o)=>t.push(s,o)),e.iterChangedRanges((s,o,r,l)=>{for(let a=0;a<t.length;){let h=t[a++],c=t[a++];l>=h&&r<=c&&(i=!0)}}),i}function e8(n,e){return n.ranges.length==e.ranges.length&&n.ranges.filter((t,i)=>t.empty!=e.ranges[i].empty).length===0}function tc(n,e){return n.length?e.length?n.concat(e):n:e}const He=[],t8=200;function ic(n,e){if(n.length){let t=n[n.length-1],i=t.selectionsAfter.slice(Math.max(0,t.selectionsAfter.length-t8));return i.length&&i[i.length-1].eq(e)?n:(i.push(e),tn(n,n.length-1,1e9,t.setSelAfter(i)))}else return[Ee.selection([e])]}function i8(n){let e=n[n.length-1],t=n.slice();return t[n.length-1]=e.setSelAfter(e.selectionsAfter.slice(0,e.selectionsAfter.length-1)),t}function Kn(n,e){if(!n.length)return n;let t=n.length,i=He;for(;t;){let s=n8(n[t-1],e,i);if(s.changes&&!s.changes.empty||s.effects.length){let o=n.slice(0,t);return o[t-1]=s,o}else e=s.mapped,t--,i=s.selectionsAfter}return i.length?[Ee.selection(i)]:He}function n8(n,e,t){let i=tc(n.selectionsAfter.length?n.selectionsAfter.map(l=>l.map(e)):He,t);if(!n.changes)return Ee.selection(i);let s=n.changes.map(e),o=e.mapDesc(n.changes,!0),r=n.mapped?n.mapped.composeDesc(o):o;return new Ee(s,G.mapEffects(n.effects,e),r,n.startSelection.map(o),i)}const s8=/^(input\.type|delete)($|\.)/;class st{constructor(e,t,i=0,s=void 0){this.done=e,this.undone=t,this.prevTime=i,this.prevUserEvent=s}isolate(){return this.prevTime?new st(this.done,this.undone):this}addChanges(e,t,i,s,o){let r=this.done,l=r[r.length-1];return l&&l.changes&&!l.changes.empty&&e.changes&&(!i||s8.test(i))&&(!l.selectionsAfter.length&&t-this.prevTime<s.newGroupDelay&&s.joinToEvent(o,Zp(l.changes,e.changes))||i=="input.type.compose")?r=tn(r,r.length-1,s.minDepth,new Ee(e.changes.compose(l.changes),tc(G.mapEffects(e.effects,l.changes),l.effects),l.mapped,l.startSelection,He)):r=tn(r,r.length,s.minDepth,e),new st(r,He,t,i)}addSelection(e,t,i,s){let o=this.done.length?this.done[this.done.length-1].selectionsAfter:He;return o.length>0&&t-this.prevTime<s&&i==this.prevUserEvent&&i&&/^select($|\.)/.test(i)&&e8(o[o.length-1],e)?this:new st(ic(this.done,e),this.undone,t,i)}addMapping(e){return new st(Kn(this.done,e),Kn(this.undone,e),this.prevTime,this.prevUserEvent)}pop(e,t,i){let s=e==0?this.done:this.undone;if(s.length==0)return null;let o=s[s.length-1],r=o.selectionsAfter[0]||t.selection;if(i&&o.selectionsAfter.length)return t.update({selection:o.selectionsAfter[o.selectionsAfter.length-1],annotations:Us.of({side:e,rest:i8(s),selection:r}),userEvent:e==0?"select.undo":"select.redo",scrollIntoView:!0});if(o.changes){let l=s.length==1?He:s.slice(0,s.length-1);return o.mapped&&(l=Kn(l,o.mapped)),t.update({changes:o.changes,selection:o.startSelection,effects:o.effects,annotations:Us.of({side:e,rest:l,selection:r}),filter:!1,userEvent:e==0?"undo":"redo",scrollIntoView:!0})}else return null}}st.empty=new st(He,He);const o8=[{key:"Mod-z",run:ec,preventDefault:!0},{key:"Mod-y",mac:"Mod-Shift-z",run:Ys,preventDefault:!0},{linux:"Ctrl-Shift-z",run:Ys,preventDefault:!0},{key:"Mod-u",run:Qp,preventDefault:!0},{key:"Alt-u",mac:"Mod-Shift-u",run:Jp,preventDefault:!0}];function di(n,e){return O.create(n.ranges.map(e),n.mainIndex)}function at(n,e){return n.update({selection:e,scrollIntoView:!0,userEvent:"select"})}function Ke({state:n,dispatch:e},t){let i=di(n.selection,t);return i.eq(n.selection,!0)?!1:(e(at(n,i)),!0)}function Cn(n,e){return O.cursor(e?n.to:n.from)}function nc(n,e){return Ke(n,t=>t.empty?n.moveByChar(t,e):Cn(t,e))}function Se(n){return n.textDirectionAt(n.state.selection.main.head)==se.LTR}const sc=n=>nc(n,!Se(n)),oc=n=>nc(n,Se(n));function rc(n,e){return Ke(n,t=>t.empty?n.moveByGroup(t,e):Cn(t,e))}const r8=n=>rc(n,!Se(n)),l8=n=>rc(n,Se(n));function a8(n,e,t){if(e.type.prop(t))return!0;let i=e.to-e.from;return i&&(i>2||/[^\s,.;:]/.test(n.sliceDoc(e.from,e.to)))||e.firstChild}function _n(n,e,t){let i=me(n).resolveInner(e.head),s=t?j.closedBy:j.openedBy;for(let a=e.head;;){let h=t?i.childAfter(a):i.childBefore(a);if(!h)break;a8(n,h,s)?i=h:a=t?h.to:h.from}let o=i.type.prop(s),r,l;return o&&(r=t?nt(n,i.from,1):nt(n,i.to,-1))&&r.matched?l=t?r.end.to:r.end.from:l=t?i.to:i.from,O.cursor(l,t?-1:1)}const c8=n=>Ke(n,e=>_n(n.state,e,!Se(n))),h8=n=>Ke(n,e=>_n(n.state,e,Se(n)));function lc(n,e){return Ke(n,t=>{if(!t.empty)return Cn(t,e);let i=n.moveVertically(t,e);return i.head!=t.head?i:n.moveToLineBoundary(t,e)})}const ac=n=>lc(n,!1),cc=n=>lc(n,!0);function hc(n){let e=n.scrollDOM.clientHeight<n.scrollDOM.scrollHeight-2,t=0,i=0,s;if(e){for(let o of n.state.facet(z.scrollMargins)){let r=o(n);r!=null&&r.top&&(t=Math.max(r==null?void 0:r.top,t)),r!=null&&r.bottom&&(i=Math.max(r==null?void 0:r.bottom,i))}s=n.scrollDOM.clientHeight-t-i}else s=(n.dom.ownerDocument.defaultView||window).innerHeight;return{marginTop:t,marginBottom:i,selfScroll:e,height:Math.max(n.defaultLineHeight,s-5)}}function uc(n,e){let t=hc(n),{state:i}=n,s=di(i.selection,r=>r.empty?n.moveVertically(r,e,t.height):Cn(r,e));if(s.eq(i.selection))return!1;let o;if(t.selfScroll){let r=n.coordsAtPos(i.selection.main.head),l=n.scrollDOM.getBoundingClientRect(),a=l.top+t.marginTop,h=l.bottom-t.marginBottom;r&&r.top>a&&r.bottom<h&&(o=z.scrollIntoView(s.main.head,{y:"start",yMargin:r.top-a}))}return n.dispatch(at(i,s),{effects:o}),!0}const rr=n=>uc(n,!1),Ks=n=>uc(n,!0);function Bt(n,e,t){let i=n.lineBlockAt(e.head),s=n.moveToLineBoundary(e,t);if(s.head==e.head&&s.head!=(t?i.to:i.from)&&(s=n.moveToLineBoundary(e,t,!1)),!t&&s.head==i.from&&i.length){let o=/^\s*/.exec(n.state.sliceDoc(i.from,Math.min(i.from+100,i.to)))[0].length;o&&e.head!=i.from+o&&(s=O.cursor(i.from+o))}return s}const u8=n=>Ke(n,e=>Bt(n,e,!0)),f8=n=>Ke(n,e=>Bt(n,e,!1)),d8=n=>Ke(n,e=>Bt(n,e,!Se(n))),p8=n=>Ke(n,e=>Bt(n,e,Se(n))),g8=n=>Ke(n,e=>O.cursor(n.lineBlockAt(e.head).from,1)),m8=n=>Ke(n,e=>O.cursor(n.lineBlockAt(e.head).to,-1));function v8(n,e,t){let i=!1,s=di(n.selection,o=>{let r=nt(n,o.head,-1)||nt(n,o.head,1)||o.head>0&&nt(n,o.head-1,1)||o.head<n.doc.length&&nt(n,o.head+1,-1);if(!r||!r.end)return o;i=!0;let l=r.start.from==o.head?r.end.to:r.end.from;return O.cursor(l)});return i?(e(at(n,s)),!0):!1}const w8=({state:n,dispatch:e})=>v8(n,e);function je(n,e){let t=di(n.state.selection,i=>{let s=e(i);return O.range(i.anchor,s.head,s.goalColumn,s.bidiLevel||void 0)});return t.eq(n.state.selection)?!1:(n.dispatch(at(n.state,t)),!0)}function fc(n,e){return je(n,t=>n.moveByChar(t,e))}const dc=n=>fc(n,!Se(n)),pc=n=>fc(n,Se(n));function gc(n,e){return je(n,t=>n.moveByGroup(t,e))}const x8=n=>gc(n,!Se(n)),b8=n=>gc(n,Se(n)),y8=n=>je(n,e=>_n(n.state,e,!Se(n))),k8=n=>je(n,e=>_n(n.state,e,Se(n)));function mc(n,e){return je(n,t=>n.moveVertically(t,e))}const vc=n=>mc(n,!1),wc=n=>mc(n,!0);function xc(n,e){return je(n,t=>n.moveVertically(t,e,hc(n).height))}const lr=n=>xc(n,!1),ar=n=>xc(n,!0),S8=n=>je(n,e=>Bt(n,e,!0)),C8=n=>je(n,e=>Bt(n,e,!1)),_8=n=>je(n,e=>Bt(n,e,!Se(n))),O8=n=>je(n,e=>Bt(n,e,Se(n))),M8=n=>je(n,e=>O.cursor(n.lineBlockAt(e.head).from)),D8=n=>je(n,e=>O.cursor(n.lineBlockAt(e.head).to)),cr=({state:n,dispatch:e})=>(e(at(n,{anchor:0})),!0),hr=({state:n,dispatch:e})=>(e(at(n,{anchor:n.doc.length})),!0),ur=({state:n,dispatch:e})=>(e(at(n,{anchor:n.selection.main.anchor,head:0})),!0),fr=({state:n,dispatch:e})=>(e(at(n,{anchor:n.selection.main.anchor,head:n.doc.length})),!0),T8=({state:n,dispatch:e})=>(e(n.update({selection:{anchor:0,head:n.doc.length},userEvent:"select"})),!0),A8=({state:n,dispatch:e})=>{let t=On(n).map(({from:i,to:s})=>O.range(i,Math.min(s+1,n.doc.length)));return e(n.update({selection:O.create(t),userEvent:"select"})),!0},B8=({state:n,dispatch:e})=>{let t=di(n.selection,i=>{let s=me(n),o=s.resolveStack(i.from,1);if(i.empty){let r=s.resolveStack(i.from,-1);r.node.from>=o.node.from&&r.node.to<=o.node.to&&(o=r)}for(let r=o;r;r=r.next){let{node:l}=r;if((l.from<i.from&&l.to>=i.to||l.to>i.to&&l.from<=i.from)&&r.next)return O.range(l.to,l.from)}return i});return t.eq(n.selection)?!1:(e(at(n,t)),!0)},P8=({state:n,dispatch:e})=>{let t=n.selection,i=null;return t.ranges.length>1?i=O.create([t.main]):t.main.empty||(i=O.create([O.cursor(t.main.head)])),i?(e(at(n,i)),!0):!1};function e0(n,e){if(n.state.readOnly)return!1;let t="delete.selection",{state:i}=n,s=i.changeByRange(o=>{let{from:r,to:l}=o;if(r==l){let a=e(o);a<r?(t="delete.backward",a=b0(n,a,!1)):a>r&&(t="delete.forward",a=b0(n,a,!0)),r=Math.min(r,a),l=Math.max(l,a)}else r=b0(n,r,!1),l=b0(n,l,!0);return r==l?{range:o}:{changes:{from:r,to:l},range:O.cursor(r,r<o.head?-1:1)}});return s.changes.empty?!1:(n.dispatch(i.update(s,{scrollIntoView:!0,userEvent:t,effects:t=="delete.selection"?z.announce.of(i.phrase("Selection deleted")):void 0})),!0)}function b0(n,e,t){if(n instanceof z)for(let i of n.state.facet(z.atomicRanges).map(s=>s(n)))i.between(e,e,(s,o)=>{s<e&&o>e&&(e=t?o:s)});return e}const bc=(n,e,t)=>e0(n,i=>{let s=i.from,{state:o}=n,r=o.doc.lineAt(s),l,a;if(t&&!e&&s>r.from&&s<r.from+200&&!/[^ \t]/.test(l=r.text.slice(0,s-r.from))){if(l[l.length-1]==" ")return s-1;let h=fi(l,o.tabSize),c=h%J0(o)||J0(o);for(let f=0;f<c&&l[l.length-1-f]==" ";f++)s--;a=s}else a=xe(r.text,s-r.from,e,e)+r.from,a==s&&r.number!=(e?o.doc.lines:1)?a+=e?1:-1:!e&&/[\ufe00-\ufe0f]/.test(r.text.slice(a-r.from,s-r.from))&&(a=xe(r.text,a-r.from,!1,!1)+r.from);return a}),Xs=n=>bc(n,!1,!0),yc=n=>bc(n,!0,!1),kc=(n,e)=>e0(n,t=>{let i=t.head,{state:s}=n,o=s.doc.lineAt(i),r=s.charCategorizer(i);for(let l=null;;){if(i==(e?o.to:o.from)){i==t.head&&o.number!=(e?s.doc.lines:1)&&(i+=e?1:-1);break}let a=xe(o.text,i-o.from,e)+o.from,h=o.text.slice(Math.min(i,a)-o.from,Math.max(i,a)-o.from),c=r(h);if(l!=null&&c!=l)break;(h!=" "||i!=t.head)&&(l=c),i=a}return i}),Sc=n=>kc(n,!1),E8=n=>kc(n,!0),V8=n=>e0(n,e=>{let t=n.lineBlockAt(e.head).to;return e.head<t?t:Math.min(n.state.doc.length,e.head+1)}),z8=n=>e0(n,e=>{let t=n.moveToLineBoundary(e,!1).head;return e.head>t?t:Math.max(0,e.head-1)}),L8=n=>e0(n,e=>{let t=n.moveToLineBoundary(e,!0).head;return e.head<t?t:Math.min(n.state.doc.length,e.head+1)}),N8=({state:n,dispatch:e})=>{if(n.readOnly)return!1;let t=n.changeByRange(i=>({changes:{from:i.from,to:i.to,insert:Y.of(["",""])},range:O.cursor(i.from)}));return e(n.update(t,{scrollIntoView:!0,userEvent:"input"})),!0},R8=({state:n,dispatch:e})=>{if(n.readOnly)return!1;let t=n.changeByRange(i=>{if(!i.empty||i.from==0||i.from==n.doc.length)return{range:i};let s=i.from,o=n.doc.lineAt(s),r=s==o.from?s-1:xe(o.text,s-o.from,!1)+o.from,l=s==o.to?s+1:xe(o.text,s-o.from,!0)+o.from;return{changes:{from:r,to:l,insert:n.doc.slice(s,l).append(n.doc.slice(r,s))},range:O.cursor(l)}});return t.changes.empty?!1:(e(n.update(t,{scrollIntoView:!0,userEvent:"move.character"})),!0)};function On(n){let e=[],t=-1;for(let i of n.selection.ranges){let s=n.doc.lineAt(i.from),o=n.doc.lineAt(i.to);if(!i.empty&&i.to==o.from&&(o=n.doc.lineAt(i.to-1)),t>=s.number){let r=e[e.length-1];r.to=o.to,r.ranges.push(i)}else e.push({from:s.from,to:o.to,ranges:[i]});t=o.number+1}return e}function Cc(n,e,t){if(n.readOnly)return!1;let i=[],s=[];for(let o of On(n)){if(t?o.to==n.doc.length:o.from==0)continue;let r=n.doc.lineAt(t?o.to+1:o.from-1),l=r.length+1;if(t){i.push({from:o.to,to:r.to},{from:o.from,insert:r.text+n.lineBreak});for(let a of o.ranges)s.push(O.range(Math.min(n.doc.length,a.anchor+l),Math.min(n.doc.length,a.head+l)))}else{i.push({from:r.from,to:o.from},{from:o.to,insert:n.lineBreak+r.text});for(let a of o.ranges)s.push(O.range(a.anchor-l,a.head-l))}}return i.length?(e(n.update({changes:i,scrollIntoView:!0,selection:O.create(s,n.selection.mainIndex),userEvent:"move.line"})),!0):!1}const I8=({state:n,dispatch:e})=>Cc(n,e,!1),H8=({state:n,dispatch:e})=>Cc(n,e,!0);function _c(n,e,t){if(n.readOnly)return!1;let i=[];for(let s of On(n))t?i.push({from:s.from,insert:n.doc.slice(s.from,s.to)+n.lineBreak}):i.push({from:s.to,insert:n.lineBreak+n.doc.slice(s.from,s.to)});return e(n.update({changes:i,scrollIntoView:!0,userEvent:"input.copyline"})),!0}const $8=({state:n,dispatch:e})=>_c(n,e,!1),W8=({state:n,dispatch:e})=>_c(n,e,!0),F8=n=>{if(n.state.readOnly)return!1;let{state:e}=n,t=e.changes(On(e).map(({from:s,to:o})=>(s>0?s--:o<e.doc.length&&o++,{from:s,to:o}))),i=di(e.selection,s=>{let o;if(n.lineWrapping){let r=n.lineBlockAt(s.head),l=n.coordsAtPos(s.head,s.assoc||1);l&&(o=r.bottom+n.documentTop-l.bottom+n.defaultLineHeight/2)}return n.moveVertically(s,!0,o)}).map(t);return n.dispatch({changes:t,selection:i,scrollIntoView:!0,userEvent:"delete.line"}),!0};function G8(n,e){if(/\(\)|\[\]|\{\}/.test(n.sliceDoc(e-1,e+1)))return{from:e,to:e};let t=me(n).resolveInner(e),i=t.childBefore(e),s=t.childAfter(e),o;return i&&s&&i.to<=e&&s.from>=e&&(o=i.type.prop(j.closedBy))&&o.indexOf(s.name)>-1&&n.doc.lineAt(i.to).from==n.doc.lineAt(s.from).from&&!/\S/.test(n.sliceDoc(i.to,s.from))?{from:i.to,to:s.from}:null}const dr=Oc(!1),j8=Oc(!0);function Oc(n){return({state:e,dispatch:t})=>{if(e.readOnly)return!1;let i=e.changeByRange(s=>{let{from:o,to:r}=s,l=e.doc.lineAt(o),a=!n&&o==r&&G8(e,o);n&&(o=r=(r<=l.to?l:e.doc.lineAt(r)).to);let h=new bn(e,{simulateBreak:o,simulateDoubleBreak:!!a}),c=C2(h,o);for(c==null&&(c=fi(/^\s*/.exec(e.doc.lineAt(o).text)[0],e.tabSize));r<l.to&&/\s/.test(l.text[r-l.from]);)r++;a?{from:o,to:r}=a:o>l.from&&o<l.from+100&&!/\S/.test(l.text.slice(0,o))&&(o=l.from);let f=["",Gi(e,c)];return a&&f.push(Gi(e,h.lineIndent(l.from,-1))),{changes:{from:o,to:r,insert:Y.of(f)},range:O.cursor(o+1+f[1].length)}});return t(e.update(i,{scrollIntoView:!0,userEvent:"input"})),!0}}function D2(n,e){let t=-1;return n.changeByRange(i=>{let s=[];for(let r=i.from;r<=i.to;){let l=n.doc.lineAt(r);l.number>t&&(i.empty||i.to>l.from)&&(e(l,s,i),t=l.number),r=l.to+1}let o=n.changes(s);return{changes:s,range:O.range(o.mapPos(i.anchor,1),o.mapPos(i.head,1))}})}const q8=({state:n,dispatch:e})=>{if(n.readOnly)return!1;let t=Object.create(null),i=new bn(n,{overrideIndentation:o=>{let r=t[o];return r??-1}}),s=D2(n,(o,r,l)=>{let a=C2(i,o.from);if(a==null)return;/\S/.test(o.text)||(a=0);let h=/^\s*/.exec(o.text)[0],c=Gi(n,a);(h!=c||l.from<o.from+h.length)&&(t[o.from]=a,r.push({from:o.from,to:o.from+h.length,insert:c}))});return s.changes.empty||e(n.update(s,{userEvent:"indent"})),!0},U8=({state:n,dispatch:e})=>n.readOnly?!1:(e(n.update(D2(n,(t,i)=>{i.push({from:t.from,insert:n.facet(S2)})}),{userEvent:"input.indent"})),!0),Y8=({state:n,dispatch:e})=>n.readOnly?!1:(e(n.update(D2(n,(t,i)=>{let s=/^\s*/.exec(t.text)[0];if(!s)return;let o=fi(s,n.tabSize),r=0,l=Gi(n,Math.max(0,o-J0(n)));for(;r<s.length&&r<l.length&&s.charCodeAt(r)==l.charCodeAt(r);)r++;i.push({from:t.from+r,to:t.from+s.length,insert:l.slice(r)})}),{userEvent:"delete.dedent"})),!0),K8=n=>(n.setTabFocusMode(),!0),X8=[{key:"Ctrl-b",run:sc,shift:dc,preventDefault:!0},{key:"Ctrl-f",run:oc,shift:pc},{key:"Ctrl-p",run:ac,shift:vc},{key:"Ctrl-n",run:cc,shift:wc},{key:"Ctrl-a",run:g8,shift:M8},{key:"Ctrl-e",run:m8,shift:D8},{key:"Ctrl-d",run:yc},{key:"Ctrl-h",run:Xs},{key:"Ctrl-k",run:V8},{key:"Ctrl-Alt-h",run:Sc},{key:"Ctrl-o",run:N8},{key:"Ctrl-t",run:R8},{key:"Ctrl-v",run:Ks}],Q8=[{key:"ArrowLeft",run:sc,shift:dc,preventDefault:!0},{key:"Mod-ArrowLeft",mac:"Alt-ArrowLeft",run:r8,shift:x8,preventDefault:!0},{mac:"Cmd-ArrowLeft",run:d8,shift:_8,preventDefault:!0},{key:"ArrowRight",run:oc,shift:pc,preventDefault:!0},{key:"Mod-ArrowRight",mac:"Alt-ArrowRight",run:l8,shift:b8,preventDefault:!0},{mac:"Cmd-ArrowRight",run:p8,shift:O8,preventDefault:!0},{key:"ArrowUp",run:ac,shift:vc,preventDefault:!0},{mac:"Cmd-ArrowUp",run:cr,shift:ur},{mac:"Ctrl-ArrowUp",run:rr,shift:lr},{key:"ArrowDown",run:cc,shift:wc,preventDefault:!0},{mac:"Cmd-ArrowDown",run:hr,shift:fr},{mac:"Ctrl-ArrowDown",run:Ks,shift:ar},{key:"PageUp",run:rr,shift:lr},{key:"PageDown",run:Ks,shift:ar},{key:"Home",run:f8,shift:C8,preventDefault:!0},{key:"Mod-Home",run:cr,shift:ur},{key:"End",run:u8,shift:S8,preventDefault:!0},{key:"Mod-End",run:hr,shift:fr},{key:"Enter",run:dr,shift:dr},{key:"Mod-a",run:T8},{key:"Backspace",run:Xs,shift:Xs},{key:"Delete",run:yc},{key:"Mod-Backspace",mac:"Alt-Backspace",run:Sc},{key:"Mod-Delete",mac:"Alt-Delete",run:E8},{mac:"Mod-Backspace",run:z8},{mac:"Mod-Delete",run:L8}].concat(X8.map(n=>({mac:n.key,run:n.run,shift:n.shift}))),J8=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:c8,shift:y8},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:h8,shift:k8},{key:"Alt-ArrowUp",run:I8},{key:"Shift-Alt-ArrowUp",run:$8},{key:"Alt-ArrowDown",run:H8},{key:"Shift-Alt-ArrowDown",run:W8},{key:"Escape",run:P8},{key:"Mod-Enter",run:j8},{key:"Alt-l",mac:"Ctrl-l",run:A8},{key:"Mod-i",run:B8,preventDefault:!0},{key:"Mod-[",run:Y8},{key:"Mod-]",run:U8},{key:"Mod-Alt-\\",run:q8},{key:"Shift-Mod-k",run:F8},{key:"Shift-Mod-\\",run:w8},{key:"Mod-/",run:$p},{key:"Alt-A",run:Fp},{key:"Ctrl-m",mac:"Shift-Alt-m",run:K8}].concat(Q8),pr=typeof String.prototype.normalize=="function"?n=>n.normalize("NFKD"):n=>n;class hi{constructor(e,t,i=0,s=e.length,o,r){this.test=r,this.value={from:0,to:0},this.done=!1,this.matches=[],this.buffer="",this.bufferPos=0,this.iter=e.iterRange(i,s),this.bufferStart=i,this.normalize=o?l=>o(pr(l)):pr,this.query=this.normalize(t)}peek(){if(this.bufferPos==this.buffer.length){if(this.bufferStart+=this.buffer.length,this.iter.next(),this.iter.done)return-1;this.bufferPos=0,this.buffer=this.iter.value}return Te(this.buffer,this.bufferPos)}next(){for(;this.matches.length;)this.matches.pop();return this.nextOverlapping()}nextOverlapping(){for(;;){let e=this.peek();if(e<0)return this.done=!0,this;let t=i2(e),i=this.bufferStart+this.bufferPos;this.bufferPos+=tt(e);let s=this.normalize(t);if(s.length)for(let o=0,r=i;;o++){let l=s.charCodeAt(o),a=this.match(l,r,this.bufferPos+this.bufferStart);if(o==s.length-1){if(a)return this.value=a,this;break}r==i&&o<t.length&&t.charCodeAt(o)==l&&r++}}}match(e,t,i){let s=null;for(let o=0;o<this.matches.length;o+=2){let r=this.matches[o],l=!1;this.query.charCodeAt(r)==e&&(r==this.query.length-1?s={from:this.matches[o+1],to:i}:(this.matches[o]++,l=!0)),l||(this.matches.splice(o,2),o-=2)}return this.query.charCodeAt(0)==e&&(this.query.length==1?s={from:t,to:i}:this.matches.push(1,t)),s&&this.test&&!this.test(s.from,s.to,this.buffer,this.bufferStart)&&(s=null),s}}typeof Symbol<"u"&&(hi.prototype[Symbol.iterator]=function(){return this});const Mc={from:-1,to:-1,match:/.*/.exec("")},T2="gm"+(/x/.unicode==null?"":"u");class Dc{constructor(e,t,i,s=0,o=e.length){if(this.text=e,this.to=o,this.curLine="",this.done=!1,this.value=Mc,/\\[sWDnr]|\n|\r|\[\^/.test(t))return new Tc(e,t,i,s,o);this.re=new RegExp(t,T2+(i!=null&&i.ignoreCase?"i":"")),this.test=i==null?void 0:i.test,this.iter=e.iter();let r=e.lineAt(s);this.curLineStart=r.from,this.matchPos=nn(e,s),this.getLine(this.curLineStart)}getLine(e){this.iter.next(e),this.iter.lineBreak?this.curLine="":(this.curLine=this.iter.value,this.curLineStart+this.curLine.length>this.to&&(this.curLine=this.curLine.slice(0,this.to-this.curLineStart)),this.iter.next())}nextLine(){this.curLineStart=this.curLineStart+this.curLine.length+1,this.curLineStart>this.to?this.curLine="":this.getLine(0)}next(){for(let e=this.matchPos-this.curLineStart;;){this.re.lastIndex=e;let t=this.matchPos<=this.to&&this.re.exec(this.curLine);if(t){let i=this.curLineStart+t.index,s=i+t[0].length;if(this.matchPos=nn(this.text,s+(i==s?1:0)),i==this.curLineStart+this.curLine.length&&this.nextLine(),(i<s||i>this.value.to)&&(!this.test||this.test(i,s,t)))return this.value={from:i,to:s,match:t},this;e=this.matchPos-this.curLineStart}else if(this.curLineStart+this.curLine.length<this.to)this.nextLine(),e=0;else return this.done=!0,this}}}const Xn=new WeakMap;class ii{constructor(e,t){this.from=e,this.text=t}get to(){return this.from+this.text.length}static get(e,t,i){let s=Xn.get(e);if(!s||s.from>=i||s.to<=t){let l=new ii(t,e.sliceString(t,i));return Xn.set(e,l),l}if(s.from==t&&s.to==i)return s;let{text:o,from:r}=s;return r>t&&(o=e.sliceString(t,r)+o,r=t),s.to<i&&(o+=e.sliceString(s.to,i)),Xn.set(e,new ii(r,o)),new ii(t,o.slice(t-r,i-r))}}class Tc{constructor(e,t,i,s,o){this.text=e,this.to=o,this.done=!1,this.value=Mc,this.matchPos=nn(e,s),this.re=new RegExp(t,T2+(i!=null&&i.ignoreCase?"i":"")),this.test=i==null?void 0:i.test,this.flat=ii.get(e,s,this.chunkEnd(s+5e3))}chunkEnd(e){return e>=this.to?this.to:this.text.lineAt(e).to}next(){for(;;){let e=this.re.lastIndex=this.matchPos-this.flat.from,t=this.re.exec(this.flat.text);if(t&&!t[0]&&t.index==e&&(this.re.lastIndex=e+1,t=this.re.exec(this.flat.text)),t){let i=this.flat.from+t.index,s=i+t[0].length;if((this.flat.to>=this.to||t.index+t[0].length<=this.flat.text.length-10)&&(!this.test||this.test(i,s,t)))return this.value={from:i,to:s,match:t},this.matchPos=nn(this.text,s+(i==s?1:0)),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=ii.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+this.flat.text.length*2))}}}typeof Symbol<"u"&&(Dc.prototype[Symbol.iterator]=Tc.prototype[Symbol.iterator]=function(){return this});function Z8(n){try{return new RegExp(n,T2),!0}catch{return!1}}function nn(n,e){if(e>=n.length)return e;let t=n.lineAt(e),i;for(;e<t.to&&(i=t.text.charCodeAt(e-t.from))>=56320&&i<57344;)e++;return e}function Qs(n){let e=String(n.state.doc.lineAt(n.state.selection.main.head).number),t=J("input",{class:"cm-textfield",name:"line",value:e}),i=J("form",{class:"cm-gotoLine",onkeydown:o=>{o.keyCode==27?(o.preventDefault(),n.dispatch({effects:Bi.of(!1)}),n.focus()):o.keyCode==13&&(o.preventDefault(),s())},onsubmit:o=>{o.preventDefault(),s()}},J("label",n.state.phrase("Go to line"),": ",t)," ",J("button",{class:"cm-button",type:"submit"},n.state.phrase("go")),J("button",{name:"close",onclick:()=>{n.dispatch({effects:Bi.of(!1)}),n.focus()},"aria-label":n.state.phrase("close"),type:"button"},["×"]));function s(){let o=/^([+-])?(\d+)?(:\d+)?(%)?$/.exec(t.value);if(!o)return;let{state:r}=n,l=r.doc.lineAt(r.selection.main.head),[,a,h,c,f]=o,d=c?+c.slice(1):0,p=h?+h:l.number;if(h&&f){let v=p/100;a&&(v=v*(a=="-"?-1:1)+l.number/r.doc.lines),p=Math.round(r.doc.lines*v)}else h&&a&&(p=p*(a=="-"?-1:1)+l.number);let g=r.doc.line(Math.max(1,Math.min(r.doc.lines,p))),m=O.cursor(g.from+Math.max(0,Math.min(d,g.length)));n.dispatch({effects:[Bi.of(!1),z.scrollIntoView(m.from,{y:"center"})],selection:m}),n.focus()}return{dom:i}}const Bi=G.define(),gr=be.define({create(){return!0},update(n,e){for(let t of e.effects)t.is(Bi)&&(n=t.value);return n},provide:n=>Wi.from(n,e=>e?Qs:null)}),e5=n=>{let e=$i(n,Qs);if(!e){let t=[Bi.of(!0)];n.state.field(gr,!1)==null&&t.push(G.appendConfig.of([gr,t5])),n.dispatch({effects:t}),e=$i(n,Qs)}return e&&e.dom.querySelector("input").select(),!0},t5=z.baseTheme({".cm-panel.cm-gotoLine":{padding:"2px 6px 4px",position:"relative","& label":{fontSize:"80%"},"& [name=close]":{position:"absolute",top:"0",bottom:"0",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",padding:"0"}}}),i5={highlightWordAroundCursor:!1,minSelectionLength:1,maxMatches:100,wholeWords:!1},n5=L.define({combine(n){return lt(n,i5,{highlightWordAroundCursor:(e,t)=>e||t,minSelectionLength:Math.min,maxMatches:Math.min})}});function s5(n){return[c5,a5]}const o5=W.mark({class:"cm-selectionMatch"}),r5=W.mark({class:"cm-selectionMatch cm-selectionMatch-main"});function mr(n,e,t,i){return(t==0||n(e.sliceDoc(t-1,t))!=oe.Word)&&(i==e.doc.length||n(e.sliceDoc(i,i+1))!=oe.Word)}function l5(n,e,t,i){return n(e.sliceDoc(t,t+1))==oe.Word&&n(e.sliceDoc(i-1,i))==oe.Word}const a5=he.fromClass(class{constructor(n){this.decorations=this.getDeco(n)}update(n){(n.selectionSet||n.docChanged||n.viewportChanged)&&(this.decorations=this.getDeco(n.view))}getDeco(n){let e=n.state.facet(n5),{state:t}=n,i=t.selection;if(i.ranges.length>1)return W.none;let s=i.main,o,r=null;if(s.empty){if(!e.highlightWordAroundCursor)return W.none;let a=t.wordAt(s.head);if(!a)return W.none;r=t.charCategorizer(s.head),o=t.sliceDoc(a.from,a.to)}else{let a=s.to-s.from;if(a<e.minSelectionLength||a>200)return W.none;if(e.wholeWords){if(o=t.sliceDoc(s.from,s.to),r=t.charCategorizer(s.head),!(mr(r,t,s.from,s.to)&&l5(r,t,s.from,s.to)))return W.none}else if(o=t.sliceDoc(s.from,s.to),!o)return W.none}let l=[];for(let a of n.visibleRanges){let h=new hi(t.doc,o,a.from,a.to);for(;!h.next().done;){let{from:c,to:f}=h.value;if((!r||mr(r,t,c,f))&&(s.empty&&c<=s.from&&f>=s.to?l.push(r5.range(c,f)):(c>=s.to||f<=s.from)&&l.push(o5.range(c,f)),l.length>e.maxMatches))return W.none}}return W.set(l)}},{decorations:n=>n.decorations}),c5=z.baseTheme({".cm-selectionMatch":{backgroundColor:"#99ff7780"},".cm-searchMatch .cm-selectionMatch":{backgroundColor:"transparent"}}),h5=({state:n,dispatch:e})=>{let{selection:t}=n,i=O.create(t.ranges.map(s=>n.wordAt(s.head)||O.cursor(s.head)),t.mainIndex);return i.eq(t)?!1:(e(n.update({selection:i})),!0)};function u5(n,e){let{main:t,ranges:i}=n.selection,s=n.wordAt(t.head),o=s&&s.from==t.from&&s.to==t.to;for(let r=!1,l=new hi(n.doc,e,i[i.length-1].to);;)if(l.next(),l.done){if(r)return null;l=new hi(n.doc,e,0,Math.max(0,i[i.length-1].from-1)),r=!0}else{if(r&&i.some(a=>a.from==l.value.from))continue;if(o){let a=n.wordAt(l.value.from);if(!a||a.from!=l.value.from||a.to!=l.value.to)continue}return l.value}}const f5=({state:n,dispatch:e})=>{let{ranges:t}=n.selection;if(t.some(o=>o.from===o.to))return h5({state:n,dispatch:e});let i=n.sliceDoc(t[0].from,t[0].to);if(n.selection.ranges.some(o=>n.sliceDoc(o.from,o.to)!=i))return!1;let s=u5(n,i);return s?(e(n.update({selection:n.selection.addRange(O.range(s.from,s.to),!1),effects:z.scrollIntoView(s.to)})),!0):!1},pi=L.define({combine(n){return lt(n,{top:!1,caseSensitive:!1,literal:!1,regexp:!1,wholeWord:!1,createPanel:e=>new C5(e),scrollToMatch:e=>z.scrollIntoView(e)})}});class Ac{constructor(e){this.search=e.search,this.caseSensitive=!!e.caseSensitive,this.literal=!!e.literal,this.regexp=!!e.regexp,this.replace=e.replace||"",this.valid=!!this.search&&(!this.regexp||Z8(this.search)),this.unquoted=this.unquote(this.search),this.wholeWord=!!e.wholeWord}unquote(e){return this.literal?e:e.replace(/\\([nrt\\])/g,(t,i)=>i=="n"?`
|
|
12
|
+
`:i=="r"?"\r":i=="t"?" ":"\\")}eq(e){return this.search==e.search&&this.replace==e.replace&&this.caseSensitive==e.caseSensitive&&this.regexp==e.regexp&&this.wholeWord==e.wholeWord}create(){return this.regexp?new m5(this):new p5(this)}getCursor(e,t=0,i){let s=e.doc?e:q.create({doc:e});return i==null&&(i=s.doc.length),this.regexp?Yt(this,s,t,i):Ut(this,s,t,i)}}class Bc{constructor(e){this.spec=e}}function Ut(n,e,t,i){return new hi(e.doc,n.unquoted,t,i,n.caseSensitive?void 0:s=>s.toLowerCase(),n.wholeWord?d5(e.doc,e.charCategorizer(e.selection.main.head)):void 0)}function d5(n,e){return(t,i,s,o)=>((o>t||o+s.length<i)&&(o=Math.max(0,t-2),s=n.sliceString(o,Math.min(n.length,i+2))),(e(sn(s,t-o))!=oe.Word||e(on(s,t-o))!=oe.Word)&&(e(on(s,i-o))!=oe.Word||e(sn(s,i-o))!=oe.Word))}class p5 extends Bc{constructor(e){super(e)}nextMatch(e,t,i){let s=Ut(this.spec,e,i,e.doc.length).nextOverlapping();if(s.done){let o=Math.min(e.doc.length,t+this.spec.unquoted.length);s=Ut(this.spec,e,0,o).nextOverlapping()}return s.done||s.value.from==t&&s.value.to==i?null:s.value}prevMatchInRange(e,t,i){for(let s=i;;){let o=Math.max(t,s-1e4-this.spec.unquoted.length),r=Ut(this.spec,e,o,s),l=null;for(;!r.nextOverlapping().done;)l=r.value;if(l)return l;if(o==t)return null;s-=1e4}}prevMatch(e,t,i){let s=this.prevMatchInRange(e,0,t);return s||(s=this.prevMatchInRange(e,Math.max(0,i-this.spec.unquoted.length),e.doc.length)),s&&(s.from!=t||s.to!=i)?s:null}getReplacement(e){return this.spec.unquote(this.spec.replace)}matchAll(e,t){let i=Ut(this.spec,e,0,e.doc.length),s=[];for(;!i.next().done;){if(s.length>=t)return null;s.push(i.value)}return s}highlight(e,t,i,s){let o=Ut(this.spec,e,Math.max(0,t-this.spec.unquoted.length),Math.min(i+this.spec.unquoted.length,e.doc.length));for(;!o.next().done;)s(o.value.from,o.value.to)}}function Yt(n,e,t,i){return new Dc(e.doc,n.search,{ignoreCase:!n.caseSensitive,test:n.wholeWord?g5(e.charCategorizer(e.selection.main.head)):void 0},t,i)}function sn(n,e){return n.slice(xe(n,e,!1),e)}function on(n,e){return n.slice(e,xe(n,e))}function g5(n){return(e,t,i)=>!i[0].length||(n(sn(i.input,i.index))!=oe.Word||n(on(i.input,i.index))!=oe.Word)&&(n(on(i.input,i.index+i[0].length))!=oe.Word||n(sn(i.input,i.index+i[0].length))!=oe.Word)}class m5 extends Bc{nextMatch(e,t,i){let s=Yt(this.spec,e,i,e.doc.length).next();return s.done&&(s=Yt(this.spec,e,0,t).next()),s.done?null:s.value}prevMatchInRange(e,t,i){for(let s=1;;s++){let o=Math.max(t,i-s*1e4),r=Yt(this.spec,e,o,i),l=null;for(;!r.next().done;)l=r.value;if(l&&(o==t||l.from>o+10))return l;if(o==t)return null}}prevMatch(e,t,i){return this.prevMatchInRange(e,0,t)||this.prevMatchInRange(e,i,e.doc.length)}getReplacement(e){return this.spec.unquote(this.spec.replace).replace(/\$([$&]|\d+)/g,(t,i)=>{if(i=="&")return e.match[0];if(i=="$")return"$";for(let s=i.length;s>0;s--){let o=+i.slice(0,s);if(o>0&&o<e.match.length)return e.match[o]+i.slice(s)}return t})}matchAll(e,t){let i=Yt(this.spec,e,0,e.doc.length),s=[];for(;!i.next().done;){if(s.length>=t)return null;s.push(i.value)}return s}highlight(e,t,i,s){let o=Yt(this.spec,e,Math.max(0,t-250),Math.min(i+250,e.doc.length));for(;!o.next().done;)s(o.value.from,o.value.to)}}const ji=G.define(),A2=G.define(),St=be.define({create(n){return new Qn(Js(n).create(),null)},update(n,e){for(let t of e.effects)t.is(ji)?n=new Qn(t.value.create(),n.panel):t.is(A2)&&(n=new Qn(n.query,t.value?B2:null));return n},provide:n=>Wi.from(n,e=>e.panel)});class Qn{constructor(e,t){this.query=e,this.panel=t}}const v5=W.mark({class:"cm-searchMatch"}),w5=W.mark({class:"cm-searchMatch cm-searchMatch-selected"}),x5=he.fromClass(class{constructor(n){this.view=n,this.decorations=this.highlight(n.state.field(St))}update(n){let e=n.state.field(St);(e!=n.startState.field(St)||n.docChanged||n.selectionSet||n.viewportChanged)&&(this.decorations=this.highlight(e))}highlight({query:n,panel:e}){if(!e||!n.spec.valid)return W.none;let{view:t}=this,i=new ft;for(let s=0,o=t.visibleRanges,r=o.length;s<r;s++){let{from:l,to:a}=o[s];for(;s<r-1&&a>o[s+1].from-2*250;)a=o[++s].to;n.highlight(t.state,l,a,(h,c)=>{let f=t.state.selection.ranges.some(d=>d.from==h&&d.to==c);i.add(h,c,f?w5:v5)})}return i.finish()}},{decorations:n=>n.decorations});function t0(n){return e=>{let t=e.state.field(St,!1);return t&&t.query.spec.valid?n(e,t):Vc(e)}}const rn=t0((n,{query:e})=>{let{to:t}=n.state.selection.main,i=e.nextMatch(n.state,t,t);if(!i)return!1;let s=O.single(i.from,i.to),o=n.state.facet(pi);return n.dispatch({selection:s,effects:[P2(n,i),o.scrollToMatch(s.main,n)],userEvent:"select.search"}),Ec(n),!0}),ln=t0((n,{query:e})=>{let{state:t}=n,{from:i}=t.selection.main,s=e.prevMatch(t,i,i);if(!s)return!1;let o=O.single(s.from,s.to),r=n.state.facet(pi);return n.dispatch({selection:o,effects:[P2(n,s),r.scrollToMatch(o.main,n)],userEvent:"select.search"}),Ec(n),!0}),b5=t0((n,{query:e})=>{let t=e.matchAll(n.state,1e3);return!t||!t.length?!1:(n.dispatch({selection:O.create(t.map(i=>O.range(i.from,i.to))),userEvent:"select.search.matches"}),!0)}),y5=({state:n,dispatch:e})=>{let t=n.selection;if(t.ranges.length>1||t.main.empty)return!1;let{from:i,to:s}=t.main,o=[],r=0;for(let l=new hi(n.doc,n.sliceDoc(i,s));!l.next().done;){if(o.length>1e3)return!1;l.value.from==i&&(r=o.length),o.push(O.range(l.value.from,l.value.to))}return e(n.update({selection:O.create(o,r),userEvent:"select.search.matches"})),!0},vr=t0((n,{query:e})=>{let{state:t}=n,{from:i,to:s}=t.selection.main;if(t.readOnly)return!1;let o=e.nextMatch(t,i,i);if(!o)return!1;let r=o,l=[],a,h,c=[];r.from==i&&r.to==s&&(h=t.toText(e.getReplacement(r)),l.push({from:r.from,to:r.to,insert:h}),r=e.nextMatch(t,r.from,r.to),c.push(z.announce.of(t.phrase("replaced match on line $",t.doc.lineAt(i).number)+".")));let f=n.state.changes(l);return r&&(a=O.single(r.from,r.to).map(f),c.push(P2(n,r)),c.push(t.facet(pi).scrollToMatch(a.main,n))),n.dispatch({changes:f,selection:a,effects:c,userEvent:"input.replace"}),!0}),k5=t0((n,{query:e})=>{if(n.state.readOnly)return!1;let t=e.matchAll(n.state,1e9).map(s=>{let{from:o,to:r}=s;return{from:o,to:r,insert:e.getReplacement(s)}});if(!t.length)return!1;let i=n.state.phrase("replaced $ matches",t.length)+".";return n.dispatch({changes:t,effects:z.announce.of(i),userEvent:"input.replace.all"}),!0});function B2(n){return n.state.facet(pi).createPanel(n)}function Js(n,e){var t,i,s,o,r;let l=n.selection.main,a=l.empty||l.to>l.from+100?"":n.sliceDoc(l.from,l.to);if(e&&!a)return e;let h=n.facet(pi);return new Ac({search:((t=e==null?void 0:e.literal)!==null&&t!==void 0?t:h.literal)?a:a.replace(/\n/g,"\\n"),caseSensitive:(i=e==null?void 0:e.caseSensitive)!==null&&i!==void 0?i:h.caseSensitive,literal:(s=e==null?void 0:e.literal)!==null&&s!==void 0?s:h.literal,regexp:(o=e==null?void 0:e.regexp)!==null&&o!==void 0?o:h.regexp,wholeWord:(r=e==null?void 0:e.wholeWord)!==null&&r!==void 0?r:h.wholeWord})}function Pc(n){let e=$i(n,B2);return e&&e.dom.querySelector("[main-field]")}function Ec(n){let e=Pc(n);e&&e==n.root.activeElement&&e.select()}const Vc=n=>{let e=n.state.field(St,!1);if(e&&e.panel){let t=Pc(n);if(t&&t!=n.root.activeElement){let i=Js(n.state,e.query.spec);i.valid&&n.dispatch({effects:ji.of(i)}),t.focus(),t.select()}}else n.dispatch({effects:[A2.of(!0),e?ji.of(Js(n.state,e.query.spec)):G.appendConfig.of(O5)]});return!0},zc=n=>{let e=n.state.field(St,!1);if(!e||!e.panel)return!1;let t=$i(n,B2);return t&&t.dom.contains(n.root.activeElement)&&n.focus(),n.dispatch({effects:A2.of(!1)}),!0},S5=[{key:"Mod-f",run:Vc,scope:"editor search-panel"},{key:"F3",run:rn,shift:ln,scope:"editor search-panel",preventDefault:!0},{key:"Mod-g",run:rn,shift:ln,scope:"editor search-panel",preventDefault:!0},{key:"Escape",run:zc,scope:"editor search-panel"},{key:"Mod-Shift-l",run:y5},{key:"Mod-Alt-g",run:e5},{key:"Mod-d",run:f5,preventDefault:!0}];class C5{constructor(e){this.view=e;let t=this.query=e.state.field(St).query.spec;this.commit=this.commit.bind(this),this.searchField=J("input",{value:t.search,placeholder:ze(e,"Find"),"aria-label":ze(e,"Find"),class:"cm-textfield",name:"search",form:"","main-field":"true",onchange:this.commit,onkeyup:this.commit}),this.replaceField=J("input",{value:t.replace,placeholder:ze(e,"Replace"),"aria-label":ze(e,"Replace"),class:"cm-textfield",name:"replace",form:"",onchange:this.commit,onkeyup:this.commit}),this.caseField=J("input",{type:"checkbox",name:"case",form:"",checked:t.caseSensitive,onchange:this.commit}),this.reField=J("input",{type:"checkbox",name:"re",form:"",checked:t.regexp,onchange:this.commit}),this.wordField=J("input",{type:"checkbox",name:"word",form:"",checked:t.wholeWord,onchange:this.commit});function i(s,o,r){return J("button",{class:"cm-button",name:s,onclick:o,type:"button"},r)}this.dom=J("div",{onkeydown:s=>this.keydown(s),class:"cm-search"},[this.searchField,i("next",()=>rn(e),[ze(e,"next")]),i("prev",()=>ln(e),[ze(e,"previous")]),i("select",()=>b5(e),[ze(e,"all")]),J("label",null,[this.caseField,ze(e,"match case")]),J("label",null,[this.reField,ze(e,"regexp")]),J("label",null,[this.wordField,ze(e,"by word")]),...e.state.readOnly?[]:[J("br"),this.replaceField,i("replace",()=>vr(e),[ze(e,"replace")]),i("replaceAll",()=>k5(e),[ze(e,"replace all")])],J("button",{name:"close",onclick:()=>zc(e),"aria-label":ze(e,"close"),type:"button"},["×"])])}commit(){let e=new Ac({search:this.searchField.value,caseSensitive:this.caseField.checked,regexp:this.reField.checked,wholeWord:this.wordField.checked,replace:this.replaceField.value});e.eq(this.query)||(this.query=e,this.view.dispatch({effects:ji.of(e)}))}keydown(e){V6(this.view,e,"search-panel")?e.preventDefault():e.keyCode==13&&e.target==this.searchField?(e.preventDefault(),(e.shiftKey?ln:rn)(this.view)):e.keyCode==13&&e.target==this.replaceField&&(e.preventDefault(),vr(this.view))}update(e){for(let t of e.transactions)for(let i of t.effects)i.is(ji)&&!i.value.eq(this.query)&&this.setQuery(i.value)}setQuery(e){this.query=e,this.searchField.value=e.search,this.replaceField.value=e.replace,this.caseField.checked=e.caseSensitive,this.reField.checked=e.regexp,this.wordField.checked=e.wholeWord}mount(){this.searchField.select()}get pos(){return 80}get top(){return this.view.state.facet(pi).top}}function ze(n,e){return n.state.phrase(e)}const y0=30,k0=/[\s\.,:;?!]/;function P2(n,{from:e,to:t}){let i=n.state.doc.lineAt(e),s=n.state.doc.lineAt(t).to,o=Math.max(i.from,e-y0),r=Math.min(s,t+y0),l=n.state.sliceDoc(o,r);if(o!=i.from){for(let a=0;a<y0;a++)if(!k0.test(l[a+1])&&k0.test(l[a])){l=l.slice(a);break}}if(r!=s){for(let a=l.length-1;a>l.length-y0;a--)if(!k0.test(l[a-1])&&k0.test(l[a])){l=l.slice(0,a);break}}return z.announce.of(`${n.state.phrase("current match")}. ${l} ${n.state.phrase("on line")} ${i.number}.`)}const _5=z.baseTheme({".cm-panel.cm-search":{padding:"2px 6px 4px",position:"relative","& [name=close]":{position:"absolute",top:"0",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",padding:0,margin:0},"& input, & button, & label":{margin:".2em .6em .2em 0"},"& input[type=checkbox]":{marginRight:".2em"},"& label":{fontSize:"80%",whiteSpace:"pre"}},"&light .cm-searchMatch":{backgroundColor:"#ffff0054"},"&dark .cm-searchMatch":{backgroundColor:"#00ffff8a"},"&light .cm-searchMatch-selected":{backgroundColor:"#ff6a0054"},"&dark .cm-searchMatch-selected":{backgroundColor:"#ff00ff8a"}}),O5=[St,jt.low(x5),_5];class Lc{constructor(e,t,i,s){this.state=e,this.pos=t,this.explicit=i,this.view=s,this.abortListeners=[],this.abortOnDocChange=!1}tokenBefore(e){let t=me(this.state).resolveInner(this.pos,-1);for(;t&&e.indexOf(t.name)<0;)t=t.parent;return t?{from:t.from,to:this.pos,text:this.state.sliceDoc(t.from,this.pos),type:t.type}:null}matchBefore(e){let t=this.state.doc.lineAt(this.pos),i=Math.max(t.from,this.pos-250),s=t.text.slice(i-t.from,this.pos-t.from),o=s.search(Nc(e,!1));return o<0?null:{from:i+o,to:this.pos,text:s.slice(o)}}get aborted(){return this.abortListeners==null}addEventListener(e,t,i){e=="abort"&&this.abortListeners&&(this.abortListeners.push(t),i&&i.onDocChange&&(this.abortOnDocChange=!0))}}function wr(n){let e=Object.keys(n).join(""),t=/\w/.test(e);return t&&(e=e.replace(/\w/g,"")),`[${t?"\\w":""}${e.replace(/[^\w\s]/g,"\\$&")}]`}function M5(n){let e=Object.create(null),t=Object.create(null);for(let{label:s}of n){e[s[0]]=!0;for(let o=1;o<s.length;o++)t[s[o]]=!0}let i=wr(e)+wr(t)+"*$";return[new RegExp("^"+i),new RegExp(i)]}function D5(n){let e=n.map(s=>typeof s=="string"?{label:s}:s),[t,i]=e.every(s=>/^\w+$/.test(s.label))?[/\w*$/,/\w+$/]:M5(e);return s=>{let o=s.matchBefore(i);return o||s.explicit?{from:o?o.from:s.pos,options:e,validFor:t}:null}}class xr{constructor(e,t,i,s){this.completion=e,this.source=t,this.match=i,this.score=s}}function It(n){return n.selection.main.from}function Nc(n,e){var t;let{source:i}=n,s=e&&i[0]!="^",o=i[i.length-1]!="$";return!s&&!o?n:new RegExp(`${s?"^":""}(?:${i})${o?"$":""}`,(t=n.flags)!==null&&t!==void 0?t:n.ignoreCase?"i":"")}const Rc=gt.define();function T5(n,e,t,i){let{main:s}=n.selection,o=t-s.from,r=i-s.from;return Object.assign(Object.assign({},n.changeByRange(l=>{if(l!=s&&t!=i&&n.sliceDoc(l.from+o,l.from+r)!=n.sliceDoc(t,i))return{range:l};let a=n.toText(e);return{changes:{from:l.from+o,to:i==s.from?l.to:l.from+r,insert:a},range:O.cursor(l.from+o+a.length)}})),{scrollIntoView:!0,userEvent:"input.complete"})}const br=new WeakMap;function A5(n){if(!Array.isArray(n))return n;let e=br.get(n);return e||br.set(n,e=D5(n)),e}const an=G.define(),qi=G.define();class B5{constructor(e){this.pattern=e,this.chars=[],this.folded=[],this.any=[],this.precise=[],this.byWord=[],this.score=0,this.matched=[];for(let t=0;t<e.length;){let i=Te(e,t),s=tt(i);this.chars.push(i);let o=e.slice(t,t+s),r=o.toUpperCase();this.folded.push(Te(r==o?o.toLowerCase():r,0)),t+=s}this.astral=e.length!=this.chars.length}ret(e,t){return this.score=e,this.matched=t,this}match(e){if(this.pattern.length==0)return this.ret(-100,[]);if(e.length<this.pattern.length)return null;let{chars:t,folded:i,any:s,precise:o,byWord:r}=this;if(t.length==1){let b=Te(e,0),S=tt(b),k=S==e.length?0:-100;if(b!=t[0])if(b==i[0])k+=-200;else return null;return this.ret(k,[0,S])}let l=e.indexOf(this.pattern);if(l==0)return this.ret(e.length==this.pattern.length?0:-100,[0,this.pattern.length]);let a=t.length,h=0;if(l<0){for(let b=0,S=Math.min(e.length,200);b<S&&h<a;){let k=Te(e,b);(k==t[h]||k==i[h])&&(s[h++]=b),b+=tt(k)}if(h<a)return null}let c=0,f=0,d=!1,p=0,g=-1,m=-1,v=/[a-z]/.test(e),w=!0;for(let b=0,S=Math.min(e.length,200),k=0;b<S&&f<a;){let y=Te(e,b);l<0&&(c<a&&y==t[c]&&(o[c++]=b),p<a&&(y==t[p]||y==i[p]?(p==0&&(g=b),m=b+1,p++):p=0));let _,C=y<255?y>=48&&y<=57||y>=97&&y<=122?2:y>=65&&y<=90?1:0:(_=i2(y))!=_.toLowerCase()?1:_!=_.toUpperCase()?2:0;(!b||C==1&&v||k==0&&C!=0)&&(t[f]==y||i[f]==y&&(d=!0)?r[f++]=b:r.length&&(w=!1)),k=C,b+=tt(y)}return f==a&&r[0]==0&&w?this.result(-100+(d?-200:0),r,e):p==a&&g==0?this.ret(-200-e.length+(m==e.length?0:-100),[0,m]):l>-1?this.ret(-700-e.length,[l,l+this.pattern.length]):p==a?this.ret(-900-e.length,[g,m]):f==a?this.result(-100+(d?-200:0)+-700+(w?0:-1100),r,e):t.length==2?null:this.result((s[0]?-700:0)+-200+-1100,s,e)}result(e,t,i){let s=[],o=0;for(let r of t){let l=r+(this.astral?tt(Te(i,r)):1);o&&s[o-1]==r?s[o-1]=l:(s[o++]=r,s[o++]=l)}return this.ret(e-i.length,s)}}class P5{constructor(e){this.pattern=e,this.matched=[],this.score=0,this.folded=e.toLowerCase()}match(e){if(e.length<this.pattern.length)return null;let t=e.slice(0,this.pattern.length),i=t==this.pattern?0:t.toLowerCase()==this.folded?-200:null;return i==null?null:(this.matched=[0,t.length],this.score=i+(e.length==this.pattern.length?0:-100),this)}}const ge=L.define({combine(n){return lt(n,{activateOnTyping:!0,activateOnCompletion:()=>!1,activateOnTypingDelay:100,selectOnOpen:!0,override:null,closeOnBlur:!0,maxRenderedOptions:100,defaultKeymap:!0,tooltipClass:()=>"",optionClass:()=>"",aboveCursor:!1,icons:!0,addToOptions:[],positionInfo:E5,filterStrict:!1,compareCompletions:(e,t)=>e.label.localeCompare(t.label),interactionDelay:75,updateSyncTime:100},{defaultKeymap:(e,t)=>e&&t,closeOnBlur:(e,t)=>e&&t,icons:(e,t)=>e&&t,tooltipClass:(e,t)=>i=>yr(e(i),t(i)),optionClass:(e,t)=>i=>yr(e(i),t(i)),addToOptions:(e,t)=>e.concat(t),filterStrict:(e,t)=>e||t})}});function yr(n,e){return n?e?n+" "+e:n:e}function E5(n,e,t,i,s,o){let r=n.textDirection==se.RTL,l=r,a=!1,h="top",c,f,d=e.left-s.left,p=s.right-e.right,g=i.right-i.left,m=i.bottom-i.top;if(l&&d<Math.min(g,p)?l=!1:!l&&p<Math.min(g,d)&&(l=!0),g<=(l?d:p))c=Math.max(s.top,Math.min(t.top,s.bottom-m))-e.top,f=Math.min(400,l?d:p);else{a=!0,f=Math.min(400,(r?e.right:s.right-e.left)-30);let b=s.bottom-e.bottom;b>=m||b>e.top?c=t.bottom-e.top:(h="bottom",c=e.bottom-t.top)}let v=(e.bottom-e.top)/o.offsetHeight,w=(e.right-e.left)/o.offsetWidth;return{style:`${h}: ${c/v}px; max-width: ${f/w}px`,class:"cm-completionInfo-"+(a?r?"left-narrow":"right-narrow":l?"left":"right")}}function V5(n){let e=n.addToOptions.slice();return n.icons&&e.push({render(t){let i=document.createElement("div");return i.classList.add("cm-completionIcon"),t.type&&i.classList.add(...t.type.split(/\s+/g).map(s=>"cm-completionIcon-"+s)),i.setAttribute("aria-hidden","true"),i},position:20}),e.push({render(t,i,s,o){let r=document.createElement("span");r.className="cm-completionLabel";let l=t.displayLabel||t.label,a=0;for(let h=0;h<o.length;){let c=o[h++],f=o[h++];c>a&&r.appendChild(document.createTextNode(l.slice(a,c)));let d=r.appendChild(document.createElement("span"));d.appendChild(document.createTextNode(l.slice(c,f))),d.className="cm-completionMatchedText",a=f}return a<l.length&&r.appendChild(document.createTextNode(l.slice(a))),r},position:50},{render(t){if(!t.detail)return null;let i=document.createElement("span");return i.className="cm-completionDetail",i.textContent=t.detail,i},position:80}),e.sort((t,i)=>t.position-i.position).map(t=>t.render)}function Jn(n,e,t){if(n<=t)return{from:0,to:n};if(e<0&&(e=0),e<=n>>1){let s=Math.floor(e/t);return{from:s*t,to:(s+1)*t}}let i=Math.floor((n-e)/t);return{from:n-(i+1)*t,to:n-i*t}}class z5{constructor(e,t,i){this.view=e,this.stateField=t,this.applyCompletion=i,this.info=null,this.infoDestroy=null,this.placeInfoReq={read:()=>this.measureInfo(),write:a=>this.placeInfo(a),key:this},this.space=null,this.currentClass="";let s=e.state.field(t),{options:o,selected:r}=s.open,l=e.state.facet(ge);this.optionContent=V5(l),this.optionClass=l.optionClass,this.tooltipClass=l.tooltipClass,this.range=Jn(o.length,r,l.maxRenderedOptions),this.dom=document.createElement("div"),this.dom.className="cm-tooltip-autocomplete",this.updateTooltipClass(e.state),this.dom.addEventListener("mousedown",a=>{let{options:h}=e.state.field(t).open;for(let c=a.target,f;c&&c!=this.dom;c=c.parentNode)if(c.nodeName=="LI"&&(f=/-(\d+)$/.exec(c.id))&&+f[1]<h.length){this.applyCompletion(e,h[+f[1]]),a.preventDefault();return}}),this.dom.addEventListener("focusout",a=>{let h=e.state.field(this.stateField,!1);h&&h.tooltip&&e.state.facet(ge).closeOnBlur&&a.relatedTarget!=e.contentDOM&&e.dispatch({effects:qi.of(null)})}),this.showOptions(o,s.id)}mount(){this.updateSel()}showOptions(e,t){this.list&&this.list.remove(),this.list=this.dom.appendChild(this.createListBox(e,t,this.range)),this.list.addEventListener("scroll",()=>{this.info&&this.view.requestMeasure(this.placeInfoReq)})}update(e){var t;let i=e.state.field(this.stateField),s=e.startState.field(this.stateField);if(this.updateTooltipClass(e.state),i!=s){let{options:o,selected:r,disabled:l}=i.open;(!s.open||s.open.options!=o)&&(this.range=Jn(o.length,r,e.state.facet(ge).maxRenderedOptions),this.showOptions(o,i.id)),this.updateSel(),l!=((t=s.open)===null||t===void 0?void 0:t.disabled)&&this.dom.classList.toggle("cm-tooltip-autocomplete-disabled",!!l)}}updateTooltipClass(e){let t=this.tooltipClass(e);if(t!=this.currentClass){for(let i of this.currentClass.split(" "))i&&this.dom.classList.remove(i);for(let i of t.split(" "))i&&this.dom.classList.add(i);this.currentClass=t}}positioned(e){this.space=e,this.info&&this.view.requestMeasure(this.placeInfoReq)}updateSel(){let e=this.view.state.field(this.stateField),t=e.open;if((t.selected>-1&&t.selected<this.range.from||t.selected>=this.range.to)&&(this.range=Jn(t.options.length,t.selected,this.view.state.facet(ge).maxRenderedOptions),this.showOptions(t.options,e.id)),this.updateSelectedOption(t.selected)){this.destroyInfo();let{completion:i}=t.options[t.selected],{info:s}=i;if(!s)return;let o=typeof s=="string"?document.createTextNode(s):s(i);if(!o)return;"then"in o?o.then(r=>{r&&this.view.state.field(this.stateField,!1)==e&&this.addInfoPane(r,i)}).catch(r=>Pe(this.view.state,r,"completion info")):this.addInfoPane(o,i)}}addInfoPane(e,t){this.destroyInfo();let i=this.info=document.createElement("div");if(i.className="cm-tooltip cm-completionInfo",e.nodeType!=null)i.appendChild(e),this.infoDestroy=null;else{let{dom:s,destroy:o}=e;i.appendChild(s),this.infoDestroy=o||null}this.dom.appendChild(i),this.view.requestMeasure(this.placeInfoReq)}updateSelectedOption(e){let t=null;for(let i=this.list.firstChild,s=this.range.from;i;i=i.nextSibling,s++)i.nodeName!="LI"||!i.id?s--:s==e?i.hasAttribute("aria-selected")||(i.setAttribute("aria-selected","true"),t=i):i.hasAttribute("aria-selected")&&i.removeAttribute("aria-selected");return t&&N5(this.list,t),t}measureInfo(){let e=this.dom.querySelector("[aria-selected]");if(!e||!this.info)return null;let t=this.dom.getBoundingClientRect(),i=this.info.getBoundingClientRect(),s=e.getBoundingClientRect(),o=this.space;if(!o){let r=this.dom.ownerDocument.documentElement;o={left:0,top:0,right:r.clientWidth,bottom:r.clientHeight}}return s.top>Math.min(o.bottom,t.bottom)-10||s.bottom<Math.max(o.top,t.top)+10?null:this.view.state.facet(ge).positionInfo(this.view,t,s,i,o,this.dom)}placeInfo(e){this.info&&(e?(e.style&&(this.info.style.cssText=e.style),this.info.className="cm-tooltip cm-completionInfo "+(e.class||"")):this.info.style.cssText="top: -1e6px")}createListBox(e,t,i){const s=document.createElement("ul");s.id=t,s.setAttribute("role","listbox"),s.setAttribute("aria-expanded","true"),s.setAttribute("aria-label",this.view.state.phrase("Completions")),s.addEventListener("mousedown",r=>{r.target==s&&r.preventDefault()});let o=null;for(let r=i.from;r<i.to;r++){let{completion:l,match:a}=e[r],{section:h}=l;if(h){let d=typeof h=="string"?h:h.name;if(d!=o&&(r>i.from||i.from==0))if(o=d,typeof h!="string"&&h.header)s.appendChild(h.header(h));else{let p=s.appendChild(document.createElement("completion-section"));p.textContent=d}}const c=s.appendChild(document.createElement("li"));c.id=t+"-"+r,c.setAttribute("role","option");let f=this.optionClass(l);f&&(c.className=f);for(let d of this.optionContent){let p=d(l,this.view.state,this.view,a);p&&c.appendChild(p)}}return i.from&&s.classList.add("cm-completionListIncompleteTop"),i.to<e.length&&s.classList.add("cm-completionListIncompleteBottom"),s}destroyInfo(){this.info&&(this.infoDestroy&&this.infoDestroy(),this.info.remove(),this.info=null)}destroy(){this.destroyInfo()}}function L5(n,e){return t=>new z5(t,n,e)}function N5(n,e){let t=n.getBoundingClientRect(),i=e.getBoundingClientRect(),s=t.height/n.offsetHeight;i.top<t.top?n.scrollTop-=(t.top-i.top)/s:i.bottom>t.bottom&&(n.scrollTop+=(i.bottom-t.bottom)/s)}function kr(n){return(n.boost||0)*100+(n.apply?10:0)+(n.info?5:0)+(n.type?1:0)}function R5(n,e){let t=[],i=null,s=h=>{t.push(h);let{section:c}=h.completion;if(c){i||(i=[]);let f=typeof c=="string"?c:c.name;i.some(d=>d.name==f)||i.push(typeof c=="string"?{name:f}:c)}},o=e.facet(ge);for(let h of n)if(h.hasResult()){let c=h.result.getMatch;if(h.result.filter===!1)for(let f of h.result.options)s(new xr(f,h.source,c?c(f):[],1e9-t.length));else{let f=e.sliceDoc(h.from,h.to),d,p=o.filterStrict?new P5(f):new B5(f);for(let g of h.result.options)if(d=p.match(g.label)){let m=g.displayLabel?c?c(g,d.matched):[]:d.matched;s(new xr(g,h.source,m,d.score+(g.boost||0)))}}}if(i){let h=Object.create(null),c=0,f=(d,p)=>{var g,m;return((g=d.rank)!==null&&g!==void 0?g:1e9)-((m=p.rank)!==null&&m!==void 0?m:1e9)||(d.name<p.name?-1:1)};for(let d of i.sort(f))c-=1e5,h[d.name]=c;for(let d of t){let{section:p}=d.completion;p&&(d.score+=h[typeof p=="string"?p:p.name])}}let r=[],l=null,a=o.compareCompletions;for(let h of t.sort((c,f)=>f.score-c.score||a(c.completion,f.completion))){let c=h.completion;!l||l.label!=c.label||l.detail!=c.detail||l.type!=null&&c.type!=null&&l.type!=c.type||l.apply!=c.apply||l.boost!=c.boost?r.push(h):kr(h.completion)>kr(l)&&(r[r.length-1]=h),l=h.completion}return r}class Jt{constructor(e,t,i,s,o,r){this.options=e,this.attrs=t,this.tooltip=i,this.timestamp=s,this.selected=o,this.disabled=r}setSelected(e,t){return e==this.selected||e>=this.options.length?this:new Jt(this.options,Sr(t,e),this.tooltip,this.timestamp,e,this.disabled)}static build(e,t,i,s,o,r){if(s&&!r&&e.some(h=>h.isPending))return s.setDisabled();let l=R5(e,t);if(!l.length)return s&&e.some(h=>h.isPending)?s.setDisabled():null;let a=t.facet(ge).selectOnOpen?0:-1;if(s&&s.selected!=a&&s.selected!=-1){let h=s.options[s.selected].completion;for(let c=0;c<l.length;c++)if(l[c].completion==h){a=c;break}}return new Jt(l,Sr(i,a),{pos:e.reduce((h,c)=>c.hasResult()?Math.min(h,c.from):h,1e8),create:G5,above:o.aboveCursor},s?s.timestamp:Date.now(),a,!1)}map(e){return new Jt(this.options,this.attrs,Object.assign(Object.assign({},this.tooltip),{pos:e.mapPos(this.tooltip.pos)}),this.timestamp,this.selected,this.disabled)}setDisabled(){return new Jt(this.options,this.attrs,this.tooltip,this.timestamp,this.selected,!0)}}class cn{constructor(e,t,i){this.active=e,this.id=t,this.open=i}static start(){return new cn(W5,"cm-ac-"+Math.floor(Math.random()*2e6).toString(36),null)}update(e){let{state:t}=e,i=t.facet(ge),o=(i.override||t.languageDataAt("autocomplete",It(t)).map(A5)).map(a=>(this.active.find(c=>c.source==a)||new $e(a,this.active.some(c=>c.state!=0)?1:0)).update(e,i));o.length==this.active.length&&o.every((a,h)=>a==this.active[h])&&(o=this.active);let r=this.open,l=e.effects.some(a=>a.is(E2));r&&e.docChanged&&(r=r.map(e.changes)),e.selection||o.some(a=>a.hasResult()&&e.changes.touchesRange(a.from,a.to))||!I5(o,this.active)||l?r=Jt.build(o,t,this.id,r,i,l):r&&r.disabled&&!o.some(a=>a.isPending)&&(r=null),!r&&o.every(a=>!a.isPending)&&o.some(a=>a.hasResult())&&(o=o.map(a=>a.hasResult()?new $e(a.source,0):a));for(let a of e.effects)a.is(Hc)&&(r=r&&r.setSelected(a.value,this.id));return o==this.active&&r==this.open?this:new cn(o,this.id,r)}get tooltip(){return this.open?this.open.tooltip:null}get attrs(){return this.open?this.open.attrs:this.active.length?H5:$5}}function I5(n,e){if(n==e)return!0;for(let t=0,i=0;;){for(;t<n.length&&!n[t].hasResult();)t++;for(;i<e.length&&!e[i].hasResult();)i++;let s=t==n.length,o=i==e.length;if(s||o)return s==o;if(n[t++].result!=e[i++].result)return!1}}const H5={"aria-autocomplete":"list"},$5={};function Sr(n,e){let t={"aria-autocomplete":"list","aria-haspopup":"listbox","aria-controls":n};return e>-1&&(t["aria-activedescendant"]=n+"-"+e),t}const W5=[];function Ic(n,e){if(n.isUserEvent("input.complete")){let i=n.annotation(Rc);if(i&&e.activateOnCompletion(i))return 12}let t=n.isUserEvent("input.type");return t&&e.activateOnTyping?5:t?1:n.isUserEvent("delete.backward")?2:n.selection?8:n.docChanged?16:0}class $e{constructor(e,t,i=!1){this.source=e,this.state=t,this.explicit=i}hasResult(){return!1}get isPending(){return this.state==1}update(e,t){let i=Ic(e,t),s=this;(i&8||i&16&&this.touches(e))&&(s=new $e(s.source,0)),i&4&&s.state==0&&(s=new $e(this.source,1)),s=s.updateFor(e,i);for(let o of e.effects)if(o.is(an))s=new $e(s.source,1,o.value);else if(o.is(qi))s=new $e(s.source,0);else if(o.is(E2))for(let r of o.value)r.source==s.source&&(s=r);return s}updateFor(e,t){return this.map(e.changes)}map(e){return this}touches(e){return e.changes.touchesRange(It(e.state))}}class ni extends $e{constructor(e,t,i,s,o,r){super(e,3,t),this.limit=i,this.result=s,this.from=o,this.to=r}hasResult(){return!0}updateFor(e,t){var i;if(!(t&3))return this.map(e.changes);let s=this.result;s.map&&!e.changes.empty&&(s=s.map(s,e.changes));let o=e.changes.mapPos(this.from),r=e.changes.mapPos(this.to,1),l=It(e.state);if(l>r||!s||t&2&&(It(e.startState)==this.from||l<this.limit))return new $e(this.source,t&4?1:0);let a=e.changes.mapPos(this.limit);return F5(s.validFor,e.state,o,r)?new ni(this.source,this.explicit,a,s,o,r):s.update&&(s=s.update(s,o,r,new Lc(e.state,l,!1)))?new ni(this.source,this.explicit,a,s,s.from,(i=s.to)!==null&&i!==void 0?i:It(e.state)):new $e(this.source,1,this.explicit)}map(e){return e.empty?this:(this.result.map?this.result.map(this.result,e):this.result)?new ni(this.source,this.explicit,e.mapPos(this.limit),this.result,e.mapPos(this.from),e.mapPos(this.to,1)):new $e(this.source,0)}touches(e){return e.changes.touchesRange(this.from,this.to)}}function F5(n,e,t,i){if(!n)return!1;let s=e.sliceDoc(t,i);return typeof n=="function"?n(s,t,i,e):Nc(n,!0).test(s)}const E2=G.define({map(n,e){return n.map(t=>t.map(e))}}),Hc=G.define(),Be=be.define({create(){return cn.start()},update(n,e){return n.update(e)},provide:n=>[w2.from(n,e=>e.tooltip),z.contentAttributes.from(n,e=>e.attrs)]});function V2(n,e){const t=e.completion.apply||e.completion.label;let i=n.state.field(Be).active.find(s=>s.source==e.source);return i instanceof ni?(typeof t=="string"?n.dispatch(Object.assign(Object.assign({},T5(n.state,t,i.from,i.to)),{annotations:Rc.of(e.completion)})):t(n,e.completion,i.from,i.to),!0):!1}const G5=L5(Be,V2);function S0(n,e="option"){return t=>{let i=t.state.field(Be,!1);if(!i||!i.open||i.open.disabled||Date.now()-i.open.timestamp<t.state.facet(ge).interactionDelay)return!1;let s=1,o;e=="page"&&(o=Sa(t,i.open.tooltip))&&(s=Math.max(2,Math.floor(o.dom.offsetHeight/o.dom.querySelector("li").offsetHeight)-1));let{length:r}=i.open.options,l=i.open.selected>-1?i.open.selected+s*(n?1:-1):n?0:r-1;return l<0?l=e=="page"?0:r-1:l>=r&&(l=e=="page"?r-1:0),t.dispatch({effects:Hc.of(l)}),!0}}const j5=n=>{let e=n.state.field(Be,!1);return n.state.readOnly||!e||!e.open||e.open.selected<0||e.open.disabled||Date.now()-e.open.timestamp<n.state.facet(ge).interactionDelay?!1:V2(n,e.open.options[e.open.selected])},Cr=n=>n.state.field(Be,!1)?(n.dispatch({effects:an.of(!0)}),!0):!1,q5=n=>{let e=n.state.field(Be,!1);return!e||!e.active.some(t=>t.state!=0)?!1:(n.dispatch({effects:qi.of(null)}),!0)};class U5{constructor(e,t){this.active=e,this.context=t,this.time=Date.now(),this.updates=[],this.done=void 0}}const Y5=50,K5=1e3,X5=he.fromClass(class{constructor(n){this.view=n,this.debounceUpdate=-1,this.running=[],this.debounceAccept=-1,this.pendingStart=!1,this.composing=0;for(let e of n.state.field(Be).active)e.isPending&&this.startQuery(e)}update(n){let e=n.state.field(Be),t=n.state.facet(ge);if(!n.selectionSet&&!n.docChanged&&n.startState.field(Be)==e)return;let i=n.transactions.some(o=>{let r=Ic(o,t);return r&8||(o.selection||o.docChanged)&&!(r&3)});for(let o=0;o<this.running.length;o++){let r=this.running[o];if(i||r.context.abortOnDocChange&&n.docChanged||r.updates.length+n.transactions.length>Y5&&Date.now()-r.time>K5){for(let l of r.context.abortListeners)try{l()}catch(a){Pe(this.view.state,a)}r.context.abortListeners=null,this.running.splice(o--,1)}else r.updates.push(...n.transactions)}this.debounceUpdate>-1&&clearTimeout(this.debounceUpdate),n.transactions.some(o=>o.effects.some(r=>r.is(an)))&&(this.pendingStart=!0);let s=this.pendingStart?50:t.activateOnTypingDelay;if(this.debounceUpdate=e.active.some(o=>o.isPending&&!this.running.some(r=>r.active.source==o.source))?setTimeout(()=>this.startUpdate(),s):-1,this.composing!=0)for(let o of n.transactions)o.isUserEvent("input.type")?this.composing=2:this.composing==2&&o.selection&&(this.composing=3)}startUpdate(){this.debounceUpdate=-1,this.pendingStart=!1;let{state:n}=this.view,e=n.field(Be);for(let t of e.active)t.isPending&&!this.running.some(i=>i.active.source==t.source)&&this.startQuery(t);this.running.length&&e.open&&e.open.disabled&&(this.debounceAccept=setTimeout(()=>this.accept(),this.view.state.facet(ge).updateSyncTime))}startQuery(n){let{state:e}=this.view,t=It(e),i=new Lc(e,t,n.explicit,this.view),s=new U5(n,i);this.running.push(s),Promise.resolve(n.source(i)).then(o=>{s.context.aborted||(s.done=o||null,this.scheduleAccept())},o=>{this.view.dispatch({effects:qi.of(null)}),Pe(this.view.state,o)})}scheduleAccept(){this.running.every(n=>n.done!==void 0)?this.accept():this.debounceAccept<0&&(this.debounceAccept=setTimeout(()=>this.accept(),this.view.state.facet(ge).updateSyncTime))}accept(){var n;this.debounceAccept>-1&&clearTimeout(this.debounceAccept),this.debounceAccept=-1;let e=[],t=this.view.state.facet(ge),i=this.view.state.field(Be);for(let s=0;s<this.running.length;s++){let o=this.running[s];if(o.done===void 0)continue;if(this.running.splice(s--,1),o.done){let l=It(o.updates.length?o.updates[0].startState:this.view.state),a=Math.min(l,o.done.from+(o.active.explicit?0:1)),h=new ni(o.active.source,o.active.explicit,a,o.done,o.done.from,(n=o.done.to)!==null&&n!==void 0?n:l);for(let c of o.updates)h=h.update(c,t);if(h.hasResult()){e.push(h);continue}}let r=i.active.find(l=>l.source==o.active.source);if(r&&r.isPending)if(o.done==null){let l=new $e(o.active.source,0);for(let a of o.updates)l=l.update(a,t);l.isPending||e.push(l)}else this.startQuery(r)}(e.length||i.open&&i.open.disabled)&&this.view.dispatch({effects:E2.of(e)})}},{eventHandlers:{blur(n){let e=this.view.state.field(Be,!1);if(e&&e.tooltip&&this.view.state.facet(ge).closeOnBlur){let t=e.open&&Sa(this.view,e.open.tooltip);(!t||!t.dom.contains(n.relatedTarget))&&setTimeout(()=>this.view.dispatch({effects:qi.of(null)}),10)}},compositionstart(){this.composing=1},compositionend(){this.composing==3&&setTimeout(()=>this.view.dispatch({effects:an.of(!1)}),20),this.composing=0}}}),Q5=typeof navigator=="object"&&/Win/.test(navigator.platform),J5=jt.highest(z.domEventHandlers({keydown(n,e){let t=e.state.field(Be,!1);if(!t||!t.open||t.open.disabled||t.open.selected<0||n.key.length>1||n.ctrlKey&&!(Q5&&n.altKey)||n.metaKey)return!1;let i=t.open.options[t.open.selected],s=t.active.find(r=>r.source==i.source),o=i.completion.commitCharacters||s.result.commitCharacters;return o&&o.indexOf(n.key)>-1&&V2(e,i),!1}})),Z5=z.baseTheme({".cm-tooltip.cm-tooltip-autocomplete":{"& > ul":{fontFamily:"monospace",whiteSpace:"nowrap",overflow:"hidden auto",maxWidth_fallback:"700px",maxWidth:"min(700px, 95vw)",minWidth:"250px",maxHeight:"10em",height:"100%",listStyle:"none",margin:0,padding:0,"& > li, & > completion-section":{padding:"1px 3px",lineHeight:1.2},"& > li":{overflowX:"hidden",textOverflow:"ellipsis",cursor:"pointer"},"& > completion-section":{display:"list-item",borderBottom:"1px solid silver",paddingLeft:"0.5em",opacity:.7}}},"&light .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#17c",color:"white"},"&light .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#777"},"&dark .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#347",color:"white"},"&dark .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#444"},".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after":{content:'"···"',opacity:.5,display:"block",textAlign:"center"},".cm-tooltip.cm-completionInfo":{position:"absolute",padding:"3px 9px",width:"max-content",maxWidth:"400px",boxSizing:"border-box",whiteSpace:"pre-line"},".cm-completionInfo.cm-completionInfo-left":{right:"100%"},".cm-completionInfo.cm-completionInfo-right":{left:"100%"},".cm-completionInfo.cm-completionInfo-left-narrow":{right:"30px"},".cm-completionInfo.cm-completionInfo-right-narrow":{left:"30px"},"&light .cm-snippetField":{backgroundColor:"#00000022"},"&dark .cm-snippetField":{backgroundColor:"#ffffff22"},".cm-snippetFieldPosition":{verticalAlign:"text-top",width:0,height:"1.15em",display:"inline-block",margin:"0 -0.7px -.7em",borderLeft:"1.4px dotted #888"},".cm-completionMatchedText":{textDecoration:"underline"},".cm-completionDetail":{marginLeft:"0.5em",fontStyle:"italic"},".cm-completionIcon":{fontSize:"90%",width:".8em",display:"inline-block",textAlign:"center",paddingRight:".6em",opacity:"0.6",boxSizing:"content-box"},".cm-completionIcon-function, .cm-completionIcon-method":{"&:after":{content:"'ƒ'"}},".cm-completionIcon-class":{"&:after":{content:"'○'"}},".cm-completionIcon-interface":{"&:after":{content:"'◌'"}},".cm-completionIcon-variable":{"&:after":{content:"'𝑥'"}},".cm-completionIcon-constant":{"&:after":{content:"'𝐶'"}},".cm-completionIcon-type":{"&:after":{content:"'𝑡'"}},".cm-completionIcon-enum":{"&:after":{content:"'∪'"}},".cm-completionIcon-property":{"&:after":{content:"'□'"}},".cm-completionIcon-keyword":{"&:after":{content:"'🔑︎'"}},".cm-completionIcon-namespace":{"&:after":{content:"'▢'"}},".cm-completionIcon-text":{"&:after":{content:"'abc'",fontSize:"50%",verticalAlign:"middle"}}}),Ui={brackets:["(","[","{","'",'"'],before:")]}:;>",stringPrefixes:[]},Nt=G.define({map(n,e){let t=e.mapPos(n,-1,Ce.TrackAfter);return t??void 0}}),z2=new class extends Ht{};z2.startSide=1;z2.endSide=-1;const $c=be.define({create(){return U.empty},update(n,e){if(n=n.map(e.changes),e.selection){let t=e.state.doc.lineAt(e.selection.main.head);n=n.update({filter:i=>i>=t.from&&i<=t.to})}for(let t of e.effects)t.is(Nt)&&(n=n.update({add:[z2.range(t.value,t.value+1)]}));return n}});function e7(){return[i7,$c]}const Zn="()[]{}<>«»»«[]{}";function Wc(n){for(let e=0;e<Zn.length;e+=2)if(Zn.charCodeAt(e)==n)return Zn.charAt(e+1);return i2(n<128?n:n+1)}function Fc(n,e){return n.languageDataAt("closeBrackets",e)[0]||Ui}const t7=typeof navigator=="object"&&/Android\b/.test(navigator.userAgent),i7=z.inputHandler.of((n,e,t,i)=>{if((t7?n.composing:n.compositionStarted)||n.state.readOnly)return!1;let s=n.state.selection.main;if(i.length>2||i.length==2&&tt(Te(i,0))==1||e!=s.from||t!=s.to)return!1;let o=o7(n.state,i);return o?(n.dispatch(o),!0):!1}),n7=({state:n,dispatch:e})=>{if(n.readOnly)return!1;let i=Fc(n,n.selection.main.head).brackets||Ui.brackets,s=null,o=n.changeByRange(r=>{if(r.empty){let l=r7(n.doc,r.head);for(let a of i)if(a==l&&Mn(n.doc,r.head)==Wc(Te(a,0)))return{changes:{from:r.head-a.length,to:r.head+a.length},range:O.cursor(r.head-a.length)}}return{range:s=r}});return s||e(n.update(o,{scrollIntoView:!0,userEvent:"delete.backward"})),!s},s7=[{key:"Backspace",run:n7}];function o7(n,e){let t=Fc(n,n.selection.main.head),i=t.brackets||Ui.brackets;for(let s of i){let o=Wc(Te(s,0));if(e==s)return o==s?c7(n,s,i.indexOf(s+s+s)>-1,t):l7(n,s,o,t.before||Ui.before);if(e==o&&Gc(n,n.selection.main.from))return a7(n,s,o)}return null}function Gc(n,e){let t=!1;return n.field($c).between(0,n.doc.length,i=>{i==e&&(t=!0)}),t}function Mn(n,e){let t=n.sliceString(e,e+2);return t.slice(0,tt(Te(t,0)))}function r7(n,e){let t=n.sliceString(e-2,e);return tt(Te(t,0))==t.length?t:t.slice(1)}function l7(n,e,t,i){let s=null,o=n.changeByRange(r=>{if(!r.empty)return{changes:[{insert:e,from:r.from},{insert:t,from:r.to}],effects:Nt.of(r.to+e.length),range:O.range(r.anchor+e.length,r.head+e.length)};let l=Mn(n.doc,r.head);return!l||/\s/.test(l)||i.indexOf(l)>-1?{changes:{insert:e+t,from:r.head},effects:Nt.of(r.head+e.length),range:O.cursor(r.head+e.length)}:{range:s=r}});return s?null:n.update(o,{scrollIntoView:!0,userEvent:"input.type"})}function a7(n,e,t){let i=null,s=n.changeByRange(o=>o.empty&&Mn(n.doc,o.head)==t?{changes:{from:o.head,to:o.head+t.length,insert:t},range:O.cursor(o.head+t.length)}:i={range:o});return i?null:n.update(s,{scrollIntoView:!0,userEvent:"input.type"})}function c7(n,e,t,i){let s=i.stringPrefixes||Ui.stringPrefixes,o=null,r=n.changeByRange(l=>{if(!l.empty)return{changes:[{insert:e,from:l.from},{insert:e,from:l.to}],effects:Nt.of(l.to+e.length),range:O.range(l.anchor+e.length,l.head+e.length)};let a=l.head,h=Mn(n.doc,a),c;if(h==e){if(_r(n,a))return{changes:{insert:e+e,from:a},effects:Nt.of(a+e.length),range:O.cursor(a+e.length)};if(Gc(n,a)){let d=t&&n.sliceDoc(a,a+e.length*3)==e+e+e?e+e+e:e;return{changes:{from:a,to:a+d.length,insert:d},range:O.cursor(a+d.length)}}}else{if(t&&n.sliceDoc(a-2*e.length,a)==e+e&&(c=Or(n,a-2*e.length,s))>-1&&_r(n,c))return{changes:{insert:e+e+e+e,from:a},effects:Nt.of(a+e.length),range:O.cursor(a+e.length)};if(n.charCategorizer(a)(h)!=oe.Word&&Or(n,a,s)>-1&&!h7(n,a,e,s))return{changes:{insert:e+e,from:a},effects:Nt.of(a+e.length),range:O.cursor(a+e.length)}}return{range:o=l}});return o?null:n.update(r,{scrollIntoView:!0,userEvent:"input.type"})}function _r(n,e){let t=me(n).resolveInner(e+1);return t.parent&&t.from==e}function h7(n,e,t,i){let s=me(n).resolveInner(e,-1),o=i.reduce((r,l)=>Math.max(r,l.length),0);for(let r=0;r<5;r++){let l=n.sliceDoc(s.from,Math.min(s.to,s.from+t.length+o)),a=l.indexOf(t);if(!a||a>-1&&i.indexOf(l.slice(0,a))>-1){let c=s.firstChild;for(;c&&c.from==s.from&&c.to-c.from>t.length+a;){if(n.sliceDoc(c.to-t.length,c.to)==t)return!1;c=c.firstChild}return!0}let h=s.to==e&&s.parent;if(!h)break;s=h}return!1}function Or(n,e,t){let i=n.charCategorizer(e);if(i(n.sliceDoc(e-1,e))!=oe.Word)return e;for(let s of t){let o=e-s.length;if(n.sliceDoc(o,e)==s&&i(n.sliceDoc(o-1,o))!=oe.Word)return o}return-1}function u7(n={}){return[J5,Be,ge.of(n),X5,f7,Z5]}const jc=[{key:"Ctrl-Space",run:Cr},{mac:"Alt-`",run:Cr},{key:"Escape",run:q5},{key:"ArrowDown",run:S0(!0)},{key:"ArrowUp",run:S0(!1)},{key:"PageDown",run:S0(!0,"page")},{key:"PageUp",run:S0(!1,"page")},{key:"Enter",run:j5}],f7=jt.highest(m2.computeN([ge],n=>n.facet(ge).defaultKeymap?[jc]:[]));class Mr{constructor(e,t,i){this.from=e,this.to=t,this.diagnostic=i}}class zt{constructor(e,t,i){this.diagnostics=e,this.panel=t,this.selected=i}static init(e,t,i){let s=i.facet(Yi).markerFilter;s&&(e=s(e,i));let o=e.slice().sort((c,f)=>c.from-f.from||c.to-f.to),r=new ft,l=[],a=0;for(let c=0;;){let f=c==o.length?null:o[c];if(!f&&!l.length)break;let d,p;for(l.length?(d=a,p=l.reduce((m,v)=>Math.min(m,v.to),f&&f.from>d?f.from:1e8)):(d=f.from,p=f.to,l.push(f),c++);c<o.length;){let m=o[c];if(m.from==d&&(m.to>m.from||m.to==d))l.push(m),c++,p=Math.min(m.to,p);else{p=Math.min(m.from,p);break}}let g=_7(l);if(l.some(m=>m.from==m.to||m.from==m.to-1&&i.doc.lineAt(m.from).to==m.from))r.add(d,d,W.widget({widget:new y7(g),diagnostics:l.slice()}));else{let m=l.reduce((v,w)=>w.markClass?v+" "+w.markClass:v,"");r.add(d,p,W.mark({class:"cm-lintRange cm-lintRange-"+g+m,diagnostics:l.slice(),inclusiveEnd:l.some(v=>v.to>p)}))}a=p;for(let m=0;m<l.length;m++)l[m].to<=a&&l.splice(m--,1)}let h=r.finish();return new zt(h,t,ui(h))}}function ui(n,e=null,t=0){let i=null;return n.between(t,1e9,(s,o,{spec:r})=>{if(!(e&&r.diagnostics.indexOf(e)<0))if(!i)i=new Mr(s,o,e||r.diagnostics[0]);else{if(r.diagnostics.indexOf(i.diagnostic)<0)return!1;i=new Mr(i.from,o,i.diagnostic)}}),i}function d7(n,e){let t=e.pos,i=e.end||t,s=n.state.facet(Yi).hideOn(n,t,i);if(s!=null)return s;let o=n.startState.doc.lineAt(e.pos);return!!(n.effects.some(r=>r.is(qc))||n.changes.touchesRange(o.from,Math.max(o.to,i)))}function p7(n,e){return n.field(Re,!1)?e:e.concat(G.appendConfig.of(O7))}const qc=G.define(),L2=G.define(),Uc=G.define(),Re=be.define({create(){return new zt(W.none,null,null)},update(n,e){if(e.docChanged&&n.diagnostics.size){let t=n.diagnostics.map(e.changes),i=null,s=n.panel;if(n.selected){let o=e.changes.mapPos(n.selected.from,1);i=ui(t,n.selected.diagnostic,o)||ui(t,null,o)}!t.size&&s&&e.state.facet(Yi).autoPanel&&(s=null),n=new zt(t,s,i)}for(let t of e.effects)if(t.is(qc)){let i=e.state.facet(Yi).autoPanel?t.value.length?Ki.open:null:n.panel;n=zt.init(t.value,i,e.state)}else t.is(L2)?n=new zt(n.diagnostics,t.value?Ki.open:null,n.selected):t.is(Uc)&&(n=new zt(n.diagnostics,n.panel,t.value));return n},provide:n=>[Wi.from(n,e=>e.panel),z.decorations.from(n,e=>e.diagnostics)]}),g7=W.mark({class:"cm-lintRange cm-lintRange-active"});function m7(n,e,t){let{diagnostics:i}=n.state.field(Re),s,o=-1,r=-1;i.between(e-(t<0?1:0),e+(t>0?1:0),(a,h,{spec:c})=>{if(e>=a&&e<=h&&(a==h||(e>a||t>0)&&(e<h||t<0)))return s=c.diagnostics,o=a,r=h,!1});let l=n.state.facet(Yi).tooltipFilter;return s&&l&&(s=l(s,n.state)),s?{pos:o,end:r,above:n.state.doc.lineAt(o).to<r,create(){return{dom:v7(n,s)}}}:null}function v7(n,e){return J("ul",{class:"cm-tooltip-lint"},e.map(t=>Kc(n,t,!1)))}const w7=n=>{let e=n.state.field(Re,!1);(!e||!e.panel)&&n.dispatch({effects:p7(n.state,[L2.of(!0)])});let t=$i(n,Ki.open);return t&&t.dom.querySelector(".cm-panel-lint ul").focus(),!0},Dr=n=>{let e=n.state.field(Re,!1);return!e||!e.panel?!1:(n.dispatch({effects:L2.of(!1)}),!0)},x7=n=>{let e=n.state.field(Re,!1);if(!e)return!1;let t=n.state.selection.main,i=e.diagnostics.iter(t.to+1);return!i.value&&(i=e.diagnostics.iter(0),!i.value||i.from==t.from&&i.to==t.to)?!1:(n.dispatch({selection:{anchor:i.from,head:i.to},scrollIntoView:!0}),!0)},b7=[{key:"Mod-Shift-m",run:w7,preventDefault:!0},{key:"F8",run:x7}],Yi=L.define({combine(n){return Object.assign({sources:n.map(e=>e.source).filter(e=>e!=null)},lt(n.map(e=>e.config),{delay:750,markerFilter:null,tooltipFilter:null,needsRefresh:null,hideOn:()=>null},{needsRefresh:(e,t)=>e?t?i=>e(i)||t(i):e:t}))}});function Yc(n){let e=[];if(n)e:for(let{name:t}of n){for(let i=0;i<t.length;i++){let s=t[i];if(/[a-zA-Z]/.test(s)&&!e.some(o=>o.toLowerCase()==s.toLowerCase())){e.push(s);continue e}}e.push("")}return e}function Kc(n,e,t){var i;let s=t?Yc(e.actions):[];return J("li",{class:"cm-diagnostic cm-diagnostic-"+e.severity},J("span",{class:"cm-diagnosticText"},e.renderMessage?e.renderMessage(n):e.message),(i=e.actions)===null||i===void 0?void 0:i.map((o,r)=>{let l=!1,a=d=>{if(d.preventDefault(),l)return;l=!0;let p=ui(n.state.field(Re).diagnostics,e);p&&o.apply(n,p.from,p.to)},{name:h}=o,c=s[r]?h.indexOf(s[r]):-1,f=c<0?h:[h.slice(0,c),J("u",h.slice(c,c+1)),h.slice(c+1)];return J("button",{type:"button",class:"cm-diagnosticAction",onclick:a,onmousedown:a,"aria-label":` Action: ${h}${c<0?"":` (access key "${s[r]})"`}.`},f)}),e.source&&J("div",{class:"cm-diagnosticSource"},e.source))}class y7 extends At{constructor(e){super(),this.sev=e}eq(e){return e.sev==this.sev}toDOM(){return J("span",{class:"cm-lintPoint cm-lintPoint-"+this.sev})}}class Tr{constructor(e,t){this.diagnostic=t,this.id="item_"+Math.floor(Math.random()*4294967295).toString(16),this.dom=Kc(e,t,!0),this.dom.id=this.id,this.dom.setAttribute("role","option")}}class Ki{constructor(e){this.view=e,this.items=[];let t=s=>{if(s.keyCode==27)Dr(this.view),this.view.focus();else if(s.keyCode==38||s.keyCode==33)this.moveSelection((this.selectedIndex-1+this.items.length)%this.items.length);else if(s.keyCode==40||s.keyCode==34)this.moveSelection((this.selectedIndex+1)%this.items.length);else if(s.keyCode==36)this.moveSelection(0);else if(s.keyCode==35)this.moveSelection(this.items.length-1);else if(s.keyCode==13)this.view.focus();else if(s.keyCode>=65&&s.keyCode<=90&&this.selectedIndex>=0){let{diagnostic:o}=this.items[this.selectedIndex],r=Yc(o.actions);for(let l=0;l<r.length;l++)if(r[l].toUpperCase().charCodeAt(0)==s.keyCode){let a=ui(this.view.state.field(Re).diagnostics,o);a&&o.actions[l].apply(e,a.from,a.to)}}else return;s.preventDefault()},i=s=>{for(let o=0;o<this.items.length;o++)this.items[o].dom.contains(s.target)&&this.moveSelection(o)};this.list=J("ul",{tabIndex:0,role:"listbox","aria-label":this.view.state.phrase("Diagnostics"),onkeydown:t,onclick:i}),this.dom=J("div",{class:"cm-panel-lint"},this.list,J("button",{type:"button",name:"close","aria-label":this.view.state.phrase("close"),onclick:()=>Dr(this.view)},"×")),this.update()}get selectedIndex(){let e=this.view.state.field(Re).selected;if(!e)return-1;for(let t=0;t<this.items.length;t++)if(this.items[t].diagnostic==e.diagnostic)return t;return-1}update(){let{diagnostics:e,selected:t}=this.view.state.field(Re),i=0,s=!1,o=null,r=new Set;for(e.between(0,this.view.state.doc.length,(l,a,{spec:h})=>{for(let c of h.diagnostics){if(r.has(c))continue;r.add(c);let f=-1,d;for(let p=i;p<this.items.length;p++)if(this.items[p].diagnostic==c){f=p;break}f<0?(d=new Tr(this.view,c),this.items.splice(i,0,d),s=!0):(d=this.items[f],f>i&&(this.items.splice(i,f-i),s=!0)),t&&d.diagnostic==t.diagnostic?d.dom.hasAttribute("aria-selected")||(d.dom.setAttribute("aria-selected","true"),o=d):d.dom.hasAttribute("aria-selected")&&d.dom.removeAttribute("aria-selected"),i++}});i<this.items.length&&!(this.items.length==1&&this.items[0].diagnostic.from<0);)s=!0,this.items.pop();this.items.length==0&&(this.items.push(new Tr(this.view,{from:-1,to:-1,severity:"info",message:this.view.state.phrase("No diagnostics")})),s=!0),o?(this.list.setAttribute("aria-activedescendant",o.id),this.view.requestMeasure({key:this,read:()=>({sel:o.dom.getBoundingClientRect(),panel:this.list.getBoundingClientRect()}),write:({sel:l,panel:a})=>{let h=a.height/this.list.offsetHeight;l.top<a.top?this.list.scrollTop-=(a.top-l.top)/h:l.bottom>a.bottom&&(this.list.scrollTop+=(l.bottom-a.bottom)/h)}})):this.selectedIndex<0&&this.list.removeAttribute("aria-activedescendant"),s&&this.sync()}sync(){let e=this.list.firstChild;function t(){let i=e;e=i.nextSibling,i.remove()}for(let i of this.items)if(i.dom.parentNode==this.list){for(;e!=i.dom;)t();e=i.dom.nextSibling}else this.list.insertBefore(i.dom,e);for(;e;)t()}moveSelection(e){if(this.selectedIndex<0)return;let t=this.view.state.field(Re),i=ui(t.diagnostics,this.items[e].diagnostic);i&&this.view.dispatch({selection:{anchor:i.from,head:i.to},scrollIntoView:!0,effects:Uc.of(i)})}static open(e){return new Ki(e)}}function k7(n,e='viewBox="0 0 40 40"'){return`url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" ${e}>${encodeURIComponent(n)}</svg>')`}function C0(n){return k7(`<path d="m0 2.5 l2 -1.5 l1 0 l2 1.5 l1 0" stroke="${n}" fill="none" stroke-width=".7"/>`,'width="6" height="3"')}const S7=z.baseTheme({".cm-diagnostic":{padding:"3px 6px 3px 8px",marginLeft:"-1px",display:"block",whiteSpace:"pre-wrap"},".cm-diagnostic-error":{borderLeft:"5px solid #d11"},".cm-diagnostic-warning":{borderLeft:"5px solid orange"},".cm-diagnostic-info":{borderLeft:"5px solid #999"},".cm-diagnostic-hint":{borderLeft:"5px solid #66d"},".cm-diagnosticAction":{font:"inherit",border:"none",padding:"2px 4px",backgroundColor:"#444",color:"white",borderRadius:"3px",marginLeft:"8px",cursor:"pointer"},".cm-diagnosticSource":{fontSize:"70%",opacity:.7},".cm-lintRange":{backgroundPosition:"left bottom",backgroundRepeat:"repeat-x",paddingBottom:"0.7px"},".cm-lintRange-error":{backgroundImage:C0("#d11")},".cm-lintRange-warning":{backgroundImage:C0("orange")},".cm-lintRange-info":{backgroundImage:C0("#999")},".cm-lintRange-hint":{backgroundImage:C0("#66d")},".cm-lintRange-active":{backgroundColor:"#ffdd9980"},".cm-tooltip-lint":{padding:0,margin:0},".cm-lintPoint":{position:"relative","&:after":{content:'""',position:"absolute",bottom:0,left:"-2px",borderLeft:"3px solid transparent",borderRight:"3px solid transparent",borderBottom:"4px solid #d11"}},".cm-lintPoint-warning":{"&:after":{borderBottomColor:"orange"}},".cm-lintPoint-info":{"&:after":{borderBottomColor:"#999"}},".cm-lintPoint-hint":{"&:after":{borderBottomColor:"#66d"}},".cm-panel.cm-panel-lint":{position:"relative","& ul":{maxHeight:"100px",overflowY:"auto","& [aria-selected]":{backgroundColor:"#ddd","& u":{textDecoration:"underline"}},"&:focus [aria-selected]":{background_fallback:"#bdf",backgroundColor:"Highlight",color_fallback:"white",color:"HighlightText"},"& u":{textDecoration:"none"},padding:0,margin:0},"& [name=close]":{position:"absolute",top:"0",right:"2px",background:"inherit",border:"none",font:"inherit",padding:0,margin:0}}});function C7(n){return n=="error"?4:n=="warning"?3:n=="info"?2:1}function _7(n){let e="hint",t=1;for(let i of n){let s=C7(i.severity);s>t&&(t=s,e=i.severity)}return e}const O7=[Re,z.decorations.compute([Re],n=>{let{selected:e,panel:t}=n.field(Re);return!e||!t||e.from==e.to?W.none:W.set([g7.range(e.from,e.to)])}),b4(m7,{hideOn:d7}),S7],M7=[B4(),V4(),Q6(),Xp(),Sp(),H6(),j6(),q.allowMultipleSelections.of(!0),hp(),_p(Dp,{fallback:!0}),zp(),e7(),u7(),c4(),f4(),n4(),s5(),m2.of([...s7,...J8,...S5,...o8,...xp,...jc,...b7])];class hn{constructor(e,t,i,s,o,r,l,a,h,c=0,f){this.p=e,this.stack=t,this.state=i,this.reducePos=s,this.pos=o,this.score=r,this.buffer=l,this.bufferBase=a,this.curContext=h,this.lookAhead=c,this.parent=f}toString(){return`[${this.stack.filter((e,t)=>t%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(e,t,i=0){let s=e.parser.context;return new hn(e,[],t,i,i,0,[],0,s?new Ar(s,s.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(e,t){this.stack.push(this.state,t,this.bufferBase+this.buffer.length),this.state=e}reduce(e){var t;let i=e>>19,s=e&65535,{parser:o}=this.p,r=this.reducePos<this.pos-25;r&&this.setLookAhead(this.pos);let l=o.dynamicPrecedence(s);if(l&&(this.score+=l),i==0){this.pushState(o.getGoto(this.state,s,!0),this.reducePos),s<o.minRepeatTerm&&this.storeNode(s,this.reducePos,this.reducePos,r?8:4,!0),this.reduceContext(s,this.reducePos);return}let a=this.stack.length-(i-1)*3-(e&262144?6:0),h=a?this.stack[a-2]:this.p.ranges[0].from,c=this.reducePos-h;c>=2e3&&!(!((t=this.p.parser.nodeSet.types[s])===null||t===void 0)&&t.isAnonymous)&&(h==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=c):this.p.lastBigReductionSize<c&&(this.p.bigReductionCount=1,this.p.lastBigReductionStart=h,this.p.lastBigReductionSize=c));let f=a?this.stack[a-1]:0,d=this.bufferBase+this.buffer.length-f;if(s<o.minRepeatTerm||e&131072){let p=o.stateFlag(this.state,1)?this.pos:this.reducePos;this.storeNode(s,h,p,d+4,!0)}if(e&262144)this.state=this.stack[a];else{let p=this.stack[a-3];this.state=o.getGoto(p,s,!0)}for(;this.stack.length>a;)this.stack.pop();this.reduceContext(s,h)}storeNode(e,t,i,s=4,o=!1){if(e==0&&(!this.stack.length||this.stack[this.stack.length-1]<this.buffer.length+this.bufferBase)){let r=this,l=this.buffer.length;if(l==0&&r.parent&&(l=r.bufferBase-r.parent.bufferBase,r=r.parent),l>0&&r.buffer[l-4]==0&&r.buffer[l-1]>-1){if(t==i)return;if(r.buffer[l-2]>=t){r.buffer[l-2]=i;return}}}if(!o||this.pos==i)this.buffer.push(e,t,i,s);else{let r=this.buffer.length;if(r>0&&this.buffer[r-4]!=0){let l=!1;for(let a=r;a>0&&this.buffer[a-2]>i;a-=4)if(this.buffer[a-1]>=0){l=!0;break}if(l)for(;r>0&&this.buffer[r-2]>i;)this.buffer[r]=this.buffer[r-4],this.buffer[r+1]=this.buffer[r-3],this.buffer[r+2]=this.buffer[r-2],this.buffer[r+3]=this.buffer[r-1],r-=4,s>4&&(s-=4)}this.buffer[r]=e,this.buffer[r+1]=t,this.buffer[r+2]=i,this.buffer[r+3]=s}}shift(e,t,i,s){if(e&131072)this.pushState(e&65535,this.pos);else if((e&262144)==0){let o=e,{parser:r}=this.p;(s>this.pos||t<=r.maxNode)&&(this.pos=s,r.stateFlag(o,1)||(this.reducePos=s)),this.pushState(o,i),this.shiftContext(t,i),t<=r.maxNode&&this.buffer.push(t,i,s,4)}else this.pos=s,this.shiftContext(t,i),t<=this.p.parser.maxNode&&this.buffer.push(t,i,s,4)}apply(e,t,i,s){e&65536?this.reduce(e):this.shift(e,t,i,s)}useNode(e,t){let i=this.p.reused.length-1;(i<0||this.p.reused[i]!=e)&&(this.p.reused.push(e),i++);let s=this.pos;this.reducePos=this.pos=s+e.length,this.pushState(t,s),this.buffer.push(i,s,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,e,this,this.p.stream.reset(this.pos-e.length)))}split(){let e=this,t=e.buffer.length;for(;t>0&&e.buffer[t-2]>e.reducePos;)t-=4;let i=e.buffer.slice(t),s=e.bufferBase+t;for(;e&&s==e.bufferBase;)e=e.parent;return new hn(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,i,s,this.curContext,this.lookAhead,e)}recoverByDelete(e,t){let i=e<=this.p.parser.maxNode;i&&this.storeNode(e,this.pos,t,4),this.storeNode(0,this.pos,t,i?8:4),this.pos=this.reducePos=t,this.score-=190}canShift(e){for(let t=new D7(this);;){let i=this.p.parser.stateSlot(t.state,4)||this.p.parser.hasAction(t.state,e);if(i==0)return!1;if((i&65536)==0)return!0;t.reduce(i)}}recoverByInsert(e){if(this.stack.length>=300)return[];let t=this.p.parser.nextStates(this.state);if(t.length>8||this.stack.length>=120){let s=[];for(let o=0,r;o<t.length;o+=2)(r=t[o+1])!=this.state&&this.p.parser.hasAction(r,e)&&s.push(t[o],r);if(this.stack.length<120)for(let o=0;s.length<8&&o<t.length;o+=2){let r=t[o+1];s.some((l,a)=>a&1&&l==r)||s.push(t[o],r)}t=s}let i=[];for(let s=0;s<t.length&&i.length<4;s+=2){let o=t[s+1];if(o==this.state)continue;let r=this.split();r.pushState(o,this.pos),r.storeNode(0,r.pos,r.pos,4,!0),r.shiftContext(t[s],this.pos),r.reducePos=this.pos,r.score-=200,i.push(r)}return i}forceReduce(){let{parser:e}=this.p,t=e.stateSlot(this.state,5);if((t&65536)==0)return!1;if(!e.validAction(this.state,t)){let i=t>>19,s=t&65535,o=this.stack.length-i*3;if(o<0||e.getGoto(this.stack[o],s,!1)<0){let r=this.findForcedReduction();if(r==null)return!1;t=r}this.storeNode(0,this.pos,this.pos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(t),!0}findForcedReduction(){let{parser:e}=this.p,t=[],i=(s,o)=>{if(!t.includes(s))return t.push(s),e.allActions(s,r=>{if(!(r&393216))if(r&65536){let l=(r>>19)-o;if(l>1){let a=r&65535,h=this.stack.length-l*3;if(h>=0&&e.getGoto(this.stack[h],a,!1)>=0)return l<<19|65536|a}}else{let l=i(r,o+1);if(l!=null)return l}})};return i(this.state,0)}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(this.stack.length!=3)return!1;let{parser:e}=this.p;return e.data[e.stateSlot(this.state,1)]==65535&&!e.stateSlot(this.state,4)}restart(){this.storeNode(0,this.pos,this.pos,4,!0),this.state=this.stack[0],this.stack.length=0}sameState(e){if(this.state!=e.state||this.stack.length!=e.stack.length)return!1;for(let t=0;t<this.stack.length;t+=3)if(this.stack[t]!=e.stack[t])return!1;return!0}get parser(){return this.p.parser}dialectEnabled(e){return this.p.parser.dialect.flags[e]}shiftContext(e,t){this.curContext&&this.updateContext(this.curContext.tracker.shift(this.curContext.context,e,this,this.p.stream.reset(t)))}reduceContext(e,t){this.curContext&&this.updateContext(this.curContext.tracker.reduce(this.curContext.context,e,this,this.p.stream.reset(t)))}emitContext(){let e=this.buffer.length-1;(e<0||this.buffer[e]!=-3)&&this.buffer.push(this.curContext.hash,this.pos,this.pos,-3)}emitLookAhead(){let e=this.buffer.length-1;(e<0||this.buffer[e]!=-4)&&this.buffer.push(this.lookAhead,this.pos,this.pos,-4)}updateContext(e){if(e!=this.curContext.context){let t=new Ar(this.curContext.tracker,e);t.hash!=this.curContext.hash&&this.emitContext(),this.curContext=t}}setLookAhead(e){e>this.lookAhead&&(this.emitLookAhead(),this.lookAhead=e)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}class Ar{constructor(e,t){this.tracker=e,this.context=t,this.hash=e.strict?e.hash(t):0}}class D7{constructor(e){this.start=e,this.state=e.state,this.stack=e.stack,this.base=this.stack.length}reduce(e){let t=e&65535,i=e>>19;i==0?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=(i-1)*3;let s=this.start.p.parser.getGoto(this.stack[this.base-3],t,!0);this.state=s}}class un{constructor(e,t,i){this.stack=e,this.pos=t,this.index=i,this.buffer=e.buffer,this.index==0&&this.maybeNext()}static create(e,t=e.bufferBase+e.buffer.length){return new un(e,t,t-e.bufferBase)}maybeNext(){let e=this.stack.parent;e!=null&&(this.index=this.stack.bufferBase-e.bufferBase,this.stack=e,this.buffer=e.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,this.index==0&&this.maybeNext()}fork(){return new un(this.stack,this.pos,this.index)}}function _0(n,e=Uint16Array){if(typeof n!="string")return n;let t=null;for(let i=0,s=0;i<n.length;){let o=0;for(;;){let r=n.charCodeAt(i++),l=!1;if(r==126){o=65535;break}r>=92&&r--,r>=34&&r--;let a=r-32;if(a>=46&&(a-=46,l=!0),o+=a,l)break;o*=46}t?t[s++]=o:t=new e(o)}return t}class L0{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const Br=new L0;class T7{constructor(e,t){this.input=e,this.ranges=t,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=Br,this.rangeIndex=0,this.pos=this.chunkPos=t[0].from,this.range=t[0],this.end=t[t.length-1].to,this.readNext()}resolveOffset(e,t){let i=this.range,s=this.rangeIndex,o=this.pos+e;for(;o<i.from;){if(!s)return null;let r=this.ranges[--s];o-=i.from-r.to,i=r}for(;t<0?o>i.to:o>=i.to;){if(s==this.ranges.length-1)return null;let r=this.ranges[++s];o+=r.from-i.to,i=r}return o}clipPos(e){if(e>=this.range.from&&e<this.range.to)return e;for(let t of this.ranges)if(t.to>e)return Math.max(e,t.from);return this.end}peek(e){let t=this.chunkOff+e,i,s;if(t>=0&&t<this.chunk.length)i=this.pos+e,s=this.chunk.charCodeAt(t);else{let o=this.resolveOffset(e,1);if(o==null)return-1;if(i=o,i>=this.chunk2Pos&&i<this.chunk2Pos+this.chunk2.length)s=this.chunk2.charCodeAt(i-this.chunk2Pos);else{let r=this.rangeIndex,l=this.range;for(;l.to<=i;)l=this.ranges[++r];this.chunk2=this.input.chunk(this.chunk2Pos=i),i+this.chunk2.length>l.to&&(this.chunk2=this.chunk2.slice(0,l.to-i)),s=this.chunk2.charCodeAt(0)}}return i>=this.token.lookAhead&&(this.token.lookAhead=i+1),s}acceptToken(e,t=0){let i=t?this.resolveOffset(t,-1):this.pos;if(i==null||i<this.token.start)throw new RangeError("Token end out of bounds");this.token.value=e,this.token.end=i}acceptTokenTo(e,t){this.token.value=e,this.token.end=t}getChunk(){if(this.pos>=this.chunk2Pos&&this.pos<this.chunk2Pos+this.chunk2.length){let{chunk:e,chunkPos:t}=this;this.chunk=this.chunk2,this.chunkPos=this.chunk2Pos,this.chunk2=e,this.chunk2Pos=t,this.chunkOff=this.pos-this.chunkPos}else{this.chunk2=this.chunk,this.chunk2Pos=this.chunkPos;let e=this.input.chunk(this.pos),t=this.pos+e.length;this.chunk=t>this.range.to?e.slice(0,this.range.to-this.pos):e,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(e=1){for(this.chunkOff+=e;this.pos+e>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();e-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=e,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(e,t){if(t?(this.token=t,t.start=e,t.lookAhead=e+1,t.value=t.extended=-1):this.token=Br,this.pos!=e){if(this.pos=e,e==this.end)return this.setDone(),this;for(;e<this.range.from;)this.range=this.ranges[--this.rangeIndex];for(;e>=this.range.to;)this.range=this.ranges[++this.rangeIndex];e>=this.chunkPos&&e<this.chunkPos+this.chunk.length?this.chunkOff=e-this.chunkPos:(this.chunk="",this.chunkOff=0),this.readNext()}return this}read(e,t){if(e>=this.chunkPos&&t<=this.chunkPos+this.chunk.length)return this.chunk.slice(e-this.chunkPos,t-this.chunkPos);if(e>=this.chunk2Pos&&t<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(e-this.chunk2Pos,t-this.chunk2Pos);if(e>=this.range.from&&t<=this.range.to)return this.input.read(e,t);let i="";for(let s of this.ranges){if(s.from>=t)break;s.to>e&&(i+=this.input.read(Math.max(s.from,e),Math.min(s.to,t)))}return i}}class si{constructor(e,t){this.data=e,this.id=t}token(e,t){let{parser:i}=t.p;A7(this.data,e,t,this.id,i.data,i.tokenPrecTable)}}si.prototype.contextual=si.prototype.fallback=si.prototype.extend=!1;si.prototype.fallback=si.prototype.extend=!1;class Xc{constructor(e,t={}){this.token=e,this.contextual=!!t.contextual,this.fallback=!!t.fallback,this.extend=!!t.extend}}function A7(n,e,t,i,s,o){let r=0,l=1<<i,{dialect:a}=t.p.parser;e:for(;(l&n[r])!=0;){let h=n[r+1];for(let p=r+3;p<h;p+=2)if((n[p+1]&l)>0){let g=n[p];if(a.allows(g)&&(e.token.value==-1||e.token.value==g||B7(g,e.token.value,s,o))){e.acceptToken(g);break}}let c=e.next,f=0,d=n[r+2];if(e.next<0&&d>f&&n[h+d*3-3]==65535){r=n[h+d*3-1];continue e}for(;f<d;){let p=f+d>>1,g=h+p+(p<<1),m=n[g],v=n[g+1]||65536;if(c<m)d=p;else if(c>=v)f=p+1;else{r=n[g+2],e.advance();continue e}}break}}function Pr(n,e,t){for(let i=e,s;(s=n[i])!=65535;i++)if(s==t)return i-e;return-1}function B7(n,e,t,i){let s=Pr(t,i,e);return s<0||Pr(t,i,n)<s}const Le=typeof process<"u"&&process.env&&/\bparse\b/.test(process.env.LOG);let es=null;function Er(n,e,t){let i=n.cursor(pe.IncludeAnonymous);for(i.moveTo(e);;)if(!(t<0?i.childBefore(e):i.childAfter(e)))for(;;){if((t<0?i.to<e:i.from>e)&&!i.type.isError)return t<0?Math.max(0,Math.min(i.to-1,e-25)):Math.min(n.length,Math.max(i.from+1,e+25));if(t<0?i.prevSibling():i.nextSibling())break;if(!i.parent())return t<0?0:n.length}}class P7{constructor(e,t){this.fragments=e,this.nodeSet=t,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let e=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(e){for(this.safeFrom=e.openStart?Er(e.tree,e.from+e.offset,1)-e.offset:e.from,this.safeTo=e.openEnd?Er(e.tree,e.to+e.offset,-1)-e.offset:e.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(e.tree),this.start.push(-e.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(e){if(e<this.nextStart)return null;for(;this.fragment&&this.safeTo<=e;)this.nextFragment();if(!this.fragment)return null;for(;;){let t=this.trees.length-1;if(t<0)return this.nextFragment(),null;let i=this.trees[t],s=this.index[t];if(s==i.children.length){this.trees.pop(),this.start.pop(),this.index.pop();continue}let o=i.children[s],r=this.start[t]+i.positions[s];if(r>e)return this.nextStart=r,null;if(o instanceof ce){if(r==e){if(r<this.safeFrom)return null;let l=r+o.length;if(l<=this.safeTo){let a=o.prop(j.lookAhead);if(!a||l+a<this.fragment.to)return o}}this.index[t]++,r+o.length>=Math.max(this.safeFrom,e)&&(this.trees.push(o),this.start.push(r),this.index.push(0))}else this.index[t]++,this.nextStart=r+o.length}}}class E7{constructor(e,t){this.stream=t,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=e.tokenizers.map(i=>new L0)}getActions(e){let t=0,i=null,{parser:s}=e.p,{tokenizers:o}=s,r=s.stateSlot(e.state,3),l=e.curContext?e.curContext.hash:0,a=0;for(let h=0;h<o.length;h++){if((1<<h&r)==0)continue;let c=o[h],f=this.tokens[h];if(!(i&&!c.fallback)&&((c.contextual||f.start!=e.pos||f.mask!=r||f.context!=l)&&(this.updateCachedToken(f,c,e),f.mask=r,f.context=l),f.lookAhead>f.end+25&&(a=Math.max(f.lookAhead,a)),f.value!=0)){let d=t;if(f.extended>-1&&(t=this.addActions(e,f.extended,f.end,t)),t=this.addActions(e,f.value,f.end,t),!c.extend&&(i=f,t>d))break}}for(;this.actions.length>t;)this.actions.pop();return a&&e.setLookAhead(a),!i&&e.pos==this.stream.end&&(i=new L0,i.value=e.p.parser.eofTerm,i.start=i.end=e.pos,t=this.addActions(e,i.value,i.end,t)),this.mainToken=i,this.actions}getMainToken(e){if(this.mainToken)return this.mainToken;let t=new L0,{pos:i,p:s}=e;return t.start=i,t.end=Math.min(i+1,s.stream.end),t.value=i==s.stream.end?s.parser.eofTerm:0,t}updateCachedToken(e,t,i){let s=this.stream.clipPos(i.pos);if(t.token(this.stream.reset(s,e),i),e.value>-1){let{parser:o}=i.p;for(let r=0;r<o.specialized.length;r++)if(o.specialized[r]==e.value){let l=o.specializers[r](this.stream.read(e.start,e.end),i);if(l>=0&&i.p.parser.dialect.allows(l>>1)){(l&1)==0?e.value=l>>1:e.extended=l>>1;break}}}else e.value=0,e.end=this.stream.clipPos(s+1)}putAction(e,t,i,s){for(let o=0;o<s;o+=3)if(this.actions[o]==e)return s;return this.actions[s++]=e,this.actions[s++]=t,this.actions[s++]=i,s}addActions(e,t,i,s){let{state:o}=e,{parser:r}=e.p,{data:l}=r;for(let a=0;a<2;a++)for(let h=r.stateSlot(o,a?2:1);;h+=3){if(l[h]==65535)if(l[h+1]==1)h=ct(l,h+2);else{s==0&&l[h+1]==2&&(s=this.putAction(ct(l,h+2),t,i,s));break}l[h]==t&&(s=this.putAction(ct(l,h+1),t,i,s))}return s}}class V7{constructor(e,t,i,s){this.parser=e,this.input=t,this.ranges=s,this.recovering=0,this.nextStackID=9812,this.minStackPos=0,this.reused=[],this.stoppedAt=null,this.lastBigReductionStart=-1,this.lastBigReductionSize=0,this.bigReductionCount=0,this.stream=new T7(t,s),this.tokens=new E7(e,this.stream),this.topTerm=e.top[1];let{from:o}=s[0];this.stacks=[hn.start(this,e.top[0],o)],this.fragments=i.length&&this.stream.end-o>e.bufferLength*4?new P7(i,e.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let e=this.stacks,t=this.minStackPos,i=this.stacks=[],s,o;if(this.bigReductionCount>300&&e.length==1){let[r]=e;for(;r.forceReduce()&&r.stack.length&&r.stack[r.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let r=0;r<e.length;r++){let l=e[r];for(;;){if(this.tokens.mainToken=null,l.pos>t)i.push(l);else{if(this.advanceStack(l,i,e))continue;{s||(s=[],o=[]),s.push(l);let a=this.tokens.getMainToken(l);o.push(a.value,a.end)}}break}}if(!i.length){let r=s&&N7(s);if(r)return Le&&console.log("Finish with "+this.stackID(r)),this.stackToTree(r);if(this.parser.strict)throw Le&&s&&console.log("Stuck with token "+(this.tokens.mainToken?this.parser.getName(this.tokens.mainToken.value):"none")),new SyntaxError("No parse at "+t);this.recovering||(this.recovering=5)}if(this.recovering&&s){let r=this.stoppedAt!=null&&s[0].pos>this.stoppedAt?s[0]:this.runRecovery(s,o,i);if(r)return Le&&console.log("Force-finish "+this.stackID(r)),this.stackToTree(r.forceAll())}if(this.recovering){let r=this.recovering==1?1:this.recovering*3;if(i.length>r)for(i.sort((l,a)=>a.score-l.score);i.length>r;)i.pop();i.some(l=>l.reducePos>t)&&this.recovering--}else if(i.length>1){e:for(let r=0;r<i.length-1;r++){let l=i[r];for(let a=r+1;a<i.length;a++){let h=i[a];if(l.sameState(h)||l.buffer.length>500&&h.buffer.length>500)if((l.score-h.score||l.buffer.length-h.buffer.length)>0)i.splice(a--,1);else{i.splice(r--,1);continue e}}}i.length>12&&i.splice(12,i.length-12)}this.minStackPos=i[0].pos;for(let r=1;r<i.length;r++)i[r].pos<this.minStackPos&&(this.minStackPos=i[r].pos);return null}stopAt(e){if(this.stoppedAt!=null&&this.stoppedAt<e)throw new RangeError("Can't move stoppedAt forward");this.stoppedAt=e}advanceStack(e,t,i){let s=e.pos,{parser:o}=this,r=Le?this.stackID(e)+" -> ":"";if(this.stoppedAt!=null&&s>this.stoppedAt)return e.forceReduce()?e:null;if(this.fragments){let h=e.curContext&&e.curContext.tracker.strict,c=h?e.curContext.hash:0;for(let f=this.fragments.nodeAt(s);f;){let d=this.parser.nodeSet.types[f.type.id]==f.type?o.getGoto(e.state,f.type.id):-1;if(d>-1&&f.length&&(!h||(f.prop(j.contextHash)||0)==c))return e.useNode(f,d),Le&&console.log(r+this.stackID(e)+` (via reuse of ${o.getName(f.type.id)})`),!0;if(!(f instanceof ce)||f.children.length==0||f.positions[0]>0)break;let p=f.children[0];if(p instanceof ce&&f.positions[0]==0)f=p;else break}}let l=o.stateSlot(e.state,4);if(l>0)return e.reduce(l),Le&&console.log(r+this.stackID(e)+` (via always-reduce ${o.getName(l&65535)})`),!0;if(e.stack.length>=8400)for(;e.stack.length>6e3&&e.forceReduce(););let a=this.tokens.getActions(e);for(let h=0;h<a.length;){let c=a[h++],f=a[h++],d=a[h++],p=h==a.length||!i,g=p?e:e.split(),m=this.tokens.mainToken;if(g.apply(c,f,m?m.start:g.pos,d),Le&&console.log(r+this.stackID(g)+` (via ${(c&65536)==0?"shift":`reduce of ${o.getName(c&65535)}`} for ${o.getName(f)} @ ${s}${g==e?"":", split"})`),p)return!0;g.pos>s?t.push(g):i.push(g)}return!1}advanceFully(e,t){let i=e.pos;for(;;){if(!this.advanceStack(e,null,null))return!1;if(e.pos>i)return Vr(e,t),!0}}runRecovery(e,t,i){let s=null,o=!1;for(let r=0;r<e.length;r++){let l=e[r],a=t[r<<1],h=t[(r<<1)+1],c=Le?this.stackID(l)+" -> ":"";if(l.deadEnd&&(o||(o=!0,l.restart(),Le&&console.log(c+this.stackID(l)+" (restarted)"),this.advanceFully(l,i))))continue;let f=l.split(),d=c;for(let p=0;f.forceReduce()&&p<10&&(Le&&console.log(d+this.stackID(f)+" (via force-reduce)"),!this.advanceFully(f,i));p++)Le&&(d=this.stackID(f)+" -> ");for(let p of l.recoverByInsert(a))Le&&console.log(c+this.stackID(p)+" (via recover-insert)"),this.advanceFully(p,i);this.stream.end>l.pos?(h==l.pos&&(h++,a=0),l.recoverByDelete(a,h),Le&&console.log(c+this.stackID(l)+` (via recover-delete ${this.parser.getName(a)})`),Vr(l,i)):(!s||s.score<l.score)&&(s=l)}return s}stackToTree(e){return e.close(),ce.build({buffer:un.create(e),nodeSet:this.parser.nodeSet,topID:this.topTerm,maxBufferLength:this.parser.bufferLength,reused:this.reused,start:this.ranges[0].from,length:e.pos-this.ranges[0].from,minRepeatType:this.parser.minRepeatTerm})}stackID(e){let t=(es||(es=new WeakMap)).get(e);return t||es.set(e,t=String.fromCodePoint(this.nextStackID++)),t+e}}function Vr(n,e){for(let t=0;t<e.length;t++){let i=e[t];if(i.pos==n.pos&&i.sameState(n)){e[t].score<n.score&&(e[t]=n);return}}e.push(n)}class z7{constructor(e,t,i){this.source=e,this.flags=t,this.disabled=i}allows(e){return!this.disabled||this.disabled[e]==0}}const ts=n=>n;class L7{constructor(e){this.start=e.start,this.shift=e.shift||ts,this.reduce=e.reduce||ts,this.reuse=e.reuse||ts,this.hash=e.hash||(()=>0),this.strict=e.strict!==!1}}class fn extends Ba{constructor(e){if(super(),this.wrappers=[],e.version!=14)throw new RangeError(`Parser version (${e.version}) doesn't match runtime version (14)`);let t=e.nodeNames.split(" ");this.minRepeatTerm=t.length;for(let l=0;l<e.repeatNodeCount;l++)t.push("");let i=Object.keys(e.topRules).map(l=>e.topRules[l][1]),s=[];for(let l=0;l<t.length;l++)s.push([]);function o(l,a,h){s[l].push([a,a.deserialize(String(h))])}if(e.nodeProps)for(let l of e.nodeProps){let a=l[0];typeof a=="string"&&(a=j[a]);for(let h=1;h<l.length;){let c=l[h++];if(c>=0)o(c,a,l[h++]);else{let f=l[h+-c];for(let d=-c;d>0;d--)o(l[h++],a,f);h++}}}this.nodeSet=new x2(t.map((l,a)=>Ve.define({name:a>=this.minRepeatTerm?void 0:l,id:a,props:s[a],top:i.indexOf(a)>-1,error:a==0,skipped:e.skippedNodes&&e.skippedNodes.indexOf(a)>-1}))),e.propSources&&(this.nodeSet=this.nodeSet.extend(...e.propSources)),this.strict=!1,this.bufferLength=Ma;let r=_0(e.tokenData);this.context=e.context,this.specializerSpecs=e.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let l=0;l<this.specializerSpecs.length;l++)this.specialized[l]=this.specializerSpecs[l].term;this.specializers=this.specializerSpecs.map(zr),this.states=_0(e.states,Uint32Array),this.data=_0(e.stateData),this.goto=_0(e.goto),this.maxTerm=e.maxTerm,this.tokenizers=e.tokenizers.map(l=>typeof l=="number"?new si(r,l):l),this.topRules=e.topRules,this.dialects=e.dialects||{},this.dynamicPrecedences=e.dynamicPrecedences||null,this.tokenPrecTable=e.tokenPrec,this.termNames=e.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(e,t,i){let s=new V7(this,e,t,i);for(let o of this.wrappers)s=o(s,e,t,i);return s}getGoto(e,t,i=!1){let s=this.goto;if(t>=s[0])return-1;for(let o=s[t+1];;){let r=s[o++],l=r&1,a=s[o++];if(l&&i)return a;for(let h=o+(r>>1);o<h;o++)if(s[o]==e)return a;if(l)return-1}}hasAction(e,t){let i=this.data;for(let s=0;s<2;s++)for(let o=this.stateSlot(e,s?2:1),r;;o+=3){if((r=i[o])==65535)if(i[o+1]==1)r=i[o=ct(i,o+2)];else{if(i[o+1]==2)return ct(i,o+2);break}if(r==t||r==0)return ct(i,o+1)}return 0}stateSlot(e,t){return this.states[e*6+t]}stateFlag(e,t){return(this.stateSlot(e,0)&t)>0}validAction(e,t){return!!this.allActions(e,i=>i==t?!0:null)}allActions(e,t){let i=this.stateSlot(e,4),s=i?t(i):void 0;for(let o=this.stateSlot(e,1);s==null;o+=3){if(this.data[o]==65535)if(this.data[o+1]==1)o=ct(this.data,o+2);else break;s=t(ct(this.data,o+1))}return s}nextStates(e){let t=[];for(let i=this.stateSlot(e,1);;i+=3){if(this.data[i]==65535)if(this.data[i+1]==1)i=ct(this.data,i+2);else break;if((this.data[i+2]&1)==0){let s=this.data[i+1];t.some((o,r)=>r&1&&o==s)||t.push(this.data[i],s)}}return t}configure(e){let t=Object.assign(Object.create(fn.prototype),this);if(e.props&&(t.nodeSet=this.nodeSet.extend(...e.props)),e.top){let i=this.topRules[e.top];if(!i)throw new RangeError(`Invalid top rule name ${e.top}`);t.top=i}return e.tokenizers&&(t.tokenizers=this.tokenizers.map(i=>{let s=e.tokenizers.find(o=>o.from==i);return s?s.to:i})),e.specializers&&(t.specializers=this.specializers.slice(),t.specializerSpecs=this.specializerSpecs.map((i,s)=>{let o=e.specializers.find(l=>l.from==i.external);if(!o)return i;let r=Object.assign(Object.assign({},i),{external:o.to});return t.specializers[s]=zr(r),r})),e.contextTracker&&(t.context=e.contextTracker),e.dialect&&(t.dialect=this.parseDialect(e.dialect)),e.strict!=null&&(t.strict=e.strict),e.wrap&&(t.wrappers=t.wrappers.concat(e.wrap)),e.bufferLength!=null&&(t.bufferLength=e.bufferLength),t}hasWrappers(){return this.wrappers.length>0}getName(e){return this.termNames?this.termNames[e]:String(e<=this.maxNode&&this.nodeSet.types[e].name||e)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(e){let t=this.dynamicPrecedences;return t==null?0:t[e]||0}parseDialect(e){let t=Object.keys(this.dialects),i=t.map(()=>!1);if(e)for(let o of e.split(" ")){let r=t.indexOf(o);r>=0&&(i[r]=!0)}let s=null;for(let o=0;o<t.length;o++)if(!i[o])for(let r=this.dialects[t[o]],l;(l=this.data[r++])!=65535;)(s||(s=new Uint8Array(this.maxTerm+1)))[l]=1;return new z7(e,i,s)}static deserialize(e){return new fn(e)}}function ct(n,e){return n[e]|n[e+1]<<16}function N7(n){let e=null;for(let t of n){let i=t.p.stoppedAt;(t.pos==t.p.stream.end||i!=null&&t.pos>i)&&t.p.parser.stateFlag(t.state,2)&&(!e||e.score<t.score)&&(e=t)}return e}function zr(n){if(n.external){let e=n.extend?1:0;return(t,i)=>n.external(t,i)<<1|e}return n.get}const Zs=1,R7=2,I7=3,H7=4,$7=5,W7=36,F7=37,G7=38,j7=11,q7=13;function U7(n){return n==45||n==46||n==58||n>=65&&n<=90||n==95||n>=97&&n<=122||n>=161}function Y7(n){return n==9||n==10||n==13||n==32}let Lr=null,Nr=null,Rr=0;function e2(n,e){let t=n.pos+e;if(Nr==n&&Rr==t)return Lr;for(;Y7(n.peek(e));)e++;let i="";for(;;){let s=n.peek(e);if(!U7(s))break;i+=String.fromCharCode(s),e++}return Nr=n,Rr=t,Lr=i||null}function Ir(n,e){this.name=n,this.parent=e}const K7=new L7({start:null,shift(n,e,t,i){return e==Zs?new Ir(e2(i,1)||"",n):n},reduce(n,e){return e==j7&&n?n.parent:n},reuse(n,e,t,i){let s=e.type.id;return s==Zs||s==q7?new Ir(e2(i,1)||"",n):n},strict:!1}),X7=new Xc((n,e)=>{if(n.next==60){if(n.advance(),n.next==47){n.advance();let t=e2(n,0);if(!t)return n.acceptToken($7);if(e.context&&t==e.context.name)return n.acceptToken(R7);for(let i=e.context;i;i=i.parent)if(i.name==t)return n.acceptToken(I7,-2);n.acceptToken(H7)}else if(n.next!=33&&n.next!=63)return n.acceptToken(Zs)}},{contextual:!0});function N2(n,e){return new Xc(t=>{let i=0,s=e.charCodeAt(0);e:for(;!(t.next<0);t.advance(),i++)if(t.next==s){for(let o=1;o<e.length;o++)if(t.peek(o)!=e.charCodeAt(o))continue e;break}i&&t.acceptToken(n)})}const Q7=N2(W7,"-->"),J7=N2(F7,"?>"),Z7=N2(G7,"]]>"),eg=Pa({Text:D.content,"StartTag StartCloseTag EndTag SelfCloseEndTag":D.angleBracket,TagName:D.tagName,"MismatchedCloseTag/TagName":[D.tagName,D.invalid],AttributeName:D.attributeName,AttributeValue:D.attributeValue,Is:D.definitionOperator,"EntityReference CharacterReference":D.character,Comment:D.blockComment,ProcessingInst:D.processingInstruction,DoctypeDecl:D.documentMeta,Cdata:D.special(D.string)}),tg=fn.deserialize({version:14,states:",lOQOaOOOrOxO'#CfOzOpO'#CiO!tOaO'#CgOOOP'#Cg'#CgO!{OrO'#CrO#TOtO'#CsO#]OpO'#CtOOOP'#DT'#DTOOOP'#Cv'#CvQQOaOOOOOW'#Cw'#CwO#eOxO,59QOOOP,59Q,59QOOOO'#Cx'#CxO#mOpO,59TO#uO!bO,59TOOOP'#C|'#C|O$TOaO,59RO$[OpO'#CoOOOP,59R,59ROOOQ'#C}'#C}O$dOrO,59^OOOP,59^,59^OOOS'#DO'#DOO$lOtO,59_OOOP,59_,59_O$tOpO,59`O$|OpO,59`OOOP-E6t-E6tOOOW-E6u-E6uOOOP1G.l1G.lOOOO-E6v-E6vO%UO!bO1G.oO%UO!bO1G.oO%dOpO'#CkO%lO!bO'#CyO%zO!bO1G.oOOOP1G.o1G.oOOOP1G.w1G.wOOOP-E6z-E6zOOOP1G.m1G.mO&VOpO,59ZO&_OpO,59ZOOOQ-E6{-E6{OOOP1G.x1G.xOOOS-E6|-E6|OOOP1G.y1G.yO&gOpO1G.zO&gOpO1G.zOOOP1G.z1G.zO&oO!bO7+$ZO&}O!bO7+$ZOOOP7+$Z7+$ZOOOP7+$c7+$cO'YOpO,59VO'bOpO,59VO'mO!bO,59eOOOO-E6w-E6wO'{OpO1G.uO'{OpO1G.uOOOP1G.u1G.uO(TOpO7+$fOOOP7+$f7+$fO(]O!bO<<GuOOOP<<Gu<<GuOOOP<<G}<<G}O'bOpO1G.qO'bOpO1G.qO(hO#tO'#CnO(vO&jO'#CnOOOO1G.q1G.qO)UOpO7+$aOOOP7+$a7+$aOOOP<<HQ<<HQOOOPAN=aAN=aOOOPAN=iAN=iO'bOpO7+$]OOOO7+$]7+$]OOOO'#Cz'#CzO)^O#tO,59YOOOO,59Y,59YOOOO'#C{'#C{O)lO&jO,59YOOOP<<G{<<G{OOOO<<Gw<<GwOOOO-E6x-E6xOOOO1G.t1G.tOOOO-E6y-E6y",stateData:")z~OPQOSVOTWOVWOWWOXWOiXOyPO!QTO!SUO~OvZOx]O~O^`Oz^O~OPQOQcOSVOTWOVWOWWOXWOyPO!QTO!SUO~ORdO~P!SOteO!PgO~OuhO!RjO~O^lOz^O~OvZOxoO~O^qOz^O~O[vO`sOdwOz^O~ORyO~P!SO^{Oz^O~OteO!P}O~OuhO!R!PO~O^!QOz^O~O[!SOz^O~O[!VO`sOd!WOz^O~Oa!YOz^O~Oz^O[mX`mXdmX~O[!VO`sOd!WO~O^!]Oz^O~O[!_Oz^O~O[!aOz^O~O[!cO`sOd!dOz^O~O[!cO`sOd!dO~Oa!eOz^O~Oz^O{!gO}!hO~Oz^O[ma`madma~O[!kOz^O~O[!lOz^O~O[!mO`sOd!nO~OW!qOX!qO{!sO|!qO~OW!tOX!tO}!sO!O!tO~O[!vOz^O~OW!qOX!qO{!yO|!qO~OW!tOX!tO}!yO!O!tO~O",goto:"%cxPPPPPPPPPPyyP!PP!VPP!`!jP!pyyyP!v!|#S$[$k$q$w$}%TPPPP%ZXWORYbXRORYb_t`qru!T!U!bQ!i!YS!p!e!fR!w!oQdRRybXSORYbQYORmYQ[PRn[Q_QQkVjp_krz!R!T!X!Z!^!`!f!j!oQr`QzcQ!RlQ!TqQ!XsQ!ZtQ!^{Q!`!QQ!f!YQ!j!]R!o!eQu`S!UqrU![u!U!bR!b!TQ!r!gR!x!rQ!u!hR!z!uQbRRxbQfTR|fQiUR!OiSXOYTaRb",nodeNames:"⚠ StartTag StartCloseTag MissingCloseTag StartCloseTag StartCloseTag Document Text EntityReference CharacterReference Cdata Element EndTag OpenTag TagName Attribute AttributeName Is AttributeValue CloseTag SelfCloseEndTag SelfClosingTag Comment ProcessingInst MismatchedCloseTag DoctypeDecl",maxTerm:50,context:K7,nodeProps:[["closedBy",1,"SelfCloseEndTag EndTag",13,"CloseTag MissingCloseTag"],["openedBy",12,"StartTag StartCloseTag",19,"OpenTag",20,"StartTag"],["isolate",-6,13,18,19,21,22,24,""]],propSources:[eg],skippedNodes:[0],repeatNodeCount:9,tokenData:"!)v~R!YOX$qXY)iYZ)iZ]$q]^)i^p$qpq)iqr$qrs*vsv$qvw+fwx/ix}$q}!O0[!O!P$q!P!Q2z!Q![$q![!]4n!]!^$q!^!_8U!_!`!#t!`!a!$l!a!b!%d!b!c$q!c!}4n!}#P$q#P#Q!'W#Q#R$q#R#S4n#S#T$q#T#o4n#o%W$q%W%o4n%o%p$q%p&a4n&a&b$q&b1p4n1p4U$q4U4d4n4d4e$q4e$IS4n$IS$I`$q$I`$Ib4n$Ib$Kh$q$Kh%#t4n%#t&/x$q&/x&Et4n&Et&FV$q&FV;'S4n;'S;:j8O;:j;=`)c<%l?&r$q?&r?Ah4n?Ah?BY$q?BY?Mn4n?MnO$qi$zXVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_;'S$q;'S;=`)c<%lO$qa%nVVP!O`Ov%gwx&Tx!^%g!^!_&o!_;'S%g;'S;=`'W<%lO%gP&YTVPOv&Tw!^&T!_;'S&T;'S;=`&i<%lO&TP&lP;=`<%l&T`&tS!O`Ov&ox;'S&o;'S;=`'Q<%lO&o`'TP;=`<%l&oa'ZP;=`<%l%gX'eWVP|WOr'^rs&Tsv'^w!^'^!^!_'}!_;'S'^;'S;=`(i<%lO'^W(ST|WOr'}sv'}w;'S'};'S;=`(c<%lO'}W(fP;=`<%l'}X(lP;=`<%l'^h(vV|W!O`Or(ors&osv(owx'}x;'S(o;'S;=`)]<%lO(oh)`P;=`<%l(oi)fP;=`<%l$qo)t`VP|W!O`zUOX$qXY)iYZ)iZ]$q]^)i^p$qpq)iqr$qrs%gsv$qwx'^x!^$q!^!_(o!_;'S$q;'S;=`)c<%lO$qk+PV{YVP!O`Ov%gwx&Tx!^%g!^!_&o!_;'S%g;'S;=`'W<%lO%g~+iast,n![!]-r!c!}-r#R#S-r#T#o-r%W%o-r%p&a-r&b1p-r4U4d-r4e$IS-r$I`$Ib-r$Kh%#t-r&/x&Et-r&FV;'S-r;'S;:j/c?&r?Ah-r?BY?Mn-r~,qQ!Q![,w#l#m-V~,zQ!Q![,w!]!^-Q~-VOX~~-YR!Q![-c!c!i-c#T#Z-c~-fS!Q![-c!]!^-Q!c!i-c#T#Z-c~-ug}!O-r!O!P-r!Q![-r![!]-r!]!^/^!c!}-r#R#S-r#T#o-r$}%O-r%W%o-r%p&a-r&b1p-r1p4U-r4U4d-r4e$IS-r$I`$Ib-r$Je$Jg-r$Kh%#t-r&/x&Et-r&FV;'S-r;'S;:j/c?&r?Ah-r?BY?Mn-r~/cOW~~/fP;=`<%l-rk/rW}bVP|WOr'^rs&Tsv'^w!^'^!^!_'}!_;'S'^;'S;=`(i<%lO'^k0eZVP|W!O`Or$qrs%gsv$qwx'^x}$q}!O1W!O!^$q!^!_(o!_;'S$q;'S;=`)c<%lO$qk1aZVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_!`$q!`!a2S!a;'S$q;'S;=`)c<%lO$qk2_X!PQVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_;'S$q;'S;=`)c<%lO$qm3TZVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_!`$q!`!a3v!a;'S$q;'S;=`)c<%lO$qm4RXdSVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_;'S$q;'S;=`)c<%lO$qo4{!P`S^QVP|W!O`Or$qrs%gsv$qwx'^x}$q}!O4n!O!P4n!P!Q$q!Q![4n![!]4n!]!^$q!^!_(o!_!c$q!c!}4n!}#R$q#R#S4n#S#T$q#T#o4n#o$}$q$}%O4n%O%W$q%W%o4n%o%p$q%p&a4n&a&b$q&b1p4n1p4U4n4U4d4n4d4e$q4e$IS4n$IS$I`$q$I`$Ib4n$Ib$Je$q$Je$Jg4n$Jg$Kh$q$Kh%#t4n%#t&/x$q&/x&Et4n&Et&FV$q&FV;'S4n;'S;:j8O;:j;=`)c<%l?&r$q?&r?Ah4n?Ah?BY$q?BY?Mn4n?MnO$qo8RP;=`<%l4ni8]Y|W!O`Oq(oqr8{rs&osv(owx'}x!a(o!a!b!#U!b;'S(o;'S;=`)]<%lO(oi9S_|W!O`Or(ors&osv(owx'}x}(o}!O:R!O!f(o!f!g;e!g!}(o!}#ODh#O#W(o#W#XLp#X;'S(o;'S;=`)]<%lO(oi:YX|W!O`Or(ors&osv(owx'}x}(o}!O:u!O;'S(o;'S;=`)]<%lO(oi;OV!QP|W!O`Or(ors&osv(owx'}x;'S(o;'S;=`)]<%lO(oi;lX|W!O`Or(ors&osv(owx'}x!q(o!q!r<X!r;'S(o;'S;=`)]<%lO(oi<`X|W!O`Or(ors&osv(owx'}x!e(o!e!f<{!f;'S(o;'S;=`)]<%lO(oi=SX|W!O`Or(ors&osv(owx'}x!v(o!v!w=o!w;'S(o;'S;=`)]<%lO(oi=vX|W!O`Or(ors&osv(owx'}x!{(o!{!|>c!|;'S(o;'S;=`)]<%lO(oi>jX|W!O`Or(ors&osv(owx'}x!r(o!r!s?V!s;'S(o;'S;=`)]<%lO(oi?^X|W!O`Or(ors&osv(owx'}x!g(o!g!h?y!h;'S(o;'S;=`)]<%lO(oi@QY|W!O`Or?yrs@psv?yvwA[wxBdx!`?y!`!aCr!a;'S?y;'S;=`Db<%lO?ya@uV!O`Ov@pvxA[x!`@p!`!aAy!a;'S@p;'S;=`B^<%lO@pPA_TO!`A[!`!aAn!a;'SA[;'S;=`As<%lOA[PAsOiPPAvP;=`<%lA[aBQSiP!O`Ov&ox;'S&o;'S;=`'Q<%lO&oaBaP;=`<%l@pXBiX|WOrBdrsA[svBdvwA[w!`Bd!`!aCU!a;'SBd;'S;=`Cl<%lOBdXC]TiP|WOr'}sv'}w;'S'};'S;=`(c<%lO'}XCoP;=`<%lBdiC{ViP|W!O`Or(ors&osv(owx'}x;'S(o;'S;=`)]<%lO(oiDeP;=`<%l?yiDoZ|W!O`Or(ors&osv(owx'}x!e(o!e!fEb!f#V(o#V#WIr#W;'S(o;'S;=`)]<%lO(oiEiX|W!O`Or(ors&osv(owx'}x!f(o!f!gFU!g;'S(o;'S;=`)]<%lO(oiF]X|W!O`Or(ors&osv(owx'}x!c(o!c!dFx!d;'S(o;'S;=`)]<%lO(oiGPX|W!O`Or(ors&osv(owx'}x!v(o!v!wGl!w;'S(o;'S;=`)]<%lO(oiGsX|W!O`Or(ors&osv(owx'}x!c(o!c!dH`!d;'S(o;'S;=`)]<%lO(oiHgX|W!O`Or(ors&osv(owx'}x!}(o!}#OIS#O;'S(o;'S;=`)]<%lO(oiI]V|W!O`yPOr(ors&osv(owx'}x;'S(o;'S;=`)]<%lO(oiIyX|W!O`Or(ors&osv(owx'}x#W(o#W#XJf#X;'S(o;'S;=`)]<%lO(oiJmX|W!O`Or(ors&osv(owx'}x#T(o#T#UKY#U;'S(o;'S;=`)]<%lO(oiKaX|W!O`Or(ors&osv(owx'}x#h(o#h#iK|#i;'S(o;'S;=`)]<%lO(oiLTX|W!O`Or(ors&osv(owx'}x#T(o#T#UH`#U;'S(o;'S;=`)]<%lO(oiLwX|W!O`Or(ors&osv(owx'}x#c(o#c#dMd#d;'S(o;'S;=`)]<%lO(oiMkX|W!O`Or(ors&osv(owx'}x#V(o#V#WNW#W;'S(o;'S;=`)]<%lO(oiN_X|W!O`Or(ors&osv(owx'}x#h(o#h#iNz#i;'S(o;'S;=`)]<%lO(oi! RX|W!O`Or(ors&osv(owx'}x#m(o#m#n! n#n;'S(o;'S;=`)]<%lO(oi! uX|W!O`Or(ors&osv(owx'}x#d(o#d#e!!b#e;'S(o;'S;=`)]<%lO(oi!!iX|W!O`Or(ors&osv(owx'}x#X(o#X#Y?y#Y;'S(o;'S;=`)]<%lO(oi!#_V!SP|W!O`Or(ors&osv(owx'}x;'S(o;'S;=`)]<%lO(ok!$PXaQVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_;'S$q;'S;=`)c<%lO$qo!$wX[UVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_;'S$q;'S;=`)c<%lO$qk!%mZVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_!`$q!`!a!&`!a;'S$q;'S;=`)c<%lO$qk!&kX!RQVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_;'S$q;'S;=`)c<%lO$qk!'aZVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_#P$q#P#Q!(S#Q;'S$q;'S;=`)c<%lO$qk!(]ZVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_!`$q!`!a!)O!a;'S$q;'S;=`)c<%lO$qk!)ZXxQVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_;'S$q;'S;=`)c<%lO$q",tokenizers:[X7,Q7,J7,Z7,0,1,2,3,4],topRules:{Document:[0,6]},tokenPrec:0});function N0(n,e){let t=e&&e.getChild("TagName");return t?n.sliceString(t.from,t.to):""}function is(n,e){let t=e&&e.firstChild;return!t||t.name!="OpenTag"?"":N0(n,t)}function ig(n,e,t){let i=e&&e.getChildren("Attribute").find(o=>o.from<=t&&o.to>=t),s=i&&i.getChild("AttributeName");return s?n.sliceString(s.from,s.to):""}function ns(n){for(let e=n&&n.parent;e;e=e.parent)if(e.name=="Element")return e;return null}function ng(n,e){var t;let i=me(n).resolveInner(e,-1),s=null;for(let o=i;!s&&o.parent;o=o.parent)(o.name=="OpenTag"||o.name=="CloseTag"||o.name=="SelfClosingTag"||o.name=="MismatchedCloseTag")&&(s=o);if(s&&(s.to>e||s.lastChild.type.isError)){let o=s.parent;if(i.name=="TagName")return s.name=="CloseTag"||s.name=="MismatchedCloseTag"?{type:"closeTag",from:i.from,context:o}:{type:"openTag",from:i.from,context:ns(o)};if(i.name=="AttributeName")return{type:"attrName",from:i.from,context:s};if(i.name=="AttributeValue")return{type:"attrValue",from:i.from,context:s};let r=i==s||i.name=="Attribute"?i.childBefore(e):i;return(r==null?void 0:r.name)=="StartTag"?{type:"openTag",from:e,context:ns(o)}:(r==null?void 0:r.name)=="StartCloseTag"&&r.to<=e?{type:"closeTag",from:e,context:o}:(r==null?void 0:r.name)=="Is"?{type:"attrValue",from:e,context:s}:r?{type:"attrName",from:e,context:s}:null}else if(i.name=="StartCloseTag")return{type:"closeTag",from:e,context:i.parent};for(;i.parent&&i.to==e&&!(!((t=i.lastChild)===null||t===void 0)&&t.type.isError);)i=i.parent;return i.name=="Element"||i.name=="Text"||i.name=="Document"?{type:"tag",from:e,context:i.name=="Element"?i:ns(i)}:null}class sg{constructor(e,t,i){this.attrs=t,this.attrValues=i,this.children=[],this.name=e.name,this.completion=Object.assign(Object.assign({type:"type"},e.completion||{}),{label:this.name}),this.openCompletion=Object.assign(Object.assign({},this.completion),{label:"<"+this.name}),this.closeCompletion=Object.assign(Object.assign({},this.completion),{label:"</"+this.name+">",boost:2}),this.closeNameCompletion=Object.assign(Object.assign({},this.completion),{label:this.name+">"}),this.text=e.textContent?e.textContent.map(s=>({label:s,type:"text"})):[]}}const ss=/^[:\-\.\w\u00b7-\uffff]*$/;function Hr(n){return Object.assign(Object.assign({type:"property"},n.completion||{}),{label:n.name})}function $r(n){return typeof n=="string"?{label:`"${n}"`,type:"constant"}:/^"/.test(n.label)?n:Object.assign(Object.assign({},n),{label:`"${n.label}"`})}function og(n,e){let t=[],i=[],s=Object.create(null);for(let a of e){let h=Hr(a);t.push(h),a.global&&i.push(h),a.values&&(s[a.name]=a.values.map($r))}let o=[],r=[],l=Object.create(null);for(let a of n){let h=i,c=s;a.attributes&&(h=h.concat(a.attributes.map(d=>typeof d=="string"?t.find(p=>p.label==d)||{label:d,type:"property"}:(d.values&&(c==s&&(c=Object.create(c)),c[d.name]=d.values.map($r)),Hr(d)))));let f=new sg(a,h,c);l[f.name]=f,o.push(f),a.top&&r.push(f)}r.length||(r=o);for(let a=0;a<o.length;a++){let h=n[a],c=o[a];if(h.children)for(let f of h.children)l[f]&&c.children.push(l[f]);else c.children=o}return a=>{var h;let{doc:c}=a.state,f=ng(a.state,a.pos);if(!f||f.type=="tag"&&!a.explicit)return null;let{type:d,from:p,context:g}=f;if(d=="openTag"){let m=r,v=is(c,g);if(v){let w=l[v];m=(w==null?void 0:w.children)||o}return{from:p,options:m.map(w=>w.completion),validFor:ss}}else if(d=="closeTag"){let m=is(c,g);return m?{from:p,to:a.pos+(c.sliceString(a.pos,a.pos+1)==">"?1:0),options:[((h=l[m])===null||h===void 0?void 0:h.closeNameCompletion)||{label:m+">",type:"type"}],validFor:ss}:null}else if(d=="attrName"){let m=l[N0(c,g)];return{from:p,options:(m==null?void 0:m.attrs)||i,validFor:ss}}else if(d=="attrValue"){let m=ig(c,g,p);if(!m)return null;let v=l[N0(c,g)],w=((v==null?void 0:v.attrValues)||s)[m];return!w||!w.length?null:{from:p,to:a.pos+(c.sliceString(a.pos,a.pos+1)=='"'?1:0),options:w,validFor:/^"[^"]*"?$/}}else if(d=="tag"){let m=is(c,g),v=l[m],w=[],b=g&&g.lastChild;m&&(!b||b.name!="CloseTag"||N0(c,b)!=m)&&w.push(v?v.closeCompletion:{label:"</"+m+">",type:"type",boost:2});let S=w.concat(((v==null?void 0:v.children)||(g?o:r)).map(k=>k.openCompletion));if(g&&(v!=null&&v.text.length)){let k=g.firstChild;k.to>a.pos-20&&!/\S/.test(a.state.sliceDoc(k.to,a.pos))&&(S=S.concat(v.text))}return{from:p,options:S,validFor:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}else return null}}const t2=X0.define({name:"xml",parser:tg.configure({props:[La.add({Element(n){let e=/^\s*<\//.test(n.textAfter);return n.lineIndent(n.node.from)+(e?0:n.unit)},"OpenTag CloseTag SelfClosingTag"(n){return n.column(n.node.from)+n.unit}}),Ra.add({Element(n){let e=n.firstChild,t=n.lastChild;return!e||e.name!="OpenTag"?null:{from:e.to,to:t.name=="CloseTag"?t.from:n.to}}}),Xa.add({"OpenTag CloseTag":n=>n.getChild("TagName")})]}),languageData:{commentTokens:{block:{open:"<!--",close:"-->"}},indentOnInput:/^\s*<\/$/}});function rg(n={}){let e=[t2.data.of({autocomplete:og(n.elements||[],n.attributes||[])})];return n.autoCloseTags!==!1&&e.push(lg),new ep(t2,e)}function Wr(n,e,t=n.length){if(!e)return"";let i=e.firstChild,s=i&&i.getChild("TagName");return s?n.sliceString(s.from,Math.min(s.to,t)):""}const lg=z.inputHandler.of((n,e,t,i,s)=>{if(n.composing||n.state.readOnly||e!=t||i!=">"&&i!="/"||!t2.isActiveAt(n.state,e,-1))return!1;let o=s(),{state:r}=o,l=r.changeByRange(a=>{var h,c,f;let{head:d}=a,p=r.doc.sliceString(d-1,d)==i,g=me(r).resolveInner(d,-1),m;if(p&&i==">"&&g.name=="EndTag"){let v=g.parent;if(((c=(h=v.parent)===null||h===void 0?void 0:h.lastChild)===null||c===void 0?void 0:c.name)!="CloseTag"&&(m=Wr(r.doc,v.parent,d))){let w=d+(r.doc.sliceString(d,d+1)===">"?1:0),b=`</${m}>`;return{range:a,changes:{from:d,to:w,insert:b}}}}else if(p&&i=="/"&&g.name=="StartCloseTag"){let v=g.parent;if(g.from==d-2&&((f=v.lastChild)===null||f===void 0?void 0:f.name)!="CloseTag"&&(m=Wr(r.doc,v,d))){let w=d+(r.doc.sliceString(d,d+1)===">"?1:0),b=`${m}>`;return{range:O.cursor(d+b.length,-1),changes:{from:d,to:w,insert:b}}}}return{range:a}});return l.changes.empty?!1:(n.dispatch([o,r.update(l,{userEvent:"input.complete",scrollIntoView:!0})]),!0)}),ag={class:"xml-renderer"},cg={ref:"xml-editor",id:"xml-editor"},hg={__name:"index",props:{fileName:String,blobUrl:String},setup(n){const e=n,t=u.computed(()=>e.blobUrl),i=u.ref("");return u.watchEffect(async()=>{const o=await(await fetch(t.value)).blob(),r=new FileReader;r.onload=function(l){i.value=l.target.result},r.readAsText(o)}),u.watchEffect(()=>{const s=new z({doc:i.value,extensions:[M7,rg(),z.lineWrapping,q.readOnly.of(!0)],parent:document.querySelector("#xml-editor")});s.dom.style.width="100%"}),(s,o)=>(u.openBlock(),u.createElementBlock("div",ag,[u.createElementVNode("div",cg,null,512)]))}},ug=ue._export_sfc(hg,[["__scopeId","data-v-5a7ea2b9"]]),fg={class:"img-renderer"},dg={__name:"index",props:{fileName:String,blobUrl:String},setup(n){const e=n,t=u.computed(()=>e.blobUrl),i=u.computed(()=>[e.blobUrl]);return(s,o)=>{const r=u.resolveComponent("el-image");return u.openBlock(),u.createElementBlock("div",fg,[u.createVNode(r,{class:"render-img",src:t.value,"zoom-rate":1.2,"max-scale":7,"min-scale":.2,"preview-src-list":i.value,fit:"contain"},null,8,["src","preview-src-list"])])}}},pg=ue._export_sfc(dg,[["__scopeId","data-v-92be70b7"]]),gg={class:"file-preview"},mg={key:0,class:"preview-docx"},vg={key:1,class:"preview-xlsx"},wg={key:2,class:"preview-pdf"},xg={key:3,class:"preview-xml"},bg={key:4,class:"preview-xml"},yg={key:5,class:"preview-txt"},kg={key:6,class:"not-support"},Sg={__name:"index",props:{fileName:String,blobUrl:String},emits:["destroy"],setup(n,{emit:e}){const t=e,i=n,s=u.computed(()=>i.blobUrl),o=u.computed(()=>i.fileName),r=u.computed(()=>{const v=o.value;if(!v)return;const w=v.split(".");return w==null?void 0:w[1]}),l=u.computed(()=>(r==null?void 0:r.value)==="txt"),a=u.computed(()=>(r==null?void 0:r.value)==="ls"),h=u.computed(()=>(r==null?void 0:r.value)==="urdf"),c=u.computed(()=>h.value),f=u.computed(()=>(r==null?void 0:r.value)==="docx"),d=u.computed(()=>(r==null?void 0:r.value)==="xlsx"),p=u.computed(()=>(r==null?void 0:r.value)==="pdf"),g=u.computed(()=>{const v=r==null?void 0:r.value;return v==="jpg"||v==="png"}),m=u.computed(()=>!l&&!a&&!c&&!f&&!d&&!p&&!g);return u.onUnmounted(()=>{t("destroy")}),(v,w)=>(u.openBlock(),u.createElementBlock("div",gg,[f.value?(u.openBlock(),u.createElementBlock("div",mg,[u.createVNode(Df,{fileName:o.value,blobUrl:s.value},null,8,["fileName","blobUrl"])])):u.createCommentVNode("",!0),d.value?(u.openBlock(),u.createElementBlock("div",vg,[u.createVNode(Bf,{fileName:o.value,blobUrl:s.value},null,8,["fileName","blobUrl"])])):u.createCommentVNode("",!0),p.value?(u.openBlock(),u.createElementBlock("div",wg,[u.createVNode(zf,{fileName:o.value,blobUrl:s.value},null,8,["fileName","blobUrl"])])):u.createCommentVNode("",!0),h.value?(u.openBlock(),u.createElementBlock("div",xg,[u.createVNode(ug,{fileName:o.value,blobUrl:s.value},null,8,["fileName","blobUrl"])])):u.createCommentVNode("",!0),g.value?(u.openBlock(),u.createElementBlock("div",bg,[u.createVNode(pg,{fileName:o.value,blobUrl:s.value},null,8,["fileName","blobUrl"])])):!f.value&&!d.value&&!p.value&&!h.value&&!g.value?(u.openBlock(),u.createElementBlock("div",yg,[u.createVNode(_f,{fileName:o.value,blobUrl:s.value},null,8,["fileName","blobUrl"])])):u.createCommentVNode("",!0),m.value?(u.openBlock(),u.createElementBlock("div",kg,w[0]||(w[0]=[u.createElementVNode("div",null,"当前文件格式暂不支持预览",-1)]))):u.createCommentVNode("",!0)]))}},R2=ue._export_sfc(Sg,[["__scopeId","data-v-4049578c"]]),Cg={key:0,class:"upload-value"},_g={class:"upload-content-title-wrap"},Og={class:"upload-content-title"},Mg={class:"icon"},Dg={style:{display:"flex","justify-content":"space-between",width:"100%"}},Tg={class:"upload-content-title"},Ag={class:"icon"},Bg={class:"dialog-footer"},Pg={__name:"index",props:{modelValue:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},emits:["update:modelValue"],setup(n,{emit:e}){const t=n,i=e,s=u.ref(Array.isArray(t.modelValue)?t.modelValue:[]),o=u.ref(!1),r=u.ref(Array.isArray(t.modelValue)?t.modelValue:[]),l=u.ref(!1),a=u.ref(""),h=u.ref(""),c=u.ref(Array.isArray(t.modelValue)?t.modelValue:[]),f=()=>{l.value=!0,c.value=s.value,r.value=s.value},d=async S=>{var _;const k=await el({url:(_=ee.cloneDeep(S))==null?void 0:_.url});let y=URL.createObjectURL(k.data);h.value=y},p=async S=>{var y,_,C,T;if(S==null?void 0:S.url)a.value=(S==null?void 0:S.name)+"."+((T=(y=ee.cloneDeep(S))==null?void 0:y.url.split("."))==null?void 0:T[((C=(_=ee.cloneDeep(S))==null?void 0:_.url.split("."))==null?void 0:C.length)-1]),await d(S);else{a.value=S==null?void 0:S.name;const P=S.raw;h.value=URL.createObjectURL(P)}o.value=!0},g=S=>{var k;c.value=(k=ee.cloneDeep(c.value))==null?void 0:k.filter((y,_)=>_!==S),r.value=c.value},m=S=>{var P;const k=S.split(","),y=(P=k==null?void 0:k[0])==null?void 0:P.match(/:(.*?);/)[1],_=atob(k[1]);let C=_.length;const T=new Uint8Array(C);for(;C--;)T[C]=_.charCodeAt(C);return new Blob([T],{type:y})},v=async()=>{var _;l.value=!1;const S=(_=r.value)==null?void 0:_.map(async C=>{if(C!=null&&C.base64){const T=new FormData,P=m(C==null?void 0:C.base64);return T.append("file",P,C==null?void 0:C.name),await xf(T)}else return C}),k=await Promise.all(S);let y=[];k==null||k.map(C=>{var T,P,x,H,N,M;return y.push({name:((P=(T=C==null?void 0:C.data)==null?void 0:T.result)==null?void 0:P.fileName)??(C==null?void 0:C.name),url:((H=(x=C==null?void 0:C.data)==null?void 0:x.result)==null?void 0:H.url)??(C==null?void 0:C.url)}),(M=(N=C==null?void 0:C.data)==null?void 0:N.result)==null?void 0:M.url}),ee.ElMessage.success("上传成功"),s.value=y,i("update:modelValue",y),r.value=[]},w=()=>{l.value=!1,r.value=s.value,c.value=s.value},b=S=>{if(!S)return;const k=new FileReader;k.onload=y=>{const _=r.value===""?[]:r.value;_.push({name:S.name,size:S.size,type:S.type,base64:y.target.result}),r.value=_},k.onerror=y=>{console.error("文件读取错误:",y),fileData.value={name:"",size:0,type:"",base64:""}},k.readAsDataURL(S.raw)};return(S,k)=>{const y=u.resolveComponent("el-button"),_=u.resolveComponent("svg-icon"),C=u.resolveComponent("el-icon"),T=u.resolveComponent("el-upload");return t!=null&&t.isEdit?(u.openBlock(),u.createElementBlock("div",Cg,[u.createVNode(y,{type:"primary",onClick:f,class:"upload-button"},{default:u.withCtx(()=>k[2]||(k[2]=[u.createTextVNode(" 上传 ")])),_:1,__:[2]}),u.createElementVNode("div",_g,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(s.value,P=>(u.openBlock(),u.createElementBlock("div",{class:"upload-content-title",key:P,style:{display:"flex","justify-content":"space-between",width:"100%"}},[u.createElementVNode("div",Og,u.toDisplayString(P==null?void 0:P.name),1),u.createElementVNode("div",Mg,[u.createVNode(_,{name:"EyeFill",style:{width:"20px",height:"20px",cursor:"pointer"},onClick:x=>p(P)},null,8,["onClick"])])]))),128))]),u.createVNode(Ei,{visible:l.value,onBeforeDestroy:w,title:"上传文件"},{default:u.withCtx(()=>[u.createVNode(T,{"file-list":c.value,"onUpdate:fileList":k[0]||(k[0]=P=>c.value=P),multiple:"",drag:"",action:"","auto-upload":!1,limit:20,"on-change":b,class:"upload-content"},{tip:u.withCtx(()=>k[3]||(k[3]=[u.createElementVNode("div",{class:"el-upload__tip tip-content"}," 请上传大小不超过10MB的文件 ",-1)])),default:u.withCtx(()=>[u.createVNode(C,{class:"el-icon--upload"},{default:u.withCtx(()=>[u.createVNode(u.unref(ee.upload_filled_default))]),_:1}),k[4]||(k[4]=u.createElementVNode("div",{class:"el-upload__text"},[u.createTextVNode(" 将文件拖到此处或"),u.createElementVNode("em",null,"点击上传")],-1))]),file:u.withCtx(({file:P,index:x})=>[u.createElementVNode("div",Dg,[u.createElementVNode("div",Tg,u.toDisplayString(P==null?void 0:P.name),1),u.createElementVNode("div",Ag,[u.createVNode(_,{name:"EyeFill",style:{width:"20px",height:"20px",cursor:"pointer"},onClick:H=>p(P)},null,8,["onClick"]),u.createVNode(_,{name:"Cancel",style:{width:"20px",height:"20px",cursor:"pointer"},onClick:H=>g(x)},null,8,["onClick"])])])]),_:1},8,["file-list"])]),footer:u.withCtx(()=>[u.createElementVNode("div",Bg,[u.createVNode(y,{onClick:w,id:"themeBorderButton"},{default:u.withCtx(()=>k[5]||(k[5]=[u.createTextVNode("取消")])),_:1,__:[5]}),u.createVNode(y,{type:"primary",onClick:v,id:"themeButton"},{default:u.withCtx(()=>k[6]||(k[6]=[u.createTextVNode("确认")])),_:1,__:[6]})])]),_:1},8,["visible"]),u.createVNode(Ei,{visible:o.value,onBeforeDestroy:k[1]||(k[1]=P=>o.value=!1),style:{height:"calc(100% - 200px)"}},{default:u.withCtx(()=>[(u.openBlock(),u.createBlock(R2,{key:a.value+h.value,fileName:a.value,blobUrl:h.value},null,8,["fileName","blobUrl"]))]),_:1},8,["visible"])])):u.createCommentVNode("",!0)}}},Eg=ue._export_sfc(Pg,[["__scopeId","data-v-c950e225"]]);/*!
|
|
13
13
|
* Signature Pad v3.0.0-beta.4 | https://github.com/szimek/signature_pad
|
|
14
14
|
* (c) 2020 Szymon Nowak | Released under the MIT license
|
|
15
|
-
*/class dn{constructor(e,t,i){this.x=e,this.y=t,this.time=i||Date.now()}distanceTo(e){return Math.sqrt(Math.pow(this.x-e.x,2)+Math.pow(this.y-e.y,2))}equals(e){return this.x===e.x&&this.y===e.y&&this.time===e.time}velocityFrom(e){return this.time!==e.time?this.distanceTo(e)/(this.time-e.time):0}}class Is{constructor(e,t,i,s,o,r){this.startPoint=e,this.control2=t,this.control1=i,this.endPoint=s,this.startWidth=o,this.endWidth=r}static fromPoints(e,t){const i=this.calculateControlPoints(e[0],e[1],e[2]).c2,s=this.calculateControlPoints(e[1],e[2],e[3]).c1;return new Is(e[1],i,s,e[2],t.start,t.end)}static calculateControlPoints(e,t,i){const s=e.x-t.x,o=e.y-t.y,r=t.x-i.x,l=t.y-i.y,a={x:(e.x+t.x)/2,y:(e.y+t.y)/2},h={x:(t.x+i.x)/2,y:(t.y+i.y)/2},c=Math.sqrt(s*s+o*o),f=Math.sqrt(r*r+l*l),d=a.x-h.x,p=a.y-h.y,g=f/(c+f),m={x:h.x+d*g,y:h.y+p*g},v=t.x-m.x,w=t.y-m.y;return{c1:new dn(a.x+v,a.y+w),c2:new dn(h.x+v,h.y+w)}}length(){let t=0,i,s;for(let o=0;o<=10;o+=1){const r=o/10,l=this.point(r,this.startPoint.x,this.control1.x,this.control2.x,this.endPoint.x),a=this.point(r,this.startPoint.y,this.control1.y,this.control2.y,this.endPoint.y);if(o>0){const h=l-i,c=a-s;t+=Math.sqrt(h*h+c*c)}i=l,s=a}return t}point(e,t,i,s,o){return t*(1-e)*(1-e)*(1-e)+3*i*(1-e)*(1-e)*e+3*s*(1-e)*e*e+o*e*e*e}}function Eg(n,e=250){let t=0,i=null,s,o,r;const l=()=>{t=Date.now(),i=null,s=n.apply(o,r),i||(o=null,r=[])};return function(...h){const c=Date.now(),f=e-(c-t);return o=this,r=h,f<=0||f>e?(i&&(clearTimeout(i),i=null),t=c,s=n.apply(o,r),i||(o=null,r=[])):i||(i=window.setTimeout(l,f)),s}}class pn{constructor(e,t={}){this.canvas=e,this.options=t,this._handleMouseDown=i=>{i.which===1&&(this._mouseButtonDown=!0,this._strokeBegin(i))},this._handleMouseMove=i=>{this._mouseButtonDown&&this._strokeMoveUpdate(i)},this._handleMouseUp=i=>{i.which===1&&this._mouseButtonDown&&(this._mouseButtonDown=!1,this._strokeEnd(i))},this._handleTouchStart=i=>{if(i.preventDefault(),i.targetTouches.length===1){const s=i.changedTouches[0];this._strokeBegin(s)}},this._handleTouchMove=i=>{i.preventDefault();const s=i.targetTouches[0];this._strokeMoveUpdate(s)},this._handleTouchEnd=i=>{if(i.target===this.canvas){i.preventDefault();const o=i.changedTouches[0];this._strokeEnd(o)}},this.velocityFilterWeight=t.velocityFilterWeight||.7,this.minWidth=t.minWidth||.5,this.maxWidth=t.maxWidth||2.5,this.throttle="throttle"in t?t.throttle:16,this.minDistance="minDistance"in t?t.minDistance:5,this.dotSize=t.dotSize||function(){return(this.minWidth+this.maxWidth)/2},this.penColor=t.penColor||"black",this.backgroundColor=t.backgroundColor||"rgba(0,0,0,0)",this.onBegin=t.onBegin,this.onEnd=t.onEnd,this._strokeMoveUpdate=this.throttle?Eg(pn.prototype._strokeUpdate,this.throttle):pn.prototype._strokeUpdate,this._ctx=e.getContext("2d"),this.clear(),this.on()}clear(){const{_ctx:e,canvas:t}=this;e.fillStyle=this.backgroundColor,e.clearRect(0,0,t.width,t.height),e.fillRect(0,0,t.width,t.height),this._data=[],this._reset(),this._isEmpty=!0}fromDataURL(e,t={},i){const s=new Image,o=t.ratio||window.devicePixelRatio||1,r=t.width||this.canvas.width/o,l=t.height||this.canvas.height/o;this._reset(),s.onload=()=>{this._ctx.drawImage(s,0,0,r,l),i&&i()},s.onerror=a=>{i&&i(a)},s.src=e,this._isEmpty=!1}toDataURL(e="image/png",t){switch(e){case"image/svg+xml":return this._toSVG();default:return this.canvas.toDataURL(e,t)}}on(){this.canvas.style.touchAction="none",this.canvas.style.msTouchAction="none",window.PointerEvent?this._handlePointerEvents():(this._handleMouseEvents(),"ontouchstart"in window&&this._handleTouchEvents())}off(){this.canvas.style.touchAction="auto",this.canvas.style.msTouchAction="auto",this.canvas.removeEventListener("pointerdown",this._handleMouseDown),this.canvas.removeEventListener("pointermove",this._handleMouseMove),document.removeEventListener("pointerup",this._handleMouseUp),this.canvas.removeEventListener("mousedown",this._handleMouseDown),this.canvas.removeEventListener("mousemove",this._handleMouseMove),document.removeEventListener("mouseup",this._handleMouseUp),this.canvas.removeEventListener("touchstart",this._handleTouchStart),this.canvas.removeEventListener("touchmove",this._handleTouchMove),this.canvas.removeEventListener("touchend",this._handleTouchEnd)}isEmpty(){return this._isEmpty}fromData(e){this.clear(),this._fromData(e,({color:t,curve:i})=>this._drawCurve({color:t,curve:i}),({color:t,point:i})=>this._drawDot({color:t,point:i})),this._data=e}toData(){return this._data}_strokeBegin(e){const t={color:this.penColor,points:[]};typeof this.onBegin=="function"&&this.onBegin(e),this._data.push(t),this._reset(),this._strokeUpdate(e)}_strokeUpdate(e){if(this._data.length===0){this._strokeBegin(e);return}const t=e.clientX,i=e.clientY,s=this._createPoint(t,i),o=this._data[this._data.length-1],r=o.points,l=r.length>0&&r[r.length-1],a=l?s.distanceTo(l)<=this.minDistance:!1,h=o.color;if(!l||!(l&&a)){const c=this._addPoint(s);l?c&&this._drawCurve({color:h,curve:c}):this._drawDot({color:h,point:s}),r.push({time:s.time,x:s.x,y:s.y})}}_strokeEnd(e){this._strokeUpdate(e),typeof this.onEnd=="function"&&this.onEnd(e)}_handlePointerEvents(){this._mouseButtonDown=!1,this.canvas.addEventListener("pointerdown",this._handleMouseDown),this.canvas.addEventListener("pointermove",this._handleMouseMove),document.addEventListener("pointerup",this._handleMouseUp)}_handleMouseEvents(){this._mouseButtonDown=!1,this.canvas.addEventListener("mousedown",this._handleMouseDown),this.canvas.addEventListener("mousemove",this._handleMouseMove),document.addEventListener("mouseup",this._handleMouseUp)}_handleTouchEvents(){this.canvas.addEventListener("touchstart",this._handleTouchStart),this.canvas.addEventListener("touchmove",this._handleTouchMove),this.canvas.addEventListener("touchend",this._handleTouchEnd)}_reset(){this._lastPoints=[],this._lastVelocity=0,this._lastWidth=(this.minWidth+this.maxWidth)/2,this._ctx.fillStyle=this.penColor}_createPoint(e,t){const i=this.canvas.getBoundingClientRect();return new dn(e-i.left,t-i.top,new Date().getTime())}_addPoint(e){const{_lastPoints:t}=this;if(t.push(e),t.length>2){t.length===3&&t.unshift(t[0]);const i=this._calculateCurveWidths(t[1],t[2]),s=Is.fromPoints(t,i);return t.shift(),s}return null}_calculateCurveWidths(e,t){const i=this.velocityFilterWeight*t.velocityFrom(e)+(1-this.velocityFilterWeight)*this._lastVelocity,s=this._strokeWidth(i),o={end:s,start:this._lastWidth};return this._lastVelocity=i,this._lastWidth=s,o}_strokeWidth(e){return Math.max(this.maxWidth/(e+1),this.minWidth)}_drawCurveSegment(e,t,i){const s=this._ctx;s.moveTo(e,t),s.arc(e,t,i,0,2*Math.PI,!1),this._isEmpty=!1}_drawCurve({color:e,curve:t}){const i=this._ctx,s=t.endWidth-t.startWidth,o=Math.floor(t.length())*2;i.beginPath(),i.fillStyle=e;for(let r=0;r<o;r+=1){const l=r/o,a=l*l,h=a*l,c=1-l,f=c*c,d=f*c;let p=d*t.startPoint.x;p+=3*f*l*t.control1.x,p+=3*c*a*t.control2.x,p+=h*t.endPoint.x;let g=d*t.startPoint.y;g+=3*f*l*t.control1.y,g+=3*c*a*t.control2.y,g+=h*t.endPoint.y;const m=Math.min(t.startWidth+h*s,this.maxWidth);this._drawCurveSegment(p,g,m)}i.closePath(),i.fill()}_drawDot({color:e,point:t}){const i=this._ctx,s=typeof this.dotSize=="function"?this.dotSize():this.dotSize;i.beginPath(),this._drawCurveSegment(t.x,t.y,s),i.closePath(),i.fillStyle=e,i.fill()}_fromData(e,t,i){for(const s of e){const{color:o,points:r}=s;if(r.length>1)for(let l=0;l<r.length;l+=1){const a=r[l],h=new dn(a.x,a.y,a.time);this.penColor=o,l===0&&this._reset();const c=this._addPoint(h);c&&t({color:o,curve:c})}else this._reset(),i({color:o,point:r[0]})}}_toSVG(){const e=this._data,t=Math.max(window.devicePixelRatio||1,1),i=0,s=0,o=this.canvas.width/t,r=this.canvas.height/t,l=document.createElementNS("http://www.w3.org/2000/svg","svg");l.setAttribute("width",this.canvas.width.toString()),l.setAttribute("height",this.canvas.height.toString()),this._fromData(e,({color:p,curve:g})=>{const m=document.createElement("path");if(!isNaN(g.control1.x)&&!isNaN(g.control1.y)&&!isNaN(g.control2.x)&&!isNaN(g.control2.y)){const v=`M ${g.startPoint.x.toFixed(3)},${g.startPoint.y.toFixed(3)} C ${g.control1.x.toFixed(3)},${g.control1.y.toFixed(3)} ${g.control2.x.toFixed(3)},${g.control2.y.toFixed(3)} ${g.endPoint.x.toFixed(3)},${g.endPoint.y.toFixed(3)}`;m.setAttribute("d",v),m.setAttribute("stroke-width",(g.endWidth*2.25).toFixed(3)),m.setAttribute("stroke",p),m.setAttribute("fill","none"),m.setAttribute("stroke-linecap","round"),l.appendChild(m)}},({color:p,point:g})=>{const m=document.createElement("circle"),v=typeof this.dotSize=="function"?this.dotSize():this.dotSize;m.setAttribute("r",v.toString()),m.setAttribute("cx",g.x.toString()),m.setAttribute("cy",g.y.toString()),m.setAttribute("fill",p),l.appendChild(m)});const a="data:image/svg+xml;base64,",h=`<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="${i} ${s} ${o} ${r}" width="${o}" height="${r}">`;let c=l.innerHTML;if(c===void 0){const p=document.createElement("dummy"),g=l.childNodes;p.innerHTML="";for(let m=0;m<g.length;m+=1)p.appendChild(g[m].cloneNode(!0));c=p.innerHTML}const d=h+c+"</svg>";return a+btoa(d)}}var Vg={format:"image/png",quality:.92,width:void 0,height:void 0,Canvas:void 0,crossOrigin:void 0},Fr=function(n,e){return n===void 0&&(n=[]),e===void 0&&(e={}),new Promise(function(t){e=Object.assign({},Vg,e);var i=e.Canvas?new e.Canvas:window.document.createElement("canvas"),s=e.Image||window.Image,o=n.map(function(l){return new Promise(function(a,h){l.constructor.name!=="Object"&&(l={src:l});var c=new s;c.crossOrigin=e.crossOrigin,c.onerror=function(){return h(new Error("Couldn't load image"))},c.onload=function(){return a(Object.assign({},l,{img:c}))},c.src=l.src})}),r=i.getContext("2d");t(Promise.all(o).then(function(l){var a=function(h){return e[h]||Math.max.apply(Math,l.map(function(c){return c.img[h]}))};return i.width=a("width"),i.height=a("height"),l.forEach(function(h){return r.globalAlpha=h.opacity?h.opacity:1,r.drawImage(h.img,h.x||0,h.y||0)}),e.Canvas&&e.format==="image/jpeg"?new Promise(function(h,c){i.toDataURL(e.format,{quality:e.quality,progressive:!1},function(f,d){if(f){c(f);return}h(d)})}):i.toDataURL(e.format,e.quality)}))})};let P0;(function(n){n.PNG="image/png",n.JPEG="image/jpeg",n.SVG="image/svg+xml"})(P0||(P0={}));let De;(function(n){n.FILE="file",n.DATA_URL="data_url"})(De||(De={}));function zg(n,e,t,i=Date.now()){let s=n.length,o=new Uint8Array(s);for(;s--;)o[s]=n.charCodeAt(s);return new File([o],e,{type:t,lastModified:i})}function Lg(n,e,t=Date.now()){const i=n.split(","),o=i[0].match(/:(.*?);/);if(!o)throw new Error("Invalid data url");const r=o[1],l=atob(i[1]);return zg(l,e,r,t)}const Gr=n=>JSON.parse(JSON.stringify(n)),jr={x:0,y:0,src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII="},Ng={dotSize:(.5+2.5)/2,minWidth:.5,maxWidth:2.5,throttle:16,minDistance:5,backgroundColor:"rgba(0,0,0,0)",penColor:"black",velocityFilterWeight:.7};var Rg=u.defineComponent({name:"VueSignaturePad",props:{modelValue:{type:[String,File],required:!1},width:{type:Number,default:250,validator:function(n){return 0<=n&&n<=99999}},height:{type:Number,default:150,validator:function(n){return 0<=n&&n<=99999}},saveType:{type:String,default:P0.PNG,validator:function(n){const e=Object.values(P0);return e.includes(n)?!0:(console.warn(`The Image type is incorrect! Supported ones are ${e.join(", ")}.`),!1)}},saveOutput:{type:String,default:De.DATA_URL,validator:function(n){const e=Object.values(De);return e.includes(n)?!0:(console.warn(`The save output is incorrect! Supported ones are ${e.join(", ")}.`),!1)}},customStyle:{type:Object,default:()=>({})},options:{type:Object,default:()=>Ng},images:{type:Array,default:()=>[]}},setup(n,e){const t=u.reactive({cacheImages:[],onResizeHandler:null,signaturePad:{},signatureData:jr}),i=u.ref(null),s=u.computed(()=>{if(!i.value)throw new Error('No canvas could be found with this "ref" in the template');return i.value}),o=u.computed(()=>{const C=Array.from(Gr(n.images)),k=Array.from(Gr(t.cacheImages));return[...C,...k]});u.watch(()=>n.options,C=>{Object.keys(C).forEach(k=>{Object.prototype.hasOwnProperty.call(t.signaturePad,k)&&(t.signaturePad[k]=C[k])})});function r(){const C=s.value,k=t.signaturePad.toData(),T=Math.max(window.devicePixelRatio||1,1);C.width=C.offsetWidth*T,C.height=C.offsetHeight*T;const P=C.getContext("2d");P&&P.scale(T,T),t.signaturePad.clear(),t.signatureData=jr,t.signaturePad.fromData(k)}function l(C=n.saveType,k){if(t.signaturePad.isEmpty()){if(n.saveOutput===De.FILE)return{isEmpty:!0,file:null,output:De.FILE};if(n.saveOutput===De.DATA_URL)return{isEmpty:!0,data:null,output:De.DATA_URL};throw new Error(`This saveOutput ${n.saveOutput} is not supported`)}const T=t.signaturePad.toDataURL(C,k);if(t.signatureData.src=T,n.saveOutput===De.FILE)return{isEmpty:!1,file:Lg(T,"signature"),output:De.FILE};if(n.saveOutput===De.DATA_URL)return{isEmpty:!1,data:T,output:De.DATA_URL};throw new Error(`This saveOutput ${n.saveOutput} is not supported`)}function a(){const C=t.signaturePad.toData();C&&t.signaturePad.fromData(C.slice(0,-1))}function h(){const C=l();let k=null;C.output===De.FILE?k=C.file:C.output===De.DATA_URL&&(k=C.data),e.emit("input",k)}function c(C){return t.signatureData=C,Fr([...n.images,...t.cacheImages,t.signatureData])}function f(C=[]){return t.cacheImages=[...t.cacheImages,...C],Fr([...n.images,...t.cacheImages,t.signatureData])}function d(C,k={},T){t.signaturePad.fromDataURL(C,k,T)}function p(C){t.signaturePad.fromData(C)}function g(C=P0.PNG,k){return t.signaturePad.toDataURL(C,k)}function m(){return t.signaturePad.toData()}function v(){t.signaturePad.off()}function w(){t.signaturePad.on()}function b(){return t.signaturePad.isEmpty()}function S(){return o.value}function _(){return t.cacheImages=[],t.cacheImages}function y(){t.signaturePad.clear(),e.emit("input",null)}return u.onMounted(()=>{const C=s.value,k=new pn(C,{onEnd:h,...n.options});t.signaturePad=k,t.onResizeHandler=r,window.addEventListener("resize",t.onResizeHandler,!1),r()}),u.onBeforeUnmount(()=>{t.onResizeHandler&&window.removeEventListener("resize",t.onResizeHandler,!1)}),{...u.toRefs(t),signaturePadCanvas:i,propsImagesAndCustomImages:o,resizeCanvas:r,saveSignature:l,undoSignature:a,mergeImageAndSignature:c,addImages:f,fromDataURL:d,toDataURL:g,fromData:p,toData:m,lockSignaturePad:v,openSignaturePad:w,isEmpty:b,getPropImagesAndCacheImages:S,clearCacheImages:_,clearSignature:y}},render(){const{width:n,height:e,customStyle:t}=this,i={width:`${n}px`,height:`${e}px`};return u.h("div",{style:{...i,...t}},[u.h("canvas",{style:{width:"100%",height:"100%"},ref:"signaturePadCanvas"})])}}),Ig=(()=>{const n=Rg;return n.install=e=>{e.component("SignaturePad",n)},n})();const Hg={class:"signature-wrap"},$g={class:"signature-types"},Wg={class:"signature-pad"},Fg={class:"signature-operates"},Gg={__name:"index",props:{signPadInfo:{type:Object,default:()=>{}}},emits:["beforeDestroy","clickSubmitSign"],setup(n,{emit:e}){var a;const t=n;u.ref(t.value);const i=u.ref(),s=u.reactive({loading:!1,avatarLoading:!1,signDialogVisible:!1,ruleFormBase:{},ruleFormPassword:{},signOptions:{penColor:"#000000",minWidth:1,onBegin:()=>{i.value.resizeCanvas()}},signFileList:[],passwordNew2:"",cropperTitle:""}),o=e;u.watch((a=t.signPadInfo)==null?void 0:a.dialogShow,h=>{console.log("dialogShow",h)}),u.watch(s.signOptions,()=>{console.log("signOptions:",s.signOptions),u.nextTick(()=>{var c;const h=(c=i.value)==null?void 0:c.signaturePad;console.log("signaturePadRef:",i.value),h?(h.penColor=s.signOptions.penColor,h.minWidth=s.signOptions.minWidth):console.error("signaturePadRef没有被初始化")})});const r=()=>{o("beforeDestroy")},l=()=>{var f;const{isEmpty:h,data:c}=(f=i.value)==null?void 0:f.saveSignature();h||o("clickSubmitSign",c)};return(h,c)=>{var g,m,v;const f=u.resolveComponent("el-input-number"),d=u.resolveComponent("el-color-picker"),p=u.resolveComponent("el-button");return u.openBlock(),u.createElementBlock(u.Fragment,null,[u.createElementVNode("div",Hg,[u.renderSlot(h.$slots,"signatureRender",{},void 0,!0),u.createElementVNode("div",$g,[u.renderSlot(h.$slots,"signatureTypes",{},void 0,!0)])]),u.createVNode(E0,{class:"signature-dialog",title:(g=n.signPadInfo)==null?void 0:g.dialogTitle,dialogWidth:`${((m=n.signPadInfo)==null?void 0:m.dialogWidth)??30}%`,visible:(v=n.signPadInfo)==null?void 0:v.dialogShow,onBeforeDestroy:r},{default:u.withCtx(()=>[u.createElementVNode("div",Wg,[u.createVNode(u.unref(Ig),{ref_key:"signaturePadRef",ref:i,options:s.signOptions},null,8,["options"])]),u.createElementVNode("div",Fg,[u.createElementVNode("div",null,[c[2]||(c[2]=u.createElementVNode("span",null,"画笔粗细:",-1)),u.createVNode(f,{modelValue:s.signOptions.minWidth,"onUpdate:modelValue":c[0]||(c[0]=w=>s.signOptions.minWidth=w),min:.5,max:2.5,step:.1,size:"small"},null,8,["modelValue"])]),u.createElementVNode("div",null,[c[3]||(c[3]=u.createElementVNode("span",null,"画笔颜色:",-1)),u.createVNode(d,{modelValue:s.signOptions.penColor,"onUpdate:modelValue":c[1]||(c[1]=w=>s.signOptions.penColor=w),"color-format":"hex",size:"default"},null,8,["modelValue"])])])]),footer:u.withCtx(()=>[u.createVNode(p,{onClick:r},{default:u.withCtx(()=>c[4]||(c[4]=[u.createTextVNode("取消")])),_:1,__:[4]}),u.createVNode(p,{type:"primary",onClick:l},{default:u.withCtx(()=>c[5]||(c[5]=[u.createTextVNode("确认")])),_:1,__:[5]})]),_:1},8,["title","dialogWidth","visible"])],64)}}},Qc=de._export_sfc(Gg,[["__scopeId","data-v-e409734b"]]),Jc=u.defineComponent({__name:"index",setup(n){const e=u.ref(null),t=async i=>{var s;i&&(await u.nextTick(),(s=e.value)==null||s.update())};return(i,s)=>{const o=u.resolveComponent("el-dropdown-menu"),r=u.resolveComponent("el-dropdown");return u.openBlock(),u.createBlock(r,{onVisibleChange:t},{dropdown:u.withCtx(()=>[u.createVNode(o,null,{default:u.withCtx(()=>[u.renderSlot(i.$slots,"dropMenu")]),_:3})]),default:u.withCtx(()=>[u.createElementVNode("div",null,[u.renderSlot(i.$slots,"dropTitle")])]),_:3})}}}),jg={class:"file-preview-container"},qg={class:"container-left"},Ug=["title","onClick"],Yg={class:"item-right"},Kg={class:"container-right"},Xg=u.defineComponent({__name:"index",props:{fileDataList:{},index:{}},emits:["destroy"],setup(n,{emit:e}){const t=e,i=n,s=u.ref();u.watch(()=>i.fileDataList,()=>{s.value=i.fileDataList},{deep:!0,immediate:!0});const o=u.ref(i.index||0),r=u.computed(()=>{const f=s==null?void 0:s.value,d=o.value;return f==null?void 0:f[d]}),l=u.computed(()=>{const f=r==null?void 0:r.value;return f==null?void 0:f.name}),a=u.computed(()=>{const f=r==null?void 0:r.value;return f==null?void 0:f.blobUrl}),h=f=>{o.value=f},c=f=>{const d=document.createElement("a");d.href=f.blobUrl,d.download=f.name,d.style.display="none",document.body.appendChild(d),d.click(),setTimeout(()=>{document.body.removeChild(d)},100)};return u.onUnmounted(()=>{t("destroy")}),(f,d)=>{const p=u.resolveComponent("el-icon");return u.openBlock(),u.createElementBlock("div",jg,[u.createElementVNode("div",qg,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(s.value,(g,m)=>(u.openBlock(),u.createElementBlock("div",{key:m,class:u.normalizeClass(["left-item",{"active-item":m==o.value}])},[u.createElementVNode("div",{class:"item-name",title:g.name,onClick:v=>h(m)},u.toDisplayString(g==null?void 0:g.name),9,Ug),u.createElementVNode("div",Yg,[u.createVNode(p,{class:"download-icon",onClick:v=>c(g)},{default:u.withCtx(()=>[u.createVNode(u.unref(te.download_default))]),_:2},1032,["onClick"])])],2))),128))]),u.createElementVNode("div",Kg,[u.createVNode(Rs,{class:"right-item",fileName:l.value,blobUrl:a.value},null,8,["fileName","blobUrl"])])])}}}),Zc=de._export_sfc(Xg,[["__scopeId","data-v-460d0fb4"]]),Qg={class:"file-preview-dialog-header"},Jg={class:"header-left"},Zg={class:"header-right"},e9={class:"file-preview-dialog-body"},t9=u.defineComponent({__name:"index",props:{fileDataList:{},index:{default:0},customTitle:{},isRevokeBlob:{type:Boolean,default:!0}},emits:["destroy"],setup(n,{emit:e}){const t=e,i=n,s=u.ref(!0),o=u.computed(()=>i.fileDataList),r=u.computed(()=>i.index),l=u.computed(()=>i.isRevokeBlob),a=u.ref(!1),h=()=>{const d=a.value;a.value=!d},c=()=>{f(),s.value=!1},f=()=>{t("destroy")};return u.onUnmounted(()=>{t("destroy");const d=o.value;l.value&&(d==null||d.forEach(g=>{const{blobUrl:m}=g;URL.revokeObjectURL(m)}))}),(d,p)=>{const g=u.resolveComponent("el-icon");return u.openBlock(),u.createBlock(E0,{class:"file-preview-dialog",visible:s.value,onBeforeDestroy:f,showClose:!1,fullScreen:a.value},{header:u.withCtx(()=>[u.createElementVNode("div",Qg,[u.createElementVNode("div",Jg,u.toDisplayString(d.customTitle),1),u.createElementVNode("div",Zg,[u.createVNode(g,null,{default:u.withCtx(()=>[u.createVNode(u.unref(te.full_screen_default),{onClick:h})]),_:1}),u.createVNode(g,null,{default:u.withCtx(()=>[u.createVNode(u.unref(te.close_default),{onClick:c})]),_:1})])])]),default:u.withCtx(()=>{var m;return[u.createElementVNode("div",e9,[p[0]||(p[0]=u.createElementVNode("div",{class:"file-preview-header"},null,-1)),(u.openBlock(),u.createBlock(Zc,{class:"file-preview-content",fileDataList:o.value,key:(m=o.value)==null?void 0:m.length,index:r.value},null,8,["fileDataList","index"]))])]}),_:1},8,["visible","fullScreen"])}}}),eh=de._export_sfc(t9,[["__scopeId","data-v-18f196f0"]]),i9={AVATARUPLOAD:ih._sfc_main,SIGNATURE:Qc,SWITCH:qr,INPUT:Ur,PASSWORD:Pu,COLOR:Eu,NUMBER:Vu,FORM:Wu,RADIO:Xr,CHECKBOX:Qr,TAB:Fu,TABLE:sf,SELECT:lf,MULTISELECT:cf,SSMenu:Zr,DATE:df,DATETIME:pf,TEXTAREA:mf,UPLOAD:Pg,INPUTPOPOVER:Bu,CASCADER:af,BUTTON:Ri,DROPDOWN:Jc,FILEPREVIEW:Rs,FILEPREVIEWCONTAINER:Zc,FILEPREVIEWDIALOG:eh};function Dn(n){return i9[n==null?void 0:n.toUpperCase()]||null}const n9=["onDblclick"],s9={key:1,class:"tabs-label"},o9={__name:"index",props:{tabsContents:{type:Array,default:()=>[]},tabPosition:{type:String,default:"top"}},emits:["dblClick","clickTrigger","changeTrigger"],setup(n,{emit:e}){const t=n,i=e,s=u.ref([]),o=u.ref(""),r=c=>Dn(c),l=c=>{i("dblClick",c)},a=c=>{i("clickTrigger",c)},h=c=>{i("changeTrigger",c)};return u.watch(()=>t.tabsContents,()=>{var c;s.value=te.cloneDeep(t.tabsContents),o.value=(c=s.value[0])==null?void 0:c.value},{deep:!0,immediate:!0}),(c,f)=>{const d=u.resolveComponent("el-tab-pane"),p=u.resolveComponent("el-tabs");return u.openBlock(),u.createBlock(p,{type:"card",modelValue:o.value,"onUpdate:modelValue":f[0]||(f[0]=g=>o.value=g),"tab-position":t==null?void 0:t.tabPosition},{default:u.withCtx(()=>[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(s.value,(g,m)=>(u.openBlock(),u.createBlock(d,{key:m,name:g==null?void 0:g.value},{label:u.withCtx(()=>{var v;return[g!=null&&g.label?(u.openBlock(),u.createElementBlock("div",{key:0,onDblclick:w=>l(g)},u.toDisplayString(g==null?void 0:g.label),41,n9)):u.createCommentVNode("",!0),g!=null&&g.contents&&((v=g==null?void 0:g.contents)==null?void 0:v.length)>0?(u.openBlock(),u.createElementBlock("div",s9,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(g==null?void 0:g.contents,(w,b)=>(u.openBlock(),u.createElementBlock("div",{key:b,class:"tabs-children"},[w!=null&&w.value||(w==null?void 0:w.value)===""?(u.openBlock(),u.createBlock(u.resolveDynamicComponent(r(w==null?void 0:w.type)),{key:0,modelValue:w.value,"onUpdate:modelValue":S=>w.value=S,content:(w==null?void 0:w.contents)??[]},null,8,["modelValue","onUpdate:modelValue","content"])):u.createCommentVNode("",!0)]))),128))])):u.createCommentVNode("",!0),u.renderSlot(c.$slots,`${(g==null?void 0:g.value)??""}_header`,{},void 0,!0)]}),default:u.withCtx(()=>[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(g==null?void 0:g.children,(v,w)=>(u.openBlock(),u.createElementBlock("div",{key:w,class:"tabs-contents"},[u.renderSlot(c.$slots,`${(v==null?void 0:v.value)??""}_operateButtons`,{},void 0,!0),v!=null&&v.value||(v==null?void 0:v.value)===""?(u.openBlock(),u.createBlock(u.resolveDynamicComponent(r(v==null?void 0:v.type)),{key:0,modelValue:v.value,"onUpdate:modelValue":b=>v.value=b,onClickTrigger:a,onChangeTrigger:h,content:v==null?void 0:v.content},u.createSlots({_:2},[name?{name,fn:u.withCtx(b=>[u.renderSlot(c.$slots,name,u.mergeProps({ref_for:!0},b||{}),void 0,!0)]),key:"0"}:void 0]),1064,["modelValue","onUpdate:modelValue","content"])):u.createCommentVNode("",!0)]))),128))]),_:2},1032,["name"]))),128))]),_:3},8,["modelValue","tab-position"])}}},Hs=de._export_sfc(o9,[["__scopeId","data-v-0f027c8c"]]),r9=Object.freeze(Object.defineProperty({__proto__:null,default:Hs},Symbol.toStringTag,{value:"Module"}));exports.Signature=Qc;exports._sfc_main=Jc;exports._sfc_main$1=Ri;exports._sfc_main$2=Ur;exports._sfc_main$3=Xr;exports._sfc_main$4=qr;exports._sfc_main$5=Qr;exports.downloadAvatarApi=el;exports.getComponent=Dn;exports.getSvgIcons=Yr;exports.index=ff;exports.index$1=r9;exports.ssDialog=E0;exports.ssFilePreview=eh;exports.ssForm=Kr;exports.ssTab=Hs;exports.ssTable=Jr;exports.uploadAvatarApi=bf;
|
|
15
|
+
*/class dn{constructor(e,t,i){this.x=e,this.y=t,this.time=i||Date.now()}distanceTo(e){return Math.sqrt(Math.pow(this.x-e.x,2)+Math.pow(this.y-e.y,2))}equals(e){return this.x===e.x&&this.y===e.y&&this.time===e.time}velocityFrom(e){return this.time!==e.time?this.distanceTo(e)/(this.time-e.time):0}}class I2{constructor(e,t,i,s,o,r){this.startPoint=e,this.control2=t,this.control1=i,this.endPoint=s,this.startWidth=o,this.endWidth=r}static fromPoints(e,t){const i=this.calculateControlPoints(e[0],e[1],e[2]).c2,s=this.calculateControlPoints(e[1],e[2],e[3]).c1;return new I2(e[1],i,s,e[2],t.start,t.end)}static calculateControlPoints(e,t,i){const s=e.x-t.x,o=e.y-t.y,r=t.x-i.x,l=t.y-i.y,a={x:(e.x+t.x)/2,y:(e.y+t.y)/2},h={x:(t.x+i.x)/2,y:(t.y+i.y)/2},c=Math.sqrt(s*s+o*o),f=Math.sqrt(r*r+l*l),d=a.x-h.x,p=a.y-h.y,g=f/(c+f),m={x:h.x+d*g,y:h.y+p*g},v=t.x-m.x,w=t.y-m.y;return{c1:new dn(a.x+v,a.y+w),c2:new dn(h.x+v,h.y+w)}}length(){let t=0,i,s;for(let o=0;o<=10;o+=1){const r=o/10,l=this.point(r,this.startPoint.x,this.control1.x,this.control2.x,this.endPoint.x),a=this.point(r,this.startPoint.y,this.control1.y,this.control2.y,this.endPoint.y);if(o>0){const h=l-i,c=a-s;t+=Math.sqrt(h*h+c*c)}i=l,s=a}return t}point(e,t,i,s,o){return t*(1-e)*(1-e)*(1-e)+3*i*(1-e)*(1-e)*e+3*s*(1-e)*e*e+o*e*e*e}}function Vg(n,e=250){let t=0,i=null,s,o,r;const l=()=>{t=Date.now(),i=null,s=n.apply(o,r),i||(o=null,r=[])};return function(...h){const c=Date.now(),f=e-(c-t);return o=this,r=h,f<=0||f>e?(i&&(clearTimeout(i),i=null),t=c,s=n.apply(o,r),i||(o=null,r=[])):i||(i=window.setTimeout(l,f)),s}}class pn{constructor(e,t={}){this.canvas=e,this.options=t,this._handleMouseDown=i=>{i.which===1&&(this._mouseButtonDown=!0,this._strokeBegin(i))},this._handleMouseMove=i=>{this._mouseButtonDown&&this._strokeMoveUpdate(i)},this._handleMouseUp=i=>{i.which===1&&this._mouseButtonDown&&(this._mouseButtonDown=!1,this._strokeEnd(i))},this._handleTouchStart=i=>{if(i.preventDefault(),i.targetTouches.length===1){const s=i.changedTouches[0];this._strokeBegin(s)}},this._handleTouchMove=i=>{i.preventDefault();const s=i.targetTouches[0];this._strokeMoveUpdate(s)},this._handleTouchEnd=i=>{if(i.target===this.canvas){i.preventDefault();const o=i.changedTouches[0];this._strokeEnd(o)}},this.velocityFilterWeight=t.velocityFilterWeight||.7,this.minWidth=t.minWidth||.5,this.maxWidth=t.maxWidth||2.5,this.throttle="throttle"in t?t.throttle:16,this.minDistance="minDistance"in t?t.minDistance:5,this.dotSize=t.dotSize||function(){return(this.minWidth+this.maxWidth)/2},this.penColor=t.penColor||"black",this.backgroundColor=t.backgroundColor||"rgba(0,0,0,0)",this.onBegin=t.onBegin,this.onEnd=t.onEnd,this._strokeMoveUpdate=this.throttle?Vg(pn.prototype._strokeUpdate,this.throttle):pn.prototype._strokeUpdate,this._ctx=e.getContext("2d"),this.clear(),this.on()}clear(){const{_ctx:e,canvas:t}=this;e.fillStyle=this.backgroundColor,e.clearRect(0,0,t.width,t.height),e.fillRect(0,0,t.width,t.height),this._data=[],this._reset(),this._isEmpty=!0}fromDataURL(e,t={},i){const s=new Image,o=t.ratio||window.devicePixelRatio||1,r=t.width||this.canvas.width/o,l=t.height||this.canvas.height/o;this._reset(),s.onload=()=>{this._ctx.drawImage(s,0,0,r,l),i&&i()},s.onerror=a=>{i&&i(a)},s.src=e,this._isEmpty=!1}toDataURL(e="image/png",t){switch(e){case"image/svg+xml":return this._toSVG();default:return this.canvas.toDataURL(e,t)}}on(){this.canvas.style.touchAction="none",this.canvas.style.msTouchAction="none",window.PointerEvent?this._handlePointerEvents():(this._handleMouseEvents(),"ontouchstart"in window&&this._handleTouchEvents())}off(){this.canvas.style.touchAction="auto",this.canvas.style.msTouchAction="auto",this.canvas.removeEventListener("pointerdown",this._handleMouseDown),this.canvas.removeEventListener("pointermove",this._handleMouseMove),document.removeEventListener("pointerup",this._handleMouseUp),this.canvas.removeEventListener("mousedown",this._handleMouseDown),this.canvas.removeEventListener("mousemove",this._handleMouseMove),document.removeEventListener("mouseup",this._handleMouseUp),this.canvas.removeEventListener("touchstart",this._handleTouchStart),this.canvas.removeEventListener("touchmove",this._handleTouchMove),this.canvas.removeEventListener("touchend",this._handleTouchEnd)}isEmpty(){return this._isEmpty}fromData(e){this.clear(),this._fromData(e,({color:t,curve:i})=>this._drawCurve({color:t,curve:i}),({color:t,point:i})=>this._drawDot({color:t,point:i})),this._data=e}toData(){return this._data}_strokeBegin(e){const t={color:this.penColor,points:[]};typeof this.onBegin=="function"&&this.onBegin(e),this._data.push(t),this._reset(),this._strokeUpdate(e)}_strokeUpdate(e){if(this._data.length===0){this._strokeBegin(e);return}const t=e.clientX,i=e.clientY,s=this._createPoint(t,i),o=this._data[this._data.length-1],r=o.points,l=r.length>0&&r[r.length-1],a=l?s.distanceTo(l)<=this.minDistance:!1,h=o.color;if(!l||!(l&&a)){const c=this._addPoint(s);l?c&&this._drawCurve({color:h,curve:c}):this._drawDot({color:h,point:s}),r.push({time:s.time,x:s.x,y:s.y})}}_strokeEnd(e){this._strokeUpdate(e),typeof this.onEnd=="function"&&this.onEnd(e)}_handlePointerEvents(){this._mouseButtonDown=!1,this.canvas.addEventListener("pointerdown",this._handleMouseDown),this.canvas.addEventListener("pointermove",this._handleMouseMove),document.addEventListener("pointerup",this._handleMouseUp)}_handleMouseEvents(){this._mouseButtonDown=!1,this.canvas.addEventListener("mousedown",this._handleMouseDown),this.canvas.addEventListener("mousemove",this._handleMouseMove),document.addEventListener("mouseup",this._handleMouseUp)}_handleTouchEvents(){this.canvas.addEventListener("touchstart",this._handleTouchStart),this.canvas.addEventListener("touchmove",this._handleTouchMove),this.canvas.addEventListener("touchend",this._handleTouchEnd)}_reset(){this._lastPoints=[],this._lastVelocity=0,this._lastWidth=(this.minWidth+this.maxWidth)/2,this._ctx.fillStyle=this.penColor}_createPoint(e,t){const i=this.canvas.getBoundingClientRect();return new dn(e-i.left,t-i.top,new Date().getTime())}_addPoint(e){const{_lastPoints:t}=this;if(t.push(e),t.length>2){t.length===3&&t.unshift(t[0]);const i=this._calculateCurveWidths(t[1],t[2]),s=I2.fromPoints(t,i);return t.shift(),s}return null}_calculateCurveWidths(e,t){const i=this.velocityFilterWeight*t.velocityFrom(e)+(1-this.velocityFilterWeight)*this._lastVelocity,s=this._strokeWidth(i),o={end:s,start:this._lastWidth};return this._lastVelocity=i,this._lastWidth=s,o}_strokeWidth(e){return Math.max(this.maxWidth/(e+1),this.minWidth)}_drawCurveSegment(e,t,i){const s=this._ctx;s.moveTo(e,t),s.arc(e,t,i,0,2*Math.PI,!1),this._isEmpty=!1}_drawCurve({color:e,curve:t}){const i=this._ctx,s=t.endWidth-t.startWidth,o=Math.floor(t.length())*2;i.beginPath(),i.fillStyle=e;for(let r=0;r<o;r+=1){const l=r/o,a=l*l,h=a*l,c=1-l,f=c*c,d=f*c;let p=d*t.startPoint.x;p+=3*f*l*t.control1.x,p+=3*c*a*t.control2.x,p+=h*t.endPoint.x;let g=d*t.startPoint.y;g+=3*f*l*t.control1.y,g+=3*c*a*t.control2.y,g+=h*t.endPoint.y;const m=Math.min(t.startWidth+h*s,this.maxWidth);this._drawCurveSegment(p,g,m)}i.closePath(),i.fill()}_drawDot({color:e,point:t}){const i=this._ctx,s=typeof this.dotSize=="function"?this.dotSize():this.dotSize;i.beginPath(),this._drawCurveSegment(t.x,t.y,s),i.closePath(),i.fillStyle=e,i.fill()}_fromData(e,t,i){for(const s of e){const{color:o,points:r}=s;if(r.length>1)for(let l=0;l<r.length;l+=1){const a=r[l],h=new dn(a.x,a.y,a.time);this.penColor=o,l===0&&this._reset();const c=this._addPoint(h);c&&t({color:o,curve:c})}else this._reset(),i({color:o,point:r[0]})}}_toSVG(){const e=this._data,t=Math.max(window.devicePixelRatio||1,1),i=0,s=0,o=this.canvas.width/t,r=this.canvas.height/t,l=document.createElementNS("http://www.w3.org/2000/svg","svg");l.setAttribute("width",this.canvas.width.toString()),l.setAttribute("height",this.canvas.height.toString()),this._fromData(e,({color:p,curve:g})=>{const m=document.createElement("path");if(!isNaN(g.control1.x)&&!isNaN(g.control1.y)&&!isNaN(g.control2.x)&&!isNaN(g.control2.y)){const v=`M ${g.startPoint.x.toFixed(3)},${g.startPoint.y.toFixed(3)} C ${g.control1.x.toFixed(3)},${g.control1.y.toFixed(3)} ${g.control2.x.toFixed(3)},${g.control2.y.toFixed(3)} ${g.endPoint.x.toFixed(3)},${g.endPoint.y.toFixed(3)}`;m.setAttribute("d",v),m.setAttribute("stroke-width",(g.endWidth*2.25).toFixed(3)),m.setAttribute("stroke",p),m.setAttribute("fill","none"),m.setAttribute("stroke-linecap","round"),l.appendChild(m)}},({color:p,point:g})=>{const m=document.createElement("circle"),v=typeof this.dotSize=="function"?this.dotSize():this.dotSize;m.setAttribute("r",v.toString()),m.setAttribute("cx",g.x.toString()),m.setAttribute("cy",g.y.toString()),m.setAttribute("fill",p),l.appendChild(m)});const a="data:image/svg+xml;base64,",h=`<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="${i} ${s} ${o} ${r}" width="${o}" height="${r}">`;let c=l.innerHTML;if(c===void 0){const p=document.createElement("dummy"),g=l.childNodes;p.innerHTML="";for(let m=0;m<g.length;m+=1)p.appendChild(g[m].cloneNode(!0));c=p.innerHTML}const d=h+c+"</svg>";return a+btoa(d)}}var zg={format:"image/png",quality:.92,width:void 0,height:void 0,Canvas:void 0,crossOrigin:void 0},Fr=function(n,e){return n===void 0&&(n=[]),e===void 0&&(e={}),new Promise(function(t){e=Object.assign({},zg,e);var i=e.Canvas?new e.Canvas:window.document.createElement("canvas"),s=e.Image||window.Image,o=n.map(function(l){return new Promise(function(a,h){l.constructor.name!=="Object"&&(l={src:l});var c=new s;c.crossOrigin=e.crossOrigin,c.onerror=function(){return h(new Error("Couldn't load image"))},c.onload=function(){return a(Object.assign({},l,{img:c}))},c.src=l.src})}),r=i.getContext("2d");t(Promise.all(o).then(function(l){var a=function(h){return e[h]||Math.max.apply(Math,l.map(function(c){return c.img[h]}))};return i.width=a("width"),i.height=a("height"),l.forEach(function(h){return r.globalAlpha=h.opacity?h.opacity:1,r.drawImage(h.img,h.x||0,h.y||0)}),e.Canvas&&e.format==="image/jpeg"?new Promise(function(h,c){i.toDataURL(e.format,{quality:e.quality,progressive:!1},function(f,d){if(f){c(f);return}h(d)})}):i.toDataURL(e.format,e.quality)}))})};let Pi;(function(n){n.PNG="image/png",n.JPEG="image/jpeg",n.SVG="image/svg+xml"})(Pi||(Pi={}));let De;(function(n){n.FILE="file",n.DATA_URL="data_url"})(De||(De={}));function Lg(n,e,t,i=Date.now()){let s=n.length,o=new Uint8Array(s);for(;s--;)o[s]=n.charCodeAt(s);return new File([o],e,{type:t,lastModified:i})}function Ng(n,e,t=Date.now()){const i=n.split(","),o=i[0].match(/:(.*?);/);if(!o)throw new Error("Invalid data url");const r=o[1],l=atob(i[1]);return Lg(l,e,r,t)}const Gr=n=>JSON.parse(JSON.stringify(n)),jr={x:0,y:0,src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII="},Rg={dotSize:(.5+2.5)/2,minWidth:.5,maxWidth:2.5,throttle:16,minDistance:5,backgroundColor:"rgba(0,0,0,0)",penColor:"black",velocityFilterWeight:.7};var Ig=u.defineComponent({name:"VueSignaturePad",props:{modelValue:{type:[String,File],required:!1},width:{type:Number,default:250,validator:function(n){return 0<=n&&n<=99999}},height:{type:Number,default:150,validator:function(n){return 0<=n&&n<=99999}},saveType:{type:String,default:Pi.PNG,validator:function(n){const e=Object.values(Pi);return e.includes(n)?!0:(console.warn(`The Image type is incorrect! Supported ones are ${e.join(", ")}.`),!1)}},saveOutput:{type:String,default:De.DATA_URL,validator:function(n){const e=Object.values(De);return e.includes(n)?!0:(console.warn(`The save output is incorrect! Supported ones are ${e.join(", ")}.`),!1)}},customStyle:{type:Object,default:()=>({})},options:{type:Object,default:()=>Rg},images:{type:Array,default:()=>[]}},setup(n,e){const t=u.reactive({cacheImages:[],onResizeHandler:null,signaturePad:{},signatureData:jr}),i=u.ref(null),s=u.computed(()=>{if(!i.value)throw new Error('No canvas could be found with this "ref" in the template');return i.value}),o=u.computed(()=>{const _=Array.from(Gr(n.images)),C=Array.from(Gr(t.cacheImages));return[..._,...C]});u.watch(()=>n.options,_=>{Object.keys(_).forEach(C=>{Object.prototype.hasOwnProperty.call(t.signaturePad,C)&&(t.signaturePad[C]=_[C])})});function r(){const _=s.value,C=t.signaturePad.toData(),T=Math.max(window.devicePixelRatio||1,1);_.width=_.offsetWidth*T,_.height=_.offsetHeight*T;const P=_.getContext("2d");P&&P.scale(T,T),t.signaturePad.clear(),t.signatureData=jr,t.signaturePad.fromData(C)}function l(_=n.saveType,C){if(t.signaturePad.isEmpty()){if(n.saveOutput===De.FILE)return{isEmpty:!0,file:null,output:De.FILE};if(n.saveOutput===De.DATA_URL)return{isEmpty:!0,data:null,output:De.DATA_URL};throw new Error(`This saveOutput ${n.saveOutput} is not supported`)}const T=t.signaturePad.toDataURL(_,C);if(t.signatureData.src=T,n.saveOutput===De.FILE)return{isEmpty:!1,file:Ng(T,"signature"),output:De.FILE};if(n.saveOutput===De.DATA_URL)return{isEmpty:!1,data:T,output:De.DATA_URL};throw new Error(`This saveOutput ${n.saveOutput} is not supported`)}function a(){const _=t.signaturePad.toData();_&&t.signaturePad.fromData(_.slice(0,-1))}function h(){const _=l();let C=null;_.output===De.FILE?C=_.file:_.output===De.DATA_URL&&(C=_.data),e.emit("input",C)}function c(_){return t.signatureData=_,Fr([...n.images,...t.cacheImages,t.signatureData])}function f(_=[]){return t.cacheImages=[...t.cacheImages,..._],Fr([...n.images,...t.cacheImages,t.signatureData])}function d(_,C={},T){t.signaturePad.fromDataURL(_,C,T)}function p(_){t.signaturePad.fromData(_)}function g(_=Pi.PNG,C){return t.signaturePad.toDataURL(_,C)}function m(){return t.signaturePad.toData()}function v(){t.signaturePad.off()}function w(){t.signaturePad.on()}function b(){return t.signaturePad.isEmpty()}function S(){return o.value}function k(){return t.cacheImages=[],t.cacheImages}function y(){t.signaturePad.clear(),e.emit("input",null)}return u.onMounted(()=>{const _=s.value,C=new pn(_,{onEnd:h,...n.options});t.signaturePad=C,t.onResizeHandler=r,window.addEventListener("resize",t.onResizeHandler,!1),r()}),u.onBeforeUnmount(()=>{t.onResizeHandler&&window.removeEventListener("resize",t.onResizeHandler,!1)}),{...u.toRefs(t),signaturePadCanvas:i,propsImagesAndCustomImages:o,resizeCanvas:r,saveSignature:l,undoSignature:a,mergeImageAndSignature:c,addImages:f,fromDataURL:d,toDataURL:g,fromData:p,toData:m,lockSignaturePad:v,openSignaturePad:w,isEmpty:b,getPropImagesAndCacheImages:S,clearCacheImages:k,clearSignature:y}},render(){const{width:n,height:e,customStyle:t}=this,i={width:`${n}px`,height:`${e}px`};return u.h("div",{style:{...i,...t}},[u.h("canvas",{style:{width:"100%",height:"100%"},ref:"signaturePadCanvas"})])}}),Hg=(()=>{const n=Ig;return n.install=e=>{e.component("SignaturePad",n)},n})();const $g={class:"signature-wrap"},Wg={class:"signature-types"},Fg={class:"signature-pad"},Gg={class:"signature-operates"},jg={__name:"index",props:{signPadInfo:{type:Object,default:()=>{}}},emits:["beforeDestroy","clickSubmitSign"],setup(n,{emit:e}){var a;const t=n;u.ref(t.value);const i=u.ref(),s=u.reactive({loading:!1,avatarLoading:!1,signDialogVisible:!1,ruleFormBase:{},ruleFormPassword:{},signOptions:{penColor:"#000000",minWidth:1,onBegin:()=>{i.value.resizeCanvas()}},signFileList:[],passwordNew2:"",cropperTitle:""}),o=e;u.watch((a=t.signPadInfo)==null?void 0:a.dialogShow,h=>{console.log("dialogShow",h)}),u.watch(s.signOptions,()=>{console.log("signOptions:",s.signOptions),u.nextTick(()=>{var c;const h=(c=i.value)==null?void 0:c.signaturePad;console.log("signaturePadRef:",i.value),h?(h.penColor=s.signOptions.penColor,h.minWidth=s.signOptions.minWidth):console.error("signaturePadRef没有被初始化")})});const r=()=>{o("beforeDestroy")},l=()=>{var f;const{isEmpty:h,data:c}=(f=i.value)==null?void 0:f.saveSignature();h||o("clickSubmitSign",c)};return(h,c)=>{var g,m,v;const f=u.resolveComponent("el-input-number"),d=u.resolveComponent("el-color-picker"),p=u.resolveComponent("el-button");return u.openBlock(),u.createElementBlock(u.Fragment,null,[u.createElementVNode("div",$g,[u.renderSlot(h.$slots,"signatureRender",{},void 0,!0),u.createElementVNode("div",Wg,[u.renderSlot(h.$slots,"signatureTypes",{},void 0,!0)])]),u.createVNode(Ei,{class:"signature-dialog",title:(g=n.signPadInfo)==null?void 0:g.dialogTitle,dialogWidth:`${((m=n.signPadInfo)==null?void 0:m.dialogWidth)??30}%`,visible:(v=n.signPadInfo)==null?void 0:v.dialogShow,onBeforeDestroy:r},{default:u.withCtx(()=>[u.createElementVNode("div",Fg,[u.createVNode(u.unref(Hg),{ref_key:"signaturePadRef",ref:i,options:s.signOptions},null,8,["options"])]),u.createElementVNode("div",Gg,[u.createElementVNode("div",null,[c[2]||(c[2]=u.createElementVNode("span",null,"画笔粗细:",-1)),u.createVNode(f,{modelValue:s.signOptions.minWidth,"onUpdate:modelValue":c[0]||(c[0]=w=>s.signOptions.minWidth=w),min:.5,max:2.5,step:.1,size:"small"},null,8,["modelValue"])]),u.createElementVNode("div",null,[c[3]||(c[3]=u.createElementVNode("span",null,"画笔颜色:",-1)),u.createVNode(d,{modelValue:s.signOptions.penColor,"onUpdate:modelValue":c[1]||(c[1]=w=>s.signOptions.penColor=w),"color-format":"hex",size:"default"},null,8,["modelValue"])])])]),footer:u.withCtx(()=>[u.createVNode(p,{onClick:r},{default:u.withCtx(()=>c[4]||(c[4]=[u.createTextVNode("取消")])),_:1,__:[4]}),u.createVNode(p,{type:"primary",onClick:l},{default:u.withCtx(()=>c[5]||(c[5]=[u.createTextVNode("确认")])),_:1,__:[5]})]),_:1},8,["title","dialogWidth","visible"])],64)}}},Qc=ue._export_sfc(jg,[["__scopeId","data-v-e409734b"]]),Jc=u.defineComponent({__name:"index",setup(n){const e=u.ref(null),t=async i=>{var s;i&&(await u.nextTick(),(s=e.value)==null||s.update())};return(i,s)=>{const o=u.resolveComponent("el-dropdown-menu"),r=u.resolveComponent("el-dropdown");return u.openBlock(),u.createBlock(r,{onVisibleChange:t},{dropdown:u.withCtx(()=>[u.createVNode(o,null,{default:u.withCtx(()=>[u.renderSlot(i.$slots,"dropMenu")]),_:3})]),default:u.withCtx(()=>[u.createElementVNode("div",null,[u.renderSlot(i.$slots,"dropTitle")])]),_:3})}}}),qg={class:"file-preview-container"},Ug={class:"container-left"},Yg=["title","onClick"],Kg={class:"item-right"},Xg={class:"container-right"},Qg=u.defineComponent({__name:"index",props:{fileDataList:{},index:{}},emits:["destroy"],setup(n,{emit:e}){const t=e,i=n,s=u.ref();u.watch(()=>i.fileDataList,()=>{s.value=i.fileDataList},{deep:!0,immediate:!0});const o=u.ref(i.index||0),r=u.computed(()=>{const f=s==null?void 0:s.value,d=o.value;return f==null?void 0:f[d]}),l=u.computed(()=>{const f=r==null?void 0:r.value;return f==null?void 0:f.name}),a=u.computed(()=>{const f=r==null?void 0:r.value;return f==null?void 0:f.blobUrl}),h=f=>{o.value=f},c=f=>{const d=document.createElement("a");d.href=f.blobUrl,d.download=f.name,d.style.display="none",document.body.appendChild(d),d.click(),setTimeout(()=>{document.body.removeChild(d)},100)};return u.onUnmounted(()=>{t("destroy")}),(f,d)=>{const p=u.resolveComponent("el-icon");return u.openBlock(),u.createElementBlock("div",qg,[u.createElementVNode("div",Ug,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(s.value,(g,m)=>(u.openBlock(),u.createElementBlock("div",{key:m,class:u.normalizeClass(["left-item",{"active-item":m==o.value}])},[u.createElementVNode("div",{class:"item-name",title:g.name,onClick:v=>h(m)},u.toDisplayString(g==null?void 0:g.name),9,Yg),u.createElementVNode("div",Kg,[u.createVNode(p,{class:"download-icon",onClick:v=>c(g)},{default:u.withCtx(()=>[u.createVNode(u.unref(ee.download_default))]),_:2},1032,["onClick"])])],2))),128))]),u.createElementVNode("div",Xg,[u.createVNode(R2,{class:"right-item",fileName:l.value,blobUrl:a.value},null,8,["fileName","blobUrl"])])])}}}),Zc=ue._export_sfc(Qg,[["__scopeId","data-v-460d0fb4"]]),Jg={class:"file-preview-dialog-header"},Zg={class:"header-left"},e9={class:"header-right"},t9={class:"file-preview-dialog-body"},i9=u.defineComponent({__name:"index",props:{fileDataList:{},index:{default:0},customTitle:{},isRevokeBlob:{type:Boolean,default:!0}},emits:["destroy"],setup(n,{emit:e}){const t=e,i=n,s=u.ref(!0),o=u.computed(()=>i.fileDataList),r=u.computed(()=>i.index),l=u.computed(()=>i.isRevokeBlob),a=u.ref(!1),h=()=>{const d=a.value;a.value=!d},c=()=>{f(),s.value=!1},f=()=>{t("destroy")};return u.onUnmounted(()=>{t("destroy");const d=o.value;l.value&&(d==null||d.forEach(g=>{const{blobUrl:m}=g;URL.revokeObjectURL(m)}))}),(d,p)=>{const g=u.resolveComponent("el-icon");return u.openBlock(),u.createBlock(Ei,{class:"file-preview-dialog",visible:s.value,onBeforeDestroy:f,showClose:!1,fullScreen:a.value},{header:u.withCtx(()=>[u.createElementVNode("div",Jg,[u.createElementVNode("div",Zg,u.toDisplayString(d.customTitle),1),u.createElementVNode("div",e9,[u.createVNode(g,null,{default:u.withCtx(()=>[u.createVNode(u.unref(ee.full_screen_default),{onClick:h})]),_:1}),u.createVNode(g,null,{default:u.withCtx(()=>[u.createVNode(u.unref(ee.close_default),{onClick:c})]),_:1})])])]),default:u.withCtx(()=>{var m;return[u.createElementVNode("div",t9,[p[0]||(p[0]=u.createElementVNode("div",{class:"file-preview-header"},null,-1)),(u.openBlock(),u.createBlock(Zc,{class:"file-preview-content",fileDataList:o.value,key:(m=o.value)==null?void 0:m.length,index:r.value},null,8,["fileDataList","index"]))])]}),_:1},8,["visible","fullScreen"])}}}),eh=ue._export_sfc(i9,[["__scopeId","data-v-18f196f0"]]),n9={class:"quill-content"},s9={__name:"index",props:{modelValue:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0},optionUrl:{type:Object,default:()=>{}}},emits:["update:modelValue"],setup(n,{emit:e}){const t=n,i=u.ref(null),s=u.ref([]),o=e,r=u.ref(t.modelValue),l=u.ref({theme:"snow",modules:{toolbar:[["bold","italic","underline","strike"],[{list:"ordered"},{list:"bullet"}],[{script:"sub"},{script:"super"}],[{indent:"-1"},{indent:"+1"}],[{direction:"rtl"}],[{size:["small",!1,"large","huge"]}],[{header:[1,2,3,4,5,6,!1]}],[{color:[]},{background:[]}],[{font:[]}],[{align:[]},"image"],["clean"]]}}),a=d=>{if(!d)return[];const p=/{\\pict[\s\S]+?({\\\*\\blipuid\s?[\da-fA-F]+)[\s}]*/,g=new RegExp("(?:("+p.source+"))([\\da-fA-F\\s]+)\\}","g"),m=d.match(g),v=[];if(m)for(const w of m){let b=!1;w.includes("\\pngblip")?b="image/png":w.includes("\\jpegblip")&&(b="image/jpeg"),b&&v.push({hex:w.replace(p,"").replace(/[^\da-fA-F]/g,""),type:b})}return v},h=d=>btoa(d.match(/\w{2}/g).map(p=>String.fromCharCode(parseInt(p,16))).join("")),c=(d,p="file")=>{let g=d.split(","),m=g[0].match(/:(.*?);/)[1],v=m.split("/")[1],w=atob(g[1]),b=w.length,S=new Uint8Array(b);for(;b--;)S[b]=w.charCodeAt(b);return new File([S],`${p}.${v}`,{type:m})},f=async(d,p)=>{let g=c(d);var m=new FormData;m.append("file",g),await yf(m).then(v=>{let w=s.value;w.push(v.data.result.url),s.value=w})};return u.onMounted(()=>{const d=i.value.getQuill();d.root.addEventListener("paste",async p=>{s.value=[];const g=p.clipboardData.getData("text/rtf");if(g&&g!==""){const v=a(g).map(k=>h(k.hex));for(let k=0;k<v.length;k++)await f(`data:image/png;base64,${v[k]}`,v.length);i.value.getQuill().selection.root.querySelectorAll('img[src*="//:0"]').forEach((k,y)=>{s.value[y]?k.src="http://139.196.154.85:20013/"+s.value[y]:k.style.display="none"})}o("update:modelValue",r.value)}),d.on("text-change",function(){o("update:modelValue",r.value)})}),(d,p)=>(u.openBlock(),u.createElementBlock("div",n9,[u.createVNode(u.unref(Ct.QuillEditor),{ref_key:"quillEditorRef",ref:i,contentType:"html",content:r.value,"onUpdate:content":p[0]||(p[0]=g=>r.value=g),options:l.value},null,8,["content","options"])]))}},o9=ue._export_sfc(s9,[["__scopeId","data-v-bf37d7b8"]]),r9={AVATARUPLOAD:ih._sfc_main,SIGNATURE:Qc,SWITCH:qr,INPUT:Ur,PASSWORD:Pu,COLOR:Eu,NUMBER:Vu,FORM:Wu,RADIO:Xr,CHECKBOX:Qr,TAB:Fu,TABLE:sf,SELECT:lf,MULTISELECT:cf,SSMenu:Zr,DATE:df,DATETIME:pf,TEXTAREA:mf,UPLOAD:Eg,INPUTPOPOVER:Bu,CASCADER:af,BUTTON:R0,DROPDOWN:Jc,FILEPREVIEW:R2,FILEPREVIEWCONTAINER:Zc,FILEPREVIEWDIALOG:eh,QUILL:o9};function Dn(n){return r9[n==null?void 0:n.toUpperCase()]||null}const l9=["onDblclick"],a9={key:1,class:"tabs-label"},c9={__name:"index",props:{tabsContents:{type:Array,default:()=>[]},tabPosition:{type:String,default:"top"}},emits:["dblClick","clickTrigger","changeTrigger"],setup(n,{emit:e}){const t=n,i=e,s=u.ref([]),o=u.ref(""),r=c=>Dn(c),l=c=>{i("dblClick",c)},a=c=>{i("clickTrigger",c)},h=c=>{i("changeTrigger",c)};return u.watch(()=>t.tabsContents,()=>{var c;s.value=ee.cloneDeep(t.tabsContents),o.value=(c=s.value[0])==null?void 0:c.value},{deep:!0,immediate:!0}),(c,f)=>{const d=u.resolveComponent("el-tab-pane"),p=u.resolveComponent("el-tabs");return u.openBlock(),u.createBlock(p,{type:"card",modelValue:o.value,"onUpdate:modelValue":f[0]||(f[0]=g=>o.value=g),"tab-position":t==null?void 0:t.tabPosition},{default:u.withCtx(()=>[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(s.value,(g,m)=>(u.openBlock(),u.createBlock(d,{key:m,name:g==null?void 0:g.value},{label:u.withCtx(()=>{var v;return[g!=null&&g.label?(u.openBlock(),u.createElementBlock("div",{key:0,onDblclick:w=>l(g)},u.toDisplayString(g==null?void 0:g.label),41,l9)):u.createCommentVNode("",!0),g!=null&&g.contents&&((v=g==null?void 0:g.contents)==null?void 0:v.length)>0?(u.openBlock(),u.createElementBlock("div",a9,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(g==null?void 0:g.contents,(w,b)=>(u.openBlock(),u.createElementBlock("div",{key:b,class:"tabs-children"},[w!=null&&w.value||(w==null?void 0:w.value)===""?(u.openBlock(),u.createBlock(u.resolveDynamicComponent(r(w==null?void 0:w.type)),{key:0,modelValue:w.value,"onUpdate:modelValue":S=>w.value=S,content:(w==null?void 0:w.contents)??[]},null,8,["modelValue","onUpdate:modelValue","content"])):u.createCommentVNode("",!0)]))),128))])):u.createCommentVNode("",!0),u.renderSlot(c.$slots,`${(g==null?void 0:g.value)??""}_header`,{},void 0,!0)]}),default:u.withCtx(()=>[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(g==null?void 0:g.children,(v,w)=>(u.openBlock(),u.createElementBlock("div",{key:w,class:"tabs-contents"},[u.renderSlot(c.$slots,`${(v==null?void 0:v.value)??""}_operateButtons`,{},void 0,!0),v!=null&&v.value||(v==null?void 0:v.value)===""?(u.openBlock(),u.createBlock(u.resolveDynamicComponent(r(v==null?void 0:v.type)),{key:0,modelValue:v.value,"onUpdate:modelValue":b=>v.value=b,onClickTrigger:a,onChangeTrigger:h,content:v==null?void 0:v.content},u.createSlots({_:2},[name?{name,fn:u.withCtx(b=>[u.renderSlot(c.$slots,name,u.mergeProps({ref_for:!0},b||{}),void 0,!0)]),key:"0"}:void 0]),1064,["modelValue","onUpdate:modelValue","content"])):u.createCommentVNode("",!0)]))),128))]),_:2},1032,["name"]))),128))]),_:3},8,["modelValue","tab-position"])}}},H2=ue._export_sfc(c9,[["__scopeId","data-v-0f027c8c"]]),h9=Object.freeze(Object.defineProperty({__proto__:null,default:H2},Symbol.toStringTag,{value:"Module"}));exports.Signature=Qc;exports._sfc_main=Jc;exports._sfc_main$1=R0;exports._sfc_main$2=Ur;exports._sfc_main$3=Xr;exports._sfc_main$4=qr;exports._sfc_main$5=Qr;exports.downloadAvatarApi=el;exports.getComponent=Dn;exports.getSvgIcons=Yr;exports.index=ff;exports.index$1=h9;exports.ssDialog=Ei;exports.ssFilePreview=eh;exports.ssForm=Kr;exports.ssTab=H2;exports.ssTable=Jr;exports.uploadAvatarApi=bf;
|