0&&void 0!==arguments[0]?arguments[0]:{};const{openDelimiter:t="rehype:ignore:start",closeDelimiter:n="rehype:ignore:end"}=e;return e=>{gf(e,((e,r,i)=>{if("element"===e.type||"root"===e.type){let r=!1;e.children=e.children.filter((e=>{if("raw"===e.type||"comment"===e.type){let i=(e.value||"").trim();if(i=i.replace(/^/,"$1"),i===t)return r=!0,!1;if(i===n)return r=!1,!1}return!r}))}}))}};var DO={type:"element",tagName:"svg",properties:{className:"octicon octicon-link",viewBox:"0 0 16 16",version:"1.1",width:"16",height:"16",ariaHidden:"true"},children:[{type:"element",tagName:"path",children:[],properties:{fillRule:"evenodd",d:"M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"}}]};var NO=[function(){const e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).prefix||"";return t=>{AO.reset(),gf(t,"element",(t=>{TO(t)&&t.properties&&!Ig(t,"id")&&(t.properties.id=e+AO.slug(bg(t)))}))}},function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.properties;const n=e.behaviour||e.behavior||"prepend",r=e.content||_O,i=e.group,o=EO(e.test);let s;return"wrap"===n?s=function(e){return e.children=[c(e,nh(!0,{},t),e.children)],[pf]}:"before"===n||"after"===n?s=function(e,o,s){if("number"!==typeof o||!s)return;const u=c(e,nh(!0,{},t),a(r,e));let h="before"===n?[u,e]:[e,u];if(i){const t=l(i,e);t&&!Array.isArray(t)&&"element"===t.type&&(t.children=h,h=[t])}return s.children.splice(o,1,...h),[pf,o+h.length]}:(t||(t={ariaHidden:"true",tabIndex:-1}),s=function(e){return e.children["prepend"===n?"unshift":"push"](c(e,nh(!0,{},t),a(r,e))),[pf]}),e=>{gf(e,"element",((e,t,n)=>{if(TO(e)&&Ig(e,"id")&&o(e,t,n))return s(e,t,n)}))};function a(e,t){const n=l(e,t);return Array.isArray(n)?n:[n]}function l(e,t){return"function"===typeof e?e(t):nh(!0,Array.isArray(e)?[]:{},e)}function c(e,t,n){return{type:"element",tagName:"a",properties:Object.assign({},t,{href:"#"+(e.properties||{}).id}),children:n}}},RO];const QO=K.forwardRef(((e,t)=>{var n,r,i,o=[xO,[_g,{ignoreMissing:!0}],...NO,[OO,{rewrite:(r=null!=(n=e.disableCopy)&&n,i=e.rehypeRewrite,(e,t,n)=>{if("element"===e.type&&n&&"root"===n.type&&/h(1|2|3|4|5|6)/.test(e.tagName)){var o=e.children&&e.children[0];o&&o.properties&&"true"===o.properties.ariaHidden&&(o.properties=Dt({class:"anchor"},o.properties),o.children=[DO])}if("element"===e.type&&"pre"===e.tagName&&!r){var s=gO(e.children);e.children.push((void 0===(a=s)&&(a=""),{type:"element",tagName:"div",properties:{class:"copied","data-code":a},children:[{type:"element",tagName:"svg",properties:{className:"octicon-copy",ariaHidden:"true",viewBox:"0 0 16 16",fill:"currentColor",height:12,width:12},children:[{type:"element",tagName:"path",properties:{fillRule:"evenodd",d:"M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 010 1.5h-1.5a.25.25 0 00-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 00.25-.25v-1.5a.75.75 0 011.5 0v1.5A1.75 1.75 0 019.25 16h-7.5A1.75 1.75 0 010 14.25v-7.5z"},children:[]},{type:"element",tagName:"path",properties:{fillRule:"evenodd",d:"M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0114.25 11h-7.5A1.75 1.75 0 015 9.25v-7.5zm1.75-.25a.25.25 0 00-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 00.25-.25v-7.5a.25.25 0 00-.25-.25h-7.5z"},children:[]}]},{type:"element",tagName:"svg",properties:{className:"octicon-check",ariaHidden:"true",viewBox:"0 0 16 16",fill:"currentColor",height:12,width:12},children:[{type:"element",tagName:"path",properties:{fillRule:"evenodd",d:"M13.78 4.22a.75.75 0 010 1.06l-7.25 7.25a.75.75 0 01-1.06 0L2.22 9.28a.75.75 0 011.06-1.06L6 10.94l6.72-6.72a.75.75 0 011.06 0z"},children:[]}]}]}))}var a;i&&i(e,t,n)})}],[kO,{properties:"attr"}],...e.rehypePlugins||[]];return(0,Qt.jsx)(Og,Dt({},e,{rehypePlugins:o,ref:t}))}));var MO={name:"bold",keyCommand:"bold",button:{"aria-label":"Add bold text"},icon:(0,Qt.jsx)("svg",{width:"13",height:"13",viewBox:"0 0 384 512",children:(0,Qt.jsx)("path",{fill:"currentColor",d:"M304.793 243.891c33.639-18.537 53.657-54.16 53.657-95.693 0-48.236-26.25-87.626-68.626-104.179C265.138 34.01 240.849 32 209.661 32H24c-8.837 0-16 7.163-16 16v33.049c0 8.837 7.163 16 16 16h33.113v318.53H24c-8.837 0-16 7.163-16 16V464c0 8.837 7.163 16 16 16h195.69c24.203 0 44.834-1.289 66.866-7.584C337.52 457.193 376 410.647 376 350.014c0-52.168-26.573-91.684-71.207-106.123zM142.217 100.809h67.444c16.294 0 27.536 2.019 37.525 6.717 15.828 8.479 24.906 26.502 24.906 49.446 0 35.029-20.32 56.79-53.029 56.79h-76.846V100.809zm112.642 305.475c-10.14 4.056-22.677 4.907-31.409 4.907h-81.233V281.943h84.367c39.645 0 63.057 25.38 63.057 63.057.001 28.425-13.66 52.483-34.782 61.284z"})}),execute:e=>{var{state:t,view:n}=e;t&&n&&n.dispatch(n.state.changeByRange((e=>({changes:[{from:e.from,insert:"**"},{from:e.to,insert:"**"}],range:ra.OF.range(e.from+2,e.to+2)}))))}},$O={name:"code",keyCommand:"code",button:{"aria-label":"Insert code"},icon:(0,Qt.jsxs)("svg",{viewBox:"0 0 48 48",fill:"none",height:"15",width:"15",children:[(0,Qt.jsx)("path",{d:"M16 13 4 25.432 16 37m16-24 12 12.432L32 37",stroke:"currentColor",strokeWidth:"5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,Qt.jsx)("path",{d:"m28 4-7 40",stroke:"currentColor",strokeWidth:"5",strokeLinecap:"round"})]}),execute:e=>{var{state:t,view:n}=e;t&&n&&n.dispatch(n.state.changeByRange((e=>({changes:[{from:e.from,insert:"`"},{from:e.to,insert:"`"}],range:ra.OF.range(e.from+1,e.to+1)}))))}},LO={name:"codeBlock",keyCommand:"codeBlock",button:{"aria-label":"Insert Code Block"},icon:(0,Qt.jsxs)("svg",{viewBox:"0 0 48 48",fill:"none",height:"15",width:"15",children:[(0,Qt.jsx)("path",{d:"M21 6H9a3 3 0 0 0-3 3v22a3 3 0 0 0 3 3h30a3 3 0 0 0 3-3V21M24 34v8",stroke:"currentColor",strokeWidth:"5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,Qt.jsx)("path",{d:"m32 6-4 4 4 4m6-8 4 4-4 4M14 42h20",stroke:"currentColor",strokeWidth:"5",strokeLinecap:"round",strokeLinejoin:"round"})]}),execute:e=>{var{state:t,view:n}=e;if(t&&n){var r=n.state.selection.main,i=n.state.sliceDoc(n.state.selection.main.from,n.state.selection.main.to);n.dispatch({changes:{from:r.from,to:r.to,insert:"```js\n"+i+"\n```"},selection:ra.OF.range(r.from+3,r.from+5)})}}},IO={name:"italic",keyCommand:"italic",button:{"aria-label":"Add italic text"},icon:(0,Qt.jsx)("svg",{width:"13",height:"13",viewBox:"0 0 320 512",children:(0,Qt.jsx)("path",{fill:"currentColor",d:"M204.758 416h-33.849l62.092-320h40.725a16 16 0 0 0 15.704-12.937l6.242-32C297.599 41.184 290.034 32 279.968 32H120.235a16 16 0 0 0-15.704 12.937l-6.242 32C96.362 86.816 103.927 96 113.993 96h33.846l-62.09 320H46.278a16 16 0 0 0-15.704 12.935l-6.245 32C22.402 470.815 29.967 480 40.034 480h158.479a16 16 0 0 0 15.704-12.935l6.245-32c1.927-9.88-5.638-19.065-15.704-19.065z"})}),execute:e=>{var{state:t,view:n}=e;t&&n&&n.dispatch(n.state.changeByRange((e=>({changes:[{from:e.from,insert:"*"},{from:e.to,insert:"*"}],range:ra.OF.range(e.from+1,e.to+1)}))))}},FO={name:"header",keyCommand:"header",button:{"aria-label":"Add header text"},icon:(0,Qt.jsx)("svg",{fill:"currentColor",viewBox:"0 0 448 512",height:"13",width:"13",children:(0,Qt.jsx)("path",{d:"M448 448c0 17.69-14.33 32-32 32h-96c-17.67 0-32-14.31-32-32s14.33-32 32-32h16V272H112v144h16c17.67 0 32 14.31 32 32s-14.33 32-32 32H32c-17.67 0-32-14.31-32-32s14.33-32 32-32h16V96H32C14.33 96 0 81.69 0 64s14.33-32 32-32h96c17.67 0 32 14.31 32 32s-14.33 32-32 32h-16v112h224V96h-16c-17.67 0-32-14.31-32-32s14.33-32 32-32h96c17.67 0 32 14.31 32 32s-14.33 32-32 32h-16v320h16c17.7 0 32 14.3 32 32z"})}),execute:e=>{var{state:t,view:n}=e;if(t&&n){var r=n.state.doc.lineAt(n.state.selection.main.from),i="#",o=r.text.match(/^#+/);if(o&&o[0]){var s=o[0];s.length<6&&(i=s+"#")}i.length>6&&(i="#");var a=r.text.replace(/^#+/,"");n.dispatch({changes:{from:r.from,to:r.to,insert:i+" "+a},selection:{anchor:r.from+i.length+1}})}}},BO={name:"strike",keyCommand:"strike",button:{"aria-label":"Add strike text"},icon:(0,Qt.jsx)("svg",{fill:"currentColor",viewBox:"0 0 512 512",height:"14",width:"14",children:(0,Qt.jsx)("path",{d:"M332.2 319.9c17.22 12.17 22.33 26.51 18.61 48.21-3.031 17.59-10.88 29.34-24.72 36.99-35.44 19.75-108.5 11.96-186-19.68-16.34-6.686-35.03 1.156-41.72 17.53s1.188 35.05 17.53 41.71c31.75 12.93 95.69 35.37 157.6 35.37 29.62 0 58.81-5.156 83.72-18.96 30.81-17.09 50.44-45.46 56.72-82.11 3.998-23.27 2.168-42.58-3.488-59.05H332.2zm155.8-80-176.5-.03c-15.85-5.614-31.83-10.34-46.7-14.62-85.47-24.62-110.9-39.05-103.7-81.33 2.5-14.53 10.16-25.96 22.72-34.03 20.47-13.15 64.06-23.84 155.4.343 17.09 4.53 34.59-5.654 39.13-22.74 4.531-17.09-5.656-34.59-22.75-39.12-91.31-24.18-160.7-21.62-206.3 7.654C121.8 73.72 103.6 101.1 98.09 133.1c-8.83 51.4 9.81 84.2 39.11 106.8H24c-13.25 0-24 10.75-24 23.1 0 13.25 10.75 23.1 24 23.1h464c13.25 0 24-10.75 24-23.1 0-12.3-10.7-23.1-24-23.1z"})}),execute:e=>{var{state:t,view:n}=e;t&&n&&n.dispatch(n.state.changeByRange((e=>({changes:[{from:e.from,insert:"~~"},{from:e.to,insert:"~~"}],range:ra.OF.range(e.from+2,e.to+2)}))))}},zO={name:"underline",keyCommand:"underline",button:{"aria-label":"Add underline text"},icon:(0,Qt.jsx)("svg",{fill:"currentColor",viewBox:"0 0 448 512",height:"13",width:"13",children:(0,Qt.jsx)("path",{d:"M416 448H32c-17.69 0-32 14.31-32 32s14.31 32 32 32h384c17.69 0 32-14.31 32-32s-14.3-32-32-32zM48 64.01h16v160c0 88.22 71.78 159.1 160 159.1s160-71.78 160-159.1v-160h16c17.69 0 32-14.32 32-32S417.69.91 400 .91l-96-.005c-17.69 0-32 14.32-32 32s14.31 32 32 32h16v160c0 52.94-43.06 95.1-96 95.1S128 276.1 128 224V64h16c17.69 0 32-14.31 32-32S161.69 0 144 0L48 .005c-17.69 0-32 14.31-32 31.1S30.31 64.01 48 64.01z"})}),execute:e=>{var{state:t,view:n}=e;t&&n&&n.dispatch(n.state.changeByRange((e=>({changes:[{from:e.from,insert:""},{from:e.to,insert:""}],range:ra.OF.range(e.from+3,e.to+3)}))))}},ZO={name:"olist",keyCommand:"olist",button:{"aria-label":"Add olist text"},icon:(0,Qt.jsx)("svg",{viewBox:"0 0 576 512",height:"14",width:"14",children:(0,Qt.jsx)("path",{fill:"currentColor",d:"M55.1 56.04c0-13.26 11.64-24 24-24h32c14.2 0 24 10.74 24 24V176h16c14.2 0 24 10.8 24 24 0 13.3-9.8 24-24 24h-80c-12.36 0-24-10.7-24-24 0-13.2 11.64-24 24-24h16V80.04h-8c-12.36 0-24-10.75-24-24zm63.6 285.16c-6.6-7.4-18.3-6.9-24.05 1.2l-11.12 15.5c-7.7 10.8-22.69 13.3-33.48 5.6-10.79-7.7-13.28-22.7-5.58-33.4l11.12-15.6c23.74-33.3 72.31-35.7 99.21-4.9 21.3 23.5 20.8 60.9-1.1 84.7L118.8 432H152c13.3 0 24 10.7 24 24s-10.7 24-24 24H64c-9.53 0-18.16-5.6-21.98-14.4-3.83-8.7-2.12-18.9 4.34-25.9l72.04-78c5.3-5.8 5.4-14.6.3-20.5zM512 64c17.7 0 32 14.33 32 32 0 17.7-14.3 32-32 32H256c-17.7 0-32-14.3-32-32 0-17.67 14.3-32 32-32h256zm0 160c17.7 0 32 14.3 32 32s-14.3 32-32 32H256c-17.7 0-32-14.3-32-32s14.3-32 32-32h256zm0 160c17.7 0 32 14.3 32 32s-14.3 32-32 32H256c-17.7 0-32-14.3-32-32s14.3-32 32-32h256z"})}),execute:e=>{var{state:t,view:n}=e;if(t&&n){var r=n.state.doc.lineAt(n.state.selection.main.from),i="1. ",o=r.text.match(/^\1\./);o&&o[0]&&(i=""),n.dispatch({changes:{from:r.from,to:r.to,insert:""+i+r.text},selection:{anchor:n.state.selection.main.from+i.length}})}}},jO={name:"ulist",keyCommand:"ulist",button:{"aria-label":"Add ulist text"},icon:(0,Qt.jsx)("svg",{viewBox:"0 0 512 512",height:"14",width:"14",children:(0,Qt.jsx)("path",{fill:"currentColor",d:"M88 48c13.3 0 24 10.75 24 24v48c0 13.3-10.7 24-24 24H40c-13.25 0-24-10.7-24-24V72c0-13.25 10.75-24 24-24h48zm392 16c17.7 0 32 14.33 32 32 0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32 0-17.67 14.3-32 32-32h288zm0 160c17.7 0 32 14.3 32 32s-14.3 32-32 32H192c-17.7 0-32-14.3-32-32s14.3-32 32-32h288zm0 160c17.7 0 32 14.3 32 32s-14.3 32-32 32H192c-17.7 0-32-14.3-32-32s14.3-32 32-32h288zM16 232c0-13.3 10.75-24 24-24h48c13.3 0 24 10.7 24 24v48c0 13.3-10.7 24-24 24H40c-13.25 0-24-10.7-24-24v-48zm72 136c13.3 0 24 10.7 24 24v48c0 13.3-10.7 24-24 24H40c-13.25 0-24-10.7-24-24v-48c0-13.3 10.75-24 24-24h48z"})}),execute:e=>{var{state:t,view:n}=e;if(t&&n){var r=n.state.doc.lineAt(n.state.selection.main.from),i="- ",o=r.text.match(/^-/);o&&o[0]&&(i=""),n.dispatch({changes:{from:r.from,to:r.to,insert:""+i+r.text},selection:{anchor:n.state.selection.main.from+i.length}})}}},UO={name:"quote",keyCommand:"quote",button:{"aria-label":"Add quote text"},icon:(0,Qt.jsx)("svg",{fill:"currentColor",viewBox:"0 0 448 512",height:"15",width:"15",children:(0,Qt.jsx)("path",{d:"M96 96c-53.02 0-96 42.1-96 96s42.98 96 96 96c11.28 0 21.95-2.305 32-5.879V288c0 35.3-28.7 64-64 64-17.67 0-32 14.33-32 32s14.33 32 32 32c70.58 0 128-57.42 128-128v-96c0-53.9-43-96-96-96zm352 96c0-53.02-42.98-96-96-96s-96 42.98-96 96 42.98 96 96 96c11.28 0 21.95-2.305 32-5.879V288c0 35.3-28.7 64-64 64-17.67 0-32 14.33-32 32s14.33 32 32 32c70.58 0 128-57.42 128-128v-96z"})}),execute:e=>{var{state:t,view:n}=e;if(t&&n){var r=n.state.doc.lineAt(n.state.selection.main.from),i="> ",o=r.text.match(/^>\s/);o&&o[0]&&(i=""),n.dispatch({changes:{from:r.from,to:r.to,insert:""+i+r.text},selection:{anchor:n.state.selection.main.from+i.length}})}}},XO={name:"link",keyCommand:"link",button:{"aria-label":"Add link text"},icon:(0,Qt.jsx)("svg",{fill:"currentColor",viewBox:"0 0 640 512",height:"16",width:"16",children:(0,Qt.jsx)("path",{d:"M172.5 131.1c55.6-55.59 148-55.59 203.6 0 50 50 57.4 129.7 16.3 187.2l-1.1 1.6c-10.3 14.3-30.3 17.7-44.6 7.4-14.4-10.3-17.8-30.3-7.5-44.6l1.1-1.6c22.9-32.1 19.3-76-8.6-103.9-31.4-31.4-82.5-31.4-114 0L105.5 289.5c-31.51 30.6-31.51 82.5 0 114 27.8 27.9 71.8 31.5 103.8 8.6l1.6-2c14.4-9.4 34.4-6.1 44.6 8.3 10.3 14.4 7 34.4-7.4 44.7l-1.6 1.1c-58.4 41.1-136.3 34.5-186.29-15.4-56.469-56.5-56.469-148.1 0-204.5L172.5 131.1zm295 248.9c-56.5 56.5-148 56.5-204.5 0-50-50-56.5-128.8-15.4-186.3l1.1-1.6c9.4-14.3 29.4-17.7 44.6-7.4 14.4 9.4 17.8 29.4 7.5 44.6l-1.1 1.6c-22.9 31.2-19.3 76 8.6 103.9 31.4 31.4 82.5 31.4 114 0l112.2-112.3c31.5-31.5 31.5-83.4 0-114-27.8-27.87-71.8-31.51-103.8-8.6l-1.6 1.1c-14.4 10.3-34.4 6.1-44.6-7.42-10.3-14.38-7-34.37 7.4-44.64l1.6-1.12C451 6.731 529.8 13.25 579.8 63.24c56.5 56.46 56.5 148.06 0 204.46L467.5 380z"})}),execute:e=>{var{state:t,view:n}=e;if(t&&n&&t&&n){var r=n.state.selection.main,i=n.state.sliceDoc(n.state.selection.main.from,n.state.selection.main.to);n.dispatch({changes:{from:r.from,to:r.to,insert:"["+i+"]()"},selection:ra.OF.range(r.from+3+i.length,r.to+3)})}}},HO={name:"todo",keyCommand:"todo",button:{"aria-label":"Add todo List"},icon:(0,Qt.jsx)("svg",{viewBox:"0 0 48 48",fill:"none",height:"15",width:"15",children:(0,Qt.jsx)("path",{d:"m5 10 3 3 6-6M5 24l3 3 6-6M5 38l3 3 6-6m7-11h22M21 38h22M21 10h22",stroke:"currentColor",strokeWidth:"5",strokeLinecap:"round",strokeLinejoin:"round"})}),execute:e=>{var{state:t,view:n}=e;if(t&&n){var r=n.state.doc.lineAt(n.state.selection.main.from),i="- [ ] ",o=r.text.match(/^-\s\[\s\]\s/);o&&o[0]&&(i=""),n.dispatch({changes:{from:r.from,to:r.to,insert:""+i+r.text},selection:{anchor:n.state.selection.main.from+i.length}})}}},WO={name:"image",keyCommand:"image",button:{"aria-label":"Add image text"},icon:(0,Qt.jsx)("svg",{fill:"currentColor",viewBox:"0 0 16 16",height:"14",width:"14",children:(0,Qt.jsx)("path",{fillRule:"evenodd",d:"M1.75 2.5a.25.25 0 0 0-.25.25v10.5c0 .138.112.25.25.25h.94a.76.76 0 0 1 .03-.03l6.077-6.078a1.75 1.75 0 0 1 2.412-.06L14.5 10.31V2.75a.25.25 0 0 0-.25-.25H1.75zm12.5 11H4.81l5.048-5.047a.25.25 0 0 1 .344-.009l4.298 3.889v.917a.25.25 0 0 1-.25.25zm1.75-.25V2.75A1.75 1.75 0 0 0 14.25 1H1.75A1.75 1.75 0 0 0 0 2.75v10.5C0 14.216.784 15 1.75 15h12.5A1.75 1.75 0 0 0 16 13.25zM5.5 6a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0zM7 6a2 2 0 1 1-4 0 2 2 0 0 1 4 0z"})}),execute:e=>{var{state:t,view:n}=e;if(t&&n){var r=n.state.selection.main,i=n.state.sliceDoc(n.state.selection.main.from,n.state.selection.main.to);n.dispatch({changes:{from:r.from,to:r.to,insert:""},selection:ra.OF.range(r.from+4,r.to+4)})}}},qO={name:"redo",keyCommand:"redo",button:{"aria-label":"redo text"},icon:(0,Qt.jsx)("svg",{viewBox:"0 0 512 512",height:"14",width:"14",children:(0,Qt.jsx)("path",{fill:"currentColor",d:"M58.79,439.13A16,16,0,0,1,48,424c0-73.1,14.68-131.56,43.65-173.77,35-51,90.21-78.46,164.35-81.87V88a16,16,0,0,1,27.05-11.57l176,168a16,16,0,0,1,0,23.14l-176,168A16,16,0,0,1,256,424V344.23c-45,1.36-79,8.65-106.07,22.64-29.25,15.12-50.46,37.71-73.32,67a16,16,0,0,1-17.82,5.28Z"})}),execute:e=>{var{state:t,view:n}=e;t&&n&&va(n)}},YO={name:"undo",keyCommand:"undo",button:{"aria-label":"undo text"},icon:(0,Qt.jsx)("svg",{viewBox:"0 0 512 512",height:"14",width:"14",children:(0,Qt.jsx)("path",{fill:"currentColor",d:"M448,440a16,16,0,0,1-12.61-6.15c-22.86-29.27-44.07-51.86-73.32-67C335,352.88,301,345.59,256,344.23V424A16,16,0,0,1,229,435.57l-176-168a16,16,0,0,1,0-23.14l176-168A16,16,0,0,1,256,88v80.36c74.14,3.41,129.38,30.91,164.35,81.87C449.32,292.44,464,350.9,464,424a16,16,0,0,1-16,16Z"})}),execute:e=>{var{state:t,view:n}=e;t&&n&&ya(n)}},GO=e=>{var{editorProps:t}=e,n=(0,K.useRef)(0),[r,i]=(0,K.useState)(!1),o=(0,K.useRef)(r),s=e=>{var r;for(var i of e){var s;n.current||(n.current=i.target.clientHeight),null!=(s=t.editor)&&null!=(s=s.current)&&null!=(s=s.view)&&s.dom&&(o.current?t.editor.current.view.dom.style.height=i.target.clientHeight+"px":t.editor.current.view.dom.removeAttribute("style"))}null==(r=a.current)||r.disconnect(),a.current=void 0},a=(0,K.useRef)(new ResizeObserver(s));(0,K.useEffect)((()=>{if(a.current||(a.current=new ResizeObserver(s)),t.containerEditor&&t.containerEditor.current&&t.containerEditor.current.parentElement&&a.current){var e=t.containerEditor.current.parentElement;a.current.observe(e)}return()=>{a.current&&(a.current.disconnect(),a.current=void 0)}}),[t.containerEditor,s,t.editor,r,a]),(0,K.useEffect)((()=>{if(document&&t&&t.container&&t.container.current&&t.editor){var e=t.container.current;document.body.style.overflow=r?"hidden":"initial",e&&r?(e.style.zIndex="999",e.style.position="fixed",e.style.top="0px",e.style.bottom="0px",e.style.left="0px",e.style.right="0px"):e&&(e.style.position="initial",e.style.top="initial",e.style.bottom="initial",e.style.left="initial",e.style.right="initial")}}),[r,t]);return(0,Qt.jsx)("button",{onClick:()=>{o.current=!r,i(!r)},type:"button",className:r?"active":"",children:e.command.icon})},VO={name:"fullscreen",keyCommand:"fullscreen",button:(e,t,n)=>(0,Qt.jsx)(GO,{command:e,editorProps:Dt({},t,n)}),icon:(0,Qt.jsx)("svg",{fill:"currentColor",viewBox:"0 0 448 512",height:"15",width:"15",children:(0,Qt.jsx)("path",{d:"M128 32H32C14.31 32 0 46.31 0 64v96c0 17.69 14.31 32 32 32s32-14.31 32-32V96h64c17.69 0 32-14.31 32-32s-14.3-32-32-32zm288 0h-96c-17.69 0-32 14.31-32 32s14.31 32 32 32h64v64c0 17.69 14.31 32 32 32s32-14.31 32-32V64c0-17.69-14.3-32-32-32zM128 416H64v-64c0-17.69-14.31-32-32-32S0 334.31 0 352v96c0 17.69 14.31 32 32 32h96c17.69 0 32-14.31 32-32s-14.3-32-32-32zm288-96c-17.69 0-32 14.31-32 32v64h-64c-17.69 0-32 14.31-32 32s14.31 32 32 32h96c17.69 0 32-14.31 32-32v-96c0-17.7-14.3-32-32-32z"})})},KO=e=>{var{editorProps:t}=e,{containerEditor:n,preview:r,previewWidth:i="50%",enablePreview:o=!0}=t,[s,a]=(0,K.useState)(e.editorProps.visible);if((0,K.useEffect)((()=>a(e.editorProps.visible)),[e.editorProps.visible]),(0,K.useEffect)((()=>{if(r.current){var e=r.current;r&&(e.style.borderBottomRightRadius="3px"),e&&s?(e.style.width=i,e.style.overflow="auto","100%"!==i&&(e.style.borderLeft="1px solid var(--color-border-muted)"),e.style.padding="20px",n.current&&(n.current.style.width="calc(100% - "+i+")")):e&&(e.style.width="0%",e.style.overflow="hidden",e.style.borderLeft="0px",e.style.padding="0",n.current&&(n.current.style.width="100%"))}}),[s,n,r,i]),o){return(0,Qt.jsx)("button",{onClick:()=>{t.onPreviewMode&&t.onPreviewMode(!s),a(!s)},type:"button",className:s?"active":"",children:e.command.icon})}},JO={name:"preview",keyCommand:"preview",button:(e,t,n)=>(0,Qt.jsx)(KO,{command:e,editorProps:Dt({},t,n)}),icon:(0,Qt.jsx)("svg",{fill:"currentColor",viewBox:"0 0 576 512",height:"16",width:"16",children:(0,Qt.jsx)("path",{d:"M279.6 160.4c2.8-.3 5.6-.4 8.4-.4 53 0 96 42.1 96 96 0 53-43 96-96 96-53.9 0-96-43-96-96 0-2.8.1-5.6.4-8.4 9.3 4.5 20.1 8.4 31.6 8.4 35.3 0 64-28.7 64-64 0-11.5-3.9-22.3-8.4-31.6zm201-47.8c46.8 43.4 78.1 94.5 92.9 131.1 3.3 7.9 3.3 16.7 0 24.6-14.8 35.7-46.1 86.8-92.9 131.1C433.5 443.2 368.8 480 288 480s-145.5-36.8-192.58-80.6C48.62 355.1 17.34 304 2.461 268.3a31.967 31.967 0 0 1 0-24.6C17.34 207.1 48.62 156 95.42 112.6 142.5 68.84 207.2 32 288 32c80.8 0 145.5 36.84 192.6 80.6zM288 112c-79.5 0-144 64.5-144 144s64.5 144 144 144 144-64.5 144-144-64.5-144-144-144z"})})},eb={undo:YO,redo:qO,bold:MO,italic:IO,header:FO,strike:BO,underline:zO,quote:UO,olist:ZO,ulist:jO,todo:HO,link:XO,image:WO,code:$O,codeBlock:LO,fullscreen:VO,preview:JO},tb=()=>Object.keys(eb).filter((e=>!/^(fullscreen|preview)/.test(e))).map((e=>eb[e])),nb=()=>[JO,VO],rb=["prefixCls","className","onClick","toolbars","editor","mode","preview","container","containerEditor","editorProps"];function ib(e){var{prefixCls:t="md-editor",className:n,toolbars:r=[],editor:i,mode:o,preview:s,container:a,containerEditor:l,editorProps:c={}}=e,u=Nt(e,rb);if(!r||0===r.length)return null;return(0,Qt.jsx)("div",Dt({className:t+"-toolbar "+(n||"")+" "+(o?t+"-toolbar-mode":"")},u,{children:[...r].map(((e,t)=>{var n={type:"button"},r="string"===typeof e?eb[e]:e;if(!r)return null;if(n.children=r.icon,n.onClick=()=>{var e;(e=r.execute)&&i&&i&&e(i.current)},r.button&&"object"===typeof r.button){var o=r.button;Object.keys(o).forEach((e=>{n[e]=o[e]}))}else if("function"===typeof r.button)return K.cloneElement(r.button(r,c,{preview:s,container:a,containerEditor:l,editor:i,editorProps:c}),{key:t});return(0,K.createElement)("button",Dt({},n,{key:t}))}))}))}var ob=e=>{var{theme:t,settings:n={},styles:r=[]}=e,i={".cm-gutters":{}},o={};n.background&&(o.backgroundColor=n.background),n.backgroundImage&&(o.backgroundImage=n.backgroundImage),n.foreground&&(o.color=n.foreground),n.fontSize&&(o.fontSize=n.fontSize),(n.background||n.foreground)&&(i["&"]=o),n.fontFamily&&(i["&.cm-editor .cm-scroller"]={fontFamily:n.fontFamily}),n.gutterBackground&&(i[".cm-gutters"].backgroundColor=n.gutterBackground),n.gutterForeground&&(i[".cm-gutters"].color=n.gutterForeground),n.gutterBorder&&(i[".cm-gutters"].borderRightColor=n.gutterBorder),n.caret&&(i[".cm-content"]={caretColor:n.caret},i[".cm-cursor, .cm-dropCursor"]={borderLeftColor:n.caret});var s={};n.gutterActiveForeground&&(s.color=n.gutterActiveForeground),n.lineHighlight&&(i[".cm-activeLine"]={backgroundColor:n.lineHighlight},s.backgroundColor=n.lineHighlight),i[".cm-activeLineGutter"]=s,n.selection&&(i["&.cm-focused .cm-selectionBackground, & .cm-line::selection, & .cm-selectionLayer .cm-selectionBackground, .cm-content ::selection"]={background:n.selection+" !important"}),n.selectionMatch&&(i["& .cm-selectionMatch"]={backgroundColor:n.selectionMatch});var a=ta.Lz.theme(i,{dark:"dark"===t}),l=Vs.cr.define(r);return[a,(0,Vs.y9)(l)]};var sb=ob({theme:"light",settings:{background:"var(--color-canvas-subtle)",foreground:"var(--color-fg-default)",caret:"var(--color-fg-default)",selection:"var(--color-border-default)",selectionMatch:"var(--color-border-muted)",lineHighlight:"var(--color-neutral-muted)",gutterBackground:"var(--color-canvas-subtle)",gutterForeground:"var(--color-fg-muted)",gutterBorder:"var(--color-border-muted)"},styles:[{tag:du._A.comment,color:"var(--color-prettylights-syntax-comment)"},{tag:du._A.variableName,color:"var(--color-prettylights-syntax-variable)"},{tag:[du._A.string,du._A.special(du._A.brace)],color:"var(--color-prettylights-syntax-entity)"},{tag:du._A.number,color:"var(--color-prettylights-syntax-variable)"},{tag:[du._A.bool,du._A.null],color:"var(--color-prettylights-syntax-entity)"},{tag:du._A.keyword,color:"var(--color-prettylights-syntax-keyword)",fontWeight:"bold"},{tag:du._A.string,color:"var(--color-prettylights-syntax-string)"},{tag:du._A.operator,color:"var(--color-accent-emphasis)"},{tag:du._A.deleted,color:"var(--color-prettylights-syntax-markup-deleted-bg)"},{tag:du._A.deleted,color:"red"},{tag:du._A.className,color:"var(--color-prettylights-syntax-variable)"},{tag:du._A.definition(du._A.typeName),color:"var(--color-prettylights-syntax-entity)"},{tag:du._A.typeName,color:"var(--color-prettylights-syntax-entity)"},{tag:du._A.list,color:"var(--color-prettylights-syntax-markup-list)"},{tag:du._A.heading,color:"var(--color-prettylights-syntax-markup-heading)",fontWeight:"bold"},{tag:du._A.regexp,color:"var(--color-prettylights-syntax-string-regexp)"},{tag:du._A.literal,color:"var(--color-prettylights-syntax-markup-italic)"},{tag:du._A.link,color:"var(--color-prettylights-syntax-constant-other-reference-link)",textDecoration:"underline"},{tag:du._A.angleBracket,color:"var(--color-fg-default)"},{tag:du._A.tagName,color:"var(--color-prettylights-syntax-entity-tag)"},{tag:du._A.attributeName,color:"var(--color-prettylights-syntax-constant)"}]}),ab=["prefixCls","className","onChange","toolbars","toolbarsMode","toolbarsFilter","visible","renderPreview","visibleEditor","hideToolbar","toolbarBottom","enableScroll","enablePreview","previewProps","extensions","previewWidth","reExtensions","onPreviewMode"],lb=ta.Lz.theme({"&.cm-editor, & .cm-scroller":{borderBottomRightRadius:"3px",borderBottomLeftRadius:"3px"}}),cb=K.forwardRef(hb);cb.Markdown=QO;const ub=cb;function hb(e,t){var{prefixCls:n="md-editor",className:r,onChange:i,toolbars:o=tb(),toolbarsMode:s=nb(),toolbarsFilter:a,visible:l=!0,renderPreview:c,visibleEditor:u=!0,hideToolbar:h=!0,toolbarBottom:d=!1,enableScroll:f=!0,enablePreview:p=!0,previewProps:m={},extensions:g=[],previewWidth:O="50%",reExtensions:b}=e,y=Nt(e,ab),[v,k]=(0,K.useState)(e.value||""),x=(0,K.useRef)(null),S=(0,K.useRef)(null),w=(0,K.useRef)(null),T=(0,K.useRef)(null),A=(0,K.useRef)("editor");(0,K.useImperativeHandle)(t,(()=>({editor:x,preview:T})),[x]);var E={preview:T,editor:x,container:S,containerEditor:w,editorProps:Dt({},e,{previewWidth:O})},C="number"===typeof y.height?y.height+"px":y.height,P=e.value;(0,K.useEffect)((()=>k(null!=P?P:"")),[P]);var _=(0,K.useCallback)((e=>{if(f){var t=e.target,n=t.scrollTop/t.scrollHeight;if("editor"===A.current&&T.current){var r,i=(null==(r=T.current)?void 0:r.scrollHeight)||0;T.current.scrollTop=i*n}else if(x.current&&x.current.view){var o=x.current.view.scrollDOM,s=x.current.view.scrollDOM.scrollHeight||0;o.scrollTop=s*n}}}),[f]),R=()=>A.current="preview",D=()=>A.current="editor";(0,K.useEffect)((()=>{var e=T.current;return e&&f&&(e.addEventListener("mouseover",R,!1),e.addEventListener("mouseleave",D,!1),e.addEventListener("scroll",_,!1)),()=>{e&&f&&(e.removeEventListener("mouseover",R),e.removeEventListener("mouseleave",R),e.addEventListener("mouseleave",_,!1))}}),[T,f,_]);var N=na({type:"scroll",events:{scroll:_}}),Q=b||[(0,Gs.markdown)({base:Gs.markdownLanguage,codeLanguages:ea}),lb,...g];f&&Q.push(N);var M=n+"-preview",$=[n,"wmde-markdown-var",r].filter(Boolean).join(" ");m.source=v;var L=(0,Qt.jsxs)("div",{className:n+"-content",style:{height:y.height},children:[(0,Qt.jsx)("div",{className:n+"-content-editor",ref:w,children:u&&(0,Qt.jsx)(Iu,Dt({theme:sb},y,{className:n+"-inner",extensions:Q,height:C,ref:x,onChange:(e,t)=>{k(e),i&&i(e,t)}}))}),p&&(0,Qt.jsx)("div",{className:M,ref:T,children:c?c(m,!!l):(0,Qt.jsx)(QO,Dt({},m,{"data-visible":!!l}))})]}),I=[n&&n+"-toolbar-warp",n&&d&&n+"-toolbar-bottom"].filter(Boolean).join(" "),F=a?o.filter(a):o,B=a?s.filter(a):s,z=h&&(0,Qt.jsxs)("div",{className:I,children:[(0,Qt.jsx)(ib,Dt({},E,{toolbars:F})),(0,Qt.jsx)(ib,Dt({},E,{toolbars:B,mode:!0}))]}),Z=d?(0,Qt.jsxs)(K.Fragment,{children:[L,z]}):(0,Qt.jsxs)(K.Fragment,{children:[z,L]});return(0,Qt.jsx)("div",{className:$,ref:S,children:Z})}var db={background:"#0f0f0f",foreground:"#defdef",caret:"#00FF00",selection:"#515151",selectionMatch:"#515151",gutterBackground:"#555",gutterForeground:"#FFFFFF",lineHighlight:"#0a6bcb3d"},fb=[{tag:du._A.keyword,color:"darkgoldenrod",fontWeight:"bold"},{tag:du._A.atom,color:"#77F"},{tag:du._A.comment,color:"#7a7b7c",fontStyle:"italic"},{tag:du._A.number,color:"violet"},{tag:du._A.definition(du._A.variableName),color:"#fffabc"},{tag:du._A.variableName,color:"#abcdef"},{tag:du._A.function(du._A.variableName),color:"#fffabc"},{tag:du._A.typeName,color:"#FFDD44"},{tag:du._A.tagName,color:"#def"},{tag:du._A.string,color:"#2b4"},{tag:du._A.meta,color:"#C9F"},{tag:du._A.bracket,color:"#8a8a8a"},{tag:du._A.attributeName,color:"#DDFF00"},{tag:du._A.heading,color:"aquamarine",fontWeight:"bold"},{tag:du._A.link,color:"blueviolet",fontWeight:"bold"}],pb=(e=>{var{theme:t="dark",settings:n={},styles:r=[]}=e||{};return ob({theme:t,settings:Dt({},db,n),styles:[...fb,...r]})})(),mb={background:"#282b2e",foreground:"#a9b7c6",caret:"#00FF00",selection:"#4e5254",selectionMatch:"#4e5254",lineHighlight:"#7f85891f"},gb=[{tag:[du._A.keyword,du._A.deleted,du._A.className],color:"#cc7832"},{tag:[du._A.number,du._A.literal,du._A.derefOperator],color:"#6897bb"},{tag:[du._A.link,du._A.variableName],color:"#629755"},{tag:[du._A.comment,du._A.quote],color:"grey"},{tag:[du._A.meta,du._A.documentMeta],color:"#bbb529"},{tag:[du._A.string,du._A.propertyName,du._A.attributeValue],color:"#6a8759"},{tag:[du._A.heading,du._A.typeName],color:"#ffc66d"},{tag:[du._A.attributeName],color:"#a9b7c6"},{tag:[du._A.emphasis],fontStyle:"italic"}],Ob=(e=>{var{theme:t="dark",settings:n={},styles:r=[]}=e||{};return ob({theme:t,settings:Dt({},mb,n),styles:[...gb,...r]})})(),bb={background:"#272C35",foreground:"#9d9b97",caret:"#797977",selection:"#3d4c64",selectionMatch:"#3d4c64",gutterBackground:"#272C35",gutterForeground:"#465063",gutterBorder:"transparent",lineHighlight:"#2e3f5940"},yb=[{tag:[du._A.function(du._A.variableName),du._A.function(du._A.propertyName),du._A.url,du._A.processingInstruction],color:"hsl(207, 82%, 66%)"},{tag:[du._A.tagName,du._A.heading],color:"#e06c75"},{tag:du._A.comment,color:"#54636D"},{tag:[du._A.propertyName],color:"hsl(220, 14%, 71%)"},{tag:[du._A.attributeName,du._A.number],color:"hsl( 29, 54%, 61%)"},{tag:du._A.className,color:"hsl( 39, 67%, 69%)"},{tag:du._A.keyword,color:"hsl(286, 60%, 67%)"},{tag:[du._A.string,du._A.regexp,du._A.special(du._A.propertyName)],color:"#98c379"}],vb=(e=>{var{theme:t="dark",settings:n={},styles:r=[]}=e||{};return ob({theme:t,settings:Dt({},bb,n),styles:[...yb,...r]})})(),kb={background:"#FFFFFF",foreground:"#000000",caret:"#FBAC52",selection:"#FFD420",selectionMatch:"#FFD420",gutterBackground:"#f5f5f5",gutterForeground:"#4D4D4C",gutterBorder:"transparent",lineHighlight:"#00000012"},xb=[{tag:[du._A.meta,du._A.comment],color:"#804000"},{tag:[du._A.keyword,du._A.strong],color:"#0000FF"},{tag:[du._A.number],color:"#FF0080"},{tag:[du._A.string],color:"#FF0080"},{tag:[du._A.variableName],color:"#006600"},{tag:[du._A.escape],color:"#33CC33"},{tag:[du._A.tagName],color:"#1C02FF"},{tag:[du._A.heading],color:"#0C07FF"},{tag:[du._A.quote],color:"#000000"},{tag:[du._A.list],color:"#B90690"},{tag:[du._A.documentMeta],color:"#888888"},{tag:[du._A.function(du._A.variableName)],color:"#0000A2"},{tag:[du._A.definition(du._A.typeName),du._A.typeName],color:"#6D79DE"}],Sb=(e=>{var{theme:t="light",settings:n={},styles:r=[]}=e||{};return ob({theme:t,settings:Dt({},kb,n),styles:[...xb,...r]})})(),wb={background:"#28211c",foreground:"#9d9b97",caret:"#797977",selection:"#4f382b",selectionMatch:"#4f382b",gutterBackground:"#28211c",gutterForeground:"#666666",lineHighlight:"#ffffff1a"},Tb=[{tag:[du._A.atom,du._A.number,du._A.link,du._A.bool],color:"#9b859d"},{tag:du._A.comment,color:"#937121"},{tag:[du._A.keyword,du._A.tagName],color:"#cf6a4c"},{tag:du._A.string,color:"#f9ee98"},{tag:du._A.bracket,color:"#9d9b97"},{tag:[du._A.variableName],color:"#5ea6ea"},{tag:du._A.definition(du._A.variableName),color:"#cf7d34"},{tag:[du._A.function(du._A.variableName),du._A.className],color:"#cf7d34"},{tag:[du._A.propertyName,du._A.attributeName],color:"#54be0d"}],Ab=(e=>{var{theme:t="dark",settings:n={},styles:r=[]}=e||{};return ob({theme:t,settings:Dt({},wb,n),styles:[...Tb,...r]})})(),Eb={background:"#2B2B2B",foreground:"#f8f8f2",caret:"#FFFFFF",selection:"rgba(255, 255, 255, 0.1)",selectionMatch:"rgba(255, 255, 255, 0.2)",gutterBackground:"rgba(255, 255, 255, 0.1)",gutterForeground:"#999",gutterBorder:"transparent",lineHighlight:"rgba(255, 255, 255, 0.1)"},Cb=[{tag:[du._A.atom,du._A.number],color:"#bd93f9"},{tag:[du._A.comment],color:"#61A151"},{tag:[du._A.string],color:"#6A8759"},{tag:[du._A.variableName,du._A.operator],color:"#A9B7C6"},{tag:[du._A.meta,du._A.className],color:"#A9B7C6"},{tag:[du._A.propertyName],color:"#FFC66D"},{tag:[du._A.keyword],color:"#CC7832"},{tag:[du._A.tagName],color:"#ff79c6"},{tag:[du._A.typeName],color:"#ffb86c"}],Pb=(e=>{var{theme:t="dark",settings:n={},styles:r=[]}=e||{};return ob({theme:t,settings:Dt({},Eb,n),styles:[...Cb,...r]})})(),_b={background:"#282a36",foreground:"#f8f8f2",caret:"#f8f8f0",selection:"rgba(255, 255, 255, 0.1)",selectionMatch:"rgba(255, 255, 255, 0.2)",gutterBackground:"#282a36",gutterForeground:"#6D8A88",gutterBorder:"transparent",lineHighlight:"rgba(255, 255, 255, 0.1)"},Rb=[{tag:du._A.comment,color:"#6272a4"},{tag:du._A.string,color:"#f1fa8c"},{tag:du._A.atom,color:"#bd93f9"},{tag:du._A.meta,color:"#f8f8f2"},{tag:[du._A.keyword,du._A.operator,du._A.tagName],color:"#ff79c6"},{tag:[du._A.function(du._A.propertyName),du._A.propertyName],color:"#66d9ef"},{tag:[du._A.definition(du._A.variableName),du._A.function(du._A.variableName),du._A.className,du._A.attributeName],color:"#50fa7b"},{tag:du._A.atom,color:"#bd93f9"}],Db=(e=>{var{theme:t="dark",settings:n={},styles:r=[]}=e||{};return ob({theme:t,settings:Dt({},_b,n),styles:[...Rb,...r]})})(),Nb={background:"#faf8f5",foreground:"#b29762",caret:"#93abdc",selection:"#e3dcce",selectionMatch:"#e3dcce",gutterBackground:"#faf8f5",gutterForeground:"#cdc4b1",gutterBorder:"transparent",lineHighlight:"#ddceb154"},Qb=[{tag:[du._A.comment,du._A.bracket],color:"#b6ad9a"},{tag:[du._A.atom,du._A.number,du._A.keyword,du._A.link,du._A.attributeName,du._A.quote],color:"#063289"},{tag:[du._A.emphasis,du._A.heading,du._A.tagName,du._A.propertyName,du._A.variableName],color:"#2d2006"},{tag:[du._A.typeName,du._A.url,du._A.string],color:"#896724"},{tag:[du._A.operator,du._A.string],color:"#1659df"},{tag:[du._A.propertyName],color:"#b29762"},{tag:[du._A.unit,du._A.punctuation],color:"#063289"}],Mb=(e=>{var{theme:t="light",settings:n={},styles:r=[]}=e||{};return ob({theme:t,settings:Dt({},Nb,n),styles:[...Qb,...r]})})(),$b={background:"#2a2734",foreground:"#6c6783",caret:"#ffad5c",selection:"#91ff6c26",selectionMatch:"#91ff6c26",gutterBackground:"#2a2734",gutterForeground:"#545167",lineHighlight:"#36334280"},Lb=[{tag:[du._A.comment,du._A.bracket],color:"#6c6783"},{tag:[du._A.atom,du._A.number,du._A.keyword,du._A.link,du._A.attributeName,du._A.quote],color:"#ffcc99"},{tag:[du._A.emphasis,du._A.heading,du._A.tagName,du._A.propertyName,du._A.className,du._A.variableName],color:"#eeebff"},{tag:[du._A.typeName,du._A.url],color:"#7a63ee"},{tag:du._A.operator,color:"#ffad5c"},{tag:du._A.string,color:"#ffb870"},{tag:[du._A.propertyName],color:"#9a86fd"},{tag:[du._A.unit,du._A.punctuation],color:"#e09142"}],Ib=(e=>{var{theme:t="dark",settings:n={},styles:r=[]}=e||{};return ob({theme:t,settings:Dt({},$b,n),styles:[...Lb,...r]})})(),Fb={background:"#fff",foreground:"#000",caret:"#FFFFFF",selection:"#d7d4f0",selectionMatch:"#d7d4f0",gutterBackground:"#f7f7f7",gutterForeground:"#999",lineHighlight:"#006fff1c",gutterBorder:"transparent"},Bb=[{tag:[du._A.comment],color:"#3F7F5F"},{tag:[du._A.documentMeta],color:"#FF1717"},{tag:du._A.keyword,color:"#7F0055",fontWeight:"bold"},{tag:du._A.atom,color:"#00f"},{tag:du._A.number,color:"#164"},{tag:du._A.propertyName,color:"#164"},{tag:[du._A.variableName,du._A.definition(du._A.variableName)],color:"#0000C0"},{tag:du._A.function(du._A.variableName),color:"#0000C0"},{tag:du._A.string,color:"#2A00FF"},{tag:du._A.operator,color:"black"},{tag:du._A.tagName,color:"#170"},{tag:du._A.attributeName,color:"#00c"},{tag:du._A.link,color:"#219"}],zb=(e=>{var{theme:t="light",settings:n={},styles:r=[]}=e||{};return ob({theme:t,settings:Dt({},Fb,n),styles:[...Bb,...r]})})(),Zb={background:"#fff",foreground:"#24292e",selection:"#BBDFFF",selectionMatch:"#BBDFFF",gutterBackground:"#fff",gutterForeground:"#6e7781"},jb=[{tag:[du._A.standard(du._A.tagName),du._A.tagName],color:"#116329"},{tag:[du._A.comment,du._A.bracket],color:"#6a737d"},{tag:[du._A.className,du._A.propertyName],color:"#6f42c1"},{tag:[du._A.variableName,du._A.attributeName,du._A.number,du._A.operator],color:"#005cc5"},{tag:[du._A.keyword,du._A.typeName,du._A.typeOperator,du._A.typeName],color:"#d73a49"},{tag:[du._A.string,du._A.meta,du._A.regexp],color:"#032f62"},{tag:[du._A.name,du._A.quote],color:"#22863a"},{tag:[du._A.heading,du._A.strong],color:"#24292e",fontWeight:"bold"},{tag:[du._A.emphasis],color:"#24292e",fontStyle:"italic"},{tag:[du._A.deleted],color:"#b31d28",backgroundColor:"ffeef0"},{tag:[du._A.atom,du._A.bool,du._A.special(du._A.variableName)],color:"#e36209"},{tag:[du._A.url,du._A.escape,du._A.regexp,du._A.link],color:"#032f62"},{tag:du._A.link,textDecoration:"underline"},{tag:du._A.strikethrough,textDecoration:"line-through"},{tag:du._A.invalid,color:"#cb2431"}],Ub=(e=>{var{theme:t="light",settings:n={},styles:r=[]}=e||{};return ob({theme:t,settings:Dt({},Zb,n),styles:[...jb,...r]})})(),Xb={background:"#0d1117",foreground:"#c9d1d9",caret:"#c9d1d9",selection:"#003d73",selectionMatch:"#003d73",lineHighlight:"#36334280"},Hb=[{tag:[du._A.standard(du._A.tagName),du._A.tagName],color:"#7ee787"},{tag:[du._A.comment,du._A.bracket],color:"#8b949e"},{tag:[du._A.className,du._A.propertyName],color:"#d2a8ff"},{tag:[du._A.variableName,du._A.attributeName,du._A.number,du._A.operator],color:"#79c0ff"},{tag:[du._A.keyword,du._A.typeName,du._A.typeOperator,du._A.typeName],color:"#ff7b72"},{tag:[du._A.string,du._A.meta,du._A.regexp],color:"#a5d6ff"},{tag:[du._A.name,du._A.quote],color:"#7ee787"},{tag:[du._A.heading,du._A.strong],color:"#d2a8ff",fontWeight:"bold"},{tag:[du._A.emphasis],color:"#d2a8ff",fontStyle:"italic"},{tag:[du._A.deleted],color:"#ffdcd7",backgroundColor:"ffeef0"},{tag:[du._A.atom,du._A.bool,du._A.special(du._A.variableName)],color:"#ffab70"},{tag:du._A.link,textDecoration:"underline"},{tag:du._A.strikethrough,textDecoration:"line-through"},{tag:du._A.invalid,color:"#f97583"}],Wb=(e=>{var{theme:t="dark",settings:n={},styles:r=[]}=e||{};return ob({theme:t,settings:Dt({},Xb,n),styles:[...Hb,...r]})})(),qb={background:"#272822",foreground:"#FFFFFF",caret:"#FFFFFF",selection:"#49483E",selectionMatch:"#49483E",gutterBackground:"#272822",gutterForeground:"#FFFFFF70",lineHighlight:"#0000003b"},Yb=[{tag:[du._A.comment,du._A.documentMeta],color:"#8292a2"},{tag:[du._A.number,du._A.bool,du._A.null,du._A.atom],color:"#ae81ff"},{tag:[du._A.attributeValue,du._A.className,du._A.name],color:"#e6db74"},{tag:[du._A.propertyName,du._A.attributeName],color:"#a6e22e"},{tag:[du._A.variableName],color:"#9effff"},{tag:[du._A.squareBracket],color:"#bababa"},{tag:[du._A.string,du._A.special(du._A.brace)],color:"#e6db74"},{tag:[du._A.regexp,du._A.className,du._A.typeName,du._A.definition(du._A.typeName)],color:"#66d9ef"},{tag:[du._A.definition(du._A.variableName),du._A.definition(du._A.propertyName),du._A.function(du._A.variableName)],color:"#fd971f"},{tag:[du._A.keyword,du._A.definitionKeyword,du._A.modifier,du._A.tagName,du._A.angleBracket],color:"#f92672"}],Gb=(e=>{var{theme:t="dark",settings:n={},styles:r=[]}=e||{};return ob({theme:t,settings:Dt({},qb,n),styles:[...Yb,...r]})})(),Vb={background:"#303841",foreground:"#FFFFFF",caret:"#FBAC52",selection:"#4C5964",selectionMatch:"#3A546E",gutterBackground:"#303841",gutterForeground:"#FFFFFF70",lineHighlight:"#00000059"},Kb=[{tag:[du._A.meta,du._A.comment],color:"#A2A9B5"},{tag:[du._A.attributeName,du._A.keyword],color:"#B78FBA"},{tag:du._A.function(du._A.variableName),color:"#5AB0B0"},{tag:[du._A.string,du._A.regexp,du._A.attributeValue],color:"#99C592"},{tag:du._A.operator,color:"#f47954"},{tag:[du._A.tagName,du._A.modifier],color:"#E35F63"},{tag:[du._A.number,du._A.definition(du._A.tagName),du._A.className,du._A.definition(du._A.variableName)],color:"#fbac52"},{tag:[du._A.atom,du._A.bool,du._A.special(du._A.variableName)],color:"#E35F63"},{tag:du._A.variableName,color:"#539ac4"},{tag:[du._A.propertyName,du._A.typeName],color:"#629ccd"},{tag:du._A.propertyName,color:"#36b7b5"}];var Jb=function(e){var{theme:t="dark",settings:n={},styles:r=[]}=e||{};return ob({theme:t,settings:Dt({},Vb,n),styles:[...Kb,...r]})}(),ey={background:"#fff",foreground:"#3D3D3D",selection:"#BBDFFF",selectionMatch:"#BBDFFF",gutterBackground:"#fff",gutterForeground:"#AFAFAF",lineHighlight:"#d5e6ff69"},ty=[{tag:[du._A.comment,du._A.quote],color:"#707F8D"},{tag:[du._A.typeName,du._A.typeOperator],color:"#aa0d91"},{tag:[du._A.keyword],color:"#aa0d91",fontWeight:"bold"},{tag:[du._A.string,du._A.meta],color:"#D23423"},{tag:[du._A.name],color:"#032f62"},{tag:[du._A.typeName],color:"#522BB2"},{tag:[du._A.variableName],color:"#23575C"},{tag:[du._A.definition(du._A.variableName)],color:"#327A9E"},{tag:[du._A.regexp,du._A.link],color:"#0e0eff"}];var ny=function(e){var{theme:t="light",settings:n={},styles:r=[]}=e||{};return ob({theme:t,settings:Dt({},ey,n),styles:[...ty,...r]})}(),ry={background:"#292A30",foreground:"#CECFD0",caret:"#fff",selection:"#727377",selectionMatch:"#727377",lineHighlight:"#ffffff0f"},iy=[{tag:[du._A.comment,du._A.quote],color:"#7F8C98"},{tag:[du._A.keyword],color:"#FF7AB2",fontWeight:"bold"},{tag:[du._A.string,du._A.meta],color:"#FF8170"},{tag:[du._A.typeName],color:"#DABAFF"},{tag:[du._A.definition(du._A.variableName)],color:"#6BDFFF"},{tag:[du._A.name],color:"#6BAA9F"},{tag:[du._A.variableName],color:"#ACF2E4"},{tag:[du._A.regexp,du._A.link],color:"#FF8170"}],oy=(e=>{var{theme:t="dark",settings:n={},styles:r=[]}=e||{};return ob({theme:t,settings:Dt({},ry,n),styles:[...iy,...r]})})();const sy='\n
\u5fae\u4fe1\u516c\u4f17\u53f7 Markdown \u7f16\u8f91\u5668
\n\n\n[](https://jaywcjlove.github.io/#/sponsor)\n[](https://github.com/jaywcjlove/wxmp/actions/workflows/ci.yml)\n\n[](https://jaywcjlove.github.io/wxmp)\n\n\u5fae\u4fe1\u516c\u4f17\u53f7\u6587\u7ae0 Markdown \u5728\u7ebf\u7f16\u8f91\u5668\uff0c\u4f7f\u7528 markdown \u8bed\u6cd5\u521b\u5efa\u4e00\u7bc7\u7b80\u4ecb\u7f8e\u89c2\u5927\u65b9\u7684\u5fae\u4fe1\u516c\u4f17\u53f7\u56fe\u6587\u3002\u7531\u4e8e\u53d1\u7248\u672c\u9ebb\u70e6\uff0c\u548c\u4e00\u4e9b\u529f\u80fd\u65e0\u6cd5\u6269\u5c55\u505c\u6ede\u5f00\u53d1\u4e86\uff0c\u672a\u6765\u4e0d\u518d\u5f00\u53d1 Chrome \u7684\u63d2\u4ef6(\u6682\u5b58\u5728 chrome \u5206\u652f)\uff0c\u901a\u8fc7 web \u7248\u672c\u5b9a\u5236\u66f4\u4e30\u5bcc\u7684\u529f\u80fd\u3002\n\n[](https://github.com/jaywcjlove/wxmp/releases)\n\n## \u529f\u80fd\u7279\u6027\n\n\u5f00\u53d1\u8ba1\u5212\u548c\u4e00\u4e9b\u529f\u80fd\u4ecb\u7ecd\uff0c\u6709\u9700\u6c42\u53ef\u4ee5\u5728 issue \u4e2d\u63d0\uff0c\u4f7f\u5f97\u5de5\u5177\u53d8\u5f97\u66f4\u52a0\u5b8c\u5584\u3002\u4e0b\u9762\u793a\u4f8b\u7528\u4e8e web \u5e94\u7528\u4e2d\u6548\u679c\u5c55\u793a\u3002\n\n- [x] \u652f\u6301 Markdown \u6240\u6709\u57fa\u7840\u8bed\u6cd5\n- [x] \u652f\u6301\u81ea\u5b9a\u4e49 CSS \u6837\u5f0f\n- [x] \u652f\u6301\u4e3b\u9898\u9009\u62e9 & \u7f16\u8f91\u9884\u89c8\u3002\n- [x] \u652f\u6301\u660e\u6697\u4e24\u79cd\u4e3b\u9898\u9884\u89c8\u3002\n- [ ] \u652f\u6301\u4ee3\u7801\u5757\u4e3b\u9898\u6837\u5f0f\u9009\u62e9\u3002\n- [x] \u652f\u6301\u8272\u76d8\u53d6\u8272\uff0c\u5feb\u901f\u66ff\u6362\u6587\u7ae0\u6574\u4f53\u8272\u8c03\n- [x] \u652f\u6301 URL \u53c2\u6570\u52a0\u8f7d Markdown \u5185\u5bb9\u3002\n- [x] \u652f\u6301 URL \u53c2\u6570\u9009\u62e9\u9884\u89c8\u4e3b\u9898\u3002\n- [x] CI \u81ea\u52a8\u751f\u6210 Electron \u684c\u9762\u5e94\u7528\u3002\n- [ ] ~~\u652f\u6301\u5168\u5c40\u5b57\u53f7\u5927\u5c0f\u9009\u62e9\u3002~~\n\n### \u652f\u6301\u4ee3\u7801\u5757\u6837\u5f0f\n\n\u4e0b\u9762\u662f `jsx` \u4ee3\u7801\u5757\u5c55\u793a\u793a\u4f8b\uff0c\u5e76\u9ad8\u4eae\u4ee3\u7801\uff0c\u7528\u4e8e web \u5e94\u7528\u4e2d\u6548\u679c\u5c55\u793a\u3002\n\n```jsx\nfunction Demo() {\n return Hello World!
\n}\n```\n\n\u4e0b\u9762\u662f `css` \u4ee3\u7801\u5757\u5c55\u793a\u793a\u4f8b\uff0c\u5e76\u9ad8\u4eae\u4ee3\u7801\uff0c\u7528\u4e8e web \u5e94\u7528\u4e2d\u6548\u679c\u5c55\u793a\u3002\n\n```css\nli {\n font-size: 16px;\n margin: 0;\n line-height: 26px;\n color: rgb(30 41 59);\n font-family:-apple-system-font,BlinkMacSystemFont, Helvetica Neue, PingFang SC, Hiragino Sans GB , Microsoft YaHei UI , Microsoft YaHei ,Arial,sans-serif;\n}\n```\n\n### \u652f\u6301\u5185\u8054\u4ee3\u7801\n\n> \u7528\u4e8e web \u5e94\u7528\u4e2d\u6548\u679c\u5c55\u793a\u3002\n\nInline Code `{code: 0}`\n\n### \u652f\u6301\u8868\u683c\n\n\u8868\u683c\u65e0\u6cd5\u4f7f\u7528\u81ea\u5b9a\u4e49\u6837\u5f0f\uff0c\u6682\u65f6\u6ca1\u627e\u5230\u89e3\u51b3\u9014\u5f84\n\n| Header 1 | Header 2 |\n| --- | --- |\n| Key 1 | Value 1 |\n| Key 2 | Value 2 |\n| Key 3 | Value 3 |\n\n### \u652f\u6301 GFM \u811a\u6ce8\n\n\u8fd9\u662f\u4e00\u4e2a\u7b80\u5355\u7684 Markdown[^1] \u8bed\u6cd5\u7684\u811a\u6ce8[^2]\u3002 \u9875\u9762\u6700\u540e\u6709\u4e00\u4e9b\u989d\u5916\u7684\u6587\u5b57\u63cf\u8ff0\u3002\u6ce8\u610f\u8fd9\u4e0d\u662f\u5b8c\u6574\u7684\u6ce8\u811a[^3]\u7279\u6027\u3002\n\n[^1]: GitHub \u98ce\u683c\u7684 Markdown \u89c4\u8303 https://github.github.com/gfm/\n[^2]: \u811a\u6ce8 https://github.blog/changelog/2021-09-30-footnotes-now-supported-in-markdown-fields/\n[^3]: \u5fae\u4fe1\u6587\u7ae0\u4e0d\u652f\u6301\u951a\u70b9\u8df3\u8f6c\u548c\u6253\u5f00\u7b2c\u4e09\u65b9 URL \u8d85\u94fe\u63a5\uff0c\u6240\u4ee5\u4e0d\u652f\u6301\u5b8c\u6574\u7684\u6ce8\u811a\u7279\u6027\u3002\n\n### \u652f\u6301\u6ce8\u91ca\n\n```html\n\n \u6c49 \n\n```\n\n\u6c49\u5b57\u6ce8\u97f3\u6548\u679c\uff1a\n\n \u6c49 \n \u5b57 \n \u62fc \n \u97f3 \n \u6ce8 \n \u97f3 \n\n\n### \u652f\u6301\u81ea\u5b9a\u4e49\u6837\u5f0f\n\x3c!--rehype:style=color: red;--\x3e\n\n\u5728 Markdown \u4e2d HTML \u6ce8\u91ca\u4e5f\u53ef\u4ee5\u7528\u5728 markdown \u4e2d\uff0c\u5229\u7528\u8fd9\u4e00\u7279\u70b9\uff0c\u4e3a\u4e00\u4e9b\u5185\u5bb9\u81ea\u5b9a\u4e00\u6837\u5f0f\u3002\u4f7f\u7528 HTML \u6ce8\u91ca `\x3c!--rehype:xxx--\x3e`\x3c!--rehype:style=color: red;background: #ff000033;--\x3e \u8ba9 Markdown \u652f\u6301\u6837\u5f0f\u81ea\u5b9a\u4e49\u3002\n\n```markdown\n## \u5b9a\u4e49\u6807\u9898\u6837\u5f0f\n\x3c!--rehype:style=display: flex; height: 230px; align-items: center; justify-content: center; font-size: 38px;--\x3e\n\n\u652f\u6301\u5bf9\u67d0\u4e9b\u6587\u5b57\u53d8\u66f4\u6837\u5f0f\uff0c\u5982_\u6587\u5b57\u989c\u8272_\x3c!--rehype:style=color: red;--\x3e\uff0c\u6587\u5b57\u989c\u8272\u5c06\u88ab\u8bbe\u7f6e\u4e3a\u7ea2\u8272(red)\u3002\n```\n\n\u26a0\ufe0f \u6ce8\u610f\uff1a\u8fd9\u4e00\u7279\u6027\u53ef\u80fd\u9002\u7528\u4e8e\u6709\u4e00\u5b9a css \u524d\u7aef\u57fa\u7840\u77e5\u8bc6\u7684\u7528\u6237\uff0c\u4e0d\u8fc7\u5b83\u4e5f\u975e\u5e38\u7b80\u5355\uff0c\u4f7f\u7528 `\x3c!--rehype:style=` \u5f00\u59cb\uff0c`--\x3e` \u7ed3\u675f\uff0c\u4e2d\u95f4\u5305\u88f9 css \u6837\u5f0f\uff0c\u5982 `color: red;` \u8bbe\u7f6e\u6587\u5b57\u7ea2\u8272\u3002\n\n\n### \u6807\u8bb0\u5ffd\u7565\u5185\u5bb9\n\n\u6b64\u7279\u6027\u5229\u7528 HTML \u6ce8\u91ca\u5728 markdown \u4e2d\u88ab\u5ffd\u7565\u7684\u7279\u6027\uff0c\u6807\u8bb0\u9700\u8981\u5ffd\u7565\u7684\u5185\u5bb9\uff0c\u6807\u8bb0\u5f00\u59cb `\x3c!--rehype:ignore:start--\x3e`\uff0c\u6807\u8bb0\u7ed3\u675f `\x3c!--rehype:ignore:end--\x3e`\uff0c\u88ab\u6807\u8bb0\u7684\u5185\u5bb9\u5728\u5fae\u4fe1 Markdown \u7f16\u8f91\u5668\u9884\u89c8\u4e2d\u4e0d\u663e\u793a\u3002\u5728\u5176\u5b83\u9884\u89c8\u5de5\u5177\u4e2d\u5c55\u793a\u5185\u5bb9\uff0c\u6bd4\u5982 GitHub \u4e2d\u80fd\u5c55\u793a\u3002\n\n```markdown\n# \u6ce8\u91ca\u5ffd\u7565\n\n\x3c!--rehype:ignore:start--\x3e\u5185\u5bb9\u5728\u5fae\u4fe1 Markdown \u7f16\u8f91\u5668\u9884\u89c8\u4e2d\u4e0d\u663e\u793a\u3002\u5728\u5176\u5b83\u9884\u89c8\u5de5\u5177\u4e2d\u5c55\u793a\u5185\u5bb9\u3002\x3c!--rehype:ignore:end--\x3e\n```\n\n### \u652f\u6301 URL \u53c2\u6570\u52a0\u8f7d Markdown \u5185\u5bb9\n\n```\nhttps://?md=\n```\n\n\u52a0\u8f7d Markdown \u5185\u5bb9\u7684\u793a\u4f8b URL\uff1a\n\n```\nhttps://jaywcjlove.github.io/wxmp/#/?theme=underscore&md=https://raw.githubusercontent.com/jaywcjlove/c-tutorial/master/README.md\n\nMarkdown URL \u5730\u5740: https://raw.githubusercontent.com/jaywcjlove/c-tutorial/master/README.md\n```\n\n## \u4e3b\u9898\u5b9a\u5236\n\n\u5728\u76ee\u5f55 `website/src/themes` \u4e2d\u5b58\u653e\u9ed8\u8ba4\u4e3b\u9898\uff0c\u5728 `website/src/store/context.tsx` \u4e2d\u914d\u7f6e\u4e3b\u9898\uff0c\u4e3b\u9898\u4f7f\u7528 `css` \u5b9a\u4e49\u6837\u5f0f\uff0c\u4e0d\u652f\u6301\u590d\u6742\u7684\u9009\u62e9\u5668\u3002\u63d0\u4f9b\u5728\u7ebf\u4e3b\u9898\u7f16\u8f91\u5668\uff0c\u6b22\u8fce\u4fee\u6539\u5e76 `PR` \u8fdb\u4ed3\u5e93\u4f9b\u5927\u5bb6\u4f7f\u7528\u3002\n\n```css\n/* 1~6 \u6807\u9898\u6837\u5f0f\u5b9a\u4e49 */\nh1 {} h2 {} h3 {} h4 {} h5 {} h6 {}\na { color: red; } /* \u8d85\u94fe\u63a5\u6837\u5f0f\u5b9a\u4e49 */\nstrong {} /* \u52a0\u7c97\u6837\u5f0f\u5b9a\u4e49 */\ndel {} /* \u5220\u9664\u7ebf\u6837\u5f0f\u5b9a\u4e49 */\nem {} /* \u4e0b\u5212\u7ebf\u6837\u5f0f\u5b9a\u4e49 */\nu {} /* \u4e0b\u5212\u7ebf\u6837\u5f0f\u5b9a\u4e49 */\np {} /* \u6bb5\u843d\u6837\u5f0f\u5b9a\u4e49 */\nul {} /* \u65e0\u5e8f\u5217\u8868\u6837\u5f0f\u5b9a\u4e49 */\nol {} /* \u6709\u5e8f\u5217\u8868\u6837\u5f0f\u5b9a\u4e49 */\nli {} /* \u5217\u8868\u6761\u76ee\u6837\u5f0f\u5b9a\u4e49 */\nblockquote {} /* \u5757\u7ea7\u5f15\u7528\u6837\u5f0f\u5b9a\u4e49 */\ntable {}\ntd {}\nth {}\npre {} /* \u6837\u5f0f\u5b9a\u4e49 */\n.code-highlight {} /* \u4ee3\u7801\u5757\u6837\u5f0f\u5b9a\u4e49 */\n.code-line {} /* \u4ee3\u7801\u5757\u884c\u6837\u5f0f\u5b9a\u4e49 */\n.code-spans {} /* \u4ee3\u7801\u5757\u884c\u6837\u5f0f\u5b9a\u4e49 */\n\nsup {} /* GFM \u811a\u6ce8\u6837\u5f0f\u5b9a\u4e49 */\n.footnotes-title {} /* GFM \u811a\u6ce8\uff0c\u53c2\u8003\u6807\u9898\u6837\u5f0f\u5b9a\u4e49 */\n.footnotes-list {} /* GFM \u811a\u6ce8\uff0c\u53c2\u8003\u5217\u8868\u6837\u5f0f\u5b9a\u4e49 */\n\n.image-warpper {} /* \u56fe\u7247\u7236\u8282\u70b9\u6837\u5f0f\u5b9a\u4e49 */\n.image {} /* \u56fe\u7247\u6837\u5f0f\u5b9a\u4e49 */\n\n/* \u90e8\u5206\u4ee3\u7801\u9ad8\u4eae\u6837\u5f0f */\n.comment {}\n.property {}\n.function {}\n.keyword {}\n.punctuation {}\n.unit {}\n.tag {}\n.color {}\n.selector {}\n.quote {}\n.number {}\n.attr-name {}\n.attr-value {}\n```\n\n## \u90e8\u7f72\n\n[](https://hub.docker.com/r/wcjiang/wxmp) [](https://hub.docker.com/r/wcjiang/wxmp) [](https://hub.docker.com/r/wcjiang/wxmp)\n\n\u8f7b\u677e\u901a\u8fc7 docker \u90e8\u7f72\u300a\u5fae\u4fe1\u516c\u4f17\u53f7 Markdown \u7f16\u8f91\u5668\u300b\u7f51\u7ad9\u5e94\u7528\u3002\n\n```bash\ndocker pull wcjiang/wxmp\n# Or\ndocker pull ghcr.io/jaywcjlove/wxmp:latest\n```\n\n```bash\ndocker run --name wxmp --rm -d -p 8113:3000 wcjiang/wxmp:latest\n# Or\ndocker run --name wxmp -itd -p 8113:3000 wcjiang/wxmp:latest\n# Or\ndocker run --name wxmp -itd -p 8113:3000 ghcr.io/jaywcjlove/wxmp:latest\n```\n\n\u5728\u6d4f\u89c8\u5668\u4e2d\u8bbf\u95ee\u4ee5\u4e0b URL\n\n```\nhttp://localhost:96611/\n```\n\n## \u8d21\u732e\u8005\n\n\u4e00\u5982\u65e2\u5f80\uff0c\u611f\u8c22\u6211\u4eec\u51fa\u8272\u7684\u8d21\u732e\u8005\uff01\n\n\n
\n\n\n\u4e0a\u56fe\u8d21\u732e\u8005\u5217\u8868\uff0c\u7531 [action-contributors](https://github.com/jaywcjlove/github-action-contributors)[^4] \u81ea\u52a8\u751f\u6210\u8d21\u732e\u8005\u56fe\u7247\u3002\n\n\n[^4]: Action Contributors https://github.com/jaywcjlove/github-action-contributors\n\n## License\n\n\u6839\u636e MIT \u8bb8\u53ef\u8bc1\u83b7\u5f97\u8bb8\u53ef\u3002\n',ay=sy,ly={default:{label:"\u9ed8\u8ba4\u4e3b\u9898",value:sb},abcdef:{label:"Abcdef Theme",value:pb},androidstudio:{label:"Android Studio Theme",value:Ob},atomone:{label:"Atomone Theme",value:vb},bbedit:{label:"Bbedit Theme",value:Sb},bespin:{label:"Bespin Theme",value:Ab},darcula:{label:"Darcula Theme",value:Pb},dracula:{label:"Dracula Theme",value:Db},duotoneLight:{label:"Duotone Light Theme",value:Mb},duotoneDark:{label:"Duotone Dark Theme",value:Ib},eclipse:{label:"Eclipse Theme",value:zb},githubLight:{label:"Github Light Theme",value:Ub},githubDark:{label:"Github Dark Theme",value:Wb},okaidia:{label:"Okaidia Theme",value:Gb},sublime:{label:"Sublime Theme",value:Jb},xcodeLight:{label:"Xcode Light Theme",value:ny},xcodeDark:{label:"Xcode Dark Theme",value:oy}},cy={default:{label:"\u7fe1\u7fe0\u7eff",value:"a {\n color: #009874;\n text-decoration: none;\n font-size: 14px;\n}\n\nh1 {\n display: table;\n text-align: center;\n color: #3f3f3f;\n line-height: 1.75;\n font-family: -apple-system-font, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB',\n 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif;\n font-size: 18px;\n font-weight: bold;\n margin: 2em auto 1em;\n padding: 0 1em;\n border-bottom: 3px solid #009874;\n margin-top: 0;\n}\n\nh2 {\n display: table;\n text-align: center;\n color: #fff;\n line-height: 1.75;\n font-family: -apple-system-font, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB',\n 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif;\n font-size: 16px;\n font-weight: bold;\n margin: 4em auto 2em;\n padding: 0 0.3em;\n border-radius: 0.3em;\n background: #009874;\n}\n\nh3 {\n text-align: left;\n color: #3f3f3f;\n line-height: 1.2;\n font-family: -apple-system-font, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB',\n 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif;\n font-size: 14px;\n font-weight: bold;\n margin: 2em 8px 0.75em 0;\n padding-left: 8px;\n border-left: 5px solid #009874;\n}\n\nul {\n padding-left: 1.2em;\n}\n\nol {\n padding-left: 1.2em;\n}\n\nli {\n margin: 0;\n line-height: 1.5em;\n font-size: 14px;\n line-height: 1.5em;\n}\n\np {\n font-size: 16px;\n line-height: 1.5em;\n padding: 0.5em 0 !important;\n margin-bottom: 0 !important;\n margin-top: 0 !important;\n}\n\nblockquote {\n text-align: left;\n font-family: -apple-system-font, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB',\n 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif;\n font-size: 14px;\n font-style: normal;\n border-left: none;\n padding: 0.5em 1em;\n border-radius: 4px;\n background: rgba(27, 31, 35, 0.05);\n margin: 1em 0;\n}\n\npre {\n display: block;\n overflow-x: auto;\n padding: 1em;\n color: rgb(51, 51, 51);\n background: rgb(248, 248, 248);\n font-style: normal;\n font-variant-ligatures: normal;\n font-variant-caps: normal;\n font-weight: 400;\n letter-spacing: normal;\n orphans: 2;\n text-indent: 0px;\n text-transform: none;\n widows: 2;\n word-spacing: 0px;\n text-decoration-style: initial;\n text-decoration-color: initial;\n text-align: left;\n line-height: 1.5;\n font-family: -apple-system-font, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB',\n 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif;\n border-radius: 0.3em;\n margin: 0.9rem 0;\n white-space: pre;\n}\n\ntable {\n width: 100% !important;\n border-collapse: collapse;\n line-height: 1.35;\n font-size: 14px;\n}\n\ntd {\n border: 1px solid #ddd;\n padding: 0.25em 0.5em;\n}\n\nth {\n background: rgb(0 0 0 / 5%);\n border: 1px solid #ddd;\n padding: 0.25em 0.5em;\n}\n\n.code-highlight {\n text-align: left;\n line-height: 1.75;\n font-family: Menlo, 'Operator Mono', Consolas, Monaco, monospace;\n font-size: 14px;\n margin: 0px;\n white-space: nowrap;\n}\n\n.code-line {\n display: block;\n line-height: 1.3;\n}\n\n.code-spans {\n text-align: left;\n line-height: 1;\n white-space: initial;\n color: #333;\n background: rgba(27, 31, 35, 0.05);\n padding: 0.1em 0.3em;\n border-radius: 0.3em;\n font-weight: bold;\n font-size: 1em;\n top: -0.1em;\n position: relative;\n}\n\n.footnotes-title {\n display: table;\n font-family: -apple-system-font, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB',\n 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif;\n font-size: 14px;\n font-weight: bold;\n margin: 3em 0 0.6em 0;\n padding-left: 0.2em;\n}\n\n.footnotes-list {\n font-size: 10px;\n font-style: italic;\n line-height: 1.2;\n margin: 0.4rem 0;\n}\n\nfigure {\n margin: 0;\n}\n\n.image-warpper {\n text-align: center;\n margin-bottom: 0rem;\n visibility: visible;\n}\n\n.image {\n display: initial;\n max-width: 100%;\n}\n\n.comment {\n color: #6a737d;\n}\n.property {\n color: #6f42c1;\n}\n.function {\n color: #6f42c1;\n}\n.keyword {\n color: #d73a49;\n}\n.punctuation {\n color: #0550ae;\n}\n.unit {\n color: #0550ae;\n}\n.tag {\n color: #22863a;\n}\n.selector {\n color: #22863a;\n}\n.quote {\n color: #22863a;\n}\n.number {\n color: #005cc5;\n}\n.attr-name {\n color: #005cc5;\n}\n.attr-value {\n color: #005cc5;\n}\n",color:"#009874"},simple:{label:"\u7b80\u6d01\u84dd",value:"a {\n color: #0f4c81;\n text-decoration: none;\n font-size: 14px;\n}\n\nh1 {\n display: table;\n text-align: center;\n color: #3f3f3f;\n line-height: 1.75;\n font-family: -apple-system-font, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB',\n 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif;\n font-size: 18px;\n font-weight: bold;\n margin: 2em auto 1em;\n padding: 0 1em;\n border-bottom: 3px solid #0f4c81;\n margin-top: 0;\n}\n\nh2 {\n display: table;\n text-align: center;\n color: #fff;\n line-height: 1.75;\n font-family: -apple-system-font, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB',\n 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif;\n font-size: 16px;\n font-weight: bold;\n margin: 4em auto 2em;\n padding: 0 0.3em;\n border-radius: 0.3rem;\n background: #0f4c81;\n}\n\nh3 {\n text-align: left;\n color: #3f3f3f;\n line-height: 1.2;\n font-family: -apple-system-font, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB',\n 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif;\n font-size: 14px;\n font-weight: bold;\n margin: 2em 8px 0.75em 0;\n padding-left: 8px;\n border-left: 5px solid #0f4c81;\n}\n\nul {\n padding-left: 1.2em;\n}\n\nol {\n padding-left: 1.2em;\n}\n\nli {\n margin: 0;\n line-height: 1.5em;\n font-size: 14px;\n line-height: 1.5em;\n}\n\np {\n font-size: 16px;\n line-height: 1.5em;\n padding: 0.5em 0 !important;\n margin-bottom: 0 !important;\n margin-top: 0 !important;\n}\n\nblockquote {\n text-align: left;\n font-family: -apple-system-font, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB',\n 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif;\n font-size: 14px;\n font-style: normal;\n border-left: none;\n padding: 0.5em 1em;\n border-radius: 4px;\n background: rgba(27, 31, 35, 0.05);\n margin: 1em 0;\n}\n\npre {\n display: block;\n overflow-x: auto;\n padding: 1em;\n color: rgb(51, 51, 51);\n background: rgb(248, 248, 248);\n font-style: normal;\n font-variant-ligatures: normal;\n font-variant-caps: normal;\n font-weight: 400;\n letter-spacing: normal;\n orphans: 2;\n text-indent: 0px;\n text-transform: none;\n widows: 2;\n word-spacing: 0px;\n text-decoration-style: initial;\n text-decoration-color: initial;\n text-align: left;\n line-height: 1.5;\n font-family: -apple-system-font, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB',\n 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif;\n border-radius: 0.3em;\n margin: 0.9rem 0;\n white-space: pre;\n}\n\ntable {\n width: 100% !important;\n border-collapse: collapse;\n line-height: 1.35;\n font-size: 14px;\n}\n\ntd {\n border: 1px solid #ddd;\n padding: 0.25em 0.5em;\n}\n\nth {\n background: rgb(0 0 0 / 5%);\n border: 1px solid #ddd;\n padding: 0.25em 0.5em;\n}\n\n.code-highlight {\n text-align: left;\n line-height: 1.75;\n font-family: Menlo, 'Operator Mono', Consolas, Monaco, monospace;\n font-size: 14px;\n margin: 0px;\n white-space: nowrap;\n}\n\n.code-line {\n display: block;\n line-height: 1.3;\n}\n\n.code-spans {\n text-align: left;\n line-height: 1;\n white-space: initial;\n color: #0f4c81;\n background: rgba(27, 31, 35, 0.05);\n padding: 0.1em 0.3em;\n border-radius: 0.3em;\n font-weight: bold;\n font-size: 14px;\n top: -0.1em;\n position: relative;\n}\n\n.footnotes-title {\n display: table;\n font-family: -apple-system-font, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB',\n 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif;\n font-size: 14px;\n font-weight: bold;\n margin: 3em 0 0.6em 0;\n padding-left: 0.2em;\n}\n\n.footnotes-list {\n font-size: 10px;\n font-style: italic;\n line-height: 1.2;\n margin: 0.4rem 0;\n}\n\nfigure {\n margin: 0;\n}\n\n.image-warpper {\n text-align: center;\n margin-bottom: 0rem;\n visibility: visible;\n}\n\n.image {\n display: initial;\n max-width: 100%;\n}\n\n.comment {\n color: #6a737d;\n}\n.property {\n color: #6f42c1;\n}\n.function {\n color: #6f42c1;\n}\n.keyword {\n color: #d73a49;\n}\n.punctuation {\n color: #0550ae;\n}\n.unit {\n color: #0550ae;\n}\n.tag {\n color: #22863a;\n}\n.selector {\n color: #22863a;\n}\n.quote {\n color: #22863a;\n}\n.number {\n color: #005cc5;\n}\n.attr-name {\n color: #005cc5;\n}\n.attr-value {\n color: #005cc5;\n}\n",color:"#0f4c81"},underscore:{label:"\u4e0b\u5212\u7ebf\u9ec4",value:"a {\n color: #ffb11b;\n text-decoration: none;\n font-size: 14px;\n}\n\nh1 {\n display: table;\n text-align: center;\n color: #3f3f3f;\n line-height: 1.15;\n font-family: -apple-system-font, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB',\n 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif;\n font-size: 18px;\n font-weight: bold;\n margin: 2em auto 1em;\n padding: 0 1em 0.3em 1em;\n margin-top: 0;\n box-shadow: inset 0 -0.9rem 0 0 #ffb11b;\n}\n\nh2 {\n display: table;\n line-height: 1.35;\n font-family: -apple-system-font, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB',\n 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif;\n font-size: 16px;\n font-weight: bold;\n padding: 0 0.3em;\n margin: 2em 0 1em 0;\n box-shadow: inset 0 -0.7rem 0 0 #ffb11b;\n}\n\nh3 {\n text-align: left;\n color: #3f3f3f;\n line-height: 1.2;\n font-family: -apple-system-font, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB',\n 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif;\n font-size: 14px;\n font-weight: bold;\n margin: 2em 8px 0.75em 0;\n padding-left: 8px;\n border-left: 5px solid #ffb11b;\n}\n\nul {\n padding-left: 1.2em;\n}\n\nol {\n padding-left: 1.2em;\n}\n\nli {\n margin: 0;\n line-height: 1.5em;\n font-size: 14px;\n}\n\np {\n font-size: 16px;\n line-height: 1.5em;\n padding: 0.5em 0 !important;\n margin-bottom: 0 !important;\n margin-top: 0 !important;\n}\n\nblockquote {\n text-align: left;\n line-height: 1.5em;\n font-family: -apple-system-font, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB',\n 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif;\n font-size: 14px;\n font-style: normal;\n border-left: none;\n padding: 0.5em 1em;\n border-radius: 4px;\n background: rgba(27, 31, 35, 0.05);\n margin: 1em 0;\n}\n\npre {\n display: block;\n overflow-x: auto;\n padding: 1em;\n color: rgb(51, 51, 51);\n background: rgb(248, 248, 248);\n font-style: normal;\n font-variant-ligatures: normal;\n font-variant-caps: normal;\n font-weight: 400;\n letter-spacing: normal;\n orphans: 2;\n text-indent: 0px;\n text-transform: none;\n widows: 2;\n word-spacing: 0px;\n text-decoration-style: initial;\n text-decoration-color: initial;\n text-align: left;\n line-height: 1.5;\n font-family: -apple-system-font, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB',\n 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif;\n border-radius: 0.3em;\n margin: 0.9rem 0;\n white-space: pre;\n}\n\ntable {\n width: 100% !important;\n border-collapse: collapse;\n line-height: 1.35;\n font-size: 14px;\n}\n\ntd {\n border: 1px solid #ddd;\n padding: 0.25em 0.5em;\n}\n\nth {\n background: rgb(0 0 0 / 5%);\n border: 1px solid #ddd;\n padding: 0.25em 0.5em;\n}\n\n.code-highlight {\n text-align: left;\n line-height: 1.75;\n font-family: Menlo, 'Operator Mono', Consolas, Monaco, monospace;\n font-size: 14px;\n margin: 0px;\n white-space: nowrap;\n}\n\n.code-line {\n display: block;\n line-height: 1.3;\n}\n\n.code-spans {\n text-align: left;\n line-height: 1;\n white-space: initial;\n color: #333;\n background: rgba(27, 31, 35, 0.05);\n padding: 0.1em 0.3em;\n border-radius: 0.3em;\n font-weight: bold;\n font-size: 14px;\n top: -0.1em;\n position: relative;\n}\n\n.footnotes-title {\n display: table;\n font-family: -apple-system-font, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB',\n 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif;\n font-size: 14px;\n font-weight: bold;\n margin: 3em 0 0.6em 0;\n padding-left: 0.2em;\n}\n\n.footnotes-list {\n font-size: 10px;\n font-style: italic;\n line-height: 1.2;\n margin: 0.4rem 0;\n}\n\nfigure {\n margin: 0;\n}\n\n.image-warpper {\n text-align: center;\n margin-bottom: 0rem;\n visibility: visible;\n}\n\n.image {\n display: initial;\n max-width: 100%;\n}\n\n.comment {\n color: #6a737d;\n}\n.property {\n color: #6f42c1;\n}\n.function {\n color: #6f42c1;\n}\n.keyword {\n color: #d73a49;\n}\n.punctuation {\n color: #0550ae;\n}\n.unit {\n color: #0550ae;\n}\n.tag {\n color: #22863a;\n}\n.selector {\n color: #22863a;\n}\n.quote {\n color: #22863a;\n}\n.number {\n color: #005cc5;\n}\n.attr-name {\n color: #005cc5;\n}\n.attr-value {\n color: #005cc5;\n}\n",color:"#ffb11b"},base:{label:"\u7b80\u6d01",value:"a {\n color: inherit;\n text-decoration: none;\n}\n\nh1 {\n color: inherit;\n font-size: 18px;\n font-weight: bold;\n}\n\nh2 {\n color: inherit;\n margin: 2.5rem 0 1rem 0;\n font-size: 16px;\n font-weight: bold;\n}\n\nh3 {\n color: inherit;\n margin: 1em 0 1em 0;\n font-weight: bold;\n font-size: 14px;\n}\n\nh4 {\n color: inherit;\n margin: 0.6em 0 0.6em 0;\n font-weight: bold;\n font-size: 12px;\n}\n\np {\n color: initial;\n font-size: 16px;\n line-height: 1.5em;\n}\n\nul {\n padding-left: 1.2em;\n}\n\nol {\n padding-left: 1.2em;\n}\n\nli {\n margin: 0;\n font-size: 14px;\n line-height: 1.5em;\n}\n\nblockquote {\n font-style: normal;\n border-left: none;\n margin: 1em 0;\n line-height: 1.5em;\n}\n\npre {\n display: block;\n overflow-x: auto;\n padding: 1em;\n color: rgb(51, 51, 51);\n background: rgb(248, 248, 248);\n font-size: 14px;\n font-weight: 400;\n letter-spacing: normal;\n word-spacing: 0px;\n border-radius: 5px;\n margin: 0.9rem 0;\n white-space: pre;\n}\n\ntable {\n width: 100% !important;\n border-collapse: collapse;\n line-height: 1.35;\n font-size: 14px;\n}\n\ntd {\n border: 1px solid #ddd;\n padding: 0.25em 0.5em;\n}\n\nth {\n background: rgb(0 0 0 / 5%);\n border: 1px solid #ddd;\n padding: 0.25em 0.5em;\n}\n\n.code-highlight {\n text-align: left;\n font-family: Menlo, 'Operator Mono', Consolas, Monaco, monospace;\n font-size: 14px;\n margin: 0px;\n white-space: nowrap;\n}\n\n.code-line {\n display: block;\n line-height: 1.3;\n}\n\n.code-spans {\n text-align: left;\n line-height: 1;\n white-space: initial;\n background: rgba(27, 31, 35, 0.05);\n padding: 0.1em 0.3em;\n border-radius: 0.3em;\n font-weight: bold;\n font-size: 1em;\n top: -0.1em;\n position: relative;\n}\n\n.footnotes-title {\n display: table;\n font-family: -apple-system-font, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB',\n 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif;\n font-size: 14px;\n font-weight: bold;\n margin: 3rem 0 0.6rem 0;\n padding-left: 0.2rem;\n}\n\n.footnotes-list {\n font-size: 10px;\n font-style: italic;\n line-height: 1.2;\n margin: 0.4rem 0;\n}\n\nfigure {\n margin: 0;\n}\n\n.image-warpper {\n text-align: center;\n margin-bottom: 0rem;\n visibility: visible;\n}\n\n.image {\n display: initial;\n max-width: 100%;\n}\n\n.comment {\n color: #6a737d;\n}\n.property {\n color: #6f42c1;\n}\n.function {\n color: #6f42c1;\n}\n.keyword {\n color: #d73a49;\n}\n.punctuation {\n color: #0550ae;\n}\n.unit {\n color: #0550ae;\n}\n.tag {\n color: #22863a;\n}\n.selector {\n color: #22863a;\n}\n.quote {\n color: #22863a;\n}\n.number {\n color: #005cc5;\n}\n.attr-name {\n color: #005cc5;\n}\n.attr-value {\n color: #005cc5;\n}\n",color:""}},uy={underscore:[{select:"a",name:"color",value:"{{color}}"},{select:"h1",name:"box-shadow",value:"inset 0 -0.9rem 0 0 {{color}}"},{select:"h2",name:"box-shadow",value:"inset 0 -0.7rem 0 0 {{color}}"},{select:"h3",name:"border-left",value:"5px solid {{color}}"}],default:[{select:"a",name:"color",value:"{{color}}"},{select:"h1",name:"border-bottom",value:"3px solid {{color}}"},{select:"h2",name:"background",value:"{{color}}"},{select:"h3",name:"border-left",value:"5px solid {{color}}"}],simple:[{select:"a",name:"color",value:"{{color}}"},{select:"h1",name:"border-bottom",value:"3px solid {{color}}"},{select:"h2",name:"background",value:"{{color}}"},{select:"h3",name:"border-left",value:"5px solid {{color}}"},{select:".code-spans",name:"color",value:"{{color}}"}],base:[]},hy=(Object.keys(cy).map((e=>cy[e].color)),K.createContext({preColor:"",setPreColor:()=>{},isLoading:!0,setIsLoading:()=>{},markdown:sy,setMarkdown:()=>{},css:cy.underscore.value,setCss:()=>{},previewTheme:"underscore",setPreviewTheme:()=>{},theme:"default",setTheme:()=>{}})),dy=Lo.div``,fy=Lo.div`
+ position: relative;
+ height: 2.8rem;
+`,py=Lo.header`
+ -webkit-app-region: drag;
+ display: flex;
+ flex-direction: row;
+ justify-content: space-between;
+ background: var(--color-canvas-default);
+ border-bottom: 1px solid var(--color-border-muted);
+ padding: 0.5rem 0.6rem 0.5rem 0.8rem;
+ position: fixed;
+ width: 100%;
+ z-index: 9;
+`,my=Lo.article`
+ display: flex;
+ flex-direction: row;
+ align-items: center;
+ gap: 0.6rem;
+`,gy=Lo(Ns)`
+ max-width: 3.6rem;
+`,Oy=Lo.h1`
+ font-size: 1rem;
+ margin: 0;
+ display: flex;
+ align-items: center;
+ user-select: none;
+ sup {
+ color: var(--color-fg-subtle);
+ margin-left: 0.4rem;
+ background-color: var(--color-border-muted);
+ border-radius: 0.1rem;
+ padding: 0 0.2rem 0 0.1rem;
+ font-weight: normal;
+ font-size: 0.7rem;
+ letter-spacing: -0.1rem;
+ }
+`,by=Lo.section`
+ display: flex;
+ align-items: center;
+ gap: 0.5rem;
+ dark-mode {
+ font-size: 1.05rem;
+ display: block;
+ line-height: 12px;
+ margin-left: 0.6rem;
+ }
+ a svg {
+ display: block;
+ }
+ a {
+ text-decoration: none;
+ color: var(--color-theme-text);
+ padding: 0.1rem 0.3rem;
+ transition: all 0.3s;
+ font-size: 0.9rem;
+ border-radius: 0.2rem;
+ &.active {
+ background-color: var(--color-accent-fg);
+ box-shadow: inset 0 -0.3rem 0 var(--color-accent-fg);
+ color: #fff;
+ }
+ &:hover:not(.active):not(:last-child) {
+ background-color: var(--color-accent-fg);
+ color: #fff;
+ border-radius: 0.2rem;
+ }
+ }
+`;function yy(){const{isLoading:e}=(0,K.useContext)(hy);return(0,Qt.jsxs)(dy,{className:"wmde-markdown-color",children:[(0,Qt.jsx)(fy,{children:(0,Qt.jsxs)(py,{className:"header",children:[(0,Qt.jsxs)(my,{className:"logo",children:[(0,Qt.jsx)(gy,{width:28,height:28}),(0,Qt.jsxs)(Oy,{children:["\u5fae\u4fe1\u516c\u4f17\u53f7\u6392\u7248\u7f16\u8f91\u5668",(0,Qt.jsxs)("sup",{children:[" v","2.3.3"," "]})]}),e&&(0,Qt.jsx)(Ys,{})]}),(0,Qt.jsxs)(by,{children:[(0,Qt.jsx)(Et,{to:"/",children:"\u9996\u9875"}),(0,Qt.jsx)(Et,{to:"/editor/theme",children:"\u7f16\u8f91\u4e3b\u9898"}),(0,Qt.jsx)(Et,{to:"/doc",children:"\u6587\u6863"}),(0,Qt.jsx)("dark-mode",{permanent:!0,dark:"Dark",light:"Light"}),(0,Qt.jsx)("a",{href:"https://github.com/jaywcjlove/wxmp",target:"__blank",children:(0,Qt.jsx)(Ls,{width:23,height:23})})]})]})}),(0,Qt.jsx)(ht,{})]})}const vy=1,ky=2,xy=3,Sy=4,wy=5,Ty=6,Ay=7,Ey=8,Cy=9,Py=10,_y=11,Ry=12,Dy=13,Ny=14,Qy=15,My=16,$y=17,Ly=18,Iy=19,Fy=20,By=21,zy=22,Zy=23,jy=24,Uy=25,Xy=0;function Hy(e){return e>=48&&e<=57}function Wy(e){return Hy(e)||e>=65&&e<=70||e>=97&&e<=102}function qy(e){return e>=65&&e<=90}function Yy(e){return function(e){return qy(e)||function(e){return e>=97&&e<=122}(e)}(e)||function(e){return e>=128}(e)||95===e}function Gy(e){return Yy(e)||Hy(e)||45===e}function Vy(e){return e>=0&&e<=8||11===e||e>=14&&e<=31||127===e}function Ky(e){return 10===e||13===e||12===e}function Jy(e){return Ky(e)||32===e||9===e}function ev(e,t){return 92===e&&(!Ky(t)&&t!==Xy)}function tv(e,t,n){return 45===e?Yy(t)||45===t||ev(t,n):!!Yy(e)||92===e&&ev(e,t)}function nv(e,t,n){return 43===e||45===e?Hy(t)?2:46===t&&Hy(n)?3:0:46===e?Hy(t)?2:0:Hy(e)?1:0}function rv(e){return 65279===e||65534===e?1:0}const iv=new Array(128),ov=130,sv=131,av=132,lv=133;for(let U_=0;U_e.length)return!1;for(let i=t;i=55296&&t<=57343||t>1114111)&&(t=65533),String.fromCodePoint(t)}const kv=["EOF-token","ident-token","function-token","at-keyword-token","hash-token","string-token","bad-string-token","url-token","bad-url-token","delim-token","number-token","percentage-token","dimension-token","whitespace-token","CDO-token","CDC-token","colon-token","semicolon-token","comma-token","[-token","]-token","(-token",")-token","{-token","}-token"],xv=16384;function Sv(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;return null===e||e.length0?rv(t.charCodeAt(0)):0,i=Sv(e.lines,n),o=Sv(e.columns,n);let s=e.startLine,a=e.startColumn;for(let l=r;l1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;this.source=e,this.startOffset=t,this.startLine=n,this.startColumn=r,this.computed=!1}getLocation(e,t){return this.computed||wv(this),{source:t,offset:this.startOffset+e,line:this.lines[e],column:this.columns[e]}}getLocationRange(e,t,n){return this.computed||wv(this),{source:n,start:{offset:this.startOffset+e,line:this.lines[e],column:this.columns[e]},end:{offset:this.startOffset+t,line:this.lines[t],column:this.columns[t]}}}}const Av=16777215,Ev=24,Cv=new Map([[ky,zy],[By,zy],[Iy,Fy],[Zy,jy]]);class Pv{constructor(e,t){this.setSource(e,t)}reset(){this.eof=!1,this.tokenIndex=-1,this.tokenType=0,this.tokenStart=this.firstCharOffset,this.tokenEnd=this.firstCharOffset}setSource(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{};e=String(e||"");const n=e.length,r=Sv(this.offsetAndType,e.length+1),i=Sv(this.balance,e.length+1);let o=0,s=0,a=0,l=-1;for(this.offsetAndType=null,this.balance=null,t(e,((e,t,c)=>{switch(e){default:i[o]=n;break;case s:{let e=a&Av;for(a=i[e],s=a>>Ev,i[o]=e,i[e++]=o;e>Ev:0}lookupOffset(e){return(e+=this.tokenIndex)0?e>Ev,this.tokenEnd=t&Av):(this.tokenIndex=this.tokenCount,this.next())}next(){let e=this.tokenIndex+1;e>Ev,this.tokenEnd=e&Av):(this.eof=!0,this.tokenIndex=this.tokenCount,this.tokenType=0,this.tokenStart=this.tokenEnd=this.source.length)}skipSC(){for(;this.tokenType===Dy||this.tokenType===Uy;)this.next()}skipUntilBalanced(e,t){let n,r,i=e;e:for(;i0?this.offsetAndType[i-1]&Av:this.firstCharOffset,t(this.source.charCodeAt(r))){case 1:break e;case 2:i++;break e;default:this.balance[n]===i&&(i=n)}this.skip(i-this.tokenIndex)}forEachToken(e){for(let t=0,n=this.firstCharOffset;t>Ev,r,o,t)}}dump(){const e=new Array(this.tokenCount);return this.forEachToken(((t,n,r,i)=>{e[i]={idx:i,type:kv[t],chunk:this.source.substring(n,r),balance:this.balance[i]}})),e}}function _v(e,t){function n(t){return t=e.length?void(c1&&void 0!==arguments[1]?arguments[1]:this;const n=this.allocateCursor(null,this.head);for(;null!==n.next;){const r=n.next;n.next=r.next,e.call(t,r.data,r,this)}this.releaseCursor()}forEachRight(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this;const n=this.allocateCursor(this.tail,null);for(;null!==n.prev;){const r=n.prev;n.prev=r.prev,e.call(t,r.data,r,this)}this.releaseCursor()}reduce(e,t){let n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this,i=this.allocateCursor(null,this.head),o=t;for(;null!==i.next;)n=i.next,i.next=n.next,o=e.call(r,o,n.data,n,this);return this.releaseCursor(),o}reduceRight(e,t){let n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this,i=this.allocateCursor(this.tail,null),o=t;for(;null!==i.prev;)n=i.prev,i.prev=n.prev,o=e.call(r,o,n.data,n,this);return this.releaseCursor(),o}some(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this;for(let n=this.head;null!==n;n=n.next)if(e.call(t,n.data,n,this))return!0;return!1}map(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this;const n=new Dv;for(let r=this.head;null!==r;r=r.next)n.appendData(e.call(t,r.data,r,this));return n}filter(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this;const n=new Dv;for(let r=this.head;null!==r;r=r.next)e.call(t,r.data,r,this)&&n.appendData(r.data);return n}nextUntil(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this;if(null===e)return;const r=this.allocateCursor(null,e);for(;null!==r.next;){const e=r.next;if(r.next=e.next,t.call(n,e.data,e,this))break}this.releaseCursor()}prevUntil(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this;if(null===e)return;const r=this.allocateCursor(e,null);for(;null!==r.prev;){const e=r.prev;if(r.prev=e.prev,t.call(n,e.data,e,this))break}this.releaseCursor()}clear(){this.head=null,this.tail=null}copy(){const e=new Dv;for(let t of this)e.appendData(t);return e}prepend(e){return this.updateCursors(null,e,this.head,e),null!==this.head?(this.head.prev=e,e.next=this.head):this.tail=e,this.head=e,this}prependData(e){return this.prepend(Dv.createItem(e))}append(e){return this.insert(e)}appendData(e){return this.insert(Dv.createItem(e))}insert(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(null!==t)if(this.updateCursors(t.prev,e,t,e),null===t.prev){if(this.head!==t)throw new Error("before doesn't belong to list");this.head=e,t.prev=e,e.next=t,this.updateCursors(null,e)}else t.prev.next=e,e.prev=t.prev,t.prev=e,e.next=t;else this.updateCursors(this.tail,e,null,e),null!==this.tail?(this.tail.next=e,e.prev=this.tail):this.head=e,this.tail=e;return this}insertData(e,t){return this.insert(Dv.createItem(e),t)}remove(e){if(this.updateCursors(e,e.prev,e,e.next),null!==e.prev)e.prev.next=e.next;else{if(this.head!==e)throw new Error("item doesn't belong to list");this.head=e.next}if(null!==e.next)e.next.prev=e.prev;else{if(this.tail!==e)throw new Error("item doesn't belong to list");this.tail=e.prev}return e.prev=null,e.next=null,e}push(e){this.insert(Dv.createItem(e))}pop(){return null!==this.tail?this.remove(this.tail):null}unshift(e){this.prepend(Dv.createItem(e))}shift(){return null!==this.head?this.remove(this.head):null}prependList(e){return this.insertList(e,this.head)}appendList(e){return this.insertList(e)}insertList(e,t){return null===e.head||(void 0!==t&&null!==t?(this.updateCursors(t.prev,e.tail,t,e.head),null!==t.prev?(t.prev.next=e.head,e.head.prev=t.prev):this.head=e.head,t.prev=e.tail,e.tail.next=t):(this.updateCursors(this.tail,e.tail,null,e.head),null!==this.tail?(this.tail.next=e.head,e.head.prev=this.tail):this.head=e.head,this.tail=e.tail),e.head=null,e.tail=null),this}replace(e,t){"head"in t?this.insertList(t,e):this.insert(t,e),this.remove(e)}}function Nv(e,t){const n=Object.create(SyntaxError.prototype),r=new Error;return Object.assign(n,{name:e,message:t,get stack(){return(r.stack||"").replace(/^(.+\n){1,3}/,`${e}: ${t}\n`)}})}const Qv=100,Mv=60,$v=" ";function Lv(e,t){let{source:n,line:r,column:i}=e;function o(e,t){return s.slice(e,t).map(((t,n)=>String(e+n+1).padStart(c)+" |"+t)).join("\n")}const s=n.split(/\r\n?|\n|\f/),a=Math.max(1,r-t)-1,l=Math.min(r+t,s.length+1),c=Math.max(4,String(l).length)+1;let u=0;i+=($v.length-1)*(s[r-1].substr(0,i-1).match(/\t/g)||[]).length,i>Qv&&(u=i-Mv+3,i=Mv-2);for(let h=a;h<=l;h++)h>=0&&h0&&s[h].length>u?"\u2026":"")+s[h].substr(u,Qv-2)+(s[h].length>u+Qv-1?"\u2026":""));return[o(a,r),new Array(i+c+2).join("-")+"^",o(r,l)].filter(Boolean).join("\n")}function Iv(e,t,n,r,i){return Object.assign(Nv("SyntaxError",e),{source:t,offset:n,line:r,column:i,sourceFragment:e=>Lv({source:t,line:r,column:i},isNaN(e)?0:e),get formattedMessage(){return`Parse error: ${e}\n`+Lv({source:t,line:r,column:i},2)}})}function Fv(e){const t=this.createList();let n=!1;const r={recognizer:e};for(;!this.eof;){switch(this.tokenType){case Uy:this.next();continue;case Dy:n=!0,this.next();continue}let i=e.getNode.call(this,r);if(void 0===i)break;n&&(e.onWhiteSpace&&e.onWhiteSpace.call(this,i,t,r),n=!1),t.push(i)}return n&&e.onWhiteSpace&&e.onWhiteSpace.call(this,null,t,r),t}const Bv=()=>{},zv=33,Zv=35,jv=59,Uv=123,Xv=0;function Hv(e){return function(){return this[e]()}}function Wv(e){const t=Object.create(null);for(const n in e){const r=e[n],i=r.parse||r;i&&(t[n]=i)}return t}function qv(e){let t="",n="",r=!1,i=Bv,o=!1;const s=new Tv,a=Object.assign(new Pv,function(e){const t={context:Object.create(null),scope:Object.assign(Object.create(null),e.scope),atrule:Wv(e.atrule),pseudo:Wv(e.pseudo),node:Wv(e.node)};for(const n in e.parseContext)switch(typeof e.parseContext[n]){case"function":t.context[n]=e.parseContext[n];break;case"string":t.context[n]=Hv(e.parseContext[n])}return{config:t,...t,...t.node}}(e||{}),{parseAtrulePrelude:!0,parseRulePrelude:!0,parseValue:!0,parseCustomProperty:!1,readSequence:Fv,consumeUntilBalanceEnd:()=>0,consumeUntilLeftCurlyBracket:e=>e===Uv?1:0,consumeUntilLeftCurlyBracketOrSemicolon:e=>e===Uv||e===jv?1:0,consumeUntilExclamationMarkOrSemicolon:e=>e===zv||e===jv?1:0,consumeUntilSemicolonIncluded:e=>e===jv?2:0,createList:()=>new Dv,createSingleNodeList:e=>(new Dv).appendData(e),getFirstListNode:e=>e&&e.first,getLastListNode:e=>e&&e.last,parseWithFallback(e,t){const n=this.tokenIndex;try{return e.call(this)}catch(j_){if(o)throw j_;const r=t.call(this,n);return o=!0,i(j_,r),o=!1,r}},lookupNonWSType(e){let t;do{if(t=this.lookupType(e++),t!==Dy)return t}while(t!==Xv);return Xv},charCodeAt:e=>e>=0&&et.substring(e,n),substrToCursor(e){return this.source.substring(e,this.tokenStart)},cmpChar:(e,n)=>dv(t,e,n),cmpStr:(e,n,r)=>fv(t,e,n,r),consume(e){const t=this.tokenStart;return this.eat(e),this.substrToCursor(t)},consumeFunctionName(){const e=t.substring(this.tokenStart,this.tokenEnd-1);return this.eat(ky),e},consumeNumber(e){const n=t.substring(this.tokenStart,bv(t,this.tokenStart));return this.eat(e),n},eat(e){if(this.tokenType!==e){const t=kv[e].slice(0,-6).replace(/-/g," ").replace(/^./,(e=>e.toUpperCase()));let n=`${/[[\](){}]/.test(t)?`"${t}"`:t} is expected`,r=this.tokenStart;switch(e){case vy:this.tokenType===ky||this.tokenType===Ay?(r=this.tokenEnd-1,n="Identifier is expected but function found"):n="Identifier is expected";break;case Sy:this.isDelim(Zv)&&(this.next(),r++,n="Name is expected");break;case _y:this.tokenType===Py&&(r=this.tokenEnd,n="Percent sign is expected")}this.error(n,r)}this.next()},eatIdent(e){this.tokenType===vy&&!1!==this.lookupValue(0,e)||this.error(`Identifier "${e}" is expected`),this.next()},eatDelim(e){this.isDelim(e)||this.error(`Delim "${String.fromCharCode(e)}" is expected`),this.next()},getLocation:(e,t)=>r?s.getLocationRange(e,t,n):null,getLocationFromList(e){if(r){const t=this.getFirstListNode(e),r=this.getLastListNode(e);return s.getLocationRange(null!==t?t.loc.start.offset-s.startOffset:this.tokenStart,null!==r?r.loc.end.offset-s.startOffset:this.tokenStart,n)}return null},error(e,n){const r="undefined"!==typeof n&&n=0&&Jy(e.charCodeAt(t));t--);return t+1}(t,t.length-1)):s.getLocation(this.tokenStart);throw new Iv(e||"Unexpected input",t,r.offset,r.line,r.column)}});return Object.assign((function(e,l){t=e,l=l||{},a.setSource(t,_v),s.setSource(t,l.offset,l.line,l.column),n=l.filename||"",r=Boolean(l.positions),i="function"===typeof l.onParseError?l.onParseError:Bv,o=!1,a.parseAtrulePrelude=!("parseAtrulePrelude"in l)||Boolean(l.parseAtrulePrelude),a.parseRulePrelude=!("parseRulePrelude"in l)||Boolean(l.parseRulePrelude),a.parseValue=!("parseValue"in l)||Boolean(l.parseValue),a.parseCustomProperty="parseCustomProperty"in l&&Boolean(l.parseCustomProperty);const{context:c="default",onComment:u}=l;if(c in a.context===!1)throw new Error("Unknown context `"+c+"`");"function"===typeof u&&a.forEachToken(((e,n,r)=>{if(e===Uy){const e=a.getLocation(n,r),i=fv(t,r-2,r,"*/")?t.slice(n+2,r-2):t.slice(n+2,r);u(i,e)}}));const h=a.context[c].call(a,l);return a.eof||a.error(),h}),{SyntaxError:Iv,config:a.config})}var Yv=n(7428);const Gv=new Set(["Atrule","Selector","Declaration"]);const Vv=(e,t)=>{if(e===Cy&&(e=t),"string"===typeof e){const t=e.charCodeAt(0);return t>127?32768:t<<8}return e},Kv=[[vy,vy],[vy,ky],[vy,Ay],[vy,Ey],[vy,"-"],[vy,Py],[vy,_y],[vy,Ry],[vy,Qy],[vy,By],[xy,vy],[xy,ky],[xy,Ay],[xy,Ey],[xy,"-"],[xy,Py],[xy,_y],[xy,Ry],[xy,Qy],[Sy,vy],[Sy,ky],[Sy,Ay],[Sy,Ey],[Sy,"-"],[Sy,Py],[Sy,_y],[Sy,Ry],[Sy,Qy],[Ry,vy],[Ry,ky],[Ry,Ay],[Ry,Ey],[Ry,"-"],[Ry,Py],[Ry,_y],[Ry,Ry],[Ry,Qy],["#",vy],["#",ky],["#",Ay],["#",Ey],["#","-"],["#",Py],["#",_y],["#",Ry],["#",Qy],["-",vy],["-",ky],["-",Ay],["-",Ey],["-","-"],["-",Py],["-",_y],["-",Ry],["-",Qy],[Py,vy],[Py,ky],[Py,Ay],[Py,Ey],[Py,Py],[Py,_y],[Py,Ry],[Py,"%"],[Py,Qy],["@",vy],["@",ky],["@",Ay],["@",Ey],["@","-"],["@",Qy],[".",Py],[".",_y],[".",Ry],["+",Py],["+",_y],["+",Ry],["/","*"]],Jv=Kv.concat([[vy,Sy],[Ry,Sy],[Sy,Sy],[xy,By],[xy,wy],[xy,My],[_y,_y],[_y,Ry],[_y,ky],[_y,"-"],[zy,vy],[zy,ky],[zy,_y],[zy,Ry],[zy,Sy],[zy,"-"]]);function ek(e){const t=new Set(e.map((e=>{let[t,n]=e;return Vv(t)<<16|Vv(n)})));return function(e,n,r){const i=Vv(n,r),o=r.charCodeAt(0);return(45===o&&n!==vy&&n!==ky&&n!==Qy||43===o?t.has(e<<16|o<<8):t.has(e<<16|i))&&this.emit(" ",Dy,!0),i}}const tk=ek(Kv),nk=ek(Jv),rk=92;function ik(e,t){if("function"!==typeof t)e.children.forEach(this.node,this);else{let n=null;e.children.forEach((e=>{null!==n&&t.call(this,n),this.node(e),n=e}))}}function ok(e){_v(e,((t,n,r)=>{this.token(t,e.slice(n,r))}))}function sk(e){const t=new Map;for(let n in e.node){const r=e.node[n];"function"===typeof(r.generate||r)&&t.set(n,r.generate||r)}return function(e,n){let r="",o=0,s={node(e){if(!t.has(e.type))throw new Error("Unknown node type: "+e.type);t.get(e.type).call(a,e)},tokenBefore:nk,token(e,t){o=this.tokenBefore(o,e,t),this.emit(t,e,!1),e===Cy&&t.charCodeAt(0)===rk&&this.emit("\n",Dy,!0)},emit(e){r+=e},result:()=>r};n&&("function"===typeof n.decorator&&(s=n.decorator(s)),n.sourceMap&&(s=function(e){const t=new Yv.x,n={line:1,column:0},r={line:0,column:0},i={line:1,column:0},o={generated:i};let s=1,a=0,l=!1;const c=e.node;e.node=function(e){if(e.loc&&e.loc.start&&Gv.has(e.type)){const c=e.loc.start.line,u=e.loc.start.column-1;r.line===c&&r.column===u||(r.line=c,r.column=u,n.line=s,n.column=a,l&&(l=!1,n.line===i.line&&n.column===i.column||t.addMapping(o)),l=!0,t.addMapping({source:e.loc.source,original:r,generated:n}))}c.call(this,e),l&&Gv.has(e.type)&&(i.line=s,i.column=a)};const u=e.emit;e.emit=function(e,t,n){for(let r=0;rs.node(e),children:ik,token:(e,t)=>s.token(e,t),tokenize:ok};return s.node(e),s.result()}}const{hasOwnProperty:ak}=Object.prototype,lk=function(){};function ck(e){return"function"===typeof e?e:lk}function uk(e,t){return function(n,r,i){n.type===t&&e.call(this,n,r,i)}}function hk(e,t){const n=t.structure,r=[];for(const i in n){if(!1===ak.call(n,i))continue;let e=n[i];const t={name:i,type:!1,nullable:!1};Array.isArray(e)||(e=[e]);for(const n of e)null===n?t.nullable=!0:"string"===typeof n?t.type="node":Array.isArray(n)&&(t.type="list");t.type&&r.push(t)}return r.length?{context:t.walkContext,fields:r}:null}function dk(e,t){const n=e.fields.slice(),r=e.context,i="string"===typeof r;return t&&n.reverse(),function(e,o,s,a){let l;i&&(l=o[r],o[r]=e);for(const r of n){const n=e[r.name];if(!r.nullable||n)if("list"===r.type){if(t?n.reduceRight(a,!1):n.reduce(a,!1))return!0}else if(s(n))return!0}i&&(o[r]=l)}}function fk(e){let{StyleSheet:t,Atrule:n,Rule:r,Block:i,DeclarationList:o}=e;return{Atrule:{StyleSheet:t,Atrule:n,Rule:r,Block:i},Rule:{StyleSheet:t,Atrule:n,Rule:r,Block:i},Declaration:{StyleSheet:t,Atrule:n,Rule:r,Block:i,DeclarationList:o}}}function pk(e){const t=function(e){const t={};for(const n in e.node)if(ak.call(e.node,n)){const r=e.node[n];if(!r.structure)throw new Error("Missed `structure` field in `"+n+"` node type definition");t[n]=hk(0,r)}return t}(e),n={},r={},i=Symbol("break-walk"),o=Symbol("skip-node");for(const c in t)ak.call(t,c)&&null!==t[c]&&(n[c]=dk(t[c],!1),r[c]=dk(t[c],!0));const s=fk(n),a=fk(r),l=function(e,l){function c(e,t,n){const r=u.call(p,e,t,n);return r===i||r!==o&&(!(!d.hasOwnProperty(e.type)||!d[e.type](e,p,c,f))||h.call(p,e,t,n)===i)}let u=lk,h=lk,d=n,f=(e,t,n,r)=>e||c(t,n,r);const p={break:i,skip:o,root:e,stylesheet:null,atrule:null,atrulePrelude:null,rule:null,selector:null,block:null,declaration:null,function:null};if("function"===typeof l)u=l;else if(l&&(u=ck(l.enter),h=ck(l.leave),l.reverse&&(d=r),l.visit)){if(s.hasOwnProperty(l.visit))d=l.reverse?a[l.visit]:s[l.visit];else if(!t.hasOwnProperty(l.visit))throw new Error("Bad value `"+l.visit+"` for `visit` option (should be: "+Object.keys(t).sort().join(", ")+")");u=uk(u,l.visit),h=uk(h,l.visit)}if(u===lk&&h===lk)throw new Error("Neither `enter` nor `leave` walker handler is set or both aren't a function");c(e)};return l.break=i,l.skip=o,l.find=function(e,t){let n=null;return l(e,(function(e,r,o){if(t.call(this,e,r,o))return n=e,i})),n},l.findLast=function(e,t){let n=null;return l(e,{reverse:!0,enter(e,r,o){if(t.call(this,e,r,o))return n=e,i}}),n},l.findAll=function(e,t){const n=[];return l(e,(function(e,r,i){t.call(this,e,r,i)&&n.push(e)})),n},l}function mk(e){return e}function gk(e,t,n,r){let i;switch(e.type){case"Group":i=function(e,t,n,r){const i=" "===e.combinator||r?e.combinator:" "+e.combinator+" ",o=e.terms.map((e=>gk(e,t,n,r))).join(i);return e.explicit||n?(r||","===o[0]?"[":"[ ")+o+(r?"]":" ]"):o}(e,t,n,r)+(e.disallowEmpty?"!":"");break;case"Multiplier":return gk(e.term,t,n,r)+t(function(e){const{min:t,max:n,comma:r}=e;return 0===t&&0===n?r?"#?":"*":0===t&&1===n?"?":1===t&&0===n?r?"#":"+":1===t&&1===n?"":(r?"#":"")+(t===n?"{"+t+"}":"{"+t+","+(0!==n?n:"")+"}")}(e),e);case"Type":i="<"+e.name+(e.opts?t(function(e){if("Range"===e.type)return" ["+(null===e.min?"-\u221e":e.min)+","+(null===e.max?"\u221e":e.max)+"]";throw new Error("Unknown node type `"+e.type+"`")}(e.opts),e.opts):"")+">";break;case"Property":i="<'"+e.name+"'>";break;case"Keyword":i=e.name;break;case"AtKeyword":i="@"+e.name;break;case"Function":i=e.name+"(";break;case"String":case"Token":i=e.value;break;case"Comma":i=",";break;default:throw new Error("Unknown node type `"+e.type+"`")}return t(i,e)}function Ok(e,t){let n=mk,r=!1,i=!1;return"function"===typeof t?n=t:t&&(r=Boolean(t.forceBraces),i=Boolean(t.compact),"function"===typeof t.decorate&&(n=t.decorate)),gk(e,n,r,i)}const bk={offset:0,line:1,column:1};function yk(e,t){const n=e&&e.loc&&e.loc[t];return n?"line"in n?vk(n):n:null}function vk(e,t){let{offset:n,line:r,column:i}=e;const o={offset:n,line:r,column:i};if(t){const e=t.split(/\n|\r\n?|\f/);o.offset+=t.length,o.line+=e.length-1,o.column=1===e.length?o.column+t.length:e.pop().length+1}return o}const kk=function(e,t){const n=Nv("SyntaxReferenceError",e+(t?" `"+t+"`":""));return n.reference=t,n},xk=function(e,t,n,r){const i=Nv("SyntaxMatchError",e),{css:o,mismatchOffset:s,mismatchLength:a,start:l,end:c}=function(e,t){const n=e.tokens,r=e.longestMatch,i=r1?(s=yk(o||t,"end")||vk(bk,h),a=vk(s)):(s=yk(o,"start")||vk(yk(t,"start")||bk,h.slice(0,l)),a=yk(o,"end")||vk(s,h.substr(l,c))),{css:h,mismatchOffset:l,mismatchLength:c,start:s,end:a}}(r,n);return i.rawMessage=e,i.syntax=t?Ok(t):"",i.css=o,i.mismatchOffset=s,i.mismatchLength=a,i.message=e+"\n syntax: "+i.syntax+"\n value: "+(o||"")+"\n --------"+new Array(i.mismatchOffset+1).join("-")+"^",Object.assign(i,l),i.loc={source:n&&n.loc&&n.loc.source||"",start:l,end:c},i},Sk=new Map,wk=new Map,Tk=45,Ak=function(e){if(Sk.has(e))return Sk.get(e);const t=e.toLowerCase();let n=Sk.get(t);if(void 0===n){const e=Ck(t,0),r=e?"":Pk(t,0);n=Object.freeze({basename:t.substr(r.length),name:t,prefix:r,vendor:r,custom:e})}return Sk.set(e,n),n},Ek=function(e){if(wk.has(e))return wk.get(e);let t=e,n=e[0];"/"===n?n="/"===e[1]?"//":"/":"_"!==n&&"*"!==n&&"$"!==n&&"#"!==n&&"+"!==n&&"&"!==n&&(n="");const r=Ck(t,n.length);if(!r&&(t=t.toLowerCase(),wk.has(t))){const n=wk.get(t);return wk.set(e,n),n}const i=r?"":Pk(t,n.length),o=t.substr(0,n.length+i.length),s=Object.freeze({basename:t.substr(o.length),name:t.substr(n.length),hack:n,vendor:i,prefix:o,custom:r});return wk.set(e,s),s};function Ck(e,t){return t=t||0,e.length-t>=2&&e.charCodeAt(t)===Tk&&e.charCodeAt(t+1)===Tk}function Pk(e,t){if(t=t||0,e.length-t>=3&&e.charCodeAt(t)===Tk&&e.charCodeAt(t+1)!==Tk){const n=e.indexOf("-",t+2);if(-1!==n)return e.substring(t,n+1)}return""}const _k=["initial","inherit","unset","revert","revert-layer"],Rk=43,Dk=45,Nk=!0;function Qk(e,t){return null!==e&&e.type===Cy&&e.value.charCodeAt(0)===t}function Mk(e,t,n){for(;null!==e&&(e.type===Dy||e.type===Uy);)e=n(++t);return t}function $k(e,t,n,r){if(!e)return 0;const i=e.value.charCodeAt(t);if(i===Rk||i===Dk){if(n)return 0;t++}for(;t6)return 0}return r}function Zk(e,t,n){if(!e)return 0;for(;Bk(n(t),Fk);){if(++e>6)return 0;t++}return t}const jk=["calc(","-moz-calc(","-webkit-calc("],Uk=new Map([[ky,zy],[By,zy],[Iy,Fy],[Zy,jy]]);function Xk(e,t){return te.max&&"string"!==typeof e.max)return!0}return!1}function Gk(e){return function(t,n,r){return null===t?0:t.type===ky&&Wk(t.value,jk)?function(e,t){let n=0,r=[],i=0;e:do{switch(e.type){case jy:case zy:case Fy:if(e.type!==n)break e;if(n=r.pop(),0===r.length){i++;break e}break;case ky:case By:case Iy:case Zy:r.push(n),n=Uk.get(e.type)}i++}while(e=t(i));return i}(t,n):e(t,n,r)}}function Vk(e){return function(t){return null===t||t.type!==e?0:1}}function Kk(e){return e&&(e=new Set(e)),function(t,n,r){if(null===t||t.type!==Ry)return 0;const i=bv(t.value,0);if(null!==e){const n=t.value.indexOf("\\",i),r=-1!==n&&qk(t.value,n)?t.value.substring(i,n):t.value.substr(i);if(!1===e.has(r.toLowerCase()))return 0}return Yk(r,t.value,i)?0:1}}function Jk(e){return"function"!==typeof e&&(e=function(){return 0}),function(t,n,r){return null!==t&&t.type===Py&&0===Number(t.value)?1:e(t,n,r)}}const ex={"ident-token":Vk(vy),"function-token":Vk(ky),"at-keyword-token":Vk(xy),"hash-token":Vk(Sy),"string-token":Vk(wy),"bad-string-token":Vk(Ty),"url-token":Vk(Ay),"bad-url-token":Vk(Ey),"delim-token":Vk(Cy),"number-token":Vk(Py),"percentage-token":Vk(_y),"dimension-token":Vk(Ry),"whitespace-token":Vk(Dy),"CDO-token":Vk(Ny),"CDC-token":Vk(Qy),"colon-token":Vk(My),"semicolon-token":Vk($y),"comma-token":Vk(Ly),"[-token":Vk(Iy),"]-token":Vk(Fy),"(-token":Vk(By),")-token":Vk(zy),"{-token":Vk(Zy),"}-token":Vk(jy)},tx={string:Vk(wy),ident:Vk(vy),percentage:Gk((function(e,t,n){return null===e||e.type!==_y||Yk(n,e.value,e.value.length-1)?0:1})),zero:Jk(),number:Gk((function(e,t,n){if(null===e)return 0;const r=bv(e.value,0);return r===e.value.length||qk(e.value,r)?Yk(n,e.value,r)?0:1:0})),integer:Gk((function(e,t,n){if(null===e||e.type!==Py)return 0;let r=43===Xk(e.value,0)||45===Xk(e.value,0)?1:0;for(;r/[a-zA-Z0-9\-]/.test(String.fromCharCode(t))?1:0)),Fx={" ":1,"&&":2,"||":3,"|":4};function Bx(e){return e.substringToPos(e.findWsEnd(e.pos))}function zx(e){let t=e.pos;for(;t=128||0===Ix[n])break}return e.pos===t&&e.error("Expect a keyword"),e.substringToPos(t)}function Zx(e){let t=e.pos;for(;t57)break}return e.pos===t&&e.error("Expect a number"),e.substringToPos(t)}function jx(e){const t=e.str.indexOf("'",e.pos+1);return-1===t&&(e.pos=e.str.length,e.error("Expect an apostrophe")),e.substringToPos(t+1)}function Ux(e){let t=null,n=null;return e.eat(Qx),t=Zx(e),e.charCode()===Ax?(e.pos++,e.charCode()!==$x&&(n=Zx(e))):n=t,e.eat($x),{min:Number(t),max:n?Number(n):0}}function Xx(e,t){const n=function(e){let t=null,n=!1;switch(e.charCode()){case wx:e.pos++,t={min:0,max:0};break;case Tx:e.pos++,t={min:1,max:0};break;case _x:e.pos++,t={min:0,max:1};break;case yx:e.pos++,n=!0,e.charCode()===Qx?t=Ux(e):e.charCode()===_x?(e.pos++,t={min:0,max:0}):t={min:1,max:0};break;case Qx:t=Ux(e);break;default:return null}return{type:"Multiplier",comma:n,min:t.min,max:t.max,term:null}}(e);return null!==n?(n.term=t,e.charCode()===yx&&e.charCodeAt(e.pos-1)===Tx?Xx(e,n):n):t}function Hx(e){const t=e.peek();return""===t?null:{type:"Token",value:t}}function Wx(e){let t,n=null;return e.eat(Cx),t=zx(e),e.charCode()===xx&&e.nextCharCode()===Sx&&(e.pos+=2,t+="()"),e.charCodeAt(e.findWsEnd(e.pos))===Dx&&(Bx(e),n=function(e){let t=null,n=null,r=1;return e.eat(Dx),e.charCode()===Ex&&(e.peek(),r=-1),-1==r&&e.charCode()===Lx?e.peek():(t=r*Number(Zx(e)),0!==Ix[e.charCode()]&&(t+=zx(e))),Bx(e),e.eat(Ax),Bx(e),e.charCode()===Lx?e.peek():(r=1,e.charCode()===Ex&&(e.peek(),r=-1),n=r*Number(Zx(e)),0!==Ix[e.charCode()]&&(n+=zx(e))),e.eat(Nx),{type:"Range",min:t,max:n}}(e)),e.eat(Px),Xx(e,{type:"Type",name:t,opts:n})}function qx(e,t){function n(e,t){return{type:"Group",terms:e,combinator:t,disallowEmpty:!1,explicit:!1}}let r;for(t=Object.keys(t).sort(((e,t)=>Fx[e]-Fx[t]));t.length>0;){r=t.shift();let i=0,o=0;for(;i1&&(e.splice(o,i-o,n(e.slice(o,i),r)),i=o+1),o=-1))}-1!==o&&t.length&&e.splice(o,i-o,n(e.slice(o,i),r))}return r}function Yx(e){const t=[],n={};let r,i=null,o=e.pos;for(;r=Gx(e);)"Spaces"!==r.type&&("Combinator"===r.type?(null!==i&&"Combinator"!==i.type||(e.pos=o,e.error("Unexpected combinator")),n[r.value]=!0):null!==i&&"Combinator"!==i.type&&(n[" "]=!0,t.push({type:"Combinator",value:" "})),t.push(r),i=r,o=e.pos);return null!==i&&"Combinator"===i.type&&(e.pos-=o,e.error("Unexpected combinator")),{type:"Group",terms:t,combinator:qx(t,n)||" ",disallowEmpty:!1,explicit:!1}}function Gx(e){let t=e.charCode();if(t<128&&1===Ix[t])return function(e){const t=zx(e);return e.charCode()===xx?(e.pos++,{type:"Function",name:t}):Xx(e,{type:"Keyword",name:t})}(e);switch(t){case Nx:break;case Dx:return Xx(e,function(e){let t;return e.eat(Dx),t=Yx(e),e.eat(Nx),t.explicit=!0,e.charCode()===bx&&(e.pos++,t.disallowEmpty=!0),t}(e));case Cx:return e.nextCharCode()===kx?function(e){let t;return e.eat(Cx),e.eat(kx),t=zx(e),e.eat(kx),e.eat(Px),Xx(e,{type:"Property",name:t})}(e):Wx(e);case Mx:return{type:"Combinator",value:e.substringToPos(e.pos+(e.nextCharCode()===Mx?2:1))};case vx:return e.pos++,e.eat(vx),{type:"Combinator",value:"&&"};case Ax:return e.pos++,{type:"Comma"};case kx:return Xx(e,{type:"String",value:jx(e)});case Ox:case fx:case px:case gx:case mx:return{type:"Spaces",value:Bx(e)};case Rx:return t=e.nextCharCode(),t<128&&1===Ix[t]?(e.pos++,{type:"AtKeyword",name:zx(e)}):Hx(e);case wx:case Tx:case _x:case yx:case bx:break;case Qx:if(t=e.nextCharCode(),t<48||t>57)return Hx(e);break;default:return Hx(e)}}function Vx(e){const t=new dx(e),n=Yx(t);return t.pos!==e.length&&t.error("Unexpected input"),1===n.terms.length&&"Group"===n.terms[0].type?n.terms[0]:n}const Kx=function(){};function Jx(e){return"function"===typeof e?e:Kx}const eS={decorator(e){const t=[];let n=null;return{...e,node(t){const r=n;n=t,e.node.call(this,t),n=r},emit(e,r,i){t.push({type:r,value:e,node:i?null:n})},result:()=>t}}};function tS(e,t){return"string"===typeof e?function(e){const t=[];return _v(e,((n,r,i)=>t.push({type:n,value:e.slice(r,i),node:null}))),t}(e):t.generate(e,eS)}const nS={type:"Match"},rS={type:"Mismatch"},iS={type:"DisallowEmpty"},oS=40,sS=41;function aS(e,t,n){return t===nS&&n===rS||e===nS&&t===nS&&n===nS?e:("If"===e.type&&e.else===rS&&t===nS&&(t=e.then,e=e.match),{type:"If",match:e,then:t,else:n})}function lS(e){return e.length>2&&e.charCodeAt(e.length-2)===oS&&e.charCodeAt(e.length-1)===sS}function cS(e){return"Keyword"===e.type||"AtKeyword"===e.type||"Function"===e.type||"Type"===e.type&&lS(e.name)}function uS(e,t,n){switch(e){case" ":{let e=nS;for(let n=t.length-1;n>=0;n--){e=aS(t[n],e,rS)}return e}case"|":{let e=rS,n=null;for(let r=t.length-1;r>=0;r--){let i=t[r];if(cS(i)&&(null===n&&r>0&&cS(t[r-1])&&(n=Object.create(null),e=aS({type:"Enum",map:n},nS,e)),null!==n)){const e=(lS(i.name)?i.name.slice(0,-1):i.name).toLowerCase();if(e in n===!1){n[e]=i;continue}}n=null,e=aS(i,nS,e)}return e}case"&&":{if(t.length>5)return{type:"MatchOnce",terms:t,all:!0};let n=rS;for(let r=t.length-1;r>=0;r--){const i=t[r];let o;o=t.length>1?uS(e,t.filter((function(e){return e!==i})),!1):nS,n=aS(i,o,n)}return n}case"||":{if(t.length>5)return{type:"MatchOnce",terms:t,all:!1};let r=n?nS:rS;for(let n=t.length-1;n>=0;n--){const i=t[n];let o;o=t.length>1?uS(e,t.filter((function(e){return e!==i})),!0):nS,r=aS(i,o,r)}return r}}}function hS(e){if("function"===typeof e)return{type:"Generic",fn:e};switch(e.type){case"Group":{let t=uS(e.combinator,e.terms.map(hS),!1);return e.disallowEmpty&&(t=aS(t,iS,rS)),t}case"Multiplier":return function(e){let t=nS,n=hS(e.term);if(0===e.max)n=aS(n,iS,rS),t=aS(n,null,rS),t.then=aS(nS,nS,t),e.comma&&(t.then.else=aS({type:"Comma",syntax:e},t,rS));else for(let r=e.min||1;r<=e.max;r++)e.comma&&t!==nS&&(t=aS({type:"Comma",syntax:e},t,rS)),t=aS(n,aS(nS,nS,t),rS);if(0===e.min)t=aS(nS,nS,t);else for(let r=0;r=65&&i<=90&&(i|=32),i!==r)return!1}return!0}function TS(e){return null===e||(e.type===Ly||e.type===ky||e.type===By||e.type===Iy||e.type===Zy||function(e){return e.type===Cy&&"?"!==e.value}(e))}function AS(e){return null===e||(e.type===zy||e.type===Fy||e.type===jy||e.type===Cy&&"/"===e.value)}function ES(e,t,n){function r(){do{O++,g=Ob&&(b=O)}function c(){y=y.type===gS?y.prev:{type:OS,syntax:u.syntax,token:y.token,prev:y},u=u.prev}let u=null,h=null,d=null,f=null,p=0,m=null,g=null,O=-1,b=0,y={type:pS,syntax:null,token:null,prev:null};for(r();null===m&&++pd.tokenIndex)&&(d=f,f=!1);else if(null===d){m=yS;break}t=d.nextState,h=d.thenStack,u=d.syntaxStack,y=d.matchStack,O=d.tokenIndex,g=OO){for(;O":"<'"+t.name+"'>"));if(!1!==f&&null!==g&&"Type"===t.type){if("custom-ident"===t.name&&g.type===vy||"length"===t.name&&"0"===g.value){null===f&&(f=o(t,d)),t=rS;break}}u={syntax:t.syntax,opts:t.syntax.opts||null!==u&&u.opts||null,prev:u},y={type:gS,syntax:t.syntax,token:y.token,prev:y},t=r.match;break}case"Keyword":{const e=t.name;if(null!==g){let n=g.value;if(-1!==n.indexOf("\\")&&(n=n.replace(/\\[09].*$/,"")),wS(n,e)){l(),t=nS;break}}t=rS;break}case"AtKeyword":case"Function":if(null!==g&&wS(g.value,t.name)){l(),t=nS;break}t=rS;break;case"Token":if(null!==g&&g.value===t.value){l(),t=nS;break}t=rS;break;case"Comma":null!==g&&g.type===Ly?TS(y.token)?t=rS:(l(),t=AS(g)?rS:nS):t=TS(y.token)||AS(g)?nS:rS;break;case"String":let r="",p=O;for(;p"Type"===e.type&&e.name===t))}function RS(e,t){return NS(this,e,(e=>"Property"===e.type&&e.name===t))}function DS(e){return NS(this,e,(e=>"Keyword"===e.type))}function NS(e,t,n){const r=PS.call(e,t);return null!==r&&r.some(n)}function QS(e){return"node"in e?e.node:QS(e.match[0])}function MS(e){return"node"in e?e.node:MS(e.match[e.match.length-1])}function $S(e,t,n,r,i){const o=[];return null!==n.matched&&function n(s){if(null!==s.syntax&&s.syntax.type===r&&s.syntax.name===i){const n=QS(s),r=MS(s);e.syntax.walk(t,(function(e,t,i){if(e===n){const e=new Dv;do{if(e.appendData(t.data),t.data===r)break;t=t.next}while(null!==t);o.push({parent:i,nodes:e})}}))}Array.isArray(s.match)&&s.match.forEach(n)}(n.matched),o}const{hasOwnProperty:LS}=Object.prototype;function IS(e){return"number"===typeof e&&isFinite(e)&&Math.floor(e)===e&&e>=0}function FS(e){return Boolean(e)&&IS(e.offset)&&IS(e.line)&&IS(e.column)}function BS(e,t){return function(n,r){if(!n||n.constructor!==Object)return r(n,"Type of node should be an Object");for(let i in n){let o=!0;if(!1!==LS.call(n,i)){if("type"===i)n.type!==e&&r(n,"Wrong node type `"+n.type+"`, expected `"+e+"`");else if("loc"===i){if(null===n.loc)continue;if(n.loc&&n.loc.constructor===Object)if("string"!==typeof n.loc.source)i+=".source";else if(FS(n.loc.start)){if(FS(n.loc.end))continue;i+=".end"}else i+=".start";o=!1}else if(t.hasOwnProperty(i)){o=!1;for(let e=0;!o&&e");else{if(!Array.isArray(r))throw new Error("Wrong value `"+r+"` in `"+e+"."+o+"` structure definition");t.push("List")}}i[o]=t.join(" | ")}return{docs:i,check:BS(e,r)}}const ZS=dS(_k.join(" | "));function jS(e,t,n){const r={};for(const i in e)e[i].syntax&&(r[i]=n?e[i].syntax:Ok(e[i].syntax,{compact:t}));return r}function US(e,t,n){const r={};for(const[i,o]of Object.entries(e))r[i]={prelude:o.prelude&&(n?o.prelude.syntax:Ok(o.prelude.syntax,{compact:t})),descriptors:o.descriptors&&jS(o.descriptors,t,n)};return r}function XS(e,t,n){return{matched:e,iterations:n,error:t,...s}}function HS(e,t,n,r){const i=tS(n,e.syntax);let o;return function(e){for(let t=0;t3&&void 0!==arguments[3]?arguments[3]:null,serializable:"string"===typeof e||e&&"string"===typeof e.type,syntax:null,match:null};return"function"===typeof e?i.match=dS(e,r):("string"===typeof e?Object.defineProperty(i,"syntax",{get:()=>(Object.defineProperty(i,"syntax",{value:Vx(e)}),i.syntax)}):i.syntax=e,Object.defineProperty(i,"match",{get:()=>(Object.defineProperty(i,"match",{value:dS(i.syntax,r)}),i.match)})),i}addAtrule_(e,t){t&&(this.atrules[e]={type:"Atrule",name:e,prelude:t.prelude?this.createDescriptor(t.prelude,"AtrulePrelude",e):null,descriptors:t.descriptors?Object.keys(t.descriptors).reduce(((n,r)=>(n[r]=this.createDescriptor(t.descriptors[r],"AtruleDescriptor",r,e),n)),Object.create(null)):null})}addProperty_(e,t){t&&(this.properties[e]=this.createDescriptor(t,"Property",e))}addType_(e,t){t&&(this.types[e]=this.createDescriptor(t,"Type",e))}checkAtruleName(e){if(!this.getAtrule(e))return new kk("Unknown at-rule","@"+e)}checkAtrulePrelude(e,t){const n=this.checkAtruleName(e);if(n)return n;const r=this.getAtrule(e);return!r.prelude&&t?new SyntaxError("At-rule `@"+e+"` should not contain a prelude"):!r.prelude||t||HS(this,r.prelude,"",!1).matched?void 0:new SyntaxError("At-rule `@"+e+"` should contain a prelude")}checkAtruleDescriptorName(e,t){const n=this.checkAtruleName(e);if(n)return n;const r=this.getAtrule(e),i=Ak(t);return r.descriptors?r.descriptors[i.name]||r.descriptors[i.basename]?void 0:new kk("Unknown at-rule descriptor",t):new SyntaxError("At-rule `@"+e+"` has no known descriptors")}checkPropertyName(e){if(!this.getProperty(e))return new kk("Unknown property",e)}matchAtrulePrelude(e,t){const n=this.checkAtrulePrelude(e,t);if(n)return XS(null,n);const r=this.getAtrule(e);return r.prelude?HS(this,r.prelude,t||"",!1):XS(null,null)}matchAtruleDescriptor(e,t,n){const r=this.checkAtruleDescriptorName(e,t);if(r)return XS(null,r);const i=this.getAtrule(e),o=Ak(t);return HS(this,i.descriptors[o.name]||i.descriptors[o.basename],n,!1)}matchDeclaration(e){return"Declaration"!==e.type?XS(null,new Error("Not a Declaration node")):this.matchProperty(e.property,e.value)}matchProperty(e,t){if(Ek(e).custom)return XS(null,new Error("Lexer matching doesn't applicable for custom properties"));const n=this.checkPropertyName(e);return n?XS(null,n):HS(this,this.getProperty(e),t,!0)}matchType(e,t){const n=this.getType(e);return n?HS(this,n,t,!1):XS(null,new kk("Unknown type",e))}match(e,t){return"string"===typeof e||e&&e.type?("string"!==typeof e&&e.match||(e=this.createDescriptor(e,"Type","anonymous")),HS(this,e,t,!1)):XS(null,new kk("Bad syntax"))}findValueFragments(e,t,n,r){return $S(this,t,this.matchProperty(e,t),n,r)}findDeclarationValueFragments(e,t,n){return $S(this,e.value,this.matchDeclaration(e),t,n)}findAllFragments(e,t,n){const r=[];return this.syntax.walk(e,{visit:"Declaration",enter:e=>{r.push.apply(r,this.findDeclarationValueFragments(e,t,n))}}),r}getAtrule(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const n=Ak(e);return(n.vendor&&t?this.atrules[n.name]||this.atrules[n.basename]:this.atrules[n.name])||null}getAtrulePrelude(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const n=this.getAtrule(e,t);return n&&n.prelude||null}getAtruleDescriptor(e,t){return this.atrules.hasOwnProperty(e)&&this.atrules.declarators&&this.atrules[e].declarators[t]||null}getProperty(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const n=Ek(e);return(n.vendor&&t?this.properties[n.name]||this.properties[n.basename]:this.properties[n.name])||null}getType(e){return hasOwnProperty.call(this.types,e)?this.types[e]:null}validate(){function e(r,i,o,s){if(o.has(i))return o.get(i);o.set(i,!1),null!==s.syntax&&function(e,t,n){let r=Kx,i=Kx;if("function"===typeof t?r=t:t&&(r=Jx(t.enter),i=Jx(t.leave)),r===Kx&&i===Kx)throw new Error("Neither `enter` nor `leave` walker handler is set or both aren't a function");!function e(t){switch(r.call(n,t),t.type){case"Group":t.terms.forEach(e);break;case"Multiplier":e(t.term);break;case"Type":case"Property":case"Keyword":case"AtKeyword":case"Function":case"String":case"Token":case"Comma":break;default:throw new Error("Unknown type: "+t.type)}i.call(n,t)}(e)}(s.syntax,(function(s){if("Type"!==s.type&&"Property"!==s.type)return;const a="Type"===s.type?r.types:r.properties,l="Type"===s.type?t:n;hasOwnProperty.call(a,s.name)&&!e(r,s.name,l,a[s.name])||o.set(i,!0)}),this)}let t=new Map,n=new Map;for(const r in this.types)e(this,r,t,this.types[r]);for(const r in this.properties)e(this,r,n,this.properties[r]);return t=[...t.keys()].filter((e=>t.get(e))),n=[...n.keys()].filter((e=>n.get(e))),t.length||n.length?{types:t,properties:n}:null}dump(e,t){return{generic:this.generic,units:this.units,types:jS(this.types,!t,e),properties:jS(this.properties,!t,e),atrules:US(this.atrules,!t,e)}}toString(){return JSON.stringify(this.dump())}}function qS(e,t){return"string"===typeof t&&/^\s*\|/.test(t)?"string"===typeof e?e+t:t.replace(/^\s*\|\s*/,""):t||null}function YS(e,t){const n=Object.create(null);for(const[r,i]of Object.entries(e))if(i){n[r]={};for(const e of Object.keys(i))t.includes(e)&&(n[r][e]=i[e])}return n}function GS(e,t){const n={...e};for(const[r,i]of Object.entries(t))switch(r){case"generic":n[r]=Boolean(i);break;case"units":n[r]={...e[r]};for(const[e,t]of Object.entries(i))n[r][e]=Array.isArray(t)?t:[];break;case"atrules":n[r]={...e[r]};for(const[e,t]of Object.entries(i)){const i=n[r][e]||{},o=n[r][e]={prelude:i.prelude||null,descriptors:{...i.descriptors}};if(t){o.prelude=t.prelude?qS(o.prelude,t.prelude):o.prelude||null;for(const[e,n]of Object.entries(t.descriptors||{}))o.descriptors[e]=n?qS(o.descriptors[e],n):null;Object.keys(o.descriptors).length||(o.descriptors=null)}}break;case"types":case"properties":n[r]={...e[r]};for(const[e,t]of Object.entries(i))n[r][e]=qS(n[r][e],t);break;case"scope":n[r]={...e[r]};for(const[e,t]of Object.entries(i))n[r][e]={...n[r][e],...t};break;case"parseContext":n[r]={...e[r],...i};break;case"atrule":case"pseudo":n[r]={...e[r],...YS(i,["parse"])};break;case"node":n[r]={...e[r],...YS(i,["name","structure","parse","generate","walkContext"])}}return n}function VS(e){const t=qv(e),n=pk(e),r=sk(e),{fromPlainObject:i,toPlainObject:o}=function(e){return{fromPlainObject:t=>(e(t,{enter(e){e.children&&e.children instanceof Dv===!1&&(e.children=(new Dv).fromArray(e.children))}}),t),toPlainObject:t=>(e(t,{leave(e){e.children&&e.children instanceof Dv&&(e.children=e.children.toArray())}}),t)}}(n),s={lexer:null,createLexer:e=>new WS(e,s,s.lexer.structure),tokenize:_v,parse:t,generate:r,walk:n,find:n.find,findLast:n.findLast,findAll:n.findAll,fromPlainObject:i,toPlainObject:o,fork(t){const n=GS({},e);return VS("function"===typeof t?t(n,Object.assign):GS(n,t))}};return s.lexer=new WS({generic:!0,units:e.units,types:e.types,atrules:e.atrules,properties:e.properties,node:e.node},s),s}const KS=43,JS=45,ew=110,tw=!0,nw=!1;function rw(e,t){let n=this.tokenStart+e;const r=this.charCodeAt(n);for(r!==KS&&r!==JS||(t&&this.error("Number sign is not allowed"),n++);n0&&this.skip(e),0===t&&(n=this.charCodeAt(this.tokenStart),n!==KS&&n!==JS&&this.error("Number sign is expected")),iw.call(this,0!==t),t===JS?"-"+this.consume(Py):this.consume(Py)}const aw="AnPlusB",lw={a:[String,null],b:[String,null]};function cw(){const e=this.tokenStart;let t=null,n=null;if(this.tokenType===Py)iw.call(this,nw),n=this.consume(Py);else if(this.tokenType===vy&&this.cmpChar(this.tokenStart,JS))switch(t="-1",ow.call(this,1,ew),this.tokenEnd-this.tokenStart){case 2:this.next(),n=sw.call(this);break;case 3:ow.call(this,2,JS),this.next(),this.skipSC(),iw.call(this,tw),n="-"+this.consume(Py);break;default:ow.call(this,2,JS),rw.call(this,3,tw),this.next(),n=this.substrToCursor(e+2)}else if(this.tokenType===vy||this.isDelim(KS)&&this.lookupType(1)===vy){let r=0;switch(t="1",this.isDelim(KS)&&(r=1,this.next()),ow.call(this,0,ew),this.tokenEnd-this.tokenStart){case 1:this.next(),n=sw.call(this);break;case 2:ow.call(this,1,JS),this.next(),this.skipSC(),iw.call(this,tw),n="-"+this.consume(Py);break;default:ow.call(this,1,JS),rw.call(this,2,tw),this.next(),n=this.substrToCursor(e+r+1)}}else if(this.tokenType===Ry){const r=this.charCodeAt(this.tokenStart),i=r===KS||r===JS;let o=this.tokenStart+i;for(;o0&&void 0!==arguments[0]&&arguments[0];const t=this.tokenStart;let n,r,i=null,o=null;switch(this.eat(xy),n=this.substrToCursor(t+1),r=n.toLowerCase(),this.skipSC(),!1===this.eof&&this.tokenType!==Zy&&this.tokenType!==$y&&(i=this.parseAtrulePrelude?this.parseWithFallback(this.AtrulePrelude.bind(this,n,e),hw):hw.call(this,this.tokenIndex),this.skipSC()),this.tokenType){case $y:this.next();break;case Zy:o=hasOwnProperty.call(this.atrule,r)&&"function"===typeof this.atrule[r].block?this.atrule[r].block.call(this,e):this.Block(dw.call(this))}return{type:"Atrule",loc:this.getLocation(t,this.tokenStart),name:n,prelude:i,block:o}}function Ow(e){this.token(xy,"@"+e.name),null!==e.prelude&&this.node(e.prelude),e.block?this.node(e.block):this.token($y,";")}const bw="AtrulePrelude",yw="atrulePrelude",vw={children:[[]]};function kw(e){let t=null;return null!==e&&(e=e.toLowerCase()),this.skipSC(),t=hasOwnProperty.call(this.atrule,e)&&"function"===typeof this.atrule[e].prelude?this.atrule[e].prelude.call(this):this.readSequence(this.scope.AtrulePrelude),this.skipSC(),!0!==this.eof&&this.tokenType!==Zy&&this.tokenType!==$y&&this.error("Semicolon or block is expected"),{type:"AtrulePrelude",loc:this.getLocationFromList(t),children:t}}function xw(e){this.children(e)}const Sw=36,ww=42,Tw=61,Aw=94,Ew=124,Cw=126;function Pw(){this.eof&&this.error("Unexpected end of input");const e=this.tokenStart;let t=!1;return this.isDelim(ww)?(t=!0,this.next()):this.isDelim(Ew)||this.eat(vy),this.isDelim(Ew)?this.charCodeAt(this.tokenStart+1)!==Tw?(this.next(),this.eat(vy)):t&&this.error("Identifier is expected",this.tokenEnd):t&&this.error("Vertical line is expected"),{type:"Identifier",loc:this.getLocation(e,this.tokenStart),name:this.substrToCursor(e)}}function _w(){const e=this.tokenStart,t=this.charCodeAt(e);return t!==Tw&&t!==Cw&&t!==Aw&&t!==Sw&&t!==ww&&t!==Ew&&this.error("Attribute selector (=, ~=, ^=, $=, *=, |=) is expected"),this.next(),t!==Tw&&(this.isDelim(Tw)||this.error("Equal sign is expected"),this.next()),this.substrToCursor(e)}const Rw="AttributeSelector",Dw={name:"Identifier",matcher:[String,null],value:["String","Identifier",null],flags:[String,null]};function Nw(){const e=this.tokenStart;let t,n=null,r=null,i=null;return this.eat(Iy),this.skipSC(),t=Pw.call(this),this.skipSC(),this.tokenType!==Fy&&(this.tokenType!==vy&&(n=_w.call(this),this.skipSC(),r=this.tokenType===wy?this.String():this.Identifier(),this.skipSC()),this.tokenType===vy&&(i=this.consume(vy),this.skipSC())),this.eat(Fy),{type:"AttributeSelector",loc:this.getLocation(e,this.tokenStart),name:t,matcher:n,value:r,flags:i}}function Qw(e){this.token(Cy,"["),this.node(e.name),null!==e.matcher&&(this.tokenize(e.matcher),this.node(e.value)),null!==e.flags&&this.token(vy,e.flags),this.token(Cy,"]")}const Mw=38;function $w(e){return this.Raw(e,null,!0)}function Lw(){return this.parseWithFallback(this.Rule,$w)}function Iw(e){return this.Raw(e,this.consumeUntilSemicolonIncluded,!0)}function Fw(){if(this.tokenType===$y)return Iw.call(this,this.tokenIndex);const e=this.parseWithFallback(this.Declaration,Iw);return this.tokenType===$y&&this.next(),e}const Bw="Block",zw="block",Zw={children:[["Atrule","Rule","Declaration"]]};function jw(e){const t=e?Fw:Lw,n=this.tokenStart;let r=this.createList();this.eat(Zy);e:for(;!this.eof;)switch(this.tokenType){case jy:break e;case Dy:case Uy:this.next();break;case xy:r.push(this.parseWithFallback(this.Atrule.bind(this,e),$w));break;default:e&&this.isDelim(Mw)?r.push(Lw.call(this)):r.push(t.call(this))}return this.eof||this.eat(jy),{type:"Block",loc:this.getLocation(n,this.tokenStart),children:r}}function Uw(e){this.token(Zy,"{"),this.children(e,(e=>{"Declaration"===e.type&&this.token($y,";")})),this.token(jy,"}")}const Xw="Brackets",Hw={children:[[]]};function Ww(e,t){const n=this.tokenStart;let r=null;return this.eat(Iy),r=e.call(this,t),this.eof||this.eat(Fy),{type:"Brackets",loc:this.getLocation(n,this.tokenStart),children:r}}function qw(e){this.token(Cy,"["),this.children(e),this.token(Cy,"]")}const Yw="CDC",Gw=[];function Vw(){const e=this.tokenStart;return this.eat(Qy),{type:"CDC",loc:this.getLocation(e,this.tokenStart)}}function Kw(){this.token(Qy,"--\x3e")}const Jw="CDO",eT=[];function tT(){const e=this.tokenStart;return this.eat(Ny),{type:"CDO",loc:this.getLocation(e,this.tokenStart)}}function nT(){this.token(Ny,"\x3c!--")}const rT=46,iT="ClassSelector",oT={name:String};function sT(){return this.eatDelim(rT),{type:"ClassSelector",loc:this.getLocation(this.tokenStart-1,this.tokenEnd),name:this.consume(vy)}}function aT(e){this.token(Cy,"."),this.token(vy,e.name)}const lT=43,cT=47,uT=62,hT=126,dT="Combinator",fT={name:String};function pT(){const e=this.tokenStart;let t;switch(this.tokenType){case Dy:t=" ";break;case Cy:switch(this.charCodeAt(this.tokenStart)){case uT:case lT:case hT:this.next();break;case cT:this.next(),this.eatIdent("deep"),this.eatDelim(cT);break;default:this.error("Combinator is expected")}t=this.substrToCursor(e)}return{type:"Combinator",loc:this.getLocation(e,this.tokenStart),name:t}}function mT(e){this.tokenize(e.name)}const gT=42,OT=47,bT="Comment",yT={value:String};function vT(){const e=this.tokenStart;let t=this.tokenEnd;return this.eat(Uy),t-e+2>=2&&this.charCodeAt(t-2)===gT&&this.charCodeAt(t-1)===OT&&(t-=2),{type:"Comment",loc:this.getLocation(e,this.tokenStart),value:this.substring(e+2,t)}}function kT(e){this.token(Uy,"/*"+e.value+"*/")}const xT=33,ST=35,wT=36,TT=38,AT=42,ET=43,CT=47;function PT(e){return this.Raw(e,this.consumeUntilExclamationMarkOrSemicolon,!0)}function _T(e){return this.Raw(e,this.consumeUntilExclamationMarkOrSemicolon,!1)}function RT(){const e=this.tokenIndex,t=this.Value();return"Raw"!==t.type&&!1===this.eof&&this.tokenType!==$y&&!1===this.isDelim(xT)&&!1===this.isBalanceEdge(e)&&this.error(),t}const DT="Declaration",NT="declaration",QT={important:[Boolean,String],property:String,value:["Value","Raw"]};function MT(){const e=this.tokenStart,t=this.tokenIndex,n=LT.call(this),r=Ck(n),i=r?this.parseCustomProperty:this.parseValue,o=r?_T:PT;let s,a=!1;this.skipSC(),this.eat(My);const l=this.tokenIndex;if(r||this.skipSC(),s=i?this.parseWithFallback(RT,o):o.call(this,this.tokenIndex),r&&"Value"===s.type&&s.children.isEmpty)for(let c=l-this.tokenIndex;c<=0;c++)if(this.lookupType(c)===Dy){s.children.appendData({type:"WhiteSpace",loc:null,value:" "});break}return this.isDelim(xT)&&(a=IT.call(this),this.skipSC()),!1===this.eof&&this.tokenType!==$y&&!1===this.isBalanceEdge(t)&&this.error(),{type:"Declaration",loc:this.getLocation(e,this.tokenStart),important:a,property:n,value:s}}function $T(e){this.token(vy,e.property),this.token(My,":"),this.node(e.value),e.important&&(this.token(Cy,"!"),this.token(vy,!0===e.important?"important":e.important))}function LT(){const e=this.tokenStart;if(this.tokenType===Cy)switch(this.charCodeAt(this.tokenStart)){case AT:case wT:case ET:case ST:case TT:this.next();break;case CT:this.next(),this.isDelim(CT)&&this.next()}return this.tokenType===Sy?this.eat(Sy):this.eat(vy),this.substrToCursor(e)}function IT(){this.eat(Cy),this.skipSC();const e=this.consume(vy);return"important"===e||e}const FT=38;function BT(e){return this.Raw(e,this.consumeUntilSemicolonIncluded,!0)}const zT="DeclarationList",ZT={children:[["Declaration","Atrule","Rule"]]};function jT(){const e=this.createList();for(;!this.eof;)switch(this.tokenType){case Dy:case Uy:case $y:this.next();break;case xy:e.push(this.parseWithFallback(this.Atrule.bind(this,!0),BT));break;default:this.isDelim(FT)?e.push(this.parseWithFallback(this.Rule,BT)):e.push(this.parseWithFallback(this.Declaration,BT))}return{type:"DeclarationList",loc:this.getLocationFromList(e),children:e}}function UT(e){this.children(e,(e=>{"Declaration"===e.type&&this.token($y,";")}))}const XT="Dimension",HT={value:String,unit:String};function WT(){const e=this.tokenStart,t=this.consumeNumber(Ry);return{type:"Dimension",loc:this.getLocation(e,this.tokenStart),value:t,unit:this.substring(e+t.length,this.tokenStart)}}function qT(e){this.token(Ry,e.value+e.unit)}const YT="Function",GT="function",VT={name:String,children:[[]]};function KT(e,t){const n=this.tokenStart,r=this.consumeFunctionName(),i=r.toLowerCase();let o;return o=t.hasOwnProperty(i)?t[i].call(this,t):e.call(this,t),this.eof||this.eat(zy),{type:"Function",loc:this.getLocation(n,this.tokenStart),name:r,children:o}}function JT(e){this.token(ky,e.name+"("),this.children(e),this.token(zy,")")}const eA="XXX",tA="Hash",nA={value:String};function rA(){const e=this.tokenStart;return this.eat(Sy),{type:"Hash",loc:this.getLocation(e,this.tokenStart),value:this.substrToCursor(e+1)}}function iA(e){this.token(Sy,"#"+e.value)}const oA="Identifier",sA={name:String};function aA(){return{type:"Identifier",loc:this.getLocation(this.tokenStart,this.tokenEnd),name:this.consume(vy)}}function lA(e){this.token(vy,e.name)}const cA="IdSelector",uA={name:String};function hA(){const e=this.tokenStart;return this.eat(Sy),{type:"IdSelector",loc:this.getLocation(e,this.tokenStart),name:this.substrToCursor(e+1)}}function dA(e){this.token(Cy,"#"+e.name)}const fA="MediaFeature",pA={name:String,value:["Identifier","Number","Dimension","Ratio",null]};function mA(){const e=this.tokenStart;let t,n=null;if(this.eat(By),this.skipSC(),t=this.consume(vy),this.skipSC(),this.tokenType!==zy){switch(this.eat(My),this.skipSC(),this.tokenType){case Py:n=this.lookupNonWSType(1)===Cy?this.Ratio():this.Number();break;case Ry:n=this.Dimension();break;case vy:n=this.Identifier();break;default:this.error("Number, dimension, ratio or identifier is expected")}this.skipSC()}return this.eat(zy),{type:"MediaFeature",loc:this.getLocation(e,this.tokenStart),name:t,value:n}}function gA(e){this.token(By,"("),this.token(vy,e.name),null!==e.value&&(this.token(My,":"),this.node(e.value)),this.token(zy,")")}const OA="MediaQuery",bA={children:[["Identifier","MediaFeature","WhiteSpace"]]};function yA(){const e=this.createList();let t=null;this.skipSC();e:for(;!this.eof;){switch(this.tokenType){case Uy:case Dy:this.next();continue;case vy:t=this.Identifier();break;case By:t=this.MediaFeature();break;default:break e}e.push(t)}return null===t&&this.error("Identifier or parenthesis is expected"),{type:"MediaQuery",loc:this.getLocationFromList(e),children:e}}function vA(e){this.children(e)}const kA="MediaQueryList",xA={children:[["MediaQuery"]]};function SA(){const e=this.createList();for(this.skipSC();!this.eof&&(e.push(this.MediaQuery()),this.tokenType===Ly);)this.next();return{type:"MediaQueryList",loc:this.getLocationFromList(e),children:e}}function wA(e){this.children(e,(()=>this.token(Ly,",")))}const TA=38,AA="NestingSelector",EA={};function CA(){const e=this.tokenStart;return this.eatDelim(TA),{type:"NestingSelector",loc:this.getLocation(e,this.tokenStart)}}function PA(){this.token(Cy,"&")}const _A="Nth",RA={nth:["AnPlusB","Identifier"],selector:["SelectorList",null]};function DA(){this.skipSC();const e=this.tokenStart;let t,n=e,r=null;return t=this.lookupValue(0,"odd")||this.lookupValue(0,"even")?this.Identifier():this.AnPlusB(),n=this.tokenStart,this.skipSC(),this.lookupValue(0,"of")&&(this.next(),r=this.SelectorList(),n=this.tokenStart),{type:"Nth",loc:this.getLocation(e,n),nth:t,selector:r}}function NA(e){this.node(e.nth),null!==e.selector&&(this.token(vy,"of"),this.node(e.selector))}const QA="Number",MA={value:String};function $A(){return{type:"Number",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:this.consume(Py)}}function LA(e){this.token(Py,e.value)}const IA="Operator",FA={value:String};function BA(){const e=this.tokenStart;return this.next(),{type:"Operator",loc:this.getLocation(e,this.tokenStart),value:this.substrToCursor(e)}}function zA(e){this.tokenize(e.value)}const ZA="Parentheses",jA={children:[[]]};function UA(e,t){const n=this.tokenStart;let r=null;return this.eat(By),r=e.call(this,t),this.eof||this.eat(zy),{type:"Parentheses",loc:this.getLocation(n,this.tokenStart),children:r}}function XA(e){this.token(By,"("),this.children(e),this.token(zy,")")}const HA="Percentage",WA={value:String};function qA(){return{type:"Percentage",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:this.consumeNumber(_y)}}function YA(e){this.token(_y,e.value+"%")}const GA="PseudoClassSelector",VA="function",KA={name:String,children:[["Raw"],null]};function JA(){const e=this.tokenStart;let t,n,r=null;return this.eat(My),this.tokenType===ky?(t=this.consumeFunctionName(),n=t.toLowerCase(),hasOwnProperty.call(this.pseudo,n)?(this.skipSC(),r=this.pseudo[n].call(this),this.skipSC()):(r=this.createList(),r.push(this.Raw(this.tokenIndex,null,!1))),this.eat(zy)):t=this.consume(vy),{type:"PseudoClassSelector",loc:this.getLocation(e,this.tokenStart),name:t,children:r}}function eE(e){this.token(My,":"),null===e.children?this.token(vy,e.name):(this.token(ky,e.name+"("),this.children(e),this.token(zy,")"))}const tE="PseudoElementSelector",nE="function",rE={name:String,children:[["Raw"],null]};function iE(){const e=this.tokenStart;let t,n,r=null;return this.eat(My),this.eat(My),this.tokenType===ky?(t=this.consumeFunctionName(),n=t.toLowerCase(),hasOwnProperty.call(this.pseudo,n)?(this.skipSC(),r=this.pseudo[n].call(this),this.skipSC()):(r=this.createList(),r.push(this.Raw(this.tokenIndex,null,!1))),this.eat(zy)):t=this.consume(vy),{type:"PseudoElementSelector",loc:this.getLocation(e,this.tokenStart),name:t,children:r}}function oE(e){this.token(My,":"),this.token(My,":"),null===e.children?this.token(vy,e.name):(this.token(ky,e.name+"("),this.children(e),this.token(zy,")"))}const sE=47,aE=46;function lE(){this.skipSC();const e=this.consume(Py);for(let t=0;t0&&this.lookupType(-1)===Dy?this.tokenIndex>1?this.getTokenStart(this.tokenIndex-1):this.firstCharOffset:this.tokenStart}const pE="Raw",mE={value:String};function gE(e,t,n){const r=this.getTokenStart(e);let i;return this.skipUntilBalanced(e,t||this.consumeUntilBalanceEnd),i=n&&this.tokenStart>r?fE.call(this):this.tokenStart,{type:"Raw",loc:this.getLocation(r,i),value:this.substring(r,i)}}function OE(e){this.tokenize(e.value)}function bE(e){return this.Raw(e,this.consumeUntilLeftCurlyBracket,!0)}function yE(){const e=this.SelectorList();return"Raw"!==e.type&&!1===this.eof&&this.tokenType!==Zy&&this.error(),e}const vE="Rule",kE="rule",xE={prelude:["SelectorList","Raw"],block:["Block"]};function SE(){const e=this.tokenIndex,t=this.tokenStart;let n,r;return n=this.parseRulePrelude?this.parseWithFallback(yE,bE):bE.call(this,e),r=this.Block(!0),{type:"Rule",loc:this.getLocation(t,this.tokenStart),prelude:n,block:r}}function wE(e){this.node(e.prelude),this.node(e.block)}const TE="Selector",AE={children:[["TypeSelector","IdSelector","ClassSelector","AttributeSelector","PseudoClassSelector","PseudoElementSelector","Combinator","WhiteSpace"]]};function EE(){const e=this.readSequence(this.scope.Selector);return null===this.getFirstListNode(e)&&this.error("Selector is expected"),{type:"Selector",loc:this.getLocationFromList(e),children:e}}function CE(e){this.children(e)}const PE="SelectorList",_E="selector",RE={children:[["Selector","Raw"]]};function DE(){const e=this.createList();for(;!this.eof&&(e.push(this.Selector()),this.tokenType===Ly);)this.next();return{type:"SelectorList",loc:this.getLocationFromList(e),children:e}}function NE(e){this.children(e,(()=>this.token(Ly,",")))}const QE=92,ME=34,$E=39;function LE(e){const t=e.length,n=e.charCodeAt(0),r=n===ME||n===$E?1:0,i=1===r&&t>1&&e.charCodeAt(t-1)===n?t-2:t-1;let o="";for(let s=r;s<=i;s++){let n=e.charCodeAt(s);if(n===QE){if(s===i){s!==t-1&&(o=e.substr(s+1));break}if(n=e.charCodeAt(++s),ev(QE,n)){const t=s-1,n=gv(e,t);s=n-1,o+=vv(e.substring(t+1,n))}else 13===n&&10===e.charCodeAt(s+1)&&s++}else o+=e[s]}return o}const IE="String",FE={value:String};function BE(){return{type:"String",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:LE(this.consume(wy))}}function zE(e){this.token(wy,function(e,t){const n=t?"'":'"',r=t?$E:ME;let i="",o=!1;for(let s=0;s6&&this.error("Too many hex digits",r)}return this.next(),n}function sC(e){let t=0;for(;this.isDelim(iC);)++t>e&&this.error("Too many question marks"),this.next()}function aC(e){this.charCodeAt(this.tokenStart)!==e&&this.error((e===nC?"Plus sign":"Hyphen minus")+" is expected")}function lC(){let e=0;switch(this.tokenType){case Py:if(e=oC.call(this,1,!0),this.isDelim(iC)){sC.call(this,6-e);break}if(this.tokenType===Ry||this.tokenType===Py){aC.call(this,rC),oC.call(this,1,!1);break}break;case Ry:e=oC.call(this,1,!0),e>0&&sC.call(this,6-e);break;default:if(this.eatDelim(nC),this.tokenType===vy){e=oC.call(this,0,!0),e>0&&sC.call(this,6-e);break}if(this.isDelim(iC)){this.next(),sC.call(this,5);break}this.error("Hex digit or question mark is expected")}}const cC="UnicodeRange",uC={value:String};function hC(){const e=this.tokenStart;return this.eatIdent("u"),lC.call(this),{type:"UnicodeRange",loc:this.getLocation(e,this.tokenStart),value:this.substrToCursor(e)}}function dC(e){this.tokenize(e.value)}const fC=32,pC=92,mC=34,gC=39,OC=40,bC=41;const yC="Url",vC={value:String};function kC(){const e=this.tokenStart;let t;switch(this.tokenType){case Ay:t=function(e){const t=e.length;let n=4,r=e.charCodeAt(t-1)===bC?t-2:t-1,i="";for(;n )","absolute-size":"xx-small|x-small|small|medium|large|x-large|xx-large|xxx-large","acos()":"acos( )","alpha-value":"|","angle-percentage":"|","angular-color-hint":"","angular-color-stop":"&&?","angular-color-stop-list":"[ [, ]?]# , ","animateable-feature":"scroll-position|contents|","asin()":"asin( )","atan()":"atan( )","atan2()":"atan2( , )",attachment:"scroll|fixed|local","attr()":"attr( ? [, ]? )","attr-matcher":"['~'|'|'|'^'|'$'|'*']? '='","attr-modifier":"i|s","attribute-selector":"'[' ']'|'[' [|] ? ']'","auto-repeat":"repeat( [auto-fill|auto-fit] , [? ]+ ? )","auto-track-list":"[? [|]]* ? [? [|]]* ?",axis:"block|inline|vertical|horizontal","baseline-position":"[first|last]? baseline","basic-shape":"||||","bg-image":"none|","bg-layer":"|| [/ ]?||||||||","bg-position":"[[left|center|right|top|bottom|]|[left|center|right|] [top|center|bottom|]|[center|[left|right] ?]&&[center|[top|bottom] ?]]","bg-size":"[|auto]{1,2}|cover|contain","blur()":"blur( )","blend-mode":"normal|multiply|screen|overlay|darken|lighten|color-dodge|color-burn|hard-light|soft-light|difference|exclusion|hue|saturation|color|luminosity",box:"border-box|padding-box|content-box","brightness()":"brightness( )","calc()":"calc( )","calc-sum":" [['+'|'-'] ]*","calc-product":" ['*' |'/' ]*","calc-value":"||||( )","calc-constant":"e|pi|infinity|-infinity|NaN","cf-final-image":"|","cf-mixing-image":"?&&","circle()":"circle( []? [at ]? )","clamp()":"clamp(