@auto-ai/agent 2.1.89 → 2.1.90
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/404/index.html +1 -1
- package/dist/404.html +1 -1
- package/dist/_next/static/chunks/071c2b2eece424b8.js +1 -0
- package/dist/_next/static/chunks/479bb32e1848b26b.js +1 -0
- package/dist/_next/static/chunks/{c040acff9524d607.js → 573efa1cd3d0872c.js} +1 -1
- package/dist/_next/static/chunks/6a8dfef8eb153262.js +1 -0
- package/dist/_next/static/chunks/{46129f2ae438a551.js → 9597a4f1aa937100.js} +1 -1
- package/dist/_next/static/chunks/{8c45c6fd6841f54d.css → 9923762f97969b52.css} +1 -1
- package/dist/_next/static/chunks/9c9c063cb0b2e562.js +1 -0
- package/dist/_next/static/chunks/{594aadf15008f49e.css → a6c743f3d7975ca2.css} +1 -1
- package/dist/_next/static/chunks/acb68dccafc14ac1.js +1 -0
- package/dist/_next/static/chunks/ca3c520aa0575c69.js +1 -0
- package/dist/_next/static/chunks/{992d0b950fc0e0d4.js → cdd193032944dfed.js} +1 -1
- package/dist/_next/static/chunks/d9cb9883957b864c.js +1 -0
- package/dist/_next/static/chunks/{turbopack-552bcca3b4e5cab8.js → turbopack-8a0e770cd106af0c.js} +1 -1
- package/dist/index.html +1 -1
- package/dist/index.txt +15 -15
- package/dist/manage/add-account/index.html +1 -1
- package/dist/manage/add-account/index.txt +19 -19
- package/dist/manage/agent/index.html +2 -2
- package/dist/manage/agent/index.txt +19 -19
- package/dist/manage/agent-teams/index.html +2 -2
- package/dist/manage/agent-teams/index.txt +19 -19
- package/dist/manage/env/index.html +2 -2
- package/dist/manage/env/index.txt +19 -19
- package/dist/manage/mcp/index.html +2 -2
- package/dist/manage/mcp/index.txt +19 -19
- package/dist/manage/skills/index.html +2 -2
- package/dist/manage/skills/index.txt +19 -19
- package/dist/manage/tools/index.html +2 -2
- package/dist/manage/tools/index.txt +19 -19
- package/package.json +6 -6
- package/dist/_next/static/chunks/48acbdb99625356f.js +0 -1
- package/dist/_next/static/chunks/65dc4350334b918b.js +0 -1
- package/dist/_next/static/chunks/7988d5ea63356e10.js +0 -1
- package/dist/_next/static/chunks/ba3880933d064bd1.js +0 -1
- package/dist/_next/static/chunks/ba9e2b6c361a4cc0.js +0 -1
- package/dist/_next/static/chunks/ccf3adc0c7548bce.js +0 -1
- package/dist/_next/static/chunks/d375f31e93e1e8b0.js +0 -1
- package/dist/_next/static/media/logo-mini.27d08774.png +0 -0
- package/dist/_next/static/media/logo.cfaef1ab.png +0 -0
- /package/dist/_next/static/{42qrnbdom_KfWaP8qU70K → v7b7kpIIWrJ_TrI3XvYpK}/_buildManifest.js +0 -0
- /package/dist/_next/static/{42qrnbdom_KfWaP8qU70K → v7b7kpIIWrJ_TrI3XvYpK}/_clientMiddlewareManifest.json +0 -0
- /package/dist/_next/static/{42qrnbdom_KfWaP8qU70K → v7b7kpIIWrJ_TrI3XvYpK}/_ssgManifest.js +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,26568,(e,t,n)=>{"use strict";var r=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,i=/\n/g,a=/^\s*/,o=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,s=/^:\s*/,l=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,u=/^\s+|\s+$/g;function h(e){return e?e.replace(u,""):""}t.exports=function(e,t){if("string"!=typeof e)throw TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,u=1;function p(e){var t=e.match(i);t&&(n+=t.length);var r=e.lastIndexOf("\n");u=~r?e.length-r:u+e.length}function d(){var e={line:n,column:u};return function(t){return t.position=new m(e),g(a),t}}function m(e){this.start=e,this.end={line:n,column:u},this.source=t.source}function f(r){var i=Error(t.source+":"+n+":"+u+": "+r);if(i.reason=r,i.filename=t.source,i.line=n,i.column=u,i.source=e,t.silent);else throw i}function g(t){var n=t.exec(e);if(n){var r=n[0];return p(r),e=e.slice(r.length),n}}function y(e){var t;for(e=e||[];t=b();)!1!==t&&e.push(t);return e}function b(){var t=d();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;""!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,""===e.charAt(n-1))return f("End of comment missing");var r=e.slice(2,n-2);return u+=2,p(r),e=e.slice(n),u+=2,t({type:"comment",comment:r})}}m.prototype.content=e,g(a);var v,x=[];for(y(x);v=function(){var e=d(),t=g(o);if(t){if(b(),!g(s))return f("property missing ':'");var n=g(l),i=e({type:"declaration",property:h(t[0].replace(r,"")),value:n?h(n[0].replace(r,"")):""});return g(c),i}}();)!1!==v&&(x.push(v),y(x));return x}},30070,(e,t,n)=>{"use strict";var r=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e,t){let n=null;if(!e||"string"!=typeof e)return n;let r=(0,i.default)(e),a="function"==typeof t;return r.forEach(e=>{if("declaration"!==e.type)return;let{property:r,value:i}=e;a?t(r,i,e):i&&((n=n||{})[r]=i)}),n};let i=r(e.r(26568))},65185,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.camelCase=void 0;var r=/^--[a-zA-Z0-9_-]+$/,i=/-([a-z])/g,a=/^[^-]+$/,o=/^-(webkit|moz|ms|o|khtml)-/,s=/^-(ms)-/,l=function(e,t){return t.toUpperCase()},c=function(e,t){return"".concat(t,"-")};n.camelCase=function(e,t){var n;return(void 0===t&&(t={}),!(n=e)||a.test(n)||r.test(n))?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(s,c):e.replace(o,c)).replace(i,l))}},15511,(e,t,n)=>{"use strict";var r=(e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(e.r(30070)),i=e.r(65185);function a(e,t){var n={};return e&&"string"==typeof e&&(0,r.default)(e,function(e,r){e&&r&&(n[(0,i.camelCase)(e,t)]=r)}),n}a.default=a,t.exports=a},4100,(e,t,n)=>{"use strict";var r=Object.prototype.hasOwnProperty,i=Object.prototype.toString,a=Object.defineProperty,o=Object.getOwnPropertyDescriptor,s=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===i.call(e)},l=function(e){if(!e||"[object Object]"!==i.call(e))return!1;var t,n=r.call(e,"constructor"),a=e.constructor&&e.constructor.prototype&&r.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!a)return!1;for(t in e);return void 0===t||r.call(e,t)},c=function(e,t){a&&"__proto__"===t.name?a(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},u=function(e,t){if("__proto__"===t){if(!r.call(e,t))return;else if(o)return o(e,t).value}return e[t]};t.exports=function e(){var t,n,r,i,a,o,h=arguments[0],p=1,d=arguments.length,m=!1;for("boolean"==typeof h&&(m=h,h=arguments[1]||{},p=2),(null==h||"object"!=typeof h&&"function"!=typeof h)&&(h={});p<d;++p)if(t=arguments[p],null!=t)for(n in t)r=u(h,n),h!==(i=u(t,n))&&(m&&i&&(l(i)||(a=s(i)))?(a?(a=!1,o=r&&s(r)?r:[]):o=r&&l(r)?r:{},c(h,{name:n,newValue:e(m,o,i)})):void 0!==i&&c(h,{name:n,newValue:i}));return h}},67034,(e,t,n)=>{!function(){var e={675:function(e,t){"use strict";t.byteLength=function(e){var t=l(e),n=t[0],r=t[1];return(n+r)*3/4-r},t.toByteArray=function(e){var t,n,a=l(e),o=a[0],s=a[1],c=new i((o+s)*3/4-s),u=0,h=s>0?o-4:o;for(n=0;n<h;n+=4)t=r[e.charCodeAt(n)]<<18|r[e.charCodeAt(n+1)]<<12|r[e.charCodeAt(n+2)]<<6|r[e.charCodeAt(n+3)],c[u++]=t>>16&255,c[u++]=t>>8&255,c[u++]=255&t;return 2===s&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,c[u++]=255&t),1===s&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,c[u++]=t>>8&255,c[u++]=255&t),c},t.fromByteArray=function(e){for(var t,r=e.length,i=r%3,a=[],o=0,s=r-i;o<s;o+=16383)a.push(function(e,t,r){for(var i,a=[],o=t;o<r;o+=3)i=(e[o]<<16&0xff0000)+(e[o+1]<<8&65280)+(255&e[o+2]),a.push(n[i>>18&63]+n[i>>12&63]+n[i>>6&63]+n[63&i]);return a.join("")}(e,o,o+16383>s?s:o+16383));return 1===i?a.push(n[(t=e[r-1])>>2]+n[t<<4&63]+"=="):2===i&&a.push(n[(t=(e[r-2]<<8)+e[r-1])>>10]+n[t>>4&63]+n[t<<2&63]+"="),a.join("")};for(var n=[],r=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,s=a.length;o<s;++o)n[o]=a[o],r[a.charCodeAt(o)]=o;function l(e){var t=e.length;if(t%4>0)throw Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");-1===n&&(n=t);var r=n===t?0:4-n%4;return[n,r]}r[45]=62,r[95]=63},72:function(e,t,n){"use strict";var r=n(675),i=n(783),a="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function o(e){if(e>0x7fffffff)throw RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,s.prototype),t}function s(e,t,n){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return u(e)}return l(e,t,n)}function l(e,t,n){if("string"==typeof e){var r=e,i=t;if(("string"!=typeof i||""===i)&&(i="utf8"),!s.isEncoding(i))throw TypeError("Unknown encoding: "+i);var a=0|d(r,i),l=o(a),c=l.write(r,i);return c!==a&&(l=l.slice(0,c)),l}if(ArrayBuffer.isView(e))return h(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(N(e,ArrayBuffer)||e&&N(e.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(N(e,SharedArrayBuffer)||e&&N(e.buffer,SharedArrayBuffer)))return function(e,t,n){var r;if(t<0||e.byteLength<t)throw RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(r=void 0===t&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,t):new Uint8Array(e,t,n),s.prototype),r}(e,t,n);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');var u=e.valueOf&&e.valueOf();if(null!=u&&u!==e)return s.from(u,t,n);var m=function(e){if(s.isBuffer(e)){var t=0|p(e.length),n=o(t);return 0===n.length||e.copy(n,0,0,t),n}return void 0!==e.length?"number"!=typeof e.length||function(e){return e!=e}(e.length)?o(0):h(e):"Buffer"===e.type&&Array.isArray(e.data)?h(e.data):void 0}(e);if(m)return m;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return s.from(e[Symbol.toPrimitive]("string"),t,n);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function c(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function u(e){return c(e),o(e<0?0:0|p(e))}function h(e){for(var t=e.length<0?0:0|p(e.length),n=o(t),r=0;r<t;r+=1)n[r]=255&e[r];return n}t.Buffer=s,t.SlowBuffer=function(e){return+e!=e&&(e=0),s.alloc(+e)},t.INSPECT_MAX_BYTES=50,t.kMaxLength=0x7fffffff,s.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),s.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}}),s.poolSize=8192,s.from=function(e,t,n){return l(e,t,n)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array),s.alloc=function(e,t,n){return(c(e),e<=0)?o(e):void 0!==t?"string"==typeof n?o(e).fill(t,n):o(e).fill(t):o(e)},s.allocUnsafe=function(e){return u(e)},s.allocUnsafeSlow=function(e){return u(e)};function p(e){if(e>=0x7fffffff)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function d(e,t){if(s.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||N(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return C(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return _(e).length;default:if(i)return r?-1:C(e).length;t=(""+t).toLowerCase(),i=!0}}function m(e,t,n){var i,a,o,s=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===n||n>this.length)&&(n=this.length),n<=0||(n>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i="",a=t;a<n;++a)i+=E[e[a]];return i}(this,t,n);case"utf8":case"utf-8":return b(this,t,n);case"ascii":return function(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}(this,t,n);case"latin1":case"binary":return function(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}(this,t,n);case"base64":return i=this,a=t,o=n,0===a&&o===i.length?r.fromByteArray(i):r.fromByteArray(i.slice(a,o));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(e,t,n){for(var r=e.slice(t,n),i="",a=0;a<r.length;a+=2)i+=String.fromCharCode(r[a]+256*r[a+1]);return i}(this,t,n);default:if(s)throw TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),s=!0}}function f(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function g(e,t,n,r,i){var a;if(0===e.length)return -1;if("string"==typeof n?(r=n,n=0):n>0x7fffffff?n=0x7fffffff:n<-0x80000000&&(n=-0x80000000),(a=n*=1)!=a&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length)if(i)return -1;else n=e.length-1;else if(n<0)if(!i)return -1;else n=0;if("string"==typeof t&&(t=s.from(t,r)),s.isBuffer(t))return 0===t.length?-1:y(e,t,n,r,i);if("number"==typeof t){if(t&=255,"function"==typeof Uint8Array.prototype.indexOf)if(i)return Uint8Array.prototype.indexOf.call(e,t,n);else return Uint8Array.prototype.lastIndexOf.call(e,t,n);return y(e,[t],n,r,i)}throw TypeError("val must be string, number or Buffer")}function y(e,t,n,r,i){var a,o=1,s=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return -1;o=2,s/=2,l/=2,n/=2}function c(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(i){var u=-1;for(a=n;a<s;a++)if(c(e,a)===c(t,-1===u?0:a-u)){if(-1===u&&(u=a),a-u+1===l)return u*o}else -1!==u&&(a-=a-u),u=-1}else for(n+l>s&&(n=s-l),a=n;a>=0;a--){for(var h=!0,p=0;p<l;p++)if(c(e,a+p)!==c(t,p)){h=!1;break}if(h)return a}return -1}s.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==s.prototype},s.compare=function(e,t){if(N(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),N(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(e)||!s.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var n=e.length,r=t.length,i=0,a=Math.min(n,r);i<a;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:+(r<n)},s.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},s.concat=function(e,t){if(!Array.isArray(e))throw TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return s.alloc(0);if(void 0===t)for(n=0,t=0;n<e.length;++n)t+=e[n].length;var n,r=s.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var a=e[n];if(N(a,Uint8Array)&&(a=s.from(a)),!s.isBuffer(a))throw TypeError('"list" argument must be an Array of Buffers');a.copy(r,i),i+=a.length}return r},s.byteLength=d,s.prototype._isBuffer=!0,s.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)f(this,t,t+1);return this},s.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)f(this,t,t+3),f(this,t+1,t+2);return this},s.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)f(this,t,t+7),f(this,t+1,t+6),f(this,t+2,t+5),f(this,t+3,t+4);return this},s.prototype.toString=function(){var e=this.length;return 0===e?"":0==arguments.length?b(this,0,e):m.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(e){if(!s.isBuffer(e))throw TypeError("Argument must be a Buffer");return this===e||0===s.compare(this,e)},s.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(e+=" ... "),"<Buffer "+e+">"},a&&(s.prototype[a]=s.prototype.inspect),s.prototype.compare=function(e,t,n,r,i){if(N(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return -1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,i>>>=0,this===e)return 0;for(var a=i-r,o=n-t,l=Math.min(a,o),c=this.slice(r,i),u=e.slice(t,n),h=0;h<l;++h)if(c[h]!==u[h]){a=c[h],o=u[h];break}return a<o?-1:+(o<a)},s.prototype.includes=function(e,t,n){return -1!==this.indexOf(e,t,n)},s.prototype.indexOf=function(e,t,n){return g(this,e,t,n,!0)},s.prototype.lastIndexOf=function(e,t,n){return g(this,e,t,n,!1)};function b(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var a,o,s,l,c=e[i],u=null,h=c>239?4:c>223?3:c>191?2:1;if(i+h<=n)switch(h){case 1:c<128&&(u=c);break;case 2:(192&(a=e[i+1]))==128&&(l=(31&c)<<6|63&a)>127&&(u=l);break;case 3:a=e[i+1],o=e[i+2],(192&a)==128&&(192&o)==128&&(l=(15&c)<<12|(63&a)<<6|63&o)>2047&&(l<55296||l>57343)&&(u=l);break;case 4:a=e[i+1],o=e[i+2],s=e[i+3],(192&a)==128&&(192&o)==128&&(192&s)==128&&(l=(15&c)<<18|(63&a)<<12|(63&o)<<6|63&s)>65535&&l<1114112&&(u=l)}null===u?(u=65533,h=1):u>65535&&(u-=65536,r.push(u>>>10&1023|55296),u=56320|1023&u),r.push(u),i+=h}var p=r,d=p.length;if(d<=4096)return String.fromCharCode.apply(String,p);for(var m="",f=0;f<d;)m+=String.fromCharCode.apply(String,p.slice(f,f+=4096));return m}function v(e,t,n){if(e%1!=0||e<0)throw RangeError("offset is not uint");if(e+t>n)throw RangeError("Trying to access beyond buffer length")}function x(e,t,n,r,i,a){if(!s.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<a)throw RangeError('"value" argument is out of bounds');if(n+r>e.length)throw RangeError("Index out of range")}function k(e,t,n,r,i,a){if(n+r>e.length||n<0)throw RangeError("Index out of range")}function w(e,t,n,r,a){return t*=1,n>>>=0,a||k(e,t,n,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,n,r,23,4),n+4}function S(e,t,n,r,a){return t*=1,n>>>=0,a||k(e,t,n,8,17976931348623157e292,-17976931348623157e292),i.write(e,t,n,r,52,8),n+8}s.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else if(isFinite(t))t>>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var i,a,o,s,l,c,u,h,p=this.length-t;if((void 0===n||n>p)&&(n=p),e.length>0&&(n<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var d=!1;;)switch(r){case"hex":return function(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;var a=t.length;r>a/2&&(r=a/2);for(var o=0;o<r;++o){var s,l=parseInt(t.substr(2*o,2),16);if((s=l)!=s)break;e[n+o]=l}return o}(this,e,t,n);case"utf8":case"utf-8":return i=t,a=n,M(C(e,this.length-i),this,i,a);case"ascii":return o=t,s=n,M(T(e),this,o,s);case"latin1":case"binary":return function(e,t,n,r){return M(T(t),e,n,r)}(this,e,t,n);case"base64":return l=t,c=n,M(_(e),this,l,c);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return u=t,h=n,M(function(e,t){for(var n,r,i=[],a=0;a<e.length&&!((t-=2)<0);++a)r=(n=e.charCodeAt(a))>>8,i.push(n%256),i.push(r);return i}(e,this.length-u),this,u,h);default:if(d)throw TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),d=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},s.prototype.slice=function(e,t){var n=this.length;e=~~e,t=void 0===t?n:~~t,e<0?(e+=n)<0&&(e=0):e>n&&(e=n),t<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e);var r=this.subarray(e,t);return Object.setPrototypeOf(r,s.prototype),r},s.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||v(e,t,this.length);for(var r=this[e],i=1,a=0;++a<t&&(i*=256);)r+=this[e+a]*i;return r},s.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||v(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},s.prototype.readUInt8=function(e,t){return e>>>=0,t||v(e,1,this.length),this[e]},s.prototype.readUInt16LE=function(e,t){return e>>>=0,t||v(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUInt16BE=function(e,t){return e>>>=0,t||v(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUInt32LE=function(e,t){return e>>>=0,t||v(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+0x1000000*this[e+3]},s.prototype.readUInt32BE=function(e,t){return e>>>=0,t||v(e,4,this.length),0x1000000*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||v(e,t,this.length);for(var r=this[e],i=1,a=0;++a<t&&(i*=256);)r+=this[e+a]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*t)),r},s.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||v(e,t,this.length);for(var r=t,i=1,a=this[e+--r];r>0&&(i*=256);)a+=this[e+--r]*i;return a>=(i*=128)&&(a-=Math.pow(2,8*t)),a},s.prototype.readInt8=function(e,t){return(e>>>=0,t||v(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},s.prototype.readInt16LE=function(e,t){e>>>=0,t||v(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?0xffff0000|n:n},s.prototype.readInt16BE=function(e,t){e>>>=0,t||v(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?0xffff0000|n:n},s.prototype.readInt32LE=function(e,t){return e>>>=0,t||v(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return e>>>=0,t||v(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readFloatLE=function(e,t){return e>>>=0,t||v(e,4,this.length),i.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return e>>>=0,t||v(e,4,this.length),i.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return e>>>=0,t||v(e,8,this.length),i.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return e>>>=0,t||v(e,8,this.length),i.read(this,e,!1,52,8)},s.prototype.writeUIntLE=function(e,t,n,r){if(e*=1,t>>>=0,n>>>=0,!r){var i=Math.pow(2,8*n)-1;x(this,e,t,n,i,0)}var a=1,o=0;for(this[t]=255&e;++o<n&&(a*=256);)this[t+o]=e/a&255;return t+n},s.prototype.writeUIntBE=function(e,t,n,r){if(e*=1,t>>>=0,n>>>=0,!r){var i=Math.pow(2,8*n)-1;x(this,e,t,n,i,0)}var a=n-1,o=1;for(this[t+a]=255&e;--a>=0&&(o*=256);)this[t+a]=e/o&255;return t+n},s.prototype.writeUInt8=function(e,t,n){return e*=1,t>>>=0,n||x(this,e,t,1,255,0),this[t]=255&e,t+1},s.prototype.writeUInt16LE=function(e,t,n){return e*=1,t>>>=0,n||x(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeUInt16BE=function(e,t,n){return e*=1,t>>>=0,n||x(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeUInt32LE=function(e,t,n){return e*=1,t>>>=0,n||x(this,e,t,4,0xffffffff,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},s.prototype.writeUInt32BE=function(e,t,n){return e*=1,t>>>=0,n||x(this,e,t,4,0xffffffff,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeIntLE=function(e,t,n,r){if(e*=1,t>>>=0,!r){var i=Math.pow(2,8*n-1);x(this,e,t,n,i-1,-i)}var a=0,o=1,s=0;for(this[t]=255&e;++a<n&&(o*=256);)e<0&&0===s&&0!==this[t+a-1]&&(s=1),this[t+a]=(e/o|0)-s&255;return t+n},s.prototype.writeIntBE=function(e,t,n,r){if(e*=1,t>>>=0,!r){var i=Math.pow(2,8*n-1);x(this,e,t,n,i-1,-i)}var a=n-1,o=1,s=0;for(this[t+a]=255&e;--a>=0&&(o*=256);)e<0&&0===s&&0!==this[t+a+1]&&(s=1),this[t+a]=(e/o|0)-s&255;return t+n},s.prototype.writeInt8=function(e,t,n){return e*=1,t>>>=0,n||x(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},s.prototype.writeInt16LE=function(e,t,n){return e*=1,t>>>=0,n||x(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeInt16BE=function(e,t,n){return e*=1,t>>>=0,n||x(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeInt32LE=function(e,t,n){return e*=1,t>>>=0,n||x(this,e,t,4,0x7fffffff,-0x80000000),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},s.prototype.writeInt32BE=function(e,t,n){return e*=1,t>>>=0,n||x(this,e,t,4,0x7fffffff,-0x80000000),e<0&&(e=0xffffffff+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeFloatLE=function(e,t,n){return w(this,e,t,!0,n)},s.prototype.writeFloatBE=function(e,t,n){return w(this,e,t,!1,n)},s.prototype.writeDoubleLE=function(e,t,n){return S(this,e,t,!0,n)},s.prototype.writeDoubleBE=function(e,t,n){return S(this,e,t,!1,n)},s.prototype.copy=function(e,t,n,r){if(!s.isBuffer(e))throw TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n||0===e.length||0===this.length)return 0;if(t<0)throw RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw RangeError("Index out of range");if(r<0)throw RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i=r-n;if(this===e&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(t,n,r);else if(this===e&&n<t&&t<r)for(var a=i-1;a>=0;--a)e[a+t]=this[a+n];else Uint8Array.prototype.set.call(e,this.subarray(n,r),t);return i},s.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),void 0!==r&&"string"!=typeof r)throw TypeError("encoding must be a string");if("string"==typeof r&&!s.isEncoding(r))throw TypeError("Unknown encoding: "+r);if(1===e.length){var i,a=e.charCodeAt(0);("utf8"===r&&a<128||"latin1"===r)&&(e=a)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw RangeError("Out of range index");if(n<=t)return this;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i<n;++i)this[i]=e;else{var o=s.isBuffer(e)?e:s.from(e,r),l=o.length;if(0===l)throw TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<n-t;++i)this[i+t]=o[i%l]}return this};var A=/[^+/0-9A-Za-z-_]/g;function C(e,t){t=t||1/0;for(var n,r=e.length,i=null,a=[],o=0;o<r;++o){if((n=e.charCodeAt(o))>55295&&n<57344){if(!i){if(n>56319||o+1===r){(t-=3)>-1&&a.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&a.push(239,191,189),i=n;continue}n=(i-55296<<10|n-56320)+65536}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;a.push(n>>12|224,n>>6&63|128,63&n|128)}else if(n<1114112){if((t-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}else throw Error("Invalid code point")}return a}function T(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}function _(e){return r.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(A,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function M(e,t,n,r){for(var i=0;i<r&&!(i+n>=t.length)&&!(i>=e.length);++i)t[i+n]=e[i];return i}function N(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}var E=function(){for(var e="0123456789abcdef",t=Array(256),n=0;n<16;++n)for(var r=16*n,i=0;i<16;++i)t[r+i]=e[n]+e[i];return t}()},783:function(e,t){t.read=function(e,t,n,r,i){var a,o,s=8*i-r-1,l=(1<<s)-1,c=l>>1,u=-7,h=n?i-1:0,p=n?-1:1,d=e[t+h];for(h+=p,a=d&(1<<-u)-1,d>>=-u,u+=s;u>0;a=256*a+e[t+h],h+=p,u-=8);for(o=a&(1<<-u)-1,a>>=-u,u+=r;u>0;o=256*o+e[t+h],h+=p,u-=8);if(0===a)a=1-c;else{if(a===l)return o?NaN:1/0*(d?-1:1);o+=Math.pow(2,r),a-=c}return(d?-1:1)*o*Math.pow(2,a-r)},t.write=function(e,t,n,r,i,a){var o,s,l,c=8*a-i-1,u=(1<<c)-1,h=u>>1,p=5960464477539062e-23*(23===i),d=r?0:a-1,m=r?1:-1,f=+(t<0||0===t&&1/t<0);for(isNaN(t=Math.abs(t))||t===1/0?(s=+!!isNaN(t),o=u):(o=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-o))<1&&(o--,l*=2),o+h>=1?t+=p/l:t+=p*Math.pow(2,1-h),t*l>=2&&(o++,l/=2),o+h>=u?(s=0,o=u):o+h>=1?(s=(t*l-1)*Math.pow(2,i),o+=h):(s=t*Math.pow(2,h-1)*Math.pow(2,i),o=0));i>=8;e[n+d]=255&s,d+=m,s/=256,i-=8);for(o=o<<i|s,c+=i;c>0;e[n+d]=255&o,d+=m,o/=256,c-=8);e[n+d-m]|=128*f}}},n={};function r(t){var i=n[t];if(void 0!==i)return i.exports;var a=n[t]={exports:{}},o=!0;try{e[t](a,a.exports,r),o=!1}finally{o&&delete n[t]}return a.exports}r.ab="/ROOT/node_modules/next/dist/compiled/buffer/",t.exports=r(72)}()},41130,e=>{"use strict";let t,n,r;e.s(["BridgeDebugApp",()=>mP],41130);var i,a,o,s,l,c,u,h,p,d,m,f,g,y,b,v,x,k,w,S=e.i(47167),A=e.i(18050),C=e.i(71645),T=e.i(18566),_=e.i(38991),M=e.i(32220),N=e.i(87243),E=e.i(50711),z=e.i(36845),I=e.i(2531),R=e.i(92413),j=e.i(40713),L=e.i(45792),P=e.i(13354),B=e.i(68499),O=e.i(55242);function D(e){let{open:t,onOpenChange:n,variant:r,wsUrl:i,apiBase:a,agent:o,onNotifyReloadAgentConfig:s}=e,l=(0,_.useAppStore)(e=>e.setStatus),c=(0,_.useAppStore)(e=>e.bridgeReady),u="tools"===r?"工具管理":"MCP 管理",h="tools"===r?"当前无可管理的 runtime 工具文件":"当前无可管理的 mcp-runtime 包",[p,d]=(0,C.useState)(""),[m,f]=(0,C.useState)([]),[g,y]=(0,C.useState)(!1),[b,v]=(0,C.useState)(null),[x,k]=(0,C.useState)(!1),w=(0,C.useRef)(null),S=(0,C.useCallback)(()=>{try{null==s||s()}catch(e){}},[s]),T=(0,C.useCallback)(async()=>{y(!0),v(null),d("加载中…");try{let e="tools"===r?(0,z.buildToolsRuntimeFilesUrl)(i,a,o):(0,z.buildMcpRuntimeFilesUrl)(i,a,o),t=await (0,I.get)(e),n="tools"===r?"string"==typeof t.runtimeToolsDir?t.runtimeToolsDir:".ws-agents/tools-runtime":"string"==typeof t.mcpRuntimeDir?t.mcpRuntimeDir:".ws-agents/mcp-runtime",s=Array.isArray(t.items)?t.items:[],l=[];for(let e of s)e&&"object"==typeof e&&"string"==typeof e.id&&e.id.trim()&&l.push({id:e.id.trim(),entryType:e.entryType,fileCount:e.fileCount,hasMcpJson:e.hasMcpJson});f(l),d("".concat(n," · 共 ").concat(l.length," 个").concat("tools"===r?"工具":"包"))}catch(e){d("加载失败"),f([]),v("加载失败: ".concat(e)),l("加载 ".concat(u," 列表失败"),c?"ready":"")}finally{y(!1)}},[r,i,a,o,u,c,l]);(0,C.useEffect)(()=>{t&&T()},[t,T]);let M=(0,C.useCallback)(()=>{n(!1)},[n]),N=(0,C.useCallback)(e=>{S();let t="tools"===r?(0,z.buildToolsRuntimeExportUrl)(i,a,o,e):(0,z.buildMcpRuntimeExportUrl)(i,a,o,e);window.open(t,"_blank","noopener")},[r,i,a,o,S]),E=(0,C.useCallback)(async e=>{if(!await (0,B.confirmAlertDialog)({title:"确认删除".concat("tools"===r?"工具":" MCP 包","?"),description:e,confirmText:"删除",cancelText:"取消"}))return;let t="tools"===r?(0,z.buildToolsRuntimeDeleteUrl)(i,a,o,e):(0,z.buildMcpRuntimeDeleteUrl)(i,a,o,e);try{await (0,I.del)(t),l("tools"===r?"工具文件已删除":"MCP 包已删除",c?"ready":""),S(),await T()}catch(e){P.appToast.error("删除失败:".concat(e instanceof Error?e.message:String(e)))}},[r,i,a,o,S,T,c,l]),R=(0,C.useCallback)(()=>{let e=w.current;e&&(e.value="",e.click())},[]),j=(0,C.useCallback)(async e=>{if(!e)return;let t="tools"===r?(0,z.buildToolsRuntimeImportUrl)(i,a,o):(0,z.buildMcpRuntimeImportUrl)(i,a,o),n=new FormData;n.append("file",e),k(!0);try{let e=await (0,I.post)(t,n,{type:"file"}),i=Number(e.imported||0),a=Number(e.overwritten||0),o=Array.isArray(e.rejected)?e.rejected.length:0;S(),l("tools"===r?"工具 zip 已导入":"MCP zip 已导入",c?"ready":""),P.appToast.success("导入完成:导入 ".concat(i,",覆盖 ").concat(a)+(o>0?",拒绝 ".concat(o):"")),await T()}catch(e){P.appToast.error("导入失败:".concat(e instanceof Error?e.message:String(e)))}finally{k(!1)}},[r,i,a,o,S,T,c,l]),L=g?(0,A.jsx)("div",{className:"tool-files-state",children:"加载中…"}):b?(0,A.jsx)("div",{className:"tool-files-state",children:b}):0===m.length?(0,A.jsx)("div",{className:"tool-files-state",children:h}):m.map(e=>{let t="mcp"===r&&!0!==e.hasMcpJson;return(0,A.jsxs)("div",{className:"tool-files-item hover:bg-[var(--ds-item-hover)]",children:[(0,A.jsxs)("div",{className:"tool-files-main",children:[(0,A.jsx)("div",{className:"tool-files-name",title:e.id,children:e.id}),(0,A.jsx)("div",{className:"tool-files-sub",children:"tools"===r?function(e){let t=Number(e.fileCount||0),n="directory"===e.entryType?"目录工具包":"单文件工具",r=Number.isFinite(t)&&t>0?t:1;return"".concat(n," · 文件数 ").concat(r," · 导出内容:带一层工具目录的 zip 包")}(e):function(e){let t=!0===e.hasMcpJson,n=Number(e.fileCount||0);return"MCP 包目录"+(t?" · 含 mcp.json":" · 缺少 mcp.json")+" · 可导出文件 "+(Number.isFinite(n)&&n>0?n:0)+" · zip 仅含编译产物(mcp.json / index.js)"}(e)})]}),(0,A.jsxs)("div",{className:"runtime-pkg-row-actions",children:[(0,A.jsx)("button",{type:"button",className:"runtime-pkg-row-action",onClick:()=>void E(e.id),children:"删除"}),(0,A.jsx)("button",{type:"button",className:"runtime-pkg-row-action",disabled:t,onClick:()=>{t||N(e.id)},children:"导出"})]})]},e.id)});return(0,A.jsxs)(O.AppDialog,{open:t,onOpenChange:n,title:u,footer:(0,A.jsx)("button",{type:"button",className:"btn-agent-md-cancel",onClick:M,children:"关闭"}),children:[(0,A.jsxs)("div",{className:"mb-3 flex items-center justify-between gap-3",children:[(0,A.jsx)("p",{className:"tool-files-meta",children:p}),(0,A.jsx)("div",{children:(0,A.jsx)("button",{type:"button",className:"btn-system-settings",disabled:x,onClick:R,children:"导入 zip"})})]}),(0,A.jsx)("div",{className:"tool-files-list",style:{maxHeight:"min(62vh, 560px)",overflowY:"auto"},children:L}),(0,A.jsx)("input",{ref:w,type:"file",accept:".zip,application/zip",className:"hidden","aria-hidden":!0,onChange:e=>{var t,n;j(null!=(n=null==(t=e.target.files)?void 0:t[0])?n:null),e.target.value=""}})]})}var F=e.i(18900);function q(e){let{open:t,onOpenChange:n,wsUrl:r,apiBase:i,agent:a}=e,o=(0,_.useAppStore)(e=>e.setStatus),s=(0,_.useAppStore)(e=>e.bridgeReady),[l,c]=(0,C.useState)(!1),[u,h]=(0,C.useState)(!1),[p,d]=(0,C.useState)(""),[m,f]=(0,C.useState)({}),g=(0,C.useCallback)((e,t)=>{f(n=>({...n,[e]:t}))},[]);(0,C.useEffect)(()=>{if(!t)return;let e=!1;return c(!0),d(""),f({}),(0,I.get)((0,z.buildSystemEnvApiUrl)(r,i,a)).then(t=>{if(e)return;let n="string"==typeof t.content?t.content:"";f({...(0,F.parseEnvContentToMap)(n)}),d("string"==typeof t.path?t.path:"")}).catch(t=>{e||(P.appToast.error("加载 .env 失败:".concat(t instanceof Error?t.message:String(t))),n(!1))}).finally(()=>{e||c(!1)}),()=>{e=!0}},[t,r,i,a,n]);let y=(0,C.useCallback)(()=>{n(!1)},[n]),b=(0,C.useCallback)(()=>{let e=(0,F.buildEnvFileContentFromForm)([],m);h(!0),(0,I.patch)((0,z.buildSystemEnvApiUrl)(r,i,a),{content:e}).then(()=>{o(".env 已保存(重启 ws-server 后进程环境变量才会更新)",s?"ready":""),P.appToast.success("已保存项目根目录 .env。\n\n注意:已运行的 ws-server 进程不会自动重载环境变量,若需生效请重启服务或在新会话中验证。"),n(!1)}).catch(e=>{P.appToast.error("保存 .env 失败:".concat(e instanceof Error?e.message:String(e)))}).finally(()=>{h(!1)})},[m,r,i,a,s,o,n]);return(0,A.jsx)(O.AppDialog,{open:t,onOpenChange:n,title:(0,A.jsxs)("div",{className:"min-w-0",children:[(0,A.jsx)("span",{children:"环境变量"}),p?(0,A.jsx)("p",{className:"m-0 text-xs font-normal text-[var(--ds-muted)]",children:p}):null]}),footer:(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)("button",{type:"button",className:"btn-agent-md-cancel",onClick:y,children:"取消"}),(0,A.jsx)("button",{type:"button",className:"btn-primary",disabled:l||u,onClick:()=>void b(),children:"保存"})]}),children:(0,A.jsx)("div",{className:"env-form-table-body","aria-busy":l,children:l?(0,A.jsx)("div",{className:"tool-files-state",children:"加载中…"}):(0,A.jsx)(A.Fragment,{children:Object.keys(m).sort().map(e=>{var t;return(0,A.jsxs)("div",{className:"env-form-row",children:[(0,A.jsx)("label",{className:"env-form-label",htmlFor:"env-field-".concat(e),children:e}),(0,A.jsx)("div",{className:"env-form-field",children:(0,A.jsx)("input",{id:"env-field-".concat(e),type:"text",className:"env-form-value",spellCheck:!1,autoComplete:"off","data-env-key":e,value:null!=(t=m[e])?t:"",onChange:t=>g(e,t.target.value)})})]},e)})})})})}var H=e.i(72064),U=e.i(75157);function G(e){let{className:t}=e;return(0,A.jsx)(H.default,{name:"Loader2",size:16,className:(0,U.cn)("animate-spin text-muted-foreground",t)})}var W=e.i(46798),V=e.i(99749);function $(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var X=$(),Y={exec:()=>null};function J(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n="string"==typeof e?e:e.source,r={replace:(e,t)=>{let i="string"==typeof t?t:t.source;return i=i.replace(K.caret,"$1"),n=n.replace(e,i),r},getRegex:()=>new RegExp(n,t)};return r}var Z=(()=>{try{return!!RegExp("(?<=1)(?<!1)")}catch(e){return!1}})(),K={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:RegExp("[\\p{L}\\p{N}]","u"),escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp("^( {0,3}".concat(e,")((?:[ ][^\\n]*)?(?:\\n|$))")),nextBulletRegex:e=>new RegExp("^ {0,".concat(Math.min(3,e-1),"}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))")),hrRegex:e=>new RegExp("^ {0,".concat(Math.min(3,e-1),"}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)")),fencesBeginRegex:e=>new RegExp("^ {0,".concat(Math.min(3,e-1),"}(?:```|~~~)")),headingBeginRegex:e=>new RegExp("^ {0,".concat(Math.min(3,e-1),"}#")),htmlBeginRegex:e=>RegExp("^ {0,".concat(Math.min(3,e-1),"}<(?:[a-z].*>|!--)"),"i"),blockquoteBeginRegex:e=>new RegExp("^ {0,".concat(Math.min(3,e-1),"}>"))},Q=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,ee=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,et=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,en=J(et).replace(/bull/g,ee).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),er=J(et).replace(/bull/g,ee).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),ei=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,ea=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,eo=J(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",ea).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),es=J(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,ee).getRegex(),el="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",ec=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,eu=J("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",ec).replace("tag",el).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),eh=J(ei).replace("hr",Q).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",el).getRegex(),ep={blockquote:J(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",eh).getRegex(),code:/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,def:eo,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:Q,html:eu,lheading:en,list:es,newline:/^(?:[ \t]*(?:\n|$))+/,paragraph:eh,table:Y,text:/^[^\n]+/},ed=J("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Q).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",el).getRegex(),em={...ep,lheading:er,table:ed,paragraph:J(ei).replace("hr",Q).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",ed).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",el).getRegex()},ef={...ep,html:J("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",ec).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Y,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:J(ei).replace("hr",Q).replace("heading"," *#{1,6} *[^\n]").replace("lheading",en).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},eg=/^( {2,}|\\)\n(?!\s*$)/,ey=RegExp("[\\p{P}\\p{S}]","u"),eb=RegExp("[\\s\\p{P}\\p{S}]","u"),ev=RegExp("[^\\s\\p{P}\\p{S}]","u"),ex=J(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,eb).getRegex(),ek=RegExp("(?!~)[\\p{P}\\p{S}]","u"),ew=RegExp("(?!~)[\\s\\p{P}\\p{S}]","u"),eS=RegExp("(?:[^\\s\\p{P}\\p{S}]|~)","u"),eA=J(/link|precode-code|html/,"g").replace("link",RegExp("\\[(?:[^\\[\\]`]|(?<a>`+)[^`]+\\k<a>(?!`))*?\\]\\((?:\\\\[\\s\\S]|[^\\\\\\(\\)]|\\((?:\\\\[\\s\\S]|[^\\\\\\(\\)])*\\))*\\)")).replace("precode-",Z?"(?<!`)()":"(^^|[^`])").replace("code",RegExp("(?<b>`+)[^`]+\\k<b>(?!`)")).replace("html",/<(?! )[^<>]*?>/).getRegex(),eC=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,eT=J(eC,"u").replace(/punct/g,ey).getRegex(),e_=J(eC,"u").replace(/punct/g,ek).getRegex(),eM="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",eN=J(eM,"gu").replace(/notPunctSpace/g,ev).replace(/punctSpace/g,eb).replace(/punct/g,ey).getRegex(),eE=J(eM,"gu").replace(/notPunctSpace/g,eS).replace(/punctSpace/g,ew).replace(/punct/g,ek).getRegex(),ez=J("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,ev).replace(/punctSpace/g,eb).replace(/punct/g,ey).getRegex(),eI=J(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,ey).getRegex(),eR=J("^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)","gu").replace(/notPunctSpace/g,ev).replace(/punctSpace/g,eb).replace(/punct/g,ey).getRegex(),ej=J(/\\(punct)/,"gu").replace(/punct/g,ey).getRegex(),eL=J(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),eP=J(ec).replace("(?:-->|$)","-->").getRegex(),eB=J("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",eP).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),eO=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,eD=J(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",eO).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),eF=J(/^!?\[(label)\]\[(ref)\]/).replace("label",eO).replace("ref",ea).getRegex(),eq=J(/^!?\[(ref)\](?:\[\])?/).replace("ref",ea).getRegex(),eH=J("reflink|nolink(?!\\()","g").replace("reflink",eF).replace("nolink",eq).getRegex(),eU=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,eG={_backpedal:Y,anyPunctuation:ej,autolink:eL,blockSkip:eA,br:eg,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:Y,delLDelim:Y,delRDelim:Y,emStrongLDelim:eT,emStrongRDelimAst:eN,emStrongRDelimUnd:ez,escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,link:eD,nolink:eq,punctuation:ex,reflink:eF,reflinkSearch:eH,tag:eB,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,url:Y},eW={...eG,link:J(/^!?\[(label)\]\((.*?)\)/).replace("label",eO).getRegex(),reflink:J(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",eO).getRegex()},eV={...eG,emStrongRDelimAst:eE,emStrongLDelim:e_,delLDelim:eI,delRDelim:eR,url:J(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",eU).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:J(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",eU).getRegex()},e$={...eV,br:J(eg).replace("{2,}","*").getRegex(),text:J(eV.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},eX={normal:ep,gfm:em,pedantic:ef},eY={normal:eG,gfm:eV,breaks:e$,pedantic:eW},eJ={"&":"&","<":"<",">":">",'"':""","'":"'"},eZ=e=>eJ[e];function eK(e,t){if(t){if(K.escapeTest.test(e))return e.replace(K.escapeReplace,eZ)}else if(K.escapeTestNoEncode.test(e))return e.replace(K.escapeReplaceNoEncode,eZ);return e}function eQ(e){try{e=encodeURI(e).replace(K.percentDecode,"%")}catch(e){return null}return e}function e0(e,t){var n;let r=e.replace(K.findPipe,(e,t,n)=>{let r=!1,i=t;for(;--i>=0&&"\\"===n[i];)r=!r;return r?"|":" |"}).split(K.splitPipe),i=0;if(r[0].trim()||r.shift(),!(r.length>0)||(null==(n=r.at(-1))?void 0:n.trim())||r.pop(),t)if(r.length>t)r.splice(t);else for(;r.length<t;)r.push("");for(;i<r.length;i++)r[i]=r[i].trim().replace(K.slashPipe,"|");return r}function e1(e,t,n){let r=e.length;if(0===r)return"";let i=0;for(;i<r;){let a=e.charAt(r-i-1);if(a!==t||n)if(a!==t&&n)i++;else break;else i++}return e.slice(0,r-i)}function e4(e){let t=e.split("\n"),n=t.length-1;for(;n>=0&&!t[n].trim();)n--;return t.length-n<=2?e:t.slice(0,n+1).join("\n")}function e5(e,t,n,r,i){let a=t.href,o=t.title||null,s=e[1].replace(i.other.outputLinkReplace,"$1");r.state.inLink=!0;let l={type:"!"===e[0].charAt(0)?"image":"link",raw:n,href:a,title:o,text:s,tokens:r.inlineTokens(s)};return r.state.inLink=!1,l}var e6=class{space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let e=this.options.pedantic?t[0]:e4(t[0]),n=e.replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:e,codeBlockStyle:"indented",text:n}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let e=t[0],n=function(e,t,n){let r=e.match(n.other.indentCodeCompensation);if(null===r)return t;let i=r[1];return t.split("\n").map(e=>{let t=e.match(n.other.beginningSpace);if(null===t)return e;let[r]=t;return r.length>=i.length?e.slice(i.length):e}).join("\n")}(e,t[3]||"",this.rules);return{type:"code",raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:n}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(this.rules.other.endingHash.test(e)){let t=e1(e,"#");(this.options.pedantic||!t||this.rules.other.endingSpaceChar.test(t))&&(e=t.trim())}return{type:"heading",raw:e1(t[0],"\n"),depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:e1(t[0],"\n")}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let e=e1(t[0],"\n").split("\n"),n="",r="",i=[];for(;e.length>0;){let t=!1,a=[],o;for(o=0;o<e.length;o++)if(this.rules.other.blockquoteStart.test(e[o]))a.push(e[o]),t=!0;else if(t)break;else a.push(e[o]);e=e.slice(o);let s=a.join("\n"),l=s.replace(this.rules.other.blockquoteSetextReplace,"\n $1").replace(this.rules.other.blockquoteSetextReplace2,"");n=n?"".concat(n,"\n").concat(s):s,r=r?"".concat(r,"\n").concat(l):l;let c=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(l,i,!0),this.lexer.state.top=c,0===e.length)break;let u=i.at(-1);if((null==u?void 0:u.type)==="code")break;if((null==u?void 0:u.type)==="blockquote"){let t=u.raw+"\n"+e.join("\n"),a=this.blockquote(t);i[i.length-1]=a,n=n.substring(0,n.length-u.raw.length)+a.raw,r=r.substring(0,r.length-u.text.length)+a.text;break}if((null==u?void 0:u.type)==="list"){let t=u.raw+"\n"+e.join("\n"),a=this.list(t);i[i.length-1]=a,n=n.substring(0,n.length-u.raw.length)+a.raw,r=r.substring(0,r.length-u.raw.length)+a.raw,e=t.substring(i.at(-1).raw.length).split("\n");continue}}return{type:"blockquote",raw:n,tokens:i,text:r}}}list(e){let t=this.rules.block.list.exec(e);if(t){let i=t[1].trim(),a=i.length>1,o={type:"list",raw:"",ordered:a,start:a?+i.slice(0,-1):"",loose:!1,items:[]};i=a?"\\d{1,9}\\".concat(i.slice(-1)):"\\".concat(i),this.options.pedantic&&(i=a?i:"[*+-]");let s=this.rules.other.listItemRegex(i),l=!1;for(;e;){let n=!1,r="",i="";if(!(t=s.exec(e))||this.rules.block.hr.test(e))break;r=t[0],e=e.substring(r.length);let a=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=t,r="";for(let t of e)if(" "===t){let e=4-n%4;r+=" ".repeat(e),n+=e}else r+=t,n++;return r}(t[2].split("\n",1)[0],t[1].length),c=e.split("\n",1)[0],u=!a.trim(),h=0;if(this.options.pedantic?(h=2,i=a.trimStart()):u?h=t[1].length+1:(h=(h=a.search(this.rules.other.nonSpaceChar))>4?1:h,i=a.slice(h),h+=t[1].length),u&&this.rules.other.blankLine.test(c)&&(r+=c+"\n",e=e.substring(c.length+1),n=!0),!n){let t=this.rules.other.nextBulletRegex(h),n=this.rules.other.hrRegex(h),o=this.rules.other.fencesBeginRegex(h),s=this.rules.other.headingBeginRegex(h),l=this.rules.other.htmlBeginRegex(h),p=this.rules.other.blockquoteBeginRegex(h);for(;e;){let d=e.split("\n",1)[0],m;if(c=d,m=this.options.pedantic?c=c.replace(this.rules.other.listReplaceNesting," "):c.replace(this.rules.other.tabCharGlobal," "),o.test(c)||s.test(c)||l.test(c)||p.test(c)||t.test(c)||n.test(c))break;if(m.search(this.rules.other.nonSpaceChar)>=h||!c.trim())i+="\n"+m.slice(h);else{if(u||a.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||o.test(a)||s.test(a)||n.test(a))break;i+="\n"+c}u=!c.trim(),r+=d+"\n",e=e.substring(d.length+1),a=m.slice(h)}}o.loose||(l?o.loose=!0:this.rules.other.doubleBlankLine.test(r)&&(l=!0)),o.items.push({type:"list_item",raw:r,task:!!this.options.gfm&&this.rules.other.listIsTask.test(i),loose:!1,text:i,tokens:[]}),o.raw+=r}let c=o.items.at(-1);if(!c)return;for(let e of(c.raw=c.raw.trimEnd(),c.text=c.text.trimEnd(),o.raw=o.raw.trimEnd(),o.items)){if(this.lexer.state.top=!1,e.tokens=this.lexer.blockTokens(e.text,[]),e.task){var n,r;if(e.text=e.text.replace(this.rules.other.listReplaceTask,""),(null==(n=e.tokens[0])?void 0:n.type)==="text"||(null==(r=e.tokens[0])?void 0:r.type)==="paragraph"){e.tokens[0].raw=e.tokens[0].raw.replace(this.rules.other.listReplaceTask,""),e.tokens[0].text=e.tokens[0].text.replace(this.rules.other.listReplaceTask,"");for(let e=this.lexer.inlineQueue.length-1;e>=0;e--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[e].src)){this.lexer.inlineQueue[e].src=this.lexer.inlineQueue[e].src.replace(this.rules.other.listReplaceTask,"");break}}let t=this.rules.other.listTaskCheckbox.exec(e.raw);if(t){let n={type:"checkbox",raw:t[0]+" ",checked:"[ ]"!==t[0]};e.checked=n.checked,o.loose?e.tokens[0]&&["paragraph","text"].includes(e.tokens[0].type)&&"tokens"in e.tokens[0]&&e.tokens[0].tokens?(e.tokens[0].raw=n.raw+e.tokens[0].raw,e.tokens[0].text=n.raw+e.tokens[0].text,e.tokens[0].tokens.unshift(n)):e.tokens.unshift({type:"paragraph",raw:n.raw,text:n.raw,tokens:[n]}):e.tokens.unshift(n)}}if(!o.loose){let t=e.tokens.filter(e=>"space"===e.type);o.loose=t.length>0&&t.some(e=>this.rules.other.anyLine.test(e.raw))}}if(o.loose)for(let e of o.items)for(let t of(e.loose=!0,e.tokens))"text"===t.type&&(t.type="paragraph");return o}}html(e){let t=this.rules.block.html.exec(e);if(t){let e=e4(t[0]);return{type:"html",block:!0,raw:e,pre:"pre"===t[1]||"script"===t[1]||"style"===t[1],text:e}}}def(e){let t=this.rules.block.def.exec(e);if(t){let e=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),n=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",r=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:e,raw:e1(t[0],"\n"),href:n,title:r}}}table(e){var t;let n=this.rules.block.table.exec(e);if(!n||!this.rules.other.tableDelimiter.test(n[2]))return;let r=e0(n[1]),i=n[2].replace(this.rules.other.tableAlignChars,"").split("|"),a=(null==(t=n[3])?void 0:t.trim())?n[3].replace(this.rules.other.tableRowBlankLine,"").split("\n"):[],o={type:"table",raw:e1(n[0],"\n"),header:[],align:[],rows:[]};if(r.length===i.length){for(let e of i)this.rules.other.tableAlignRight.test(e)?o.align.push("right"):this.rules.other.tableAlignCenter.test(e)?o.align.push("center"):this.rules.other.tableAlignLeft.test(e)?o.align.push("left"):o.align.push(null);for(let e=0;e<r.length;e++)o.header.push({text:r[e],tokens:this.lexer.inline(r[e]),header:!0,align:o.align[e]});for(let e of a)o.rows.push(e0(e,o.header.length).map((e,t)=>({text:e,tokens:this.lexer.inline(e),header:!1,align:o.align[t]})));return o}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t){let e=t[1].trim();return{type:"heading",raw:e1(t[0],"\n"),depth:"="===t[2].charAt(0)?1:2,text:e,tokens:this.lexer.inline(e)}}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let e="\n"===t[1].charAt(t[1].length-1)?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:e,tokens:this.lexer.inline(e)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let e=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(e)){if(!this.rules.other.endAngleBracket.test(e))return;let t=e1(e.slice(0,-1),"\\");if((e.length-t.length)%2==0)return}else{let e=function(e,t){if(-1===e.indexOf(")"))return -1;let n=0;for(let r=0;r<e.length;r++)if("\\"===e[r])r++;else if("("===e[r])n++;else if(e[r]===t[1]&&--n<0)return r;return n>0?-2:-1}(t[2],"()");if(-2===e)return;if(e>-1){let n=(0===t[0].indexOf("!")?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,n).trim(),t[3]=""}}let n=t[2],r="";if(this.options.pedantic){let e=this.rules.other.pedanticHrefTitle.exec(n);e&&(n=e[1],r=e[3])}else r=t[3]?t[3].slice(1,-1):"";return n=n.trim(),this.rules.other.startAngleBracket.test(n)&&(n=this.options.pedantic&&!this.rules.other.endAngleBracket.test(e)?n.slice(1):n.slice(1,-1)),e5(t,{href:n&&n.replace(this.rules.inline.anyPunctuation,"$1"),title:r&&r.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let e=t[(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," ").toLowerCase()];if(!e){let e=n[0].charAt(0);return{type:"text",raw:e,text:e}}return e5(n,e,n[0],this.lexer,this.rules)}}emStrong(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=this.rules.inline.emStrongLDelim.exec(e);if(!(!r||!r[1]&&!r[2]&&!r[3]&&!r[4]||r[4]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(r[1]||r[3])||!n||this.rules.inline.punctuation.exec(n))){let n=[...r[0]].length-1,i,a,o=n,s=0,l="*"===r[0][0]?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(l.lastIndex=0,t=t.slice(-1*e.length+n);null!==(r=l.exec(t));){if(!(i=r[1]||r[2]||r[3]||r[4]||r[5]||r[6]))continue;if(a=[...i].length,r[3]||r[4]){o+=a;continue}if((r[5]||r[6])&&n%3&&!((n+a)%3)){s+=a;continue}if((o-=a)>0)continue;a=Math.min(a,a+o+s);let t=[...r[0]][0].length,l=e.slice(0,n+r.index+t+a);if(Math.min(n,a)%2){let e=l.slice(1,-1);return{type:"em",raw:l,text:e,tokens:this.lexer.inlineTokens(e)}}let c=l.slice(2,-2);return{type:"strong",raw:l,text:c,tokens:this.lexer.inlineTokens(c)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(this.rules.other.newLineCharGlobal," "),n=this.rules.other.nonSpaceChar.test(e),r=this.rules.other.startingSpaceChar.test(e)&&this.rules.other.endingSpaceChar.test(e);return n&&r&&(e=e.substring(1,e.length-1)),{type:"codespan",raw:t[0],text:e}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=this.rules.inline.delLDelim.exec(e);if(r&&(!r[1]||!n||this.rules.inline.punctuation.exec(n))){let n=[...r[0]].length-1,i,a,o=n,s=this.rules.inline.delRDelim;for(s.lastIndex=0,t=t.slice(-1*e.length+n);null!==(r=s.exec(t));){if(!(i=r[1]||r[2]||r[3]||r[4]||r[5]||r[6])||(a=[...i].length)!==n)continue;if(r[3]||r[4]){o+=a;continue}if((o-=a)>0)continue;a=Math.min(a,a+o);let t=[...r[0]][0].length,s=e.slice(0,n+r.index+t+a),l=s.slice(n,-n);return{type:"del",raw:s,text:l,tokens:this.lexer.inlineTokens(l)}}}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let e,n;return n="@"===t[2]?"mailto:"+(e=t[1]):e=t[1],{type:"link",raw:t[0],text:e,href:n,tokens:[{type:"text",raw:e,text:e}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let e,i;if("@"===t[2])i="mailto:"+(e=t[0]);else{var n,r;let a;do a=t[0],t[0]=null!=(r=null==(n=this.rules.inline._backpedal.exec(t[0]))?void 0:n[0])?r:"";while(a!==t[0])e=t[0],i="www."===t[1]?"http://"+t[0]:t[0]}return{type:"link",raw:t[0],text:e,href:i,tokens:[{type:"text",raw:e,text:e}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let e=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:t[0],escaped:e}}}constructor(e){(0,V._)(this,"options",void 0),(0,V._)(this,"rules",void 0),(0,V._)(this,"lexer",void 0),this.options=e||X}},e3=class e{static get rules(){return{block:eX,inline:eY}}static lex(t,n){return new e(n).lex(t)}static lexInline(t,n){return new e(n).inlineTokens(t)}lex(e){e=e.replace(K.carriageReturn,"\n"),this.blockTokens(e,this.tokens);for(let e=0;e<this.inlineQueue.length;e++){let t=this.inlineQueue[e];this.inlineTokens(t.src,t.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];for(this.tokenizer.lexer=this,this.options.pedantic&&(e=e.replace(K.tabCharGlobal," ").replace(K.spaceLine,""));e;){var r,i,a;let o;if(null==(i=this.options.extensions)||null==(r=i.block)?void 0:r.some(n=>!!(o=n.call({lexer:this},e,t))&&(e=e.substring(o.raw.length),t.push(o),!0)))continue;if(o=this.tokenizer.space(e)){e=e.substring(o.raw.length);let n=t.at(-1);1===o.raw.length&&void 0!==n?n.raw+="\n":t.push(o);continue}if(o=this.tokenizer.code(e)){e=e.substring(o.raw.length);let n=t.at(-1);(null==n?void 0:n.type)==="paragraph"||(null==n?void 0:n.type)==="text"?(n.raw+=(n.raw.endsWith("\n")?"":"\n")+o.raw,n.text+="\n"+o.text,this.inlineQueue.at(-1).src=n.text):t.push(o);continue}if((o=this.tokenizer.fences(e))||(o=this.tokenizer.heading(e))||(o=this.tokenizer.hr(e))||(o=this.tokenizer.blockquote(e))||(o=this.tokenizer.list(e))||(o=this.tokenizer.html(e))){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.def(e)){e=e.substring(o.raw.length);let n=t.at(-1);(null==n?void 0:n.type)==="paragraph"||(null==n?void 0:n.type)==="text"?(n.raw+=(n.raw.endsWith("\n")?"":"\n")+o.raw,n.text+="\n"+o.raw,this.inlineQueue.at(-1).src=n.text):this.tokens.links[o.tag]||(this.tokens.links[o.tag]={href:o.href,title:o.title},t.push(o));continue}if((o=this.tokenizer.table(e))||(o=this.tokenizer.lheading(e))){e=e.substring(o.raw.length),t.push(o);continue}let s=e;if(null==(a=this.options.extensions)?void 0:a.startBlock){let t=1/0,n=e.slice(1),r;this.options.extensions.startBlock.forEach(e=>{"number"==typeof(r=e.call({lexer:this},n))&&r>=0&&(t=Math.min(t,r))}),t<1/0&&t>=0&&(s=e.substring(0,t+1))}if(this.state.top&&(o=this.tokenizer.paragraph(s))){let r=t.at(-1);n&&(null==r?void 0:r.type)==="paragraph"?(r.raw+=(r.raw.endsWith("\n")?"":"\n")+o.raw,r.text+="\n"+o.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=r.text):t.push(o),n=s.length!==e.length,e=e.substring(o.raw.length);continue}if(o=this.tokenizer.text(e)){e=e.substring(o.raw.length);let n=t.at(-1);(null==n?void 0:n.type)==="text"?(n.raw+=(n.raw.endsWith("\n")?"":"\n")+o.raw,n.text+="\n"+o.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=n.text):t.push(o);continue}if(e){let t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw Error(t)}}return this.state.top=!0,t}inline(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e){var t,n,r,i,a,o;let s,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];this.tokenizer.lexer=this;let c=e,u=null;if(this.tokens.links){let e=Object.keys(this.tokens.links);if(e.length>0)for(;null!==(u=this.tokenizer.rules.inline.reflinkSearch.exec(c));)e.includes(u[0].slice(u[0].lastIndexOf("[")+1,-1))&&(c=c.slice(0,u.index)+"["+"a".repeat(u[0].length-2)+"]"+c.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!==(u=this.tokenizer.rules.inline.anyPunctuation.exec(c));)c=c.slice(0,u.index)+"++"+c.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;null!==(u=this.tokenizer.rules.inline.blockSkip.exec(c));)s=u[2]?u[2].length:0,c=c.slice(0,u.index+s)+"["+"a".repeat(u[0].length-s-2)+"]"+c.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);c=null!=(r=null==(n=this.options.hooks)||null==(t=n.emStrongMask)?void 0:t.call({lexer:this},c))?r:c;let h=!1,p="";for(;e;){let t;if(h||(p=""),h=!1,null==(a=this.options.extensions)||null==(i=a.inline)?void 0:i.some(n=>!!(t=n.call({lexer:this},e,l))&&(e=e.substring(t.raw.length),l.push(t),!0)))continue;if((t=this.tokenizer.escape(e))||(t=this.tokenizer.tag(e))||(t=this.tokenizer.link(e))){e=e.substring(t.raw.length),l.push(t);continue}if(t=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(t.raw.length);let n=l.at(-1);"text"===t.type&&(null==n?void 0:n.type)==="text"?(n.raw+=t.raw,n.text+=t.text):l.push(t);continue}if((t=this.tokenizer.emStrong(e,c,p))||(t=this.tokenizer.codespan(e))||(t=this.tokenizer.br(e))||(t=this.tokenizer.del(e,c,p))||(t=this.tokenizer.autolink(e))||!this.state.inLink&&(t=this.tokenizer.url(e))){e=e.substring(t.raw.length),l.push(t);continue}let n=e;if(null==(o=this.options.extensions)?void 0:o.startInline){let t=1/0,r=e.slice(1),i;this.options.extensions.startInline.forEach(e=>{"number"==typeof(i=e.call({lexer:this},r))&&i>=0&&(t=Math.min(t,i))}),t<1/0&&t>=0&&(n=e.substring(0,t+1))}if(t=this.tokenizer.inlineText(n)){e=e.substring(t.raw.length),"_"!==t.raw.slice(-1)&&(p=t.raw.slice(-1)),h=!0;let n=l.at(-1);(null==n?void 0:n.type)==="text"?(n.raw+=t.raw,n.text+=t.text):l.push(t);continue}if(e){let t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw Error(t)}}return l}constructor(e){(0,V._)(this,"tokens",void 0),(0,V._)(this,"options",void 0),(0,V._)(this,"state",void 0),(0,V._)(this,"inlineQueue",void 0),(0,V._)(this,"tokenizer",void 0),this.tokens=[],this.tokens.links=Object.create(null),this.options=e||X,this.options.tokenizer=this.options.tokenizer||new e6,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let t={other:K,block:eX.normal,inline:eY.normal};this.options.pedantic?(t.block=eX.pedantic,t.inline=eY.pedantic):this.options.gfm&&(t.block=eX.gfm,this.options.breaks?t.inline=eY.breaks:t.inline=eY.gfm),this.tokenizer.rules=t}},e2=class{space(e){return""}code(e){var t;let{text:n,lang:r,escaped:i}=e,a=null==(t=(r||"").match(K.notSpaceStart))?void 0:t[0],o=n.replace(K.endingNewline,"")+"\n";return a?'<pre><code class="language-'+eK(a)+'">'+(i?o:eK(o,!0))+"</code></pre>\n":"<pre><code>"+(i?o:eK(o,!0))+"</code></pre>\n"}blockquote(e){let{tokens:t}=e;return"<blockquote>\n".concat(this.parser.parse(t),"</blockquote>\n")}html(e){let{text:t}=e;return t}def(e){return""}heading(e){let{tokens:t,depth:n}=e;return"<h".concat(n,">").concat(this.parser.parseInline(t),"</h").concat(n,">\n")}hr(e){return"<hr>\n"}list(e){let t=e.ordered,n=e.start,r="";for(let t=0;t<e.items.length;t++){let n=e.items[t];r+=this.listitem(n)}let i=t?"ol":"ul";return"<"+i+(t&&1!==n?' start="'+n+'"':"")+">\n"+r+"</"+i+">\n"}listitem(e){return"<li>".concat(this.parser.parse(e.tokens),"</li>\n")}checkbox(e){let{checked:t}=e;return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox"> '}paragraph(e){let{tokens:t}=e;return"<p>".concat(this.parser.parseInline(t),"</p>\n")}table(e){let t="",n="";for(let t=0;t<e.header.length;t++)n+=this.tablecell(e.header[t]);t+=this.tablerow({text:n});let r="";for(let t=0;t<e.rows.length;t++){let i=e.rows[t];n="";for(let e=0;e<i.length;e++)n+=this.tablecell(i[e]);r+=this.tablerow({text:n})}return r&&(r="<tbody>".concat(r,"</tbody>")),"<table>\n<thead>\n"+t+"</thead>\n"+r+"</table>\n"}tablerow(e){let{text:t}=e;return"<tr>\n".concat(t,"</tr>\n")}tablecell(e){let t=this.parser.parseInline(e.tokens),n=e.header?"th":"td";return(e.align?"<".concat(n,' align="').concat(e.align,'">'):"<".concat(n,">"))+t+"</".concat(n,">\n")}strong(e){let{tokens:t}=e;return"<strong>".concat(this.parser.parseInline(t),"</strong>")}em(e){let{tokens:t}=e;return"<em>".concat(this.parser.parseInline(t),"</em>")}codespan(e){let{text:t}=e;return"<code>".concat(eK(t,!0),"</code>")}br(e){return"<br>"}del(e){let{tokens:t}=e;return"<del>".concat(this.parser.parseInline(t),"</del>")}link(e){let{href:t,title:n,tokens:r}=e,i=this.parser.parseInline(r),a=eQ(t);if(null===a)return i;let o='<a href="'+(t=a)+'"';return n&&(o+=' title="'+eK(n)+'"'),o+=">"+i+"</a>"}image(e){let{href:t,title:n,text:r,tokens:i}=e;i&&(r=this.parser.parseInline(i,this.parser.textRenderer));let a=eQ(t);if(null===a)return eK(r);t=a;let o='<img src="'.concat(t,'" alt="').concat(eK(r),'"');return n&&(o+=' title="'.concat(eK(n),'"')),o+=">"}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:eK(e.text)}constructor(e){(0,V._)(this,"options",void 0),(0,V._)(this,"parser",void 0),this.options=e||X}},e7=class{strong(e){let{text:t}=e;return t}em(e){let{text:t}=e;return t}codespan(e){let{text:t}=e;return t}del(e){let{text:t}=e;return t}html(e){let{text:t}=e;return t}text(e){let{text:t}=e;return t}link(e){let{text:t}=e;return""+t}image(e){let{text:t}=e;return""+t}br(){return""}checkbox(e){let{raw:t}=e;return t}},e8=class e{static parse(t,n){return new e(n).parse(t)}static parseInline(t,n){return new e(n).parseInline(t)}parse(e){this.renderer.parser=this;let t="";for(let i=0;i<e.length;i++){var n,r;let a=e[i];if(null==(r=this.options.extensions)||null==(n=r.renderers)?void 0:n[a.type]){let e=this.options.extensions.renderers[a.type].call({parser:this},a);if(!1!==e||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(a.type)){t+=e||"";continue}}switch(a.type){case"space":t+=this.renderer.space(a);break;case"hr":t+=this.renderer.hr(a);break;case"heading":t+=this.renderer.heading(a);break;case"code":t+=this.renderer.code(a);break;case"table":t+=this.renderer.table(a);break;case"blockquote":t+=this.renderer.blockquote(a);break;case"list":t+=this.renderer.list(a);break;case"checkbox":t+=this.renderer.checkbox(a);break;case"html":t+=this.renderer.html(a);break;case"def":t+=this.renderer.def(a);break;case"paragraph":t+=this.renderer.paragraph(a);break;case"text":t+=this.renderer.text(a);break;default:{let e='Token with "'+a.type+'" type was not found.';if(this.options.silent)return console.error(e),"";throw Error(e)}}}return t}parseInline(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.renderer;this.renderer.parser=this;let n="";for(let a=0;a<e.length;a++){var r,i;let o=e[a];if(null==(i=this.options.extensions)||null==(r=i.renderers)?void 0:r[o.type]){let e=this.options.extensions.renderers[o.type].call({parser:this},o);if(!1!==e||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(o.type)){n+=e||"";continue}}switch(o.type){case"escape":case"text":n+=t.text(o);break;case"html":n+=t.html(o);break;case"link":n+=t.link(o);break;case"image":n+=t.image(o);break;case"checkbox":n+=t.checkbox(o);break;case"strong":n+=t.strong(o);break;case"em":n+=t.em(o);break;case"codespan":n+=t.codespan(o);break;case"br":n+=t.br(o);break;case"del":n+=t.del(o);break;default:{let e='Token with "'+o.type+'" type was not found.';if(this.options.silent)return console.error(e),"";throw Error(e)}}}return n}constructor(e){(0,V._)(this,"options",void 0),(0,V._)(this,"renderer",void 0),(0,V._)(this,"textRenderer",void 0),this.options=e||X,this.options.renderer=this.options.renderer||new e2,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new e7}},e9=(o=class{preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.block;return e?e3.lex:e3.lexInline}provideParser(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.block;return e?e8.parse:e8.parseInline}constructor(e){(0,V._)(this,"options",void 0),(0,V._)(this,"block",void 0),this.options=e||X}},(0,V._)(o,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),(0,V._)(o,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),o),te=new class{walkTokens(e,t){let n=[];for(let a of e)switch(n=n.concat(t.call(this,a)),a.type){case"table":for(let e of a.header)n=n.concat(this.walkTokens(e.tokens,t));for(let e of a.rows)for(let r of e)n=n.concat(this.walkTokens(r.tokens,t));break;case"list":n=n.concat(this.walkTokens(a.items,t));break;default:{var r,i;let e=a;(null==(i=this.defaults.extensions)||null==(r=i.childTokens)?void 0:r[e.type])?this.defaults.extensions.childTokens[e.type].forEach(r=>{let i=e[r].flat(1/0);n=n.concat(this.walkTokens(i,t))}):e.tokens&&(n=n.concat(this.walkTokens(e.tokens,t)))}}return n}use(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];let r=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(e=>{let t={...e};if(t.async=this.defaults.async||t.async||!1,e.extensions&&(e.extensions.forEach(e=>{if(!e.name)throw Error("extension name required");if("renderer"in e){let t=r.renderers[e.name];t?r.renderers[e.name]=function(){for(var n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];let a=e.renderer.apply(this,r);return!1===a&&(a=t.apply(this,r)),a}:r.renderers[e.name]=e.renderer}if("tokenizer"in e){if(!e.level||"block"!==e.level&&"inline"!==e.level)throw Error("extension level must be 'block' or 'inline'");let t=r[e.level];t?t.unshift(e.tokenizer):r[e.level]=[e.tokenizer],e.start&&("block"===e.level?r.startBlock?r.startBlock.push(e.start):r.startBlock=[e.start]:"inline"===e.level&&(r.startInline?r.startInline.push(e.start):r.startInline=[e.start]))}"childTokens"in e&&e.childTokens&&(r.childTokens[e.name]=e.childTokens)}),t.extensions=r),e.renderer){let n=this.defaults.renderer||new e2(this.defaults);for(let t in e.renderer){if(!(t in n))throw Error("renderer '".concat(t,"' does not exist"));if(["options","parser"].includes(t))continue;let r=e.renderer[t],i=n[t];n[t]=function(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a];let o=r.apply(n,t);return!1===o&&(o=i.apply(n,t)),o||""}}t.renderer=n}if(e.tokenizer){let n=this.defaults.tokenizer||new e6(this.defaults);for(let t in e.tokenizer){if(!(t in n))throw Error("tokenizer '".concat(t,"' does not exist"));if(["options","rules","lexer"].includes(t))continue;let r=e.tokenizer[t],i=n[t];n[t]=function(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a];let o=r.apply(n,t);return!1===o&&(o=i.apply(n,t)),o}}t.tokenizer=n}if(e.hooks){let r=this.defaults.hooks||new e9;for(let t in e.hooks){var n=this;if(!(t in r))throw Error("hook '".concat(t,"' does not exist"));if(["options","block"].includes(t))continue;let i=e.hooks[t],a=r[t];e9.passThroughHooks.has(t)?r[t]=e=>{if(this.defaults.async&&e9.passThroughHooksRespectAsync.has(t))return(async()=>{let t=await i.call(r,e);return a.call(r,t)})();let n=i.call(r,e);return a.call(r,n)}:r[t]=function(){for(var e=arguments.length,t=Array(e),o=0;o<e;o++)t[o]=arguments[o];if(n.defaults.async)return(async()=>{let e=await i.apply(r,t);return!1===e&&(e=await a.apply(r,t)),e})();let s=i.apply(r,t);return!1===s&&(s=a.apply(r,t)),s}}t.hooks=r}if(e.walkTokens){let n=this.defaults.walkTokens,r=e.walkTokens;t.walkTokens=function(e){let t=[];return t.push(r.call(this,e)),n&&(t=t.concat(n.call(this,e))),t}}this.defaults={...this.defaults,...t}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return e3.lex(e,null!=t?t:this.defaults)}parser(e,t){return e8.parse(e,null!=t?t:this.defaults)}parseMarkdown(e){return(t,n)=>{let r={...n},i={...this.defaults,...r},a=this.onError(!!i.silent,!!i.async);if(!0===this.defaults.async&&!1===r.async)return a(Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof t>"u"||null===t)return a(Error("marked(): input parameter is undefined or null"));if("string"!=typeof t)return a(Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));if(i.hooks&&(i.hooks.options=i,i.hooks.block=e),i.async)return(async()=>{let n=i.hooks?await i.hooks.preprocess(t):t,r=await (i.hooks?await i.hooks.provideLexer(e):e?e3.lex:e3.lexInline)(n,i),a=i.hooks?await i.hooks.processAllTokens(r):r;i.walkTokens&&await Promise.all(this.walkTokens(a,i.walkTokens));let o=await (i.hooks?await i.hooks.provideParser(e):e?e8.parse:e8.parseInline)(a,i);return i.hooks?await i.hooks.postprocess(o):o})().catch(a);try{i.hooks&&(t=i.hooks.preprocess(t));let n=(i.hooks?i.hooks.provideLexer(e):e?e3.lex:e3.lexInline)(t,i);i.hooks&&(n=i.hooks.processAllTokens(n)),i.walkTokens&&this.walkTokens(n,i.walkTokens);let r=(i.hooks?i.hooks.provideParser(e):e?e8.parse:e8.parseInline)(n,i);return i.hooks&&(r=i.hooks.postprocess(r)),r}catch(e){return a(e)}}}onError(e,t){return n=>{if(n.message+="\nPlease report this to https://github.com/markedjs/marked.",e){let e="<p>An error occurred:</p><pre>"+eK(n.message+"",!0)+"</pre>";return t?Promise.resolve(e):e}if(t)return Promise.reject(n);throw n}}constructor(...e){(0,V._)(this,"defaults",$()),(0,V._)(this,"options",this.setOptions),(0,V._)(this,"parse",this.parseMarkdown(!0)),(0,V._)(this,"parseInline",this.parseMarkdown(!1)),(0,V._)(this,"Parser",e8),(0,V._)(this,"Renderer",e2),(0,V._)(this,"TextRenderer",e7),(0,V._)(this,"Lexer",e3),(0,V._)(this,"Tokenizer",e6),(0,V._)(this,"Hooks",e9),this.use(...e)}};function tt(e,t){return te.parse(e,t)}function tn(e){if(!e||"object"!=typeof e)return"";let t=e.type;if("user"===t||"assistant"===t){let t=e.message;if(t&&void 0!==t.content)return function(e){if(null==e)return"";if("string"==typeof e)return e;if(!Array.isArray(e))try{return JSON.stringify(e,null,2)}catch(t){return String(e)}let t=[];for(let n of e)if(n&&"object"==typeof n){if("text"===n.type&&"string"==typeof n.text)t.push(n.text);else if("tool_use"===n.type){let e=n.name||"tool",r="";try{r=JSON.stringify(n.input,null,2)}catch(e){r=String(n.input)}t.push("\n\n**`".concat(e,"`**\n\n```json\n").concat(r.slice(0,12e3),"\n```\n"))}else if("tool_result"===n.type){let e=n.content;if("string"!=typeof e)try{e=JSON.stringify(e,null,2)}catch(t){e=String(e)}t.push("\n\n```\n".concat(String(e).slice(0,8e3),"\n```\n"))}}return t.join("")}(t.content)}return"system"===t&&"string"==typeof e.content?e.content:""}function tr(){}function ti(){}function ta(e){let t=[],n=String(e||""),r=n.indexOf(","),i=0,a=!1;for(;!a;){-1===r&&(r=n.length,a=!0);let e=n.slice(i,r).trim();(e||!a)&&t.push(e),i=r+1,r=n.indexOf(",",i)}return t}function to(e,t){let n=t||{};return(""===e[e.length-1]?[...e,""]:e).join((n.padRight?" ":"")+","+(!1===n.padLeft?"":" ")).trim()}tt.options=tt.setOptions=function(e){return te.setOptions(e),tt.defaults=te.defaults,X=tt.defaults,tt},tt.getDefaults=$,tt.defaults=X,tt.use=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return te.use(...t),tt.defaults=te.defaults,X=tt.defaults,tt},tt.walkTokens=function(e,t){return te.walkTokens(e,t)},tt.parseInline=te.parseInline,tt.Parser=e8,tt.parser=e8.parse,tt.Renderer=e2,tt.TextRenderer=e7,tt.Lexer=e3,tt.lexer=e3.lex,tt.Tokenizer=e6,tt.Hooks=e9,tt.parse=tt,tt.options,tt.setOptions,tt.use,tt.walkTokens,tt.parseInline,e8.parse,e3.lex,tt.setOptions({breaks:!0,gfm:!0}),RegExp("[$_\\p{ID_Start}]","u"),RegExp("[$_\\u{200C}\\u{200D}\\p{ID_Continue}]","u"),RegExp("[-$_\\u{200C}\\u{200D}\\p{ID_Continue}]","u");let ts=RegExp("^[$_\\p{ID_Start}][$_\\u{200C}\\u{200D}\\p{ID_Continue}]*$","u"),tl=RegExp("^[$_\\p{ID_Start}][-$_\\u{200C}\\u{200D}\\p{ID_Continue}]*$","u"),tc={};function tu(e,t){return((t||tc).jsx?tl:ts).test(e)}let th=/[ \t\n\f\r]/g;function tp(e){return"object"==typeof e?"text"===e.type&&td(e.value):td(e)}function td(e){return""===e.replace(th,"")}class tm{constructor(e,t){this.attribute=t,this.property=e}}tm.prototype.attribute="",tm.prototype.booleanish=!1,tm.prototype.boolean=!1,tm.prototype.commaOrSpaceSeparated=!1,tm.prototype.commaSeparated=!1,tm.prototype.defined=!1,tm.prototype.mustUseProperty=!1,tm.prototype.number=!1,tm.prototype.overloadedBoolean=!1,tm.prototype.property="",tm.prototype.spaceSeparated=!1,tm.prototype.space=void 0,e.s(["boolean",()=>tg,"booleanish",()=>ty,"commaOrSpaceSeparated",()=>tw,"commaSeparated",()=>tk,"number",()=>tv,"overloadedBoolean",()=>tb,"spaceSeparated",()=>tx],744);let tf=0,tg=tS(),ty=tS(),tb=tS(),tv=tS(),tx=tS(),tk=tS(),tw=tS();function tS(){return 2**++tf}var tA=e.i(744);let tC=Object.keys(tA);class tT extends tm{constructor(e,t,n,r){let i=-1;if(super(e,t),function(e,t,n){n&&(e[t]=n)}(this,"space",r),"number"==typeof n)for(;++i<tC.length;){let e=tC[i];!function(e,t,n){n&&(e[t]=n)}(this,tC[i],(n&tA[e])===tA[e])}}}function t_(e){return e.toLowerCase()}tT.prototype.defined=!0;let tM=/[A-Z]/g,tN=/-[a-z]/g,tE=/^data[-\w.:]+$/i;function tz(e,t){let n=t_(t),r=t,i=tm;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&tE.test(t)){if("-"===t.charAt(4)){let e=t.slice(5).replace(tN,tR);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!tN.test(e)){let n=e.replace(tM,tI);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}i=tT}return new i(r,t)}function tI(e){return"-"+e.toLowerCase()}function tR(e){return e.charAt(1).toUpperCase()}let tj={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"};class tL{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}}function tP(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new tL(n,r,t)}function tB(e){let t={},n={};for(let[r,i]of Object.entries(e.properties)){let a=new tT(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[t_(r)]=r,n[t_(a.attribute)]=r}return new tL(t,n,e.space)}tL.prototype.normal={},tL.prototype.property={},tL.prototype.space=void 0;let tO=tB({properties:{ariaActiveDescendant:null,ariaAtomic:ty,ariaAutoComplete:null,ariaBusy:ty,ariaChecked:ty,ariaColCount:tv,ariaColIndex:tv,ariaColSpan:tv,ariaControls:tx,ariaCurrent:null,ariaDescribedBy:tx,ariaDetails:null,ariaDisabled:ty,ariaDropEffect:tx,ariaErrorMessage:null,ariaExpanded:ty,ariaFlowTo:tx,ariaGrabbed:ty,ariaHasPopup:null,ariaHidden:ty,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:tx,ariaLevel:tv,ariaLive:null,ariaModal:ty,ariaMultiLine:ty,ariaMultiSelectable:ty,ariaOrientation:null,ariaOwns:tx,ariaPlaceholder:null,ariaPosInSet:tv,ariaPressed:ty,ariaReadOnly:ty,ariaRelevant:null,ariaRequired:ty,ariaRoleDescription:tx,ariaRowCount:tv,ariaRowIndex:tv,ariaRowSpan:tv,ariaSelected:ty,ariaSetSize:tv,ariaSort:null,ariaValueMax:tv,ariaValueMin:tv,ariaValueNow:tv,ariaValueText:null,role:null},transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase()});function tD(e,t){return t in e?e[t]:t}function tF(e,t){return tD(e,t.toLowerCase())}let tq=tB({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:tk,acceptCharset:tx,accessKey:tx,action:null,allow:null,allowFullScreen:tg,allowPaymentRequest:tg,allowUserMedia:tg,alt:null,as:null,async:tg,autoCapitalize:null,autoComplete:tx,autoFocus:tg,autoPlay:tg,blocking:tx,capture:null,charSet:null,checked:tg,cite:null,className:tx,cols:tv,colSpan:null,content:null,contentEditable:ty,controls:tg,controlsList:tx,coords:tv|tk,crossOrigin:null,data:null,dateTime:null,decoding:null,default:tg,defer:tg,dir:null,dirName:null,disabled:tg,download:tb,draggable:ty,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:tg,formTarget:null,headers:tx,height:tv,hidden:tb,high:tv,href:null,hrefLang:null,htmlFor:tx,httpEquiv:tx,id:null,imageSizes:null,imageSrcSet:null,inert:tg,inputMode:null,integrity:null,is:null,isMap:tg,itemId:null,itemProp:tx,itemRef:tx,itemScope:tg,itemType:tx,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:tg,low:tv,manifest:null,max:null,maxLength:tv,media:null,method:null,min:null,minLength:tv,multiple:tg,muted:tg,name:null,nonce:null,noModule:tg,noValidate:tg,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:tg,optimum:tv,pattern:null,ping:tx,placeholder:null,playsInline:tg,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:tg,referrerPolicy:null,rel:tx,required:tg,reversed:tg,rows:tv,rowSpan:tv,sandbox:tx,scope:null,scoped:tg,seamless:tg,selected:tg,shadowRootClonable:tg,shadowRootDelegatesFocus:tg,shadowRootMode:null,shape:null,size:tv,sizes:null,slot:null,span:tv,spellCheck:ty,src:null,srcDoc:null,srcLang:null,srcSet:null,start:tv,step:null,style:null,tabIndex:tv,target:null,title:null,translate:null,type:null,typeMustMatch:tg,useMap:null,value:ty,width:tv,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:tx,axis:null,background:null,bgColor:null,border:tv,borderColor:null,bottomMargin:tv,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:tg,declare:tg,event:null,face:null,frame:null,frameBorder:null,hSpace:tv,leftMargin:tv,link:null,longDesc:null,lowSrc:null,marginHeight:tv,marginWidth:tv,noResize:tg,noHref:tg,noShade:tg,noWrap:tg,object:null,profile:null,prompt:null,rev:null,rightMargin:tv,rules:null,scheme:null,scrolling:ty,standby:null,summary:null,text:null,topMargin:tv,valueType:null,version:null,vAlign:null,vLink:null,vSpace:tv,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:tg,disableRemotePlayback:tg,prefix:null,property:null,results:tv,security:null,unselectable:null},space:"html",transform:tF}),tH=tB({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:tw,accentHeight:tv,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:tv,amplitude:tv,arabicForm:null,ascent:tv,attributeName:null,attributeType:null,azimuth:tv,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:tv,by:null,calcMode:null,capHeight:tv,className:tx,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:tv,diffuseConstant:tv,direction:null,display:null,dur:null,divisor:tv,dominantBaseline:null,download:tg,dx:null,dy:null,edgeMode:null,editable:null,elevation:tv,enableBackground:null,end:null,event:null,exponent:tv,externalResourcesRequired:null,fill:null,fillOpacity:tv,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:tk,g2:tk,glyphName:tk,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:tv,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:tv,horizOriginX:tv,horizOriginY:tv,id:null,ideographic:tv,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:tv,k:tv,k1:tv,k2:tv,k3:tv,k4:tv,kernelMatrix:tw,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:tv,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:tv,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:tv,overlineThickness:tv,paintOrder:null,panose1:null,path:null,pathLength:tv,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:tx,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:tv,pointsAtY:tv,pointsAtZ:tv,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:tw,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:tw,rev:tw,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:tw,requiredFeatures:tw,requiredFonts:tw,requiredFormats:tw,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:tv,specularExponent:tv,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:tv,strikethroughThickness:tv,string:null,stroke:null,strokeDashArray:tw,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:tv,strokeOpacity:tv,strokeWidth:null,style:null,surfaceScale:tv,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:tw,tabIndex:tv,tableValues:null,target:null,targetX:tv,targetY:tv,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:tw,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:tv,underlineThickness:tv,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:tv,values:null,vAlphabetic:tv,vMathematical:tv,vectorEffect:null,vHanging:tv,vIdeographic:tv,version:null,vertAdvY:tv,vertOriginX:tv,vertOriginY:tv,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:tv,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:tD}),tU=tB({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase()}),tG=tB({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:tF}),tW=tB({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase()}),tV=tP([tO,tq,tU,tG,tW],"html"),t$=tP([tO,tH,tU,tG,tW],"svg");function tX(e){let t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function tY(e){return e.join(" ").trim()}var tJ=e.i(15511);let tZ=tQ("end"),tK=tQ("start");function tQ(e){return function(t){let n=t&&t.position&&t.position[e]||{};if("number"==typeof n.line&&n.line>0&&"number"==typeof n.column&&n.column>0)return{line:n.line,column:n.column,offset:"number"==typeof n.offset&&n.offset>-1?n.offset:void 0}}}function t0(e){let t=tK(e),n=tZ(e);if(t&&n)return{start:t,end:n}}function t1(e){return e&&"object"==typeof e?"position"in e||"type"in e?t5(e.position):"start"in e||"end"in e?t5(e):"line"in e||"column"in e?t4(e):"":""}function t4(e){return t6(e&&e.line)+":"+t6(e&&e.column)}function t5(e){return t4(e&&e.start)+"-"+t4(e&&e.end)}function t6(e){return e&&"number"==typeof e?e:1}class t3 extends Error{constructor(e,t,n){super(),"string"==typeof t&&(n=t,t=void 0);let r="",i={},a=!1;if(t&&(i="line"in t&&"column"in t||"start"in t&&"end"in t?{place:t}:"type"in t?{ancestors:[t],place:t.position}:{...t}),"string"==typeof e?r=e:!i.cause&&e&&(a=!0,r=e.message,i.cause=e),!i.ruleId&&!i.source&&"string"==typeof n){let e=n.indexOf(":");-1===e?i.ruleId=n:(i.source=n.slice(0,e),i.ruleId=n.slice(e+1))}if(!i.place&&i.ancestors&&i.ancestors){let e=i.ancestors[i.ancestors.length-1];e&&(i.place=e.position)}let o=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file="",this.message=r,this.line=o?o.line:void 0,this.name=t1(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=a&&i.cause&&"string"==typeof i.cause.stack?i.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}t3.prototype.file="",t3.prototype.name="",t3.prototype.reason="",t3.prototype.message="",t3.prototype.stack="",t3.prototype.column=void 0,t3.prototype.line=void 0,t3.prototype.ancestors=void 0,t3.prototype.cause=void 0,t3.prototype.fatal=void 0,t3.prototype.place=void 0,t3.prototype.ruleId=void 0,t3.prototype.source=void 0;let t2={}.hasOwnProperty,t7=new Map,t8=/[A-Z]/g,t9=new Set(["table","tbody","thead","tfoot","tr"]),ne=new Set(["td","th"]),nt="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function nn(e,t,n){return"element"===t.type?function(e,t,n){let r=e.schema;"svg"===t.tagName.toLowerCase()&&"html"===r.space&&(e.schema=t$),e.ancestors.push(t);let i=no(e,t.tagName,!1),a=function(e,t){let n,r,i={};for(r in t.properties)if("children"!==r&&t2.call(t.properties,r)){let a=function(e,t,n){let r=tz(e.schema,t);if(!(null==n||"number"==typeof n&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?to(n):tY(n)),"style"===r.property){let t="object"==typeof n?n:function(e,t){try{return(0,tJ.default)(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};let t=new t3("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:n,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw t.file=e.filePath||void 0,t.url=nt+"#cannot-parse-style-attribute",t}}(e,String(n));return"css"===e.stylePropertyNameCase&&(t=function(e){let t,n={};for(t in e)t2.call(e,t)&&(n[function(e){let t=e.replace(t8,nl);return"ms-"===t.slice(0,3)&&(t="-"+t),t}(t)]=e[t]);return n}(t)),["style",t]}return["react"===e.elementAttributeNameCase&&r.space?tj[r.property]||r.property:r.attribute,n]}}(e,r,t.properties[r]);if(a){let[r,o]=a;e.tableCellAlignToStyle&&"align"===r&&"string"==typeof o&&ne.has(t.tagName)?n=o:i[r]=o}}return n&&((i.style||(i.style={}))["css"===e.stylePropertyNameCase?"text-align":"textAlign"]=n),i}(e,t),o=na(e,t);return t9.has(t.tagName)&&(o=o.filter(function(e){return"string"!=typeof e||!tp(e)})),nr(e,a,i,t),ni(a,o),e.ancestors.pop(),e.schema=r,e.create(t,i,a,n)}(e,t,n):"mdxFlowExpression"===t.type||"mdxTextExpression"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater){let n=t.data.estree.body[0];return tr("ExpressionStatement"===n.type),e.evaluater.evaluateExpression(n.expression)}ns(e,t.position)}(e,t):"mdxJsxFlowElement"===t.type||"mdxJsxTextElement"===t.type?function(e,t,n){let r=e.schema;"svg"===t.name&&"html"===r.space&&(e.schema=t$),e.ancestors.push(t);let i=null===t.name?e.Fragment:no(e,t.name,!0),a=function(e,t){let n={};for(let r of t.attributes)if("mdxJsxExpressionAttribute"===r.type)if(r.data&&r.data.estree&&e.evaluater){let t=r.data.estree.body[0];tr("ExpressionStatement"===t.type);let i=t.expression;tr("ObjectExpression"===i.type);let a=i.properties[0];tr("SpreadElement"===a.type),Object.assign(n,e.evaluater.evaluateExpression(a.argument))}else ns(e,t.position);else{let i,a=r.name;if(r.value&&"object"==typeof r.value)if(r.value.data&&r.value.data.estree&&e.evaluater){let t=r.value.data.estree.body[0];tr("ExpressionStatement"===t.type),i=e.evaluater.evaluateExpression(t.expression)}else ns(e,t.position);else i=null===r.value||r.value;n[a]=i}return n}(e,t),o=na(e,t);return nr(e,a,i,t),ni(a,o),e.ancestors.pop(),e.schema=r,e.create(t,i,a,n)}(e,t,n):"mdxjsEsm"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);ns(e,t.position)}(e,t):"root"===t.type?function(e,t,n){let r={};return ni(r,na(e,t)),e.create(t,e.Fragment,r,n)}(e,t,n):"text"===t.type?t.value:void 0}function nr(e,t,n,r){"string"!=typeof n&&n!==e.Fragment&&e.passNode&&(t.node=r)}function ni(e,t){if(t.length>0){let n=t.length>1?t:t[0];n&&(e.children=n)}}function na(e,t){let n=[],r=-1,i=e.passKeys?new Map:t7;for(;++r<t.children.length;){let a,o=t.children[r];if(e.passKeys){let e="element"===o.type?o.tagName:"mdxJsxFlowElement"===o.type||"mdxJsxTextElement"===o.type?o.name:void 0;if(e){let t=i.get(e)||0;a=e+"-"+t,i.set(e,t+1)}}let s=nn(e,o,a);void 0!==s&&n.push(s)}return n}function no(e,t,n){let r;if(n)if(t.includes(".")){let e,n=t.split("."),i=-1;for(;++i<n.length;){let t=tu(n[i])?{type:"Identifier",name:n[i]}:{type:"Literal",value:n[i]};e=e?{type:"MemberExpression",object:e,property:t,computed:!!(i&&"Literal"===t.type),optional:!1}:t}tr(e,"always a result"),r=e}else r=tu(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};else r={type:"Literal",value:t};if("Literal"===r.type){let t=r.value;return t2.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);ns(e)}function ns(e,t){let n=new t3("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=nt+"#cannot-handle-mdx-estrees-without-createevaluater",n}function nl(e){return"-"+e.toLowerCase()}let nc={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},nu={};function nh(e,t){let n=t||nu;return np(e,"boolean"!=typeof n.includeImageAlt||n.includeImageAlt,"boolean"!=typeof n.includeHtml||n.includeHtml)}function np(e,t,n){var r;if((r=e)&&"object"==typeof r){if("value"in e)return"html"!==e.type||n?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return nd(e.children,t,n)}return Array.isArray(e)?nd(e,t,n):""}function nd(e,t,n){let r=[],i=-1;for(;++i<e.length;)r[i]=np(e[i],t,n);return r.join("")}function nm(e,t,n,r){let i,a=e.length,o=0;if(t=t<0?-t>a?0:a+t:t>a?a:t,n=n>0?n:0,r.length<1e4)(i=Array.from(r)).unshift(t,n),e.splice(...i);else for(n&&e.splice(t,n);o<r.length;)(i=r.slice(o,o+1e4)).unshift(t,0),e.splice(...i),o+=1e4,t+=1e4}function nf(e,t){return e.length>0?(nm(e,e.length,0,t),e):t}let ng={}.hasOwnProperty;function ny(e){let t={},n=-1;for(;++n<e.length;)!function(e,t){let n;for(n in t){let r,i=(ng.call(e,n)?e[n]:void 0)||(e[n]={}),a=t[n];if(a)for(r in a){ng.call(i,r)||(i[r]=[]);let e=a[r];!function(e,t){let n=-1,r=[];for(;++n<t.length;)("after"===t[n].add?e:r).push(t[n]);nm(e,0,0,r)}(i[r],Array.isArray(e)?e:e?[e]:[])}}}(t,e[n]);return t}let nb=nE(/[A-Za-z]/),nv=nE(/[\dA-Za-z]/),nx=nE(/[#-'*+\--9=?A-Z^-~]/);function nk(e){return null!==e&&(e<32||127===e)}let nw=nE(/\d/),nS=nE(/[\dA-Fa-f]/),nA=nE(/[!-/:-@[-`{-~]/);function nC(e){return null!==e&&e<-2}function nT(e){return null!==e&&(e<0||32===e)}function n_(e){return -2===e||-1===e||32===e}let nM=nE(RegExp("\\p{P}|\\p{S}","u")),nN=nE(/\s/);function nE(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}function nz(e,t,n,r){let i=r?r-1:1/0,a=0;return function(r){return n_(r)?(e.enter(n),function r(o){return n_(o)&&a++<i?(e.consume(o),r):(e.exit(n),t(o))}(r)):t(r)}}let nI={tokenize:function(e){let t,n=e.attempt(this.parser.constructs.contentInitial,function(t){return null===t?void e.consume(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),nz(e,n,"linePrefix"))},function(n){return e.enter("paragraph"),function n(r){let i=e.enter("chunkText",{contentType:"text",previous:t});return t&&(t.next=i),t=i,function t(r){if(null===r){e.exit("chunkText"),e.exit("paragraph"),e.consume(r);return}return nC(r)?(e.consume(r),e.exit("chunkText"),n):(e.consume(r),t)}(r)}(n)});return n}},nR={tokenize:function(e){let t,n,r,i=this,a=[],o=0;return s;function s(t){if(o<a.length){let n=a[o];return i.containerState=n[1],e.attempt(n[0].continuation,l,c)(t)}return c(t)}function l(e){if(o++,i.containerState._closeFlow){let n;i.containerState._closeFlow=void 0,t&&y();let r=i.events.length,a=r;for(;a--;)if("exit"===i.events[a][0]&&"chunkFlow"===i.events[a][1].type){n=i.events[a][1].end;break}g(o);let s=r;for(;s<i.events.length;)i.events[s][1].end={...n},s++;return nm(i.events,a+1,0,i.events.slice(r)),i.events.length=s,c(e)}return s(e)}function c(n){if(o===a.length){if(!t)return p(n);if(t.currentConstruct&&t.currentConstruct.concrete)return m(n);i.interrupt=!!(t.currentConstruct&&!t._gfmTableDynamicInterruptHack)}return i.containerState={},e.check(nj,u,h)(n)}function u(e){return t&&y(),g(o),p(e)}function h(e){return i.parser.lazy[i.now().line]=o!==a.length,r=i.now().offset,m(e)}function p(t){return i.containerState={},e.attempt(nj,d,m)(t)}function d(e){return o++,a.push([i.currentConstruct,i.containerState]),p(e)}function m(r){if(null===r){t&&y(),g(0),e.consume(r);return}return t=t||i.parser.flow(i.now()),e.enter("chunkFlow",{_tokenizer:t,contentType:"flow",previous:n}),function t(n){if(null===n){f(e.exit("chunkFlow"),!0),g(0),e.consume(n);return}return nC(n)?(e.consume(n),f(e.exit("chunkFlow")),o=0,i.interrupt=void 0,s):(e.consume(n),t)}(r)}function f(e,a){let s=i.sliceStream(e);if(a&&s.push(null),e.previous=n,n&&(n.next=e),n=e,t.defineSkip(e.start),t.write(s),i.parser.lazy[e.start.line]){let e,n,a=t.events.length;for(;a--;)if(t.events[a][1].start.offset<r&&(!t.events[a][1].end||t.events[a][1].end.offset>r))return;let s=i.events.length,l=s;for(;l--;)if("exit"===i.events[l][0]&&"chunkFlow"===i.events[l][1].type){if(e){n=i.events[l][1].end;break}e=!0}for(g(o),a=s;a<i.events.length;)i.events[a][1].end={...n},a++;nm(i.events,l+1,0,i.events.slice(s)),i.events.length=a}}function g(t){let n=a.length;for(;n-- >t;){let t=a[n];i.containerState=t[1],t[0].exit.call(i,e)}a.length=t}function y(){t.write([null]),n=void 0,t=void 0,i.containerState._closeFlow=void 0}}},nj={tokenize:function(e,t,n){return nz(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}},nL={partial:!0,tokenize:function(e,t,n){return function(t){return n_(t)?nz(e,r,"linePrefix")(t):r(t)};function r(e){return null===e||nC(e)?t(e):n(e)}}};class nP{get(e){if(e<0||e>=this.left.length+this.right.length)throw RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){let n=null==t?1/0:t;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){this.setCursor(Math.trunc(e));let r=this.right.splice(this.right.length-(t||0),1/0);return n&&nB(this.left,n),r.reverse()}pop(){return this.setCursor(1/0),this.left.pop()}push(e){this.setCursor(1/0),this.left.push(e)}pushMany(e){this.setCursor(1/0),nB(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),nB(this.right,e.reverse())}setCursor(e){if(e!==this.left.length&&(!(e>this.left.length)||0!==this.right.length)&&(!(e<0)||0!==this.left.length))if(e<this.left.length){let t=this.left.splice(e,1/0);nB(this.right,t.reverse())}else{let t=this.right.splice(this.left.length+this.right.length-e,1/0);nB(this.left,t.reverse())}}constructor(e){this.left=e?[...e]:[],this.right=[]}}function nB(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function nO(e){let t,n,r,i,a,o,s,l={},c=-1,u=new nP(e);for(;++c<u.length;){for(;c in l;)c=l[c];if(t=u.get(c),c&&"chunkFlow"===t[1].type&&"listItemPrefix"===u.get(c-1)[1].type&&((r=0)<(o=t[1]._tokenizer.events).length&&"lineEndingBlank"===o[r][1].type&&(r+=2),r<o.length&&"content"===o[r][1].type))for(;++r<o.length&&"content"!==o[r][1].type;)"chunkText"===o[r][1].type&&(o[r][1]._isInFirstContentOfListItem=!0,r++);if("enter"===t[0])t[1].contentType&&(Object.assign(l,function(e,t){let n,r,i=e.get(t)[1],a=e.get(t)[2],o=t-1,s=[],l=i._tokenizer;!l&&(l=a.parser[i.contentType](i.start),i._contentTypeTextTrailing&&(l._contentTypeTextTrailing=!0));let c=l.events,u=[],h={},p=-1,d=i,m=0,f=0,g=[0];for(;d;){for(;e.get(++o)[1]!==d;);s.push(o),!d._tokenizer&&(n=a.sliceStream(d),d.next||n.push(null),r&&l.defineSkip(d.start),d._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=!0),l.write(n),d._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=void 0)),r=d,d=d.next}for(d=i;++p<c.length;)"exit"===c[p][0]&&"enter"===c[p-1][0]&&c[p][1].type===c[p-1][1].type&&c[p][1].start.line!==c[p][1].end.line&&(f=p+1,g.push(f),d._tokenizer=void 0,d.previous=void 0,d=d.next);for(l.events=[],d?(d._tokenizer=void 0,d.previous=void 0):g.pop(),p=g.length;p--;){let t=c.slice(g[p],g[p+1]),n=s.pop();u.push([n,n+t.length-1]),e.splice(n,2,t)}for(u.reverse(),p=-1;++p<u.length;)h[m+u[p][0]]=m+u[p][1],m+=u[p][1]-u[p][0]-1;return h}(u,c)),c=l[c],s=!0);else if(t[1]._container){for(r=c,n=void 0;r--;)if("lineEnding"===(i=u.get(r))[1].type||"lineEndingBlank"===i[1].type)"enter"===i[0]&&(n&&(u.get(n)[1].type="lineEndingBlank"),i[1].type="lineEnding",n=r);else if("linePrefix"===i[1].type||"listItemIndent"===i[1].type);else break;n&&(t[1].end={...u.get(n)[1].start},(a=u.slice(n,c)).unshift(t),u.splice(n,c-n+1,a))}}return nm(e,0,1/0,u.slice(0)),!s}let nD={resolve:function(e){return nO(e),e},tokenize:function(e,t){let n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(t)};function r(t){return null===t?i(t):nC(t)?e.check(nF,a,i)(t):(e.consume(t),r)}function i(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function a(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}}},nF={partial:!0,tokenize:function(e,t,n){let r=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),nz(e,i,"linePrefix")};function i(i){if(null===i||nC(i))return n(i);let a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&a&&"linePrefix"===a[1].type&&a[2].sliceSerialize(a[1],!0).length>=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}}},nq={tokenize:function(e){let t=this,n=e.attempt(nL,function(r){return null===r?void e.consume(r):(e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n)},e.attempt(this.parser.constructs.flowInitial,r,nz(e,e.attempt(this.parser.constructs.flow,r,e.attempt(nD,r)),"linePrefix")));return n;function r(r){return null===r?void e.consume(r):(e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n)}}},nH={resolveAll:nV()},nU=nW("string"),nG=nW("text");function nW(e){return{resolveAll:nV("text"===e?n$:void 0),tokenize:function(t){let n=this,r=this.parser.constructs[e],i=t.attempt(r,a,o);return a;function a(e){return l(e)?i(e):o(e)}function o(e){return null===e?void t.consume(e):(t.enter("data"),t.consume(e),s)}function s(e){return l(e)?(t.exit("data"),i(e)):(t.consume(e),s)}function l(e){if(null===e)return!0;let t=r[e],i=-1;if(t)for(;++i<t.length;){let e=t[i];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}}}}function nV(e){return function(t,n){let r,i=-1;for(;++i<=t.length;)void 0===r?t[i]&&"data"===t[i][1].type&&(r=i,i++):t[i]&&"data"===t[i][1].type||(i!==r+2&&(t[r][1].end=t[i-1][1].end,t.splice(r+2,i-r-2),i=r+2),r=void 0);return e?e(t,n):t}}function n$(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||"lineEnding"===e[n][1].type)&&"data"===e[n-1][1].type){let r,i=e[n-1][1],a=t.sliceStream(i),o=a.length,s=-1,l=0;for(;o--;){let e=a[o];if("string"==typeof e){for(s=e.length;32===e.charCodeAt(s-1);)l++,s--;if(s)break;s=-1}else if(-2===e)r=!0,l++;else if(-1===e);else{o++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(l=0),l){let a={type:n===e.length||r||l<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:o?s:i.start._bufferIndex+s,_index:i.start._index+o,line:i.end.line,column:i.end.column-l,offset:i.end.offset-l},end:{...i.end}};i.end={...a.start},i.start.offset===i.end.offset?Object.assign(i,a):(e.splice(n,0,["enter",a,t],["exit",a,t]),n+=2)}n++}return e}function nX(e){return null===e||nT(e)||nN(e)?1:nM(e)?2:void 0}function nY(e,t,n){let r=[],i=-1;for(;++i<e.length;){let a=e[i].resolveAll;a&&!r.includes(a)&&(t=a(t,n),r.push(a))}return t}e.s(["attentionMarkers",()=>rT,"contentInitial",()=>rx,"disable",()=>r_,"document",()=>rv,"flow",()=>rw,"flowInitial",()=>rk,"insideSpan",()=>rC,"string",()=>rS,"text",()=>rA],4127);let nJ={name:"attention",resolveAll:function(e,t){let n,r,i,a,o,s,l,c,u=-1;for(;++u<e.length;)if("enter"===e[u][0]&&"attentionSequence"===e[u][1].type&&e[u][1]._close){for(n=u;n--;)if("exit"===e[n][0]&&"attentionSequence"===e[n][1].type&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[u][1]).charCodeAt(0)){if((e[n][1]._close||e[u][1]._open)&&(e[u][1].end.offset-e[u][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[u][1].end.offset-e[u][1].start.offset)%3))continue;s=e[n][1].end.offset-e[n][1].start.offset>1&&e[u][1].end.offset-e[u][1].start.offset>1?2:1;let h={...e[n][1].end},p={...e[u][1].start};nZ(h,-s),nZ(p,s),a={type:s>1?"strongSequence":"emphasisSequence",start:h,end:{...e[n][1].end}},o={type:s>1?"strongSequence":"emphasisSequence",start:{...e[u][1].start},end:p},i={type:s>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[u][1].start}},r={type:s>1?"strong":"emphasis",start:{...a.start},end:{...o.end}},e[n][1].end={...a.start},e[u][1].start={...o.end},l=[],e[n][1].end.offset-e[n][1].start.offset&&(l=nf(l,[["enter",e[n][1],t],["exit",e[n][1],t]])),l=nf(l,[["enter",r,t],["enter",a,t],["exit",a,t],["enter",i,t]]),l=nf(l,nY(t.parser.constructs.insideSpan.null,e.slice(n+1,u),t)),l=nf(l,[["exit",i,t],["enter",o,t],["exit",o,t],["exit",r,t]]),e[u][1].end.offset-e[u][1].start.offset?(c=2,l=nf(l,[["enter",e[u][1],t],["exit",e[u][1],t]])):c=0,nm(e,n-1,u-n+3,l),u=n+l.length-c-2;break}}for(u=-1;++u<e.length;)"attentionSequence"===e[u][1].type&&(e[u][1].type="data");return e},tokenize:function(e,t){let n,r=this.parser.constructs.attentionMarkers.null,i=this.previous,a=nX(i);return function(o){return n=o,e.enter("attentionSequence"),function o(s){if(s===n)return e.consume(s),o;let l=e.exit("attentionSequence"),c=nX(s),u=!c||2===c&&a||r.includes(s),h=!a||2===a&&c||r.includes(i);return l._open=!!(42===n?u:u&&(a||!h)),l._close=!!(42===n?h:h&&(c||!u)),t(s)}(o)}}};function nZ(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}let nK={continuation:{tokenize:function(e,t,n){let r=this;return function(t){return n_(t)?nz(e,i,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):i(t)};function i(r){return e.attempt(nK,t,n)(r)}}},exit:function(e){e.exit("blockQuote")},name:"blockQuote",tokenize:function(e,t,n){let r=this;return function(t){if(62===t){let n=r.containerState;return n.open||(e.enter("blockQuote",{_container:!0}),n.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),i}return n(t)};function i(n){return n_(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}}},nQ={name:"characterEscape",tokenize:function(e,t,n){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),r};function r(r){return nA(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(r)}}},n0=document.createElement("i");function n1(e){let t="&"+e+";";n0.innerHTML=t;let n=n0.textContent;return(59!==n.charCodeAt(n.length-1)||"semi"===e)&&n!==t&&n}let n4={name:"characterReference",tokenize:function(e,t,n){let r,i,a=this,o=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),s};function s(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),l):(e.enter("characterReferenceValue"),r=31,i=nv,c(t))}function l(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),r=6,i=nS,c):(e.enter("characterReferenceValue"),r=7,i=nw,c(t))}function c(s){if(59===s&&o){let r=e.exit("characterReferenceValue");return i!==nv||n1(a.sliceSerialize(r))?(e.enter("characterReferenceMarker"),e.consume(s),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(s)}return i(s)&&o++<r?(e.consume(s),c):n(s)}}},n5={partial:!0,tokenize:function(e,t,n){let r=this;return function(t){return null===t?n(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},n6={concrete:!0,name:"codeFenced",tokenize:function(e,t,n){let r,i=this,a={partial:!0,tokenize:function(e,t,n){let a=0;return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o};function o(t){return e.enter("codeFencedFence"),n_(t)?nz(e,l,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):l(t)}function l(t){return t===r?(e.enter("codeFencedFenceSequence"),function t(i){return i===r?(a++,e.consume(i),t):a>=s?(e.exit("codeFencedFenceSequence"),n_(i)?nz(e,c,"whitespace")(i):c(i)):n(i)}(t)):n(t)}function c(r){return null===r||nC(r)?(e.exit("codeFencedFence"),t(r)):n(r)}}},o=0,s=0;return function(t){var a=t;let c=i.events[i.events.length-1];return o=c&&"linePrefix"===c[1].type?c[2].sliceSerialize(c[1],!0).length:0,r=a,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),function t(i){return i===r?(s++,e.consume(i),t):s<3?n(i):(e.exit("codeFencedFenceSequence"),n_(i)?nz(e,l,"whitespace")(i):l(i))}(a)};function l(a){return null===a||nC(a)?(e.exit("codeFencedFence"),i.interrupt?t(a):e.check(n5,u,m)(a)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),function t(i){return null===i||nC(i)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),l(i)):n_(i)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),nz(e,c,"whitespace")(i)):96===i&&i===r?n(i):(e.consume(i),t)}(a))}function c(t){return null===t||nC(t)?l(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),function t(i){return null===i||nC(i)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),l(i)):96===i&&i===r?n(i):(e.consume(i),t)}(t))}function u(t){return e.attempt(a,m,h)(t)}function h(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),p}function p(t){return o>0&&n_(t)?nz(e,d,"linePrefix",o+1)(t):d(t)}function d(t){return null===t||nC(t)?e.check(n5,u,m)(t):(e.enter("codeFlowValue"),function t(n){return null===n||nC(n)?(e.exit("codeFlowValue"),d(n)):(e.consume(n),t)}(t))}function m(n){return e.exit("codeFenced"),t(n)}}},n3={name:"codeIndented",tokenize:function(e,t,n){let r=this;return function(t){return e.enter("codeIndented"),nz(e,i,"linePrefix",5)(t)};function i(t){let i=r.events[r.events.length-1];return i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?function t(n){return null===n?a(n):nC(n)?e.attempt(n2,t,a)(n):(e.enter("codeFlowValue"),function n(r){return null===r||nC(r)?(e.exit("codeFlowValue"),t(r)):(e.consume(r),n)}(n))}(t):n(t)}function a(n){return e.exit("codeIndented"),t(n)}}},n2={partial:!0,tokenize:function(e,t,n){let r=this;return i;function i(t){return r.parser.lazy[r.now().line]?n(t):nC(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):nz(e,a,"linePrefix",5)(t)}function a(e){let a=r.events[r.events.length-1];return a&&"linePrefix"===a[1].type&&a[2].sliceSerialize(a[1],!0).length>=4?t(e):nC(e)?i(e):n(e)}}};function n7(e,t,n,r,i,a,o,s,l){let c=l||1/0,u=0;return function(t){return 60===t?(e.enter(r),e.enter(i),e.enter(a),e.consume(t),e.exit(a),h):null===t||32===t||41===t||nk(t)?n(t):(e.enter(r),e.enter(o),e.enter(s),e.enter("chunkString",{contentType:"string"}),m(t))};function h(n){return 62===n?(e.enter(a),e.consume(n),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),p(n))}function p(t){return 62===t?(e.exit("chunkString"),e.exit(s),h(t)):null===t||60===t||nC(t)?n(t):(e.consume(t),92===t?d:p)}function d(t){return 60===t||62===t||92===t?(e.consume(t),p):p(t)}function m(i){return!u&&(null===i||41===i||nT(i))?(e.exit("chunkString"),e.exit(s),e.exit(o),e.exit(r),t(i)):u<c&&40===i?(e.consume(i),u++,m):41===i?(e.consume(i),u--,m):null===i||32===i||40===i||nk(i)?n(i):(e.consume(i),92===i?f:m)}function f(t){return 40===t||41===t||92===t?(e.consume(t),m):m(t)}}function n8(e,t,n,r,i,a){let o,s=this,l=0;return function(t){return e.enter(r),e.enter(i),e.consume(t),e.exit(i),e.enter(a),c};function c(h){return l>999||null===h||91===h||93===h&&!o||94===h&&!l&&"_hiddenFootnoteSupport"in s.parser.constructs?n(h):93===h?(e.exit(a),e.enter(i),e.consume(h),e.exit(i),e.exit(r),t):nC(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),u(h))}function u(t){return null===t||91===t||93===t||nC(t)||l++>999?(e.exit("chunkString"),c(t)):(e.consume(t),o||(o=!n_(t)),92===t?h:u)}function h(t){return 91===t||92===t||93===t?(e.consume(t),l++,u):u(t)}}function n9(e,t,n,r,i,a){let o;return function(t){return 34===t||39===t||40===t?(e.enter(r),e.enter(i),e.consume(t),e.exit(i),o=40===t?41:t,s):n(t)};function s(n){return n===o?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(a),l(n))}function l(t){return t===o?(e.exit(a),s(o)):null===t?n(t):nC(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),nz(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(t))}function c(t){return t===o||null===t||nC(t)?(e.exit("chunkString"),l(t)):(e.consume(t),92===t?u:c)}function u(t){return t===o||92===t?(e.consume(t),c):c(t)}}function re(e,t){let n;return function r(i){return nC(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):n_(i)?nz(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}function rt(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}let rn={partial:!0,tokenize:function(e,t,n){return function(t){return nT(t)?re(e,r)(t):n(t)};function r(t){return n9(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function i(t){return n_(t)?nz(e,a,"whitespace")(t):a(t)}function a(e){return null===e||nC(e)?t(e):n(e)}}},rr=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],ri=["pre","script","style","textarea"],ra={partial:!0,tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(nL,t,n)}}},ro={partial:!0,tokenize:function(e,t,n){let r=this;return function(t){return nC(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):n(t)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},rs={name:"labelEnd",resolveAll:function(e){let t=-1,n=[];for(;++t<e.length;){let r=e[t][1];if(n.push(e[t]),"labelImage"===r.type||"labelLink"===r.type||"labelEnd"===r.type){let e="labelImage"===r.type?4:2;r.type="data",t+=e}}return e.length!==n.length&&nm(e,0,e.length,n),e},resolveTo:function(e,t){let n,r,i,a,o=e.length,s=0;for(;o--;)if(n=e[o][1],r){if("link"===n.type||"labelLink"===n.type&&n._inactive)break;"enter"===e[o][0]&&"labelLink"===n.type&&(n._inactive=!0)}else if(i){if("enter"===e[o][0]&&("labelImage"===n.type||"labelLink"===n.type)&&!n._balanced&&(r=o,"labelLink"!==n.type)){s=2;break}}else"labelEnd"===n.type&&(i=o);let l={type:"labelLink"===e[r][1].type?"link":"image",start:{...e[r][1].start},end:{...e[e.length-1][1].end}},c={type:"label",start:{...e[r][1].start},end:{...e[i][1].end}},u={type:"labelText",start:{...e[r+s+2][1].end},end:{...e[i-2][1].start}};return a=nf(a=[["enter",l,t],["enter",c,t]],e.slice(r+1,r+s+3)),a=nf(a,[["enter",u,t]]),a=nf(a,nY(t.parser.constructs.insideSpan.null,e.slice(r+s+4,i-3),t)),a=nf(a,[["exit",u,t],e[i-2],e[i-1],["exit",c,t]]),a=nf(a,e.slice(i+1)),a=nf(a,[["exit",l,t]]),nm(e,r,e.length,a),e},tokenize:function(e,t,n){let r,i,a=this,o=a.events.length;for(;o--;)if(("labelImage"===a.events[o][1].type||"labelLink"===a.events[o][1].type)&&!a.events[o][1]._balanced){r=a.events[o][1];break}return function(t){return r?r._inactive?u(t):(i=a.parser.defined.includes(rt(a.sliceSerialize({start:r.end,end:a.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),s):n(t)};function s(t){return 40===t?e.attempt(rl,c,i?c:u)(t):91===t?e.attempt(rc,c,i?l:u)(t):i?c(t):u(t)}function l(t){return e.attempt(ru,c,u)(t)}function c(e){return t(e)}function u(e){return r._balanced=!0,n(e)}}},rl={tokenize:function(e,t,n){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),r};function r(t){return nT(t)?re(e,i)(t):i(t)}function i(t){return 41===t?c(t):n7(e,a,o,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function a(t){return nT(t)?re(e,s)(t):c(t)}function o(e){return n(e)}function s(t){return 34===t||39===t||40===t?n9(e,l,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):c(t)}function l(t){return nT(t)?re(e,c)(t):c(t)}function c(r){return 41===r?(e.enter("resourceMarker"),e.consume(r),e.exit("resourceMarker"),e.exit("resource"),t):n(r)}}},rc={tokenize:function(e,t,n){let r=this;return function(t){return n8.call(r,e,i,a,"reference","referenceMarker","referenceString")(t)};function i(e){return r.parser.defined.includes(rt(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function a(e){return n(e)}}},ru={tokenize:function(e,t,n){return function(t){return e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),r};function r(r){return 93===r?(e.enter("referenceMarker"),e.consume(r),e.exit("referenceMarker"),e.exit("reference"),t):n(r)}}},rh={name:"labelStartImage",resolveAll:rs.resolveAll,tokenize:function(e,t,n){let r=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),i};function i(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),a):n(t)}function a(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}},rp={name:"labelStartLink",resolveAll:rs.resolveAll,tokenize:function(e,t,n){let r=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),i};function i(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}},rd={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),nz(e,t,"linePrefix")}}},rm={name:"thematicBreak",tokenize:function(e,t,n){let r,i=0;return function(a){var o;return e.enter("thematicBreak"),r=o=a,function a(o){return o===r?(e.enter("thematicBreakSequence"),function t(n){return n===r?(e.consume(n),i++,t):(e.exit("thematicBreakSequence"),n_(n)?nz(e,a,"whitespace")(n):a(n))}(o)):i>=3&&(null===o||nC(o))?(e.exit("thematicBreak"),t(o)):n(o)}(o)}}},rf={continuation:{tokenize:function(e,t,n){let r=this;return r.containerState._closeFlow=void 0,e.check(nL,function(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,nz(e,t,"listItemIndent",r.containerState.size+1)(n)},function(n){return r.containerState.furtherBlankLines||!n_(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,i(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(ry,t,i)(n))});function i(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,nz(e,e.attempt(rf,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i)}}},exit:function(e){e.exit(this.containerState.type)},name:"list",tokenize:function(e,t,n){let r=this,i=r.events[r.events.length-1],a=i&&"linePrefix"===i[1].type?i[2].sliceSerialize(i[1],!0).length:0,o=0;return function(t){let i=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===i?!r.containerState.marker||t===r.containerState.marker:nw(t)){if(r.containerState.type||(r.containerState.type=i,e.enter(i,{_container:!0})),"listUnordered"===i)return e.enter("listItemPrefix"),42===t||45===t?e.check(rm,n,s)(t):s(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),function t(i){return nw(i)&&++o<10?(e.consume(i),t):(!r.interrupt||o<2)&&(r.containerState.marker?i===r.containerState.marker:41===i||46===i)?(e.exit("listItemValue"),s(i)):n(i)}(t)}return n(t)};function s(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(nL,r.interrupt?n:l,e.attempt(rg,u,c))}function l(e){return r.containerState.initialBlankLine=!0,a++,u(e)}function c(t){return n_(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),u):n(t)}function u(n){return r.containerState.size=a+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}}},rg={partial:!0,tokenize:function(e,t,n){let r=this;return nz(e,function(e){let i=r.events[r.events.length-1];return!n_(e)&&i&&"listItemPrefixWhitespace"===i[1].type?t(e):n(e)},"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)}},ry={partial:!0,tokenize:function(e,t,n){let r=this;return nz(e,function(e){let i=r.events[r.events.length-1];return i&&"listItemIndent"===i[1].type&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(e):n(e)},"listItemIndent",r.containerState.size+1)}},rb={name:"setextUnderline",resolveTo:function(e,t){let n,r,i,a=e.length;for(;a--;)if("enter"===e[a][0]){if("content"===e[a][1].type){n=a;break}"paragraph"===e[a][1].type&&(r=a)}else"content"===e[a][1].type&&e.splice(a,1),i||"definition"!==e[a][1].type||(i=a);let o={type:"setextHeading",start:{...e[n][1].start},end:{...e[e.length-1][1].end}};return e[r][1].type="setextHeadingText",i?(e.splice(r,0,["enter",o,t]),e.splice(i+1,0,["exit",e[n][1],t]),e[n][1].end={...e[i][1].end}):e[n][1]=o,e.push(["exit",o,t]),e},tokenize:function(e,t,n){let r,i=this;return function(t){var o;let s,l=i.events.length;for(;l--;)if("lineEnding"!==i.events[l][1].type&&"linePrefix"!==i.events[l][1].type&&"content"!==i.events[l][1].type){s="paragraph"===i.events[l][1].type;break}return!i.parser.lazy[i.now().line]&&(i.interrupt||s)?(e.enter("setextHeadingLine"),r=t,o=t,e.enter("setextHeadingLineSequence"),function t(n){return n===r?(e.consume(n),t):(e.exit("setextHeadingLineSequence"),n_(n)?nz(e,a,"lineSuffix")(n):a(n))}(o)):n(t)};function a(r){return null===r||nC(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}}},rv={42:rf,43:rf,45:rf,48:rf,49:rf,50:rf,51:rf,52:rf,53:rf,54:rf,55:rf,56:rf,57:rf,62:nK},rx={91:{name:"definition",tokenize:function(e,t,n){let r,i=this;return function(t){var r;return e.enter("definition"),r=t,n8.call(i,e,a,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(r)};function a(t){return(r=rt(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),58===t)?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),o):n(t)}function o(t){return nT(t)?re(e,s)(t):s(t)}function s(t){return n7(e,l,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function l(t){return e.attempt(rn,c,c)(t)}function c(t){return n_(t)?nz(e,u,"whitespace")(t):u(t)}function u(a){return null===a||nC(a)?(e.exit("definition"),i.parser.defined.push(r),t(a)):n(a)}}}},rk={[-2]:n3,[-1]:n3,32:n3},rw={35:{name:"headingAtx",resolve:function(e,t){let n,r,i=e.length-2,a=3;return"whitespace"===e[3][1].type&&(a+=2),i-2>a&&"whitespace"===e[i][1].type&&(i-=2),"atxHeadingSequence"===e[i][1].type&&(a===i-1||i-4>a&&"whitespace"===e[i-2][1].type)&&(i-=a+1===i?2:4),i>a&&(n={type:"atxHeadingText",start:e[a][1].start,end:e[i][1].end},r={type:"chunkText",start:e[a][1].start,end:e[i][1].end,contentType:"text"},nm(e,a,i-a+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]])),e},tokenize:function(e,t,n){let r=0;return function(i){var a;return e.enter("atxHeading"),a=i,e.enter("atxHeadingSequence"),function i(a){return 35===a&&r++<6?(e.consume(a),i):null===a||nT(a)?(e.exit("atxHeadingSequence"),function n(r){return 35===r?(e.enter("atxHeadingSequence"),function t(r){return 35===r?(e.consume(r),t):(e.exit("atxHeadingSequence"),n(r))}(r)):null===r||nC(r)?(e.exit("atxHeading"),t(r)):n_(r)?nz(e,n,"whitespace")(r):(e.enter("atxHeadingText"),function t(r){return null===r||35===r||nT(r)?(e.exit("atxHeadingText"),n(r)):(e.consume(r),t)}(r))}(a)):n(a)}(a)}}},42:rm,45:[rb,rm],60:{concrete:!0,name:"htmlFlow",resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););return t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e},tokenize:function(e,t,n){let r,i,a,o,s,l=this;return function(t){var n;return n=t,e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(n),c};function c(o){return 33===o?(e.consume(o),u):47===o?(e.consume(o),i=!0,d):63===o?(e.consume(o),r=3,l.interrupt?t:I):nb(o)?(e.consume(o),a=String.fromCharCode(o),m):n(o)}function u(i){return 45===i?(e.consume(i),r=2,h):91===i?(e.consume(i),r=5,o=0,p):nb(i)?(e.consume(i),r=4,l.interrupt?t:I):n(i)}function h(r){return 45===r?(e.consume(r),l.interrupt?t:I):n(r)}function p(r){let i="CDATA[";return r===i.charCodeAt(o++)?(e.consume(r),o===i.length)?l.interrupt?t:A:p:n(r)}function d(t){return nb(t)?(e.consume(t),a=String.fromCharCode(t),m):n(t)}function m(o){if(null===o||47===o||62===o||nT(o)){let s=47===o,c=a.toLowerCase();return!s&&!i&&ri.includes(c)?(r=1,l.interrupt?t(o):A(o)):rr.includes(a.toLowerCase())?(r=6,s)?(e.consume(o),f):l.interrupt?t(o):A(o):(r=7,l.interrupt&&!l.parser.lazy[l.now().line]?n(o):i?function t(n){return n_(n)?(e.consume(n),t):w(n)}(o):g(o))}return 45===o||nv(o)?(e.consume(o),a+=String.fromCharCode(o),m):n(o)}function f(r){return 62===r?(e.consume(r),l.interrupt?t:A):n(r)}function g(t){return 47===t?(e.consume(t),w):58===t||95===t||nb(t)?(e.consume(t),y):n_(t)?(e.consume(t),g):w(t)}function y(t){return 45===t||46===t||58===t||95===t||nv(t)?(e.consume(t),y):b(t)}function b(t){return 61===t?(e.consume(t),v):n_(t)?(e.consume(t),b):g(t)}function v(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),s=t,x):n_(t)?(e.consume(t),v):function t(n){return null===n||34===n||39===n||47===n||60===n||61===n||62===n||96===n||nT(n)?b(n):(e.consume(n),t)}(t)}function x(t){return t===s?(e.consume(t),s=null,k):null===t||nC(t)?n(t):(e.consume(t),x)}function k(e){return 47===e||62===e||n_(e)?g(e):n(e)}function w(t){return 62===t?(e.consume(t),S):n(t)}function S(t){return null===t||nC(t)?A(t):n_(t)?(e.consume(t),S):n(t)}function A(t){return 45===t&&2===r?(e.consume(t),M):60===t&&1===r?(e.consume(t),N):62===t&&4===r?(e.consume(t),R):63===t&&3===r?(e.consume(t),I):93===t&&5===r?(e.consume(t),z):nC(t)&&(6===r||7===r)?(e.exit("htmlFlowData"),e.check(ra,j,C)(t)):null===t||nC(t)?(e.exit("htmlFlowData"),C(t)):(e.consume(t),A)}function C(t){return e.check(ro,T,j)(t)}function T(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),_}function _(t){return null===t||nC(t)?C(t):(e.enter("htmlFlowData"),A(t))}function M(t){return 45===t?(e.consume(t),I):A(t)}function N(t){return 47===t?(e.consume(t),a="",E):A(t)}function E(t){if(62===t){let n=a.toLowerCase();return ri.includes(n)?(e.consume(t),R):A(t)}return nb(t)&&a.length<8?(e.consume(t),a+=String.fromCharCode(t),E):A(t)}function z(t){return 93===t?(e.consume(t),I):A(t)}function I(t){return 62===t?(e.consume(t),R):45===t&&2===r?(e.consume(t),I):A(t)}function R(t){return null===t||nC(t)?(e.exit("htmlFlowData"),j(t)):(e.consume(t),R)}function j(n){return e.exit("htmlFlow"),t(n)}}},61:rb,95:rm,96:n6,126:n6},rS={38:n4,92:nQ},rA={[-5]:rd,[-4]:rd,[-3]:rd,33:rh,38:n4,42:nJ,60:[{name:"autolink",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i};function i(t){return nb(t)?(e.consume(t),a):64===t?n(t):s(t)}function a(t){return 43===t||45===t||46===t||nv(t)?(r=1,function t(n){return 58===n?(e.consume(n),r=0,o):(43===n||45===n||46===n||nv(n))&&r++<32?(e.consume(n),t):(r=0,s(n))}(t)):s(t)}function o(r){return 62===r?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t):null===r||32===r||60===r||nk(r)?n(r):(e.consume(r),o)}function s(t){return 64===t?(e.consume(t),l):nx(t)?(e.consume(t),s):n(t)}function l(i){return nv(i)?function i(a){return 46===a?(e.consume(a),r=0,l):62===a?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(a),e.exit("autolinkMarker"),e.exit("autolink"),t):function t(a){if((45===a||nv(a))&&r++<63){let n=45===a?t:i;return e.consume(a),n}return n(a)}(a)}(i):n(i)}}},{name:"htmlText",tokenize:function(e,t,n){let r,i,a,o=this;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),s};function s(t){return 33===t?(e.consume(t),l):47===t?(e.consume(t),x):63===t?(e.consume(t),b):nb(t)?(e.consume(t),w):n(t)}function l(t){return 45===t?(e.consume(t),c):91===t?(e.consume(t),i=0,d):nb(t)?(e.consume(t),y):n(t)}function c(t){return 45===t?(e.consume(t),p):n(t)}function u(t){return null===t?n(t):45===t?(e.consume(t),h):nC(t)?(a=u,E(t)):(e.consume(t),u)}function h(t){return 45===t?(e.consume(t),p):u(t)}function p(e){return 62===e?N(e):45===e?h(e):u(e)}function d(t){let r="CDATA[";return t===r.charCodeAt(i++)?(e.consume(t),i===r.length?m:d):n(t)}function m(t){return null===t?n(t):93===t?(e.consume(t),f):nC(t)?(a=m,E(t)):(e.consume(t),m)}function f(t){return 93===t?(e.consume(t),g):m(t)}function g(t){return 62===t?N(t):93===t?(e.consume(t),g):m(t)}function y(t){return null===t||62===t?N(t):nC(t)?(a=y,E(t)):(e.consume(t),y)}function b(t){return null===t?n(t):63===t?(e.consume(t),v):nC(t)?(a=b,E(t)):(e.consume(t),b)}function v(e){return 62===e?N(e):b(e)}function x(t){return nb(t)?(e.consume(t),k):n(t)}function k(t){return 45===t||nv(t)?(e.consume(t),k):function t(n){return nC(n)?(a=t,E(n)):n_(n)?(e.consume(n),t):N(n)}(t)}function w(t){return 45===t||nv(t)?(e.consume(t),w):47===t||62===t||nT(t)?S(t):n(t)}function S(t){return 47===t?(e.consume(t),N):58===t||95===t||nb(t)?(e.consume(t),A):nC(t)?(a=S,E(t)):n_(t)?(e.consume(t),S):N(t)}function A(t){return 45===t||46===t||58===t||95===t||nv(t)?(e.consume(t),A):function t(n){return 61===n?(e.consume(n),C):nC(n)?(a=t,E(n)):n_(n)?(e.consume(n),t):S(n)}(t)}function C(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),r=t,T):nC(t)?(a=C,E(t)):n_(t)?(e.consume(t),C):(e.consume(t),_)}function T(t){return t===r?(e.consume(t),r=void 0,M):null===t?n(t):nC(t)?(a=T,E(t)):(e.consume(t),T)}function _(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||nT(t)?S(t):(e.consume(t),_)}function M(e){return 47===e||62===e||nT(e)?S(e):n(e)}function N(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}function E(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),z}function z(t){return n_(t)?nz(e,I,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):I(t)}function I(t){return e.enter("htmlTextData"),a(t)}}}],91:rp,92:[{name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return nC(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}},nQ],93:rs,95:nJ,96:{name:"codeText",previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type},resolve:function(e){let t,n,r=e.length-4,i=3;if(("lineEnding"===e[3][1].type||"space"===e[i][1].type)&&("lineEnding"===e[r][1].type||"space"===e[r][1].type)){for(t=i;++t<r;)if("codeTextData"===e[t][1].type){e[i][1].type="codeTextPadding",e[r][1].type="codeTextPadding",i+=2,r-=2;break}}for(t=i-1,r++;++t<=r;)void 0===n?t!==r&&"lineEnding"!==e[t][1].type&&(n=t):(t===r||"lineEnding"===e[t][1].type)&&(e[n][1].type="codeTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),r-=t-n-2,t=n+2),n=void 0);return e},tokenize:function(e,t,n){let r,i,a=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),function t(n){return 96===n?(e.consume(n),a++,t):(e.exit("codeTextSequence"),o(n))}(t)};function o(l){return null===l?n(l):32===l?(e.enter("space"),e.consume(l),e.exit("space"),o):96===l?(i=e.enter("codeTextSequence"),r=0,function n(o){return 96===o?(e.consume(o),r++,n):r===a?(e.exit("codeTextSequence"),e.exit("codeText"),t(o)):(i.type="codeTextData",s(o))}(l)):nC(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),o):(e.enter("codeTextData"),s(l))}function s(t){return null===t||32===t||96===t||nC(t)?(e.exit("codeTextData"),o(t)):(e.consume(t),s)}}}},rC={null:[nJ,nH]},rT={null:[42,95]},r_={null:[]};var rM=e.i(4127);let rN=/[\0\t\n\r]/g;function rE(e,t){let n=Number.parseInt(e,t);return n<9||11===n||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(65535&n)==65535||(65535&n)==65534||n>1114111?"�":String.fromCodePoint(n)}let rz=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function rI(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){let e=n.charCodeAt(1),t=120===e||88===e;return rE(n.slice(t?2:1),t?16:10)}return n1(n)||e}let rR={}.hasOwnProperty;function rj(e){return{line:e.line,column:e.column,offset:e.offset}}function rL(e,t){if(e)throw Error("Cannot close `"+e.type+"` ("+t1({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+t1({start:t.start,end:t.end})+") is open");throw Error("Cannot close document, a token (`"+t.type+"`, "+t1({start:t.start,end:t.end})+") is still open")}function rP(e){let t=this;t.parser=function(n){var r,i;let a,o,s,l;return"object"==typeof(r={...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})&&(i=r,r=void 0),(function(e){let t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:r(y),autolinkProtocol:c,autolinkEmail:c,atxHeading:r(m),blockQuote:r(function(){return{type:"blockquote",children:[]}}),characterEscape:c,characterReference:c,codeFenced:r(d),codeFencedFenceInfo:i,codeFencedFenceMeta:i,codeIndented:r(d,i),codeText:r(function(){return{type:"inlineCode",value:""}},i),codeTextData:c,data:c,codeFlowValue:c,definition:r(function(){return{type:"definition",identifier:"",label:null,title:null,url:""}}),definitionDestinationString:i,definitionLabelString:i,definitionTitleString:i,emphasis:r(function(){return{type:"emphasis",children:[]}}),hardBreakEscape:r(f),hardBreakTrailing:r(f),htmlFlow:r(g,i),htmlFlowData:c,htmlText:r(g,i),htmlTextData:c,image:r(function(){return{type:"image",title:null,url:"",alt:null}}),label:i,link:r(y),listItem:r(function(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}),listItemValue:function(e){this.data.expectingFirstListItemValue&&(this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0)},listOrdered:r(b,function(){this.data.expectingFirstListItemValue=!0}),listUnordered:r(b),paragraph:r(function(){return{type:"paragraph",children:[]}}),reference:function(){this.data.referenceType="collapsed"},referenceString:i,resourceDestinationString:i,resourceTitleString:i,setextHeading:r(m),strong:r(function(){return{type:"strong",children:[]}}),thematicBreak:r(function(){return{type:"thematicBreak"}})},exit:{atxHeading:o(),atxHeadingSequence:function(e){let t=this.stack[this.stack.length-1];t.depth||(t.depth=this.sliceSerialize(e).length)},autolink:o(),autolinkEmail:function(e){u.call(this,e),this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)},autolinkProtocol:function(e){u.call(this,e),this.stack[this.stack.length-1].url=this.sliceSerialize(e)},blockQuote:o(),characterEscapeValue:u,characterReferenceMarkerHexadecimal:p,characterReferenceMarkerNumeric:p,characterReferenceValue:function(e){let t,n=this.sliceSerialize(e),r=this.data.characterReferenceType;r?(t=rE(n,"characterReferenceMarkerNumeric"===r?10:16),this.data.characterReferenceType=void 0):t=n1(n);let i=this.stack[this.stack.length-1];i.value+=t},characterReference:function(e){this.stack.pop().position.end=rj(e.end)},codeFenced:o(function(){let e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}),codeFencedFence:function(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)},codeFencedFenceInfo:function(){let e=this.resume();this.stack[this.stack.length-1].lang=e},codeFencedFenceMeta:function(){let e=this.resume();this.stack[this.stack.length-1].meta=e},codeFlowValue:u,codeIndented:o(function(){let e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}),codeText:o(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),codeTextData:u,data:u,definition:o(),definitionDestinationString:function(){let e=this.resume();this.stack[this.stack.length-1].url=e},definitionLabelString:function(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=rt(this.sliceSerialize(e)).toLowerCase()},definitionTitleString:function(){let e=this.resume();this.stack[this.stack.length-1].title=e},emphasis:o(),hardBreakEscape:o(h),hardBreakTrailing:o(h),htmlFlow:o(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),htmlFlowData:u,htmlText:o(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),htmlTextData:u,image:o(function(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),label:function(){let e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];this.data.inReference=!0,"link"===n.type?n.children=e.children:n.alt=t},labelText:function(e){let t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=t.replace(rz,rI),n.identifier=rt(t).toLowerCase()},lineEnding:function(e){let n=this.stack[this.stack.length-1];if(this.data.atHardBreak){n.children[n.children.length-1].position.end=rj(e.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(c.call(this,e),u.call(this,e))},link:o(function(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),listItem:o(),listOrdered:o(),listUnordered:o(),paragraph:o(),referenceString:function(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=rt(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType="full"},resourceDestinationString:function(){let e=this.resume();this.stack[this.stack.length-1].url=e},resourceTitleString:function(){let e=this.resume();this.stack[this.stack.length-1].title=e},resource:function(){this.data.inReference=void 0},setextHeading:o(function(){this.data.setextHeadingSlurpLineEnding=void 0}),setextHeadingLineSequence:function(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).codePointAt(0)?1:2},setextHeadingText:function(){this.data.setextHeadingSlurpLineEnding=!0},strong:o(),thematicBreak:o()}};!function e(t,n){let r=-1;for(;++r<n.length;){let i=n[r];Array.isArray(i)?e(t,i):function(e,t){let n;for(n in t)if(rR.call(t,n))switch(n){case"canContainEols":{let r=t[n];r&&e[n].push(...r);break}case"transforms":{let r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{let r=t[n];r&&Object.assign(e[n],r)}}}(t,i)}}(t,(e||{}).mdastExtensions||[]);let n={};return function(e){let r={type:"root",children:[]},o={stack:[r],tokenStack:[],config:t,enter:a,exit:s,buffer:i,resume:l,data:n},c=[],u=-1;for(;++u<e.length;)("listOrdered"===e[u][1].type||"listUnordered"===e[u][1].type)&&("enter"===e[u][0]?c.push(u):u=function(e,t,n){let r,i,a,o,s=t-1,l=-1,c=!1;for(;++s<=n;){let t=e[s];switch(t[1].type){case"listUnordered":case"listOrdered":case"blockQuote":"enter"===t[0]?l++:l--,o=void 0;break;case"lineEndingBlank":"enter"===t[0]&&(!r||o||l||a||(a=s),o=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:o=void 0}if(!l&&"enter"===t[0]&&"listItemPrefix"===t[1].type||-1===l&&"exit"===t[0]&&("listUnordered"===t[1].type||"listOrdered"===t[1].type)){if(r){let o=s;for(i=void 0;o--;){let t=e[o];if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){if("exit"===t[0])continue;i&&(e[i][1].type="lineEndingBlank",c=!0),t[1].type="lineEnding",i=o}else if("linePrefix"===t[1].type||"blockQuotePrefix"===t[1].type||"blockQuotePrefixWhitespace"===t[1].type||"blockQuoteMarker"===t[1].type||"listItemIndent"===t[1].type);else break}a&&(!i||a<i)&&(r._spread=!0),r.end=Object.assign({},i?e[i][1].start:t[1].end),e.splice(i||s,0,["exit",r,t[2]]),s++,n++}if("listItemPrefix"===t[1].type){let i={type:"listItem",_spread:!1,start:Object.assign({},t[1].start),end:void 0};r=i,e.splice(s,0,["enter",i,t[2]]),s++,n++,a=void 0,o=!0}}}return e[t][1]._spread=c,n}(e,c.pop(),u));for(u=-1;++u<e.length;){let n=t[e[u][0]];rR.call(n,e[u][1].type)&&n[e[u][1].type].call(Object.assign({sliceSerialize:e[u][2].sliceSerialize},o),e[u][1])}if(o.tokenStack.length>0){let e=o.tokenStack[o.tokenStack.length-1];(e[1]||rL).call(o,void 0,e[0])}for(r.position={start:rj(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:rj(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},u=-1;++u<t.transforms.length;)r=t.transforms[u](r)||r;return r};function r(e,t){return function(n){a.call(this,e(n),n),t&&t.call(this,n)}}function i(){this.stack.push({type:"fragment",children:[]})}function a(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n||void 0]),e.position={start:rj(t.start),end:void 0}}function o(e){return function(t){e&&e.call(this,t),s.call(this,t)}}function s(e,t){let n=this.stack.pop(),r=this.tokenStack.pop();if(r)r[0].type!==e.type&&(t?t.call(this,e,r[0]):(r[1]||rL).call(this,e,r[0]));else throw Error("Cannot close `"+e.type+"` ("+t1({start:e.start,end:e.end})+"): it’s not open");n.position.end=rj(e.end)}function l(){return nh(this.stack.pop())}function c(e){let t=this.stack[this.stack.length-1].children,n=t[t.length-1];n&&"text"===n.type||((n={type:"text",value:""}).position={start:rj(e.start),end:void 0},t.push(n)),this.stack.push(n)}function u(e){let t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=rj(e.end)}function h(){this.data.atHardBreak=!0}function p(e){this.data.characterReferenceType=e.type}function d(){return{type:"code",lang:null,meta:null,value:""}}function m(){return{type:"heading",depth:0,children:[]}}function f(){return{type:"break"}}function g(){return{type:"html",value:""}}function y(){return{type:"link",title:null,url:"",children:[]}}function b(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}})(i)(function(e){for(;!nO(e););return e}((function(e){let t={constructs:ny([rM,...(e||{}).extensions||[]]),content:n(nI),defined:[],document:n(nR),flow:n(nq),lazy:{},string:n(nU),text:n(nG)};return t;function n(e){return function(n){return function(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0},i={},a=[],o=[],s=[],l={attempt:m(function(e,t){f(e,t.from)}),check:m(d),consume:function(e){nC(e)?(r.line++,r.column=1,r.offset+=-3===e?2:1,g()):-1!==e&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),c.previous=e},enter:function(e,t){let n=t||{};return n.type=e,n.start=p(),c.events.push(["enter",n,c]),s.push(n),n},exit:function(e){let t=s.pop();return t.end=p(),c.events.push(["exit",t,c]),t},interrupt:m(d,{interrupt:!0})},c={code:null,containerState:{},defineSkip:function(e){i[e.line]=e.column,g()},events:[],now:p,parser:e,previous:null,sliceSerialize:function(e,t){return function(e,t){let n,r=-1,i=[];for(;++r<e.length;){let a,o=e[r];if("string"==typeof o)a=o;else switch(o){case -5:a="\r";break;case -4:a="\n";break;case -3:a="\r\n";break;case -2:a=t?" ":" ";break;case -1:if(!t&&n)continue;a=" ";break;default:a=String.fromCharCode(o)}n=-2===o,i.push(a)}return i.join("")}(h(e),t)},sliceStream:h,write:function(e){return(o=nf(o,e),function(){let e;for(;r._index<o.length;){let n=o[r._index];if("string"==typeof n)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<n.length;){var t;t=n.charCodeAt(r._bufferIndex),u=u(t)}else u=u(n)}}(),null!==o[o.length-1])?[]:(f(t,0),c.events=nY(a,c.events,c),c.events)}},u=t.tokenize.call(c,l);return t.resolveAll&&a.push(t),c;function h(e){return function(e,t){let n,r=t.start._index,i=t.start._bufferIndex,a=t.end._index,o=t.end._bufferIndex;if(r===a)n=[e[r].slice(i,o)];else{if(n=e.slice(r,a),i>-1){let e=n[0];"string"==typeof e?n[0]=e.slice(i):n.shift()}o>0&&n.push(e[a].slice(0,o))}return n}(o,e)}function p(){let{_bufferIndex:e,_index:t,line:n,column:i,offset:a}=r;return{_bufferIndex:e,_index:t,line:n,column:i,offset:a}}function d(e,t){t.restore()}function m(e,t){return function(n,i,a){var o;let u,h,d,m;return Array.isArray(n)?f(n):"tokenize"in n?f([n]):(o=n,function(e){let t=null!==e&&o[e],n=null!==e&&o.null;return f([...Array.isArray(t)?t:t?[t]:[],...Array.isArray(n)?n:n?[n]:[]])(e)});function f(e){return(u=e,h=0,0===e.length)?a:y(e[h])}function y(e){return function(n){return(m=function(){let e=p(),t=c.previous,n=c.currentConstruct,i=c.events.length,a=Array.from(s);return{from:i,restore:function(){r=e,c.previous=t,c.currentConstruct=n,c.events.length=i,s=a,g()}}}(),d=e,e.partial||(c.currentConstruct=e),e.name&&c.parser.constructs.disable.null.includes(e.name))?v(n):e.tokenize.call(t?Object.assign(Object.create(c),t):c,l,b,v)(n)}}function b(t){return e(d,m),i}function v(e){return(m.restore(),++h<u.length)?y(u[h]):a}}}function f(e,t){e.resolveAll&&!a.includes(e)&&a.push(e),e.resolve&&nm(c.events,t,c.events.length-t,e.resolve(c.events.slice(t),c)),e.resolveTo&&(c.events=e.resolveTo(c.events,c))}function g(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}(t,e,n)}}})(i).document().write((o=1,s="",l=!0,function(e,t,n){let r,i,c,u,h,p=[];for(e=s+("string"==typeof e?e.toString():new TextDecoder(t||void 0).decode(e)),c=0,s="",l&&(65279===e.charCodeAt(0)&&c++,l=void 0);c<e.length;){if(rN.lastIndex=c,u=(r=rN.exec(e))&&void 0!==r.index?r.index:e.length,h=e.charCodeAt(u),!r){s=e.slice(c);break}if(10===h&&c===u&&a)p.push(-3),a=void 0;else switch(a&&(p.push(-5),a=void 0),c<u&&(p.push(e.slice(c,u)),o+=u-c),h){case 0:p.push(65533),o++;break;case 9:for(i=4*Math.ceil(o/4),p.push(-2);o++<i;)p.push(-1);break;case 10:p.push(-4),o=1;break;default:a=!0,o=1}c=u+1}return n&&(a&&p.push(-5),s&&p.push(s),p.push(null)),p})(n,r,!0))))}}let rB="object"==typeof self?self:globalThis,rO=e=>((e,t)=>{let n=(t,n)=>(e.set(n,t),t),r=i=>{if(e.has(i))return e.get(i);let[a,o]=t[i];switch(a){case 0:case -1:return n(o,i);case 1:{let e=n([],i);for(let t of o)e.push(r(t));return e}case 2:{let e=n({},i);for(let[t,n]of o)e[r(t)]=r(n);return e}case 3:return n(new Date(o),i);case 4:{let{source:e,flags:t}=o;return n(new RegExp(e,t),i)}case 5:{let e=n(new Map,i);for(let[t,n]of o)e.set(r(t),r(n));return e}case 6:{let e=n(new Set,i);for(let t of o)e.add(r(t));return e}case 7:{let{name:e,message:t}=o;return n(new rB[e](t),i)}case 8:return n(BigInt(o),i);case"BigInt":return n(Object(BigInt(o)),i);case"ArrayBuffer":return n(new Uint8Array(o).buffer,o);case"DataView":{let{buffer:e}=new Uint8Array(o);return n(new DataView(e),o)}}return n(new rB[a](o),i)};return r})(new Map,e)(0),{toString:rD}={},{keys:rF}=Object,rq=e=>{let t=typeof e;if("object"!==t||!e)return[0,t];let n=rD.call(e).slice(8,-1);switch(n){case"Array":return[1,""];case"Object":return[2,""];case"Date":return[3,""];case"RegExp":return[4,""];case"Map":return[5,""];case"Set":return[6,""];case"DataView":return[1,n]}return n.includes("Array")?[1,n]:n.includes("Error")?[7,n]:[2,n]},rH=e=>{let[t,n]=e;return 0===t&&("function"===n||"symbol"===n)},rU=function(e){let{json:t,lossy:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=[];return((e,t,n,r)=>{let i=(e,t)=>{let i=r.push(e)-1;return n.set(t,i),i},a=r=>{if(n.has(r))return n.get(r);let[o,s]=rq(r);switch(o){case 0:{let t=r;switch(s){case"bigint":o=8,t=r.toString();break;case"function":case"symbol":if(e)throw TypeError("unable to serialize "+s);t=null;break;case"undefined":return i([-1],r)}return i([o,t],r)}case 1:{if(s){let e=r;return"DataView"===s?e=new Uint8Array(r.buffer):"ArrayBuffer"===s&&(e=new Uint8Array(r)),i([s,[...e]],r)}let e=[],t=i([o,e],r);for(let t of r)e.push(a(t));return t}case 2:{if(s)switch(s){case"BigInt":return i([s,r.toString()],r);case"Boolean":case"Number":case"String":return i([s,r.valueOf()],r)}if(t&&"toJSON"in r)return a(r.toJSON());let n=[],l=i([o,n],r);for(let t of rF(r))(e||!rH(rq(r[t])))&&n.push([a(t),a(r[t])]);return l}case 3:return i([o,r.toISOString()],r);case 4:{let{source:e,flags:t}=r;return i([o,{source:e,flags:t}],r)}case 5:{let t=[],n=i([o,t],r);for(let[n,i]of r)(e||!(rH(rq(n))||rH(rq(i))))&&t.push([a(n),a(i)]);return n}case 6:{let t=[],n=i([o,t],r);for(let n of r)(e||!rH(rq(n)))&&t.push(a(n));return n}}let{message:l}=r;return i([o,{name:s,message:l}],r)};return a})(!(t||n),!!t,new Map,r)(e),r},rG="function"==typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?rO(rU(e,t)):structuredClone(e):(e,t)=>rO(rU(e,t));function rW(e){let t=[],n=-1,r=0,i=0;for(;++n<e.length;){let a=e.charCodeAt(n),o="";if(37===a&&nv(e.charCodeAt(n+1))&&nv(e.charCodeAt(n+2)))i=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(o=String.fromCharCode(a));else if(a>55295&&a<57344){let t=e.charCodeAt(n+1);a<56320&&t>56319&&t<57344?(o=String.fromCharCode(a,t),i=1):o="�"}else o=String.fromCharCode(a);o&&(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+i+1,o=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function rV(e,t){let n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function r$(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}let rX=function(e){var t,n;if(null==e)return rJ;if("function"==typeof e)return rY(e);if("object"==typeof e){return Array.isArray(e)?function(e){let t=[],n=-1;for(;++n<e.length;)t[n]=rX(e[n]);return rY(function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];let i=-1;for(;++i<t.length;)if(t[i].apply(this,n))return!0;return!1})}(e):(t=e,rY(function(e){let n;for(n in t)if(e[n]!==t[n])return!1;return!0}))}if("string"==typeof e){return n=e,rY(function(e){return e&&e.type===n})}throw Error("Expected function, string, or object as test")};function rY(e){return function(t,n,r){return!!(function(e){return null!==e&&"object"==typeof e&&"type"in e}(t)&&e.call(this,t,"number"==typeof n?n:void 0,r||void 0))}}function rJ(){return!0}let rZ=[],rK="skip";function rQ(e,t,n,r){let i;"function"==typeof t&&"function"!=typeof n?(r=n,n=t):i=t;let a=rX(i),o=r?-1:1;(function e(i,s,l){let c=i&&"object"==typeof i?i:{};if("string"==typeof c.type){let e="string"==typeof c.tagName?c.tagName:"string"==typeof c.name?c.name:void 0;Object.defineProperty(u,"name",{value:"node ("+i.type+(e?"<"+e+">":"")+")"})}return u;function u(){var c;let u,h,p,d=rZ;if((!t||a(i,s,l[l.length-1]||void 0))&&!1===(d=Array.isArray(c=n(i,l))?c:"number"==typeof c?[!0,c]:null==c?rZ:[c])[0])return d;if("children"in i&&i.children&&i.children&&d[0]!==rK)for(h=(r?i.children.length:-1)+o,p=l.concat(i);h>-1&&h<i.children.length;){if(!1===(u=e(i.children[h],h,p)())[0])return u;h="number"==typeof u[1]?u[1]:h+o}return d}})(e,void 0,[])()}function r0(e,t,n,r){let i,a,o;"function"==typeof t&&"function"!=typeof n?(a=void 0,o=t,i=n):(a=t,o=n,i=r),rQ(e,a,function(e,t){let n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return o(e,r,n)},i)}function r1(e,t){let n=t.referenceType,r="]";if("collapsed"===n?r+="[]":"full"===n&&(r+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return[{type:"text",value:"!["+t.alt+r}];let i=e.all(t),a=i[0];a&&"text"===a.type?a.value="["+a.value:i.unshift({type:"text",value:"["});let o=i[i.length-1];return o&&"text"===o.type?o.value+=r:i.push({type:"text",value:r}),i}function r4(e){let t=e.spread;return null==t?e.children.length>1:t}function r5(e,t,n){let r=0,i=e.length;if(t){let t=e.codePointAt(r);for(;9===t||32===t;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(i-1);for(;9===t||32===t;)i--,t=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}let r6={blockquote:function(e,t){let n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)},break:function(e,t){let n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]},code:function(e,t){let n=t.value?t.value+"\n":"",r={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(r.className=["language-"+i[0]]);let a={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(a.data={meta:t.meta}),e.patch(t,a),a={type:"element",tagName:"pre",properties:{},children:[a=e.applyData(t,a)]},e.patch(t,a),a},delete:function(e,t){let n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){let n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},footnoteReference:function(e,t){let n,r="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",i=String(t.identifier).toUpperCase(),a=rW(i.toLowerCase()),o=e.footnoteOrder.indexOf(i),s=e.footnoteCounts.get(i);void 0===s?(s=0,e.footnoteOrder.push(i),n=e.footnoteOrder.length):n=o+1,s+=1,e.footnoteCounts.set(i,s);let l={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+a,id:r+"fnref-"+a+(s>1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(n)}]};e.patch(t,l);let c={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,c),e.applyData(t,c)},heading:function(e,t){let n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},html:function(e,t){if(e.options.allowDangerousHtml){let n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}},imageReference:function(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return r1(e,t);let i={src:rW(r.url||""),alt:t.alt};null!==r.title&&void 0!==r.title&&(i.title=r.title);let a={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,a),e.applyData(t,a)},image:function(e,t){let n={src:rW(t.url)};null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt),null!==t.title&&void 0!==t.title&&(n.title=t.title);let r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)},inlineCode:function(e,t){let n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);let r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)},linkReference:function(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return r1(e,t);let i={href:rW(r.url||"")};null!==r.title&&void 0!==r.title&&(i.title=r.title);let a={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)},link:function(e,t){let n={href:rW(t.url)};null!==t.title&&void 0!==t.title&&(n.title=t.title);let r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},listItem:function(e,t,n){let r=e.all(t),i=n?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;let n=e.children,r=-1;for(;!t&&++r<n.length;)t=r4(n[r])}return t}(n):r4(t),a={},o=[];if("boolean"==typeof t.checked){let e,n=r[0];n&&"element"===n.type&&"p"===n.tagName?e=n:(e={type:"element",tagName:"p",properties:{},children:[]},r.unshift(e)),e.children.length>0&&e.children.unshift({type:"text",value:" "}),e.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),a.className=["task-list-item"]}let s=-1;for(;++s<r.length;){let e=r[s];(i||0!==s||"element"!==e.type||"p"!==e.tagName)&&o.push({type:"text",value:"\n"}),"element"!==e.type||"p"!==e.tagName||i?o.push(e):o.push(...e.children)}let l=r[r.length-1];l&&(i||"element"!==l.type||"p"!==l.tagName)&&o.push({type:"text",value:"\n"});let c={type:"element",tagName:"li",properties:a,children:o};return e.patch(t,c),e.applyData(t,c)},list:function(e,t){let n={},r=e.all(t),i=-1;for("number"==typeof t.start&&1!==t.start&&(n.start=t.start);++i<r.length;){let e=r[i];if("element"===e.type&&"li"===e.tagName&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}let a={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,a),e.applyData(t,a)},paragraph:function(e,t){let n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},root:function(e,t){let n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)},strong:function(e,t){let n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},table:function(e,t){let n=e.all(t),r=n.shift(),i=[];if(r){let n={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],n),i.push(n)}if(n.length>0){let r={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},a=tK(t.children[1]),o=tZ(t.children[t.children.length-1]);a&&o&&(r.position={start:a,end:o}),i.push(r)}let a={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,a),e.applyData(t,a)},tableCell:function(e,t){let n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){let r=n?n.children:void 0,i=0===(r?r.indexOf(t):1)?"th":"td",a=n&&"table"===n.type?n.align:void 0,o=a?a.length:t.children.length,s=-1,l=[];for(;++s<o;){let n=t.children[s],r={},o=a?a[s]:void 0;o&&(r.align=o);let c={type:"element",tagName:i,properties:r,children:[]};n&&(c.children=e.all(n),e.patch(n,c),c=e.applyData(n,c)),l.push(c)}let c={type:"element",tagName:"tr",properties:{},children:e.wrap(l,!0)};return e.patch(t,c),e.applyData(t,c)},text:function(e,t){let n={type:"text",value:function(e){let t=String(e),n=/\r?\n|\r/g,r=n.exec(t),i=0,a=[];for(;r;)a.push(r5(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return a.push(r5(t.slice(i),i>0,!1)),a.join("")}(String(t.value))};return e.patch(t,n),e.applyData(t,n)},thematicBreak:function(e,t){let n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)},toml:r3,yaml:r3,definition:r3,footnoteDefinition:r3};function r3(){}let r2={}.hasOwnProperty,r7={};function r8(e,t){e.position&&(t.position=t0(e))}function r9(e,t){let n=t;if(e&&e.data){let t=e.data.hName,r=e.data.hChildren,i=e.data.hProperties;"string"==typeof t&&("element"===n.type?n.tagName=t:n={type:"element",tagName:t,properties:{},children:"children"in n?n.children:[n]}),"element"===n.type&&i&&Object.assign(n.properties,rG(i)),"children"in n&&n.children&&null!=r&&(n.children=r)}return n}function ie(e,t){let n=[],r=-1;for(t&&n.push({type:"text",value:"\n"});++r<e.length;)r&&n.push({type:"text",value:"\n"}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:"\n"}),n}function it(e){let t=0,n=e.charCodeAt(t);for(;9===n||32===n;)t++,n=e.charCodeAt(t);return e.slice(t)}function ir(e,t){let n=function(e,t){let n=t||r7,r=new Map,i=new Map,a={all:function(e){let t=[];if("children"in e){let n=e.children,r=-1;for(;++r<n.length;){let i=a.one(n[r],e);if(i){if(r&&"break"===n[r-1].type&&(Array.isArray(i)||"text"!==i.type||(i.value=it(i.value)),!Array.isArray(i)&&"element"===i.type)){let e=i.children[0];e&&"text"===e.type&&(e.value=it(e.value))}Array.isArray(i)?t.push(...i):t.push(i)}}}return t},applyData:r9,definitionById:r,footnoteById:i,footnoteCounts:new Map,footnoteOrder:[],handlers:{...r6,...n.handlers},one:function(e,t){let n=e.type,r=a.handlers[n];if(r2.call(a.handlers,n)&&r)return r(a,e,t);if(a.options.passThrough&&a.options.passThrough.includes(n)){if("children"in e){let{children:t,...n}=e,r=rG(n);return r.children=a.all(e),r}return rG(e)}return(a.options.unknownHandler||function(e,t){let n=t.data||{},r="value"in t&&!(r2.call(n,"hProperties")||r2.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)})(a,e,t)},options:n,patch:r8,wrap:ie};return r0(e,function(e){if("definition"===e.type||"footnoteDefinition"===e.type){let t="definition"===e.type?r:i,n=String(e.identifier).toUpperCase();t.has(n)||t.set(n,e)}}),a}(e,t),r=n.one(e,void 0),i=function(e){let t="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||rV,r=e.options.footnoteBackLabel||r$,i=e.options.footnoteLabel||"Footnotes",a=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},s=[],l=-1;for(;++l<e.footnoteOrder.length;){let i=e.footnoteById.get(e.footnoteOrder[l]);if(!i)continue;let a=e.all(i),o=String(i.identifier).toUpperCase(),c=rW(o.toLowerCase()),u=0,h=[],p=e.footnoteCounts.get(o);for(;void 0!==p&&++u<=p;){h.length>0&&h.push({type:"text",value:" "});let e="string"==typeof n?n:n(l,u);"string"==typeof e&&(e={type:"text",value:e}),h.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+c+(u>1?"-"+u:""),dataFootnoteBackref:"",ariaLabel:"string"==typeof r?r:r(l,u),className:["data-footnote-backref"]},children:Array.isArray(e)?e:[e]})}let d=a[a.length-1];if(d&&"element"===d.type&&"p"===d.tagName){let e=d.children[d.children.length-1];e&&"text"===e.type?e.value+=" ":d.children.push({type:"text",value:" "}),d.children.push(...h)}else a.push(...h);let m={type:"element",tagName:"li",properties:{id:t+"fn-"+c},children:e.wrap(a,!0)};e.patch(i,m),s.push(m)}if(0!==s.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:a,properties:{...rG(o),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(s,!0)},{type:"text",value:"\n"}]}}(n),a=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&(tr("children"in a),a.children.push({type:"text",value:"\n"},i)),a}function ii(e,t){return e&&"run"in e?async function(n,r){let i=ir(n,{file:r,...t});await e.run(i,r)}:function(n,r){return ir(n,{file:r,...e||t})}}function ia(e){if(e)throw e}var io=e.i(4100);function is(e){if("object"!=typeof e||null===e)return!1;let t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}let il={basename:function(e,t){let n;if(void 0!==t&&"string"!=typeof t)throw TypeError('"ext" argument must be a string');ic(e);let r=0,i=-1,a=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;a--;)if(47===e.codePointAt(a)){if(n){r=a+1;break}}else i<0&&(n=!0,i=a+1);return i<0?"":e.slice(r,i)}if(t===e)return"";let o=-1,s=t.length-1;for(;a--;)if(47===e.codePointAt(a)){if(n){r=a+1;break}}else o<0&&(n=!0,o=a+1),s>-1&&(e.codePointAt(a)===t.codePointAt(s--)?s<0&&(i=a):(s=-1,i=o));return r===i?i=o:i<0&&(i=e.length),e.slice(r,i)},dirname:function(e){let t;if(ic(e),0===e.length)return".";let n=-1,r=e.length;for(;--r;)if(47===e.codePointAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.codePointAt(0)?"/":".":1===n&&47===e.codePointAt(0)?"//":e.slice(0,n)},extname:function(e){let t;ic(e);let n=e.length,r=-1,i=0,a=-1,o=0;for(;n--;){let s=e.codePointAt(n);if(47===s){if(t){i=n+1;break}continue}r<0&&(t=!0,r=n+1),46===s?a<0?a=n:1!==o&&(o=1):a>-1&&(o=-1)}return a<0||r<0||0===o||1===o&&a===r-1&&a===i+1?"":e.slice(a,r)},join:function(){let e;for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];let i=-1;for(;++i<n.length;)ic(n[i]),n[i]&&(e=void 0===e?n[i]:e+"/"+n[i]);return void 0===e?".":function(e){ic(e);let t=47===e.codePointAt(0),n=function(e,t){let n,r,i="",a=0,o=-1,s=0,l=-1;for(;++l<=e.length;){if(l<e.length)n=e.codePointAt(l);else if(47===n)break;else n=47;if(47===n){if(o===l-1||1===s);else if(o!==l-1&&2===s){if(i.length<2||2!==a||46!==i.codePointAt(i.length-1)||46!==i.codePointAt(i.length-2)){if(i.length>2){if((r=i.lastIndexOf("/"))!==i.length-1){r<0?(i="",a=0):a=(i=i.slice(0,r)).length-1-i.lastIndexOf("/"),o=l,s=0;continue}}else if(i.length>0){i="",a=0,o=l,s=0;continue}}t&&(i=i.length>0?i+"/..":"..",a=2)}else i.length>0?i+="/"+e.slice(o+1,l):i=e.slice(o+1,l),a=l-o-1;o=l,s=0}else 46===n&&s>-1?s++:s=-1}return i}(e,!t);return 0!==n.length||t||(n="."),n.length>0&&47===e.codePointAt(e.length-1)&&(n+="/"),t?"/"+n:n}(e)},sep:"/"};function ic(e){if("string"!=typeof e)throw TypeError("Path must be a string. Received "+JSON.stringify(e))}let iu={cwd:function(){return"/"}};function ih(e){return!!(null!==e&&"object"==typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}let ip=["history","path","basename","stem","extname","dirname"];class id{get basename(){return"string"==typeof this.path?il.basename(this.path):void 0}set basename(e){ig(e,"basename"),im(e,"basename"),this.path=il.join(this.dirname||"",e)}get dirname(){return"string"==typeof this.path?il.dirname(this.path):void 0}set dirname(e){iy(this.basename,"dirname"),this.path=il.join(e||"",this.basename)}get extname(){return"string"==typeof this.path?il.extname(this.path):void 0}set extname(e){if(im(e,"extname"),iy(this.dirname,"extname"),e){if(46!==e.codePointAt(0))throw Error("`extname` must start with `.`");if(e.includes(".",1))throw Error("`extname` cannot contain multiple dots")}this.path=il.join(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){ih(e)&&(e=function(e){if("string"==typeof e)e=new URL(e);else if(!ih(e)){let t=TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if("file:"!==e.protocol){let e=TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){let e=TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}let t=e.pathname,n=-1;for(;++n<t.length;)if(37===t.codePointAt(n)&&50===t.codePointAt(n+1)){let e=t.codePointAt(n+2);if(70===e||102===e){let e=TypeError("File URL path must not include encoded / characters");throw e.code="ERR_INVALID_FILE_URL_PATH",e}}return decodeURIComponent(t)}(e)}(e)),ig(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return"string"==typeof this.path?il.basename(this.path,this.extname):void 0}set stem(e){ig(e,"stem"),im(e,"stem"),this.path=il.join(this.dirname||"",e+(this.extname||""))}fail(e,t,n){let r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){let r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){let r=new t3(e,t,n);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){return void 0===this.value?"":"string"==typeof this.value?this.value:new TextDecoder(e||void 0).decode(this.value)}constructor(e){let t,n;t=e?ih(e)?{path:e}:"string"==typeof e||function(e){return!!(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(e)?{value:e}:e:{},this.cwd="cwd"in t?"":iu.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<ip.length;){let e=ip[r];e in t&&void 0!==t[e]&&null!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(n in t)ip.includes(n)||(this[n]=t[n])}}function im(e,t){if(e&&e.includes(il.sep))throw Error("`"+t+"` cannot be a path: did not expect `"+il.sep+"`")}function ig(e,t){if(!e)throw Error("`"+t+"` cannot be empty")}function iy(e,t){if(!e)throw Error("Setting `"+t+"` requires `path` to be set too")}let ib=function(e){let t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r},iv={}.hasOwnProperty;class ix extends ib{copy(){let e=new ix,t=-1;for(;++t<this.attachers.length;){let n=this.attachers[t];e.use(...n)}return e.data((0,io.default)(!0,{},this.namespace)),e}data(e,t){return"string"==typeof e?2==arguments.length?(iA("data",this.frozen),this.namespace[e]=t,this):iv.call(this.namespace,e)&&this.namespace[e]||void 0:e?(iA("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;for(;++this.freezeIndex<this.attachers.length;){let[e,...t]=this.attachers[this.freezeIndex];if(!1===t[0])continue;!0===t[0]&&(t[0]=void 0);let n=e.call(this,...t);"function"==typeof n&&this.transformers.use(n)}return this.frozen=!0,this.freezeIndex=1/0,this}parse(e){this.freeze();let t=i_(e),n=this.parser||this.Parser;return iw("parse",n),n(String(t),t)}process(e,t){let n=this;return this.freeze(),iw("process",this.parser||this.Parser),iS("process",this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,i){let a=i_(e),o=n.parse(a);function s(e,n){e||!n?i(e):r?r(n):(tr(t,"`done` is defined if `resolve` is not"),t(void 0,n))}n.run(o,a,function(e,t,r){var i,a;if(e||!t||!r)return s(e);let o=n.stringify(t,r);"string"==typeof(i=o)||(a=i)&&"object"==typeof a&&"byteLength"in a&&"byteOffset"in a?r.value=o:r.result=o,s(e,r)})}}processSync(e){let t,n=!1;return this.freeze(),iw("processSync",this.parser||this.Parser),iS("processSync",this.compiler||this.Compiler),this.process(e,function(e,r){n=!0,ia(e),t=r}),iT("processSync","process",n),tr(t,"we either bailed on an error or have a tree"),t}run(e,t,n){iC(e),this.freeze();let r=this.transformers;return n||"function"!=typeof t||(n=t,t=void 0),n?i(void 0,n):new Promise(i);function i(i,a){tr("function"!=typeof t,"`file` can’t be a `done` anymore, we checked");let o=i_(t);r.run(e,o,function(t,r,o){let s=r||e;t?a(t):i?i(s):(tr(n,"`done` is defined if `resolve` is not"),n(void 0,s,o))})}}runSync(e,t){let n,r=!1;return this.run(e,t,function(e,t){ia(e),n=t,r=!0}),iT("runSync","run",r),tr(n,"we either bailed on an error or have a tree"),n}stringify(e,t){this.freeze();let n=i_(t),r=this.compiler||this.Compiler;return iS("stringify",r),iC(e),r(e,n)}use(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];let i=this.attachers,a=this.namespace;if(iA("use",this.frozen),null==e);else if("function"==typeof e)l(e,n);else if("object"==typeof e)Array.isArray(e)?s(e):o(e);else throw TypeError("Expected usable value, not `"+e+"`");return this;function o(e){if(!("plugins"in e)&&!("settings"in e))throw Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");s(e.plugins),e.settings&&(a.settings=(0,io.default)(!0,a.settings,e.settings))}function s(e){let t=-1;if(null==e);else if(Array.isArray(e))for(;++t<e.length;){var n=e[t];if("function"==typeof n)l(n,[]);else if("object"==typeof n)if(Array.isArray(n)){let[e,...t]=n;l(e,t)}else o(n);else throw TypeError("Expected usable value, not `"+n+"`")}else throw TypeError("Expected a list of plugins, not `"+e+"`")}function l(e,t){let n=-1,r=-1;for(;++n<i.length;)if(i[n][0]===e){r=n;break}if(-1===r)i.push([e,...t]);else if(t.length>0){let[n,...a]=t,o=i[r][1];is(o)&&is(n)&&(n=(0,io.default)(!0,o,n)),i[r]=[e,n,...a]}}}constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=function(){let e=[],t={run:function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];let i=-1,a=n.pop();if("function"!=typeof a)throw TypeError("Expected function as last argument, not "+a);!function t(r){for(var o=arguments.length,s=Array(o>1?o-1:0),l=1;l<o;l++)s[l-1]=arguments[l];let c=e[++i],u=-1;if(r)return void a(r);for(;++u<n.length;)(null===s[u]||void 0===s[u])&&(s[u]=n[u]);n=s,c?(function(e,t){let n;return function(){let t;for(var a=arguments.length,o=Array(a),s=0;s<a;s++)o[s]=arguments[s];let l=e.length>o.length;l&&o.push(r);try{t=e.apply(this,o)}catch(e){if(l&&n)throw e;return r(e)}l||(t&&t.then&&"function"==typeof t.then?t.then(i,r):t instanceof Error?r(t):i(t))};function r(e){for(var r=arguments.length,i=Array(r>1?r-1:0),a=1;a<r;a++)i[a-1]=arguments[a];n||(n=!0,t(e,...i))}function i(e){r(null,e)}})(c,t)(...s):a(null,...s)}(null,...n)},use:function(n){if("function"!=typeof n)throw TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}()}}let ik=new ix().freeze();function iw(e,t){if("function"!=typeof t)throw TypeError("Cannot `"+e+"` without `parser`")}function iS(e,t){if("function"!=typeof t)throw TypeError("Cannot `"+e+"` without `compiler`")}function iA(e,t){if(t)throw Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function iC(e){if(!is(e)||"string"!=typeof e.type)throw TypeError("Expected node, got `"+e+"`")}function iT(e,t,n){if(!n)throw Error("`"+e+"` finished async. Use `"+t+"` instead")}function i_(e){var t;return(t=e)&&"object"==typeof t&&"message"in t&&"messages"in t?e:new id(e)}let iM=[],iN={allowDangerousHtml:!0},iE=/^(https?|ircs?|mailto|xmpp)$/i,iz=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function iI(e){let t=function(e){let t=e.rehypePlugins||iM,n=e.remarkPlugins||iM,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...iN}:iN;return ik().use(rP).use(n).use(ii,r).use(t)}(e),n=function(e){let t=e.children||"",n=new id;return"string"==typeof t?n.value=t:ti("Unexpected value `"+t+"` for `children` prop, expected `string`"),n}(e);return function(e,t){let n=t.allowedElements,r=t.allowElement,i=t.components,a=t.disallowedElements,o=t.skipHtml,s=t.unwrapDisallowed,l=t.urlTransform||iR;for(let e of iz)Object.hasOwn(t,e.from)&&ti("Unexpected `"+e.from+"` prop, "+(e.to?"use `"+e.to+"` instead":"remove it")+" (see <https://github.com/remarkjs/react-markdown/blob/main/changelog.md#"+e.id+"> for more info)");return n&&a&&ti("Unexpected combined `allowedElements` and `disallowedElements`, expected one or the other"),r0(e,function(e,t,i){if("raw"===e.type&&i&&"number"==typeof t)return o?i.children.splice(t,1):i.children[t]={type:"text",value:e.value},t;if("element"===e.type){let t;for(t in nc)if(Object.hasOwn(nc,t)&&Object.hasOwn(e.properties,t)){let n=e.properties[t],r=nc[t];(null===r||r.includes(e.tagName))&&(e.properties[t]=l(String(n||""),t,e))}}if("element"===e.type){let o=n?!n.includes(e.tagName):!!a&&a.includes(e.tagName);if(!o&&r&&"number"==typeof t&&(o=!r(e,t,i)),o&&i&&"number"==typeof t)return s&&e.children?i.children.splice(t,1,...e.children):i.children.splice(t,1),t}}),function(e,t){var n,r,i,a;let o;if(!t||void 0===t.Fragment)throw TypeError("Expected `Fragment` in options");let s=t.filePath||void 0;if(t.development){if("function"!=typeof t.jsxDEV)throw TypeError("Expected `jsxDEV` in options when `development: true`");n=s,r=t.jsxDEV,o=function(e,t,i,a){let o=Array.isArray(i.children),s=tK(e);return r(t,i,a,o,{columnNumber:s?s.column-1:void 0,fileName:n,lineNumber:s?s.line:void 0},void 0)}}else{if("function"!=typeof t.jsx)throw TypeError("Expected `jsx` in production options");if("function"!=typeof t.jsxs)throw TypeError("Expected `jsxs` in production options");i=t.jsx,a=t.jsxs,o=function(e,t,n,r){let o=Array.isArray(n.children)?a:i;return r?o(t,n,r):o(t,n)}}let l={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:o,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:s,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:!1!==t.passKeys,passNode:t.passNode||!1,schema:"svg"===t.space?t$:tV,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==t.tableCellAlignToStyle},c=nn(l,e,void 0);return c&&"string"!=typeof c?c:l.create(e,l.Fragment,{children:c||void 0},void 0)}(e,{Fragment:A.Fragment,components:i,ignoreInvalidStyle:!0,jsx:A.jsx,jsxs:A.jsxs,passKeys:!0,passNode:!0})}(t.runSync(t.parse(n),n),e)}function iR(e){let t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return -1===t||-1!==i&&t>i||-1!==n&&t>n||-1!==r&&t>r||iE.test(e.slice(0,t))?e:""}function ij(e,t){let n=String(e);if("string"!=typeof t)throw TypeError("Expected character");let r=0,i=n.indexOf(t);for(;-1!==i;)r++,i=n.indexOf(t,i+t.length);return r}let iL="phrasing",iP=["autolink","link","image","label"];function iB(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function iO(e){this.config.enter.autolinkProtocol.call(this,e)}function iD(e){this.config.exit.autolinkProtocol.call(this,e)}function iF(e){this.config.exit.data.call(this,e);let t=this.stack[this.stack.length-1];tr("link"===t.type),t.url="http://"+this.sliceSerialize(e)}function iq(e){this.config.exit.autolinkEmail.call(this,e)}function iH(e){this.exit(e)}function iU(e){!function(e,t,n){let r=rX((n||{}).ignore||[]),i=function(e){let t=[];if(!Array.isArray(e))throw TypeError("Expected find and replace tuple or list of tuples");let n=!e[0]||Array.isArray(e[0])?e:[e],r=-1;for(;++r<n.length;){var i;let e=n[r];t.push(["string"==typeof(i=e[0])?RegExp(function(e){if("string"!=typeof e)throw TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}(i),"g"):i,function(e){return"function"==typeof e?e:function(){return e}}(e[1])])}return t}(t),a=-1;for(;++a<i.length;)rQ(e,"text",o);function o(e,t){let n,o=-1;for(;++o<t.length;){let e=t[o],i=n?n.children:void 0;if(r(e,i?i.indexOf(e):void 0,n))return;n=e}if(n)return function(e,t){let n=t[t.length-1],r=i[a][0],o=i[a][1],s=0,l=n.children.indexOf(e),c=!1,u=[];r.lastIndex=0;let h=r.exec(e.value);for(;h;){let n=h.index,i={index:h.index,input:h.input,stack:[...t,e]},a=o(...h,i);if("string"==typeof a&&(a=a.length>0?{type:"text",value:a}:void 0),!1===a?r.lastIndex=n+1:(s!==n&&u.push({type:"text",value:e.value.slice(s,n)}),Array.isArray(a)?u.push(...a):a&&u.push(a),s=n+h[0].length,c=!0),!r.global)break;h=r.exec(e.value)}return c?(s<e.value.length&&u.push({type:"text",value:e.value.slice(s)}),n.children.splice(l,1,...u)):u=[e],l+u.length}(e,t)}}(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,iG],[RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),iW]],{ignore:["link","linkReference"]})}function iG(e,t,n,r,i){let a="";if(!iV(i)||(/^w/i.test(t)&&(n=t+n,t="",a="http://"),!function(e){let t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}(n)))return!1;let o=function(e){let t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")"),i=ij(e,"("),a=ij(e,")");for(;-1!==r&&i>a;)e+=n.slice(0,r+1),r=(n=n.slice(r+1)).indexOf(")"),a++;return[e,n]}(n+r);if(!o[0])return!1;let s={type:"link",title:null,url:a+t+o[0],children:[{type:"text",value:t+o[0]}]};return o[1]?[s,{type:"text",value:o[1]}]:s}function iW(e,t,n,r){return!(!iV(r,!0)||/[-\d_]$/.test(n))&&{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function iV(e,t){let n=e.input.charCodeAt(e.index-1);return(0===e.index||nN(n)||nM(n))&&(!t||47!==n)}function i$(){this.buffer()}function iX(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function iY(){this.buffer()}function iJ(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function iZ(e){let t=this.resume(),n=this.stack[this.stack.length-1];tr("footnoteReference"===n.type),n.identifier=rt(this.sliceSerialize(e)).toLowerCase(),n.label=t}function iK(e){this.exit(e)}function iQ(e){let t=this.resume(),n=this.stack[this.stack.length-1];tr("footnoteDefinition"===n.type),n.identifier=rt(this.sliceSerialize(e)).toLowerCase(),n.label=t}function i0(e){this.exit(e)}function i1(e,t,n,r){let i=n.createTracker(r),a=i.move("[^"),o=n.enter("footnoteReference"),s=n.enter("reference");return a+=i.move(n.safe(n.associationId(e),{after:"]",before:a})),s(),o(),a+=i.move("]")}function i4(e,t,n){return 0===t?e:i5(e,t,n)}function i5(e,t,n){return(n?"":" ")+e}i1.peek=function(){return"["};let i6=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];function i3(e){this.enter({type:"delete",children:[]},e)}function i2(e){this.exit(e)}function i7(e,t,n,r){let i=n.createTracker(r),a=n.enter("strikethrough"),o=i.move("~~");return o+=n.containerPhrasing(e,{...i.current(),before:o,after:"~"}),o+=i.move("~~"),a(),o}function i8(e){return e.length}function i9(e){let t="string"==typeof e?e.codePointAt(0):0;return 67===t||99===t?99:76===t||108===t?108:114*(82===t||114===t)}i7.peek=function(){return"~"};function ae(e,t,n){let r=e.value||"",i="`",a=-1;for(;RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++a<n.unsafe.length;){let e,t=n.unsafe[a],i=n.compilePattern(t);if(t.atBreak)for(;e=i.exec(r);){let t=e.index;10===r.charCodeAt(t)&&13===r.charCodeAt(t-1)&&t--,r=r.slice(0,t)+" "+r.slice(e.index+1)}}return i+r+i}ae.peek=function(){return"`"};rX(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);let at={inlineCode:ae,listItem:function(e,t,n,r){let i=function(e){let t=e.options.listItemIndent||"one";if("tab"!==t&&"one"!==t&&"mixed"!==t)throw Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}(n),a=n.bulletCurrent||function(e){let t=e.options.bullet||"*";if("*"!==t&&"+"!==t&&"-"!==t)throw Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}(n);t&&"list"===t.type&&t.ordered&&(a=("number"==typeof t.start&&t.start>-1?t.start:1)+(!1===n.options.incrementListMarker?0:t.children.indexOf(e))+a);let o=a.length+1;("tab"===i||"mixed"===i&&(t&&"list"===t.type&&t.spread||e.spread))&&(o=4*Math.ceil(o/4));let s=n.createTracker(r);s.move(a+" ".repeat(o-a.length)),s.shift(o);let l=n.enter("listItem"),c=n.indentLines(n.containerFlow(e,s.current()),function(e,t,n){return t?(n?"":" ".repeat(o))+e:(n?a:a+" ".repeat(o-a.length))+e});return l(),c}};function an(e){let t=e._align;tr(t,"expected `_align` on table"),this.enter({type:"table",align:t.map(function(e){return"none"===e?null:e}),children:[]},e),this.data.inTable=!0}function ar(e){this.exit(e),this.data.inTable=void 0}function ai(e){this.enter({type:"tableRow",children:[]},e)}function aa(e){this.exit(e)}function ao(e){this.enter({type:"tableCell",children:[]},e)}function as(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,al));let n=this.stack[this.stack.length-1];tr("inlineCode"===n.type),n.value=t,this.exit(e)}function al(e,t){return"|"===t?t:e}function ac(e){let t=this.stack[this.stack.length-2];tr("listItem"===t.type),t.checked="taskListCheckValueChecked"===e.type}function au(e){let t=this.stack[this.stack.length-2];if(t&&"listItem"===t.type&&"boolean"==typeof t.checked){let e=this.stack[this.stack.length-1];tr("paragraph"===e.type);let n=e.children[0];if(n&&"text"===n.type){let r,i=t.children,a=-1;for(;++a<i.length;){let e=i[a];if("paragraph"===e.type){r=e;break}}r===e&&(n.value=n.value.slice(1),0===n.value.length?e.children.shift():e.position&&n.position&&"number"==typeof n.position.start.offset&&(n.position.start.column++,n.position.start.offset++,e.position.start=Object.assign({},n.position.start)))}}this.exit(e)}function ah(e,t,n,r){let i=e.children[0],a="boolean"==typeof e.checked&&i&&"paragraph"===i.type,o="["+(e.checked?"x":" ")+"] ",s=n.createTracker(r);a&&s.move(o);let l=at.listItem(e,t,n,{...r,...s.current()});return a&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,function(e){return e+o})),l}let ap={tokenize:function(e,t,n){let r=0;return function t(a){return(87===a||119===a)&&r<3?(r++,e.consume(a),t):46===a&&3===r?(e.consume(a),i):n(a)};function i(e){return null===e?n(e):t(e)}},partial:!0},ad={tokenize:function(e,t,n){let r,i,a;return o;function o(t){return 46===t||95===t?e.check(af,l,s)(t):null===t||nT(t)||nN(t)||45!==t&&nM(t)?l(t):(a=!0,e.consume(t),o)}function s(t){return 95===t?r=!0:(i=r,r=void 0),e.consume(t),o}function l(e){return i||r||!a?n(e):t(e)}},partial:!0},am={tokenize:function(e,t){let n=0,r=0;return i;function i(o){return 40===o?(n++,e.consume(o),i):41===o&&r<n?a(o):33===o||34===o||38===o||39===o||41===o||42===o||44===o||46===o||58===o||59===o||60===o||63===o||93===o||95===o||126===o?e.check(af,t,a)(o):null===o||nT(o)||nN(o)?t(o):(e.consume(o),i)}function a(t){return 41===t&&r++,e.consume(t),i}},partial:!0},af={tokenize:function(e,t,n){return r;function r(o){return 33===o||34===o||39===o||41===o||42===o||44===o||46===o||58===o||59===o||63===o||95===o||126===o?(e.consume(o),r):38===o?(e.consume(o),a):93===o?(e.consume(o),i):60===o||null===o||nT(o)||nN(o)?t(o):n(o)}function i(e){return null===e||40===e||91===e||nT(e)||nN(e)?t(e):r(e)}function a(t){return nb(t)?function t(i){return 59===i?(e.consume(i),r):nb(i)?(e.consume(i),t):n(i)}(t):n(t)}},partial:!0},ag={tokenize:function(e,t,n){return function(t){return e.consume(t),r};function r(e){return nv(e)?n(e):t(e)}},partial:!0},ay={name:"wwwAutolink",tokenize:function(e,t,n){let r=this;return function(t){return 87!==t&&119!==t||!aw.call(r,r.previous)||aT(r.events)?n(t):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(ap,e.attempt(ad,e.attempt(am,i),n),n)(t))};function i(n){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(n)}},previous:aw},ab={name:"protocolAutolink",tokenize:function(e,t,n){let r=this,i="",a=!1;return function(t){return(72===t||104===t)&&aS.call(r,r.previous)&&!aT(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(t),e.consume(t),o):n(t)};function o(t){if(nb(t)&&i.length<5)return i+=String.fromCodePoint(t),e.consume(t),o;if(58===t){let n=i.toLowerCase();if("http"===n||"https"===n)return e.consume(t),s}return n(t)}function s(t){return 47===t?(e.consume(t),a)?l:(a=!0,s):n(t)}function l(t){return null===t||nk(t)||nT(t)||nN(t)||nM(t)?n(t):e.attempt(ad,e.attempt(am,c),n)(t)}function c(n){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(n)}},previous:aS},av={name:"emailAutolink",tokenize:function(e,t,n){let r,i,a=this;return function(t){return!aC(t)||!aA.call(a,a.previous)||aT(a.events)?n(t):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),function t(r){return aC(r)?(e.consume(r),t):64===r?(e.consume(r),o):n(r)}(t))};function o(t){return 46===t?e.check(ag,l,s)(t):45===t||95===t||nv(t)?(i=!0,e.consume(t),o):l(t)}function s(t){return e.consume(t),r=!0,o}function l(o){return i&&r&&nb(a.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(o)):n(o)}},previous:aA},ax={},ak=48;for(;ak<123;)ax[ak]=av,58==++ak?ak=65:91===ak&&(ak=97);function aw(e){return null===e||40===e||42===e||95===e||91===e||93===e||126===e||nT(e)}function aS(e){return!nb(e)}function aA(e){return!(47===e||aC(e))}function aC(e){return 43===e||45===e||46===e||95===e||nv(e)}function aT(e){let t=e.length,n=!1;for(;t--;){let r=e[t][1];if(("labelLink"===r.type||"labelImage"===r.type)&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}ax[43]=av,ax[45]=av,ax[46]=av,ax[95]=av,ax[72]=[av,ab],ax[104]=[av,ab],ax[87]=[av,ay],ax[119]=[av,ay];let a_={tokenize:function(e,t,n){let r=this;return nz(e,function(e){let i=r.events[r.events.length-1];return i&&"gfmFootnoteDefinitionIndent"===i[1].type&&4===i[2].sliceSerialize(i[1],!0).length?t(e):n(e)},"gfmFootnoteDefinitionIndent",5)},partial:!0};function aM(e,t,n){let r,i=this,a=i.events.length,o=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);for(;a--;){let e=i.events[a][1];if("labelImage"===e.type){r=e;break}if("gfmFootnoteCall"===e.type||"labelLink"===e.type||"label"===e.type||"image"===e.type||"link"===e.type)break}return function(a){if(!r||!r._balanced)return n(a);let s=rt(i.sliceSerialize({start:r.end,end:i.now()}));return 94===s.codePointAt(0)&&o.includes(s.slice(1))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(a),e.exit("gfmFootnoteCallLabelMarker"),t(a)):n(a)}}function aN(e,t){let n=e.length;for(;n--;)if("labelImage"===e[n][1].type&&"enter"===e[n][0]){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";let r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;let a={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},o={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},s=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",a,t],["enter",o,t],["exit",o,t],["exit",a,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...s),e}function aE(e,t,n){let r,i=this,a=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]),o=0;return function(t){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(t),e.exit("gfmFootnoteCallLabelMarker"),s};function s(t){return 94!==t?n(t):(e.enter("gfmFootnoteCallMarker"),e.consume(t),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",l)}function l(s){if(o>999||93===s&&!r||null===s||91===s||nT(s))return n(s);if(93===s){e.exit("chunkString");let r=e.exit("gfmFootnoteCallString");return a.includes(rt(i.sliceSerialize(r)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(s),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(s)}return nT(s)||(r=!0),o++,e.consume(s),92===s?c:l}function c(t){return 91===t||92===t||93===t?(e.consume(t),o++,l):l(t)}}function az(e,t,n){let r,i,a=this,o=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]),s=0;return function(t){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),l};function l(t){return 94===t?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):n(t)}function c(t){if(s>999||93===t&&!i||null===t||91===t||nT(t))return n(t);if(93===t){e.exit("chunkString");let n=e.exit("gfmFootnoteDefinitionLabelString");return r=rt(a.sliceSerialize(n)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),h}return nT(t)||(i=!0),s++,e.consume(t),92===t?u:c}function u(t){return 91===t||92===t||93===t?(e.consume(t),s++,c):c(t)}function h(t){return 58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),o.includes(r)||o.push(r),nz(e,p,"gfmFootnoteDefinitionWhitespace")):n(t)}function p(e){return t(e)}}function aI(e,t,n){return e.check(nL,t,e.attempt(a_,t,n))}function aR(e){e.exit("gfmFootnoteDefinition")}class aj{add(e,t,n){!function(e,t,n,r){let i=0;if(0!==n||0!==r.length){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=n,e.map[i][2].push(...r);return}i+=1}e.map.push([t,n,r])}}(this,e,t,n)}consume(e){if(this.map.sort(function(e,t){return e[0]-t[0]}),0===this.map.length)return;let t=this.map.length,n=[];for(;t>0;)t-=1,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let r=n.pop();for(;r;){for(let t of r)e.push(t);r=n.pop()}this.map.length=0}constructor(){this.map=[]}}function aL(e,t,n){let r,i=this,a=0,o=0;return function(e){let t=i.events.length-1;for(;t>-1;){let e=i.events[t][1].type;if("lineEnding"===e||"linePrefix"===e)t--;else break}let r=t>-1?i.events[t][1].type:null,a="tableHead"===r||"tableRow"===r?b:s;return a===b&&i.parser.lazy[i.now().line]?n(e):a(e)};function s(t){var n;return e.enter("tableHead"),e.enter("tableRow"),124===(n=t)||(r=!0,o+=1),l(n)}function l(t){return null===t?n(t):nC(t)?o>1?(o=0,i.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),h):n(t):n_(t)?nz(e,l,"whitespace")(t):(o+=1,r&&(r=!1,a+=1),124===t)?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),r=!0,l):(e.enter("data"),c(t))}function c(t){return null===t||124===t||nT(t)?(e.exit("data"),l(t)):(e.consume(t),92===t?u:c)}function u(t){return 92===t||124===t?(e.consume(t),c):c(t)}function h(t){return(i.interrupt=!1,i.parser.lazy[i.now().line])?n(t):(e.enter("tableDelimiterRow"),r=!1,n_(t))?nz(e,p,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):p(t)}function p(t){return 45===t||58===t?m(t):124===t?(r=!0,e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),d):n(t)}function d(t){return n_(t)?nz(e,m,"whitespace")(t):m(t)}function m(t){return 58===t?(o+=1,r=!0,e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),f):45===t?(o+=1,f(t)):null===t||nC(t)?y(t):n(t)}function f(t){return 45===t?(e.enter("tableDelimiterFiller"),function t(n){return 45===n?(e.consume(n),t):58===n?(r=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(n),e.exit("tableDelimiterMarker"),g):(e.exit("tableDelimiterFiller"),g(n))}(t)):n(t)}function g(t){return n_(t)?nz(e,y,"whitespace")(t):y(t)}function y(i){if(124===i)return p(i);if(null===i||nC(i))return r&&a===o?(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(i)):n(i);return n(i)}function b(t){return e.enter("tableRow"),v(t)}function v(n){return 124===n?(e.enter("tableCellDivider"),e.consume(n),e.exit("tableCellDivider"),v):null===n||nC(n)?(e.exit("tableRow"),t(n)):n_(n)?nz(e,v,"whitespace")(n):(e.enter("data"),x(n))}function x(t){return null===t||124===t||nT(t)?(e.exit("data"),v(t)):(e.consume(t),92===t?k:x)}function k(t){return 92===t||124===t?(e.consume(t),x):x(t)}}function aP(e,t){let n,r,i,a=-1,o=!0,s=0,l=[0,0,0,0],c=[0,0,0,0],u=!1,h=0,p=new aj;for(;++a<e.length;){let d=e[a],m=d[1];"enter"===d[0]?"tableHead"===m.type?(u=!1,0!==h&&(aO(p,t,h,n,r),r=void 0,h=0),n={type:"table",start:Object.assign({},m.start),end:Object.assign({},m.end)},p.add(a,0,[["enter",n,t]])):"tableRow"===m.type||"tableDelimiterRow"===m.type?(o=!0,i=void 0,l=[0,0,0,0],c=[0,a+1,0,0],u&&(u=!1,r={type:"tableBody",start:Object.assign({},m.start),end:Object.assign({},m.end)},p.add(a,0,[["enter",r,t]])),s="tableDelimiterRow"===m.type?2:r?3:1):s&&("data"===m.type||"tableDelimiterMarker"===m.type||"tableDelimiterFiller"===m.type)?(o=!1,0===c[2]&&(0!==l[1]&&(c[0]=c[1],i=aB(p,t,l,s,void 0,i),l=[0,0,0,0]),c[2]=a)):"tableCellDivider"===m.type&&(o?o=!1:(0!==l[1]&&(c[0]=c[1],i=aB(p,t,l,s,void 0,i)),c=[(l=c)[1],a,0,0])):"tableHead"===m.type?(u=!0,h=a):"tableRow"===m.type||"tableDelimiterRow"===m.type?(h=a,0!==l[1]?(c[0]=c[1],i=aB(p,t,l,s,a,i)):0!==c[1]&&(i=aB(p,t,c,s,a,i)),s=0):s&&("data"===m.type||"tableDelimiterMarker"===m.type||"tableDelimiterFiller"===m.type)&&(c[3]=a)}for(0!==h&&aO(p,t,h,n,r),p.consume(t.events),a=-1;++a<t.events.length;){let e=t.events[a];"enter"===e[0]&&"table"===e[1].type&&(e[1]._align=function(e,t){let n=!1,r=[];for(;t<e.length;){let i=e[t];if(n){if("enter"===i[0])"tableContent"===i[1].type&&r.push("tableDelimiterMarker"===e[t+1][1].type?"left":"none");else if("tableContent"===i[1].type){if("tableDelimiterMarker"===e[t-1][1].type){let e=r.length-1;r[e]="left"===r[e]?"center":"right"}}else if("tableDelimiterRow"===i[1].type)break}else"enter"===i[0]&&"tableDelimiterRow"===i[1].type&&(n=!0);t+=1}return r}(t.events,a))}return e}function aB(e,t,n,r,i,a){0!==n[0]&&(a.end=Object.assign({},aD(t.events,n[0])),e.add(n[0],0,[["exit",a,t]]));let o=aD(t.events,n[1]);if(a={type:1===r?"tableHeader":2===r?"tableDelimiter":"tableData",start:Object.assign({},o),end:Object.assign({},o)},e.add(n[1],0,[["enter",a,t]]),0!==n[2]){let i=aD(t.events,n[2]),a=aD(t.events,n[3]),o={type:"tableContent",start:Object.assign({},i),end:Object.assign({},a)};if(e.add(n[2],0,[["enter",o,t]]),2!==r){let r=t.events[n[2]],i=t.events[n[3]];if(r[1].end=Object.assign({},i[1].end),r[1].type="chunkText",r[1].contentType="text",n[3]>n[2]+1){let t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[["exit",o,t]])}return void 0!==i&&(a.end=Object.assign({},aD(t.events,i)),e.add(i,0,[["exit",a,t]]),a=void 0),a}function aO(e,t,n,r,i){let a=[],o=aD(t.events,n);i&&(i.end=Object.assign({},o),a.push(["exit",i,t])),r.end=Object.assign({},o),a.push(["exit",r,t]),e.add(n+1,0,a)}function aD(e,t){let n=e[t],r="enter"===n[0]?"start":"end";return n[1][r]}RegExp("^"+/<(\/?)(iframe|noembed|noframes|plaintext|script|style|title|textarea|xmp)(?=[\t\n\f\r />])/gi.source,"i");let aF={name:"tasklistCheck",tokenize:function(e,t,n){let r=this;return function(t){return null===r.previous&&r._gfmTasklistFirstContentOfListItem?(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),i):n(t)};function i(t){return nT(t)?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),a):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),a):n(t)}function a(t){return 93===t?(e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),o):n(t)}function o(r){return nC(r)?t(r):n_(r)?e.check({tokenize:aq},t,n)(r):n(r)}}};function aq(e,t,n){return nz(e,function(e){return null===e?n(e):t(e)},"whitespace")}let aH={};function aU(e){let t,n=e||aH,r=this.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),a=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),o=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(ny([{text:ax},{document:{91:{name:"gfmFootnoteDefinition",tokenize:az,continuation:{tokenize:aI},exit:aR}},text:{91:{name:"gfmFootnoteCall",tokenize:aE},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:aM,resolveTo:aN}}},function(e){let t=(e||{}).singleTilde,n={name:"strikethrough",tokenize:function(e,n,r){let i=this.previous,a=this.events,o=0;return function(s){return 126===i&&"characterEscape"!==a[a.length-1][1].type?r(s):(e.enter("strikethroughSequenceTemporary"),function a(s){let l=nX(i);if(126===s)return o>1?r(s):(e.consume(s),o++,a);if(o<2&&!t)return r(s);let c=e.exit("strikethroughSequenceTemporary"),u=nX(s);return c._open=!u||2===u&&!!l,c._close=!l||2===l&&!!u,n(s)}(s))}},resolveAll:function(e,t){let n=-1;for(;++n<e.length;)if("enter"===e[n][0]&&"strikethroughSequenceTemporary"===e[n][1].type&&e[n][1]._close){let r=n;for(;r--;)if("exit"===e[r][0]&&"strikethroughSequenceTemporary"===e[r][1].type&&e[r][1]._open&&e[n][1].end.offset-e[n][1].start.offset==e[r][1].end.offset-e[r][1].start.offset){e[n][1].type="strikethroughSequence",e[r][1].type="strikethroughSequence";let i={type:"strikethrough",start:Object.assign({},e[r][1].start),end:Object.assign({},e[n][1].end)},a={type:"strikethroughText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},o=[["enter",i,t],["enter",e[r][1],t],["exit",e[r][1],t],["enter",a,t]],s=t.parser.constructs.insideSpan.null;s&&nm(o,o.length,0,nY(s,e.slice(r+1,n),t)),nm(o,o.length,0,[["exit",a,t],["enter",e[n][1],t],["exit",e[n][1],t],["exit",i,t]]),nm(e,r-1,n-r+3,o),n=r+o.length-2;break}}for(n=-1;++n<e.length;)"strikethroughSequenceTemporary"===e[n][1].type&&(e[n][1].type="data");return e}};return null==t&&(t=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}}}(n),{flow:{null:{name:"table",tokenize:aL,resolveAll:aP}}},{text:{91:aF}}])),a.push([{transforms:[iU],enter:{literalAutolink:iB,literalAutolinkEmail:iO,literalAutolinkHttp:iO,literalAutolinkWww:iO},exit:{literalAutolink:iH,literalAutolinkEmail:iq,literalAutolinkHttp:iD,literalAutolinkWww:iF}},{enter:{gfmFootnoteCallString:i$,gfmFootnoteCall:iX,gfmFootnoteDefinitionLabelString:iY,gfmFootnoteDefinition:iJ},exit:{gfmFootnoteCallString:iZ,gfmFootnoteCall:iK,gfmFootnoteDefinitionLabelString:iQ,gfmFootnoteDefinition:i0}},{canContainEols:["delete"],enter:{strikethrough:i3},exit:{strikethrough:i2}},{enter:{table:an,tableData:ao,tableHeader:ao,tableRow:ai},exit:{codeText:as,table:ar,tableData:aa,tableHeader:aa,tableRow:aa}},{exit:{taskListCheckValueChecked:ac,taskListCheckValueUnchecked:ac,paragraph:au}}]),o.push({extensions:[{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:iL,notInConstruct:iP},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:iL,notInConstruct:iP},{character:":",before:"[ps]",after:"\\/",inConstruct:iL,notInConstruct:iP}]},(t=!1,n&&n.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:function(e,n,r,i){let a=r.createTracker(i),o=a.move("[^"),s=r.enter("footnoteDefinition"),l=r.enter("label");return o+=a.move(r.safe(r.associationId(e),{before:o,after:"]"})),l(),o+=a.move("]:"),e.children&&e.children.length>0&&(a.shift(4),o+=a.move((t?"\n":" ")+r.indentLines(r.containerFlow(e,a.current()),t?i5:i4))),s(),o},footnoteReference:i1},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]}),{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:i6}],handlers:{delete:i7}},function(e){let t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,a=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:"\n",inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:function(e,t,n){let r=at.inlineCode(e,t,n);return n.stack.includes("tableCell")&&(r=r.replace(/\|/g,"\\$&")),r},table:function(e,t,n,r){return s(function(e,t,n){let r=e.children,i=-1,a=[],o=t.enter("table");for(;++i<r.length;)a[i]=l(r[i],t,n);return o(),a}(e,n,r),e.align)},tableCell:o,tableRow:function(e,t,n,r){let i=s([l(e,n,r)]);return i.slice(0,i.indexOf("\n"))}}};function o(e,t,n,r){let i=n.enter("tableCell"),o=n.enter("phrasing"),s=n.containerPhrasing(e,{...r,before:a,after:a});return o(),i(),s}function s(e,t){return function(e,t){let n=t||{},r=(n.align||[]).concat(),i=n.stringLength||i8,a=[],o=[],s=[],l=[],c=0,u=-1;for(;++u<e.length;){let t=[],r=[],a=-1;for(e[u].length>c&&(c=e[u].length);++a<e[u].length;){var h;let o=null==(h=e[u][a])?"":String(h);if(!1!==n.alignDelimiters){let e=i(o);r[a]=e,(void 0===l[a]||e>l[a])&&(l[a]=e)}t.push(o)}o[u]=t,s[u]=r}let p=-1;if("object"==typeof r&&"length"in r)for(;++p<c;)a[p]=i9(r[p]);else{let e=i9(r);for(;++p<c;)a[p]=e}p=-1;let d=[],m=[];for(;++p<c;){let e=a[p],t="",r="";99===e?(t=":",r=":"):108===e?t=":":114===e&&(r=":");let i=!1===n.alignDelimiters?1:Math.max(1,l[p]-t.length-r.length),o=t+"-".repeat(i)+r;!1!==n.alignDelimiters&&((i=t.length+i+r.length)>l[p]&&(l[p]=i),m[p]=i),d[p]=o}o.splice(1,0,d),s.splice(1,0,m),u=-1;let f=[];for(;++u<o.length;){let e=o[u],t=s[u];p=-1;let r=[];for(;++p<c;){let i=e[p]||"",o="",s="";if(!1!==n.alignDelimiters){let e=l[p]-(t[p]||0),n=a[p];114===n?o=" ".repeat(e):99===n?e%2?(o=" ".repeat(e/2+.5),s=" ".repeat(e/2-.5)):s=o=" ".repeat(e/2):s=" ".repeat(e)}!1===n.delimiterStart||p||r.push("|"),!1!==n.padding&&(!1!==n.alignDelimiters||""!==i)&&(!1!==n.delimiterStart||p)&&r.push(" "),!1!==n.alignDelimiters&&r.push(o),r.push(i),!1!==n.alignDelimiters&&r.push(s),!1!==n.padding&&r.push(" "),(!1!==n.delimiterEnd||p!==c-1)&&r.push("|")}f.push(!1===n.delimiterEnd?r.join("").replace(/ +$/,""):r.join(""))}return f.join("\n")}(e,{align:t,alignDelimiters:r,padding:n,stringLength:i})}function l(e,t,n){let r=e.children,i=-1,a=[],s=t.enter("tableRow");for(;++i<r.length;)a[i]=o(r[i],e,t,n);return s(),a}}(n),{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:ah}}]})}let aG={tokenize:function(e,t,n){let r=this,i=r.events[r.events.length-1],a=i&&"linePrefix"===i[1].type?i[2].sliceSerialize(i[1],!0).length:0,o=0;return function(t){return e.enter("mathFlow"),e.enter("mathFlowFence"),e.enter("mathFlowFenceSequence"),function t(r){return 36===r?(e.consume(r),o++,t):o<2?n(r):(e.exit("mathFlowFenceSequence"),nz(e,s,"whitespace")(r))}(t)};function s(t){return null===t||nC(t)?l(t):(e.enter("mathFlowFenceMeta"),e.enter("chunkString",{contentType:"string"}),function t(r){return null===r||nC(r)?(e.exit("chunkString"),e.exit("mathFlowFenceMeta"),l(r)):36===r?n(r):(e.consume(r),t)}(t))}function l(n){return(e.exit("mathFlowFence"),r.interrupt)?t(n):e.attempt(aW,c,p)(n)}function c(t){return e.attempt({tokenize:d,partial:!0},p,u)(t)}function u(t){return(a?nz(e,h,"linePrefix",a+1):h)(t)}function h(t){return null===t?p(t):nC(t)?e.attempt(aW,c,p)(t):(e.enter("mathFlowValue"),function t(n){return null===n||nC(n)?(e.exit("mathFlowValue"),h(n)):(e.consume(n),t)}(t))}function p(n){return e.exit("mathFlow"),t(n)}function d(e,t,n){let i=0;return nz(e,function(t){return e.enter("mathFlowFence"),e.enter("mathFlowFenceSequence"),function t(r){return 36===r?(i++,e.consume(r),t):i<o?n(r):(e.exit("mathFlowFenceSequence"),nz(e,a,"whitespace")(r))}(t)},"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function a(r){return null===r||nC(r)?(e.exit("mathFlowFence"),t(r)):n(r)}}},concrete:!0,name:"mathFlow"},aW={tokenize:function(e,t,n){let r=this;return function(n){return null===n?t(n):(e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),i)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}},partial:!0};function aV(e){let t,n,r=e.length-4,i=3;if(("lineEnding"===e[3][1].type||"space"===e[i][1].type)&&("lineEnding"===e[r][1].type||"space"===e[r][1].type)){for(t=i;++t<r;)if("mathTextData"===e[t][1].type){e[r][1].type="mathTextPadding",e[i][1].type="mathTextPadding",i+=2,r-=2;break}}for(t=i-1,r++;++t<=r;)void 0===n?t!==r&&"lineEnding"!==e[t][1].type&&(n=t):(t===r||"lineEnding"===e[t][1].type)&&(e[n][1].type="mathTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),r-=t-n-2,t=n+2),n=void 0);return e}function a$(e){return 36!==e||"characterEscape"===this.events[this.events.length-1][1].type}let aX={};function aY(e){let t,n=e||aX,r=this.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),a=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),o=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push({flow:{36:aG},text:{36:(null==(t=(n||{}).singleDollarTextMath)&&(t=!0),{tokenize:function(e,n,r){let i,a,o=0;return function(n){return e.enter("mathText"),e.enter("mathTextSequence"),function n(i){return 36===i?(e.consume(i),o++,n):o<2&&!t?r(i):(e.exit("mathTextSequence"),s(i))}(n)};function s(t){return null===t?r(t):36===t?(a=e.enter("mathTextSequence"),i=0,function t(r){return 36===r?(e.consume(r),i++,t):i===o?(e.exit("mathTextSequence"),e.exit("mathText"),n(r)):(a.type="mathTextData",l(r))}(t)):32===t?(e.enter("space"),e.consume(t),e.exit("space"),s):nC(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),s):(e.enter("mathTextData"),l(t))}function l(t){return null===t||32===t||36===t||nC(t)?(e.exit("mathTextData"),s(t)):(e.consume(t),l)}},resolve:aV,previous:a$,name:"mathText"})}}),a.push(function(){return{enter:{mathFlow:function(e){this.enter({type:"math",meta:null,value:"",data:{hName:"pre",hChildren:[{type:"element",tagName:"code",properties:{className:["language-math","math-display"]},children:[]}]}},e)},mathFlowFenceMeta:function(){this.buffer()},mathText:function(e){this.enter({type:"inlineMath",value:"",data:{hName:"code",hProperties:{className:["language-math","math-inline"]},hChildren:[]}},e),this.buffer()}},exit:{mathFlow:function(e){let t=this.resume().replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),n=this.stack[this.stack.length-1];tr("math"===n.type),this.exit(e),n.value=t;let r=n.data.hChildren[0];tr("element"===r.type),tr("code"===r.tagName),r.children.push({type:"text",value:t}),this.data.mathFlowInside=void 0},mathFlowFence:function(){this.data.mathFlowInside||(this.buffer(),this.data.mathFlowInside=!0)},mathFlowFenceMeta:function(){let e=this.resume(),t=this.stack[this.stack.length-1];tr("math"===t.type),t.meta=e},mathFlowValue:e,mathText:function(e){let t=this.resume(),n=this.stack[this.stack.length-1];tr("inlineMath"===n.type),this.exit(e),n.value=t,n.data.hChildren.push({type:"text",value:t})},mathTextData:e}};function e(e){this.config.enter.data.call(this,e),this.config.exit.data.call(this,e)}}()),o.push(function(e){let t=(e||{}).singleDollarTextMath;return null==t&&(t=!0),n.peek=function(){return"$"},{unsafe:[{character:"\r",inConstruct:"mathFlowMeta"},{character:"\n",inConstruct:"mathFlowMeta"},{character:"$",after:t?void 0:"\\$",inConstruct:"phrasing"},{character:"$",inConstruct:"mathFlowMeta"},{atBreak:!0,character:"$",after:"\\$"}],handlers:{math:function(e,t,n,r){let i=e.value||"",a=n.createTracker(r),o="$".repeat(Math.max(function(e,t){let n=String(e),r=n.indexOf("$"),i=r,a=0,o=0;if("string"!=typeof t)throw TypeError("Expected substring");for(;-1!==r;)r===i?++a>o&&(o=a):a=1,i=r+t.length,r=n.indexOf(t,i);return o}(i,"$")+1,2)),s=n.enter("mathFlow"),l=a.move(o);if(e.meta){let t=n.enter("mathFlowMeta");l+=a.move(n.safe(e.meta,{after:"\n",before:l,encode:["$"],...a.current()})),t()}return l+=a.move("\n"),i&&(l+=a.move(i+"\n")),l+=a.move(o),s(),l},inlineMath:n}};function n(e,n,r){let i=e.value||"",a=1;for(!t&&a++;RegExp("(^|[^$])"+"\\$".repeat(a)+"([^$]|$)").test(i);)a++;let o="$".repeat(a);/[^ \r\n]/.test(i)&&(/^[ \r\n]/.test(i)&&/[ \r\n]$/.test(i)||/^\$|\$$/.test(i))&&(i=" "+i+" ");let s=-1;for(;++s<r.unsafe.length;){let e,t=r.unsafe[s];if(!t.atBreak)continue;let n=r.compilePattern(t);for(;e=n.exec(i);){let t=e.index;10===i.codePointAt(t)&&13===i.codePointAt(t-1)&&t--,i=i.slice(0,t)+" "+i.slice(e.index+1)}}return o+i+o}}(n))}let aJ=/[#.]/g;function aZ(e,t,n){let r=n?function(e){let t=new Map;for(let n of e)t.set(n.toLowerCase(),n);return t}(n):void 0;return function(n,i){let a;for(var o=arguments.length,s=Array(o>2?o-2:0),l=2;l<o;l++)s[l-2]=arguments[l];if(null==n)a={type:"root",children:[]},s.unshift(i);else{let o=(a=function(e,t){let n,r,i=e||"",a={},o=0;for(;o<i.length;){aJ.lastIndex=o;let e=aJ.exec(i),t=i.slice(o,e?e.index:i.length);t&&(n?"#"===n?a.id=t:Array.isArray(a.className)?a.className.push(t):a.className=[t]:r=t,o+=t.length),e&&(n=e[0],o++)}return{type:"element",tagName:r||t||"div",properties:a,children:[]}}(n,t)).tagName.toLowerCase(),l=r?r.get(o):void 0;if(a.tagName=l||o,function(e){if(null===e||"object"!=typeof e||Array.isArray(e))return!0;if("string"!=typeof e.type)return!1;for(let t of Object.keys(e)){let n=e[t];if(n&&"object"==typeof n){if(!Array.isArray(n))return!0;for(let e of n)if("number"!=typeof e&&"string"!=typeof e)return!0}}return!!("children"in e&&Array.isArray(e.children))}(i))s.unshift(i);else for(let[t,n]of Object.entries(i))!function(e,t,n,r){let i,a=tz(e,n);if(null!=r){if("number"==typeof r){if(Number.isNaN(r))return;i=r}else i="boolean"==typeof r?r:"string"==typeof r?a.spaceSeparated?tX(r):a.commaSeparated?ta(r):a.commaOrSpaceSeparated?tX(ta(r).join(" ")):aK(a,a.property,r):Array.isArray(r)?[...r]:"style"===a.property?function(e){let t=[];for(let[n,r]of Object.entries(e))t.push([n,r].join(": "));return t.join("; ")}(r):String(r);if(Array.isArray(i)){let e=[];for(let t of i)e.push(aK(a,a.property,t));i=e}"className"===a.property&&Array.isArray(t.className)&&(i=t.className.concat(i)),t[a.property]=i}}(e,a.properties,t,n)}for(let e of s)!function e(t,n){if(null==n);else if("number"==typeof n||"string"==typeof n)t.push({type:"text",value:String(n)});else if(Array.isArray(n))for(let r of n)e(t,r);else if("object"==typeof n&&"type"in n)"root"===n.type?e(t,n.children):t.push(n);else throw Error("Expected node, nodes, or string, got `"+n+"`")}(a.children,e);return"element"===a.type&&"template"===a.tagName&&(a.content={type:"root",children:a.children},a.children=[]),a}}function aK(e,t,n){if("string"==typeof n){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(""===n||t_(n)===t_(t)))return!0}return n}let aQ=aZ(tV,"div"),a0=aZ(t$,"g",["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"]),a1={html:"http://www.w3.org/1999/xhtml",svg:"http://www.w3.org/2000/svg"};function a4(e,t){let n=function(e,t){switch(e.nodeType){case 1:return function(e,t){let n=e.namespaceURI,r=n===a1.svg?a0:aQ,i=n===a1.html?e.tagName.toLowerCase():e.tagName,a=n===a1.html&&"template"===i?e.content:e,o=e.getAttributeNames(),s={},l=-1;for(;++l<o.length;)s[o[l]]=e.getAttribute(o[l])||"";return r(i,s,a5(a,t))}(e,t);case 3:return{type:"text",value:e.nodeValue||""};case 8:return{type:"comment",value:e.nodeValue||""};case 9:case 11:return function(e,t){return{type:"root",children:a5(e,t)}}(e,t);case 10:return{type:"doctype"};default:return}}(e,t);return n&&t.afterTransform&&t.afterTransform(e,n),n}function a5(e,t){let n=e.childNodes,r=[],i=-1;for(;++i<n.length;){let e=a4(n[i],t);void 0!==e&&r.push(e)}return r}let a6=new DOMParser,a3=function(e,t,n){let r=rX(n);if(!e||!e.type||!e.children)throw Error("Expected parent node");if("number"==typeof t){if(t<0||t===1/0)throw Error("Expected positive finite number as index")}else if((t=e.children.indexOf(t))<0)throw Error("Expected child node or index");for(;++t<e.children.length;)if(r(e.children[t],t,e))return e.children[t]},a2=function(e){if(null==e)return a8;if("string"==typeof e){var t;return t=e,a7(function(e){return e.tagName===t})}if("object"==typeof e){var n=e;let t=[],r=-1;for(;++r<n.length;)t[r]=a2(n[r]);return a7(function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];let i=-1;for(;++i<t.length;)if(t[i].apply(this,n))return!0;return!1})}if("function"==typeof e)return a7(e);throw Error("Expected function, string, or array as `test`")};function a7(e){return function(t,n,r){var i;return!!(null!==(i=t)&&"object"==typeof i&&"type"in i&&"tagName"in i&&e.call(this,t,"number"==typeof n?n:void 0,r||void 0))}}function a8(e){return!!(e&&"object"==typeof e&&"type"in e&&"element"===e.type&&"tagName"in e&&"string"==typeof e.tagName)}let a9=/\n/g,oe=/[\t ]+/g,ot=a2("br"),on=a2(function(e){return"td"===e.tagName||"th"===e.tagName}),or=a2("p"),oi=a2("tr"),oa=a2(["datalist","head","noembed","noframes","noscript","rp","script","style","template","title",function(e){return!!(e.properties||{}).hidden},function(e){return"dialog"===e.tagName&&!(e.properties||{}).open}]),oo=a2(["address","article","aside","blockquote","body","caption","center","dd","dialog","dir","dl","dt","div","figure","figcaption","footer","form,","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","legend","li","listing","main","menu","nav","ol","p","plaintext","pre","section","ul","xmp"]);function os(e,t){let n,r=String(e.value),i=[],a=[],o=0;for(;o<=r.length;){a9.lastIndex=o;let e=a9.exec(r),n=e&&"index"in e?e.index:r.length;i.push(function(e,t,n){let r,i=[],a=0;for(;a<e.length;){oe.lastIndex=a;let n=oe.exec(e);r=n?n.index:e.length,a||r||!n||t||i.push(""),a!==r&&i.push(e.slice(a,r)),a=n?r+n[0].length:r}return a===r||n||i.push(""),i.join(" ")}(r.slice(o,n).replace(/[\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g,""),0!==o||t.breakBefore,n!==r.length||t.breakAfter)),o=n+1}let s=-1;for(;++s<i.length;)8203===i[s].charCodeAt(i[s].length-1)||s<i.length-1&&8203===i[s+1].charCodeAt(0)?(a.push(i[s]),n=void 0):i[s]?("number"==typeof n&&a.push(n),a.push(i[s]),n=0):(0===s||s===i.length-1)&&a.push(0);return a}function ol(e,t){if("element"===e.type){let n=e.properties||{};switch(e.tagName){case"listing":case"plaintext":case"xmp":return"pre";case"nobr":return"nowrap";case"pre":return n.wrap?"pre-wrap":"pre";case"td":case"th":return n.noWrap?"nowrap":t.whitespace;case"textarea":return"pre-wrap"}}return t.whitespace}class oc extends Error{constructor(e,t){var n="KaTeX parse error: "+e,r=t&&t.loc;if(r&&r.start<=r.end){var i,a,o=r.lexer.input;i=r.start,a=r.end,i===o.length?n+=" at end of input: ":n+=" at position "+(i+1)+": ";var s=o.slice(i,a).replace(/[^]/g,"$&̲");n+=(i>15?"…"+o.slice(i-15,i):o.slice(0,i))+s+(a+15<o.length?o.slice(a,a+15)+"…":o.slice(a))}super(n),this.name="ParseError",Object.setPrototypeOf(this,oc.prototype),this.position=i,null!=i&&null!=a&&(this.length=a-i),this.rawMessage=e}}var ou=/([A-Z])/g,oh=e=>e.replace(ou,"-$1").toLowerCase(),op={"&":"&",">":">","<":"<",'"':""","'":"'"},od=/[&><"']/g,om=e=>String(e).replace(od,e=>op[e]),of=e=>{if("ordgroup"===e.type||"color"===e.type)if(1===e.body.length)return of(e.body[0]);else return e;return"font"===e.type?of(e.body):e},og=new Set(["mathord","textord","atom"]),oy=e=>og.has(of(e).type),ob={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format <type>"},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color <color>",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:e=>"#"+e},macros:{type:"object",cli:"-m, --macro <def>",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(e,t)=>(t.push(e),t)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:e=>Math.max(0,e),cli:"--min-rule-thickness <size>",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:e=>Math.max(0,e),cli:"-s, --max-size <n>",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:e=>Math.max(0,e),cli:"-e, --max-expand <n>",cliProcessor:e=>"Infinity"===e?1/0:parseInt(e)},globalGroup:{type:"boolean",cli:!1}};class ov{reportNonstrict(e,t,n){var r=this.strict;if("function"==typeof r&&(r=r(e,t,n)),r&&"ignore"!==r){if(!0===r||"error"===r)throw new oc("LaTeX-incompatible input and strict mode is set to 'error': "+(t+" [")+e+"]",n);"warn"===r?"undefined"!=typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(t+" [")+e+"]"):"undefined"!=typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+r+"': "+t+" [")+e+"]")}}useStrictBehavior(e,t,n){var r=this.strict;if("function"==typeof r)try{r=r(e,t,n)}catch(e){r="error"}return!!r&&"ignore"!==r&&(!0===r||"error"===r||("warn"===r?("undefined"!=typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(t+" [")+e+"]"),!1):("undefined"!=typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+r+"': "+t+" [")+e+"]"),!1)))}isTrusted(e){if("url"in e&&e.url&&!e.protocol){var t,n,r=(t=e.url,(n=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(t))?":"===n[2]&&/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(n[1])?n[1].toLowerCase():null:"_relative");if(null==r)return!1;e.protocol=r}return!!("function"==typeof this.trust?this.trust(e):this.trust)}constructor(e){for(var t of(void 0===e&&(e={}),e=e||{},Object.keys(ob))){var n=ob[t],r=e[t];this[t]=void 0!==r?n.processor?n.processor(r):r:function(e){if("default"in e)return e.default;var t=e.type,n=Array.isArray(t)?t[0]:t;if("string"!=typeof n)return n.enum[0];switch(n){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}(n)}}}class ox{sup(){return ok[ow[this.id]]}sub(){return ok[oS[this.id]]}fracNum(){return ok[oA[this.id]]}fracDen(){return ok[oC[this.id]]}cramp(){return ok[oT[this.id]]}text(){return ok[o_[this.id]]}isTight(){return this.size>=2}constructor(e,t,n){this.id=e,this.size=t,this.cramped=n}}var ok=[new ox(0,0,!1),new ox(1,0,!0),new ox(2,1,!1),new ox(3,1,!0),new ox(4,2,!1),new ox(5,2,!0),new ox(6,3,!1),new ox(7,3,!0)],ow=[4,5,4,5,6,7,6,7],oS=[5,5,5,5,7,7,7,7],oA=[2,3,4,5,6,7,6,7],oC=[3,3,5,5,7,7,7,7],oT=[1,1,3,3,5,5,7,7],o_=[0,1,2,3,2,3,2,3],oM={DISPLAY:ok[0],TEXT:ok[2],SCRIPT:ok[4],SCRIPTSCRIPT:ok[6]},oN=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}],oE=[];function oz(e){for(var t=0;t<oE.length;t+=2)if(e>=oE[t]&&e<=oE[t+1])return!0;return!1}oN.forEach(e=>e.blocks.forEach(e=>oE.push(...e)));var oI=function(e,t,n){t*=1e3;var r,i,a,o,s,l,c="";switch(e){case"sqrtMain":c="M95,"+(622+(r=t)+80)+"\nc-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14\nc0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54\nc44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10\ns173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429\nc69,-144,104.5,-217.7,106.5,-221\nl"+r/2.075+" -"+r+"\nc5.3,-9.3,12,-14,20,-14\nH400000v"+(40+r)+"H845.2724\ns-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7\nc-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z\nM"+(834+r)+" 80h400000v"+(40+r)+"h-400000z";break;case"sqrtSize1":c="M263,"+(601+(i=t)+80)+"c0.7,0,18,39.7,52,119\nc34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120\nc340,-704.7,510.7,-1060.3,512,-1067\nl"+i/2.084+" -"+i+"\nc4.7,-7.3,11,-11,19,-11\nH40000v"+(40+i)+"H1012.3\ns-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232\nc-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1\ns-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26\nc-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z\nM"+(1001+i)+" 80h400000v"+(40+i)+"h-400000z";break;case"sqrtSize2":c="M983 "+(10+(a=t)+80)+"\nl"+a/3.13+" -"+a+"\nc4,-6.7,10,-10,18,-10 H400000v"+(40+a)+"\nH1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7\ns-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744\nc-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30\nc26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722\nc56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5\nc53.7,-170.3,84.5,-266.8,92.5,-289.5z\nM"+(1001+a)+" 80h400000v"+(40+a)+"h-400000z";break;case"sqrtSize3":c="M424,"+(2398+(o=t)+80)+"\nc-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514\nc0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20\ns-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121\ns209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081\nl"+o/4.223+" -"+o+"c4,-6.7,10,-10,18,-10 H400000\nv"+(40+o)+"H1014.6\ns-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185\nc-2,6,-10,9,-24,9\nc-8,0,-12,-0.7,-12,-2z M"+(1001+o)+" 80\nh400000v"+(40+o)+"h-400000z";break;case"sqrtSize4":c="M473,"+(2713+(s=t)+80)+"\nc339.3,-1799.3,509.3,-2700,510,-2702 l"+s/5.298+" -"+s+"\nc3.3,-7.3,9.3,-11,18,-11 H400000v"+(40+s)+"H1017.7\ns-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9\nc-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200\nc0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26\ns76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,\n606zM"+(1001+s)+" 80h400000v"+(40+s)+"H1017.7z";break;case"sqrtTall":c="M702 "+((l=t)+80)+"H400000"+(40+l)+"\nH742v"+(n-54-80-l)+"l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1\nh-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170\nc-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667\n219 661 l218 661zM702 80H400000v"+(40+l)+"H742z"}return c},oR=function(e,t){switch(e){case"⎜":let n;return(n="M291 0 H417 V"+t+" H291z")+" "+n;case"∣":let r;return(r="M145 0 H188 V"+t+" H145z")+" "+r;case"∥":let i,a;return(i="M145 0 H188 V"+t+" H145z")+" "+i+((a="M367 0 H410 V"+t+" H367z")+" ")+a;case"⎟":let o;return(o="M457 0 H583 V"+t+" H457z")+" "+o;case"⎢":let s;return(s="M319 0 H403 V"+t+" H319z")+" "+s;case"⎥":let l;return(l="M263 0 H347 V"+t+" H263z")+" "+l;case"⎪":let c;return(c="M384 0 H504 V"+t+" H384z")+" "+c;case"⏐":let u;return(u="M312 0 H355 V"+t+" H312z")+" "+u;case"‖":let h,p;return(h="M257 0 H300 V"+t+" H257z")+" "+h+((p="M478 0 H521 V"+t+" H478z")+" ")+p;default:return""}},oj={doubleleftarrow:"M262 157\nl10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3\n 0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28\n 14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5\nc2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5\n 157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87\n-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7\n-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z\nm8 0v40h399730v-40zm0 194v40h399730v-40z",doublerightarrow:"M399738 392l\n-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5\n 14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88\n-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68\n-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18\n-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782\nc-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3\n-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z",leftarrow:"M400000 241H110l3-3c68.7-52.7 113.7-120\n 135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8\n-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247\nc-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208\n 490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3\n 1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202\n l-3-3h399890zM100 241v40h399900v-40z",leftbrace:"M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117\n-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7\n 5-6 9-10 13-.7 1-7.3 1-20 1H6z",leftbraceunder:"M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13\n 35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688\n 0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7\n-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z",leftgroup:"M400000 80\nH435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0\n 435 0h399565z",leftgroupunder:"M400000 262\nH435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219\n 435 219h399565z",leftharpoon:"M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3\n-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5\n-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7\n-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z",leftharpoonplus:"M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5\n 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3\n-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7\n-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z\nm0 0v40h400000v-40z",leftharpoondown:"M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333\n 5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5\n 1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667\n-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z",leftharpoondownplus:"M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12\n 10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7\n-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0\nv40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z",lefthook:"M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5\n-83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3\n-68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21\n 71.5 23h399859zM103 281v-40h399897v40z",leftlinesegment:(e=>e+" "+e)("M40 281 V428 H0 V94 H40 V241 H400000 v40z"),leftbracketunder:(e=>e+" "+e)("M0 0 h120 V290 H399995 v120 H0z"),leftbracketover:(e=>e+" "+e)("M0 440 h120 V150 H399995 v-120 H0z"),leftmapsto:(e=>e+" "+e)("M40 281 V448H0V74H40V241H400000v40z"),leftToFrom:"M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23\n-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8\nc28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3\n 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z",longequal:(e=>e+" "+e)("M0 50 h400000 v40H0z m0 194h40000v40H0z"),midbrace:"M200428 334\nc-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14\n-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7\n 311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11\n 12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z",midbraceunder:"M199572 214\nc100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14\n 53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3\n 11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0\n-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z",oiintSize1:"M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6\n-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z\nm368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8\n60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z",oiintSize2:"M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8\n-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z\nm502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2\nc0 110 84 276 504 276s502.4-166 502.4-276z",oiiintSize1:"M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6\n-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z\nm525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0\n85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z",oiiintSize2:"M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8\n-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z\nm770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1\nc0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z",rightarrow:"M0 241v40h399891c-47.3 35.3-84 78-110 128\n-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20\n 11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7\n 39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85\n-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5\n-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67\n 151.7 139 205zm0 0v40h399900v-40z",rightbrace:"M400000 542l\n-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5\ns-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1\nc124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z",rightbraceunder:"M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3\n 28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237\n-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z",rightgroup:"M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0\n 3-1 3-3v-38c-76-158-257-219-435-219H0z",rightgroupunder:"M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18\n 0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z",rightharpoon:"M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3\n-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2\n-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58\n 69.2 92 94.5zm0 0v40h399900v-40z",rightharpoonplus:"M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11\n-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7\n 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z\nm0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z",rightharpoondown:"M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8\n 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5\n-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95\n-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z",rightharpoondownplus:"M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8\n 15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3\n 8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3\n-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z\nm0-194v40h400000v-40zm0 0v40h400000v-40z",righthook:"M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3\n 15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0\n-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21\n 66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z",rightlinesegment:(e=>e+" "+e)("M399960 241 V94 h40 V428 h-40 V281 H0 v-40z"),rightbracketunder:(e=>e+" "+e)("M399995 0 h-120 V290 H0 v120 H400000z"),rightbracketover:(e=>e+" "+e)("M399995 440 h-120 V150 H0 v-120 H399995z"),rightToFrom:"M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23\n 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32\n-52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142\n-167z M100 147v40h399900v-40zM0 341v40h399900v-40z",twoheadleftarrow:"M0 167c68 40\n 115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69\n-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3\n-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19\n-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101\n 10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z",twoheadrightarrow:"M400000 167\nc-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3\n 41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42\n 18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333\n-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70\n 101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z",tilde1:"M200 55.538c-77 0-168 73.953-177 73.953-3 0-7\n-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0\n 114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0\n 4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128\n-68.267.847-113-73.952-191-73.952z",tilde2:"M344 55.266c-142 0-300.638 81.316-311.5 86.418\n-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9\n 31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114\nc1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751\n 181.476 676 181.476c-149 0-189-126.21-332-126.21z",tilde3:"M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457\n-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0\n 411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697\n 16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696\n -338 0-409-156.573-744-156.573z",tilde4:"M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345\n-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409\n 177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9\n 14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409\n -175.236-744-175.236z",vec:"M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5\n3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11\n10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63\n-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1\n-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59\nH213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359\nc-16-25.333-24-45-24-59z",widehat1:"M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22\nc-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z",widehat2:"M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widehat3:"M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widehat4:"M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widecheck1:"M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1,\n-5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z",widecheck2:"M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",widecheck3:"M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",widecheck4:"M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",baraboveleftarrow:"M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202\nc4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5\nc-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130\ns-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47\n121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6\ns2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11\nc0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z\nM100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z",rightarrowabovebar:"M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32\n-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0\n13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39\n-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5\n-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5\n-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67\n151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z",baraboveshortleftharpoon:"M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11\nc1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17\nc2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21\nc-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40\nc-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z\nM0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z",rightharpoonaboveshortbar:"M0,241 l0,40c399126,0,399993,0,399993,0\nc4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,\n-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6\nc-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z\nM0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z",shortbaraboveleftharpoon:"M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11\nc1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9,\n1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7,\n-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z\nM93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z",shortrightharpoonabovebar:"M53,241l0,40c398570,0,399437,0,399437,0\nc4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,\n-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6\nc-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z\nM500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z"},oL=function(e,t){switch(e){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+t+" v1759 h347 v-84\nH403z M403 1759 V0 H319 V1759 v"+t+" v1759 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+t+" v1759 H0 v84 H347z\nM347 1759 V0 H263 V1759 v"+t+" v1759 h84z";case"vert":return"M145 15 v585 v"+t+" v585 c2.667,10,9.667,15,21,15\nc10,0,16.667,-5,20,-15 v-585 v"+-t+" v-585 c-2.667,-10,-9.667,-15,-21,-15\nc-10,0,-16.667,5,-20,15z M188 15 H145 v585 v"+t+" v585 h43z";case"doublevert":return"M145 15 v585 v"+t+" v585 c2.667,10,9.667,15,21,15\nc10,0,16.667,-5,20,-15 v-585 v"+-t+" v-585 c-2.667,-10,-9.667,-15,-21,-15\nc-10,0,-16.667,5,-20,15z M188 15 H145 v585 v"+t+" v585 h43z\nM367 15 v585 v"+t+" v585 c2.667,10,9.667,15,21,15\nc10,0,16.667,-5,20,-15 v-585 v"+-t+" v-585 c-2.667,-10,-9.667,-15,-21,-15\nc-10,0,-16.667,5,-20,15z M410 15 H367 v585 v"+t+" v585 h43z";case"lfloor":return"M319 602 V0 H403 V602 v"+t+" v1715 h263 v84 H319z\nMM319 602 V0 H403 V602 v"+t+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+t+" v1799 H0 v-84 H319z\nMM319 602 V0 H403 V602 v"+t+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+t+" v602 h84z\nM403 1759 V0 H319 V1759 v"+t+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+t+" v602 h84z\nM347 1759 V0 h-84 V1759 v"+t+" v602 h84z";case"lparen":return"M863,9c0,-2,-2,-5,-6,-9c0,0,-17,0,-17,0c-12.7,0,-19.3,0.3,-20,1\nc-5.3,5.3,-10.3,11,-15,17c-242.7,294.7,-395.3,682,-458,1162c-21.3,163.3,-33.3,349,\n-36,557 l0,"+(t+84)+"c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210,\n949.7,470,1265c4.7,6,9.7,11.7,15,17c0.7,0.7,7,1,19,1c0,0,18,0,18,0c4,-4,6,-7,6,-9\nc0,-2.7,-3.3,-8.7,-10,-18c-135.3,-192.7,-235.5,-414.3,-300.5,-665c-65,-250.7,-102.5,\n-544.7,-112.5,-882c-2,-104,-3,-167,-3,-189\nl0,-"+(t+92)+"c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3,\n-210,155.3,-396.3,270,-559c6.7,-9.3,10,-15.3,10,-18z";case"rparen":return"M76,0c-16.7,0,-25,3,-25,9c0,2,2,6.3,6,13c21.3,28.7,42.3,60.3,\n63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5\nc11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,"+(t+9)+"\nc-3,4,-3.3,16.7,-3.3,38c0,162,-5.7,313.7,-17,455c-18.7,248,-55.8,469.3,-111.5,664\nc-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6,11\nc0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17\nc242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558\nl0,-"+(t+144)+"c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,\n-470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z";default:throw Error("Unknown stretchy delimiter.")}};class oP{hasClass(e){return this.classes.includes(e)}toNode(){for(var e=document.createDocumentFragment(),t=0;t<this.children.length;t++)e.appendChild(this.children[t].toNode());return e}toMarkup(){for(var e="",t=0;t<this.children.length;t++)e+=this.children[t].toMarkup();return e}toText(){return this.children.map(e=>e.toText()).join("")}constructor(e){this.children=e,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}}var oB={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:1.00375,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:1.00375},oO={ex:!0,em:!0,mu:!0},oD=function(e){return"string"!=typeof e&&(e=e.unit),e in oB||e in oO||"ex"===e},oF=function(e,t){var n,r;if(e.unit in oB)n=oB[e.unit]/t.fontMetrics().ptPerEm/t.sizeMultiplier;else if("mu"===e.unit)n=t.fontMetrics().cssEmPerMu;else{if(r=t.style.isTight()?t.havingStyle(t.style.text()):t,"ex"===e.unit)n=r.fontMetrics().xHeight;else if("em"===e.unit)n=r.fontMetrics().quad;else throw new oc("Invalid unit: '"+e.unit+"'");r!==t&&(n*=r.sizeMultiplier/t.sizeMultiplier)}return Math.min(e.number*n,t.maxSize)},oq=function(e){return+e.toFixed(4)+"em"},oH=function(e){return e.filter(e=>e).join(" ")},oU=function(e,t,n){if(this.classes=e||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=n||{},t){t.style.isTight()&&this.classes.push("mtight");var r=t.getColor();r&&(this.style.color=r)}},oG=function(e){var t=document.createElement(e);for(var n of(t.className=oH(this.classes),Object.keys(this.style)))t.style[n]=this.style[n];for(var r of Object.keys(this.attributes))t.setAttribute(r,this.attributes[r]);for(var i=0;i<this.children.length;i++)t.appendChild(this.children[i].toNode());return t},oW=/[\s"'>/=\x00-\x1f]/,oV=function(e){var t="<"+e;this.classes.length&&(t+=' class="'+om(oH(this.classes))+'"');var n="";for(var r of Object.keys(this.style))n+=oh(r)+":"+this.style[r]+";";for(var i of(n&&(t+=' style="'+om(n)+'"'),Object.keys(this.attributes))){if(oW.test(i))throw new oc("Invalid attribute name '"+i+"'");t+=" "+i+'="'+om(this.attributes[i])+'"'}t+=">";for(var a=0;a<this.children.length;a++)t+=this.children[a].toMarkup();return t+("</"+e+">")};class o${setAttribute(e,t){this.attributes[e]=t}hasClass(e){return this.classes.includes(e)}toNode(){return oG.call(this,"span")}toMarkup(){return oV.call(this,"span")}constructor(e,t,n,r){oU.call(this,e,n,r),this.children=t||[]}}class oX{setAttribute(e,t){this.attributes[e]=t}hasClass(e){return this.classes.includes(e)}toNode(){return oG.call(this,"a")}toMarkup(){return oV.call(this,"a")}constructor(e,t,n,r){oU.call(this,t,r),this.children=n||[],this.setAttribute("href",e)}}class oY{hasClass(e){return this.classes.includes(e)}toNode(){var e=document.createElement("img");for(var t of(e.src=this.src,e.alt=this.alt,e.className="mord",Object.keys(this.style)))e.style[t]=this.style[t];return e}toMarkup(){var e='<img src="'+om(this.src)+'" alt="'+om(this.alt)+'"',t="";for(var n of Object.keys(this.style))t+=oh(n)+":"+this.style[n]+";";return t&&(e+=' style="'+om(t)+'"'),e+="'/>"}constructor(e,t,n){this.alt=t,this.src=e,this.classes=["mord"],this.height=0,this.depth=0,this.maxFontSize=0,this.style=n}}var oJ={î:"ı̂",ï:"ı̈",í:"ı́",ì:"ı̀"};class oZ{hasClass(e){return this.classes.includes(e)}toNode(){var e=document.createTextNode(this.text),t=null;for(var n of(this.italic>0&&((t=document.createElement("span")).style.marginRight=oq(this.italic)),this.classes.length>0&&((t=t||document.createElement("span")).className=oH(this.classes)),Object.keys(this.style)))(t=t||document.createElement("span")).style[n]=this.style[n];return t?(t.appendChild(e),t):e}toMarkup(){var e=!1,t="<span";this.classes.length&&(e=!0,t+=' class="',t+=om(oH(this.classes)),t+='"');var n="";for(var r of(this.italic>0&&(n+="margin-right:"+oq(this.italic)+";"),Object.keys(this.style)))n+=oh(r)+":"+this.style[r]+";";n&&(e=!0,t+=' style="'+om(n)+'"');var i=om(this.text);return e?(t+=">",t+=i,t+="</span>"):i}constructor(e,t,n,r,i,a,o,s){this.text=e,this.height=t||0,this.depth=n||0,this.italic=r||0,this.skew=i||0,this.width=a||0,this.classes=o||[],this.style=s||{},this.maxFontSize=0;var l=function(e){for(var t=0;t<oN.length;t++)for(var n=oN[t],r=0;r<n.blocks.length;r++){var i=n.blocks[r];if(e>=i[0]&&e<=i[1])return n.name}return null}(this.text.charCodeAt(0));l&&this.classes.push(l+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=oJ[this.text])}}class oK{toNode(){var e=document.createElementNS("http://www.w3.org/2000/svg","svg");for(var t of Object.keys(this.attributes))e.setAttribute(t,this.attributes[t]);for(var n=0;n<this.children.length;n++)e.appendChild(this.children[n].toNode());return e}toMarkup(){var e='<svg xmlns="http://www.w3.org/2000/svg"';for(var t of Object.keys(this.attributes))e+=" "+t+'="'+om(this.attributes[t])+'"';e+=">";for(var n=0;n<this.children.length;n++)e+=this.children[n].toMarkup();return e+"</svg>"}constructor(e,t){this.children=e||[],this.attributes=t||{}}}class oQ{toNode(){var e=document.createElementNS("http://www.w3.org/2000/svg","path");return this.alternate?e.setAttribute("d",this.alternate):e.setAttribute("d",oj[this.pathName]),e}toMarkup(){return this.alternate?'<path d="'+om(this.alternate)+'"/>':'<path d="'+om(oj[this.pathName])+'"/>'}constructor(e,t){this.pathName=e,this.alternate=t}}class o0{toNode(){var e=document.createElementNS("http://www.w3.org/2000/svg","line");for(var t of Object.keys(this.attributes))e.setAttribute(t,this.attributes[t]);return e}toMarkup(){var e="<line";for(var t of Object.keys(this.attributes))e+=" "+t+'="'+om(this.attributes[t])+'"';return e+"/>"}constructor(e){this.attributes=e||{}}}var o1={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},o4={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},o5={Å:"A",Ð:"D",Þ:"o",å:"a",ð:"d",þ:"o",А:"A",Б:"B",В:"B",Г:"F",Д:"A",Е:"E",Ж:"K",З:"3",И:"N",Й:"N",К:"K",Л:"N",М:"M",Н:"H",О:"O",П:"N",Р:"P",С:"C",Т:"T",У:"y",Ф:"O",Х:"X",Ц:"U",Ч:"h",Ш:"W",Щ:"W",Ъ:"B",Ы:"X",Ь:"B",Э:"3",Ю:"X",Я:"R",а:"a",б:"b",в:"a",г:"r",д:"y",е:"e",ж:"m",з:"e",и:"n",й:"n",к:"n",л:"n",м:"m",н:"n",о:"o",п:"n",р:"p",с:"c",т:"o",у:"y",ф:"b",х:"x",ц:"n",ч:"n",ш:"w",щ:"w",ъ:"a",ы:"m",ь:"a",э:"e",ю:"m",я:"r"};function o6(e,t,n){if(!o1[t])throw Error("Font metrics not found for font: "+t+".");var r=e.charCodeAt(0),i=o1[t][r];if(!i&&e[0]in o5&&(r=o5[e[0]].charCodeAt(0),i=o1[t][r]),!i&&"text"===n&&oz(r)&&(i=o1[t][77]),i)return{depth:i[0],height:i[1],italic:i[2],skew:i[3],width:i[4]}}var o3={},o2={bin:1,close:1,inner:1,open:1,punct:1,rel:1},o7={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},o8={math:{},text:{}};function o9(e,t,n,r,i,a){o8[e][i]={font:t,group:n,replace:r},a&&r&&(o8[e][r]=o8[e][i])}var se="math",st="text",sn="main",sr="accent-token",si="close",sa="inner",so="mathord",ss="op-token",sl="open",sc="punct",su="spacing",sh="textord";o9(se,sn,"rel","≡","\\equiv",!0),o9(se,sn,"rel","≺","\\prec",!0),o9(se,sn,"rel","≻","\\succ",!0),o9(se,sn,"rel","∼","\\sim",!0),o9(se,sn,"rel","⊥","\\perp"),o9(se,sn,"rel","⪯","\\preceq",!0),o9(se,sn,"rel","⪰","\\succeq",!0),o9(se,sn,"rel","≃","\\simeq",!0),o9(se,sn,"rel","∣","\\mid",!0),o9(se,sn,"rel","≪","\\ll",!0),o9(se,sn,"rel","≫","\\gg",!0),o9(se,sn,"rel","≍","\\asymp",!0),o9(se,sn,"rel","∥","\\parallel"),o9(se,sn,"rel","⋈","\\bowtie",!0),o9(se,sn,"rel","⌣","\\smile",!0),o9(se,sn,"rel","⊑","\\sqsubseteq",!0),o9(se,sn,"rel","⊒","\\sqsupseteq",!0),o9(se,sn,"rel","≐","\\doteq",!0),o9(se,sn,"rel","⌢","\\frown",!0),o9(se,sn,"rel","∋","\\ni",!0),o9(se,sn,"rel","∝","\\propto",!0),o9(se,sn,"rel","⊢","\\vdash",!0),o9(se,sn,"rel","⊣","\\dashv",!0),o9(se,sn,"rel","∋","\\owns"),o9(se,sn,sc,".","\\ldotp"),o9(se,sn,sc,"⋅","\\cdotp"),o9(se,sn,sc,"⋅","·"),o9(st,sn,sh,"⋅","·"),o9(se,sn,sh,"#","\\#"),o9(st,sn,sh,"#","\\#"),o9(se,sn,sh,"&","\\&"),o9(st,sn,sh,"&","\\&"),o9(se,sn,sh,"ℵ","\\aleph",!0),o9(se,sn,sh,"∀","\\forall",!0),o9(se,sn,sh,"ℏ","\\hbar",!0),o9(se,sn,sh,"∃","\\exists",!0),o9(se,sn,sh,"∇","\\nabla",!0),o9(se,sn,sh,"♭","\\flat",!0),o9(se,sn,sh,"ℓ","\\ell",!0),o9(se,sn,sh,"♮","\\natural",!0),o9(se,sn,sh,"♣","\\clubsuit",!0),o9(se,sn,sh,"℘","\\wp",!0),o9(se,sn,sh,"♯","\\sharp",!0),o9(se,sn,sh,"♢","\\diamondsuit",!0),o9(se,sn,sh,"ℜ","\\Re",!0),o9(se,sn,sh,"♡","\\heartsuit",!0),o9(se,sn,sh,"ℑ","\\Im",!0),o9(se,sn,sh,"♠","\\spadesuit",!0),o9(se,sn,sh,"§","\\S",!0),o9(st,sn,sh,"§","\\S"),o9(se,sn,sh,"¶","\\P",!0),o9(st,sn,sh,"¶","\\P"),o9(se,sn,sh,"†","\\dag"),o9(st,sn,sh,"†","\\dag"),o9(st,sn,sh,"†","\\textdagger"),o9(se,sn,sh,"‡","\\ddag"),o9(st,sn,sh,"‡","\\ddag"),o9(st,sn,sh,"‡","\\textdaggerdbl"),o9(se,sn,si,"⎱","\\rmoustache",!0),o9(se,sn,sl,"⎰","\\lmoustache",!0),o9(se,sn,si,"⟯","\\rgroup",!0),o9(se,sn,sl,"⟮","\\lgroup",!0),o9(se,sn,"bin","∓","\\mp",!0),o9(se,sn,"bin","⊖","\\ominus",!0),o9(se,sn,"bin","⊎","\\uplus",!0),o9(se,sn,"bin","⊓","\\sqcap",!0),o9(se,sn,"bin","∗","\\ast"),o9(se,sn,"bin","⊔","\\sqcup",!0),o9(se,sn,"bin","◯","\\bigcirc",!0),o9(se,sn,"bin","∙","\\bullet",!0),o9(se,sn,"bin","‡","\\ddagger"),o9(se,sn,"bin","≀","\\wr",!0),o9(se,sn,"bin","⨿","\\amalg"),o9(se,sn,"bin","&","\\And"),o9(se,sn,"rel","⟵","\\longleftarrow",!0),o9(se,sn,"rel","⇐","\\Leftarrow",!0),o9(se,sn,"rel","⟸","\\Longleftarrow",!0),o9(se,sn,"rel","⟶","\\longrightarrow",!0),o9(se,sn,"rel","⇒","\\Rightarrow",!0),o9(se,sn,"rel","⟹","\\Longrightarrow",!0),o9(se,sn,"rel","↔","\\leftrightarrow",!0),o9(se,sn,"rel","⟷","\\longleftrightarrow",!0),o9(se,sn,"rel","⇔","\\Leftrightarrow",!0),o9(se,sn,"rel","⟺","\\Longleftrightarrow",!0),o9(se,sn,"rel","↦","\\mapsto",!0),o9(se,sn,"rel","⟼","\\longmapsto",!0),o9(se,sn,"rel","↗","\\nearrow",!0),o9(se,sn,"rel","↩","\\hookleftarrow",!0),o9(se,sn,"rel","↪","\\hookrightarrow",!0),o9(se,sn,"rel","↘","\\searrow",!0),o9(se,sn,"rel","↼","\\leftharpoonup",!0),o9(se,sn,"rel","⇀","\\rightharpoonup",!0),o9(se,sn,"rel","↙","\\swarrow",!0),o9(se,sn,"rel","↽","\\leftharpoondown",!0),o9(se,sn,"rel","⇁","\\rightharpoondown",!0),o9(se,sn,"rel","↖","\\nwarrow",!0),o9(se,sn,"rel","⇌","\\rightleftharpoons",!0),o9(se,"ams","rel","≮","\\nless",!0),o9(se,"ams","rel","","\\@nleqslant"),o9(se,"ams","rel","","\\@nleqq"),o9(se,"ams","rel","⪇","\\lneq",!0),o9(se,"ams","rel","≨","\\lneqq",!0),o9(se,"ams","rel","","\\@lvertneqq"),o9(se,"ams","rel","⋦","\\lnsim",!0),o9(se,"ams","rel","⪉","\\lnapprox",!0),o9(se,"ams","rel","⊀","\\nprec",!0),o9(se,"ams","rel","⋠","\\npreceq",!0),o9(se,"ams","rel","⋨","\\precnsim",!0),o9(se,"ams","rel","⪹","\\precnapprox",!0),o9(se,"ams","rel","≁","\\nsim",!0),o9(se,"ams","rel","","\\@nshortmid"),o9(se,"ams","rel","∤","\\nmid",!0),o9(se,"ams","rel","⊬","\\nvdash",!0),o9(se,"ams","rel","⊭","\\nvDash",!0),o9(se,"ams","rel","⋪","\\ntriangleleft"),o9(se,"ams","rel","⋬","\\ntrianglelefteq",!0),o9(se,"ams","rel","⊊","\\subsetneq",!0),o9(se,"ams","rel","","\\@varsubsetneq"),o9(se,"ams","rel","⫋","\\subsetneqq",!0),o9(se,"ams","rel","","\\@varsubsetneqq"),o9(se,"ams","rel","≯","\\ngtr",!0),o9(se,"ams","rel","","\\@ngeqslant"),o9(se,"ams","rel","","\\@ngeqq"),o9(se,"ams","rel","⪈","\\gneq",!0),o9(se,"ams","rel","≩","\\gneqq",!0),o9(se,"ams","rel","","\\@gvertneqq"),o9(se,"ams","rel","⋧","\\gnsim",!0),o9(se,"ams","rel","⪊","\\gnapprox",!0),o9(se,"ams","rel","⊁","\\nsucc",!0),o9(se,"ams","rel","⋡","\\nsucceq",!0),o9(se,"ams","rel","⋩","\\succnsim",!0),o9(se,"ams","rel","⪺","\\succnapprox",!0),o9(se,"ams","rel","≆","\\ncong",!0),o9(se,"ams","rel","","\\@nshortparallel"),o9(se,"ams","rel","∦","\\nparallel",!0),o9(se,"ams","rel","⊯","\\nVDash",!0),o9(se,"ams","rel","⋫","\\ntriangleright"),o9(se,"ams","rel","⋭","\\ntrianglerighteq",!0),o9(se,"ams","rel","","\\@nsupseteqq"),o9(se,"ams","rel","⊋","\\supsetneq",!0),o9(se,"ams","rel","","\\@varsupsetneq"),o9(se,"ams","rel","⫌","\\supsetneqq",!0),o9(se,"ams","rel","","\\@varsupsetneqq"),o9(se,"ams","rel","⊮","\\nVdash",!0),o9(se,"ams","rel","⪵","\\precneqq",!0),o9(se,"ams","rel","⪶","\\succneqq",!0),o9(se,"ams","rel","","\\@nsubseteqq"),o9(se,"ams","bin","⊴","\\unlhd"),o9(se,"ams","bin","⊵","\\unrhd"),o9(se,"ams","rel","↚","\\nleftarrow",!0),o9(se,"ams","rel","↛","\\nrightarrow",!0),o9(se,"ams","rel","⇍","\\nLeftarrow",!0),o9(se,"ams","rel","⇏","\\nRightarrow",!0),o9(se,"ams","rel","↮","\\nleftrightarrow",!0),o9(se,"ams","rel","⇎","\\nLeftrightarrow",!0),o9(se,"ams","rel","△","\\vartriangle"),o9(se,"ams",sh,"ℏ","\\hslash"),o9(se,"ams",sh,"▽","\\triangledown"),o9(se,"ams",sh,"◊","\\lozenge"),o9(se,"ams",sh,"Ⓢ","\\circledS"),o9(se,"ams",sh,"®","\\circledR"),o9(st,"ams",sh,"®","\\circledR"),o9(se,"ams",sh,"∡","\\measuredangle",!0),o9(se,"ams",sh,"∄","\\nexists"),o9(se,"ams",sh,"℧","\\mho"),o9(se,"ams",sh,"Ⅎ","\\Finv",!0),o9(se,"ams",sh,"⅁","\\Game",!0),o9(se,"ams",sh,"‵","\\backprime"),o9(se,"ams",sh,"▲","\\blacktriangle"),o9(se,"ams",sh,"▼","\\blacktriangledown"),o9(se,"ams",sh,"■","\\blacksquare"),o9(se,"ams",sh,"⧫","\\blacklozenge"),o9(se,"ams",sh,"★","\\bigstar"),o9(se,"ams",sh,"∢","\\sphericalangle",!0),o9(se,"ams",sh,"∁","\\complement",!0),o9(se,"ams",sh,"ð","\\eth",!0),o9(st,sn,sh,"ð","ð"),o9(se,"ams",sh,"╱","\\diagup"),o9(se,"ams",sh,"╲","\\diagdown"),o9(se,"ams",sh,"□","\\square"),o9(se,"ams",sh,"□","\\Box"),o9(se,"ams",sh,"◊","\\Diamond"),o9(se,"ams",sh,"¥","\\yen",!0),o9(st,"ams",sh,"¥","\\yen",!0),o9(se,"ams",sh,"✓","\\checkmark",!0),o9(st,"ams",sh,"✓","\\checkmark"),o9(se,"ams",sh,"ℶ","\\beth",!0),o9(se,"ams",sh,"ℸ","\\daleth",!0),o9(se,"ams",sh,"ℷ","\\gimel",!0),o9(se,"ams",sh,"ϝ","\\digamma",!0),o9(se,"ams",sh,"ϰ","\\varkappa"),o9(se,"ams",sl,"┌","\\@ulcorner",!0),o9(se,"ams",si,"┐","\\@urcorner",!0),o9(se,"ams",sl,"└","\\@llcorner",!0),o9(se,"ams",si,"┘","\\@lrcorner",!0),o9(se,"ams","rel","≦","\\leqq",!0),o9(se,"ams","rel","⩽","\\leqslant",!0),o9(se,"ams","rel","⪕","\\eqslantless",!0),o9(se,"ams","rel","≲","\\lesssim",!0),o9(se,"ams","rel","⪅","\\lessapprox",!0),o9(se,"ams","rel","≊","\\approxeq",!0),o9(se,"ams","bin","⋖","\\lessdot"),o9(se,"ams","rel","⋘","\\lll",!0),o9(se,"ams","rel","≶","\\lessgtr",!0),o9(se,"ams","rel","⋚","\\lesseqgtr",!0),o9(se,"ams","rel","⪋","\\lesseqqgtr",!0),o9(se,"ams","rel","≑","\\doteqdot"),o9(se,"ams","rel","≓","\\risingdotseq",!0),o9(se,"ams","rel","≒","\\fallingdotseq",!0),o9(se,"ams","rel","∽","\\backsim",!0),o9(se,"ams","rel","⋍","\\backsimeq",!0),o9(se,"ams","rel","⫅","\\subseteqq",!0),o9(se,"ams","rel","⋐","\\Subset",!0),o9(se,"ams","rel","⊏","\\sqsubset",!0),o9(se,"ams","rel","≼","\\preccurlyeq",!0),o9(se,"ams","rel","⋞","\\curlyeqprec",!0),o9(se,"ams","rel","≾","\\precsim",!0),o9(se,"ams","rel","⪷","\\precapprox",!0),o9(se,"ams","rel","⊲","\\vartriangleleft"),o9(se,"ams","rel","⊴","\\trianglelefteq"),o9(se,"ams","rel","⊨","\\vDash",!0),o9(se,"ams","rel","⊪","\\Vvdash",!0),o9(se,"ams","rel","⌣","\\smallsmile"),o9(se,"ams","rel","⌢","\\smallfrown"),o9(se,"ams","rel","≏","\\bumpeq",!0),o9(se,"ams","rel","≎","\\Bumpeq",!0),o9(se,"ams","rel","≧","\\geqq",!0),o9(se,"ams","rel","⩾","\\geqslant",!0),o9(se,"ams","rel","⪖","\\eqslantgtr",!0),o9(se,"ams","rel","≳","\\gtrsim",!0),o9(se,"ams","rel","⪆","\\gtrapprox",!0),o9(se,"ams","bin","⋗","\\gtrdot"),o9(se,"ams","rel","⋙","\\ggg",!0),o9(se,"ams","rel","≷","\\gtrless",!0),o9(se,"ams","rel","⋛","\\gtreqless",!0),o9(se,"ams","rel","⪌","\\gtreqqless",!0),o9(se,"ams","rel","≖","\\eqcirc",!0),o9(se,"ams","rel","≗","\\circeq",!0),o9(se,"ams","rel","≜","\\triangleq",!0),o9(se,"ams","rel","∼","\\thicksim"),o9(se,"ams","rel","≈","\\thickapprox"),o9(se,"ams","rel","⫆","\\supseteqq",!0),o9(se,"ams","rel","⋑","\\Supset",!0),o9(se,"ams","rel","⊐","\\sqsupset",!0),o9(se,"ams","rel","≽","\\succcurlyeq",!0),o9(se,"ams","rel","⋟","\\curlyeqsucc",!0),o9(se,"ams","rel","≿","\\succsim",!0),o9(se,"ams","rel","⪸","\\succapprox",!0),o9(se,"ams","rel","⊳","\\vartriangleright"),o9(se,"ams","rel","⊵","\\trianglerighteq"),o9(se,"ams","rel","⊩","\\Vdash",!0),o9(se,"ams","rel","∣","\\shortmid"),o9(se,"ams","rel","∥","\\shortparallel"),o9(se,"ams","rel","≬","\\between",!0),o9(se,"ams","rel","⋔","\\pitchfork",!0),o9(se,"ams","rel","∝","\\varpropto"),o9(se,"ams","rel","◀","\\blacktriangleleft"),o9(se,"ams","rel","∴","\\therefore",!0),o9(se,"ams","rel","∍","\\backepsilon"),o9(se,"ams","rel","▶","\\blacktriangleright"),o9(se,"ams","rel","∵","\\because",!0),o9(se,"ams","rel","⋘","\\llless"),o9(se,"ams","rel","⋙","\\gggtr"),o9(se,"ams","bin","⊲","\\lhd"),o9(se,"ams","bin","⊳","\\rhd"),o9(se,"ams","rel","≂","\\eqsim",!0),o9(se,sn,"rel","⋈","\\Join"),o9(se,"ams","rel","≑","\\Doteq",!0),o9(se,"ams","bin","∔","\\dotplus",!0),o9(se,"ams","bin","∖","\\smallsetminus"),o9(se,"ams","bin","⋒","\\Cap",!0),o9(se,"ams","bin","⋓","\\Cup",!0),o9(se,"ams","bin","⩞","\\doublebarwedge",!0),o9(se,"ams","bin","⊟","\\boxminus",!0),o9(se,"ams","bin","⊞","\\boxplus",!0),o9(se,"ams","bin","⋇","\\divideontimes",!0),o9(se,"ams","bin","⋉","\\ltimes",!0),o9(se,"ams","bin","⋊","\\rtimes",!0),o9(se,"ams","bin","⋋","\\leftthreetimes",!0),o9(se,"ams","bin","⋌","\\rightthreetimes",!0),o9(se,"ams","bin","⋏","\\curlywedge",!0),o9(se,"ams","bin","⋎","\\curlyvee",!0),o9(se,"ams","bin","⊝","\\circleddash",!0),o9(se,"ams","bin","⊛","\\circledast",!0),o9(se,"ams","bin","⋅","\\centerdot"),o9(se,"ams","bin","⊺","\\intercal",!0),o9(se,"ams","bin","⋒","\\doublecap"),o9(se,"ams","bin","⋓","\\doublecup"),o9(se,"ams","bin","⊠","\\boxtimes",!0),o9(se,"ams","rel","⇢","\\dashrightarrow",!0),o9(se,"ams","rel","⇠","\\dashleftarrow",!0),o9(se,"ams","rel","⇇","\\leftleftarrows",!0),o9(se,"ams","rel","⇆","\\leftrightarrows",!0),o9(se,"ams","rel","⇚","\\Lleftarrow",!0),o9(se,"ams","rel","↞","\\twoheadleftarrow",!0),o9(se,"ams","rel","↢","\\leftarrowtail",!0),o9(se,"ams","rel","↫","\\looparrowleft",!0),o9(se,"ams","rel","⇋","\\leftrightharpoons",!0),o9(se,"ams","rel","↶","\\curvearrowleft",!0),o9(se,"ams","rel","↺","\\circlearrowleft",!0),o9(se,"ams","rel","↰","\\Lsh",!0),o9(se,"ams","rel","⇈","\\upuparrows",!0),o9(se,"ams","rel","↿","\\upharpoonleft",!0),o9(se,"ams","rel","⇃","\\downharpoonleft",!0),o9(se,sn,"rel","⊶","\\origof",!0),o9(se,sn,"rel","⊷","\\imageof",!0),o9(se,"ams","rel","⊸","\\multimap",!0),o9(se,"ams","rel","↭","\\leftrightsquigarrow",!0),o9(se,"ams","rel","⇉","\\rightrightarrows",!0),o9(se,"ams","rel","⇄","\\rightleftarrows",!0),o9(se,"ams","rel","↠","\\twoheadrightarrow",!0),o9(se,"ams","rel","↣","\\rightarrowtail",!0),o9(se,"ams","rel","↬","\\looparrowright",!0),o9(se,"ams","rel","↷","\\curvearrowright",!0),o9(se,"ams","rel","↻","\\circlearrowright",!0),o9(se,"ams","rel","↱","\\Rsh",!0),o9(se,"ams","rel","⇊","\\downdownarrows",!0),o9(se,"ams","rel","↾","\\upharpoonright",!0),o9(se,"ams","rel","⇂","\\downharpoonright",!0),o9(se,"ams","rel","⇝","\\rightsquigarrow",!0),o9(se,"ams","rel","⇝","\\leadsto"),o9(se,"ams","rel","⇛","\\Rrightarrow",!0),o9(se,"ams","rel","↾","\\restriction"),o9(se,sn,sh,"‘","`"),o9(se,sn,sh,"$","\\$"),o9(st,sn,sh,"$","\\$"),o9(st,sn,sh,"$","\\textdollar"),o9(se,sn,sh,"%","\\%"),o9(st,sn,sh,"%","\\%"),o9(se,sn,sh,"_","\\_"),o9(st,sn,sh,"_","\\_"),o9(st,sn,sh,"_","\\textunderscore"),o9(se,sn,sh,"∠","\\angle",!0),o9(se,sn,sh,"∞","\\infty",!0),o9(se,sn,sh,"′","\\prime"),o9(se,sn,sh,"△","\\triangle"),o9(se,sn,sh,"Γ","\\Gamma",!0),o9(se,sn,sh,"Δ","\\Delta",!0),o9(se,sn,sh,"Θ","\\Theta",!0),o9(se,sn,sh,"Λ","\\Lambda",!0),o9(se,sn,sh,"Ξ","\\Xi",!0),o9(se,sn,sh,"Π","\\Pi",!0),o9(se,sn,sh,"Σ","\\Sigma",!0),o9(se,sn,sh,"Υ","\\Upsilon",!0),o9(se,sn,sh,"Φ","\\Phi",!0),o9(se,sn,sh,"Ψ","\\Psi",!0),o9(se,sn,sh,"Ω","\\Omega",!0),o9(se,sn,sh,"A","Α"),o9(se,sn,sh,"B","Β"),o9(se,sn,sh,"E","Ε"),o9(se,sn,sh,"Z","Ζ"),o9(se,sn,sh,"H","Η"),o9(se,sn,sh,"I","Ι"),o9(se,sn,sh,"K","Κ"),o9(se,sn,sh,"M","Μ"),o9(se,sn,sh,"N","Ν"),o9(se,sn,sh,"O","Ο"),o9(se,sn,sh,"P","Ρ"),o9(se,sn,sh,"T","Τ"),o9(se,sn,sh,"X","Χ"),o9(se,sn,sh,"¬","\\neg",!0),o9(se,sn,sh,"¬","\\lnot"),o9(se,sn,sh,"⊤","\\top"),o9(se,sn,sh,"⊥","\\bot"),o9(se,sn,sh,"∅","\\emptyset"),o9(se,"ams",sh,"∅","\\varnothing"),o9(se,sn,so,"α","\\alpha",!0),o9(se,sn,so,"β","\\beta",!0),o9(se,sn,so,"γ","\\gamma",!0),o9(se,sn,so,"δ","\\delta",!0),o9(se,sn,so,"ϵ","\\epsilon",!0),o9(se,sn,so,"ζ","\\zeta",!0),o9(se,sn,so,"η","\\eta",!0),o9(se,sn,so,"θ","\\theta",!0),o9(se,sn,so,"ι","\\iota",!0),o9(se,sn,so,"κ","\\kappa",!0),o9(se,sn,so,"λ","\\lambda",!0),o9(se,sn,so,"μ","\\mu",!0),o9(se,sn,so,"ν","\\nu",!0),o9(se,sn,so,"ξ","\\xi",!0),o9(se,sn,so,"ο","\\omicron",!0),o9(se,sn,so,"π","\\pi",!0),o9(se,sn,so,"ρ","\\rho",!0),o9(se,sn,so,"σ","\\sigma",!0),o9(se,sn,so,"τ","\\tau",!0),o9(se,sn,so,"υ","\\upsilon",!0),o9(se,sn,so,"ϕ","\\phi",!0),o9(se,sn,so,"χ","\\chi",!0),o9(se,sn,so,"ψ","\\psi",!0),o9(se,sn,so,"ω","\\omega",!0),o9(se,sn,so,"ε","\\varepsilon",!0),o9(se,sn,so,"ϑ","\\vartheta",!0),o9(se,sn,so,"ϖ","\\varpi",!0),o9(se,sn,so,"ϱ","\\varrho",!0),o9(se,sn,so,"ς","\\varsigma",!0),o9(se,sn,so,"φ","\\varphi",!0),o9(se,sn,"bin","∗","*",!0),o9(se,sn,"bin","+","+"),o9(se,sn,"bin","−","-",!0),o9(se,sn,"bin","⋅","\\cdot",!0),o9(se,sn,"bin","∘","\\circ",!0),o9(se,sn,"bin","÷","\\div",!0),o9(se,sn,"bin","±","\\pm",!0),o9(se,sn,"bin","×","\\times",!0),o9(se,sn,"bin","∩","\\cap",!0),o9(se,sn,"bin","∪","\\cup",!0),o9(se,sn,"bin","∖","\\setminus",!0),o9(se,sn,"bin","∧","\\land"),o9(se,sn,"bin","∨","\\lor"),o9(se,sn,"bin","∧","\\wedge",!0),o9(se,sn,"bin","∨","\\vee",!0),o9(se,sn,sh,"√","\\surd"),o9(se,sn,sl,"⟨","\\langle",!0),o9(se,sn,sl,"∣","\\lvert"),o9(se,sn,sl,"∥","\\lVert"),o9(se,sn,si,"?","?"),o9(se,sn,si,"!","!"),o9(se,sn,si,"⟩","\\rangle",!0),o9(se,sn,si,"∣","\\rvert"),o9(se,sn,si,"∥","\\rVert"),o9(se,sn,"rel","=","="),o9(se,sn,"rel",":",":"),o9(se,sn,"rel","≈","\\approx",!0),o9(se,sn,"rel","≅","\\cong",!0),o9(se,sn,"rel","≥","\\ge"),o9(se,sn,"rel","≥","\\geq",!0),o9(se,sn,"rel","←","\\gets"),o9(se,sn,"rel",">","\\gt",!0),o9(se,sn,"rel","∈","\\in",!0),o9(se,sn,"rel","","\\@not"),o9(se,sn,"rel","⊂","\\subset",!0),o9(se,sn,"rel","⊃","\\supset",!0),o9(se,sn,"rel","⊆","\\subseteq",!0),o9(se,sn,"rel","⊇","\\supseteq",!0),o9(se,"ams","rel","⊈","\\nsubseteq",!0),o9(se,"ams","rel","⊉","\\nsupseteq",!0),o9(se,sn,"rel","⊨","\\models"),o9(se,sn,"rel","←","\\leftarrow",!0),o9(se,sn,"rel","≤","\\le"),o9(se,sn,"rel","≤","\\leq",!0),o9(se,sn,"rel","<","\\lt",!0),o9(se,sn,"rel","→","\\rightarrow",!0),o9(se,sn,"rel","→","\\to"),o9(se,"ams","rel","≱","\\ngeq",!0),o9(se,"ams","rel","≰","\\nleq",!0),o9(se,sn,su," ","\\ "),o9(se,sn,su," ","\\space"),o9(se,sn,su," ","\\nobreakspace"),o9(st,sn,su," ","\\ "),o9(st,sn,su," "," "),o9(st,sn,su," ","\\space"),o9(st,sn,su," ","\\nobreakspace"),o9(se,sn,su,null,"\\nobreak"),o9(se,sn,su,null,"\\allowbreak"),o9(se,sn,sc,",",","),o9(se,sn,sc,";",";"),o9(se,"ams","bin","⊼","\\barwedge",!0),o9(se,"ams","bin","⊻","\\veebar",!0),o9(se,sn,"bin","⊙","\\odot",!0),o9(se,sn,"bin","⊕","\\oplus",!0),o9(se,sn,"bin","⊗","\\otimes",!0),o9(se,sn,sh,"∂","\\partial",!0),o9(se,sn,"bin","⊘","\\oslash",!0),o9(se,"ams","bin","⊚","\\circledcirc",!0),o9(se,"ams","bin","⊡","\\boxdot",!0),o9(se,sn,"bin","△","\\bigtriangleup"),o9(se,sn,"bin","▽","\\bigtriangledown"),o9(se,sn,"bin","†","\\dagger"),o9(se,sn,"bin","⋄","\\diamond"),o9(se,sn,"bin","⋆","\\star"),o9(se,sn,"bin","◃","\\triangleleft"),o9(se,sn,"bin","▹","\\triangleright"),o9(se,sn,sl,"{","\\{"),o9(st,sn,sh,"{","\\{"),o9(st,sn,sh,"{","\\textbraceleft"),o9(se,sn,si,"}","\\}"),o9(st,sn,sh,"}","\\}"),o9(st,sn,sh,"}","\\textbraceright"),o9(se,sn,sl,"{","\\lbrace"),o9(se,sn,si,"}","\\rbrace"),o9(se,sn,sl,"[","\\lbrack",!0),o9(st,sn,sh,"[","\\lbrack",!0),o9(se,sn,si,"]","\\rbrack",!0),o9(st,sn,sh,"]","\\rbrack",!0),o9(se,sn,sl,"(","\\lparen",!0),o9(se,sn,si,")","\\rparen",!0),o9(st,sn,sh,"<","\\textless",!0),o9(st,sn,sh,">","\\textgreater",!0),o9(se,sn,sl,"⌊","\\lfloor",!0),o9(se,sn,si,"⌋","\\rfloor",!0),o9(se,sn,sl,"⌈","\\lceil",!0),o9(se,sn,si,"⌉","\\rceil",!0),o9(se,sn,sh,"\\","\\backslash"),o9(se,sn,sh,"∣","|"),o9(se,sn,sh,"∣","\\vert"),o9(st,sn,sh,"|","\\textbar",!0),o9(se,sn,sh,"∥","\\|"),o9(se,sn,sh,"∥","\\Vert"),o9(st,sn,sh,"∥","\\textbardbl"),o9(st,sn,sh,"~","\\textasciitilde"),o9(st,sn,sh,"\\","\\textbackslash"),o9(st,sn,sh,"^","\\textasciicircum"),o9(se,sn,"rel","↑","\\uparrow",!0),o9(se,sn,"rel","⇑","\\Uparrow",!0),o9(se,sn,"rel","↓","\\downarrow",!0),o9(se,sn,"rel","⇓","\\Downarrow",!0),o9(se,sn,"rel","↕","\\updownarrow",!0),o9(se,sn,"rel","⇕","\\Updownarrow",!0),o9(se,sn,ss,"∐","\\coprod"),o9(se,sn,ss,"⋁","\\bigvee"),o9(se,sn,ss,"⋀","\\bigwedge"),o9(se,sn,ss,"⨄","\\biguplus"),o9(se,sn,ss,"⋂","\\bigcap"),o9(se,sn,ss,"⋃","\\bigcup"),o9(se,sn,ss,"∫","\\int"),o9(se,sn,ss,"∫","\\intop"),o9(se,sn,ss,"∬","\\iint"),o9(se,sn,ss,"∭","\\iiint"),o9(se,sn,ss,"∏","\\prod"),o9(se,sn,ss,"∑","\\sum"),o9(se,sn,ss,"⨂","\\bigotimes"),o9(se,sn,ss,"⨁","\\bigoplus"),o9(se,sn,ss,"⨀","\\bigodot"),o9(se,sn,ss,"∮","\\oint"),o9(se,sn,ss,"∯","\\oiint"),o9(se,sn,ss,"∰","\\oiiint"),o9(se,sn,ss,"⨆","\\bigsqcup"),o9(se,sn,ss,"∫","\\smallint"),o9(st,sn,sa,"…","\\textellipsis"),o9(se,sn,sa,"…","\\mathellipsis"),o9(st,sn,sa,"…","\\ldots",!0),o9(se,sn,sa,"…","\\ldots",!0),o9(se,sn,sa,"⋯","\\@cdots",!0),o9(se,sn,sa,"⋱","\\ddots",!0),o9(se,sn,sh,"⋮","\\varvdots"),o9(st,sn,sh,"⋮","\\varvdots"),o9(se,sn,sr,"ˊ","\\acute"),o9(se,sn,sr,"ˋ","\\grave"),o9(se,sn,sr,"¨","\\ddot"),o9(se,sn,sr,"~","\\tilde"),o9(se,sn,sr,"ˉ","\\bar"),o9(se,sn,sr,"˘","\\breve"),o9(se,sn,sr,"ˇ","\\check"),o9(se,sn,sr,"^","\\hat"),o9(se,sn,sr,"⃗","\\vec"),o9(se,sn,sr,"˙","\\dot"),o9(se,sn,sr,"˚","\\mathring"),o9(se,sn,so,"","\\@imath"),o9(se,sn,so,"","\\@jmath"),o9(se,sn,sh,"ı","ı"),o9(se,sn,sh,"ȷ","ȷ"),o9(st,sn,sh,"ı","\\i",!0),o9(st,sn,sh,"ȷ","\\j",!0),o9(st,sn,sh,"ß","\\ss",!0),o9(st,sn,sh,"æ","\\ae",!0),o9(st,sn,sh,"œ","\\oe",!0),o9(st,sn,sh,"ø","\\o",!0),o9(st,sn,sh,"Æ","\\AE",!0),o9(st,sn,sh,"Œ","\\OE",!0),o9(st,sn,sh,"Ø","\\O",!0),o9(st,sn,sr,"ˊ","\\'"),o9(st,sn,sr,"ˋ","\\`"),o9(st,sn,sr,"ˆ","\\^"),o9(st,sn,sr,"˜","\\~"),o9(st,sn,sr,"ˉ","\\="),o9(st,sn,sr,"˘","\\u"),o9(st,sn,sr,"˙","\\."),o9(st,sn,sr,"¸","\\c"),o9(st,sn,sr,"˚","\\r"),o9(st,sn,sr,"ˇ","\\v"),o9(st,sn,sr,"¨",'\\"'),o9(st,sn,sr,"˝","\\H"),o9(st,sn,sr,"◯","\\textcircled");var sp={"--":!0,"---":!0,"``":!0,"''":!0};o9(st,sn,sh,"–","--",!0),o9(st,sn,sh,"–","\\textendash"),o9(st,sn,sh,"—","---",!0),o9(st,sn,sh,"—","\\textemdash"),o9(st,sn,sh,"‘","`",!0),o9(st,sn,sh,"‘","\\textquoteleft"),o9(st,sn,sh,"’","'",!0),o9(st,sn,sh,"’","\\textquoteright"),o9(st,sn,sh,"“","``",!0),o9(st,sn,sh,"“","\\textquotedblleft"),o9(st,sn,sh,"”","''",!0),o9(st,sn,sh,"”","\\textquotedblright"),o9(se,sn,sh,"°","\\degree",!0),o9(st,sn,sh,"°","\\degree"),o9(st,sn,sh,"°","\\textdegree",!0),o9(se,sn,sh,"£","\\pounds"),o9(se,sn,sh,"£","\\mathsterling",!0),o9(st,sn,sh,"£","\\pounds"),o9(st,sn,sh,"£","\\textsterling",!0),o9(se,"ams",sh,"✠","\\maltese"),o9(st,"ams",sh,"✠","\\maltese");for(var sd='0123456789/@."',sm=0;sm<sd.length;sm++){var sf=sd.charAt(sm);o9(se,sn,sh,sf,sf)}for(var sg='0123456789!@*()-=+";:?/.,',sy=0;sy<sg.length;sy++){var sb=sg.charAt(sy);o9(st,sn,sh,sb,sb)}for(var sv="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",sx=0;sx<sv.length;sx++){var sk=sv.charAt(sx);o9(se,sn,so,sk,sk),o9(st,sn,sh,sk,sk)}o9(se,"ams",sh,"C","ℂ"),o9(st,"ams",sh,"C","ℂ"),o9(se,"ams",sh,"H","ℍ"),o9(st,"ams",sh,"H","ℍ"),o9(se,"ams",sh,"N","ℕ"),o9(st,"ams",sh,"N","ℕ"),o9(se,"ams",sh,"P","ℙ"),o9(st,"ams",sh,"P","ℙ"),o9(se,"ams",sh,"Q","ℚ"),o9(st,"ams",sh,"Q","ℚ"),o9(se,"ams",sh,"R","ℝ"),o9(st,"ams",sh,"R","ℝ"),o9(se,"ams",sh,"Z","ℤ"),o9(st,"ams",sh,"Z","ℤ"),o9(se,sn,so,"h","ℎ"),o9(st,sn,so,"h","ℎ");for(var sw="",sS=0;sS<sv.length;sS++){var sA=sv.charAt(sS);o9(se,sn,so,sA,sw=String.fromCharCode(55349,56320+sS)),o9(st,sn,sh,sA,sw),o9(se,sn,so,sA,sw=String.fromCharCode(55349,56372+sS)),o9(st,sn,sh,sA,sw),o9(se,sn,so,sA,sw=String.fromCharCode(55349,56424+sS)),o9(st,sn,sh,sA,sw),o9(se,sn,so,sA,sw=String.fromCharCode(55349,56580+sS)),o9(st,sn,sh,sA,sw),o9(se,sn,so,sA,sw=String.fromCharCode(55349,56684+sS)),o9(st,sn,sh,sA,sw),o9(se,sn,so,sA,sw=String.fromCharCode(55349,56736+sS)),o9(st,sn,sh,sA,sw),o9(se,sn,so,sA,sw=String.fromCharCode(55349,56788+sS)),o9(st,sn,sh,sA,sw),o9(se,sn,so,sA,sw=String.fromCharCode(55349,56840+sS)),o9(st,sn,sh,sA,sw),o9(se,sn,so,sA,sw=String.fromCharCode(55349,56944+sS)),o9(st,sn,sh,sA,sw),sS<26&&(o9(se,sn,so,sA,sw=String.fromCharCode(55349,56632+sS)),o9(st,sn,sh,sA,sw),o9(se,sn,so,sA,sw=String.fromCharCode(55349,56476+sS)),o9(st,sn,sh,sA,sw))}o9(se,sn,so,"k",sw=String.fromCharCode(55349,56668)),o9(st,sn,sh,"k",sw);for(var sC=0;sC<10;sC++){var sT=sC.toString();o9(se,sn,so,sT,sw=String.fromCharCode(55349,57294+sC)),o9(st,sn,sh,sT,sw),o9(se,sn,so,sT,sw=String.fromCharCode(55349,57314+sC)),o9(st,sn,sh,sT,sw),o9(se,sn,so,sT,sw=String.fromCharCode(55349,57324+sC)),o9(st,sn,sh,sT,sw),o9(se,sn,so,sT,sw=String.fromCharCode(55349,57334+sC)),o9(st,sn,sh,sT,sw)}for(var s_="ÐÞþ",sM=0;sM<s_.length;sM++){var sN=s_.charAt(sM);o9(se,sn,so,sN,sN),o9(st,sn,sh,sN,sN)}var sE=[["mathbf","textbf","Main-Bold"],["mathbf","textbf","Main-Bold"],["mathnormal","textit","Math-Italic"],["mathnormal","textit","Math-Italic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["mathscr","textscr","Script-Regular"],["","",""],["","",""],["","",""],["mathfrak","textfrak","Fraktur-Regular"],["mathfrak","textfrak","Fraktur-Regular"],["mathbb","textbb","AMS-Regular"],["mathbb","textbb","AMS-Regular"],["mathboldfrak","textboldfrak","Fraktur-Regular"],["mathboldfrak","textboldfrak","Fraktur-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathitsf","textitsf","SansSerif-Italic"],["mathitsf","textitsf","SansSerif-Italic"],["","",""],["","",""],["mathtt","texttt","Typewriter-Regular"],["mathtt","texttt","Typewriter-Regular"]],sz=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]],sI=function(e,t,n){if(o8[n][e]){var r=o8[n][e].replace;r&&(e=r)}return{value:e,metrics:o6(e,t,n)}},sR=function(e,t,n,r,i){var a,o=sI(e,t,n),s=o.metrics;if(e=o.value,s){var l=s.italic;("text"===n||r&&"mathit"===r.font)&&(l=0),a=new oZ(e,s.height,s.depth,l,s.skew,s.width,i)}else"undefined"!=typeof console&&console.warn("No character metrics "+("for '"+e+"' in style '"+t+"' and mode '")+n+"'"),a=new oZ(e,0,0,0,0,0,i);if(r){a.maxFontSize=r.sizeMultiplier,r.style.isTight()&&a.classes.push("mtight");var c=r.getColor();c&&(a.style.color=c)}return a},sj=function(e,t,n,r){return(void 0===r&&(r=[]),"boldsymbol"===n.font&&sI(e,"Main-Bold",t).metrics)?sR(e,"Main-Bold",t,n,r.concat(["mathbf"])):"\\"===e||"main"===o8[t][e].font?sR(e,"Main-Regular",t,n,r):sR(e,"AMS-Regular",t,n,r.concat(["amsrm"]))},sL=function(e,t,n){var r=e.mode,i=e.text,a=["mord"],o="math"===r||"text"===r&&t.font,s=o?t.font:t.fontFamily,l="",c="";if(55349===i.charCodeAt(0)&&([l,c]=((e,t)=>{var n=(e.charCodeAt(0)-55296)*1024+(e.charCodeAt(1)-56320)+65536,r=+("math"!==t);if(119808<=n&&n<120484){var i=Math.floor((n-119808)/26);return[sE[i][2],sE[i][r]]}if(120782<=n&&n<=120831){var a=Math.floor((n-120782)/10);return[sz[a][2],sz[a][r]]}if(120485===n||120486===n)return[sE[0][2],sE[0][r]];if(120486<n&&n<120782)return["",""];throw new oc("Unsupported character: "+e)})(i,r)),l.length>0)return sR(i,l,r,t,a.concat(c));if(s){if("boldsymbol"===s){var u,h,p="textord"!==n&&sI(i,"Math-BoldItalic",r).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"};u=p.fontName,h=[p.fontClass]}else o?(u=sY[s].fontName,h=[s]):(u=sX(s,t.fontWeight,t.fontShape),h=[s,t.fontWeight,t.fontShape]);if(sI(i,u,r).metrics)return sR(i,u,r,t,a.concat(h));if(sp.hasOwnProperty(i)&&"Typewriter"===u.slice(0,10)){for(var d=[],m=0;m<i.length;m++)d.push(sR(i[m],u,r,t,a.concat(h)));return sU(d)}}if("mathord"===n)return sR(i,"Math-Italic",r,t,a.concat(["mathnormal"]));if("textord"===n){var f=o8[r][i]&&o8[r][i].font;if("ams"===f)return sR(i,sX("amsrm",t.fontWeight,t.fontShape),r,t,a.concat("amsrm",t.fontWeight,t.fontShape));if("main"===f||!f)return sR(i,sX("textrm",t.fontWeight,t.fontShape),r,t,a.concat(t.fontWeight,t.fontShape));var g=sX(f,t.fontWeight,t.fontShape);return sR(i,g,r,t,a.concat(g,t.fontWeight,t.fontShape))}throw Error("unexpected type: "+n+" in makeOrd")},sP=(e,t)=>{if(oH(e.classes)!==oH(t.classes)||e.skew!==t.skew||e.maxFontSize!==t.maxFontSize||0!==e.italic&&e.hasClass("mathnormal"))return!1;if(1===e.classes.length){var n=e.classes[0];if("mbin"===n||"mord"===n)return!1}for(var r of Object.keys(e.style))if(e.style[r]!==t.style[r])return!1;for(var i of Object.keys(t.style))if(e.style[i]!==t.style[i])return!1;return!0},sB=e=>{for(var t=0;t<e.length-1;t++){var n=e[t],r=e[t+1];n instanceof oZ&&r instanceof oZ&&sP(n,r)&&(n.text+=r.text,n.height=Math.max(n.height,r.height),n.depth=Math.max(n.depth,r.depth),n.italic=r.italic,e.splice(t+1,1),t--)}return e},sO=function(e){for(var t=0,n=0,r=0,i=0;i<e.children.length;i++){var a=e.children[i];a.height>t&&(t=a.height),a.depth>n&&(n=a.depth),a.maxFontSize>r&&(r=a.maxFontSize)}e.height=t,e.depth=n,e.maxFontSize=r},sD=function(e,t,n,r){var i=new o$(e,t,n,r);return sO(i),i},sF=(e,t,n,r)=>new o$(e,t,n,r),sq=function(e,t,n){var r=sD([e],[],t);return r.height=Math.max(n||t.fontMetrics().defaultRuleThickness,t.minRuleThickness),r.style.borderBottomWidth=oq(r.height),r.maxFontSize=1,r},sH=function(e,t,n,r){var i=new oX(e,t,n,r);return sO(i),i},sU=function(e){var t=new oP(e);return sO(t),t},sG=function(e,t){return e instanceof oP?sD([],[e],t):e},sW=function(e){if("individualShift"===e.positionType){for(var t,n=e.children,r=[n[0]],i=-n[0].shift-n[0].elem.depth,a=i,o=1;o<n.length;o++){var s=-n[o].shift-a-n[o].elem.depth,l=s-(n[o-1].elem.height+n[o-1].elem.depth);a+=s,r.push({type:"kern",size:l}),r.push(n[o])}return{children:r,depth:i}}if("top"===e.positionType){for(var c=e.positionData,u=0;u<e.children.length;u++){var h=e.children[u];c-="kern"===h.type?h.size:h.elem.height+h.elem.depth}t=c}else if("bottom"===e.positionType)t=-e.positionData;else{var p=e.children[0];if("elem"!==p.type)throw Error('First child must have type "elem".');if("shift"===e.positionType)t=-p.elem.depth-e.positionData;else if("firstBaseline"===e.positionType)t=-p.elem.depth;else throw Error("Invalid positionType "+e.positionType+".")}return{children:e.children,depth:t}},sV=function(e,t){for(var n,{children:r,depth:i}=sW(e),a=0,o=0;o<r.length;o++){var s=r[o];if("elem"===s.type){var l=s.elem;a=Math.max(a,l.maxFontSize,l.height)}}a+=2;var c=sD(["pstrut"],[]);c.style.height=oq(a);for(var u=[],h=i,p=i,d=i,m=0;m<r.length;m++){var f=r[m];if("kern"===f.type)d+=f.size;else{var g=f.elem,y=sD(f.wrapperClasses||[],[c,g],void 0,f.wrapperStyle||{});y.style.top=oq(-a-d-g.depth),f.marginLeft&&(y.style.marginLeft=f.marginLeft),f.marginRight&&(y.style.marginRight=f.marginRight),u.push(y),d+=g.height+g.depth}h=Math.min(h,d),p=Math.max(p,d)}var b=sD(["vlist"],u);if(b.style.height=oq(p),h<0){var v=sD([],[]),x=sD(["vlist"],[v]);x.style.height=oq(-h);var k=sD(["vlist-s"],[new oZ("")]);n=[sD(["vlist-r"],[b,k]),sD(["vlist-r"],[x])]}else n=[sD(["vlist-r"],[b])];var w=sD(["vlist-t"],n);return 2===n.length&&w.classes.push("vlist-t2"),w.height=p,w.depth=-h,w},s$=(e,t)=>{var n=sD(["mspace"],[],t),r=oF(e,t);return n.style.marginRight=oq(r),n},sX=function(e,t,n){var r="";switch(e){case"amsrm":r="AMS";break;case"textrm":r="Main";break;case"textsf":r="SansSerif";break;case"texttt":r="Typewriter";break;default:r=e}return r+"-"+("textbf"===t&&"textit"===n?"BoldItalic":"textbf"===t?"Bold":"textit"===t?"Italic":"Regular")},sY={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathnormal:{variant:"italic",fontName:"Math-Italic"},mathsfit:{variant:"sans-serif-italic",fontName:"SansSerif-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},sJ={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},sZ=function(e,t){var[n,r,i]=sJ[e],a=sF(["overlay"],[new oK([new oQ(n)],{width:oq(r),height:oq(i),style:"width:"+oq(r),viewBox:"0 0 "+1e3*r+" "+1e3*i,preserveAspectRatio:"xMinYMin"})],t);return a.height=i,a.style.height=oq(i),a.style.width=oq(r),a},sK={number:3,unit:"mu"},sQ={number:4,unit:"mu"},s0={number:5,unit:"mu"},s1={mord:{mop:sK,mbin:sQ,mrel:s0,minner:sK},mop:{mord:sK,mop:sK,mrel:s0,minner:sK},mbin:{mord:sQ,mop:sQ,mopen:sQ,minner:sQ},mrel:{mord:s0,mop:s0,mopen:s0,minner:s0},mopen:{},mclose:{mop:sK,mbin:sQ,mrel:s0,minner:sK},mpunct:{mord:sK,mop:sK,mrel:s0,mopen:sK,mclose:sK,mpunct:sK,minner:sK},minner:{mord:sK,mop:sK,mbin:sQ,mrel:s0,mopen:sK,mpunct:sK,minner:sK}},s4={mord:{mop:sK},mop:{mord:sK,mop:sK},mbin:{},mrel:{},mopen:{},mclose:{mop:sK},mpunct:{},minner:{mop:sK}},s5={},s6={},s3={};function s2(e){for(var{type:t,names:n,props:r,handler:i,htmlBuilder:a,mathmlBuilder:o}=e,s={type:t,numArgs:r.numArgs,argTypes:r.argTypes,allowedInArgument:!!r.allowedInArgument,allowedInText:!!r.allowedInText,allowedInMath:void 0===r.allowedInMath||r.allowedInMath,numOptionalArgs:r.numOptionalArgs||0,infix:!!r.infix,primitive:!!r.primitive,handler:i},l=0;l<n.length;++l)s5[n[l]]=s;t&&(a&&(s6[t]=a),o&&(s3[t]=o))}function s7(e){var{type:t,htmlBuilder:n,mathmlBuilder:r}=e;s2({type:t,names:[],props:{numArgs:0},handler(){throw Error("Should never be called.")},htmlBuilder:n,mathmlBuilder:r})}var s8=function(e){return"ordgroup"===e.type&&1===e.body.length?e.body[0]:e},s9=function(e){return"ordgroup"===e.type?e.body:[e]},le=new Set(["leftmost","mbin","mopen","mrel","mop","mpunct"]),lt=new Set(["rightmost","mrel","mclose","mpunct"]),ln={display:oM.DISPLAY,text:oM.TEXT,script:oM.SCRIPT,scriptscript:oM.SCRIPTSCRIPT},lr={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},li=function(e,t,n,r){void 0===r&&(r=[null,null]);for(var i=[],a=0;a<e.length;a++){var o=lu(e[a],t);if(o instanceof oP){var s=o.children;i.push(...s)}else i.push(o)}if(sB(i),!n)return i;var l=t;if(1===e.length){var c=e[0];"sizing"===c.type?l=t.havingSize(c.size):"styling"===c.type&&(l=t.havingStyle(ln[c.style]))}var u=sD([r[0]||"leftmost"],[],t),h=sD([r[1]||"rightmost"],[],t),p="root"===n;return la(i,(e,t)=>{var n=t.classes[0],r=e.classes[0];"mbin"===n&<.has(r)?t.classes[0]="mord":"mbin"===r&&le.has(n)&&(e.classes[0]="mord")},{node:u},h,p),la(i,(e,t)=>{var n,r,i=ll(t),a=ll(e),o=i&&a?e.hasClass("mtight")?null==(n=s4[i])?void 0:n[a]:null==(r=s1[i])?void 0:r[a]:null;if(o)return s$(o,l)},{node:u},h,p),i},la=function(e,t,n,r,i){r&&e.push(r);for(var a=0;a<e.length;a++){let r;var o=e[a],s=lo(o);if(s){la(s.children,t,n,null,i);continue}var l=!o.hasClass("mspace");if(l){var c=t(o,n.node);c&&(n.insertAfter?n.insertAfter(c):(e.unshift(c),a++))}l?n.node=o:i&&o.hasClass("newline")&&(n.node=sD(["leftmost"])),r=a,n.insertAfter=t=>{e.splice(r+1,0,t),a++}}r&&e.pop()},lo=function(e){return e instanceof oP||e instanceof oX||e instanceof o$&&e.hasClass("enclosing")?e:null},ls=function(e,t){var n=lo(e);if(n){var r=n.children;if(r.length){if("right"===t)return ls(r[r.length-1],"right");else if("left"===t)return ls(r[0],"left")}}return e},ll=function(e,t){return e?(t&&(e=ls(e,t)),lr[e.classes[0]]||null):null},lc=function(e,t){var n=["nulldelimiter"].concat(e.baseSizingClasses());return sD(t.concat(n))},lu=function(e,t,n){if(!e)return sD();if(s6[e.type]){var r=s6[e.type](e,t);if(n&&t.size!==n.size){r=sD(t.sizingClasses(n),[r],t);var i=t.sizeMultiplier/n.sizeMultiplier;r.height*=i,r.depth*=i}return r}throw new oc("Got group of unknown type: '"+e.type+"'")};function lh(e,t){var n=sD(["base"],e,t),r=sD(["strut"]);return r.style.height=oq(n.height+n.depth),n.depth&&(r.style.verticalAlign=oq(-n.depth)),n.children.unshift(r),n}function lp(e,t){var n,r,i=null;1===e.length&&"tag"===e[0].type&&(i=e[0].tag,e=e[0].body);var a=li(e,t,"root");2===a.length&&a[1].hasClass("tag")&&(n=a.pop());for(var o=[],s=[],l=0;l<a.length;l++)if(s.push(a[l]),a[l].hasClass("mbin")||a[l].hasClass("mrel")||a[l].hasClass("allowbreak")){for(var c=!1;l<a.length-1&&a[l+1].hasClass("mspace")&&!a[l+1].hasClass("newline");)l++,s.push(a[l]),a[l].hasClass("nobreak")&&(c=!0);c||(o.push(lh(s,t)),s=[])}else a[l].hasClass("newline")&&(s.pop(),s.length>0&&(o.push(lh(s,t)),s=[]),o.push(a[l]));s.length>0&&o.push(lh(s,t)),i?((r=lh(li(i,t,!0),t)).classes=["tag"],o.push(r)):n&&o.push(n);var u=sD(["katex-html"],o);if(u.setAttribute("aria-hidden","true"),r){var h=r.children[0];h.style.height=oq(u.height+u.depth),u.depth&&(h.style.verticalAlign=oq(-u.depth))}return u}class ld{setAttribute(e,t){this.attributes[e]=t}getAttribute(e){return this.attributes[e]}toNode(){var e=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);this.classes.length>0&&(e.className=oH(this.classes));for(var n=0;n<this.children.length;n++)if(this.children[n]instanceof lm&&this.children[n+1]instanceof lm){for(var r=this.children[n].toText()+this.children[++n].toText();this.children[n+1]instanceof lm;)r+=this.children[++n].toText();e.appendChild(new lm(r).toNode())}else e.appendChild(this.children[n].toNode());return e}toMarkup(){var e="<"+this.type;for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&(e+=" "+t+'="',e+=om(this.attributes[t]),e+='"');this.classes.length>0&&(e+=' class ="'+om(oH(this.classes))+'"'),e+=">";for(var n=0;n<this.children.length;n++)e+=this.children[n].toMarkup();return e+("</"+this.type+">")}toText(){return this.children.map(e=>e.toText()).join("")}constructor(e,t,n){this.type=e,this.attributes={},this.children=t||[],this.classes=n||[]}}class lm{toNode(){return document.createTextNode(this.text)}toMarkup(){return om(this.toText())}toText(){return this.text}constructor(e){this.text=e}}class lf{toNode(){if(this.character)return document.createTextNode(this.character);var e=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return e.setAttribute("width",oq(this.width)),e}toMarkup(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+oq(this.width)+'"/>'}toText(){return this.character?this.character:" "}constructor(e){this.width=e,e>=.05555&&e<=.05556?this.character=" ":e>=.1666&&e<=.1667?this.character=" ":e>=.2222&&e<=.2223?this.character=" ":e>=.2777&&e<=.2778?this.character=" ":e>=-.05556&&e<=-.05555?this.character=" ":e>=-.1667&&e<=-.1666?this.character=" ":e>=-.2223&&e<=-.2222?this.character=" ":e>=-.2778&&e<=-.2777?this.character=" ":this.character=null}}var lg=new Set(["\\imath","\\jmath"]),ly=new Set(["mrow","mtable"]),lb=function(e,t,n){return o8[t][e]&&o8[t][e].replace&&55349!==e.charCodeAt(0)&&!(sp.hasOwnProperty(e)&&n&&(n.fontFamily&&"tt"===n.fontFamily.slice(4,6)||n.font&&"tt"===n.font.slice(4,6)))&&(e=o8[t][e].replace),new lm(e)},lv=function(e){return 1===e.length?e[0]:new ld("mrow",e)},lx=function(e,t){if("texttt"===t.fontFamily)return"monospace";if("textsf"===t.fontFamily)if("textit"===t.fontShape&&"textbf"===t.fontWeight)return"sans-serif-bold-italic";else if("textit"===t.fontShape)return"sans-serif-italic";else if("textbf"===t.fontWeight)return"bold-sans-serif";else return"sans-serif";if("textit"===t.fontShape&&"textbf"===t.fontWeight)return"bold-italic";if("textit"===t.fontShape)return"italic";if("textbf"===t.fontWeight)return"bold";var n=t.font;if(!n||"mathnormal"===n)return null;var r=e.mode;if("mathit"===n)return"italic";if("boldsymbol"===n)return"textord"===e.type?"bold":"bold-italic";if("mathbf"===n)return"bold";if("mathbb"===n)return"double-struck";if("mathsfit"===n)return"sans-serif-italic";else if("mathfrak"===n)return"fraktur";else if("mathscr"===n||"mathcal"===n)return"script";else if("mathsf"===n)return"sans-serif";else if("mathtt"===n)return"monospace";var i=e.text;if(lg.has(i))return null;if(o8[r][i]){var a=o8[r][i].replace;a&&(i=a)}return o6(i,sY[n].fontName,r)?sY[n].variant:null};function lk(e){if(!e)return!1;if("mi"===e.type&&1===e.children.length){var t=e.children[0];return t instanceof lm&&"."===t.text}if("mo"!==e.type||1!==e.children.length||"true"!==e.getAttribute("separator")||"0em"!==e.getAttribute("lspace")||"0em"!==e.getAttribute("rspace"))return!1;var n=e.children[0];return n instanceof lm&&","===n.text}var lw=function(e,t,n){if(1===e.length){var r,i=lA(e[0],t);return n&&i instanceof ld&&"mo"===i.type&&(i.setAttribute("lspace","0em"),i.setAttribute("rspace","0em")),[i]}for(var a=[],o=0;o<e.length;o++){var s=lA(e[o],t);if(s instanceof ld&&r instanceof ld){if("mtext"===s.type&&"mtext"===r.type&&s.getAttribute("mathvariant")===r.getAttribute("mathvariant")){r.children.push(...s.children);continue}else if("mn"===s.type&&"mn"===r.type){r.children.push(...s.children);continue}else if(lk(s)&&"mn"===r.type){r.children.push(...s.children);continue}else if("mn"===s.type&&lk(r))s.children=[...r.children,...s.children],a.pop();else if(("msup"===s.type||"msub"===s.type)&&s.children.length>=1&&("mn"===r.type||lk(r))){var l=s.children[0];l instanceof ld&&"mn"===l.type&&(l.children=[...r.children,...l.children],a.pop())}else if("mi"===r.type&&1===r.children.length){var c=r.children[0];if(c instanceof lm&&"̸"===c.text&&("mo"===s.type||"mi"===s.type||"mn"===s.type)){var u=s.children[0];u instanceof lm&&u.text.length>0&&(u.text=u.text.slice(0,1)+"̸"+u.text.slice(1),a.pop())}}}a.push(s),r=s}return a},lS=function(e,t,n){return lv(lw(e,t,n))},lA=function(e,t){if(!e)return new ld("mrow");if(s3[e.type])return s3[e.type](e,t);throw new oc("Got group of unknown type: '"+e.type+"'")};function lC(e,t,n,r,i){var a,o=lw(e,n);a=1===o.length&&o[0]instanceof ld&&ly.has(o[0].type)?o[0]:new ld("mrow",o);var s=new ld("annotation",[new lm(t)]);s.setAttribute("encoding","application/x-tex");var l=new ld("semantics",[a,s]),c=new ld("math",[l]);return c.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),r&&c.setAttribute("display","block"),sD([i?"katex":"katex-mathml"],[c])}var lT=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],l_=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],lM=function(e,t){return t.size<2?e:lT[e-1][t.size-1]};class lN{extend(e){var t={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};return Object.assign(t,e),new lN(t)}havingStyle(e){return this.style===e?this:this.extend({style:e,size:lM(this.textSize,e)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(e){return this.size===e&&this.textSize===e?this:this.extend({style:this.style.text(),size:e,textSize:e,sizeMultiplier:l_[e-1]})}havingBaseStyle(e){e=e||this.style.text();var t=lM(lN.BASESIZE,e);return this.size===t&&this.textSize===lN.BASESIZE&&this.style===e?this:this.extend({style:e,size:t})}havingBaseSizing(){var e;switch(this.style.id){case 4:case 5:e=3;break;case 6:case 7:e=1;break;default:e=6}return this.extend({style:this.style.text(),size:e})}withColor(e){return this.extend({color:e})}withPhantom(){return this.extend({phantom:!0})}withFont(e){return this.extend({font:e})}withTextFontFamily(e){return this.extend({fontFamily:e,font:""})}withTextFontWeight(e){return this.extend({fontWeight:e,font:""})}withTextFontShape(e){return this.extend({fontShape:e,font:""})}sizingClasses(e){return e.size!==this.size?["sizing","reset-size"+e.size,"size"+this.size]:[]}baseSizingClasses(){return this.size!==lN.BASESIZE?["sizing","reset-size"+this.size,"size"+lN.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=function(e){var t;if(!o3[t=e>=5?0:e>=3?1:2]){var n=o3[t]={cssEmPerMu:o4.quad[t]/18};for(var r in o4)o4.hasOwnProperty(r)&&(n[r]=o4[r][t])}return o3[t]}(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}constructor(e){this.style=e.style,this.color=e.color,this.size=e.size||lN.BASESIZE,this.textSize=e.textSize||this.size,this.phantom=!!e.phantom,this.font=e.font||"",this.fontFamily=e.fontFamily||"",this.fontWeight=e.fontWeight||"",this.fontShape=e.fontShape||"",this.sizeMultiplier=l_[this.size-1],this.maxSize=e.maxSize,this.minRuleThickness=e.minRuleThickness,this._fontMetrics=void 0}}lN.BASESIZE=6;var lE=function(e,t){if(t.displayMode){var n=["katex-display"];t.leqno&&n.push("leqno"),t.fleqn&&n.push("fleqn"),e=sD(n,[e])}return e},lz=function(e,t,n){var r,i=new lN({style:(r=n).displayMode?oM.DISPLAY:oM.TEXT,maxSize:r.maxSize,minRuleThickness:r.minRuleThickness});return"mathml"===n.output?lC(e,t,i,n.displayMode,!0):lE("html"===n.output?sD(["katex"],[lp(e,i)]):sD(["katex"],[lC(e,t,i,n.displayMode,!1),lp(e,i)]),n)},lI={widehat:"^",widecheck:"ˇ",widetilde:"~",utilde:"~",overleftarrow:"←",underleftarrow:"←",xleftarrow:"←",overrightarrow:"→",underrightarrow:"→",xrightarrow:"→",underbrace:"⏟",overbrace:"⏞",underbracket:"⎵",overbracket:"⎴",overgroup:"⏠",undergroup:"⏡",overleftrightarrow:"↔",underleftrightarrow:"↔",xleftrightarrow:"↔",Overrightarrow:"⇒",xRightarrow:"⇒",overleftharpoon:"↼",xleftharpoonup:"↼",overrightharpoon:"⇀",xrightharpoonup:"⇀",xLeftarrow:"⇐",xLeftrightarrow:"⇔",xhookleftarrow:"↩",xhookrightarrow:"↪",xmapsto:"↦",xrightharpoondown:"⇁",xleftharpoondown:"↽",xrightleftharpoons:"⇌",xleftrightharpoons:"⇋",xtwoheadleftarrow:"↞",xtwoheadrightarrow:"↠",xlongequal:"=",xtofrom:"⇄",xrightleftarrows:"⇄",xrightequilibrium:"⇌",xleftequilibrium:"⇋","\\cdrightarrow":"→","\\cdleftarrow":"←","\\cdlongequal":"="},lR=function(e){var t=new ld("mo",[new lm(lI[e.replace(/^\\/,"")])]);return t.setAttribute("stretchy","true"),t},lj={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],"\\cdrightarrow":[["rightarrow"],3,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],"\\cdleftarrow":[["leftarrow"],3,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],"\\cdlongequal":[["longequal"],3,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overbracket:[["leftbracketover","rightbracketover"],1.6,440],underbracket:[["leftbracketunder","rightbracketunder"],1.6,410],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},lL=new Set(["widehat","widecheck","widetilde","utilde"]),lP=function(e,t){var{span:n,minWidth:r,height:i}=function(){var n=4e5,r=e.label.slice(1);if(lL.has(r)){var i,a,o,s="ordgroup"===e.base.type?e.base.body.length:1;if(s>5)"widehat"===r||"widecheck"===r?(i=420,n=2364,o=.42,a=r+"4"):(i=312,n=2340,o=.34,a="tilde4");else{var l=[1,1,2,2,3,3][s];"widehat"===r||"widecheck"===r?(n=[0,1062,2364,2364,2364][l],i=[0,239,300,360,420][l],o=[0,.24,.3,.3,.36,.42][l],a=r+l):(n=[0,600,1033,2339,2340][l],i=[0,260,286,306,312][l],o=[0,.26,.286,.3,.306,.34][l],a="tilde"+l)}return{span:sF([],[new oK([new oQ(a)],{width:"100%",height:oq(o),viewBox:"0 0 "+n+" "+i,preserveAspectRatio:"none"})],t),minWidth:0,height:o}}var c,u,h=[],p=lj[r],[d,m,f]=p,g=f/1e3,y=d.length;if(1===y)c=["hide-tail"],u=[p[3]];else if(2===y)c=["halfarrow-left","halfarrow-right"],u=["xMinYMin","xMaxYMin"];else if(3===y)c=["brace-left","brace-center","brace-right"],u=["xMinYMin","xMidYMin","xMaxYMin"];else throw Error("Correct katexImagesData or update code here to support\n "+y+" children.");for(var b=0;b<y;b++){var v=new oK([new oQ(d[b])],{width:"400em",height:oq(g),viewBox:"0 0 "+n+" "+f,preserveAspectRatio:u[b]+" slice"}),x=sF([c[b]],[v],t);if(1===y)return{span:x,minWidth:m,height:g};x.style.height=oq(g),h.push(x)}return{span:sD(["stretchy"],h,t),minWidth:m,height:g}}();return n.height=i,n.style.height=oq(i),r>0&&(n.style.minWidth=oq(r)),n},lB=function(e,t,n,r,i){var a,o=e.height+e.depth+n+r;if(/fbox|color|angl/.test(t)){if(a=sD(["stretchy",t],[],i),"fbox"===t){var s=i.color&&i.getColor();s&&(a.style.borderColor=s)}}else{var l=[];/^[bx]cancel$/.test(t)&&l.push(new o0({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(t)&&l.push(new o0({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"})),a=sF([],[new oK(l,{width:"100%",height:oq(o)})],i)}return a.height=o,a.style.height=oq(o),a};function lO(e,t){if(!e||e.type!==t)throw Error("Expected node of type "+t+", but got "+(e?"node of type "+e.type:String(e)));return e}function lD(e){var t=lF(e);if(!t)throw Error("Expected node of symbol group type, but got "+(e?"node of type "+e.type:String(e)));return t}function lF(e){return e&&("atom"===e.type||o7.hasOwnProperty(e.type))?e:null}var lq=e=>e instanceof oZ?e:(e=>e instanceof o$||e instanceof oX||e instanceof oP)(e)&&1===e.children.length?lq(e.children[0]):void 0,lH=(e,t)=>{e&&"supsub"===e.type?(s=(l=lO(e.base,"accent")).base,e.base=s,c=function(e){if(e instanceof o$)return e;throw Error("Expected span<HtmlDomNode> but got "+String(e)+".")}(lu(e,t)),e.base=l):s=(l=lO(e,"accent")).base;var n=lu(s,t.havingCrampedStyle()),r=l.isShifty&&oy(s),i=0;r&&(i=null!=(u=null==(h=lq(n))?void 0:h.skew)?u:0);var a="\\c"===l.label,o=a?n.height+n.depth:Math.min(n.height,t.fontMetrics().xHeight);if(l.isStretchy)m=sV({positionType:"firstBaseline",children:[{type:"elem",elem:n},{type:"elem",elem:m=lP(l,t),wrapperClasses:["svg-align"],wrapperStyle:i>0?{width:"calc(100% - "+oq(2*i)+")",marginLeft:oq(2*i)}:void 0}]});else{"\\vec"===l.label?(p=sZ("vec",t),d=sJ.vec[1]):((p=function(e){if(e instanceof oZ)return e;throw Error("Expected symbolNode but got "+String(e)+".")}(p=sL({type:"textord",mode:l.mode,text:l.label},t,"textord"))).italic=0,d=p.width,a&&(o+=p.depth));var s,l,c,u,h,p,d,m=sD(["accent-body"],[p]),f="\\textcircled"===l.label;f&&(m.classes.push("accent-full"),o=n.height);var g=i;f||(g-=d/2),m.style.left=oq(g),"\\textcircled"===l.label&&(m.style.top=".2em"),m=sV({positionType:"firstBaseline",children:[{type:"elem",elem:n},{type:"kern",size:-o},{type:"elem",elem:m}]})}var y=sD(["mord","accent"],[m],t);return c?(c.children[0]=y,c.height=Math.max(y.height,c.height),c.classes[0]="mord",c):y},lU=(e,t)=>{var n=e.isStretchy?lR(e.label):new ld("mo",[lb(e.label,e.mode)]),r=new ld("mover",[lA(e.base,t),n]);return r.setAttribute("accent","true"),r},lG=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(e=>"\\"+e).join("|"));s2({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:(e,t)=>{var n=s8(t[0]),r=!lG.test(e.funcName),i=!r||"\\widehat"===e.funcName||"\\widetilde"===e.funcName||"\\widecheck"===e.funcName;return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:r,isShifty:i,base:n}},htmlBuilder:lH,mathmlBuilder:lU}),s2({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(e,t)=>{var n=t[0],r=e.parser.mode;return"math"===r&&(e.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+e.funcName+" works only in text mode"),r="text"),{type:"accent",mode:r,label:e.funcName,isStretchy:!1,isShifty:!0,base:n}},htmlBuilder:lH,mathmlBuilder:lU}),s2({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0];return{type:"accentUnder",mode:n.mode,label:r,base:i}},htmlBuilder:(e,t)=>{var n=lu(e.base,t),r=lP(e,t),i=.12*("\\utilde"===e.label);return sD(["mord","accentunder"],[sV({positionType:"top",positionData:n.height,children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:i},{type:"elem",elem:n}]})],t)},mathmlBuilder:(e,t)=>{var n=lR(e.label),r=new ld("munder",[lA(e.base,t),n]);return r.setAttribute("accentunder","true"),r}});var lW=e=>{var t=new ld("mpadded",e?[e]:[]);return t.setAttribute("width","+0.6em"),t.setAttribute("lspace","0.3em"),t};function lV(e,t){var n=li(e.body,t,!0);return sD([e.mclass],n,t)}function l$(e,t){var n,r=lw(e.body,t);return"minner"===e.mclass?n=new ld("mpadded",r):"mord"===e.mclass?e.isCharacterBox?(n=r[0]).type="mi":n=new ld("mi",r):(e.isCharacterBox?(n=r[0]).type="mo":n=new ld("mo",r),"mbin"===e.mclass?(n.attributes.lspace="0.22em",n.attributes.rspace="0.22em"):"mpunct"===e.mclass?(n.attributes.lspace="0em",n.attributes.rspace="0.17em"):"mopen"===e.mclass||"mclose"===e.mclass?(n.attributes.lspace="0em",n.attributes.rspace="0em"):"minner"===e.mclass&&(n.attributes.lspace="0.0556em",n.attributes.width="+0.1111em")),n}s2({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,n){var{parser:r,funcName:i}=e;return{type:"xArrow",mode:r.mode,label:i,body:t[0],below:n[0]}},htmlBuilder(e,t){var n,r,i=t.style,a=t.havingStyle(i.sup()),o=sG(lu(e.body,a,t),t),s="\\x"===e.label.slice(0,2)?"x":"cd";o.classes.push(s+"-arrow-pad"),e.below&&(a=t.havingStyle(i.sub()),(n=sG(lu(e.below,a,t),t)).classes.push(s+"-arrow-pad"));var l=lP(e,t),c=-t.fontMetrics().axisHeight+.5*l.height,u=-t.fontMetrics().axisHeight-.5*l.height-.111;if((o.depth>.25||"\\xleftequilibrium"===e.label)&&(u-=o.depth),n){var h=-t.fontMetrics().axisHeight+n.height+.5*l.height+.111;r=sV({positionType:"individualShift",children:[{type:"elem",elem:o,shift:u},{type:"elem",elem:l,shift:c},{type:"elem",elem:n,shift:h}]})}else r=sV({positionType:"individualShift",children:[{type:"elem",elem:o,shift:u},{type:"elem",elem:l,shift:c}]});return r.children[0].children[0].children[1].classes.push("svg-align"),sD(["mrel","x-arrow"],[r],t)},mathmlBuilder(e,t){var n,r=lR(e.label);if(r.setAttribute("minsize","x"===e.label.charAt(0)?"1.75em":"3.0em"),e.body){var i=lW(lA(e.body,t));n=e.below?new ld("munderover",[r,lW(lA(e.below,t)),i]):new ld("mover",[r,i])}else n=e.below?new ld("munder",[r,lW(lA(e.below,t))]):new ld("mover",[r,n=lW()]);return n}}),s2({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];return{type:"mclass",mode:n.mode,mclass:"m"+r.slice(5),body:s9(i),isCharacterBox:oy(i)}},htmlBuilder:lV,mathmlBuilder:l$});var lX=e=>{var t="ordgroup"===e.type&&e.body.length?e.body[0]:e;return"atom"===t.type&&("bin"===t.family||"rel"===t.family)?"m"+t.family:"mord"};s2({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(e,t){var{parser:n}=e;return{type:"mclass",mode:n.mode,mclass:lX(t[0]),body:s9(t[1]),isCharacterBox:oy(t[1])}}}),s2({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(e,t){var n,{parser:r,funcName:i}=e,a=t[1],o=t[0];n="\\stackrel"!==i?lX(a):"mrel";var s={type:"op",mode:a.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:"\\stackrel"!==i,body:s9(a)},l={type:"supsub",mode:o.mode,base:s,sup:"\\underset"===i?null:o,sub:"\\underset"===i?o:null};return{type:"mclass",mode:r.mode,mclass:n,body:[l],isCharacterBox:oy(l)}},htmlBuilder:lV,mathmlBuilder:l$}),s2({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"pmb",mode:n.mode,mclass:lX(t[0]),body:s9(t[0])}},htmlBuilder(e,t){var n=li(e.body,t,!0),r=sD([e.mclass],n,t);return r.style.textShadow="0.02em 0.01em 0.04px",r},mathmlBuilder(e,t){var n=new ld("mstyle",lw(e.body,t));return n.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),n}});var lY={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},lJ=()=>({type:"styling",body:[],mode:"math",style:"display"}),lZ=e=>"textord"===e.type&&"@"===e.text,lK=(e,t)=>("mathord"===e.type||"atom"===e.type)&&e.text===t;s2({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e;return{type:"cdlabel",mode:n.mode,side:r.slice(4),label:t[0]}},htmlBuilder(e,t){var n=t.havingStyle(t.style.sup()),r=sG(lu(e.label,n,t),t);return r.classes.push("cd-label-"+e.side),r.style.bottom=oq(.8-r.depth),r.height=0,r.depth=0,r},mathmlBuilder(e,t){var n=new ld("mrow",[lA(e.label,t)]);return(n=new ld("mpadded",[n])).setAttribute("width","0"),"left"===e.side&&n.setAttribute("lspace","-1width"),n.setAttribute("voffset","0.7em"),(n=new ld("mstyle",[n])).setAttribute("displaystyle","false"),n.setAttribute("scriptlevel","1"),n}}),s2({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(e,t){var{parser:n}=e;return{type:"cdlabelparent",mode:n.mode,fragment:t[0]}},htmlBuilder(e,t){var n=sG(lu(e.fragment,t),t);return n.classes.push("cd-vert-arrow"),n},mathmlBuilder:(e,t)=>new ld("mrow",[lA(e.fragment,t)])}),s2({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(e,t){for(var n,{parser:r}=e,i=lO(t[0],"ordgroup").body,a="",o=0;o<i.length;o++)a+=lO(i[o],"textord").text;var s=parseInt(a);if(isNaN(s))throw new oc("\\@char has non-numeric argument "+a);if(s<0||s>=1114111)throw new oc("\\@char with invalid code point "+a);return s<=65535?n=String.fromCharCode(s):(s-=65536,n=String.fromCharCode((s>>10)+55296,(1023&s)+56320)),{type:"textord",mode:r.mode,text:n}}});var lQ=(e,t)=>sU(li(e.body,t.withColor(e.color),!1)),l0=(e,t)=>{var n=new ld("mstyle",lw(e.body,t.withColor(e.color)));return n.setAttribute("mathcolor",e.color),n};s2({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(e,t){var{parser:n}=e,r=lO(t[0],"color-token").color,i=t[1];return{type:"color",mode:n.mode,color:r,body:s9(i)}},htmlBuilder:lQ,mathmlBuilder:l0}),s2({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(e,t){var{parser:n,breakOnTokenText:r}=e,i=lO(t[0],"color-token").color;n.gullet.macros.set("\\current@color",i);var a=n.parseExpression(!0,r);return{type:"color",mode:n.mode,color:i,body:a}},htmlBuilder:lQ,mathmlBuilder:l0}),s2({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(e,t,n){var{parser:r}=e,i="["===r.gullet.future().text?r.parseSizeGroup(!0):null,a=!r.settings.displayMode||!r.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:r.mode,newLine:a,size:i&&lO(i,"size").value}},htmlBuilder(e,t){var n=sD(["mspace"],[],t);return e.newLine&&(n.classes.push("newline"),e.size&&(n.style.marginTop=oq(oF(e.size,t)))),n},mathmlBuilder(e,t){var n=new ld("mspace");return e.newLine&&(n.setAttribute("linebreak","newline"),e.size&&n.setAttribute("height",oq(oF(e.size,t)))),n}});var l1={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},l4=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new oc("Expected a control sequence",e);return t},l5=(e,t,n,r)=>{var i=e.gullet.macros.get(n.text);null==i&&(n.noexpand=!0,i={tokens:[n],numArgs:0,unexpandable:!e.gullet.isExpandable(n.text)}),e.gullet.macros.set(t,i,r)};s2({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(e){var{parser:t,funcName:n}=e;t.consumeSpaces();var r=t.fetch();if(l1[r.text])return("\\global"===n||"\\\\globallong"===n)&&(r.text=l1[r.text]),lO(t.parseFunction(),"internal");throw new oc("Invalid token after macro prefix",r)}}),s2({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var t,{parser:n,funcName:r}=e,i=n.gullet.popToken(),a=i.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(a))throw new oc("Expected a control sequence",i);for(var o=0,s=[[]];"{"!==n.gullet.future().text;)if("#"===(i=n.gullet.popToken()).text){if("{"===n.gullet.future().text){t=n.gullet.future(),s[o].push("{");break}if(i=n.gullet.popToken(),!/^[1-9]$/.test(i.text))throw new oc('Invalid argument number "'+i.text+'"');if(parseInt(i.text)!==o+1)throw new oc('Argument number "'+i.text+'" out of order');o++,s.push([])}else if("EOF"===i.text)throw new oc("Expected a macro definition");else s[o].push(i.text);var{tokens:l}=n.gullet.consumeArg();return t&&l.unshift(t),("\\edef"===r||"\\xdef"===r)&&(l=n.gullet.expandTokens(l)).reverse(),n.gullet.macros.set(a,{tokens:l,numArgs:o,delimiters:s},r===l1[r]),{type:"internal",mode:n.mode}}}),s2({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var t,{parser:n,funcName:r}=e,i=l4(n.gullet.popToken());n.gullet.consumeSpaces();var a=("="===(t=n.gullet.popToken()).text&&" "===(t=n.gullet.popToken()).text&&(t=n.gullet.popToken()),t);return l5(n,i,a,"\\\\globallet"===r),{type:"internal",mode:n.mode}}}),s2({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=l4(t.gullet.popToken()),i=t.gullet.popToken(),a=t.gullet.popToken();return l5(t,r,a,"\\\\globalfuture"===n),t.gullet.pushToken(a),t.gullet.pushToken(i),{type:"internal",mode:t.mode}}});var l6=function(e,t,n){var r=o6(o8.math[e]&&o8.math[e].replace||e,t,n);if(!r)throw Error("Unsupported symbol "+e+" and font size "+t+".");return r},l3=function(e,t,n,r){var i=n.havingBaseStyle(t),a=sD(r.concat(i.sizingClasses(n)),[e],n),o=i.sizeMultiplier/n.sizeMultiplier;return a.height*=o,a.depth*=o,a.maxFontSize=i.sizeMultiplier,a},l2=function(e,t,n){var r=t.havingBaseStyle(n),i=(1-t.sizeMultiplier/r.sizeMultiplier)*t.fontMetrics().axisHeight;e.classes.push("delimcenter"),e.style.top=oq(i),e.height-=i,e.depth+=i},l7=function(e,t,n,r,i,a){var o=l3(sR(e,"Main-Regular",i,r),t,r,a);return n&&l2(o,r,t),o},l8=function(e,t,n,r,i,a){var o=sR(e,"Size"+t+"-Regular",i,r),s=l3(sD(["delimsizing","size"+t],[o],r),oM.TEXT,r,a);return n&&l2(s,r,oM.TEXT),s},l9=function(e,t,n){return{type:"elem",elem:sD(["delimsizinginner","Size1-Regular"===t?"delim-size1":"delim-size4"],[sD([],[sR(e,t,n)])])}},ce=function(e,t,n){var r=o1["Size4-Regular"][e.charCodeAt(0)]?o1["Size4-Regular"][e.charCodeAt(0)][4]:o1["Size1-Regular"][e.charCodeAt(0)][4],i=sF([],[new oK([new oQ("inner",oR(e,Math.round(1e3*t)))],{width:oq(r),height:oq(t),style:"width:"+oq(r),viewBox:"0 0 "+1e3*r+" "+Math.round(1e3*t),preserveAspectRatio:"xMinYMin"})],n);return i.height=t,i.style.height=oq(t),i.style.width=oq(r),{type:"elem",elem:i}},ct={type:"kern",size:-.008},cn=new Set(["|","\\lvert","\\rvert","\\vert"]),cr=new Set(["\\|","\\lVert","\\rVert","\\Vert"]),ci=function(e,t,n,r,i,a){var o,s,l,c,u="",h=0;o=l=c=e,s=null;var p="Size1-Regular";"\\uparrow"===e?l=c="⏐":"\\Uparrow"===e?l=c="‖":"\\downarrow"===e?o=l="⏐":"\\Downarrow"===e?o=l="‖":"\\updownarrow"===e?(o="\\uparrow",l="⏐",c="\\downarrow"):"\\Updownarrow"===e?(o="\\Uparrow",l="‖",c="\\Downarrow"):cn.has(e)?(l="∣",u="vert",h=333):cr.has(e)?(l="∥",u="doublevert",h=556):"["===e||"\\lbrack"===e?(o="⎡",l="⎢",c="⎣",p="Size4-Regular",u="lbrack",h=667):"]"===e||"\\rbrack"===e?(o="⎤",l="⎥",c="⎦",p="Size4-Regular",u="rbrack",h=667):"\\lfloor"===e||"⌊"===e?(l=o="⎢",c="⎣",p="Size4-Regular",u="lfloor",h=667):"\\lceil"===e||"⌈"===e?(o="⎡",l=c="⎢",p="Size4-Regular",u="lceil",h=667):"\\rfloor"===e||"⌋"===e?(l=o="⎥",c="⎦",p="Size4-Regular",u="rfloor",h=667):"\\rceil"===e||"⌉"===e?(o="⎤",l=c="⎥",p="Size4-Regular",u="rceil",h=667):"("===e||"\\lparen"===e?(o="⎛",l="⎜",c="⎝",p="Size4-Regular",u="lparen",h=875):")"===e||"\\rparen"===e?(o="⎞",l="⎟",c="⎠",p="Size4-Regular",u="rparen",h=875):"\\{"===e||"\\lbrace"===e?(o="⎧",s="⎨",c="⎩",l="⎪",p="Size4-Regular"):"\\}"===e||"\\rbrace"===e?(o="⎫",s="⎬",c="⎭",l="⎪",p="Size4-Regular"):"\\lgroup"===e||"⟮"===e?(o="⎧",c="⎩",l="⎪",p="Size4-Regular"):"\\rgroup"===e||"⟯"===e?(o="⎫",c="⎭",l="⎪",p="Size4-Regular"):"\\lmoustache"===e||"⎰"===e?(o="⎧",c="⎭",l="⎪",p="Size4-Regular"):("\\rmoustache"===e||"⎱"===e)&&(o="⎫",c="⎩",l="⎪",p="Size4-Regular");var d=l6(o,p,i),m=d.height+d.depth,f=l6(l,p,i),g=f.height+f.depth,y=l6(c,p,i),b=y.height+y.depth,v=0,x=1;if(null!==s){var k=l6(s,p,i);v=k.height+k.depth,x=2}var w=m+b+v,S=Math.max(0,Math.ceil((t-w)/(x*g))),A=w+S*x*g,C=r.fontMetrics().axisHeight;n&&(C*=r.sizeMultiplier);var T=A/2-C,_=[];if(u.length>0){var M=Math.round(1e3*A),N=oL(u,Math.round(1e3*(A-m-b))),E=new oQ(u,N),z=oq(h/1e3),I=oq(M/1e3),R=sF([],[new oK([E],{width:z,height:I,viewBox:"0 0 "+h+" "+M})],r);R.height=M/1e3,R.style.width=z,R.style.height=I,_.push({type:"elem",elem:R})}else{if(_.push(l9(c,p,i)),_.push(ct),null===s)_.push(ce(l,A-m-b+.016,r));else{var j=(A-m-b-v)/2+.016;_.push(ce(l,j,r)),_.push(ct),_.push(l9(s,p,i)),_.push(ct),_.push(ce(l,j,r))}_.push(ct),_.push(l9(o,p,i))}var L=r.havingBaseStyle(oM.TEXT);return l3(sD(["delimsizing","mult"],[sV({positionType:"bottom",positionData:T,children:_})],L),oM.TEXT,r,a)},ca=function(e,t,n,r,i){var a=oI(e,r,n);return sF(["hide-tail"],[new oK([new oQ(e,a)],{width:"400em",height:oq(t),viewBox:"0 0 400000 "+n,preserveAspectRatio:"xMinYMin slice"})],i)},co=function(e,t){var n,r,i=t.havingBaseSizing(),a=cg("\\surd",e*i.sizeMultiplier,cm,i),o=i.sizeMultiplier,s=Math.max(0,t.minRuleThickness-t.fontMetrics().sqrtRuleThickness),l=0,c=0,u=0;return"small"===a.type?(u=1e3+1e3*s+80,e<1?o=1:e<1.4&&(o=.7),l=(1+s+.08)/o,c=(1+s)/o,(n=ca("sqrtMain",l,u,s,t)).style.minWidth="0.853em",r=.833/o):"large"===a.type?(u=1080*cu[a.size],c=(cu[a.size]+s)/o,l=(cu[a.size]+s+.08)/o,(n=ca("sqrtSize"+a.size,l,u,s,t)).style.minWidth="1.02em",r=1/o):(l=e+s+.08,c=e+s,(n=ca("sqrtTall",l,u=Math.floor(1e3*e+s)+80,s,t)).style.minWidth="0.742em",r=1.056),n.height=c,n.style.height=oq(l),{span:n,advanceWidth:r,ruleWidth:(t.fontMetrics().sqrtRuleThickness+s)*o}},cs=new Set(["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"]),cl=new Set(["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"]),cc=new Set(["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"]),cu=[0,1.2,1.8,2.4,3],ch=function(e,t,n,r,i){if("<"===e||"\\lt"===e||"⟨"===e?e="\\langle":(">"===e||"\\gt"===e||"⟩"===e)&&(e="\\rangle"),cs.has(e)||cc.has(e))return l8(e,t,!1,n,r,i);if(cl.has(e))return ci(e,cu[t],!1,n,r,i);throw new oc("Illegal delimiter: '"+e+"'")},cp=[{type:"small",style:oM.SCRIPTSCRIPT},{type:"small",style:oM.SCRIPT},{type:"small",style:oM.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],cd=[{type:"small",style:oM.SCRIPTSCRIPT},{type:"small",style:oM.SCRIPT},{type:"small",style:oM.TEXT},{type:"stack"}],cm=[{type:"small",style:oM.SCRIPTSCRIPT},{type:"small",style:oM.SCRIPT},{type:"small",style:oM.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],cf=function(e){if("small"===e.type)return"Main-Regular";if("large"===e.type)return"Size"+e.size+"-Regular";if("stack"===e.type)return"Size4-Regular";throw Error("Add support for delim type '"+e.type+"' here.")},cg=function(e,t,n,r){for(var i=Math.min(2,3-r.style.size),a=i;a<n.length;a++){var o=n[a];if("stack"===o.type)break;var s=l6(e,cf(o),"math"),l=s.height+s.depth;if("small"===o.type&&(l*=r.havingBaseStyle(o.style).sizeMultiplier),l>t)return o}return n[n.length-1]},cy=function(e,t,n,r,i,a){"<"===e||"\\lt"===e||"⟨"===e?e="\\langle":(">"===e||"\\gt"===e||"⟩"===e)&&(e="\\rangle");var o=cc.has(e)?cp:cs.has(e)?cm:cd,s=cg(e,t,o,r);return"small"===s.type?l7(e,s.style,n,r,i,a):"large"===s.type?l8(e,s.size,n,r,i,a):ci(e,t,n,r,i,a)},cb=function(e,t,n,r,i,a){var o=r.fontMetrics().axisHeight*r.sizeMultiplier,s=5/r.fontMetrics().ptPerEm,l=Math.max(t-o,n+o);return cy(e,Math.max(l/500*901,2*l-s),!0,r,i,a)},cv={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},cx=new Set(["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","<",">","\\langle","⟨","\\rangle","⟩","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."]);function ck(e,t){var n=lF(e);if(n&&cx.has(n.text))return n;if(n)throw new oc("Invalid delimiter '"+n.text+"' after '"+t.funcName+"'",e);throw new oc("Invalid delimiter type '"+e.type+"'",e)}function cw(e){if(!e.body)throw Error("Bug: The leftright ParseNode wasn't fully parsed.")}s2({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:(e,t)=>{var n=ck(t[0],e);return{type:"delimsizing",mode:e.parser.mode,size:cv[e.funcName].size,mclass:cv[e.funcName].mclass,delim:n.text}},htmlBuilder:(e,t)=>"."===e.delim?sD([e.mclass]):ch(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{var t=[];"."!==e.delim&&t.push(lb(e.delim,e.mode));var n=new ld("mo",t);"mopen"===e.mclass||"mclose"===e.mclass?n.setAttribute("fence","true"):n.setAttribute("fence","false"),n.setAttribute("stretchy","true");var r=oq(cu[e.size]);return n.setAttribute("minsize",r),n.setAttribute("maxsize",r),n}}),s2({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=e.parser.gullet.macros.get("\\current@color");if(n&&"string"!=typeof n)throw new oc("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:e.parser.mode,delim:ck(t[0],e).text,color:n}}}),s2({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=ck(t[0],e),r=e.parser;++r.leftrightDepth;var i=r.parseExpression(!1);--r.leftrightDepth,r.expect("\\right",!1);var a=lO(r.parseFunction(),"leftright-right");return{type:"leftright",mode:r.mode,body:i,left:n.text,right:a.delim,rightColor:a.color}},htmlBuilder:(e,t)=>{cw(e);for(var n,r,i=li(e.body,t,!0,["mopen","mclose"]),a=0,o=0,s=!1,l=0;l<i.length;l++)i[l].isMiddle?s=!0:(a=Math.max(i[l].height,a),o=Math.max(i[l].depth,o));if(a*=t.sizeMultiplier,o*=t.sizeMultiplier,n="."===e.left?lc(t,["mopen"]):cb(e.left,a,o,t,e.mode,["mopen"]),i.unshift(n),s)for(var c=1;c<i.length;c++){var u=i[c].isMiddle;u&&(i[c]=cb(u.delim,a,o,u.options,e.mode,[]))}if("."===e.right)r=lc(t,["mclose"]);else{var h=e.rightColor?t.withColor(e.rightColor):t;r=cb(e.right,a,o,h,e.mode,["mclose"])}return i.push(r),sD(["minner"],i,t)},mathmlBuilder:(e,t)=>{cw(e);var n=lw(e.body,t);if("."!==e.left){var r=new ld("mo",[lb(e.left,e.mode)]);r.setAttribute("fence","true"),n.unshift(r)}if("."!==e.right){var i=new ld("mo",[lb(e.right,e.mode)]);i.setAttribute("fence","true"),e.rightColor&&i.setAttribute("mathcolor",e.rightColor),n.push(i)}return lv(n)}}),s2({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=ck(t[0],e);if(!e.parser.leftrightDepth)throw new oc("\\middle without preceding \\left",n);return{type:"middle",mode:e.parser.mode,delim:n.text}},htmlBuilder:(e,t)=>{var n;if("."===e.delim)n=lc(t,[]);else{n=ch(e.delim,1,t,e.mode,[]);var r={delim:e.delim,options:t};n.isMiddle=r}return n},mathmlBuilder:(e,t)=>{var n=new ld("mo",["\\vert"===e.delim||"|"===e.delim?lb("|","text"):lb(e.delim,e.mode)]);return n.setAttribute("fence","true"),n.setAttribute("lspace","0.05em"),n.setAttribute("rspace","0.05em"),n}});var cS=(e,t)=>{var n,r,i=sG(lu(e.body,t),t),a=e.label.slice(1),o=t.sizeMultiplier,s=0,l=oy(e.body);if("sout"===a)(n=sD(["stretchy","sout"])).height=t.fontMetrics().defaultRuleThickness/o,s=-.5*t.fontMetrics().xHeight;else if("phase"===a){var c=oF({number:.6,unit:"pt"},t),u=oF({number:.35,unit:"ex"},t);o/=t.havingBaseSizing().sizeMultiplier;var h=i.height+i.depth+c+u;i.style.paddingLeft=oq(h/2+c);var p=Math.floor(1e3*h*o);(n=sF(["hide-tail"],[new oK([new oQ("phase","M400000 "+p+" H0 L"+p/2+" 0 l65 45 L145 "+(p-80)+" H400000z")],{width:"400em",height:oq(p/1e3),viewBox:"0 0 400000 "+p,preserveAspectRatio:"xMinYMin slice"})],t)).style.height=oq(h),s=i.depth+c+u}else{/cancel/.test(a)?l||i.classes.push("cancel-pad"):"angl"===a?i.classes.push("anglpad"):i.classes.push("boxpad");var d=0,m=0,f=0;/box/.test(a)?(f=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),m=d=t.fontMetrics().fboxsep+("colorbox"===a?0:f)):"angl"===a?(d=4*(f=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness)),m=Math.max(0,.25-i.depth)):m=d=.2*!!l,n=lB(i,a,d,m,t),/fbox|boxed|fcolorbox/.test(a)?(n.style.borderStyle="solid",n.style.borderWidth=oq(f)):"angl"===a&&.049!==f&&(n.style.borderTopWidth=oq(f),n.style.borderRightWidth=oq(f)),s=i.depth+m,e.backgroundColor&&(n.style.backgroundColor=e.backgroundColor,e.borderColor&&(n.style.borderColor=e.borderColor))}return(r=e.backgroundColor?sV({positionType:"individualShift",children:[{type:"elem",elem:n,shift:s},{type:"elem",elem:i,shift:0}]}):sV({positionType:"individualShift",children:[{type:"elem",elem:i,shift:0},{type:"elem",elem:n,shift:s,wrapperClasses:/cancel|phase/.test(a)?["svg-align"]:[]}]}),/cancel/.test(a)&&(r.height=i.height,r.depth=i.depth),/cancel/.test(a)&&!l)?sD(["mord","cancel-lap"],[r],t):sD(["mord"],[r],t)},cA=(e,t)=>{var n=0,r=new ld(e.label.includes("colorbox")?"mpadded":"menclose",[lA(e.body,t)]);switch(e.label){case"\\cancel":r.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":r.setAttribute("notation","downdiagonalstrike");break;case"\\phase":r.setAttribute("notation","phasorangle");break;case"\\sout":r.setAttribute("notation","horizontalstrike");break;case"\\fbox":r.setAttribute("notation","box");break;case"\\angl":r.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(n=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,r.setAttribute("width","+"+2*n+"pt"),r.setAttribute("height","+"+2*n+"pt"),r.setAttribute("lspace",n+"pt"),r.setAttribute("voffset",n+"pt"),"\\fcolorbox"===e.label){var i=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);r.setAttribute("style","border: "+oq(i)+" solid "+e.borderColor)}break;case"\\xcancel":r.setAttribute("notation","updiagonalstrike downdiagonalstrike")}return e.backgroundColor&&r.setAttribute("mathbackground",e.backgroundColor),r};s2({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler(e,t,n){var{parser:r,funcName:i}=e,a=lO(t[0],"color-token").color,o=t[1];return{type:"enclose",mode:r.mode,label:i,backgroundColor:a,body:o}},htmlBuilder:cS,mathmlBuilder:cA}),s2({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(e,t,n){var{parser:r,funcName:i}=e,a=lO(t[0],"color-token").color,o=lO(t[1],"color-token").color,s=t[2];return{type:"enclose",mode:r.mode,label:i,backgroundColor:o,borderColor:a,body:s}},htmlBuilder:cS,mathmlBuilder:cA}),s2({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"enclose",mode:n.mode,label:"\\fbox",body:t[0]}}}),s2({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\phase"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];return{type:"enclose",mode:n.mode,label:r,body:i}},htmlBuilder:cS,mathmlBuilder:cA}),s2({type:"enclose",names:["\\sout"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n,funcName:r}=e;"math"===n.mode&&n.settings.reportNonstrict("mathVsSout","LaTeX's \\sout works only in text mode");var i=t[0];return{type:"enclose",mode:n.mode,label:r,body:i}},htmlBuilder:cS,mathmlBuilder:cA}),s2({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(e,t){var{parser:n}=e;return{type:"enclose",mode:n.mode,label:"\\angl",body:t[0]}}});var cC={};function cT(e){for(var{type:t,names:n,props:r,handler:i,htmlBuilder:a,mathmlBuilder:o}=e,s={type:t,numArgs:r.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:i},l=0;l<n.length;++l)cC[n[l]]=s;a&&(s6[t]=a),o&&(s3[t]=o)}var c_={};class cM{static range(e,t){return t?e&&e.loc&&t.loc&&e.loc.lexer===t.loc.lexer?new cM(e.loc.lexer,e.loc.start,t.loc.end):null:e&&e.loc}constructor(e,t,n){this.lexer=e,this.start=t,this.end=n}}class cN{range(e,t){return new cN(t,cM.range(this,e))}constructor(e,t){this.text=e,this.loc=t}}function cE(e){var t=[];e.consumeSpaces();var n=e.fetch().text;for("\\relax"===n&&(e.consume(),e.consumeSpaces(),n=e.fetch().text);"\\hline"===n||"\\hdashline"===n;)e.consume(),t.push("\\hdashline"===n),e.consumeSpaces(),n=e.fetch().text;return t}var cz=e=>{if(!e.parser.settings.displayMode)throw new oc("{"+e.envName+"} can be used only in display mode.")},cI=new Set(["gather","gather*"]);function cR(e){if(!e.includes("ed"))return!e.includes("*")}function cj(e,t,n){var{hskipBeforeAndAfter:r,addJot:i,cols:a,arraystretch:o,colSeparationType:s,autoTag:l,singleRow:c,emptySingleRow:u,maxNumCols:h,leqno:p}=t;if(e.gullet.beginGroup(),c||e.gullet.macros.set("\\cr","\\\\\\relax"),!o){var d=e.gullet.expandMacroAsText("\\arraystretch");if(null==d)o=1;else if(!(o=parseFloat(d))||o<0)throw new oc("Invalid \\arraystretch: "+d)}e.gullet.beginGroup();var m=[],f=[m],g=[],y=[],b=null!=l?[]:void 0;function v(){l&&e.gullet.macros.set("\\@eqnsw","1",!0)}function x(){b&&(e.gullet.macros.get("\\df@tag")?(b.push(e.subparse([new cN("\\df@tag")])),e.gullet.macros.set("\\df@tag",void 0,!0)):b.push(!!l&&"1"===e.gullet.macros.get("\\@eqnsw")))}for(v(),y.push(cE(e));;){var k=e.parseExpression(!1,c?"\\end":"\\\\");e.gullet.endGroup(),e.gullet.beginGroup();var w={type:"ordgroup",mode:e.mode,body:k};n&&(w={type:"styling",mode:e.mode,style:n,body:[w]}),m.push(w);var S=e.fetch().text;if("&"===S){if(h&&m.length===h)if(c||s)throw new oc("Too many tab characters: &",e.nextToken);else e.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.");e.consume()}else if("\\end"===S){x(),1===m.length&&"styling"===w.type&&1===w.body.length&&"ordgroup"===w.body[0].type&&0===w.body[0].body.length&&(f.length>1||!u)&&f.pop(),y.length<f.length+1&&y.push([]);break}else if("\\\\"===S){e.consume();var A=void 0;" "!==e.gullet.future().text&&(A=e.parseSizeGroup(!0)),g.push(A?A.value:null),x(),y.push(cE(e)),m=[],f.push(m),v()}else throw new oc("Expected & or \\\\ or \\cr or \\end",e.nextToken)}return e.gullet.endGroup(),e.gullet.endGroup(),{type:"array",mode:e.mode,addJot:i,arraystretch:o,body:f,cols:a,rowGaps:g,hskipBeforeAndAfter:r,hLinesBeforeRow:y,colSeparationType:s,tags:b,leqno:p}}function cL(e){return"d"===e.slice(0,1)?"display":"text"}var cP=function(e,t){var n=e.body.length,r=e.hLinesBeforeRow,i=0,a=Array(n),o=[],s=Math.max(t.fontMetrics().arrayRuleWidth,t.minRuleThickness),l=1/t.fontMetrics().ptPerEm,c=5*l;e.colSeparationType&&"small"===e.colSeparationType&&(c=.2778*(t.havingStyle(oM.SCRIPT).sizeMultiplier/t.sizeMultiplier));var u="CD"===e.colSeparationType?oF({number:3,unit:"ex"},t):12*l,h=3*l,p=e.arraystretch*u,d=.7*p,m=.3*p,f=0;function g(e){for(var t=0;t<e.length;++t)t>0&&(f+=.25),o.push({pos:f,isDashed:e[t]})}for(g(r[0]),I=0;I<e.body.length;++I){var y=e.body[I],b=d,v=m;i<y.length&&(i=y.length);var x=Array(y.length);for(R=0;R<y.length;++R){var k=lu(y[R],t);v<k.depth&&(v=k.depth),b<k.height&&(b=k.height),x[R]=k}var w=e.rowGaps[I],S=0;w&&(S=oF(w,t))>0&&(v<(S+=m)&&(v=S),S=0),e.addJot&&I<e.body.length-1&&(v+=h),x.height=b,x.depth=v,x.pos=f+=b,f+=v+S,a[I]=x,g(r[I+1])}var A=f/2+t.fontMetrics().axisHeight,C=e.cols||[],T=[],_=[];if(e.tags&&e.tags.some(e=>e))for(I=0;I<n;++I){var M=a[I],N=M.pos-A,E=e.tags[I],z=void 0;(z=!0===E?sD(["eqn-num"],[],t):!1===E?sD([],[],t):sD([],li(E,t,!0),t)).depth=M.depth,z.height=M.height,_.push({type:"elem",elem:z,shift:N})}for(R=0,L=0;R<i||L<C.length;++R,++L){for(var I,R,j,L,P,B,O,D,F,q,H=C[L],U=!0;(null==(B=H)?void 0:B.type)==="separator";){if(U||((j=sD(["arraycolsep"],[])).style.width=oq(t.fontMetrics().doubleRuleSep),T.push(j)),"|"===H.separator||":"===H.separator){var G="|"===H.separator?"solid":"dashed",W=sD(["vertical-separator"],[],t);W.style.height=oq(f),W.style.borderRightWidth=oq(s),W.style.borderRightStyle=G,W.style.margin="0 "+oq(-s/2);var V=f-A;V&&(W.style.verticalAlign=oq(-V)),T.push(W)}else throw new oc("Invalid separator type: "+H.separator);H=C[++L],U=!1}if(!(R>=i)){var $=void 0;(R>0||e.hskipBeforeAndAfter)&&0!==($=null!=(O=null==(D=H)?void 0:D.pregap)?O:c)&&((j=sD(["arraycolsep"],[])).style.width=oq($),T.push(j));var X=[];for(I=0;I<n;++I){var Y=a[I],J=Y[R];if(J){var Z=Y.pos-A;J.depth=Y.depth,J.height=Y.height,X.push({type:"elem",elem:J,shift:Z})}}var K=sV({positionType:"individualShift",children:X}),Q=sD(["col-align-"+((null==(P=H)?void 0:P.align)||"c")],[K]);T.push(Q),(R<i-1||e.hskipBeforeAndAfter)&&0!==($=null!=(F=null==(q=H)?void 0:q.postgap)?F:c)&&((j=sD(["arraycolsep"],[])).style.width=oq($),T.push(j))}}var ee=sD(["mtable"],T);if(o.length>0){for(var et=sq("hline",t,s),en=sq("hdashline",t,s),er=[{type:"elem",elem:ee,shift:0}];o.length>0;){var ei=o.pop(),ea=ei.pos-A;ei.isDashed?er.push({type:"elem",elem:en,shift:ea}):er.push({type:"elem",elem:et,shift:ea})}ee=sV({positionType:"individualShift",children:er})}return 0===_.length?sD(["mord"],[ee],t):sU([ee,sD(["tag"],[sV({positionType:"individualShift",children:_})],t)])},cB={c:"center ",l:"left ",r:"right "},cO=function(e,t){for(var n=[],r=new ld("mtd",[],["mtr-glue"]),i=new ld("mtd",[],["mml-eqn-num"]),a=0;a<e.body.length;a++){for(var o=e.body[a],s=[],l=0;l<o.length;l++)s.push(new ld("mtd",[lA(o[l],t)]));e.tags&&e.tags[a]&&(s.unshift(r),s.push(r),e.leqno?s.unshift(i):s.push(i)),n.push(new ld("mtr",s))}var c=new ld("mtable",n),u=.5===e.arraystretch?.1:.16+e.arraystretch-1+.09*!!e.addJot;c.setAttribute("rowspacing",oq(u));var h="",p="";if(e.cols&&e.cols.length>0){var d=e.cols,m="",f=!1,g=0,y=d.length;"separator"===d[0].type&&(h+="top ",g=1),"separator"===d[d.length-1].type&&(h+="bottom ",y-=1);for(var b=g;b<y;b++){var v=d[b];"align"===v.type?(p+=cB[v.align],f&&(m+="none "),f=!0):"separator"===v.type&&f&&(m+="|"===v.separator?"solid ":"dashed ",f=!1)}c.setAttribute("columnalign",p.trim()),/[sd]/.test(m)&&c.setAttribute("columnlines",m.trim())}if("align"===e.colSeparationType){for(var x=e.cols||[],k="",w=1;w<x.length;w++)k+=w%2?"0em ":"1em ";c.setAttribute("columnspacing",k.trim())}else"alignat"===e.colSeparationType||"gather"===e.colSeparationType?c.setAttribute("columnspacing","0em"):"small"===e.colSeparationType?c.setAttribute("columnspacing","0.2778em"):"CD"===e.colSeparationType?c.setAttribute("columnspacing","0.5em"):c.setAttribute("columnspacing","1em");var S="",A=e.hLinesBeforeRow;h+=(A[0].length>0?"left ":"")+(A[A.length-1].length>0?"right ":"");for(var C=1;C<A.length-1;C++)S+=0===A[C].length?"none ":A[C][0]?"dashed ":"solid ";return/[sd]/.test(S)&&c.setAttribute("rowlines",S.trim()),""!==h&&(c=new ld("menclose",[c])).setAttribute("notation",h.trim()),e.arraystretch&&e.arraystretch<1&&(c=new ld("mstyle",[c])).setAttribute("scriptlevel","1"),c},cD=function(e,t){e.envName.includes("ed")||cz(e);var n=[],r=e.envName.includes("at")?"alignat":"align",i="split"===e.envName,a=cj(e.parser,{cols:n,addJot:!0,autoTag:i?void 0:cR(e.envName),emptySingleRow:!0,colSeparationType:r,maxNumCols:i?2:void 0,leqno:e.parser.settings.leqno},"display"),o=0,s=0,l={type:"ordgroup",mode:e.mode,body:[]};if(t[0]&&"ordgroup"===t[0].type){for(var c="",u=0;u<t[0].body.length;u++)c+=lO(t[0].body[u],"textord").text;s=2*(o=Number(c))}var h=!s;a.body.forEach(function(e){for(var t=1;t<e.length;t+=2){var n=lO(e[t],"styling");lO(n.body[0],"ordgroup").body.unshift(l)}if(h)s<e.length&&(s=e.length);else{var r=e.length/2;if(o<r)throw new oc("Too many math in a row: expected "+o+", but got "+r,e[0])}});for(var p=0;p<s;++p){var d="r",m=0;p%2==1?d="l":p>0&&h&&(m=1),n[p]={type:"align",align:d,pregap:m,postgap:0}}return a.colSeparationType=h?"align":"alignat",a};cT({type:"array",names:["array","darray"],props:{numArgs:1},handler(e,t){var n=(lF(t[0])?[t[0]]:lO(t[0],"ordgroup").body).map(function(e){var t=lD(e).text;if("lcr".includes(t))return{type:"align",align:t};if("|"===t)return{type:"separator",separator:"|"};if(":"===t)return{type:"separator",separator:":"};throw new oc("Unknown column alignment: "+t,e)}),r={cols:n,hskipBeforeAndAfter:!0,maxNumCols:n.length};return cj(e.parser,r,cL(e.envName))},htmlBuilder:cP,mathmlBuilder:cO}),cT({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(e){var t={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[e.envName.replace("*","")],n="c",r={hskipBeforeAndAfter:!1,cols:[{type:"align",align:n}]};if("*"===e.envName.charAt(e.envName.length-1)){var i=e.parser;if(i.consumeSpaces(),"["===i.fetch().text){if(i.consume(),i.consumeSpaces(),n=i.fetch().text,!"lcr".includes(n))throw new oc("Expected l or c or r",i.nextToken);i.consume(),i.consumeSpaces(),i.expect("]"),i.consume(),r.cols=[{type:"align",align:n}]}}var a=cj(e.parser,r,cL(e.envName)),o=Math.max(0,...a.body.map(e=>e.length));return a.cols=Array(o).fill({type:"align",align:n}),t?{type:"leftright",mode:e.mode,body:[a],left:t[0],right:t[1],rightColor:void 0}:a},htmlBuilder:cP,mathmlBuilder:cO}),cT({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(e){var t=cj(e.parser,{arraystretch:.5},"script");return t.colSeparationType="small",t},htmlBuilder:cP,mathmlBuilder:cO}),cT({type:"array",names:["subarray"],props:{numArgs:1},handler(e,t){var n=(lF(t[0])?[t[0]]:lO(t[0],"ordgroup").body).map(function(e){var t=lD(e).text;if("lc".includes(t))return{type:"align",align:t};throw new oc("Unknown column alignment: "+t,e)});if(n.length>1)throw new oc("{subarray} can contain only one column");var r=cj(e.parser,{cols:n,hskipBeforeAndAfter:!1,arraystretch:.5},"script");if(r.body.length>0&&r.body[0].length>1)throw new oc("{subarray} can contain only one column");return r},htmlBuilder:cP,mathmlBuilder:cO}),cT({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(e){var t=cj(e.parser,{arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},cL(e.envName));return{type:"leftright",mode:e.mode,body:[t],left:e.envName.includes("r")?".":"\\{",right:e.envName.includes("r")?"\\}":".",rightColor:void 0}},htmlBuilder:cP,mathmlBuilder:cO}),cT({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:cD,htmlBuilder:cP,mathmlBuilder:cO}),cT({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(e){cI.has(e.envName)&&cz(e);var t={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:cR(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return cj(e.parser,t,"display")},htmlBuilder:cP,mathmlBuilder:cO}),cT({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:cD,htmlBuilder:cP,mathmlBuilder:cO}),cT({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(e){cz(e);var t={autoTag:cR(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return cj(e.parser,t,"display")},htmlBuilder:cP,mathmlBuilder:cO}),cT({type:"array",names:["CD"],props:{numArgs:0},handler:e=>(cz(e),function(e){var t=[];for(e.gullet.beginGroup(),e.gullet.macros.set("\\cr","\\\\\\relax"),e.gullet.beginGroup();;){t.push(e.parseExpression(!1,"\\\\")),e.gullet.endGroup(),e.gullet.beginGroup();var n=e.fetch().text;if("&"===n||"\\\\"===n)e.consume();else if("\\end"===n){0===t[t.length-1].length&&t.pop();break}else throw new oc("Expected \\\\ or \\cr or \\end",e.nextToken)}for(var r=[],i=[r],a=0;a<t.length;a++){for(var o=t[a],s=lJ(),l=0;l<o.length;l++)if(lZ(o[l])){r.push(s);var c=lD(o[l+=1]).text,u=[,,];if(u[0]={type:"ordgroup",mode:"math",body:[]},u[1]={type:"ordgroup",mode:"math",body:[]},"=|.".includes(c));else if("<>AV".includes(c))for(var h=0;h<2;h++){for(var p=!0,d=l+1;d<o.length;d++){if(lK(o[d],c)){p=!1,l=d;break}if(lZ(o[d]))throw new oc("Missing a "+c+" character to complete a CD arrow.",o[d]);u[h].body.push(o[d])}if(p)throw new oc("Missing a "+c+" character to complete a CD arrow.",o[l])}else throw new oc('Expected one of "<>AV=|." after @',o[l]);var m={type:"styling",body:[function(e,t,n){var r=lY[e];switch(r){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return n.callFunction(r,[t[0]],[t[1]]);case"\\uparrow":case"\\downarrow":var i=n.callFunction("\\\\cdleft",[t[0]],[]),a=n.callFunction("\\Big",[{type:"atom",text:r,mode:"math",family:"rel"}],[]),o=n.callFunction("\\\\cdright",[t[1]],[]);return n.callFunction("\\\\cdparent",[{type:"ordgroup",mode:"math",body:[i,a,o]}],[]);case"\\\\cdlongequal":return n.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":return n.callFunction("\\Big",[{type:"textord",text:"\\Vert",mode:"math"}],[]);default:return{type:"textord",text:" ",mode:"math"}}}(c,u,e)],mode:"math",style:"display"};r.push(m),s=lJ()}else s.body.push(o[l]);a%2==0?r.push(s):r.shift(),r=[],i.push(r)}e.gullet.endGroup(),e.gullet.endGroup();var f=Array(i[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:i,arraystretch:1,addJot:!0,rowGaps:[null],cols:f,colSeparationType:"CD",hLinesBeforeRow:Array(i.length+1).fill([])}}(e.parser)),htmlBuilder:cP,mathmlBuilder:cO}),c_["\\nonumber"]="\\gdef\\@eqnsw{0}",c_["\\notag"]="\\nonumber",s2({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(e,t){throw new oc(e.funcName+" valid only within array environment")}}),s2({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];if("ordgroup"!==i.type)throw new oc("Invalid environment name",i);for(var a="",o=0;o<i.body.length;++o)a+=lO(i.body[o],"textord").text;if("\\begin"===r){if(!cC.hasOwnProperty(a))throw new oc("No such environment: "+a,i);var s=cC[a],{args:l,optArgs:c}=n.parseArguments("\\begin{"+a+"}",s),u={mode:n.mode,envName:a,parser:n},h=s.handler(u,l,c);n.expect("\\end",!1);var p=n.nextToken,d=lO(n.parseFunction(),"environment");if(d.name!==a)throw new oc("Mismatch: \\begin{"+a+"} matched by \\end{"+d.name+"}",p);return h}return{type:"environment",mode:n.mode,name:a,nameGroup:i}}});var cF=(e,t)=>{var n=e.font,r=t.withFont(n);return lu(e.body,r)},cq=(e,t)=>{var n=e.font,r=t.withFont(n);return lA(e.body,r)},cH={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};s2({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathsfit","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=s8(t[0]),a=r;return a in cH&&(a=cH[a]),{type:"font",mode:n.mode,font:a.slice(1),body:i}},htmlBuilder:cF,mathmlBuilder:cq}),s2({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"mclass",mode:n.mode,mclass:lX(r),body:[{type:"font",mode:n.mode,font:"boldsymbol",body:r}],isCharacterBox:oy(r)}}}),s2({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:r,breakOnTokenText:i}=e,{mode:a}=n,o=n.parseExpression(!0,i);return{type:"font",mode:a,font:"math"+r.slice(1),body:{type:"ordgroup",mode:n.mode,body:o}}},htmlBuilder:cF,mathmlBuilder:cq});var cU=(e,t)=>t?{type:"styling",mode:e.mode,style:t,body:[e]}:e;s2({type:"genfrac",names:["\\cfrac","\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(e,t)=>{var n,{parser:r,funcName:i}=e,a=t[0],o=t[1],s=null,l=null;switch(i){case"\\cfrac":case"\\dfrac":case"\\frac":case"\\tfrac":n=!0;break;case"\\\\atopfrac":n=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":n=!1,s="(",l=")";break;case"\\\\bracefrac":n=!1,s="\\{",l="\\}";break;case"\\\\brackfrac":n=!1,s="[",l="]";break;default:throw Error("Unrecognized genfrac command")}var c="\\cfrac"===i,u=null;return c||i.startsWith("\\d")?u="display":i.startsWith("\\t")&&(u="text"),cU({type:"genfrac",mode:r.mode,numer:a,denom:o,continued:c,hasBarLine:n,leftDelim:s,rightDelim:l,barSize:null},u)},htmlBuilder:(e,t)=>{var n,r,i,a,o,s,l,c,u,h,p,d=t.style,m=d.fracNum(),f=d.fracDen();n=t.havingStyle(m);var g=lu(e.numer,n,t);if(e.continued){var y=8.5/t.fontMetrics().ptPerEm,b=3.5/t.fontMetrics().ptPerEm;g.height=g.height<y?y:g.height,g.depth=g.depth<b?b:g.depth}n=t.havingStyle(f);var v=lu(e.denom,n,t);if(e.hasBarLine?(e.barSize?(i=oF(e.barSize,t),r=sq("frac-line",t,i)):r=sq("frac-line",t),i=r.height,a=r.height):(r=null,i=0,a=t.fontMetrics().defaultRuleThickness),d.size===oM.DISPLAY.size?(o=t.fontMetrics().num1,s=i>0?3*a:7*a,l=t.fontMetrics().denom1):(i>0?(o=t.fontMetrics().num2,s=a):(o=t.fontMetrics().num3,s=3*a),l=t.fontMetrics().denom2),r){var x=t.fontMetrics().axisHeight;o-g.depth-(x+.5*i)<s&&(o+=s-(o-g.depth-(x+.5*i))),x-.5*i-(v.height-l)<s&&(l+=s-(x-.5*i-(v.height-l))),c=sV({positionType:"individualShift",children:[{type:"elem",elem:v,shift:l},{type:"elem",elem:r,shift:-(x-.5*i)},{type:"elem",elem:g,shift:-o}]})}else{var k=o-g.depth-(v.height-l);k<s&&(o+=.5*(s-k),l+=.5*(s-k)),c=sV({positionType:"individualShift",children:[{type:"elem",elem:v,shift:l},{type:"elem",elem:g,shift:-o}]})}return n=t.havingStyle(d),c.height*=n.sizeMultiplier/t.sizeMultiplier,c.depth*=n.sizeMultiplier/t.sizeMultiplier,u=d.size===oM.DISPLAY.size?t.fontMetrics().delim1:d.size===oM.SCRIPTSCRIPT.size?t.havingStyle(oM.SCRIPT).fontMetrics().delim2:t.fontMetrics().delim2,h=null==e.leftDelim?lc(t,["mopen"]):cy(e.leftDelim,u,!0,t.havingStyle(d),e.mode,["mopen"]),p=e.continued?sD([]):null==e.rightDelim?lc(t,["mclose"]):cy(e.rightDelim,u,!0,t.havingStyle(d),e.mode,["mclose"]),sD(["mord"].concat(n.sizingClasses(t)),[h,sD(["mfrac"],[c]),p],t)},mathmlBuilder:(e,t)=>{var n=new ld("mfrac",[lA(e.numer,t),lA(e.denom,t)]);if(e.hasBarLine){if(e.barSize){var r=oF(e.barSize,t);n.setAttribute("linethickness",oq(r))}}else n.setAttribute("linethickness","0px");if(null!=e.leftDelim||null!=e.rightDelim){var i=[];if(null!=e.leftDelim){var a=new ld("mo",[new lm(e.leftDelim.replace("\\",""))]);a.setAttribute("fence","true"),i.push(a)}if(i.push(n),null!=e.rightDelim){var o=new ld("mo",[new lm(e.rightDelim.replace("\\",""))]);o.setAttribute("fence","true"),i.push(o)}return lv(i)}return n}}),s2({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(e){var t,{parser:n,funcName:r,token:i}=e;switch(r){case"\\over":t="\\frac";break;case"\\choose":t="\\binom";break;case"\\atop":t="\\\\atopfrac";break;case"\\brace":t="\\\\bracefrac";break;case"\\brack":t="\\\\brackfrac";break;default:throw Error("Unrecognized infix genfrac command")}return{type:"infix",mode:n.mode,replaceWith:t,token:i}}});var cG=["display","text","script","scriptscript"],cW=function(e){var t=null;return e.length>0&&(t="."===(t=e)?null:t),t};s2({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(e,t){var n,{parser:r}=e,i=t[4],a=t[5],o=s8(t[0]),s="atom"===o.type&&"open"===o.family?cW(o.text):null,l=s8(t[1]),c="atom"===l.type&&"close"===l.family?cW(l.text):null,u=lO(t[2],"size"),h=null;n=!!u.isBlank||(h=u.value).number>0;var p=null,d=t[3];return"ordgroup"===d.type?d.body.length>0&&(p=cG[Number(lO(d.body[0],"textord").text)]):p=cG[Number((d=lO(d,"textord")).text)],cU({type:"genfrac",mode:r.mode,numer:i,denom:a,continued:!1,hasBarLine:n,barSize:h,leftDelim:s,rightDelim:c},p)}}),s2({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(e,t){var{parser:n,funcName:r,token:i}=e;return{type:"infix",mode:n.mode,replaceWith:"\\\\abovefrac",size:lO(t[0],"size").value,token:i}}}),s2({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0],a=lO(t[1],"infix").size;if(!a)throw Error("\\\\abovefrac expected size, but got "+String(a));var o=t[2],s=a.number>0;return{type:"genfrac",mode:n.mode,numer:i,denom:o,continued:!1,hasBarLine:s,barSize:a,leftDelim:null,rightDelim:null}}});var cV=(e,t)=>{var n,r,i,a=t.style;"supsub"===e.type?(n=e.sup?lu(e.sup,t.havingStyle(a.sup()),t):lu(e.sub,t.havingStyle(a.sub()),t),r=lO(e.base,"horizBrace")):r=lO(e,"horizBrace");var o=lu(r.base,t.havingBaseStyle(oM.DISPLAY)),s=lP(r,t);if(r.isOver?(i=sV({positionType:"firstBaseline",children:[{type:"elem",elem:o},{type:"kern",size:.1},{type:"elem",elem:s}]})).children[0].children[0].children[1].classes.push("svg-align"):(i=sV({positionType:"bottom",positionData:o.depth+.1+s.height,children:[{type:"elem",elem:s},{type:"kern",size:.1},{type:"elem",elem:o}]})).children[0].children[0].children[0].classes.push("svg-align"),n){var l=sD(["minner",r.isOver?"mover":"munder"],[i],t);i=r.isOver?sV({positionType:"firstBaseline",children:[{type:"elem",elem:l},{type:"kern",size:.2},{type:"elem",elem:n}]}):sV({positionType:"bottom",positionData:l.depth+.2+n.height+n.depth,children:[{type:"elem",elem:n},{type:"kern",size:.2},{type:"elem",elem:l}]})}return sD(["minner",r.isOver?"mover":"munder"],[i],t)};s2({type:"horizBrace",names:["\\overbrace","\\underbrace","\\overbracket","\\underbracket"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e;return{type:"horizBrace",mode:n.mode,label:r,isOver:r.includes("\\over"),base:t[0]}},htmlBuilder:cV,mathmlBuilder:(e,t)=>{var n=lR(e.label);return new ld(e.isOver?"mover":"munder",[lA(e.base,t),n])}}),s2({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[1],i=lO(t[0],"url").url;return n.settings.isTrusted({command:"\\href",url:i})?{type:"href",mode:n.mode,href:i,body:s9(r)}:n.formatUnsupportedCmd("\\href")},htmlBuilder:(e,t)=>{var n=li(e.body,t,!1);return sH(e.href,[],n,t)},mathmlBuilder:(e,t)=>{var n=lS(e.body,t);return n instanceof ld||(n=new ld("mrow",[n])),n.setAttribute("href",e.href),n}}),s2({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=lO(t[0],"url").url;if(!n.settings.isTrusted({command:"\\url",url:r}))return n.formatUnsupportedCmd("\\url");for(var i=[],a=0;a<r.length;a++){var o=r[a];"~"===o&&(o="\\textasciitilde"),i.push({type:"textord",mode:"text",text:o})}var s={type:"text",mode:n.mode,font:"\\texttt",body:i};return{type:"href",mode:n.mode,href:r,body:s9(s)}}}),s2({type:"hbox",names:["\\hbox"],props:{numArgs:1,argTypes:["text"],allowedInText:!0,primitive:!0},handler(e,t){var{parser:n}=e;return{type:"hbox",mode:n.mode,body:s9(t[0])}},htmlBuilder:(e,t)=>sU(li(e.body,t,!1)),mathmlBuilder:(e,t)=>new ld("mrow",lw(e.body,t))}),s2({type:"html",names:["\\htmlClass","\\htmlId","\\htmlStyle","\\htmlData"],props:{numArgs:2,argTypes:["raw","original"],allowedInText:!0},handler:(e,t)=>{var n,{parser:r,funcName:i,token:a}=e,o=lO(t[0],"raw").string,s=t[1];r.settings.strict&&r.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var l={};switch(i){case"\\htmlClass":l.class=o,n={command:"\\htmlClass",class:o};break;case"\\htmlId":l.id=o,n={command:"\\htmlId",id:o};break;case"\\htmlStyle":l.style=o,n={command:"\\htmlStyle",style:o};break;case"\\htmlData":for(var c=o.split(","),u=0;u<c.length;u++){var h=c[u],p=h.indexOf("=");if(p<0)throw new oc("\\htmlData key/value '"+h+"' missing equals sign");var d=h.slice(0,p),m=h.slice(p+1);l["data-"+d.trim()]=m}n={command:"\\htmlData",attributes:l};break;default:throw Error("Unrecognized html command")}return r.settings.isTrusted(n)?{type:"html",mode:r.mode,attributes:l,body:s9(s)}:r.formatUnsupportedCmd(i)},htmlBuilder:(e,t)=>{var n=li(e.body,t,!1),r=["enclosing"];e.attributes.class&&r.push(...e.attributes.class.trim().split(/\s+/));var i=sD(r,n,t);for(var a in e.attributes)"class"!==a&&e.attributes.hasOwnProperty(a)&&i.setAttribute(a,e.attributes[a]);return i},mathmlBuilder:(e,t)=>lS(e.body,t)}),s2({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInArgument:!0,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e;return{type:"htmlmathml",mode:n.mode,html:s9(t[0]),mathml:s9(t[1])}},htmlBuilder:(e,t)=>sU(li(e.html,t,!1)),mathmlBuilder:(e,t)=>lS(e.mathml,t)});var c$=function(e){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(e))return{number:+e,unit:"bp"};var t=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(e);if(!t)throw new oc("Invalid size: '"+e+"' in \\includegraphics");var n={number:+(t[1]+t[2]),unit:t[3]};if(!oD(n))throw new oc("Invalid unit: '"+n.unit+"' in \\includegraphics.");return n};s2({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(e,t,n)=>{var{parser:r}=e,i={number:0,unit:"em"},a={number:.9,unit:"em"},o={number:0,unit:"em"},s="";if(n[0])for(var l=lO(n[0],"raw").string.split(","),c=0;c<l.length;c++){var u=l[c].split("=");if(2===u.length){var h=u[1].trim();switch(u[0].trim()){case"alt":s=h;break;case"width":i=c$(h);break;case"height":a=c$(h);break;case"totalheight":o=c$(h);break;default:throw new oc("Invalid key: '"+u[0]+"' in \\includegraphics.")}}}var p=lO(t[0],"url").url;return(""===s&&(s=(s=(s=p).replace(/^.*[\\/]/,"")).substring(0,s.lastIndexOf("."))),r.settings.isTrusted({command:"\\includegraphics",url:p}))?{type:"includegraphics",mode:r.mode,alt:s,width:i,height:a,totalheight:o,src:p}:r.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:(e,t)=>{var n=oF(e.height,t),r=0;e.totalheight.number>0&&(r=oF(e.totalheight,t)-n);var i=0;e.width.number>0&&(i=oF(e.width,t));var a={height:oq(n+r)};i>0&&(a.width=oq(i)),r>0&&(a.verticalAlign=oq(-r));var o=new oY(e.src,e.alt,a);return o.height=n,o.depth=r,o},mathmlBuilder:(e,t)=>{var n=new ld("mglyph",[]);n.setAttribute("alt",e.alt);var r=oF(e.height,t),i=0;if(e.totalheight.number>0&&(i=oF(e.totalheight,t)-r,n.setAttribute("valign",oq(-i))),n.setAttribute("height",oq(r+i)),e.width.number>0){var a=oF(e.width,t);n.setAttribute("width",oq(a))}return n.setAttribute("src",e.src),n}}),s2({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(e,t){var{parser:n,funcName:r}=e,i=lO(t[0],"size");if(n.settings.strict){var a="m"===r[1],o="mu"===i.value.unit;a?(o||n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" supports only mu units, not "+i.value.unit+" units"),"math"!==n.mode&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" works only in math mode")):o&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" doesn't support mu units")}return{type:"kern",mode:n.mode,dimension:i.value}},htmlBuilder:(e,t)=>s$(e.dimension,t),mathmlBuilder:(e,t)=>new lf(oF(e.dimension,t))}),s2({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0];return{type:"lap",mode:n.mode,alignment:r.slice(5),body:i}},htmlBuilder:(e,t)=>{"clap"===e.alignment?(n=sD([],[lu(e.body,t)]),n=sD(["inner"],[n],t)):n=sD(["inner"],[lu(e.body,t)]);var n,r=sD(["fix"],[]),i=sD([e.alignment],[n,r],t),a=sD(["strut"]);return a.style.height=oq(i.height+i.depth),i.depth&&(a.style.verticalAlign=oq(-i.depth)),i.children.unshift(a),i=sD(["thinbox"],[i],t),sD(["mord","vbox"],[i],t)},mathmlBuilder:(e,t)=>{var n=new ld("mpadded",[lA(e.body,t)]);if("rlap"!==e.alignment){var r="llap"===e.alignment?"-1":"-0.5";n.setAttribute("lspace",r+"width")}return n.setAttribute("width","0px"),n}}),s2({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){var{funcName:n,parser:r}=e,i=r.mode;r.switchMode("math");var a="\\("===n?"\\)":"$",o=r.parseExpression(!1,a);return r.expect(a),r.switchMode(i),{type:"styling",mode:r.mode,style:"text",body:o}}}),s2({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){throw new oc("Mismatched "+e.funcName)}});var cX=(e,t)=>{switch(t.style.size){case oM.DISPLAY.size:return e.display;case oM.TEXT.size:return e.text;case oM.SCRIPT.size:return e.script;case oM.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};s2({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(e,t)=>{var{parser:n}=e;return{type:"mathchoice",mode:n.mode,display:s9(t[0]),text:s9(t[1]),script:s9(t[2]),scriptscript:s9(t[3])}},htmlBuilder:(e,t)=>sU(li(cX(e,t),t,!1)),mathmlBuilder:(e,t)=>lS(cX(e,t),t)});var cY=(e,t,n,r,i,a,o)=>{e=sD([],[e]);var s,l,c,u=n&&oy(n);if(t){var h=lu(t,r.havingStyle(i.sup()),r);l={elem:h,kern:Math.max(r.fontMetrics().bigOpSpacing1,r.fontMetrics().bigOpSpacing3-h.depth)}}if(n){var p=lu(n,r.havingStyle(i.sub()),r);s={elem:p,kern:Math.max(r.fontMetrics().bigOpSpacing2,r.fontMetrics().bigOpSpacing4-p.height)}}if(l&&s)c=sV({positionType:"bottom",positionData:r.fontMetrics().bigOpSpacing5+s.elem.height+s.elem.depth+s.kern+e.depth+o,children:[{type:"kern",size:r.fontMetrics().bigOpSpacing5},{type:"elem",elem:s.elem,marginLeft:oq(-a)},{type:"kern",size:s.kern},{type:"elem",elem:e},{type:"kern",size:l.kern},{type:"elem",elem:l.elem,marginLeft:oq(a)},{type:"kern",size:r.fontMetrics().bigOpSpacing5}]});else if(s)c=sV({positionType:"top",positionData:e.height-o,children:[{type:"kern",size:r.fontMetrics().bigOpSpacing5},{type:"elem",elem:s.elem,marginLeft:oq(-a)},{type:"kern",size:s.kern},{type:"elem",elem:e}]});else{if(!l)return e;c=sV({positionType:"bottom",positionData:e.depth+o,children:[{type:"elem",elem:e},{type:"kern",size:l.kern},{type:"elem",elem:l.elem,marginLeft:oq(a)},{type:"kern",size:r.fontMetrics().bigOpSpacing5}]})}var d=[c];if(s&&0!==a&&!u){var m=sD(["mspace"],[],r);m.style.marginRight=oq(a),d.unshift(m)}return sD(["mop","op-limits"],d,r)},cJ=new Set(["\\smallint"]),cZ=(e,t)=>{var n,r,i,a,o=!1;"supsub"===e.type?(n=e.sup,r=e.sub,i=lO(e.base,"op"),o=!0):i=lO(e,"op");var s=t.style,l=!1;if(s.size===oM.DISPLAY.size&&i.symbol&&!cJ.has(i.name)&&(l=!0),i.symbol){var c=l?"Size2-Regular":"Size1-Regular",u="";if(("\\oiint"===i.name||"\\oiiint"===i.name)&&(u=i.name.slice(1),i.name="oiint"===u?"\\iint":"\\iiint"),a=sR(i.name,c,"math",t,["mop","op-symbol",l?"large-op":"small-op"]),u.length>0){var h=a.italic;a=sV({positionType:"individualShift",children:[{type:"elem",elem:a,shift:0},{type:"elem",elem:sZ(u+"Size"+(l?"2":"1"),t),shift:.08*!!l}]}),i.name="\\"+u,a.classes.unshift("mop"),a.italic=h}}else if(i.body){var p=li(i.body,t,!0);1===p.length&&p[0]instanceof oZ?(a=p[0]).classes[0]="mop":a=sD(["mop"],p,t)}else{for(var d=[],m=1;m<i.name.length;m++)d.push(sj(i.name[m],i.mode,t));a=sD(["mop"],d,t)}var f=0,g=0;return((a instanceof oZ||"\\oiint"===i.name||"\\oiiint"===i.name)&&!i.suppressBaseShift&&(f=(a.height-a.depth)/2-t.fontMetrics().axisHeight,g=a.italic||0),o)?cY(a,n,r,t,s,g,f):(f&&(a.style.position="relative",a.style.top=oq(f)),a)},cK=(e,t)=>{var n;if(e.symbol)n=new ld("mo",[lb(e.name,e.mode)]),cJ.has(e.name)&&n.setAttribute("largeop","false");else if(e.body)n=new ld("mo",lw(e.body,t));else{n=new ld("mi",[new lm(e.name.slice(1))]);var r=new ld("mo",[lb("","text")]);n=e.parentIsSupSub?new ld("mrow",[n,r]):new oP([n,r])}return n},cQ={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};s2({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","∏","∐","∑","⋀","⋁","⋂","⋃","⨀","⨁","⨂","⨄","⨆"],props:{numArgs:0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=r;return 1===i.length&&(i=cQ[i]),{type:"op",mode:n.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:i}},htmlBuilder:cZ,mathmlBuilder:cK}),s2({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"op",mode:n.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:s9(r)}},htmlBuilder:cZ,mathmlBuilder:cK});var c0={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};s2({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e;return{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:cZ,mathmlBuilder:cK}),s2({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e;return{type:"op",mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:cZ,mathmlBuilder:cK}),s2({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],props:{numArgs:0,allowedInArgument:!0},handler(e){var{parser:t,funcName:n}=e,r=n;return 1===r.length&&(r=c0[r]),{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:r}},htmlBuilder:cZ,mathmlBuilder:cK});var c1=(e,t)=>{var n,r,i,a,o=!1;if("supsub"===e.type?(n=e.sup,r=e.sub,i=lO(e.base,"operatorname"),o=!0):i=lO(e,"operatorname"),i.body.length>0){for(var s=li(i.body.map(e=>{var t="text"in e?e.text:void 0;return"string"==typeof t?{type:"textord",mode:e.mode,text:t}:e}),t.withFont("mathrm"),!0),l=0;l<s.length;l++){var c=s[l];c instanceof oZ&&(c.text=c.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}a=sD(["mop"],s,t)}else a=sD(["mop"],[],t);return o?cY(a,n,r,t,t.style,0,0):a};function c4(e,t,n){for(var r=li(e,t,!1),i=t.sizeMultiplier/n.sizeMultiplier,a=0;a<r.length;a++){var o=r[a].classes.indexOf("sizing");o<0?Array.prototype.push.apply(r[a].classes,t.sizingClasses(n)):r[a].classes[o+1]==="reset-size"+t.size&&(r[a].classes[o+1]="reset-size"+n.size),r[a].height*=i,r[a].depth*=i}return sU(r)}s2({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0];return{type:"operatorname",mode:n.mode,body:s9(i),alwaysHandleSupSub:"\\operatornamewithlimits"===r,limits:!1,parentIsSupSub:!1}},htmlBuilder:c1,mathmlBuilder:(e,t)=>{for(var n=lw(e.body,t.withFont("mathrm")),r=!0,i=0;i<n.length;i++){var a=n[i];if(a instanceof lf);else if(a instanceof ld)switch(a.type){case"mi":case"mn":case"mspace":case"mtext":break;case"mo":var o=a.children[0];1===a.children.length&&o instanceof lm?o.text=o.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):r=!1;break;default:r=!1}else r=!1}r&&(n=[new lm(n.map(e=>e.toText()).join(""))]);var s=new ld("mi",n);s.setAttribute("mathvariant","normal");var l=new ld("mo",[lb("","text")]);return e.parentIsSupSub?new ld("mrow",[s,l]):new oP([s,l])}}),c_["\\operatorname"]="\\@ifstar\\operatornamewithlimits\\operatorname@",s7({type:"ordgroup",htmlBuilder:(e,t)=>e.semisimple?sU(li(e.body,t,!1)):sD(["mord"],li(e.body,t,!0),t),mathmlBuilder:(e,t)=>lS(e.body,t,!0)}),s2({type:"overline",names:["\\overline"],props:{numArgs:1},handler(e,t){var{parser:n}=e,r=t[0];return{type:"overline",mode:n.mode,body:r}},htmlBuilder(e,t){var n=lu(e.body,t.havingCrampedStyle()),r=sq("overline-line",t),i=t.fontMetrics().defaultRuleThickness;return sD(["mord","overline"],[sV({positionType:"firstBaseline",children:[{type:"elem",elem:n},{type:"kern",size:3*i},{type:"elem",elem:r},{type:"kern",size:i}]})],t)},mathmlBuilder(e,t){var n=new ld("mo",[new lm("‾")]);n.setAttribute("stretchy","true");var r=new ld("mover",[lA(e.body,t),n]);return r.setAttribute("accent","true"),r}}),s2({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"phantom",mode:n.mode,body:s9(r)}},htmlBuilder:(e,t)=>sU(li(e.body,t.withPhantom(),!1)),mathmlBuilder:(e,t)=>new ld("mphantom",lw(e.body,t))}),c_["\\hphantom"]="\\smash{\\phantom{#1}}",s2({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"vphantom",mode:n.mode,body:r}},htmlBuilder:(e,t)=>{var n=sD(["inner"],[lu(e.body,t.withPhantom())]),r=sD(["fix"],[]);return sD(["mord","rlap"],[n,r],t)},mathmlBuilder:(e,t)=>{var n=new ld("mphantom",lw(s9(e.body),t)),r=new ld("mpadded",[n]);return r.setAttribute("width","0px"),r}}),s2({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(e,t){var{parser:n}=e,r=lO(t[0],"size").value,i=t[1];return{type:"raisebox",mode:n.mode,dy:r,body:i}},htmlBuilder(e,t){var n=lu(e.body,t);return sV({positionType:"shift",positionData:-oF(e.dy,t),children:[{type:"elem",elem:n}]})},mathmlBuilder(e,t){var n=new ld("mpadded",[lA(e.body,t)]),r=e.dy.number+e.dy.unit;return n.setAttribute("voffset",r),n}}),s2({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0,allowedInArgument:!0},handler(e){var{parser:t}=e;return{type:"internal",mode:t.mode}}}),s2({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["size","size","size"]},handler(e,t,n){var{parser:r}=e,i=n[0],a=lO(t[0],"size"),o=lO(t[1],"size");return{type:"rule",mode:r.mode,shift:i&&lO(i,"size").value,width:a.value,height:o.value}},htmlBuilder(e,t){var n=sD(["mord","rule"],[],t),r=oF(e.width,t),i=oF(e.height,t),a=e.shift?oF(e.shift,t):0;return n.style.borderRightWidth=oq(r),n.style.borderTopWidth=oq(i),n.style.bottom=oq(a),n.width=r,n.height=i+a,n.depth=-a,n.maxFontSize=1.125*i*t.sizeMultiplier,n},mathmlBuilder(e,t){var n=oF(e.width,t),r=oF(e.height,t),i=e.shift?oF(e.shift,t):0,a=t.color&&t.getColor()||"black",o=new ld("mspace");o.setAttribute("mathbackground",a),o.setAttribute("width",oq(n)),o.setAttribute("height",oq(r));var s=new ld("mpadded",[o]);return i>=0?s.setAttribute("height",oq(i)):(s.setAttribute("height",oq(i)),s.setAttribute("depth",oq(-i))),s.setAttribute("voffset",oq(i)),s}});var c5=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"];s2({type:"sizing",names:c5,props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{breakOnTokenText:n,funcName:r,parser:i}=e,a=i.parseExpression(!1,n);return{type:"sizing",mode:i.mode,size:c5.indexOf(r)+1,body:a}},htmlBuilder:(e,t)=>{var n=t.havingSize(e.size);return c4(e.body,n,t)},mathmlBuilder:(e,t)=>{var n=t.havingSize(e.size),r=new ld("mstyle",lw(e.body,n));return r.setAttribute("mathsize",oq(n.sizeMultiplier)),r}}),s2({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(e,t,n)=>{var{parser:r}=e,i=!1,a=!1,o=n[0]&&lO(n[0],"ordgroup");if(o)for(var s="",l=0;l<o.body.length;++l)if("t"===(s=lD(o.body[l]).text))i=!0;else if("b"===s)a=!0;else{i=!1,a=!1;break}else i=!0,a=!0;var c=t[0];return{type:"smash",mode:r.mode,body:c,smashHeight:i,smashDepth:a}},htmlBuilder:(e,t)=>{var n=sD([],[lu(e.body,t)]);if(!e.smashHeight&&!e.smashDepth)return n;if(e.smashHeight&&(n.height=0),e.smashDepth&&(n.depth=0),e.smashHeight&&e.smashDepth)return sD(["mord","smash"],[n],t);if(n.children)for(var r=0;r<n.children.length;r++)e.smashHeight&&(n.children[r].height=0),e.smashDepth&&(n.children[r].depth=0);return sD(["mord"],[sV({positionType:"firstBaseline",children:[{type:"elem",elem:n}]})],t)},mathmlBuilder:(e,t)=>{var n=new ld("mpadded",[lA(e.body,t)]);return e.smashHeight&&n.setAttribute("height","0px"),e.smashDepth&&n.setAttribute("depth","0px"),n}}),s2({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,n){var{parser:r}=e,i=n[0],a=t[0];return{type:"sqrt",mode:r.mode,body:a,index:i}},htmlBuilder(e,t){var n=lu(e.body,t.havingCrampedStyle());0===n.height&&(n.height=t.fontMetrics().xHeight),n=sG(n,t);var r=t.fontMetrics().defaultRuleThickness,i=r;t.style.id<oM.TEXT.id&&(i=t.fontMetrics().xHeight);var a=r+i/4,{span:o,ruleWidth:s,advanceWidth:l}=co(n.height+n.depth+a+r,t),c=o.height-s;c>n.height+n.depth+a&&(a=(a+c-n.height-n.depth)/2);var u=o.height-n.height-a-s;n.style.paddingLeft=oq(l);var h=sV({positionType:"firstBaseline",children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:-(n.height+u)},{type:"elem",elem:o},{type:"kern",size:s}]});if(!e.index)return sD(["mord","sqrt"],[h],t);var p=t.havingStyle(oM.SCRIPTSCRIPT),d=lu(e.index,p,t),m=sD(["root"],[sV({positionType:"shift",positionData:-(.6*(h.height-h.depth)),children:[{type:"elem",elem:d}]})]);return sD(["mord","sqrt"],[m,h],t)},mathmlBuilder(e,t){var{body:n,index:r}=e;return r?new ld("mroot",[lA(n,t),lA(r,t)]):new ld("msqrt",[lA(n,t)])}});var c6={display:oM.DISPLAY,text:oM.TEXT,script:oM.SCRIPT,scriptscript:oM.SCRIPTSCRIPT};s2({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e,t){var{breakOnTokenText:n,funcName:r,parser:i}=e,a=i.parseExpression(!0,n),o=r.slice(1,r.length-5);return{type:"styling",mode:i.mode,style:o,body:a}},htmlBuilder(e,t){var n=c6[e.style],r=t.havingStyle(n).withFont("");return c4(e.body,r,t)},mathmlBuilder(e,t){var n=c6[e.style],r=t.havingStyle(n),i=new ld("mstyle",lw(e.body,r)),a={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]}[e.style];return i.setAttribute("scriptlevel",a[0]),i.setAttribute("displaystyle",a[1]),i}});var c3=function(e,t){var n=e.base;if(!n)return null;if("op"===n.type)return n.limits&&(t.style.size===oM.DISPLAY.size||n.alwaysHandleSupSub)?cZ:null;if("operatorname"===n.type)return n.alwaysHandleSupSub&&(t.style.size===oM.DISPLAY.size||n.limits)?c1:null;if("accent"===n.type)return oy(n.base)?lH:null;if("horizBrace"===n.type)return!e.sub===n.isOver?cV:null;else return null};s7({type:"supsub",htmlBuilder(e,t){var n,r,i,a,o=c3(e,t);if(o)return o(e,t);var{base:s,sup:l,sub:c}=e,u=lu(s,t),h=t.fontMetrics(),p=0,d=0,m=s&&oy(s);if(l){var f=t.havingStyle(t.style.sup());n=lu(l,f,t),m||(p=u.height-f.fontMetrics().supDrop*f.sizeMultiplier/t.sizeMultiplier)}if(c){var g=t.havingStyle(t.style.sub());r=lu(c,g,t),m||(d=u.depth+g.fontMetrics().subDrop*g.sizeMultiplier/t.sizeMultiplier)}i=t.style===oM.DISPLAY?h.sup1:t.style.cramped?h.sup3:h.sup2;var y=t.sizeMultiplier,b=oq(.5/h.ptPerEm/y),v=null;if(r){var x=e.base&&"op"===e.base.type&&e.base.name&&("\\oiint"===e.base.name||"\\oiiint"===e.base.name);(u instanceof oZ||x)&&(v=oq(-u.italic))}if(n&&r){p=Math.max(p,i,n.depth+.25*h.xHeight),d=Math.max(d,h.sub2);var k=4*h.defaultRuleThickness;if(p-n.depth-(r.height-d)<k){d=k-(p-n.depth)+r.height;var w=.8*h.xHeight-(p-n.depth);w>0&&(p+=w,d-=w)}a=sV({positionType:"individualShift",children:[{type:"elem",elem:r,shift:d,marginRight:b,marginLeft:v},{type:"elem",elem:n,shift:-p,marginRight:b}]})}else if(r)a=sV({positionType:"shift",positionData:d=Math.max(d,h.sub1,r.height-.8*h.xHeight),children:[{type:"elem",elem:r,marginLeft:v,marginRight:b}]});else if(n)a=sV({positionType:"shift",positionData:-(p=Math.max(p,i,n.depth+.25*h.xHeight)),children:[{type:"elem",elem:n,marginRight:b}]});else throw Error("supsub must have either sup or sub.");return sD([ll(u,"right")||"mord"],[u,sD(["msupsub"],[a])],t)},mathmlBuilder(e,t){var n,r,i=!1;e.base&&"horizBrace"===e.base.type&&!!e.sup===e.base.isOver&&(i=!0,n=e.base.isOver),e.base&&("op"===e.base.type||"operatorname"===e.base.type)&&(e.base.parentIsSupSub=!0);var a=[lA(e.base,t)];if(e.sub&&a.push(lA(e.sub,t)),e.sup&&a.push(lA(e.sup,t)),i)r=n?"mover":"munder";else if(e.sub)if(e.sup){var o=e.base;r=o&&"op"===o.type&&o.limits&&t.style===oM.DISPLAY||o&&"operatorname"===o.type&&o.alwaysHandleSupSub&&(t.style===oM.DISPLAY||o.limits)?"munderover":"msubsup"}else{var s=e.base;r=s&&"op"===s.type&&s.limits&&(t.style===oM.DISPLAY||s.alwaysHandleSupSub)||s&&"operatorname"===s.type&&s.alwaysHandleSupSub&&(s.limits||t.style===oM.DISPLAY)?"munder":"msub"}else{var l=e.base;r=l&&"op"===l.type&&l.limits&&(t.style===oM.DISPLAY||l.alwaysHandleSupSub)||l&&"operatorname"===l.type&&l.alwaysHandleSupSub&&(l.limits||t.style===oM.DISPLAY)?"mover":"msup"}return new ld(r,a)}}),s7({type:"atom",htmlBuilder:(e,t)=>sj(e.text,e.mode,t,["m"+e.family]),mathmlBuilder(e,t){var n=new ld("mo",[lb(e.text,e.mode)]);if("bin"===e.family){var r=lx(e,t);"bold-italic"===r&&n.setAttribute("mathvariant",r)}else"punct"===e.family?n.setAttribute("separator","true"):("open"===e.family||"close"===e.family)&&n.setAttribute("stretchy","false");return n}});var c2={mi:"italic",mn:"normal",mtext:"normal"};s7({type:"mathord",htmlBuilder:(e,t)=>sL(e,t,"mathord"),mathmlBuilder(e,t){var n=new ld("mi",[lb(e.text,e.mode,t)]),r=lx(e,t)||"italic";return r!==c2[n.type]&&n.setAttribute("mathvariant",r),n}}),s7({type:"textord",htmlBuilder:(e,t)=>sL(e,t,"textord"),mathmlBuilder(e,t){var n,r=lb(e.text,e.mode,t),i=lx(e,t)||"normal";return i!==c2[(n="text"===e.mode?new ld("mtext",[r]):/[0-9]/.test(e.text)?new ld("mn",[r]):"\\prime"===e.text?new ld("mo",[r]):new ld("mi",[r])).type]&&n.setAttribute("mathvariant",i),n}});var c7={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},c8={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};s7({type:"spacing",htmlBuilder(e,t){if(c8.hasOwnProperty(e.text)){var n=c8[e.text].className||"";if("text"!==e.mode)return sD(["mspace",n],[sj(e.text,e.mode,t)],t);var r=sL(e,t,"textord");return r.classes.push(n),r}if(c7.hasOwnProperty(e.text))return sD(["mspace",c7[e.text]],[],t);throw new oc('Unknown type of space "'+e.text+'"')},mathmlBuilder(e,t){var n;if(c8.hasOwnProperty(e.text))n=new ld("mtext",[new lm(" ")]);else if(c7.hasOwnProperty(e.text))return new ld("mspace");else throw new oc('Unknown type of space "'+e.text+'"');return n}});var c9=()=>{var e=new ld("mtd",[]);return e.setAttribute("width","50%"),e};s7({type:"tag",mathmlBuilder(e,t){var n=new ld("mtable",[new ld("mtr",[c9(),new ld("mtd",[lS(e.body,t)]),c9(),new ld("mtd",[lS(e.tag,t)])])]);return n.setAttribute("width","100%"),n}});var ue={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},ut={"\\textbf":"textbf","\\textmd":"textmd"},un={"\\textit":"textit","\\textup":"textup"},ur=(e,t)=>{var n=e.font;return n?ue[n]?t.withTextFontFamily(ue[n]):ut[n]?t.withTextFontWeight(ut[n]):"\\emph"===n?"textit"===t.fontShape?t.withTextFontShape("textup"):t.withTextFontShape("textit"):t.withTextFontShape(un[n]):t};s2({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup","\\emph"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];return{type:"text",mode:n.mode,body:s9(i),font:r}},htmlBuilder(e,t){var n=ur(e,t);return sD(["mord","text"],li(e.body,n,!0),n)},mathmlBuilder(e,t){var n=ur(e,t);return lS(e.body,n)}}),s2({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"underline",mode:n.mode,body:t[0]}},htmlBuilder(e,t){var n=lu(e.body,t),r=sq("underline-line",t),i=t.fontMetrics().defaultRuleThickness;return sD(["mord","underline"],[sV({positionType:"top",positionData:n.height,children:[{type:"kern",size:i},{type:"elem",elem:r},{type:"kern",size:3*i},{type:"elem",elem:n}]})],t)},mathmlBuilder(e,t){var n=new ld("mo",[new lm("‾")]);n.setAttribute("stretchy","true");var r=new ld("munder",[lA(e.body,t),n]);return r.setAttribute("accentunder","true"),r}}),s2({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(e,t){var{parser:n}=e;return{type:"vcenter",mode:n.mode,body:t[0]}},htmlBuilder(e,t){var n=lu(e.body,t),r=t.fontMetrics().axisHeight;return sV({positionType:"shift",positionData:.5*(n.height-r-(n.depth+r)),children:[{type:"elem",elem:n}]})},mathmlBuilder(e,t){var n=new ld("mpadded",[lA(e.body,t)],["vcenter"]);return new ld("mrow",[n])}}),s2({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(e,t,n){throw new oc("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(e,t){for(var n=ui(e),r=[],i=t.havingStyle(t.style.text()),a=0;a<n.length;a++){var o=n[a];"~"===o&&(o="\\textasciitilde"),r.push(sR(o,"Typewriter-Regular",e.mode,i,["mord","texttt"]))}return sD(["mord","text"].concat(i.sizingClasses(t)),sB(r),i)},mathmlBuilder(e,t){var n=new ld("mtext",[new lm(ui(e))]);return n.setAttribute("mathvariant","monospace"),n}});var ui=e=>e.body.replace(/ /g,e.star?"␣":" "),ua="[ \r\n ]",uo="[̀-ͯ]",us=RegExp(uo+"+$"),ul="("+ua+"+)|\\\\(\n|[ \r ]+\n?)[ \r ]*|([!-\\[\\]-‧-豈-]"+uo+"*|[\uD800-\uDBFF][\uDC00-\uDFFF]"+uo+"*|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5|(\\\\[a-zA-Z@]+)"+ua+"*|\\\\[^\uD800-\uDFFF])";class uc{setCatcode(e,t){this.catcodes[e]=t}lex(){var e=this.input,t=this.tokenRegex.lastIndex;if(t===e.length)return new cN("EOF",new cM(this,t,t));var n=this.tokenRegex.exec(e);if(null===n||n.index!==t)throw new oc("Unexpected character: '"+e[t]+"'",new cN(e[t],new cM(this,t,t+1)));var r=n[6]||n[3]||(n[2]?"\\ ":" ");if(14===this.catcodes[r]){var i=e.indexOf("\n",this.tokenRegex.lastIndex);return -1===i?(this.tokenRegex.lastIndex=e.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=i+1,this.lex()}return new cN(r,new cM(this,t,this.tokenRegex.lastIndex))}constructor(e,t){this.input=e,this.settings=t,this.tokenRegex=RegExp(ul,"g"),this.catcodes={"%":14,"~":13}}}class uu{beginGroup(){this.undefStack.push({})}endGroup(){if(0===this.undefStack.length)throw new oc("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var e=this.undefStack.pop();for(var t in e)e.hasOwnProperty(t)&&(null==e[t]?delete this.current[t]:this.current[t]=e[t])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(e){return this.current.hasOwnProperty(e)||this.builtins.hasOwnProperty(e)}get(e){return this.current.hasOwnProperty(e)?this.current[e]:this.builtins[e]}set(e,t,n){if(void 0===n&&(n=!1),n){for(var r=0;r<this.undefStack.length;r++)delete this.undefStack[r][e];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][e]=t)}else{var i=this.undefStack[this.undefStack.length-1];i&&!i.hasOwnProperty(e)&&(i[e]=this.current[e])}null==t?delete this.current[e]:this.current[e]=t}constructor(e,t){void 0===e&&(e={}),void 0===t&&(t={}),this.current=t,this.builtins=e,this.undefStack=[]}}c_["\\noexpand"]=function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}},c_["\\expandafter"]=function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}},c_["\\@firstoftwo"]=function(e){return{tokens:e.consumeArgs(2)[0],numArgs:0}},c_["\\@secondoftwo"]=function(e){return{tokens:e.consumeArgs(2)[1],numArgs:0}},c_["\\@ifnextchar"]=function(e){var t=e.consumeArgs(3);e.consumeSpaces();var n=e.future();return 1===t[0].length&&t[0][0].text===n.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}},c_["\\@ifstar"]="\\@ifnextchar *{\\@firstoftwo{#1}}",c_["\\TextOrMath"]=function(e){var t=e.consumeArgs(2);return"text"===e.mode?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}};var uh={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};c_["\\char"]=function(e){var t,n,r=e.popToken(),i=0;if("'"===r.text)t=8,r=e.popToken();else if('"'===r.text)t=16,r=e.popToken();else if("`"===r.text)if("\\"===(r=e.popToken()).text[0])i=r.text.charCodeAt(1);else if("EOF"===r.text)throw new oc("\\char` missing argument");else i=r.text.charCodeAt(0);else t=10;if(t){if(null==(i=uh[r.text])||i>=t)throw new oc("Invalid base-"+t+" digit "+r.text);for(;null!=(n=uh[e.future().text])&&n<t;)i*=t,i+=n,e.popToken()}return"\\@char{"+i+"}"};var up=(e,t,n,r)=>{var i=e.consumeArg().tokens;if(1!==i.length)throw new oc("\\newcommand's first argument must be a macro name");var a=i[0].text,o=e.isDefined(a);if(o&&!t)throw new oc("\\newcommand{"+a+"} attempting to redefine "+a+"; use \\renewcommand");if(!o&&!n)throw new oc("\\renewcommand{"+a+"} when command "+a+" does not yet exist; use \\newcommand");var s=0;if(1===(i=e.consumeArg().tokens).length&&"["===i[0].text){for(var l="",c=e.expandNextToken();"]"!==c.text&&"EOF"!==c.text;)l+=c.text,c=e.expandNextToken();if(!l.match(/^\s*[0-9]+\s*$/))throw new oc("Invalid number of arguments: "+l);s=parseInt(l),i=e.consumeArg().tokens}return o&&r||e.macros.set(a,{tokens:i,numArgs:s}),""};c_["\\newcommand"]=e=>up(e,!1,!0,!1),c_["\\renewcommand"]=e=>up(e,!0,!1,!1),c_["\\providecommand"]=e=>up(e,!0,!0,!0),c_["\\message"]=e=>(console.log(e.consumeArgs(1)[0].reverse().map(e=>e.text).join("")),""),c_["\\errmessage"]=e=>(console.error(e.consumeArgs(1)[0].reverse().map(e=>e.text).join("")),""),c_["\\show"]=e=>{var t=e.popToken(),n=t.text;return console.log(t,e.macros.get(n),s5[n],o8.math[n],o8.text[n]),""},c_["\\bgroup"]="{",c_["\\egroup"]="}",c_["~"]="\\nobreakspace",c_["\\lq"]="`",c_["\\rq"]="'",c_["\\aa"]="\\r a",c_["\\AA"]="\\r A",c_["\\textcopyright"]="\\html@mathml{\\textcircled{c}}{\\char`©}",c_["\\copyright"]="\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}",c_["\\textregistered"]="\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}",c_["ℬ"]="\\mathscr{B}",c_["ℰ"]="\\mathscr{E}",c_["ℱ"]="\\mathscr{F}",c_["ℋ"]="\\mathscr{H}",c_["ℐ"]="\\mathscr{I}",c_["ℒ"]="\\mathscr{L}",c_["ℳ"]="\\mathscr{M}",c_["ℛ"]="\\mathscr{R}",c_["ℭ"]="\\mathfrak{C}",c_["ℌ"]="\\mathfrak{H}",c_["ℨ"]="\\mathfrak{Z}",c_["\\Bbbk"]="\\Bbb{k}",c_["\\llap"]="\\mathllap{\\textrm{#1}}",c_["\\rlap"]="\\mathrlap{\\textrm{#1}}",c_["\\clap"]="\\mathclap{\\textrm{#1}}",c_["\\mathstrut"]="\\vphantom{(}",c_["\\underbar"]="\\underline{\\text{#1}}",c_["\\not"]='\\html@mathml{\\mathrel{\\mathrlap\\@not}\\nobreak}{\\char"338}',c_["\\neq"]="\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}",c_["\\ne"]="\\neq",c_["≠"]="\\neq",c_["\\notin"]="\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}",c_["∉"]="\\notin",c_["≘"]="\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}",c_["≙"]="\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}",c_["≚"]="\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}",c_["≛"]="\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}",c_["≝"]="\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}",c_["≞"]="\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}",c_["≟"]="\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}",c_["⟂"]="\\perp",c_["‼"]="\\mathclose{!\\mkern-0.8mu!}",c_["∌"]="\\notni",c_["⌜"]="\\ulcorner",c_["⌝"]="\\urcorner",c_["⌞"]="\\llcorner",c_["⌟"]="\\lrcorner",c_["©"]="\\copyright",c_["®"]="\\textregistered",c_["\\ulcorner"]='\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}',c_["\\urcorner"]='\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}',c_["\\llcorner"]='\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}',c_["\\lrcorner"]='\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}',c_["\\vdots"]="{\\varvdots\\rule{0pt}{15pt}}",c_["⋮"]="\\vdots",c_["\\varGamma"]="\\mathit{\\Gamma}",c_["\\varDelta"]="\\mathit{\\Delta}",c_["\\varTheta"]="\\mathit{\\Theta}",c_["\\varLambda"]="\\mathit{\\Lambda}",c_["\\varXi"]="\\mathit{\\Xi}",c_["\\varPi"]="\\mathit{\\Pi}",c_["\\varSigma"]="\\mathit{\\Sigma}",c_["\\varUpsilon"]="\\mathit{\\Upsilon}",c_["\\varPhi"]="\\mathit{\\Phi}",c_["\\varPsi"]="\\mathit{\\Psi}",c_["\\varOmega"]="\\mathit{\\Omega}",c_["\\substack"]="\\begin{subarray}{c}#1\\end{subarray}",c_["\\colon"]="\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax",c_["\\boxed"]="\\fbox{$\\displaystyle{#1}$}",c_["\\iff"]="\\DOTSB\\;\\Longleftrightarrow\\;",c_["\\implies"]="\\DOTSB\\;\\Longrightarrow\\;",c_["\\impliedby"]="\\DOTSB\\;\\Longleftarrow\\;",c_["\\dddot"]="{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}",c_["\\ddddot"]="{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}";var ud={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"},um=new Set(["bin","rel"]);c_["\\dots"]=function(e){var t="\\dotso",n=e.expandAfterFuture().text;return n in ud?t=ud[n]:"\\not"===n.slice(0,4)?t="\\dotsb":n in o8.math&&um.has(o8.math[n].group)&&(t="\\dotsb"),t};var uf={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};c_["\\dotso"]=function(e){return e.future().text in uf?"\\ldots\\,":"\\ldots"},c_["\\dotsc"]=function(e){var t=e.future().text;return t in uf&&","!==t?"\\ldots\\,":"\\ldots"},c_["\\cdots"]=function(e){return e.future().text in uf?"\\@cdots\\,":"\\@cdots"},c_["\\dotsb"]="\\cdots",c_["\\dotsm"]="\\cdots",c_["\\dotsi"]="\\!\\cdots",c_["\\dotsx"]="\\ldots\\,",c_["\\DOTSI"]="\\relax",c_["\\DOTSB"]="\\relax",c_["\\DOTSX"]="\\relax",c_["\\tmspace"]="\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax",c_["\\,"]="\\tmspace+{3mu}{.1667em}",c_["\\thinspace"]="\\,",c_["\\>"]="\\mskip{4mu}",c_["\\:"]="\\tmspace+{4mu}{.2222em}",c_["\\medspace"]="\\:",c_["\\;"]="\\tmspace+{5mu}{.2777em}",c_["\\thickspace"]="\\;",c_["\\!"]="\\tmspace-{3mu}{.1667em}",c_["\\negthinspace"]="\\!",c_["\\negmedspace"]="\\tmspace-{4mu}{.2222em}",c_["\\negthickspace"]="\\tmspace-{5mu}{.277em}",c_["\\enspace"]="\\kern.5em ",c_["\\enskip"]="\\hskip.5em\\relax",c_["\\quad"]="\\hskip1em\\relax",c_["\\qquad"]="\\hskip2em\\relax",c_["\\tag"]="\\@ifstar\\tag@literal\\tag@paren",c_["\\tag@paren"]="\\tag@literal{({#1})}",c_["\\tag@literal"]=e=>{if(e.macros.get("\\df@tag"))throw new oc("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"},c_["\\bmod"]="\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}",c_["\\pod"]="\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)",c_["\\pmod"]="\\pod{{\\rm mod}\\mkern6mu#1}",c_["\\mod"]="\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1",c_["\\newline"]="\\\\\\relax",c_["\\TeX"]="\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}";var ug=oq(o1["Main-Regular"][84][1]-.7*o1["Main-Regular"][65][1]);c_["\\LaTeX"]="\\textrm{\\html@mathml{L\\kern-.36em\\raisebox{"+ug+"}{\\scriptstyle A}\\kern-.15em\\TeX}{LaTeX}}",c_["\\KaTeX"]="\\textrm{\\html@mathml{K\\kern-.17em\\raisebox{"+ug+"}{\\scriptstyle A}\\kern-.15em\\TeX}{KaTeX}}",c_["\\hspace"]="\\@ifstar\\@hspacer\\@hspace",c_["\\@hspace"]="\\hskip #1\\relax",c_["\\@hspacer"]="\\rule{0pt}{0pt}\\hskip #1\\relax",c_["\\ordinarycolon"]=":",c_["\\vcentcolon"]="\\mathrel{\\mathop\\ordinarycolon}",c_["\\dblcolon"]='\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}',c_["\\coloneqq"]='\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}',c_["\\Coloneqq"]='\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}',c_["\\coloneq"]='\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}',c_["\\Coloneq"]='\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}',c_["\\eqqcolon"]='\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}',c_["\\Eqqcolon"]='\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}',c_["\\eqcolon"]='\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}',c_["\\Eqcolon"]='\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}',c_["\\colonapprox"]='\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}',c_["\\Colonapprox"]='\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}',c_["\\colonsim"]='\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}',c_["\\Colonsim"]='\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}',c_["∷"]="\\dblcolon",c_["∹"]="\\eqcolon",c_["≔"]="\\coloneqq",c_["≕"]="\\eqqcolon",c_["⩴"]="\\Coloneqq",c_["\\ratio"]="\\vcentcolon",c_["\\coloncolon"]="\\dblcolon",c_["\\colonequals"]="\\coloneqq",c_["\\coloncolonequals"]="\\Coloneqq",c_["\\equalscolon"]="\\eqqcolon",c_["\\equalscoloncolon"]="\\Eqqcolon",c_["\\colonminus"]="\\coloneq",c_["\\coloncolonminus"]="\\Coloneq",c_["\\minuscolon"]="\\eqcolon",c_["\\minuscoloncolon"]="\\Eqcolon",c_["\\coloncolonapprox"]="\\Colonapprox",c_["\\coloncolonsim"]="\\Colonsim",c_["\\simcolon"]="\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}",c_["\\simcoloncolon"]="\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}",c_["\\approxcolon"]="\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}",c_["\\approxcoloncolon"]="\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}",c_["\\notni"]="\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}",c_["\\limsup"]="\\DOTSB\\operatorname*{lim\\,sup}",c_["\\liminf"]="\\DOTSB\\operatorname*{lim\\,inf}",c_["\\injlim"]="\\DOTSB\\operatorname*{inj\\,lim}",c_["\\projlim"]="\\DOTSB\\operatorname*{proj\\,lim}",c_["\\varlimsup"]="\\DOTSB\\operatorname*{\\overline{lim}}",c_["\\varliminf"]="\\DOTSB\\operatorname*{\\underline{lim}}",c_["\\varinjlim"]="\\DOTSB\\operatorname*{\\underrightarrow{lim}}",c_["\\varprojlim"]="\\DOTSB\\operatorname*{\\underleftarrow{lim}}",c_["\\gvertneqq"]="\\html@mathml{\\@gvertneqq}{≩}",c_["\\lvertneqq"]="\\html@mathml{\\@lvertneqq}{≨}",c_["\\ngeqq"]="\\html@mathml{\\@ngeqq}{≱}",c_["\\ngeqslant"]="\\html@mathml{\\@ngeqslant}{≱}",c_["\\nleqq"]="\\html@mathml{\\@nleqq}{≰}",c_["\\nleqslant"]="\\html@mathml{\\@nleqslant}{≰}",c_["\\nshortmid"]="\\html@mathml{\\@nshortmid}{∤}",c_["\\nshortparallel"]="\\html@mathml{\\@nshortparallel}{∦}",c_["\\nsubseteqq"]="\\html@mathml{\\@nsubseteqq}{⊈}",c_["\\nsupseteqq"]="\\html@mathml{\\@nsupseteqq}{⊉}",c_["\\varsubsetneq"]="\\html@mathml{\\@varsubsetneq}{⊊}",c_["\\varsubsetneqq"]="\\html@mathml{\\@varsubsetneqq}{⫋}",c_["\\varsupsetneq"]="\\html@mathml{\\@varsupsetneq}{⊋}",c_["\\varsupsetneqq"]="\\html@mathml{\\@varsupsetneqq}{⫌}",c_["\\imath"]="\\html@mathml{\\@imath}{ı}",c_["\\jmath"]="\\html@mathml{\\@jmath}{ȷ}",c_["\\llbracket"]="\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}",c_["\\rrbracket"]="\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}",c_["⟦"]="\\llbracket",c_["⟧"]="\\rrbracket",c_["\\lBrace"]="\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}",c_["\\rBrace"]="\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}",c_["⦃"]="\\lBrace",c_["⦄"]="\\rBrace",c_["\\minuso"]="\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}",c_["⦵"]="\\minuso",c_["\\darr"]="\\downarrow",c_["\\dArr"]="\\Downarrow",c_["\\Darr"]="\\Downarrow",c_["\\lang"]="\\langle",c_["\\rang"]="\\rangle",c_["\\uarr"]="\\uparrow",c_["\\uArr"]="\\Uparrow",c_["\\Uarr"]="\\Uparrow",c_["\\N"]="\\mathbb{N}",c_["\\R"]="\\mathbb{R}",c_["\\Z"]="\\mathbb{Z}",c_["\\alef"]="\\aleph",c_["\\alefsym"]="\\aleph",c_["\\Alpha"]="\\mathrm{A}",c_["\\Beta"]="\\mathrm{B}",c_["\\bull"]="\\bullet",c_["\\Chi"]="\\mathrm{X}",c_["\\clubs"]="\\clubsuit",c_["\\cnums"]="\\mathbb{C}",c_["\\Complex"]="\\mathbb{C}",c_["\\Dagger"]="\\ddagger",c_["\\diamonds"]="\\diamondsuit",c_["\\empty"]="\\emptyset",c_["\\Epsilon"]="\\mathrm{E}",c_["\\Eta"]="\\mathrm{H}",c_["\\exist"]="\\exists",c_["\\harr"]="\\leftrightarrow",c_["\\hArr"]="\\Leftrightarrow",c_["\\Harr"]="\\Leftrightarrow",c_["\\hearts"]="\\heartsuit",c_["\\image"]="\\Im",c_["\\infin"]="\\infty",c_["\\Iota"]="\\mathrm{I}",c_["\\isin"]="\\in",c_["\\Kappa"]="\\mathrm{K}",c_["\\larr"]="\\leftarrow",c_["\\lArr"]="\\Leftarrow",c_["\\Larr"]="\\Leftarrow",c_["\\lrarr"]="\\leftrightarrow",c_["\\lrArr"]="\\Leftrightarrow",c_["\\Lrarr"]="\\Leftrightarrow",c_["\\Mu"]="\\mathrm{M}",c_["\\natnums"]="\\mathbb{N}",c_["\\Nu"]="\\mathrm{N}",c_["\\Omicron"]="\\mathrm{O}",c_["\\plusmn"]="\\pm",c_["\\rarr"]="\\rightarrow",c_["\\rArr"]="\\Rightarrow",c_["\\Rarr"]="\\Rightarrow",c_["\\real"]="\\Re",c_["\\reals"]="\\mathbb{R}",c_["\\Reals"]="\\mathbb{R}",c_["\\Rho"]="\\mathrm{P}",c_["\\sdot"]="\\cdot",c_["\\sect"]="\\S",c_["\\spades"]="\\spadesuit",c_["\\sub"]="\\subset",c_["\\sube"]="\\subseteq",c_["\\supe"]="\\supseteq",c_["\\Tau"]="\\mathrm{T}",c_["\\thetasym"]="\\vartheta",c_["\\weierp"]="\\wp",c_["\\Zeta"]="\\mathrm{Z}",c_["\\argmin"]="\\DOTSB\\operatorname*{arg\\,min}",c_["\\argmax"]="\\DOTSB\\operatorname*{arg\\,max}",c_["\\plim"]="\\DOTSB\\mathop{\\operatorname{plim}}\\limits",c_["\\bra"]="\\mathinner{\\langle{#1}|}",c_["\\ket"]="\\mathinner{|{#1}\\rangle}",c_["\\braket"]="\\mathinner{\\langle{#1}\\rangle}",c_["\\Bra"]="\\left\\langle#1\\right|",c_["\\Ket"]="\\left|#1\\right\\rangle";var uy=e=>t=>{var n=t.consumeArg().tokens,r=t.consumeArg().tokens,i=t.consumeArg().tokens,a=t.consumeArg().tokens,o=t.macros.get("|"),s=t.macros.get("\\|");t.macros.beginGroup();var l=t=>n=>{e&&(n.macros.set("|",o),i.length&&n.macros.set("\\|",s));var a=t;return!t&&i.length&&"|"===n.future().text&&(n.popToken(),a=!0),{tokens:a?i:r,numArgs:0}};t.macros.set("|",l(!1)),i.length&&t.macros.set("\\|",l(!0));var c=t.consumeArg().tokens,u=t.expandTokens([...a,...c,...n]);return t.macros.endGroup(),{tokens:u.reverse(),numArgs:0}};i=uy(!1),c_["\\bra@ket"]=i,a=uy(!0),c_["\\bra@set"]=a,c_["\\Braket"]="\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}",c_["\\Set"]="\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}",c_["\\set"]="\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}",c_["\\angln"]="{\\angl n}",c_["\\blue"]="\\textcolor{##6495ed}{#1}",c_["\\orange"]="\\textcolor{##ffa500}{#1}",c_["\\pink"]="\\textcolor{##ff00af}{#1}",c_["\\red"]="\\textcolor{##df0030}{#1}",c_["\\green"]="\\textcolor{##28ae7b}{#1}",c_["\\gray"]="\\textcolor{gray}{#1}",c_["\\purple"]="\\textcolor{##9d38bd}{#1}",c_["\\blueA"]="\\textcolor{##ccfaff}{#1}",c_["\\blueB"]="\\textcolor{##80f6ff}{#1}",c_["\\blueC"]="\\textcolor{##63d9ea}{#1}",c_["\\blueD"]="\\textcolor{##11accd}{#1}",c_["\\blueE"]="\\textcolor{##0c7f99}{#1}",c_["\\tealA"]="\\textcolor{##94fff5}{#1}",c_["\\tealB"]="\\textcolor{##26edd5}{#1}",c_["\\tealC"]="\\textcolor{##01d1c1}{#1}",c_["\\tealD"]="\\textcolor{##01a995}{#1}",c_["\\tealE"]="\\textcolor{##208170}{#1}",c_["\\greenA"]="\\textcolor{##b6ffb0}{#1}",c_["\\greenB"]="\\textcolor{##8af281}{#1}",c_["\\greenC"]="\\textcolor{##74cf70}{#1}",c_["\\greenD"]="\\textcolor{##1fab54}{#1}",c_["\\greenE"]="\\textcolor{##0d923f}{#1}",c_["\\goldA"]="\\textcolor{##ffd0a9}{#1}",c_["\\goldB"]="\\textcolor{##ffbb71}{#1}",c_["\\goldC"]="\\textcolor{##ff9c39}{#1}",c_["\\goldD"]="\\textcolor{##e07d10}{#1}",c_["\\goldE"]="\\textcolor{##a75a05}{#1}",c_["\\redA"]="\\textcolor{##fca9a9}{#1}",c_["\\redB"]="\\textcolor{##ff8482}{#1}",c_["\\redC"]="\\textcolor{##f9685d}{#1}",c_["\\redD"]="\\textcolor{##e84d39}{#1}",c_["\\redE"]="\\textcolor{##bc2612}{#1}",c_["\\maroonA"]="\\textcolor{##ffbde0}{#1}",c_["\\maroonB"]="\\textcolor{##ff92c6}{#1}",c_["\\maroonC"]="\\textcolor{##ed5fa6}{#1}",c_["\\maroonD"]="\\textcolor{##ca337c}{#1}",c_["\\maroonE"]="\\textcolor{##9e034e}{#1}",c_["\\purpleA"]="\\textcolor{##ddd7ff}{#1}",c_["\\purpleB"]="\\textcolor{##c6b9fc}{#1}",c_["\\purpleC"]="\\textcolor{##aa87ff}{#1}",c_["\\purpleD"]="\\textcolor{##7854ab}{#1}",c_["\\purpleE"]="\\textcolor{##543b78}{#1}",c_["\\mintA"]="\\textcolor{##f5f9e8}{#1}",c_["\\mintB"]="\\textcolor{##edf2df}{#1}",c_["\\mintC"]="\\textcolor{##e0e5cc}{#1}",c_["\\grayA"]="\\textcolor{##f6f7f7}{#1}",c_["\\grayB"]="\\textcolor{##f0f1f2}{#1}",c_["\\grayC"]="\\textcolor{##e3e5e6}{#1}",c_["\\grayD"]="\\textcolor{##d6d8da}{#1}",c_["\\grayE"]="\\textcolor{##babec2}{#1}",c_["\\grayF"]="\\textcolor{##888d93}{#1}",c_["\\grayG"]="\\textcolor{##626569}{#1}",c_["\\grayH"]="\\textcolor{##3b3e40}{#1}",c_["\\grayI"]="\\textcolor{##21242c}{#1}",c_["\\kaBlue"]="\\textcolor{##314453}{#1}",c_["\\kaGreen"]="\\textcolor{##71B307}{#1}";var ub={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class uv{feed(e){this.lexer=new uc(e,this.settings)}switchMode(e){this.mode=e}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return 0===this.stack.length&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(e){this.stack.push(e)}pushTokens(e){this.stack.push(...e)}scanArgument(e){var t,n,r;if(e){if(this.consumeSpaces(),"["!==this.future().text)return null;t=this.popToken(),{tokens:r,end:n}=this.consumeArg(["]"])}else({tokens:r,start:t,end:n}=this.consumeArg());return this.pushToken(new cN("EOF",n.loc)),this.pushTokens(r),new cN("",cM.range(t,n))}consumeSpaces(){for(;;)if(" "===this.future().text)this.stack.pop();else break}consumeArg(e){var t,n=[],r=e&&e.length>0;r||this.consumeSpaces();var i=this.future(),a=0,o=0;do{if(t=this.popToken(),n.push(t),"{"===t.text)++a;else if("}"===t.text){if(-1==--a)throw new oc("Extra }",t)}else if("EOF"===t.text)throw new oc("Unexpected end of input in a macro argument, expected '"+(e&&r?e[o]:"}")+"'",t);if(e&&r)if((0===a||1===a&&"{"===e[o])&&t.text===e[o]){if(++o===e.length){n.splice(-o,o);break}}else o=0}while(0!==a||r)return"{"===i.text&&"}"===n[n.length-1].text&&(n.pop(),n.shift()),n.reverse(),{tokens:n,start:i,end:t}}consumeArgs(e,t){if(t){if(t.length!==e+1)throw new oc("The length of delimiters doesn't match the number of args!");for(var n=t[0],r=0;r<n.length;r++){var i=this.popToken();if(n[r]!==i.text)throw new oc("Use of the macro doesn't match its definition",i)}}for(var a=[],o=0;o<e;o++)a.push(this.consumeArg(t&&t[o+1]).tokens);return a}countExpansion(e){if(this.expansionCount+=e,this.expansionCount>this.settings.maxExpand)throw new oc("Too many expansions: infinite loop or need to increase maxExpand setting")}expandOnce(e){var t=this.popToken(),n=t.text,r=t.noexpand?null:this._getExpansion(n);if(null==r||e&&r.unexpandable){if(e&&null==r&&"\\"===n[0]&&!this.isDefined(n))throw new oc("Undefined control sequence: "+n);return this.pushToken(t),!1}this.countExpansion(1);var i=r.tokens,a=this.consumeArgs(r.numArgs,r.delimiters);if(r.numArgs){i=i.slice();for(var o=i.length-1;o>=0;--o){var s=i[o];if("#"===s.text){if(0===o)throw new oc("Incomplete placeholder at end of macro body",s);if("#"===(s=i[--o]).text)i.splice(o+1,1);else if(/^[1-9]$/.test(s.text))i.splice(o,2,...a[s.text-1]);else throw new oc("Not a valid argument number",s)}}}return this.pushTokens(i),i.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(!1===this.expandOnce()){var e=this.stack.pop();return e.treatAsRelax&&(e.text="\\relax"),e}}expandMacro(e){return this.macros.has(e)?this.expandTokens([new cN(e)]):void 0}expandTokens(e){var t=[],n=this.stack.length;for(this.pushTokens(e);this.stack.length>n;)if(!1===this.expandOnce(!0)){var r=this.stack.pop();r.treatAsRelax&&(r.noexpand=!1,r.treatAsRelax=!1),t.push(r)}return this.countExpansion(t.length),t}expandMacroAsText(e){var t=this.expandMacro(e);return t?t.map(e=>e.text).join(""):t}_getExpansion(e){var t=this.macros.get(e);if(null==t)return t;if(1===e.length){var n=this.lexer.catcodes[e];if(null!=n&&13!==n)return}var r="function"==typeof t?t(this):t;if("string"==typeof r){var i=0;if(r.includes("#"))for(var a=r.replace(/##/g,"");a.includes("#"+(i+1));)++i;for(var o=new uc(r,this.settings),s=[],l=o.lex();"EOF"!==l.text;)s.push(l),l=o.lex();return s.reverse(),{tokens:s,numArgs:i}}return r}isDefined(e){return this.macros.has(e)||s5.hasOwnProperty(e)||o8.math.hasOwnProperty(e)||o8.text.hasOwnProperty(e)||ub.hasOwnProperty(e)}isExpandable(e){var t=this.macros.get(e);return null!=t?"string"==typeof t||"function"==typeof t||!t.unexpandable:s5.hasOwnProperty(e)&&!s5[e].primitive}constructor(e,t,n){this.settings=t,this.expansionCount=0,this.feed(e),this.macros=new uu(c_,t.macros),this.mode=n,this.stack=[]}}var ux=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,uk=Object.freeze({"₊":"+","₋":"-","₌":"=","₍":"(","₎":")","₀":"0","₁":"1","₂":"2","₃":"3","₄":"4","₅":"5","₆":"6","₇":"7","₈":"8","₉":"9",ₐ:"a",ₑ:"e",ₕ:"h",ᵢ:"i",ⱼ:"j",ₖ:"k",ₗ:"l",ₘ:"m",ₙ:"n",ₒ:"o",ₚ:"p",ᵣ:"r",ₛ:"s",ₜ:"t",ᵤ:"u",ᵥ:"v",ₓ:"x",ᵦ:"β",ᵧ:"γ",ᵨ:"ρ",ᵩ:"ϕ",ᵪ:"χ","⁺":"+","⁻":"-","⁼":"=","⁽":"(","⁾":")","⁰":"0","¹":"1","²":"2","³":"3","⁴":"4","⁵":"5","⁶":"6","⁷":"7","⁸":"8","⁹":"9",ᴬ:"A",ᴮ:"B",ᴰ:"D",ᴱ:"E",ᴳ:"G",ᴴ:"H",ᴵ:"I",ᴶ:"J",ᴷ:"K",ᴸ:"L",ᴹ:"M",ᴺ:"N",ᴼ:"O",ᴾ:"P",ᴿ:"R",ᵀ:"T",ᵁ:"U",ⱽ:"V",ᵂ:"W",ᵃ:"a",ᵇ:"b",ᶜ:"c",ᵈ:"d",ᵉ:"e",ᶠ:"f",ᵍ:"g",ʰ:"h",ⁱ:"i",ʲ:"j",ᵏ:"k",ˡ:"l",ᵐ:"m",ⁿ:"n",ᵒ:"o",ᵖ:"p",ʳ:"r",ˢ:"s",ᵗ:"t",ᵘ:"u",ᵛ:"v",ʷ:"w",ˣ:"x",ʸ:"y",ᶻ:"z",ᵝ:"β",ᵞ:"γ",ᵟ:"δ",ᵠ:"ϕ",ᵡ:"χ",ᶿ:"θ"}),uw={"́":{text:"\\'",math:"\\acute"},"̀":{text:"\\`",math:"\\grave"},"̈":{text:'\\"',math:"\\ddot"},"̃":{text:"\\~",math:"\\tilde"},"̄":{text:"\\=",math:"\\bar"},"̆":{text:"\\u",math:"\\breve"},"̌":{text:"\\v",math:"\\check"},"̂":{text:"\\^",math:"\\hat"},"̇":{text:"\\.",math:"\\dot"},"̊":{text:"\\r",math:"\\mathring"},"̋":{text:"\\H"},"̧":{text:"\\c"}},uS={á:"á",à:"à",ä:"ä",ǟ:"ǟ",ã:"ã",ā:"ā",ă:"ă",ắ:"ắ",ằ:"ằ",ẵ:"ẵ",ǎ:"ǎ",â:"â",ấ:"ấ",ầ:"ầ",ẫ:"ẫ",ȧ:"ȧ",ǡ:"ǡ",å:"å",ǻ:"ǻ",ḃ:"ḃ",ć:"ć",ḉ:"ḉ",č:"č",ĉ:"ĉ",ċ:"ċ",ç:"ç",ď:"ď",ḋ:"ḋ",ḑ:"ḑ",é:"é",è:"è",ë:"ë",ẽ:"ẽ",ē:"ē",ḗ:"ḗ",ḕ:"ḕ",ĕ:"ĕ",ḝ:"ḝ",ě:"ě",ê:"ê",ế:"ế",ề:"ề",ễ:"ễ",ė:"ė",ȩ:"ȩ",ḟ:"ḟ",ǵ:"ǵ",ḡ:"ḡ",ğ:"ğ",ǧ:"ǧ",ĝ:"ĝ",ġ:"ġ",ģ:"ģ",ḧ:"ḧ",ȟ:"ȟ",ĥ:"ĥ",ḣ:"ḣ",ḩ:"ḩ",í:"í",ì:"ì",ï:"ï",ḯ:"ḯ",ĩ:"ĩ",ī:"ī",ĭ:"ĭ",ǐ:"ǐ",î:"î",ǰ:"ǰ",ĵ:"ĵ",ḱ:"ḱ",ǩ:"ǩ",ķ:"ķ",ĺ:"ĺ",ľ:"ľ",ļ:"ļ",ḿ:"ḿ",ṁ:"ṁ",ń:"ń",ǹ:"ǹ",ñ:"ñ",ň:"ň",ṅ:"ṅ",ņ:"ņ",ó:"ó",ò:"ò",ö:"ö",ȫ:"ȫ",õ:"õ",ṍ:"ṍ",ṏ:"ṏ",ȭ:"ȭ",ō:"ō",ṓ:"ṓ",ṑ:"ṑ",ŏ:"ŏ",ǒ:"ǒ",ô:"ô",ố:"ố",ồ:"ồ",ỗ:"ỗ",ȯ:"ȯ",ȱ:"ȱ",ő:"ő",ṕ:"ṕ",ṗ:"ṗ",ŕ:"ŕ",ř:"ř",ṙ:"ṙ",ŗ:"ŗ",ś:"ś",ṥ:"ṥ",š:"š",ṧ:"ṧ",ŝ:"ŝ",ṡ:"ṡ",ş:"ş",ẗ:"ẗ",ť:"ť",ṫ:"ṫ",ţ:"ţ",ú:"ú",ù:"ù",ü:"ü",ǘ:"ǘ",ǜ:"ǜ",ǖ:"ǖ",ǚ:"ǚ",ũ:"ũ",ṹ:"ṹ",ū:"ū",ṻ:"ṻ",ŭ:"ŭ",ǔ:"ǔ",û:"û",ů:"ů",ű:"ű",ṽ:"ṽ",ẃ:"ẃ",ẁ:"ẁ",ẅ:"ẅ",ŵ:"ŵ",ẇ:"ẇ",ẘ:"ẘ",ẍ:"ẍ",ẋ:"ẋ",ý:"ý",ỳ:"ỳ",ÿ:"ÿ",ỹ:"ỹ",ȳ:"ȳ",ŷ:"ŷ",ẏ:"ẏ",ẙ:"ẙ",ź:"ź",ž:"ž",ẑ:"ẑ",ż:"ż",Á:"Á",À:"À",Ä:"Ä",Ǟ:"Ǟ",Ã:"Ã",Ā:"Ā",Ă:"Ă",Ắ:"Ắ",Ằ:"Ằ",Ẵ:"Ẵ",Ǎ:"Ǎ",Â:"Â",Ấ:"Ấ",Ầ:"Ầ",Ẫ:"Ẫ",Ȧ:"Ȧ",Ǡ:"Ǡ",Å:"Å",Ǻ:"Ǻ",Ḃ:"Ḃ",Ć:"Ć",Ḉ:"Ḉ",Č:"Č",Ĉ:"Ĉ",Ċ:"Ċ",Ç:"Ç",Ď:"Ď",Ḋ:"Ḋ",Ḑ:"Ḑ",É:"É",È:"È",Ë:"Ë",Ẽ:"Ẽ",Ē:"Ē",Ḗ:"Ḗ",Ḕ:"Ḕ",Ĕ:"Ĕ",Ḝ:"Ḝ",Ě:"Ě",Ê:"Ê",Ế:"Ế",Ề:"Ề",Ễ:"Ễ",Ė:"Ė",Ȩ:"Ȩ",Ḟ:"Ḟ",Ǵ:"Ǵ",Ḡ:"Ḡ",Ğ:"Ğ",Ǧ:"Ǧ",Ĝ:"Ĝ",Ġ:"Ġ",Ģ:"Ģ",Ḧ:"Ḧ",Ȟ:"Ȟ",Ĥ:"Ĥ",Ḣ:"Ḣ",Ḩ:"Ḩ",Í:"Í",Ì:"Ì",Ï:"Ï",Ḯ:"Ḯ",Ĩ:"Ĩ",Ī:"Ī",Ĭ:"Ĭ",Ǐ:"Ǐ",Î:"Î",İ:"İ",Ĵ:"Ĵ",Ḱ:"Ḱ",Ǩ:"Ǩ",Ķ:"Ķ",Ĺ:"Ĺ",Ľ:"Ľ",Ļ:"Ļ",Ḿ:"Ḿ",Ṁ:"Ṁ",Ń:"Ń",Ǹ:"Ǹ",Ñ:"Ñ",Ň:"Ň",Ṅ:"Ṅ",Ņ:"Ņ",Ó:"Ó",Ò:"Ò",Ö:"Ö",Ȫ:"Ȫ",Õ:"Õ",Ṍ:"Ṍ",Ṏ:"Ṏ",Ȭ:"Ȭ",Ō:"Ō",Ṓ:"Ṓ",Ṑ:"Ṑ",Ŏ:"Ŏ",Ǒ:"Ǒ",Ô:"Ô",Ố:"Ố",Ồ:"Ồ",Ỗ:"Ỗ",Ȯ:"Ȯ",Ȱ:"Ȱ",Ő:"Ő",Ṕ:"Ṕ",Ṗ:"Ṗ",Ŕ:"Ŕ",Ř:"Ř",Ṙ:"Ṙ",Ŗ:"Ŗ",Ś:"Ś",Ṥ:"Ṥ",Š:"Š",Ṧ:"Ṧ",Ŝ:"Ŝ",Ṡ:"Ṡ",Ş:"Ş",Ť:"Ť",Ṫ:"Ṫ",Ţ:"Ţ",Ú:"Ú",Ù:"Ù",Ü:"Ü",Ǘ:"Ǘ",Ǜ:"Ǜ",Ǖ:"Ǖ",Ǚ:"Ǚ",Ũ:"Ũ",Ṹ:"Ṹ",Ū:"Ū",Ṻ:"Ṻ",Ŭ:"Ŭ",Ǔ:"Ǔ",Û:"Û",Ů:"Ů",Ű:"Ű",Ṽ:"Ṽ",Ẃ:"Ẃ",Ẁ:"Ẁ",Ẅ:"Ẅ",Ŵ:"Ŵ",Ẇ:"Ẇ",Ẍ:"Ẍ",Ẋ:"Ẋ",Ý:"Ý",Ỳ:"Ỳ",Ÿ:"Ÿ",Ỹ:"Ỹ",Ȳ:"Ȳ",Ŷ:"Ŷ",Ẏ:"Ẏ",Ź:"Ź",Ž:"Ž",Ẑ:"Ẑ",Ż:"Ż",ά:"ά",ὰ:"ὰ",ᾱ:"ᾱ",ᾰ:"ᾰ",έ:"έ",ὲ:"ὲ",ή:"ή",ὴ:"ὴ",ί:"ί",ὶ:"ὶ",ϊ:"ϊ",ΐ:"ΐ",ῒ:"ῒ",ῑ:"ῑ",ῐ:"ῐ",ό:"ό",ὸ:"ὸ",ύ:"ύ",ὺ:"ὺ",ϋ:"ϋ",ΰ:"ΰ",ῢ:"ῢ",ῡ:"ῡ",ῠ:"ῠ",ώ:"ώ",ὼ:"ὼ",Ύ:"Ύ",Ὺ:"Ὺ",Ϋ:"Ϋ",Ῡ:"Ῡ",Ῠ:"Ῠ",Ώ:"Ώ",Ὼ:"Ὼ"};class uA{expect(e,t){if(void 0===t&&(t=!0),this.fetch().text!==e)throw new oc("Expected '"+e+"', got '"+this.fetch().text+"'",this.fetch());t&&this.consume()}consume(){this.nextToken=null}fetch(){return null==this.nextToken&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken}switchMode(e){this.mode=e,this.gullet.switchMode(e)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var e=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),e}finally{this.gullet.endGroups()}}subparse(e){var t=this.nextToken;this.consume(),this.gullet.pushToken(new cN("}")),this.gullet.pushTokens(e);var n=this.parseExpression(!1);return this.expect("}"),this.nextToken=t,n}parseExpression(e,t){for(var n=[];;){"math"===this.mode&&this.consumeSpaces();var r=this.fetch();if(uA.endOfExpression.has(r.text)||t&&r.text===t||e&&s5[r.text]&&s5[r.text].infix)break;var i=this.parseAtom(t);if(i){if("internal"===i.type)continue}else break;n.push(i)}return"text"===this.mode&&this.formLigatures(n),this.handleInfixNodes(n)}handleInfixNodes(e){for(var t=-1,n=0;n<e.length;n++){var r=e[n];if("infix"===r.type){if(-1!==t)throw new oc("only one infix operator per group",r.token);t=n,i=r.replaceWith}}if(-1===t||!i)return e;var i,a,o,s=e.slice(0,t),l=e.slice(t+1);return a=1===s.length&&"ordgroup"===s[0].type?s[0]:{type:"ordgroup",mode:this.mode,body:s},o=1===l.length&&"ordgroup"===l[0].type?l[0]:{type:"ordgroup",mode:this.mode,body:l},["\\\\abovefrac"===i?this.callFunction(i,[a,e[t],o],[]):this.callFunction(i,[a,o],[])]}handleSupSubscript(e){var t,n=this.fetch(),r=n.text;this.consume(),this.consumeSpaces();do t=this.parseGroup(e);while((null==t?void 0:t.type)==="internal")if(!t)throw new oc("Expected group after '"+r+"'",n);return t}formatUnsupportedCmd(e){for(var t=[],n=0;n<e.length;n++)t.push({type:"textord",mode:"text",text:e[n]});var r={type:"text",mode:this.mode,body:t};return{type:"color",mode:this.mode,color:this.settings.errorColor,body:[r]}}parseAtom(e){var t,n,r=this.parseGroup("atom",e);if((null==r?void 0:r.type)==="internal"||"text"===this.mode)return r;for(;;){this.consumeSpaces();var i=this.fetch();if("\\limits"===i.text||"\\nolimits"===i.text){if(r&&"op"===r.type)r.limits="\\limits"===i.text,r.alwaysHandleSupSub=!0;else if(r&&"operatorname"===r.type)r.alwaysHandleSupSub&&(r.limits="\\limits"===i.text);else throw new oc("Limit controls must follow a math operator",i);this.consume()}else if("^"===i.text){if(t)throw new oc("Double superscript",i);t=this.handleSupSubscript("superscript")}else if("_"===i.text){if(n)throw new oc("Double subscript",i);n=this.handleSupSubscript("subscript")}else if("'"===i.text){if(t)throw new oc("Double superscript",i);var a={type:"textord",mode:this.mode,text:"\\prime"},o=[a];for(this.consume();"'"===this.fetch().text;)o.push(a),this.consume();"^"===this.fetch().text&&o.push(this.handleSupSubscript("superscript")),t={type:"ordgroup",mode:this.mode,body:o}}else if(uk[i.text]){var s=ux.test(i.text),l=[];for(l.push(new cN(uk[i.text])),this.consume();;){var c=this.fetch().text;if(!uk[c]||ux.test(c)!==s)break;l.unshift(new cN(uk[c])),this.consume()}var u=this.subparse(l);s?n={type:"ordgroup",mode:"math",body:u}:t={type:"ordgroup",mode:"math",body:u}}else break}return t||n?{type:"supsub",mode:this.mode,base:r,sup:t,sub:n}:r}parseFunction(e,t){var n=this.fetch(),r=n.text,i=s5[r];if(!i)return null;if(this.consume(),t&&"atom"!==t&&!i.allowedInArgument)throw new oc("Got function '"+r+"' with no arguments"+(t?" as "+t:""),n);if("text"!==this.mode||i.allowedInText){if("math"===this.mode&&!1===i.allowedInMath)throw new oc("Can't use function '"+r+"' in math mode",n)}else throw new oc("Can't use function '"+r+"' in text mode",n);var{args:a,optArgs:o}=this.parseArguments(r,i);return this.callFunction(r,a,o,n,e)}callFunction(e,t,n,r,i){var a=s5[e];if(a&&a.handler)return a.handler({funcName:e,parser:this,token:r,breakOnTokenText:i},t,n);throw new oc("No function handler for "+e)}parseArguments(e,t){var n=t.numArgs+t.numOptionalArgs;if(0===n)return{args:[],optArgs:[]};for(var r=[],i=[],a=0;a<n;a++){var o=t.argTypes&&t.argTypes[a],s=a<t.numOptionalArgs;("primitive"in t&&t.primitive&&null==o||"sqrt"===t.type&&1===a&&null==i[0])&&(o="primitive");var l=this.parseGroupOfType("argument to '"+e+"'",o,s);if(s)i.push(l);else if(null!=l)r.push(l);else throw new oc("Null argument, please report this as a bug")}return{args:r,optArgs:i}}parseGroupOfType(e,t,n){switch(t){case"color":return this.parseColorGroup(n);case"size":return this.parseSizeGroup(n);case"url":return this.parseUrlGroup(n);case"math":case"text":return this.parseArgumentGroup(n,t);case"hbox":var r=this.parseArgumentGroup(n,"text");return null!=r?{type:"styling",mode:r.mode,body:[r],style:"text"}:null;case"raw":var i=this.parseStringGroup("raw",n);return null!=i?{type:"raw",mode:"text",string:i.text}:null;case"primitive":if(n)throw new oc("A primitive argument cannot be optional");var a=this.parseGroup(e);if(null==a)throw new oc("Expected group as "+e,this.fetch());return a;case"original":case null:case void 0:return this.parseArgumentGroup(n);default:throw new oc("Unknown group type as "+e,this.fetch())}}consumeSpaces(){for(;" "===this.fetch().text;)this.consume()}parseStringGroup(e,t){var n,r=this.gullet.scanArgument(t);if(null==r)return null;for(var i="";"EOF"!==(n=this.fetch()).text;)i+=n.text,this.consume();return this.consume(),r.text=i,r}parseRegexGroup(e,t){for(var n,r=this.fetch(),i=r,a="";"EOF"!==(n=this.fetch()).text&&e.test(a+n.text);)a+=(i=n).text,this.consume();if(""===a)throw new oc("Invalid "+t+": '"+r.text+"'",r);return r.range(i,a)}parseColorGroup(e){var t=this.parseStringGroup("color",e);if(null==t)return null;var n=/^(#[a-f0-9]{3,4}|#[a-f0-9]{6}|#[a-f0-9]{8}|[a-f0-9]{6}|[a-z]+)$/i.exec(t.text);if(!n)throw new oc("Invalid color: '"+t.text+"'",t);var r=n[0];return/^[0-9a-f]{6}$/i.test(r)&&(r="#"+r),{type:"color-token",mode:this.mode,color:r}}parseSizeGroup(e){var t,n=!1;if(this.gullet.consumeSpaces(),!(t=e||"{"===this.gullet.future().text?this.parseStringGroup("size",e):this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size")))return null;e||0!==t.text.length||(t.text="0pt",n=!0);var r=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(t.text);if(!r)throw new oc("Invalid size: '"+t.text+"'",t);var i={number:+(r[1]+r[2]),unit:r[3]};if(!oD(i))throw new oc("Invalid unit: '"+i.unit+"'",t);return{type:"size",mode:this.mode,value:i,isBlank:n}}parseUrlGroup(e){this.gullet.lexer.setCatcode("%",13),this.gullet.lexer.setCatcode("~",12);var t=this.parseStringGroup("url",e);if(this.gullet.lexer.setCatcode("%",14),this.gullet.lexer.setCatcode("~",13),null==t)return null;var n=t.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:n}}parseArgumentGroup(e,t){var n=this.gullet.scanArgument(e);if(null==n)return null;var r=this.mode;t&&this.switchMode(t),this.gullet.beginGroup();var i=this.parseExpression(!1,"EOF");this.expect("EOF"),this.gullet.endGroup();var a={type:"ordgroup",mode:this.mode,loc:n.loc,body:i};return t&&this.switchMode(r),a}parseGroup(e,t){var n,r=this.fetch(),i=r.text;if("{"===i||"\\begingroup"===i){this.consume();var a="{"===i?"}":"\\endgroup";this.gullet.beginGroup();var o=this.parseExpression(!1,a),s=this.fetch();this.expect(a),this.gullet.endGroup(),n={type:"ordgroup",mode:this.mode,loc:cM.range(r,s),body:o,semisimple:"\\begingroup"===i||void 0}}else if(null==(n=this.parseFunction(t,e)||this.parseSymbol())&&"\\"===i[0]&&!ub.hasOwnProperty(i)){if(this.settings.throwOnError)throw new oc("Undefined control sequence: "+i,r);n=this.formatUnsupportedCmd(i),this.consume()}return n}formLigatures(e){for(var t=e.length-1,n=0;n<t;++n){var r=e[n];if("textord"===r.type){var i=r.text,a=e[n+1];if(a&&"textord"===a.type){if("-"===i&&"-"===a.text){var o=e[n+2];n+1<t&&o&&"textord"===o.type&&"-"===o.text?(e.splice(n,3,{type:"textord",mode:"text",loc:cM.range(r,o),text:"---"}),t-=2):(e.splice(n,2,{type:"textord",mode:"text",loc:cM.range(r,a),text:"--"}),t-=1)}("'"===i||"`"===i)&&a.text===i&&(e.splice(n,2,{type:"textord",mode:"text",loc:cM.range(r,a),text:i+i}),t-=1)}}}}parseSymbol(){var e=this.fetch(),t=e.text;if(/^\\verb[^a-zA-Z]/.test(t)){this.consume();var n=t.slice(5),r="*"===n.charAt(0);if(r&&(n=n.slice(1)),n.length<2||n.charAt(0)!==n.slice(-1))throw new oc("\\verb assertion failed --\n please report what input caused this bug");return{type:"verb",mode:"text",body:n=n.slice(1,-1),star:r}}uS.hasOwnProperty(t[0])&&!o8[this.mode][t[0]]&&(this.settings.strict&&"math"===this.mode&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+t[0]+'" used in math mode',e),t=uS[t[0]]+t.slice(1));var i=us.exec(t);if(i&&("i"===(t=t.substring(0,i.index))?t="ı":"j"===t&&(t="ȷ")),o8[this.mode][t]){this.settings.strict&&"math"===this.mode&&s_.includes(t)&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+t[0]+'" used in math mode',e);var a,o=o8[this.mode][t].group,s=cM.range(e);a=o2.hasOwnProperty(o)?{type:"atom",mode:this.mode,family:o,loc:s,text:t}:{type:o,mode:this.mode,loc:s,text:t}}else{if(!(t.charCodeAt(0)>=128))return null;this.settings.strict&&(oz(t.charCodeAt(0))?"math"===this.mode&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+t[0]+'" used in math mode',e):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+t[0]+'" ('+t.charCodeAt(0)+")",e)),a={type:"textord",mode:"text",loc:cM.range(e),text:t}}if(this.consume(),i)for(var l=0;l<i[0].length;l++){var c=i[0][l];if(!uw[c])throw new oc("Unknown accent ' "+c+"'",e);var u=uw[c][this.mode]||uw[c].text;if(!u)throw new oc("Accent "+c+" unsupported in "+this.mode+" mode",e);a={type:"accent",mode:this.mode,loc:cM.range(e),label:u,isStretchy:!1,isShifty:!0,base:a}}return a}constructor(e,t){this.mode="math",this.gullet=new uv(e,t,this.mode),this.settings=t,this.leftrightDepth=0,this.nextToken=null}}uA.endOfExpression=new Set(["}","\\endgroup","\\end","\\right","&"]);var uC=function(e,t){if(!("string"==typeof e||e instanceof String))throw TypeError("KaTeX can only parse string typed expression");var n=new uA(e,t);delete n.gullet.macros.current["\\df@tag"];var r=n.parse();if(delete n.gullet.macros.current["\\current@color"],delete n.gullet.macros.current["\\color"],n.gullet.macros.get("\\df@tag")){if(!t.displayMode)throw new oc("\\tag works only in display equations");r=[{type:"tag",mode:"text",body:r,tag:n.subparse([new cN("\\df@tag")])}]}return r};"undefined"!=typeof document&&"CSS1Compat"!==document.compatMode&&"undefined"!=typeof console&&console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype.");var uT=function(e,t,n){if(n.throwOnError||!(e instanceof oc))throw e;var r=sD(["katex-error"],[new oZ(t)]);return r.setAttribute("title",e.toString()),r.setAttribute("style","color:"+n.errorColor),r},u_=function(e,t){var n=new ov(t);try{var r=uC(e,n);return lz(r,e,n)}catch(t){return uT(t,e,n)}},uM={renderToString:function(e,t){return u_(e,t).toMarkup()}};let uN={},uE=[];function uz(e){let t=e||uN;return function(e,n){rQ(e,"element",function(e,r){let i,a=Array.isArray(e.properties.className)?e.properties.className:uE,o=a.includes("language-math"),s=a.includes("math-display"),l=a.includes("math-inline"),c=s;if(!o&&!s&&!l)return;let u=r[r.length-1],h=e;if("code"===e.tagName&&o&&u&&"element"===u.type&&"pre"===u.tagName&&(h=u,u=r[r.length-2],c=!0),!u)return;let p=function(e,t){let n,r="children"in e?e.children:[],i=oo(e),a=ol(e,{whitespace:(t||{}).whitespace||"normal",breakBefore:!1,breakAfter:!1}),o=[];("text"===e.type||"comment"===e.type)&&o.push(...os(e,{whitespace:a,breakBefore:!0,breakAfter:!0}));let s=-1;for(;++s<r.length;)o.push(...function e(t,n,r){return"element"===t.type?function(t,n,r){let i,a,o=ol(t,r),s=t.children||[],l=-1,c=[];if(oa(t))return c;for(ot(t)||oi(t)&&a3(n,t,oi)?a="\n":or(t)?(i=2,a=2):oo(t)&&(i=1,a=1);++l<s.length;)c=c.concat(e(s[l],t,{whitespace:o,breakBefore:l?void 0:i,breakAfter:l<s.length-1?ot(s[l+1]):a}));return on(t)&&a3(n,t,on)&&c.push(" "),i&&c.unshift(i),a&&c.push(a),c}(t,n,r):"text"===t.type?"normal"===r.whitespace?os(t,r):[String(t.value)]:[]}(r[s],e,{whitespace:a,breakBefore:s?void 0:i,breakAfter:s<r.length-1?ot(r[s+1]):i}));let l=[];for(s=-1;++s<o.length;){let e=o[s];"number"==typeof e?void 0!==n&&e>n&&(n=e):e&&(void 0!==n&&n>-1&&l.push("\n".repeat(n)||" "),n=-1,l.push(e))}return l.join("")}(h,{whitespace:"pre"});try{i=uM.renderToString(p,{...t,displayMode:c,throwOnError:!0})}catch(o){let a=o.name.toLowerCase();n.message("Could not render math with KaTeX",{ancestors:[...r,e],cause:o,place:e.position,ruleId:a,source:"rehype-katex"});try{i=uM.renderToString(p,{...t,displayMode:c,strict:"ignore",throwOnError:!1})}catch(e){i=[{type:"element",tagName:"span",properties:{className:["katex-error"],style:"color:"+(t.errorColor||"#cc0000"),title:String(o)},children:[{type:"text",value:p}]}]}}if("string"==typeof i){var d;i=(d=i,a4(function(e){let t=document.createElement("template");return t.innerHTML=e,t.content}(d),{})||{type:"root",children:[]}).children}let m=u.children.indexOf(h);return u.children.splice(m,1,...i),rK})}}let uI=["ariaDescribedBy","ariaLabel","ariaLabelledBy"],uR={ancestors:{tbody:["table"],td:["table"],th:["table"],thead:["table"],tfoot:["table"],tr:["table"]},attributes:{a:[...uI,"dataFootnoteBackref","dataFootnoteRef",["className","data-footnote-backref"],"href"],blockquote:["cite"],code:[["className",/^language-./]],del:["cite"],div:["itemScope","itemType"],dl:[...uI],h2:[["className","sr-only"]],img:[...uI,"longDesc","src"],input:[["disabled",!0],["type","checkbox"]],ins:["cite"],li:[["className","task-list-item"]],ol:[...uI,["className","contains-task-list"]],q:["cite"],section:["dataFootnotes",["className","footnotes"]],source:["srcSet"],summary:[...uI],table:[...uI],ul:[...uI,["className","contains-task-list"]],"*":["abbr","accept","acceptCharset","accessKey","action","align","alt","axis","border","cellPadding","cellSpacing","char","charOff","charSet","checked","clear","colSpan","color","cols","compact","coords","dateTime","dir","encType","frame","hSpace","headers","height","hrefLang","htmlFor","id","isMap","itemProp","label","lang","maxLength","media","method","multiple","name","noHref","noShade","noWrap","open","prompt","readOnly","rev","rowSpan","rows","rules","scope","selected","shape","size","span","start","summary","tabIndex","title","useMap","vAlign","value","width"]},clobber:["ariaDescribedBy","ariaLabelledBy","id","name"],clobberPrefix:"user-content-",protocols:{cite:["http","https"],href:["http","https","irc","ircs","mailto","xmpp"],longDesc:["http","https"],src:["http","https"]},required:{input:{disabled:!0,type:"checkbox"}},strip:["script"],tagNames:["a","b","blockquote","br","code","dd","del","details","div","dl","dt","em","h1","h2","h3","h4","h5","h6","hr","i","img","input","ins","kbd","li","ol","p","picture","pre","q","rp","rt","ruby","s","samp","section","source","span","strike","strong","sub","summary","sup","table","tbody","td","tfoot","th","thead","tr","tt","ul","var"]},uj={}.hasOwnProperty;function uL(e,t){if(t&&"object"==typeof t)switch("string"==typeof t.type?t.type:""){case"comment":var n=e,r=t;if(n.schema.allowComments){let e="string"==typeof r.value?r.value:"",t=e.indexOf("-->"),n={type:"comment",value:t<0?e:e.slice(0,t)};return uD(n,r),n}return;case"doctype":var i=e,a=t;if(i.schema.allowDoctypes){let e={type:"doctype"};return uD(e,a),e}return;case"element":return function(e,t){let n="string"==typeof t.tagName?t.tagName:"";e.stack.push(n);let r=uP(e,t.children),i=function(e,t){let n,r=e.stack[e.stack.length-1],i=e.schema.attributes,a=e.schema.required,o=i&&uj.call(i,r)?i[r]:void 0,s=i&&uj.call(i,"*")?i["*"]:void 0,l=t&&"object"==typeof t?t:{},c={};for(n in l)if(uj.call(l,n)){let t=l[n],r=uB(e,uF(o,n),n,t);null==r&&(r=uB(e,uF(s,n),n,t)),null!=r&&(c[n]=r)}if(a&&uj.call(a,r)){let e=a[r];for(n in e)uj.call(e,n)&&!uj.call(c,n)&&(c[n]=e[n])}return c}(e,t.properties);e.stack.pop();let a=!1;if(n&&"*"!==n&&(!e.schema.tagNames||e.schema.tagNames.includes(n))&&(a=!0,e.schema.ancestors&&uj.call(e.schema.ancestors,n))){let t=e.schema.ancestors[n],r=-1;for(a=!1;++r<t.length;)e.stack.includes(t[r])&&(a=!0)}if(!a)return e.schema.strip&&!e.schema.strip.includes(n)?r:void 0;let o={type:"element",tagName:n,properties:i,children:r};return uD(o,t),o}(e,t);case"root":var o=e,s=t;let l={type:"root",children:uP(o,s.children)};return uD(l,s),l;case"text":var c=t;let u={type:"text",value:"string"==typeof c.value?c.value:""};return uD(u,c),u}}function uP(e,t){let n=[];if(Array.isArray(t)){let r=-1;for(;++r<t.length;){let i=uL(e,t[r]);i&&(Array.isArray(i)?n.push(...i):n.push(i))}}return n}function uB(e,t,n,r){return t?Array.isArray(r)?function(e,t,n,r){let i=-1,a=[];for(;++i<r.length;){let o=uO(e,t,n,r[i]);("number"==typeof o||"string"==typeof o)&&a.push(o)}return a}(e,t,n,r):uO(e,t,n,r):void 0}function uO(e,t,n,r){if(("boolean"==typeof r||"number"==typeof r||"string"==typeof r)&&function(e,t,n){let r=e.schema.protocols&&uj.call(e.schema.protocols,t)?e.schema.protocols[t]:void 0;if(!r||0===r.length)return!0;let i=String(n),a=i.indexOf(":"),o=i.indexOf("?"),s=i.indexOf("#"),l=i.indexOf("/");if(a<0||l>-1&&a>l||o>-1&&a>o||s>-1&&a>s)return!0;let c=-1;for(;++c<r.length;){let e=r[c];if(a===e.length&&i.slice(0,e.length)===e)return!0}return!1}(e,n,r)){if("object"==typeof t&&t.length>1){let e=!1,n=0;for(;++n<t.length;){let i=t[n];if(i&&"object"==typeof i&&"flags"in i){if(i.test(String(r))){e=!0;break}}else if(i===r){e=!0;break}}if(!e)return}return e.schema.clobber&&e.schema.clobberPrefix&&e.schema.clobber.includes(n)?e.schema.clobberPrefix+r:r}}function uD(e,t){let n=t0(t);t.data&&(e.data=rG(t.data)),n&&(e.position=n)}function uF(e,t){let n,r=-1;if(e)for(;++r<e.length;){let i=e[r],a="string"==typeof i?i:i[0];if(a===t)return i;"data*"===a&&(n=i)}if(t.length>4&&"data"===t.slice(0,4).toLowerCase())return n}function uq(e){return function(t){var n=t,r=e;let i={type:"root",children:[]},a=uL({schema:r?{...uR,...r}:uR,stack:[]},n);return a&&(Array.isArray(a)?1===a.length?i=a[0]:i.children=a:i=a),i}}var uH=Object.defineProperty,uU=Object.getOwnPropertyDescriptor,uG=Object.getOwnPropertyNames,uW=Object.prototype.hasOwnProperty,uV=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(var i,a=uG(t),o=0,s=a.length;o<s;o++)i=a[o],uW.call(e,i)||i===n||uH(e,i,{get:(e=>t[e]).bind(null,i),enumerable:!(r=uU(t,i))||r.enumerable});return e};e.s(["createOnigurumaEngine",()=>u8,"getDefaultWasmLoader",()=>u7,"loadWasm",()=>u6,"setDefaultWasmLoader",()=>u2],88361);var u$=e.i(67034),uX=class extends Error{constructor(e){super(e),this.name="ShikiError"}};function uY(){return"undefined"!=typeof performance?performance.now():Date.now()}let uJ=(e,t)=>e+(t-e%t)%t;async function uZ(e){let t,n,r={};function i(e){n=e,r.HEAPU8=new Uint8Array(e),r.HEAPU32=new Uint32Array(e)}let a="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function o(e,t){return e?function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1024,r=t+n,i=t;for(;e[i]&&!(i>=r);)++i;if(i-t>16&&e.buffer&&a)return a.decode(e.subarray(t,i));let o="";for(;t<i;){let n=e[t++];if(!(128&n)){o+=String.fromCharCode(n);continue}let r=63&e[t++];if((224&n)==192){o+=String.fromCharCode((31&n)<<6|r);continue}let i=63&e[t++];if((n=(240&n)==224?(15&n)<<12|r<<6|i:(7&n)<<18|r<<12|i<<6|63&e[t++])<65536)o+=String.fromCharCode(n);else{let e=n-65536;o+=String.fromCharCode(55296|e>>10,56320|1023&e)}}return o}(r.HEAPU8,e,t):""}let s={emscripten_get_now:uY,emscripten_memcpy_big:function(e,t,n){r.HEAPU8.copyWithin(e,t,t+n)},emscripten_resize_heap:function(e){let a=r.HEAPU8.length;if((e>>>=0)>0x80000000)return!1;for(let r=1;r<=4;r*=2){let o=a*(1+.2/r);if(o=Math.min(o,e+0x6000000),function(e){try{return t.grow(e-n.byteLength+65535>>>16),i(t.buffer),1}catch(e){}}(Math.min(0x80000000,uJ(Math.max(e,o),65536))))return!0}return!1},fd_write:()=>0};async function l(){let n=await e({env:s,wasi_snapshot_preview1:s});i((t=n.memory).buffer),Object.assign(r,n),r.UTF8ToString=o}return await l(),r}var uK=Object.defineProperty,uQ=(e,t,n)=>((e,t,n)=>t in e?uK(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n)(e,"symbol"!=typeof t?t+"":t,n);let u0=null;class u1{static _utf8ByteLength(e){let t=0;for(let n=0,r=e.length;n<r;n++){let i=e.charCodeAt(n),a=i,o=!1;if(i>=55296&&i<=56319&&n+1<r){let t=e.charCodeAt(n+1);t>=56320&&t<=57343&&(a=(i-55296<<10)+65536|t-56320,o=!0)}a<=127?t+=1:a<=2047?t+=2:a<=65535?t+=3:t+=4,o&&n++}return t}createString(e){let t=e.omalloc(this.utf8Length);return e.HEAPU8.set(this.utf8Value,t),t}constructor(e){uQ(this,"utf16Length"),uQ(this,"utf8Length"),uQ(this,"utf16Value"),uQ(this,"utf8Value"),uQ(this,"utf16OffsetToUtf8"),uQ(this,"utf8OffsetToUtf16");let t=e.length,n=u1._utf8ByteLength(e),r=n!==t,i=r?new Uint32Array(t+1):null;r&&(i[t]=n);let a=r?new Uint32Array(n+1):null;r&&(a[n]=t);let o=new Uint8Array(n),s=0;for(let n=0;n<t;n++){let l=e.charCodeAt(n),c=l,u=!1;if(l>=55296&&l<=56319&&n+1<t){let t=e.charCodeAt(n+1);t>=56320&&t<=57343&&(c=(l-55296<<10)+65536|t-56320,u=!0)}r&&(i[n]=s,u&&(i[n+1]=s),c<=127?a[s+0]=n:c<=2047?(a[s+0]=n,a[s+1]=n):c<=65535?(a[s+0]=n,a[s+1]=n,a[s+2]=n):(a[s+0]=n,a[s+1]=n,a[s+2]=n,a[s+3]=n)),c<=127?o[s++]=c:(c<=2047?o[s++]=192|(1984&c)>>>6:(c<=65535?o[s++]=224|(61440&c)>>>12:(o[s++]=240|(1835008&c)>>>18,o[s++]=128|(258048&c)>>>12),o[s++]=128|(4032&c)>>>6),o[s++]=128|(63&c)>>>0),u&&n++}this.utf16Length=t,this.utf8Length=n,this.utf16Value=e,this.utf8Value=o,this.utf16OffsetToUtf8=i,this.utf8OffsetToUtf16=a}}let u4=class e{convertUtf8OffsetToUtf16(e){return this.utf8OffsetToUtf16?e<0?0:e>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[e]:e}convertUtf16OffsetToUtf8(e){return this.utf16OffsetToUtf8?e<0?0:e>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[e]:e}dispose(){this.ptr===e._sharedPtr?e._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}constructor(t){if(uQ(this,"id",++e.LAST_ID),uQ(this,"_onigBinding"),uQ(this,"content"),uQ(this,"utf16Length"),uQ(this,"utf8Length"),uQ(this,"utf16OffsetToUtf8"),uQ(this,"utf8OffsetToUtf16"),uQ(this,"ptr"),!u0)throw new uX("Must invoke loadWasm first.");this._onigBinding=u0,this.content=t;let n=new u1(t);this.utf16Length=n.utf16Length,this.utf8Length=n.utf8Length,this.utf16OffsetToUtf8=n.utf16OffsetToUtf8,this.utf8OffsetToUtf16=n.utf8OffsetToUtf16,this.utf8Length<1e4&&!e._sharedPtrInUse?(e._sharedPtr||(e._sharedPtr=u0.omalloc(1e4)),e._sharedPtrInUse=!0,u0.HEAPU8.set(n.utf8Value,e._sharedPtr),this.ptr=e._sharedPtr):this.ptr=n.createString(u0)}};uQ(u4,"LAST_ID",0),uQ(u4,"_sharedPtr",0),uQ(u4,"_sharedPtrInUse",!1);class u5{dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(e,t,n){let r=0;if("number"==typeof n&&(r=n),"string"==typeof e){e=new u4(e);let n=this._findNextMatchSync(e,t,!1,r);return e.dispose(),n}return this._findNextMatchSync(e,t,!1,r)}_findNextMatchSync(e,t,n,r){let i=this._onigBinding,a=i.findNextOnigScannerMatch(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),r);if(0===a)return null;let o=i.HEAPU32,s=a/4,l=o[s++],c=o[s++],u=[];for(let t=0;t<c;t++){let n=e.convertUtf8OffsetToUtf16(o[s++]),r=e.convertUtf8OffsetToUtf16(o[s++]);u[t]={start:n,end:r,length:r-n}}return{index:l,captureIndices:u}}constructor(e){if(uQ(this,"_onigBinding"),uQ(this,"_ptr"),!u0)throw new uX("Must invoke loadWasm first.");let t=[],n=[];for(let r=0,i=e.length;r<i;r++){let i=new u1(e[r]);t[r]=i.createString(u0),n[r]=i.utf8Length}let r=u0.omalloc(4*e.length);u0.HEAPU32.set(t,r/4);let i=u0.omalloc(4*e.length);u0.HEAPU32.set(n,i/4);let a=u0.createOnigScanner(r,i,e.length);for(let n=0,r=e.length;n<r;n++)u0.ofree(t[n]);u0.ofree(i),u0.ofree(r),0===a&&function(e){throw new uX(e.UTF8ToString(e.getLastOnigError()))}(u0),this._onigBinding=u0,this._ptr=a}}function u6(e){return t||(t=async function(){u0=await uZ(async t=>{let n=e;if("function"==typeof(n=await n)&&(n=await n(t)),"function"==typeof n&&(n=await n(t)),"function"==typeof n.instantiator)n=await n.instantiator(t);else if("function"==typeof n.default)n=await n.default(t);else{var r,i,a,o,s,l;if(void 0!==n.data&&(n=n.data),r=n,"undefined"!=typeof Response&&r instanceof Response){n="function"==typeof WebAssembly.instantiateStreaming?await (s=n,e=>WebAssembly.instantiateStreaming(s,e))(t):await (l=n,async e=>{let t=await l.arrayBuffer();return WebAssembly.instantiate(t,e)})(t)}else(i=n,"undefined"!=typeof ArrayBuffer&&(i instanceof ArrayBuffer||ArrayBuffer.isView(i))||void 0!==u$.Buffer&&(null==(a=(o=u$.Buffer).isBuffer)?void 0:a.call(o,i))||"undefined"!=typeof SharedArrayBuffer&&i instanceof SharedArrayBuffer||"undefined"!=typeof Uint32Array&&i instanceof Uint32Array||n instanceof WebAssembly.Module)?n=await u3(n)(t):"default"in n&&n.default instanceof WebAssembly.Module&&(n=await u3(n.default)(t))}return"instance"in n&&(n=n.instance),"exports"in n&&(n=n.exports),n})}())}function u3(e){return t=>WebAssembly.instantiate(e,t)}function u2(e){n=e}function u7(){return n}async function u8(e){return e&&await u6(e),{createScanner:e=>new u5(e.map(e=>"string"==typeof e?e:e.source)),createString:e=>new u4(e)}}var u9=e.i(88361),he=((e,t)=>{let n={};for(var r in e)uH(n,r,{get:e[r],enumerable:!0});return t||uH(n,Symbol.toStringTag,{value:"Module"}),n})({});((e,t,n)=>(uV(e,t,"default"),n&&uV(n,t,"default")))(he,u9);let ht=[{id:"abap",name:"ABAP",import:()=>e.A(16690)},{id:"actionscript-3",name:"ActionScript",import:()=>e.A(74435)},{id:"ada",name:"Ada",import:()=>e.A(96339)},{id:"angular-html",name:"Angular HTML",import:()=>e.A(96546)},{id:"angular-ts",name:"Angular TypeScript",import:()=>e.A(60308)},{id:"apache",name:"Apache Conf",import:()=>e.A(8734)},{id:"apex",name:"Apex",import:()=>e.A(2952)},{id:"apl",name:"APL",import:()=>e.A(14026)},{id:"applescript",name:"AppleScript",import:()=>e.A(10042)},{id:"ara",name:"Ara",import:()=>e.A(27701)},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],import:()=>e.A(64940)},{id:"asm",name:"Assembly",import:()=>e.A(81996)},{id:"astro",name:"Astro",import:()=>e.A(85223)},{id:"awk",name:"AWK",import:()=>e.A(77689)},{id:"ballerina",name:"Ballerina",import:()=>e.A(87861)},{id:"bat",name:"Batch File",aliases:["batch"],import:()=>e.A(69047)},{id:"beancount",name:"Beancount",import:()=>e.A(66005)},{id:"berry",name:"Berry",aliases:["be"],import:()=>e.A(64129)},{id:"bibtex",name:"BibTeX",import:()=>e.A(86785)},{id:"bicep",name:"Bicep",import:()=>e.A(34475)},{id:"bird2",name:"BIRD2 Configuration",aliases:["bird"],import:()=>e.A(73197)},{id:"blade",name:"Blade",import:()=>e.A(84291)},{id:"bsl",name:"1C (Enterprise)",aliases:["1c"],import:()=>e.A(54810)},{id:"c",name:"C",import:()=>e.A(15630)},{id:"c3",name:"C3",import:()=>e.A(21406)},{id:"cadence",name:"Cadence",aliases:["cdc"],import:()=>e.A(28418)},{id:"cairo",name:"Cairo",import:()=>e.A(96018)},{id:"clarity",name:"Clarity",import:()=>e.A(68805)},{id:"clojure",name:"Clojure",aliases:["clj"],import:()=>e.A(85670)},{id:"cmake",name:"CMake",import:()=>e.A(50277)},{id:"cobol",name:"COBOL",import:()=>e.A(8435)},{id:"codeowners",name:"CODEOWNERS",import:()=>e.A(77655)},{id:"codeql",name:"CodeQL",aliases:["ql"],import:()=>e.A(93919)},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:()=>e.A(99510)},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],import:()=>e.A(14583)},{id:"coq",name:"Coq",import:()=>e.A(38305)},{id:"cpp",name:"C++",aliases:["c++"],import:()=>e.A(62895)},{id:"crystal",name:"Crystal",import:()=>e.A(15822)},{id:"csharp",name:"C#",aliases:["c#","cs"],import:()=>e.A(56548)},{id:"css",name:"CSS",import:()=>e.A(68853)},{id:"csv",name:"CSV",import:()=>e.A(8072)},{id:"cue",name:"CUE",import:()=>e.A(79420)},{id:"cypher",name:"Cypher",aliases:["cql"],import:()=>e.A(1081)},{id:"d",name:"D",import:()=>e.A(32086)},{id:"dart",name:"Dart",import:()=>e.A(8814)},{id:"dax",name:"DAX",import:()=>e.A(6010)},{id:"desktop",name:"Desktop",import:()=>e.A(11671)},{id:"diff",name:"Diff",import:()=>e.A(99264)},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],import:()=>e.A(64927)},{id:"dotenv",name:"dotEnv",import:()=>e.A(86855)},{id:"dream-maker",name:"Dream Maker",import:()=>e.A(55357)},{id:"edge",name:"Edge",import:()=>e.A(40814)},{id:"elixir",name:"Elixir",import:()=>e.A(34593)},{id:"elm",name:"Elm",import:()=>e.A(80402)},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],import:()=>e.A(59962)},{id:"erb",name:"ERB",import:()=>e.A(55306)},{id:"erlang",name:"Erlang",aliases:["erl"],import:()=>e.A(79291)},{id:"fennel",name:"Fennel",import:()=>e.A(56334)},{id:"fish",name:"Fish",import:()=>e.A(55953)},{id:"fluent",name:"Fluent",aliases:["ftl"],import:()=>e.A(72286)},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],import:()=>e.A(9599)},{id:"fortran-free-form",name:"Fortran (Free Form)",aliases:["f90","f95","f03","f08","f18"],import:()=>e.A(17187)},{id:"fsharp",name:"F#",aliases:["f#","fs"],import:()=>e.A(6583)},{id:"gdresource",name:"GDResource",aliases:["tscn","tres"],import:()=>e.A(350)},{id:"gdscript",name:"GDScript",aliases:["gd"],import:()=>e.A(18592)},{id:"gdshader",name:"GDShader",import:()=>e.A(64292)},{id:"genie",name:"Genie",import:()=>e.A(51227)},{id:"gherkin",name:"Gherkin",import:()=>e.A(81674)},{id:"git-commit",name:"Git Commit Message",import:()=>e.A(65886)},{id:"git-rebase",name:"Git Rebase Message",import:()=>e.A(43635)},{id:"gleam",name:"Gleam",import:()=>e.A(69752)},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],import:()=>e.A(20210)},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],import:()=>e.A(52204)},{id:"glsl",name:"GLSL",import:()=>e.A(15932)},{id:"gn",name:"GN",import:()=>e.A(46517)},{id:"gnuplot",name:"Gnuplot",import:()=>e.A(34810)},{id:"go",name:"Go",import:()=>e.A(18233)},{id:"graphql",name:"GraphQL",aliases:["gql"],import:()=>e.A(27502)},{id:"groovy",name:"Groovy",import:()=>e.A(83131)},{id:"hack",name:"Hack",import:()=>e.A(66363)},{id:"haml",name:"Ruby Haml",import:()=>e.A(36482)},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:()=>e.A(19104)},{id:"haskell",name:"Haskell",aliases:["hs"],import:()=>e.A(82274)},{id:"haxe",name:"Haxe",import:()=>e.A(43593)},{id:"hcl",name:"HashiCorp HCL",import:()=>e.A(92582)},{id:"hjson",name:"Hjson",import:()=>e.A(32395)},{id:"hlsl",name:"HLSL",import:()=>e.A(36975)},{id:"html",name:"HTML",import:()=>e.A(15475)},{id:"html-derivative",name:"HTML (Derivative)",import:()=>e.A(36812)},{id:"http",name:"HTTP",import:()=>e.A(22332)},{id:"hurl",name:"Hurl",import:()=>e.A(77996)},{id:"hxml",name:"HXML",import:()=>e.A(12671)},{id:"hy",name:"Hy",import:()=>e.A(98975)},{id:"imba",name:"Imba",import:()=>e.A(21794)},{id:"ini",name:"INI",aliases:["properties"],import:()=>e.A(12237)},{id:"java",name:"Java",import:()=>e.A(28056)},{id:"javascript",name:"JavaScript",aliases:["js","cjs","mjs"],import:()=>e.A(92799)},{id:"jinja",name:"Jinja",import:()=>e.A(535)},{id:"jison",name:"Jison",import:()=>e.A(99868)},{id:"json",name:"JSON",import:()=>e.A(92658)},{id:"json5",name:"JSON5",import:()=>e.A(45390)},{id:"jsonc",name:"JSON with Comments",import:()=>e.A(59901)},{id:"jsonl",name:"JSON Lines",import:()=>e.A(44018)},{id:"jsonnet",name:"Jsonnet",import:()=>e.A(32597)},{id:"jssm",name:"JSSM",aliases:["fsl"],import:()=>e.A(86493)},{id:"jsx",name:"JSX",import:()=>e.A(87672)},{id:"julia",name:"Julia",aliases:["jl"],import:()=>e.A(48045)},{id:"just",name:"Just",import:()=>e.A(4538)},{id:"kdl",name:"KDL",import:()=>e.A(22051)},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],import:()=>e.A(78014)},{id:"kusto",name:"Kusto",aliases:["kql"],import:()=>e.A(11938)},{id:"latex",name:"LaTeX",import:()=>e.A(82697)},{id:"lean",name:"Lean 4",aliases:["lean4"],import:()=>e.A(6774)},{id:"less",name:"Less",import:()=>e.A(57069)},{id:"liquid",name:"Liquid",import:()=>e.A(33954)},{id:"llvm",name:"LLVM IR",import:()=>e.A(69445)},{id:"log",name:"Log file",import:()=>e.A(32210)},{id:"logo",name:"Logo",import:()=>e.A(17136)},{id:"lua",name:"Lua",import:()=>e.A(47287)},{id:"luau",name:"Luau",import:()=>e.A(98173)},{id:"make",name:"Makefile",aliases:["makefile"],import:()=>e.A(18877)},{id:"markdown",name:"Markdown",aliases:["md"],import:()=>e.A(59142)},{id:"marko",name:"Marko",import:()=>e.A(44609)},{id:"matlab",name:"MATLAB",import:()=>e.A(23845)},{id:"mdc",name:"MDC",import:()=>e.A(67535)},{id:"mdx",name:"MDX",import:()=>e.A(59189)},{id:"mermaid",name:"Mermaid",aliases:["mmd"],import:()=>e.A(57619)},{id:"mipsasm",name:"MIPS Assembly",aliases:["mips"],import:()=>e.A(1626)},{id:"mojo",name:"Mojo",import:()=>e.A(24176)},{id:"moonbit",name:"MoonBit",aliases:["mbt","mbti"],import:()=>e.A(5353)},{id:"move",name:"Move",import:()=>e.A(47969)},{id:"narrat",name:"Narrat Language",aliases:["nar"],import:()=>e.A(55902)},{id:"nextflow",name:"Nextflow",aliases:["nf"],import:()=>e.A(57638)},{id:"nextflow-groovy",name:"Nextflow Groovy",import:()=>e.A(72194)},{id:"nginx",name:"Nginx",import:()=>e.A(47723)},{id:"nim",name:"Nim",import:()=>e.A(46820)},{id:"nix",name:"Nix",import:()=>e.A(65220)},{id:"nushell",name:"nushell",aliases:["nu"],import:()=>e.A(21908)},{id:"objective-c",name:"Objective-C",aliases:["objc"],import:()=>e.A(98543)},{id:"objective-cpp",name:"Objective-C++",import:()=>e.A(53213)},{id:"ocaml",name:"OCaml",import:()=>e.A(57016)},{id:"odin",name:"Odin",import:()=>e.A(144)},{id:"openscad",name:"OpenSCAD",aliases:["scad"],import:()=>e.A(89188)},{id:"pascal",name:"Pascal",import:()=>e.A(94584)},{id:"perl",name:"Perl",import:()=>e.A(90087)},{id:"php",name:"PHP",import:()=>e.A(53525)},{id:"pkl",name:"Pkl",import:()=>e.A(6695)},{id:"plsql",name:"PL/SQL",import:()=>e.A(85641)},{id:"po",name:"Gettext PO",aliases:["pot","potx"],import:()=>e.A(15520)},{id:"polar",name:"Polar",import:()=>e.A(79736)},{id:"postcss",name:"PostCSS",import:()=>e.A(44743)},{id:"powerquery",name:"PowerQuery",import:()=>e.A(69901)},{id:"powershell",name:"PowerShell",aliases:["ps","ps1"],import:()=>e.A(49765)},{id:"prisma",name:"Prisma",import:()=>e.A(25840)},{id:"prolog",name:"Prolog",import:()=>e.A(78110)},{id:"proto",name:"Protocol Buffer 3",aliases:["protobuf"],import:()=>e.A(10002)},{id:"pug",name:"Pug",aliases:["jade"],import:()=>e.A(53456)},{id:"puppet",name:"Puppet",import:()=>e.A(28116)},{id:"purescript",name:"PureScript",import:()=>e.A(62792)},{id:"python",name:"Python",aliases:["py"],import:()=>e.A(48436)},{id:"qml",name:"QML",import:()=>e.A(85774)},{id:"qmldir",name:"QML Directory",import:()=>e.A(22682)},{id:"qss",name:"Qt Style Sheets",import:()=>e.A(29273)},{id:"r",name:"R",import:()=>e.A(17431)},{id:"racket",name:"Racket",import:()=>e.A(27184)},{id:"raku",name:"Raku",aliases:["perl6"],import:()=>e.A(2999)},{id:"razor",name:"ASP.NET Razor",import:()=>e.A(22510)},{id:"reg",name:"Windows Registry Script",import:()=>e.A(92914)},{id:"regexp",name:"RegExp",aliases:["regex"],import:()=>e.A(64980)},{id:"rel",name:"Rel",import:()=>e.A(62249)},{id:"riscv",name:"RISC-V",import:()=>e.A(19686)},{id:"ron",name:"RON",import:()=>e.A(23169)},{id:"rosmsg",name:"ROS Interface",import:()=>e.A(66973)},{id:"rst",name:"reStructuredText",import:()=>e.A(80357)},{id:"ruby",name:"Ruby",aliases:["rb"],import:()=>e.A(60137)},{id:"rust",name:"Rust",aliases:["rs"],import:()=>e.A(25837)},{id:"sas",name:"SAS",import:()=>e.A(59154)},{id:"sass",name:"Sass",import:()=>e.A(28160)},{id:"scala",name:"Scala",import:()=>e.A(79226)},{id:"scheme",name:"Scheme",import:()=>e.A(95554)},{id:"scss",name:"SCSS",import:()=>e.A(56229)},{id:"sdbl",name:"1C (Query)",aliases:["1c-query"],import:()=>e.A(57294)},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],import:()=>e.A(87646)},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:()=>e.A(77876)},{id:"shellsession",name:"Shell Session",aliases:["console"],import:()=>e.A(2789)},{id:"smalltalk",name:"Smalltalk",import:()=>e.A(5404)},{id:"solidity",name:"Solidity",import:()=>e.A(64050)},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],import:()=>e.A(23766)},{id:"sparql",name:"SPARQL",import:()=>e.A(71095)},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],import:()=>e.A(13125)},{id:"sql",name:"SQL",import:()=>e.A(47760)},{id:"ssh-config",name:"SSH Config",import:()=>e.A(25380)},{id:"stata",name:"Stata",import:()=>e.A(27772)},{id:"stylus",name:"Stylus",aliases:["styl"],import:()=>e.A(31592)},{id:"surrealql",name:"SurrealQL",aliases:["surql"],import:()=>e.A(42509)},{id:"svelte",name:"Svelte",import:()=>e.A(9551)},{id:"swift",name:"Swift",import:()=>e.A(74099)},{id:"system-verilog",name:"SystemVerilog",import:()=>e.A(1250)},{id:"systemd",name:"Systemd Units",import:()=>e.A(44475)},{id:"talonscript",name:"TalonScript",aliases:["talon"],import:()=>e.A(538)},{id:"tasl",name:"Tasl",import:()=>e.A(36651)},{id:"tcl",name:"Tcl",import:()=>e.A(9948)},{id:"templ",name:"Templ",import:()=>e.A(40336)},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],import:()=>e.A(8436)},{id:"tex",name:"TeX",import:()=>e.A(55636)},{id:"toml",name:"TOML",import:()=>e.A(51979)},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],import:()=>e.A(65678)},{id:"tsv",name:"TSV",import:()=>e.A(41727)},{id:"tsx",name:"TSX",import:()=>e.A(57754)},{id:"turtle",name:"Turtle",import:()=>e.A(70454)},{id:"twig",name:"Twig",import:()=>e.A(70515)},{id:"typescript",name:"TypeScript",aliases:["ts","cts","mts"],import:()=>e.A(48460)},{id:"typespec",name:"TypeSpec",aliases:["tsp"],import:()=>e.A(44538)},{id:"typst",name:"Typst",aliases:["typ"],import:()=>e.A(63321)},{id:"v",name:"V",import:()=>e.A(43837)},{id:"vala",name:"Vala",import:()=>e.A(30536)},{id:"vb",name:"Visual Basic",aliases:["cmd"],import:()=>e.A(85051)},{id:"verilog",name:"Verilog",import:()=>e.A(86017)},{id:"vhdl",name:"VHDL",import:()=>e.A(95694)},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],import:()=>e.A(4547)},{id:"vue",name:"Vue",import:()=>e.A(34329)},{id:"vue-html",name:"Vue HTML",import:()=>e.A(60550)},{id:"vue-vine",name:"Vue Vine",import:()=>e.A(109)},{id:"vyper",name:"Vyper",aliases:["vy"],import:()=>e.A(34235)},{id:"wasm",name:"WebAssembly",import:()=>e.A(79931)},{id:"wenyan",name:"Wenyan",aliases:["文言"],import:()=>e.A(38463)},{id:"wgsl",name:"WGSL",import:()=>e.A(64547)},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],import:()=>e.A(74196)},{id:"wit",name:"WebAssembly Interface Types",import:()=>e.A(26245)},{id:"wolfram",name:"Wolfram",aliases:["wl"],import:()=>e.A(98654)},{id:"xml",name:"XML",import:()=>e.A(60115)},{id:"xsl",name:"XSL",import:()=>e.A(56841)},{id:"yaml",name:"YAML",aliases:["yml"],import:()=>e.A(91412)},{id:"zenscript",name:"ZenScript",import:()=>e.A(41270)},{id:"zig",name:"Zig",import:()=>e.A(32344)}],hn=Object.fromEntries(ht.map(e=>[e.id,e.import])),hr=Object.fromEntries(ht.flatMap(e=>{var t;return(null==(t=e.aliases)?void 0:t.map(t=>[t,e.import]))||[]})),hi={...hn,...hr},ha=Object.fromEntries([{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:()=>e.A(52913)},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:()=>e.A(95208)},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:()=>e.A(52844)},{id:"ayu-light",displayName:"Ayu Light",type:"light",import:()=>e.A(76488)},{id:"ayu-mirage",displayName:"Ayu Mirage",type:"dark",import:()=>e.A(36002)},{id:"catppuccin-frappe",displayName:"Catppuccin Frappé",type:"dark",import:()=>e.A(72934)},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:()=>e.A(31036)},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:()=>e.A(23803)},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:()=>e.A(86330)},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:()=>e.A(81001)},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:()=>e.A(95735)},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:()=>e.A(2100)},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:()=>e.A(58172)},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:()=>e.A(75274)},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:()=>e.A(57811)},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:()=>e.A(14214)},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:()=>e.A(48353)},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:()=>e.A(40920)},{id:"github-light",displayName:"GitHub Light",type:"light",import:()=>e.A(79755)},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:()=>e.A(5550)},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:()=>e.A(60233)},{id:"gruvbox-dark-hard",displayName:"Gruvbox Dark Hard",type:"dark",import:()=>e.A(80721)},{id:"gruvbox-dark-medium",displayName:"Gruvbox Dark Medium",type:"dark",import:()=>e.A(27266)},{id:"gruvbox-dark-soft",displayName:"Gruvbox Dark Soft",type:"dark",import:()=>e.A(31214)},{id:"gruvbox-light-hard",displayName:"Gruvbox Light Hard",type:"light",import:()=>e.A(81110)},{id:"gruvbox-light-medium",displayName:"Gruvbox Light Medium",type:"light",import:()=>e.A(37683)},{id:"gruvbox-light-soft",displayName:"Gruvbox Light Soft",type:"light",import:()=>e.A(28130)},{id:"horizon",displayName:"Horizon",type:"dark",import:()=>e.A(70579)},{id:"horizon-bright",displayName:"Horizon Bright",type:"light",import:()=>e.A(87165)},{id:"houston",displayName:"Houston",type:"dark",import:()=>e.A(77856)},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:()=>e.A(94363)},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:()=>e.A(48953)},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:()=>e.A(11812)},{id:"laserwave",displayName:"LaserWave",type:"dark",import:()=>e.A(9732)},{id:"light-plus",displayName:"Light Plus",type:"light",import:()=>e.A(30788)},{id:"material-theme",displayName:"Material Theme",type:"dark",import:()=>e.A(11374)},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:()=>e.A(69460)},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:()=>e.A(74478)},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:()=>e.A(49008)},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:()=>e.A(77952)},{id:"min-dark",displayName:"Min Dark",type:"dark",import:()=>e.A(20463)},{id:"min-light",displayName:"Min Light",type:"light",import:()=>e.A(30169)},{id:"monokai",displayName:"Monokai",type:"dark",import:()=>e.A(77035)},{id:"night-owl",displayName:"Night Owl",type:"dark",import:()=>e.A(61439)},{id:"night-owl-light",displayName:"Night Owl Light",type:"light",import:()=>e.A(28589)},{id:"nord",displayName:"Nord",type:"dark",import:()=>e.A(67304)},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:()=>e.A(94497)},{id:"one-light",displayName:"One Light",type:"light",import:()=>e.A(53619)},{id:"plastic",displayName:"Plastic",type:"dark",import:()=>e.A(41717)},{id:"poimandres",displayName:"Poimandres",type:"dark",import:()=>e.A(3232)},{id:"red",displayName:"Red",type:"dark",import:()=>e.A(69411)},{id:"rose-pine",displayName:"Rosé Pine",type:"dark",import:()=>e.A(53065)},{id:"rose-pine-dawn",displayName:"Rosé Pine Dawn",type:"light",import:()=>e.A(81356)},{id:"rose-pine-moon",displayName:"Rosé Pine Moon",type:"dark",import:()=>e.A(91336)},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:()=>e.A(58732)},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:()=>e.A(5358)},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:()=>e.A(53493)},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:()=>e.A(67374)},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:()=>e.A(61630)},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:()=>e.A(35353)},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:()=>e.A(29817)},{id:"vesper",displayName:"Vesper",type:"dark",import:()=>e.A(66144)},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:()=>e.A(96740)},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:()=>e.A(96290)},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:()=>e.A(61379)}].map(e=>[e.id,e.import]));var ho=class extends Error{constructor(e){super(e),this.name="ShikiError"}};function hs(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return n.forEach(t=>{for(let n in t)e[n]=t[n]}),e}var hl=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,hc=class{static hasCaptures(e){return null!==e&&(hl.lastIndex=0,hl.test(e))}static replaceCaptures(e,t,n){return e.replace(hl,(e,r,i,a)=>{let o=n[parseInt(r||i,10)];if(!o)return e;{let e=t.substring(o.start,o.end);for(;"."===e[0];)e=e.substring(1);switch(a){case"downcase":return e.toLowerCase();case"upcase":return e.toUpperCase();default:return e}}})}};function hu(e,t){if(null===e&&null===t)return 0;if(!e)return -1;if(!t)return 1;let n=e.length,r=t.length;if(n===r){for(let r=0;r<n;r++){var i,a;let n=(i=e[r],i<(a=t[r])?-1:+(i>a));if(0!==n)return n}return 0}return n-r}function hh(e){return!!(/^#[0-9a-f]{6}$/i.test(e)||/^#[0-9a-f]{8}$/i.test(e)||/^#[0-9a-f]{3}$/i.test(e)||/^#[0-9a-f]{4}$/i.test(e))}function hp(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var hd=class{get(e){if(this.cache.has(e))return this.cache.get(e);let t=this.fn(e);return this.cache.set(e,t),t}constructor(e){(0,V._)(this,"cache",new Map),this.fn=e}},hm=class{static createFromRawTheme(e,t){return this.createFromParsedTheme(function(e){if(!e||!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,n=[],r=0;for(let e=0,i=t.length;e<i;e++){let i,a=t[e];if(!a.settings)continue;if("string"==typeof a.scope){let e=a.scope;i=(e=(e=e.replace(/^[,]+/,"")).replace(/[,]+$/,"")).split(",")}else i=Array.isArray(a.scope)?a.scope:[""];let o=-1;if("string"==typeof a.settings.fontStyle){o=0;let e=a.settings.fontStyle.split(" ");for(let t=0,n=e.length;t<n;t++)switch(e[t]){case"italic":o|=1;break;case"bold":o|=2;break;case"underline":o|=4;break;case"strikethrough":o|=8}}let s=null;"string"==typeof a.settings.foreground&&hh(a.settings.foreground)&&(s=a.settings.foreground);let l=null;"string"==typeof a.settings.background&&hh(a.settings.background)&&(l=a.settings.background);for(let t=0,a=i.length;t<a;t++){let a=i[t].trim().split(" "),c=a[a.length-1],u=null;a.length>1&&(u=a.slice(0,a.length-1)).reverse(),n[r++]=new hy(c,u,e,o,s,l)}}return n}(e),t)}static createFromParsedTheme(e,t){return function(e,t){e.sort((e,t)=>{var n,r;let i=(n=e.scope,n<(r=t.scope)?-1:+(n>r));return 0!==i||0!==(i=hu(e.parentScopes,t.parentScopes))?i:e.index-t.index});let n=0,r="#000000",i="#ffffff";for(;e.length>=1&&""===e[0].scope;){let t=e.shift();-1!==t.fontStyle&&(n=t.fontStyle),null!==t.foreground&&(r=t.foreground),null!==t.background&&(i=t.background)}let a=new hv(t),o=new hg(n,a.getId(r),a.getId(i)),s=new hw(new hk(0,null,-1,0,0),[]);for(let t=0,n=e.length;t<n;t++){let n=e[t];s.insert(0,n.scope,n.parentScopes,n.fontStyle,a.getId(n.foreground),a.getId(n.background))}return new hm(a,o,s)}(e,t)}getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(null===e)return this._defaults;let t=e.scopeName,n=this._cachedMatchRoot.get(t).find(t=>(function(e,t){if(0===t.length)return!0;for(let i=0;i<t.length;i++){var n,r;let a=t[i],o=!1;if(">"===a){if(i===t.length-1)return!1;a=t[++i],o=!0}for(;e&&(n=e.scopeName,!((r=a)===n||n.startsWith(r)&&"."===n[r.length]));){if(o)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0})(e.parent,t.parentScopes));return n?new hg(n.fontStyle,n.foreground,n.background):null}constructor(e,t,n){(0,V._)(this,"_cachedMatchRoot",new hd(e=>this._root.match(e))),this._colorMap=e,this._defaults=t,this._root=n}},hf=class e{static push(t,n){for(let r of n)t=new e(t,r);return t}static from(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];let i=null;for(let t=0;t<n.length;t++)i=new e(i,n[t]);return i}push(t){return new e(this,t)}getSegments(){let e=this,t=[];for(;e;)t.push(e.scopeName),e=e.parent;return t.reverse(),t}toString(){return this.getSegments().join(" ")}extends(e){return this===e||null!==this.parent&&this.parent.extends(e)}getExtensionIfDefined(e){let t=[],n=this;for(;n&&n!==e;)t.push(n.scopeName),n=n.parent;return n===e?t.reverse():void 0}constructor(e,t){this.parent=e,this.scopeName=t}},hg=class{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}},hy=class{constructor(e,t,n,r,i,a){this.scope=e,this.parentScopes=t,this.index=n,this.fontStyle=r,this.foreground=i,this.background=a}},hb=(e=>(e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline",e[e.Strikethrough=8]="Strikethrough",e))(hb||{}),hv=class{getId(e){if(null===e)return 0;e=e.toUpperCase();let t=this._color2id[e];if(t)return t;if(this._isFrozen)throw Error("Missing color in color map - ".concat(e));return t=++this._lastColorId,this._color2id[e]=t,this._id2color[t]=e,t}getColorMap(){return this._id2color.slice(0)}constructor(e){if((0,V._)(this,"_isFrozen",void 0),(0,V._)(this,"_lastColorId",void 0),(0,V._)(this,"_id2color",void 0),(0,V._)(this,"_color2id",void 0),this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,n=e.length;t<n;t++)this._color2id[e[t]]=t,this._id2color[t]=e[t]}else this._isFrozen=!1}},hx=Object.freeze([]),hk=class e{clone(){return new e(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=e[n].clone();return t}acceptOverwrite(e,t,n,r){this.scopeDepth>e?console.log("how did this happen?"):this.scopeDepth=e,-1!==t&&(this.fontStyle=t),0!==n&&(this.foreground=n),0!==r&&(this.background=r)}constructor(e,t,n,r,i){(0,V._)(this,"scopeDepth",void 0),(0,V._)(this,"parentScopes",void 0),(0,V._)(this,"fontStyle",void 0),(0,V._)(this,"foreground",void 0),(0,V._)(this,"background",void 0),this.scopeDepth=e,this.parentScopes=t||hx,this.fontStyle=n,this.foreground=r,this.background=i}},hw=class e{static _cmpBySpecificity(e,t){if(e.scopeDepth!==t.scopeDepth)return t.scopeDepth-e.scopeDepth;let n=0,r=0;for(;">"===e.parentScopes[n]&&n++,">"===t.parentScopes[r]&&r++,!(n>=e.parentScopes.length)&&!(r>=t.parentScopes.length);){let i=t.parentScopes[r].length-e.parentScopes[n].length;if(0!==i)return i;n++,r++}return t.parentScopes.length-e.parentScopes.length}match(t){if(""!==t){let e,n,r=t.indexOf(".");if(-1===r?(e=t,n=""):(e=t.substring(0,r),n=t.substring(r+1)),this._children.hasOwnProperty(e))return this._children[e].match(n)}let n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(e._cmpBySpecificity),n}insert(t,n,r,i,a,o){let s,l,c;if(""===n)return void this._doInsertHere(t,r,i,a,o);let u=n.indexOf(".");-1===u?(s=n,l=""):(s=n.substring(0,u),l=n.substring(u+1)),this._children.hasOwnProperty(s)?c=this._children[s]:(c=new e(this._mainRule.clone(),hk.cloneArr(this._rulesWithParentScopes)),this._children[s]=c),c.insert(t+1,l,r,i,a,o)}_doInsertHere(e,t,n,r,i){if(null===t)return void this._mainRule.acceptOverwrite(e,n,r,i);for(let a=0,o=this._rulesWithParentScopes.length;a<o;a++){let o=this._rulesWithParentScopes[a];if(0===hu(o.parentScopes,t))return void o.acceptOverwrite(e,n,r,i)}-1===n&&(n=this._mainRule.fontStyle),0===r&&(r=this._mainRule.foreground),0===i&&(i=this._mainRule.background),this._rulesWithParentScopes.push(new hk(e,t,n,r,i))}constructor(e,t=[],n={}){(0,V._)(this,"_rulesWithParentScopes",void 0),this._mainRule=e,this._children=n,this._rulesWithParentScopes=t}},hS=class e{static toBinaryStr(e){return e.toString(2).padStart(32,"0")}static print(t){let n=e.getLanguageId(t),r=e.getTokenType(t),i=e.getFontStyle(t);console.log({languageId:n,tokenType:r,fontStyle:i,foreground:e.getForeground(t),background:e.getBackground(t)})}static getLanguageId(e){return(255&e)>>>0}static getTokenType(e){return(768&e)>>>8}static containsBalancedBrackets(e){return(1024&e)!=0}static getFontStyle(e){return(30720&e)>>>11}static getForeground(e){return(0xff8000&e)>>>15}static getBackground(e){return(0xff000000&e)>>>24}static set(t,n,r,i,a,o,s){let l=e.getLanguageId(t),c=e.getTokenType(t),u=+!!e.containsBalancedBrackets(t),h=e.getFontStyle(t),p=e.getForeground(t),d=e.getBackground(t);return 0!==n&&(l=n),8!==r&&(c=r),null!==i&&(u=+!!i),-1!==a&&(h=a),0!==o&&(p=o),0!==s&&(d=s),(0|l|c<<8|u<<10|h<<11|p<<15|d<<24)>>>0}};function hA(e,t){var n;let r,i,a=[],o=(n=e,i=(r=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g).exec(n),{next:()=>{if(!i)return null;let e=i[0];return i=r.exec(n),e}}),s=o.next();for(;null!==s;){let e=0;if(2===s.length&&":"===s.charAt(1)){switch(s.charAt(0)){case"R":e=1;break;case"L":e=-1;break;default:console.log("Unknown priority ".concat(s," in scope selector"))}s=o.next()}let t=c();if(a.push({matcher:t,priority:e}),","!==s)break;s=o.next()}return a;function l(){if("-"===s){s=o.next();let e=l();return t=>!!e&&!e(t)}if("("===s){s=o.next();let e=function(){let e=[],t=c();for(;t&&(e.push(t),"|"===s||","===s);){do s=o.next();while("|"===s||","===s)t=c()}return t=>e.some(e=>e(t))}();return")"===s&&(s=o.next()),e}if(hC(s)){let e=[];do e.push(s),s=o.next();while(hC(s))return n=>t(e,n)}return null}function c(){let e=[],t=l();for(;t;)e.push(t),t=l();return t=>e.every(e=>e(t))}}function hC(e){return!!e&&!!e.match(/[\w\.:]+/)}var hT=(e=>(e[e.None=0]="None",e[e.NotBeginString=1]="NotBeginString",e[e.NotEndString=2]="NotEndString",e[e.NotBeginPosition=4]="NotBeginPosition",e[e.DebugCall=8]="DebugCall",e))(hT||{});function h_(e){"function"==typeof e.dispose&&e.dispose()}var hM=class{toKey(){return this.scopeName}constructor(e){this.scopeName=e}},hN=class{toKey(){return"".concat(this.scopeName,"#").concat(this.ruleName)}constructor(e,t){this.scopeName=e,this.ruleName=t}},hE=class{get references(){return this._references}add(e){let t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}constructor(){(0,V._)(this,"_references",[]),(0,V._)(this,"_seenReferenceKeys",new Set),(0,V._)(this,"visitedRule",new Set)}},hz=class{processQueue(){let e=this.Q;this.Q=[];let t=new hE;for(let n of e)!function(e,t,n,r){let i=n.lookup(e.scopeName);if(!i){if(e.scopeName===t)throw Error("No grammar provided for <".concat(t,">"));return}let a=n.lookup(t);e instanceof hM?hR({baseGrammar:a,selfGrammar:i},r):hI(e.ruleName,{baseGrammar:a,selfGrammar:i,repository:i.repository},r);let o=n.injections(e.scopeName);if(o)for(let e of o)r.add(new hM(e))}(n,this.initialScopeName,this.repo,t);for(let e of t.references)if(e instanceof hM){if(this.seenFullScopeRequests.has(e.scopeName))continue;this.seenFullScopeRequests.add(e.scopeName),this.Q.push(e)}else{if(this.seenFullScopeRequests.has(e.scopeName)||this.seenPartialScopeRequests.has(e.toKey()))continue;this.seenPartialScopeRequests.add(e.toKey()),this.Q.push(e)}}constructor(e,t){(0,V._)(this,"seenFullScopeRequests",new Set),(0,V._)(this,"seenPartialScopeRequests",new Set),(0,V._)(this,"Q",void 0),this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new hM(this.initialScopeName)]}};function hI(e,t,n){t.repository&&t.repository[e]&&hj([t.repository[e]],t,n)}function hR(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&hj(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&hj(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function hj(e,t,n){for(let r of e){if(n.visitedRule.has(r))continue;n.visitedRule.add(r);let e=r.repository?hs({},t.repository,r.repository):t.repository;Array.isArray(r.patterns)&&hj(r.patterns,{...t,repository:e},n);let i=r.include;if(!i)continue;let a=hF(i);switch(a.kind){case 0:hR({...t,selfGrammar:t.baseGrammar},n);break;case 1:hR(t,n);break;case 2:hI(a.ruleName,{...t,repository:e},n);break;case 3:case 4:let o=a.scopeName===t.selfGrammar.scopeName?t.selfGrammar:a.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(o){let r={baseGrammar:t.baseGrammar,selfGrammar:o,repository:e};4===a.kind?hI(a.ruleName,r,n):hR(r,n)}else 4===a.kind?n.add(new hN(a.scopeName,a.ruleName)):n.add(new hM(a.scopeName))}}}var hL=class{constructor(){(0,V._)(this,"kind",0)}},hP=class{constructor(){(0,V._)(this,"kind",1)}},hB=class{constructor(e){(0,V._)(this,"kind",2),this.ruleName=e}},hO=class{constructor(e){(0,V._)(this,"kind",3),this.scopeName=e}},hD=class{constructor(e,t){(0,V._)(this,"kind",4),this.scopeName=e,this.ruleName=t}};function hF(e){if("$base"===e)return new hL;if("$self"===e)return new hP;let t=e.indexOf("#");return -1===t?new hO(e):0===t?new hB(e.substring(1)):new hD(e.substring(0,t),e.substring(t+1))}var hq=/\\(\d+)/,hH=/\\(\d+)/g;Symbol("RuleId");var hU=class{get debugName(){let e=this.$location?"".concat(function e(t){let n=~t.lastIndexOf("/")||~t.lastIndexOf("\\");return 0===n?t:~n==t.length-1?e(t.substring(0,t.length-1)):t.substr(~n+1)}(this.$location.filename),":").concat(this.$location.line):"unknown";return"".concat(this.constructor.name,"#").concat(this.id," @ ").concat(e)}getName(e,t){return this._nameIsCapturing&&null!==this._name&&null!==e&&null!==t?hc.replaceCaptures(this._name,e,t):this._name}getContentName(e,t){return this._contentNameIsCapturing&&null!==this._contentName?hc.replaceCaptures(this._contentName,e,t):this._contentName}constructor(e,t,n,r){(0,V._)(this,"$location",void 0),(0,V._)(this,"id",void 0),(0,V._)(this,"_nameIsCapturing",void 0),(0,V._)(this,"_name",void 0),(0,V._)(this,"_contentNameIsCapturing",void 0),(0,V._)(this,"_contentName",void 0),this.$location=e,this.id=t,this._name=n||null,this._nameIsCapturing=hc.hasCaptures(this._name),this._contentName=r||null,this._contentNameIsCapturing=hc.hasCaptures(this._contentName)}},hG=class extends hU{dispose(){}collectPatterns(e,t){throw Error("Not supported!")}compile(e,t){throw Error("Not supported!")}compileAG(e,t,n,r){throw Error("Not supported!")}constructor(e,t,n,r,i){super(e,t,n,r),(0,V._)(this,"retokenizeCapturedWithRuleId",void 0),this.retokenizeCapturedWithRuleId=i}},hW=class extends hU{dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return"".concat(this._match.source)}collectPatterns(e,t){t.push(this._match)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new hZ,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}constructor(e,t,n,r,i){super(e,t,n,null),(0,V._)(this,"_match",void 0),(0,V._)(this,"captures",void 0),(0,V._)(this,"_cachedCompiledPatterns",void 0),this._match=new hJ(r,this.id),this.captures=i,this._cachedCompiledPatterns=null}},hV=class extends hU{dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(e,t){for(let n of this.patterns)e.getRule(n).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new hZ,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}constructor(e,t,n,r,i){super(e,t,n,r),(0,V._)(this,"hasMissingPatterns",void 0),(0,V._)(this,"patterns",void 0),(0,V._)(this,"_cachedCompiledPatterns",void 0),this.patterns=i.patterns,this.hasMissingPatterns=i.hasMissingPatterns,this._cachedCompiledPatterns=null}},h$=class extends hU{dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return"".concat(this._begin.source)}get debugEndRegExp(){return"".concat(this._end.source)}getEndWithResolvedBackReferences(e,t){return this._end.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e,t).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e,t).compileAG(e,n,r)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){for(let t of(this._cachedCompiledPatterns=new hZ,this.patterns))e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,t):this._cachedCompiledPatterns.setSource(0,t)),this._cachedCompiledPatterns}constructor(e,t,n,r,i,a,o,s,l,c){super(e,t,n,r),(0,V._)(this,"_begin",void 0),(0,V._)(this,"beginCaptures",void 0),(0,V._)(this,"_end",void 0),(0,V._)(this,"endHasBackReferences",void 0),(0,V._)(this,"endCaptures",void 0),(0,V._)(this,"applyEndPatternLast",void 0),(0,V._)(this,"hasMissingPatterns",void 0),(0,V._)(this,"patterns",void 0),(0,V._)(this,"_cachedCompiledPatterns",void 0),this._begin=new hJ(i,this.id),this.beginCaptures=a,this._end=new hJ(o||"",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=s,this.applyEndPatternLast=l||!1,this.patterns=c.patterns,this.hasMissingPatterns=c.hasMissingPatterns,this._cachedCompiledPatterns=null}},hX=class extends hU{dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return"".concat(this._begin.source)}get debugWhileRegExp(){return"".concat(this._while.source)}getWhileWithResolvedBackReferences(e,t){return this._while.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns)for(let t of(this._cachedCompiledPatterns=new hZ,this.patterns))e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns);return this._cachedCompiledPatterns}compileWhile(e,t){return this._getCachedCompiledWhilePatterns(e,t).compile(e)}compileWhileAG(e,t,n,r){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,n,r)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new hZ,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||""),this._cachedCompiledWhilePatterns}constructor(e,t,n,r,i,a,o,s,l){super(e,t,n,r),(0,V._)(this,"_begin",void 0),(0,V._)(this,"beginCaptures",void 0),(0,V._)(this,"whileCaptures",void 0),(0,V._)(this,"_while",void 0),(0,V._)(this,"whileHasBackReferences",void 0),(0,V._)(this,"hasMissingPatterns",void 0),(0,V._)(this,"patterns",void 0),(0,V._)(this,"_cachedCompiledPatterns",void 0),(0,V._)(this,"_cachedCompiledWhilePatterns",void 0),this._begin=new hJ(i,this.id),this.beginCaptures=a,this.whileCaptures=s,this._while=new hJ(o,-2),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=l.patterns,this.hasMissingPatterns=l.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}},hY=class e{static createCaptureRule(e,t,n,r,i){return e.registerRule(e=>new hG(t,e,n,r,i))}static getCompiledRuleId(t,n,r){return t.id||n.registerRule(i=>{if(t.id=i,t.match)return new hW(t.$vscodeTextmateLocation,t.id,t.name,t.match,e._compileCaptures(t.captures,n,r));if(void 0===t.begin){t.repository&&(r=hs({},r,t.repository));let i=t.patterns;return void 0===i&&t.include&&(i=[{include:t.include}]),new hV(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,e._compilePatterns(i,n,r))}return t.while?new hX(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,e._compileCaptures(t.beginCaptures||t.captures,n,r),t.while,e._compileCaptures(t.whileCaptures||t.captures,n,r),e._compilePatterns(t.patterns,n,r)):new h$(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,e._compileCaptures(t.beginCaptures||t.captures,n,r),t.end,e._compileCaptures(t.endCaptures||t.captures,n,r),t.applyEndPatternLast,e._compilePatterns(t.patterns,n,r))}),t.id}static _compileCaptures(t,n,r){let i=[];if(t){let a=0;for(let e in t){if("$vscodeTextmateLocation"===e)continue;let t=parseInt(e,10);t>a&&(a=t)}for(let e=0;e<=a;e++)i[e]=null;for(let a in t){if("$vscodeTextmateLocation"===a)continue;let o=parseInt(a,10),s=0;t[a].patterns&&(s=e.getCompiledRuleId(t[a],n,r)),i[o]=e.createCaptureRule(n,t[a].$vscodeTextmateLocation,t[a].name,t[a].contentName,s)}}return i}static _compilePatterns(t,n,r){let i=[];if(t)for(let a=0,o=t.length;a<o;a++){let o=t[a],s=-1;if(o.include){let t=hF(o.include);switch(t.kind){case 0:case 1:s=e.getCompiledRuleId(r[o.include],n,r);break;case 2:let i=r[t.ruleName];i&&(s=e.getCompiledRuleId(i,n,r));break;case 3:case 4:let a=t.scopeName,l=4===t.kind?t.ruleName:null,c=n.getExternalGrammar(a,r);if(c)if(l){let t=c.repository[l];t&&(s=e.getCompiledRuleId(t,n,c.repository))}else s=e.getCompiledRuleId(c.repository.$self,n,c.repository)}}else s=e.getCompiledRuleId(o,n,r);if(-1!==s){let e=n.getRule(s),t=!1;if((e instanceof hV||e instanceof h$||e instanceof hX)&&e.hasMissingPatterns&&0===e.patterns.length&&(t=!0),t)continue;i.push(s)}}return{patterns:i,hasMissingPatterns:(t?t.length:0)!==i.length}}},hJ=class e{clone(){return new e(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,t){if("string"!=typeof this.source)throw Error("This method should only be called if the source is a string");let n=t.map(t=>e.substring(t.start,t.end));return hH.lastIndex=0,this.source.replace(hH,(e,t)=>hp(n[parseInt(t,10)]||""))}_buildAnchorCache(){let e,t,n,r;if("string"!=typeof this.source)throw Error("This method should only be called if the source is a string");let i=[],a=[],o=[],s=[];for(e=0,t=this.source.length;e<t;e++)n=this.source.charAt(e),i[e]=n,a[e]=n,o[e]=n,s[e]=n,"\\"===n&&e+1<t&&("A"===(r=this.source.charAt(e+1))?(i[e+1]="",a[e+1]="",o[e+1]="A",s[e+1]="A"):"G"===r?(i[e+1]="",a[e+1]="G",o[e+1]="",s[e+1]="G"):(i[e+1]=r,a[e+1]=r,o[e+1]=r,s[e+1]=r),e++);return{A0_G0:i.join(""),A0_G1:a.join(""),A1_G0:o.join(""),A1_G1:s.join("")}}resolveAnchors(e,t){if(!this.hasAnchor||!this._anchorCache||"string"!=typeof this.source)return this.source;if(e)if(t)return this._anchorCache.A1_G1;else return this._anchorCache.A1_G0;return t?this._anchorCache.A0_G1:this._anchorCache.A0_G0}constructor(e,t){if((0,V._)(this,"source",void 0),(0,V._)(this,"ruleId",void 0),(0,V._)(this,"hasAnchor",void 0),(0,V._)(this,"hasBackReferences",void 0),(0,V._)(this,"_anchorCache",void 0),e&&"string"==typeof e){let t=e.length,n=0,r=[],i=!1;for(let a=0;a<t;a++)if("\\"===e.charAt(a)&&a+1<t){let t=e.charAt(a+1);"z"===t?(r.push(e.substring(n,a)),r.push("$(?!\\n)(?<!\\n)"),n=a+2):("A"===t||"G"===t)&&(i=!0),a++}this.hasAnchor=i,0===n?this.source=e:(r.push(e.substring(n,t)),this.source=r.join(""))}else this.hasAnchor=!1,this.source=e;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=t,"string"==typeof this.source?this.hasBackReferences=hq.test(this.source):this.hasBackReferences=!1}},hZ=class{dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}unshift(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}length(){return this._items.length}setSource(e,t){this._items[e].source!==t&&(this._disposeCaches(),this._items[e].setSource(t))}compile(e){if(!this._cached){let t=this._items.map(e=>e.source);this._cached=new hK(e,t,this._items.map(e=>e.ruleId))}return this._cached}compileAG(e,t,n){if(!this._hasAnchors)return this.compile(e);if(t)if(n)return this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G1;else return this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G0;return n?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G0)}_resolveAnchors(e,t,n){return new hK(e,this._items.map(e=>e.resolveAnchors(t,n)),this._items.map(e=>e.ruleId))}constructor(){(0,V._)(this,"_items",void 0),(0,V._)(this,"_hasAnchors",void 0),(0,V._)(this,"_cached",void 0),(0,V._)(this,"_anchorCache",void 0),this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}},hK=class{dispose(){"function"==typeof this.scanner.dispose&&this.scanner.dispose()}toString(){let e=[];for(let t=0,n=this.rules.length;t<n;t++)e.push(" - "+this.rules[t]+": "+this.regExps[t]);return e.join("\n")}findNextMatchSync(e,t,n){let r=this.scanner.findNextMatchSync(e,t,n);return r?{ruleId:this.rules[r.index],captureIndices:r.captureIndices}:null}constructor(e,t,n){(0,V._)(this,"scanner",void 0),this.regExps=t,this.rules=n,this.scanner=e.createOnigScanner(t)}},hQ=class{constructor(e,t){this.languageId=e,this.tokenType=t}},h0=(s=class e{getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(t){return null===t?e._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(t)}_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(t){let n=t.match(e.STANDARD_TOKEN_TYPE_REGEXP);if(!n)return 8;switch(n[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw Error("Unexpected match for standard token type!")}constructor(e,t){(0,V._)(this,"_defaultAttributes",void 0),(0,V._)(this,"_embeddedLanguagesMatcher",void 0),(0,V._)(this,"_getBasicScopeAttributes",new hd(e=>new hQ(this._scopeToLanguage(e),this._toStandardTokenType(e)))),this._defaultAttributes=new hQ(e,8),this._embeddedLanguagesMatcher=new h1(Object.entries(t||{}))}},(0,V._)(s,"_NULL_SCOPE_METADATA",new hQ(0,0)),(0,V._)(s,"STANDARD_TOKEN_TYPE_REGEXP",/\b(comment|string|regex|meta\.embedded)\b/),s),h1=class{match(e){if(!this.scopesRegExp)return;let t=e.match(this.scopesRegExp);if(t)return this.values.get(t[1])}constructor(e){if((0,V._)(this,"values",void 0),(0,V._)(this,"scopesRegExp",void 0),0===e.length)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);let t=e.map(e=>{let[t,n]=e;return hp(t)});t.sort(),t.reverse(),this.scopesRegExp=RegExp("^((".concat(t.join(")|("),"))($|\\.)"),"")}}};void 0!==S.default&&S.default.env.VSCODE_TEXTMATE_DEBUG;var h4=class{constructor(e,t){this.stack=e,this.stoppedEarly=t}};function h5(e,t,n,r,i,a,o,s){let l=t.content.length,c=!1,u=-1;if(o){let o=function(e,t,n,r,i,a){let o=i.beginRuleCapturedEOL?0:-1,s=[];for(let t=i;t;t=t.pop()){let n=t.getRule(e);n instanceof hX&&s.push({rule:n,stack:t})}for(let d=s.pop();d;d=s.pop()){var l,c,u,h,p;let{ruleScanner:s,findOptions:m}=(l=d.rule,c=e,u=d.stack.endRule,h=n,p=r===o,{ruleScanner:l.compileWhileAG(c,u,h,p),findOptions:0}),f=s.findNextMatchSync(t,r,m);if(f){if(-2!==f.ruleId){i=d.stack.pop();break}f.captureIndices&&f.captureIndices.length&&(a.produce(d.stack,f.captureIndices[0].start),h3(e,t,n,d.stack,a,d.rule.whileCaptures,f.captureIndices),a.produce(d.stack,f.captureIndices[0].end),o=f.captureIndices[0].end,f.captureIndices[0].end>r&&(r=f.captureIndices[0].end,n=!1))}else{i=d.stack.pop();break}}return{stack:i,linePos:r,anchorPosition:o,isFirstLine:n}}(e,t,n,r,i,a);i=o.stack,r=o.linePos,n=o.isFirstLine,u=o.anchorPosition}let h=Date.now();for(;!c;){if(0!==s&&Date.now()-h>s)return new h4(i,!0);!function(){let o=function(e,t,n,r,i,a){let o=function(e,t,n,r,i,a){let{ruleScanner:o,findOptions:s}=h6(i.getRule(e),e,i.endRule,n,r===a),l=o.findNextMatchSync(t,r,s);return l?{captureIndices:l.captureIndices,matchedRuleId:l.ruleId}:null}(e,t,n,r,i,a),s=e.getInjections();if(0===s.length)return o;let l=function(e,t,n,r,i,a,o){let s,l=Number.MAX_VALUE,c=null,u=0,h=a.contentNameScopesList.getScopeNames();for(let a=0,p=e.length;a<p;a++){let p=e[a];if(!p.matcher(h))continue;let{ruleScanner:d,findOptions:m}=h6(t.getRule(p.ruleId),t,null,r,i===o),f=d.findNextMatchSync(n,i,m);if(!f)continue;let g=f.captureIndices[0].start;if(!(g>=l)&&(l=g,c=f.captureIndices,s=f.ruleId,u=p.priority,l===i))break}return c?{priorityMatch:-1===u,captureIndices:c,matchedRuleId:s}:null}(s,e,t,n,r,i,a);if(!l)return o;if(!o)return l;let c=o.captureIndices[0].start,u=l.captureIndices[0].start;return u<c||l.priorityMatch&&u===c?l:o}(e,t,n,r,i,u);if(!o){a.produce(i,l),c=!0;return}let s=o.captureIndices,h=o.matchedRuleId,p=!!s&&s.length>0&&s[0].end>r;if(-1===h){let o=i.getRule(e);a.produce(i,s[0].start),i=i.withContentNameScopesList(i.nameScopesList),h3(e,t,n,i,a,o.endCaptures,s),a.produce(i,s[0].end);let h=i;if(i=i.parent,u=h.getAnchorPos(),!p&&h.getEnterPos()===r){i=h,a.produce(i,l),c=!0;return}}else{let o=e.getRule(h);a.produce(i,s[0].start);let d=i,m=o.getName(t.content,s),f=i.contentNameScopesList.pushAttributed(m,e);if(i=i.push(h,r,u,s[0].end===l,null,f,f),o instanceof h$){h3(e,t,n,i,a,o.beginCaptures,s),a.produce(i,s[0].end),u=s[0].end;let r=o.getContentName(t.content,s),h=f.pushAttributed(r,e);if(i=i.withContentNameScopesList(h),o.endHasBackReferences&&(i=i.withEndRule(o.getEndWithResolvedBackReferences(t.content,s))),!p&&d.hasSameRuleAs(i)){i=i.pop(),a.produce(i,l),c=!0;return}}else if(o instanceof hX){h3(e,t,n,i,a,o.beginCaptures,s),a.produce(i,s[0].end),u=s[0].end;let r=o.getContentName(t.content,s),h=f.pushAttributed(r,e);if(i=i.withContentNameScopesList(h),o.whileHasBackReferences&&(i=i.withEndRule(o.getWhileWithResolvedBackReferences(t.content,s))),!p&&d.hasSameRuleAs(i)){i=i.pop(),a.produce(i,l),c=!0;return}}else if(h3(e,t,n,i,a,o.captures,s),a.produce(i,s[0].end),i=i.pop(),!p){i=i.safePop(),a.produce(i,l),c=!0;return}}s[0].end>r&&(r=s[0].end,n=!1)}()}return new h4(i,!1)}function h6(e,t,n,r,i){return{ruleScanner:e.compileAG(t,n,r,i),findOptions:0}}function h3(e,t,n,r,i,a,o){if(0===a.length)return;let s=t.content,l=Math.min(a.length,o.length),c=[],u=o[0].end;for(let t=0;t<l;t++){let l=a[t];if(null===l)continue;let h=o[t];if(0===h.length)continue;if(h.start>u)break;for(;c.length>0&&c[c.length-1].endPos<=h.start;)i.produceFromScopes(c[c.length-1].scopes,c[c.length-1].endPos),c.pop();if(c.length>0?i.produceFromScopes(c[c.length-1].scopes,h.start):i.produce(r,h.start),l.retokenizeCapturedWithRuleId){let t=l.getName(s,o),a=r.contentNameScopesList.pushAttributed(t,e),c=l.getContentName(s,o),u=a.pushAttributed(c,e),p=r.push(l.retokenizeCapturedWithRuleId,h.start,-1,!1,null,a,u),d=e.createOnigString(s.substring(0,h.end));h5(e,d,n&&0===h.start,h.start,p,i,!1,0),h_(d);continue}let p=l.getName(s,o);if(null!==p){let t=(c.length>0?c[c.length-1].scopes:r.contentNameScopesList).pushAttributed(p,e);c.push(new h2(t,h.end))}}for(;c.length>0;)i.produceFromScopes(c[c.length-1].scopes,c[c.length-1].endPos),c.pop()}var h2=class{constructor(e,t){(0,V._)(this,"scopes",void 0),(0,V._)(this,"endPos",void 0),this.scopes=e,this.endPos=t}};function h7(e,t,n,r,i){let a=hA(t,h8),o=hY.getCompiledRuleId(n,r,i.repository);for(let n of a)e.push({debugSelector:t,matcher:n.matcher,ruleId:o,grammar:i,priority:n.priority})}function h8(e,t){if(t.length<e.length)return!1;let n=0;return e.every(e=>{for(let r=n;r<t.length;r++)if(function(e,t){if(!e)return!1;if(e===t)return!0;let n=t.length;return e.length>n&&e.substr(0,n)===t&&"."===e[n]}(t[r],e))return n=r+1,!0;return!1})}var h9=class{get themeProvider(){return this._grammarRepository}dispose(){for(let e of this._ruleId2desc)e&&e.dispose()}createOnigScanner(e){return this._onigLib.createOnigScanner(e)}createOnigString(e){return this._onigLib.createOnigString(e)}getMetadataForScope(e){return this._basicScopeAttributesProvider.getBasicScopeAttributes(e)}_collectInjections(){let e=[],t=this._rootScopeName,n=({lookup:e=>e===this._rootScopeName?this._grammar:this.getExternalGrammar(e),injections:e=>this._grammarRepository.injections(e)}).lookup(t);if(n){let r=n.injections;if(r)for(let t in r)h7(e,t,r[t],this,n);let i=this._grammarRepository.injections(t);i&&i.forEach(t=>{let n=this.getExternalGrammar(t);if(n){let t=n.injectionSelector;t&&h7(e,t,n,this,n)}})}return e.sort((e,t)=>e.priority-t.priority),e}getInjections(){return null===this._injections&&(this._injections=this._collectInjections()),this._injections}registerRule(e){let t=++this._lastRuleId,n=e(t);return this._ruleId2desc[t]=n,n}getRule(e){return this._ruleId2desc[e]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){let n=this._grammarRepository.lookup(e);if(n)return this._includedGrammars[e]=pe(n,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=this._tokenize(e,t,!1,n);return{tokens:r.lineTokens.getResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}tokenizeLine2(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=this._tokenize(e,t,!0,n);return{tokens:r.lineTokens.getBinaryResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}_tokenize(e,t,n,r){let i;if(-1===this._rootId&&(this._rootId=hY.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections()),t&&t!==pn.NULL)i=!1,t.reset();else{let e;i=!0;let n=this._basicScopeAttributesProvider.getDefaultAttributes(),r=this.themeProvider.getDefaults(),a=hS.set(0,n.languageId,n.tokenType,null,r.fontStyle,r.foregroundId,r.backgroundId),o=this.getRule(this._rootId).getName(null,null);e=o?pt.createRootAndLookUpScopeName(o,a,this):pt.createRoot("unknown",a),t=new pn(null,this._rootId,-1,-1,!1,null,e,e)}e+="\n";let a=this.createOnigString(e),o=a.content.length,s=new pi(n,e,this._tokenTypeMatchers,this.balancedBracketSelectors),l=h5(this,a,i,0,t,s,!0,r);return h_(a),{lineLength:o,lineTokens:s,ruleStack:l.stack,stoppedEarly:l.stoppedEarly}}constructor(e,t,n,r,i,a,o,s){if((0,V._)(this,"_rootId",void 0),(0,V._)(this,"_lastRuleId",void 0),(0,V._)(this,"_ruleId2desc",void 0),(0,V._)(this,"_includedGrammars",void 0),(0,V._)(this,"_grammarRepository",void 0),(0,V._)(this,"_grammar",void 0),(0,V._)(this,"_injections",void 0),(0,V._)(this,"_basicScopeAttributesProvider",void 0),(0,V._)(this,"_tokenTypeMatchers",void 0),this._rootScopeName=e,this.balancedBracketSelectors=a,this._onigLib=s,this._basicScopeAttributesProvider=new h0(n,r),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=o,this._grammar=pe(t,null),this._injections=null,this._tokenTypeMatchers=[],i)for(let e of Object.keys(i))for(let t of hA(e,h8))this._tokenTypeMatchers.push({matcher:t.matcher,type:i[e]})}};function pe(e,t){return(e=function e(t){return Array.isArray(t)?function(t){let n=[];for(let r=0,i=t.length;r<i;r++)n[r]=e(t[r]);return n}(t):t instanceof RegExp?t:"object"==typeof t?function(t){let n={};for(let r in t)n[r]=e(t[r]);return n}(t):t}(e)).repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=t||e.repository.$self,e}var pt=class e{static fromExtension(t,n){var r;let i=t,a=null!=(r=null==t?void 0:t.scopePath)?r:null;for(let t of n)i=new e(i,a=hf.push(a,t.scopeNames),t.encodedTokenAttributes);return i}static createRoot(t,n){return new e(null,new hf(null,t),n)}static createRootAndLookUpScopeName(t,n,r){let i=r.getMetadataForScope(t),a=new hf(null,t),o=r.themeProvider.themeMatch(a),s=e.mergeAttributes(n,i,o);return new e(null,a,s)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(t){return e.equals(this,t)}static equals(e,t){for(;;){if(e===t||!e&&!t)return!0;if(!e||!t||e.scopeName!==t.scopeName||e.tokenAttributes!==t.tokenAttributes)return!1;e=e.parent,t=t.parent}}static mergeAttributes(e,t,n){let r=-1,i=0,a=0;return null!==n&&(r=n.fontStyle,i=n.foregroundId,a=n.backgroundId),hS.set(e,t.languageId,t.tokenType,null,r,i,a)}pushAttributed(t,n){if(null===t)return this;if(-1===t.indexOf(" "))return e._pushAttributed(this,t,n);let r=t.split(/ /g),i=this;for(let t of r)i=e._pushAttributed(i,t,n);return i}static _pushAttributed(t,n,r){let i=r.getMetadataForScope(n),a=t.scopePath.push(n),o=r.themeProvider.themeMatch(a),s=e.mergeAttributes(t.tokenAttributes,i,o);return new e(t,a,s)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(e){let t=[],n=this;for(;n&&n!==e;){var r,i;t.push({encodedTokenAttributes:n.tokenAttributes,scopeNames:n.scopePath.getExtensionIfDefined(null!=(i=null==(r=n.parent)?void 0:r.scopePath)?i:null)}),n=n.parent}return n===e?t.reverse():void 0}constructor(e,t,n){this.parent=e,this.scopePath=t,this.tokenAttributes=n}},pn=(l=class e{equals(t){return null!==t&&e._equals(this,t)}static _equals(e,t){return e===t||!!this._structuralEquals(e,t)&&pt.equals(e.contentNameScopesList,t.contentNameScopesList)}static _structuralEquals(e,t){for(;;){if(e===t||!e&&!t)return!0;if(!e||!t||e.depth!==t.depth||e.ruleId!==t.ruleId||e.endRule!==t.endRule)return!1;e=e.parent,t=t.parent}}clone(){return this}static _reset(e){for(;e;)e._enterPos=-1,e._anchorPos=-1,e=e.parent}reset(){e._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(t,n,r,i,a,o,s){return new e(this,t,n,r,i,a,o,s)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(e){return e.getRule(this.ruleId)}toString(){let e=[];return this._writeString(e,0),"["+e.join(",")+"]"}_writeString(e,t){var n,r;return this.parent&&(t=this.parent._writeString(e,t)),e[t++]="(".concat(this.ruleId,", ").concat(null==(n=this.nameScopesList)?void 0:n.toString(),", ").concat(null==(r=this.contentNameScopesList)?void 0:r.toString(),")"),t}withContentNameScopesList(e){return this.contentNameScopesList===e?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,e)}withEndRule(t){return this.endRule===t?this:new e(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,t,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(e){let t=this;for(;t&&t._enterPos===e._enterPos;){if(t.ruleId===e.ruleId)return!0;t=t.parent}return!1}toStateStackFrame(){var e,t,n,r,i,a;return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:null!=(i=null==(t=this.nameScopesList)?void 0:t.getExtensionIfDefined(null!=(r=null==(e=this.parent)?void 0:e.nameScopesList)?r:null))?i:[],contentNameScopesList:null!=(a=null==(n=this.contentNameScopesList)?void 0:n.getExtensionIfDefined(this.nameScopesList))?a:[]}}static pushFrame(t,n){var r,i,a;let o=pt.fromExtension(null!=(r=null==t?void 0:t.nameScopesList)?r:null,n.nameScopesList);return new e(t,n.ruleId,null!=(i=n.enterPos)?i:-1,null!=(a=n.anchorPos)?a:-1,n.beginRuleCapturedEOL,n.endRule,o,pt.fromExtension(o,n.contentNameScopesList))}constructor(e,t,n,r,i,a,o,s){(0,V._)(this,"_stackElementBrand",void 0),(0,V._)(this,"_enterPos",void 0),(0,V._)(this,"_anchorPos",void 0),(0,V._)(this,"depth",void 0),this.parent=e,this.ruleId=t,this.beginRuleCapturedEOL=i,this.endRule=a,this.nameScopesList=o,this.contentNameScopesList=s,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=n,this._anchorPos=r}},(0,V._)(l,"NULL",new l(null,0,0,0,!1,null,null,null)),l),pr=class{get matchesAlways(){return this.allowAny&&0===this.unbalancedBracketScopes.length}get matchesNever(){return 0===this.balancedBracketScopes.length&&!this.allowAny}match(e){for(let t of this.unbalancedBracketScopes)if(t(e))return!1;for(let t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}constructor(e,t){(0,V._)(this,"balancedBracketScopes",void 0),(0,V._)(this,"unbalancedBracketScopes",void 0),(0,V._)(this,"allowAny",!1),this.balancedBracketScopes=e.flatMap(e=>"*"===e?(this.allowAny=!0,[]):hA(e,h8).map(e=>e.matcher)),this.unbalancedBracketScopes=t.flatMap(e=>hA(e,h8).map(e=>e.matcher))}},pi=class{produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){var n,r,i,a;if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let a=null!=(r=null==e?void 0:e.tokenAttributes)?r:0,o=!1;if((null==(n=this.balancedBracketSelectors)?void 0:n.matchesAlways)&&(o=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){let t=null!=(i=null==e?void 0:e.getScopeNames())?i:[];for(let e of this._tokenTypeOverrides)e.matcher(t)&&(a=hS.set(a,0,e.type,null,-1,0,0));this.balancedBracketSelectors&&(o=this.balancedBracketSelectors.match(t))}if(o&&(a=hS.set(a,0,8,o,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===a){this._lastTokenEndIndex=t;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(a),this._lastTokenEndIndex=t;return}let o=null!=(a=null==e?void 0:e.getScopeNames())?a:[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:o}),this._lastTokenEndIndex=t}getResult(e,t){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===t-1&&this._tokens.pop(),0===this._tokens.length&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(e,t){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===t-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),0===this._binaryTokens.length&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._binaryTokens[this._binaryTokens.length-2]=0);let n=new Uint32Array(this._binaryTokens.length);for(let e=0,t=this._binaryTokens.length;e<t;e++)n[e]=this._binaryTokens[e];return n}constructor(e,t,n,r){(0,V._)(this,"_emitBinaryTokens",void 0),(0,V._)(this,"_lineText",void 0),(0,V._)(this,"_tokens",void 0),(0,V._)(this,"_binaryTokens",void 0),(0,V._)(this,"_lastTokenEndIndex",void 0),(0,V._)(this,"_tokenTypeOverrides",void 0),this.balancedBracketSelectors=r,this._emitBinaryTokens=e,this._tokenTypeOverrides=n,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}},pa=class{dispose(){for(let e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,t){this._rawGrammars.set(e.scopeName,e),t&&this._injectionGrammars.set(e.scopeName,t)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}grammarForScopeName(e,t,n,r,i){if(!this._grammars.has(e)){let a=this._rawGrammars.get(e);if(!a)return null;this._grammars.set(e,new h9(e,a,t,n,r,i,this,this._onigLib))}return this._grammars.get(e)}constructor(e,t){(0,V._)(this,"_grammars",new Map),(0,V._)(this,"_rawGrammars",new Map),(0,V._)(this,"_injectionGrammars",new Map),(0,V._)(this,"_theme",void 0),this._onigLib=t,this._theme=e}},po=class{dispose(){this._syncRegistry.dispose()}setTheme(e,t){this._syncRegistry.setTheme(hm.createFromRawTheme(e,t))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(e,t,n){return this.loadGrammarWithConfiguration(e,t,{embeddedLanguages:n})}loadGrammarWithConfiguration(e,t,n){return this._loadGrammar(e,t,n.embeddedLanguages,n.tokenTypes,new pr(n.balancedBracketSelectors||[],n.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}_loadGrammar(e,t,n,r,i){let a=new hz(this._syncRegistry,e);for(;a.Q.length>0;)a.Q.map(e=>this._loadSingleGrammar(e.scopeName)),a.processQueue();return this._grammarForScopeName(e,t,n,r,i)}_loadSingleGrammar(e){this._ensureGrammarCache.has(e)||(this._doLoadSingleGrammar(e),this._ensureGrammarCache.set(e,!0))}_doLoadSingleGrammar(e){let t=this._options.loadGrammar(e);if(t){let n="function"==typeof this._options.getInjections?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(t,n)}}addGrammar(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return this._syncRegistry.addGrammar(e,t),this._grammarForScopeName(e.scopeName,n,r)}_grammarForScopeName(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;return this._syncRegistry.grammarForScopeName(e,t,n,r,i)}constructor(e){(0,V._)(this,"_options",void 0),(0,V._)(this,"_syncRegistry",void 0),(0,V._)(this,"_ensureGrammarCache",void 0),this._options=e,this._syncRegistry=new pa(hm.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}},ps=pn.NULL;function pl(e,t){let n="string"==typeof e?{}:{...e.colorReplacements},r="string"==typeof e?e:e.name;for(let[e,i]of Object.entries((null==t?void 0:t.colorReplacements)||{}))"string"==typeof i?n[e]=i:e===r&&Object.assign(n,i);return n}function pc(e,t){return e&&(null==t?void 0:t[null==e?void 0:e.toLowerCase()])||e}async function pu(e){return Promise.resolve("function"==typeof e?e():e).then(e=>e.default||e)}function ph(e){return!e||["plaintext","txt","text","plain"].includes(e)}function pp(e){return"ansi"===e||ph(e)}function pd(e){return"none"===e}function pm(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(0===e.length)return[["",0]];let n=e.split(/(\r?\n)/g),r=0,i=[];for(let e=0;e<n.length;e+=2){var a;let o=t?n[e]+(n[e+1]||""):n[e];i.push([o,r]),r+=n[e].length,r+=(null==(a=n[e+1])?void 0:a.length)||0}return i}let pf={light:"#333333",dark:"#bbbbbb"},pg={light:"#fffffe",dark:"#1e1e1e"},py="__shiki_resolved";function pb(e){var t,n,r,i,a;if(null==e?void 0:e[py])return e;let o={...e};o.tokenColors&&!o.settings&&(o.settings=o.tokenColors,delete o.tokenColors),o.type||(o.type="dark"),o.colorReplacements={...o.colorReplacements},o.settings||(o.settings=[]);let{bg:s,fg:l}=o;if(!s||!l){let e=o.settings?o.settings.find(e=>!e.name&&!e.scope):void 0;(null==e||null==(t=e.settings)?void 0:t.foreground)&&(l=e.settings.foreground),(null==e||null==(n=e.settings)?void 0:n.background)&&(s=e.settings.background),!l&&(null==o||null==(r=o.colors)?void 0:r["editor.foreground"])&&(l=o.colors["editor.foreground"]),!s&&(null==o||null==(i=o.colors)?void 0:i["editor.background"])&&(s=o.colors["editor.background"]),l||(l="light"===o.type?pf.light:pf.dark),s||(s="light"===o.type?pg.light:pg.dark),o.fg=l,o.bg=s}o.settings[0]&&o.settings[0].settings&&!o.settings[0].scope||o.settings.unshift({settings:{foreground:o.fg,background:o.bg}});let c=0,u=new Map;function h(e){var t;if(u.has(e))return u.get(e);c+=1;let n="#".concat(c.toString(16).padStart(8,"0").toLowerCase());return(null==(t=o.colorReplacements)?void 0:t["#".concat(n)])?h(e):(u.set(e,n),n)}for(let e of(o.settings=o.settings.map(e=>{var t,n;let r=(null==(t=e.settings)?void 0:t.foreground)&&!e.settings.foreground.startsWith("#"),i=(null==(n=e.settings)?void 0:n.background)&&!e.settings.background.startsWith("#");if(!r&&!i)return e;let a={...e,settings:{...e.settings}};if(r){let t=h(e.settings.foreground);o.colorReplacements[t]=e.settings.foreground,a.settings.foreground=t}if(i){let t=h(e.settings.background);o.colorReplacements[t]=e.settings.background,a.settings.background=t}return a}),Object.keys(o.colors||{})))if(("editor.foreground"===e||"editor.background"===e||e.startsWith("terminal.ansi"))&&!(null==(a=o.colors[e])?void 0:a.startsWith("#"))){let t=h(o.colors[e]);o.colorReplacements[t]=o.colors[e],o.colors[e]=t}return Object.defineProperty(o,py,{enumerable:!1,writable:!1,value:!0}),o}async function pv(e){return Array.from(new Set((await Promise.all(e.filter(e=>!pp(e)).map(async e=>await pu(e).then(e=>Array.isArray(e)?e:[e])))).flat()))}async function px(e){return(await Promise.all(e.map(async e=>pd(e)?null:pb(await pu(e))))).filter(e=>!!e)}function pk(e,t){if(!t)return e;if(t[e]){let n=new Set([e]);for(;t[e];){if(e=t[e],n.has(e))throw new ho("Circular alias `".concat(Array.from(n).join(" -> ")," -> ").concat(e,"`"));n.add(e)}}return e}var pw=class extends po{getTheme(e){return"string"==typeof e?this._resolvedThemes.get(e):this.loadTheme(e)}loadTheme(e){let t=pb(e);return t.name&&(this._resolvedThemes.set(t.name,t),this._loadedThemesCache=null),t}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(e){let t=this._textmateThemeCache.get(e);t||(t=hm.createFromRawTheme(e),this._textmateThemeCache.set(e,t)),this._syncRegistry.setTheme(t)}getGrammar(e){return e=pk(e,this._alias),this._resolvedGrammars.get(e)}loadLanguage(e){if(this.getGrammar(e.name))return;let t=new Set([...this._langMap.values()].filter(t=>{var n;return null==(n=t.embeddedLangsLazy)?void 0:n.includes(e.name)}));this._resolver.addLanguage(e);let n={balancedBracketSelectors:e.balancedBracketSelectors||["*"],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(e.scopeName,e);let r=this.loadGrammarWithConfiguration(e.scopeName,1,n);if(r.name=e.name,this._resolvedGrammars.set(e.name,r),e.aliases&&e.aliases.forEach(t=>{this._alias[t]=e.name}),this._loadedLanguagesCache=null,t.size)for(let e of t){var i,a,o,s;this._resolvedGrammars.delete(e.name),this._loadedLanguagesCache=null,null==(a=this._syncRegistry)||null==(i=a._injectionGrammars)||i.delete(e.scopeName),null==(s=this._syncRegistry)||null==(o=s._grammars)||o.delete(e.scopeName),this.loadLanguage(this._langMap.get(e.name))}}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(e){for(let t of e)this.resolveEmbeddedLanguages(t);let t=Array.from(this._langGraph.entries()),n=t.filter(e=>{let[t,n]=e;return!n});if(n.length){let e=t.filter(e=>{var t;let[r,i]=e;return!!i&&(null==(t=i.embeddedLanguages||i.embeddedLangs)?void 0:t.some(e=>n.map(e=>{let[t]=e;return t}).includes(e)))}).filter(e=>!n.includes(e));throw new ho("Missing languages ".concat(n.map(e=>{let[t]=e;return"`".concat(t,"`")}).join(", "),", required by ").concat(e.map(e=>{let[t]=e;return"`".concat(t,"`")}).join(", ")))}for(let[e,n]of t)this._resolver.addLanguage(n);for(let[e,n]of t)this.loadLanguage(n)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(e){var t;this._langMap.set(e.name,e),this._langGraph.set(e.name,e);let n=null!=(t=e.embeddedLanguages)?t:e.embeddedLangs;if(n)for(let e of n)this._langGraph.set(e,this._langMap.get(e))}constructor(e,t,n,r={}){super(e),(0,V._)(this,"_resolvedThemes",new Map),(0,V._)(this,"_resolvedGrammars",new Map),(0,V._)(this,"_langMap",new Map),(0,V._)(this,"_langGraph",new Map),(0,V._)(this,"_textmateThemeCache",new WeakMap),(0,V._)(this,"_loadedThemesCache",null),(0,V._)(this,"_loadedLanguagesCache",null),this._resolver=e,this._themes=t,this._langs=n,this._alias=r,this._themes.map(e=>this.loadTheme(e)),this.loadLanguages(this._langs)}},pS=class{get onigLib(){return this._onigLib}getLangRegistration(e){return this._langs.get(e)}loadGrammar(e){return this._scopeToLang.get(e)}addLanguage(e){this._langs.set(e.name,e),e.aliases&&e.aliases.forEach(t=>{this._langs.set(t,e)}),this._scopeToLang.set(e.scopeName,e),e.injectTo&&e.injectTo.forEach(t=>{this._injections.get(t)||this._injections.set(t,[]),this._injections.get(t).push(e.scopeName)})}getInjections(e){let t=e.split("."),n=[];for(let e=1;e<=t.length;e++){let r=t.slice(0,e).join(".");n=[...n,...this._injections.get(r)||[]]}return n}constructor(e,t){(0,V._)(this,"_langs",new Map),(0,V._)(this,"_scopeToLang",new Map),(0,V._)(this,"_injections",new Map),(0,V._)(this,"_onigLib",void 0),this._onigLib={createOnigScanner:t=>e.createScanner(t),createOnigString:t=>e.createString(t)},t.forEach(e=>this.addLanguage(e))}};let pA=0;async function pC(e){e.engine||console.warn("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");let[t,n,r]=await Promise.all([px(e.themes||[]),pv(e.langs||[]),e.engine]);return function(e){let t;pA+=1,!1!==e.warnings&&pA>=10&&pA%10==0&&console.warn("[Shiki] ".concat(pA," instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call `highlighter.dispose()` to release unused instances."));let n=!1;if(!e.engine)throw new ho("`engine` option is required for synchronous mode");let r=(e.langs||[]).flat(1),i=(e.themes||[]).flat(1).map(pb),a=new pw(new pS(e.engine,r),i,r,e.langAlias);function o(e){if("none"===e)return{bg:"",fg:"",name:"none",settings:[],type:"dark"};c();let t=a.getTheme(e);if(!t)throw new ho("Theme `".concat(e,"` not found, you may need to load it first"));return t}function s(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];c(),a.loadLanguages(t.flat(1))}function l(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];for(let e of(c(),t.flat(1)))a.loadTheme(e)}function c(){if(n)throw new ho("Shiki instance has been disposed")}function u(){n||(n=!0,a.dispose(),pA-=1)}return{setTheme:function(e){c();let n=o(e);return t!==e&&(a.setTheme(n),t=e),{theme:n,colorMap:a.getColorMap()}},getTheme:o,getLanguage:function(e){c();let t=a.getGrammar("string"==typeof e?e:e.name);if(!t)throw new ho("Language `".concat(e,"` not found, you may need to load it first"));return t},getLoadedThemes:function(){return c(),a.getLoadedThemes()},getLoadedLanguages:function(){return c(),a.getLoadedLanguages()},resolveLangAlias:function(t){return pk(t,e.langAlias)},loadLanguage:async function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return s(await pv(t))},loadLanguageSync:s,loadTheme:async function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return c(),l(await px(t))},loadThemeSync:l,dispose:u,[Symbol.dispose]:u}}({...e,themes:t,langs:n,engine:r})}let pT=new WeakMap;function p_(e,t){pT.set(e,t)}function pM(e){return pT.get(e)}var pN=class e{get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(t,n){return new e(Object.fromEntries((Array.isArray(n)?n:[n]).map(e=>[e,ps])),t)}getInternalStack(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.theme;return this._stacks[e]}getScopes(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.theme;var t=this._stacks[e];let n=[],r=new Set;return!function e(t){var i;if(r.has(t))return;r.add(t);let a=null==t||null==(i=t.nameScopesList)?void 0:i.scopeName;a&&n.push(a),t.parent&&e(t.parent)}(t),n}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}constructor(...e){if((0,V._)(this,"_stacks",{}),(0,V._)(this,"lang",void 0),2===e.length){let[t,n]=e;this.lang=n,this._stacks=t}else{let[t,n,r]=e;this.lang=n,this._stacks={[r]:t}}}};function pE(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{theme:r=e.getLoadedThemes()[0]}=n;if(ph(e.resolveLangAlias(n.lang||"text"))||pd(r))return pm(t).map(e=>[{content:e[0],offset:e[1]}]);let{theme:i,colorMap:a}=e.setTheme(r),o=e.getLanguage(n.lang||"text");if(n.grammarState){if(n.grammarState.lang!==o.name)throw new ho('Grammar state language "'.concat(n.grammarState.lang,'" does not match highlight language "').concat(o.name,'"'));if(!n.grammarState.themes.includes(i.name))throw new ho('Grammar state themes "'.concat(n.grammarState.themes,'" do not contain highlight theme "').concat(i.name,'"'))}var s=t,l=o,c=i,u=a,h=n;let p=pz(s,l,c,u,h),d=new pN(p.stateStack,l.name,c.name);return p_(p.tokens,d),p.tokens}function pz(e,t,n,r,i){var a;let o=pl(n,i),{tokenizeMaxLineLength:s=0,tokenizeTimeLimit:l=500}=i,c=pm(e),u=i.grammarState?null!=(a=function(e,t){if(!(e instanceof pN))throw new ho("Invalid grammar state");return e.getInternalStack(t)}(i.grammarState,n.name))?a:ps:null!=i.grammarContextCode?pz(i.grammarContextCode,t,n,r,{...i,grammarState:void 0,grammarContextCode:void 0}).stateStack:ps,h=[],p=[];for(let e=0,a=c.length;e<a;e++){let a,d,[m,f]=c[e];if(""===m){h=[],p.push([]);continue}if(s>0&&m.length>=s){h=[],p.push([{content:m,offset:f,color:"",fontStyle:0}]);continue}i.includeExplanation&&(a=t.tokenizeLine(m,u,l).tokens,d=0);let g=t.tokenizeLine2(m,u,l),y=g.tokens.length/2;for(let e=0;e<y;e++){let t=g.tokens[2*e],s=e+1<y?g.tokens[2*e+2]:m.length;if(t===s)continue;let l=g.tokens[2*e+1],c=pc(r[hS.getForeground(l)],o),u=hS.getFontStyle(l),p={content:m.substring(t,s),offset:f+t,color:c,fontStyle:u};if(i.includeExplanation){let e=[];if("scopeName"!==i.includeExplanation)for(let t of n.settings){let n;switch(typeof t.scope){case"string":n=t.scope.split(/,/).map(e=>e.trim());break;case"object":n=t.scope;break;default:continue}e.push({settings:t,selectors:n.map(e=>e.split(/ /))})}p.explanation=[];let r=0;for(;t+r<s;){let t=a[d],n=m.substring(t.startIndex,t.endIndex);r+=n.length,p.explanation.push({content:n,scopes:"scopeName"===i.includeExplanation?t.scopes.map(e=>({scopeName:e})):function(e,t){let n=[];for(let r=0,i=t.length;r<i;r++){let i=t[r];n[r]={scopeName:i,themeMatches:function(e,t,n){let r=[];for(let{selectors:i,settings:a}of e)for(let e of i)if(function(e,t,n){if(!pI(e[e.length-1],t))return!1;let r=e.length-2,i=n.length-1;for(;r>=0&&i>=0;)pI(e[r],n[i])&&(r-=1),i-=1;return -1===r}(e,t,n)){r.push(a);break}return r}(e,i,t.slice(0,r))}}return n}(e,t.scopes)}),d+=1}}h.push(p)}p.push(h),h=[],u=g.ruleStack}return{tokens:p,stateStack:u}}function pI(e,t){return e===t||t.substring(0,e.length)===e&&"."===t[e.length]}function pR(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:pE,i=Object.entries(n.themes).filter(e=>e[1]).map(e=>({color:e[0],theme:e[1]})),a=i.map(i=>{let a=r(e,t,{...n,theme:i.theme});return{tokens:a,state:pM(a),theme:"string"==typeof i.theme?i.theme:i.theme.name}}),o=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];let r=t.map(()=>[]),i=t.length;for(let e=0;e<t[0].length;e++){let n=t.map(t=>t[e]),a=r.map(()=>[]);r.forEach((e,t)=>e.push(a[t]));let o=n.map(()=>0),s=n.map(e=>e[0]);for(;s.every(e=>e);){let e=Math.min(...s.map(e=>e.content.length));for(let t=0;t<i;t++){let r=s[t];r.content.length===e?(a[t].push(r),o[t]+=1,s[t]=n[t][o[t]]):(a[t].push({...r,content:r.content.slice(0,e)}),s[t]={...r,content:r.content.slice(e),offset:r.offset+e})}}}return r}(...a.map(e=>e.tokens)),s=o[0].map((e,t)=>e.map((e,r)=>{let a={content:e.content,variants:{},offset:e.offset};return"includeExplanation"in n&&n.includeExplanation&&(a.explanation=e.explanation),o.forEach((e,n)=>{let{content:o,explanation:s,offset:l,...c}=e[t][r];a.variants[i[n].color]=c}),a})),l=a[0].state?new pN(Object.fromEntries(a.map(e=>{var t;return[e.theme,null==(t=e.state)?void 0:t.getInternalStack(e.theme)]})),a[0].state.lang):void 0;return l&&p_(s,l),s}let pj=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],pL={}.hasOwnProperty,pP=/["&'<>`]/g,pB=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,pO=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,pD=/[|\\{}()[\]^$+*?.]/g,pF=new WeakMap,pq=/[\dA-Fa-f]/,pH=/\d/,pU=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],pG={nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"",zwj:"",lrm:"",rlm:"",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},pW=["cent","copy","divide","gt","lt","not","para","times"],pV={}.hasOwnProperty,p$={};for(r in pG)pV.call(pG,r)&&(p$[pG[r]]=r);let pX=/[^\dA-Za-z]/;function pY(e,t,n){let r,i=function(e,t,n){let r="&#x"+e.toString(16).toUpperCase();return n&&t&&!pq.test(String.fromCharCode(t))?r:r+";"}(e,t,n.omitOptionalSemicolons);if((n.useNamedReferences||n.useShortestReferences)&&(r=function(e,t,n,r){let i=String.fromCharCode(e);if(pV.call(p$,i)){let e=p$[i],a="&"+e;return n&&pU.includes(e)&&!pW.includes(e)&&(!r||t&&61!==t&&pX.test(String.fromCharCode(t)))?a:a+";"}return""}(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!r)&&n.useShortestReferences){let r=function(e,t,n){let r="&#"+String(e);return n&&t&&!pH.test(String.fromCharCode(t))?r:r+";"}(e,t,n.omitOptionalSemicolons);r.length<i.length&&(i=r)}return r&&(!n.useShortestReferences||r.length<i.length)?r:i}function pJ(e,t){let n;var r,i=e,a=Object.assign({format:pY},t);if(i=i.replace(a.subset?(r=a.subset,(n=pF.get(r))||(n=function(e){let t=[],n=-1;for(;++n<e.length;)t.push(e[n].replace(pD,"\\$&"));return RegExp("(?:"+t.join("|")+")","g")}(r),pF.set(r,n)),n):pP,o),a.subset||a.escapeOnly)return i;return i.replace(pB,function(e,t,n){return a.format((e.charCodeAt(0)-55296)*1024+e.charCodeAt(1)-56320+65536,n.charCodeAt(t+2),a)}).replace(pO,o);function o(e,t,n){return a.format(e.charCodeAt(0),n.charCodeAt(t+1),a)}}let pZ=/^>|^->|<!--|-->|--!>|<!-$/g,pK=[">"],pQ=["<",">"],p0=p5(1),p1=p5(-1),p4=[];function p5(e){return function(t,n,r){let i=t?t.children:p4,a=(n||0)+e,o=i[a];if(!r)for(;o&&tp(o);)a+=e,o=i[a];return o}}let p6={}.hasOwnProperty;function p3(e){return function(t,n,r){return p6.call(e,t.tagName)&&e[t.tagName](t,n,r)}}let p2=p3({body:function(e,t,n){let r=p0(n,t);return!r||"comment"!==r.type},caption:p7,colgroup:p7,dd:function(e,t,n){let r=p0(n,t);return!r||"element"===r.type&&("dt"===r.tagName||"dd"===r.tagName)},dt:function(e,t,n){let r=p0(n,t);return!!(r&&"element"===r.type&&("dt"===r.tagName||"dd"===r.tagName))},head:p7,html:function(e,t,n){let r=p0(n,t);return!r||"comment"!==r.type},li:function(e,t,n){let r=p0(n,t);return!r||"element"===r.type&&"li"===r.tagName},optgroup:function(e,t,n){let r=p0(n,t);return!r||"element"===r.type&&"optgroup"===r.tagName},option:function(e,t,n){let r=p0(n,t);return!r||"element"===r.type&&("option"===r.tagName||"optgroup"===r.tagName)},p:function(e,t,n){let r=p0(n,t);return r?"element"===r.type&&("address"===r.tagName||"article"===r.tagName||"aside"===r.tagName||"blockquote"===r.tagName||"details"===r.tagName||"div"===r.tagName||"dl"===r.tagName||"fieldset"===r.tagName||"figcaption"===r.tagName||"figure"===r.tagName||"footer"===r.tagName||"form"===r.tagName||"h1"===r.tagName||"h2"===r.tagName||"h3"===r.tagName||"h4"===r.tagName||"h5"===r.tagName||"h6"===r.tagName||"header"===r.tagName||"hgroup"===r.tagName||"hr"===r.tagName||"main"===r.tagName||"menu"===r.tagName||"nav"===r.tagName||"ol"===r.tagName||"p"===r.tagName||"pre"===r.tagName||"section"===r.tagName||"table"===r.tagName||"ul"===r.tagName):!n||"element"!==n.type||"a"!==n.tagName&&"audio"!==n.tagName&&"del"!==n.tagName&&"ins"!==n.tagName&&"map"!==n.tagName&&"noscript"!==n.tagName&&"video"!==n.tagName},rp:p8,rt:p8,tbody:function(e,t,n){let r=p0(n,t);return!r||"element"===r.type&&("tbody"===r.tagName||"tfoot"===r.tagName)},td:p9,tfoot:function(e,t,n){return!p0(n,t)},th:p9,thead:function(e,t,n){let r=p0(n,t);return!!(r&&"element"===r.type&&("tbody"===r.tagName||"tfoot"===r.tagName))},tr:function(e,t,n){let r=p0(n,t);return!r||"element"===r.type&&"tr"===r.tagName}});function p7(e,t,n){let r=p0(n,t,!0);return!r||"comment"!==r.type&&!("text"===r.type&&tp(r.value.charAt(0)))}function p8(e,t,n){let r=p0(n,t);return!r||"element"===r.type&&("rp"===r.tagName||"rt"===r.tagName)}function p9(e,t,n){let r=p0(n,t);return!r||"element"===r.type&&("td"===r.tagName||"th"===r.tagName)}let de=p3({body:function(e){let t=p0(e,-1,!0);return!t||"comment"!==t.type&&!("text"===t.type&&tp(t.value.charAt(0)))&&("element"!==t.type||"meta"!==t.tagName&&"link"!==t.tagName&&"script"!==t.tagName&&"style"!==t.tagName&&"template"!==t.tagName)},colgroup:function(e,t,n){let r=p1(n,t),i=p0(e,-1,!0);return!(n&&r&&"element"===r.type&&"colgroup"===r.tagName&&p2(r,n.children.indexOf(r),n))&&!!(i&&"element"===i.type&&"col"===i.tagName)},head:function(e){let t=new Set;for(let n of e.children)if("element"===n.type&&("base"===n.tagName||"title"===n.tagName)){if(t.has(n.tagName))return!1;t.add(n.tagName)}let n=e.children[0];return!n||"element"===n.type},html:function(e){let t=p0(e,-1);return!t||"comment"!==t.type},tbody:function(e,t,n){let r=p1(n,t),i=p0(e,-1);return!(n&&r&&"element"===r.type&&("thead"===r.tagName||"tbody"===r.tagName)&&p2(r,n.children.indexOf(r),n))&&!!(i&&"element"===i.type&&"tr"===i.tagName)}}),dt={name:[[" \n\f\r &/=>".split("")," \n\f\r \"&'/=>`".split("")],["\0 \n\f\r \"&'/<=>".split(""),"\0 \n\f\r \"&'/<=>`".split("")]],unquoted:[[" \n\f\r &>".split(""),"\0 \n\f\r \"&'<=>`".split("")],["\0 \n\f\r \"&'<=>`".split(""),"\0 \n\f\r \"&'<=>`".split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]},dn=["<","&"];function dr(e,t,n,r){return n&&"element"===n.type&&("script"===n.tagName||"style"===n.tagName)?e.value:pJ(e.value,Object.assign({},r.settings.characterReferences,{subset:dn}))}let di=function(e,t){let n=t||{};function r(t){for(var n=arguments.length,i=Array(n>1?n-1:0),a=1;a<n;a++)i[a-1]=arguments[a];let o=r.invalid,s=r.handlers;if(t&&pL.call(t,e)){let n=String(t[e]);o=pL.call(s,n)?s[n]:r.unknown}if(o)return o.call(this,t,...i)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}("type",{invalid:function(e){throw Error("Expected node, not `"+e+"`")},unknown:function(e){throw Error("Cannot compile unknown node `"+e.type+"`")},handlers:{comment:function(e,t,n,r){return r.settings.bogusComments?"<?"+pJ(e.value,Object.assign({},r.settings.characterReferences,{subset:pK}))+">":"<!--"+e.value.replace(pZ,function(e){return pJ(e,Object.assign({},r.settings.characterReferences,{subset:pQ}))})+"-->"},doctype:function(e,t,n,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"},element:function(e,t,n,r){let i,a=r.schema,o="svg"!==a.space&&r.settings.omitOptionalTags,s="svg"===a.space?r.settings.closeEmptyElements:r.settings.voids.includes(e.tagName.toLowerCase()),l=[];"html"===a.space&&"svg"===e.tagName&&(r.schema=t$);let c=function(e,t){let n,r=[],i=-1;if(t){for(n in t)if(null!==t[n]&&void 0!==t[n]){let i=function(e,t,n){let r,i=tz(e.schema,t),a=e.settings.allowParseErrors&&"html"===e.schema.space?0:1,o=+!e.settings.allowDangerousCharacters,s=e.quote;if(i.overloadedBoolean&&(n===i.attribute||""===n)?n=!0:(i.boolean||i.overloadedBoolean)&&("string"!=typeof n||n===i.attribute||""===n)&&(n=!!n),null==n||!1===n||"number"==typeof n&&Number.isNaN(n))return"";let l=pJ(i.attribute,Object.assign({},e.settings.characterReferences,{subset:dt.name[a][o]}));return!0===n||(n=Array.isArray(n)?(i.commaSeparated?to:tY)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n)?l:(e.settings.preferUnquoted&&(r=pJ(n,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:dt.unquoted[a][o]}))),r!==n&&(e.settings.quoteSmart&&ij(n,s)>ij(n,e.alternative)&&(s=e.alternative),r=s+pJ(n,Object.assign({},e.settings.characterReferences,{subset:("'"===s?dt.single:dt.double)[a][o],attribute:!0}))+s),l+(r?"="+r:r))}(e,n,t[n]);i&&r.push(i)}}for(;++i<r.length;){let t=e.settings.tightAttributes?r[i].charAt(r[i].length-1):void 0;i!==r.length-1&&'"'!==t&&"'"!==t&&(r[i]+=" ")}return r.join("")}(r,e.properties),u=r.all("html"===a.space&&"template"===e.tagName?e.content:e);return r.schema=a,u&&(s=!1),!c&&o&&de(e,t,n)||(l.push("<",e.tagName,c?" "+c:""),s&&("svg"===a.space||r.settings.closeSelfClosing)&&(i=c.charAt(c.length-1),(!r.settings.tightSelfClosing||"/"===i||i&&'"'!==i&&"'"!==i)&&l.push(" "),l.push("/")),l.push(">")),l.push(u),s||o&&p2(e,t,n)||l.push("</"+e.tagName+">"),l.join("")},raw:function(e,t,n,r){return r.settings.allowDangerousHtml?e.value:dr(e,t,n,r)},root:function(e,t,n,r){return r.all(e)},text:dr}}),da={},ds={},dl=[];function dc(e,t,n){return di(e,t,n,this)}function du(e){let t=[],n=e&&e.children||dl,r=-1;for(;++r<n.length;)t[r]=this.one(n[r],r,e);return t.join("")}function dh(e,t){var n;if(!t)return e;for(let r of(e.properties||(e.properties={}),(n=e.properties).class||(n.class=[]),"string"==typeof e.properties.class&&(e.properties.class=e.properties.class.split(/\s+/g)),Array.isArray(e.properties.class)||(e.properties.class=[]),Array.isArray(t)?t:t.split(/\s+/g)))r&&!e.properties.class.includes(r)&&e.properties.class.push(r);return e}let dp="light-dark()",dd=["color","background-color"];function dm(e){let t={};if(e.color&&(t.color=e.color),e.bgColor&&(t["background-color"]=e.bgColor),e.fontStyle){e.fontStyle&hb.Italic&&(t["font-style"]="italic"),e.fontStyle&hb.Bold&&(t["font-weight"]="bold");let n=[];e.fontStyle&hb.Underline&&n.push("underline"),e.fontStyle&hb.Strikethrough&&n.push("line-through"),n.length&&(t["text-decoration"]=n.join(" "))}return t}function df(e){return"string"==typeof e?e:Object.entries(e).map(e=>{let[t,n]=e;return"".concat(t,":").concat(n)}).join(";")}let dg=[function(){let e=new WeakMap;function t(t){if(!e.has(t.meta)){let r=function(e){let t=pm(e,!0).map(e=>{let[t]=e;return t});return{lines:t,indexToPos:function(n){if(n===e.length)return{line:t.length-1,character:t[t.length-1].length};let r=n,i=0;for(let e of t){if(r<e.length)break;r-=e.length,i++}return{line:i,character:r}},posToIndex:function(e,n){let r=0;for(let n=0;n<e;n++)r+=t[n].length;return r+n}}}(t.source);function n(e){if("number"==typeof e){if(e<0||e>t.source.length)throw new ho("Invalid decoration offset: ".concat(e,". Code length: ").concat(t.source.length));return{...r.indexToPos(e),offset:e}}{let t=r.lines[e.line];if(void 0===t)throw new ho("Invalid decoration position ".concat(JSON.stringify(e),". Lines length: ").concat(r.lines.length));let n=e.character;if(n<0&&(n=t.length+n),n<0||n>t.length)throw new ho("Invalid decoration position ".concat(JSON.stringify(e),". Line ").concat(e.line," length: ").concat(t.length));return{...e,character:n,offset:r.posToIndex(e.line,n)}}}let i=(t.options.decorations||[]).map(e=>({...e,start:n(e.start),end:n(e.end)}));(function(e){for(let t=0;t<e.length;t++){let n=e[t];if(n.start.offset>n.end.offset)throw new ho("Invalid decoration range: ".concat(JSON.stringify(n.start)," - ").concat(JSON.stringify(n.end)));for(let r=t+1;r<e.length;r++){let t=e[r],i=n.start.offset<=t.start.offset&&t.start.offset<n.end.offset,a=n.start.offset<t.end.offset&&t.end.offset<=n.end.offset,o=t.start.offset<=n.start.offset&&n.start.offset<t.end.offset,s=t.start.offset<n.end.offset&&n.end.offset<=t.end.offset;if(i||a||o||s){if(i&&a||o&&s||o&&n.start.offset===n.end.offset||a&&t.start.offset===t.end.offset)continue;throw new ho("Decorations ".concat(JSON.stringify(n.start)," and ").concat(JSON.stringify(t.start)," intersect."))}}}})(i),e.set(t.meta,{decorations:i,converter:r,source:t.source})}return e.get(t.meta)}return{name:"shiki:decorations",tokens(e){var n;if(null==(n=this.options.decorations)?void 0:n.length){var r=t(this).decorations.flatMap(e=>[e.start.offset,e.end.offset]);let n=Array.from(r instanceof Set?r:new Set(r)).sort((e,t)=>e-t);return n.length?e.map(e=>e.flatMap(e=>{let t=n.filter(t=>e.offset<t&&t<e.offset+e.content.length).map(t=>t-e.offset).sort((e,t)=>e-t);if(!t.length)return e;let r=0,i=[];for(let n of t)n>r&&i.push({...e,content:e.content.slice(r,n),offset:e.offset+r}),r=n;return r<e.content.length&&i.push({...e,content:e.content.slice(r),offset:e.offset+r}),i})):e}},code(e){var n;if(!(null==(n=this.options.decorations)?void 0:n.length))return;let r=t(this),i=Array.from(e.children).filter(e=>"element"===e.type&&"span"===e.tagName);if(i.length!==r.converter.lines.length)throw new ho("Number of lines in code element (".concat(i.length,") does not match the number of lines in the source (").concat(r.converter.lines.length,"). Failed to apply decorations."));function a(e,t,n,r){let a=i[e],s="",l=-1,c=-1;if(0===t&&(l=0),0===n&&(c=0),n===1/0&&(c=a.children.length),-1===l||-1===c)for(let e=0;e<a.children.length;e++)s+=function e(t){return"text"===t.type?t.value:"element"===t.type?t.children.map(e).join(""):""}(a.children[e]),-1===l&&s.length===t&&(l=e+1),-1===c&&s.length===n&&(c=e+1);if(-1===l)throw new ho("Failed to find start index for decoration ".concat(JSON.stringify(r.start)));if(-1===c)throw new ho("Failed to find end index for decoration ".concat(JSON.stringify(r.end)));let u=a.children.slice(l,c);if(r.alwaysWrap||u.length!==a.children.length)if(r.alwaysWrap||1!==u.length||"element"!==u[0].type){let e={type:"element",tagName:"span",properties:{},children:u};o(e,r,"wrapper"),a.children.splice(l,u.length,e)}else o(u[0],r,"token");else o(a,r,"line")}function o(e,t,n){var r;let i=t.properties||{},a=t.transform||(e=>e);return e.tagName=t.tagName||"span",e.properties={...e.properties,...i,class:e.properties.class},(null==(r=t.properties)?void 0:r.class)&&dh(e,t.properties.class),e=a(e,n)||e}let s=[];for(let e of r.decorations.sort((e,t)=>t.start.offset-e.start.offset||e.end.offset-t.end.offset)){let{start:t,end:n}=e;if(t.line===n.line)a(t.line,t.character,n.character,e);else if(t.line<n.line){a(t.line,t.character,1/0,e);for(let r=t.line+1;r<n.line;r++)s.unshift(()=>{var t;i[t=r]=o(i[t],e,"line")});a(n.line,0,n.character,e)}}s.forEach(e=>e())}}}()];function dy(e){let t=function(e){let t=[],n=[],r=[];for(let i of e)switch(i.enforce){case"pre":t.push(i);break;case"post":n.push(i);break;default:r.push(i)}return{pre:t,post:n,normal:r}}(e.transformers||[]);return[...t.pre,...t.normal,...t.post,...dg]}var db=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],dv={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",8:"hidden",9:"strikethrough"};function dx(e){let t=e.shift();if("2"===t){let t=e.splice(0,3).map(e=>Number.parseInt(e));if(3!==t.length||t.some(e=>Number.isNaN(e)))return;return{type:"rgb",rgb:t}}if("5"===t){let t=e.shift();if(t)return{type:"table",index:Number(t)}}}var dk={black:"#000000",red:"#bb0000",green:"#00bb00",yellow:"#bbbb00",blue:"#0000bb",magenta:"#ff00ff",cyan:"#00bbbb",white:"#eeeeee",brightBlack:"#555555",brightRed:"#ff5555",brightGreen:"#00ff00",brightYellow:"#ffff55",brightBlue:"#5555ff",brightMagenta:"#ff55ff",brightCyan:"#55ffff",brightWhite:"#ffffff"};let dw={black:"#000000",red:"#cd3131",green:"#0DBC79",yellow:"#E5E510",blue:"#2472C8",magenta:"#BC3FBC",cyan:"#11A8CD",white:"#E5E5E5",brightBlack:"#666666",brightRed:"#F14C4C",brightGreen:"#23D18B",brightYellow:"#F5F543",brightBlue:"#3B8EEA",brightMagenta:"#D670D6",brightCyan:"#29B8DB",brightWhite:"#FFFFFF"};function dS(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=e.resolveLangAlias(n.lang||"text"),{theme:i=e.getLoadedThemes()[0]}=n;if(!ph(r)&&!pd(i)&&"ansi"===r){let{theme:r}=e.setTheme(i);return function(e,t,n){let r,i,a,o=pl(e,n),s=pm(t),l=function(){let e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:dk;function n(e){return"#".concat(e.map(e=>Math.max(0,Math.min(e,255)).toString(16).padStart(2,"0")).join(""))}return{value:function(r){switch(r.type){case"named":return t[r.name];case"rgb":return n(r.rgb);case"table":var i;return i=r.index,function(){if(e)return e;e=[];for(let n=0;n<db.length;n++)e.push(t[db[n]]);let r=[0,95,135,175,215,255];for(let t=0;t<6;t++)for(let i=0;i<6;i++)for(let a=0;a<6;a++)e.push(n([r[t],r[i],r[a]]));let i=8;for(let t=0;t<24;t++,i+=10)e.push(n([i,i,i]));return e}()[i]}}}}(Object.fromEntries(db.map(t=>{var n;let r="terminal.ansi".concat(t[0].toUpperCase()).concat(t.substring(1));return[t,(null==(n=e.colors)?void 0:n[r])||dw[t]]}))),c=(r=null,i=null,a=new Set,{parse(e){let t=[],n=0;do{let o=function(e,t){let n=e.indexOf("\x1b",t);if(-1!==n&&"["===e[n+1]){let t=e.indexOf("m",n);if(-1!==t)return{sequence:e.substring(n+2,t).split(";"),startPosition:n,position:t+1}}return{position:e.length}}(e,n),s=o.sequence?e.substring(n,o.startPosition):e.substring(n);if(s.length>0&&t.push({value:s,foreground:r,background:i,decorations:new Set(a)}),o.sequence){let e=function(e){let t=[];for(;e.length>0;){let n=e.shift();if(!n)continue;let r=Number.parseInt(n);if(!Number.isNaN(r))if(0===r)t.push({type:"resetAll"});else if(r<=9)dv[r]&&t.push({type:"setDecoration",value:dv[r]});else if(r<=29){let e=dv[r-20];e&&(t.push({type:"resetDecoration",value:e}),"dim"===e&&t.push({type:"resetDecoration",value:"bold"}))}else if(r<=37)t.push({type:"setForegroundColor",value:{type:"named",name:db[r-30]}});else if(38===r){let n=dx(e);n&&t.push({type:"setForegroundColor",value:n})}else if(39===r)t.push({type:"resetForegroundColor"});else if(r<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:db[r-40]}});else if(48===r){let n=dx(e);n&&t.push({type:"setBackgroundColor",value:n})}else 49===r?t.push({type:"resetBackgroundColor"}):53===r?t.push({type:"setDecoration",value:"overline"}):55===r?t.push({type:"resetDecoration",value:"overline"}):r>=90&&r<=97?t.push({type:"setForegroundColor",value:{type:"named",name:db[r-90+8]}}):r>=100&&r<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:db[r-100+8]}})}return t}(o.sequence);for(let t of e)"resetAll"===t.type?(r=null,i=null,a.clear()):"resetForegroundColor"===t.type?r=null:"resetBackgroundColor"===t.type?i=null:"resetDecoration"===t.type&&a.delete(t.value);for(let t of e)"setForegroundColor"===t.type?r=t.value:"setBackgroundColor"===t.type?i=t.value:"setDecoration"===t.type&&a.add(t.value)}n=o.position}while(n<e.length)return t}});return s.map(t=>c.parse(t[0]).map(n=>{let r,i;n.decorations.has("reverse")?(r=n.background?l.value(n.background):e.bg,i=n.foreground?l.value(n.foreground):e.fg):(r=n.foreground?l.value(n.foreground):e.fg,i=n.background?l.value(n.background):void 0),r=pc(r,o),i=pc(i,o),n.decorations.has("dim")&&(r=function(e){let t=e.match(/#([0-9a-f]{3,8})/i);if(t){let e=t[1];if(8===e.length){let t=Math.round(Number.parseInt(e.slice(6,8),16)/2).toString(16).padStart(2,"0");return"#".concat(e.slice(0,6)).concat(t)}if(6===e.length)return"#".concat(e,"80");if(4===e.length){let t=e[0],n=e[1],r=e[2],i=e[3];return"#".concat(t).concat(t).concat(n).concat(n).concat(r).concat(r).concat(Math.round(Number.parseInt("".concat(i).concat(i),16)/2).toString(16).padStart(2,"0"))}else if(3===e.length){let t=e[0],n=e[1],r=e[2];return"#".concat(t).concat(t).concat(n).concat(n).concat(r).concat(r,"80")}}let n=e.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return n?"var(".concat(n[1],"-dim)"):e}(r));let a=hb.None;return n.decorations.has("bold")&&(a|=hb.Bold),n.decorations.has("italic")&&(a|=hb.Italic),n.decorations.has("underline")&&(a|=hb.Underline),n.decorations.has("strikethrough")&&(a|=hb.Strikethrough),{content:n.value,offset:t[1],color:r,bgColor:i,fontStyle:a}}))}(r,t,n)}return pE(e,t,n)}function dA(e,t,n){let r,i,a,o,s,l;if("themes"in n){let{defaultColor:c="light",cssVariablePrefix:u="--shiki-",colorsRendering:h="css-vars"}=n,p=Object.entries(n.themes).filter(e=>e[1]).map(e=>({color:e[0],theme:e[1]})).sort((e,t)=>e.color===c?-1:+(t.color===c));if(0===p.length)throw new ho("`themes` option must not be empty");let d=pR(e,t,n,dS);if(l=pM(d),c&&dp!==c&&!p.find(e=>e.color===c))throw new ho("`themes` option must contain the defaultColor key `".concat(c,"`"));let m=p.map(t=>e.getTheme(t.theme)),f=p.map(e=>e.color);a=d.map(e=>e.map(e=>(function(e,t,n,r){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"css-vars",a={content:e.content,explanation:e.explanation,offset:e.offset},o=t.map(t=>dm(e.variants[t])),s=new Set(o.flatMap(e=>Object.keys(e))),l={},c=(e,r)=>n+t[e]+("color"===r||"color"===r?"":"background-color"===r?"-bg":"-".concat(r));return o.forEach((e,n)=>{for(let a of s){let s=e[a]||"inherit";if(0===n&&r&&dd.includes(a))if(r===dp&&o.length>1){let e=t.findIndex(e=>"light"===e),r=t.findIndex(e=>"dark"===e);if(-1===e||-1===r)throw new ho('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');l[a]="light-dark(".concat(o[e][a]||"inherit",", ").concat(o[r][a]||"inherit",")"),"css-vars"===i&&(l[c(n,a)]=s)}else l[a]=s;else"css-vars"===i&&(l[c(n,a)]=s)}}),a.htmlStyle=l,a})(e,f,u,c,h))),l&&p_(a,l);let g=p.map(e=>pl(e.theme,n));i=dC(p,m,g,u,c,"fg",h),r=dC(p,m,g,u,c,"bg",h),o="shiki-themes ".concat(m.map(e=>e.name).join(" ")),s=c?void 0:[i,r].join(";")}else if("theme"in n){let s=pl(n.theme,n);a=dS(e,t,n);let c=e.getTheme(n.theme);r=pc(c.bg,s),i=pc(c.fg,s),o=c.name,l=pM(a)}else throw new ho("Invalid options, either `theme` or `themes` must be provided");return{tokens:a,fg:i,bg:r,themeName:o,rootStyle:s,grammarState:l}}function dC(e,t,n,r,i,a,o){return e.map((s,l)=>{let c=pc(t[l][a],n[l])||"inherit",u="".concat(r+s.color).concat("bg"===a?"-bg":"",":").concat(c);if(0===l&&i){if(i===dp&&e.length>1){let r=e.findIndex(e=>"light"===e.color),i=e.findIndex(e=>"dark"===e.color);if(-1===r||-1===i)throw new ho('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');return"light-dark(".concat(pc(t[r][a],n[r])||"inherit",", ").concat(pc(t[i][a],n[i])||"inherit",");").concat(u)}return c}return"css-vars"===o?u:null}).filter(e=>!!e).join(";")}function dT(e,t,n){var r,i,a;let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{meta:{},options:n,codeToHast:(t,n)=>dT(e,t,n),codeToTokens:(t,n)=>dA(e,t,n)},s=t;for(let e of dy(n))s=(null==(r=e.preprocess)?void 0:r.call(o,s,n))||s;let{tokens:l,fg:c,bg:u,themeName:h,rootStyle:p,grammarState:d}=dA(e,s,n),{mergeWhitespaces:m=!0,mergeSameStyleTokens:f=!1}=n;!0===m?l=l.map(e=>{let t,n=[],r="";return e.forEach((i,a)=>{let o=!(i.fontStyle&&(i.fontStyle&hb.Underline||i.fontStyle&hb.Strikethrough));o&&i.content.match(/^\s+$/)&&e[a+1]?(void 0===t&&(t=i.offset),r+=i.content):r?(o?n.push({...i,offset:t,content:r+i.content}):n.push({content:r,offset:t},i),t=void 0,r=""):n.push(i)}),n}):"never"===m&&(l=l.map(e=>e.flatMap(e=>{if(e.content.match(/^\s+$/))return e;let t=e.content.match(/^(\s*)(.*?)(\s*)$/);if(!t)return e;let[,n,r,i]=t;if(!n&&!i)return e;let a=[{...e,offset:e.offset+n.length,content:r}];return n&&a.unshift({content:n,offset:e.offset}),i&&a.push({content:i,offset:e.offset+n.length+r.length}),a}))),f&&(l=l.map(e=>{let t=[];for(let n of e){if(0===t.length){t.push({...n});continue}let e=t[t.length-1],r=df(e.htmlStyle||dm(e)),i=df(n.htmlStyle||dm(n)),a=e.fontStyle&&(e.fontStyle&hb.Underline||e.fontStyle&hb.Strikethrough),o=n.fontStyle&&(n.fontStyle&hb.Underline||n.fontStyle&hb.Strikethrough);a||o||r!==i?t.push({...n}):e.content+=n.content}return t}));let g={...o,get source(){return s}};for(let e of dy(n))l=(null==(i=e.tokens)?void 0:i.call(g,l))||l;return function(e,t,n){var r,i,a,o;let s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:pM(e),l=dy(t),c=[],u={type:"root",children:[]},{structure:h="classic",tabindex:p="0"}=t,d={class:"shiki ".concat(t.themeName||"")};for(let[e,n]of(!1!==t.rootStyle&&(null!=t.rootStyle?d.style=t.rootStyle:d.style="background-color:".concat(t.bg,";color:").concat(t.fg)),!1!==p&&null!=p&&(d.tabindex=p.toString()),Object.entries(t.meta||{})))e.startsWith("_")||(d[e]=n);let m={type:"element",tagName:"pre",properties:d,children:[],data:t.data},f={type:"element",tagName:"code",properties:{},children:c},g=[],y={...n,structure:h,addClassToHast:dh,get source(){return n.source},get tokens(){return e},get options(){return t},get root(){return u},get pre(){return m},get code(){return f},get lines(){return g}};if(e.forEach((e,t)=>{var n,r;t&&("inline"===h?u.children.push({type:"element",tagName:"br",properties:{},children:[]}):"classic"===h&&c.push({type:"text",value:"\n"}));let i={type:"element",tagName:"span",properties:{class:"line"},children:[]},a=0;for(let r of e){let e={type:"element",tagName:"span",properties:{...r.htmlAttrs},children:[{type:"text",value:r.content}]},o=df(r.htmlStyle||dm(r));for(let s of(o&&(e.properties.style=o),l))e=(null==s||null==(n=s.span)?void 0:n.call(y,e,t+1,a,i,r))||e;"inline"===h?u.children.push(e):"classic"===h&&i.children.push(e),a+=r.content.length}if("classic"===h){for(let e of l)i=(null==e||null==(r=e.line)?void 0:r.call(y,i,t+1))||i;g.push(i),c.push(i)}else"inline"===h&&g.push(i)}),"classic"===h){for(let e of l)f=(null==e||null==(i=e.code)?void 0:i.call(y,f))||f;for(let e of(m.children.push(f),l))m=(null==e||null==(a=e.pre)?void 0:a.call(y,m))||m;u.children.push(m)}else if("inline"===h){let e=[],t={type:"element",tagName:"span",properties:{class:"line"},children:[]};for(let n of u.children)"element"===n.type&&"br"===n.tagName?(e.push(t),t={type:"element",tagName:"span",properties:{class:"line"},children:[]}):("element"===n.type||"text"===n.type)&&t.children.push(n);e.push(t);let n={type:"element",tagName:"code",properties:{},children:e};for(let e of l)n=(null==e||null==(o=e.code)?void 0:o.call(y,n))||n;u.children=[];for(let e=0;e<n.children.length;e++){e>0&&u.children.push({type:"element",tagName:"br",properties:{},children:[]});let t=n.children[e];"element"===t.type&&u.children.push(...t.children)}}let b=u;for(let e of l)b=(null==e||null==(r=e.root)?void 0:r.call(y,b))||b;return s&&p_(b,s),b}(l,{...n,fg:c,bg:u,themeName:h,rootStyle:!1!==n.rootStyle&&(null!=(a=n.rootStyle)?a:p)},g,d)}let d_=function(e,t){let n=t||da,r=n.quote||'"';if('"'!==r&&"'"!==r)throw Error("Invalid quote `"+r+"`, expected `'` or `\"`");return({one:dc,all:du,settings:{omitOptionalTags:n.omitOptionalTags||!1,allowParseErrors:n.allowParseErrors||!1,allowDangerousCharacters:n.allowDangerousCharacters||!1,quoteSmart:n.quoteSmart||!1,preferUnquoted:n.preferUnquoted||!1,tightAttributes:n.tightAttributes||!1,upperDoctype:n.upperDoctype||!1,tightDoctype:n.tightDoctype||!1,bogusComments:n.bogusComments||!1,tightCommaSeparatedLists:n.tightCommaSeparatedLists||!1,tightSelfClosing:n.tightSelfClosing||!1,collapseEmptyAttributes:n.collapseEmptyAttributes||!1,allowDangerousHtml:n.allowDangerousHtml||!1,voids:n.voids||pj,characterReferences:n.characterReferences||ds,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:"svg"===n.space?t$:tV,quote:r,alternative:'"'===r?"'":'"'}).one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)};async function dM(e){let t=await pC(e);return{getLastGrammarState:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];if(2===t.length)return pM(t[1]);let[r,i,a={}]=t,{lang:o="text",theme:s=r.getLoadedThemes()[0]}=a;if(ph(o)||pd(s))throw new ho("Plain language does not have grammar state");if("ansi"===o)throw new ho("ANSI language does not have grammar state");let{theme:l,colorMap:c}=r.setTheme(s),u=r.getLanguage(o);return new pN(pz(i,u,l,c,a).stateStack,u.name,l.name)}(t,...n)},codeToTokensBase:(e,n)=>dS(t,e,n),codeToTokensWithThemes:(e,n)=>pR(t,e,n),codeToTokens:(e,n)=>dA(t,e,n),codeToHast:(e,n)=>dT(t,e,n),codeToHtml:(e,n)=>(function(e,t,n){var r;let i={meta:{},options:n,codeToHast:(t,n)=>dT(e,t,n),codeToTokens:(t,n)=>dA(e,t,n)},a=d_(dT(e,t,n,i));for(let e of dy(n))a=(null==(r=e.postprocess)?void 0:r.call(i,a,n))||a;return a})(t,e,n),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...t,getInternalContext:()=>t}}let{codeToHtml:dN}=function(e,t){let n,r=async function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(n){let e=await n;return await Promise.all([e.loadTheme(...t.themes||[]),e.loadLanguage(...t.langs||[])]),e}{n=e({...t,themes:[],langs:[]});let r=await n;return await Promise.all([r.loadTheme(...t.themes||[]),r.loadLanguage(...t.langs||[])]),r}};async function i(e,n){var i;let a=await r({langs:[n.lang],themes:"theme"in n?[n.theme]:Object.values(n.themes)}),o=await (null==t||null==(i=t.guessEmbeddedLanguages)?void 0:i.call(t,e,n.lang,a));return o&&await a.loadLanguage(...o),a}return{getSingletonHighlighter:e=>r(e),codeToHtml:async(e,t)=>(await i(e,t)).codeToHtml(e,t),codeToHast:async(e,t)=>(await i(e,t)).codeToHast(e,t),codeToTokens:async(e,t)=>(await i(e,t)).codeToTokens(e,t),codeToTokensBase:async(e,t)=>(await i(e,t)).codeToTokensBase(e,t),codeToTokensWithThemes:async(e,t)=>(await i(e,t)).codeToTokensWithThemes(e,t),getLastGrammarState:async(e,t)=>(await r({langs:[t.lang],themes:[t.theme]})).getLastGrammarState(e,t)}}(function(e){let t=e.langs,n=e.themes,r=e.engine;return async function(e){var i,a,o;function s(n){if("string"==typeof n){var r;if(pp(n=(null==(r=e.langAlias)?void 0:r[n])||n))return[];let i=t[n];if(!i)throw new ho("Language `".concat(n,"` is not included in this bundle. You may want to load it from external source."));return i}return n}function l(e){if(pd(e))return"none";if("string"==typeof e){let t=n[e];if(!t)throw new ho("Theme `".concat(e,"` is not included in this bundle. You may want to load it from external source."));return t}return e}let c=(null!=(i=e.themes)?i:[]).map(e=>l(e)),u=(null!=(a=e.langs)?a:[]).map(e=>s(e)),h=await dM({engine:null!=(o=e.engine)?o:r(),...e,themes:c,langs:u});return{...h,loadLanguage(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return h.loadLanguage(...t.map(s))},loadTheme(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return h.loadTheme(...t.map(l))},getBundledLanguages:()=>t,getBundledThemes:()=>n}}}({langs:hi,themes:ha,engine:()=>(0,he.createOnigurumaEngine)(e.A(14467))}),{guessEmbeddedLanguages:function(e,t,n){let r=new Set;for(let t of e.matchAll(/:?lang=["']([^"']+)["']/g)){let e=t[1].toLowerCase().trim();e&&r.add(e)}for(let t of e.matchAll(/(?:```|~~~)([\w-]+)/g)){let e=t[1].toLowerCase().trim();e&&r.add(e)}for(let t of e.matchAll(/\\begin\{([\w-]+)\}/g)){let e=t[1].toLowerCase().trim();e&&r.add(e)}for(let t of e.matchAll(/<script\s+(?:type|lang)=["']([^"']+)["']/gi)){let e=t[1].toLowerCase().trim(),n=e.includes("/")?e.split("/").pop():e;n&&r.add(n)}if(!n)return Array.from(r);let i=n.getBundledLanguages();return Array.from(r).filter(e=>e&&i[e])}}),dE={...uR,attributes:{...null!=(f=uR.attributes)?f:{},"*":[...null!=(g=null==(c=uR.attributes)?void 0:c["*"])?g:[],"className","ariaHidden","dataTheme"],input:[...null!=(y=null==(u=uR.attributes)?void 0:u.input)?y:[],"type","checked","disabled"],code:[...null!=(b=null==(h=uR.attributes)?void 0:h.code)?b:[],"className"],pre:[...null!=(v=null==(p=uR.attributes)?void 0:p.pre)?v:[],"className"],span:[...null!=(x=null==(d=uR.attributes)?void 0:d.span)?x:[],"className"],div:[...null!=(k=null==(m=uR.attributes)?void 0:m.div)?k:[],"className","dataTheme"],math:[["xmlns"],["display"]],annotation:[["encoding"]]},tagNames:[...null!=(w=uR.tagNames)?w:[],"math","annotation","semantics","mrow","mi","mn","mo","msup","msub","mfrac","msqrt","mtext"]};async function dz(e,t,n){let r=n?"github-dark":"github-light";try{return await dN(e,{lang:t||"text",theme:r})}catch(t){return await dN(e,{lang:"text",theme:r})}}function dI(e){let{code:t,lang:n,streaming:r,dark:i,enableMermaid:a,renderMermaid:o}=e,[s,l]=(0,C.useState)("");return((0,C.useEffect)(()=>{if(r||!n||"mermaid"===n)return void l("");let e=!1;return dz(t,n,i).then(t=>{e||l(t)}),()=>{e=!0}},[t,n,r,i]),"mermaid"===n&&a)?o?o(t):(0,C.createElement)("pre",{className:"mermaid"},t):(0,C.createElement)("div",{className:"chat-code-block"},(0,C.createElement)("div",{className:"chat-code-head"},(0,C.createElement)("span",{className:"chat-code-title"},n||"text"),(0,C.createElement)("button",{type:"button",className:"chat-code-copy-btn",title:"复制代码"},"复制")),s?(0,C.createElement)("div",{dangerouslySetInnerHTML:{__html:s}}):(0,C.createElement)("pre",null,(0,C.createElement)("code",{className:n?"language-".concat(n):void 0},t)))}function dR(e){let{markdown:t,streaming:n=!1,theme:r="auto",className:i,enableMath:a=!0,enableMermaid:o=!0,renderMermaid:s,components:l,remarkPlugins:c,rehypePlugins:u,sanitizeSchema:h}=e,p=function(e){let[t,n]=(0,C.useState)(!1);return(0,C.useEffect)(()=>{if("auto"!==e)return;let t=window.matchMedia("(prefers-color-scheme: dark)"),r=()=>n(t.matches);return r(),t.addEventListener("change",r),()=>t.removeEventListener("change",r)},[e]),"dark"===e||"light"!==e&&t}(r),d=p?"dark":"light",m=(0,C.useMemo)(()=>({code(e){var t,r;let{className:i,children:a,...l}=e,c=null!=(r=null==(t=/language-(\w+)/.exec(null!=i?i:""))?void 0:t[1])?r:"",u="string"==typeof a?a:Array.isArray(a)?a.map(e=>"string"==typeof e?e:"").join("").replace(/\n$/,""):"";return c?(0,C.createElement)(dI,{code:u,lang:c,streaming:n,dark:p,enableMermaid:o,renderMermaid:s}):(0,C.createElement)("code",{...l,className:i},a)}}),[p,n,o,s]),f=(0,C.useMemo)(()=>({...m,...null!=l?l:{}}),[m,l]),g=(0,C.useMemo)(()=>[...null!=c?c:[],aU,...a?[aY]:[]],[c,a]),y=(0,C.useMemo)(()=>[uq,null!=h?h:dE],[h]),b=(0,C.useMemo)(()=>[...null!=u?u:[],...a?[uz]:[],y],[u,a,y]),v=["chat-md",i].filter(Boolean).join(" ");return(0,C.createElement)("div",{className:v,"data-theme":d},(0,C.createElement)(iI,{skipHtml:!0,remarkPlugins:g,rehypePlugins:b,components:f},t))}function dj(e){if(!e||"object"!=typeof e)return"";let t=e.type;if("user"===t||"assistant"===t){let t=e.message;if(t&&void 0!==t.content)return function(e){if(null==e)return"";if("string"==typeof e)return e;if(!Array.isArray(e))try{return JSON.stringify(e,null,2)}catch(t){return String(e)}let t=[];for(let n of e)if(n&&"object"==typeof n){if("text"===n.type&&"string"==typeof n.text)t.push(n.text);else if("tool_use"===n.type){let e=n.name||"tool",r="";try{r=JSON.stringify(n.input,null,2)}catch(e){r=String(n.input)}t.push("\n\n**`".concat(e,"`**\n\n```json\n").concat(r.slice(0,12e3),"\n```\n"))}else if("tool_result"===n.type){let e=n.content;if("string"!=typeof e)try{e=JSON.stringify(e,null,2)}catch(t){e=String(e)}t.push("\n\n```\n".concat(String(e).slice(0,8e3),"\n```\n"))}}return t.join("")}(t.content)}return"system"===t&&"string"==typeof e.content?e.content:""}function dL(e){var t;if(!e||"object"!=typeof e)return[];let n=null==(t=e.message)?void 0:t.content;return Array.isArray(n)?n:[]}function dP(e){var t;if(e&&"object"==typeof e)for(let n of[e.timestamp,null==(t=e.message)?void 0:t.timestamp,e.ts]){if("string"==typeof n&&n.trim()){let e=Date.parse(n);if(Number.isFinite(e))return e}if("number"==typeof n&&Number.isFinite(n))return n}}function dB(e,t){if(t<0||t>=e.length)return;let n=dP(e[t]);if(void 0!==n)for(let r=t+1;r<e.length;r+=1){let t=dP(e[r]);if(void 0!==t)return Math.max(0,t-n)}}function dO(e,t){let n=e.durationMs;return"number"==typeof n&&Number.isFinite(n)&&n>=0||void 0===t?e:{...e,durationMs:t}}function dD(e){let t=[];for(let n of e){if("conversation"!==n.kind)continue;let e=n.payload;if(!e)continue;let r=e.message;null!=r&&t.push(r)}return t}function dF(e,t){let n=-1;for(let i=0;i<=t;i+=1){var r;(null==(r=e[i])?void 0:r.kind)==="conversation"&&(n+=1)}return Math.max(0,n)}function dq(e,t){let n=-1;return e.forEach((e,t)=>{e&&"object"==typeof e&&"thinking"===e.type&&(n=t)}),n===t}function dH(e){let{data:t}=e,[n,r]=(0,C.useState)(!1),i=(0,C.useMemo)(()=>{let e=t.name;if("string"!=typeof e||!e)return"tool";let n=e.split("__").filter(Boolean);return n[n.length-1]||e},[t.name]),a=(0,C.useMemo)(()=>(function(e){try{return JSON.stringify(e,null,2)}catch(t){return String(e)}})(t.input),[t.input]),o=(0,C.useMemo)(()=>a.split("\n").length>3,[a]),s=(0,C.useMemo)(()=>{let e=a.replace(/\s+/g," ").trim();return e?e.length>96?"".concat(e.slice(0,93),"…"):e:""},[a]);return(0,A.jsxs)("div",{className:"my-2 rounded-xl border border-[var(--ds-border)] bg-[var(--ds-main-tint)] text-sm",children:[(0,A.jsxs)("div",{className:"flex w-full flex-col gap-0.5 rounded-xl border-0 px-3 py-2 text-left",children:[(0,A.jsx)("span",{className:"font-400 text-sm text-[var(--ds-text)]",children:i}),s?(0,A.jsx)("span",{className:"line-clamp-2 text-xs leading-snug text-[var(--ds-muted)]",children:s}):null]}),(0,A.jsxs)("div",{className:"px-3 pb-3",children:[(0,A.jsx)("div",{className:"mb-1 text-xs text-gray-500",children:"参数"}),(0,A.jsx)("pre",{className:"overflow-auto rounded border border-[var(--ds-border)] bg-[var(--ds-log-bg)] p-2 text-xs text-[var(--ds-text)]",style:!n&&o?{display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:3,overflow:"hidden"}:void 0,children:a}),o?(0,A.jsx)("button",{type:"button",className:"mx-auto mt-1 flex items-center justify-center border-0 bg-transparent p-0 text-zinc-500 transition-colors hover:bg-transparent hover:text-zinc-700",onClick:()=>r(e=>!e),"aria-label":n?"收起":"展开",title:n?"收起":"展开",children:n?(0,A.jsx)(H.default,{name:"ChevronsUp",size:16,strokeWidth:1}):(0,A.jsx)(H.default,{name:"ChevronsDown",size:16,strokeWidth:1})}):null]})]})}function dU(e){let{data:t,onExpandChange:n}=e,[r,i]=(0,C.useState)(!1),a=!!t.is_error,o=(0,C.useMemo)(()=>"string"==typeof t.content?t.content:JSON.stringify(t.content,null,2),[t.content]),s=a?function(e){let t=[];return e.includes("WS_ALLOW_TOOL_ASK=1")&&t.push("设置环境变量 WS_ALLOW_TOOL_ASK=1"),e.includes("acceptEdits")&&t.push("开启 permission mode: acceptEdits"),t}(o):[],l=(0,C.useMemo)(()=>(function(e){if("string"==typeof e)return e;try{return JSON.stringify(e,null,2)}catch(t){return String(e)}})(t.content),[t.content]),c=(0,C.useMemo)(()=>l.split("\n").length>3,[l]);return(0,A.jsxs)("div",{className:"my-2 rounded-xl border text-sm ".concat(a?"border-red-200 bg-red-50":"border-[var(--ds-border)] bg-[var(--ds-main-tint)]"),children:[(0,A.jsx)("div",{className:"flex w-full items-center justify-between rounded-xl border-0 px-3 py-2 text-left text-xs",children:(0,A.jsx)("span",{children:a?"工具执行失败":"工具结果"})}),(0,A.jsxs)("div",{className:"px-3 pb-3",children:[(0,A.jsx)("div",{className:"mb-1 mt-4 text-xs text-gray-500",children:a?"错误信息":"返回结果"}),(0,A.jsx)("pre",{className:"overflow-auto whitespace-pre-wrap rounded border border-[var(--ds-border)] bg-[var(--ds-log-bg)] p-2 text-xs text-[var(--ds-text)]",style:!r&&c?{display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:3,overflow:"hidden"}:void 0,children:l}),c?(0,A.jsx)("button",{type:"button",className:"mx-auto mt-1 flex items-center justify-center border-0 bg-transparent p-0 text-zinc-500 transition-colors hover:bg-transparent hover:text-zinc-700",onClick:()=>i(e=>{let t=!e;return null==n||n(t),t}),"aria-label":r?"收起":"展开",title:r?"收起":"展开",children:r?(0,A.jsx)(H.default,{name:"ChevronsUp",size:16,strokeWidth:1}):(0,A.jsx)(H.default,{name:"ChevronsDown",size:16,strokeWidth:1})}):null,a&&s.length>0&&(0,A.jsx)("ul",{className:"mt-2 list-disc pl-4 text-xs text-orange-600",children:s.map((e,t)=>(0,A.jsx)("li",{children:e},t))})]})]})}let dG={default:{border:"#AFA9EC",previewColor:"var(--color-text-secondary)",openBackground:"rgba(175, 169, 236, 0.08)"},decision:{border:"#EF9F27",previewColor:"#7a6000",openBackground:"rgba(239, 159, 39, 0.08)"},recovery:{border:"#F09595",previewColor:"#A32D2D",openBackground:"rgba(240, 149, 149, 0.08)"}};function dW(e){let{payload:t,usage:n,compact:r=!1,streaming:i=!1}=e,[a,o]=(0,C.useState)(()=>i),s=(0,C.useRef)(i);(0,C.useEffect)(()=>{let e=s.current;i?o(!0):e&&o(!1),s.current=i},[i]);let l=dG["string"==typeof t.status&&("default"===t.status||"decision"===t.status||"recovery"===t.status)?t.status:"default"],c=(0,C.useMemo)(()=>(function(e){for(let t of[e.thinking,e.content,e.text])if("string"==typeof t&&t.trim())return t;return""})(t),[t]),u=(0,C.useMemo)(()=>(function(e){let t=e.durationMs;return"number"!=typeof t||!Number.isFinite(t)||t<0?"":"".concat((t/1e3).toFixed(1),"s")})(t),[t]),h=i?"思考中":"已思考";return(0,A.jsxs)("div",{"data-thinking-usage":n,"data-thinking-state":i?"active":"done",style:{},className:"my-1 transition-colors",children:[(0,A.jsxs)("button",{type:"button",onClick:()=>{i||o(e=>!e)},className:"flex w-full items-center gap-2 border-0 bg-transparent text-left ".concat(r?"px-2.5 py-1.5":"px-0 py-1.5"," cursor-pointer"),"aria-expanded":a,"aria-label":h,children:[(0,A.jsx)("span",{className:"shrink-0 text-sm font-medium ".concat(i?"loading-sweep":""),style:{color:"#b3b3b3"},children:h}),u?(0,A.jsx)("span",{className:"shrink-0 font-mono text-xs text-[var(--text-secondary)]",children:u}):null,a?(0,A.jsx)(H.default,{name:"ChevronDown",size:8,className:"text-[#8A8985]",strokeWidth:1}):(0,A.jsx)(H.default,{name:"ChevronRight",size:8,className:"text-[#8A8985]",strokeWidth:1})]}),a?(0,A.jsx)("div",{className:"border-t pb-2.5 pr-3 pt-1.5",style:{borderColor:"".concat(l.border,"66")},children:(0,A.jsx)("div",{className:"max-h-40 overflow-y-auto whitespace-pre-wrap break-words font-mono text-sm leading-[1.6] text-[var(--text-tertiary)]",children:c||"(无思考内容)"})}):null]})}function dV(e){let t=0x811c9dc5;for(let n=0;n<e.length;n++)t^=e.charCodeAt(n),t=Math.imul(t,0x1000193);return(t>>>0).toString(36)}function d$(e,t){return e.slice(t+1).some(e=>"toolContainer"===e.type)?"text":"final"}function dX(e){var t;let n=(null==(t=(e.resultText.trim()||"等待工具返回结果…").split("\n")[0])?void 0:t.replace(/\s+/g," ").trim())||"等待工具返回结果…";return n.length<=80?n:"".concat(n.slice(0,80),"…")}function dY(e){if(null==e)return"-";try{let t=("string"==typeof e?e:JSON.stringify(e)).replace(/\s+/g," ").trim();if(!t)return"-";return t.length<=48?t:"".concat(t.slice(0,48),"…")}catch(t){return String(e)}}let dJ={bash:"终端",read_file:"读取文件",write:"写入文件",grep:"文本搜索",glob:"文件搜索",web_search:"网页搜索",task:"子任务"};function dZ(e){var t;let n=function(e){if(!e)return"tool";let t=e.trim(),n=t.match(/^mcp__[^_]+__(.+)$/);return(null==n?void 0:n[1])||t}(e);return null!=(t=dJ[n])?t:n}function dK(e){let{status:t}=e;return"pending"===t?(0,A.jsx)(H.default,{name:"Dot",size:14,className:"shrink-0 text-[#b0bac8]",strokeWidth:2}):"error"===t?(0,A.jsx)(H.default,{name:"CircleX",size:14,className:"shrink-0 !text-[#A32D2D]",strokeWidth:1}):(0,A.jsx)(H.default,{name:"CheckCircle2",size:14,className:"shrink-0 text-[#b4c4b9]",strokeWidth:1})}function dQ(e){let{className:t}=e;return(0,A.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",className:t,children:[(0,A.jsx)("path",{d:"M13.04 7.304a.5.5 0 0 1 .92.392C13.665 8.386 13.089 9 12.3 9c-.487 0-.892-.234-1.2-.574-.309.34-.713.574-1.2.574-.486 0-.892-.234-1.2-.574-.31.34-.714.574-1.2.574a.5.5 0 0 1 0-1c.212 0 .52-.18.74-.696a.5.5 0 0 1 .92 0c.221.516.528.696.74.696.213 0 .52-.18.74-.696l.035-.067a.5.5 0 0 1 .885.067c.22.516.527.696.74.696s.519-.18.74-.696"}),(0,A.jsx)("path",{fillRule:"evenodd",d:"M14 3a2 2 0 0 1 2 2v8h1.5a.5.5 0 0 1 .5.5V15a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V4H4a1 1 0 0 0-.745 1.667.5.5 0 0 1-.745.666A2 2 0 0 1 4 3zM6 15a1 1 0 1 0 2 0v-1.5a.5.5 0 0 1 .5-.5H15V5a1 1 0 0 0-1-1H6zm3 0c0 .365-.1.706-.27 1H16a1 1 0 0 0 1-1v-1H9z",clipRule:"evenodd"})]})}function d0(e){let{className:t}=e;return(0,A.jsx)("svg",{viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0,className:t,children:(0,A.jsx)("path",{d:"M11.586 2a1.5 1.5 0 0 1 1.06.44l2.914 2.914a1.5 1.5 0 0 1 .44 1.06V16.5a1.5 1.5 0 0 1-1.5 1.5h-9a1.5 1.5 0 0 1-1.492-1.347L4 16.5v-13A1.5 1.5 0 0 1 5.5 2zM5.5 3a.5.5 0 0 0-.5.5v13a.5.5 0 0 0 .5.5h9a.5.5 0 0 0 .5-.5V7h-2.5A1.5 1.5 0 0 1 11 5.5V3zm7.04 10.304a.5.5 0 0 1 .92.392c-.295.69-.871 1.304-1.66 1.304-.487 0-.892-.234-1.2-.574-.309.34-.713.574-1.2.574-.486 0-.892-.233-1.2-.574-.31.34-.714.574-1.2.574a.5.5 0 0 1 0-1c.212 0 .52-.18.74-.696l.034-.067a.5.5 0 0 1 .886.067c.221.516.528.696.74.696.213 0 .52-.18.74-.696l.035-.067a.5.5 0 0 1 .885.067c.22.516.527.696.74.696s.519-.18.74-.696m0-4a.5.5 0 0 1 .92.392c-.295.69-.871 1.304-1.66 1.304-.487 0-.892-.234-1.2-.574-.309.34-.713.574-1.2.574-.486 0-.892-.233-1.2-.574-.31.34-.714.574-1.2.574a.5.5 0 0 1 0-1c.212 0 .52-.18.74-.696l.034-.067a.5.5 0 0 1 .886.067c.221.516.528.696.74.696.213 0 .52-.18.74-.696l.035-.067a.5.5 0 0 1 .885.067c.22.516.527.696.74.696s.519-.18.74-.696M12 5.5a.5.5 0 0 0 .5.5h2.293L12 3.207z"})})}function d1(e){let{text:t,variant:n}=e,r="final"===n;return r?(0,A.jsxs)("div",{children:[(0,A.jsxs)("div",{className:"agent-timeline-label-row pt-2",children:[(0,A.jsx)("span",{className:r?"tag tag-final":"tag tag-text",children:r?"最终回答":"assistant text"}),(0,A.jsx)("span",{className:"agent-timeline-label-hint",children:r?"所有工具调用完成后输出":""})]}),r&&(0,A.jsx)("div",{className:"agent-timeline-thinking".concat(r?"agent-timeline-thinking--final":""),children:t})]}):(0,A.jsx)("div",{className:"agent-timeline-thinking !pt-2",children:t})}function d4(e){let{group:t,totalToolCalls:n,completedToolCalls:r,runId:i,agentName:a}=e,[o,s]=(0,C.useState)(!0),[,l]=(0,C.useState)(!1),[c,u]=(0,C.useState)(!1),[h,p]=(0,C.useState)({}),d=(0,C.useRef)(null),m=(0,C.useRef)(null),f=(0,C.useRef)(null),g=(0,C.useRef)(null),y=(0,C.useMemo)(()=>(function(e){let t=new Map;for(let n of e){let e=n.toolName||"tool",r=t.get(e);if(r){r.push(n);continue}t.set(e,[n])}return Array.from(t.entries()).map(e=>{let[t,n]=e;return{toolName:t,items:n}})})(t.tools),[t.tools]),b=(0,C.useMemo)(()=>t.tools.map(e=>"".concat(e.toolUseId,":").concat(e.status,":").concat(e.resultText.length)).join("|"),[t.tools]);(0,C.useEffect)(()=>()=>{null!=m.current&&window.clearTimeout(m.current),null!=f.current&&window.clearTimeout(f.current),null!=g.current&&window.clearTimeout(g.current)},[]);let v=()=>{let e=d.current;if(!e)return;let t=()=>{e.scrollTop=e.scrollHeight};t(),requestAnimationFrame(t),null!=g.current&&window.clearTimeout(g.current),g.current=window.setTimeout(()=>{t(),g.current=null},320)};(0,C.useEffect)(()=>{if(null!=m.current&&(window.clearTimeout(m.current),m.current=null),null!=f.current&&(window.clearTimeout(f.current),f.current=null),"pending"===t.status)return void l(!1);m.current=window.setTimeout(()=>{l(!0),m.current=null},300),c||(f.current=window.setTimeout(()=>{s(!1),f.current=null},300))},[t.status,c]),(0,C.useEffect)(()=>{o&&v()},[o,b]);let x=(0,C.useMemo)(()=>{var e;let n=t.tools.find(e=>"pending"===e.status);return dZ((null==n?void 0:n.toolName)||(null==(e=t.tools[0])?void 0:e.toolName)||"tool")},[t.tools]),k=(0,C.useMemo)(()=>t.tools.length>1?"".concat(x," 等 ").concat(t.tools.length," 个工具"):"pending"===t.status?"已执行":"完成",[t.status,t.tools.length,x]),w=(0,C.useMemo)(()=>{let e={type:"tool",tagClassName:"tag tag-tool",tagLabel:"工具调用面板",title:x,tagHint:t.tools.length>1?"本批 ".concat(t.tools.length," 个并发调用"):"工具执行与结果",runId:i||""};return"pending"===t.status?{...e,status:k,label:"等待工具返回…",panelModifier:"agent-timeline-tool-panel--done",headerModifier:"agent-timeline-tool-header--done"}:"error"===t.status?{...e,status:k,label:t.summary?"摘要:".concat(t.summary):"已完成(含错误)",panelModifier:"agent-timeline-tool-panel--error",headerModifier:"agent-timeline-tool-header--error"}:{...e,status:k,label:t.summary?"摘要:".concat(t.summary):"已完成",panelModifier:"agent-timeline-tool-panel--done",headerModifier:"agent-timeline-tool-header--done"}},[t.status,t.summary,k,t.tools.length,i,x]),S=(0,C.useMemo)(()=>{let e=t.tools.find(e=>"pending"===e.status);if(!e)return"";let n=dY(e.input);return"".concat(dZ(e.toolName)," · ").concat(n)},[t.tools]);return(0,A.jsx)(A.Fragment,{children:(0,A.jsxs)("div",{className:"agent-timeline-tool-panel ".concat(w.panelModifier),children:[(0,A.jsx)("button",{type:"button",onClick:()=>{u(!0),s(e=>!e)},className:"agent-timeline-tool-header !border-0 ".concat(w.headerModifier),"aria-expanded":o,children:(0,A.jsxs)("div",{className:"flex min-w-0 flex-1 items-center gap-1.5",children:[(0,A.jsxs)("div",{className:"agent-timeline-tool-title min-w-0 truncate ".concat(w.tagClassName),children:[a||w.runId," · ",w.status]}),(0,A.jsx)("div",{className:"agent-timeline-tool-meta min-w-0 truncate",children:"pending"===t.status&&S?S:w.label}),(0,A.jsx)("div",{className:"agent-timeline-tool-calls",children:"pending"===t.status?"".concat(r,"/").concat(n):""})]})}),(0,A.jsx)("div",{className:"overflow-hidden transition-all duration-300 ".concat(o?"max-h-[min(50vh,22rem)]":"max-h-0"),children:(0,A.jsx)("div",{ref:d,className:"max-h-[min(50vh,22rem)] overflow-y-auto border-t border-black/5 bg-[#f9f9f7] px-2.5 py-1.5",children:(0,A.jsxs)("div",{className:"relative space-y-2.5 pl-6",children:[(0,A.jsx)("div",{className:"absolute bottom-1 left-2 top-1 w-px bg-[#efefef]","aria-hidden":!0}),y.map(e=>(0,A.jsx)("div",{className:"space-y-1.5",children:e.items.map((e,t)=>{let n=!0===h[e.toolUseId];return(0,A.jsxs)("div",{className:"relative",children:[(0,A.jsx)("div",{className:"absolute -left-[24px] top-1 inline-flex bg-[#f9f9f9] pb-1",children:(0,A.jsx)("span",{className:"h-4 w-4 items-center justify-center rounded-full border border-[#e2e6ee] bg-[#f6f7fa]","aria-hidden":!0,children:(0,A.jsx)(dK,{status:e.status})})}),(0,A.jsxs)("div",{className:"rounded-[4px] border border-white/5 bg-[#f9f9f9] ".concat("error"===e.status?"bg-[rgba(120,30,30,.07)]":""),children:[(0,A.jsxs)("button",{type:"button",onClick:()=>{p(t=>({...t,[e.toolUseId]:!t[e.toolUseId]})),v()},className:"flex w-full items-center justify-between gap-1.5 border-0 bg-transparent px-2 py-1 text-left text-[#535353] transition-colors hover:text-[#343d52]","aria-expanded":n,children:[(0,A.jsxs)("div",{className:"flex min-w-0 flex-1 items-center gap-1.5 font-mono text-[10.5px]",children:[(0,A.jsx)("span",{className:"w-5 shrink-0 text-[#252e3e]",children:String(t+1).padStart(2,"0")}),(0,A.jsx)("span",{className:"max-w-36 shrink-0 truncate font-medium ".concat("error"===e.status?"text-[#A32D2D]":"done"===e.status?"text-[#3B6D11]":"text-[#5a8ec4]"),children:dZ(e.toolName)}),(0,A.jsx)("span",{className:"min-w-0 flex-1 truncate text-[#353f52]",children:dY(e.input)}),(0,A.jsx)("span",{className:"min-w-0 flex-1 truncate italic ".concat("error"===e.status?"text-[#6e2828]":"text-[#2e5a38]"),children:dX(e)})]}),(0,A.jsx)("span",{className:"shrink-0 text-[#343d52]","aria-hidden":!0,children:n?(0,A.jsx)(H.default,{name:"ChevronsUp",size:12,strokeWidth:1}):(0,A.jsx)(H.default,{name:"ChevronsDown",size:12,strokeWidth:1})})]}),(0,A.jsx)("div",{className:"transition-all duration-300 ".concat(n?"max-h-[2000px] overflow-visible":"max-h-0 overflow-hidden"),children:(0,A.jsxs)("div",{className:"space-y-1.5 border-t border-white/5 bg-white/[.012] px-2 py-1.5",children:[(0,A.jsx)(dH,{data:{type:"tool_use",id:e.toolUseId,name:e.toolName,input:e.input}}),e.attachedThinkings.length>0?(0,A.jsx)("div",{className:"space-y-1 border-l-2 border-[#e4dfc8] pl-2 opacity-90",children:e.attachedThinkings.map((t,n)=>(0,A.jsx)(dW,{payload:t,usage:"tool-attached",compact:!0},"".concat(e.toolUseId,"-thinking-").concat(n,"-").concat(dV(JSON.stringify(t)))))}):null,"pending"===e.status?(0,A.jsx)("div",{className:"rounded-md border border-[#223044] bg-[rgba(50,100,180,.07)] px-3 py-2 text-xs text-[#4d80c4]",children:"等待工具返回结果…"}):(0,A.jsx)(dU,{data:{type:"tool_result",tool_use_id:e.toolUseId,is_error:"error"===e.status,content:e.resultRaw},onExpandChange:()=>{v()}})]})})]})]},e.toolUseId)})},e.toolName))]})})})]})})}function d5(e){let{messages:t,runId:n,agentName:r,streaming:i=!1,ev:a}=e,o=(0,C.useMemo)(()=>{if("string"==typeof n&&n.trim())return n;if("string"==typeof(null==a?void 0:a.runId)&&a.runId.trim())return a.runId;for(let e of t){if(!e||"object"!=typeof e)continue;let t=e.runId;if("string"==typeof t&&t.trim())return t}return""},[null==a?void 0:a.runId,t,n]),s=(0,C.useMemo)(()=>{if("string"==typeof r&&r.trim())return r;if("string"==typeof(null==a?void 0:a.sourceAgent)&&a.sourceAgent.trim())return a.sourceAgent;for(let e of t){if(!e||"object"!=typeof e)continue;let t=e.agent_name;if("string"==typeof t&&t.trim())return t}return""},[r,null==a?void 0:a.sourceAgent,t]),l=(0,C.useMemo)(()=>(function(e){let t=[],n=0,r=[],i=new Map,a="",o=[],s=()=>"tool-use-".concat(n++),l=()=>r.filter(e=>"pending"===e.status),c=()=>{if(0!==o.length){for(let e of o)t.push({type:"thinking",payload:e.payload,timestamp:e.timestamp,key:e.key});o=[]}},u=e=>{0!==o.length&&(e.attachedThinkings.push(...o.map(e=>e.payload)),o=[])},h=()=>{if(0===o.length)return;let e=l(),t=1===e.length?e[0]:r[r.length-1];if(!t)return void c();u(t)},p=()=>{if(0===r.length)return;h();let e=r.map(e=>({...e,attachedThinkings:[...e.attachedThinkings]}));t.push({type:"toolContainer",status:e.some(e=>"error"===e.status)?"error":e.some(e=>"pending"===e.status)?"pending":"done",summary:function(e){let t=e.map(e=>e.resultText.trim()).filter(e=>e.length>0);for(let e of t){let t=e.match(/(\d+)\s*(?:条|个)?(?:命中|结果|items?)/i);if(null==t?void 0:t[1])return"".concat(t[1]," 条结果")}let n=t[0];if(!n)return"";let r=n.replace(/\s+/g," ").trim();return r.length<=30?r:"".concat(r.slice(0,30),"…")}(e),tools:e,timestamp:a||new Date().toISOString()}),r=[],i=new Map,a=""},d=()=>{var e;(e=r).length>0&&e.every(e=>"pending"!==e.status)&&p()},m=(e,t)=>{let n,o=function(e){if("string"==typeof e)return e;if(!Array.isArray(e))try{return JSON.stringify(e,null,2)}catch(t){return String(null!=e?e:"")}let t=[];for(let n of e)if(n&&"object"==typeof n){if("text"===n.type&&"string"==typeof n.text){t.push(n.text);continue}try{t.push(JSON.stringify(n,null,2))}catch(e){t.push(String(n))}}return t.join("\n").trim()}(e.content),l=!0===e.is_error||/\berror\b/i.test(o)?"error":"done",c="string"==typeof e.tool_use_id?e.tool_use_id:"";if(c&&(n=i.get(c)),n||c||(n=r.find(e=>"pending"===e.status)),!n){a||(a=t);let n=c||s(),h={toolUseId:n,toolName:"tool",input:null,status:l,resultText:o,resultRaw:e.content,attachedThinkings:[]};u(h),r.push(h),i.set(n,h),d();return}u(n),n.status=l,n.resultText=o,n.resultRaw=e.content,d()},f=(t,n)=>dO(t,dB(e,n));for(let n=0;n<e.length;n+=1){var g;let p=(g=e[n])&&"object"==typeof g?g:null;if(!p)continue;let y=function(e){var t,n;let r=null!=(n=null==(t=e.message)?void 0:t.timestamp)?n:e.timestamp;return"string"==typeof r&&r.trim()?r:new Date().toISOString()}(p),b=function(e){var t;let n=null==(t=e.message)?void 0:t.content;return Array.isArray(n)?n.filter(e=>!!e&&"object"==typeof e):[]}(p);for(let e=0;e<b.length;e+=1){let p=b[e];if("text"===p.type&&"string"==typeof p.text){if(!p.text.trim())continue;r.length>0?h():c(),d(),t.push({type:"thought",text:p.text,timestamp:y});continue}if("markdown"===p.type&&"string"==typeof p.content){if(!p.content.trim())continue;r.length>0?h():c(),d(),t.push({type:"thought",text:p.content,timestamp:y});continue}if("thinking"===p.type){let r=f(p,n),i="thinking-".concat(n,"-").concat(e,"-").concat(y),a=l();1===a.length?a[0].attachedThinkings.push(r):a.length>1?o.push({payload:r,timestamp:y,key:i}):(c(),t.push({type:"thinking",payload:r,timestamp:y,key:i}));continue}if("tool_use"===p.type){d();let e="string"==typeof p.id&&p.id?p.id:s(),t="string"==typeof p.name&&p.name.trim()?p.name:"tool";0===r.length&&(a=y);let n={toolUseId:e,toolName:t,input:p.input,status:"pending",resultText:"",resultRaw:null,attachedThinkings:[]};u(n),r.push(n),i.set(e,n);continue}"tool_result"===p.type&&(0!==r.length||a||(a=y),m(p,y))}}return p(),t})(t),[t]),c=(0,C.useMemo)(()=>{for(let e=l.length-1;e>=0;e-=1)if("thinking"===l[e].type)return e;return -1},[l]),u=l.filter(e=>"toolContainer"===e.type),h=(0,C.useMemo)(()=>u.reduce((e,t)=>e+t.tools.length,0),[u]),p=(0,C.useMemo)(()=>u.reduce((e,t)=>e+t.tools.filter(e=>"pending"!==e.status).length,0),[u]),d=u.length>0,m=l.length>0,[f,g]=(0,C.useState)(()=>!i&&m),y=(0,C.useRef)(m),b=(0,C.useRef)(i),v=(0,C.useMemo)(()=>u.find(e=>"pending"===e.status)||u[u.length-1]||null,[u]),x=(0,C.useMemo)(()=>{if(!v)return{title:"工具调用面板",detail:"等待工具调用",toolCount:0,agentName:s,runId:o};let e=v.tools.find(e=>"pending"===e.status),t=e||v.tools[v.tools.length-1],n=t?dZ(t.toolName):"tool";return{title:v.tools.length>1?"".concat(n," 等 ").concat(v.tools.length," 个工具"):(null==t?void 0:t.status)==="pending"?"".concat(n," · 已执行"):"".concat(n," · 已完成"),detail:(e?"".concat(n," · ").concat(dY(e.input)):v.summary||dX(t||v.tools[0]))||"工具执行与结果",toolCount:v.tools.length,agentName:s,runId:o}},[v,s,o]);return((0,C.useEffect)(()=>{let e=b.current;!e&&i?g(!1):e&&!i?g(!0):(!y.current&&m&&g(!0),y.current&&!m&&g(!1)),b.current=i,y.current=m},[m,i]),l.length)?(0,A.jsxs)("div",{className:"chat-agent-timeline relative",children:[f?null:(0,A.jsx)("div",{className:"absolute bottom-1 left-2 top-6 w-px bg-[var(--border-hover)]","aria-hidden":!0}),(0,A.jsx)("div",{className:"relative",children:(0,A.jsxs)("button",{type:"button",className:"agent-timeline-summary-bar cursor-pointer !text-[#e6e6e6] hover:!text-[#cfcfcf]",onClick:()=>g(e=>!e),"aria-expanded":!f,children:[(0,A.jsxs)("span",{className:"agent-timeline-summary-title rounded-md bg-[var(--ds-item-active)] px-2 py-1",children:[x.agentName||x.runId," · tool"]}),(0,A.jsx)("span",{className:"agent-timeline-summary-detail !flex-none",children:x.detail}),(0,A.jsx)("div",{className:"text-xs text-[#6e6e6e]",children:"".concat(h," 次")}),f?(0,A.jsx)(H.default,{name:"ChevronRight",size:8,className:"text-[#8A8985]",strokeWidth:1}):(0,A.jsx)(H.default,{name:"ChevronDown",size:8,className:"text-[#8A8985]",strokeWidth:1})]})}),f?null:(0,A.jsx)("div",{className:"mt-[0.75rem] max-h-[6000px] overflow-visible pl-9 opacity-100 transition-all duration-300",children:(0,A.jsxs)("div",{className:"space-y-3",children:[l.map((e,t)=>(0,A.jsxs)("div",{className:"relative",children:["thought"===e.type?(0,A.jsx)("span",{className:"absolute -left-[40px] top-0.5 z-10 flex h-6 w-6 items-center justify-center rounded-full border border-[#efefef] bg-[#fbfbfc] ".concat("final"===d$(l,t)?"agent-timeline-dot-final":"agent-timeline-dot-text"),"aria-hidden":!0,children:(0,A.jsx)(d0,{className:"h-5 w-5 shrink-0 text-[#6e6e6e]"})}):"thinking"===e.type?(0,A.jsx)("span",{className:"agent-timeline-dot-text absolute -left-[40px] top-0.5 z-10 flex h-6 w-6 items-center justify-center rounded-full border border-[#efefef] bg-[#fbfbfc]","aria-hidden":!0,children:(0,A.jsx)(H.default,{name:"Think",size:14,className:"text-[#6e6e6e]"})}):(0,A.jsx)("span",{className:"agent-timeline-dot-tool absolute -left-[40px] top-0.5 z-10 inline-flex h-6 w-6 items-center justify-center rounded-full border border-[#efefef] bg-[#fbfbfc]","aria-hidden":!0,children:(0,A.jsx)(dQ,{className:"h-5 w-5 shrink-0 text-[#6e6e6e]"})}),"thought"===e.type?(0,A.jsx)(d1,{text:e.text,variant:d$(l,t)}):"thinking"===e.type?(0,A.jsx)(dW,{payload:e.payload,usage:"agent-timeline",streaming:i&&t===c}):(0,A.jsx)(d4,{group:e,totalToolCalls:h,completedToolCalls:p,runId:o,agentName:s})]},function(e){switch(e.type){case"thought":return"thought-".concat(e.timestamp,"-").concat(dV(e.text));case"thinking":return e.key;case"toolContainer":return"tool-".concat(e.timestamp,"-").concat(e.tools.map(e=>e.toolUseId).join("|"));default:return"timeline-".concat(String(e))}}(e))),d?(0,A.jsxs)("div",{className:"relative !mt-[1.25rem] font-mono text-xs text-[#6e6e6e]",children:[(0,A.jsx)("span",{className:"absolute -left-[40px] -top-0.5 z-10 inline-flex h-6 w-6 items-center justify-center rounded-full border border-[#efefef] bg-[#fbfbfc]","aria-hidden":!0,children:(0,A.jsx)(H.default,{name:"Check",size:8,className:"text-[#6e6e6e]",strokeWidth:1})}),"已完成"]}):null]})})]}):null}let d6=[{border:"#5DCAA5",headerBg:"#E1F5EE",headerText:"#085041",dot:"#0F6E56"}];function d3(e){for(let t=e.length-1;t>=0;t-=1){let n=e[t];if("source"!==n.kind)continue;let r=n.payload;if(r&&("resolved"===r.status||"failed"===r.status))return r.status}return null}let d2=(0,C.memo)(function(e){let{ev:t,idx:n,renderItem:r}=e;return(0,A.jsx)("div",{children:r(t,n)})});function d7(e){let{block:t,paletteIndex:n,renderItem:r}=e,i=d6[n%d6.length],[a,o]=(0,C.useState)(!1),[s,l]=(0,C.useState)(!1),[c,u]=(0,C.useState)(!1),[h,p]=(0,C.useState)(!1),[d,m]=(0,C.useState)(0),f=(0,C.useRef)(null),g=(0,C.useRef)(null),{toolCount:y,errCount:b}=(0,C.useMemo)(()=>(function(e){let t=0,n=0,r=0;for(let i of e)if("conversation"===i.kind)for(let e of function(e){if(!e||"object"!=typeof e)return[];let t=e.message;if(!t||"object"!=typeof t)return[];let n=t.message;if(!n||"object"!=typeof n)return[];let r=n.content;return Array.isArray(r)?r.filter(e=>!!e&&"object"==typeof e):[]}(i.payload))"thinking"===e.type?t+=1:"tool_use"===e.type?n+=1:"tool_result"===e.type&&!0===e.is_error&&(r+=1);return{thinkCount:t,toolCount:n,errCount:r}})(t.items),[t.items]),v=(0,C.useMemo)(()=>d3(t.items),[t.items]),x=(0,C.useMemo)(()=>(function(e){let t=e=>e?("string"==typeof e.team_name?e.team_name:"string"==typeof e.teamName?e.teamName:"").trim():"",n=e=>{if(!e)return"";let t=e.content;if(!Array.isArray(t))return"";for(let e of t){var n;if(!e||"object"!=typeof e)continue;let t=e.text;if("string"!=typeof t||!t.trim())continue;let r=t.match(/(?:^|\n)\s*team_name\s*:\s*([^\n]+)/);if(null==r||null==(n=r[1])?void 0:n.trim())return r[1].trim()}return""},r=e=>{var t,n;if("string"!=typeof e||!e.trim())return"";let r=e.match(/(?:^|\n)\s*team_name\s*[:=]\s*([^\n]+)/);if(null==r||null==(t=r[1])?void 0:t.trim())return r[1].trim();let i=e.match(/(?:^|\n)\s*agent_id\s*:\s*[^\n@]+@([^\n]+)/);return(null==i||null==(n=i[1])?void 0:n.trim())?i[1].trim():""};for(let a of e){if(!a.payload||"object"!=typeof a.payload)continue;let e=a.payload,o=t(e);if(o)return o;let s=r(e.text);if(s)return s;if("string"==typeof e.source){var i;let t=e.source.match(/@(.+)$/);if(null==t||null==(i=t[1])?void 0:i.trim())return t[1].trim()}let l=e.message;if(!l||"object"!=typeof l)continue;let c=t(l);if(c)return c;let u=l.toolUseResult;if(u&&"object"==typeof u){let e=t(u);if(e)return e}let h=l.message;if(!h||"object"!=typeof h)continue;let p=h.content;if(Array.isArray(p)){for(let e of p)if(e&&"object"==typeof e){if("tool_use"===e.type){let n=e.input;if(n&&"object"==typeof n){let e=t(n);if(e)return e}}if("tool_result"===e.type){let r=t(e);if(r)return r;let i=n(e);if(i)return i}}}}return""})(t.items),[t.items]),k=(0,C.useMemo)(()=>null===d3(t.items),[t.items]),w=h?Math.min(d,t.items.length):0;(0,C.useEffect)(()=>()=>{null!=f.current&&window.cancelAnimationFrame(f.current),null!=g.current&&window.clearTimeout(g.current)},[]),(0,C.useEffect)(()=>{if(a&&h&&!(d>=t.items.length))return g.current=window.setTimeout(()=>{m(e=>Math.min(e+24,t.items.length)),g.current=null},0),()=>{null!=g.current&&window.clearTimeout(g.current),g.current=null}},[t.items.length,h,a,d]);let S=(t.runId||"").slice(0,8),T=t.sourceAgent||"unknown-agent";return(0,A.jsxs)("div",{className:"agent-block","data-agent-work-phase":k?"active":"finished",style:{margin:"4px 0.9rem 6px 0.1rem",overflow:"hidden"},children:[(0,A.jsxs)("button",{type:"button",onClick:()=>{if(a){o(!1),p(!1),u(!1),m(0),null!=f.current&&(window.cancelAnimationFrame(f.current),f.current=null),null!=g.current&&(window.clearTimeout(g.current),g.current=null);return}o(!0),u(!0),p(!1),m(Math.min(16,t.items.length)),null!=f.current&&window.cancelAnimationFrame(f.current),f.current=window.requestAnimationFrame(()=>{p(!0),f.current=null})},onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),"aria-expanded":a,"aria-label":"".concat(T," · ").concat(v?" · ".concat(v):""),className:"agent-block-header ".concat(k?"slideHighlight":""),style:{display:"flex",alignItems:"center",gap:8,padding:"12px 0",border:"none",background:"transparent",cursor:"pointer",userSelect:"none",textAlign:"left"},children:[(0,A.jsxs)("span",{className:"rounded-md bg-[var(--ds-item-active)] px-2 py-1",style:{fontSize:"var(--text-xs)",fontWeight:500,color:i.headerText,flexShrink:0},children:["SUBAGENT = ",T]}),x?(0,A.jsxs)("span",{style:{fontSize:"var(--text-xs)",color:i.headerText,opacity:.65,flexShrink:0},children:["· ",x]}):null,(0,A.jsxs)("span",{style:{fontSize:"var(--text-xs)",color:i.headerText,opacity:.65,flexShrink:0,fontFamily:"ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace"},children:["run:",S]}),(0,A.jsxs)("div",{style:{display:"flex",gap:4,alignItems:"center",marginLeft:4,flexShrink:0},children:[y>0?(0,A.jsxs)("span",{style:{fontSize:"var(--text-xs)",padding:"1px 6px",borderRadius:20,background:"#EDEDED",color:i.headerText,fontWeight:400},children:["工具调用:",y]}):null,b>0?(0,A.jsxs)("span",{style:{fontSize:"var(--text-xs)",padding:"1px 6px",borderRadius:20,background:"#FCEBEB",color:"#A32D2D",fontWeight:500},children:[b," err"]}):null]}),v?(0,A.jsx)("span",{style:{fontSize:"var(--text-xs)",padding:"1px 7px",borderRadius:20,fontWeight:500,marginLeft:4,background:"resolved"===v?"#EAF3DE":"#FCEBEB",color:"resolved"===v?"#3B6D11":"#A32D2D"},children:v}):null,(0,A.jsxs)("span",{style:{fontSize:"var(--text-xs)",color:i.headerText,opacity:.55,marginLeft:4,flexShrink:0},children:[t.items.length," 条"]}),(0,A.jsx)("span",{style:{flex:1}}),(0,A.jsx)("span",{style:{transition:"transform .18s ease",transform:a?"rotate(90deg)":"none",flexShrink:0},children:(0,A.jsx)(H.default,{name:"ChevronRight",size:14,strokeWidth:1,color:i.headerText})})]}),c?(0,A.jsx)("div",{style:{padding:"8px 10px 10px",margin:"0",borderRadius:"8px",border:"1px solid ".concat(i.border,"40"),background:"#ffffff"},children:h?(0,A.jsxs)("div",{style:{maxHeight:"min(60vh, 680px)",overflowY:"auto",overflowX:"hidden",overscrollBehaviorY:"contain"},children:[t.items.slice(0,w).map((e,t)=>(0,A.jsx)(d2,{ev:e,idx:t,renderItem:r},"agent-block-item-".concat(t))),w<t.items.length?(0,A.jsx)("div",{style:{fontSize:"var(--text-sm)",color:"#717781",padding:"4px 0"},children:"加载更多内容..."}):null]}):(0,A.jsx)("div",{style:{fontSize:"var(--text-sm)",color:"#717781",padding:"4px 0"},children:"内容加载中..."})}):null]})}function d8(e){return"number"==typeof e&&Number.isFinite(e)?Math.max(0,Math.floor(e)):0}function d9(e){let{error:t,className:n="",message:r={}}=e,i=function(e){let t=e&&"object"==typeof e?e:{};return{retryInMs:d8(t.retryInMs),retryAttempt:d8(t.retryAttempt),maxRetries:d8(t.maxRetries)}}(r),a=i.retryAttempt,o=i.maxRetries,s=i.retryInMs;if(o<=0)return null;let l=a>=o,c=Math.max(1,Math.ceil(s/1e3));return(0,A.jsx)("div",{className:"chat-msg ".concat(n).trim(),role:l?"alert":"status","aria-live":"polite",children:(0,A.jsx)("div",{className:"inline-flex items-center gap-2 text-sm text-[#626a77]",children:l?(0,A.jsx)("span",{children:"服务暂时不可用,请稍后再试"}):(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(G,{className:"h-[14px] w-[14px] text-[#626a77]"}),(0,A.jsx)("span",{children:"服务连接中 (".concat(a,"/").concat(o,") · ").concat(c,"s")})]})})})}function me(e){let{text:t,engine:n,streamMode:r=!1,components:i}=e;return"remark"===n?(0,A.jsx)(dR,{markdown:t,streaming:r,theme:"light",components:i}):(0,A.jsx)("div",{className:"chat-md",dangerouslySetInnerHTML:{__html:function(e){if(!e)return"";try{return tt.parse(e,{async:!1})}catch(e){return"<pre>".concat((0,R.escapeHtml)(String(e)),"</pre>")}}(t)}})}let mt=(0,C.memo)(function(e){let{ev:t,idx:n,streaming:r,showToolbar:i,durationContext:a,renderTimelineEvent:o}=e;return o(t,n,r,i,a)});function mn(e){if(!e||"object"!=typeof e)return null;let t=e.message;if(t&&"object"==typeof t)return e;let n=e.data;if(!n||"object"!=typeof n)return null;let r=n.message;return r&&"object"==typeof r?r:null}function mr(e){var t,n;let r=mn(e);if(!r)return null;let i=r.message;if(!i||"object"!=typeof i)return null;let a=e&&"object"==typeof e?e:null,o=null!=(n=null!=(t=r.timestamp)?t:"string"==typeof(null==a?void 0:a.timestamp)?a.timestamp:void 0)?n:"string"==typeof(null==a?void 0:a.ts)?a.ts:void 0,s={...r,message:i};return"string"==typeof o&&o.trim()&&(s.timestamp=o),s}function mi(e){let t=mn(e);return"string"==typeof(null==t?void 0:t.type)?t.type:void 0}function ma(e){return(function(e){var t;let n=mn(e);if(!n)return[];let r=null==(t=n.message)?void 0:t.content;return Array.isArray(r)?r.filter(e=>!!e&&"object"==typeof e):[]})(e).some(e=>"tool_use"===e.type||"tool_result"===e.type||"string"==typeof e.type&&e.type.startsWith("tool_"))}function mo(e){return"user"===mi(e)&&!ma(e)}function ms(e){var t;let n=mn(e);return!!n&&"assistant"===n.type&&(null==(t=n.message)?void 0:t.stop_reason)==="end_turn"}function ml(e){return"conversation"!==e.kind?null:mr(e.payload.message)}function mc(e){if(!e||"object"!=typeof e)return null;let t=e.message;return t&&"object"==typeof t?t:null}function mu(e){if("conversation"!==e.kind)return!1;let t=mc(e.payload);return!!t&&"system"===t.type&&"turn_duration"===t.subtype}function mh(e){if("conversation"!==e.kind)return!1;let t=mc(e.payload);return!!t&&"progress"===t.type}function mp(e){var t;let n=mn(e);if(!n||"assistant"!==n.type)return!1;let r=null==(t=n.message)?void 0:t.content;if(!Array.isArray(r)||0===r.length)return!1;let i=!1;for(let e of r){if(!e||"object"!=typeof e)return!1;let t=e.type;if("text"===t||"markdown"===t){i=!0;continue}return!1}return i}function md(e){var t;let n=mn(e);if(!n||"assistant"!==n.type)return!1;let r=null==(t=n.message)?void 0:t.content;if(!Array.isArray(r)||0===r.length)return!1;for(let e of r)if(!e||"object"!=typeof e||"thinking"!==e.type)return!1;return!0}function mm(e){return!!e&&"object"==typeof e&&"system"===e.type&&"turn_duration"===e.subtype}function mf(e){var t;let n=null==e||null==(t=e.message)?void 0:t.content;return"user"===e.type&&Array.isArray(n)&&n.some(e=>(null==e?void 0:e.type)==="tool_result"||(null==e?void 0:e.type)==="tool_use")?"assistant":e.type}let mg=new Intl.DateTimeFormat("zh-CN",{dateStyle:"medium",timeStyle:"short"}),my=new Intl.DateTimeFormat("zh-CN",{hour:"2-digit",minute:"2-digit",hour12:!1});function mb(e){return"undefined"!=typeof navigator&&navigator.clipboard&&"function"==typeof navigator.clipboard.writeText?navigator.clipboard.writeText(e):"undefined"==typeof document?Promise.reject(Error("Clipboard unavailable")):new Promise((t,n)=>{let r=document.createElement("textarea");r.value=e,r.setAttribute("readonly",""),r.style.position="fixed",r.style.top="-9999px",r.style.opacity="0",document.body.appendChild(r),r.focus(),r.select();let i=document.execCommand("copy");if(document.body.removeChild(r),i)return void t();n(Error("Clipboard copy failed"))})}function mv(e){let t=[];for(let n of e)if(n&&"object"==typeof n){if("text"===n.type&&"string"==typeof n.text&&n.text.trim()){t.push(n.text.trim());continue}"markdown"===n.type&&"string"==typeof n.content&&n.content.trim()&&t.push(n.content.trim())}return t.join("\n\n").trim()}function mx(e){let{body:t,message:n}=e,[r,i]=(0,C.useState)(!1),a=(0,C.useRef)(null);(0,C.useEffect)(()=>()=>{null!=a.current&&window.clearTimeout(a.current)},[]);let o=function(e){let t;if(!e||"object"!=typeof e)return null;let n=e.message;if(n&&"object"==typeof n&&(t=n.timestamp),null==t&&(t=e.timestamp),null==t)return null;if("number"==typeof t){let e=new Date(t>1e12?t:1e3*t);return Number.isFinite(e.getTime())?e:null}if("string"==typeof t){let e=new Date(t);return Number.isFinite(e.getTime())?e:null}return null}(n),s=o?{label:mg.format(o),iso:o.toISOString()}:null,l=o?my.format(o):null;return(0,A.jsxs)("div",{className:"chat-msg chat-msg-user group ml-auto flex max-w-[min(540px,100%)] flex-col items-end gap-1",children:[(0,A.jsx)("div",{className:"w-fit max-w-full whitespace-pre-wrap break-words rounded-md bg-[var(--ds-item-hover)] px-4 py-3 text-base text-[var(--ds-text)]",children:(0,A.jsx)("div",{children:t})}),(0,A.jsxs)("div",{className:"pointer-events-none invisible ml-auto flex min-h-5 w-fit items-center gap-2 pr-1 text-sm text-[var(--ds-muted)] opacity-0 transition-opacity group-focus-within:pointer-events-auto group-focus-within:visible group-focus-within:opacity-100 group-hover:pointer-events-auto group-hover:visible group-hover:opacity-100",children:[s?(0,A.jsx)(W.TooltipProvider,{delayDuration:150,children:(0,A.jsxs)(W.Tooltip,{children:[(0,A.jsx)(W.TooltipTrigger,{asChild:!0,children:(0,A.jsx)("time",{className:"shrink-0",dateTime:s.iso,children:l})}),(0,A.jsx)(W.TooltipContent,{side:"top",align:"center",sideOffset:8,children:s.label})]})}):null,(0,A.jsx)("button",{type:"button",className:"inline-flex h-5 w-5 items-center justify-center rounded-sm border-0 bg-transparent p-0 text-[var(--ds-muted)] transition-colors hover:bg-transparent hover:text-[var(--ds-text)] focus-visible:outline-none","aria-label":r?"已复制问话":"复制问话",title:r?"已复制":"复制问话",onClick:e=>{e.stopPropagation(),mb(t).then(()=>{i(!0),null!=a.current&&window.clearTimeout(a.current),a.current=window.setTimeout(()=>{i(!1),a.current=null},1500)},()=>{P.appToast.error("复制失败")})},children:r?(0,A.jsx)(H.default,{name:"Check",size:14}):(0,A.jsx)(H.default,{name:"Copy",size:14})})]})]})}function mk(e){let{copyText:t}=e,[n,r]=(0,C.useState)(!1),i=(0,C.useRef)(null),a=t.trim().length>0;return(0,C.useEffect)(()=>()=>{null!=i.current&&window.clearTimeout(i.current)},[]),(0,A.jsx)("div",{className:"flex min-h-5 w-fit items-center justify-start gap-2 pl-1 text-sm text-[var(--ds-muted)]",children:(0,A.jsx)("button",{type:"button",className:"inline-flex h-5 w-5 items-center justify-center rounded-sm border-0 bg-transparent p-0 text-[var(--ds-muted)] transition-colors hover:bg-transparent hover:text-[var(--ds-text)] focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50","aria-label":n?"已复制回复":"复制回复",title:n?"已复制":"复制回复",disabled:!a,onClick:e=>{e.stopPropagation(),a&&mb(t).then(()=>{r(!0),null!=i.current&&window.clearTimeout(i.current),i.current=window.setTimeout(()=>{r(!1),i.current=null},1500)},()=>{P.appToast.error("复制失败")})},children:n?(0,A.jsx)(H.default,{name:"Check",size:14}):(0,A.jsx)(H.default,{name:"Copy",size:14})})})}function mw(e){let{raw:t,payload:n}=e,r="1"===String((0,T.useSearchParams)().get("dev")),i=(()=>{try{return JSON.stringify(n,null,2)}catch(e){return String(n)}})();return(0,A.jsxs)("div",{className:"chat-msg chat-msg-system",children:[(0,A.jsx)("div",{className:"chat-msg-system-body whitespace-pre-wrap break-words",children:t}),r?(0,A.jsxs)("details",{className:"chat-msg-system-dev mt-2 rounded-md border border-[var(--ds-border)] bg-[var(--ds-log-bg)] p-2",children:[(0,A.jsx)("summary",{className:"cursor-pointer select-none text-xs text-[var(--ds-muted)]",children:"调试详情"}),(0,A.jsx)("pre",{className:"mt-2 max-h-48 overflow-auto font-mono text-xs leading-snug text-[var(--ds-text)]",children:i})]}):null]})}function mS(){let e=(0,T.useSearchParams)(),t=(0,_.useAppStore)(e=>e.lastMessages),n=(0,_.useAppStore)(e=>e.messagesByRun),r=(0,_.useAppStore)(e=>e.sourceAgentMessages),i=(0,_.useAppStore)(e=>e.streamBuffer),a=(0,_.useAppStore)(e=>e.assistantGenerating),o=(0,_.useAppStore)(e=>e.wsConnected),s=(0,_.useAppStore)(e=>e.bridgeReady),l=(0,_.useAppStore)(e=>e.sessionId),c=(0,C.useRef)(null),u=(0,C.useRef)(null),h=(0,C.useMemo)(()=>e.get("md")||"remark",[e]),p=(0,C.useMemo)(()=>(function(e){let t=new Map,n=new Set;for(let r=0;r<e.length;r+=1){if(!mo(e[r]))continue;let i=[],a=-1;for(let t=r+1;t<e.length;t+=1){let n=e[t];if(mo(n)||mm(n))break;if(-1!==a){let r=mr(n);if(r&&mp(r)&&!function(e,t){for(let n=t+1;n<e.length;n+=1){let t=e[n];if(mm(t)||mo(t))break;let r=mr(t);if(r){if(ma(r))return!0;if(!mp(r)&&md(r))continue}}return!1}(e,t))break}if(ma(n)){let e=mi(n);-1===a&&"assistant"===e&&(a=t)}if(ms(n))break;-1!==a&&i.push(t)}if(-1!==a&&0!==i.length)for(let r of(t.set(a,i.map(t=>mr(e[t])).filter(e=>null!==e)),i))r!==a&&n.add(r)}return{starts:t,consumed:n}})(t),[t]);(0,C.useEffect)(()=>{var e;null==(e=c.current)||e.scrollIntoView({block:"end"})},[t,i,a]),(0,C.useEffect)(()=>()=>{null!=u.current&&window.clearTimeout(u.current)},[]);let d=(0,C.useMemo)(()=>{let e=0;for(let n=t.length-1;n>=0;n--)if(mo(t[n])){e=n;break}if(t.slice(e).some(e=>{let t=e.message;return"assistant"===e.type&&((null==t?void 0:t.stop_reason)==="end_turn"||(null==t?void 0:t.stop_reason)==="stop_sequence")}))return new Set;let n=new Set;for(let r=t.length-1;r>=e;r--){let e=t[r];if("system"===e.type&&"api_error"===e.subtype){n.add(r);break}}return n},[t]),m=(0,C.useMemo)(()=>{let e=[],t=0;for(let[r,i]of Object.entries(n||{}))for(let n=0;n<i.length;n+=1){let a=i[n];a&&void 0!==a.message&&e.push({ts:a.ts||"",arrivalSeq:Number.isInteger(a.arrivalSeq)?a.arrivalSeq:Number.MAX_SAFE_INTEGER,fallbackOrder:t++,runId:r,sourceAgent:a.sourceAgent||("main"===r?"main":"unknown-agent"),kind:"conversation",payload:a})}for(let n=0;n<r.length;n+=1){let i=r[n];if(!i)continue;let a=i.runId||"main";e.push({ts:i.ts||"",arrivalSeq:Number.isInteger(i.arrivalSeq)?i.arrivalSeq:Number.MAX_SAFE_INTEGER,fallbackOrder:t++,runId:a,sourceAgent:i.source||("main"===a?"main":"unknown-agent"),kind:"source",payload:i})}e.sort((e,t)=>{let n=Date.parse(e.ts||""),r=Date.parse(t.ts||""),i=Number.isFinite(n),a=Number.isFinite(r);return i&&a&&n!==r?n-r:e.arrivalSeq!==t.arrivalSeq?e.arrivalSeq-t.arrivalSeq:e.fallbackOrder-t.fallbackOrder});let i=[],a=new Map,o=0;for(let t=0;t<e.length;t+=1){let n=e[t];if("main"===n.runId){let e=i.length?i[i.length-1]:null;e&&e.isMainSegment?e.items.push(n):i.push({runId:"main",sourceAgent:n.sourceAgent,items:[n],isMainSegment:!0,segmentSeq:++o});continue}let r=a.get(n.runId);if(r){r.items.push(n);continue}let s={runId:n.runId,sourceAgent:n.sourceAgent,items:[n],isMainSegment:!1,segmentSeq:0};a.set(n.runId,s),i.push(s)}return i},[n,r]),f=m.length>0,g=(0,C.useMemo)(()=>{let e=new Map,t=0;for(let n of m)!n.isMainSegment&&(e.has(n.runId)||(e.set(n.runId,t),t+=1));return e},[m]),y=(0,C.useMemo)(()=>{if(a)return null;let e=null;for(let n=0;n<m.length;n+=1){let r=m[n].items;for(let i=0;i<r.length;i+=1){var t;let a=r[i];if("conversation"!==a.kind)continue;let o=null!=(t=a.payload.message)?t:null;o&&"assistant"===(mf(o)||o.type)&&(e={blockIdx:n,itemIdx:i})}}return e},[m,a]),b=(0,C.useCallback)(function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=arguments.length>4?arguments[4]:void 0;if("source"===e.kind){if("main"===e.runId)return null;let n=e.payload,r="string"==typeof n.text?n.text.trim():"";if(!r)return null;let i="failed"===n.status?"chat-msg-system":"chat-msg-assistant",a="string"==typeof n.correlationId&&n.correlationId?" corr=".concat(n.correlationId):"";return(0,A.jsxs)("div",{className:"chat-msg ".concat(i),children:[(0,A.jsx)("div",{className:"chat-msg-label",children:"sourceAgent: ".concat(n.source||e.sourceAgent," run=").concat(e.runId).concat(a)}),(0,A.jsx)(me,{text:r,engine:h})]},"source-".concat(t))}let a=e.payload.message||null;if(!a)return null;let o=mf(a)||a.type;if("user"===o){let e="remark"===h?dj(a):tn(a);return e.trim()?(0,A.jsx)(mx,{body:e,message:a},"user-".concat(t)):null}if("assistant"===o){let o=dL(a),s="remark"===h?dj(a):tn(a);if(!o.length&&!s.trim())return null;let l=o.map(e=>{if(!e||"object"!=typeof e)return"";let t=e.type;return"string"==typeof t?t:""}),c=e=>"tool_use"===e||"tool_result"===e||e.startsWith("tool_"),u=l.some(e=>c(e)),p=l.some((e,t)=>"thinking"===e&&c(l[t-1]||"")),d=l.some((e,t)=>{if("thinking"!==e)return!1;let n=l[t-1]||"",r=l[t+1]||"";return!c(n)&&c(r)}),m=o.length?mv(o):s.trim(),f=r&&!!m;return(0,A.jsx)("div",{className:"chat-msg chat-msg-assistant",children:(0,A.jsxs)("div",{className:"assistant-content flex flex-col gap-3",children:[u&&!d||p?(0,A.jsx)(d5,{messages:[a],runId:e.runId,agentName:e.sourceAgent,streaming:n,ev:e}):o.length?o.map((e,t)=>{if(!e||"object"!=typeof e)return null;let r=e.type;if("text"===r){let n="string"==typeof e.text?e.text:"";return n.trim()?(0,A.jsx)(me,{text:n,engine:h},t):null}if("markdown"===r){let n="string"==typeof e.content?e.content:"";return n.trim()?(0,A.jsx)(me,{text:n,engine:h},t):null}if("thinking"===r){let r=dO(e,i?dB(i.messages,i.messageIndex):void 0),a=n&&dq(o,t);return(0,A.jsx)(dW,{payload:r,usage:"assistant-message",streaming:a},t)}return null}):s.trim()?(0,A.jsx)(me,{text:s,engine:h}):null,f?(0,A.jsx)(mk,{copyText:m}):null]})},"assistant-".concat(t))}if("system"===o){var s;let e=null==(s=a.message)?void 0:s.content;if(null==e)return null;let n="string"==typeof e?e:JSON.stringify(e);return n.trim()?(0,A.jsx)(mw,{raw:n,payload:a},"system-".concat(t)):null}return null},[h]),v=(0,C.useCallback)(function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=arguments.length>4?arguments[4]:void 0;return(0,A.jsx)(mt,{ev:e,idx:t,streaming:n,showToolbar:r,durationContext:i,renderTimelineEvent:b})},[b]),x=!f&&(!t||0===t.length)&&!i&&!a,k=!!l.trim()&&(!o||!s);return(0,A.jsxs)("div",{id:"chatThread",className:"chat-thread","data-region":"chat-thread","aria-live":"polite",onClick:e=>{var t;let n=e.target,r=null==n?void 0:n.closest(".chat-code-copy-btn");if(!r)return;e.preventDefault(),e.stopPropagation();let i=r.closest(".chat-code-block"),a=null==i?void 0:i.querySelector("pre code");mb(null!=(t=null==a?void 0:a.textContent)?t:"").then(()=>{r.textContent="已复制",r.classList.add("is-copied"),null!=u.current&&window.clearTimeout(u.current),u.current=window.setTimeout(()=>{r.textContent="复制",r.classList.remove("is-copied")},1400)})},children:[x?k?(0,A.jsxs)("div",{className:"flex min-h-[220px] items-center justify-center",children:[(0,A.jsx)(G,{}),(0,A.jsx)("div",{className:"text-sm text-muted-foreground",children:"加载中..."})]}):l.trim()?(0,A.jsx)("div",{className:"chat-placeholder",children:"当前历史会话暂无消息"}):(0,A.jsx)("div",{className:"chat-placeholder",children:"连接后将在此展示对话"}):(0,A.jsxs)(A.Fragment,{children:[f?m.map((e,t)=>{var n;if(!e.items.length)return null;let r=e.runId,i=e.sourceAgent||("main"===r?"main":"unknown-agent");e.isMainSegment&&e.segmentSeq>1&&e.segmentSeq;let o=t===m.length-1,s=e.items.length-1,l=e=>a&&o&&e===s,c=e=>(null==y?void 0:y.blockIdx)===t&&(null==y?void 0:y.itemIdx)===e,u=function(e){let t=[],n=0;for(;n<e.length;){let r=e[n];if(!function(e){let t=ml(e);return!!t&&"assistant"===t.type&&ma(t)}(r)){t.push({kind:"single",ev:r,index:n}),n+=1;continue}let i=[],a=n,o=n;for(;o<e.length;){let t=e[o];if(mu(t))break;let r=ml(t);if(!r){if(o===n)break;if(mh(t)){o+=1;continue}break}if(o>n&&mo(r)||o>n&&mp(r)&&!function(e,t){for(let n=t+1;n<e.length;n+=1){let t=e[n];if("conversation"!==t.kind)continue;if(mu(t))break;if(mh(t))continue;let r=ml(t);if(!r||mo(r))break;if(ma(r))return!0;if(!mp(r)&&md(r))continue}return!1}(e,o)||(i.push(r),a=o,(o+=1)>n+1&&ms(r)))break}if(0===i.length){t.push({kind:"single",ev:r,index:n}),n+=1;continue}t.push({kind:"toolRound",startIndex:n,endIndex:a,messages:i}),n=a+1}return t}(e.items),{toolRoundByStart:h,consumed:p}=function(e){let t=new Map,n=new Set;for(let r of e)if("toolRound"===r.kind){t.set(r.startIndex,r);for(let e=r.startIndex+1;e<=r.endIndex;e+=1)n.add(e)}return{toolRoundByStart:t,consumed:n}}(u),d=dD(e.items);return"main"===r?(0,A.jsx)("div",{className:"chat-run-group",children:(0,A.jsx)("div",{className:"chat-run-group-body",children:u.map(n=>{let a="single"===n.kind?n.index:n.startIndex;return(0,A.jsx)(C.Fragment,{children:"single"===n.kind?v(n.ev,n.index,l(n.index),c(n.index),{messages:d,messageIndex:dF(e.items,n.index)}):(0,A.jsx)("div",{className:"chat-msg chat-msg-assistant",children:(0,A.jsx)("div",{className:"assistant-content flex flex-col gap-3",children:(0,A.jsx)(d5,{messages:n.messages,runId:r,agentName:i,streaming:l(n.endIndex)})})})},"main-".concat(t,"-").concat(n.kind,"-").concat(a))})})},"run-main-".concat(t)):(0,A.jsx)("div",{className:"chat-run-group",children:(0,A.jsx)(d7,{block:e,paletteIndex:null!=(n=g.get(r))?n:0,renderItem:(t,n)=>{if(p.has(n))return null;let a=h.get(n);if(a)return(0,A.jsx)("div",{className:"chat-msg chat-msg-assistant",children:(0,A.jsx)("div",{className:"assistant-content flex flex-col gap-3",children:(0,A.jsx)(d5,{messages:a.messages,runId:r,agentName:i,streaming:l(a.endIndex)})})});let o=dD(e.items);return v(t,n,l(n),c(n),{messages:o,messageIndex:dF(e.items,n)})}})},"run-sub-".concat(t))}):t.map((e,n)=>{let r=p.starts.get(n);if(r){let e=n===t.length-1,i=function(e){for(let t of e){if(!t||"object"!=typeof t)continue;let e=t.agent_name;if("string"==typeof e&&e.trim())return e}return""}(r);return(0,A.jsx)("div",{className:"chat-msg chat-msg-assistant",children:(0,A.jsx)("div",{className:"assistant-content 0000",children:(0,A.jsx)(d5,{messages:r,agentName:i,streaming:a&&e})})},n)}if(p.consumed.has(n))return null;let i=mr(e);if(!i)return null;let o=mf(i)||i.type;if("user"===o){let t="remark"===h?dj(e):tn(e);return t.trim()?(0,A.jsx)(mx,{body:t,message:e},n):null}if("assistant"===o){let r=!a&&function(e,t){let n=e[t];if(!n||"assistant"!==mf(n))return!1;for(let n=t+1;n<e.length;n+=1){let t=e[n];if(mo(t))break;if(!ma(t)&&"assistant"===mf(t))return!1}return!0}(t,n),i=dL(e);if(!i.length){let t="remark"===h?dj(e):tn(e);return t.trim()?(0,A.jsx)("div",{className:"chat-msg chat-msg-assistant",children:(0,A.jsxs)("div",{className:"assistant-content flex flex-col gap-3",children:[(0,A.jsx)(me,{text:t,engine:h}),r?(0,A.jsx)(mk,{copyText:t.trim()}):null]})},n):null}let o=mv(i);return(0,A.jsx)("div",{className:"chat-msg chat-msg-assistant",children:(0,A.jsxs)("div",{className:"assistant-content flex flex-col gap-3",children:[i.map((e,r)=>{if(!e||"object"!=typeof e)return null;let o=e.type;if("text"===o){let t="string"==typeof e.text?e.text:"";return t.trim()?(0,A.jsx)(me,{text:t,engine:h},r):null}if("markdown"===o){let t="string"==typeof e.content?e.content:"";return t.trim()?(0,A.jsx)(me,{text:t,engine:h},r):null}if("thinking"===o){let o=dO(e,dB(t,n)),s=a&&n===t.length-1&&dq(i,r);return(0,A.jsx)(dW,{payload:o,usage:"assistant-message",streaming:s},r)}return"tool_use"===o?(0,A.jsx)(dH,{data:e},r):"tool_result"===o?(0,A.jsx)(dU,{data:e},r):null}),r&&o?(0,A.jsx)(mk,{copyText:o}):null]})},n)}if("system"===o){let e=i.message,t=null==e?void 0:e.content,r="string"==typeof t?t:JSON.stringify(null!=t?t:"");return r.trim()&&"turn_duration"!==i.subtype?"api_error"===i.subtype?d.has(n)?(0,A.jsx)(d9,{error:i.error,message:i},n):null:(0,A.jsx)(mw,{raw:r,payload:i},n):null}return null}),i?(0,A.jsxs)("div",{className:"chat-msg chat-msg-assistant chat-streaming chat-streaming--content","data-stream-phase":"generating","aria-live":"polite","aria-busy":"true",children:[(0,A.jsxs)("div",{className:"chat-msg-label",children:["生成中",(0,A.jsx)("span",{className:"stream-cursor","aria-hidden":!0})]}),(0,A.jsx)(me,{text:i,engine:h,streamMode:!0}),(0,A.jsx)("span",{className:"stream-cursor","aria-hidden":!0})]}):a?(0,A.jsx)("div",{className:"chat-msg chat-msg-assistant chat-streaming chat-streaming--pending","data-stream-phase":"generating","aria-live":"polite","aria-busy":"true",children:(0,A.jsxs)("div",{className:"chat-msg-label",children:["生成中",(0,A.jsx)("span",{className:"stream-cursor","aria-hidden":!0})]})}):null]}),(0,A.jsx)("div",{ref:c})]})}var mA=e.i(67489),mC=e.i(93479);let mT=[{label:"代码",text:"请帮我写一段 TypeScript 函数:"},{label:"排查问题",text:"请帮我分析下面报错的原因并给出修复步骤:\n"},{label:"梳理方案",text:"请针对以下需求列出实现思路与注意事项:\n"},{label:"解释概念",text:"请用简洁中文解释以下概念并举一个例子:\n"},{label:"草稿润色",text:"请润色下面这段文字,保持原意:\n"}],m_="ws-test-composer-recent-models",mM="WS_ALLOW_TOOL_ASK",mN="WS_PERMISSION_MODE",mE="__empty__",mz=["acceptEdits","plan","default","dontAsk","bypassPermissions"],mI=e=>{let t=String(e||"").trim();return mz.includes(t)?t:""};function mR(e){let{onSend:t,onAbort:n,onReloadAgentConfig:r,onRetryConnection:i}=e,a=(0,T.useSearchParams)(),[o,s]=(0,C.useState)(""),[l,c]=(0,C.useState)(!1),[u,h]=(0,C.useState)(!1),[p,d]=(0,C.useState)(""),[m,f]=(0,C.useState)([]),[g,y]=(0,C.useState)(!1),[b,v]=(0,C.useState)([]),[x,k]=(0,C.useState)(!1),[w,S]=(0,C.useState)(-1),[M,N]=(0,C.useState)([]),[E,R]=(0,C.useState)("1"),[j,L]=(0,C.useState)(""),[P,B]=(0,C.useState)(0),[O,D]=(0,C.useState)(0),F=(0,C.useRef)(null),q=(0,C.useRef)(null),U=(0,C.useRef)(null),G=(0,C.useRef)(!1),W=(0,C.useRef)(null),V=(0,C.useRef)(null),$=(0,C.useRef)(null),X=(0,_.useAppStore)(e=>e.wsUrl),Y=(0,_.useAppStore)(e=>e.apiBase),J=(0,_.useAppStore)(e=>e.sessionId),Z=(0,_.useAppStore)(e=>e.agentId),K=(0,_.useAppStore)(e=>e.agentConfig),Q=(0,_.useAppStore)(e=>e.setAgentConfig),ee=(0,_.useAppStore)(e=>e.setStatus),et=(0,_.useAppStore)(e=>e.bridgeReady),en=(0,_.useAppStore)(e=>e.wsConnected),er=(0,_.useAppStore)(e=>e.statusText),ei=(0,_.useAppStore)(e=>e.statusClass),ea=(0,_.useAppStore)(e=>e.apiErrorState),eo=(0,_.useAppStore)(e=>e.resetApiErrorState),es=(0,_.useAppStore)(e=>e.sessionViewMode),el=(0,_.useAppStore)(e=>e.setSessionViewMode),ec=(0,_.useAppStore)(e=>e.setPendingHistoryRefresh),eu=!en||!et||!o.trim(),eh="1"===String(a.get("dev")),ep=()=>{let e=F.current;if(!e)return;e.style.height="auto";let t=Math.min(e.scrollHeight,200);e.style.height="".concat(t,"px"),e.style.overflowY=e.scrollHeight>200?"auto":"hidden"},ed=async()=>{!eu&&(!W.current||await W.current)&&("draft"===es&&(el("history"),ec(!0)),t(o),s(""),y(!0))},em=(0,C.useCallback)(()=>{try{let e=window.localStorage.getItem(m_),t=e?JSON.parse(e):[];if(!Array.isArray(t))return[];return t.filter(e=>"string"==typeof e&&e.trim().length>0).map(e=>e.trim()).slice(0,12)}catch(e){return[]}},[]),ef=(0,C.useCallback)(e=>{let t=e.trim();if(!t)return;let n=em().filter(e=>e!==t);n.unshift(t);try{window.localStorage.setItem(m_,JSON.stringify(n.slice(0,12)))}catch(e){}},[em]),eg=(0,C.useCallback)(e=>{for(let t=0;t<b.length;t++)if(b[t].id===e)return b[t].label},[b]),ey=(0,C.useCallback)(async function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=Date.now();if(e||!(b.length>0)||!(t-P<3e4)){B(t);try{let e=await (0,I.get)((0,z.buildModelsApiUrl)(X,Y,Z.trim()||"qihoo")),t=Array.isArray(e.models)?e.models:[];v(t.filter(e=>!!e&&"string"==typeof e.id&&e.id.trim().length>0).map(e=>({id:e.id.trim(),label:"string"==typeof e.label&&e.label.trim()?e.label.trim():void 0})))}catch(e){v([])}}},[Z,Y,b.length,P,X]),eb=(0,C.useCallback)(()=>{let e=new Set,t=[],n=n=>{let r=n.trim();!r||e.has(r)||(e.add(r),t.push(r))},r=em();for(let e=0;e<r.length;e++)n(r[e]);for(let e=0;e<b.length;e++)n(b[e].id);return t},[b,em]),ev=(0,C.useCallback)(e=>{let t=eb(),n=e.trim().toLowerCase();if(!n)return t.slice(0,50);let r=[];for(let e=0;e<t.length;e++){let i=t[e],a=eg(i);if((i.toLowerCase().includes(n)||a&&a.toLowerCase().includes(n))&&r.push(i),r.length>=50)break}return r},[eg,eb]),ex=(0,C.useCallback)(async e=>{let t=e.trim(),n=_.useAppStore.getState();if(t===(n.agentConfig.model||"").trim())return!0;let i={...n.agentConfig,model:t};Q(i),t&&ef(t);try{let e={config:{tools:i.tools.slice(),mcpServers:i.mcpServers.slice(),skills:i.skills.slice(),model:i.model,agentTeams:i.agentTeams.slice(),rules:i.rules.slice(),env:{...i.env}}};await (0,I.patch)((0,z.buildAgentApiUrl)(X,Y,Z.trim()||"qihoo"),e),_.useAppStore.getState().wsConnected&&(null==r||r());let t=_.useAppStore.getState();return ee("模型已保存".concat(t.wsConnected?",已请求 worker 重新加载配置":""),t.bridgeReady?"ready":""),!0}catch(e){return ee("模型保存失败:".concat(e instanceof Error?e.message:String(e)),"err"),!1}},[Z,Y,r,ef,Q,ee,X]),ek=(0,C.useCallback)(e=>{var t;let n=(null!=(t=W.current)?t:Promise.resolve(!0)).then(()=>ex(e)).finally(()=>{W.current===n&&(W.current=null)});return W.current=n,n},[ex]),ew=(0,C.useCallback)(()=>{k(!1),N([]),S(-1)},[]),eS=(0,C.useCallback)(()=>{let e=q.current;e&&ek(e.value)},[ek]),eA=(0,C.useCallback)(e=>{let t=q.current;if(!t)return;let n=ev("string"==typeof e?e:t.value);N(n),S(n.length?0:-1),k(!0)},[ev]),eC=(0,C.useCallback)(()=>{let e=w<0||w>=M.length?0:w,t=M[e];if(!t)return;let n=q.current;n&&(n.value=t,ew(),ek(t))},[ek,ew,w,M]),eT=(K.model||"").trim()?"当前模型(完整 ID,悬停可复制核对):".concat(K.model.trim()):"模型 ID 须与网关控制台一致(如 360 智脑常用 anthropic/ 前缀),区分大小写",e_=(0,C.useCallback)(e=>{let t=eg(e);return t?"".concat(t," · ").concat(e):e},[eg]);(0,C.useEffect)(()=>{if(!en)return void y(!1);(er.includes("本轮结束")||er.startsWith("错误"))&&y(!1)},[en,er]),(0,C.useEffect)(()=>{ep()},[o]),(0,C.useEffect)(()=>{s(""),F.current&&(F.current.style.height="auto",F.current.style.overflowY="hidden")},[J,es]),(0,C.useEffect)(()=>{v([]),B(0),k(!1),N([]),S(-1)},[Z]),(0,C.useEffect)(()=>{if(!x)return;let e=e=>{var t;let n=e.target;n&&(null==(t=U.current)?void 0:t.contains(n))||ew()};return document.addEventListener("click",e,!0),()=>{document.removeEventListener("click",e,!0)}},[ew,x]),(0,C.useEffect)(()=>{var e;if(!x||w<0)return;let t=null==(e=U.current)?void 0:e.querySelector("#composerModelSuggestions"),n=null==t?void 0:t.querySelector("li.is-active");n&&"function"==typeof n.scrollIntoView&&n.scrollIntoView({block:"nearest"})},[w,x]),(0,C.useEffect)(()=>{if("retrying"!==ea.phase)return void D(0);let e=()=>{D(Math.ceil(Math.max(0,ea.retryUntilTs-Date.now())/1e3))};e();let t=window.setInterval(e,250);return()=>{window.clearInterval(t)}},[ea.phase,ea.retryUntilTs]);let eM=(0,C.useCallback)(async()=>{let e=J.trim();if(!e){f([]),c(!1);return}let t=Z.trim()||"qihoo";c(!1),h(!0),d(""),f([]);try{let n=await (0,I.get)((0,z.buildWorkspaceFilesListUrl)(X,Y,t,e)),r=(Array.isArray(n.files)?n.files:[]).filter(e=>"string"==typeof e.path&&e.path.length>0).map(e=>({path:e.path,name:"string"==typeof e.name?e.name:void 0,size:"number"==typeof e.size?e.size:void 0,mtimeMs:"number"==typeof e.mtimeMs?e.mtimeMs:void 0})).filter(e=>e.path.includes("tool-results"));f(r)}catch(e){d("加载失败:".concat(e instanceof Error?e.message:String(e))),f([])}finally{h(!1)}},[Z,Y,J,X]);(0,C.useEffect)(()=>{if("draft"===es){f([]),c(!1);return}eM()},[eM,es]);let eN=ea.maxRetries>0?Math.min(100,Math.max(0,ea.retryAttempt/ea.maxRetries*100)):0,eE=(0,C.useCallback)(async e=>{let t=J.trim(),n=Z.trim()||"qihoo";if(!t)return V.current=e.allowToolAsk,$.current=e.permissionMode,ee("已暂存 session overrides,待 session 建立后落盘",et?"ready":""),!0;let i={[mM]:"1"===e.allowToolAsk?"1":"",[mN]:mI(e.permissionMode)},a={model:(K.model||"").trim(),env:i};try{return await (0,I.patch)((0,z.buildSessionOverridesUrl)(X,Y,n,t),a),null==r||r(),ee("session overrides 已保存,已重启当前 session 子进程",et?"ready":""),!0}catch(e){return ee("保存 session overrides 失败:".concat(e instanceof Error?e.message:String(e)),"err"),!1}},[K.model,Z,Y,et,r,J,ee,X]),ez=(0,C.useCallback)(async()=>{let e=J.trim(),t=Z.trim()||"qihoo";if(!e){R("manual"),L("");return}try{let n=await (0,I.get)((0,z.buildSessionOverridesUrl)(X,Y,t,e)),r=n.overrides&&n.overrides.env&&"object"==typeof n.overrides.env?n.overrides.env:{},i=String(r[mM]||""),a=mI(r[mN]);R("1"===i?"1":"manual"),L(a)}catch(e){R("manual"),L("")}},[Z,Y,J,X]);(0,C.useEffect)(()=>{ez()},[ez]),(0,C.useEffect)(()=>{let e=V.current,t=$.current;(e||null!=t)&&J.trim()&&(V.current=null,$.current=null,eE({allowToolAsk:e||E,permissionMode:null==t?j:t}))},[E,j,eE,J]);let eI="1"===E?"已设置 WS_ALLOW_TOOL_ASK=1(ask 将自动通过)":"未设置 WS_ALLOW_TOOL_ASK(ask 将被拒绝;可按 session 单独启用)",eR=j?"已设置 WS_PERMISSION_MODE=".concat(j):"未设置 WS_PERMISSION_MODE(默认)",ej=j||mE;return(0,A.jsx)("div",{className:"composer",children:(0,A.jsxs)("div",{className:"composer-inner mx-auto max-w-[840px] ".concat("draft"===es?"is-draft-session":""),children:[m.length>0?(0,A.jsxs)("div",{className:["composer-tool-files-inline",l?"is-expanded":""].filter(Boolean).join(" "),onMouseEnter:()=>c(!0),onMouseLeave:()=>c(!1),children:[(0,A.jsxs)("div",{className:"composer-tool-files-inline-head",children:[(0,A.jsx)("span",{className:["composer-tool-files-inline-chevron",l?"is-expanded":""].filter(Boolean).join(" "),children:(0,A.jsx)(H.default,{name:"ChevronRight",size:16,className:"text-[var(--ds-muted)]",strokeWidth:1})}),(0,A.jsx)("span",{className:"composer-tool-files-inline-title text-[var(--ds-muted)]",children:"下载文件 · ".concat(m.length," 个")}),u?(0,A.jsx)("span",{className:"composer-tool-files-inline-loading",children:"加载中..."}):null]}),l?(0,A.jsx)("div",{className:"composer-tool-files-inline-panel",children:u?(0,A.jsx)("div",{className:"composer-tool-files-inline-state",children:"正在获取文件列表…"}):p?(0,A.jsx)("div",{className:"composer-tool-files-inline-state is-error",children:p}):0===m.length?(0,A.jsx)("div",{className:"composer-tool-files-inline-state",children:"暂无 tool-results 文件"}):(0,A.jsx)("div",{className:"composer-tool-files-inline-list",children:m.map(e=>{let t=e.name||e.path.split("/").pop()||e.path;return(0,A.jsxs)("div",{className:"composer-tool-files-inline-item",children:[(0,A.jsxs)("div",{className:"composer-tool-files-inline-main",children:[(0,A.jsx)("div",{className:"composer-tool-files-inline-name text-zinc-500",title:e.path,children:t}),(0,A.jsx)("div",{className:"composer-tool-files-inline-size text-[var(--ds-muted)]",children:(e=>{let t=Number(e);return!Number.isFinite(t)||t<0?"—":t<1024?"".concat(t," B"):t<1048576?"".concat((t/1024).toFixed(1)," KB"):t<0x40000000?"".concat((t/1048576).toFixed(1)," MB"):"".concat((t/0x40000000).toFixed(1)," GB")})(e.size)})]}),(0,A.jsx)("a",{href:(0,z.buildWorkspaceFileDownloadUrl)(X,Y,Z.trim()||"qihoo",e.path),download:!0,target:"_blank",rel:"noopener noreferrer",className:"composer-tool-files-inline-download","aria-label":"下载 ".concat(t),title:"下载 ".concat(t),children:(0,A.jsx)(H.default,{name:"Download",size:16,className:"!text-zinc-500"})})]},e.path)})})}):null]}):null,"draft"===es?(0,A.jsxs)("div",{className:"composer-draft-hero mb-4 text-center",children:[(0,A.jsx)("div",{className:"composer-draft-title",children:"欢迎回来"}),(0,A.jsx)("div",{className:"composer-draft-shortcuts mt-4 flex flex-wrap justify-center gap-2",children:mT.map(e=>(0,A.jsx)("button",{type:"button",className:"composer-draft-pill",onClick:()=>{var t;s(e.text),window.setTimeout(()=>ep(),0),null==(t=F.current)||t.focus()},children:e.label},e.label))})]}):null,(0,A.jsxs)("div",{className:"composer-card ds-soft-shadow ".concat("draft"===es?"is-draft-session":""),children:[(0,A.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,A.jsx)("div",{title:er,id:"status",className:"conn-status min-w-0 flex-1 text-xs ".concat(ei?" ".concat(ei):""),children:er}),eh?(0,A.jsx)("span",{id:"promptSessionInfo",className:"prompt-session-info shrink-0",title:J.trim()||void 0,children:J.trim()?"sessionId: ".concat(J.trim()):"sessionId: -"}):null]}),"retrying"===ea.phase?(0,A.jsxs)("div",{className:"api-retry-banner mt-2",role:"status","aria-live":"polite",children:[(0,A.jsx)("div",{className:"api-retry-banner-text",children:"网络波动,正在重连 ".concat(O,"s... (").concat(ea.retryAttempt,"/").concat(ea.maxRetries,")")}),(0,A.jsx)("div",{className:"api-retry-banner-progress",children:(0,A.jsx)("span",{style:{width:"".concat(eN,"%")}})})]}):null,"failed"===ea.phase?(0,A.jsxs)("div",{className:"api-retry-failed mt-2",role:"alert",children:[(0,A.jsx)("div",{className:"api-retry-failed-text",children:"服务暂时不可用,请稍后重试"}),(0,A.jsx)("button",{type:"button",className:"api-retry-failed-btn",onClick:()=>{eo(),null==i||i()},children:"重试"})]}):null,(0,A.jsx)("div",{className:"composer-input-shell mt-2",children:(0,A.jsx)("textarea",{ref:F,id:"prompt",className:"w-full border-0 bg-transparent shadow-none focus-visible:border-0 focus-visible:ring-0",placeholder:"请输入你的问题",value:o,onChange:e=>s(e.target.value),onKeyDown:e=>{"Enter"!==e.key||e.shiftKey||e.nativeEvent.isComposing||(e.preventDefault(),ed())}})}),(0,A.jsxs)("div",{className:"mt-3 flex items-center justify-between gap-2",children:[(0,A.jsxs)("div",{className:"composer-tools-left flex items-center !justify-start gap-2",children:[(0,A.jsxs)("div",{className:"composer-model-field",id:"composerModelField",ref:U,children:[(0,A.jsx)(mC.Input,{ref:q,type:"text",id:"composerModelInput",className:"composer-model-input",placeholder:"模型 ID(如 anthropic/claude-3.5-haiku)",spellCheck:!1,autoComplete:"off","aria-label":"模型","aria-autocomplete":"list","aria-controls":"composerModelSuggestions",title:eT,value:K.model||"",onFocus:()=>{ey(!1).then(()=>{eA("")})},onClick:()=>{eA("")},onChange:e=>{Q({...K,model:e.target.value}),eA(e.target.value)},onKeyDown:e=>{if("ArrowDown"===e.key)return(e.preventDefault(),x)?void(M.length&&S(e=>e<0||e+1>=M.length?0:e+1)):void eA("");if("ArrowUp"===e.key){if(!x||!M.length)return;e.preventDefault(),S(e=>e<0?0:e-1<0?M.length-1:e-1);return}if("Escape"===e.key){if(!x)return;e.preventDefault(),ew();return}if("Enter"===e.key){if(x&&M.length){e.preventDefault(),eC();return}e.preventDefault(),ew(),eS()}},onBlur:()=>{G.current||(ew(),eS())}}),(0,A.jsx)("ul",{id:"composerModelSuggestions",className:"composer-model-suggestions ".concat(x?"is-open":""),role:"listbox","aria-label":"模型候选",children:M.length?M.map((e,t)=>(0,A.jsx)("li",{role:"option","aria-selected":t===w,"data-model":e,className:t===w?"is-active":"",onMouseDown:t=>{t.preventDefault(),G.current=!0,ew(),ek(e),window.setTimeout(()=>{G.current=!1},0)},onMouseEnter:()=>S(t),children:e_(e)},e)):(0,A.jsx)("li",{className:"composer-model-suggest-empty",role:"presentation",children:"(无匹配,可直接输入完整模型 ID)"})})]}),(0,A.jsxs)(mA.Select,{value:E,onValueChange:e=>{let t="1"===e?"1":"manual";R(t),eE({allowToolAsk:t,permissionMode:j})},children:[(0,A.jsx)(mA.SelectTrigger,{id:"composerAllowAskSelect",className:"composer-allow-ask-select","aria-label":"WS_ALLOW_TOOL_ASK",title:eI,children:(0,A.jsx)(mA.SelectValue,{placeholder:"手动"})}),(0,A.jsxs)(mA.SelectContent,{children:[(0,A.jsx)(mA.SelectItem,{value:"manual",children:"手动"}),(0,A.jsx)(mA.SelectItem,{value:"1",children:"自动"})]})]}),(0,A.jsxs)(mA.Select,{value:ej,onValueChange:e=>{let t=e===mE?"":mI(e);L(t),eE({allowToolAsk:E,permissionMode:t})},children:[(0,A.jsx)(mA.SelectTrigger,{id:"composerModeSelect",className:"composer-mode-select","aria-label":"权限模式",title:eR,children:(0,A.jsx)(mA.SelectValue,{placeholder:"默认"})}),(0,A.jsxs)(mA.SelectContent,{children:[(0,A.jsx)(mA.SelectItem,{value:mE,children:"默认"}),(0,A.jsx)(mA.SelectItem,{value:"acceptEdits",children:"acceptEdits"}),(0,A.jsx)(mA.SelectItem,{value:"plan",children:"plan"}),(0,A.jsx)(mA.SelectItem,{value:"default",children:"default"}),(0,A.jsx)(mA.SelectItem,{value:"dontAsk",children:"dontAsk"}),(0,A.jsx)(mA.SelectItem,{value:"bypassPermissions",children:"bypassPermissions"})]})]})]}),(0,A.jsx)("div",{className:"flex items-center gap-2",children:g?(0,A.jsx)("button",{type:"button",className:"btn-send-circle composer-icon-btn bg-gray-800",style:{backgroundColor:"#efefef",boxShadow:"none",color:"#8f8f8f"},disabled:!en,onClick:n,"aria-label":"中断",title:"中断",children:(0,A.jsx)(H.default,{name:"Stop",size:16})}):(0,A.jsx)("button",{type:"button",className:"btn-send-circle",disabled:eu,title:"发送","aria-label":"发送",onClick:ed,children:(0,A.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",viewBox:"0 0 256 256",children:(0,A.jsx)("path",{d:"M208.49,120.49a12,12,0,0,1-17,0L140,69V216a12,12,0,0,1-24,0V69L64.49,120.49a12,12,0,0,1-17-17l72-72a12,12,0,0,1,17,0l72,72A12,12,0,0,1,208.49,120.49Z"})})})})]})]}),(0,A.jsx)("p",{className:"page-footer-note ".concat("draft"===es?"":"page-footer-note--compact"),children:"本页仅供本地联调;模型与工具输出请自行甄别。"})]})})}function mj(){let e=(0,_.useAppStore)(e=>e.rawLog);return(0,A.jsxs)("details",{className:"raw-log-drawer",id:"rawLogDrawer",children:[(0,A.jsxs)("summary",{className:"raw-log-summary",children:[(0,A.jsx)("span",{children:"原始下行日志(JSON)"}),(0,A.jsx)("span",{className:"raw-log-chevron","aria-hidden":!0,children:"▼"})]}),(0,A.jsx)("div",{className:"raw-log-body",children:(0,A.jsx)("pre",{id:"log",children:e})})]})}let mL=/^[A-Za-z0-9_-]{1,128}$/;function mP(){let e=(0,T.useSearchParams)(),t=(0,_.useAppStore)(e=>e.wsUrl),n=(0,_.useAppStore)(e=>e.apiBase),r=(0,_.useAppStore)(e=>e.agentId),i=(0,_.useAppStore)(e=>e.sessionId),a=(0,_.useAppStore)(e=>e.lastSessions),o=(0,_.useAppStore)(e=>e.statusText),s=(0,_.useAppStore)(e=>e.sessionViewMode),l=(0,_.useAppStore)(e=>e.pendingHistoryRefresh),c=(0,_.useAppStore)(e=>e.setWsUrl),u=(0,_.useAppStore)(e=>e.setAgentId),h=(0,_.useAppStore)(e=>e.setSessionId),p=(0,_.useAppStore)(e=>e.setSessionViewMode),d=(0,_.useAppStore)(e=>e.setPendingHistoryRefresh),m=(0,_.useAppStore)(e=>e.setMessages);(0,C.useLayoutEffect)(()=>{_.useAppStore.getState().wsUrl.trim()||c((0,z.defaultWsUrl)())},[c]);let{loadSessions:f,loadAgentConfig:g,loadSessionOverrides:y,deleteSessionById:b,currentAgent:v}=(0,N.useSession)(),{reconnect:x,switchSession:k,sendPrompt:w,sendAbort:S,sendReloadAgentConfig:B}=(0,M.useWebSocket)({onSession:e=>{f(),y(e)}}),[F,H]=(0,C.useState)(!1),[U,G]=(0,C.useState)(""),[V,$]=(0,C.useState)(!1),[X,Y]=(0,C.useState)(!1),[J,Z]=(0,C.useState)(!1),[K,Q]=(0,C.useState)(!1),ee=(0,C.useRef)(!1),et=(0,C.useRef)(!1),en=(0,E.usePersistAgentConfig)();(0,C.useEffect)(()=>{var t,n;let r=e.get("agent");if((null==r?void 0:r.trim())&&u(r.trim()),ee.current)return;ee.current=!0;let i=null!=(n=null==(t=e.get("sessionId"))?void 0:t.trim())?n:"";mL.test(i)&&(h(i),p("history"),d(!1))},[e,u,h,p,d]),(0,C.useEffect)(()=>{try{let e=new URL(window.location.href);e.searchParams.set("agent",r.trim()||"qihoo"),window.history.replaceState(window.history.state,"","".concat(e.pathname).concat(e.search).concat(e.hash))}catch(e){}},[r]),(0,C.useEffect)(()=>{var t;et.current||"single-message"===(null==(t=e.get("demo"))?void 0:t.trim())&&(et.current=!0,(0,I.get)("/api/demo/single-message").then(e=>{if("messages"!==e.type||!Array.isArray(e.messages))throw Error("single-message.json 结构不符合预期");p("history"),h("demo-single-message"),d(!1),m(e.messages)}).catch(e=>{et.current=!1,P.appToast.error("加载 demo 失败:".concat(String(e)))}))},[e,m,d,h,p]),(0,C.useEffect)(()=>{f(),g()},[r,t,n,f,g]),(0,C.useEffect)(()=>{let e=i.trim(),t=o.includes("本轮结束")||o.startsWith("错误");l&&e&&t&&f().finally(()=>{_.useAppStore.getState().setPendingHistoryRefresh(!1)})},[l,i,o,f]);let er=(0,C.useMemo)(()=>{if("draft"===s)return"开启新对话";let e=i.trim();if(!e)return"选择左侧会话或开启新对话";let t=a.find(t=>t.sessionId===e);if(t){let e=(0,R.sessionTitle)(t).trim();if(e&&"(无标题)"!==e)return e.length>72?"".concat(e.slice(0,69),"…"):e}return e},[a,i,s]),ei=(0,C.useMemo)(()=>{if("draft"===s)return er;let e=i.trim();if(!e)return er;let t=a.find(t=>t.sessionId===e),n=[];return n.push("session:".concat(e)),t&&n.push((0,R.sessionTitle)(t)),n.join("\n")},[a,er,i,s]),ea="1"===String(e.get("dev"));return(0,A.jsxs)(A.Fragment,{children:[(0,A.jsxs)("div",{className:"ws-config-hidden","aria-hidden":!0,children:[(0,A.jsx)("input",{readOnly:!0,hidden:!0,value:t}),(0,A.jsx)("input",{readOnly:!0,hidden:!0,value:n}),(0,A.jsx)("input",{readOnly:!0,hidden:!0,value:i}),(0,A.jsx)("input",{readOnly:!0,hidden:!0,value:r})]}),(0,A.jsxs)("div",{className:"app","data-ui-layer":"presentation","data-topology":"local-first",children:[(0,A.jsx)(L.BridgeSidebar,{onNewSession:()=>{h(""),p("draft"),d(!1),k("",r)},onSelectSession:e=>{h(e),p("history"),d(!1),k(e,r)},onSaveAgentConfig:()=>void en({silent:!1}),deleteSessionById:async e=>{let t=await b(e);return t&&k("",r),t}}),(0,A.jsxs)("main",{className:"main ".concat("draft"===s?"is-draft-session":""),"data-region":"chat-shell",children:[(0,A.jsx)("header",{className:"main-header",children:(0,A.jsx)("div",{className:"main-header-top flex items-center justify-between gap-3",children:(0,A.jsxs)(W.TooltipProvider,{children:[(0,A.jsx)("div",{className:"flex min-w-0 flex-1 items-center gap-2",children:(0,A.jsxs)(W.Tooltip,{children:[(0,A.jsx)(W.TooltipTrigger,{asChild:!0,children:(0,A.jsx)("h1",{id:"mainTitle",className:"min-w-0 max-w-full flex-1 truncate",children:"draft"!==s&&i.trim()&&er===i.trim()?(0,R.shortUuidTitle)(i.trim()):er})}),(0,A.jsx)(W.TooltipContent,{children:(0,A.jsx)("p",{className:"max-w-xs whitespace-pre-wrap break-all",children:ei})})]})}),(0,A.jsx)("div",{className:"flex shrink-0 items-center gap-1"})]})})}),"draft"===s?null:(0,A.jsx)("div",{className:"main-scroll",children:(0,A.jsxs)("div",{className:"main-body",children:[(0,A.jsx)(mS,{}),ea?(0,A.jsx)(mj,{}):null]})}),(0,A.jsx)(mR,{onSend:w,onAbort:S,onReloadAgentConfig:x,onRetryConnection:x})]}),(0,A.jsx)(j.StageThreadFlyout,{})]}),(0,A.jsx)(D,{open:X,onOpenChange:Y,variant:"tools",wsUrl:t,apiBase:n,agent:v(),onNotifyReloadAgentConfig:B}),(0,A.jsx)(D,{open:J,onOpenChange:Z,variant:"mcp",wsUrl:t,apiBase:n,agent:v(),onNotifyReloadAgentConfig:B}),(0,A.jsx)(q,{open:K,onOpenChange:Q,wsUrl:t,apiBase:n,agent:v()}),(0,A.jsx)(O.AppDialog,{open:F,onOpenChange:H,title:"编辑系统 mcp.json",footer:(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)("button",{type:"button",className:"btn-agent-md-cancel",onClick:()=>H(!1),children:"取消"}),(0,A.jsx)("button",{type:"button",className:"btn-primary",disabled:V,onClick:()=>{$(!0),(0,I.patch)((0,z.buildSystemMcpJsonApiUrl)(t,n,v()),{content:U}).then(()=>{_.useAppStore.getState().setStatus("系统 mcp.json 已保存",_.useAppStore.getState().bridgeReady?"ready":""),P.appToast.success("已保存系统 mcp.json。"),H(!1)}).catch(e=>{P.appToast.error("保存 mcp.json 失败:".concat(e instanceof Error?e.message:String(e)))}).finally(()=>{$(!1)})},children:"保存"})]}),children:(0,A.jsx)("textarea",{className:"agent-md-editor",spellCheck:!1,value:U,onChange:e=>G(e.target.value)})})]})}}]);
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,26568,(e,t,n)=>{"use strict";var r=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,i=/\n/g,a=/^\s*/,o=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,s=/^:\s*/,l=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,u=/^\s+|\s+$/g;function h(e){return e?e.replace(u,""):""}t.exports=function(e,t){if("string"!=typeof e)throw TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,u=1;function p(e){var t=e.match(i);t&&(n+=t.length);var r=e.lastIndexOf("\n");u=~r?e.length-r:u+e.length}function d(){var e={line:n,column:u};return function(t){return t.position=new m(e),g(a),t}}function m(e){this.start=e,this.end={line:n,column:u},this.source=t.source}function f(r){var i=Error(t.source+":"+n+":"+u+": "+r);if(i.reason=r,i.filename=t.source,i.line=n,i.column=u,i.source=e,t.silent);else throw i}function g(t){var n=t.exec(e);if(n){var r=n[0];return p(r),e=e.slice(r.length),n}}function y(e){var t;for(e=e||[];t=b();)!1!==t&&e.push(t);return e}function b(){var t=d();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;""!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,""===e.charAt(n-1))return f("End of comment missing");var r=e.slice(2,n-2);return u+=2,p(r),e=e.slice(n),u+=2,t({type:"comment",comment:r})}}m.prototype.content=e,g(a);var v,x=[];for(y(x);v=function(){var e=d(),t=g(o);if(t){if(b(),!g(s))return f("property missing ':'");var n=g(l),i=e({type:"declaration",property:h(t[0].replace(r,"")),value:n?h(n[0].replace(r,"")):""});return g(c),i}}();)!1!==v&&(x.push(v),y(x));return x}},30070,(e,t,n)=>{"use strict";var r=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e,t){let n=null;if(!e||"string"!=typeof e)return n;let r=(0,i.default)(e),a="function"==typeof t;return r.forEach(e=>{if("declaration"!==e.type)return;let{property:r,value:i}=e;a?t(r,i,e):i&&((n=n||{})[r]=i)}),n};let i=r(e.r(26568))},65185,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.camelCase=void 0;var r=/^--[a-zA-Z0-9_-]+$/,i=/-([a-z])/g,a=/^[^-]+$/,o=/^-(webkit|moz|ms|o|khtml)-/,s=/^-(ms)-/,l=function(e,t){return t.toUpperCase()},c=function(e,t){return"".concat(t,"-")};n.camelCase=function(e,t){var n;return(void 0===t&&(t={}),!(n=e)||a.test(n)||r.test(n))?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(s,c):e.replace(o,c)).replace(i,l))}},15511,(e,t,n)=>{"use strict";var r=(e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(e.r(30070)),i=e.r(65185);function a(e,t){var n={};return e&&"string"==typeof e&&(0,r.default)(e,function(e,r){e&&r&&(n[(0,i.camelCase)(e,t)]=r)}),n}a.default=a,t.exports=a},4100,(e,t,n)=>{"use strict";var r=Object.prototype.hasOwnProperty,i=Object.prototype.toString,a=Object.defineProperty,o=Object.getOwnPropertyDescriptor,s=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===i.call(e)},l=function(e){if(!e||"[object Object]"!==i.call(e))return!1;var t,n=r.call(e,"constructor"),a=e.constructor&&e.constructor.prototype&&r.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!a)return!1;for(t in e);return void 0===t||r.call(e,t)},c=function(e,t){a&&"__proto__"===t.name?a(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},u=function(e,t){if("__proto__"===t){if(!r.call(e,t))return;else if(o)return o(e,t).value}return e[t]};t.exports=function e(){var t,n,r,i,a,o,h=arguments[0],p=1,d=arguments.length,m=!1;for("boolean"==typeof h&&(m=h,h=arguments[1]||{},p=2),(null==h||"object"!=typeof h&&"function"!=typeof h)&&(h={});p<d;++p)if(t=arguments[p],null!=t)for(n in t)r=u(h,n),h!==(i=u(t,n))&&(m&&i&&(l(i)||(a=s(i)))?(a?(a=!1,o=r&&s(r)?r:[]):o=r&&l(r)?r:{},c(h,{name:n,newValue:e(m,o,i)})):void 0!==i&&c(h,{name:n,newValue:i}));return h}},67034,(e,t,n)=>{!function(){var e={675:function(e,t){"use strict";t.byteLength=function(e){var t=l(e),n=t[0],r=t[1];return(n+r)*3/4-r},t.toByteArray=function(e){var t,n,a=l(e),o=a[0],s=a[1],c=new i((o+s)*3/4-s),u=0,h=s>0?o-4:o;for(n=0;n<h;n+=4)t=r[e.charCodeAt(n)]<<18|r[e.charCodeAt(n+1)]<<12|r[e.charCodeAt(n+2)]<<6|r[e.charCodeAt(n+3)],c[u++]=t>>16&255,c[u++]=t>>8&255,c[u++]=255&t;return 2===s&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,c[u++]=255&t),1===s&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,c[u++]=t>>8&255,c[u++]=255&t),c},t.fromByteArray=function(e){for(var t,r=e.length,i=r%3,a=[],o=0,s=r-i;o<s;o+=16383)a.push(function(e,t,r){for(var i,a=[],o=t;o<r;o+=3)i=(e[o]<<16&0xff0000)+(e[o+1]<<8&65280)+(255&e[o+2]),a.push(n[i>>18&63]+n[i>>12&63]+n[i>>6&63]+n[63&i]);return a.join("")}(e,o,o+16383>s?s:o+16383));return 1===i?a.push(n[(t=e[r-1])>>2]+n[t<<4&63]+"=="):2===i&&a.push(n[(t=(e[r-2]<<8)+e[r-1])>>10]+n[t>>4&63]+n[t<<2&63]+"="),a.join("")};for(var n=[],r=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,s=a.length;o<s;++o)n[o]=a[o],r[a.charCodeAt(o)]=o;function l(e){var t=e.length;if(t%4>0)throw Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");-1===n&&(n=t);var r=n===t?0:4-n%4;return[n,r]}r[45]=62,r[95]=63},72:function(e,t,n){"use strict";var r=n(675),i=n(783),a="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function o(e){if(e>0x7fffffff)throw RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,s.prototype),t}function s(e,t,n){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return u(e)}return l(e,t,n)}function l(e,t,n){if("string"==typeof e){var r=e,i=t;if(("string"!=typeof i||""===i)&&(i="utf8"),!s.isEncoding(i))throw TypeError("Unknown encoding: "+i);var a=0|d(r,i),l=o(a),c=l.write(r,i);return c!==a&&(l=l.slice(0,c)),l}if(ArrayBuffer.isView(e))return h(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(N(e,ArrayBuffer)||e&&N(e.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(N(e,SharedArrayBuffer)||e&&N(e.buffer,SharedArrayBuffer)))return function(e,t,n){var r;if(t<0||e.byteLength<t)throw RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(r=void 0===t&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,t):new Uint8Array(e,t,n),s.prototype),r}(e,t,n);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');var u=e.valueOf&&e.valueOf();if(null!=u&&u!==e)return s.from(u,t,n);var m=function(e){if(s.isBuffer(e)){var t=0|p(e.length),n=o(t);return 0===n.length||e.copy(n,0,0,t),n}return void 0!==e.length?"number"!=typeof e.length||function(e){return e!=e}(e.length)?o(0):h(e):"Buffer"===e.type&&Array.isArray(e.data)?h(e.data):void 0}(e);if(m)return m;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return s.from(e[Symbol.toPrimitive]("string"),t,n);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function c(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function u(e){return c(e),o(e<0?0:0|p(e))}function h(e){for(var t=e.length<0?0:0|p(e.length),n=o(t),r=0;r<t;r+=1)n[r]=255&e[r];return n}t.Buffer=s,t.SlowBuffer=function(e){return+e!=e&&(e=0),s.alloc(+e)},t.INSPECT_MAX_BYTES=50,t.kMaxLength=0x7fffffff,s.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),s.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}}),s.poolSize=8192,s.from=function(e,t,n){return l(e,t,n)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array),s.alloc=function(e,t,n){return(c(e),e<=0)?o(e):void 0!==t?"string"==typeof n?o(e).fill(t,n):o(e).fill(t):o(e)},s.allocUnsafe=function(e){return u(e)},s.allocUnsafeSlow=function(e){return u(e)};function p(e){if(e>=0x7fffffff)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function d(e,t){if(s.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||N(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return C(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return _(e).length;default:if(i)return r?-1:C(e).length;t=(""+t).toLowerCase(),i=!0}}function m(e,t,n){var i,a,o,s=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===n||n>this.length)&&(n=this.length),n<=0||(n>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i="",a=t;a<n;++a)i+=E[e[a]];return i}(this,t,n);case"utf8":case"utf-8":return b(this,t,n);case"ascii":return function(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}(this,t,n);case"latin1":case"binary":return function(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}(this,t,n);case"base64":return i=this,a=t,o=n,0===a&&o===i.length?r.fromByteArray(i):r.fromByteArray(i.slice(a,o));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(e,t,n){for(var r=e.slice(t,n),i="",a=0;a<r.length;a+=2)i+=String.fromCharCode(r[a]+256*r[a+1]);return i}(this,t,n);default:if(s)throw TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),s=!0}}function f(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function g(e,t,n,r,i){var a;if(0===e.length)return -1;if("string"==typeof n?(r=n,n=0):n>0x7fffffff?n=0x7fffffff:n<-0x80000000&&(n=-0x80000000),(a=n*=1)!=a&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length)if(i)return -1;else n=e.length-1;else if(n<0)if(!i)return -1;else n=0;if("string"==typeof t&&(t=s.from(t,r)),s.isBuffer(t))return 0===t.length?-1:y(e,t,n,r,i);if("number"==typeof t){if(t&=255,"function"==typeof Uint8Array.prototype.indexOf)if(i)return Uint8Array.prototype.indexOf.call(e,t,n);else return Uint8Array.prototype.lastIndexOf.call(e,t,n);return y(e,[t],n,r,i)}throw TypeError("val must be string, number or Buffer")}function y(e,t,n,r,i){var a,o=1,s=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return -1;o=2,s/=2,l/=2,n/=2}function c(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(i){var u=-1;for(a=n;a<s;a++)if(c(e,a)===c(t,-1===u?0:a-u)){if(-1===u&&(u=a),a-u+1===l)return u*o}else -1!==u&&(a-=a-u),u=-1}else for(n+l>s&&(n=s-l),a=n;a>=0;a--){for(var h=!0,p=0;p<l;p++)if(c(e,a+p)!==c(t,p)){h=!1;break}if(h)return a}return -1}s.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==s.prototype},s.compare=function(e,t){if(N(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),N(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(e)||!s.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var n=e.length,r=t.length,i=0,a=Math.min(n,r);i<a;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:+(r<n)},s.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},s.concat=function(e,t){if(!Array.isArray(e))throw TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return s.alloc(0);if(void 0===t)for(n=0,t=0;n<e.length;++n)t+=e[n].length;var n,r=s.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var a=e[n];if(N(a,Uint8Array)&&(a=s.from(a)),!s.isBuffer(a))throw TypeError('"list" argument must be an Array of Buffers');a.copy(r,i),i+=a.length}return r},s.byteLength=d,s.prototype._isBuffer=!0,s.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)f(this,t,t+1);return this},s.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)f(this,t,t+3),f(this,t+1,t+2);return this},s.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)f(this,t,t+7),f(this,t+1,t+6),f(this,t+2,t+5),f(this,t+3,t+4);return this},s.prototype.toString=function(){var e=this.length;return 0===e?"":0==arguments.length?b(this,0,e):m.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(e){if(!s.isBuffer(e))throw TypeError("Argument must be a Buffer");return this===e||0===s.compare(this,e)},s.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(e+=" ... "),"<Buffer "+e+">"},a&&(s.prototype[a]=s.prototype.inspect),s.prototype.compare=function(e,t,n,r,i){if(N(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return -1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,i>>>=0,this===e)return 0;for(var a=i-r,o=n-t,l=Math.min(a,o),c=this.slice(r,i),u=e.slice(t,n),h=0;h<l;++h)if(c[h]!==u[h]){a=c[h],o=u[h];break}return a<o?-1:+(o<a)},s.prototype.includes=function(e,t,n){return -1!==this.indexOf(e,t,n)},s.prototype.indexOf=function(e,t,n){return g(this,e,t,n,!0)},s.prototype.lastIndexOf=function(e,t,n){return g(this,e,t,n,!1)};function b(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var a,o,s,l,c=e[i],u=null,h=c>239?4:c>223?3:c>191?2:1;if(i+h<=n)switch(h){case 1:c<128&&(u=c);break;case 2:(192&(a=e[i+1]))==128&&(l=(31&c)<<6|63&a)>127&&(u=l);break;case 3:a=e[i+1],o=e[i+2],(192&a)==128&&(192&o)==128&&(l=(15&c)<<12|(63&a)<<6|63&o)>2047&&(l<55296||l>57343)&&(u=l);break;case 4:a=e[i+1],o=e[i+2],s=e[i+3],(192&a)==128&&(192&o)==128&&(192&s)==128&&(l=(15&c)<<18|(63&a)<<12|(63&o)<<6|63&s)>65535&&l<1114112&&(u=l)}null===u?(u=65533,h=1):u>65535&&(u-=65536,r.push(u>>>10&1023|55296),u=56320|1023&u),r.push(u),i+=h}var p=r,d=p.length;if(d<=4096)return String.fromCharCode.apply(String,p);for(var m="",f=0;f<d;)m+=String.fromCharCode.apply(String,p.slice(f,f+=4096));return m}function v(e,t,n){if(e%1!=0||e<0)throw RangeError("offset is not uint");if(e+t>n)throw RangeError("Trying to access beyond buffer length")}function x(e,t,n,r,i,a){if(!s.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<a)throw RangeError('"value" argument is out of bounds');if(n+r>e.length)throw RangeError("Index out of range")}function k(e,t,n,r,i,a){if(n+r>e.length||n<0)throw RangeError("Index out of range")}function w(e,t,n,r,a){return t*=1,n>>>=0,a||k(e,t,n,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,n,r,23,4),n+4}function S(e,t,n,r,a){return t*=1,n>>>=0,a||k(e,t,n,8,17976931348623157e292,-17976931348623157e292),i.write(e,t,n,r,52,8),n+8}s.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else if(isFinite(t))t>>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var i,a,o,s,l,c,u,h,p=this.length-t;if((void 0===n||n>p)&&(n=p),e.length>0&&(n<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var d=!1;;)switch(r){case"hex":return function(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;var a=t.length;r>a/2&&(r=a/2);for(var o=0;o<r;++o){var s,l=parseInt(t.substr(2*o,2),16);if((s=l)!=s)break;e[n+o]=l}return o}(this,e,t,n);case"utf8":case"utf-8":return i=t,a=n,M(C(e,this.length-i),this,i,a);case"ascii":return o=t,s=n,M(T(e),this,o,s);case"latin1":case"binary":return function(e,t,n,r){return M(T(t),e,n,r)}(this,e,t,n);case"base64":return l=t,c=n,M(_(e),this,l,c);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return u=t,h=n,M(function(e,t){for(var n,r,i=[],a=0;a<e.length&&!((t-=2)<0);++a)r=(n=e.charCodeAt(a))>>8,i.push(n%256),i.push(r);return i}(e,this.length-u),this,u,h);default:if(d)throw TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),d=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},s.prototype.slice=function(e,t){var n=this.length;e=~~e,t=void 0===t?n:~~t,e<0?(e+=n)<0&&(e=0):e>n&&(e=n),t<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e);var r=this.subarray(e,t);return Object.setPrototypeOf(r,s.prototype),r},s.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||v(e,t,this.length);for(var r=this[e],i=1,a=0;++a<t&&(i*=256);)r+=this[e+a]*i;return r},s.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||v(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},s.prototype.readUInt8=function(e,t){return e>>>=0,t||v(e,1,this.length),this[e]},s.prototype.readUInt16LE=function(e,t){return e>>>=0,t||v(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUInt16BE=function(e,t){return e>>>=0,t||v(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUInt32LE=function(e,t){return e>>>=0,t||v(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+0x1000000*this[e+3]},s.prototype.readUInt32BE=function(e,t){return e>>>=0,t||v(e,4,this.length),0x1000000*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||v(e,t,this.length);for(var r=this[e],i=1,a=0;++a<t&&(i*=256);)r+=this[e+a]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*t)),r},s.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||v(e,t,this.length);for(var r=t,i=1,a=this[e+--r];r>0&&(i*=256);)a+=this[e+--r]*i;return a>=(i*=128)&&(a-=Math.pow(2,8*t)),a},s.prototype.readInt8=function(e,t){return(e>>>=0,t||v(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},s.prototype.readInt16LE=function(e,t){e>>>=0,t||v(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?0xffff0000|n:n},s.prototype.readInt16BE=function(e,t){e>>>=0,t||v(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?0xffff0000|n:n},s.prototype.readInt32LE=function(e,t){return e>>>=0,t||v(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return e>>>=0,t||v(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readFloatLE=function(e,t){return e>>>=0,t||v(e,4,this.length),i.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return e>>>=0,t||v(e,4,this.length),i.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return e>>>=0,t||v(e,8,this.length),i.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return e>>>=0,t||v(e,8,this.length),i.read(this,e,!1,52,8)},s.prototype.writeUIntLE=function(e,t,n,r){if(e*=1,t>>>=0,n>>>=0,!r){var i=Math.pow(2,8*n)-1;x(this,e,t,n,i,0)}var a=1,o=0;for(this[t]=255&e;++o<n&&(a*=256);)this[t+o]=e/a&255;return t+n},s.prototype.writeUIntBE=function(e,t,n,r){if(e*=1,t>>>=0,n>>>=0,!r){var i=Math.pow(2,8*n)-1;x(this,e,t,n,i,0)}var a=n-1,o=1;for(this[t+a]=255&e;--a>=0&&(o*=256);)this[t+a]=e/o&255;return t+n},s.prototype.writeUInt8=function(e,t,n){return e*=1,t>>>=0,n||x(this,e,t,1,255,0),this[t]=255&e,t+1},s.prototype.writeUInt16LE=function(e,t,n){return e*=1,t>>>=0,n||x(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeUInt16BE=function(e,t,n){return e*=1,t>>>=0,n||x(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeUInt32LE=function(e,t,n){return e*=1,t>>>=0,n||x(this,e,t,4,0xffffffff,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},s.prototype.writeUInt32BE=function(e,t,n){return e*=1,t>>>=0,n||x(this,e,t,4,0xffffffff,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeIntLE=function(e,t,n,r){if(e*=1,t>>>=0,!r){var i=Math.pow(2,8*n-1);x(this,e,t,n,i-1,-i)}var a=0,o=1,s=0;for(this[t]=255&e;++a<n&&(o*=256);)e<0&&0===s&&0!==this[t+a-1]&&(s=1),this[t+a]=(e/o|0)-s&255;return t+n},s.prototype.writeIntBE=function(e,t,n,r){if(e*=1,t>>>=0,!r){var i=Math.pow(2,8*n-1);x(this,e,t,n,i-1,-i)}var a=n-1,o=1,s=0;for(this[t+a]=255&e;--a>=0&&(o*=256);)e<0&&0===s&&0!==this[t+a+1]&&(s=1),this[t+a]=(e/o|0)-s&255;return t+n},s.prototype.writeInt8=function(e,t,n){return e*=1,t>>>=0,n||x(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},s.prototype.writeInt16LE=function(e,t,n){return e*=1,t>>>=0,n||x(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeInt16BE=function(e,t,n){return e*=1,t>>>=0,n||x(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeInt32LE=function(e,t,n){return e*=1,t>>>=0,n||x(this,e,t,4,0x7fffffff,-0x80000000),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},s.prototype.writeInt32BE=function(e,t,n){return e*=1,t>>>=0,n||x(this,e,t,4,0x7fffffff,-0x80000000),e<0&&(e=0xffffffff+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeFloatLE=function(e,t,n){return w(this,e,t,!0,n)},s.prototype.writeFloatBE=function(e,t,n){return w(this,e,t,!1,n)},s.prototype.writeDoubleLE=function(e,t,n){return S(this,e,t,!0,n)},s.prototype.writeDoubleBE=function(e,t,n){return S(this,e,t,!1,n)},s.prototype.copy=function(e,t,n,r){if(!s.isBuffer(e))throw TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n||0===e.length||0===this.length)return 0;if(t<0)throw RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw RangeError("Index out of range");if(r<0)throw RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i=r-n;if(this===e&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(t,n,r);else if(this===e&&n<t&&t<r)for(var a=i-1;a>=0;--a)e[a+t]=this[a+n];else Uint8Array.prototype.set.call(e,this.subarray(n,r),t);return i},s.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),void 0!==r&&"string"!=typeof r)throw TypeError("encoding must be a string");if("string"==typeof r&&!s.isEncoding(r))throw TypeError("Unknown encoding: "+r);if(1===e.length){var i,a=e.charCodeAt(0);("utf8"===r&&a<128||"latin1"===r)&&(e=a)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw RangeError("Out of range index");if(n<=t)return this;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i<n;++i)this[i]=e;else{var o=s.isBuffer(e)?e:s.from(e,r),l=o.length;if(0===l)throw TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<n-t;++i)this[i+t]=o[i%l]}return this};var A=/[^+/0-9A-Za-z-_]/g;function C(e,t){t=t||1/0;for(var n,r=e.length,i=null,a=[],o=0;o<r;++o){if((n=e.charCodeAt(o))>55295&&n<57344){if(!i){if(n>56319||o+1===r){(t-=3)>-1&&a.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&a.push(239,191,189),i=n;continue}n=(i-55296<<10|n-56320)+65536}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;a.push(n>>12|224,n>>6&63|128,63&n|128)}else if(n<1114112){if((t-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}else throw Error("Invalid code point")}return a}function T(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}function _(e){return r.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(A,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function M(e,t,n,r){for(var i=0;i<r&&!(i+n>=t.length)&&!(i>=e.length);++i)t[i+n]=e[i];return i}function N(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}var E=function(){for(var e="0123456789abcdef",t=Array(256),n=0;n<16;++n)for(var r=16*n,i=0;i<16;++i)t[r+i]=e[n]+e[i];return t}()},783:function(e,t){t.read=function(e,t,n,r,i){var a,o,s=8*i-r-1,l=(1<<s)-1,c=l>>1,u=-7,h=n?i-1:0,p=n?-1:1,d=e[t+h];for(h+=p,a=d&(1<<-u)-1,d>>=-u,u+=s;u>0;a=256*a+e[t+h],h+=p,u-=8);for(o=a&(1<<-u)-1,a>>=-u,u+=r;u>0;o=256*o+e[t+h],h+=p,u-=8);if(0===a)a=1-c;else{if(a===l)return o?NaN:1/0*(d?-1:1);o+=Math.pow(2,r),a-=c}return(d?-1:1)*o*Math.pow(2,a-r)},t.write=function(e,t,n,r,i,a){var o,s,l,c=8*a-i-1,u=(1<<c)-1,h=u>>1,p=5960464477539062e-23*(23===i),d=r?0:a-1,m=r?1:-1,f=+(t<0||0===t&&1/t<0);for(isNaN(t=Math.abs(t))||t===1/0?(s=+!!isNaN(t),o=u):(o=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-o))<1&&(o--,l*=2),o+h>=1?t+=p/l:t+=p*Math.pow(2,1-h),t*l>=2&&(o++,l/=2),o+h>=u?(s=0,o=u):o+h>=1?(s=(t*l-1)*Math.pow(2,i),o+=h):(s=t*Math.pow(2,h-1)*Math.pow(2,i),o=0));i>=8;e[n+d]=255&s,d+=m,s/=256,i-=8);for(o=o<<i|s,c+=i;c>0;e[n+d]=255&o,d+=m,o/=256,c-=8);e[n+d-m]|=128*f}}},n={};function r(t){var i=n[t];if(void 0!==i)return i.exports;var a=n[t]={exports:{}},o=!0;try{e[t](a,a.exports,r),o=!1}finally{o&&delete n[t]}return a.exports}r.ab="/ROOT/node_modules/next/dist/compiled/buffer/",t.exports=r(72)}()},41130,e=>{"use strict";let t,n,r;e.s(["BridgeDebugApp",()=>mq],41130);var i,a,o,s,l,c,u,h,p,d,m,f,g,y,b,v,x,k,w,S=e.i(47167),A=e.i(18050),C=e.i(71645),T=e.i(18566),_=e.i(38991),M=e.i(32220),N=e.i(87243),E=e.i(50711),z=e.i(36845),I=e.i(2531),j=e.i(92413),R=e.i(40713),L=e.i(45792),P=e.i(13354),B=e.i(68499),O=e.i(55242);function D(e){let{open:t,onOpenChange:n,variant:r,wsUrl:i,apiBase:a,agent:o,onNotifyReloadAgentConfig:s}=e,l=(0,_.useAppStore)(e=>e.setStatus),c=(0,_.useAppStore)(e=>e.bridgeReady),u="tools"===r?"工具管理":"MCP 管理",h="tools"===r?"当前无可管理的 runtime 工具文件":"当前无可管理的 mcp-runtime 包",[p,d]=(0,C.useState)(""),[m,f]=(0,C.useState)([]),[g,y]=(0,C.useState)(!1),[b,v]=(0,C.useState)(null),[x,k]=(0,C.useState)(!1),w=(0,C.useRef)(null),S=(0,C.useCallback)(()=>{try{null==s||s()}catch(e){}},[s]),T=(0,C.useCallback)(async()=>{y(!0),v(null),d("加载中…");try{let e="tools"===r?(0,z.buildToolsRuntimeFilesUrl)(i,a,o):(0,z.buildMcpRuntimeFilesUrl)(i,a,o),t=await (0,I.get)(e),n="tools"===r?"string"==typeof t.runtimeToolsDir?t.runtimeToolsDir:".ws-agents/tools-runtime":"string"==typeof t.mcpRuntimeDir?t.mcpRuntimeDir:".ws-agents/mcp-runtime",s=Array.isArray(t.items)?t.items:[],l=[];for(let e of s)e&&"object"==typeof e&&"string"==typeof e.id&&e.id.trim()&&l.push({id:e.id.trim(),entryType:e.entryType,fileCount:e.fileCount,hasMcpJson:e.hasMcpJson});f(l),d("".concat(n," · 共 ").concat(l.length," 个").concat("tools"===r?"工具":"包"))}catch(e){d("加载失败"),f([]),v("加载失败: ".concat(e)),l("加载 ".concat(u," 列表失败"),c?"ready":"")}finally{y(!1)}},[r,i,a,o,u,c,l]);(0,C.useEffect)(()=>{t&&T()},[t,T]);let M=(0,C.useCallback)(()=>{n(!1)},[n]),N=(0,C.useCallback)(e=>{S();let t="tools"===r?(0,z.buildToolsRuntimeExportUrl)(i,a,o,e):(0,z.buildMcpRuntimeExportUrl)(i,a,o,e);window.open(t,"_blank","noopener")},[r,i,a,o,S]),E=(0,C.useCallback)(async e=>{if(!await (0,B.confirmAlertDialog)({title:"确认删除".concat("tools"===r?"工具":" MCP 包","?"),description:e,confirmText:"删除",cancelText:"取消"}))return;let t="tools"===r?(0,z.buildToolsRuntimeDeleteUrl)(i,a,o,e):(0,z.buildMcpRuntimeDeleteUrl)(i,a,o,e);try{await (0,I.del)(t),l("tools"===r?"工具文件已删除":"MCP 包已删除",c?"ready":""),S(),await T()}catch(e){P.appToast.error("删除失败:".concat(e instanceof Error?e.message:String(e)))}},[r,i,a,o,S,T,c,l]),j=(0,C.useCallback)(()=>{let e=w.current;e&&(e.value="",e.click())},[]),R=(0,C.useCallback)(async e=>{if(!e)return;let t="tools"===r?(0,z.buildToolsRuntimeImportUrl)(i,a,o):(0,z.buildMcpRuntimeImportUrl)(i,a,o),n=new FormData;n.append("file",e),k(!0);try{let e=await (0,I.post)(t,n,{type:"file"}),i=Number(e.imported||0),a=Number(e.overwritten||0),o=Array.isArray(e.rejected)?e.rejected.length:0;S(),l("tools"===r?"工具 zip 已导入":"MCP zip 已导入",c?"ready":""),P.appToast.success("导入完成:导入 ".concat(i,",覆盖 ").concat(a)+(o>0?",拒绝 ".concat(o):"")),await T()}catch(e){P.appToast.error("导入失败:".concat(e instanceof Error?e.message:String(e)))}finally{k(!1)}},[r,i,a,o,S,T,c,l]),L=g?(0,A.jsx)("div",{className:"tool-files-state",children:"加载中…"}):b?(0,A.jsx)("div",{className:"tool-files-state",children:b}):0===m.length?(0,A.jsx)("div",{className:"tool-files-state",children:h}):m.map(e=>{let t="mcp"===r&&!0!==e.hasMcpJson;return(0,A.jsxs)("div",{className:"tool-files-item hover:bg-[var(--ds-item-hover)]",children:[(0,A.jsxs)("div",{className:"tool-files-main",children:[(0,A.jsx)("div",{className:"tool-files-name",title:e.id,children:e.id}),(0,A.jsx)("div",{className:"tool-files-sub",children:"tools"===r?function(e){let t=Number(e.fileCount||0),n="directory"===e.entryType?"目录工具包":"单文件工具",r=Number.isFinite(t)&&t>0?t:1;return"".concat(n," · 文件数 ").concat(r," · 导出内容:带一层工具目录的 zip 包")}(e):function(e){let t=!0===e.hasMcpJson,n=Number(e.fileCount||0);return"MCP 包目录"+(t?" · 含 mcp.json":" · 缺少 mcp.json")+" · 可导出文件 "+(Number.isFinite(n)&&n>0?n:0)+" · zip 仅含编译产物(mcp.json / index.js)"}(e)})]}),(0,A.jsxs)("div",{className:"runtime-pkg-row-actions",children:[(0,A.jsx)("button",{type:"button",className:"runtime-pkg-row-action",onClick:()=>void E(e.id),children:"删除"}),(0,A.jsx)("button",{type:"button",className:"runtime-pkg-row-action",disabled:t,onClick:()=>{t||N(e.id)},children:"导出"})]})]},e.id)});return(0,A.jsxs)(O.AppDialog,{open:t,onOpenChange:n,title:u,footer:(0,A.jsx)("button",{type:"button",className:"btn-agent-md-cancel",onClick:M,children:"关闭"}),children:[(0,A.jsxs)("div",{className:"mb-3 flex items-center justify-between gap-3",children:[(0,A.jsx)("p",{className:"tool-files-meta",children:p}),(0,A.jsx)("div",{children:(0,A.jsx)("button",{type:"button",className:"btn-system-settings",disabled:x,onClick:j,children:"导入 zip"})})]}),(0,A.jsx)("div",{className:"tool-files-list",style:{maxHeight:"min(62vh, 560px)",overflowY:"auto"},children:L}),(0,A.jsx)("input",{ref:w,type:"file",accept:".zip,application/zip",className:"hidden","aria-hidden":!0,onChange:e=>{var t,n;R(null!=(n=null==(t=e.target.files)?void 0:t[0])?n:null),e.target.value=""}})]})}var F=e.i(18900);function q(e){let{open:t,onOpenChange:n,wsUrl:r,apiBase:i,agent:a}=e,o=(0,_.useAppStore)(e=>e.setStatus),s=(0,_.useAppStore)(e=>e.bridgeReady),[l,c]=(0,C.useState)(!1),[u,h]=(0,C.useState)(!1),[p,d]=(0,C.useState)(""),[m,f]=(0,C.useState)({}),g=(0,C.useCallback)((e,t)=>{f(n=>({...n,[e]:t}))},[]);(0,C.useEffect)(()=>{if(!t)return;let e=!1;return c(!0),d(""),f({}),(0,I.get)((0,z.buildSystemEnvApiUrl)(r,i,a)).then(t=>{if(e)return;let n="string"==typeof t.content?t.content:"";f({...(0,F.parseEnvContentToMap)(n)}),d("string"==typeof t.path?t.path:"")}).catch(t=>{e||(P.appToast.error("加载 .env 失败:".concat(t instanceof Error?t.message:String(t))),n(!1))}).finally(()=>{e||c(!1)}),()=>{e=!0}},[t,r,i,a,n]);let y=(0,C.useCallback)(()=>{n(!1)},[n]),b=(0,C.useCallback)(()=>{let e=(0,F.buildEnvFileContentFromForm)([],m);h(!0),(0,I.patch)((0,z.buildSystemEnvApiUrl)(r,i,a),{content:e}).then(()=>{o(".env 已保存(重启 ws-server 后进程环境变量才会更新)",s?"ready":""),P.appToast.success("已保存项目根目录 .env。\n\n注意:已运行的 ws-server 进程不会自动重载环境变量,若需生效请重启服务或在新会话中验证。"),n(!1)}).catch(e=>{P.appToast.error("保存 .env 失败:".concat(e instanceof Error?e.message:String(e)))}).finally(()=>{h(!1)})},[m,r,i,a,s,o,n]);return(0,A.jsx)(O.AppDialog,{open:t,onOpenChange:n,title:(0,A.jsxs)("div",{className:"min-w-0",children:[(0,A.jsx)("span",{children:"环境变量"}),p?(0,A.jsx)("p",{className:"m-0 text-xs font-normal text-[var(--ds-muted)]",children:p}):null]}),footer:(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)("button",{type:"button",className:"btn-agent-md-cancel",onClick:y,children:"取消"}),(0,A.jsx)("button",{type:"button",className:"btn-primary",disabled:l||u,onClick:()=>void b(),children:"保存"})]}),children:(0,A.jsx)("div",{className:"env-form-table-body","aria-busy":l,children:l?(0,A.jsx)("div",{className:"tool-files-state",children:"加载中…"}):(0,A.jsx)(A.Fragment,{children:Object.keys(m).sort().map(e=>{var t;return(0,A.jsxs)("div",{className:"env-form-row",children:[(0,A.jsx)("label",{className:"env-form-label",htmlFor:"env-field-".concat(e),children:e}),(0,A.jsx)("div",{className:"env-form-field",children:(0,A.jsx)("input",{id:"env-field-".concat(e),type:"text",className:"env-form-value",spellCheck:!1,autoComplete:"off","data-env-key":e,value:null!=(t=m[e])?t:"",onChange:t=>g(e,t.target.value)})})]},e)})})})})}var H=e.i(72064),U=e.i(75157);function G(e){let{className:t}=e;return(0,A.jsx)(H.default,{name:"Loader2",size:16,className:(0,U.cn)("animate-spin text-muted-foreground",t)})}var W=e.i(46798),V=e.i(99749);function $(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var X=$(),Y={exec:()=>null};function J(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n="string"==typeof e?e:e.source,r={replace:(e,t)=>{let i="string"==typeof t?t:t.source;return i=i.replace(K.caret,"$1"),n=n.replace(e,i),r},getRegex:()=>new RegExp(n,t)};return r}var Z=(()=>{try{return!!RegExp("(?<=1)(?<!1)")}catch(e){return!1}})(),K={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:RegExp("[\\p{L}\\p{N}]","u"),escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp("^( {0,3}".concat(e,")((?:[ ][^\\n]*)?(?:\\n|$))")),nextBulletRegex:e=>new RegExp("^ {0,".concat(Math.min(3,e-1),"}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))")),hrRegex:e=>new RegExp("^ {0,".concat(Math.min(3,e-1),"}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)")),fencesBeginRegex:e=>new RegExp("^ {0,".concat(Math.min(3,e-1),"}(?:```|~~~)")),headingBeginRegex:e=>new RegExp("^ {0,".concat(Math.min(3,e-1),"}#")),htmlBeginRegex:e=>RegExp("^ {0,".concat(Math.min(3,e-1),"}<(?:[a-z].*>|!--)"),"i"),blockquoteBeginRegex:e=>new RegExp("^ {0,".concat(Math.min(3,e-1),"}>"))},Q=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,ee=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,et=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,en=J(et).replace(/bull/g,ee).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),er=J(et).replace(/bull/g,ee).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),ei=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,ea=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,eo=J(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",ea).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),es=J(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,ee).getRegex(),el="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",ec=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,eu=J("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",ec).replace("tag",el).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),eh=J(ei).replace("hr",Q).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",el).getRegex(),ep={blockquote:J(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",eh).getRegex(),code:/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,def:eo,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:Q,html:eu,lheading:en,list:es,newline:/^(?:[ \t]*(?:\n|$))+/,paragraph:eh,table:Y,text:/^[^\n]+/},ed=J("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Q).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",el).getRegex(),em={...ep,lheading:er,table:ed,paragraph:J(ei).replace("hr",Q).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",ed).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",el).getRegex()},ef={...ep,html:J("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",ec).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Y,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:J(ei).replace("hr",Q).replace("heading"," *#{1,6} *[^\n]").replace("lheading",en).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},eg=/^( {2,}|\\)\n(?!\s*$)/,ey=RegExp("[\\p{P}\\p{S}]","u"),eb=RegExp("[\\s\\p{P}\\p{S}]","u"),ev=RegExp("[^\\s\\p{P}\\p{S}]","u"),ex=J(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,eb).getRegex(),ek=RegExp("(?!~)[\\p{P}\\p{S}]","u"),ew=RegExp("(?!~)[\\s\\p{P}\\p{S}]","u"),eS=RegExp("(?:[^\\s\\p{P}\\p{S}]|~)","u"),eA=J(/link|precode-code|html/,"g").replace("link",RegExp("\\[(?:[^\\[\\]`]|(?<a>`+)[^`]+\\k<a>(?!`))*?\\]\\((?:\\\\[\\s\\S]|[^\\\\\\(\\)]|\\((?:\\\\[\\s\\S]|[^\\\\\\(\\)])*\\))*\\)")).replace("precode-",Z?"(?<!`)()":"(^^|[^`])").replace("code",RegExp("(?<b>`+)[^`]+\\k<b>(?!`)")).replace("html",/<(?! )[^<>]*?>/).getRegex(),eC=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,eT=J(eC,"u").replace(/punct/g,ey).getRegex(),e_=J(eC,"u").replace(/punct/g,ek).getRegex(),eM="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",eN=J(eM,"gu").replace(/notPunctSpace/g,ev).replace(/punctSpace/g,eb).replace(/punct/g,ey).getRegex(),eE=J(eM,"gu").replace(/notPunctSpace/g,eS).replace(/punctSpace/g,ew).replace(/punct/g,ek).getRegex(),ez=J("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,ev).replace(/punctSpace/g,eb).replace(/punct/g,ey).getRegex(),eI=J(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,ey).getRegex(),ej=J("^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)","gu").replace(/notPunctSpace/g,ev).replace(/punctSpace/g,eb).replace(/punct/g,ey).getRegex(),eR=J(/\\(punct)/,"gu").replace(/punct/g,ey).getRegex(),eL=J(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),eP=J(ec).replace("(?:-->|$)","-->").getRegex(),eB=J("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",eP).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),eO=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,eD=J(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",eO).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),eF=J(/^!?\[(label)\]\[(ref)\]/).replace("label",eO).replace("ref",ea).getRegex(),eq=J(/^!?\[(ref)\](?:\[\])?/).replace("ref",ea).getRegex(),eH=J("reflink|nolink(?!\\()","g").replace("reflink",eF).replace("nolink",eq).getRegex(),eU=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,eG={_backpedal:Y,anyPunctuation:eR,autolink:eL,blockSkip:eA,br:eg,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:Y,delLDelim:Y,delRDelim:Y,emStrongLDelim:eT,emStrongRDelimAst:eN,emStrongRDelimUnd:ez,escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,link:eD,nolink:eq,punctuation:ex,reflink:eF,reflinkSearch:eH,tag:eB,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,url:Y},eW={...eG,link:J(/^!?\[(label)\]\((.*?)\)/).replace("label",eO).getRegex(),reflink:J(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",eO).getRegex()},eV={...eG,emStrongRDelimAst:eE,emStrongLDelim:e_,delLDelim:eI,delRDelim:ej,url:J(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",eU).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:J(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",eU).getRegex()},e$={...eV,br:J(eg).replace("{2,}","*").getRegex(),text:J(eV.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},eX={normal:ep,gfm:em,pedantic:ef},eY={normal:eG,gfm:eV,breaks:e$,pedantic:eW},eJ={"&":"&","<":"<",">":">",'"':""","'":"'"},eZ=e=>eJ[e];function eK(e,t){if(t){if(K.escapeTest.test(e))return e.replace(K.escapeReplace,eZ)}else if(K.escapeTestNoEncode.test(e))return e.replace(K.escapeReplaceNoEncode,eZ);return e}function eQ(e){try{e=encodeURI(e).replace(K.percentDecode,"%")}catch(e){return null}return e}function e0(e,t){var n;let r=e.replace(K.findPipe,(e,t,n)=>{let r=!1,i=t;for(;--i>=0&&"\\"===n[i];)r=!r;return r?"|":" |"}).split(K.splitPipe),i=0;if(r[0].trim()||r.shift(),!(r.length>0)||(null==(n=r.at(-1))?void 0:n.trim())||r.pop(),t)if(r.length>t)r.splice(t);else for(;r.length<t;)r.push("");for(;i<r.length;i++)r[i]=r[i].trim().replace(K.slashPipe,"|");return r}function e1(e,t,n){let r=e.length;if(0===r)return"";let i=0;for(;i<r;){let a=e.charAt(r-i-1);if(a!==t||n)if(a!==t&&n)i++;else break;else i++}return e.slice(0,r-i)}function e4(e){let t=e.split("\n"),n=t.length-1;for(;n>=0&&!t[n].trim();)n--;return t.length-n<=2?e:t.slice(0,n+1).join("\n")}function e5(e,t,n,r,i){let a=t.href,o=t.title||null,s=e[1].replace(i.other.outputLinkReplace,"$1");r.state.inLink=!0;let l={type:"!"===e[0].charAt(0)?"image":"link",raw:n,href:a,title:o,text:s,tokens:r.inlineTokens(s)};return r.state.inLink=!1,l}var e6=class{space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let e=this.options.pedantic?t[0]:e4(t[0]),n=e.replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:e,codeBlockStyle:"indented",text:n}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let e=t[0],n=function(e,t,n){let r=e.match(n.other.indentCodeCompensation);if(null===r)return t;let i=r[1];return t.split("\n").map(e=>{let t=e.match(n.other.beginningSpace);if(null===t)return e;let[r]=t;return r.length>=i.length?e.slice(i.length):e}).join("\n")}(e,t[3]||"",this.rules);return{type:"code",raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:n}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(this.rules.other.endingHash.test(e)){let t=e1(e,"#");(this.options.pedantic||!t||this.rules.other.endingSpaceChar.test(t))&&(e=t.trim())}return{type:"heading",raw:e1(t[0],"\n"),depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:e1(t[0],"\n")}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let e=e1(t[0],"\n").split("\n"),n="",r="",i=[];for(;e.length>0;){let t=!1,a=[],o;for(o=0;o<e.length;o++)if(this.rules.other.blockquoteStart.test(e[o]))a.push(e[o]),t=!0;else if(t)break;else a.push(e[o]);e=e.slice(o);let s=a.join("\n"),l=s.replace(this.rules.other.blockquoteSetextReplace,"\n $1").replace(this.rules.other.blockquoteSetextReplace2,"");n=n?"".concat(n,"\n").concat(s):s,r=r?"".concat(r,"\n").concat(l):l;let c=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(l,i,!0),this.lexer.state.top=c,0===e.length)break;let u=i.at(-1);if((null==u?void 0:u.type)==="code")break;if((null==u?void 0:u.type)==="blockquote"){let t=u.raw+"\n"+e.join("\n"),a=this.blockquote(t);i[i.length-1]=a,n=n.substring(0,n.length-u.raw.length)+a.raw,r=r.substring(0,r.length-u.text.length)+a.text;break}if((null==u?void 0:u.type)==="list"){let t=u.raw+"\n"+e.join("\n"),a=this.list(t);i[i.length-1]=a,n=n.substring(0,n.length-u.raw.length)+a.raw,r=r.substring(0,r.length-u.raw.length)+a.raw,e=t.substring(i.at(-1).raw.length).split("\n");continue}}return{type:"blockquote",raw:n,tokens:i,text:r}}}list(e){let t=this.rules.block.list.exec(e);if(t){let i=t[1].trim(),a=i.length>1,o={type:"list",raw:"",ordered:a,start:a?+i.slice(0,-1):"",loose:!1,items:[]};i=a?"\\d{1,9}\\".concat(i.slice(-1)):"\\".concat(i),this.options.pedantic&&(i=a?i:"[*+-]");let s=this.rules.other.listItemRegex(i),l=!1;for(;e;){let n=!1,r="",i="";if(!(t=s.exec(e))||this.rules.block.hr.test(e))break;r=t[0],e=e.substring(r.length);let a=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=t,r="";for(let t of e)if(" "===t){let e=4-n%4;r+=" ".repeat(e),n+=e}else r+=t,n++;return r}(t[2].split("\n",1)[0],t[1].length),c=e.split("\n",1)[0],u=!a.trim(),h=0;if(this.options.pedantic?(h=2,i=a.trimStart()):u?h=t[1].length+1:(h=(h=a.search(this.rules.other.nonSpaceChar))>4?1:h,i=a.slice(h),h+=t[1].length),u&&this.rules.other.blankLine.test(c)&&(r+=c+"\n",e=e.substring(c.length+1),n=!0),!n){let t=this.rules.other.nextBulletRegex(h),n=this.rules.other.hrRegex(h),o=this.rules.other.fencesBeginRegex(h),s=this.rules.other.headingBeginRegex(h),l=this.rules.other.htmlBeginRegex(h),p=this.rules.other.blockquoteBeginRegex(h);for(;e;){let d=e.split("\n",1)[0],m;if(c=d,m=this.options.pedantic?c=c.replace(this.rules.other.listReplaceNesting," "):c.replace(this.rules.other.tabCharGlobal," "),o.test(c)||s.test(c)||l.test(c)||p.test(c)||t.test(c)||n.test(c))break;if(m.search(this.rules.other.nonSpaceChar)>=h||!c.trim())i+="\n"+m.slice(h);else{if(u||a.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||o.test(a)||s.test(a)||n.test(a))break;i+="\n"+c}u=!c.trim(),r+=d+"\n",e=e.substring(d.length+1),a=m.slice(h)}}o.loose||(l?o.loose=!0:this.rules.other.doubleBlankLine.test(r)&&(l=!0)),o.items.push({type:"list_item",raw:r,task:!!this.options.gfm&&this.rules.other.listIsTask.test(i),loose:!1,text:i,tokens:[]}),o.raw+=r}let c=o.items.at(-1);if(!c)return;for(let e of(c.raw=c.raw.trimEnd(),c.text=c.text.trimEnd(),o.raw=o.raw.trimEnd(),o.items)){if(this.lexer.state.top=!1,e.tokens=this.lexer.blockTokens(e.text,[]),e.task){var n,r;if(e.text=e.text.replace(this.rules.other.listReplaceTask,""),(null==(n=e.tokens[0])?void 0:n.type)==="text"||(null==(r=e.tokens[0])?void 0:r.type)==="paragraph"){e.tokens[0].raw=e.tokens[0].raw.replace(this.rules.other.listReplaceTask,""),e.tokens[0].text=e.tokens[0].text.replace(this.rules.other.listReplaceTask,"");for(let e=this.lexer.inlineQueue.length-1;e>=0;e--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[e].src)){this.lexer.inlineQueue[e].src=this.lexer.inlineQueue[e].src.replace(this.rules.other.listReplaceTask,"");break}}let t=this.rules.other.listTaskCheckbox.exec(e.raw);if(t){let n={type:"checkbox",raw:t[0]+" ",checked:"[ ]"!==t[0]};e.checked=n.checked,o.loose?e.tokens[0]&&["paragraph","text"].includes(e.tokens[0].type)&&"tokens"in e.tokens[0]&&e.tokens[0].tokens?(e.tokens[0].raw=n.raw+e.tokens[0].raw,e.tokens[0].text=n.raw+e.tokens[0].text,e.tokens[0].tokens.unshift(n)):e.tokens.unshift({type:"paragraph",raw:n.raw,text:n.raw,tokens:[n]}):e.tokens.unshift(n)}}if(!o.loose){let t=e.tokens.filter(e=>"space"===e.type);o.loose=t.length>0&&t.some(e=>this.rules.other.anyLine.test(e.raw))}}if(o.loose)for(let e of o.items)for(let t of(e.loose=!0,e.tokens))"text"===t.type&&(t.type="paragraph");return o}}html(e){let t=this.rules.block.html.exec(e);if(t){let e=e4(t[0]);return{type:"html",block:!0,raw:e,pre:"pre"===t[1]||"script"===t[1]||"style"===t[1],text:e}}}def(e){let t=this.rules.block.def.exec(e);if(t){let e=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),n=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",r=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:e,raw:e1(t[0],"\n"),href:n,title:r}}}table(e){var t;let n=this.rules.block.table.exec(e);if(!n||!this.rules.other.tableDelimiter.test(n[2]))return;let r=e0(n[1]),i=n[2].replace(this.rules.other.tableAlignChars,"").split("|"),a=(null==(t=n[3])?void 0:t.trim())?n[3].replace(this.rules.other.tableRowBlankLine,"").split("\n"):[],o={type:"table",raw:e1(n[0],"\n"),header:[],align:[],rows:[]};if(r.length===i.length){for(let e of i)this.rules.other.tableAlignRight.test(e)?o.align.push("right"):this.rules.other.tableAlignCenter.test(e)?o.align.push("center"):this.rules.other.tableAlignLeft.test(e)?o.align.push("left"):o.align.push(null);for(let e=0;e<r.length;e++)o.header.push({text:r[e],tokens:this.lexer.inline(r[e]),header:!0,align:o.align[e]});for(let e of a)o.rows.push(e0(e,o.header.length).map((e,t)=>({text:e,tokens:this.lexer.inline(e),header:!1,align:o.align[t]})));return o}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t){let e=t[1].trim();return{type:"heading",raw:e1(t[0],"\n"),depth:"="===t[2].charAt(0)?1:2,text:e,tokens:this.lexer.inline(e)}}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let e="\n"===t[1].charAt(t[1].length-1)?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:e,tokens:this.lexer.inline(e)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let e=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(e)){if(!this.rules.other.endAngleBracket.test(e))return;let t=e1(e.slice(0,-1),"\\");if((e.length-t.length)%2==0)return}else{let e=function(e,t){if(-1===e.indexOf(")"))return -1;let n=0;for(let r=0;r<e.length;r++)if("\\"===e[r])r++;else if("("===e[r])n++;else if(e[r]===t[1]&&--n<0)return r;return n>0?-2:-1}(t[2],"()");if(-2===e)return;if(e>-1){let n=(0===t[0].indexOf("!")?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,n).trim(),t[3]=""}}let n=t[2],r="";if(this.options.pedantic){let e=this.rules.other.pedanticHrefTitle.exec(n);e&&(n=e[1],r=e[3])}else r=t[3]?t[3].slice(1,-1):"";return n=n.trim(),this.rules.other.startAngleBracket.test(n)&&(n=this.options.pedantic&&!this.rules.other.endAngleBracket.test(e)?n.slice(1):n.slice(1,-1)),e5(t,{href:n&&n.replace(this.rules.inline.anyPunctuation,"$1"),title:r&&r.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let e=t[(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," ").toLowerCase()];if(!e){let e=n[0].charAt(0);return{type:"text",raw:e,text:e}}return e5(n,e,n[0],this.lexer,this.rules)}}emStrong(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=this.rules.inline.emStrongLDelim.exec(e);if(!(!r||!r[1]&&!r[2]&&!r[3]&&!r[4]||r[4]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(r[1]||r[3])||!n||this.rules.inline.punctuation.exec(n))){let n=[...r[0]].length-1,i,a,o=n,s=0,l="*"===r[0][0]?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(l.lastIndex=0,t=t.slice(-1*e.length+n);null!==(r=l.exec(t));){if(!(i=r[1]||r[2]||r[3]||r[4]||r[5]||r[6]))continue;if(a=[...i].length,r[3]||r[4]){o+=a;continue}if((r[5]||r[6])&&n%3&&!((n+a)%3)){s+=a;continue}if((o-=a)>0)continue;a=Math.min(a,a+o+s);let t=[...r[0]][0].length,l=e.slice(0,n+r.index+t+a);if(Math.min(n,a)%2){let e=l.slice(1,-1);return{type:"em",raw:l,text:e,tokens:this.lexer.inlineTokens(e)}}let c=l.slice(2,-2);return{type:"strong",raw:l,text:c,tokens:this.lexer.inlineTokens(c)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(this.rules.other.newLineCharGlobal," "),n=this.rules.other.nonSpaceChar.test(e),r=this.rules.other.startingSpaceChar.test(e)&&this.rules.other.endingSpaceChar.test(e);return n&&r&&(e=e.substring(1,e.length-1)),{type:"codespan",raw:t[0],text:e}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=this.rules.inline.delLDelim.exec(e);if(r&&(!r[1]||!n||this.rules.inline.punctuation.exec(n))){let n=[...r[0]].length-1,i,a,o=n,s=this.rules.inline.delRDelim;for(s.lastIndex=0,t=t.slice(-1*e.length+n);null!==(r=s.exec(t));){if(!(i=r[1]||r[2]||r[3]||r[4]||r[5]||r[6])||(a=[...i].length)!==n)continue;if(r[3]||r[4]){o+=a;continue}if((o-=a)>0)continue;a=Math.min(a,a+o);let t=[...r[0]][0].length,s=e.slice(0,n+r.index+t+a),l=s.slice(n,-n);return{type:"del",raw:s,text:l,tokens:this.lexer.inlineTokens(l)}}}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let e,n;return n="@"===t[2]?"mailto:"+(e=t[1]):e=t[1],{type:"link",raw:t[0],text:e,href:n,tokens:[{type:"text",raw:e,text:e}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let e,i;if("@"===t[2])i="mailto:"+(e=t[0]);else{var n,r;let a;do a=t[0],t[0]=null!=(r=null==(n=this.rules.inline._backpedal.exec(t[0]))?void 0:n[0])?r:"";while(a!==t[0])e=t[0],i="www."===t[1]?"http://"+t[0]:t[0]}return{type:"link",raw:t[0],text:e,href:i,tokens:[{type:"text",raw:e,text:e}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let e=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:t[0],escaped:e}}}constructor(e){(0,V._)(this,"options",void 0),(0,V._)(this,"rules",void 0),(0,V._)(this,"lexer",void 0),this.options=e||X}},e3=class e{static get rules(){return{block:eX,inline:eY}}static lex(t,n){return new e(n).lex(t)}static lexInline(t,n){return new e(n).inlineTokens(t)}lex(e){e=e.replace(K.carriageReturn,"\n"),this.blockTokens(e,this.tokens);for(let e=0;e<this.inlineQueue.length;e++){let t=this.inlineQueue[e];this.inlineTokens(t.src,t.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];for(this.tokenizer.lexer=this,this.options.pedantic&&(e=e.replace(K.tabCharGlobal," ").replace(K.spaceLine,""));e;){var r,i,a;let o;if(null==(i=this.options.extensions)||null==(r=i.block)?void 0:r.some(n=>!!(o=n.call({lexer:this},e,t))&&(e=e.substring(o.raw.length),t.push(o),!0)))continue;if(o=this.tokenizer.space(e)){e=e.substring(o.raw.length);let n=t.at(-1);1===o.raw.length&&void 0!==n?n.raw+="\n":t.push(o);continue}if(o=this.tokenizer.code(e)){e=e.substring(o.raw.length);let n=t.at(-1);(null==n?void 0:n.type)==="paragraph"||(null==n?void 0:n.type)==="text"?(n.raw+=(n.raw.endsWith("\n")?"":"\n")+o.raw,n.text+="\n"+o.text,this.inlineQueue.at(-1).src=n.text):t.push(o);continue}if((o=this.tokenizer.fences(e))||(o=this.tokenizer.heading(e))||(o=this.tokenizer.hr(e))||(o=this.tokenizer.blockquote(e))||(o=this.tokenizer.list(e))||(o=this.tokenizer.html(e))){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.def(e)){e=e.substring(o.raw.length);let n=t.at(-1);(null==n?void 0:n.type)==="paragraph"||(null==n?void 0:n.type)==="text"?(n.raw+=(n.raw.endsWith("\n")?"":"\n")+o.raw,n.text+="\n"+o.raw,this.inlineQueue.at(-1).src=n.text):this.tokens.links[o.tag]||(this.tokens.links[o.tag]={href:o.href,title:o.title},t.push(o));continue}if((o=this.tokenizer.table(e))||(o=this.tokenizer.lheading(e))){e=e.substring(o.raw.length),t.push(o);continue}let s=e;if(null==(a=this.options.extensions)?void 0:a.startBlock){let t=1/0,n=e.slice(1),r;this.options.extensions.startBlock.forEach(e=>{"number"==typeof(r=e.call({lexer:this},n))&&r>=0&&(t=Math.min(t,r))}),t<1/0&&t>=0&&(s=e.substring(0,t+1))}if(this.state.top&&(o=this.tokenizer.paragraph(s))){let r=t.at(-1);n&&(null==r?void 0:r.type)==="paragraph"?(r.raw+=(r.raw.endsWith("\n")?"":"\n")+o.raw,r.text+="\n"+o.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=r.text):t.push(o),n=s.length!==e.length,e=e.substring(o.raw.length);continue}if(o=this.tokenizer.text(e)){e=e.substring(o.raw.length);let n=t.at(-1);(null==n?void 0:n.type)==="text"?(n.raw+=(n.raw.endsWith("\n")?"":"\n")+o.raw,n.text+="\n"+o.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=n.text):t.push(o);continue}if(e){let t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw Error(t)}}return this.state.top=!0,t}inline(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e){var t,n,r,i,a,o;let s,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];this.tokenizer.lexer=this;let c=e,u=null;if(this.tokens.links){let e=Object.keys(this.tokens.links);if(e.length>0)for(;null!==(u=this.tokenizer.rules.inline.reflinkSearch.exec(c));)e.includes(u[0].slice(u[0].lastIndexOf("[")+1,-1))&&(c=c.slice(0,u.index)+"["+"a".repeat(u[0].length-2)+"]"+c.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!==(u=this.tokenizer.rules.inline.anyPunctuation.exec(c));)c=c.slice(0,u.index)+"++"+c.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;null!==(u=this.tokenizer.rules.inline.blockSkip.exec(c));)s=u[2]?u[2].length:0,c=c.slice(0,u.index+s)+"["+"a".repeat(u[0].length-s-2)+"]"+c.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);c=null!=(r=null==(n=this.options.hooks)||null==(t=n.emStrongMask)?void 0:t.call({lexer:this},c))?r:c;let h=!1,p="";for(;e;){let t;if(h||(p=""),h=!1,null==(a=this.options.extensions)||null==(i=a.inline)?void 0:i.some(n=>!!(t=n.call({lexer:this},e,l))&&(e=e.substring(t.raw.length),l.push(t),!0)))continue;if((t=this.tokenizer.escape(e))||(t=this.tokenizer.tag(e))||(t=this.tokenizer.link(e))){e=e.substring(t.raw.length),l.push(t);continue}if(t=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(t.raw.length);let n=l.at(-1);"text"===t.type&&(null==n?void 0:n.type)==="text"?(n.raw+=t.raw,n.text+=t.text):l.push(t);continue}if((t=this.tokenizer.emStrong(e,c,p))||(t=this.tokenizer.codespan(e))||(t=this.tokenizer.br(e))||(t=this.tokenizer.del(e,c,p))||(t=this.tokenizer.autolink(e))||!this.state.inLink&&(t=this.tokenizer.url(e))){e=e.substring(t.raw.length),l.push(t);continue}let n=e;if(null==(o=this.options.extensions)?void 0:o.startInline){let t=1/0,r=e.slice(1),i;this.options.extensions.startInline.forEach(e=>{"number"==typeof(i=e.call({lexer:this},r))&&i>=0&&(t=Math.min(t,i))}),t<1/0&&t>=0&&(n=e.substring(0,t+1))}if(t=this.tokenizer.inlineText(n)){e=e.substring(t.raw.length),"_"!==t.raw.slice(-1)&&(p=t.raw.slice(-1)),h=!0;let n=l.at(-1);(null==n?void 0:n.type)==="text"?(n.raw+=t.raw,n.text+=t.text):l.push(t);continue}if(e){let t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw Error(t)}}return l}constructor(e){(0,V._)(this,"tokens",void 0),(0,V._)(this,"options",void 0),(0,V._)(this,"state",void 0),(0,V._)(this,"inlineQueue",void 0),(0,V._)(this,"tokenizer",void 0),this.tokens=[],this.tokens.links=Object.create(null),this.options=e||X,this.options.tokenizer=this.options.tokenizer||new e6,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let t={other:K,block:eX.normal,inline:eY.normal};this.options.pedantic?(t.block=eX.pedantic,t.inline=eY.pedantic):this.options.gfm&&(t.block=eX.gfm,this.options.breaks?t.inline=eY.breaks:t.inline=eY.gfm),this.tokenizer.rules=t}},e2=class{space(e){return""}code(e){var t;let{text:n,lang:r,escaped:i}=e,a=null==(t=(r||"").match(K.notSpaceStart))?void 0:t[0],o=n.replace(K.endingNewline,"")+"\n";return a?'<pre><code class="language-'+eK(a)+'">'+(i?o:eK(o,!0))+"</code></pre>\n":"<pre><code>"+(i?o:eK(o,!0))+"</code></pre>\n"}blockquote(e){let{tokens:t}=e;return"<blockquote>\n".concat(this.parser.parse(t),"</blockquote>\n")}html(e){let{text:t}=e;return t}def(e){return""}heading(e){let{tokens:t,depth:n}=e;return"<h".concat(n,">").concat(this.parser.parseInline(t),"</h").concat(n,">\n")}hr(e){return"<hr>\n"}list(e){let t=e.ordered,n=e.start,r="";for(let t=0;t<e.items.length;t++){let n=e.items[t];r+=this.listitem(n)}let i=t?"ol":"ul";return"<"+i+(t&&1!==n?' start="'+n+'"':"")+">\n"+r+"</"+i+">\n"}listitem(e){return"<li>".concat(this.parser.parse(e.tokens),"</li>\n")}checkbox(e){let{checked:t}=e;return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox"> '}paragraph(e){let{tokens:t}=e;return"<p>".concat(this.parser.parseInline(t),"</p>\n")}table(e){let t="",n="";for(let t=0;t<e.header.length;t++)n+=this.tablecell(e.header[t]);t+=this.tablerow({text:n});let r="";for(let t=0;t<e.rows.length;t++){let i=e.rows[t];n="";for(let e=0;e<i.length;e++)n+=this.tablecell(i[e]);r+=this.tablerow({text:n})}return r&&(r="<tbody>".concat(r,"</tbody>")),"<table>\n<thead>\n"+t+"</thead>\n"+r+"</table>\n"}tablerow(e){let{text:t}=e;return"<tr>\n".concat(t,"</tr>\n")}tablecell(e){let t=this.parser.parseInline(e.tokens),n=e.header?"th":"td";return(e.align?"<".concat(n,' align="').concat(e.align,'">'):"<".concat(n,">"))+t+"</".concat(n,">\n")}strong(e){let{tokens:t}=e;return"<strong>".concat(this.parser.parseInline(t),"</strong>")}em(e){let{tokens:t}=e;return"<em>".concat(this.parser.parseInline(t),"</em>")}codespan(e){let{text:t}=e;return"<code>".concat(eK(t,!0),"</code>")}br(e){return"<br>"}del(e){let{tokens:t}=e;return"<del>".concat(this.parser.parseInline(t),"</del>")}link(e){let{href:t,title:n,tokens:r}=e,i=this.parser.parseInline(r),a=eQ(t);if(null===a)return i;let o='<a href="'+(t=a)+'"';return n&&(o+=' title="'+eK(n)+'"'),o+=">"+i+"</a>"}image(e){let{href:t,title:n,text:r,tokens:i}=e;i&&(r=this.parser.parseInline(i,this.parser.textRenderer));let a=eQ(t);if(null===a)return eK(r);t=a;let o='<img src="'.concat(t,'" alt="').concat(eK(r),'"');return n&&(o+=' title="'.concat(eK(n),'"')),o+=">"}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:eK(e.text)}constructor(e){(0,V._)(this,"options",void 0),(0,V._)(this,"parser",void 0),this.options=e||X}},e7=class{strong(e){let{text:t}=e;return t}em(e){let{text:t}=e;return t}codespan(e){let{text:t}=e;return t}del(e){let{text:t}=e;return t}html(e){let{text:t}=e;return t}text(e){let{text:t}=e;return t}link(e){let{text:t}=e;return""+t}image(e){let{text:t}=e;return""+t}br(){return""}checkbox(e){let{raw:t}=e;return t}},e8=class e{static parse(t,n){return new e(n).parse(t)}static parseInline(t,n){return new e(n).parseInline(t)}parse(e){this.renderer.parser=this;let t="";for(let i=0;i<e.length;i++){var n,r;let a=e[i];if(null==(r=this.options.extensions)||null==(n=r.renderers)?void 0:n[a.type]){let e=this.options.extensions.renderers[a.type].call({parser:this},a);if(!1!==e||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(a.type)){t+=e||"";continue}}switch(a.type){case"space":t+=this.renderer.space(a);break;case"hr":t+=this.renderer.hr(a);break;case"heading":t+=this.renderer.heading(a);break;case"code":t+=this.renderer.code(a);break;case"table":t+=this.renderer.table(a);break;case"blockquote":t+=this.renderer.blockquote(a);break;case"list":t+=this.renderer.list(a);break;case"checkbox":t+=this.renderer.checkbox(a);break;case"html":t+=this.renderer.html(a);break;case"def":t+=this.renderer.def(a);break;case"paragraph":t+=this.renderer.paragraph(a);break;case"text":t+=this.renderer.text(a);break;default:{let e='Token with "'+a.type+'" type was not found.';if(this.options.silent)return console.error(e),"";throw Error(e)}}}return t}parseInline(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.renderer;this.renderer.parser=this;let n="";for(let a=0;a<e.length;a++){var r,i;let o=e[a];if(null==(i=this.options.extensions)||null==(r=i.renderers)?void 0:r[o.type]){let e=this.options.extensions.renderers[o.type].call({parser:this},o);if(!1!==e||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(o.type)){n+=e||"";continue}}switch(o.type){case"escape":case"text":n+=t.text(o);break;case"html":n+=t.html(o);break;case"link":n+=t.link(o);break;case"image":n+=t.image(o);break;case"checkbox":n+=t.checkbox(o);break;case"strong":n+=t.strong(o);break;case"em":n+=t.em(o);break;case"codespan":n+=t.codespan(o);break;case"br":n+=t.br(o);break;case"del":n+=t.del(o);break;default:{let e='Token with "'+o.type+'" type was not found.';if(this.options.silent)return console.error(e),"";throw Error(e)}}}return n}constructor(e){(0,V._)(this,"options",void 0),(0,V._)(this,"renderer",void 0),(0,V._)(this,"textRenderer",void 0),this.options=e||X,this.options.renderer=this.options.renderer||new e2,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new e7}},e9=(o=class{preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.block;return e?e3.lex:e3.lexInline}provideParser(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.block;return e?e8.parse:e8.parseInline}constructor(e){(0,V._)(this,"options",void 0),(0,V._)(this,"block",void 0),this.options=e||X}},(0,V._)(o,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),(0,V._)(o,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),o),te=new class{walkTokens(e,t){let n=[];for(let a of e)switch(n=n.concat(t.call(this,a)),a.type){case"table":for(let e of a.header)n=n.concat(this.walkTokens(e.tokens,t));for(let e of a.rows)for(let r of e)n=n.concat(this.walkTokens(r.tokens,t));break;case"list":n=n.concat(this.walkTokens(a.items,t));break;default:{var r,i;let e=a;(null==(i=this.defaults.extensions)||null==(r=i.childTokens)?void 0:r[e.type])?this.defaults.extensions.childTokens[e.type].forEach(r=>{let i=e[r].flat(1/0);n=n.concat(this.walkTokens(i,t))}):e.tokens&&(n=n.concat(this.walkTokens(e.tokens,t)))}}return n}use(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];let r=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(e=>{let t={...e};if(t.async=this.defaults.async||t.async||!1,e.extensions&&(e.extensions.forEach(e=>{if(!e.name)throw Error("extension name required");if("renderer"in e){let t=r.renderers[e.name];t?r.renderers[e.name]=function(){for(var n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];let a=e.renderer.apply(this,r);return!1===a&&(a=t.apply(this,r)),a}:r.renderers[e.name]=e.renderer}if("tokenizer"in e){if(!e.level||"block"!==e.level&&"inline"!==e.level)throw Error("extension level must be 'block' or 'inline'");let t=r[e.level];t?t.unshift(e.tokenizer):r[e.level]=[e.tokenizer],e.start&&("block"===e.level?r.startBlock?r.startBlock.push(e.start):r.startBlock=[e.start]:"inline"===e.level&&(r.startInline?r.startInline.push(e.start):r.startInline=[e.start]))}"childTokens"in e&&e.childTokens&&(r.childTokens[e.name]=e.childTokens)}),t.extensions=r),e.renderer){let n=this.defaults.renderer||new e2(this.defaults);for(let t in e.renderer){if(!(t in n))throw Error("renderer '".concat(t,"' does not exist"));if(["options","parser"].includes(t))continue;let r=e.renderer[t],i=n[t];n[t]=function(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a];let o=r.apply(n,t);return!1===o&&(o=i.apply(n,t)),o||""}}t.renderer=n}if(e.tokenizer){let n=this.defaults.tokenizer||new e6(this.defaults);for(let t in e.tokenizer){if(!(t in n))throw Error("tokenizer '".concat(t,"' does not exist"));if(["options","rules","lexer"].includes(t))continue;let r=e.tokenizer[t],i=n[t];n[t]=function(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a];let o=r.apply(n,t);return!1===o&&(o=i.apply(n,t)),o}}t.tokenizer=n}if(e.hooks){let r=this.defaults.hooks||new e9;for(let t in e.hooks){var n=this;if(!(t in r))throw Error("hook '".concat(t,"' does not exist"));if(["options","block"].includes(t))continue;let i=e.hooks[t],a=r[t];e9.passThroughHooks.has(t)?r[t]=e=>{if(this.defaults.async&&e9.passThroughHooksRespectAsync.has(t))return(async()=>{let t=await i.call(r,e);return a.call(r,t)})();let n=i.call(r,e);return a.call(r,n)}:r[t]=function(){for(var e=arguments.length,t=Array(e),o=0;o<e;o++)t[o]=arguments[o];if(n.defaults.async)return(async()=>{let e=await i.apply(r,t);return!1===e&&(e=await a.apply(r,t)),e})();let s=i.apply(r,t);return!1===s&&(s=a.apply(r,t)),s}}t.hooks=r}if(e.walkTokens){let n=this.defaults.walkTokens,r=e.walkTokens;t.walkTokens=function(e){let t=[];return t.push(r.call(this,e)),n&&(t=t.concat(n.call(this,e))),t}}this.defaults={...this.defaults,...t}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return e3.lex(e,null!=t?t:this.defaults)}parser(e,t){return e8.parse(e,null!=t?t:this.defaults)}parseMarkdown(e){return(t,n)=>{let r={...n},i={...this.defaults,...r},a=this.onError(!!i.silent,!!i.async);if(!0===this.defaults.async&&!1===r.async)return a(Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof t>"u"||null===t)return a(Error("marked(): input parameter is undefined or null"));if("string"!=typeof t)return a(Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));if(i.hooks&&(i.hooks.options=i,i.hooks.block=e),i.async)return(async()=>{let n=i.hooks?await i.hooks.preprocess(t):t,r=await (i.hooks?await i.hooks.provideLexer(e):e?e3.lex:e3.lexInline)(n,i),a=i.hooks?await i.hooks.processAllTokens(r):r;i.walkTokens&&await Promise.all(this.walkTokens(a,i.walkTokens));let o=await (i.hooks?await i.hooks.provideParser(e):e?e8.parse:e8.parseInline)(a,i);return i.hooks?await i.hooks.postprocess(o):o})().catch(a);try{i.hooks&&(t=i.hooks.preprocess(t));let n=(i.hooks?i.hooks.provideLexer(e):e?e3.lex:e3.lexInline)(t,i);i.hooks&&(n=i.hooks.processAllTokens(n)),i.walkTokens&&this.walkTokens(n,i.walkTokens);let r=(i.hooks?i.hooks.provideParser(e):e?e8.parse:e8.parseInline)(n,i);return i.hooks&&(r=i.hooks.postprocess(r)),r}catch(e){return a(e)}}}onError(e,t){return n=>{if(n.message+="\nPlease report this to https://github.com/markedjs/marked.",e){let e="<p>An error occurred:</p><pre>"+eK(n.message+"",!0)+"</pre>";return t?Promise.resolve(e):e}if(t)return Promise.reject(n);throw n}}constructor(...e){(0,V._)(this,"defaults",$()),(0,V._)(this,"options",this.setOptions),(0,V._)(this,"parse",this.parseMarkdown(!0)),(0,V._)(this,"parseInline",this.parseMarkdown(!1)),(0,V._)(this,"Parser",e8),(0,V._)(this,"Renderer",e2),(0,V._)(this,"TextRenderer",e7),(0,V._)(this,"Lexer",e3),(0,V._)(this,"Tokenizer",e6),(0,V._)(this,"Hooks",e9),this.use(...e)}};function tt(e,t){return te.parse(e,t)}function tn(e){if(!e||"object"!=typeof e)return"";let t=e.type;if("user"===t||"assistant"===t){let t=e.message;if(t&&void 0!==t.content)return function(e){if(null==e)return"";if("string"==typeof e)return e;if(!Array.isArray(e))try{return JSON.stringify(e,null,2)}catch(t){return String(e)}let t=[];for(let n of e)if(n&&"object"==typeof n){if("text"===n.type&&"string"==typeof n.text)t.push(n.text);else if("tool_use"===n.type){let e=n.name||"tool",r="";try{r=JSON.stringify(n.input,null,2)}catch(e){r=String(n.input)}t.push("\n\n**`".concat(e,"`**\n\n```json\n").concat(r.slice(0,12e3),"\n```\n"))}else if("tool_result"===n.type){let e=n.content;if("string"!=typeof e)try{e=JSON.stringify(e,null,2)}catch(t){e=String(e)}t.push("\n\n```\n".concat(String(e).slice(0,8e3),"\n```\n"))}}return t.join("")}(t.content)}return"system"===t&&"string"==typeof e.content?e.content:""}function tr(){}function ti(){}function ta(e){let t=[],n=String(e||""),r=n.indexOf(","),i=0,a=!1;for(;!a;){-1===r&&(r=n.length,a=!0);let e=n.slice(i,r).trim();(e||!a)&&t.push(e),i=r+1,r=n.indexOf(",",i)}return t}function to(e,t){let n=t||{};return(""===e[e.length-1]?[...e,""]:e).join((n.padRight?" ":"")+","+(!1===n.padLeft?"":" ")).trim()}tt.options=tt.setOptions=function(e){return te.setOptions(e),tt.defaults=te.defaults,X=tt.defaults,tt},tt.getDefaults=$,tt.defaults=X,tt.use=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return te.use(...t),tt.defaults=te.defaults,X=tt.defaults,tt},tt.walkTokens=function(e,t){return te.walkTokens(e,t)},tt.parseInline=te.parseInline,tt.Parser=e8,tt.parser=e8.parse,tt.Renderer=e2,tt.TextRenderer=e7,tt.Lexer=e3,tt.lexer=e3.lex,tt.Tokenizer=e6,tt.Hooks=e9,tt.parse=tt,tt.options,tt.setOptions,tt.use,tt.walkTokens,tt.parseInline,e8.parse,e3.lex,tt.setOptions({breaks:!0,gfm:!0}),RegExp("[$_\\p{ID_Start}]","u"),RegExp("[$_\\u{200C}\\u{200D}\\p{ID_Continue}]","u"),RegExp("[-$_\\u{200C}\\u{200D}\\p{ID_Continue}]","u");let ts=RegExp("^[$_\\p{ID_Start}][$_\\u{200C}\\u{200D}\\p{ID_Continue}]*$","u"),tl=RegExp("^[$_\\p{ID_Start}][-$_\\u{200C}\\u{200D}\\p{ID_Continue}]*$","u"),tc={};function tu(e,t){return((t||tc).jsx?tl:ts).test(e)}let th=/[ \t\n\f\r]/g;function tp(e){return"object"==typeof e?"text"===e.type&&td(e.value):td(e)}function td(e){return""===e.replace(th,"")}class tm{constructor(e,t){this.attribute=t,this.property=e}}tm.prototype.attribute="",tm.prototype.booleanish=!1,tm.prototype.boolean=!1,tm.prototype.commaOrSpaceSeparated=!1,tm.prototype.commaSeparated=!1,tm.prototype.defined=!1,tm.prototype.mustUseProperty=!1,tm.prototype.number=!1,tm.prototype.overloadedBoolean=!1,tm.prototype.property="",tm.prototype.spaceSeparated=!1,tm.prototype.space=void 0,e.s(["boolean",()=>tg,"booleanish",()=>ty,"commaOrSpaceSeparated",()=>tw,"commaSeparated",()=>tk,"number",()=>tv,"overloadedBoolean",()=>tb,"spaceSeparated",()=>tx],744);let tf=0,tg=tS(),ty=tS(),tb=tS(),tv=tS(),tx=tS(),tk=tS(),tw=tS();function tS(){return 2**++tf}var tA=e.i(744);let tC=Object.keys(tA);class tT extends tm{constructor(e,t,n,r){let i=-1;if(super(e,t),function(e,t,n){n&&(e[t]=n)}(this,"space",r),"number"==typeof n)for(;++i<tC.length;){let e=tC[i];!function(e,t,n){n&&(e[t]=n)}(this,tC[i],(n&tA[e])===tA[e])}}}function t_(e){return e.toLowerCase()}tT.prototype.defined=!0;let tM=/[A-Z]/g,tN=/-[a-z]/g,tE=/^data[-\w.:]+$/i;function tz(e,t){let n=t_(t),r=t,i=tm;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&tE.test(t)){if("-"===t.charAt(4)){let e=t.slice(5).replace(tN,tj);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!tN.test(e)){let n=e.replace(tM,tI);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}i=tT}return new i(r,t)}function tI(e){return"-"+e.toLowerCase()}function tj(e){return e.charAt(1).toUpperCase()}let tR={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"};class tL{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}}function tP(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new tL(n,r,t)}function tB(e){let t={},n={};for(let[r,i]of Object.entries(e.properties)){let a=new tT(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[t_(r)]=r,n[t_(a.attribute)]=r}return new tL(t,n,e.space)}tL.prototype.normal={},tL.prototype.property={},tL.prototype.space=void 0;let tO=tB({properties:{ariaActiveDescendant:null,ariaAtomic:ty,ariaAutoComplete:null,ariaBusy:ty,ariaChecked:ty,ariaColCount:tv,ariaColIndex:tv,ariaColSpan:tv,ariaControls:tx,ariaCurrent:null,ariaDescribedBy:tx,ariaDetails:null,ariaDisabled:ty,ariaDropEffect:tx,ariaErrorMessage:null,ariaExpanded:ty,ariaFlowTo:tx,ariaGrabbed:ty,ariaHasPopup:null,ariaHidden:ty,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:tx,ariaLevel:tv,ariaLive:null,ariaModal:ty,ariaMultiLine:ty,ariaMultiSelectable:ty,ariaOrientation:null,ariaOwns:tx,ariaPlaceholder:null,ariaPosInSet:tv,ariaPressed:ty,ariaReadOnly:ty,ariaRelevant:null,ariaRequired:ty,ariaRoleDescription:tx,ariaRowCount:tv,ariaRowIndex:tv,ariaRowSpan:tv,ariaSelected:ty,ariaSetSize:tv,ariaSort:null,ariaValueMax:tv,ariaValueMin:tv,ariaValueNow:tv,ariaValueText:null,role:null},transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase()});function tD(e,t){return t in e?e[t]:t}function tF(e,t){return tD(e,t.toLowerCase())}let tq=tB({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:tk,acceptCharset:tx,accessKey:tx,action:null,allow:null,allowFullScreen:tg,allowPaymentRequest:tg,allowUserMedia:tg,alt:null,as:null,async:tg,autoCapitalize:null,autoComplete:tx,autoFocus:tg,autoPlay:tg,blocking:tx,capture:null,charSet:null,checked:tg,cite:null,className:tx,cols:tv,colSpan:null,content:null,contentEditable:ty,controls:tg,controlsList:tx,coords:tv|tk,crossOrigin:null,data:null,dateTime:null,decoding:null,default:tg,defer:tg,dir:null,dirName:null,disabled:tg,download:tb,draggable:ty,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:tg,formTarget:null,headers:tx,height:tv,hidden:tb,high:tv,href:null,hrefLang:null,htmlFor:tx,httpEquiv:tx,id:null,imageSizes:null,imageSrcSet:null,inert:tg,inputMode:null,integrity:null,is:null,isMap:tg,itemId:null,itemProp:tx,itemRef:tx,itemScope:tg,itemType:tx,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:tg,low:tv,manifest:null,max:null,maxLength:tv,media:null,method:null,min:null,minLength:tv,multiple:tg,muted:tg,name:null,nonce:null,noModule:tg,noValidate:tg,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:tg,optimum:tv,pattern:null,ping:tx,placeholder:null,playsInline:tg,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:tg,referrerPolicy:null,rel:tx,required:tg,reversed:tg,rows:tv,rowSpan:tv,sandbox:tx,scope:null,scoped:tg,seamless:tg,selected:tg,shadowRootClonable:tg,shadowRootDelegatesFocus:tg,shadowRootMode:null,shape:null,size:tv,sizes:null,slot:null,span:tv,spellCheck:ty,src:null,srcDoc:null,srcLang:null,srcSet:null,start:tv,step:null,style:null,tabIndex:tv,target:null,title:null,translate:null,type:null,typeMustMatch:tg,useMap:null,value:ty,width:tv,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:tx,axis:null,background:null,bgColor:null,border:tv,borderColor:null,bottomMargin:tv,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:tg,declare:tg,event:null,face:null,frame:null,frameBorder:null,hSpace:tv,leftMargin:tv,link:null,longDesc:null,lowSrc:null,marginHeight:tv,marginWidth:tv,noResize:tg,noHref:tg,noShade:tg,noWrap:tg,object:null,profile:null,prompt:null,rev:null,rightMargin:tv,rules:null,scheme:null,scrolling:ty,standby:null,summary:null,text:null,topMargin:tv,valueType:null,version:null,vAlign:null,vLink:null,vSpace:tv,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:tg,disableRemotePlayback:tg,prefix:null,property:null,results:tv,security:null,unselectable:null},space:"html",transform:tF}),tH=tB({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:tw,accentHeight:tv,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:tv,amplitude:tv,arabicForm:null,ascent:tv,attributeName:null,attributeType:null,azimuth:tv,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:tv,by:null,calcMode:null,capHeight:tv,className:tx,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:tv,diffuseConstant:tv,direction:null,display:null,dur:null,divisor:tv,dominantBaseline:null,download:tg,dx:null,dy:null,edgeMode:null,editable:null,elevation:tv,enableBackground:null,end:null,event:null,exponent:tv,externalResourcesRequired:null,fill:null,fillOpacity:tv,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:tk,g2:tk,glyphName:tk,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:tv,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:tv,horizOriginX:tv,horizOriginY:tv,id:null,ideographic:tv,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:tv,k:tv,k1:tv,k2:tv,k3:tv,k4:tv,kernelMatrix:tw,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:tv,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:tv,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:tv,overlineThickness:tv,paintOrder:null,panose1:null,path:null,pathLength:tv,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:tx,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:tv,pointsAtY:tv,pointsAtZ:tv,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:tw,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:tw,rev:tw,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:tw,requiredFeatures:tw,requiredFonts:tw,requiredFormats:tw,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:tv,specularExponent:tv,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:tv,strikethroughThickness:tv,string:null,stroke:null,strokeDashArray:tw,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:tv,strokeOpacity:tv,strokeWidth:null,style:null,surfaceScale:tv,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:tw,tabIndex:tv,tableValues:null,target:null,targetX:tv,targetY:tv,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:tw,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:tv,underlineThickness:tv,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:tv,values:null,vAlphabetic:tv,vMathematical:tv,vectorEffect:null,vHanging:tv,vIdeographic:tv,version:null,vertAdvY:tv,vertOriginX:tv,vertOriginY:tv,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:tv,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:tD}),tU=tB({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase()}),tG=tB({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:tF}),tW=tB({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase()}),tV=tP([tO,tq,tU,tG,tW],"html"),t$=tP([tO,tH,tU,tG,tW],"svg");function tX(e){let t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function tY(e){return e.join(" ").trim()}var tJ=e.i(15511);let tZ=tQ("end"),tK=tQ("start");function tQ(e){return function(t){let n=t&&t.position&&t.position[e]||{};if("number"==typeof n.line&&n.line>0&&"number"==typeof n.column&&n.column>0)return{line:n.line,column:n.column,offset:"number"==typeof n.offset&&n.offset>-1?n.offset:void 0}}}function t0(e){let t=tK(e),n=tZ(e);if(t&&n)return{start:t,end:n}}function t1(e){return e&&"object"==typeof e?"position"in e||"type"in e?t5(e.position):"start"in e||"end"in e?t5(e):"line"in e||"column"in e?t4(e):"":""}function t4(e){return t6(e&&e.line)+":"+t6(e&&e.column)}function t5(e){return t4(e&&e.start)+"-"+t4(e&&e.end)}function t6(e){return e&&"number"==typeof e?e:1}class t3 extends Error{constructor(e,t,n){super(),"string"==typeof t&&(n=t,t=void 0);let r="",i={},a=!1;if(t&&(i="line"in t&&"column"in t||"start"in t&&"end"in t?{place:t}:"type"in t?{ancestors:[t],place:t.position}:{...t}),"string"==typeof e?r=e:!i.cause&&e&&(a=!0,r=e.message,i.cause=e),!i.ruleId&&!i.source&&"string"==typeof n){let e=n.indexOf(":");-1===e?i.ruleId=n:(i.source=n.slice(0,e),i.ruleId=n.slice(e+1))}if(!i.place&&i.ancestors&&i.ancestors){let e=i.ancestors[i.ancestors.length-1];e&&(i.place=e.position)}let o=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file="",this.message=r,this.line=o?o.line:void 0,this.name=t1(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=a&&i.cause&&"string"==typeof i.cause.stack?i.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}t3.prototype.file="",t3.prototype.name="",t3.prototype.reason="",t3.prototype.message="",t3.prototype.stack="",t3.prototype.column=void 0,t3.prototype.line=void 0,t3.prototype.ancestors=void 0,t3.prototype.cause=void 0,t3.prototype.fatal=void 0,t3.prototype.place=void 0,t3.prototype.ruleId=void 0,t3.prototype.source=void 0;let t2={}.hasOwnProperty,t7=new Map,t8=/[A-Z]/g,t9=new Set(["table","tbody","thead","tfoot","tr"]),ne=new Set(["td","th"]),nt="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function nn(e,t,n){return"element"===t.type?function(e,t,n){let r=e.schema;"svg"===t.tagName.toLowerCase()&&"html"===r.space&&(e.schema=t$),e.ancestors.push(t);let i=no(e,t.tagName,!1),a=function(e,t){let n,r,i={};for(r in t.properties)if("children"!==r&&t2.call(t.properties,r)){let a=function(e,t,n){let r=tz(e.schema,t);if(!(null==n||"number"==typeof n&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?to(n):tY(n)),"style"===r.property){let t="object"==typeof n?n:function(e,t){try{return(0,tJ.default)(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};let t=new t3("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:n,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw t.file=e.filePath||void 0,t.url=nt+"#cannot-parse-style-attribute",t}}(e,String(n));return"css"===e.stylePropertyNameCase&&(t=function(e){let t,n={};for(t in e)t2.call(e,t)&&(n[function(e){let t=e.replace(t8,nl);return"ms-"===t.slice(0,3)&&(t="-"+t),t}(t)]=e[t]);return n}(t)),["style",t]}return["react"===e.elementAttributeNameCase&&r.space?tR[r.property]||r.property:r.attribute,n]}}(e,r,t.properties[r]);if(a){let[r,o]=a;e.tableCellAlignToStyle&&"align"===r&&"string"==typeof o&&ne.has(t.tagName)?n=o:i[r]=o}}return n&&((i.style||(i.style={}))["css"===e.stylePropertyNameCase?"text-align":"textAlign"]=n),i}(e,t),o=na(e,t);return t9.has(t.tagName)&&(o=o.filter(function(e){return"string"!=typeof e||!tp(e)})),nr(e,a,i,t),ni(a,o),e.ancestors.pop(),e.schema=r,e.create(t,i,a,n)}(e,t,n):"mdxFlowExpression"===t.type||"mdxTextExpression"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater){let n=t.data.estree.body[0];return tr("ExpressionStatement"===n.type),e.evaluater.evaluateExpression(n.expression)}ns(e,t.position)}(e,t):"mdxJsxFlowElement"===t.type||"mdxJsxTextElement"===t.type?function(e,t,n){let r=e.schema;"svg"===t.name&&"html"===r.space&&(e.schema=t$),e.ancestors.push(t);let i=null===t.name?e.Fragment:no(e,t.name,!0),a=function(e,t){let n={};for(let r of t.attributes)if("mdxJsxExpressionAttribute"===r.type)if(r.data&&r.data.estree&&e.evaluater){let t=r.data.estree.body[0];tr("ExpressionStatement"===t.type);let i=t.expression;tr("ObjectExpression"===i.type);let a=i.properties[0];tr("SpreadElement"===a.type),Object.assign(n,e.evaluater.evaluateExpression(a.argument))}else ns(e,t.position);else{let i,a=r.name;if(r.value&&"object"==typeof r.value)if(r.value.data&&r.value.data.estree&&e.evaluater){let t=r.value.data.estree.body[0];tr("ExpressionStatement"===t.type),i=e.evaluater.evaluateExpression(t.expression)}else ns(e,t.position);else i=null===r.value||r.value;n[a]=i}return n}(e,t),o=na(e,t);return nr(e,a,i,t),ni(a,o),e.ancestors.pop(),e.schema=r,e.create(t,i,a,n)}(e,t,n):"mdxjsEsm"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);ns(e,t.position)}(e,t):"root"===t.type?function(e,t,n){let r={};return ni(r,na(e,t)),e.create(t,e.Fragment,r,n)}(e,t,n):"text"===t.type?t.value:void 0}function nr(e,t,n,r){"string"!=typeof n&&n!==e.Fragment&&e.passNode&&(t.node=r)}function ni(e,t){if(t.length>0){let n=t.length>1?t:t[0];n&&(e.children=n)}}function na(e,t){let n=[],r=-1,i=e.passKeys?new Map:t7;for(;++r<t.children.length;){let a,o=t.children[r];if(e.passKeys){let e="element"===o.type?o.tagName:"mdxJsxFlowElement"===o.type||"mdxJsxTextElement"===o.type?o.name:void 0;if(e){let t=i.get(e)||0;a=e+"-"+t,i.set(e,t+1)}}let s=nn(e,o,a);void 0!==s&&n.push(s)}return n}function no(e,t,n){let r;if(n)if(t.includes(".")){let e,n=t.split("."),i=-1;for(;++i<n.length;){let t=tu(n[i])?{type:"Identifier",name:n[i]}:{type:"Literal",value:n[i]};e=e?{type:"MemberExpression",object:e,property:t,computed:!!(i&&"Literal"===t.type),optional:!1}:t}tr(e,"always a result"),r=e}else r=tu(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};else r={type:"Literal",value:t};if("Literal"===r.type){let t=r.value;return t2.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);ns(e)}function ns(e,t){let n=new t3("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=nt+"#cannot-handle-mdx-estrees-without-createevaluater",n}function nl(e){return"-"+e.toLowerCase()}let nc={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},nu={};function nh(e,t){let n=t||nu;return np(e,"boolean"!=typeof n.includeImageAlt||n.includeImageAlt,"boolean"!=typeof n.includeHtml||n.includeHtml)}function np(e,t,n){var r;if((r=e)&&"object"==typeof r){if("value"in e)return"html"!==e.type||n?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return nd(e.children,t,n)}return Array.isArray(e)?nd(e,t,n):""}function nd(e,t,n){let r=[],i=-1;for(;++i<e.length;)r[i]=np(e[i],t,n);return r.join("")}function nm(e,t,n,r){let i,a=e.length,o=0;if(t=t<0?-t>a?0:a+t:t>a?a:t,n=n>0?n:0,r.length<1e4)(i=Array.from(r)).unshift(t,n),e.splice(...i);else for(n&&e.splice(t,n);o<r.length;)(i=r.slice(o,o+1e4)).unshift(t,0),e.splice(...i),o+=1e4,t+=1e4}function nf(e,t){return e.length>0?(nm(e,e.length,0,t),e):t}let ng={}.hasOwnProperty;function ny(e){let t={},n=-1;for(;++n<e.length;)!function(e,t){let n;for(n in t){let r,i=(ng.call(e,n)?e[n]:void 0)||(e[n]={}),a=t[n];if(a)for(r in a){ng.call(i,r)||(i[r]=[]);let e=a[r];!function(e,t){let n=-1,r=[];for(;++n<t.length;)("after"===t[n].add?e:r).push(t[n]);nm(e,0,0,r)}(i[r],Array.isArray(e)?e:e?[e]:[])}}}(t,e[n]);return t}let nb=nE(/[A-Za-z]/),nv=nE(/[\dA-Za-z]/),nx=nE(/[#-'*+\--9=?A-Z^-~]/);function nk(e){return null!==e&&(e<32||127===e)}let nw=nE(/\d/),nS=nE(/[\dA-Fa-f]/),nA=nE(/[!-/:-@[-`{-~]/);function nC(e){return null!==e&&e<-2}function nT(e){return null!==e&&(e<0||32===e)}function n_(e){return -2===e||-1===e||32===e}let nM=nE(RegExp("\\p{P}|\\p{S}","u")),nN=nE(/\s/);function nE(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}function nz(e,t,n,r){let i=r?r-1:1/0,a=0;return function(r){return n_(r)?(e.enter(n),function r(o){return n_(o)&&a++<i?(e.consume(o),r):(e.exit(n),t(o))}(r)):t(r)}}let nI={tokenize:function(e){let t,n=e.attempt(this.parser.constructs.contentInitial,function(t){return null===t?void e.consume(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),nz(e,n,"linePrefix"))},function(n){return e.enter("paragraph"),function n(r){let i=e.enter("chunkText",{contentType:"text",previous:t});return t&&(t.next=i),t=i,function t(r){if(null===r){e.exit("chunkText"),e.exit("paragraph"),e.consume(r);return}return nC(r)?(e.consume(r),e.exit("chunkText"),n):(e.consume(r),t)}(r)}(n)});return n}},nj={tokenize:function(e){let t,n,r,i=this,a=[],o=0;return s;function s(t){if(o<a.length){let n=a[o];return i.containerState=n[1],e.attempt(n[0].continuation,l,c)(t)}return c(t)}function l(e){if(o++,i.containerState._closeFlow){let n;i.containerState._closeFlow=void 0,t&&y();let r=i.events.length,a=r;for(;a--;)if("exit"===i.events[a][0]&&"chunkFlow"===i.events[a][1].type){n=i.events[a][1].end;break}g(o);let s=r;for(;s<i.events.length;)i.events[s][1].end={...n},s++;return nm(i.events,a+1,0,i.events.slice(r)),i.events.length=s,c(e)}return s(e)}function c(n){if(o===a.length){if(!t)return p(n);if(t.currentConstruct&&t.currentConstruct.concrete)return m(n);i.interrupt=!!(t.currentConstruct&&!t._gfmTableDynamicInterruptHack)}return i.containerState={},e.check(nR,u,h)(n)}function u(e){return t&&y(),g(o),p(e)}function h(e){return i.parser.lazy[i.now().line]=o!==a.length,r=i.now().offset,m(e)}function p(t){return i.containerState={},e.attempt(nR,d,m)(t)}function d(e){return o++,a.push([i.currentConstruct,i.containerState]),p(e)}function m(r){if(null===r){t&&y(),g(0),e.consume(r);return}return t=t||i.parser.flow(i.now()),e.enter("chunkFlow",{_tokenizer:t,contentType:"flow",previous:n}),function t(n){if(null===n){f(e.exit("chunkFlow"),!0),g(0),e.consume(n);return}return nC(n)?(e.consume(n),f(e.exit("chunkFlow")),o=0,i.interrupt=void 0,s):(e.consume(n),t)}(r)}function f(e,a){let s=i.sliceStream(e);if(a&&s.push(null),e.previous=n,n&&(n.next=e),n=e,t.defineSkip(e.start),t.write(s),i.parser.lazy[e.start.line]){let e,n,a=t.events.length;for(;a--;)if(t.events[a][1].start.offset<r&&(!t.events[a][1].end||t.events[a][1].end.offset>r))return;let s=i.events.length,l=s;for(;l--;)if("exit"===i.events[l][0]&&"chunkFlow"===i.events[l][1].type){if(e){n=i.events[l][1].end;break}e=!0}for(g(o),a=s;a<i.events.length;)i.events[a][1].end={...n},a++;nm(i.events,l+1,0,i.events.slice(s)),i.events.length=a}}function g(t){let n=a.length;for(;n-- >t;){let t=a[n];i.containerState=t[1],t[0].exit.call(i,e)}a.length=t}function y(){t.write([null]),n=void 0,t=void 0,i.containerState._closeFlow=void 0}}},nR={tokenize:function(e,t,n){return nz(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}},nL={partial:!0,tokenize:function(e,t,n){return function(t){return n_(t)?nz(e,r,"linePrefix")(t):r(t)};function r(e){return null===e||nC(e)?t(e):n(e)}}};class nP{get(e){if(e<0||e>=this.left.length+this.right.length)throw RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){let n=null==t?1/0:t;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){this.setCursor(Math.trunc(e));let r=this.right.splice(this.right.length-(t||0),1/0);return n&&nB(this.left,n),r.reverse()}pop(){return this.setCursor(1/0),this.left.pop()}push(e){this.setCursor(1/0),this.left.push(e)}pushMany(e){this.setCursor(1/0),nB(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),nB(this.right,e.reverse())}setCursor(e){if(e!==this.left.length&&(!(e>this.left.length)||0!==this.right.length)&&(!(e<0)||0!==this.left.length))if(e<this.left.length){let t=this.left.splice(e,1/0);nB(this.right,t.reverse())}else{let t=this.right.splice(this.left.length+this.right.length-e,1/0);nB(this.left,t.reverse())}}constructor(e){this.left=e?[...e]:[],this.right=[]}}function nB(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function nO(e){let t,n,r,i,a,o,s,l={},c=-1,u=new nP(e);for(;++c<u.length;){for(;c in l;)c=l[c];if(t=u.get(c),c&&"chunkFlow"===t[1].type&&"listItemPrefix"===u.get(c-1)[1].type&&((r=0)<(o=t[1]._tokenizer.events).length&&"lineEndingBlank"===o[r][1].type&&(r+=2),r<o.length&&"content"===o[r][1].type))for(;++r<o.length&&"content"!==o[r][1].type;)"chunkText"===o[r][1].type&&(o[r][1]._isInFirstContentOfListItem=!0,r++);if("enter"===t[0])t[1].contentType&&(Object.assign(l,function(e,t){let n,r,i=e.get(t)[1],a=e.get(t)[2],o=t-1,s=[],l=i._tokenizer;!l&&(l=a.parser[i.contentType](i.start),i._contentTypeTextTrailing&&(l._contentTypeTextTrailing=!0));let c=l.events,u=[],h={},p=-1,d=i,m=0,f=0,g=[0];for(;d;){for(;e.get(++o)[1]!==d;);s.push(o),!d._tokenizer&&(n=a.sliceStream(d),d.next||n.push(null),r&&l.defineSkip(d.start),d._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=!0),l.write(n),d._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=void 0)),r=d,d=d.next}for(d=i;++p<c.length;)"exit"===c[p][0]&&"enter"===c[p-1][0]&&c[p][1].type===c[p-1][1].type&&c[p][1].start.line!==c[p][1].end.line&&(f=p+1,g.push(f),d._tokenizer=void 0,d.previous=void 0,d=d.next);for(l.events=[],d?(d._tokenizer=void 0,d.previous=void 0):g.pop(),p=g.length;p--;){let t=c.slice(g[p],g[p+1]),n=s.pop();u.push([n,n+t.length-1]),e.splice(n,2,t)}for(u.reverse(),p=-1;++p<u.length;)h[m+u[p][0]]=m+u[p][1],m+=u[p][1]-u[p][0]-1;return h}(u,c)),c=l[c],s=!0);else if(t[1]._container){for(r=c,n=void 0;r--;)if("lineEnding"===(i=u.get(r))[1].type||"lineEndingBlank"===i[1].type)"enter"===i[0]&&(n&&(u.get(n)[1].type="lineEndingBlank"),i[1].type="lineEnding",n=r);else if("linePrefix"===i[1].type||"listItemIndent"===i[1].type);else break;n&&(t[1].end={...u.get(n)[1].start},(a=u.slice(n,c)).unshift(t),u.splice(n,c-n+1,a))}}return nm(e,0,1/0,u.slice(0)),!s}let nD={resolve:function(e){return nO(e),e},tokenize:function(e,t){let n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(t)};function r(t){return null===t?i(t):nC(t)?e.check(nF,a,i)(t):(e.consume(t),r)}function i(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function a(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}}},nF={partial:!0,tokenize:function(e,t,n){let r=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),nz(e,i,"linePrefix")};function i(i){if(null===i||nC(i))return n(i);let a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&a&&"linePrefix"===a[1].type&&a[2].sliceSerialize(a[1],!0).length>=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}}},nq={tokenize:function(e){let t=this,n=e.attempt(nL,function(r){return null===r?void e.consume(r):(e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n)},e.attempt(this.parser.constructs.flowInitial,r,nz(e,e.attempt(this.parser.constructs.flow,r,e.attempt(nD,r)),"linePrefix")));return n;function r(r){return null===r?void e.consume(r):(e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n)}}},nH={resolveAll:nV()},nU=nW("string"),nG=nW("text");function nW(e){return{resolveAll:nV("text"===e?n$:void 0),tokenize:function(t){let n=this,r=this.parser.constructs[e],i=t.attempt(r,a,o);return a;function a(e){return l(e)?i(e):o(e)}function o(e){return null===e?void t.consume(e):(t.enter("data"),t.consume(e),s)}function s(e){return l(e)?(t.exit("data"),i(e)):(t.consume(e),s)}function l(e){if(null===e)return!0;let t=r[e],i=-1;if(t)for(;++i<t.length;){let e=t[i];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}}}}function nV(e){return function(t,n){let r,i=-1;for(;++i<=t.length;)void 0===r?t[i]&&"data"===t[i][1].type&&(r=i,i++):t[i]&&"data"===t[i][1].type||(i!==r+2&&(t[r][1].end=t[i-1][1].end,t.splice(r+2,i-r-2),i=r+2),r=void 0);return e?e(t,n):t}}function n$(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||"lineEnding"===e[n][1].type)&&"data"===e[n-1][1].type){let r,i=e[n-1][1],a=t.sliceStream(i),o=a.length,s=-1,l=0;for(;o--;){let e=a[o];if("string"==typeof e){for(s=e.length;32===e.charCodeAt(s-1);)l++,s--;if(s)break;s=-1}else if(-2===e)r=!0,l++;else if(-1===e);else{o++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(l=0),l){let a={type:n===e.length||r||l<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:o?s:i.start._bufferIndex+s,_index:i.start._index+o,line:i.end.line,column:i.end.column-l,offset:i.end.offset-l},end:{...i.end}};i.end={...a.start},i.start.offset===i.end.offset?Object.assign(i,a):(e.splice(n,0,["enter",a,t],["exit",a,t]),n+=2)}n++}return e}function nX(e){return null===e||nT(e)||nN(e)?1:nM(e)?2:void 0}function nY(e,t,n){let r=[],i=-1;for(;++i<e.length;){let a=e[i].resolveAll;a&&!r.includes(a)&&(t=a(t,n),r.push(a))}return t}e.s(["attentionMarkers",()=>rT,"contentInitial",()=>rx,"disable",()=>r_,"document",()=>rv,"flow",()=>rw,"flowInitial",()=>rk,"insideSpan",()=>rC,"string",()=>rS,"text",()=>rA],4127);let nJ={name:"attention",resolveAll:function(e,t){let n,r,i,a,o,s,l,c,u=-1;for(;++u<e.length;)if("enter"===e[u][0]&&"attentionSequence"===e[u][1].type&&e[u][1]._close){for(n=u;n--;)if("exit"===e[n][0]&&"attentionSequence"===e[n][1].type&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[u][1]).charCodeAt(0)){if((e[n][1]._close||e[u][1]._open)&&(e[u][1].end.offset-e[u][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[u][1].end.offset-e[u][1].start.offset)%3))continue;s=e[n][1].end.offset-e[n][1].start.offset>1&&e[u][1].end.offset-e[u][1].start.offset>1?2:1;let h={...e[n][1].end},p={...e[u][1].start};nZ(h,-s),nZ(p,s),a={type:s>1?"strongSequence":"emphasisSequence",start:h,end:{...e[n][1].end}},o={type:s>1?"strongSequence":"emphasisSequence",start:{...e[u][1].start},end:p},i={type:s>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[u][1].start}},r={type:s>1?"strong":"emphasis",start:{...a.start},end:{...o.end}},e[n][1].end={...a.start},e[u][1].start={...o.end},l=[],e[n][1].end.offset-e[n][1].start.offset&&(l=nf(l,[["enter",e[n][1],t],["exit",e[n][1],t]])),l=nf(l,[["enter",r,t],["enter",a,t],["exit",a,t],["enter",i,t]]),l=nf(l,nY(t.parser.constructs.insideSpan.null,e.slice(n+1,u),t)),l=nf(l,[["exit",i,t],["enter",o,t],["exit",o,t],["exit",r,t]]),e[u][1].end.offset-e[u][1].start.offset?(c=2,l=nf(l,[["enter",e[u][1],t],["exit",e[u][1],t]])):c=0,nm(e,n-1,u-n+3,l),u=n+l.length-c-2;break}}for(u=-1;++u<e.length;)"attentionSequence"===e[u][1].type&&(e[u][1].type="data");return e},tokenize:function(e,t){let n,r=this.parser.constructs.attentionMarkers.null,i=this.previous,a=nX(i);return function(o){return n=o,e.enter("attentionSequence"),function o(s){if(s===n)return e.consume(s),o;let l=e.exit("attentionSequence"),c=nX(s),u=!c||2===c&&a||r.includes(s),h=!a||2===a&&c||r.includes(i);return l._open=!!(42===n?u:u&&(a||!h)),l._close=!!(42===n?h:h&&(c||!u)),t(s)}(o)}}};function nZ(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}let nK={continuation:{tokenize:function(e,t,n){let r=this;return function(t){return n_(t)?nz(e,i,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):i(t)};function i(r){return e.attempt(nK,t,n)(r)}}},exit:function(e){e.exit("blockQuote")},name:"blockQuote",tokenize:function(e,t,n){let r=this;return function(t){if(62===t){let n=r.containerState;return n.open||(e.enter("blockQuote",{_container:!0}),n.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),i}return n(t)};function i(n){return n_(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}}},nQ={name:"characterEscape",tokenize:function(e,t,n){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),r};function r(r){return nA(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(r)}}},n0=document.createElement("i");function n1(e){let t="&"+e+";";n0.innerHTML=t;let n=n0.textContent;return(59!==n.charCodeAt(n.length-1)||"semi"===e)&&n!==t&&n}let n4={name:"characterReference",tokenize:function(e,t,n){let r,i,a=this,o=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),s};function s(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),l):(e.enter("characterReferenceValue"),r=31,i=nv,c(t))}function l(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),r=6,i=nS,c):(e.enter("characterReferenceValue"),r=7,i=nw,c(t))}function c(s){if(59===s&&o){let r=e.exit("characterReferenceValue");return i!==nv||n1(a.sliceSerialize(r))?(e.enter("characterReferenceMarker"),e.consume(s),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(s)}return i(s)&&o++<r?(e.consume(s),c):n(s)}}},n5={partial:!0,tokenize:function(e,t,n){let r=this;return function(t){return null===t?n(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},n6={concrete:!0,name:"codeFenced",tokenize:function(e,t,n){let r,i=this,a={partial:!0,tokenize:function(e,t,n){let a=0;return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o};function o(t){return e.enter("codeFencedFence"),n_(t)?nz(e,l,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):l(t)}function l(t){return t===r?(e.enter("codeFencedFenceSequence"),function t(i){return i===r?(a++,e.consume(i),t):a>=s?(e.exit("codeFencedFenceSequence"),n_(i)?nz(e,c,"whitespace")(i):c(i)):n(i)}(t)):n(t)}function c(r){return null===r||nC(r)?(e.exit("codeFencedFence"),t(r)):n(r)}}},o=0,s=0;return function(t){var a=t;let c=i.events[i.events.length-1];return o=c&&"linePrefix"===c[1].type?c[2].sliceSerialize(c[1],!0).length:0,r=a,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),function t(i){return i===r?(s++,e.consume(i),t):s<3?n(i):(e.exit("codeFencedFenceSequence"),n_(i)?nz(e,l,"whitespace")(i):l(i))}(a)};function l(a){return null===a||nC(a)?(e.exit("codeFencedFence"),i.interrupt?t(a):e.check(n5,u,m)(a)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),function t(i){return null===i||nC(i)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),l(i)):n_(i)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),nz(e,c,"whitespace")(i)):96===i&&i===r?n(i):(e.consume(i),t)}(a))}function c(t){return null===t||nC(t)?l(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),function t(i){return null===i||nC(i)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),l(i)):96===i&&i===r?n(i):(e.consume(i),t)}(t))}function u(t){return e.attempt(a,m,h)(t)}function h(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),p}function p(t){return o>0&&n_(t)?nz(e,d,"linePrefix",o+1)(t):d(t)}function d(t){return null===t||nC(t)?e.check(n5,u,m)(t):(e.enter("codeFlowValue"),function t(n){return null===n||nC(n)?(e.exit("codeFlowValue"),d(n)):(e.consume(n),t)}(t))}function m(n){return e.exit("codeFenced"),t(n)}}},n3={name:"codeIndented",tokenize:function(e,t,n){let r=this;return function(t){return e.enter("codeIndented"),nz(e,i,"linePrefix",5)(t)};function i(t){let i=r.events[r.events.length-1];return i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?function t(n){return null===n?a(n):nC(n)?e.attempt(n2,t,a)(n):(e.enter("codeFlowValue"),function n(r){return null===r||nC(r)?(e.exit("codeFlowValue"),t(r)):(e.consume(r),n)}(n))}(t):n(t)}function a(n){return e.exit("codeIndented"),t(n)}}},n2={partial:!0,tokenize:function(e,t,n){let r=this;return i;function i(t){return r.parser.lazy[r.now().line]?n(t):nC(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):nz(e,a,"linePrefix",5)(t)}function a(e){let a=r.events[r.events.length-1];return a&&"linePrefix"===a[1].type&&a[2].sliceSerialize(a[1],!0).length>=4?t(e):nC(e)?i(e):n(e)}}};function n7(e,t,n,r,i,a,o,s,l){let c=l||1/0,u=0;return function(t){return 60===t?(e.enter(r),e.enter(i),e.enter(a),e.consume(t),e.exit(a),h):null===t||32===t||41===t||nk(t)?n(t):(e.enter(r),e.enter(o),e.enter(s),e.enter("chunkString",{contentType:"string"}),m(t))};function h(n){return 62===n?(e.enter(a),e.consume(n),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),p(n))}function p(t){return 62===t?(e.exit("chunkString"),e.exit(s),h(t)):null===t||60===t||nC(t)?n(t):(e.consume(t),92===t?d:p)}function d(t){return 60===t||62===t||92===t?(e.consume(t),p):p(t)}function m(i){return!u&&(null===i||41===i||nT(i))?(e.exit("chunkString"),e.exit(s),e.exit(o),e.exit(r),t(i)):u<c&&40===i?(e.consume(i),u++,m):41===i?(e.consume(i),u--,m):null===i||32===i||40===i||nk(i)?n(i):(e.consume(i),92===i?f:m)}function f(t){return 40===t||41===t||92===t?(e.consume(t),m):m(t)}}function n8(e,t,n,r,i,a){let o,s=this,l=0;return function(t){return e.enter(r),e.enter(i),e.consume(t),e.exit(i),e.enter(a),c};function c(h){return l>999||null===h||91===h||93===h&&!o||94===h&&!l&&"_hiddenFootnoteSupport"in s.parser.constructs?n(h):93===h?(e.exit(a),e.enter(i),e.consume(h),e.exit(i),e.exit(r),t):nC(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),u(h))}function u(t){return null===t||91===t||93===t||nC(t)||l++>999?(e.exit("chunkString"),c(t)):(e.consume(t),o||(o=!n_(t)),92===t?h:u)}function h(t){return 91===t||92===t||93===t?(e.consume(t),l++,u):u(t)}}function n9(e,t,n,r,i,a){let o;return function(t){return 34===t||39===t||40===t?(e.enter(r),e.enter(i),e.consume(t),e.exit(i),o=40===t?41:t,s):n(t)};function s(n){return n===o?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(a),l(n))}function l(t){return t===o?(e.exit(a),s(o)):null===t?n(t):nC(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),nz(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(t))}function c(t){return t===o||null===t||nC(t)?(e.exit("chunkString"),l(t)):(e.consume(t),92===t?u:c)}function u(t){return t===o||92===t?(e.consume(t),c):c(t)}}function re(e,t){let n;return function r(i){return nC(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):n_(i)?nz(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}function rt(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}let rn={partial:!0,tokenize:function(e,t,n){return function(t){return nT(t)?re(e,r)(t):n(t)};function r(t){return n9(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function i(t){return n_(t)?nz(e,a,"whitespace")(t):a(t)}function a(e){return null===e||nC(e)?t(e):n(e)}}},rr=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],ri=["pre","script","style","textarea"],ra={partial:!0,tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(nL,t,n)}}},ro={partial:!0,tokenize:function(e,t,n){let r=this;return function(t){return nC(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):n(t)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},rs={name:"labelEnd",resolveAll:function(e){let t=-1,n=[];for(;++t<e.length;){let r=e[t][1];if(n.push(e[t]),"labelImage"===r.type||"labelLink"===r.type||"labelEnd"===r.type){let e="labelImage"===r.type?4:2;r.type="data",t+=e}}return e.length!==n.length&&nm(e,0,e.length,n),e},resolveTo:function(e,t){let n,r,i,a,o=e.length,s=0;for(;o--;)if(n=e[o][1],r){if("link"===n.type||"labelLink"===n.type&&n._inactive)break;"enter"===e[o][0]&&"labelLink"===n.type&&(n._inactive=!0)}else if(i){if("enter"===e[o][0]&&("labelImage"===n.type||"labelLink"===n.type)&&!n._balanced&&(r=o,"labelLink"!==n.type)){s=2;break}}else"labelEnd"===n.type&&(i=o);let l={type:"labelLink"===e[r][1].type?"link":"image",start:{...e[r][1].start},end:{...e[e.length-1][1].end}},c={type:"label",start:{...e[r][1].start},end:{...e[i][1].end}},u={type:"labelText",start:{...e[r+s+2][1].end},end:{...e[i-2][1].start}};return a=nf(a=[["enter",l,t],["enter",c,t]],e.slice(r+1,r+s+3)),a=nf(a,[["enter",u,t]]),a=nf(a,nY(t.parser.constructs.insideSpan.null,e.slice(r+s+4,i-3),t)),a=nf(a,[["exit",u,t],e[i-2],e[i-1],["exit",c,t]]),a=nf(a,e.slice(i+1)),a=nf(a,[["exit",l,t]]),nm(e,r,e.length,a),e},tokenize:function(e,t,n){let r,i,a=this,o=a.events.length;for(;o--;)if(("labelImage"===a.events[o][1].type||"labelLink"===a.events[o][1].type)&&!a.events[o][1]._balanced){r=a.events[o][1];break}return function(t){return r?r._inactive?u(t):(i=a.parser.defined.includes(rt(a.sliceSerialize({start:r.end,end:a.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),s):n(t)};function s(t){return 40===t?e.attempt(rl,c,i?c:u)(t):91===t?e.attempt(rc,c,i?l:u)(t):i?c(t):u(t)}function l(t){return e.attempt(ru,c,u)(t)}function c(e){return t(e)}function u(e){return r._balanced=!0,n(e)}}},rl={tokenize:function(e,t,n){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),r};function r(t){return nT(t)?re(e,i)(t):i(t)}function i(t){return 41===t?c(t):n7(e,a,o,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function a(t){return nT(t)?re(e,s)(t):c(t)}function o(e){return n(e)}function s(t){return 34===t||39===t||40===t?n9(e,l,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):c(t)}function l(t){return nT(t)?re(e,c)(t):c(t)}function c(r){return 41===r?(e.enter("resourceMarker"),e.consume(r),e.exit("resourceMarker"),e.exit("resource"),t):n(r)}}},rc={tokenize:function(e,t,n){let r=this;return function(t){return n8.call(r,e,i,a,"reference","referenceMarker","referenceString")(t)};function i(e){return r.parser.defined.includes(rt(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function a(e){return n(e)}}},ru={tokenize:function(e,t,n){return function(t){return e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),r};function r(r){return 93===r?(e.enter("referenceMarker"),e.consume(r),e.exit("referenceMarker"),e.exit("reference"),t):n(r)}}},rh={name:"labelStartImage",resolveAll:rs.resolveAll,tokenize:function(e,t,n){let r=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),i};function i(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),a):n(t)}function a(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}},rp={name:"labelStartLink",resolveAll:rs.resolveAll,tokenize:function(e,t,n){let r=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),i};function i(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}},rd={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),nz(e,t,"linePrefix")}}},rm={name:"thematicBreak",tokenize:function(e,t,n){let r,i=0;return function(a){var o;return e.enter("thematicBreak"),r=o=a,function a(o){return o===r?(e.enter("thematicBreakSequence"),function t(n){return n===r?(e.consume(n),i++,t):(e.exit("thematicBreakSequence"),n_(n)?nz(e,a,"whitespace")(n):a(n))}(o)):i>=3&&(null===o||nC(o))?(e.exit("thematicBreak"),t(o)):n(o)}(o)}}},rf={continuation:{tokenize:function(e,t,n){let r=this;return r.containerState._closeFlow=void 0,e.check(nL,function(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,nz(e,t,"listItemIndent",r.containerState.size+1)(n)},function(n){return r.containerState.furtherBlankLines||!n_(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,i(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(ry,t,i)(n))});function i(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,nz(e,e.attempt(rf,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i)}}},exit:function(e){e.exit(this.containerState.type)},name:"list",tokenize:function(e,t,n){let r=this,i=r.events[r.events.length-1],a=i&&"linePrefix"===i[1].type?i[2].sliceSerialize(i[1],!0).length:0,o=0;return function(t){let i=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===i?!r.containerState.marker||t===r.containerState.marker:nw(t)){if(r.containerState.type||(r.containerState.type=i,e.enter(i,{_container:!0})),"listUnordered"===i)return e.enter("listItemPrefix"),42===t||45===t?e.check(rm,n,s)(t):s(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),function t(i){return nw(i)&&++o<10?(e.consume(i),t):(!r.interrupt||o<2)&&(r.containerState.marker?i===r.containerState.marker:41===i||46===i)?(e.exit("listItemValue"),s(i)):n(i)}(t)}return n(t)};function s(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(nL,r.interrupt?n:l,e.attempt(rg,u,c))}function l(e){return r.containerState.initialBlankLine=!0,a++,u(e)}function c(t){return n_(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),u):n(t)}function u(n){return r.containerState.size=a+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}}},rg={partial:!0,tokenize:function(e,t,n){let r=this;return nz(e,function(e){let i=r.events[r.events.length-1];return!n_(e)&&i&&"listItemPrefixWhitespace"===i[1].type?t(e):n(e)},"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)}},ry={partial:!0,tokenize:function(e,t,n){let r=this;return nz(e,function(e){let i=r.events[r.events.length-1];return i&&"listItemIndent"===i[1].type&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(e):n(e)},"listItemIndent",r.containerState.size+1)}},rb={name:"setextUnderline",resolveTo:function(e,t){let n,r,i,a=e.length;for(;a--;)if("enter"===e[a][0]){if("content"===e[a][1].type){n=a;break}"paragraph"===e[a][1].type&&(r=a)}else"content"===e[a][1].type&&e.splice(a,1),i||"definition"!==e[a][1].type||(i=a);let o={type:"setextHeading",start:{...e[n][1].start},end:{...e[e.length-1][1].end}};return e[r][1].type="setextHeadingText",i?(e.splice(r,0,["enter",o,t]),e.splice(i+1,0,["exit",e[n][1],t]),e[n][1].end={...e[i][1].end}):e[n][1]=o,e.push(["exit",o,t]),e},tokenize:function(e,t,n){let r,i=this;return function(t){var o;let s,l=i.events.length;for(;l--;)if("lineEnding"!==i.events[l][1].type&&"linePrefix"!==i.events[l][1].type&&"content"!==i.events[l][1].type){s="paragraph"===i.events[l][1].type;break}return!i.parser.lazy[i.now().line]&&(i.interrupt||s)?(e.enter("setextHeadingLine"),r=t,o=t,e.enter("setextHeadingLineSequence"),function t(n){return n===r?(e.consume(n),t):(e.exit("setextHeadingLineSequence"),n_(n)?nz(e,a,"lineSuffix")(n):a(n))}(o)):n(t)};function a(r){return null===r||nC(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}}},rv={42:rf,43:rf,45:rf,48:rf,49:rf,50:rf,51:rf,52:rf,53:rf,54:rf,55:rf,56:rf,57:rf,62:nK},rx={91:{name:"definition",tokenize:function(e,t,n){let r,i=this;return function(t){var r;return e.enter("definition"),r=t,n8.call(i,e,a,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(r)};function a(t){return(r=rt(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),58===t)?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),o):n(t)}function o(t){return nT(t)?re(e,s)(t):s(t)}function s(t){return n7(e,l,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function l(t){return e.attempt(rn,c,c)(t)}function c(t){return n_(t)?nz(e,u,"whitespace")(t):u(t)}function u(a){return null===a||nC(a)?(e.exit("definition"),i.parser.defined.push(r),t(a)):n(a)}}}},rk={[-2]:n3,[-1]:n3,32:n3},rw={35:{name:"headingAtx",resolve:function(e,t){let n,r,i=e.length-2,a=3;return"whitespace"===e[3][1].type&&(a+=2),i-2>a&&"whitespace"===e[i][1].type&&(i-=2),"atxHeadingSequence"===e[i][1].type&&(a===i-1||i-4>a&&"whitespace"===e[i-2][1].type)&&(i-=a+1===i?2:4),i>a&&(n={type:"atxHeadingText",start:e[a][1].start,end:e[i][1].end},r={type:"chunkText",start:e[a][1].start,end:e[i][1].end,contentType:"text"},nm(e,a,i-a+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]])),e},tokenize:function(e,t,n){let r=0;return function(i){var a;return e.enter("atxHeading"),a=i,e.enter("atxHeadingSequence"),function i(a){return 35===a&&r++<6?(e.consume(a),i):null===a||nT(a)?(e.exit("atxHeadingSequence"),function n(r){return 35===r?(e.enter("atxHeadingSequence"),function t(r){return 35===r?(e.consume(r),t):(e.exit("atxHeadingSequence"),n(r))}(r)):null===r||nC(r)?(e.exit("atxHeading"),t(r)):n_(r)?nz(e,n,"whitespace")(r):(e.enter("atxHeadingText"),function t(r){return null===r||35===r||nT(r)?(e.exit("atxHeadingText"),n(r)):(e.consume(r),t)}(r))}(a)):n(a)}(a)}}},42:rm,45:[rb,rm],60:{concrete:!0,name:"htmlFlow",resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););return t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e},tokenize:function(e,t,n){let r,i,a,o,s,l=this;return function(t){var n;return n=t,e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(n),c};function c(o){return 33===o?(e.consume(o),u):47===o?(e.consume(o),i=!0,d):63===o?(e.consume(o),r=3,l.interrupt?t:I):nb(o)?(e.consume(o),a=String.fromCharCode(o),m):n(o)}function u(i){return 45===i?(e.consume(i),r=2,h):91===i?(e.consume(i),r=5,o=0,p):nb(i)?(e.consume(i),r=4,l.interrupt?t:I):n(i)}function h(r){return 45===r?(e.consume(r),l.interrupt?t:I):n(r)}function p(r){let i="CDATA[";return r===i.charCodeAt(o++)?(e.consume(r),o===i.length)?l.interrupt?t:A:p:n(r)}function d(t){return nb(t)?(e.consume(t),a=String.fromCharCode(t),m):n(t)}function m(o){if(null===o||47===o||62===o||nT(o)){let s=47===o,c=a.toLowerCase();return!s&&!i&&ri.includes(c)?(r=1,l.interrupt?t(o):A(o)):rr.includes(a.toLowerCase())?(r=6,s)?(e.consume(o),f):l.interrupt?t(o):A(o):(r=7,l.interrupt&&!l.parser.lazy[l.now().line]?n(o):i?function t(n){return n_(n)?(e.consume(n),t):w(n)}(o):g(o))}return 45===o||nv(o)?(e.consume(o),a+=String.fromCharCode(o),m):n(o)}function f(r){return 62===r?(e.consume(r),l.interrupt?t:A):n(r)}function g(t){return 47===t?(e.consume(t),w):58===t||95===t||nb(t)?(e.consume(t),y):n_(t)?(e.consume(t),g):w(t)}function y(t){return 45===t||46===t||58===t||95===t||nv(t)?(e.consume(t),y):b(t)}function b(t){return 61===t?(e.consume(t),v):n_(t)?(e.consume(t),b):g(t)}function v(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),s=t,x):n_(t)?(e.consume(t),v):function t(n){return null===n||34===n||39===n||47===n||60===n||61===n||62===n||96===n||nT(n)?b(n):(e.consume(n),t)}(t)}function x(t){return t===s?(e.consume(t),s=null,k):null===t||nC(t)?n(t):(e.consume(t),x)}function k(e){return 47===e||62===e||n_(e)?g(e):n(e)}function w(t){return 62===t?(e.consume(t),S):n(t)}function S(t){return null===t||nC(t)?A(t):n_(t)?(e.consume(t),S):n(t)}function A(t){return 45===t&&2===r?(e.consume(t),M):60===t&&1===r?(e.consume(t),N):62===t&&4===r?(e.consume(t),j):63===t&&3===r?(e.consume(t),I):93===t&&5===r?(e.consume(t),z):nC(t)&&(6===r||7===r)?(e.exit("htmlFlowData"),e.check(ra,R,C)(t)):null===t||nC(t)?(e.exit("htmlFlowData"),C(t)):(e.consume(t),A)}function C(t){return e.check(ro,T,R)(t)}function T(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),_}function _(t){return null===t||nC(t)?C(t):(e.enter("htmlFlowData"),A(t))}function M(t){return 45===t?(e.consume(t),I):A(t)}function N(t){return 47===t?(e.consume(t),a="",E):A(t)}function E(t){if(62===t){let n=a.toLowerCase();return ri.includes(n)?(e.consume(t),j):A(t)}return nb(t)&&a.length<8?(e.consume(t),a+=String.fromCharCode(t),E):A(t)}function z(t){return 93===t?(e.consume(t),I):A(t)}function I(t){return 62===t?(e.consume(t),j):45===t&&2===r?(e.consume(t),I):A(t)}function j(t){return null===t||nC(t)?(e.exit("htmlFlowData"),R(t)):(e.consume(t),j)}function R(n){return e.exit("htmlFlow"),t(n)}}},61:rb,95:rm,96:n6,126:n6},rS={38:n4,92:nQ},rA={[-5]:rd,[-4]:rd,[-3]:rd,33:rh,38:n4,42:nJ,60:[{name:"autolink",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i};function i(t){return nb(t)?(e.consume(t),a):64===t?n(t):s(t)}function a(t){return 43===t||45===t||46===t||nv(t)?(r=1,function t(n){return 58===n?(e.consume(n),r=0,o):(43===n||45===n||46===n||nv(n))&&r++<32?(e.consume(n),t):(r=0,s(n))}(t)):s(t)}function o(r){return 62===r?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t):null===r||32===r||60===r||nk(r)?n(r):(e.consume(r),o)}function s(t){return 64===t?(e.consume(t),l):nx(t)?(e.consume(t),s):n(t)}function l(i){return nv(i)?function i(a){return 46===a?(e.consume(a),r=0,l):62===a?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(a),e.exit("autolinkMarker"),e.exit("autolink"),t):function t(a){if((45===a||nv(a))&&r++<63){let n=45===a?t:i;return e.consume(a),n}return n(a)}(a)}(i):n(i)}}},{name:"htmlText",tokenize:function(e,t,n){let r,i,a,o=this;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),s};function s(t){return 33===t?(e.consume(t),l):47===t?(e.consume(t),x):63===t?(e.consume(t),b):nb(t)?(e.consume(t),w):n(t)}function l(t){return 45===t?(e.consume(t),c):91===t?(e.consume(t),i=0,d):nb(t)?(e.consume(t),y):n(t)}function c(t){return 45===t?(e.consume(t),p):n(t)}function u(t){return null===t?n(t):45===t?(e.consume(t),h):nC(t)?(a=u,E(t)):(e.consume(t),u)}function h(t){return 45===t?(e.consume(t),p):u(t)}function p(e){return 62===e?N(e):45===e?h(e):u(e)}function d(t){let r="CDATA[";return t===r.charCodeAt(i++)?(e.consume(t),i===r.length?m:d):n(t)}function m(t){return null===t?n(t):93===t?(e.consume(t),f):nC(t)?(a=m,E(t)):(e.consume(t),m)}function f(t){return 93===t?(e.consume(t),g):m(t)}function g(t){return 62===t?N(t):93===t?(e.consume(t),g):m(t)}function y(t){return null===t||62===t?N(t):nC(t)?(a=y,E(t)):(e.consume(t),y)}function b(t){return null===t?n(t):63===t?(e.consume(t),v):nC(t)?(a=b,E(t)):(e.consume(t),b)}function v(e){return 62===e?N(e):b(e)}function x(t){return nb(t)?(e.consume(t),k):n(t)}function k(t){return 45===t||nv(t)?(e.consume(t),k):function t(n){return nC(n)?(a=t,E(n)):n_(n)?(e.consume(n),t):N(n)}(t)}function w(t){return 45===t||nv(t)?(e.consume(t),w):47===t||62===t||nT(t)?S(t):n(t)}function S(t){return 47===t?(e.consume(t),N):58===t||95===t||nb(t)?(e.consume(t),A):nC(t)?(a=S,E(t)):n_(t)?(e.consume(t),S):N(t)}function A(t){return 45===t||46===t||58===t||95===t||nv(t)?(e.consume(t),A):function t(n){return 61===n?(e.consume(n),C):nC(n)?(a=t,E(n)):n_(n)?(e.consume(n),t):S(n)}(t)}function C(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),r=t,T):nC(t)?(a=C,E(t)):n_(t)?(e.consume(t),C):(e.consume(t),_)}function T(t){return t===r?(e.consume(t),r=void 0,M):null===t?n(t):nC(t)?(a=T,E(t)):(e.consume(t),T)}function _(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||nT(t)?S(t):(e.consume(t),_)}function M(e){return 47===e||62===e||nT(e)?S(e):n(e)}function N(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}function E(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),z}function z(t){return n_(t)?nz(e,I,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):I(t)}function I(t){return e.enter("htmlTextData"),a(t)}}}],91:rp,92:[{name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return nC(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}},nQ],93:rs,95:nJ,96:{name:"codeText",previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type},resolve:function(e){let t,n,r=e.length-4,i=3;if(("lineEnding"===e[3][1].type||"space"===e[i][1].type)&&("lineEnding"===e[r][1].type||"space"===e[r][1].type)){for(t=i;++t<r;)if("codeTextData"===e[t][1].type){e[i][1].type="codeTextPadding",e[r][1].type="codeTextPadding",i+=2,r-=2;break}}for(t=i-1,r++;++t<=r;)void 0===n?t!==r&&"lineEnding"!==e[t][1].type&&(n=t):(t===r||"lineEnding"===e[t][1].type)&&(e[n][1].type="codeTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),r-=t-n-2,t=n+2),n=void 0);return e},tokenize:function(e,t,n){let r,i,a=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),function t(n){return 96===n?(e.consume(n),a++,t):(e.exit("codeTextSequence"),o(n))}(t)};function o(l){return null===l?n(l):32===l?(e.enter("space"),e.consume(l),e.exit("space"),o):96===l?(i=e.enter("codeTextSequence"),r=0,function n(o){return 96===o?(e.consume(o),r++,n):r===a?(e.exit("codeTextSequence"),e.exit("codeText"),t(o)):(i.type="codeTextData",s(o))}(l)):nC(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),o):(e.enter("codeTextData"),s(l))}function s(t){return null===t||32===t||96===t||nC(t)?(e.exit("codeTextData"),o(t)):(e.consume(t),s)}}}},rC={null:[nJ,nH]},rT={null:[42,95]},r_={null:[]};var rM=e.i(4127);let rN=/[\0\t\n\r]/g;function rE(e,t){let n=Number.parseInt(e,t);return n<9||11===n||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(65535&n)==65535||(65535&n)==65534||n>1114111?"�":String.fromCodePoint(n)}let rz=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function rI(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){let e=n.charCodeAt(1),t=120===e||88===e;return rE(n.slice(t?2:1),t?16:10)}return n1(n)||e}let rj={}.hasOwnProperty;function rR(e){return{line:e.line,column:e.column,offset:e.offset}}function rL(e,t){if(e)throw Error("Cannot close `"+e.type+"` ("+t1({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+t1({start:t.start,end:t.end})+") is open");throw Error("Cannot close document, a token (`"+t.type+"`, "+t1({start:t.start,end:t.end})+") is still open")}function rP(e){let t=this;t.parser=function(n){var r,i;let a,o,s,l;return"object"==typeof(r={...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})&&(i=r,r=void 0),(function(e){let t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:r(y),autolinkProtocol:c,autolinkEmail:c,atxHeading:r(m),blockQuote:r(function(){return{type:"blockquote",children:[]}}),characterEscape:c,characterReference:c,codeFenced:r(d),codeFencedFenceInfo:i,codeFencedFenceMeta:i,codeIndented:r(d,i),codeText:r(function(){return{type:"inlineCode",value:""}},i),codeTextData:c,data:c,codeFlowValue:c,definition:r(function(){return{type:"definition",identifier:"",label:null,title:null,url:""}}),definitionDestinationString:i,definitionLabelString:i,definitionTitleString:i,emphasis:r(function(){return{type:"emphasis",children:[]}}),hardBreakEscape:r(f),hardBreakTrailing:r(f),htmlFlow:r(g,i),htmlFlowData:c,htmlText:r(g,i),htmlTextData:c,image:r(function(){return{type:"image",title:null,url:"",alt:null}}),label:i,link:r(y),listItem:r(function(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}),listItemValue:function(e){this.data.expectingFirstListItemValue&&(this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0)},listOrdered:r(b,function(){this.data.expectingFirstListItemValue=!0}),listUnordered:r(b),paragraph:r(function(){return{type:"paragraph",children:[]}}),reference:function(){this.data.referenceType="collapsed"},referenceString:i,resourceDestinationString:i,resourceTitleString:i,setextHeading:r(m),strong:r(function(){return{type:"strong",children:[]}}),thematicBreak:r(function(){return{type:"thematicBreak"}})},exit:{atxHeading:o(),atxHeadingSequence:function(e){let t=this.stack[this.stack.length-1];t.depth||(t.depth=this.sliceSerialize(e).length)},autolink:o(),autolinkEmail:function(e){u.call(this,e),this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)},autolinkProtocol:function(e){u.call(this,e),this.stack[this.stack.length-1].url=this.sliceSerialize(e)},blockQuote:o(),characterEscapeValue:u,characterReferenceMarkerHexadecimal:p,characterReferenceMarkerNumeric:p,characterReferenceValue:function(e){let t,n=this.sliceSerialize(e),r=this.data.characterReferenceType;r?(t=rE(n,"characterReferenceMarkerNumeric"===r?10:16),this.data.characterReferenceType=void 0):t=n1(n);let i=this.stack[this.stack.length-1];i.value+=t},characterReference:function(e){this.stack.pop().position.end=rR(e.end)},codeFenced:o(function(){let e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}),codeFencedFence:function(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)},codeFencedFenceInfo:function(){let e=this.resume();this.stack[this.stack.length-1].lang=e},codeFencedFenceMeta:function(){let e=this.resume();this.stack[this.stack.length-1].meta=e},codeFlowValue:u,codeIndented:o(function(){let e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}),codeText:o(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),codeTextData:u,data:u,definition:o(),definitionDestinationString:function(){let e=this.resume();this.stack[this.stack.length-1].url=e},definitionLabelString:function(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=rt(this.sliceSerialize(e)).toLowerCase()},definitionTitleString:function(){let e=this.resume();this.stack[this.stack.length-1].title=e},emphasis:o(),hardBreakEscape:o(h),hardBreakTrailing:o(h),htmlFlow:o(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),htmlFlowData:u,htmlText:o(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),htmlTextData:u,image:o(function(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),label:function(){let e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];this.data.inReference=!0,"link"===n.type?n.children=e.children:n.alt=t},labelText:function(e){let t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=t.replace(rz,rI),n.identifier=rt(t).toLowerCase()},lineEnding:function(e){let n=this.stack[this.stack.length-1];if(this.data.atHardBreak){n.children[n.children.length-1].position.end=rR(e.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(c.call(this,e),u.call(this,e))},link:o(function(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),listItem:o(),listOrdered:o(),listUnordered:o(),paragraph:o(),referenceString:function(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=rt(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType="full"},resourceDestinationString:function(){let e=this.resume();this.stack[this.stack.length-1].url=e},resourceTitleString:function(){let e=this.resume();this.stack[this.stack.length-1].title=e},resource:function(){this.data.inReference=void 0},setextHeading:o(function(){this.data.setextHeadingSlurpLineEnding=void 0}),setextHeadingLineSequence:function(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).codePointAt(0)?1:2},setextHeadingText:function(){this.data.setextHeadingSlurpLineEnding=!0},strong:o(),thematicBreak:o()}};!function e(t,n){let r=-1;for(;++r<n.length;){let i=n[r];Array.isArray(i)?e(t,i):function(e,t){let n;for(n in t)if(rj.call(t,n))switch(n){case"canContainEols":{let r=t[n];r&&e[n].push(...r);break}case"transforms":{let r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{let r=t[n];r&&Object.assign(e[n],r)}}}(t,i)}}(t,(e||{}).mdastExtensions||[]);let n={};return function(e){let r={type:"root",children:[]},o={stack:[r],tokenStack:[],config:t,enter:a,exit:s,buffer:i,resume:l,data:n},c=[],u=-1;for(;++u<e.length;)("listOrdered"===e[u][1].type||"listUnordered"===e[u][1].type)&&("enter"===e[u][0]?c.push(u):u=function(e,t,n){let r,i,a,o,s=t-1,l=-1,c=!1;for(;++s<=n;){let t=e[s];switch(t[1].type){case"listUnordered":case"listOrdered":case"blockQuote":"enter"===t[0]?l++:l--,o=void 0;break;case"lineEndingBlank":"enter"===t[0]&&(!r||o||l||a||(a=s),o=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:o=void 0}if(!l&&"enter"===t[0]&&"listItemPrefix"===t[1].type||-1===l&&"exit"===t[0]&&("listUnordered"===t[1].type||"listOrdered"===t[1].type)){if(r){let o=s;for(i=void 0;o--;){let t=e[o];if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){if("exit"===t[0])continue;i&&(e[i][1].type="lineEndingBlank",c=!0),t[1].type="lineEnding",i=o}else if("linePrefix"===t[1].type||"blockQuotePrefix"===t[1].type||"blockQuotePrefixWhitespace"===t[1].type||"blockQuoteMarker"===t[1].type||"listItemIndent"===t[1].type);else break}a&&(!i||a<i)&&(r._spread=!0),r.end=Object.assign({},i?e[i][1].start:t[1].end),e.splice(i||s,0,["exit",r,t[2]]),s++,n++}if("listItemPrefix"===t[1].type){let i={type:"listItem",_spread:!1,start:Object.assign({},t[1].start),end:void 0};r=i,e.splice(s,0,["enter",i,t[2]]),s++,n++,a=void 0,o=!0}}}return e[t][1]._spread=c,n}(e,c.pop(),u));for(u=-1;++u<e.length;){let n=t[e[u][0]];rj.call(n,e[u][1].type)&&n[e[u][1].type].call(Object.assign({sliceSerialize:e[u][2].sliceSerialize},o),e[u][1])}if(o.tokenStack.length>0){let e=o.tokenStack[o.tokenStack.length-1];(e[1]||rL).call(o,void 0,e[0])}for(r.position={start:rR(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:rR(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},u=-1;++u<t.transforms.length;)r=t.transforms[u](r)||r;return r};function r(e,t){return function(n){a.call(this,e(n),n),t&&t.call(this,n)}}function i(){this.stack.push({type:"fragment",children:[]})}function a(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n||void 0]),e.position={start:rR(t.start),end:void 0}}function o(e){return function(t){e&&e.call(this,t),s.call(this,t)}}function s(e,t){let n=this.stack.pop(),r=this.tokenStack.pop();if(r)r[0].type!==e.type&&(t?t.call(this,e,r[0]):(r[1]||rL).call(this,e,r[0]));else throw Error("Cannot close `"+e.type+"` ("+t1({start:e.start,end:e.end})+"): it’s not open");n.position.end=rR(e.end)}function l(){return nh(this.stack.pop())}function c(e){let t=this.stack[this.stack.length-1].children,n=t[t.length-1];n&&"text"===n.type||((n={type:"text",value:""}).position={start:rR(e.start),end:void 0},t.push(n)),this.stack.push(n)}function u(e){let t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=rR(e.end)}function h(){this.data.atHardBreak=!0}function p(e){this.data.characterReferenceType=e.type}function d(){return{type:"code",lang:null,meta:null,value:""}}function m(){return{type:"heading",depth:0,children:[]}}function f(){return{type:"break"}}function g(){return{type:"html",value:""}}function y(){return{type:"link",title:null,url:"",children:[]}}function b(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}})(i)(function(e){for(;!nO(e););return e}((function(e){let t={constructs:ny([rM,...(e||{}).extensions||[]]),content:n(nI),defined:[],document:n(nj),flow:n(nq),lazy:{},string:n(nU),text:n(nG)};return t;function n(e){return function(n){return function(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0},i={},a=[],o=[],s=[],l={attempt:m(function(e,t){f(e,t.from)}),check:m(d),consume:function(e){nC(e)?(r.line++,r.column=1,r.offset+=-3===e?2:1,g()):-1!==e&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),c.previous=e},enter:function(e,t){let n=t||{};return n.type=e,n.start=p(),c.events.push(["enter",n,c]),s.push(n),n},exit:function(e){let t=s.pop();return t.end=p(),c.events.push(["exit",t,c]),t},interrupt:m(d,{interrupt:!0})},c={code:null,containerState:{},defineSkip:function(e){i[e.line]=e.column,g()},events:[],now:p,parser:e,previous:null,sliceSerialize:function(e,t){return function(e,t){let n,r=-1,i=[];for(;++r<e.length;){let a,o=e[r];if("string"==typeof o)a=o;else switch(o){case -5:a="\r";break;case -4:a="\n";break;case -3:a="\r\n";break;case -2:a=t?" ":" ";break;case -1:if(!t&&n)continue;a=" ";break;default:a=String.fromCharCode(o)}n=-2===o,i.push(a)}return i.join("")}(h(e),t)},sliceStream:h,write:function(e){return(o=nf(o,e),function(){let e;for(;r._index<o.length;){let n=o[r._index];if("string"==typeof n)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<n.length;){var t;t=n.charCodeAt(r._bufferIndex),u=u(t)}else u=u(n)}}(),null!==o[o.length-1])?[]:(f(t,0),c.events=nY(a,c.events,c),c.events)}},u=t.tokenize.call(c,l);return t.resolveAll&&a.push(t),c;function h(e){return function(e,t){let n,r=t.start._index,i=t.start._bufferIndex,a=t.end._index,o=t.end._bufferIndex;if(r===a)n=[e[r].slice(i,o)];else{if(n=e.slice(r,a),i>-1){let e=n[0];"string"==typeof e?n[0]=e.slice(i):n.shift()}o>0&&n.push(e[a].slice(0,o))}return n}(o,e)}function p(){let{_bufferIndex:e,_index:t,line:n,column:i,offset:a}=r;return{_bufferIndex:e,_index:t,line:n,column:i,offset:a}}function d(e,t){t.restore()}function m(e,t){return function(n,i,a){var o;let u,h,d,m;return Array.isArray(n)?f(n):"tokenize"in n?f([n]):(o=n,function(e){let t=null!==e&&o[e],n=null!==e&&o.null;return f([...Array.isArray(t)?t:t?[t]:[],...Array.isArray(n)?n:n?[n]:[]])(e)});function f(e){return(u=e,h=0,0===e.length)?a:y(e[h])}function y(e){return function(n){return(m=function(){let e=p(),t=c.previous,n=c.currentConstruct,i=c.events.length,a=Array.from(s);return{from:i,restore:function(){r=e,c.previous=t,c.currentConstruct=n,c.events.length=i,s=a,g()}}}(),d=e,e.partial||(c.currentConstruct=e),e.name&&c.parser.constructs.disable.null.includes(e.name))?v(n):e.tokenize.call(t?Object.assign(Object.create(c),t):c,l,b,v)(n)}}function b(t){return e(d,m),i}function v(e){return(m.restore(),++h<u.length)?y(u[h]):a}}}function f(e,t){e.resolveAll&&!a.includes(e)&&a.push(e),e.resolve&&nm(c.events,t,c.events.length-t,e.resolve(c.events.slice(t),c)),e.resolveTo&&(c.events=e.resolveTo(c.events,c))}function g(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}(t,e,n)}}})(i).document().write((o=1,s="",l=!0,function(e,t,n){let r,i,c,u,h,p=[];for(e=s+("string"==typeof e?e.toString():new TextDecoder(t||void 0).decode(e)),c=0,s="",l&&(65279===e.charCodeAt(0)&&c++,l=void 0);c<e.length;){if(rN.lastIndex=c,u=(r=rN.exec(e))&&void 0!==r.index?r.index:e.length,h=e.charCodeAt(u),!r){s=e.slice(c);break}if(10===h&&c===u&&a)p.push(-3),a=void 0;else switch(a&&(p.push(-5),a=void 0),c<u&&(p.push(e.slice(c,u)),o+=u-c),h){case 0:p.push(65533),o++;break;case 9:for(i=4*Math.ceil(o/4),p.push(-2);o++<i;)p.push(-1);break;case 10:p.push(-4),o=1;break;default:a=!0,o=1}c=u+1}return n&&(a&&p.push(-5),s&&p.push(s),p.push(null)),p})(n,r,!0))))}}let rB="object"==typeof self?self:globalThis,rO=e=>((e,t)=>{let n=(t,n)=>(e.set(n,t),t),r=i=>{if(e.has(i))return e.get(i);let[a,o]=t[i];switch(a){case 0:case -1:return n(o,i);case 1:{let e=n([],i);for(let t of o)e.push(r(t));return e}case 2:{let e=n({},i);for(let[t,n]of o)e[r(t)]=r(n);return e}case 3:return n(new Date(o),i);case 4:{let{source:e,flags:t}=o;return n(new RegExp(e,t),i)}case 5:{let e=n(new Map,i);for(let[t,n]of o)e.set(r(t),r(n));return e}case 6:{let e=n(new Set,i);for(let t of o)e.add(r(t));return e}case 7:{let{name:e,message:t}=o;return n(new rB[e](t),i)}case 8:return n(BigInt(o),i);case"BigInt":return n(Object(BigInt(o)),i);case"ArrayBuffer":return n(new Uint8Array(o).buffer,o);case"DataView":{let{buffer:e}=new Uint8Array(o);return n(new DataView(e),o)}}return n(new rB[a](o),i)};return r})(new Map,e)(0),{toString:rD}={},{keys:rF}=Object,rq=e=>{let t=typeof e;if("object"!==t||!e)return[0,t];let n=rD.call(e).slice(8,-1);switch(n){case"Array":return[1,""];case"Object":return[2,""];case"Date":return[3,""];case"RegExp":return[4,""];case"Map":return[5,""];case"Set":return[6,""];case"DataView":return[1,n]}return n.includes("Array")?[1,n]:n.includes("Error")?[7,n]:[2,n]},rH=e=>{let[t,n]=e;return 0===t&&("function"===n||"symbol"===n)},rU=function(e){let{json:t,lossy:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=[];return((e,t,n,r)=>{let i=(e,t)=>{let i=r.push(e)-1;return n.set(t,i),i},a=r=>{if(n.has(r))return n.get(r);let[o,s]=rq(r);switch(o){case 0:{let t=r;switch(s){case"bigint":o=8,t=r.toString();break;case"function":case"symbol":if(e)throw TypeError("unable to serialize "+s);t=null;break;case"undefined":return i([-1],r)}return i([o,t],r)}case 1:{if(s){let e=r;return"DataView"===s?e=new Uint8Array(r.buffer):"ArrayBuffer"===s&&(e=new Uint8Array(r)),i([s,[...e]],r)}let e=[],t=i([o,e],r);for(let t of r)e.push(a(t));return t}case 2:{if(s)switch(s){case"BigInt":return i([s,r.toString()],r);case"Boolean":case"Number":case"String":return i([s,r.valueOf()],r)}if(t&&"toJSON"in r)return a(r.toJSON());let n=[],l=i([o,n],r);for(let t of rF(r))(e||!rH(rq(r[t])))&&n.push([a(t),a(r[t])]);return l}case 3:return i([o,r.toISOString()],r);case 4:{let{source:e,flags:t}=r;return i([o,{source:e,flags:t}],r)}case 5:{let t=[],n=i([o,t],r);for(let[n,i]of r)(e||!(rH(rq(n))||rH(rq(i))))&&t.push([a(n),a(i)]);return n}case 6:{let t=[],n=i([o,t],r);for(let n of r)(e||!rH(rq(n)))&&t.push(a(n));return n}}let{message:l}=r;return i([o,{name:s,message:l}],r)};return a})(!(t||n),!!t,new Map,r)(e),r},rG="function"==typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?rO(rU(e,t)):structuredClone(e):(e,t)=>rO(rU(e,t));function rW(e){let t=[],n=-1,r=0,i=0;for(;++n<e.length;){let a=e.charCodeAt(n),o="";if(37===a&&nv(e.charCodeAt(n+1))&&nv(e.charCodeAt(n+2)))i=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(o=String.fromCharCode(a));else if(a>55295&&a<57344){let t=e.charCodeAt(n+1);a<56320&&t>56319&&t<57344?(o=String.fromCharCode(a,t),i=1):o="�"}else o=String.fromCharCode(a);o&&(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+i+1,o=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function rV(e,t){let n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function r$(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}let rX=function(e){var t,n;if(null==e)return rJ;if("function"==typeof e)return rY(e);if("object"==typeof e){return Array.isArray(e)?function(e){let t=[],n=-1;for(;++n<e.length;)t[n]=rX(e[n]);return rY(function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];let i=-1;for(;++i<t.length;)if(t[i].apply(this,n))return!0;return!1})}(e):(t=e,rY(function(e){let n;for(n in t)if(e[n]!==t[n])return!1;return!0}))}if("string"==typeof e){return n=e,rY(function(e){return e&&e.type===n})}throw Error("Expected function, string, or object as test")};function rY(e){return function(t,n,r){return!!(function(e){return null!==e&&"object"==typeof e&&"type"in e}(t)&&e.call(this,t,"number"==typeof n?n:void 0,r||void 0))}}function rJ(){return!0}let rZ=[],rK="skip";function rQ(e,t,n,r){let i;"function"==typeof t&&"function"!=typeof n?(r=n,n=t):i=t;let a=rX(i),o=r?-1:1;(function e(i,s,l){let c=i&&"object"==typeof i?i:{};if("string"==typeof c.type){let e="string"==typeof c.tagName?c.tagName:"string"==typeof c.name?c.name:void 0;Object.defineProperty(u,"name",{value:"node ("+i.type+(e?"<"+e+">":"")+")"})}return u;function u(){var c;let u,h,p,d=rZ;if((!t||a(i,s,l[l.length-1]||void 0))&&!1===(d=Array.isArray(c=n(i,l))?c:"number"==typeof c?[!0,c]:null==c?rZ:[c])[0])return d;if("children"in i&&i.children&&i.children&&d[0]!==rK)for(h=(r?i.children.length:-1)+o,p=l.concat(i);h>-1&&h<i.children.length;){if(!1===(u=e(i.children[h],h,p)())[0])return u;h="number"==typeof u[1]?u[1]:h+o}return d}})(e,void 0,[])()}function r0(e,t,n,r){let i,a,o;"function"==typeof t&&"function"!=typeof n?(a=void 0,o=t,i=n):(a=t,o=n,i=r),rQ(e,a,function(e,t){let n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return o(e,r,n)},i)}function r1(e,t){let n=t.referenceType,r="]";if("collapsed"===n?r+="[]":"full"===n&&(r+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return[{type:"text",value:"!["+t.alt+r}];let i=e.all(t),a=i[0];a&&"text"===a.type?a.value="["+a.value:i.unshift({type:"text",value:"["});let o=i[i.length-1];return o&&"text"===o.type?o.value+=r:i.push({type:"text",value:r}),i}function r4(e){let t=e.spread;return null==t?e.children.length>1:t}function r5(e,t,n){let r=0,i=e.length;if(t){let t=e.codePointAt(r);for(;9===t||32===t;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(i-1);for(;9===t||32===t;)i--,t=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}let r6={blockquote:function(e,t){let n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)},break:function(e,t){let n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]},code:function(e,t){let n=t.value?t.value+"\n":"",r={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(r.className=["language-"+i[0]]);let a={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(a.data={meta:t.meta}),e.patch(t,a),a={type:"element",tagName:"pre",properties:{},children:[a=e.applyData(t,a)]},e.patch(t,a),a},delete:function(e,t){let n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){let n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},footnoteReference:function(e,t){let n,r="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",i=String(t.identifier).toUpperCase(),a=rW(i.toLowerCase()),o=e.footnoteOrder.indexOf(i),s=e.footnoteCounts.get(i);void 0===s?(s=0,e.footnoteOrder.push(i),n=e.footnoteOrder.length):n=o+1,s+=1,e.footnoteCounts.set(i,s);let l={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+a,id:r+"fnref-"+a+(s>1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(n)}]};e.patch(t,l);let c={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,c),e.applyData(t,c)},heading:function(e,t){let n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},html:function(e,t){if(e.options.allowDangerousHtml){let n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}},imageReference:function(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return r1(e,t);let i={src:rW(r.url||""),alt:t.alt};null!==r.title&&void 0!==r.title&&(i.title=r.title);let a={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,a),e.applyData(t,a)},image:function(e,t){let n={src:rW(t.url)};null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt),null!==t.title&&void 0!==t.title&&(n.title=t.title);let r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)},inlineCode:function(e,t){let n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);let r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)},linkReference:function(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return r1(e,t);let i={href:rW(r.url||"")};null!==r.title&&void 0!==r.title&&(i.title=r.title);let a={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)},link:function(e,t){let n={href:rW(t.url)};null!==t.title&&void 0!==t.title&&(n.title=t.title);let r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},listItem:function(e,t,n){let r=e.all(t),i=n?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;let n=e.children,r=-1;for(;!t&&++r<n.length;)t=r4(n[r])}return t}(n):r4(t),a={},o=[];if("boolean"==typeof t.checked){let e,n=r[0];n&&"element"===n.type&&"p"===n.tagName?e=n:(e={type:"element",tagName:"p",properties:{},children:[]},r.unshift(e)),e.children.length>0&&e.children.unshift({type:"text",value:" "}),e.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),a.className=["task-list-item"]}let s=-1;for(;++s<r.length;){let e=r[s];(i||0!==s||"element"!==e.type||"p"!==e.tagName)&&o.push({type:"text",value:"\n"}),"element"!==e.type||"p"!==e.tagName||i?o.push(e):o.push(...e.children)}let l=r[r.length-1];l&&(i||"element"!==l.type||"p"!==l.tagName)&&o.push({type:"text",value:"\n"});let c={type:"element",tagName:"li",properties:a,children:o};return e.patch(t,c),e.applyData(t,c)},list:function(e,t){let n={},r=e.all(t),i=-1;for("number"==typeof t.start&&1!==t.start&&(n.start=t.start);++i<r.length;){let e=r[i];if("element"===e.type&&"li"===e.tagName&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}let a={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,a),e.applyData(t,a)},paragraph:function(e,t){let n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},root:function(e,t){let n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)},strong:function(e,t){let n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},table:function(e,t){let n=e.all(t),r=n.shift(),i=[];if(r){let n={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],n),i.push(n)}if(n.length>0){let r={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},a=tK(t.children[1]),o=tZ(t.children[t.children.length-1]);a&&o&&(r.position={start:a,end:o}),i.push(r)}let a={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,a),e.applyData(t,a)},tableCell:function(e,t){let n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){let r=n?n.children:void 0,i=0===(r?r.indexOf(t):1)?"th":"td",a=n&&"table"===n.type?n.align:void 0,o=a?a.length:t.children.length,s=-1,l=[];for(;++s<o;){let n=t.children[s],r={},o=a?a[s]:void 0;o&&(r.align=o);let c={type:"element",tagName:i,properties:r,children:[]};n&&(c.children=e.all(n),e.patch(n,c),c=e.applyData(n,c)),l.push(c)}let c={type:"element",tagName:"tr",properties:{},children:e.wrap(l,!0)};return e.patch(t,c),e.applyData(t,c)},text:function(e,t){let n={type:"text",value:function(e){let t=String(e),n=/\r?\n|\r/g,r=n.exec(t),i=0,a=[];for(;r;)a.push(r5(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return a.push(r5(t.slice(i),i>0,!1)),a.join("")}(String(t.value))};return e.patch(t,n),e.applyData(t,n)},thematicBreak:function(e,t){let n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)},toml:r3,yaml:r3,definition:r3,footnoteDefinition:r3};function r3(){}let r2={}.hasOwnProperty,r7={};function r8(e,t){e.position&&(t.position=t0(e))}function r9(e,t){let n=t;if(e&&e.data){let t=e.data.hName,r=e.data.hChildren,i=e.data.hProperties;"string"==typeof t&&("element"===n.type?n.tagName=t:n={type:"element",tagName:t,properties:{},children:"children"in n?n.children:[n]}),"element"===n.type&&i&&Object.assign(n.properties,rG(i)),"children"in n&&n.children&&null!=r&&(n.children=r)}return n}function ie(e,t){let n=[],r=-1;for(t&&n.push({type:"text",value:"\n"});++r<e.length;)r&&n.push({type:"text",value:"\n"}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:"\n"}),n}function it(e){let t=0,n=e.charCodeAt(t);for(;9===n||32===n;)t++,n=e.charCodeAt(t);return e.slice(t)}function ir(e,t){let n=function(e,t){let n=t||r7,r=new Map,i=new Map,a={all:function(e){let t=[];if("children"in e){let n=e.children,r=-1;for(;++r<n.length;){let i=a.one(n[r],e);if(i){if(r&&"break"===n[r-1].type&&(Array.isArray(i)||"text"!==i.type||(i.value=it(i.value)),!Array.isArray(i)&&"element"===i.type)){let e=i.children[0];e&&"text"===e.type&&(e.value=it(e.value))}Array.isArray(i)?t.push(...i):t.push(i)}}}return t},applyData:r9,definitionById:r,footnoteById:i,footnoteCounts:new Map,footnoteOrder:[],handlers:{...r6,...n.handlers},one:function(e,t){let n=e.type,r=a.handlers[n];if(r2.call(a.handlers,n)&&r)return r(a,e,t);if(a.options.passThrough&&a.options.passThrough.includes(n)){if("children"in e){let{children:t,...n}=e,r=rG(n);return r.children=a.all(e),r}return rG(e)}return(a.options.unknownHandler||function(e,t){let n=t.data||{},r="value"in t&&!(r2.call(n,"hProperties")||r2.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)})(a,e,t)},options:n,patch:r8,wrap:ie};return r0(e,function(e){if("definition"===e.type||"footnoteDefinition"===e.type){let t="definition"===e.type?r:i,n=String(e.identifier).toUpperCase();t.has(n)||t.set(n,e)}}),a}(e,t),r=n.one(e,void 0),i=function(e){let t="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||rV,r=e.options.footnoteBackLabel||r$,i=e.options.footnoteLabel||"Footnotes",a=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},s=[],l=-1;for(;++l<e.footnoteOrder.length;){let i=e.footnoteById.get(e.footnoteOrder[l]);if(!i)continue;let a=e.all(i),o=String(i.identifier).toUpperCase(),c=rW(o.toLowerCase()),u=0,h=[],p=e.footnoteCounts.get(o);for(;void 0!==p&&++u<=p;){h.length>0&&h.push({type:"text",value:" "});let e="string"==typeof n?n:n(l,u);"string"==typeof e&&(e={type:"text",value:e}),h.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+c+(u>1?"-"+u:""),dataFootnoteBackref:"",ariaLabel:"string"==typeof r?r:r(l,u),className:["data-footnote-backref"]},children:Array.isArray(e)?e:[e]})}let d=a[a.length-1];if(d&&"element"===d.type&&"p"===d.tagName){let e=d.children[d.children.length-1];e&&"text"===e.type?e.value+=" ":d.children.push({type:"text",value:" "}),d.children.push(...h)}else a.push(...h);let m={type:"element",tagName:"li",properties:{id:t+"fn-"+c},children:e.wrap(a,!0)};e.patch(i,m),s.push(m)}if(0!==s.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:a,properties:{...rG(o),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(s,!0)},{type:"text",value:"\n"}]}}(n),a=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&(tr("children"in a),a.children.push({type:"text",value:"\n"},i)),a}function ii(e,t){return e&&"run"in e?async function(n,r){let i=ir(n,{file:r,...t});await e.run(i,r)}:function(n,r){return ir(n,{file:r,...e||t})}}function ia(e){if(e)throw e}var io=e.i(4100);function is(e){if("object"!=typeof e||null===e)return!1;let t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}let il={basename:function(e,t){let n;if(void 0!==t&&"string"!=typeof t)throw TypeError('"ext" argument must be a string');ic(e);let r=0,i=-1,a=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;a--;)if(47===e.codePointAt(a)){if(n){r=a+1;break}}else i<0&&(n=!0,i=a+1);return i<0?"":e.slice(r,i)}if(t===e)return"";let o=-1,s=t.length-1;for(;a--;)if(47===e.codePointAt(a)){if(n){r=a+1;break}}else o<0&&(n=!0,o=a+1),s>-1&&(e.codePointAt(a)===t.codePointAt(s--)?s<0&&(i=a):(s=-1,i=o));return r===i?i=o:i<0&&(i=e.length),e.slice(r,i)},dirname:function(e){let t;if(ic(e),0===e.length)return".";let n=-1,r=e.length;for(;--r;)if(47===e.codePointAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.codePointAt(0)?"/":".":1===n&&47===e.codePointAt(0)?"//":e.slice(0,n)},extname:function(e){let t;ic(e);let n=e.length,r=-1,i=0,a=-1,o=0;for(;n--;){let s=e.codePointAt(n);if(47===s){if(t){i=n+1;break}continue}r<0&&(t=!0,r=n+1),46===s?a<0?a=n:1!==o&&(o=1):a>-1&&(o=-1)}return a<0||r<0||0===o||1===o&&a===r-1&&a===i+1?"":e.slice(a,r)},join:function(){let e;for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];let i=-1;for(;++i<n.length;)ic(n[i]),n[i]&&(e=void 0===e?n[i]:e+"/"+n[i]);return void 0===e?".":function(e){ic(e);let t=47===e.codePointAt(0),n=function(e,t){let n,r,i="",a=0,o=-1,s=0,l=-1;for(;++l<=e.length;){if(l<e.length)n=e.codePointAt(l);else if(47===n)break;else n=47;if(47===n){if(o===l-1||1===s);else if(o!==l-1&&2===s){if(i.length<2||2!==a||46!==i.codePointAt(i.length-1)||46!==i.codePointAt(i.length-2)){if(i.length>2){if((r=i.lastIndexOf("/"))!==i.length-1){r<0?(i="",a=0):a=(i=i.slice(0,r)).length-1-i.lastIndexOf("/"),o=l,s=0;continue}}else if(i.length>0){i="",a=0,o=l,s=0;continue}}t&&(i=i.length>0?i+"/..":"..",a=2)}else i.length>0?i+="/"+e.slice(o+1,l):i=e.slice(o+1,l),a=l-o-1;o=l,s=0}else 46===n&&s>-1?s++:s=-1}return i}(e,!t);return 0!==n.length||t||(n="."),n.length>0&&47===e.codePointAt(e.length-1)&&(n+="/"),t?"/"+n:n}(e)},sep:"/"};function ic(e){if("string"!=typeof e)throw TypeError("Path must be a string. Received "+JSON.stringify(e))}let iu={cwd:function(){return"/"}};function ih(e){return!!(null!==e&&"object"==typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}let ip=["history","path","basename","stem","extname","dirname"];class id{get basename(){return"string"==typeof this.path?il.basename(this.path):void 0}set basename(e){ig(e,"basename"),im(e,"basename"),this.path=il.join(this.dirname||"",e)}get dirname(){return"string"==typeof this.path?il.dirname(this.path):void 0}set dirname(e){iy(this.basename,"dirname"),this.path=il.join(e||"",this.basename)}get extname(){return"string"==typeof this.path?il.extname(this.path):void 0}set extname(e){if(im(e,"extname"),iy(this.dirname,"extname"),e){if(46!==e.codePointAt(0))throw Error("`extname` must start with `.`");if(e.includes(".",1))throw Error("`extname` cannot contain multiple dots")}this.path=il.join(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){ih(e)&&(e=function(e){if("string"==typeof e)e=new URL(e);else if(!ih(e)){let t=TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if("file:"!==e.protocol){let e=TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){let e=TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}let t=e.pathname,n=-1;for(;++n<t.length;)if(37===t.codePointAt(n)&&50===t.codePointAt(n+1)){let e=t.codePointAt(n+2);if(70===e||102===e){let e=TypeError("File URL path must not include encoded / characters");throw e.code="ERR_INVALID_FILE_URL_PATH",e}}return decodeURIComponent(t)}(e)}(e)),ig(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return"string"==typeof this.path?il.basename(this.path,this.extname):void 0}set stem(e){ig(e,"stem"),im(e,"stem"),this.path=il.join(this.dirname||"",e+(this.extname||""))}fail(e,t,n){let r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){let r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){let r=new t3(e,t,n);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){return void 0===this.value?"":"string"==typeof this.value?this.value:new TextDecoder(e||void 0).decode(this.value)}constructor(e){let t,n;t=e?ih(e)?{path:e}:"string"==typeof e||function(e){return!!(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(e)?{value:e}:e:{},this.cwd="cwd"in t?"":iu.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<ip.length;){let e=ip[r];e in t&&void 0!==t[e]&&null!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(n in t)ip.includes(n)||(this[n]=t[n])}}function im(e,t){if(e&&e.includes(il.sep))throw Error("`"+t+"` cannot be a path: did not expect `"+il.sep+"`")}function ig(e,t){if(!e)throw Error("`"+t+"` cannot be empty")}function iy(e,t){if(!e)throw Error("Setting `"+t+"` requires `path` to be set too")}let ib=function(e){let t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r},iv={}.hasOwnProperty;class ix extends ib{copy(){let e=new ix,t=-1;for(;++t<this.attachers.length;){let n=this.attachers[t];e.use(...n)}return e.data((0,io.default)(!0,{},this.namespace)),e}data(e,t){return"string"==typeof e?2==arguments.length?(iA("data",this.frozen),this.namespace[e]=t,this):iv.call(this.namespace,e)&&this.namespace[e]||void 0:e?(iA("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;for(;++this.freezeIndex<this.attachers.length;){let[e,...t]=this.attachers[this.freezeIndex];if(!1===t[0])continue;!0===t[0]&&(t[0]=void 0);let n=e.call(this,...t);"function"==typeof n&&this.transformers.use(n)}return this.frozen=!0,this.freezeIndex=1/0,this}parse(e){this.freeze();let t=i_(e),n=this.parser||this.Parser;return iw("parse",n),n(String(t),t)}process(e,t){let n=this;return this.freeze(),iw("process",this.parser||this.Parser),iS("process",this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,i){let a=i_(e),o=n.parse(a);function s(e,n){e||!n?i(e):r?r(n):(tr(t,"`done` is defined if `resolve` is not"),t(void 0,n))}n.run(o,a,function(e,t,r){var i,a;if(e||!t||!r)return s(e);let o=n.stringify(t,r);"string"==typeof(i=o)||(a=i)&&"object"==typeof a&&"byteLength"in a&&"byteOffset"in a?r.value=o:r.result=o,s(e,r)})}}processSync(e){let t,n=!1;return this.freeze(),iw("processSync",this.parser||this.Parser),iS("processSync",this.compiler||this.Compiler),this.process(e,function(e,r){n=!0,ia(e),t=r}),iT("processSync","process",n),tr(t,"we either bailed on an error or have a tree"),t}run(e,t,n){iC(e),this.freeze();let r=this.transformers;return n||"function"!=typeof t||(n=t,t=void 0),n?i(void 0,n):new Promise(i);function i(i,a){tr("function"!=typeof t,"`file` can’t be a `done` anymore, we checked");let o=i_(t);r.run(e,o,function(t,r,o){let s=r||e;t?a(t):i?i(s):(tr(n,"`done` is defined if `resolve` is not"),n(void 0,s,o))})}}runSync(e,t){let n,r=!1;return this.run(e,t,function(e,t){ia(e),n=t,r=!0}),iT("runSync","run",r),tr(n,"we either bailed on an error or have a tree"),n}stringify(e,t){this.freeze();let n=i_(t),r=this.compiler||this.Compiler;return iS("stringify",r),iC(e),r(e,n)}use(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];let i=this.attachers,a=this.namespace;if(iA("use",this.frozen),null==e);else if("function"==typeof e)l(e,n);else if("object"==typeof e)Array.isArray(e)?s(e):o(e);else throw TypeError("Expected usable value, not `"+e+"`");return this;function o(e){if(!("plugins"in e)&&!("settings"in e))throw Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");s(e.plugins),e.settings&&(a.settings=(0,io.default)(!0,a.settings,e.settings))}function s(e){let t=-1;if(null==e);else if(Array.isArray(e))for(;++t<e.length;){var n=e[t];if("function"==typeof n)l(n,[]);else if("object"==typeof n)if(Array.isArray(n)){let[e,...t]=n;l(e,t)}else o(n);else throw TypeError("Expected usable value, not `"+n+"`")}else throw TypeError("Expected a list of plugins, not `"+e+"`")}function l(e,t){let n=-1,r=-1;for(;++n<i.length;)if(i[n][0]===e){r=n;break}if(-1===r)i.push([e,...t]);else if(t.length>0){let[n,...a]=t,o=i[r][1];is(o)&&is(n)&&(n=(0,io.default)(!0,o,n)),i[r]=[e,n,...a]}}}constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=function(){let e=[],t={run:function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];let i=-1,a=n.pop();if("function"!=typeof a)throw TypeError("Expected function as last argument, not "+a);!function t(r){for(var o=arguments.length,s=Array(o>1?o-1:0),l=1;l<o;l++)s[l-1]=arguments[l];let c=e[++i],u=-1;if(r)return void a(r);for(;++u<n.length;)(null===s[u]||void 0===s[u])&&(s[u]=n[u]);n=s,c?(function(e,t){let n;return function(){let t;for(var a=arguments.length,o=Array(a),s=0;s<a;s++)o[s]=arguments[s];let l=e.length>o.length;l&&o.push(r);try{t=e.apply(this,o)}catch(e){if(l&&n)throw e;return r(e)}l||(t&&t.then&&"function"==typeof t.then?t.then(i,r):t instanceof Error?r(t):i(t))};function r(e){for(var r=arguments.length,i=Array(r>1?r-1:0),a=1;a<r;a++)i[a-1]=arguments[a];n||(n=!0,t(e,...i))}function i(e){r(null,e)}})(c,t)(...s):a(null,...s)}(null,...n)},use:function(n){if("function"!=typeof n)throw TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}()}}let ik=new ix().freeze();function iw(e,t){if("function"!=typeof t)throw TypeError("Cannot `"+e+"` without `parser`")}function iS(e,t){if("function"!=typeof t)throw TypeError("Cannot `"+e+"` without `compiler`")}function iA(e,t){if(t)throw Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function iC(e){if(!is(e)||"string"!=typeof e.type)throw TypeError("Expected node, got `"+e+"`")}function iT(e,t,n){if(!n)throw Error("`"+e+"` finished async. Use `"+t+"` instead")}function i_(e){var t;return(t=e)&&"object"==typeof t&&"message"in t&&"messages"in t?e:new id(e)}let iM=[],iN={allowDangerousHtml:!0},iE=/^(https?|ircs?|mailto|xmpp)$/i,iz=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function iI(e){let t=function(e){let t=e.rehypePlugins||iM,n=e.remarkPlugins||iM,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...iN}:iN;return ik().use(rP).use(n).use(ii,r).use(t)}(e),n=function(e){let t=e.children||"",n=new id;return"string"==typeof t?n.value=t:ti("Unexpected value `"+t+"` for `children` prop, expected `string`"),n}(e);return function(e,t){let n=t.allowedElements,r=t.allowElement,i=t.components,a=t.disallowedElements,o=t.skipHtml,s=t.unwrapDisallowed,l=t.urlTransform||ij;for(let e of iz)Object.hasOwn(t,e.from)&&ti("Unexpected `"+e.from+"` prop, "+(e.to?"use `"+e.to+"` instead":"remove it")+" (see <https://github.com/remarkjs/react-markdown/blob/main/changelog.md#"+e.id+"> for more info)");return n&&a&&ti("Unexpected combined `allowedElements` and `disallowedElements`, expected one or the other"),r0(e,function(e,t,i){if("raw"===e.type&&i&&"number"==typeof t)return o?i.children.splice(t,1):i.children[t]={type:"text",value:e.value},t;if("element"===e.type){let t;for(t in nc)if(Object.hasOwn(nc,t)&&Object.hasOwn(e.properties,t)){let n=e.properties[t],r=nc[t];(null===r||r.includes(e.tagName))&&(e.properties[t]=l(String(n||""),t,e))}}if("element"===e.type){let o=n?!n.includes(e.tagName):!!a&&a.includes(e.tagName);if(!o&&r&&"number"==typeof t&&(o=!r(e,t,i)),o&&i&&"number"==typeof t)return s&&e.children?i.children.splice(t,1,...e.children):i.children.splice(t,1),t}}),function(e,t){var n,r,i,a;let o;if(!t||void 0===t.Fragment)throw TypeError("Expected `Fragment` in options");let s=t.filePath||void 0;if(t.development){if("function"!=typeof t.jsxDEV)throw TypeError("Expected `jsxDEV` in options when `development: true`");n=s,r=t.jsxDEV,o=function(e,t,i,a){let o=Array.isArray(i.children),s=tK(e);return r(t,i,a,o,{columnNumber:s?s.column-1:void 0,fileName:n,lineNumber:s?s.line:void 0},void 0)}}else{if("function"!=typeof t.jsx)throw TypeError("Expected `jsx` in production options");if("function"!=typeof t.jsxs)throw TypeError("Expected `jsxs` in production options");i=t.jsx,a=t.jsxs,o=function(e,t,n,r){let o=Array.isArray(n.children)?a:i;return r?o(t,n,r):o(t,n)}}let l={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:o,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:s,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:!1!==t.passKeys,passNode:t.passNode||!1,schema:"svg"===t.space?t$:tV,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==t.tableCellAlignToStyle},c=nn(l,e,void 0);return c&&"string"!=typeof c?c:l.create(e,l.Fragment,{children:c||void 0},void 0)}(e,{Fragment:A.Fragment,components:i,ignoreInvalidStyle:!0,jsx:A.jsx,jsxs:A.jsxs,passKeys:!0,passNode:!0})}(t.runSync(t.parse(n),n),e)}function ij(e){let t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return -1===t||-1!==i&&t>i||-1!==n&&t>n||-1!==r&&t>r||iE.test(e.slice(0,t))?e:""}function iR(e,t){let n=String(e);if("string"!=typeof t)throw TypeError("Expected character");let r=0,i=n.indexOf(t);for(;-1!==i;)r++,i=n.indexOf(t,i+t.length);return r}let iL="phrasing",iP=["autolink","link","image","label"];function iB(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function iO(e){this.config.enter.autolinkProtocol.call(this,e)}function iD(e){this.config.exit.autolinkProtocol.call(this,e)}function iF(e){this.config.exit.data.call(this,e);let t=this.stack[this.stack.length-1];tr("link"===t.type),t.url="http://"+this.sliceSerialize(e)}function iq(e){this.config.exit.autolinkEmail.call(this,e)}function iH(e){this.exit(e)}function iU(e){!function(e,t,n){let r=rX((n||{}).ignore||[]),i=function(e){let t=[];if(!Array.isArray(e))throw TypeError("Expected find and replace tuple or list of tuples");let n=!e[0]||Array.isArray(e[0])?e:[e],r=-1;for(;++r<n.length;){var i;let e=n[r];t.push(["string"==typeof(i=e[0])?RegExp(function(e){if("string"!=typeof e)throw TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}(i),"g"):i,function(e){return"function"==typeof e?e:function(){return e}}(e[1])])}return t}(t),a=-1;for(;++a<i.length;)rQ(e,"text",o);function o(e,t){let n,o=-1;for(;++o<t.length;){let e=t[o],i=n?n.children:void 0;if(r(e,i?i.indexOf(e):void 0,n))return;n=e}if(n)return function(e,t){let n=t[t.length-1],r=i[a][0],o=i[a][1],s=0,l=n.children.indexOf(e),c=!1,u=[];r.lastIndex=0;let h=r.exec(e.value);for(;h;){let n=h.index,i={index:h.index,input:h.input,stack:[...t,e]},a=o(...h,i);if("string"==typeof a&&(a=a.length>0?{type:"text",value:a}:void 0),!1===a?r.lastIndex=n+1:(s!==n&&u.push({type:"text",value:e.value.slice(s,n)}),Array.isArray(a)?u.push(...a):a&&u.push(a),s=n+h[0].length,c=!0),!r.global)break;h=r.exec(e.value)}return c?(s<e.value.length&&u.push({type:"text",value:e.value.slice(s)}),n.children.splice(l,1,...u)):u=[e],l+u.length}(e,t)}}(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,iG],[RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),iW]],{ignore:["link","linkReference"]})}function iG(e,t,n,r,i){let a="";if(!iV(i)||(/^w/i.test(t)&&(n=t+n,t="",a="http://"),!function(e){let t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}(n)))return!1;let o=function(e){let t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")"),i=iR(e,"("),a=iR(e,")");for(;-1!==r&&i>a;)e+=n.slice(0,r+1),r=(n=n.slice(r+1)).indexOf(")"),a++;return[e,n]}(n+r);if(!o[0])return!1;let s={type:"link",title:null,url:a+t+o[0],children:[{type:"text",value:t+o[0]}]};return o[1]?[s,{type:"text",value:o[1]}]:s}function iW(e,t,n,r){return!(!iV(r,!0)||/[-\d_]$/.test(n))&&{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function iV(e,t){let n=e.input.charCodeAt(e.index-1);return(0===e.index||nN(n)||nM(n))&&(!t||47!==n)}function i$(){this.buffer()}function iX(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function iY(){this.buffer()}function iJ(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function iZ(e){let t=this.resume(),n=this.stack[this.stack.length-1];tr("footnoteReference"===n.type),n.identifier=rt(this.sliceSerialize(e)).toLowerCase(),n.label=t}function iK(e){this.exit(e)}function iQ(e){let t=this.resume(),n=this.stack[this.stack.length-1];tr("footnoteDefinition"===n.type),n.identifier=rt(this.sliceSerialize(e)).toLowerCase(),n.label=t}function i0(e){this.exit(e)}function i1(e,t,n,r){let i=n.createTracker(r),a=i.move("[^"),o=n.enter("footnoteReference"),s=n.enter("reference");return a+=i.move(n.safe(n.associationId(e),{after:"]",before:a})),s(),o(),a+=i.move("]")}function i4(e,t,n){return 0===t?e:i5(e,t,n)}function i5(e,t,n){return(n?"":" ")+e}i1.peek=function(){return"["};let i6=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];function i3(e){this.enter({type:"delete",children:[]},e)}function i2(e){this.exit(e)}function i7(e,t,n,r){let i=n.createTracker(r),a=n.enter("strikethrough"),o=i.move("~~");return o+=n.containerPhrasing(e,{...i.current(),before:o,after:"~"}),o+=i.move("~~"),a(),o}function i8(e){return e.length}function i9(e){let t="string"==typeof e?e.codePointAt(0):0;return 67===t||99===t?99:76===t||108===t?108:114*(82===t||114===t)}i7.peek=function(){return"~"};function ae(e,t,n){let r=e.value||"",i="`",a=-1;for(;RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++a<n.unsafe.length;){let e,t=n.unsafe[a],i=n.compilePattern(t);if(t.atBreak)for(;e=i.exec(r);){let t=e.index;10===r.charCodeAt(t)&&13===r.charCodeAt(t-1)&&t--,r=r.slice(0,t)+" "+r.slice(e.index+1)}}return i+r+i}ae.peek=function(){return"`"};rX(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);let at={inlineCode:ae,listItem:function(e,t,n,r){let i=function(e){let t=e.options.listItemIndent||"one";if("tab"!==t&&"one"!==t&&"mixed"!==t)throw Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}(n),a=n.bulletCurrent||function(e){let t=e.options.bullet||"*";if("*"!==t&&"+"!==t&&"-"!==t)throw Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}(n);t&&"list"===t.type&&t.ordered&&(a=("number"==typeof t.start&&t.start>-1?t.start:1)+(!1===n.options.incrementListMarker?0:t.children.indexOf(e))+a);let o=a.length+1;("tab"===i||"mixed"===i&&(t&&"list"===t.type&&t.spread||e.spread))&&(o=4*Math.ceil(o/4));let s=n.createTracker(r);s.move(a+" ".repeat(o-a.length)),s.shift(o);let l=n.enter("listItem"),c=n.indentLines(n.containerFlow(e,s.current()),function(e,t,n){return t?(n?"":" ".repeat(o))+e:(n?a:a+" ".repeat(o-a.length))+e});return l(),c}};function an(e){let t=e._align;tr(t,"expected `_align` on table"),this.enter({type:"table",align:t.map(function(e){return"none"===e?null:e}),children:[]},e),this.data.inTable=!0}function ar(e){this.exit(e),this.data.inTable=void 0}function ai(e){this.enter({type:"tableRow",children:[]},e)}function aa(e){this.exit(e)}function ao(e){this.enter({type:"tableCell",children:[]},e)}function as(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,al));let n=this.stack[this.stack.length-1];tr("inlineCode"===n.type),n.value=t,this.exit(e)}function al(e,t){return"|"===t?t:e}function ac(e){let t=this.stack[this.stack.length-2];tr("listItem"===t.type),t.checked="taskListCheckValueChecked"===e.type}function au(e){let t=this.stack[this.stack.length-2];if(t&&"listItem"===t.type&&"boolean"==typeof t.checked){let e=this.stack[this.stack.length-1];tr("paragraph"===e.type);let n=e.children[0];if(n&&"text"===n.type){let r,i=t.children,a=-1;for(;++a<i.length;){let e=i[a];if("paragraph"===e.type){r=e;break}}r===e&&(n.value=n.value.slice(1),0===n.value.length?e.children.shift():e.position&&n.position&&"number"==typeof n.position.start.offset&&(n.position.start.column++,n.position.start.offset++,e.position.start=Object.assign({},n.position.start)))}}this.exit(e)}function ah(e,t,n,r){let i=e.children[0],a="boolean"==typeof e.checked&&i&&"paragraph"===i.type,o="["+(e.checked?"x":" ")+"] ",s=n.createTracker(r);a&&s.move(o);let l=at.listItem(e,t,n,{...r,...s.current()});return a&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,function(e){return e+o})),l}let ap={tokenize:function(e,t,n){let r=0;return function t(a){return(87===a||119===a)&&r<3?(r++,e.consume(a),t):46===a&&3===r?(e.consume(a),i):n(a)};function i(e){return null===e?n(e):t(e)}},partial:!0},ad={tokenize:function(e,t,n){let r,i,a;return o;function o(t){return 46===t||95===t?e.check(af,l,s)(t):null===t||nT(t)||nN(t)||45!==t&&nM(t)?l(t):(a=!0,e.consume(t),o)}function s(t){return 95===t?r=!0:(i=r,r=void 0),e.consume(t),o}function l(e){return i||r||!a?n(e):t(e)}},partial:!0},am={tokenize:function(e,t){let n=0,r=0;return i;function i(o){return 40===o?(n++,e.consume(o),i):41===o&&r<n?a(o):33===o||34===o||38===o||39===o||41===o||42===o||44===o||46===o||58===o||59===o||60===o||63===o||93===o||95===o||126===o?e.check(af,t,a)(o):null===o||nT(o)||nN(o)?t(o):(e.consume(o),i)}function a(t){return 41===t&&r++,e.consume(t),i}},partial:!0},af={tokenize:function(e,t,n){return r;function r(o){return 33===o||34===o||39===o||41===o||42===o||44===o||46===o||58===o||59===o||63===o||95===o||126===o?(e.consume(o),r):38===o?(e.consume(o),a):93===o?(e.consume(o),i):60===o||null===o||nT(o)||nN(o)?t(o):n(o)}function i(e){return null===e||40===e||91===e||nT(e)||nN(e)?t(e):r(e)}function a(t){return nb(t)?function t(i){return 59===i?(e.consume(i),r):nb(i)?(e.consume(i),t):n(i)}(t):n(t)}},partial:!0},ag={tokenize:function(e,t,n){return function(t){return e.consume(t),r};function r(e){return nv(e)?n(e):t(e)}},partial:!0},ay={name:"wwwAutolink",tokenize:function(e,t,n){let r=this;return function(t){return 87!==t&&119!==t||!aw.call(r,r.previous)||aT(r.events)?n(t):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(ap,e.attempt(ad,e.attempt(am,i),n),n)(t))};function i(n){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(n)}},previous:aw},ab={name:"protocolAutolink",tokenize:function(e,t,n){let r=this,i="",a=!1;return function(t){return(72===t||104===t)&&aS.call(r,r.previous)&&!aT(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(t),e.consume(t),o):n(t)};function o(t){if(nb(t)&&i.length<5)return i+=String.fromCodePoint(t),e.consume(t),o;if(58===t){let n=i.toLowerCase();if("http"===n||"https"===n)return e.consume(t),s}return n(t)}function s(t){return 47===t?(e.consume(t),a)?l:(a=!0,s):n(t)}function l(t){return null===t||nk(t)||nT(t)||nN(t)||nM(t)?n(t):e.attempt(ad,e.attempt(am,c),n)(t)}function c(n){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(n)}},previous:aS},av={name:"emailAutolink",tokenize:function(e,t,n){let r,i,a=this;return function(t){return!aC(t)||!aA.call(a,a.previous)||aT(a.events)?n(t):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),function t(r){return aC(r)?(e.consume(r),t):64===r?(e.consume(r),o):n(r)}(t))};function o(t){return 46===t?e.check(ag,l,s)(t):45===t||95===t||nv(t)?(i=!0,e.consume(t),o):l(t)}function s(t){return e.consume(t),r=!0,o}function l(o){return i&&r&&nb(a.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(o)):n(o)}},previous:aA},ax={},ak=48;for(;ak<123;)ax[ak]=av,58==++ak?ak=65:91===ak&&(ak=97);function aw(e){return null===e||40===e||42===e||95===e||91===e||93===e||126===e||nT(e)}function aS(e){return!nb(e)}function aA(e){return!(47===e||aC(e))}function aC(e){return 43===e||45===e||46===e||95===e||nv(e)}function aT(e){let t=e.length,n=!1;for(;t--;){let r=e[t][1];if(("labelLink"===r.type||"labelImage"===r.type)&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}ax[43]=av,ax[45]=av,ax[46]=av,ax[95]=av,ax[72]=[av,ab],ax[104]=[av,ab],ax[87]=[av,ay],ax[119]=[av,ay];let a_={tokenize:function(e,t,n){let r=this;return nz(e,function(e){let i=r.events[r.events.length-1];return i&&"gfmFootnoteDefinitionIndent"===i[1].type&&4===i[2].sliceSerialize(i[1],!0).length?t(e):n(e)},"gfmFootnoteDefinitionIndent",5)},partial:!0};function aM(e,t,n){let r,i=this,a=i.events.length,o=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);for(;a--;){let e=i.events[a][1];if("labelImage"===e.type){r=e;break}if("gfmFootnoteCall"===e.type||"labelLink"===e.type||"label"===e.type||"image"===e.type||"link"===e.type)break}return function(a){if(!r||!r._balanced)return n(a);let s=rt(i.sliceSerialize({start:r.end,end:i.now()}));return 94===s.codePointAt(0)&&o.includes(s.slice(1))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(a),e.exit("gfmFootnoteCallLabelMarker"),t(a)):n(a)}}function aN(e,t){let n=e.length;for(;n--;)if("labelImage"===e[n][1].type&&"enter"===e[n][0]){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";let r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;let a={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},o={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},s=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",a,t],["enter",o,t],["exit",o,t],["exit",a,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...s),e}function aE(e,t,n){let r,i=this,a=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]),o=0;return function(t){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(t),e.exit("gfmFootnoteCallLabelMarker"),s};function s(t){return 94!==t?n(t):(e.enter("gfmFootnoteCallMarker"),e.consume(t),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",l)}function l(s){if(o>999||93===s&&!r||null===s||91===s||nT(s))return n(s);if(93===s){e.exit("chunkString");let r=e.exit("gfmFootnoteCallString");return a.includes(rt(i.sliceSerialize(r)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(s),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(s)}return nT(s)||(r=!0),o++,e.consume(s),92===s?c:l}function c(t){return 91===t||92===t||93===t?(e.consume(t),o++,l):l(t)}}function az(e,t,n){let r,i,a=this,o=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]),s=0;return function(t){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),l};function l(t){return 94===t?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):n(t)}function c(t){if(s>999||93===t&&!i||null===t||91===t||nT(t))return n(t);if(93===t){e.exit("chunkString");let n=e.exit("gfmFootnoteDefinitionLabelString");return r=rt(a.sliceSerialize(n)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),h}return nT(t)||(i=!0),s++,e.consume(t),92===t?u:c}function u(t){return 91===t||92===t||93===t?(e.consume(t),s++,c):c(t)}function h(t){return 58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),o.includes(r)||o.push(r),nz(e,p,"gfmFootnoteDefinitionWhitespace")):n(t)}function p(e){return t(e)}}function aI(e,t,n){return e.check(nL,t,e.attempt(a_,t,n))}function aj(e){e.exit("gfmFootnoteDefinition")}class aR{add(e,t,n){!function(e,t,n,r){let i=0;if(0!==n||0!==r.length){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=n,e.map[i][2].push(...r);return}i+=1}e.map.push([t,n,r])}}(this,e,t,n)}consume(e){if(this.map.sort(function(e,t){return e[0]-t[0]}),0===this.map.length)return;let t=this.map.length,n=[];for(;t>0;)t-=1,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let r=n.pop();for(;r;){for(let t of r)e.push(t);r=n.pop()}this.map.length=0}constructor(){this.map=[]}}function aL(e,t,n){let r,i=this,a=0,o=0;return function(e){let t=i.events.length-1;for(;t>-1;){let e=i.events[t][1].type;if("lineEnding"===e||"linePrefix"===e)t--;else break}let r=t>-1?i.events[t][1].type:null,a="tableHead"===r||"tableRow"===r?b:s;return a===b&&i.parser.lazy[i.now().line]?n(e):a(e)};function s(t){var n;return e.enter("tableHead"),e.enter("tableRow"),124===(n=t)||(r=!0,o+=1),l(n)}function l(t){return null===t?n(t):nC(t)?o>1?(o=0,i.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),h):n(t):n_(t)?nz(e,l,"whitespace")(t):(o+=1,r&&(r=!1,a+=1),124===t)?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),r=!0,l):(e.enter("data"),c(t))}function c(t){return null===t||124===t||nT(t)?(e.exit("data"),l(t)):(e.consume(t),92===t?u:c)}function u(t){return 92===t||124===t?(e.consume(t),c):c(t)}function h(t){return(i.interrupt=!1,i.parser.lazy[i.now().line])?n(t):(e.enter("tableDelimiterRow"),r=!1,n_(t))?nz(e,p,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):p(t)}function p(t){return 45===t||58===t?m(t):124===t?(r=!0,e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),d):n(t)}function d(t){return n_(t)?nz(e,m,"whitespace")(t):m(t)}function m(t){return 58===t?(o+=1,r=!0,e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),f):45===t?(o+=1,f(t)):null===t||nC(t)?y(t):n(t)}function f(t){return 45===t?(e.enter("tableDelimiterFiller"),function t(n){return 45===n?(e.consume(n),t):58===n?(r=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(n),e.exit("tableDelimiterMarker"),g):(e.exit("tableDelimiterFiller"),g(n))}(t)):n(t)}function g(t){return n_(t)?nz(e,y,"whitespace")(t):y(t)}function y(i){if(124===i)return p(i);if(null===i||nC(i))return r&&a===o?(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(i)):n(i);return n(i)}function b(t){return e.enter("tableRow"),v(t)}function v(n){return 124===n?(e.enter("tableCellDivider"),e.consume(n),e.exit("tableCellDivider"),v):null===n||nC(n)?(e.exit("tableRow"),t(n)):n_(n)?nz(e,v,"whitespace")(n):(e.enter("data"),x(n))}function x(t){return null===t||124===t||nT(t)?(e.exit("data"),v(t)):(e.consume(t),92===t?k:x)}function k(t){return 92===t||124===t?(e.consume(t),x):x(t)}}function aP(e,t){let n,r,i,a=-1,o=!0,s=0,l=[0,0,0,0],c=[0,0,0,0],u=!1,h=0,p=new aR;for(;++a<e.length;){let d=e[a],m=d[1];"enter"===d[0]?"tableHead"===m.type?(u=!1,0!==h&&(aO(p,t,h,n,r),r=void 0,h=0),n={type:"table",start:Object.assign({},m.start),end:Object.assign({},m.end)},p.add(a,0,[["enter",n,t]])):"tableRow"===m.type||"tableDelimiterRow"===m.type?(o=!0,i=void 0,l=[0,0,0,0],c=[0,a+1,0,0],u&&(u=!1,r={type:"tableBody",start:Object.assign({},m.start),end:Object.assign({},m.end)},p.add(a,0,[["enter",r,t]])),s="tableDelimiterRow"===m.type?2:r?3:1):s&&("data"===m.type||"tableDelimiterMarker"===m.type||"tableDelimiterFiller"===m.type)?(o=!1,0===c[2]&&(0!==l[1]&&(c[0]=c[1],i=aB(p,t,l,s,void 0,i),l=[0,0,0,0]),c[2]=a)):"tableCellDivider"===m.type&&(o?o=!1:(0!==l[1]&&(c[0]=c[1],i=aB(p,t,l,s,void 0,i)),c=[(l=c)[1],a,0,0])):"tableHead"===m.type?(u=!0,h=a):"tableRow"===m.type||"tableDelimiterRow"===m.type?(h=a,0!==l[1]?(c[0]=c[1],i=aB(p,t,l,s,a,i)):0!==c[1]&&(i=aB(p,t,c,s,a,i)),s=0):s&&("data"===m.type||"tableDelimiterMarker"===m.type||"tableDelimiterFiller"===m.type)&&(c[3]=a)}for(0!==h&&aO(p,t,h,n,r),p.consume(t.events),a=-1;++a<t.events.length;){let e=t.events[a];"enter"===e[0]&&"table"===e[1].type&&(e[1]._align=function(e,t){let n=!1,r=[];for(;t<e.length;){let i=e[t];if(n){if("enter"===i[0])"tableContent"===i[1].type&&r.push("tableDelimiterMarker"===e[t+1][1].type?"left":"none");else if("tableContent"===i[1].type){if("tableDelimiterMarker"===e[t-1][1].type){let e=r.length-1;r[e]="left"===r[e]?"center":"right"}}else if("tableDelimiterRow"===i[1].type)break}else"enter"===i[0]&&"tableDelimiterRow"===i[1].type&&(n=!0);t+=1}return r}(t.events,a))}return e}function aB(e,t,n,r,i,a){0!==n[0]&&(a.end=Object.assign({},aD(t.events,n[0])),e.add(n[0],0,[["exit",a,t]]));let o=aD(t.events,n[1]);if(a={type:1===r?"tableHeader":2===r?"tableDelimiter":"tableData",start:Object.assign({},o),end:Object.assign({},o)},e.add(n[1],0,[["enter",a,t]]),0!==n[2]){let i=aD(t.events,n[2]),a=aD(t.events,n[3]),o={type:"tableContent",start:Object.assign({},i),end:Object.assign({},a)};if(e.add(n[2],0,[["enter",o,t]]),2!==r){let r=t.events[n[2]],i=t.events[n[3]];if(r[1].end=Object.assign({},i[1].end),r[1].type="chunkText",r[1].contentType="text",n[3]>n[2]+1){let t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[["exit",o,t]])}return void 0!==i&&(a.end=Object.assign({},aD(t.events,i)),e.add(i,0,[["exit",a,t]]),a=void 0),a}function aO(e,t,n,r,i){let a=[],o=aD(t.events,n);i&&(i.end=Object.assign({},o),a.push(["exit",i,t])),r.end=Object.assign({},o),a.push(["exit",r,t]),e.add(n+1,0,a)}function aD(e,t){let n=e[t],r="enter"===n[0]?"start":"end";return n[1][r]}RegExp("^"+/<(\/?)(iframe|noembed|noframes|plaintext|script|style|title|textarea|xmp)(?=[\t\n\f\r />])/gi.source,"i");let aF={name:"tasklistCheck",tokenize:function(e,t,n){let r=this;return function(t){return null===r.previous&&r._gfmTasklistFirstContentOfListItem?(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),i):n(t)};function i(t){return nT(t)?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),a):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),a):n(t)}function a(t){return 93===t?(e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),o):n(t)}function o(r){return nC(r)?t(r):n_(r)?e.check({tokenize:aq},t,n)(r):n(r)}}};function aq(e,t,n){return nz(e,function(e){return null===e?n(e):t(e)},"whitespace")}let aH={};function aU(e){let t,n=e||aH,r=this.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),a=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),o=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(ny([{text:ax},{document:{91:{name:"gfmFootnoteDefinition",tokenize:az,continuation:{tokenize:aI},exit:aj}},text:{91:{name:"gfmFootnoteCall",tokenize:aE},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:aM,resolveTo:aN}}},function(e){let t=(e||{}).singleTilde,n={name:"strikethrough",tokenize:function(e,n,r){let i=this.previous,a=this.events,o=0;return function(s){return 126===i&&"characterEscape"!==a[a.length-1][1].type?r(s):(e.enter("strikethroughSequenceTemporary"),function a(s){let l=nX(i);if(126===s)return o>1?r(s):(e.consume(s),o++,a);if(o<2&&!t)return r(s);let c=e.exit("strikethroughSequenceTemporary"),u=nX(s);return c._open=!u||2===u&&!!l,c._close=!l||2===l&&!!u,n(s)}(s))}},resolveAll:function(e,t){let n=-1;for(;++n<e.length;)if("enter"===e[n][0]&&"strikethroughSequenceTemporary"===e[n][1].type&&e[n][1]._close){let r=n;for(;r--;)if("exit"===e[r][0]&&"strikethroughSequenceTemporary"===e[r][1].type&&e[r][1]._open&&e[n][1].end.offset-e[n][1].start.offset==e[r][1].end.offset-e[r][1].start.offset){e[n][1].type="strikethroughSequence",e[r][1].type="strikethroughSequence";let i={type:"strikethrough",start:Object.assign({},e[r][1].start),end:Object.assign({},e[n][1].end)},a={type:"strikethroughText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},o=[["enter",i,t],["enter",e[r][1],t],["exit",e[r][1],t],["enter",a,t]],s=t.parser.constructs.insideSpan.null;s&&nm(o,o.length,0,nY(s,e.slice(r+1,n),t)),nm(o,o.length,0,[["exit",a,t],["enter",e[n][1],t],["exit",e[n][1],t],["exit",i,t]]),nm(e,r-1,n-r+3,o),n=r+o.length-2;break}}for(n=-1;++n<e.length;)"strikethroughSequenceTemporary"===e[n][1].type&&(e[n][1].type="data");return e}};return null==t&&(t=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}}}(n),{flow:{null:{name:"table",tokenize:aL,resolveAll:aP}}},{text:{91:aF}}])),a.push([{transforms:[iU],enter:{literalAutolink:iB,literalAutolinkEmail:iO,literalAutolinkHttp:iO,literalAutolinkWww:iO},exit:{literalAutolink:iH,literalAutolinkEmail:iq,literalAutolinkHttp:iD,literalAutolinkWww:iF}},{enter:{gfmFootnoteCallString:i$,gfmFootnoteCall:iX,gfmFootnoteDefinitionLabelString:iY,gfmFootnoteDefinition:iJ},exit:{gfmFootnoteCallString:iZ,gfmFootnoteCall:iK,gfmFootnoteDefinitionLabelString:iQ,gfmFootnoteDefinition:i0}},{canContainEols:["delete"],enter:{strikethrough:i3},exit:{strikethrough:i2}},{enter:{table:an,tableData:ao,tableHeader:ao,tableRow:ai},exit:{codeText:as,table:ar,tableData:aa,tableHeader:aa,tableRow:aa}},{exit:{taskListCheckValueChecked:ac,taskListCheckValueUnchecked:ac,paragraph:au}}]),o.push({extensions:[{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:iL,notInConstruct:iP},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:iL,notInConstruct:iP},{character:":",before:"[ps]",after:"\\/",inConstruct:iL,notInConstruct:iP}]},(t=!1,n&&n.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:function(e,n,r,i){let a=r.createTracker(i),o=a.move("[^"),s=r.enter("footnoteDefinition"),l=r.enter("label");return o+=a.move(r.safe(r.associationId(e),{before:o,after:"]"})),l(),o+=a.move("]:"),e.children&&e.children.length>0&&(a.shift(4),o+=a.move((t?"\n":" ")+r.indentLines(r.containerFlow(e,a.current()),t?i5:i4))),s(),o},footnoteReference:i1},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]}),{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:i6}],handlers:{delete:i7}},function(e){let t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,a=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:"\n",inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:function(e,t,n){let r=at.inlineCode(e,t,n);return n.stack.includes("tableCell")&&(r=r.replace(/\|/g,"\\$&")),r},table:function(e,t,n,r){return s(function(e,t,n){let r=e.children,i=-1,a=[],o=t.enter("table");for(;++i<r.length;)a[i]=l(r[i],t,n);return o(),a}(e,n,r),e.align)},tableCell:o,tableRow:function(e,t,n,r){let i=s([l(e,n,r)]);return i.slice(0,i.indexOf("\n"))}}};function o(e,t,n,r){let i=n.enter("tableCell"),o=n.enter("phrasing"),s=n.containerPhrasing(e,{...r,before:a,after:a});return o(),i(),s}function s(e,t){return function(e,t){let n=t||{},r=(n.align||[]).concat(),i=n.stringLength||i8,a=[],o=[],s=[],l=[],c=0,u=-1;for(;++u<e.length;){let t=[],r=[],a=-1;for(e[u].length>c&&(c=e[u].length);++a<e[u].length;){var h;let o=null==(h=e[u][a])?"":String(h);if(!1!==n.alignDelimiters){let e=i(o);r[a]=e,(void 0===l[a]||e>l[a])&&(l[a]=e)}t.push(o)}o[u]=t,s[u]=r}let p=-1;if("object"==typeof r&&"length"in r)for(;++p<c;)a[p]=i9(r[p]);else{let e=i9(r);for(;++p<c;)a[p]=e}p=-1;let d=[],m=[];for(;++p<c;){let e=a[p],t="",r="";99===e?(t=":",r=":"):108===e?t=":":114===e&&(r=":");let i=!1===n.alignDelimiters?1:Math.max(1,l[p]-t.length-r.length),o=t+"-".repeat(i)+r;!1!==n.alignDelimiters&&((i=t.length+i+r.length)>l[p]&&(l[p]=i),m[p]=i),d[p]=o}o.splice(1,0,d),s.splice(1,0,m),u=-1;let f=[];for(;++u<o.length;){let e=o[u],t=s[u];p=-1;let r=[];for(;++p<c;){let i=e[p]||"",o="",s="";if(!1!==n.alignDelimiters){let e=l[p]-(t[p]||0),n=a[p];114===n?o=" ".repeat(e):99===n?e%2?(o=" ".repeat(e/2+.5),s=" ".repeat(e/2-.5)):s=o=" ".repeat(e/2):s=" ".repeat(e)}!1===n.delimiterStart||p||r.push("|"),!1!==n.padding&&(!1!==n.alignDelimiters||""!==i)&&(!1!==n.delimiterStart||p)&&r.push(" "),!1!==n.alignDelimiters&&r.push(o),r.push(i),!1!==n.alignDelimiters&&r.push(s),!1!==n.padding&&r.push(" "),(!1!==n.delimiterEnd||p!==c-1)&&r.push("|")}f.push(!1===n.delimiterEnd?r.join("").replace(/ +$/,""):r.join(""))}return f.join("\n")}(e,{align:t,alignDelimiters:r,padding:n,stringLength:i})}function l(e,t,n){let r=e.children,i=-1,a=[],s=t.enter("tableRow");for(;++i<r.length;)a[i]=o(r[i],e,t,n);return s(),a}}(n),{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:ah}}]})}let aG={tokenize:function(e,t,n){let r=this,i=r.events[r.events.length-1],a=i&&"linePrefix"===i[1].type?i[2].sliceSerialize(i[1],!0).length:0,o=0;return function(t){return e.enter("mathFlow"),e.enter("mathFlowFence"),e.enter("mathFlowFenceSequence"),function t(r){return 36===r?(e.consume(r),o++,t):o<2?n(r):(e.exit("mathFlowFenceSequence"),nz(e,s,"whitespace")(r))}(t)};function s(t){return null===t||nC(t)?l(t):(e.enter("mathFlowFenceMeta"),e.enter("chunkString",{contentType:"string"}),function t(r){return null===r||nC(r)?(e.exit("chunkString"),e.exit("mathFlowFenceMeta"),l(r)):36===r?n(r):(e.consume(r),t)}(t))}function l(n){return(e.exit("mathFlowFence"),r.interrupt)?t(n):e.attempt(aW,c,p)(n)}function c(t){return e.attempt({tokenize:d,partial:!0},p,u)(t)}function u(t){return(a?nz(e,h,"linePrefix",a+1):h)(t)}function h(t){return null===t?p(t):nC(t)?e.attempt(aW,c,p)(t):(e.enter("mathFlowValue"),function t(n){return null===n||nC(n)?(e.exit("mathFlowValue"),h(n)):(e.consume(n),t)}(t))}function p(n){return e.exit("mathFlow"),t(n)}function d(e,t,n){let i=0;return nz(e,function(t){return e.enter("mathFlowFence"),e.enter("mathFlowFenceSequence"),function t(r){return 36===r?(i++,e.consume(r),t):i<o?n(r):(e.exit("mathFlowFenceSequence"),nz(e,a,"whitespace")(r))}(t)},"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function a(r){return null===r||nC(r)?(e.exit("mathFlowFence"),t(r)):n(r)}}},concrete:!0,name:"mathFlow"},aW={tokenize:function(e,t,n){let r=this;return function(n){return null===n?t(n):(e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),i)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}},partial:!0};function aV(e){let t,n,r=e.length-4,i=3;if(("lineEnding"===e[3][1].type||"space"===e[i][1].type)&&("lineEnding"===e[r][1].type||"space"===e[r][1].type)){for(t=i;++t<r;)if("mathTextData"===e[t][1].type){e[r][1].type="mathTextPadding",e[i][1].type="mathTextPadding",i+=2,r-=2;break}}for(t=i-1,r++;++t<=r;)void 0===n?t!==r&&"lineEnding"!==e[t][1].type&&(n=t):(t===r||"lineEnding"===e[t][1].type)&&(e[n][1].type="mathTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),r-=t-n-2,t=n+2),n=void 0);return e}function a$(e){return 36!==e||"characterEscape"===this.events[this.events.length-1][1].type}let aX={};function aY(e){let t,n=e||aX,r=this.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),a=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),o=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push({flow:{36:aG},text:{36:(null==(t=(n||{}).singleDollarTextMath)&&(t=!0),{tokenize:function(e,n,r){let i,a,o=0;return function(n){return e.enter("mathText"),e.enter("mathTextSequence"),function n(i){return 36===i?(e.consume(i),o++,n):o<2&&!t?r(i):(e.exit("mathTextSequence"),s(i))}(n)};function s(t){return null===t?r(t):36===t?(a=e.enter("mathTextSequence"),i=0,function t(r){return 36===r?(e.consume(r),i++,t):i===o?(e.exit("mathTextSequence"),e.exit("mathText"),n(r)):(a.type="mathTextData",l(r))}(t)):32===t?(e.enter("space"),e.consume(t),e.exit("space"),s):nC(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),s):(e.enter("mathTextData"),l(t))}function l(t){return null===t||32===t||36===t||nC(t)?(e.exit("mathTextData"),s(t)):(e.consume(t),l)}},resolve:aV,previous:a$,name:"mathText"})}}),a.push(function(){return{enter:{mathFlow:function(e){this.enter({type:"math",meta:null,value:"",data:{hName:"pre",hChildren:[{type:"element",tagName:"code",properties:{className:["language-math","math-display"]},children:[]}]}},e)},mathFlowFenceMeta:function(){this.buffer()},mathText:function(e){this.enter({type:"inlineMath",value:"",data:{hName:"code",hProperties:{className:["language-math","math-inline"]},hChildren:[]}},e),this.buffer()}},exit:{mathFlow:function(e){let t=this.resume().replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),n=this.stack[this.stack.length-1];tr("math"===n.type),this.exit(e),n.value=t;let r=n.data.hChildren[0];tr("element"===r.type),tr("code"===r.tagName),r.children.push({type:"text",value:t}),this.data.mathFlowInside=void 0},mathFlowFence:function(){this.data.mathFlowInside||(this.buffer(),this.data.mathFlowInside=!0)},mathFlowFenceMeta:function(){let e=this.resume(),t=this.stack[this.stack.length-1];tr("math"===t.type),t.meta=e},mathFlowValue:e,mathText:function(e){let t=this.resume(),n=this.stack[this.stack.length-1];tr("inlineMath"===n.type),this.exit(e),n.value=t,n.data.hChildren.push({type:"text",value:t})},mathTextData:e}};function e(e){this.config.enter.data.call(this,e),this.config.exit.data.call(this,e)}}()),o.push(function(e){let t=(e||{}).singleDollarTextMath;return null==t&&(t=!0),n.peek=function(){return"$"},{unsafe:[{character:"\r",inConstruct:"mathFlowMeta"},{character:"\n",inConstruct:"mathFlowMeta"},{character:"$",after:t?void 0:"\\$",inConstruct:"phrasing"},{character:"$",inConstruct:"mathFlowMeta"},{atBreak:!0,character:"$",after:"\\$"}],handlers:{math:function(e,t,n,r){let i=e.value||"",a=n.createTracker(r),o="$".repeat(Math.max(function(e,t){let n=String(e),r=n.indexOf("$"),i=r,a=0,o=0;if("string"!=typeof t)throw TypeError("Expected substring");for(;-1!==r;)r===i?++a>o&&(o=a):a=1,i=r+t.length,r=n.indexOf(t,i);return o}(i,"$")+1,2)),s=n.enter("mathFlow"),l=a.move(o);if(e.meta){let t=n.enter("mathFlowMeta");l+=a.move(n.safe(e.meta,{after:"\n",before:l,encode:["$"],...a.current()})),t()}return l+=a.move("\n"),i&&(l+=a.move(i+"\n")),l+=a.move(o),s(),l},inlineMath:n}};function n(e,n,r){let i=e.value||"",a=1;for(!t&&a++;RegExp("(^|[^$])"+"\\$".repeat(a)+"([^$]|$)").test(i);)a++;let o="$".repeat(a);/[^ \r\n]/.test(i)&&(/^[ \r\n]/.test(i)&&/[ \r\n]$/.test(i)||/^\$|\$$/.test(i))&&(i=" "+i+" ");let s=-1;for(;++s<r.unsafe.length;){let e,t=r.unsafe[s];if(!t.atBreak)continue;let n=r.compilePattern(t);for(;e=n.exec(i);){let t=e.index;10===i.codePointAt(t)&&13===i.codePointAt(t-1)&&t--,i=i.slice(0,t)+" "+i.slice(e.index+1)}}return o+i+o}}(n))}let aJ=/[#.]/g;function aZ(e,t,n){let r=n?function(e){let t=new Map;for(let n of e)t.set(n.toLowerCase(),n);return t}(n):void 0;return function(n,i){let a;for(var o=arguments.length,s=Array(o>2?o-2:0),l=2;l<o;l++)s[l-2]=arguments[l];if(null==n)a={type:"root",children:[]},s.unshift(i);else{let o=(a=function(e,t){let n,r,i=e||"",a={},o=0;for(;o<i.length;){aJ.lastIndex=o;let e=aJ.exec(i),t=i.slice(o,e?e.index:i.length);t&&(n?"#"===n?a.id=t:Array.isArray(a.className)?a.className.push(t):a.className=[t]:r=t,o+=t.length),e&&(n=e[0],o++)}return{type:"element",tagName:r||t||"div",properties:a,children:[]}}(n,t)).tagName.toLowerCase(),l=r?r.get(o):void 0;if(a.tagName=l||o,function(e){if(null===e||"object"!=typeof e||Array.isArray(e))return!0;if("string"!=typeof e.type)return!1;for(let t of Object.keys(e)){let n=e[t];if(n&&"object"==typeof n){if(!Array.isArray(n))return!0;for(let e of n)if("number"!=typeof e&&"string"!=typeof e)return!0}}return!!("children"in e&&Array.isArray(e.children))}(i))s.unshift(i);else for(let[t,n]of Object.entries(i))!function(e,t,n,r){let i,a=tz(e,n);if(null!=r){if("number"==typeof r){if(Number.isNaN(r))return;i=r}else i="boolean"==typeof r?r:"string"==typeof r?a.spaceSeparated?tX(r):a.commaSeparated?ta(r):a.commaOrSpaceSeparated?tX(ta(r).join(" ")):aK(a,a.property,r):Array.isArray(r)?[...r]:"style"===a.property?function(e){let t=[];for(let[n,r]of Object.entries(e))t.push([n,r].join(": "));return t.join("; ")}(r):String(r);if(Array.isArray(i)){let e=[];for(let t of i)e.push(aK(a,a.property,t));i=e}"className"===a.property&&Array.isArray(t.className)&&(i=t.className.concat(i)),t[a.property]=i}}(e,a.properties,t,n)}for(let e of s)!function e(t,n){if(null==n);else if("number"==typeof n||"string"==typeof n)t.push({type:"text",value:String(n)});else if(Array.isArray(n))for(let r of n)e(t,r);else if("object"==typeof n&&"type"in n)"root"===n.type?e(t,n.children):t.push(n);else throw Error("Expected node, nodes, or string, got `"+n+"`")}(a.children,e);return"element"===a.type&&"template"===a.tagName&&(a.content={type:"root",children:a.children},a.children=[]),a}}function aK(e,t,n){if("string"==typeof n){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(""===n||t_(n)===t_(t)))return!0}return n}let aQ=aZ(tV,"div"),a0=aZ(t$,"g",["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"]),a1={html:"http://www.w3.org/1999/xhtml",svg:"http://www.w3.org/2000/svg"};function a4(e,t){let n=function(e,t){switch(e.nodeType){case 1:return function(e,t){let n=e.namespaceURI,r=n===a1.svg?a0:aQ,i=n===a1.html?e.tagName.toLowerCase():e.tagName,a=n===a1.html&&"template"===i?e.content:e,o=e.getAttributeNames(),s={},l=-1;for(;++l<o.length;)s[o[l]]=e.getAttribute(o[l])||"";return r(i,s,a5(a,t))}(e,t);case 3:return{type:"text",value:e.nodeValue||""};case 8:return{type:"comment",value:e.nodeValue||""};case 9:case 11:return function(e,t){return{type:"root",children:a5(e,t)}}(e,t);case 10:return{type:"doctype"};default:return}}(e,t);return n&&t.afterTransform&&t.afterTransform(e,n),n}function a5(e,t){let n=e.childNodes,r=[],i=-1;for(;++i<n.length;){let e=a4(n[i],t);void 0!==e&&r.push(e)}return r}let a6=new DOMParser,a3=function(e,t,n){let r=rX(n);if(!e||!e.type||!e.children)throw Error("Expected parent node");if("number"==typeof t){if(t<0||t===1/0)throw Error("Expected positive finite number as index")}else if((t=e.children.indexOf(t))<0)throw Error("Expected child node or index");for(;++t<e.children.length;)if(r(e.children[t],t,e))return e.children[t]},a2=function(e){if(null==e)return a8;if("string"==typeof e){var t;return t=e,a7(function(e){return e.tagName===t})}if("object"==typeof e){var n=e;let t=[],r=-1;for(;++r<n.length;)t[r]=a2(n[r]);return a7(function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];let i=-1;for(;++i<t.length;)if(t[i].apply(this,n))return!0;return!1})}if("function"==typeof e)return a7(e);throw Error("Expected function, string, or array as `test`")};function a7(e){return function(t,n,r){var i;return!!(null!==(i=t)&&"object"==typeof i&&"type"in i&&"tagName"in i&&e.call(this,t,"number"==typeof n?n:void 0,r||void 0))}}function a8(e){return!!(e&&"object"==typeof e&&"type"in e&&"element"===e.type&&"tagName"in e&&"string"==typeof e.tagName)}let a9=/\n/g,oe=/[\t ]+/g,ot=a2("br"),on=a2(function(e){return"td"===e.tagName||"th"===e.tagName}),or=a2("p"),oi=a2("tr"),oa=a2(["datalist","head","noembed","noframes","noscript","rp","script","style","template","title",function(e){return!!(e.properties||{}).hidden},function(e){return"dialog"===e.tagName&&!(e.properties||{}).open}]),oo=a2(["address","article","aside","blockquote","body","caption","center","dd","dialog","dir","dl","dt","div","figure","figcaption","footer","form,","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","legend","li","listing","main","menu","nav","ol","p","plaintext","pre","section","ul","xmp"]);function os(e,t){let n,r=String(e.value),i=[],a=[],o=0;for(;o<=r.length;){a9.lastIndex=o;let e=a9.exec(r),n=e&&"index"in e?e.index:r.length;i.push(function(e,t,n){let r,i=[],a=0;for(;a<e.length;){oe.lastIndex=a;let n=oe.exec(e);r=n?n.index:e.length,a||r||!n||t||i.push(""),a!==r&&i.push(e.slice(a,r)),a=n?r+n[0].length:r}return a===r||n||i.push(""),i.join(" ")}(r.slice(o,n).replace(/[\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g,""),0!==o||t.breakBefore,n!==r.length||t.breakAfter)),o=n+1}let s=-1;for(;++s<i.length;)8203===i[s].charCodeAt(i[s].length-1)||s<i.length-1&&8203===i[s+1].charCodeAt(0)?(a.push(i[s]),n=void 0):i[s]?("number"==typeof n&&a.push(n),a.push(i[s]),n=0):(0===s||s===i.length-1)&&a.push(0);return a}function ol(e,t){if("element"===e.type){let n=e.properties||{};switch(e.tagName){case"listing":case"plaintext":case"xmp":return"pre";case"nobr":return"nowrap";case"pre":return n.wrap?"pre-wrap":"pre";case"td":case"th":return n.noWrap?"nowrap":t.whitespace;case"textarea":return"pre-wrap"}}return t.whitespace}class oc extends Error{constructor(e,t){var n="KaTeX parse error: "+e,r=t&&t.loc;if(r&&r.start<=r.end){var i,a,o=r.lexer.input;i=r.start,a=r.end,i===o.length?n+=" at end of input: ":n+=" at position "+(i+1)+": ";var s=o.slice(i,a).replace(/[^]/g,"$&̲");n+=(i>15?"…"+o.slice(i-15,i):o.slice(0,i))+s+(a+15<o.length?o.slice(a,a+15)+"…":o.slice(a))}super(n),this.name="ParseError",Object.setPrototypeOf(this,oc.prototype),this.position=i,null!=i&&null!=a&&(this.length=a-i),this.rawMessage=e}}var ou=/([A-Z])/g,oh=e=>e.replace(ou,"-$1").toLowerCase(),op={"&":"&",">":">","<":"<",'"':""","'":"'"},od=/[&><"']/g,om=e=>String(e).replace(od,e=>op[e]),of=e=>{if("ordgroup"===e.type||"color"===e.type)if(1===e.body.length)return of(e.body[0]);else return e;return"font"===e.type?of(e.body):e},og=new Set(["mathord","textord","atom"]),oy=e=>og.has(of(e).type),ob={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format <type>"},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color <color>",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:e=>"#"+e},macros:{type:"object",cli:"-m, --macro <def>",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(e,t)=>(t.push(e),t)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:e=>Math.max(0,e),cli:"--min-rule-thickness <size>",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:e=>Math.max(0,e),cli:"-s, --max-size <n>",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:e=>Math.max(0,e),cli:"-e, --max-expand <n>",cliProcessor:e=>"Infinity"===e?1/0:parseInt(e)},globalGroup:{type:"boolean",cli:!1}};class ov{reportNonstrict(e,t,n){var r=this.strict;if("function"==typeof r&&(r=r(e,t,n)),r&&"ignore"!==r){if(!0===r||"error"===r)throw new oc("LaTeX-incompatible input and strict mode is set to 'error': "+(t+" [")+e+"]",n);"warn"===r?"undefined"!=typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(t+" [")+e+"]"):"undefined"!=typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+r+"': "+t+" [")+e+"]")}}useStrictBehavior(e,t,n){var r=this.strict;if("function"==typeof r)try{r=r(e,t,n)}catch(e){r="error"}return!!r&&"ignore"!==r&&(!0===r||"error"===r||("warn"===r?("undefined"!=typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(t+" [")+e+"]"),!1):("undefined"!=typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+r+"': "+t+" [")+e+"]"),!1)))}isTrusted(e){if("url"in e&&e.url&&!e.protocol){var t,n,r=(t=e.url,(n=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(t))?":"===n[2]&&/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(n[1])?n[1].toLowerCase():null:"_relative");if(null==r)return!1;e.protocol=r}return!!("function"==typeof this.trust?this.trust(e):this.trust)}constructor(e){for(var t of(void 0===e&&(e={}),e=e||{},Object.keys(ob))){var n=ob[t],r=e[t];this[t]=void 0!==r?n.processor?n.processor(r):r:function(e){if("default"in e)return e.default;var t=e.type,n=Array.isArray(t)?t[0]:t;if("string"!=typeof n)return n.enum[0];switch(n){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}(n)}}}class ox{sup(){return ok[ow[this.id]]}sub(){return ok[oS[this.id]]}fracNum(){return ok[oA[this.id]]}fracDen(){return ok[oC[this.id]]}cramp(){return ok[oT[this.id]]}text(){return ok[o_[this.id]]}isTight(){return this.size>=2}constructor(e,t,n){this.id=e,this.size=t,this.cramped=n}}var ok=[new ox(0,0,!1),new ox(1,0,!0),new ox(2,1,!1),new ox(3,1,!0),new ox(4,2,!1),new ox(5,2,!0),new ox(6,3,!1),new ox(7,3,!0)],ow=[4,5,4,5,6,7,6,7],oS=[5,5,5,5,7,7,7,7],oA=[2,3,4,5,6,7,6,7],oC=[3,3,5,5,7,7,7,7],oT=[1,1,3,3,5,5,7,7],o_=[0,1,2,3,2,3,2,3],oM={DISPLAY:ok[0],TEXT:ok[2],SCRIPT:ok[4],SCRIPTSCRIPT:ok[6]},oN=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}],oE=[];function oz(e){for(var t=0;t<oE.length;t+=2)if(e>=oE[t]&&e<=oE[t+1])return!0;return!1}oN.forEach(e=>e.blocks.forEach(e=>oE.push(...e)));var oI=function(e,t,n){t*=1e3;var r,i,a,o,s,l,c="";switch(e){case"sqrtMain":c="M95,"+(622+(r=t)+80)+"\nc-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14\nc0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54\nc44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10\ns173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429\nc69,-144,104.5,-217.7,106.5,-221\nl"+r/2.075+" -"+r+"\nc5.3,-9.3,12,-14,20,-14\nH400000v"+(40+r)+"H845.2724\ns-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7\nc-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z\nM"+(834+r)+" 80h400000v"+(40+r)+"h-400000z";break;case"sqrtSize1":c="M263,"+(601+(i=t)+80)+"c0.7,0,18,39.7,52,119\nc34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120\nc340,-704.7,510.7,-1060.3,512,-1067\nl"+i/2.084+" -"+i+"\nc4.7,-7.3,11,-11,19,-11\nH40000v"+(40+i)+"H1012.3\ns-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232\nc-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1\ns-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26\nc-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z\nM"+(1001+i)+" 80h400000v"+(40+i)+"h-400000z";break;case"sqrtSize2":c="M983 "+(10+(a=t)+80)+"\nl"+a/3.13+" -"+a+"\nc4,-6.7,10,-10,18,-10 H400000v"+(40+a)+"\nH1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7\ns-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744\nc-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30\nc26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722\nc56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5\nc53.7,-170.3,84.5,-266.8,92.5,-289.5z\nM"+(1001+a)+" 80h400000v"+(40+a)+"h-400000z";break;case"sqrtSize3":c="M424,"+(2398+(o=t)+80)+"\nc-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514\nc0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20\ns-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121\ns209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081\nl"+o/4.223+" -"+o+"c4,-6.7,10,-10,18,-10 H400000\nv"+(40+o)+"H1014.6\ns-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185\nc-2,6,-10,9,-24,9\nc-8,0,-12,-0.7,-12,-2z M"+(1001+o)+" 80\nh400000v"+(40+o)+"h-400000z";break;case"sqrtSize4":c="M473,"+(2713+(s=t)+80)+"\nc339.3,-1799.3,509.3,-2700,510,-2702 l"+s/5.298+" -"+s+"\nc3.3,-7.3,9.3,-11,18,-11 H400000v"+(40+s)+"H1017.7\ns-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9\nc-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200\nc0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26\ns76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,\n606zM"+(1001+s)+" 80h400000v"+(40+s)+"H1017.7z";break;case"sqrtTall":c="M702 "+((l=t)+80)+"H400000"+(40+l)+"\nH742v"+(n-54-80-l)+"l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1\nh-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170\nc-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667\n219 661 l218 661zM702 80H400000v"+(40+l)+"H742z"}return c},oj=function(e,t){switch(e){case"⎜":let n;return(n="M291 0 H417 V"+t+" H291z")+" "+n;case"∣":let r;return(r="M145 0 H188 V"+t+" H145z")+" "+r;case"∥":let i,a;return(i="M145 0 H188 V"+t+" H145z")+" "+i+((a="M367 0 H410 V"+t+" H367z")+" ")+a;case"⎟":let o;return(o="M457 0 H583 V"+t+" H457z")+" "+o;case"⎢":let s;return(s="M319 0 H403 V"+t+" H319z")+" "+s;case"⎥":let l;return(l="M263 0 H347 V"+t+" H263z")+" "+l;case"⎪":let c;return(c="M384 0 H504 V"+t+" H384z")+" "+c;case"⏐":let u;return(u="M312 0 H355 V"+t+" H312z")+" "+u;case"‖":let h,p;return(h="M257 0 H300 V"+t+" H257z")+" "+h+((p="M478 0 H521 V"+t+" H478z")+" ")+p;default:return""}},oR={doubleleftarrow:"M262 157\nl10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3\n 0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28\n 14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5\nc2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5\n 157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87\n-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7\n-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z\nm8 0v40h399730v-40zm0 194v40h399730v-40z",doublerightarrow:"M399738 392l\n-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5\n 14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88\n-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68\n-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18\n-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782\nc-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3\n-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z",leftarrow:"M400000 241H110l3-3c68.7-52.7 113.7-120\n 135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8\n-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247\nc-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208\n 490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3\n 1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202\n l-3-3h399890zM100 241v40h399900v-40z",leftbrace:"M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117\n-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7\n 5-6 9-10 13-.7 1-7.3 1-20 1H6z",leftbraceunder:"M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13\n 35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688\n 0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7\n-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z",leftgroup:"M400000 80\nH435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0\n 435 0h399565z",leftgroupunder:"M400000 262\nH435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219\n 435 219h399565z",leftharpoon:"M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3\n-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5\n-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7\n-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z",leftharpoonplus:"M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5\n 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3\n-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7\n-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z\nm0 0v40h400000v-40z",leftharpoondown:"M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333\n 5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5\n 1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667\n-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z",leftharpoondownplus:"M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12\n 10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7\n-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0\nv40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z",lefthook:"M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5\n-83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3\n-68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21\n 71.5 23h399859zM103 281v-40h399897v40z",leftlinesegment:(e=>e+" "+e)("M40 281 V428 H0 V94 H40 V241 H400000 v40z"),leftbracketunder:(e=>e+" "+e)("M0 0 h120 V290 H399995 v120 H0z"),leftbracketover:(e=>e+" "+e)("M0 440 h120 V150 H399995 v-120 H0z"),leftmapsto:(e=>e+" "+e)("M40 281 V448H0V74H40V241H400000v40z"),leftToFrom:"M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23\n-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8\nc28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3\n 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z",longequal:(e=>e+" "+e)("M0 50 h400000 v40H0z m0 194h40000v40H0z"),midbrace:"M200428 334\nc-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14\n-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7\n 311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11\n 12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z",midbraceunder:"M199572 214\nc100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14\n 53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3\n 11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0\n-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z",oiintSize1:"M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6\n-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z\nm368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8\n60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z",oiintSize2:"M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8\n-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z\nm502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2\nc0 110 84 276 504 276s502.4-166 502.4-276z",oiiintSize1:"M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6\n-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z\nm525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0\n85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z",oiiintSize2:"M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8\n-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z\nm770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1\nc0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z",rightarrow:"M0 241v40h399891c-47.3 35.3-84 78-110 128\n-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20\n 11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7\n 39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85\n-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5\n-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67\n 151.7 139 205zm0 0v40h399900v-40z",rightbrace:"M400000 542l\n-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5\ns-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1\nc124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z",rightbraceunder:"M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3\n 28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237\n-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z",rightgroup:"M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0\n 3-1 3-3v-38c-76-158-257-219-435-219H0z",rightgroupunder:"M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18\n 0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z",rightharpoon:"M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3\n-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2\n-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58\n 69.2 92 94.5zm0 0v40h399900v-40z",rightharpoonplus:"M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11\n-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7\n 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z\nm0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z",rightharpoondown:"M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8\n 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5\n-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95\n-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z",rightharpoondownplus:"M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8\n 15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3\n 8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3\n-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z\nm0-194v40h400000v-40zm0 0v40h400000v-40z",righthook:"M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3\n 15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0\n-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21\n 66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z",rightlinesegment:(e=>e+" "+e)("M399960 241 V94 h40 V428 h-40 V281 H0 v-40z"),rightbracketunder:(e=>e+" "+e)("M399995 0 h-120 V290 H0 v120 H400000z"),rightbracketover:(e=>e+" "+e)("M399995 440 h-120 V150 H0 v-120 H399995z"),rightToFrom:"M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23\n 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32\n-52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142\n-167z M100 147v40h399900v-40zM0 341v40h399900v-40z",twoheadleftarrow:"M0 167c68 40\n 115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69\n-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3\n-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19\n-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101\n 10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z",twoheadrightarrow:"M400000 167\nc-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3\n 41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42\n 18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333\n-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70\n 101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z",tilde1:"M200 55.538c-77 0-168 73.953-177 73.953-3 0-7\n-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0\n 114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0\n 4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128\n-68.267.847-113-73.952-191-73.952z",tilde2:"M344 55.266c-142 0-300.638 81.316-311.5 86.418\n-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9\n 31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114\nc1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751\n 181.476 676 181.476c-149 0-189-126.21-332-126.21z",tilde3:"M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457\n-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0\n 411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697\n 16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696\n -338 0-409-156.573-744-156.573z",tilde4:"M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345\n-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409\n 177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9\n 14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409\n -175.236-744-175.236z",vec:"M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5\n3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11\n10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63\n-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1\n-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59\nH213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359\nc-16-25.333-24-45-24-59z",widehat1:"M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22\nc-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z",widehat2:"M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widehat3:"M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widehat4:"M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widecheck1:"M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1,\n-5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z",widecheck2:"M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",widecheck3:"M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",widecheck4:"M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",baraboveleftarrow:"M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202\nc4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5\nc-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130\ns-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47\n121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6\ns2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11\nc0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z\nM100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z",rightarrowabovebar:"M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32\n-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0\n13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39\n-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5\n-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5\n-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67\n151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z",baraboveshortleftharpoon:"M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11\nc1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17\nc2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21\nc-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40\nc-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z\nM0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z",rightharpoonaboveshortbar:"M0,241 l0,40c399126,0,399993,0,399993,0\nc4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,\n-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6\nc-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z\nM0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z",shortbaraboveleftharpoon:"M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11\nc1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9,\n1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7,\n-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z\nM93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z",shortrightharpoonabovebar:"M53,241l0,40c398570,0,399437,0,399437,0\nc4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,\n-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6\nc-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z\nM500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z"},oL=function(e,t){switch(e){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+t+" v1759 h347 v-84\nH403z M403 1759 V0 H319 V1759 v"+t+" v1759 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+t+" v1759 H0 v84 H347z\nM347 1759 V0 H263 V1759 v"+t+" v1759 h84z";case"vert":return"M145 15 v585 v"+t+" v585 c2.667,10,9.667,15,21,15\nc10,0,16.667,-5,20,-15 v-585 v"+-t+" v-585 c-2.667,-10,-9.667,-15,-21,-15\nc-10,0,-16.667,5,-20,15z M188 15 H145 v585 v"+t+" v585 h43z";case"doublevert":return"M145 15 v585 v"+t+" v585 c2.667,10,9.667,15,21,15\nc10,0,16.667,-5,20,-15 v-585 v"+-t+" v-585 c-2.667,-10,-9.667,-15,-21,-15\nc-10,0,-16.667,5,-20,15z M188 15 H145 v585 v"+t+" v585 h43z\nM367 15 v585 v"+t+" v585 c2.667,10,9.667,15,21,15\nc10,0,16.667,-5,20,-15 v-585 v"+-t+" v-585 c-2.667,-10,-9.667,-15,-21,-15\nc-10,0,-16.667,5,-20,15z M410 15 H367 v585 v"+t+" v585 h43z";case"lfloor":return"M319 602 V0 H403 V602 v"+t+" v1715 h263 v84 H319z\nMM319 602 V0 H403 V602 v"+t+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+t+" v1799 H0 v-84 H319z\nMM319 602 V0 H403 V602 v"+t+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+t+" v602 h84z\nM403 1759 V0 H319 V1759 v"+t+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+t+" v602 h84z\nM347 1759 V0 h-84 V1759 v"+t+" v602 h84z";case"lparen":return"M863,9c0,-2,-2,-5,-6,-9c0,0,-17,0,-17,0c-12.7,0,-19.3,0.3,-20,1\nc-5.3,5.3,-10.3,11,-15,17c-242.7,294.7,-395.3,682,-458,1162c-21.3,163.3,-33.3,349,\n-36,557 l0,"+(t+84)+"c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210,\n949.7,470,1265c4.7,6,9.7,11.7,15,17c0.7,0.7,7,1,19,1c0,0,18,0,18,0c4,-4,6,-7,6,-9\nc0,-2.7,-3.3,-8.7,-10,-18c-135.3,-192.7,-235.5,-414.3,-300.5,-665c-65,-250.7,-102.5,\n-544.7,-112.5,-882c-2,-104,-3,-167,-3,-189\nl0,-"+(t+92)+"c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3,\n-210,155.3,-396.3,270,-559c6.7,-9.3,10,-15.3,10,-18z";case"rparen":return"M76,0c-16.7,0,-25,3,-25,9c0,2,2,6.3,6,13c21.3,28.7,42.3,60.3,\n63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5\nc11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,"+(t+9)+"\nc-3,4,-3.3,16.7,-3.3,38c0,162,-5.7,313.7,-17,455c-18.7,248,-55.8,469.3,-111.5,664\nc-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6,11\nc0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17\nc242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558\nl0,-"+(t+144)+"c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,\n-470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z";default:throw Error("Unknown stretchy delimiter.")}};class oP{hasClass(e){return this.classes.includes(e)}toNode(){for(var e=document.createDocumentFragment(),t=0;t<this.children.length;t++)e.appendChild(this.children[t].toNode());return e}toMarkup(){for(var e="",t=0;t<this.children.length;t++)e+=this.children[t].toMarkup();return e}toText(){return this.children.map(e=>e.toText()).join("")}constructor(e){this.children=e,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}}var oB={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:1.00375,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:1.00375},oO={ex:!0,em:!0,mu:!0},oD=function(e){return"string"!=typeof e&&(e=e.unit),e in oB||e in oO||"ex"===e},oF=function(e,t){var n,r;if(e.unit in oB)n=oB[e.unit]/t.fontMetrics().ptPerEm/t.sizeMultiplier;else if("mu"===e.unit)n=t.fontMetrics().cssEmPerMu;else{if(r=t.style.isTight()?t.havingStyle(t.style.text()):t,"ex"===e.unit)n=r.fontMetrics().xHeight;else if("em"===e.unit)n=r.fontMetrics().quad;else throw new oc("Invalid unit: '"+e.unit+"'");r!==t&&(n*=r.sizeMultiplier/t.sizeMultiplier)}return Math.min(e.number*n,t.maxSize)},oq=function(e){return+e.toFixed(4)+"em"},oH=function(e){return e.filter(e=>e).join(" ")},oU=function(e,t,n){if(this.classes=e||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=n||{},t){t.style.isTight()&&this.classes.push("mtight");var r=t.getColor();r&&(this.style.color=r)}},oG=function(e){var t=document.createElement(e);for(var n of(t.className=oH(this.classes),Object.keys(this.style)))t.style[n]=this.style[n];for(var r of Object.keys(this.attributes))t.setAttribute(r,this.attributes[r]);for(var i=0;i<this.children.length;i++)t.appendChild(this.children[i].toNode());return t},oW=/[\s"'>/=\x00-\x1f]/,oV=function(e){var t="<"+e;this.classes.length&&(t+=' class="'+om(oH(this.classes))+'"');var n="";for(var r of Object.keys(this.style))n+=oh(r)+":"+this.style[r]+";";for(var i of(n&&(t+=' style="'+om(n)+'"'),Object.keys(this.attributes))){if(oW.test(i))throw new oc("Invalid attribute name '"+i+"'");t+=" "+i+'="'+om(this.attributes[i])+'"'}t+=">";for(var a=0;a<this.children.length;a++)t+=this.children[a].toMarkup();return t+("</"+e+">")};class o${setAttribute(e,t){this.attributes[e]=t}hasClass(e){return this.classes.includes(e)}toNode(){return oG.call(this,"span")}toMarkup(){return oV.call(this,"span")}constructor(e,t,n,r){oU.call(this,e,n,r),this.children=t||[]}}class oX{setAttribute(e,t){this.attributes[e]=t}hasClass(e){return this.classes.includes(e)}toNode(){return oG.call(this,"a")}toMarkup(){return oV.call(this,"a")}constructor(e,t,n,r){oU.call(this,t,r),this.children=n||[],this.setAttribute("href",e)}}class oY{hasClass(e){return this.classes.includes(e)}toNode(){var e=document.createElement("img");for(var t of(e.src=this.src,e.alt=this.alt,e.className="mord",Object.keys(this.style)))e.style[t]=this.style[t];return e}toMarkup(){var e='<img src="'+om(this.src)+'" alt="'+om(this.alt)+'"',t="";for(var n of Object.keys(this.style))t+=oh(n)+":"+this.style[n]+";";return t&&(e+=' style="'+om(t)+'"'),e+="'/>"}constructor(e,t,n){this.alt=t,this.src=e,this.classes=["mord"],this.height=0,this.depth=0,this.maxFontSize=0,this.style=n}}var oJ={î:"ı̂",ï:"ı̈",í:"ı́",ì:"ı̀"};class oZ{hasClass(e){return this.classes.includes(e)}toNode(){var e=document.createTextNode(this.text),t=null;for(var n of(this.italic>0&&((t=document.createElement("span")).style.marginRight=oq(this.italic)),this.classes.length>0&&((t=t||document.createElement("span")).className=oH(this.classes)),Object.keys(this.style)))(t=t||document.createElement("span")).style[n]=this.style[n];return t?(t.appendChild(e),t):e}toMarkup(){var e=!1,t="<span";this.classes.length&&(e=!0,t+=' class="',t+=om(oH(this.classes)),t+='"');var n="";for(var r of(this.italic>0&&(n+="margin-right:"+oq(this.italic)+";"),Object.keys(this.style)))n+=oh(r)+":"+this.style[r]+";";n&&(e=!0,t+=' style="'+om(n)+'"');var i=om(this.text);return e?(t+=">",t+=i,t+="</span>"):i}constructor(e,t,n,r,i,a,o,s){this.text=e,this.height=t||0,this.depth=n||0,this.italic=r||0,this.skew=i||0,this.width=a||0,this.classes=o||[],this.style=s||{},this.maxFontSize=0;var l=function(e){for(var t=0;t<oN.length;t++)for(var n=oN[t],r=0;r<n.blocks.length;r++){var i=n.blocks[r];if(e>=i[0]&&e<=i[1])return n.name}return null}(this.text.charCodeAt(0));l&&this.classes.push(l+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=oJ[this.text])}}class oK{toNode(){var e=document.createElementNS("http://www.w3.org/2000/svg","svg");for(var t of Object.keys(this.attributes))e.setAttribute(t,this.attributes[t]);for(var n=0;n<this.children.length;n++)e.appendChild(this.children[n].toNode());return e}toMarkup(){var e='<svg xmlns="http://www.w3.org/2000/svg"';for(var t of Object.keys(this.attributes))e+=" "+t+'="'+om(this.attributes[t])+'"';e+=">";for(var n=0;n<this.children.length;n++)e+=this.children[n].toMarkup();return e+"</svg>"}constructor(e,t){this.children=e||[],this.attributes=t||{}}}class oQ{toNode(){var e=document.createElementNS("http://www.w3.org/2000/svg","path");return this.alternate?e.setAttribute("d",this.alternate):e.setAttribute("d",oR[this.pathName]),e}toMarkup(){return this.alternate?'<path d="'+om(this.alternate)+'"/>':'<path d="'+om(oR[this.pathName])+'"/>'}constructor(e,t){this.pathName=e,this.alternate=t}}class o0{toNode(){var e=document.createElementNS("http://www.w3.org/2000/svg","line");for(var t of Object.keys(this.attributes))e.setAttribute(t,this.attributes[t]);return e}toMarkup(){var e="<line";for(var t of Object.keys(this.attributes))e+=" "+t+'="'+om(this.attributes[t])+'"';return e+"/>"}constructor(e){this.attributes=e||{}}}var o1={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},o4={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},o5={Å:"A",Ð:"D",Þ:"o",å:"a",ð:"d",þ:"o",А:"A",Б:"B",В:"B",Г:"F",Д:"A",Е:"E",Ж:"K",З:"3",И:"N",Й:"N",К:"K",Л:"N",М:"M",Н:"H",О:"O",П:"N",Р:"P",С:"C",Т:"T",У:"y",Ф:"O",Х:"X",Ц:"U",Ч:"h",Ш:"W",Щ:"W",Ъ:"B",Ы:"X",Ь:"B",Э:"3",Ю:"X",Я:"R",а:"a",б:"b",в:"a",г:"r",д:"y",е:"e",ж:"m",з:"e",и:"n",й:"n",к:"n",л:"n",м:"m",н:"n",о:"o",п:"n",р:"p",с:"c",т:"o",у:"y",ф:"b",х:"x",ц:"n",ч:"n",ш:"w",щ:"w",ъ:"a",ы:"m",ь:"a",э:"e",ю:"m",я:"r"};function o6(e,t,n){if(!o1[t])throw Error("Font metrics not found for font: "+t+".");var r=e.charCodeAt(0),i=o1[t][r];if(!i&&e[0]in o5&&(r=o5[e[0]].charCodeAt(0),i=o1[t][r]),!i&&"text"===n&&oz(r)&&(i=o1[t][77]),i)return{depth:i[0],height:i[1],italic:i[2],skew:i[3],width:i[4]}}var o3={},o2={bin:1,close:1,inner:1,open:1,punct:1,rel:1},o7={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},o8={math:{},text:{}};function o9(e,t,n,r,i,a){o8[e][i]={font:t,group:n,replace:r},a&&r&&(o8[e][r]=o8[e][i])}var se="math",st="text",sn="main",sr="accent-token",si="close",sa="inner",so="mathord",ss="op-token",sl="open",sc="punct",su="spacing",sh="textord";o9(se,sn,"rel","≡","\\equiv",!0),o9(se,sn,"rel","≺","\\prec",!0),o9(se,sn,"rel","≻","\\succ",!0),o9(se,sn,"rel","∼","\\sim",!0),o9(se,sn,"rel","⊥","\\perp"),o9(se,sn,"rel","⪯","\\preceq",!0),o9(se,sn,"rel","⪰","\\succeq",!0),o9(se,sn,"rel","≃","\\simeq",!0),o9(se,sn,"rel","∣","\\mid",!0),o9(se,sn,"rel","≪","\\ll",!0),o9(se,sn,"rel","≫","\\gg",!0),o9(se,sn,"rel","≍","\\asymp",!0),o9(se,sn,"rel","∥","\\parallel"),o9(se,sn,"rel","⋈","\\bowtie",!0),o9(se,sn,"rel","⌣","\\smile",!0),o9(se,sn,"rel","⊑","\\sqsubseteq",!0),o9(se,sn,"rel","⊒","\\sqsupseteq",!0),o9(se,sn,"rel","≐","\\doteq",!0),o9(se,sn,"rel","⌢","\\frown",!0),o9(se,sn,"rel","∋","\\ni",!0),o9(se,sn,"rel","∝","\\propto",!0),o9(se,sn,"rel","⊢","\\vdash",!0),o9(se,sn,"rel","⊣","\\dashv",!0),o9(se,sn,"rel","∋","\\owns"),o9(se,sn,sc,".","\\ldotp"),o9(se,sn,sc,"⋅","\\cdotp"),o9(se,sn,sc,"⋅","·"),o9(st,sn,sh,"⋅","·"),o9(se,sn,sh,"#","\\#"),o9(st,sn,sh,"#","\\#"),o9(se,sn,sh,"&","\\&"),o9(st,sn,sh,"&","\\&"),o9(se,sn,sh,"ℵ","\\aleph",!0),o9(se,sn,sh,"∀","\\forall",!0),o9(se,sn,sh,"ℏ","\\hbar",!0),o9(se,sn,sh,"∃","\\exists",!0),o9(se,sn,sh,"∇","\\nabla",!0),o9(se,sn,sh,"♭","\\flat",!0),o9(se,sn,sh,"ℓ","\\ell",!0),o9(se,sn,sh,"♮","\\natural",!0),o9(se,sn,sh,"♣","\\clubsuit",!0),o9(se,sn,sh,"℘","\\wp",!0),o9(se,sn,sh,"♯","\\sharp",!0),o9(se,sn,sh,"♢","\\diamondsuit",!0),o9(se,sn,sh,"ℜ","\\Re",!0),o9(se,sn,sh,"♡","\\heartsuit",!0),o9(se,sn,sh,"ℑ","\\Im",!0),o9(se,sn,sh,"♠","\\spadesuit",!0),o9(se,sn,sh,"§","\\S",!0),o9(st,sn,sh,"§","\\S"),o9(se,sn,sh,"¶","\\P",!0),o9(st,sn,sh,"¶","\\P"),o9(se,sn,sh,"†","\\dag"),o9(st,sn,sh,"†","\\dag"),o9(st,sn,sh,"†","\\textdagger"),o9(se,sn,sh,"‡","\\ddag"),o9(st,sn,sh,"‡","\\ddag"),o9(st,sn,sh,"‡","\\textdaggerdbl"),o9(se,sn,si,"⎱","\\rmoustache",!0),o9(se,sn,sl,"⎰","\\lmoustache",!0),o9(se,sn,si,"⟯","\\rgroup",!0),o9(se,sn,sl,"⟮","\\lgroup",!0),o9(se,sn,"bin","∓","\\mp",!0),o9(se,sn,"bin","⊖","\\ominus",!0),o9(se,sn,"bin","⊎","\\uplus",!0),o9(se,sn,"bin","⊓","\\sqcap",!0),o9(se,sn,"bin","∗","\\ast"),o9(se,sn,"bin","⊔","\\sqcup",!0),o9(se,sn,"bin","◯","\\bigcirc",!0),o9(se,sn,"bin","∙","\\bullet",!0),o9(se,sn,"bin","‡","\\ddagger"),o9(se,sn,"bin","≀","\\wr",!0),o9(se,sn,"bin","⨿","\\amalg"),o9(se,sn,"bin","&","\\And"),o9(se,sn,"rel","⟵","\\longleftarrow",!0),o9(se,sn,"rel","⇐","\\Leftarrow",!0),o9(se,sn,"rel","⟸","\\Longleftarrow",!0),o9(se,sn,"rel","⟶","\\longrightarrow",!0),o9(se,sn,"rel","⇒","\\Rightarrow",!0),o9(se,sn,"rel","⟹","\\Longrightarrow",!0),o9(se,sn,"rel","↔","\\leftrightarrow",!0),o9(se,sn,"rel","⟷","\\longleftrightarrow",!0),o9(se,sn,"rel","⇔","\\Leftrightarrow",!0),o9(se,sn,"rel","⟺","\\Longleftrightarrow",!0),o9(se,sn,"rel","↦","\\mapsto",!0),o9(se,sn,"rel","⟼","\\longmapsto",!0),o9(se,sn,"rel","↗","\\nearrow",!0),o9(se,sn,"rel","↩","\\hookleftarrow",!0),o9(se,sn,"rel","↪","\\hookrightarrow",!0),o9(se,sn,"rel","↘","\\searrow",!0),o9(se,sn,"rel","↼","\\leftharpoonup",!0),o9(se,sn,"rel","⇀","\\rightharpoonup",!0),o9(se,sn,"rel","↙","\\swarrow",!0),o9(se,sn,"rel","↽","\\leftharpoondown",!0),o9(se,sn,"rel","⇁","\\rightharpoondown",!0),o9(se,sn,"rel","↖","\\nwarrow",!0),o9(se,sn,"rel","⇌","\\rightleftharpoons",!0),o9(se,"ams","rel","≮","\\nless",!0),o9(se,"ams","rel","","\\@nleqslant"),o9(se,"ams","rel","","\\@nleqq"),o9(se,"ams","rel","⪇","\\lneq",!0),o9(se,"ams","rel","≨","\\lneqq",!0),o9(se,"ams","rel","","\\@lvertneqq"),o9(se,"ams","rel","⋦","\\lnsim",!0),o9(se,"ams","rel","⪉","\\lnapprox",!0),o9(se,"ams","rel","⊀","\\nprec",!0),o9(se,"ams","rel","⋠","\\npreceq",!0),o9(se,"ams","rel","⋨","\\precnsim",!0),o9(se,"ams","rel","⪹","\\precnapprox",!0),o9(se,"ams","rel","≁","\\nsim",!0),o9(se,"ams","rel","","\\@nshortmid"),o9(se,"ams","rel","∤","\\nmid",!0),o9(se,"ams","rel","⊬","\\nvdash",!0),o9(se,"ams","rel","⊭","\\nvDash",!0),o9(se,"ams","rel","⋪","\\ntriangleleft"),o9(se,"ams","rel","⋬","\\ntrianglelefteq",!0),o9(se,"ams","rel","⊊","\\subsetneq",!0),o9(se,"ams","rel","","\\@varsubsetneq"),o9(se,"ams","rel","⫋","\\subsetneqq",!0),o9(se,"ams","rel","","\\@varsubsetneqq"),o9(se,"ams","rel","≯","\\ngtr",!0),o9(se,"ams","rel","","\\@ngeqslant"),o9(se,"ams","rel","","\\@ngeqq"),o9(se,"ams","rel","⪈","\\gneq",!0),o9(se,"ams","rel","≩","\\gneqq",!0),o9(se,"ams","rel","","\\@gvertneqq"),o9(se,"ams","rel","⋧","\\gnsim",!0),o9(se,"ams","rel","⪊","\\gnapprox",!0),o9(se,"ams","rel","⊁","\\nsucc",!0),o9(se,"ams","rel","⋡","\\nsucceq",!0),o9(se,"ams","rel","⋩","\\succnsim",!0),o9(se,"ams","rel","⪺","\\succnapprox",!0),o9(se,"ams","rel","≆","\\ncong",!0),o9(se,"ams","rel","","\\@nshortparallel"),o9(se,"ams","rel","∦","\\nparallel",!0),o9(se,"ams","rel","⊯","\\nVDash",!0),o9(se,"ams","rel","⋫","\\ntriangleright"),o9(se,"ams","rel","⋭","\\ntrianglerighteq",!0),o9(se,"ams","rel","","\\@nsupseteqq"),o9(se,"ams","rel","⊋","\\supsetneq",!0),o9(se,"ams","rel","","\\@varsupsetneq"),o9(se,"ams","rel","⫌","\\supsetneqq",!0),o9(se,"ams","rel","","\\@varsupsetneqq"),o9(se,"ams","rel","⊮","\\nVdash",!0),o9(se,"ams","rel","⪵","\\precneqq",!0),o9(se,"ams","rel","⪶","\\succneqq",!0),o9(se,"ams","rel","","\\@nsubseteqq"),o9(se,"ams","bin","⊴","\\unlhd"),o9(se,"ams","bin","⊵","\\unrhd"),o9(se,"ams","rel","↚","\\nleftarrow",!0),o9(se,"ams","rel","↛","\\nrightarrow",!0),o9(se,"ams","rel","⇍","\\nLeftarrow",!0),o9(se,"ams","rel","⇏","\\nRightarrow",!0),o9(se,"ams","rel","↮","\\nleftrightarrow",!0),o9(se,"ams","rel","⇎","\\nLeftrightarrow",!0),o9(se,"ams","rel","△","\\vartriangle"),o9(se,"ams",sh,"ℏ","\\hslash"),o9(se,"ams",sh,"▽","\\triangledown"),o9(se,"ams",sh,"◊","\\lozenge"),o9(se,"ams",sh,"Ⓢ","\\circledS"),o9(se,"ams",sh,"®","\\circledR"),o9(st,"ams",sh,"®","\\circledR"),o9(se,"ams",sh,"∡","\\measuredangle",!0),o9(se,"ams",sh,"∄","\\nexists"),o9(se,"ams",sh,"℧","\\mho"),o9(se,"ams",sh,"Ⅎ","\\Finv",!0),o9(se,"ams",sh,"⅁","\\Game",!0),o9(se,"ams",sh,"‵","\\backprime"),o9(se,"ams",sh,"▲","\\blacktriangle"),o9(se,"ams",sh,"▼","\\blacktriangledown"),o9(se,"ams",sh,"■","\\blacksquare"),o9(se,"ams",sh,"⧫","\\blacklozenge"),o9(se,"ams",sh,"★","\\bigstar"),o9(se,"ams",sh,"∢","\\sphericalangle",!0),o9(se,"ams",sh,"∁","\\complement",!0),o9(se,"ams",sh,"ð","\\eth",!0),o9(st,sn,sh,"ð","ð"),o9(se,"ams",sh,"╱","\\diagup"),o9(se,"ams",sh,"╲","\\diagdown"),o9(se,"ams",sh,"□","\\square"),o9(se,"ams",sh,"□","\\Box"),o9(se,"ams",sh,"◊","\\Diamond"),o9(se,"ams",sh,"¥","\\yen",!0),o9(st,"ams",sh,"¥","\\yen",!0),o9(se,"ams",sh,"✓","\\checkmark",!0),o9(st,"ams",sh,"✓","\\checkmark"),o9(se,"ams",sh,"ℶ","\\beth",!0),o9(se,"ams",sh,"ℸ","\\daleth",!0),o9(se,"ams",sh,"ℷ","\\gimel",!0),o9(se,"ams",sh,"ϝ","\\digamma",!0),o9(se,"ams",sh,"ϰ","\\varkappa"),o9(se,"ams",sl,"┌","\\@ulcorner",!0),o9(se,"ams",si,"┐","\\@urcorner",!0),o9(se,"ams",sl,"└","\\@llcorner",!0),o9(se,"ams",si,"┘","\\@lrcorner",!0),o9(se,"ams","rel","≦","\\leqq",!0),o9(se,"ams","rel","⩽","\\leqslant",!0),o9(se,"ams","rel","⪕","\\eqslantless",!0),o9(se,"ams","rel","≲","\\lesssim",!0),o9(se,"ams","rel","⪅","\\lessapprox",!0),o9(se,"ams","rel","≊","\\approxeq",!0),o9(se,"ams","bin","⋖","\\lessdot"),o9(se,"ams","rel","⋘","\\lll",!0),o9(se,"ams","rel","≶","\\lessgtr",!0),o9(se,"ams","rel","⋚","\\lesseqgtr",!0),o9(se,"ams","rel","⪋","\\lesseqqgtr",!0),o9(se,"ams","rel","≑","\\doteqdot"),o9(se,"ams","rel","≓","\\risingdotseq",!0),o9(se,"ams","rel","≒","\\fallingdotseq",!0),o9(se,"ams","rel","∽","\\backsim",!0),o9(se,"ams","rel","⋍","\\backsimeq",!0),o9(se,"ams","rel","⫅","\\subseteqq",!0),o9(se,"ams","rel","⋐","\\Subset",!0),o9(se,"ams","rel","⊏","\\sqsubset",!0),o9(se,"ams","rel","≼","\\preccurlyeq",!0),o9(se,"ams","rel","⋞","\\curlyeqprec",!0),o9(se,"ams","rel","≾","\\precsim",!0),o9(se,"ams","rel","⪷","\\precapprox",!0),o9(se,"ams","rel","⊲","\\vartriangleleft"),o9(se,"ams","rel","⊴","\\trianglelefteq"),o9(se,"ams","rel","⊨","\\vDash",!0),o9(se,"ams","rel","⊪","\\Vvdash",!0),o9(se,"ams","rel","⌣","\\smallsmile"),o9(se,"ams","rel","⌢","\\smallfrown"),o9(se,"ams","rel","≏","\\bumpeq",!0),o9(se,"ams","rel","≎","\\Bumpeq",!0),o9(se,"ams","rel","≧","\\geqq",!0),o9(se,"ams","rel","⩾","\\geqslant",!0),o9(se,"ams","rel","⪖","\\eqslantgtr",!0),o9(se,"ams","rel","≳","\\gtrsim",!0),o9(se,"ams","rel","⪆","\\gtrapprox",!0),o9(se,"ams","bin","⋗","\\gtrdot"),o9(se,"ams","rel","⋙","\\ggg",!0),o9(se,"ams","rel","≷","\\gtrless",!0),o9(se,"ams","rel","⋛","\\gtreqless",!0),o9(se,"ams","rel","⪌","\\gtreqqless",!0),o9(se,"ams","rel","≖","\\eqcirc",!0),o9(se,"ams","rel","≗","\\circeq",!0),o9(se,"ams","rel","≜","\\triangleq",!0),o9(se,"ams","rel","∼","\\thicksim"),o9(se,"ams","rel","≈","\\thickapprox"),o9(se,"ams","rel","⫆","\\supseteqq",!0),o9(se,"ams","rel","⋑","\\Supset",!0),o9(se,"ams","rel","⊐","\\sqsupset",!0),o9(se,"ams","rel","≽","\\succcurlyeq",!0),o9(se,"ams","rel","⋟","\\curlyeqsucc",!0),o9(se,"ams","rel","≿","\\succsim",!0),o9(se,"ams","rel","⪸","\\succapprox",!0),o9(se,"ams","rel","⊳","\\vartriangleright"),o9(se,"ams","rel","⊵","\\trianglerighteq"),o9(se,"ams","rel","⊩","\\Vdash",!0),o9(se,"ams","rel","∣","\\shortmid"),o9(se,"ams","rel","∥","\\shortparallel"),o9(se,"ams","rel","≬","\\between",!0),o9(se,"ams","rel","⋔","\\pitchfork",!0),o9(se,"ams","rel","∝","\\varpropto"),o9(se,"ams","rel","◀","\\blacktriangleleft"),o9(se,"ams","rel","∴","\\therefore",!0),o9(se,"ams","rel","∍","\\backepsilon"),o9(se,"ams","rel","▶","\\blacktriangleright"),o9(se,"ams","rel","∵","\\because",!0),o9(se,"ams","rel","⋘","\\llless"),o9(se,"ams","rel","⋙","\\gggtr"),o9(se,"ams","bin","⊲","\\lhd"),o9(se,"ams","bin","⊳","\\rhd"),o9(se,"ams","rel","≂","\\eqsim",!0),o9(se,sn,"rel","⋈","\\Join"),o9(se,"ams","rel","≑","\\Doteq",!0),o9(se,"ams","bin","∔","\\dotplus",!0),o9(se,"ams","bin","∖","\\smallsetminus"),o9(se,"ams","bin","⋒","\\Cap",!0),o9(se,"ams","bin","⋓","\\Cup",!0),o9(se,"ams","bin","⩞","\\doublebarwedge",!0),o9(se,"ams","bin","⊟","\\boxminus",!0),o9(se,"ams","bin","⊞","\\boxplus",!0),o9(se,"ams","bin","⋇","\\divideontimes",!0),o9(se,"ams","bin","⋉","\\ltimes",!0),o9(se,"ams","bin","⋊","\\rtimes",!0),o9(se,"ams","bin","⋋","\\leftthreetimes",!0),o9(se,"ams","bin","⋌","\\rightthreetimes",!0),o9(se,"ams","bin","⋏","\\curlywedge",!0),o9(se,"ams","bin","⋎","\\curlyvee",!0),o9(se,"ams","bin","⊝","\\circleddash",!0),o9(se,"ams","bin","⊛","\\circledast",!0),o9(se,"ams","bin","⋅","\\centerdot"),o9(se,"ams","bin","⊺","\\intercal",!0),o9(se,"ams","bin","⋒","\\doublecap"),o9(se,"ams","bin","⋓","\\doublecup"),o9(se,"ams","bin","⊠","\\boxtimes",!0),o9(se,"ams","rel","⇢","\\dashrightarrow",!0),o9(se,"ams","rel","⇠","\\dashleftarrow",!0),o9(se,"ams","rel","⇇","\\leftleftarrows",!0),o9(se,"ams","rel","⇆","\\leftrightarrows",!0),o9(se,"ams","rel","⇚","\\Lleftarrow",!0),o9(se,"ams","rel","↞","\\twoheadleftarrow",!0),o9(se,"ams","rel","↢","\\leftarrowtail",!0),o9(se,"ams","rel","↫","\\looparrowleft",!0),o9(se,"ams","rel","⇋","\\leftrightharpoons",!0),o9(se,"ams","rel","↶","\\curvearrowleft",!0),o9(se,"ams","rel","↺","\\circlearrowleft",!0),o9(se,"ams","rel","↰","\\Lsh",!0),o9(se,"ams","rel","⇈","\\upuparrows",!0),o9(se,"ams","rel","↿","\\upharpoonleft",!0),o9(se,"ams","rel","⇃","\\downharpoonleft",!0),o9(se,sn,"rel","⊶","\\origof",!0),o9(se,sn,"rel","⊷","\\imageof",!0),o9(se,"ams","rel","⊸","\\multimap",!0),o9(se,"ams","rel","↭","\\leftrightsquigarrow",!0),o9(se,"ams","rel","⇉","\\rightrightarrows",!0),o9(se,"ams","rel","⇄","\\rightleftarrows",!0),o9(se,"ams","rel","↠","\\twoheadrightarrow",!0),o9(se,"ams","rel","↣","\\rightarrowtail",!0),o9(se,"ams","rel","↬","\\looparrowright",!0),o9(se,"ams","rel","↷","\\curvearrowright",!0),o9(se,"ams","rel","↻","\\circlearrowright",!0),o9(se,"ams","rel","↱","\\Rsh",!0),o9(se,"ams","rel","⇊","\\downdownarrows",!0),o9(se,"ams","rel","↾","\\upharpoonright",!0),o9(se,"ams","rel","⇂","\\downharpoonright",!0),o9(se,"ams","rel","⇝","\\rightsquigarrow",!0),o9(se,"ams","rel","⇝","\\leadsto"),o9(se,"ams","rel","⇛","\\Rrightarrow",!0),o9(se,"ams","rel","↾","\\restriction"),o9(se,sn,sh,"‘","`"),o9(se,sn,sh,"$","\\$"),o9(st,sn,sh,"$","\\$"),o9(st,sn,sh,"$","\\textdollar"),o9(se,sn,sh,"%","\\%"),o9(st,sn,sh,"%","\\%"),o9(se,sn,sh,"_","\\_"),o9(st,sn,sh,"_","\\_"),o9(st,sn,sh,"_","\\textunderscore"),o9(se,sn,sh,"∠","\\angle",!0),o9(se,sn,sh,"∞","\\infty",!0),o9(se,sn,sh,"′","\\prime"),o9(se,sn,sh,"△","\\triangle"),o9(se,sn,sh,"Γ","\\Gamma",!0),o9(se,sn,sh,"Δ","\\Delta",!0),o9(se,sn,sh,"Θ","\\Theta",!0),o9(se,sn,sh,"Λ","\\Lambda",!0),o9(se,sn,sh,"Ξ","\\Xi",!0),o9(se,sn,sh,"Π","\\Pi",!0),o9(se,sn,sh,"Σ","\\Sigma",!0),o9(se,sn,sh,"Υ","\\Upsilon",!0),o9(se,sn,sh,"Φ","\\Phi",!0),o9(se,sn,sh,"Ψ","\\Psi",!0),o9(se,sn,sh,"Ω","\\Omega",!0),o9(se,sn,sh,"A","Α"),o9(se,sn,sh,"B","Β"),o9(se,sn,sh,"E","Ε"),o9(se,sn,sh,"Z","Ζ"),o9(se,sn,sh,"H","Η"),o9(se,sn,sh,"I","Ι"),o9(se,sn,sh,"K","Κ"),o9(se,sn,sh,"M","Μ"),o9(se,sn,sh,"N","Ν"),o9(se,sn,sh,"O","Ο"),o9(se,sn,sh,"P","Ρ"),o9(se,sn,sh,"T","Τ"),o9(se,sn,sh,"X","Χ"),o9(se,sn,sh,"¬","\\neg",!0),o9(se,sn,sh,"¬","\\lnot"),o9(se,sn,sh,"⊤","\\top"),o9(se,sn,sh,"⊥","\\bot"),o9(se,sn,sh,"∅","\\emptyset"),o9(se,"ams",sh,"∅","\\varnothing"),o9(se,sn,so,"α","\\alpha",!0),o9(se,sn,so,"β","\\beta",!0),o9(se,sn,so,"γ","\\gamma",!0),o9(se,sn,so,"δ","\\delta",!0),o9(se,sn,so,"ϵ","\\epsilon",!0),o9(se,sn,so,"ζ","\\zeta",!0),o9(se,sn,so,"η","\\eta",!0),o9(se,sn,so,"θ","\\theta",!0),o9(se,sn,so,"ι","\\iota",!0),o9(se,sn,so,"κ","\\kappa",!0),o9(se,sn,so,"λ","\\lambda",!0),o9(se,sn,so,"μ","\\mu",!0),o9(se,sn,so,"ν","\\nu",!0),o9(se,sn,so,"ξ","\\xi",!0),o9(se,sn,so,"ο","\\omicron",!0),o9(se,sn,so,"π","\\pi",!0),o9(se,sn,so,"ρ","\\rho",!0),o9(se,sn,so,"σ","\\sigma",!0),o9(se,sn,so,"τ","\\tau",!0),o9(se,sn,so,"υ","\\upsilon",!0),o9(se,sn,so,"ϕ","\\phi",!0),o9(se,sn,so,"χ","\\chi",!0),o9(se,sn,so,"ψ","\\psi",!0),o9(se,sn,so,"ω","\\omega",!0),o9(se,sn,so,"ε","\\varepsilon",!0),o9(se,sn,so,"ϑ","\\vartheta",!0),o9(se,sn,so,"ϖ","\\varpi",!0),o9(se,sn,so,"ϱ","\\varrho",!0),o9(se,sn,so,"ς","\\varsigma",!0),o9(se,sn,so,"φ","\\varphi",!0),o9(se,sn,"bin","∗","*",!0),o9(se,sn,"bin","+","+"),o9(se,sn,"bin","−","-",!0),o9(se,sn,"bin","⋅","\\cdot",!0),o9(se,sn,"bin","∘","\\circ",!0),o9(se,sn,"bin","÷","\\div",!0),o9(se,sn,"bin","±","\\pm",!0),o9(se,sn,"bin","×","\\times",!0),o9(se,sn,"bin","∩","\\cap",!0),o9(se,sn,"bin","∪","\\cup",!0),o9(se,sn,"bin","∖","\\setminus",!0),o9(se,sn,"bin","∧","\\land"),o9(se,sn,"bin","∨","\\lor"),o9(se,sn,"bin","∧","\\wedge",!0),o9(se,sn,"bin","∨","\\vee",!0),o9(se,sn,sh,"√","\\surd"),o9(se,sn,sl,"⟨","\\langle",!0),o9(se,sn,sl,"∣","\\lvert"),o9(se,sn,sl,"∥","\\lVert"),o9(se,sn,si,"?","?"),o9(se,sn,si,"!","!"),o9(se,sn,si,"⟩","\\rangle",!0),o9(se,sn,si,"∣","\\rvert"),o9(se,sn,si,"∥","\\rVert"),o9(se,sn,"rel","=","="),o9(se,sn,"rel",":",":"),o9(se,sn,"rel","≈","\\approx",!0),o9(se,sn,"rel","≅","\\cong",!0),o9(se,sn,"rel","≥","\\ge"),o9(se,sn,"rel","≥","\\geq",!0),o9(se,sn,"rel","←","\\gets"),o9(se,sn,"rel",">","\\gt",!0),o9(se,sn,"rel","∈","\\in",!0),o9(se,sn,"rel","","\\@not"),o9(se,sn,"rel","⊂","\\subset",!0),o9(se,sn,"rel","⊃","\\supset",!0),o9(se,sn,"rel","⊆","\\subseteq",!0),o9(se,sn,"rel","⊇","\\supseteq",!0),o9(se,"ams","rel","⊈","\\nsubseteq",!0),o9(se,"ams","rel","⊉","\\nsupseteq",!0),o9(se,sn,"rel","⊨","\\models"),o9(se,sn,"rel","←","\\leftarrow",!0),o9(se,sn,"rel","≤","\\le"),o9(se,sn,"rel","≤","\\leq",!0),o9(se,sn,"rel","<","\\lt",!0),o9(se,sn,"rel","→","\\rightarrow",!0),o9(se,sn,"rel","→","\\to"),o9(se,"ams","rel","≱","\\ngeq",!0),o9(se,"ams","rel","≰","\\nleq",!0),o9(se,sn,su," ","\\ "),o9(se,sn,su," ","\\space"),o9(se,sn,su," ","\\nobreakspace"),o9(st,sn,su," ","\\ "),o9(st,sn,su," "," "),o9(st,sn,su," ","\\space"),o9(st,sn,su," ","\\nobreakspace"),o9(se,sn,su,null,"\\nobreak"),o9(se,sn,su,null,"\\allowbreak"),o9(se,sn,sc,",",","),o9(se,sn,sc,";",";"),o9(se,"ams","bin","⊼","\\barwedge",!0),o9(se,"ams","bin","⊻","\\veebar",!0),o9(se,sn,"bin","⊙","\\odot",!0),o9(se,sn,"bin","⊕","\\oplus",!0),o9(se,sn,"bin","⊗","\\otimes",!0),o9(se,sn,sh,"∂","\\partial",!0),o9(se,sn,"bin","⊘","\\oslash",!0),o9(se,"ams","bin","⊚","\\circledcirc",!0),o9(se,"ams","bin","⊡","\\boxdot",!0),o9(se,sn,"bin","△","\\bigtriangleup"),o9(se,sn,"bin","▽","\\bigtriangledown"),o9(se,sn,"bin","†","\\dagger"),o9(se,sn,"bin","⋄","\\diamond"),o9(se,sn,"bin","⋆","\\star"),o9(se,sn,"bin","◃","\\triangleleft"),o9(se,sn,"bin","▹","\\triangleright"),o9(se,sn,sl,"{","\\{"),o9(st,sn,sh,"{","\\{"),o9(st,sn,sh,"{","\\textbraceleft"),o9(se,sn,si,"}","\\}"),o9(st,sn,sh,"}","\\}"),o9(st,sn,sh,"}","\\textbraceright"),o9(se,sn,sl,"{","\\lbrace"),o9(se,sn,si,"}","\\rbrace"),o9(se,sn,sl,"[","\\lbrack",!0),o9(st,sn,sh,"[","\\lbrack",!0),o9(se,sn,si,"]","\\rbrack",!0),o9(st,sn,sh,"]","\\rbrack",!0),o9(se,sn,sl,"(","\\lparen",!0),o9(se,sn,si,")","\\rparen",!0),o9(st,sn,sh,"<","\\textless",!0),o9(st,sn,sh,">","\\textgreater",!0),o9(se,sn,sl,"⌊","\\lfloor",!0),o9(se,sn,si,"⌋","\\rfloor",!0),o9(se,sn,sl,"⌈","\\lceil",!0),o9(se,sn,si,"⌉","\\rceil",!0),o9(se,sn,sh,"\\","\\backslash"),o9(se,sn,sh,"∣","|"),o9(se,sn,sh,"∣","\\vert"),o9(st,sn,sh,"|","\\textbar",!0),o9(se,sn,sh,"∥","\\|"),o9(se,sn,sh,"∥","\\Vert"),o9(st,sn,sh,"∥","\\textbardbl"),o9(st,sn,sh,"~","\\textasciitilde"),o9(st,sn,sh,"\\","\\textbackslash"),o9(st,sn,sh,"^","\\textasciicircum"),o9(se,sn,"rel","↑","\\uparrow",!0),o9(se,sn,"rel","⇑","\\Uparrow",!0),o9(se,sn,"rel","↓","\\downarrow",!0),o9(se,sn,"rel","⇓","\\Downarrow",!0),o9(se,sn,"rel","↕","\\updownarrow",!0),o9(se,sn,"rel","⇕","\\Updownarrow",!0),o9(se,sn,ss,"∐","\\coprod"),o9(se,sn,ss,"⋁","\\bigvee"),o9(se,sn,ss,"⋀","\\bigwedge"),o9(se,sn,ss,"⨄","\\biguplus"),o9(se,sn,ss,"⋂","\\bigcap"),o9(se,sn,ss,"⋃","\\bigcup"),o9(se,sn,ss,"∫","\\int"),o9(se,sn,ss,"∫","\\intop"),o9(se,sn,ss,"∬","\\iint"),o9(se,sn,ss,"∭","\\iiint"),o9(se,sn,ss,"∏","\\prod"),o9(se,sn,ss,"∑","\\sum"),o9(se,sn,ss,"⨂","\\bigotimes"),o9(se,sn,ss,"⨁","\\bigoplus"),o9(se,sn,ss,"⨀","\\bigodot"),o9(se,sn,ss,"∮","\\oint"),o9(se,sn,ss,"∯","\\oiint"),o9(se,sn,ss,"∰","\\oiiint"),o9(se,sn,ss,"⨆","\\bigsqcup"),o9(se,sn,ss,"∫","\\smallint"),o9(st,sn,sa,"…","\\textellipsis"),o9(se,sn,sa,"…","\\mathellipsis"),o9(st,sn,sa,"…","\\ldots",!0),o9(se,sn,sa,"…","\\ldots",!0),o9(se,sn,sa,"⋯","\\@cdots",!0),o9(se,sn,sa,"⋱","\\ddots",!0),o9(se,sn,sh,"⋮","\\varvdots"),o9(st,sn,sh,"⋮","\\varvdots"),o9(se,sn,sr,"ˊ","\\acute"),o9(se,sn,sr,"ˋ","\\grave"),o9(se,sn,sr,"¨","\\ddot"),o9(se,sn,sr,"~","\\tilde"),o9(se,sn,sr,"ˉ","\\bar"),o9(se,sn,sr,"˘","\\breve"),o9(se,sn,sr,"ˇ","\\check"),o9(se,sn,sr,"^","\\hat"),o9(se,sn,sr,"⃗","\\vec"),o9(se,sn,sr,"˙","\\dot"),o9(se,sn,sr,"˚","\\mathring"),o9(se,sn,so,"","\\@imath"),o9(se,sn,so,"","\\@jmath"),o9(se,sn,sh,"ı","ı"),o9(se,sn,sh,"ȷ","ȷ"),o9(st,sn,sh,"ı","\\i",!0),o9(st,sn,sh,"ȷ","\\j",!0),o9(st,sn,sh,"ß","\\ss",!0),o9(st,sn,sh,"æ","\\ae",!0),o9(st,sn,sh,"œ","\\oe",!0),o9(st,sn,sh,"ø","\\o",!0),o9(st,sn,sh,"Æ","\\AE",!0),o9(st,sn,sh,"Œ","\\OE",!0),o9(st,sn,sh,"Ø","\\O",!0),o9(st,sn,sr,"ˊ","\\'"),o9(st,sn,sr,"ˋ","\\`"),o9(st,sn,sr,"ˆ","\\^"),o9(st,sn,sr,"˜","\\~"),o9(st,sn,sr,"ˉ","\\="),o9(st,sn,sr,"˘","\\u"),o9(st,sn,sr,"˙","\\."),o9(st,sn,sr,"¸","\\c"),o9(st,sn,sr,"˚","\\r"),o9(st,sn,sr,"ˇ","\\v"),o9(st,sn,sr,"¨",'\\"'),o9(st,sn,sr,"˝","\\H"),o9(st,sn,sr,"◯","\\textcircled");var sp={"--":!0,"---":!0,"``":!0,"''":!0};o9(st,sn,sh,"–","--",!0),o9(st,sn,sh,"–","\\textendash"),o9(st,sn,sh,"—","---",!0),o9(st,sn,sh,"—","\\textemdash"),o9(st,sn,sh,"‘","`",!0),o9(st,sn,sh,"‘","\\textquoteleft"),o9(st,sn,sh,"’","'",!0),o9(st,sn,sh,"’","\\textquoteright"),o9(st,sn,sh,"“","``",!0),o9(st,sn,sh,"“","\\textquotedblleft"),o9(st,sn,sh,"”","''",!0),o9(st,sn,sh,"”","\\textquotedblright"),o9(se,sn,sh,"°","\\degree",!0),o9(st,sn,sh,"°","\\degree"),o9(st,sn,sh,"°","\\textdegree",!0),o9(se,sn,sh,"£","\\pounds"),o9(se,sn,sh,"£","\\mathsterling",!0),o9(st,sn,sh,"£","\\pounds"),o9(st,sn,sh,"£","\\textsterling",!0),o9(se,"ams",sh,"✠","\\maltese"),o9(st,"ams",sh,"✠","\\maltese");for(var sd='0123456789/@."',sm=0;sm<sd.length;sm++){var sf=sd.charAt(sm);o9(se,sn,sh,sf,sf)}for(var sg='0123456789!@*()-=+";:?/.,',sy=0;sy<sg.length;sy++){var sb=sg.charAt(sy);o9(st,sn,sh,sb,sb)}for(var sv="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",sx=0;sx<sv.length;sx++){var sk=sv.charAt(sx);o9(se,sn,so,sk,sk),o9(st,sn,sh,sk,sk)}o9(se,"ams",sh,"C","ℂ"),o9(st,"ams",sh,"C","ℂ"),o9(se,"ams",sh,"H","ℍ"),o9(st,"ams",sh,"H","ℍ"),o9(se,"ams",sh,"N","ℕ"),o9(st,"ams",sh,"N","ℕ"),o9(se,"ams",sh,"P","ℙ"),o9(st,"ams",sh,"P","ℙ"),o9(se,"ams",sh,"Q","ℚ"),o9(st,"ams",sh,"Q","ℚ"),o9(se,"ams",sh,"R","ℝ"),o9(st,"ams",sh,"R","ℝ"),o9(se,"ams",sh,"Z","ℤ"),o9(st,"ams",sh,"Z","ℤ"),o9(se,sn,so,"h","ℎ"),o9(st,sn,so,"h","ℎ");for(var sw="",sS=0;sS<sv.length;sS++){var sA=sv.charAt(sS);o9(se,sn,so,sA,sw=String.fromCharCode(55349,56320+sS)),o9(st,sn,sh,sA,sw),o9(se,sn,so,sA,sw=String.fromCharCode(55349,56372+sS)),o9(st,sn,sh,sA,sw),o9(se,sn,so,sA,sw=String.fromCharCode(55349,56424+sS)),o9(st,sn,sh,sA,sw),o9(se,sn,so,sA,sw=String.fromCharCode(55349,56580+sS)),o9(st,sn,sh,sA,sw),o9(se,sn,so,sA,sw=String.fromCharCode(55349,56684+sS)),o9(st,sn,sh,sA,sw),o9(se,sn,so,sA,sw=String.fromCharCode(55349,56736+sS)),o9(st,sn,sh,sA,sw),o9(se,sn,so,sA,sw=String.fromCharCode(55349,56788+sS)),o9(st,sn,sh,sA,sw),o9(se,sn,so,sA,sw=String.fromCharCode(55349,56840+sS)),o9(st,sn,sh,sA,sw),o9(se,sn,so,sA,sw=String.fromCharCode(55349,56944+sS)),o9(st,sn,sh,sA,sw),sS<26&&(o9(se,sn,so,sA,sw=String.fromCharCode(55349,56632+sS)),o9(st,sn,sh,sA,sw),o9(se,sn,so,sA,sw=String.fromCharCode(55349,56476+sS)),o9(st,sn,sh,sA,sw))}o9(se,sn,so,"k",sw=String.fromCharCode(55349,56668)),o9(st,sn,sh,"k",sw);for(var sC=0;sC<10;sC++){var sT=sC.toString();o9(se,sn,so,sT,sw=String.fromCharCode(55349,57294+sC)),o9(st,sn,sh,sT,sw),o9(se,sn,so,sT,sw=String.fromCharCode(55349,57314+sC)),o9(st,sn,sh,sT,sw),o9(se,sn,so,sT,sw=String.fromCharCode(55349,57324+sC)),o9(st,sn,sh,sT,sw),o9(se,sn,so,sT,sw=String.fromCharCode(55349,57334+sC)),o9(st,sn,sh,sT,sw)}for(var s_="ÐÞþ",sM=0;sM<s_.length;sM++){var sN=s_.charAt(sM);o9(se,sn,so,sN,sN),o9(st,sn,sh,sN,sN)}var sE=[["mathbf","textbf","Main-Bold"],["mathbf","textbf","Main-Bold"],["mathnormal","textit","Math-Italic"],["mathnormal","textit","Math-Italic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["mathscr","textscr","Script-Regular"],["","",""],["","",""],["","",""],["mathfrak","textfrak","Fraktur-Regular"],["mathfrak","textfrak","Fraktur-Regular"],["mathbb","textbb","AMS-Regular"],["mathbb","textbb","AMS-Regular"],["mathboldfrak","textboldfrak","Fraktur-Regular"],["mathboldfrak","textboldfrak","Fraktur-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathitsf","textitsf","SansSerif-Italic"],["mathitsf","textitsf","SansSerif-Italic"],["","",""],["","",""],["mathtt","texttt","Typewriter-Regular"],["mathtt","texttt","Typewriter-Regular"]],sz=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]],sI=function(e,t,n){if(o8[n][e]){var r=o8[n][e].replace;r&&(e=r)}return{value:e,metrics:o6(e,t,n)}},sj=function(e,t,n,r,i){var a,o=sI(e,t,n),s=o.metrics;if(e=o.value,s){var l=s.italic;("text"===n||r&&"mathit"===r.font)&&(l=0),a=new oZ(e,s.height,s.depth,l,s.skew,s.width,i)}else"undefined"!=typeof console&&console.warn("No character metrics "+("for '"+e+"' in style '"+t+"' and mode '")+n+"'"),a=new oZ(e,0,0,0,0,0,i);if(r){a.maxFontSize=r.sizeMultiplier,r.style.isTight()&&a.classes.push("mtight");var c=r.getColor();c&&(a.style.color=c)}return a},sR=function(e,t,n,r){return(void 0===r&&(r=[]),"boldsymbol"===n.font&&sI(e,"Main-Bold",t).metrics)?sj(e,"Main-Bold",t,n,r.concat(["mathbf"])):"\\"===e||"main"===o8[t][e].font?sj(e,"Main-Regular",t,n,r):sj(e,"AMS-Regular",t,n,r.concat(["amsrm"]))},sL=function(e,t,n){var r=e.mode,i=e.text,a=["mord"],o="math"===r||"text"===r&&t.font,s=o?t.font:t.fontFamily,l="",c="";if(55349===i.charCodeAt(0)&&([l,c]=((e,t)=>{var n=(e.charCodeAt(0)-55296)*1024+(e.charCodeAt(1)-56320)+65536,r=+("math"!==t);if(119808<=n&&n<120484){var i=Math.floor((n-119808)/26);return[sE[i][2],sE[i][r]]}if(120782<=n&&n<=120831){var a=Math.floor((n-120782)/10);return[sz[a][2],sz[a][r]]}if(120485===n||120486===n)return[sE[0][2],sE[0][r]];if(120486<n&&n<120782)return["",""];throw new oc("Unsupported character: "+e)})(i,r)),l.length>0)return sj(i,l,r,t,a.concat(c));if(s){if("boldsymbol"===s){var u,h,p="textord"!==n&&sI(i,"Math-BoldItalic",r).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"};u=p.fontName,h=[p.fontClass]}else o?(u=sY[s].fontName,h=[s]):(u=sX(s,t.fontWeight,t.fontShape),h=[s,t.fontWeight,t.fontShape]);if(sI(i,u,r).metrics)return sj(i,u,r,t,a.concat(h));if(sp.hasOwnProperty(i)&&"Typewriter"===u.slice(0,10)){for(var d=[],m=0;m<i.length;m++)d.push(sj(i[m],u,r,t,a.concat(h)));return sU(d)}}if("mathord"===n)return sj(i,"Math-Italic",r,t,a.concat(["mathnormal"]));if("textord"===n){var f=o8[r][i]&&o8[r][i].font;if("ams"===f)return sj(i,sX("amsrm",t.fontWeight,t.fontShape),r,t,a.concat("amsrm",t.fontWeight,t.fontShape));if("main"===f||!f)return sj(i,sX("textrm",t.fontWeight,t.fontShape),r,t,a.concat(t.fontWeight,t.fontShape));var g=sX(f,t.fontWeight,t.fontShape);return sj(i,g,r,t,a.concat(g,t.fontWeight,t.fontShape))}throw Error("unexpected type: "+n+" in makeOrd")},sP=(e,t)=>{if(oH(e.classes)!==oH(t.classes)||e.skew!==t.skew||e.maxFontSize!==t.maxFontSize||0!==e.italic&&e.hasClass("mathnormal"))return!1;if(1===e.classes.length){var n=e.classes[0];if("mbin"===n||"mord"===n)return!1}for(var r of Object.keys(e.style))if(e.style[r]!==t.style[r])return!1;for(var i of Object.keys(t.style))if(e.style[i]!==t.style[i])return!1;return!0},sB=e=>{for(var t=0;t<e.length-1;t++){var n=e[t],r=e[t+1];n instanceof oZ&&r instanceof oZ&&sP(n,r)&&(n.text+=r.text,n.height=Math.max(n.height,r.height),n.depth=Math.max(n.depth,r.depth),n.italic=r.italic,e.splice(t+1,1),t--)}return e},sO=function(e){for(var t=0,n=0,r=0,i=0;i<e.children.length;i++){var a=e.children[i];a.height>t&&(t=a.height),a.depth>n&&(n=a.depth),a.maxFontSize>r&&(r=a.maxFontSize)}e.height=t,e.depth=n,e.maxFontSize=r},sD=function(e,t,n,r){var i=new o$(e,t,n,r);return sO(i),i},sF=(e,t,n,r)=>new o$(e,t,n,r),sq=function(e,t,n){var r=sD([e],[],t);return r.height=Math.max(n||t.fontMetrics().defaultRuleThickness,t.minRuleThickness),r.style.borderBottomWidth=oq(r.height),r.maxFontSize=1,r},sH=function(e,t,n,r){var i=new oX(e,t,n,r);return sO(i),i},sU=function(e){var t=new oP(e);return sO(t),t},sG=function(e,t){return e instanceof oP?sD([],[e],t):e},sW=function(e){if("individualShift"===e.positionType){for(var t,n=e.children,r=[n[0]],i=-n[0].shift-n[0].elem.depth,a=i,o=1;o<n.length;o++){var s=-n[o].shift-a-n[o].elem.depth,l=s-(n[o-1].elem.height+n[o-1].elem.depth);a+=s,r.push({type:"kern",size:l}),r.push(n[o])}return{children:r,depth:i}}if("top"===e.positionType){for(var c=e.positionData,u=0;u<e.children.length;u++){var h=e.children[u];c-="kern"===h.type?h.size:h.elem.height+h.elem.depth}t=c}else if("bottom"===e.positionType)t=-e.positionData;else{var p=e.children[0];if("elem"!==p.type)throw Error('First child must have type "elem".');if("shift"===e.positionType)t=-p.elem.depth-e.positionData;else if("firstBaseline"===e.positionType)t=-p.elem.depth;else throw Error("Invalid positionType "+e.positionType+".")}return{children:e.children,depth:t}},sV=function(e,t){for(var n,{children:r,depth:i}=sW(e),a=0,o=0;o<r.length;o++){var s=r[o];if("elem"===s.type){var l=s.elem;a=Math.max(a,l.maxFontSize,l.height)}}a+=2;var c=sD(["pstrut"],[]);c.style.height=oq(a);for(var u=[],h=i,p=i,d=i,m=0;m<r.length;m++){var f=r[m];if("kern"===f.type)d+=f.size;else{var g=f.elem,y=sD(f.wrapperClasses||[],[c,g],void 0,f.wrapperStyle||{});y.style.top=oq(-a-d-g.depth),f.marginLeft&&(y.style.marginLeft=f.marginLeft),f.marginRight&&(y.style.marginRight=f.marginRight),u.push(y),d+=g.height+g.depth}h=Math.min(h,d),p=Math.max(p,d)}var b=sD(["vlist"],u);if(b.style.height=oq(p),h<0){var v=sD([],[]),x=sD(["vlist"],[v]);x.style.height=oq(-h);var k=sD(["vlist-s"],[new oZ("")]);n=[sD(["vlist-r"],[b,k]),sD(["vlist-r"],[x])]}else n=[sD(["vlist-r"],[b])];var w=sD(["vlist-t"],n);return 2===n.length&&w.classes.push("vlist-t2"),w.height=p,w.depth=-h,w},s$=(e,t)=>{var n=sD(["mspace"],[],t),r=oF(e,t);return n.style.marginRight=oq(r),n},sX=function(e,t,n){var r="";switch(e){case"amsrm":r="AMS";break;case"textrm":r="Main";break;case"textsf":r="SansSerif";break;case"texttt":r="Typewriter";break;default:r=e}return r+"-"+("textbf"===t&&"textit"===n?"BoldItalic":"textbf"===t?"Bold":"textit"===t?"Italic":"Regular")},sY={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathnormal:{variant:"italic",fontName:"Math-Italic"},mathsfit:{variant:"sans-serif-italic",fontName:"SansSerif-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},sJ={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},sZ=function(e,t){var[n,r,i]=sJ[e],a=sF(["overlay"],[new oK([new oQ(n)],{width:oq(r),height:oq(i),style:"width:"+oq(r),viewBox:"0 0 "+1e3*r+" "+1e3*i,preserveAspectRatio:"xMinYMin"})],t);return a.height=i,a.style.height=oq(i),a.style.width=oq(r),a},sK={number:3,unit:"mu"},sQ={number:4,unit:"mu"},s0={number:5,unit:"mu"},s1={mord:{mop:sK,mbin:sQ,mrel:s0,minner:sK},mop:{mord:sK,mop:sK,mrel:s0,minner:sK},mbin:{mord:sQ,mop:sQ,mopen:sQ,minner:sQ},mrel:{mord:s0,mop:s0,mopen:s0,minner:s0},mopen:{},mclose:{mop:sK,mbin:sQ,mrel:s0,minner:sK},mpunct:{mord:sK,mop:sK,mrel:s0,mopen:sK,mclose:sK,mpunct:sK,minner:sK},minner:{mord:sK,mop:sK,mbin:sQ,mrel:s0,mopen:sK,mpunct:sK,minner:sK}},s4={mord:{mop:sK},mop:{mord:sK,mop:sK},mbin:{},mrel:{},mopen:{},mclose:{mop:sK},mpunct:{},minner:{mop:sK}},s5={},s6={},s3={};function s2(e){for(var{type:t,names:n,props:r,handler:i,htmlBuilder:a,mathmlBuilder:o}=e,s={type:t,numArgs:r.numArgs,argTypes:r.argTypes,allowedInArgument:!!r.allowedInArgument,allowedInText:!!r.allowedInText,allowedInMath:void 0===r.allowedInMath||r.allowedInMath,numOptionalArgs:r.numOptionalArgs||0,infix:!!r.infix,primitive:!!r.primitive,handler:i},l=0;l<n.length;++l)s5[n[l]]=s;t&&(a&&(s6[t]=a),o&&(s3[t]=o))}function s7(e){var{type:t,htmlBuilder:n,mathmlBuilder:r}=e;s2({type:t,names:[],props:{numArgs:0},handler(){throw Error("Should never be called.")},htmlBuilder:n,mathmlBuilder:r})}var s8=function(e){return"ordgroup"===e.type&&1===e.body.length?e.body[0]:e},s9=function(e){return"ordgroup"===e.type?e.body:[e]},le=new Set(["leftmost","mbin","mopen","mrel","mop","mpunct"]),lt=new Set(["rightmost","mrel","mclose","mpunct"]),ln={display:oM.DISPLAY,text:oM.TEXT,script:oM.SCRIPT,scriptscript:oM.SCRIPTSCRIPT},lr={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},li=function(e,t,n,r){void 0===r&&(r=[null,null]);for(var i=[],a=0;a<e.length;a++){var o=lu(e[a],t);if(o instanceof oP){var s=o.children;i.push(...s)}else i.push(o)}if(sB(i),!n)return i;var l=t;if(1===e.length){var c=e[0];"sizing"===c.type?l=t.havingSize(c.size):"styling"===c.type&&(l=t.havingStyle(ln[c.style]))}var u=sD([r[0]||"leftmost"],[],t),h=sD([r[1]||"rightmost"],[],t),p="root"===n;return la(i,(e,t)=>{var n=t.classes[0],r=e.classes[0];"mbin"===n&<.has(r)?t.classes[0]="mord":"mbin"===r&&le.has(n)&&(e.classes[0]="mord")},{node:u},h,p),la(i,(e,t)=>{var n,r,i=ll(t),a=ll(e),o=i&&a?e.hasClass("mtight")?null==(n=s4[i])?void 0:n[a]:null==(r=s1[i])?void 0:r[a]:null;if(o)return s$(o,l)},{node:u},h,p),i},la=function(e,t,n,r,i){r&&e.push(r);for(var a=0;a<e.length;a++){let r;var o=e[a],s=lo(o);if(s){la(s.children,t,n,null,i);continue}var l=!o.hasClass("mspace");if(l){var c=t(o,n.node);c&&(n.insertAfter?n.insertAfter(c):(e.unshift(c),a++))}l?n.node=o:i&&o.hasClass("newline")&&(n.node=sD(["leftmost"])),r=a,n.insertAfter=t=>{e.splice(r+1,0,t),a++}}r&&e.pop()},lo=function(e){return e instanceof oP||e instanceof oX||e instanceof o$&&e.hasClass("enclosing")?e:null},ls=function(e,t){var n=lo(e);if(n){var r=n.children;if(r.length){if("right"===t)return ls(r[r.length-1],"right");else if("left"===t)return ls(r[0],"left")}}return e},ll=function(e,t){return e?(t&&(e=ls(e,t)),lr[e.classes[0]]||null):null},lc=function(e,t){var n=["nulldelimiter"].concat(e.baseSizingClasses());return sD(t.concat(n))},lu=function(e,t,n){if(!e)return sD();if(s6[e.type]){var r=s6[e.type](e,t);if(n&&t.size!==n.size){r=sD(t.sizingClasses(n),[r],t);var i=t.sizeMultiplier/n.sizeMultiplier;r.height*=i,r.depth*=i}return r}throw new oc("Got group of unknown type: '"+e.type+"'")};function lh(e,t){var n=sD(["base"],e,t),r=sD(["strut"]);return r.style.height=oq(n.height+n.depth),n.depth&&(r.style.verticalAlign=oq(-n.depth)),n.children.unshift(r),n}function lp(e,t){var n,r,i=null;1===e.length&&"tag"===e[0].type&&(i=e[0].tag,e=e[0].body);var a=li(e,t,"root");2===a.length&&a[1].hasClass("tag")&&(n=a.pop());for(var o=[],s=[],l=0;l<a.length;l++)if(s.push(a[l]),a[l].hasClass("mbin")||a[l].hasClass("mrel")||a[l].hasClass("allowbreak")){for(var c=!1;l<a.length-1&&a[l+1].hasClass("mspace")&&!a[l+1].hasClass("newline");)l++,s.push(a[l]),a[l].hasClass("nobreak")&&(c=!0);c||(o.push(lh(s,t)),s=[])}else a[l].hasClass("newline")&&(s.pop(),s.length>0&&(o.push(lh(s,t)),s=[]),o.push(a[l]));s.length>0&&o.push(lh(s,t)),i?((r=lh(li(i,t,!0),t)).classes=["tag"],o.push(r)):n&&o.push(n);var u=sD(["katex-html"],o);if(u.setAttribute("aria-hidden","true"),r){var h=r.children[0];h.style.height=oq(u.height+u.depth),u.depth&&(h.style.verticalAlign=oq(-u.depth))}return u}class ld{setAttribute(e,t){this.attributes[e]=t}getAttribute(e){return this.attributes[e]}toNode(){var e=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);this.classes.length>0&&(e.className=oH(this.classes));for(var n=0;n<this.children.length;n++)if(this.children[n]instanceof lm&&this.children[n+1]instanceof lm){for(var r=this.children[n].toText()+this.children[++n].toText();this.children[n+1]instanceof lm;)r+=this.children[++n].toText();e.appendChild(new lm(r).toNode())}else e.appendChild(this.children[n].toNode());return e}toMarkup(){var e="<"+this.type;for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&(e+=" "+t+'="',e+=om(this.attributes[t]),e+='"');this.classes.length>0&&(e+=' class ="'+om(oH(this.classes))+'"'),e+=">";for(var n=0;n<this.children.length;n++)e+=this.children[n].toMarkup();return e+("</"+this.type+">")}toText(){return this.children.map(e=>e.toText()).join("")}constructor(e,t,n){this.type=e,this.attributes={},this.children=t||[],this.classes=n||[]}}class lm{toNode(){return document.createTextNode(this.text)}toMarkup(){return om(this.toText())}toText(){return this.text}constructor(e){this.text=e}}class lf{toNode(){if(this.character)return document.createTextNode(this.character);var e=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return e.setAttribute("width",oq(this.width)),e}toMarkup(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+oq(this.width)+'"/>'}toText(){return this.character?this.character:" "}constructor(e){this.width=e,e>=.05555&&e<=.05556?this.character=" ":e>=.1666&&e<=.1667?this.character=" ":e>=.2222&&e<=.2223?this.character=" ":e>=.2777&&e<=.2778?this.character=" ":e>=-.05556&&e<=-.05555?this.character=" ":e>=-.1667&&e<=-.1666?this.character=" ":e>=-.2223&&e<=-.2222?this.character=" ":e>=-.2778&&e<=-.2777?this.character=" ":this.character=null}}var lg=new Set(["\\imath","\\jmath"]),ly=new Set(["mrow","mtable"]),lb=function(e,t,n){return o8[t][e]&&o8[t][e].replace&&55349!==e.charCodeAt(0)&&!(sp.hasOwnProperty(e)&&n&&(n.fontFamily&&"tt"===n.fontFamily.slice(4,6)||n.font&&"tt"===n.font.slice(4,6)))&&(e=o8[t][e].replace),new lm(e)},lv=function(e){return 1===e.length?e[0]:new ld("mrow",e)},lx=function(e,t){if("texttt"===t.fontFamily)return"monospace";if("textsf"===t.fontFamily)if("textit"===t.fontShape&&"textbf"===t.fontWeight)return"sans-serif-bold-italic";else if("textit"===t.fontShape)return"sans-serif-italic";else if("textbf"===t.fontWeight)return"bold-sans-serif";else return"sans-serif";if("textit"===t.fontShape&&"textbf"===t.fontWeight)return"bold-italic";if("textit"===t.fontShape)return"italic";if("textbf"===t.fontWeight)return"bold";var n=t.font;if(!n||"mathnormal"===n)return null;var r=e.mode;if("mathit"===n)return"italic";if("boldsymbol"===n)return"textord"===e.type?"bold":"bold-italic";if("mathbf"===n)return"bold";if("mathbb"===n)return"double-struck";if("mathsfit"===n)return"sans-serif-italic";else if("mathfrak"===n)return"fraktur";else if("mathscr"===n||"mathcal"===n)return"script";else if("mathsf"===n)return"sans-serif";else if("mathtt"===n)return"monospace";var i=e.text;if(lg.has(i))return null;if(o8[r][i]){var a=o8[r][i].replace;a&&(i=a)}return o6(i,sY[n].fontName,r)?sY[n].variant:null};function lk(e){if(!e)return!1;if("mi"===e.type&&1===e.children.length){var t=e.children[0];return t instanceof lm&&"."===t.text}if("mo"!==e.type||1!==e.children.length||"true"!==e.getAttribute("separator")||"0em"!==e.getAttribute("lspace")||"0em"!==e.getAttribute("rspace"))return!1;var n=e.children[0];return n instanceof lm&&","===n.text}var lw=function(e,t,n){if(1===e.length){var r,i=lA(e[0],t);return n&&i instanceof ld&&"mo"===i.type&&(i.setAttribute("lspace","0em"),i.setAttribute("rspace","0em")),[i]}for(var a=[],o=0;o<e.length;o++){var s=lA(e[o],t);if(s instanceof ld&&r instanceof ld){if("mtext"===s.type&&"mtext"===r.type&&s.getAttribute("mathvariant")===r.getAttribute("mathvariant")){r.children.push(...s.children);continue}else if("mn"===s.type&&"mn"===r.type){r.children.push(...s.children);continue}else if(lk(s)&&"mn"===r.type){r.children.push(...s.children);continue}else if("mn"===s.type&&lk(r))s.children=[...r.children,...s.children],a.pop();else if(("msup"===s.type||"msub"===s.type)&&s.children.length>=1&&("mn"===r.type||lk(r))){var l=s.children[0];l instanceof ld&&"mn"===l.type&&(l.children=[...r.children,...l.children],a.pop())}else if("mi"===r.type&&1===r.children.length){var c=r.children[0];if(c instanceof lm&&"̸"===c.text&&("mo"===s.type||"mi"===s.type||"mn"===s.type)){var u=s.children[0];u instanceof lm&&u.text.length>0&&(u.text=u.text.slice(0,1)+"̸"+u.text.slice(1),a.pop())}}}a.push(s),r=s}return a},lS=function(e,t,n){return lv(lw(e,t,n))},lA=function(e,t){if(!e)return new ld("mrow");if(s3[e.type])return s3[e.type](e,t);throw new oc("Got group of unknown type: '"+e.type+"'")};function lC(e,t,n,r,i){var a,o=lw(e,n);a=1===o.length&&o[0]instanceof ld&&ly.has(o[0].type)?o[0]:new ld("mrow",o);var s=new ld("annotation",[new lm(t)]);s.setAttribute("encoding","application/x-tex");var l=new ld("semantics",[a,s]),c=new ld("math",[l]);return c.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),r&&c.setAttribute("display","block"),sD([i?"katex":"katex-mathml"],[c])}var lT=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],l_=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],lM=function(e,t){return t.size<2?e:lT[e-1][t.size-1]};class lN{extend(e){var t={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};return Object.assign(t,e),new lN(t)}havingStyle(e){return this.style===e?this:this.extend({style:e,size:lM(this.textSize,e)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(e){return this.size===e&&this.textSize===e?this:this.extend({style:this.style.text(),size:e,textSize:e,sizeMultiplier:l_[e-1]})}havingBaseStyle(e){e=e||this.style.text();var t=lM(lN.BASESIZE,e);return this.size===t&&this.textSize===lN.BASESIZE&&this.style===e?this:this.extend({style:e,size:t})}havingBaseSizing(){var e;switch(this.style.id){case 4:case 5:e=3;break;case 6:case 7:e=1;break;default:e=6}return this.extend({style:this.style.text(),size:e})}withColor(e){return this.extend({color:e})}withPhantom(){return this.extend({phantom:!0})}withFont(e){return this.extend({font:e})}withTextFontFamily(e){return this.extend({fontFamily:e,font:""})}withTextFontWeight(e){return this.extend({fontWeight:e,font:""})}withTextFontShape(e){return this.extend({fontShape:e,font:""})}sizingClasses(e){return e.size!==this.size?["sizing","reset-size"+e.size,"size"+this.size]:[]}baseSizingClasses(){return this.size!==lN.BASESIZE?["sizing","reset-size"+this.size,"size"+lN.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=function(e){var t;if(!o3[t=e>=5?0:e>=3?1:2]){var n=o3[t]={cssEmPerMu:o4.quad[t]/18};for(var r in o4)o4.hasOwnProperty(r)&&(n[r]=o4[r][t])}return o3[t]}(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}constructor(e){this.style=e.style,this.color=e.color,this.size=e.size||lN.BASESIZE,this.textSize=e.textSize||this.size,this.phantom=!!e.phantom,this.font=e.font||"",this.fontFamily=e.fontFamily||"",this.fontWeight=e.fontWeight||"",this.fontShape=e.fontShape||"",this.sizeMultiplier=l_[this.size-1],this.maxSize=e.maxSize,this.minRuleThickness=e.minRuleThickness,this._fontMetrics=void 0}}lN.BASESIZE=6;var lE=function(e,t){if(t.displayMode){var n=["katex-display"];t.leqno&&n.push("leqno"),t.fleqn&&n.push("fleqn"),e=sD(n,[e])}return e},lz=function(e,t,n){var r,i=new lN({style:(r=n).displayMode?oM.DISPLAY:oM.TEXT,maxSize:r.maxSize,minRuleThickness:r.minRuleThickness});return"mathml"===n.output?lC(e,t,i,n.displayMode,!0):lE("html"===n.output?sD(["katex"],[lp(e,i)]):sD(["katex"],[lC(e,t,i,n.displayMode,!1),lp(e,i)]),n)},lI={widehat:"^",widecheck:"ˇ",widetilde:"~",utilde:"~",overleftarrow:"←",underleftarrow:"←",xleftarrow:"←",overrightarrow:"→",underrightarrow:"→",xrightarrow:"→",underbrace:"⏟",overbrace:"⏞",underbracket:"⎵",overbracket:"⎴",overgroup:"⏠",undergroup:"⏡",overleftrightarrow:"↔",underleftrightarrow:"↔",xleftrightarrow:"↔",Overrightarrow:"⇒",xRightarrow:"⇒",overleftharpoon:"↼",xleftharpoonup:"↼",overrightharpoon:"⇀",xrightharpoonup:"⇀",xLeftarrow:"⇐",xLeftrightarrow:"⇔",xhookleftarrow:"↩",xhookrightarrow:"↪",xmapsto:"↦",xrightharpoondown:"⇁",xleftharpoondown:"↽",xrightleftharpoons:"⇌",xleftrightharpoons:"⇋",xtwoheadleftarrow:"↞",xtwoheadrightarrow:"↠",xlongequal:"=",xtofrom:"⇄",xrightleftarrows:"⇄",xrightequilibrium:"⇌",xleftequilibrium:"⇋","\\cdrightarrow":"→","\\cdleftarrow":"←","\\cdlongequal":"="},lj=function(e){var t=new ld("mo",[new lm(lI[e.replace(/^\\/,"")])]);return t.setAttribute("stretchy","true"),t},lR={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],"\\cdrightarrow":[["rightarrow"],3,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],"\\cdleftarrow":[["leftarrow"],3,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],"\\cdlongequal":[["longequal"],3,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overbracket:[["leftbracketover","rightbracketover"],1.6,440],underbracket:[["leftbracketunder","rightbracketunder"],1.6,410],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},lL=new Set(["widehat","widecheck","widetilde","utilde"]),lP=function(e,t){var{span:n,minWidth:r,height:i}=function(){var n=4e5,r=e.label.slice(1);if(lL.has(r)){var i,a,o,s="ordgroup"===e.base.type?e.base.body.length:1;if(s>5)"widehat"===r||"widecheck"===r?(i=420,n=2364,o=.42,a=r+"4"):(i=312,n=2340,o=.34,a="tilde4");else{var l=[1,1,2,2,3,3][s];"widehat"===r||"widecheck"===r?(n=[0,1062,2364,2364,2364][l],i=[0,239,300,360,420][l],o=[0,.24,.3,.3,.36,.42][l],a=r+l):(n=[0,600,1033,2339,2340][l],i=[0,260,286,306,312][l],o=[0,.26,.286,.3,.306,.34][l],a="tilde"+l)}return{span:sF([],[new oK([new oQ(a)],{width:"100%",height:oq(o),viewBox:"0 0 "+n+" "+i,preserveAspectRatio:"none"})],t),minWidth:0,height:o}}var c,u,h=[],p=lR[r],[d,m,f]=p,g=f/1e3,y=d.length;if(1===y)c=["hide-tail"],u=[p[3]];else if(2===y)c=["halfarrow-left","halfarrow-right"],u=["xMinYMin","xMaxYMin"];else if(3===y)c=["brace-left","brace-center","brace-right"],u=["xMinYMin","xMidYMin","xMaxYMin"];else throw Error("Correct katexImagesData or update code here to support\n "+y+" children.");for(var b=0;b<y;b++){var v=new oK([new oQ(d[b])],{width:"400em",height:oq(g),viewBox:"0 0 "+n+" "+f,preserveAspectRatio:u[b]+" slice"}),x=sF([c[b]],[v],t);if(1===y)return{span:x,minWidth:m,height:g};x.style.height=oq(g),h.push(x)}return{span:sD(["stretchy"],h,t),minWidth:m,height:g}}();return n.height=i,n.style.height=oq(i),r>0&&(n.style.minWidth=oq(r)),n},lB=function(e,t,n,r,i){var a,o=e.height+e.depth+n+r;if(/fbox|color|angl/.test(t)){if(a=sD(["stretchy",t],[],i),"fbox"===t){var s=i.color&&i.getColor();s&&(a.style.borderColor=s)}}else{var l=[];/^[bx]cancel$/.test(t)&&l.push(new o0({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(t)&&l.push(new o0({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"})),a=sF([],[new oK(l,{width:"100%",height:oq(o)})],i)}return a.height=o,a.style.height=oq(o),a};function lO(e,t){if(!e||e.type!==t)throw Error("Expected node of type "+t+", but got "+(e?"node of type "+e.type:String(e)));return e}function lD(e){var t=lF(e);if(!t)throw Error("Expected node of symbol group type, but got "+(e?"node of type "+e.type:String(e)));return t}function lF(e){return e&&("atom"===e.type||o7.hasOwnProperty(e.type))?e:null}var lq=e=>e instanceof oZ?e:(e=>e instanceof o$||e instanceof oX||e instanceof oP)(e)&&1===e.children.length?lq(e.children[0]):void 0,lH=(e,t)=>{e&&"supsub"===e.type?(s=(l=lO(e.base,"accent")).base,e.base=s,c=function(e){if(e instanceof o$)return e;throw Error("Expected span<HtmlDomNode> but got "+String(e)+".")}(lu(e,t)),e.base=l):s=(l=lO(e,"accent")).base;var n=lu(s,t.havingCrampedStyle()),r=l.isShifty&&oy(s),i=0;r&&(i=null!=(u=null==(h=lq(n))?void 0:h.skew)?u:0);var a="\\c"===l.label,o=a?n.height+n.depth:Math.min(n.height,t.fontMetrics().xHeight);if(l.isStretchy)m=sV({positionType:"firstBaseline",children:[{type:"elem",elem:n},{type:"elem",elem:m=lP(l,t),wrapperClasses:["svg-align"],wrapperStyle:i>0?{width:"calc(100% - "+oq(2*i)+")",marginLeft:oq(2*i)}:void 0}]});else{"\\vec"===l.label?(p=sZ("vec",t),d=sJ.vec[1]):((p=function(e){if(e instanceof oZ)return e;throw Error("Expected symbolNode but got "+String(e)+".")}(p=sL({type:"textord",mode:l.mode,text:l.label},t,"textord"))).italic=0,d=p.width,a&&(o+=p.depth));var s,l,c,u,h,p,d,m=sD(["accent-body"],[p]),f="\\textcircled"===l.label;f&&(m.classes.push("accent-full"),o=n.height);var g=i;f||(g-=d/2),m.style.left=oq(g),"\\textcircled"===l.label&&(m.style.top=".2em"),m=sV({positionType:"firstBaseline",children:[{type:"elem",elem:n},{type:"kern",size:-o},{type:"elem",elem:m}]})}var y=sD(["mord","accent"],[m],t);return c?(c.children[0]=y,c.height=Math.max(y.height,c.height),c.classes[0]="mord",c):y},lU=(e,t)=>{var n=e.isStretchy?lj(e.label):new ld("mo",[lb(e.label,e.mode)]),r=new ld("mover",[lA(e.base,t),n]);return r.setAttribute("accent","true"),r},lG=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(e=>"\\"+e).join("|"));s2({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:(e,t)=>{var n=s8(t[0]),r=!lG.test(e.funcName),i=!r||"\\widehat"===e.funcName||"\\widetilde"===e.funcName||"\\widecheck"===e.funcName;return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:r,isShifty:i,base:n}},htmlBuilder:lH,mathmlBuilder:lU}),s2({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(e,t)=>{var n=t[0],r=e.parser.mode;return"math"===r&&(e.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+e.funcName+" works only in text mode"),r="text"),{type:"accent",mode:r,label:e.funcName,isStretchy:!1,isShifty:!0,base:n}},htmlBuilder:lH,mathmlBuilder:lU}),s2({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0];return{type:"accentUnder",mode:n.mode,label:r,base:i}},htmlBuilder:(e,t)=>{var n=lu(e.base,t),r=lP(e,t),i=.12*("\\utilde"===e.label);return sD(["mord","accentunder"],[sV({positionType:"top",positionData:n.height,children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:i},{type:"elem",elem:n}]})],t)},mathmlBuilder:(e,t)=>{var n=lj(e.label),r=new ld("munder",[lA(e.base,t),n]);return r.setAttribute("accentunder","true"),r}});var lW=e=>{var t=new ld("mpadded",e?[e]:[]);return t.setAttribute("width","+0.6em"),t.setAttribute("lspace","0.3em"),t};function lV(e,t){var n=li(e.body,t,!0);return sD([e.mclass],n,t)}function l$(e,t){var n,r=lw(e.body,t);return"minner"===e.mclass?n=new ld("mpadded",r):"mord"===e.mclass?e.isCharacterBox?(n=r[0]).type="mi":n=new ld("mi",r):(e.isCharacterBox?(n=r[0]).type="mo":n=new ld("mo",r),"mbin"===e.mclass?(n.attributes.lspace="0.22em",n.attributes.rspace="0.22em"):"mpunct"===e.mclass?(n.attributes.lspace="0em",n.attributes.rspace="0.17em"):"mopen"===e.mclass||"mclose"===e.mclass?(n.attributes.lspace="0em",n.attributes.rspace="0em"):"minner"===e.mclass&&(n.attributes.lspace="0.0556em",n.attributes.width="+0.1111em")),n}s2({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,n){var{parser:r,funcName:i}=e;return{type:"xArrow",mode:r.mode,label:i,body:t[0],below:n[0]}},htmlBuilder(e,t){var n,r,i=t.style,a=t.havingStyle(i.sup()),o=sG(lu(e.body,a,t),t),s="\\x"===e.label.slice(0,2)?"x":"cd";o.classes.push(s+"-arrow-pad"),e.below&&(a=t.havingStyle(i.sub()),(n=sG(lu(e.below,a,t),t)).classes.push(s+"-arrow-pad"));var l=lP(e,t),c=-t.fontMetrics().axisHeight+.5*l.height,u=-t.fontMetrics().axisHeight-.5*l.height-.111;if((o.depth>.25||"\\xleftequilibrium"===e.label)&&(u-=o.depth),n){var h=-t.fontMetrics().axisHeight+n.height+.5*l.height+.111;r=sV({positionType:"individualShift",children:[{type:"elem",elem:o,shift:u},{type:"elem",elem:l,shift:c},{type:"elem",elem:n,shift:h}]})}else r=sV({positionType:"individualShift",children:[{type:"elem",elem:o,shift:u},{type:"elem",elem:l,shift:c}]});return r.children[0].children[0].children[1].classes.push("svg-align"),sD(["mrel","x-arrow"],[r],t)},mathmlBuilder(e,t){var n,r=lj(e.label);if(r.setAttribute("minsize","x"===e.label.charAt(0)?"1.75em":"3.0em"),e.body){var i=lW(lA(e.body,t));n=e.below?new ld("munderover",[r,lW(lA(e.below,t)),i]):new ld("mover",[r,i])}else n=e.below?new ld("munder",[r,lW(lA(e.below,t))]):new ld("mover",[r,n=lW()]);return n}}),s2({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];return{type:"mclass",mode:n.mode,mclass:"m"+r.slice(5),body:s9(i),isCharacterBox:oy(i)}},htmlBuilder:lV,mathmlBuilder:l$});var lX=e=>{var t="ordgroup"===e.type&&e.body.length?e.body[0]:e;return"atom"===t.type&&("bin"===t.family||"rel"===t.family)?"m"+t.family:"mord"};s2({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(e,t){var{parser:n}=e;return{type:"mclass",mode:n.mode,mclass:lX(t[0]),body:s9(t[1]),isCharacterBox:oy(t[1])}}}),s2({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(e,t){var n,{parser:r,funcName:i}=e,a=t[1],o=t[0];n="\\stackrel"!==i?lX(a):"mrel";var s={type:"op",mode:a.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:"\\stackrel"!==i,body:s9(a)},l={type:"supsub",mode:o.mode,base:s,sup:"\\underset"===i?null:o,sub:"\\underset"===i?o:null};return{type:"mclass",mode:r.mode,mclass:n,body:[l],isCharacterBox:oy(l)}},htmlBuilder:lV,mathmlBuilder:l$}),s2({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"pmb",mode:n.mode,mclass:lX(t[0]),body:s9(t[0])}},htmlBuilder(e,t){var n=li(e.body,t,!0),r=sD([e.mclass],n,t);return r.style.textShadow="0.02em 0.01em 0.04px",r},mathmlBuilder(e,t){var n=new ld("mstyle",lw(e.body,t));return n.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),n}});var lY={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},lJ=()=>({type:"styling",body:[],mode:"math",style:"display"}),lZ=e=>"textord"===e.type&&"@"===e.text,lK=(e,t)=>("mathord"===e.type||"atom"===e.type)&&e.text===t;s2({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e;return{type:"cdlabel",mode:n.mode,side:r.slice(4),label:t[0]}},htmlBuilder(e,t){var n=t.havingStyle(t.style.sup()),r=sG(lu(e.label,n,t),t);return r.classes.push("cd-label-"+e.side),r.style.bottom=oq(.8-r.depth),r.height=0,r.depth=0,r},mathmlBuilder(e,t){var n=new ld("mrow",[lA(e.label,t)]);return(n=new ld("mpadded",[n])).setAttribute("width","0"),"left"===e.side&&n.setAttribute("lspace","-1width"),n.setAttribute("voffset","0.7em"),(n=new ld("mstyle",[n])).setAttribute("displaystyle","false"),n.setAttribute("scriptlevel","1"),n}}),s2({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(e,t){var{parser:n}=e;return{type:"cdlabelparent",mode:n.mode,fragment:t[0]}},htmlBuilder(e,t){var n=sG(lu(e.fragment,t),t);return n.classes.push("cd-vert-arrow"),n},mathmlBuilder:(e,t)=>new ld("mrow",[lA(e.fragment,t)])}),s2({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(e,t){for(var n,{parser:r}=e,i=lO(t[0],"ordgroup").body,a="",o=0;o<i.length;o++)a+=lO(i[o],"textord").text;var s=parseInt(a);if(isNaN(s))throw new oc("\\@char has non-numeric argument "+a);if(s<0||s>=1114111)throw new oc("\\@char with invalid code point "+a);return s<=65535?n=String.fromCharCode(s):(s-=65536,n=String.fromCharCode((s>>10)+55296,(1023&s)+56320)),{type:"textord",mode:r.mode,text:n}}});var lQ=(e,t)=>sU(li(e.body,t.withColor(e.color),!1)),l0=(e,t)=>{var n=new ld("mstyle",lw(e.body,t.withColor(e.color)));return n.setAttribute("mathcolor",e.color),n};s2({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(e,t){var{parser:n}=e,r=lO(t[0],"color-token").color,i=t[1];return{type:"color",mode:n.mode,color:r,body:s9(i)}},htmlBuilder:lQ,mathmlBuilder:l0}),s2({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(e,t){var{parser:n,breakOnTokenText:r}=e,i=lO(t[0],"color-token").color;n.gullet.macros.set("\\current@color",i);var a=n.parseExpression(!0,r);return{type:"color",mode:n.mode,color:i,body:a}},htmlBuilder:lQ,mathmlBuilder:l0}),s2({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(e,t,n){var{parser:r}=e,i="["===r.gullet.future().text?r.parseSizeGroup(!0):null,a=!r.settings.displayMode||!r.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:r.mode,newLine:a,size:i&&lO(i,"size").value}},htmlBuilder(e,t){var n=sD(["mspace"],[],t);return e.newLine&&(n.classes.push("newline"),e.size&&(n.style.marginTop=oq(oF(e.size,t)))),n},mathmlBuilder(e,t){var n=new ld("mspace");return e.newLine&&(n.setAttribute("linebreak","newline"),e.size&&n.setAttribute("height",oq(oF(e.size,t)))),n}});var l1={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},l4=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new oc("Expected a control sequence",e);return t},l5=(e,t,n,r)=>{var i=e.gullet.macros.get(n.text);null==i&&(n.noexpand=!0,i={tokens:[n],numArgs:0,unexpandable:!e.gullet.isExpandable(n.text)}),e.gullet.macros.set(t,i,r)};s2({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(e){var{parser:t,funcName:n}=e;t.consumeSpaces();var r=t.fetch();if(l1[r.text])return("\\global"===n||"\\\\globallong"===n)&&(r.text=l1[r.text]),lO(t.parseFunction(),"internal");throw new oc("Invalid token after macro prefix",r)}}),s2({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var t,{parser:n,funcName:r}=e,i=n.gullet.popToken(),a=i.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(a))throw new oc("Expected a control sequence",i);for(var o=0,s=[[]];"{"!==n.gullet.future().text;)if("#"===(i=n.gullet.popToken()).text){if("{"===n.gullet.future().text){t=n.gullet.future(),s[o].push("{");break}if(i=n.gullet.popToken(),!/^[1-9]$/.test(i.text))throw new oc('Invalid argument number "'+i.text+'"');if(parseInt(i.text)!==o+1)throw new oc('Argument number "'+i.text+'" out of order');o++,s.push([])}else if("EOF"===i.text)throw new oc("Expected a macro definition");else s[o].push(i.text);var{tokens:l}=n.gullet.consumeArg();return t&&l.unshift(t),("\\edef"===r||"\\xdef"===r)&&(l=n.gullet.expandTokens(l)).reverse(),n.gullet.macros.set(a,{tokens:l,numArgs:o,delimiters:s},r===l1[r]),{type:"internal",mode:n.mode}}}),s2({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var t,{parser:n,funcName:r}=e,i=l4(n.gullet.popToken());n.gullet.consumeSpaces();var a=("="===(t=n.gullet.popToken()).text&&" "===(t=n.gullet.popToken()).text&&(t=n.gullet.popToken()),t);return l5(n,i,a,"\\\\globallet"===r),{type:"internal",mode:n.mode}}}),s2({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=l4(t.gullet.popToken()),i=t.gullet.popToken(),a=t.gullet.popToken();return l5(t,r,a,"\\\\globalfuture"===n),t.gullet.pushToken(a),t.gullet.pushToken(i),{type:"internal",mode:t.mode}}});var l6=function(e,t,n){var r=o6(o8.math[e]&&o8.math[e].replace||e,t,n);if(!r)throw Error("Unsupported symbol "+e+" and font size "+t+".");return r},l3=function(e,t,n,r){var i=n.havingBaseStyle(t),a=sD(r.concat(i.sizingClasses(n)),[e],n),o=i.sizeMultiplier/n.sizeMultiplier;return a.height*=o,a.depth*=o,a.maxFontSize=i.sizeMultiplier,a},l2=function(e,t,n){var r=t.havingBaseStyle(n),i=(1-t.sizeMultiplier/r.sizeMultiplier)*t.fontMetrics().axisHeight;e.classes.push("delimcenter"),e.style.top=oq(i),e.height-=i,e.depth+=i},l7=function(e,t,n,r,i,a){var o=l3(sj(e,"Main-Regular",i,r),t,r,a);return n&&l2(o,r,t),o},l8=function(e,t,n,r,i,a){var o=sj(e,"Size"+t+"-Regular",i,r),s=l3(sD(["delimsizing","size"+t],[o],r),oM.TEXT,r,a);return n&&l2(s,r,oM.TEXT),s},l9=function(e,t,n){return{type:"elem",elem:sD(["delimsizinginner","Size1-Regular"===t?"delim-size1":"delim-size4"],[sD([],[sj(e,t,n)])])}},ce=function(e,t,n){var r=o1["Size4-Regular"][e.charCodeAt(0)]?o1["Size4-Regular"][e.charCodeAt(0)][4]:o1["Size1-Regular"][e.charCodeAt(0)][4],i=sF([],[new oK([new oQ("inner",oj(e,Math.round(1e3*t)))],{width:oq(r),height:oq(t),style:"width:"+oq(r),viewBox:"0 0 "+1e3*r+" "+Math.round(1e3*t),preserveAspectRatio:"xMinYMin"})],n);return i.height=t,i.style.height=oq(t),i.style.width=oq(r),{type:"elem",elem:i}},ct={type:"kern",size:-.008},cn=new Set(["|","\\lvert","\\rvert","\\vert"]),cr=new Set(["\\|","\\lVert","\\rVert","\\Vert"]),ci=function(e,t,n,r,i,a){var o,s,l,c,u="",h=0;o=l=c=e,s=null;var p="Size1-Regular";"\\uparrow"===e?l=c="⏐":"\\Uparrow"===e?l=c="‖":"\\downarrow"===e?o=l="⏐":"\\Downarrow"===e?o=l="‖":"\\updownarrow"===e?(o="\\uparrow",l="⏐",c="\\downarrow"):"\\Updownarrow"===e?(o="\\Uparrow",l="‖",c="\\Downarrow"):cn.has(e)?(l="∣",u="vert",h=333):cr.has(e)?(l="∥",u="doublevert",h=556):"["===e||"\\lbrack"===e?(o="⎡",l="⎢",c="⎣",p="Size4-Regular",u="lbrack",h=667):"]"===e||"\\rbrack"===e?(o="⎤",l="⎥",c="⎦",p="Size4-Regular",u="rbrack",h=667):"\\lfloor"===e||"⌊"===e?(l=o="⎢",c="⎣",p="Size4-Regular",u="lfloor",h=667):"\\lceil"===e||"⌈"===e?(o="⎡",l=c="⎢",p="Size4-Regular",u="lceil",h=667):"\\rfloor"===e||"⌋"===e?(l=o="⎥",c="⎦",p="Size4-Regular",u="rfloor",h=667):"\\rceil"===e||"⌉"===e?(o="⎤",l=c="⎥",p="Size4-Regular",u="rceil",h=667):"("===e||"\\lparen"===e?(o="⎛",l="⎜",c="⎝",p="Size4-Regular",u="lparen",h=875):")"===e||"\\rparen"===e?(o="⎞",l="⎟",c="⎠",p="Size4-Regular",u="rparen",h=875):"\\{"===e||"\\lbrace"===e?(o="⎧",s="⎨",c="⎩",l="⎪",p="Size4-Regular"):"\\}"===e||"\\rbrace"===e?(o="⎫",s="⎬",c="⎭",l="⎪",p="Size4-Regular"):"\\lgroup"===e||"⟮"===e?(o="⎧",c="⎩",l="⎪",p="Size4-Regular"):"\\rgroup"===e||"⟯"===e?(o="⎫",c="⎭",l="⎪",p="Size4-Regular"):"\\lmoustache"===e||"⎰"===e?(o="⎧",c="⎭",l="⎪",p="Size4-Regular"):("\\rmoustache"===e||"⎱"===e)&&(o="⎫",c="⎩",l="⎪",p="Size4-Regular");var d=l6(o,p,i),m=d.height+d.depth,f=l6(l,p,i),g=f.height+f.depth,y=l6(c,p,i),b=y.height+y.depth,v=0,x=1;if(null!==s){var k=l6(s,p,i);v=k.height+k.depth,x=2}var w=m+b+v,S=Math.max(0,Math.ceil((t-w)/(x*g))),A=w+S*x*g,C=r.fontMetrics().axisHeight;n&&(C*=r.sizeMultiplier);var T=A/2-C,_=[];if(u.length>0){var M=Math.round(1e3*A),N=oL(u,Math.round(1e3*(A-m-b))),E=new oQ(u,N),z=oq(h/1e3),I=oq(M/1e3),j=sF([],[new oK([E],{width:z,height:I,viewBox:"0 0 "+h+" "+M})],r);j.height=M/1e3,j.style.width=z,j.style.height=I,_.push({type:"elem",elem:j})}else{if(_.push(l9(c,p,i)),_.push(ct),null===s)_.push(ce(l,A-m-b+.016,r));else{var R=(A-m-b-v)/2+.016;_.push(ce(l,R,r)),_.push(ct),_.push(l9(s,p,i)),_.push(ct),_.push(ce(l,R,r))}_.push(ct),_.push(l9(o,p,i))}var L=r.havingBaseStyle(oM.TEXT);return l3(sD(["delimsizing","mult"],[sV({positionType:"bottom",positionData:T,children:_})],L),oM.TEXT,r,a)},ca=function(e,t,n,r,i){var a=oI(e,r,n);return sF(["hide-tail"],[new oK([new oQ(e,a)],{width:"400em",height:oq(t),viewBox:"0 0 400000 "+n,preserveAspectRatio:"xMinYMin slice"})],i)},co=function(e,t){var n,r,i=t.havingBaseSizing(),a=cg("\\surd",e*i.sizeMultiplier,cm,i),o=i.sizeMultiplier,s=Math.max(0,t.minRuleThickness-t.fontMetrics().sqrtRuleThickness),l=0,c=0,u=0;return"small"===a.type?(u=1e3+1e3*s+80,e<1?o=1:e<1.4&&(o=.7),l=(1+s+.08)/o,c=(1+s)/o,(n=ca("sqrtMain",l,u,s,t)).style.minWidth="0.853em",r=.833/o):"large"===a.type?(u=1080*cu[a.size],c=(cu[a.size]+s)/o,l=(cu[a.size]+s+.08)/o,(n=ca("sqrtSize"+a.size,l,u,s,t)).style.minWidth="1.02em",r=1/o):(l=e+s+.08,c=e+s,(n=ca("sqrtTall",l,u=Math.floor(1e3*e+s)+80,s,t)).style.minWidth="0.742em",r=1.056),n.height=c,n.style.height=oq(l),{span:n,advanceWidth:r,ruleWidth:(t.fontMetrics().sqrtRuleThickness+s)*o}},cs=new Set(["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"]),cl=new Set(["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"]),cc=new Set(["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"]),cu=[0,1.2,1.8,2.4,3],ch=function(e,t,n,r,i){if("<"===e||"\\lt"===e||"⟨"===e?e="\\langle":(">"===e||"\\gt"===e||"⟩"===e)&&(e="\\rangle"),cs.has(e)||cc.has(e))return l8(e,t,!1,n,r,i);if(cl.has(e))return ci(e,cu[t],!1,n,r,i);throw new oc("Illegal delimiter: '"+e+"'")},cp=[{type:"small",style:oM.SCRIPTSCRIPT},{type:"small",style:oM.SCRIPT},{type:"small",style:oM.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],cd=[{type:"small",style:oM.SCRIPTSCRIPT},{type:"small",style:oM.SCRIPT},{type:"small",style:oM.TEXT},{type:"stack"}],cm=[{type:"small",style:oM.SCRIPTSCRIPT},{type:"small",style:oM.SCRIPT},{type:"small",style:oM.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],cf=function(e){if("small"===e.type)return"Main-Regular";if("large"===e.type)return"Size"+e.size+"-Regular";if("stack"===e.type)return"Size4-Regular";throw Error("Add support for delim type '"+e.type+"' here.")},cg=function(e,t,n,r){for(var i=Math.min(2,3-r.style.size),a=i;a<n.length;a++){var o=n[a];if("stack"===o.type)break;var s=l6(e,cf(o),"math"),l=s.height+s.depth;if("small"===o.type&&(l*=r.havingBaseStyle(o.style).sizeMultiplier),l>t)return o}return n[n.length-1]},cy=function(e,t,n,r,i,a){"<"===e||"\\lt"===e||"⟨"===e?e="\\langle":(">"===e||"\\gt"===e||"⟩"===e)&&(e="\\rangle");var o=cc.has(e)?cp:cs.has(e)?cm:cd,s=cg(e,t,o,r);return"small"===s.type?l7(e,s.style,n,r,i,a):"large"===s.type?l8(e,s.size,n,r,i,a):ci(e,t,n,r,i,a)},cb=function(e,t,n,r,i,a){var o=r.fontMetrics().axisHeight*r.sizeMultiplier,s=5/r.fontMetrics().ptPerEm,l=Math.max(t-o,n+o);return cy(e,Math.max(l/500*901,2*l-s),!0,r,i,a)},cv={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},cx=new Set(["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","<",">","\\langle","⟨","\\rangle","⟩","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."]);function ck(e,t){var n=lF(e);if(n&&cx.has(n.text))return n;if(n)throw new oc("Invalid delimiter '"+n.text+"' after '"+t.funcName+"'",e);throw new oc("Invalid delimiter type '"+e.type+"'",e)}function cw(e){if(!e.body)throw Error("Bug: The leftright ParseNode wasn't fully parsed.")}s2({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:(e,t)=>{var n=ck(t[0],e);return{type:"delimsizing",mode:e.parser.mode,size:cv[e.funcName].size,mclass:cv[e.funcName].mclass,delim:n.text}},htmlBuilder:(e,t)=>"."===e.delim?sD([e.mclass]):ch(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{var t=[];"."!==e.delim&&t.push(lb(e.delim,e.mode));var n=new ld("mo",t);"mopen"===e.mclass||"mclose"===e.mclass?n.setAttribute("fence","true"):n.setAttribute("fence","false"),n.setAttribute("stretchy","true");var r=oq(cu[e.size]);return n.setAttribute("minsize",r),n.setAttribute("maxsize",r),n}}),s2({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=e.parser.gullet.macros.get("\\current@color");if(n&&"string"!=typeof n)throw new oc("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:e.parser.mode,delim:ck(t[0],e).text,color:n}}}),s2({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=ck(t[0],e),r=e.parser;++r.leftrightDepth;var i=r.parseExpression(!1);--r.leftrightDepth,r.expect("\\right",!1);var a=lO(r.parseFunction(),"leftright-right");return{type:"leftright",mode:r.mode,body:i,left:n.text,right:a.delim,rightColor:a.color}},htmlBuilder:(e,t)=>{cw(e);for(var n,r,i=li(e.body,t,!0,["mopen","mclose"]),a=0,o=0,s=!1,l=0;l<i.length;l++)i[l].isMiddle?s=!0:(a=Math.max(i[l].height,a),o=Math.max(i[l].depth,o));if(a*=t.sizeMultiplier,o*=t.sizeMultiplier,n="."===e.left?lc(t,["mopen"]):cb(e.left,a,o,t,e.mode,["mopen"]),i.unshift(n),s)for(var c=1;c<i.length;c++){var u=i[c].isMiddle;u&&(i[c]=cb(u.delim,a,o,u.options,e.mode,[]))}if("."===e.right)r=lc(t,["mclose"]);else{var h=e.rightColor?t.withColor(e.rightColor):t;r=cb(e.right,a,o,h,e.mode,["mclose"])}return i.push(r),sD(["minner"],i,t)},mathmlBuilder:(e,t)=>{cw(e);var n=lw(e.body,t);if("."!==e.left){var r=new ld("mo",[lb(e.left,e.mode)]);r.setAttribute("fence","true"),n.unshift(r)}if("."!==e.right){var i=new ld("mo",[lb(e.right,e.mode)]);i.setAttribute("fence","true"),e.rightColor&&i.setAttribute("mathcolor",e.rightColor),n.push(i)}return lv(n)}}),s2({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=ck(t[0],e);if(!e.parser.leftrightDepth)throw new oc("\\middle without preceding \\left",n);return{type:"middle",mode:e.parser.mode,delim:n.text}},htmlBuilder:(e,t)=>{var n;if("."===e.delim)n=lc(t,[]);else{n=ch(e.delim,1,t,e.mode,[]);var r={delim:e.delim,options:t};n.isMiddle=r}return n},mathmlBuilder:(e,t)=>{var n=new ld("mo",["\\vert"===e.delim||"|"===e.delim?lb("|","text"):lb(e.delim,e.mode)]);return n.setAttribute("fence","true"),n.setAttribute("lspace","0.05em"),n.setAttribute("rspace","0.05em"),n}});var cS=(e,t)=>{var n,r,i=sG(lu(e.body,t),t),a=e.label.slice(1),o=t.sizeMultiplier,s=0,l=oy(e.body);if("sout"===a)(n=sD(["stretchy","sout"])).height=t.fontMetrics().defaultRuleThickness/o,s=-.5*t.fontMetrics().xHeight;else if("phase"===a){var c=oF({number:.6,unit:"pt"},t),u=oF({number:.35,unit:"ex"},t);o/=t.havingBaseSizing().sizeMultiplier;var h=i.height+i.depth+c+u;i.style.paddingLeft=oq(h/2+c);var p=Math.floor(1e3*h*o);(n=sF(["hide-tail"],[new oK([new oQ("phase","M400000 "+p+" H0 L"+p/2+" 0 l65 45 L145 "+(p-80)+" H400000z")],{width:"400em",height:oq(p/1e3),viewBox:"0 0 400000 "+p,preserveAspectRatio:"xMinYMin slice"})],t)).style.height=oq(h),s=i.depth+c+u}else{/cancel/.test(a)?l||i.classes.push("cancel-pad"):"angl"===a?i.classes.push("anglpad"):i.classes.push("boxpad");var d=0,m=0,f=0;/box/.test(a)?(f=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),m=d=t.fontMetrics().fboxsep+("colorbox"===a?0:f)):"angl"===a?(d=4*(f=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness)),m=Math.max(0,.25-i.depth)):m=d=.2*!!l,n=lB(i,a,d,m,t),/fbox|boxed|fcolorbox/.test(a)?(n.style.borderStyle="solid",n.style.borderWidth=oq(f)):"angl"===a&&.049!==f&&(n.style.borderTopWidth=oq(f),n.style.borderRightWidth=oq(f)),s=i.depth+m,e.backgroundColor&&(n.style.backgroundColor=e.backgroundColor,e.borderColor&&(n.style.borderColor=e.borderColor))}return(r=e.backgroundColor?sV({positionType:"individualShift",children:[{type:"elem",elem:n,shift:s},{type:"elem",elem:i,shift:0}]}):sV({positionType:"individualShift",children:[{type:"elem",elem:i,shift:0},{type:"elem",elem:n,shift:s,wrapperClasses:/cancel|phase/.test(a)?["svg-align"]:[]}]}),/cancel/.test(a)&&(r.height=i.height,r.depth=i.depth),/cancel/.test(a)&&!l)?sD(["mord","cancel-lap"],[r],t):sD(["mord"],[r],t)},cA=(e,t)=>{var n=0,r=new ld(e.label.includes("colorbox")?"mpadded":"menclose",[lA(e.body,t)]);switch(e.label){case"\\cancel":r.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":r.setAttribute("notation","downdiagonalstrike");break;case"\\phase":r.setAttribute("notation","phasorangle");break;case"\\sout":r.setAttribute("notation","horizontalstrike");break;case"\\fbox":r.setAttribute("notation","box");break;case"\\angl":r.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(n=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,r.setAttribute("width","+"+2*n+"pt"),r.setAttribute("height","+"+2*n+"pt"),r.setAttribute("lspace",n+"pt"),r.setAttribute("voffset",n+"pt"),"\\fcolorbox"===e.label){var i=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);r.setAttribute("style","border: "+oq(i)+" solid "+e.borderColor)}break;case"\\xcancel":r.setAttribute("notation","updiagonalstrike downdiagonalstrike")}return e.backgroundColor&&r.setAttribute("mathbackground",e.backgroundColor),r};s2({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler(e,t,n){var{parser:r,funcName:i}=e,a=lO(t[0],"color-token").color,o=t[1];return{type:"enclose",mode:r.mode,label:i,backgroundColor:a,body:o}},htmlBuilder:cS,mathmlBuilder:cA}),s2({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(e,t,n){var{parser:r,funcName:i}=e,a=lO(t[0],"color-token").color,o=lO(t[1],"color-token").color,s=t[2];return{type:"enclose",mode:r.mode,label:i,backgroundColor:o,borderColor:a,body:s}},htmlBuilder:cS,mathmlBuilder:cA}),s2({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"enclose",mode:n.mode,label:"\\fbox",body:t[0]}}}),s2({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\phase"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];return{type:"enclose",mode:n.mode,label:r,body:i}},htmlBuilder:cS,mathmlBuilder:cA}),s2({type:"enclose",names:["\\sout"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n,funcName:r}=e;"math"===n.mode&&n.settings.reportNonstrict("mathVsSout","LaTeX's \\sout works only in text mode");var i=t[0];return{type:"enclose",mode:n.mode,label:r,body:i}},htmlBuilder:cS,mathmlBuilder:cA}),s2({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(e,t){var{parser:n}=e;return{type:"enclose",mode:n.mode,label:"\\angl",body:t[0]}}});var cC={};function cT(e){for(var{type:t,names:n,props:r,handler:i,htmlBuilder:a,mathmlBuilder:o}=e,s={type:t,numArgs:r.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:i},l=0;l<n.length;++l)cC[n[l]]=s;a&&(s6[t]=a),o&&(s3[t]=o)}var c_={};class cM{static range(e,t){return t?e&&e.loc&&t.loc&&e.loc.lexer===t.loc.lexer?new cM(e.loc.lexer,e.loc.start,t.loc.end):null:e&&e.loc}constructor(e,t,n){this.lexer=e,this.start=t,this.end=n}}class cN{range(e,t){return new cN(t,cM.range(this,e))}constructor(e,t){this.text=e,this.loc=t}}function cE(e){var t=[];e.consumeSpaces();var n=e.fetch().text;for("\\relax"===n&&(e.consume(),e.consumeSpaces(),n=e.fetch().text);"\\hline"===n||"\\hdashline"===n;)e.consume(),t.push("\\hdashline"===n),e.consumeSpaces(),n=e.fetch().text;return t}var cz=e=>{if(!e.parser.settings.displayMode)throw new oc("{"+e.envName+"} can be used only in display mode.")},cI=new Set(["gather","gather*"]);function cj(e){if(!e.includes("ed"))return!e.includes("*")}function cR(e,t,n){var{hskipBeforeAndAfter:r,addJot:i,cols:a,arraystretch:o,colSeparationType:s,autoTag:l,singleRow:c,emptySingleRow:u,maxNumCols:h,leqno:p}=t;if(e.gullet.beginGroup(),c||e.gullet.macros.set("\\cr","\\\\\\relax"),!o){var d=e.gullet.expandMacroAsText("\\arraystretch");if(null==d)o=1;else if(!(o=parseFloat(d))||o<0)throw new oc("Invalid \\arraystretch: "+d)}e.gullet.beginGroup();var m=[],f=[m],g=[],y=[],b=null!=l?[]:void 0;function v(){l&&e.gullet.macros.set("\\@eqnsw","1",!0)}function x(){b&&(e.gullet.macros.get("\\df@tag")?(b.push(e.subparse([new cN("\\df@tag")])),e.gullet.macros.set("\\df@tag",void 0,!0)):b.push(!!l&&"1"===e.gullet.macros.get("\\@eqnsw")))}for(v(),y.push(cE(e));;){var k=e.parseExpression(!1,c?"\\end":"\\\\");e.gullet.endGroup(),e.gullet.beginGroup();var w={type:"ordgroup",mode:e.mode,body:k};n&&(w={type:"styling",mode:e.mode,style:n,body:[w]}),m.push(w);var S=e.fetch().text;if("&"===S){if(h&&m.length===h)if(c||s)throw new oc("Too many tab characters: &",e.nextToken);else e.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.");e.consume()}else if("\\end"===S){x(),1===m.length&&"styling"===w.type&&1===w.body.length&&"ordgroup"===w.body[0].type&&0===w.body[0].body.length&&(f.length>1||!u)&&f.pop(),y.length<f.length+1&&y.push([]);break}else if("\\\\"===S){e.consume();var A=void 0;" "!==e.gullet.future().text&&(A=e.parseSizeGroup(!0)),g.push(A?A.value:null),x(),y.push(cE(e)),m=[],f.push(m),v()}else throw new oc("Expected & or \\\\ or \\cr or \\end",e.nextToken)}return e.gullet.endGroup(),e.gullet.endGroup(),{type:"array",mode:e.mode,addJot:i,arraystretch:o,body:f,cols:a,rowGaps:g,hskipBeforeAndAfter:r,hLinesBeforeRow:y,colSeparationType:s,tags:b,leqno:p}}function cL(e){return"d"===e.slice(0,1)?"display":"text"}var cP=function(e,t){var n=e.body.length,r=e.hLinesBeforeRow,i=0,a=Array(n),o=[],s=Math.max(t.fontMetrics().arrayRuleWidth,t.minRuleThickness),l=1/t.fontMetrics().ptPerEm,c=5*l;e.colSeparationType&&"small"===e.colSeparationType&&(c=.2778*(t.havingStyle(oM.SCRIPT).sizeMultiplier/t.sizeMultiplier));var u="CD"===e.colSeparationType?oF({number:3,unit:"ex"},t):12*l,h=3*l,p=e.arraystretch*u,d=.7*p,m=.3*p,f=0;function g(e){for(var t=0;t<e.length;++t)t>0&&(f+=.25),o.push({pos:f,isDashed:e[t]})}for(g(r[0]),I=0;I<e.body.length;++I){var y=e.body[I],b=d,v=m;i<y.length&&(i=y.length);var x=Array(y.length);for(j=0;j<y.length;++j){var k=lu(y[j],t);v<k.depth&&(v=k.depth),b<k.height&&(b=k.height),x[j]=k}var w=e.rowGaps[I],S=0;w&&(S=oF(w,t))>0&&(v<(S+=m)&&(v=S),S=0),e.addJot&&I<e.body.length-1&&(v+=h),x.height=b,x.depth=v,x.pos=f+=b,f+=v+S,a[I]=x,g(r[I+1])}var A=f/2+t.fontMetrics().axisHeight,C=e.cols||[],T=[],_=[];if(e.tags&&e.tags.some(e=>e))for(I=0;I<n;++I){var M=a[I],N=M.pos-A,E=e.tags[I],z=void 0;(z=!0===E?sD(["eqn-num"],[],t):!1===E?sD([],[],t):sD([],li(E,t,!0),t)).depth=M.depth,z.height=M.height,_.push({type:"elem",elem:z,shift:N})}for(j=0,L=0;j<i||L<C.length;++j,++L){for(var I,j,R,L,P,B,O,D,F,q,H=C[L],U=!0;(null==(B=H)?void 0:B.type)==="separator";){if(U||((R=sD(["arraycolsep"],[])).style.width=oq(t.fontMetrics().doubleRuleSep),T.push(R)),"|"===H.separator||":"===H.separator){var G="|"===H.separator?"solid":"dashed",W=sD(["vertical-separator"],[],t);W.style.height=oq(f),W.style.borderRightWidth=oq(s),W.style.borderRightStyle=G,W.style.margin="0 "+oq(-s/2);var V=f-A;V&&(W.style.verticalAlign=oq(-V)),T.push(W)}else throw new oc("Invalid separator type: "+H.separator);H=C[++L],U=!1}if(!(j>=i)){var $=void 0;(j>0||e.hskipBeforeAndAfter)&&0!==($=null!=(O=null==(D=H)?void 0:D.pregap)?O:c)&&((R=sD(["arraycolsep"],[])).style.width=oq($),T.push(R));var X=[];for(I=0;I<n;++I){var Y=a[I],J=Y[j];if(J){var Z=Y.pos-A;J.depth=Y.depth,J.height=Y.height,X.push({type:"elem",elem:J,shift:Z})}}var K=sV({positionType:"individualShift",children:X}),Q=sD(["col-align-"+((null==(P=H)?void 0:P.align)||"c")],[K]);T.push(Q),(j<i-1||e.hskipBeforeAndAfter)&&0!==($=null!=(F=null==(q=H)?void 0:q.postgap)?F:c)&&((R=sD(["arraycolsep"],[])).style.width=oq($),T.push(R))}}var ee=sD(["mtable"],T);if(o.length>0){for(var et=sq("hline",t,s),en=sq("hdashline",t,s),er=[{type:"elem",elem:ee,shift:0}];o.length>0;){var ei=o.pop(),ea=ei.pos-A;ei.isDashed?er.push({type:"elem",elem:en,shift:ea}):er.push({type:"elem",elem:et,shift:ea})}ee=sV({positionType:"individualShift",children:er})}return 0===_.length?sD(["mord"],[ee],t):sU([ee,sD(["tag"],[sV({positionType:"individualShift",children:_})],t)])},cB={c:"center ",l:"left ",r:"right "},cO=function(e,t){for(var n=[],r=new ld("mtd",[],["mtr-glue"]),i=new ld("mtd",[],["mml-eqn-num"]),a=0;a<e.body.length;a++){for(var o=e.body[a],s=[],l=0;l<o.length;l++)s.push(new ld("mtd",[lA(o[l],t)]));e.tags&&e.tags[a]&&(s.unshift(r),s.push(r),e.leqno?s.unshift(i):s.push(i)),n.push(new ld("mtr",s))}var c=new ld("mtable",n),u=.5===e.arraystretch?.1:.16+e.arraystretch-1+.09*!!e.addJot;c.setAttribute("rowspacing",oq(u));var h="",p="";if(e.cols&&e.cols.length>0){var d=e.cols,m="",f=!1,g=0,y=d.length;"separator"===d[0].type&&(h+="top ",g=1),"separator"===d[d.length-1].type&&(h+="bottom ",y-=1);for(var b=g;b<y;b++){var v=d[b];"align"===v.type?(p+=cB[v.align],f&&(m+="none "),f=!0):"separator"===v.type&&f&&(m+="|"===v.separator?"solid ":"dashed ",f=!1)}c.setAttribute("columnalign",p.trim()),/[sd]/.test(m)&&c.setAttribute("columnlines",m.trim())}if("align"===e.colSeparationType){for(var x=e.cols||[],k="",w=1;w<x.length;w++)k+=w%2?"0em ":"1em ";c.setAttribute("columnspacing",k.trim())}else"alignat"===e.colSeparationType||"gather"===e.colSeparationType?c.setAttribute("columnspacing","0em"):"small"===e.colSeparationType?c.setAttribute("columnspacing","0.2778em"):"CD"===e.colSeparationType?c.setAttribute("columnspacing","0.5em"):c.setAttribute("columnspacing","1em");var S="",A=e.hLinesBeforeRow;h+=(A[0].length>0?"left ":"")+(A[A.length-1].length>0?"right ":"");for(var C=1;C<A.length-1;C++)S+=0===A[C].length?"none ":A[C][0]?"dashed ":"solid ";return/[sd]/.test(S)&&c.setAttribute("rowlines",S.trim()),""!==h&&(c=new ld("menclose",[c])).setAttribute("notation",h.trim()),e.arraystretch&&e.arraystretch<1&&(c=new ld("mstyle",[c])).setAttribute("scriptlevel","1"),c},cD=function(e,t){e.envName.includes("ed")||cz(e);var n=[],r=e.envName.includes("at")?"alignat":"align",i="split"===e.envName,a=cR(e.parser,{cols:n,addJot:!0,autoTag:i?void 0:cj(e.envName),emptySingleRow:!0,colSeparationType:r,maxNumCols:i?2:void 0,leqno:e.parser.settings.leqno},"display"),o=0,s=0,l={type:"ordgroup",mode:e.mode,body:[]};if(t[0]&&"ordgroup"===t[0].type){for(var c="",u=0;u<t[0].body.length;u++)c+=lO(t[0].body[u],"textord").text;s=2*(o=Number(c))}var h=!s;a.body.forEach(function(e){for(var t=1;t<e.length;t+=2){var n=lO(e[t],"styling");lO(n.body[0],"ordgroup").body.unshift(l)}if(h)s<e.length&&(s=e.length);else{var r=e.length/2;if(o<r)throw new oc("Too many math in a row: expected "+o+", but got "+r,e[0])}});for(var p=0;p<s;++p){var d="r",m=0;p%2==1?d="l":p>0&&h&&(m=1),n[p]={type:"align",align:d,pregap:m,postgap:0}}return a.colSeparationType=h?"align":"alignat",a};cT({type:"array",names:["array","darray"],props:{numArgs:1},handler(e,t){var n=(lF(t[0])?[t[0]]:lO(t[0],"ordgroup").body).map(function(e){var t=lD(e).text;if("lcr".includes(t))return{type:"align",align:t};if("|"===t)return{type:"separator",separator:"|"};if(":"===t)return{type:"separator",separator:":"};throw new oc("Unknown column alignment: "+t,e)}),r={cols:n,hskipBeforeAndAfter:!0,maxNumCols:n.length};return cR(e.parser,r,cL(e.envName))},htmlBuilder:cP,mathmlBuilder:cO}),cT({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(e){var t={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[e.envName.replace("*","")],n="c",r={hskipBeforeAndAfter:!1,cols:[{type:"align",align:n}]};if("*"===e.envName.charAt(e.envName.length-1)){var i=e.parser;if(i.consumeSpaces(),"["===i.fetch().text){if(i.consume(),i.consumeSpaces(),n=i.fetch().text,!"lcr".includes(n))throw new oc("Expected l or c or r",i.nextToken);i.consume(),i.consumeSpaces(),i.expect("]"),i.consume(),r.cols=[{type:"align",align:n}]}}var a=cR(e.parser,r,cL(e.envName)),o=Math.max(0,...a.body.map(e=>e.length));return a.cols=Array(o).fill({type:"align",align:n}),t?{type:"leftright",mode:e.mode,body:[a],left:t[0],right:t[1],rightColor:void 0}:a},htmlBuilder:cP,mathmlBuilder:cO}),cT({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(e){var t=cR(e.parser,{arraystretch:.5},"script");return t.colSeparationType="small",t},htmlBuilder:cP,mathmlBuilder:cO}),cT({type:"array",names:["subarray"],props:{numArgs:1},handler(e,t){var n=(lF(t[0])?[t[0]]:lO(t[0],"ordgroup").body).map(function(e){var t=lD(e).text;if("lc".includes(t))return{type:"align",align:t};throw new oc("Unknown column alignment: "+t,e)});if(n.length>1)throw new oc("{subarray} can contain only one column");var r=cR(e.parser,{cols:n,hskipBeforeAndAfter:!1,arraystretch:.5},"script");if(r.body.length>0&&r.body[0].length>1)throw new oc("{subarray} can contain only one column");return r},htmlBuilder:cP,mathmlBuilder:cO}),cT({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(e){var t=cR(e.parser,{arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},cL(e.envName));return{type:"leftright",mode:e.mode,body:[t],left:e.envName.includes("r")?".":"\\{",right:e.envName.includes("r")?"\\}":".",rightColor:void 0}},htmlBuilder:cP,mathmlBuilder:cO}),cT({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:cD,htmlBuilder:cP,mathmlBuilder:cO}),cT({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(e){cI.has(e.envName)&&cz(e);var t={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:cj(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return cR(e.parser,t,"display")},htmlBuilder:cP,mathmlBuilder:cO}),cT({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:cD,htmlBuilder:cP,mathmlBuilder:cO}),cT({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(e){cz(e);var t={autoTag:cj(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return cR(e.parser,t,"display")},htmlBuilder:cP,mathmlBuilder:cO}),cT({type:"array",names:["CD"],props:{numArgs:0},handler:e=>(cz(e),function(e){var t=[];for(e.gullet.beginGroup(),e.gullet.macros.set("\\cr","\\\\\\relax"),e.gullet.beginGroup();;){t.push(e.parseExpression(!1,"\\\\")),e.gullet.endGroup(),e.gullet.beginGroup();var n=e.fetch().text;if("&"===n||"\\\\"===n)e.consume();else if("\\end"===n){0===t[t.length-1].length&&t.pop();break}else throw new oc("Expected \\\\ or \\cr or \\end",e.nextToken)}for(var r=[],i=[r],a=0;a<t.length;a++){for(var o=t[a],s=lJ(),l=0;l<o.length;l++)if(lZ(o[l])){r.push(s);var c=lD(o[l+=1]).text,u=[,,];if(u[0]={type:"ordgroup",mode:"math",body:[]},u[1]={type:"ordgroup",mode:"math",body:[]},"=|.".includes(c));else if("<>AV".includes(c))for(var h=0;h<2;h++){for(var p=!0,d=l+1;d<o.length;d++){if(lK(o[d],c)){p=!1,l=d;break}if(lZ(o[d]))throw new oc("Missing a "+c+" character to complete a CD arrow.",o[d]);u[h].body.push(o[d])}if(p)throw new oc("Missing a "+c+" character to complete a CD arrow.",o[l])}else throw new oc('Expected one of "<>AV=|." after @',o[l]);var m={type:"styling",body:[function(e,t,n){var r=lY[e];switch(r){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return n.callFunction(r,[t[0]],[t[1]]);case"\\uparrow":case"\\downarrow":var i=n.callFunction("\\\\cdleft",[t[0]],[]),a=n.callFunction("\\Big",[{type:"atom",text:r,mode:"math",family:"rel"}],[]),o=n.callFunction("\\\\cdright",[t[1]],[]);return n.callFunction("\\\\cdparent",[{type:"ordgroup",mode:"math",body:[i,a,o]}],[]);case"\\\\cdlongequal":return n.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":return n.callFunction("\\Big",[{type:"textord",text:"\\Vert",mode:"math"}],[]);default:return{type:"textord",text:" ",mode:"math"}}}(c,u,e)],mode:"math",style:"display"};r.push(m),s=lJ()}else s.body.push(o[l]);a%2==0?r.push(s):r.shift(),r=[],i.push(r)}e.gullet.endGroup(),e.gullet.endGroup();var f=Array(i[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:i,arraystretch:1,addJot:!0,rowGaps:[null],cols:f,colSeparationType:"CD",hLinesBeforeRow:Array(i.length+1).fill([])}}(e.parser)),htmlBuilder:cP,mathmlBuilder:cO}),c_["\\nonumber"]="\\gdef\\@eqnsw{0}",c_["\\notag"]="\\nonumber",s2({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(e,t){throw new oc(e.funcName+" valid only within array environment")}}),s2({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];if("ordgroup"!==i.type)throw new oc("Invalid environment name",i);for(var a="",o=0;o<i.body.length;++o)a+=lO(i.body[o],"textord").text;if("\\begin"===r){if(!cC.hasOwnProperty(a))throw new oc("No such environment: "+a,i);var s=cC[a],{args:l,optArgs:c}=n.parseArguments("\\begin{"+a+"}",s),u={mode:n.mode,envName:a,parser:n},h=s.handler(u,l,c);n.expect("\\end",!1);var p=n.nextToken,d=lO(n.parseFunction(),"environment");if(d.name!==a)throw new oc("Mismatch: \\begin{"+a+"} matched by \\end{"+d.name+"}",p);return h}return{type:"environment",mode:n.mode,name:a,nameGroup:i}}});var cF=(e,t)=>{var n=e.font,r=t.withFont(n);return lu(e.body,r)},cq=(e,t)=>{var n=e.font,r=t.withFont(n);return lA(e.body,r)},cH={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};s2({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathsfit","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=s8(t[0]),a=r;return a in cH&&(a=cH[a]),{type:"font",mode:n.mode,font:a.slice(1),body:i}},htmlBuilder:cF,mathmlBuilder:cq}),s2({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"mclass",mode:n.mode,mclass:lX(r),body:[{type:"font",mode:n.mode,font:"boldsymbol",body:r}],isCharacterBox:oy(r)}}}),s2({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:r,breakOnTokenText:i}=e,{mode:a}=n,o=n.parseExpression(!0,i);return{type:"font",mode:a,font:"math"+r.slice(1),body:{type:"ordgroup",mode:n.mode,body:o}}},htmlBuilder:cF,mathmlBuilder:cq});var cU=(e,t)=>t?{type:"styling",mode:e.mode,style:t,body:[e]}:e;s2({type:"genfrac",names:["\\cfrac","\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(e,t)=>{var n,{parser:r,funcName:i}=e,a=t[0],o=t[1],s=null,l=null;switch(i){case"\\cfrac":case"\\dfrac":case"\\frac":case"\\tfrac":n=!0;break;case"\\\\atopfrac":n=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":n=!1,s="(",l=")";break;case"\\\\bracefrac":n=!1,s="\\{",l="\\}";break;case"\\\\brackfrac":n=!1,s="[",l="]";break;default:throw Error("Unrecognized genfrac command")}var c="\\cfrac"===i,u=null;return c||i.startsWith("\\d")?u="display":i.startsWith("\\t")&&(u="text"),cU({type:"genfrac",mode:r.mode,numer:a,denom:o,continued:c,hasBarLine:n,leftDelim:s,rightDelim:l,barSize:null},u)},htmlBuilder:(e,t)=>{var n,r,i,a,o,s,l,c,u,h,p,d=t.style,m=d.fracNum(),f=d.fracDen();n=t.havingStyle(m);var g=lu(e.numer,n,t);if(e.continued){var y=8.5/t.fontMetrics().ptPerEm,b=3.5/t.fontMetrics().ptPerEm;g.height=g.height<y?y:g.height,g.depth=g.depth<b?b:g.depth}n=t.havingStyle(f);var v=lu(e.denom,n,t);if(e.hasBarLine?(e.barSize?(i=oF(e.barSize,t),r=sq("frac-line",t,i)):r=sq("frac-line",t),i=r.height,a=r.height):(r=null,i=0,a=t.fontMetrics().defaultRuleThickness),d.size===oM.DISPLAY.size?(o=t.fontMetrics().num1,s=i>0?3*a:7*a,l=t.fontMetrics().denom1):(i>0?(o=t.fontMetrics().num2,s=a):(o=t.fontMetrics().num3,s=3*a),l=t.fontMetrics().denom2),r){var x=t.fontMetrics().axisHeight;o-g.depth-(x+.5*i)<s&&(o+=s-(o-g.depth-(x+.5*i))),x-.5*i-(v.height-l)<s&&(l+=s-(x-.5*i-(v.height-l))),c=sV({positionType:"individualShift",children:[{type:"elem",elem:v,shift:l},{type:"elem",elem:r,shift:-(x-.5*i)},{type:"elem",elem:g,shift:-o}]})}else{var k=o-g.depth-(v.height-l);k<s&&(o+=.5*(s-k),l+=.5*(s-k)),c=sV({positionType:"individualShift",children:[{type:"elem",elem:v,shift:l},{type:"elem",elem:g,shift:-o}]})}return n=t.havingStyle(d),c.height*=n.sizeMultiplier/t.sizeMultiplier,c.depth*=n.sizeMultiplier/t.sizeMultiplier,u=d.size===oM.DISPLAY.size?t.fontMetrics().delim1:d.size===oM.SCRIPTSCRIPT.size?t.havingStyle(oM.SCRIPT).fontMetrics().delim2:t.fontMetrics().delim2,h=null==e.leftDelim?lc(t,["mopen"]):cy(e.leftDelim,u,!0,t.havingStyle(d),e.mode,["mopen"]),p=e.continued?sD([]):null==e.rightDelim?lc(t,["mclose"]):cy(e.rightDelim,u,!0,t.havingStyle(d),e.mode,["mclose"]),sD(["mord"].concat(n.sizingClasses(t)),[h,sD(["mfrac"],[c]),p],t)},mathmlBuilder:(e,t)=>{var n=new ld("mfrac",[lA(e.numer,t),lA(e.denom,t)]);if(e.hasBarLine){if(e.barSize){var r=oF(e.barSize,t);n.setAttribute("linethickness",oq(r))}}else n.setAttribute("linethickness","0px");if(null!=e.leftDelim||null!=e.rightDelim){var i=[];if(null!=e.leftDelim){var a=new ld("mo",[new lm(e.leftDelim.replace("\\",""))]);a.setAttribute("fence","true"),i.push(a)}if(i.push(n),null!=e.rightDelim){var o=new ld("mo",[new lm(e.rightDelim.replace("\\",""))]);o.setAttribute("fence","true"),i.push(o)}return lv(i)}return n}}),s2({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(e){var t,{parser:n,funcName:r,token:i}=e;switch(r){case"\\over":t="\\frac";break;case"\\choose":t="\\binom";break;case"\\atop":t="\\\\atopfrac";break;case"\\brace":t="\\\\bracefrac";break;case"\\brack":t="\\\\brackfrac";break;default:throw Error("Unrecognized infix genfrac command")}return{type:"infix",mode:n.mode,replaceWith:t,token:i}}});var cG=["display","text","script","scriptscript"],cW=function(e){var t=null;return e.length>0&&(t="."===(t=e)?null:t),t};s2({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(e,t){var n,{parser:r}=e,i=t[4],a=t[5],o=s8(t[0]),s="atom"===o.type&&"open"===o.family?cW(o.text):null,l=s8(t[1]),c="atom"===l.type&&"close"===l.family?cW(l.text):null,u=lO(t[2],"size"),h=null;n=!!u.isBlank||(h=u.value).number>0;var p=null,d=t[3];return"ordgroup"===d.type?d.body.length>0&&(p=cG[Number(lO(d.body[0],"textord").text)]):p=cG[Number((d=lO(d,"textord")).text)],cU({type:"genfrac",mode:r.mode,numer:i,denom:a,continued:!1,hasBarLine:n,barSize:h,leftDelim:s,rightDelim:c},p)}}),s2({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(e,t){var{parser:n,funcName:r,token:i}=e;return{type:"infix",mode:n.mode,replaceWith:"\\\\abovefrac",size:lO(t[0],"size").value,token:i}}}),s2({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0],a=lO(t[1],"infix").size;if(!a)throw Error("\\\\abovefrac expected size, but got "+String(a));var o=t[2],s=a.number>0;return{type:"genfrac",mode:n.mode,numer:i,denom:o,continued:!1,hasBarLine:s,barSize:a,leftDelim:null,rightDelim:null}}});var cV=(e,t)=>{var n,r,i,a=t.style;"supsub"===e.type?(n=e.sup?lu(e.sup,t.havingStyle(a.sup()),t):lu(e.sub,t.havingStyle(a.sub()),t),r=lO(e.base,"horizBrace")):r=lO(e,"horizBrace");var o=lu(r.base,t.havingBaseStyle(oM.DISPLAY)),s=lP(r,t);if(r.isOver?(i=sV({positionType:"firstBaseline",children:[{type:"elem",elem:o},{type:"kern",size:.1},{type:"elem",elem:s}]})).children[0].children[0].children[1].classes.push("svg-align"):(i=sV({positionType:"bottom",positionData:o.depth+.1+s.height,children:[{type:"elem",elem:s},{type:"kern",size:.1},{type:"elem",elem:o}]})).children[0].children[0].children[0].classes.push("svg-align"),n){var l=sD(["minner",r.isOver?"mover":"munder"],[i],t);i=r.isOver?sV({positionType:"firstBaseline",children:[{type:"elem",elem:l},{type:"kern",size:.2},{type:"elem",elem:n}]}):sV({positionType:"bottom",positionData:l.depth+.2+n.height+n.depth,children:[{type:"elem",elem:n},{type:"kern",size:.2},{type:"elem",elem:l}]})}return sD(["minner",r.isOver?"mover":"munder"],[i],t)};s2({type:"horizBrace",names:["\\overbrace","\\underbrace","\\overbracket","\\underbracket"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e;return{type:"horizBrace",mode:n.mode,label:r,isOver:r.includes("\\over"),base:t[0]}},htmlBuilder:cV,mathmlBuilder:(e,t)=>{var n=lj(e.label);return new ld(e.isOver?"mover":"munder",[lA(e.base,t),n])}}),s2({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[1],i=lO(t[0],"url").url;return n.settings.isTrusted({command:"\\href",url:i})?{type:"href",mode:n.mode,href:i,body:s9(r)}:n.formatUnsupportedCmd("\\href")},htmlBuilder:(e,t)=>{var n=li(e.body,t,!1);return sH(e.href,[],n,t)},mathmlBuilder:(e,t)=>{var n=lS(e.body,t);return n instanceof ld||(n=new ld("mrow",[n])),n.setAttribute("href",e.href),n}}),s2({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=lO(t[0],"url").url;if(!n.settings.isTrusted({command:"\\url",url:r}))return n.formatUnsupportedCmd("\\url");for(var i=[],a=0;a<r.length;a++){var o=r[a];"~"===o&&(o="\\textasciitilde"),i.push({type:"textord",mode:"text",text:o})}var s={type:"text",mode:n.mode,font:"\\texttt",body:i};return{type:"href",mode:n.mode,href:r,body:s9(s)}}}),s2({type:"hbox",names:["\\hbox"],props:{numArgs:1,argTypes:["text"],allowedInText:!0,primitive:!0},handler(e,t){var{parser:n}=e;return{type:"hbox",mode:n.mode,body:s9(t[0])}},htmlBuilder:(e,t)=>sU(li(e.body,t,!1)),mathmlBuilder:(e,t)=>new ld("mrow",lw(e.body,t))}),s2({type:"html",names:["\\htmlClass","\\htmlId","\\htmlStyle","\\htmlData"],props:{numArgs:2,argTypes:["raw","original"],allowedInText:!0},handler:(e,t)=>{var n,{parser:r,funcName:i,token:a}=e,o=lO(t[0],"raw").string,s=t[1];r.settings.strict&&r.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var l={};switch(i){case"\\htmlClass":l.class=o,n={command:"\\htmlClass",class:o};break;case"\\htmlId":l.id=o,n={command:"\\htmlId",id:o};break;case"\\htmlStyle":l.style=o,n={command:"\\htmlStyle",style:o};break;case"\\htmlData":for(var c=o.split(","),u=0;u<c.length;u++){var h=c[u],p=h.indexOf("=");if(p<0)throw new oc("\\htmlData key/value '"+h+"' missing equals sign");var d=h.slice(0,p),m=h.slice(p+1);l["data-"+d.trim()]=m}n={command:"\\htmlData",attributes:l};break;default:throw Error("Unrecognized html command")}return r.settings.isTrusted(n)?{type:"html",mode:r.mode,attributes:l,body:s9(s)}:r.formatUnsupportedCmd(i)},htmlBuilder:(e,t)=>{var n=li(e.body,t,!1),r=["enclosing"];e.attributes.class&&r.push(...e.attributes.class.trim().split(/\s+/));var i=sD(r,n,t);for(var a in e.attributes)"class"!==a&&e.attributes.hasOwnProperty(a)&&i.setAttribute(a,e.attributes[a]);return i},mathmlBuilder:(e,t)=>lS(e.body,t)}),s2({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInArgument:!0,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e;return{type:"htmlmathml",mode:n.mode,html:s9(t[0]),mathml:s9(t[1])}},htmlBuilder:(e,t)=>sU(li(e.html,t,!1)),mathmlBuilder:(e,t)=>lS(e.mathml,t)});var c$=function(e){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(e))return{number:+e,unit:"bp"};var t=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(e);if(!t)throw new oc("Invalid size: '"+e+"' in \\includegraphics");var n={number:+(t[1]+t[2]),unit:t[3]};if(!oD(n))throw new oc("Invalid unit: '"+n.unit+"' in \\includegraphics.");return n};s2({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(e,t,n)=>{var{parser:r}=e,i={number:0,unit:"em"},a={number:.9,unit:"em"},o={number:0,unit:"em"},s="";if(n[0])for(var l=lO(n[0],"raw").string.split(","),c=0;c<l.length;c++){var u=l[c].split("=");if(2===u.length){var h=u[1].trim();switch(u[0].trim()){case"alt":s=h;break;case"width":i=c$(h);break;case"height":a=c$(h);break;case"totalheight":o=c$(h);break;default:throw new oc("Invalid key: '"+u[0]+"' in \\includegraphics.")}}}var p=lO(t[0],"url").url;return(""===s&&(s=(s=(s=p).replace(/^.*[\\/]/,"")).substring(0,s.lastIndexOf("."))),r.settings.isTrusted({command:"\\includegraphics",url:p}))?{type:"includegraphics",mode:r.mode,alt:s,width:i,height:a,totalheight:o,src:p}:r.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:(e,t)=>{var n=oF(e.height,t),r=0;e.totalheight.number>0&&(r=oF(e.totalheight,t)-n);var i=0;e.width.number>0&&(i=oF(e.width,t));var a={height:oq(n+r)};i>0&&(a.width=oq(i)),r>0&&(a.verticalAlign=oq(-r));var o=new oY(e.src,e.alt,a);return o.height=n,o.depth=r,o},mathmlBuilder:(e,t)=>{var n=new ld("mglyph",[]);n.setAttribute("alt",e.alt);var r=oF(e.height,t),i=0;if(e.totalheight.number>0&&(i=oF(e.totalheight,t)-r,n.setAttribute("valign",oq(-i))),n.setAttribute("height",oq(r+i)),e.width.number>0){var a=oF(e.width,t);n.setAttribute("width",oq(a))}return n.setAttribute("src",e.src),n}}),s2({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(e,t){var{parser:n,funcName:r}=e,i=lO(t[0],"size");if(n.settings.strict){var a="m"===r[1],o="mu"===i.value.unit;a?(o||n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" supports only mu units, not "+i.value.unit+" units"),"math"!==n.mode&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" works only in math mode")):o&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" doesn't support mu units")}return{type:"kern",mode:n.mode,dimension:i.value}},htmlBuilder:(e,t)=>s$(e.dimension,t),mathmlBuilder:(e,t)=>new lf(oF(e.dimension,t))}),s2({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0];return{type:"lap",mode:n.mode,alignment:r.slice(5),body:i}},htmlBuilder:(e,t)=>{"clap"===e.alignment?(n=sD([],[lu(e.body,t)]),n=sD(["inner"],[n],t)):n=sD(["inner"],[lu(e.body,t)]);var n,r=sD(["fix"],[]),i=sD([e.alignment],[n,r],t),a=sD(["strut"]);return a.style.height=oq(i.height+i.depth),i.depth&&(a.style.verticalAlign=oq(-i.depth)),i.children.unshift(a),i=sD(["thinbox"],[i],t),sD(["mord","vbox"],[i],t)},mathmlBuilder:(e,t)=>{var n=new ld("mpadded",[lA(e.body,t)]);if("rlap"!==e.alignment){var r="llap"===e.alignment?"-1":"-0.5";n.setAttribute("lspace",r+"width")}return n.setAttribute("width","0px"),n}}),s2({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){var{funcName:n,parser:r}=e,i=r.mode;r.switchMode("math");var a="\\("===n?"\\)":"$",o=r.parseExpression(!1,a);return r.expect(a),r.switchMode(i),{type:"styling",mode:r.mode,style:"text",body:o}}}),s2({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){throw new oc("Mismatched "+e.funcName)}});var cX=(e,t)=>{switch(t.style.size){case oM.DISPLAY.size:return e.display;case oM.TEXT.size:return e.text;case oM.SCRIPT.size:return e.script;case oM.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};s2({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(e,t)=>{var{parser:n}=e;return{type:"mathchoice",mode:n.mode,display:s9(t[0]),text:s9(t[1]),script:s9(t[2]),scriptscript:s9(t[3])}},htmlBuilder:(e,t)=>sU(li(cX(e,t),t,!1)),mathmlBuilder:(e,t)=>lS(cX(e,t),t)});var cY=(e,t,n,r,i,a,o)=>{e=sD([],[e]);var s,l,c,u=n&&oy(n);if(t){var h=lu(t,r.havingStyle(i.sup()),r);l={elem:h,kern:Math.max(r.fontMetrics().bigOpSpacing1,r.fontMetrics().bigOpSpacing3-h.depth)}}if(n){var p=lu(n,r.havingStyle(i.sub()),r);s={elem:p,kern:Math.max(r.fontMetrics().bigOpSpacing2,r.fontMetrics().bigOpSpacing4-p.height)}}if(l&&s)c=sV({positionType:"bottom",positionData:r.fontMetrics().bigOpSpacing5+s.elem.height+s.elem.depth+s.kern+e.depth+o,children:[{type:"kern",size:r.fontMetrics().bigOpSpacing5},{type:"elem",elem:s.elem,marginLeft:oq(-a)},{type:"kern",size:s.kern},{type:"elem",elem:e},{type:"kern",size:l.kern},{type:"elem",elem:l.elem,marginLeft:oq(a)},{type:"kern",size:r.fontMetrics().bigOpSpacing5}]});else if(s)c=sV({positionType:"top",positionData:e.height-o,children:[{type:"kern",size:r.fontMetrics().bigOpSpacing5},{type:"elem",elem:s.elem,marginLeft:oq(-a)},{type:"kern",size:s.kern},{type:"elem",elem:e}]});else{if(!l)return e;c=sV({positionType:"bottom",positionData:e.depth+o,children:[{type:"elem",elem:e},{type:"kern",size:l.kern},{type:"elem",elem:l.elem,marginLeft:oq(a)},{type:"kern",size:r.fontMetrics().bigOpSpacing5}]})}var d=[c];if(s&&0!==a&&!u){var m=sD(["mspace"],[],r);m.style.marginRight=oq(a),d.unshift(m)}return sD(["mop","op-limits"],d,r)},cJ=new Set(["\\smallint"]),cZ=(e,t)=>{var n,r,i,a,o=!1;"supsub"===e.type?(n=e.sup,r=e.sub,i=lO(e.base,"op"),o=!0):i=lO(e,"op");var s=t.style,l=!1;if(s.size===oM.DISPLAY.size&&i.symbol&&!cJ.has(i.name)&&(l=!0),i.symbol){var c=l?"Size2-Regular":"Size1-Regular",u="";if(("\\oiint"===i.name||"\\oiiint"===i.name)&&(u=i.name.slice(1),i.name="oiint"===u?"\\iint":"\\iiint"),a=sj(i.name,c,"math",t,["mop","op-symbol",l?"large-op":"small-op"]),u.length>0){var h=a.italic;a=sV({positionType:"individualShift",children:[{type:"elem",elem:a,shift:0},{type:"elem",elem:sZ(u+"Size"+(l?"2":"1"),t),shift:.08*!!l}]}),i.name="\\"+u,a.classes.unshift("mop"),a.italic=h}}else if(i.body){var p=li(i.body,t,!0);1===p.length&&p[0]instanceof oZ?(a=p[0]).classes[0]="mop":a=sD(["mop"],p,t)}else{for(var d=[],m=1;m<i.name.length;m++)d.push(sR(i.name[m],i.mode,t));a=sD(["mop"],d,t)}var f=0,g=0;return((a instanceof oZ||"\\oiint"===i.name||"\\oiiint"===i.name)&&!i.suppressBaseShift&&(f=(a.height-a.depth)/2-t.fontMetrics().axisHeight,g=a.italic||0),o)?cY(a,n,r,t,s,g,f):(f&&(a.style.position="relative",a.style.top=oq(f)),a)},cK=(e,t)=>{var n;if(e.symbol)n=new ld("mo",[lb(e.name,e.mode)]),cJ.has(e.name)&&n.setAttribute("largeop","false");else if(e.body)n=new ld("mo",lw(e.body,t));else{n=new ld("mi",[new lm(e.name.slice(1))]);var r=new ld("mo",[lb("","text")]);n=e.parentIsSupSub?new ld("mrow",[n,r]):new oP([n,r])}return n},cQ={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};s2({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","∏","∐","∑","⋀","⋁","⋂","⋃","⨀","⨁","⨂","⨄","⨆"],props:{numArgs:0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=r;return 1===i.length&&(i=cQ[i]),{type:"op",mode:n.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:i}},htmlBuilder:cZ,mathmlBuilder:cK}),s2({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"op",mode:n.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:s9(r)}},htmlBuilder:cZ,mathmlBuilder:cK});var c0={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};s2({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e;return{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:cZ,mathmlBuilder:cK}),s2({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e;return{type:"op",mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:cZ,mathmlBuilder:cK}),s2({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],props:{numArgs:0,allowedInArgument:!0},handler(e){var{parser:t,funcName:n}=e,r=n;return 1===r.length&&(r=c0[r]),{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:r}},htmlBuilder:cZ,mathmlBuilder:cK});var c1=(e,t)=>{var n,r,i,a,o=!1;if("supsub"===e.type?(n=e.sup,r=e.sub,i=lO(e.base,"operatorname"),o=!0):i=lO(e,"operatorname"),i.body.length>0){for(var s=li(i.body.map(e=>{var t="text"in e?e.text:void 0;return"string"==typeof t?{type:"textord",mode:e.mode,text:t}:e}),t.withFont("mathrm"),!0),l=0;l<s.length;l++){var c=s[l];c instanceof oZ&&(c.text=c.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}a=sD(["mop"],s,t)}else a=sD(["mop"],[],t);return o?cY(a,n,r,t,t.style,0,0):a};function c4(e,t,n){for(var r=li(e,t,!1),i=t.sizeMultiplier/n.sizeMultiplier,a=0;a<r.length;a++){var o=r[a].classes.indexOf("sizing");o<0?Array.prototype.push.apply(r[a].classes,t.sizingClasses(n)):r[a].classes[o+1]==="reset-size"+t.size&&(r[a].classes[o+1]="reset-size"+n.size),r[a].height*=i,r[a].depth*=i}return sU(r)}s2({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0];return{type:"operatorname",mode:n.mode,body:s9(i),alwaysHandleSupSub:"\\operatornamewithlimits"===r,limits:!1,parentIsSupSub:!1}},htmlBuilder:c1,mathmlBuilder:(e,t)=>{for(var n=lw(e.body,t.withFont("mathrm")),r=!0,i=0;i<n.length;i++){var a=n[i];if(a instanceof lf);else if(a instanceof ld)switch(a.type){case"mi":case"mn":case"mspace":case"mtext":break;case"mo":var o=a.children[0];1===a.children.length&&o instanceof lm?o.text=o.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):r=!1;break;default:r=!1}else r=!1}r&&(n=[new lm(n.map(e=>e.toText()).join(""))]);var s=new ld("mi",n);s.setAttribute("mathvariant","normal");var l=new ld("mo",[lb("","text")]);return e.parentIsSupSub?new ld("mrow",[s,l]):new oP([s,l])}}),c_["\\operatorname"]="\\@ifstar\\operatornamewithlimits\\operatorname@",s7({type:"ordgroup",htmlBuilder:(e,t)=>e.semisimple?sU(li(e.body,t,!1)):sD(["mord"],li(e.body,t,!0),t),mathmlBuilder:(e,t)=>lS(e.body,t,!0)}),s2({type:"overline",names:["\\overline"],props:{numArgs:1},handler(e,t){var{parser:n}=e,r=t[0];return{type:"overline",mode:n.mode,body:r}},htmlBuilder(e,t){var n=lu(e.body,t.havingCrampedStyle()),r=sq("overline-line",t),i=t.fontMetrics().defaultRuleThickness;return sD(["mord","overline"],[sV({positionType:"firstBaseline",children:[{type:"elem",elem:n},{type:"kern",size:3*i},{type:"elem",elem:r},{type:"kern",size:i}]})],t)},mathmlBuilder(e,t){var n=new ld("mo",[new lm("‾")]);n.setAttribute("stretchy","true");var r=new ld("mover",[lA(e.body,t),n]);return r.setAttribute("accent","true"),r}}),s2({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"phantom",mode:n.mode,body:s9(r)}},htmlBuilder:(e,t)=>sU(li(e.body,t.withPhantom(),!1)),mathmlBuilder:(e,t)=>new ld("mphantom",lw(e.body,t))}),c_["\\hphantom"]="\\smash{\\phantom{#1}}",s2({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"vphantom",mode:n.mode,body:r}},htmlBuilder:(e,t)=>{var n=sD(["inner"],[lu(e.body,t.withPhantom())]),r=sD(["fix"],[]);return sD(["mord","rlap"],[n,r],t)},mathmlBuilder:(e,t)=>{var n=new ld("mphantom",lw(s9(e.body),t)),r=new ld("mpadded",[n]);return r.setAttribute("width","0px"),r}}),s2({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(e,t){var{parser:n}=e,r=lO(t[0],"size").value,i=t[1];return{type:"raisebox",mode:n.mode,dy:r,body:i}},htmlBuilder(e,t){var n=lu(e.body,t);return sV({positionType:"shift",positionData:-oF(e.dy,t),children:[{type:"elem",elem:n}]})},mathmlBuilder(e,t){var n=new ld("mpadded",[lA(e.body,t)]),r=e.dy.number+e.dy.unit;return n.setAttribute("voffset",r),n}}),s2({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0,allowedInArgument:!0},handler(e){var{parser:t}=e;return{type:"internal",mode:t.mode}}}),s2({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["size","size","size"]},handler(e,t,n){var{parser:r}=e,i=n[0],a=lO(t[0],"size"),o=lO(t[1],"size");return{type:"rule",mode:r.mode,shift:i&&lO(i,"size").value,width:a.value,height:o.value}},htmlBuilder(e,t){var n=sD(["mord","rule"],[],t),r=oF(e.width,t),i=oF(e.height,t),a=e.shift?oF(e.shift,t):0;return n.style.borderRightWidth=oq(r),n.style.borderTopWidth=oq(i),n.style.bottom=oq(a),n.width=r,n.height=i+a,n.depth=-a,n.maxFontSize=1.125*i*t.sizeMultiplier,n},mathmlBuilder(e,t){var n=oF(e.width,t),r=oF(e.height,t),i=e.shift?oF(e.shift,t):0,a=t.color&&t.getColor()||"black",o=new ld("mspace");o.setAttribute("mathbackground",a),o.setAttribute("width",oq(n)),o.setAttribute("height",oq(r));var s=new ld("mpadded",[o]);return i>=0?s.setAttribute("height",oq(i)):(s.setAttribute("height",oq(i)),s.setAttribute("depth",oq(-i))),s.setAttribute("voffset",oq(i)),s}});var c5=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"];s2({type:"sizing",names:c5,props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{breakOnTokenText:n,funcName:r,parser:i}=e,a=i.parseExpression(!1,n);return{type:"sizing",mode:i.mode,size:c5.indexOf(r)+1,body:a}},htmlBuilder:(e,t)=>{var n=t.havingSize(e.size);return c4(e.body,n,t)},mathmlBuilder:(e,t)=>{var n=t.havingSize(e.size),r=new ld("mstyle",lw(e.body,n));return r.setAttribute("mathsize",oq(n.sizeMultiplier)),r}}),s2({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(e,t,n)=>{var{parser:r}=e,i=!1,a=!1,o=n[0]&&lO(n[0],"ordgroup");if(o)for(var s="",l=0;l<o.body.length;++l)if("t"===(s=lD(o.body[l]).text))i=!0;else if("b"===s)a=!0;else{i=!1,a=!1;break}else i=!0,a=!0;var c=t[0];return{type:"smash",mode:r.mode,body:c,smashHeight:i,smashDepth:a}},htmlBuilder:(e,t)=>{var n=sD([],[lu(e.body,t)]);if(!e.smashHeight&&!e.smashDepth)return n;if(e.smashHeight&&(n.height=0),e.smashDepth&&(n.depth=0),e.smashHeight&&e.smashDepth)return sD(["mord","smash"],[n],t);if(n.children)for(var r=0;r<n.children.length;r++)e.smashHeight&&(n.children[r].height=0),e.smashDepth&&(n.children[r].depth=0);return sD(["mord"],[sV({positionType:"firstBaseline",children:[{type:"elem",elem:n}]})],t)},mathmlBuilder:(e,t)=>{var n=new ld("mpadded",[lA(e.body,t)]);return e.smashHeight&&n.setAttribute("height","0px"),e.smashDepth&&n.setAttribute("depth","0px"),n}}),s2({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,n){var{parser:r}=e,i=n[0],a=t[0];return{type:"sqrt",mode:r.mode,body:a,index:i}},htmlBuilder(e,t){var n=lu(e.body,t.havingCrampedStyle());0===n.height&&(n.height=t.fontMetrics().xHeight),n=sG(n,t);var r=t.fontMetrics().defaultRuleThickness,i=r;t.style.id<oM.TEXT.id&&(i=t.fontMetrics().xHeight);var a=r+i/4,{span:o,ruleWidth:s,advanceWidth:l}=co(n.height+n.depth+a+r,t),c=o.height-s;c>n.height+n.depth+a&&(a=(a+c-n.height-n.depth)/2);var u=o.height-n.height-a-s;n.style.paddingLeft=oq(l);var h=sV({positionType:"firstBaseline",children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:-(n.height+u)},{type:"elem",elem:o},{type:"kern",size:s}]});if(!e.index)return sD(["mord","sqrt"],[h],t);var p=t.havingStyle(oM.SCRIPTSCRIPT),d=lu(e.index,p,t),m=sD(["root"],[sV({positionType:"shift",positionData:-(.6*(h.height-h.depth)),children:[{type:"elem",elem:d}]})]);return sD(["mord","sqrt"],[m,h],t)},mathmlBuilder(e,t){var{body:n,index:r}=e;return r?new ld("mroot",[lA(n,t),lA(r,t)]):new ld("msqrt",[lA(n,t)])}});var c6={display:oM.DISPLAY,text:oM.TEXT,script:oM.SCRIPT,scriptscript:oM.SCRIPTSCRIPT};s2({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e,t){var{breakOnTokenText:n,funcName:r,parser:i}=e,a=i.parseExpression(!0,n),o=r.slice(1,r.length-5);return{type:"styling",mode:i.mode,style:o,body:a}},htmlBuilder(e,t){var n=c6[e.style],r=t.havingStyle(n).withFont("");return c4(e.body,r,t)},mathmlBuilder(e,t){var n=c6[e.style],r=t.havingStyle(n),i=new ld("mstyle",lw(e.body,r)),a={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]}[e.style];return i.setAttribute("scriptlevel",a[0]),i.setAttribute("displaystyle",a[1]),i}});var c3=function(e,t){var n=e.base;if(!n)return null;if("op"===n.type)return n.limits&&(t.style.size===oM.DISPLAY.size||n.alwaysHandleSupSub)?cZ:null;if("operatorname"===n.type)return n.alwaysHandleSupSub&&(t.style.size===oM.DISPLAY.size||n.limits)?c1:null;if("accent"===n.type)return oy(n.base)?lH:null;if("horizBrace"===n.type)return!e.sub===n.isOver?cV:null;else return null};s7({type:"supsub",htmlBuilder(e,t){var n,r,i,a,o=c3(e,t);if(o)return o(e,t);var{base:s,sup:l,sub:c}=e,u=lu(s,t),h=t.fontMetrics(),p=0,d=0,m=s&&oy(s);if(l){var f=t.havingStyle(t.style.sup());n=lu(l,f,t),m||(p=u.height-f.fontMetrics().supDrop*f.sizeMultiplier/t.sizeMultiplier)}if(c){var g=t.havingStyle(t.style.sub());r=lu(c,g,t),m||(d=u.depth+g.fontMetrics().subDrop*g.sizeMultiplier/t.sizeMultiplier)}i=t.style===oM.DISPLAY?h.sup1:t.style.cramped?h.sup3:h.sup2;var y=t.sizeMultiplier,b=oq(.5/h.ptPerEm/y),v=null;if(r){var x=e.base&&"op"===e.base.type&&e.base.name&&("\\oiint"===e.base.name||"\\oiiint"===e.base.name);(u instanceof oZ||x)&&(v=oq(-u.italic))}if(n&&r){p=Math.max(p,i,n.depth+.25*h.xHeight),d=Math.max(d,h.sub2);var k=4*h.defaultRuleThickness;if(p-n.depth-(r.height-d)<k){d=k-(p-n.depth)+r.height;var w=.8*h.xHeight-(p-n.depth);w>0&&(p+=w,d-=w)}a=sV({positionType:"individualShift",children:[{type:"elem",elem:r,shift:d,marginRight:b,marginLeft:v},{type:"elem",elem:n,shift:-p,marginRight:b}]})}else if(r)a=sV({positionType:"shift",positionData:d=Math.max(d,h.sub1,r.height-.8*h.xHeight),children:[{type:"elem",elem:r,marginLeft:v,marginRight:b}]});else if(n)a=sV({positionType:"shift",positionData:-(p=Math.max(p,i,n.depth+.25*h.xHeight)),children:[{type:"elem",elem:n,marginRight:b}]});else throw Error("supsub must have either sup or sub.");return sD([ll(u,"right")||"mord"],[u,sD(["msupsub"],[a])],t)},mathmlBuilder(e,t){var n,r,i=!1;e.base&&"horizBrace"===e.base.type&&!!e.sup===e.base.isOver&&(i=!0,n=e.base.isOver),e.base&&("op"===e.base.type||"operatorname"===e.base.type)&&(e.base.parentIsSupSub=!0);var a=[lA(e.base,t)];if(e.sub&&a.push(lA(e.sub,t)),e.sup&&a.push(lA(e.sup,t)),i)r=n?"mover":"munder";else if(e.sub)if(e.sup){var o=e.base;r=o&&"op"===o.type&&o.limits&&t.style===oM.DISPLAY||o&&"operatorname"===o.type&&o.alwaysHandleSupSub&&(t.style===oM.DISPLAY||o.limits)?"munderover":"msubsup"}else{var s=e.base;r=s&&"op"===s.type&&s.limits&&(t.style===oM.DISPLAY||s.alwaysHandleSupSub)||s&&"operatorname"===s.type&&s.alwaysHandleSupSub&&(s.limits||t.style===oM.DISPLAY)?"munder":"msub"}else{var l=e.base;r=l&&"op"===l.type&&l.limits&&(t.style===oM.DISPLAY||l.alwaysHandleSupSub)||l&&"operatorname"===l.type&&l.alwaysHandleSupSub&&(l.limits||t.style===oM.DISPLAY)?"mover":"msup"}return new ld(r,a)}}),s7({type:"atom",htmlBuilder:(e,t)=>sR(e.text,e.mode,t,["m"+e.family]),mathmlBuilder(e,t){var n=new ld("mo",[lb(e.text,e.mode)]);if("bin"===e.family){var r=lx(e,t);"bold-italic"===r&&n.setAttribute("mathvariant",r)}else"punct"===e.family?n.setAttribute("separator","true"):("open"===e.family||"close"===e.family)&&n.setAttribute("stretchy","false");return n}});var c2={mi:"italic",mn:"normal",mtext:"normal"};s7({type:"mathord",htmlBuilder:(e,t)=>sL(e,t,"mathord"),mathmlBuilder(e,t){var n=new ld("mi",[lb(e.text,e.mode,t)]),r=lx(e,t)||"italic";return r!==c2[n.type]&&n.setAttribute("mathvariant",r),n}}),s7({type:"textord",htmlBuilder:(e,t)=>sL(e,t,"textord"),mathmlBuilder(e,t){var n,r=lb(e.text,e.mode,t),i=lx(e,t)||"normal";return i!==c2[(n="text"===e.mode?new ld("mtext",[r]):/[0-9]/.test(e.text)?new ld("mn",[r]):"\\prime"===e.text?new ld("mo",[r]):new ld("mi",[r])).type]&&n.setAttribute("mathvariant",i),n}});var c7={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},c8={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};s7({type:"spacing",htmlBuilder(e,t){if(c8.hasOwnProperty(e.text)){var n=c8[e.text].className||"";if("text"!==e.mode)return sD(["mspace",n],[sR(e.text,e.mode,t)],t);var r=sL(e,t,"textord");return r.classes.push(n),r}if(c7.hasOwnProperty(e.text))return sD(["mspace",c7[e.text]],[],t);throw new oc('Unknown type of space "'+e.text+'"')},mathmlBuilder(e,t){var n;if(c8.hasOwnProperty(e.text))n=new ld("mtext",[new lm(" ")]);else if(c7.hasOwnProperty(e.text))return new ld("mspace");else throw new oc('Unknown type of space "'+e.text+'"');return n}});var c9=()=>{var e=new ld("mtd",[]);return e.setAttribute("width","50%"),e};s7({type:"tag",mathmlBuilder(e,t){var n=new ld("mtable",[new ld("mtr",[c9(),new ld("mtd",[lS(e.body,t)]),c9(),new ld("mtd",[lS(e.tag,t)])])]);return n.setAttribute("width","100%"),n}});var ue={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},ut={"\\textbf":"textbf","\\textmd":"textmd"},un={"\\textit":"textit","\\textup":"textup"},ur=(e,t)=>{var n=e.font;return n?ue[n]?t.withTextFontFamily(ue[n]):ut[n]?t.withTextFontWeight(ut[n]):"\\emph"===n?"textit"===t.fontShape?t.withTextFontShape("textup"):t.withTextFontShape("textit"):t.withTextFontShape(un[n]):t};s2({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup","\\emph"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];return{type:"text",mode:n.mode,body:s9(i),font:r}},htmlBuilder(e,t){var n=ur(e,t);return sD(["mord","text"],li(e.body,n,!0),n)},mathmlBuilder(e,t){var n=ur(e,t);return lS(e.body,n)}}),s2({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"underline",mode:n.mode,body:t[0]}},htmlBuilder(e,t){var n=lu(e.body,t),r=sq("underline-line",t),i=t.fontMetrics().defaultRuleThickness;return sD(["mord","underline"],[sV({positionType:"top",positionData:n.height,children:[{type:"kern",size:i},{type:"elem",elem:r},{type:"kern",size:3*i},{type:"elem",elem:n}]})],t)},mathmlBuilder(e,t){var n=new ld("mo",[new lm("‾")]);n.setAttribute("stretchy","true");var r=new ld("munder",[lA(e.body,t),n]);return r.setAttribute("accentunder","true"),r}}),s2({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(e,t){var{parser:n}=e;return{type:"vcenter",mode:n.mode,body:t[0]}},htmlBuilder(e,t){var n=lu(e.body,t),r=t.fontMetrics().axisHeight;return sV({positionType:"shift",positionData:.5*(n.height-r-(n.depth+r)),children:[{type:"elem",elem:n}]})},mathmlBuilder(e,t){var n=new ld("mpadded",[lA(e.body,t)],["vcenter"]);return new ld("mrow",[n])}}),s2({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(e,t,n){throw new oc("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(e,t){for(var n=ui(e),r=[],i=t.havingStyle(t.style.text()),a=0;a<n.length;a++){var o=n[a];"~"===o&&(o="\\textasciitilde"),r.push(sj(o,"Typewriter-Regular",e.mode,i,["mord","texttt"]))}return sD(["mord","text"].concat(i.sizingClasses(t)),sB(r),i)},mathmlBuilder(e,t){var n=new ld("mtext",[new lm(ui(e))]);return n.setAttribute("mathvariant","monospace"),n}});var ui=e=>e.body.replace(/ /g,e.star?"␣":" "),ua="[ \r\n ]",uo="[̀-ͯ]",us=RegExp(uo+"+$"),ul="("+ua+"+)|\\\\(\n|[ \r ]+\n?)[ \r ]*|([!-\\[\\]-‧-豈-]"+uo+"*|[\uD800-\uDBFF][\uDC00-\uDFFF]"+uo+"*|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5|(\\\\[a-zA-Z@]+)"+ua+"*|\\\\[^\uD800-\uDFFF])";class uc{setCatcode(e,t){this.catcodes[e]=t}lex(){var e=this.input,t=this.tokenRegex.lastIndex;if(t===e.length)return new cN("EOF",new cM(this,t,t));var n=this.tokenRegex.exec(e);if(null===n||n.index!==t)throw new oc("Unexpected character: '"+e[t]+"'",new cN(e[t],new cM(this,t,t+1)));var r=n[6]||n[3]||(n[2]?"\\ ":" ");if(14===this.catcodes[r]){var i=e.indexOf("\n",this.tokenRegex.lastIndex);return -1===i?(this.tokenRegex.lastIndex=e.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=i+1,this.lex()}return new cN(r,new cM(this,t,this.tokenRegex.lastIndex))}constructor(e,t){this.input=e,this.settings=t,this.tokenRegex=RegExp(ul,"g"),this.catcodes={"%":14,"~":13}}}class uu{beginGroup(){this.undefStack.push({})}endGroup(){if(0===this.undefStack.length)throw new oc("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var e=this.undefStack.pop();for(var t in e)e.hasOwnProperty(t)&&(null==e[t]?delete this.current[t]:this.current[t]=e[t])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(e){return this.current.hasOwnProperty(e)||this.builtins.hasOwnProperty(e)}get(e){return this.current.hasOwnProperty(e)?this.current[e]:this.builtins[e]}set(e,t,n){if(void 0===n&&(n=!1),n){for(var r=0;r<this.undefStack.length;r++)delete this.undefStack[r][e];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][e]=t)}else{var i=this.undefStack[this.undefStack.length-1];i&&!i.hasOwnProperty(e)&&(i[e]=this.current[e])}null==t?delete this.current[e]:this.current[e]=t}constructor(e,t){void 0===e&&(e={}),void 0===t&&(t={}),this.current=t,this.builtins=e,this.undefStack=[]}}c_["\\noexpand"]=function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}},c_["\\expandafter"]=function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}},c_["\\@firstoftwo"]=function(e){return{tokens:e.consumeArgs(2)[0],numArgs:0}},c_["\\@secondoftwo"]=function(e){return{tokens:e.consumeArgs(2)[1],numArgs:0}},c_["\\@ifnextchar"]=function(e){var t=e.consumeArgs(3);e.consumeSpaces();var n=e.future();return 1===t[0].length&&t[0][0].text===n.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}},c_["\\@ifstar"]="\\@ifnextchar *{\\@firstoftwo{#1}}",c_["\\TextOrMath"]=function(e){var t=e.consumeArgs(2);return"text"===e.mode?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}};var uh={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};c_["\\char"]=function(e){var t,n,r=e.popToken(),i=0;if("'"===r.text)t=8,r=e.popToken();else if('"'===r.text)t=16,r=e.popToken();else if("`"===r.text)if("\\"===(r=e.popToken()).text[0])i=r.text.charCodeAt(1);else if("EOF"===r.text)throw new oc("\\char` missing argument");else i=r.text.charCodeAt(0);else t=10;if(t){if(null==(i=uh[r.text])||i>=t)throw new oc("Invalid base-"+t+" digit "+r.text);for(;null!=(n=uh[e.future().text])&&n<t;)i*=t,i+=n,e.popToken()}return"\\@char{"+i+"}"};var up=(e,t,n,r)=>{var i=e.consumeArg().tokens;if(1!==i.length)throw new oc("\\newcommand's first argument must be a macro name");var a=i[0].text,o=e.isDefined(a);if(o&&!t)throw new oc("\\newcommand{"+a+"} attempting to redefine "+a+"; use \\renewcommand");if(!o&&!n)throw new oc("\\renewcommand{"+a+"} when command "+a+" does not yet exist; use \\newcommand");var s=0;if(1===(i=e.consumeArg().tokens).length&&"["===i[0].text){for(var l="",c=e.expandNextToken();"]"!==c.text&&"EOF"!==c.text;)l+=c.text,c=e.expandNextToken();if(!l.match(/^\s*[0-9]+\s*$/))throw new oc("Invalid number of arguments: "+l);s=parseInt(l),i=e.consumeArg().tokens}return o&&r||e.macros.set(a,{tokens:i,numArgs:s}),""};c_["\\newcommand"]=e=>up(e,!1,!0,!1),c_["\\renewcommand"]=e=>up(e,!0,!1,!1),c_["\\providecommand"]=e=>up(e,!0,!0,!0),c_["\\message"]=e=>(console.log(e.consumeArgs(1)[0].reverse().map(e=>e.text).join("")),""),c_["\\errmessage"]=e=>(console.error(e.consumeArgs(1)[0].reverse().map(e=>e.text).join("")),""),c_["\\show"]=e=>{var t=e.popToken(),n=t.text;return console.log(t,e.macros.get(n),s5[n],o8.math[n],o8.text[n]),""},c_["\\bgroup"]="{",c_["\\egroup"]="}",c_["~"]="\\nobreakspace",c_["\\lq"]="`",c_["\\rq"]="'",c_["\\aa"]="\\r a",c_["\\AA"]="\\r A",c_["\\textcopyright"]="\\html@mathml{\\textcircled{c}}{\\char`©}",c_["\\copyright"]="\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}",c_["\\textregistered"]="\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}",c_["ℬ"]="\\mathscr{B}",c_["ℰ"]="\\mathscr{E}",c_["ℱ"]="\\mathscr{F}",c_["ℋ"]="\\mathscr{H}",c_["ℐ"]="\\mathscr{I}",c_["ℒ"]="\\mathscr{L}",c_["ℳ"]="\\mathscr{M}",c_["ℛ"]="\\mathscr{R}",c_["ℭ"]="\\mathfrak{C}",c_["ℌ"]="\\mathfrak{H}",c_["ℨ"]="\\mathfrak{Z}",c_["\\Bbbk"]="\\Bbb{k}",c_["\\llap"]="\\mathllap{\\textrm{#1}}",c_["\\rlap"]="\\mathrlap{\\textrm{#1}}",c_["\\clap"]="\\mathclap{\\textrm{#1}}",c_["\\mathstrut"]="\\vphantom{(}",c_["\\underbar"]="\\underline{\\text{#1}}",c_["\\not"]='\\html@mathml{\\mathrel{\\mathrlap\\@not}\\nobreak}{\\char"338}',c_["\\neq"]="\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}",c_["\\ne"]="\\neq",c_["≠"]="\\neq",c_["\\notin"]="\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}",c_["∉"]="\\notin",c_["≘"]="\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}",c_["≙"]="\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}",c_["≚"]="\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}",c_["≛"]="\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}",c_["≝"]="\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}",c_["≞"]="\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}",c_["≟"]="\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}",c_["⟂"]="\\perp",c_["‼"]="\\mathclose{!\\mkern-0.8mu!}",c_["∌"]="\\notni",c_["⌜"]="\\ulcorner",c_["⌝"]="\\urcorner",c_["⌞"]="\\llcorner",c_["⌟"]="\\lrcorner",c_["©"]="\\copyright",c_["®"]="\\textregistered",c_["\\ulcorner"]='\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}',c_["\\urcorner"]='\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}',c_["\\llcorner"]='\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}',c_["\\lrcorner"]='\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}',c_["\\vdots"]="{\\varvdots\\rule{0pt}{15pt}}",c_["⋮"]="\\vdots",c_["\\varGamma"]="\\mathit{\\Gamma}",c_["\\varDelta"]="\\mathit{\\Delta}",c_["\\varTheta"]="\\mathit{\\Theta}",c_["\\varLambda"]="\\mathit{\\Lambda}",c_["\\varXi"]="\\mathit{\\Xi}",c_["\\varPi"]="\\mathit{\\Pi}",c_["\\varSigma"]="\\mathit{\\Sigma}",c_["\\varUpsilon"]="\\mathit{\\Upsilon}",c_["\\varPhi"]="\\mathit{\\Phi}",c_["\\varPsi"]="\\mathit{\\Psi}",c_["\\varOmega"]="\\mathit{\\Omega}",c_["\\substack"]="\\begin{subarray}{c}#1\\end{subarray}",c_["\\colon"]="\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax",c_["\\boxed"]="\\fbox{$\\displaystyle{#1}$}",c_["\\iff"]="\\DOTSB\\;\\Longleftrightarrow\\;",c_["\\implies"]="\\DOTSB\\;\\Longrightarrow\\;",c_["\\impliedby"]="\\DOTSB\\;\\Longleftarrow\\;",c_["\\dddot"]="{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}",c_["\\ddddot"]="{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}";var ud={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"},um=new Set(["bin","rel"]);c_["\\dots"]=function(e){var t="\\dotso",n=e.expandAfterFuture().text;return n in ud?t=ud[n]:"\\not"===n.slice(0,4)?t="\\dotsb":n in o8.math&&um.has(o8.math[n].group)&&(t="\\dotsb"),t};var uf={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};c_["\\dotso"]=function(e){return e.future().text in uf?"\\ldots\\,":"\\ldots"},c_["\\dotsc"]=function(e){var t=e.future().text;return t in uf&&","!==t?"\\ldots\\,":"\\ldots"},c_["\\cdots"]=function(e){return e.future().text in uf?"\\@cdots\\,":"\\@cdots"},c_["\\dotsb"]="\\cdots",c_["\\dotsm"]="\\cdots",c_["\\dotsi"]="\\!\\cdots",c_["\\dotsx"]="\\ldots\\,",c_["\\DOTSI"]="\\relax",c_["\\DOTSB"]="\\relax",c_["\\DOTSX"]="\\relax",c_["\\tmspace"]="\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax",c_["\\,"]="\\tmspace+{3mu}{.1667em}",c_["\\thinspace"]="\\,",c_["\\>"]="\\mskip{4mu}",c_["\\:"]="\\tmspace+{4mu}{.2222em}",c_["\\medspace"]="\\:",c_["\\;"]="\\tmspace+{5mu}{.2777em}",c_["\\thickspace"]="\\;",c_["\\!"]="\\tmspace-{3mu}{.1667em}",c_["\\negthinspace"]="\\!",c_["\\negmedspace"]="\\tmspace-{4mu}{.2222em}",c_["\\negthickspace"]="\\tmspace-{5mu}{.277em}",c_["\\enspace"]="\\kern.5em ",c_["\\enskip"]="\\hskip.5em\\relax",c_["\\quad"]="\\hskip1em\\relax",c_["\\qquad"]="\\hskip2em\\relax",c_["\\tag"]="\\@ifstar\\tag@literal\\tag@paren",c_["\\tag@paren"]="\\tag@literal{({#1})}",c_["\\tag@literal"]=e=>{if(e.macros.get("\\df@tag"))throw new oc("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"},c_["\\bmod"]="\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}",c_["\\pod"]="\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)",c_["\\pmod"]="\\pod{{\\rm mod}\\mkern6mu#1}",c_["\\mod"]="\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1",c_["\\newline"]="\\\\\\relax",c_["\\TeX"]="\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}";var ug=oq(o1["Main-Regular"][84][1]-.7*o1["Main-Regular"][65][1]);c_["\\LaTeX"]="\\textrm{\\html@mathml{L\\kern-.36em\\raisebox{"+ug+"}{\\scriptstyle A}\\kern-.15em\\TeX}{LaTeX}}",c_["\\KaTeX"]="\\textrm{\\html@mathml{K\\kern-.17em\\raisebox{"+ug+"}{\\scriptstyle A}\\kern-.15em\\TeX}{KaTeX}}",c_["\\hspace"]="\\@ifstar\\@hspacer\\@hspace",c_["\\@hspace"]="\\hskip #1\\relax",c_["\\@hspacer"]="\\rule{0pt}{0pt}\\hskip #1\\relax",c_["\\ordinarycolon"]=":",c_["\\vcentcolon"]="\\mathrel{\\mathop\\ordinarycolon}",c_["\\dblcolon"]='\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}',c_["\\coloneqq"]='\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}',c_["\\Coloneqq"]='\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}',c_["\\coloneq"]='\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}',c_["\\Coloneq"]='\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}',c_["\\eqqcolon"]='\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}',c_["\\Eqqcolon"]='\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}',c_["\\eqcolon"]='\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}',c_["\\Eqcolon"]='\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}',c_["\\colonapprox"]='\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}',c_["\\Colonapprox"]='\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}',c_["\\colonsim"]='\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}',c_["\\Colonsim"]='\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}',c_["∷"]="\\dblcolon",c_["∹"]="\\eqcolon",c_["≔"]="\\coloneqq",c_["≕"]="\\eqqcolon",c_["⩴"]="\\Coloneqq",c_["\\ratio"]="\\vcentcolon",c_["\\coloncolon"]="\\dblcolon",c_["\\colonequals"]="\\coloneqq",c_["\\coloncolonequals"]="\\Coloneqq",c_["\\equalscolon"]="\\eqqcolon",c_["\\equalscoloncolon"]="\\Eqqcolon",c_["\\colonminus"]="\\coloneq",c_["\\coloncolonminus"]="\\Coloneq",c_["\\minuscolon"]="\\eqcolon",c_["\\minuscoloncolon"]="\\Eqcolon",c_["\\coloncolonapprox"]="\\Colonapprox",c_["\\coloncolonsim"]="\\Colonsim",c_["\\simcolon"]="\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}",c_["\\simcoloncolon"]="\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}",c_["\\approxcolon"]="\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}",c_["\\approxcoloncolon"]="\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}",c_["\\notni"]="\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}",c_["\\limsup"]="\\DOTSB\\operatorname*{lim\\,sup}",c_["\\liminf"]="\\DOTSB\\operatorname*{lim\\,inf}",c_["\\injlim"]="\\DOTSB\\operatorname*{inj\\,lim}",c_["\\projlim"]="\\DOTSB\\operatorname*{proj\\,lim}",c_["\\varlimsup"]="\\DOTSB\\operatorname*{\\overline{lim}}",c_["\\varliminf"]="\\DOTSB\\operatorname*{\\underline{lim}}",c_["\\varinjlim"]="\\DOTSB\\operatorname*{\\underrightarrow{lim}}",c_["\\varprojlim"]="\\DOTSB\\operatorname*{\\underleftarrow{lim}}",c_["\\gvertneqq"]="\\html@mathml{\\@gvertneqq}{≩}",c_["\\lvertneqq"]="\\html@mathml{\\@lvertneqq}{≨}",c_["\\ngeqq"]="\\html@mathml{\\@ngeqq}{≱}",c_["\\ngeqslant"]="\\html@mathml{\\@ngeqslant}{≱}",c_["\\nleqq"]="\\html@mathml{\\@nleqq}{≰}",c_["\\nleqslant"]="\\html@mathml{\\@nleqslant}{≰}",c_["\\nshortmid"]="\\html@mathml{\\@nshortmid}{∤}",c_["\\nshortparallel"]="\\html@mathml{\\@nshortparallel}{∦}",c_["\\nsubseteqq"]="\\html@mathml{\\@nsubseteqq}{⊈}",c_["\\nsupseteqq"]="\\html@mathml{\\@nsupseteqq}{⊉}",c_["\\varsubsetneq"]="\\html@mathml{\\@varsubsetneq}{⊊}",c_["\\varsubsetneqq"]="\\html@mathml{\\@varsubsetneqq}{⫋}",c_["\\varsupsetneq"]="\\html@mathml{\\@varsupsetneq}{⊋}",c_["\\varsupsetneqq"]="\\html@mathml{\\@varsupsetneqq}{⫌}",c_["\\imath"]="\\html@mathml{\\@imath}{ı}",c_["\\jmath"]="\\html@mathml{\\@jmath}{ȷ}",c_["\\llbracket"]="\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}",c_["\\rrbracket"]="\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}",c_["⟦"]="\\llbracket",c_["⟧"]="\\rrbracket",c_["\\lBrace"]="\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}",c_["\\rBrace"]="\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}",c_["⦃"]="\\lBrace",c_["⦄"]="\\rBrace",c_["\\minuso"]="\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}",c_["⦵"]="\\minuso",c_["\\darr"]="\\downarrow",c_["\\dArr"]="\\Downarrow",c_["\\Darr"]="\\Downarrow",c_["\\lang"]="\\langle",c_["\\rang"]="\\rangle",c_["\\uarr"]="\\uparrow",c_["\\uArr"]="\\Uparrow",c_["\\Uarr"]="\\Uparrow",c_["\\N"]="\\mathbb{N}",c_["\\R"]="\\mathbb{R}",c_["\\Z"]="\\mathbb{Z}",c_["\\alef"]="\\aleph",c_["\\alefsym"]="\\aleph",c_["\\Alpha"]="\\mathrm{A}",c_["\\Beta"]="\\mathrm{B}",c_["\\bull"]="\\bullet",c_["\\Chi"]="\\mathrm{X}",c_["\\clubs"]="\\clubsuit",c_["\\cnums"]="\\mathbb{C}",c_["\\Complex"]="\\mathbb{C}",c_["\\Dagger"]="\\ddagger",c_["\\diamonds"]="\\diamondsuit",c_["\\empty"]="\\emptyset",c_["\\Epsilon"]="\\mathrm{E}",c_["\\Eta"]="\\mathrm{H}",c_["\\exist"]="\\exists",c_["\\harr"]="\\leftrightarrow",c_["\\hArr"]="\\Leftrightarrow",c_["\\Harr"]="\\Leftrightarrow",c_["\\hearts"]="\\heartsuit",c_["\\image"]="\\Im",c_["\\infin"]="\\infty",c_["\\Iota"]="\\mathrm{I}",c_["\\isin"]="\\in",c_["\\Kappa"]="\\mathrm{K}",c_["\\larr"]="\\leftarrow",c_["\\lArr"]="\\Leftarrow",c_["\\Larr"]="\\Leftarrow",c_["\\lrarr"]="\\leftrightarrow",c_["\\lrArr"]="\\Leftrightarrow",c_["\\Lrarr"]="\\Leftrightarrow",c_["\\Mu"]="\\mathrm{M}",c_["\\natnums"]="\\mathbb{N}",c_["\\Nu"]="\\mathrm{N}",c_["\\Omicron"]="\\mathrm{O}",c_["\\plusmn"]="\\pm",c_["\\rarr"]="\\rightarrow",c_["\\rArr"]="\\Rightarrow",c_["\\Rarr"]="\\Rightarrow",c_["\\real"]="\\Re",c_["\\reals"]="\\mathbb{R}",c_["\\Reals"]="\\mathbb{R}",c_["\\Rho"]="\\mathrm{P}",c_["\\sdot"]="\\cdot",c_["\\sect"]="\\S",c_["\\spades"]="\\spadesuit",c_["\\sub"]="\\subset",c_["\\sube"]="\\subseteq",c_["\\supe"]="\\supseteq",c_["\\Tau"]="\\mathrm{T}",c_["\\thetasym"]="\\vartheta",c_["\\weierp"]="\\wp",c_["\\Zeta"]="\\mathrm{Z}",c_["\\argmin"]="\\DOTSB\\operatorname*{arg\\,min}",c_["\\argmax"]="\\DOTSB\\operatorname*{arg\\,max}",c_["\\plim"]="\\DOTSB\\mathop{\\operatorname{plim}}\\limits",c_["\\bra"]="\\mathinner{\\langle{#1}|}",c_["\\ket"]="\\mathinner{|{#1}\\rangle}",c_["\\braket"]="\\mathinner{\\langle{#1}\\rangle}",c_["\\Bra"]="\\left\\langle#1\\right|",c_["\\Ket"]="\\left|#1\\right\\rangle";var uy=e=>t=>{var n=t.consumeArg().tokens,r=t.consumeArg().tokens,i=t.consumeArg().tokens,a=t.consumeArg().tokens,o=t.macros.get("|"),s=t.macros.get("\\|");t.macros.beginGroup();var l=t=>n=>{e&&(n.macros.set("|",o),i.length&&n.macros.set("\\|",s));var a=t;return!t&&i.length&&"|"===n.future().text&&(n.popToken(),a=!0),{tokens:a?i:r,numArgs:0}};t.macros.set("|",l(!1)),i.length&&t.macros.set("\\|",l(!0));var c=t.consumeArg().tokens,u=t.expandTokens([...a,...c,...n]);return t.macros.endGroup(),{tokens:u.reverse(),numArgs:0}};i=uy(!1),c_["\\bra@ket"]=i,a=uy(!0),c_["\\bra@set"]=a,c_["\\Braket"]="\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}",c_["\\Set"]="\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}",c_["\\set"]="\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}",c_["\\angln"]="{\\angl n}",c_["\\blue"]="\\textcolor{##6495ed}{#1}",c_["\\orange"]="\\textcolor{##ffa500}{#1}",c_["\\pink"]="\\textcolor{##ff00af}{#1}",c_["\\red"]="\\textcolor{##df0030}{#1}",c_["\\green"]="\\textcolor{##28ae7b}{#1}",c_["\\gray"]="\\textcolor{gray}{#1}",c_["\\purple"]="\\textcolor{##9d38bd}{#1}",c_["\\blueA"]="\\textcolor{##ccfaff}{#1}",c_["\\blueB"]="\\textcolor{##80f6ff}{#1}",c_["\\blueC"]="\\textcolor{##63d9ea}{#1}",c_["\\blueD"]="\\textcolor{##11accd}{#1}",c_["\\blueE"]="\\textcolor{##0c7f99}{#1}",c_["\\tealA"]="\\textcolor{##94fff5}{#1}",c_["\\tealB"]="\\textcolor{##26edd5}{#1}",c_["\\tealC"]="\\textcolor{##01d1c1}{#1}",c_["\\tealD"]="\\textcolor{##01a995}{#1}",c_["\\tealE"]="\\textcolor{##208170}{#1}",c_["\\greenA"]="\\textcolor{##b6ffb0}{#1}",c_["\\greenB"]="\\textcolor{##8af281}{#1}",c_["\\greenC"]="\\textcolor{##74cf70}{#1}",c_["\\greenD"]="\\textcolor{##1fab54}{#1}",c_["\\greenE"]="\\textcolor{##0d923f}{#1}",c_["\\goldA"]="\\textcolor{##ffd0a9}{#1}",c_["\\goldB"]="\\textcolor{##ffbb71}{#1}",c_["\\goldC"]="\\textcolor{##ff9c39}{#1}",c_["\\goldD"]="\\textcolor{##e07d10}{#1}",c_["\\goldE"]="\\textcolor{##a75a05}{#1}",c_["\\redA"]="\\textcolor{##fca9a9}{#1}",c_["\\redB"]="\\textcolor{##ff8482}{#1}",c_["\\redC"]="\\textcolor{##f9685d}{#1}",c_["\\redD"]="\\textcolor{##e84d39}{#1}",c_["\\redE"]="\\textcolor{##bc2612}{#1}",c_["\\maroonA"]="\\textcolor{##ffbde0}{#1}",c_["\\maroonB"]="\\textcolor{##ff92c6}{#1}",c_["\\maroonC"]="\\textcolor{##ed5fa6}{#1}",c_["\\maroonD"]="\\textcolor{##ca337c}{#1}",c_["\\maroonE"]="\\textcolor{##9e034e}{#1}",c_["\\purpleA"]="\\textcolor{##ddd7ff}{#1}",c_["\\purpleB"]="\\textcolor{##c6b9fc}{#1}",c_["\\purpleC"]="\\textcolor{##aa87ff}{#1}",c_["\\purpleD"]="\\textcolor{##7854ab}{#1}",c_["\\purpleE"]="\\textcolor{##543b78}{#1}",c_["\\mintA"]="\\textcolor{##f5f9e8}{#1}",c_["\\mintB"]="\\textcolor{##edf2df}{#1}",c_["\\mintC"]="\\textcolor{##e0e5cc}{#1}",c_["\\grayA"]="\\textcolor{##f6f7f7}{#1}",c_["\\grayB"]="\\textcolor{##f0f1f2}{#1}",c_["\\grayC"]="\\textcolor{##e3e5e6}{#1}",c_["\\grayD"]="\\textcolor{##d6d8da}{#1}",c_["\\grayE"]="\\textcolor{##babec2}{#1}",c_["\\grayF"]="\\textcolor{##888d93}{#1}",c_["\\grayG"]="\\textcolor{##626569}{#1}",c_["\\grayH"]="\\textcolor{##3b3e40}{#1}",c_["\\grayI"]="\\textcolor{##21242c}{#1}",c_["\\kaBlue"]="\\textcolor{##314453}{#1}",c_["\\kaGreen"]="\\textcolor{##71B307}{#1}";var ub={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class uv{feed(e){this.lexer=new uc(e,this.settings)}switchMode(e){this.mode=e}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return 0===this.stack.length&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(e){this.stack.push(e)}pushTokens(e){this.stack.push(...e)}scanArgument(e){var t,n,r;if(e){if(this.consumeSpaces(),"["!==this.future().text)return null;t=this.popToken(),{tokens:r,end:n}=this.consumeArg(["]"])}else({tokens:r,start:t,end:n}=this.consumeArg());return this.pushToken(new cN("EOF",n.loc)),this.pushTokens(r),new cN("",cM.range(t,n))}consumeSpaces(){for(;;)if(" "===this.future().text)this.stack.pop();else break}consumeArg(e){var t,n=[],r=e&&e.length>0;r||this.consumeSpaces();var i=this.future(),a=0,o=0;do{if(t=this.popToken(),n.push(t),"{"===t.text)++a;else if("}"===t.text){if(-1==--a)throw new oc("Extra }",t)}else if("EOF"===t.text)throw new oc("Unexpected end of input in a macro argument, expected '"+(e&&r?e[o]:"}")+"'",t);if(e&&r)if((0===a||1===a&&"{"===e[o])&&t.text===e[o]){if(++o===e.length){n.splice(-o,o);break}}else o=0}while(0!==a||r)return"{"===i.text&&"}"===n[n.length-1].text&&(n.pop(),n.shift()),n.reverse(),{tokens:n,start:i,end:t}}consumeArgs(e,t){if(t){if(t.length!==e+1)throw new oc("The length of delimiters doesn't match the number of args!");for(var n=t[0],r=0;r<n.length;r++){var i=this.popToken();if(n[r]!==i.text)throw new oc("Use of the macro doesn't match its definition",i)}}for(var a=[],o=0;o<e;o++)a.push(this.consumeArg(t&&t[o+1]).tokens);return a}countExpansion(e){if(this.expansionCount+=e,this.expansionCount>this.settings.maxExpand)throw new oc("Too many expansions: infinite loop or need to increase maxExpand setting")}expandOnce(e){var t=this.popToken(),n=t.text,r=t.noexpand?null:this._getExpansion(n);if(null==r||e&&r.unexpandable){if(e&&null==r&&"\\"===n[0]&&!this.isDefined(n))throw new oc("Undefined control sequence: "+n);return this.pushToken(t),!1}this.countExpansion(1);var i=r.tokens,a=this.consumeArgs(r.numArgs,r.delimiters);if(r.numArgs){i=i.slice();for(var o=i.length-1;o>=0;--o){var s=i[o];if("#"===s.text){if(0===o)throw new oc("Incomplete placeholder at end of macro body",s);if("#"===(s=i[--o]).text)i.splice(o+1,1);else if(/^[1-9]$/.test(s.text))i.splice(o,2,...a[s.text-1]);else throw new oc("Not a valid argument number",s)}}}return this.pushTokens(i),i.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(!1===this.expandOnce()){var e=this.stack.pop();return e.treatAsRelax&&(e.text="\\relax"),e}}expandMacro(e){return this.macros.has(e)?this.expandTokens([new cN(e)]):void 0}expandTokens(e){var t=[],n=this.stack.length;for(this.pushTokens(e);this.stack.length>n;)if(!1===this.expandOnce(!0)){var r=this.stack.pop();r.treatAsRelax&&(r.noexpand=!1,r.treatAsRelax=!1),t.push(r)}return this.countExpansion(t.length),t}expandMacroAsText(e){var t=this.expandMacro(e);return t?t.map(e=>e.text).join(""):t}_getExpansion(e){var t=this.macros.get(e);if(null==t)return t;if(1===e.length){var n=this.lexer.catcodes[e];if(null!=n&&13!==n)return}var r="function"==typeof t?t(this):t;if("string"==typeof r){var i=0;if(r.includes("#"))for(var a=r.replace(/##/g,"");a.includes("#"+(i+1));)++i;for(var o=new uc(r,this.settings),s=[],l=o.lex();"EOF"!==l.text;)s.push(l),l=o.lex();return s.reverse(),{tokens:s,numArgs:i}}return r}isDefined(e){return this.macros.has(e)||s5.hasOwnProperty(e)||o8.math.hasOwnProperty(e)||o8.text.hasOwnProperty(e)||ub.hasOwnProperty(e)}isExpandable(e){var t=this.macros.get(e);return null!=t?"string"==typeof t||"function"==typeof t||!t.unexpandable:s5.hasOwnProperty(e)&&!s5[e].primitive}constructor(e,t,n){this.settings=t,this.expansionCount=0,this.feed(e),this.macros=new uu(c_,t.macros),this.mode=n,this.stack=[]}}var ux=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,uk=Object.freeze({"₊":"+","₋":"-","₌":"=","₍":"(","₎":")","₀":"0","₁":"1","₂":"2","₃":"3","₄":"4","₅":"5","₆":"6","₇":"7","₈":"8","₉":"9",ₐ:"a",ₑ:"e",ₕ:"h",ᵢ:"i",ⱼ:"j",ₖ:"k",ₗ:"l",ₘ:"m",ₙ:"n",ₒ:"o",ₚ:"p",ᵣ:"r",ₛ:"s",ₜ:"t",ᵤ:"u",ᵥ:"v",ₓ:"x",ᵦ:"β",ᵧ:"γ",ᵨ:"ρ",ᵩ:"ϕ",ᵪ:"χ","⁺":"+","⁻":"-","⁼":"=","⁽":"(","⁾":")","⁰":"0","¹":"1","²":"2","³":"3","⁴":"4","⁵":"5","⁶":"6","⁷":"7","⁸":"8","⁹":"9",ᴬ:"A",ᴮ:"B",ᴰ:"D",ᴱ:"E",ᴳ:"G",ᴴ:"H",ᴵ:"I",ᴶ:"J",ᴷ:"K",ᴸ:"L",ᴹ:"M",ᴺ:"N",ᴼ:"O",ᴾ:"P",ᴿ:"R",ᵀ:"T",ᵁ:"U",ⱽ:"V",ᵂ:"W",ᵃ:"a",ᵇ:"b",ᶜ:"c",ᵈ:"d",ᵉ:"e",ᶠ:"f",ᵍ:"g",ʰ:"h",ⁱ:"i",ʲ:"j",ᵏ:"k",ˡ:"l",ᵐ:"m",ⁿ:"n",ᵒ:"o",ᵖ:"p",ʳ:"r",ˢ:"s",ᵗ:"t",ᵘ:"u",ᵛ:"v",ʷ:"w",ˣ:"x",ʸ:"y",ᶻ:"z",ᵝ:"β",ᵞ:"γ",ᵟ:"δ",ᵠ:"ϕ",ᵡ:"χ",ᶿ:"θ"}),uw={"́":{text:"\\'",math:"\\acute"},"̀":{text:"\\`",math:"\\grave"},"̈":{text:'\\"',math:"\\ddot"},"̃":{text:"\\~",math:"\\tilde"},"̄":{text:"\\=",math:"\\bar"},"̆":{text:"\\u",math:"\\breve"},"̌":{text:"\\v",math:"\\check"},"̂":{text:"\\^",math:"\\hat"},"̇":{text:"\\.",math:"\\dot"},"̊":{text:"\\r",math:"\\mathring"},"̋":{text:"\\H"},"̧":{text:"\\c"}},uS={á:"á",à:"à",ä:"ä",ǟ:"ǟ",ã:"ã",ā:"ā",ă:"ă",ắ:"ắ",ằ:"ằ",ẵ:"ẵ",ǎ:"ǎ",â:"â",ấ:"ấ",ầ:"ầ",ẫ:"ẫ",ȧ:"ȧ",ǡ:"ǡ",å:"å",ǻ:"ǻ",ḃ:"ḃ",ć:"ć",ḉ:"ḉ",č:"č",ĉ:"ĉ",ċ:"ċ",ç:"ç",ď:"ď",ḋ:"ḋ",ḑ:"ḑ",é:"é",è:"è",ë:"ë",ẽ:"ẽ",ē:"ē",ḗ:"ḗ",ḕ:"ḕ",ĕ:"ĕ",ḝ:"ḝ",ě:"ě",ê:"ê",ế:"ế",ề:"ề",ễ:"ễ",ė:"ė",ȩ:"ȩ",ḟ:"ḟ",ǵ:"ǵ",ḡ:"ḡ",ğ:"ğ",ǧ:"ǧ",ĝ:"ĝ",ġ:"ġ",ģ:"ģ",ḧ:"ḧ",ȟ:"ȟ",ĥ:"ĥ",ḣ:"ḣ",ḩ:"ḩ",í:"í",ì:"ì",ï:"ï",ḯ:"ḯ",ĩ:"ĩ",ī:"ī",ĭ:"ĭ",ǐ:"ǐ",î:"î",ǰ:"ǰ",ĵ:"ĵ",ḱ:"ḱ",ǩ:"ǩ",ķ:"ķ",ĺ:"ĺ",ľ:"ľ",ļ:"ļ",ḿ:"ḿ",ṁ:"ṁ",ń:"ń",ǹ:"ǹ",ñ:"ñ",ň:"ň",ṅ:"ṅ",ņ:"ņ",ó:"ó",ò:"ò",ö:"ö",ȫ:"ȫ",õ:"õ",ṍ:"ṍ",ṏ:"ṏ",ȭ:"ȭ",ō:"ō",ṓ:"ṓ",ṑ:"ṑ",ŏ:"ŏ",ǒ:"ǒ",ô:"ô",ố:"ố",ồ:"ồ",ỗ:"ỗ",ȯ:"ȯ",ȱ:"ȱ",ő:"ő",ṕ:"ṕ",ṗ:"ṗ",ŕ:"ŕ",ř:"ř",ṙ:"ṙ",ŗ:"ŗ",ś:"ś",ṥ:"ṥ",š:"š",ṧ:"ṧ",ŝ:"ŝ",ṡ:"ṡ",ş:"ş",ẗ:"ẗ",ť:"ť",ṫ:"ṫ",ţ:"ţ",ú:"ú",ù:"ù",ü:"ü",ǘ:"ǘ",ǜ:"ǜ",ǖ:"ǖ",ǚ:"ǚ",ũ:"ũ",ṹ:"ṹ",ū:"ū",ṻ:"ṻ",ŭ:"ŭ",ǔ:"ǔ",û:"û",ů:"ů",ű:"ű",ṽ:"ṽ",ẃ:"ẃ",ẁ:"ẁ",ẅ:"ẅ",ŵ:"ŵ",ẇ:"ẇ",ẘ:"ẘ",ẍ:"ẍ",ẋ:"ẋ",ý:"ý",ỳ:"ỳ",ÿ:"ÿ",ỹ:"ỹ",ȳ:"ȳ",ŷ:"ŷ",ẏ:"ẏ",ẙ:"ẙ",ź:"ź",ž:"ž",ẑ:"ẑ",ż:"ż",Á:"Á",À:"À",Ä:"Ä",Ǟ:"Ǟ",Ã:"Ã",Ā:"Ā",Ă:"Ă",Ắ:"Ắ",Ằ:"Ằ",Ẵ:"Ẵ",Ǎ:"Ǎ",Â:"Â",Ấ:"Ấ",Ầ:"Ầ",Ẫ:"Ẫ",Ȧ:"Ȧ",Ǡ:"Ǡ",Å:"Å",Ǻ:"Ǻ",Ḃ:"Ḃ",Ć:"Ć",Ḉ:"Ḉ",Č:"Č",Ĉ:"Ĉ",Ċ:"Ċ",Ç:"Ç",Ď:"Ď",Ḋ:"Ḋ",Ḑ:"Ḑ",É:"É",È:"È",Ë:"Ë",Ẽ:"Ẽ",Ē:"Ē",Ḗ:"Ḗ",Ḕ:"Ḕ",Ĕ:"Ĕ",Ḝ:"Ḝ",Ě:"Ě",Ê:"Ê",Ế:"Ế",Ề:"Ề",Ễ:"Ễ",Ė:"Ė",Ȩ:"Ȩ",Ḟ:"Ḟ",Ǵ:"Ǵ",Ḡ:"Ḡ",Ğ:"Ğ",Ǧ:"Ǧ",Ĝ:"Ĝ",Ġ:"Ġ",Ģ:"Ģ",Ḧ:"Ḧ",Ȟ:"Ȟ",Ĥ:"Ĥ",Ḣ:"Ḣ",Ḩ:"Ḩ",Í:"Í",Ì:"Ì",Ï:"Ï",Ḯ:"Ḯ",Ĩ:"Ĩ",Ī:"Ī",Ĭ:"Ĭ",Ǐ:"Ǐ",Î:"Î",İ:"İ",Ĵ:"Ĵ",Ḱ:"Ḱ",Ǩ:"Ǩ",Ķ:"Ķ",Ĺ:"Ĺ",Ľ:"Ľ",Ļ:"Ļ",Ḿ:"Ḿ",Ṁ:"Ṁ",Ń:"Ń",Ǹ:"Ǹ",Ñ:"Ñ",Ň:"Ň",Ṅ:"Ṅ",Ņ:"Ņ",Ó:"Ó",Ò:"Ò",Ö:"Ö",Ȫ:"Ȫ",Õ:"Õ",Ṍ:"Ṍ",Ṏ:"Ṏ",Ȭ:"Ȭ",Ō:"Ō",Ṓ:"Ṓ",Ṑ:"Ṑ",Ŏ:"Ŏ",Ǒ:"Ǒ",Ô:"Ô",Ố:"Ố",Ồ:"Ồ",Ỗ:"Ỗ",Ȯ:"Ȯ",Ȱ:"Ȱ",Ő:"Ő",Ṕ:"Ṕ",Ṗ:"Ṗ",Ŕ:"Ŕ",Ř:"Ř",Ṙ:"Ṙ",Ŗ:"Ŗ",Ś:"Ś",Ṥ:"Ṥ",Š:"Š",Ṧ:"Ṧ",Ŝ:"Ŝ",Ṡ:"Ṡ",Ş:"Ş",Ť:"Ť",Ṫ:"Ṫ",Ţ:"Ţ",Ú:"Ú",Ù:"Ù",Ü:"Ü",Ǘ:"Ǘ",Ǜ:"Ǜ",Ǖ:"Ǖ",Ǚ:"Ǚ",Ũ:"Ũ",Ṹ:"Ṹ",Ū:"Ū",Ṻ:"Ṻ",Ŭ:"Ŭ",Ǔ:"Ǔ",Û:"Û",Ů:"Ů",Ű:"Ű",Ṽ:"Ṽ",Ẃ:"Ẃ",Ẁ:"Ẁ",Ẅ:"Ẅ",Ŵ:"Ŵ",Ẇ:"Ẇ",Ẍ:"Ẍ",Ẋ:"Ẋ",Ý:"Ý",Ỳ:"Ỳ",Ÿ:"Ÿ",Ỹ:"Ỹ",Ȳ:"Ȳ",Ŷ:"Ŷ",Ẏ:"Ẏ",Ź:"Ź",Ž:"Ž",Ẑ:"Ẑ",Ż:"Ż",ά:"ά",ὰ:"ὰ",ᾱ:"ᾱ",ᾰ:"ᾰ",έ:"έ",ὲ:"ὲ",ή:"ή",ὴ:"ὴ",ί:"ί",ὶ:"ὶ",ϊ:"ϊ",ΐ:"ΐ",ῒ:"ῒ",ῑ:"ῑ",ῐ:"ῐ",ό:"ό",ὸ:"ὸ",ύ:"ύ",ὺ:"ὺ",ϋ:"ϋ",ΰ:"ΰ",ῢ:"ῢ",ῡ:"ῡ",ῠ:"ῠ",ώ:"ώ",ὼ:"ὼ",Ύ:"Ύ",Ὺ:"Ὺ",Ϋ:"Ϋ",Ῡ:"Ῡ",Ῠ:"Ῠ",Ώ:"Ώ",Ὼ:"Ὼ"};class uA{expect(e,t){if(void 0===t&&(t=!0),this.fetch().text!==e)throw new oc("Expected '"+e+"', got '"+this.fetch().text+"'",this.fetch());t&&this.consume()}consume(){this.nextToken=null}fetch(){return null==this.nextToken&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken}switchMode(e){this.mode=e,this.gullet.switchMode(e)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var e=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),e}finally{this.gullet.endGroups()}}subparse(e){var t=this.nextToken;this.consume(),this.gullet.pushToken(new cN("}")),this.gullet.pushTokens(e);var n=this.parseExpression(!1);return this.expect("}"),this.nextToken=t,n}parseExpression(e,t){for(var n=[];;){"math"===this.mode&&this.consumeSpaces();var r=this.fetch();if(uA.endOfExpression.has(r.text)||t&&r.text===t||e&&s5[r.text]&&s5[r.text].infix)break;var i=this.parseAtom(t);if(i){if("internal"===i.type)continue}else break;n.push(i)}return"text"===this.mode&&this.formLigatures(n),this.handleInfixNodes(n)}handleInfixNodes(e){for(var t=-1,n=0;n<e.length;n++){var r=e[n];if("infix"===r.type){if(-1!==t)throw new oc("only one infix operator per group",r.token);t=n,i=r.replaceWith}}if(-1===t||!i)return e;var i,a,o,s=e.slice(0,t),l=e.slice(t+1);return a=1===s.length&&"ordgroup"===s[0].type?s[0]:{type:"ordgroup",mode:this.mode,body:s},o=1===l.length&&"ordgroup"===l[0].type?l[0]:{type:"ordgroup",mode:this.mode,body:l},["\\\\abovefrac"===i?this.callFunction(i,[a,e[t],o],[]):this.callFunction(i,[a,o],[])]}handleSupSubscript(e){var t,n=this.fetch(),r=n.text;this.consume(),this.consumeSpaces();do t=this.parseGroup(e);while((null==t?void 0:t.type)==="internal")if(!t)throw new oc("Expected group after '"+r+"'",n);return t}formatUnsupportedCmd(e){for(var t=[],n=0;n<e.length;n++)t.push({type:"textord",mode:"text",text:e[n]});var r={type:"text",mode:this.mode,body:t};return{type:"color",mode:this.mode,color:this.settings.errorColor,body:[r]}}parseAtom(e){var t,n,r=this.parseGroup("atom",e);if((null==r?void 0:r.type)==="internal"||"text"===this.mode)return r;for(;;){this.consumeSpaces();var i=this.fetch();if("\\limits"===i.text||"\\nolimits"===i.text){if(r&&"op"===r.type)r.limits="\\limits"===i.text,r.alwaysHandleSupSub=!0;else if(r&&"operatorname"===r.type)r.alwaysHandleSupSub&&(r.limits="\\limits"===i.text);else throw new oc("Limit controls must follow a math operator",i);this.consume()}else if("^"===i.text){if(t)throw new oc("Double superscript",i);t=this.handleSupSubscript("superscript")}else if("_"===i.text){if(n)throw new oc("Double subscript",i);n=this.handleSupSubscript("subscript")}else if("'"===i.text){if(t)throw new oc("Double superscript",i);var a={type:"textord",mode:this.mode,text:"\\prime"},o=[a];for(this.consume();"'"===this.fetch().text;)o.push(a),this.consume();"^"===this.fetch().text&&o.push(this.handleSupSubscript("superscript")),t={type:"ordgroup",mode:this.mode,body:o}}else if(uk[i.text]){var s=ux.test(i.text),l=[];for(l.push(new cN(uk[i.text])),this.consume();;){var c=this.fetch().text;if(!uk[c]||ux.test(c)!==s)break;l.unshift(new cN(uk[c])),this.consume()}var u=this.subparse(l);s?n={type:"ordgroup",mode:"math",body:u}:t={type:"ordgroup",mode:"math",body:u}}else break}return t||n?{type:"supsub",mode:this.mode,base:r,sup:t,sub:n}:r}parseFunction(e,t){var n=this.fetch(),r=n.text,i=s5[r];if(!i)return null;if(this.consume(),t&&"atom"!==t&&!i.allowedInArgument)throw new oc("Got function '"+r+"' with no arguments"+(t?" as "+t:""),n);if("text"!==this.mode||i.allowedInText){if("math"===this.mode&&!1===i.allowedInMath)throw new oc("Can't use function '"+r+"' in math mode",n)}else throw new oc("Can't use function '"+r+"' in text mode",n);var{args:a,optArgs:o}=this.parseArguments(r,i);return this.callFunction(r,a,o,n,e)}callFunction(e,t,n,r,i){var a=s5[e];if(a&&a.handler)return a.handler({funcName:e,parser:this,token:r,breakOnTokenText:i},t,n);throw new oc("No function handler for "+e)}parseArguments(e,t){var n=t.numArgs+t.numOptionalArgs;if(0===n)return{args:[],optArgs:[]};for(var r=[],i=[],a=0;a<n;a++){var o=t.argTypes&&t.argTypes[a],s=a<t.numOptionalArgs;("primitive"in t&&t.primitive&&null==o||"sqrt"===t.type&&1===a&&null==i[0])&&(o="primitive");var l=this.parseGroupOfType("argument to '"+e+"'",o,s);if(s)i.push(l);else if(null!=l)r.push(l);else throw new oc("Null argument, please report this as a bug")}return{args:r,optArgs:i}}parseGroupOfType(e,t,n){switch(t){case"color":return this.parseColorGroup(n);case"size":return this.parseSizeGroup(n);case"url":return this.parseUrlGroup(n);case"math":case"text":return this.parseArgumentGroup(n,t);case"hbox":var r=this.parseArgumentGroup(n,"text");return null!=r?{type:"styling",mode:r.mode,body:[r],style:"text"}:null;case"raw":var i=this.parseStringGroup("raw",n);return null!=i?{type:"raw",mode:"text",string:i.text}:null;case"primitive":if(n)throw new oc("A primitive argument cannot be optional");var a=this.parseGroup(e);if(null==a)throw new oc("Expected group as "+e,this.fetch());return a;case"original":case null:case void 0:return this.parseArgumentGroup(n);default:throw new oc("Unknown group type as "+e,this.fetch())}}consumeSpaces(){for(;" "===this.fetch().text;)this.consume()}parseStringGroup(e,t){var n,r=this.gullet.scanArgument(t);if(null==r)return null;for(var i="";"EOF"!==(n=this.fetch()).text;)i+=n.text,this.consume();return this.consume(),r.text=i,r}parseRegexGroup(e,t){for(var n,r=this.fetch(),i=r,a="";"EOF"!==(n=this.fetch()).text&&e.test(a+n.text);)a+=(i=n).text,this.consume();if(""===a)throw new oc("Invalid "+t+": '"+r.text+"'",r);return r.range(i,a)}parseColorGroup(e){var t=this.parseStringGroup("color",e);if(null==t)return null;var n=/^(#[a-f0-9]{3,4}|#[a-f0-9]{6}|#[a-f0-9]{8}|[a-f0-9]{6}|[a-z]+)$/i.exec(t.text);if(!n)throw new oc("Invalid color: '"+t.text+"'",t);var r=n[0];return/^[0-9a-f]{6}$/i.test(r)&&(r="#"+r),{type:"color-token",mode:this.mode,color:r}}parseSizeGroup(e){var t,n=!1;if(this.gullet.consumeSpaces(),!(t=e||"{"===this.gullet.future().text?this.parseStringGroup("size",e):this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size")))return null;e||0!==t.text.length||(t.text="0pt",n=!0);var r=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(t.text);if(!r)throw new oc("Invalid size: '"+t.text+"'",t);var i={number:+(r[1]+r[2]),unit:r[3]};if(!oD(i))throw new oc("Invalid unit: '"+i.unit+"'",t);return{type:"size",mode:this.mode,value:i,isBlank:n}}parseUrlGroup(e){this.gullet.lexer.setCatcode("%",13),this.gullet.lexer.setCatcode("~",12);var t=this.parseStringGroup("url",e);if(this.gullet.lexer.setCatcode("%",14),this.gullet.lexer.setCatcode("~",13),null==t)return null;var n=t.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:n}}parseArgumentGroup(e,t){var n=this.gullet.scanArgument(e);if(null==n)return null;var r=this.mode;t&&this.switchMode(t),this.gullet.beginGroup();var i=this.parseExpression(!1,"EOF");this.expect("EOF"),this.gullet.endGroup();var a={type:"ordgroup",mode:this.mode,loc:n.loc,body:i};return t&&this.switchMode(r),a}parseGroup(e,t){var n,r=this.fetch(),i=r.text;if("{"===i||"\\begingroup"===i){this.consume();var a="{"===i?"}":"\\endgroup";this.gullet.beginGroup();var o=this.parseExpression(!1,a),s=this.fetch();this.expect(a),this.gullet.endGroup(),n={type:"ordgroup",mode:this.mode,loc:cM.range(r,s),body:o,semisimple:"\\begingroup"===i||void 0}}else if(null==(n=this.parseFunction(t,e)||this.parseSymbol())&&"\\"===i[0]&&!ub.hasOwnProperty(i)){if(this.settings.throwOnError)throw new oc("Undefined control sequence: "+i,r);n=this.formatUnsupportedCmd(i),this.consume()}return n}formLigatures(e){for(var t=e.length-1,n=0;n<t;++n){var r=e[n];if("textord"===r.type){var i=r.text,a=e[n+1];if(a&&"textord"===a.type){if("-"===i&&"-"===a.text){var o=e[n+2];n+1<t&&o&&"textord"===o.type&&"-"===o.text?(e.splice(n,3,{type:"textord",mode:"text",loc:cM.range(r,o),text:"---"}),t-=2):(e.splice(n,2,{type:"textord",mode:"text",loc:cM.range(r,a),text:"--"}),t-=1)}("'"===i||"`"===i)&&a.text===i&&(e.splice(n,2,{type:"textord",mode:"text",loc:cM.range(r,a),text:i+i}),t-=1)}}}}parseSymbol(){var e=this.fetch(),t=e.text;if(/^\\verb[^a-zA-Z]/.test(t)){this.consume();var n=t.slice(5),r="*"===n.charAt(0);if(r&&(n=n.slice(1)),n.length<2||n.charAt(0)!==n.slice(-1))throw new oc("\\verb assertion failed --\n please report what input caused this bug");return{type:"verb",mode:"text",body:n=n.slice(1,-1),star:r}}uS.hasOwnProperty(t[0])&&!o8[this.mode][t[0]]&&(this.settings.strict&&"math"===this.mode&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+t[0]+'" used in math mode',e),t=uS[t[0]]+t.slice(1));var i=us.exec(t);if(i&&("i"===(t=t.substring(0,i.index))?t="ı":"j"===t&&(t="ȷ")),o8[this.mode][t]){this.settings.strict&&"math"===this.mode&&s_.includes(t)&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+t[0]+'" used in math mode',e);var a,o=o8[this.mode][t].group,s=cM.range(e);a=o2.hasOwnProperty(o)?{type:"atom",mode:this.mode,family:o,loc:s,text:t}:{type:o,mode:this.mode,loc:s,text:t}}else{if(!(t.charCodeAt(0)>=128))return null;this.settings.strict&&(oz(t.charCodeAt(0))?"math"===this.mode&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+t[0]+'" used in math mode',e):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+t[0]+'" ('+t.charCodeAt(0)+")",e)),a={type:"textord",mode:"text",loc:cM.range(e),text:t}}if(this.consume(),i)for(var l=0;l<i[0].length;l++){var c=i[0][l];if(!uw[c])throw new oc("Unknown accent ' "+c+"'",e);var u=uw[c][this.mode]||uw[c].text;if(!u)throw new oc("Accent "+c+" unsupported in "+this.mode+" mode",e);a={type:"accent",mode:this.mode,loc:cM.range(e),label:u,isStretchy:!1,isShifty:!0,base:a}}return a}constructor(e,t){this.mode="math",this.gullet=new uv(e,t,this.mode),this.settings=t,this.leftrightDepth=0,this.nextToken=null}}uA.endOfExpression=new Set(["}","\\endgroup","\\end","\\right","&"]);var uC=function(e,t){if(!("string"==typeof e||e instanceof String))throw TypeError("KaTeX can only parse string typed expression");var n=new uA(e,t);delete n.gullet.macros.current["\\df@tag"];var r=n.parse();if(delete n.gullet.macros.current["\\current@color"],delete n.gullet.macros.current["\\color"],n.gullet.macros.get("\\df@tag")){if(!t.displayMode)throw new oc("\\tag works only in display equations");r=[{type:"tag",mode:"text",body:r,tag:n.subparse([new cN("\\df@tag")])}]}return r};"undefined"!=typeof document&&"CSS1Compat"!==document.compatMode&&"undefined"!=typeof console&&console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype.");var uT=function(e,t,n){if(n.throwOnError||!(e instanceof oc))throw e;var r=sD(["katex-error"],[new oZ(t)]);return r.setAttribute("title",e.toString()),r.setAttribute("style","color:"+n.errorColor),r},u_=function(e,t){var n=new ov(t);try{var r=uC(e,n);return lz(r,e,n)}catch(t){return uT(t,e,n)}},uM={renderToString:function(e,t){return u_(e,t).toMarkup()}};let uN={},uE=[];function uz(e){let t=e||uN;return function(e,n){rQ(e,"element",function(e,r){let i,a=Array.isArray(e.properties.className)?e.properties.className:uE,o=a.includes("language-math"),s=a.includes("math-display"),l=a.includes("math-inline"),c=s;if(!o&&!s&&!l)return;let u=r[r.length-1],h=e;if("code"===e.tagName&&o&&u&&"element"===u.type&&"pre"===u.tagName&&(h=u,u=r[r.length-2],c=!0),!u)return;let p=function(e,t){let n,r="children"in e?e.children:[],i=oo(e),a=ol(e,{whitespace:(t||{}).whitespace||"normal",breakBefore:!1,breakAfter:!1}),o=[];("text"===e.type||"comment"===e.type)&&o.push(...os(e,{whitespace:a,breakBefore:!0,breakAfter:!0}));let s=-1;for(;++s<r.length;)o.push(...function e(t,n,r){return"element"===t.type?function(t,n,r){let i,a,o=ol(t,r),s=t.children||[],l=-1,c=[];if(oa(t))return c;for(ot(t)||oi(t)&&a3(n,t,oi)?a="\n":or(t)?(i=2,a=2):oo(t)&&(i=1,a=1);++l<s.length;)c=c.concat(e(s[l],t,{whitespace:o,breakBefore:l?void 0:i,breakAfter:l<s.length-1?ot(s[l+1]):a}));return on(t)&&a3(n,t,on)&&c.push(" "),i&&c.unshift(i),a&&c.push(a),c}(t,n,r):"text"===t.type?"normal"===r.whitespace?os(t,r):[String(t.value)]:[]}(r[s],e,{whitespace:a,breakBefore:s?void 0:i,breakAfter:s<r.length-1?ot(r[s+1]):i}));let l=[];for(s=-1;++s<o.length;){let e=o[s];"number"==typeof e?void 0!==n&&e>n&&(n=e):e&&(void 0!==n&&n>-1&&l.push("\n".repeat(n)||" "),n=-1,l.push(e))}return l.join("")}(h,{whitespace:"pre"});try{i=uM.renderToString(p,{...t,displayMode:c,throwOnError:!0})}catch(o){let a=o.name.toLowerCase();n.message("Could not render math with KaTeX",{ancestors:[...r,e],cause:o,place:e.position,ruleId:a,source:"rehype-katex"});try{i=uM.renderToString(p,{...t,displayMode:c,strict:"ignore",throwOnError:!1})}catch(e){i=[{type:"element",tagName:"span",properties:{className:["katex-error"],style:"color:"+(t.errorColor||"#cc0000"),title:String(o)},children:[{type:"text",value:p}]}]}}if("string"==typeof i){var d;i=(d=i,a4(function(e){let t=document.createElement("template");return t.innerHTML=e,t.content}(d),{})||{type:"root",children:[]}).children}let m=u.children.indexOf(h);return u.children.splice(m,1,...i),rK})}}let uI=["ariaDescribedBy","ariaLabel","ariaLabelledBy"],uj={ancestors:{tbody:["table"],td:["table"],th:["table"],thead:["table"],tfoot:["table"],tr:["table"]},attributes:{a:[...uI,"dataFootnoteBackref","dataFootnoteRef",["className","data-footnote-backref"],"href"],blockquote:["cite"],code:[["className",/^language-./]],del:["cite"],div:["itemScope","itemType"],dl:[...uI],h2:[["className","sr-only"]],img:[...uI,"longDesc","src"],input:[["disabled",!0],["type","checkbox"]],ins:["cite"],li:[["className","task-list-item"]],ol:[...uI,["className","contains-task-list"]],q:["cite"],section:["dataFootnotes",["className","footnotes"]],source:["srcSet"],summary:[...uI],table:[...uI],ul:[...uI,["className","contains-task-list"]],"*":["abbr","accept","acceptCharset","accessKey","action","align","alt","axis","border","cellPadding","cellSpacing","char","charOff","charSet","checked","clear","colSpan","color","cols","compact","coords","dateTime","dir","encType","frame","hSpace","headers","height","hrefLang","htmlFor","id","isMap","itemProp","label","lang","maxLength","media","method","multiple","name","noHref","noShade","noWrap","open","prompt","readOnly","rev","rowSpan","rows","rules","scope","selected","shape","size","span","start","summary","tabIndex","title","useMap","vAlign","value","width"]},clobber:["ariaDescribedBy","ariaLabelledBy","id","name"],clobberPrefix:"user-content-",protocols:{cite:["http","https"],href:["http","https","irc","ircs","mailto","xmpp"],longDesc:["http","https"],src:["http","https"]},required:{input:{disabled:!0,type:"checkbox"}},strip:["script"],tagNames:["a","b","blockquote","br","code","dd","del","details","div","dl","dt","em","h1","h2","h3","h4","h5","h6","hr","i","img","input","ins","kbd","li","ol","p","picture","pre","q","rp","rt","ruby","s","samp","section","source","span","strike","strong","sub","summary","sup","table","tbody","td","tfoot","th","thead","tr","tt","ul","var"]},uR={}.hasOwnProperty;function uL(e,t){if(t&&"object"==typeof t)switch("string"==typeof t.type?t.type:""){case"comment":var n=e,r=t;if(n.schema.allowComments){let e="string"==typeof r.value?r.value:"",t=e.indexOf("-->"),n={type:"comment",value:t<0?e:e.slice(0,t)};return uD(n,r),n}return;case"doctype":var i=e,a=t;if(i.schema.allowDoctypes){let e={type:"doctype"};return uD(e,a),e}return;case"element":return function(e,t){let n="string"==typeof t.tagName?t.tagName:"";e.stack.push(n);let r=uP(e,t.children),i=function(e,t){let n,r=e.stack[e.stack.length-1],i=e.schema.attributes,a=e.schema.required,o=i&&uR.call(i,r)?i[r]:void 0,s=i&&uR.call(i,"*")?i["*"]:void 0,l=t&&"object"==typeof t?t:{},c={};for(n in l)if(uR.call(l,n)){let t=l[n],r=uB(e,uF(o,n),n,t);null==r&&(r=uB(e,uF(s,n),n,t)),null!=r&&(c[n]=r)}if(a&&uR.call(a,r)){let e=a[r];for(n in e)uR.call(e,n)&&!uR.call(c,n)&&(c[n]=e[n])}return c}(e,t.properties);e.stack.pop();let a=!1;if(n&&"*"!==n&&(!e.schema.tagNames||e.schema.tagNames.includes(n))&&(a=!0,e.schema.ancestors&&uR.call(e.schema.ancestors,n))){let t=e.schema.ancestors[n],r=-1;for(a=!1;++r<t.length;)e.stack.includes(t[r])&&(a=!0)}if(!a)return e.schema.strip&&!e.schema.strip.includes(n)?r:void 0;let o={type:"element",tagName:n,properties:i,children:r};return uD(o,t),o}(e,t);case"root":var o=e,s=t;let l={type:"root",children:uP(o,s.children)};return uD(l,s),l;case"text":var c=t;let u={type:"text",value:"string"==typeof c.value?c.value:""};return uD(u,c),u}}function uP(e,t){let n=[];if(Array.isArray(t)){let r=-1;for(;++r<t.length;){let i=uL(e,t[r]);i&&(Array.isArray(i)?n.push(...i):n.push(i))}}return n}function uB(e,t,n,r){return t?Array.isArray(r)?function(e,t,n,r){let i=-1,a=[];for(;++i<r.length;){let o=uO(e,t,n,r[i]);("number"==typeof o||"string"==typeof o)&&a.push(o)}return a}(e,t,n,r):uO(e,t,n,r):void 0}function uO(e,t,n,r){if(("boolean"==typeof r||"number"==typeof r||"string"==typeof r)&&function(e,t,n){let r=e.schema.protocols&&uR.call(e.schema.protocols,t)?e.schema.protocols[t]:void 0;if(!r||0===r.length)return!0;let i=String(n),a=i.indexOf(":"),o=i.indexOf("?"),s=i.indexOf("#"),l=i.indexOf("/");if(a<0||l>-1&&a>l||o>-1&&a>o||s>-1&&a>s)return!0;let c=-1;for(;++c<r.length;){let e=r[c];if(a===e.length&&i.slice(0,e.length)===e)return!0}return!1}(e,n,r)){if("object"==typeof t&&t.length>1){let e=!1,n=0;for(;++n<t.length;){let i=t[n];if(i&&"object"==typeof i&&"flags"in i){if(i.test(String(r))){e=!0;break}}else if(i===r){e=!0;break}}if(!e)return}return e.schema.clobber&&e.schema.clobberPrefix&&e.schema.clobber.includes(n)?e.schema.clobberPrefix+r:r}}function uD(e,t){let n=t0(t);t.data&&(e.data=rG(t.data)),n&&(e.position=n)}function uF(e,t){let n,r=-1;if(e)for(;++r<e.length;){let i=e[r],a="string"==typeof i?i:i[0];if(a===t)return i;"data*"===a&&(n=i)}if(t.length>4&&"data"===t.slice(0,4).toLowerCase())return n}function uq(e){return function(t){var n=t,r=e;let i={type:"root",children:[]},a=uL({schema:r?{...uj,...r}:uj,stack:[]},n);return a&&(Array.isArray(a)?1===a.length?i=a[0]:i.children=a:i=a),i}}var uH=Object.defineProperty,uU=Object.getOwnPropertyDescriptor,uG=Object.getOwnPropertyNames,uW=Object.prototype.hasOwnProperty,uV=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(var i,a=uG(t),o=0,s=a.length;o<s;o++)i=a[o],uW.call(e,i)||i===n||uH(e,i,{get:(e=>t[e]).bind(null,i),enumerable:!(r=uU(t,i))||r.enumerable});return e};e.s(["createOnigurumaEngine",()=>u8,"getDefaultWasmLoader",()=>u7,"loadWasm",()=>u6,"setDefaultWasmLoader",()=>u2],88361);var u$=e.i(67034),uX=class extends Error{constructor(e){super(e),this.name="ShikiError"}};function uY(){return"undefined"!=typeof performance?performance.now():Date.now()}let uJ=(e,t)=>e+(t-e%t)%t;async function uZ(e){let t,n,r={};function i(e){n=e,r.HEAPU8=new Uint8Array(e),r.HEAPU32=new Uint32Array(e)}let a="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function o(e,t){return e?function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1024,r=t+n,i=t;for(;e[i]&&!(i>=r);)++i;if(i-t>16&&e.buffer&&a)return a.decode(e.subarray(t,i));let o="";for(;t<i;){let n=e[t++];if(!(128&n)){o+=String.fromCharCode(n);continue}let r=63&e[t++];if((224&n)==192){o+=String.fromCharCode((31&n)<<6|r);continue}let i=63&e[t++];if((n=(240&n)==224?(15&n)<<12|r<<6|i:(7&n)<<18|r<<12|i<<6|63&e[t++])<65536)o+=String.fromCharCode(n);else{let e=n-65536;o+=String.fromCharCode(55296|e>>10,56320|1023&e)}}return o}(r.HEAPU8,e,t):""}let s={emscripten_get_now:uY,emscripten_memcpy_big:function(e,t,n){r.HEAPU8.copyWithin(e,t,t+n)},emscripten_resize_heap:function(e){let a=r.HEAPU8.length;if((e>>>=0)>0x80000000)return!1;for(let r=1;r<=4;r*=2){let o=a*(1+.2/r);if(o=Math.min(o,e+0x6000000),function(e){try{return t.grow(e-n.byteLength+65535>>>16),i(t.buffer),1}catch(e){}}(Math.min(0x80000000,uJ(Math.max(e,o),65536))))return!0}return!1},fd_write:()=>0};async function l(){let n=await e({env:s,wasi_snapshot_preview1:s});i((t=n.memory).buffer),Object.assign(r,n),r.UTF8ToString=o}return await l(),r}var uK=Object.defineProperty,uQ=(e,t,n)=>((e,t,n)=>t in e?uK(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n)(e,"symbol"!=typeof t?t+"":t,n);let u0=null;class u1{static _utf8ByteLength(e){let t=0;for(let n=0,r=e.length;n<r;n++){let i=e.charCodeAt(n),a=i,o=!1;if(i>=55296&&i<=56319&&n+1<r){let t=e.charCodeAt(n+1);t>=56320&&t<=57343&&(a=(i-55296<<10)+65536|t-56320,o=!0)}a<=127?t+=1:a<=2047?t+=2:a<=65535?t+=3:t+=4,o&&n++}return t}createString(e){let t=e.omalloc(this.utf8Length);return e.HEAPU8.set(this.utf8Value,t),t}constructor(e){uQ(this,"utf16Length"),uQ(this,"utf8Length"),uQ(this,"utf16Value"),uQ(this,"utf8Value"),uQ(this,"utf16OffsetToUtf8"),uQ(this,"utf8OffsetToUtf16");let t=e.length,n=u1._utf8ByteLength(e),r=n!==t,i=r?new Uint32Array(t+1):null;r&&(i[t]=n);let a=r?new Uint32Array(n+1):null;r&&(a[n]=t);let o=new Uint8Array(n),s=0;for(let n=0;n<t;n++){let l=e.charCodeAt(n),c=l,u=!1;if(l>=55296&&l<=56319&&n+1<t){let t=e.charCodeAt(n+1);t>=56320&&t<=57343&&(c=(l-55296<<10)+65536|t-56320,u=!0)}r&&(i[n]=s,u&&(i[n+1]=s),c<=127?a[s+0]=n:c<=2047?(a[s+0]=n,a[s+1]=n):c<=65535?(a[s+0]=n,a[s+1]=n,a[s+2]=n):(a[s+0]=n,a[s+1]=n,a[s+2]=n,a[s+3]=n)),c<=127?o[s++]=c:(c<=2047?o[s++]=192|(1984&c)>>>6:(c<=65535?o[s++]=224|(61440&c)>>>12:(o[s++]=240|(1835008&c)>>>18,o[s++]=128|(258048&c)>>>12),o[s++]=128|(4032&c)>>>6),o[s++]=128|(63&c)>>>0),u&&n++}this.utf16Length=t,this.utf8Length=n,this.utf16Value=e,this.utf8Value=o,this.utf16OffsetToUtf8=i,this.utf8OffsetToUtf16=a}}let u4=class e{convertUtf8OffsetToUtf16(e){return this.utf8OffsetToUtf16?e<0?0:e>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[e]:e}convertUtf16OffsetToUtf8(e){return this.utf16OffsetToUtf8?e<0?0:e>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[e]:e}dispose(){this.ptr===e._sharedPtr?e._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}constructor(t){if(uQ(this,"id",++e.LAST_ID),uQ(this,"_onigBinding"),uQ(this,"content"),uQ(this,"utf16Length"),uQ(this,"utf8Length"),uQ(this,"utf16OffsetToUtf8"),uQ(this,"utf8OffsetToUtf16"),uQ(this,"ptr"),!u0)throw new uX("Must invoke loadWasm first.");this._onigBinding=u0,this.content=t;let n=new u1(t);this.utf16Length=n.utf16Length,this.utf8Length=n.utf8Length,this.utf16OffsetToUtf8=n.utf16OffsetToUtf8,this.utf8OffsetToUtf16=n.utf8OffsetToUtf16,this.utf8Length<1e4&&!e._sharedPtrInUse?(e._sharedPtr||(e._sharedPtr=u0.omalloc(1e4)),e._sharedPtrInUse=!0,u0.HEAPU8.set(n.utf8Value,e._sharedPtr),this.ptr=e._sharedPtr):this.ptr=n.createString(u0)}};uQ(u4,"LAST_ID",0),uQ(u4,"_sharedPtr",0),uQ(u4,"_sharedPtrInUse",!1);class u5{dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(e,t,n){let r=0;if("number"==typeof n&&(r=n),"string"==typeof e){e=new u4(e);let n=this._findNextMatchSync(e,t,!1,r);return e.dispose(),n}return this._findNextMatchSync(e,t,!1,r)}_findNextMatchSync(e,t,n,r){let i=this._onigBinding,a=i.findNextOnigScannerMatch(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),r);if(0===a)return null;let o=i.HEAPU32,s=a/4,l=o[s++],c=o[s++],u=[];for(let t=0;t<c;t++){let n=e.convertUtf8OffsetToUtf16(o[s++]),r=e.convertUtf8OffsetToUtf16(o[s++]);u[t]={start:n,end:r,length:r-n}}return{index:l,captureIndices:u}}constructor(e){if(uQ(this,"_onigBinding"),uQ(this,"_ptr"),!u0)throw new uX("Must invoke loadWasm first.");let t=[],n=[];for(let r=0,i=e.length;r<i;r++){let i=new u1(e[r]);t[r]=i.createString(u0),n[r]=i.utf8Length}let r=u0.omalloc(4*e.length);u0.HEAPU32.set(t,r/4);let i=u0.omalloc(4*e.length);u0.HEAPU32.set(n,i/4);let a=u0.createOnigScanner(r,i,e.length);for(let n=0,r=e.length;n<r;n++)u0.ofree(t[n]);u0.ofree(i),u0.ofree(r),0===a&&function(e){throw new uX(e.UTF8ToString(e.getLastOnigError()))}(u0),this._onigBinding=u0,this._ptr=a}}function u6(e){return t||(t=async function(){u0=await uZ(async t=>{let n=e;if("function"==typeof(n=await n)&&(n=await n(t)),"function"==typeof n&&(n=await n(t)),"function"==typeof n.instantiator)n=await n.instantiator(t);else if("function"==typeof n.default)n=await n.default(t);else{var r,i,a,o,s,l;if(void 0!==n.data&&(n=n.data),r=n,"undefined"!=typeof Response&&r instanceof Response){n="function"==typeof WebAssembly.instantiateStreaming?await (s=n,e=>WebAssembly.instantiateStreaming(s,e))(t):await (l=n,async e=>{let t=await l.arrayBuffer();return WebAssembly.instantiate(t,e)})(t)}else(i=n,"undefined"!=typeof ArrayBuffer&&(i instanceof ArrayBuffer||ArrayBuffer.isView(i))||void 0!==u$.Buffer&&(null==(a=(o=u$.Buffer).isBuffer)?void 0:a.call(o,i))||"undefined"!=typeof SharedArrayBuffer&&i instanceof SharedArrayBuffer||"undefined"!=typeof Uint32Array&&i instanceof Uint32Array||n instanceof WebAssembly.Module)?n=await u3(n)(t):"default"in n&&n.default instanceof WebAssembly.Module&&(n=await u3(n.default)(t))}return"instance"in n&&(n=n.instance),"exports"in n&&(n=n.exports),n})}())}function u3(e){return t=>WebAssembly.instantiate(e,t)}function u2(e){n=e}function u7(){return n}async function u8(e){return e&&await u6(e),{createScanner:e=>new u5(e.map(e=>"string"==typeof e?e:e.source)),createString:e=>new u4(e)}}var u9=e.i(88361),he=((e,t)=>{let n={};for(var r in e)uH(n,r,{get:e[r],enumerable:!0});return t||uH(n,Symbol.toStringTag,{value:"Module"}),n})({});((e,t,n)=>(uV(e,t,"default"),n&&uV(n,t,"default")))(he,u9);let ht=[{id:"abap",name:"ABAP",import:()=>e.A(16690)},{id:"actionscript-3",name:"ActionScript",import:()=>e.A(74435)},{id:"ada",name:"Ada",import:()=>e.A(96339)},{id:"angular-html",name:"Angular HTML",import:()=>e.A(96546)},{id:"angular-ts",name:"Angular TypeScript",import:()=>e.A(60308)},{id:"apache",name:"Apache Conf",import:()=>e.A(8734)},{id:"apex",name:"Apex",import:()=>e.A(2952)},{id:"apl",name:"APL",import:()=>e.A(14026)},{id:"applescript",name:"AppleScript",import:()=>e.A(10042)},{id:"ara",name:"Ara",import:()=>e.A(27701)},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],import:()=>e.A(64940)},{id:"asm",name:"Assembly",import:()=>e.A(81996)},{id:"astro",name:"Astro",import:()=>e.A(85223)},{id:"awk",name:"AWK",import:()=>e.A(77689)},{id:"ballerina",name:"Ballerina",import:()=>e.A(87861)},{id:"bat",name:"Batch File",aliases:["batch"],import:()=>e.A(69047)},{id:"beancount",name:"Beancount",import:()=>e.A(66005)},{id:"berry",name:"Berry",aliases:["be"],import:()=>e.A(64129)},{id:"bibtex",name:"BibTeX",import:()=>e.A(86785)},{id:"bicep",name:"Bicep",import:()=>e.A(34475)},{id:"bird2",name:"BIRD2 Configuration",aliases:["bird"],import:()=>e.A(73197)},{id:"blade",name:"Blade",import:()=>e.A(84291)},{id:"bsl",name:"1C (Enterprise)",aliases:["1c"],import:()=>e.A(54810)},{id:"c",name:"C",import:()=>e.A(15630)},{id:"c3",name:"C3",import:()=>e.A(21406)},{id:"cadence",name:"Cadence",aliases:["cdc"],import:()=>e.A(28418)},{id:"cairo",name:"Cairo",import:()=>e.A(96018)},{id:"clarity",name:"Clarity",import:()=>e.A(68805)},{id:"clojure",name:"Clojure",aliases:["clj"],import:()=>e.A(85670)},{id:"cmake",name:"CMake",import:()=>e.A(50277)},{id:"cobol",name:"COBOL",import:()=>e.A(8435)},{id:"codeowners",name:"CODEOWNERS",import:()=>e.A(77655)},{id:"codeql",name:"CodeQL",aliases:["ql"],import:()=>e.A(93919)},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:()=>e.A(99510)},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],import:()=>e.A(14583)},{id:"coq",name:"Coq",import:()=>e.A(38305)},{id:"cpp",name:"C++",aliases:["c++"],import:()=>e.A(62895)},{id:"crystal",name:"Crystal",import:()=>e.A(15822)},{id:"csharp",name:"C#",aliases:["c#","cs"],import:()=>e.A(56548)},{id:"css",name:"CSS",import:()=>e.A(68853)},{id:"csv",name:"CSV",import:()=>e.A(8072)},{id:"cue",name:"CUE",import:()=>e.A(79420)},{id:"cypher",name:"Cypher",aliases:["cql"],import:()=>e.A(1081)},{id:"d",name:"D",import:()=>e.A(32086)},{id:"dart",name:"Dart",import:()=>e.A(8814)},{id:"dax",name:"DAX",import:()=>e.A(6010)},{id:"desktop",name:"Desktop",import:()=>e.A(11671)},{id:"diff",name:"Diff",import:()=>e.A(99264)},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],import:()=>e.A(64927)},{id:"dotenv",name:"dotEnv",import:()=>e.A(86855)},{id:"dream-maker",name:"Dream Maker",import:()=>e.A(55357)},{id:"edge",name:"Edge",import:()=>e.A(40814)},{id:"elixir",name:"Elixir",import:()=>e.A(34593)},{id:"elm",name:"Elm",import:()=>e.A(80402)},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],import:()=>e.A(59962)},{id:"erb",name:"ERB",import:()=>e.A(55306)},{id:"erlang",name:"Erlang",aliases:["erl"],import:()=>e.A(79291)},{id:"fennel",name:"Fennel",import:()=>e.A(56334)},{id:"fish",name:"Fish",import:()=>e.A(55953)},{id:"fluent",name:"Fluent",aliases:["ftl"],import:()=>e.A(72286)},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],import:()=>e.A(9599)},{id:"fortran-free-form",name:"Fortran (Free Form)",aliases:["f90","f95","f03","f08","f18"],import:()=>e.A(17187)},{id:"fsharp",name:"F#",aliases:["f#","fs"],import:()=>e.A(6583)},{id:"gdresource",name:"GDResource",aliases:["tscn","tres"],import:()=>e.A(350)},{id:"gdscript",name:"GDScript",aliases:["gd"],import:()=>e.A(18592)},{id:"gdshader",name:"GDShader",import:()=>e.A(64292)},{id:"genie",name:"Genie",import:()=>e.A(51227)},{id:"gherkin",name:"Gherkin",import:()=>e.A(81674)},{id:"git-commit",name:"Git Commit Message",import:()=>e.A(65886)},{id:"git-rebase",name:"Git Rebase Message",import:()=>e.A(43635)},{id:"gleam",name:"Gleam",import:()=>e.A(69752)},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],import:()=>e.A(20210)},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],import:()=>e.A(52204)},{id:"glsl",name:"GLSL",import:()=>e.A(15932)},{id:"gn",name:"GN",import:()=>e.A(46517)},{id:"gnuplot",name:"Gnuplot",import:()=>e.A(34810)},{id:"go",name:"Go",import:()=>e.A(18233)},{id:"graphql",name:"GraphQL",aliases:["gql"],import:()=>e.A(27502)},{id:"groovy",name:"Groovy",import:()=>e.A(83131)},{id:"hack",name:"Hack",import:()=>e.A(66363)},{id:"haml",name:"Ruby Haml",import:()=>e.A(36482)},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:()=>e.A(19104)},{id:"haskell",name:"Haskell",aliases:["hs"],import:()=>e.A(82274)},{id:"haxe",name:"Haxe",import:()=>e.A(43593)},{id:"hcl",name:"HashiCorp HCL",import:()=>e.A(92582)},{id:"hjson",name:"Hjson",import:()=>e.A(32395)},{id:"hlsl",name:"HLSL",import:()=>e.A(36975)},{id:"html",name:"HTML",import:()=>e.A(15475)},{id:"html-derivative",name:"HTML (Derivative)",import:()=>e.A(36812)},{id:"http",name:"HTTP",import:()=>e.A(22332)},{id:"hurl",name:"Hurl",import:()=>e.A(77996)},{id:"hxml",name:"HXML",import:()=>e.A(12671)},{id:"hy",name:"Hy",import:()=>e.A(98975)},{id:"imba",name:"Imba",import:()=>e.A(21794)},{id:"ini",name:"INI",aliases:["properties"],import:()=>e.A(12237)},{id:"java",name:"Java",import:()=>e.A(28056)},{id:"javascript",name:"JavaScript",aliases:["js","cjs","mjs"],import:()=>e.A(92799)},{id:"jinja",name:"Jinja",import:()=>e.A(535)},{id:"jison",name:"Jison",import:()=>e.A(99868)},{id:"json",name:"JSON",import:()=>e.A(92658)},{id:"json5",name:"JSON5",import:()=>e.A(45390)},{id:"jsonc",name:"JSON with Comments",import:()=>e.A(59901)},{id:"jsonl",name:"JSON Lines",import:()=>e.A(44018)},{id:"jsonnet",name:"Jsonnet",import:()=>e.A(32597)},{id:"jssm",name:"JSSM",aliases:["fsl"],import:()=>e.A(86493)},{id:"jsx",name:"JSX",import:()=>e.A(87672)},{id:"julia",name:"Julia",aliases:["jl"],import:()=>e.A(48045)},{id:"just",name:"Just",import:()=>e.A(4538)},{id:"kdl",name:"KDL",import:()=>e.A(22051)},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],import:()=>e.A(78014)},{id:"kusto",name:"Kusto",aliases:["kql"],import:()=>e.A(11938)},{id:"latex",name:"LaTeX",import:()=>e.A(82697)},{id:"lean",name:"Lean 4",aliases:["lean4"],import:()=>e.A(6774)},{id:"less",name:"Less",import:()=>e.A(57069)},{id:"liquid",name:"Liquid",import:()=>e.A(33954)},{id:"llvm",name:"LLVM IR",import:()=>e.A(69445)},{id:"log",name:"Log file",import:()=>e.A(32210)},{id:"logo",name:"Logo",import:()=>e.A(17136)},{id:"lua",name:"Lua",import:()=>e.A(47287)},{id:"luau",name:"Luau",import:()=>e.A(98173)},{id:"make",name:"Makefile",aliases:["makefile"],import:()=>e.A(18877)},{id:"markdown",name:"Markdown",aliases:["md"],import:()=>e.A(59142)},{id:"marko",name:"Marko",import:()=>e.A(44609)},{id:"matlab",name:"MATLAB",import:()=>e.A(23845)},{id:"mdc",name:"MDC",import:()=>e.A(67535)},{id:"mdx",name:"MDX",import:()=>e.A(59189)},{id:"mermaid",name:"Mermaid",aliases:["mmd"],import:()=>e.A(57619)},{id:"mipsasm",name:"MIPS Assembly",aliases:["mips"],import:()=>e.A(1626)},{id:"mojo",name:"Mojo",import:()=>e.A(24176)},{id:"moonbit",name:"MoonBit",aliases:["mbt","mbti"],import:()=>e.A(5353)},{id:"move",name:"Move",import:()=>e.A(47969)},{id:"narrat",name:"Narrat Language",aliases:["nar"],import:()=>e.A(55902)},{id:"nextflow",name:"Nextflow",aliases:["nf"],import:()=>e.A(57638)},{id:"nextflow-groovy",name:"Nextflow Groovy",import:()=>e.A(72194)},{id:"nginx",name:"Nginx",import:()=>e.A(47723)},{id:"nim",name:"Nim",import:()=>e.A(46820)},{id:"nix",name:"Nix",import:()=>e.A(65220)},{id:"nushell",name:"nushell",aliases:["nu"],import:()=>e.A(21908)},{id:"objective-c",name:"Objective-C",aliases:["objc"],import:()=>e.A(98543)},{id:"objective-cpp",name:"Objective-C++",import:()=>e.A(53213)},{id:"ocaml",name:"OCaml",import:()=>e.A(57016)},{id:"odin",name:"Odin",import:()=>e.A(144)},{id:"openscad",name:"OpenSCAD",aliases:["scad"],import:()=>e.A(89188)},{id:"pascal",name:"Pascal",import:()=>e.A(94584)},{id:"perl",name:"Perl",import:()=>e.A(90087)},{id:"php",name:"PHP",import:()=>e.A(53525)},{id:"pkl",name:"Pkl",import:()=>e.A(6695)},{id:"plsql",name:"PL/SQL",import:()=>e.A(85641)},{id:"po",name:"Gettext PO",aliases:["pot","potx"],import:()=>e.A(15520)},{id:"polar",name:"Polar",import:()=>e.A(79736)},{id:"postcss",name:"PostCSS",import:()=>e.A(44743)},{id:"powerquery",name:"PowerQuery",import:()=>e.A(69901)},{id:"powershell",name:"PowerShell",aliases:["ps","ps1"],import:()=>e.A(49765)},{id:"prisma",name:"Prisma",import:()=>e.A(25840)},{id:"prolog",name:"Prolog",import:()=>e.A(78110)},{id:"proto",name:"Protocol Buffer 3",aliases:["protobuf"],import:()=>e.A(10002)},{id:"pug",name:"Pug",aliases:["jade"],import:()=>e.A(53456)},{id:"puppet",name:"Puppet",import:()=>e.A(28116)},{id:"purescript",name:"PureScript",import:()=>e.A(62792)},{id:"python",name:"Python",aliases:["py"],import:()=>e.A(48436)},{id:"qml",name:"QML",import:()=>e.A(85774)},{id:"qmldir",name:"QML Directory",import:()=>e.A(22682)},{id:"qss",name:"Qt Style Sheets",import:()=>e.A(29273)},{id:"r",name:"R",import:()=>e.A(17431)},{id:"racket",name:"Racket",import:()=>e.A(27184)},{id:"raku",name:"Raku",aliases:["perl6"],import:()=>e.A(2999)},{id:"razor",name:"ASP.NET Razor",import:()=>e.A(22510)},{id:"reg",name:"Windows Registry Script",import:()=>e.A(92914)},{id:"regexp",name:"RegExp",aliases:["regex"],import:()=>e.A(64980)},{id:"rel",name:"Rel",import:()=>e.A(62249)},{id:"riscv",name:"RISC-V",import:()=>e.A(19686)},{id:"ron",name:"RON",import:()=>e.A(23169)},{id:"rosmsg",name:"ROS Interface",import:()=>e.A(66973)},{id:"rst",name:"reStructuredText",import:()=>e.A(80357)},{id:"ruby",name:"Ruby",aliases:["rb"],import:()=>e.A(60137)},{id:"rust",name:"Rust",aliases:["rs"],import:()=>e.A(25837)},{id:"sas",name:"SAS",import:()=>e.A(59154)},{id:"sass",name:"Sass",import:()=>e.A(28160)},{id:"scala",name:"Scala",import:()=>e.A(79226)},{id:"scheme",name:"Scheme",import:()=>e.A(95554)},{id:"scss",name:"SCSS",import:()=>e.A(56229)},{id:"sdbl",name:"1C (Query)",aliases:["1c-query"],import:()=>e.A(57294)},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],import:()=>e.A(87646)},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:()=>e.A(77876)},{id:"shellsession",name:"Shell Session",aliases:["console"],import:()=>e.A(2789)},{id:"smalltalk",name:"Smalltalk",import:()=>e.A(5404)},{id:"solidity",name:"Solidity",import:()=>e.A(64050)},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],import:()=>e.A(23766)},{id:"sparql",name:"SPARQL",import:()=>e.A(71095)},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],import:()=>e.A(13125)},{id:"sql",name:"SQL",import:()=>e.A(47760)},{id:"ssh-config",name:"SSH Config",import:()=>e.A(25380)},{id:"stata",name:"Stata",import:()=>e.A(27772)},{id:"stylus",name:"Stylus",aliases:["styl"],import:()=>e.A(31592)},{id:"surrealql",name:"SurrealQL",aliases:["surql"],import:()=>e.A(42509)},{id:"svelte",name:"Svelte",import:()=>e.A(9551)},{id:"swift",name:"Swift",import:()=>e.A(74099)},{id:"system-verilog",name:"SystemVerilog",import:()=>e.A(1250)},{id:"systemd",name:"Systemd Units",import:()=>e.A(44475)},{id:"talonscript",name:"TalonScript",aliases:["talon"],import:()=>e.A(538)},{id:"tasl",name:"Tasl",import:()=>e.A(36651)},{id:"tcl",name:"Tcl",import:()=>e.A(9948)},{id:"templ",name:"Templ",import:()=>e.A(40336)},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],import:()=>e.A(8436)},{id:"tex",name:"TeX",import:()=>e.A(55636)},{id:"toml",name:"TOML",import:()=>e.A(51979)},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],import:()=>e.A(65678)},{id:"tsv",name:"TSV",import:()=>e.A(41727)},{id:"tsx",name:"TSX",import:()=>e.A(57754)},{id:"turtle",name:"Turtle",import:()=>e.A(70454)},{id:"twig",name:"Twig",import:()=>e.A(70515)},{id:"typescript",name:"TypeScript",aliases:["ts","cts","mts"],import:()=>e.A(48460)},{id:"typespec",name:"TypeSpec",aliases:["tsp"],import:()=>e.A(44538)},{id:"typst",name:"Typst",aliases:["typ"],import:()=>e.A(63321)},{id:"v",name:"V",import:()=>e.A(43837)},{id:"vala",name:"Vala",import:()=>e.A(30536)},{id:"vb",name:"Visual Basic",aliases:["cmd"],import:()=>e.A(85051)},{id:"verilog",name:"Verilog",import:()=>e.A(86017)},{id:"vhdl",name:"VHDL",import:()=>e.A(95694)},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],import:()=>e.A(4547)},{id:"vue",name:"Vue",import:()=>e.A(34329)},{id:"vue-html",name:"Vue HTML",import:()=>e.A(60550)},{id:"vue-vine",name:"Vue Vine",import:()=>e.A(109)},{id:"vyper",name:"Vyper",aliases:["vy"],import:()=>e.A(34235)},{id:"wasm",name:"WebAssembly",import:()=>e.A(79931)},{id:"wenyan",name:"Wenyan",aliases:["文言"],import:()=>e.A(38463)},{id:"wgsl",name:"WGSL",import:()=>e.A(64547)},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],import:()=>e.A(74196)},{id:"wit",name:"WebAssembly Interface Types",import:()=>e.A(26245)},{id:"wolfram",name:"Wolfram",aliases:["wl"],import:()=>e.A(98654)},{id:"xml",name:"XML",import:()=>e.A(60115)},{id:"xsl",name:"XSL",import:()=>e.A(56841)},{id:"yaml",name:"YAML",aliases:["yml"],import:()=>e.A(91412)},{id:"zenscript",name:"ZenScript",import:()=>e.A(41270)},{id:"zig",name:"Zig",import:()=>e.A(32344)}],hn=Object.fromEntries(ht.map(e=>[e.id,e.import])),hr=Object.fromEntries(ht.flatMap(e=>{var t;return(null==(t=e.aliases)?void 0:t.map(t=>[t,e.import]))||[]})),hi={...hn,...hr},ha=Object.fromEntries([{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:()=>e.A(52913)},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:()=>e.A(95208)},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:()=>e.A(52844)},{id:"ayu-light",displayName:"Ayu Light",type:"light",import:()=>e.A(76488)},{id:"ayu-mirage",displayName:"Ayu Mirage",type:"dark",import:()=>e.A(36002)},{id:"catppuccin-frappe",displayName:"Catppuccin Frappé",type:"dark",import:()=>e.A(72934)},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:()=>e.A(31036)},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:()=>e.A(23803)},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:()=>e.A(86330)},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:()=>e.A(81001)},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:()=>e.A(95735)},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:()=>e.A(2100)},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:()=>e.A(58172)},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:()=>e.A(75274)},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:()=>e.A(57811)},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:()=>e.A(14214)},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:()=>e.A(48353)},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:()=>e.A(40920)},{id:"github-light",displayName:"GitHub Light",type:"light",import:()=>e.A(79755)},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:()=>e.A(5550)},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:()=>e.A(60233)},{id:"gruvbox-dark-hard",displayName:"Gruvbox Dark Hard",type:"dark",import:()=>e.A(80721)},{id:"gruvbox-dark-medium",displayName:"Gruvbox Dark Medium",type:"dark",import:()=>e.A(27266)},{id:"gruvbox-dark-soft",displayName:"Gruvbox Dark Soft",type:"dark",import:()=>e.A(31214)},{id:"gruvbox-light-hard",displayName:"Gruvbox Light Hard",type:"light",import:()=>e.A(81110)},{id:"gruvbox-light-medium",displayName:"Gruvbox Light Medium",type:"light",import:()=>e.A(37683)},{id:"gruvbox-light-soft",displayName:"Gruvbox Light Soft",type:"light",import:()=>e.A(28130)},{id:"horizon",displayName:"Horizon",type:"dark",import:()=>e.A(70579)},{id:"horizon-bright",displayName:"Horizon Bright",type:"light",import:()=>e.A(87165)},{id:"houston",displayName:"Houston",type:"dark",import:()=>e.A(77856)},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:()=>e.A(94363)},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:()=>e.A(48953)},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:()=>e.A(11812)},{id:"laserwave",displayName:"LaserWave",type:"dark",import:()=>e.A(9732)},{id:"light-plus",displayName:"Light Plus",type:"light",import:()=>e.A(30788)},{id:"material-theme",displayName:"Material Theme",type:"dark",import:()=>e.A(11374)},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:()=>e.A(69460)},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:()=>e.A(74478)},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:()=>e.A(49008)},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:()=>e.A(77952)},{id:"min-dark",displayName:"Min Dark",type:"dark",import:()=>e.A(20463)},{id:"min-light",displayName:"Min Light",type:"light",import:()=>e.A(30169)},{id:"monokai",displayName:"Monokai",type:"dark",import:()=>e.A(77035)},{id:"night-owl",displayName:"Night Owl",type:"dark",import:()=>e.A(61439)},{id:"night-owl-light",displayName:"Night Owl Light",type:"light",import:()=>e.A(28589)},{id:"nord",displayName:"Nord",type:"dark",import:()=>e.A(67304)},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:()=>e.A(94497)},{id:"one-light",displayName:"One Light",type:"light",import:()=>e.A(53619)},{id:"plastic",displayName:"Plastic",type:"dark",import:()=>e.A(41717)},{id:"poimandres",displayName:"Poimandres",type:"dark",import:()=>e.A(3232)},{id:"red",displayName:"Red",type:"dark",import:()=>e.A(69411)},{id:"rose-pine",displayName:"Rosé Pine",type:"dark",import:()=>e.A(53065)},{id:"rose-pine-dawn",displayName:"Rosé Pine Dawn",type:"light",import:()=>e.A(81356)},{id:"rose-pine-moon",displayName:"Rosé Pine Moon",type:"dark",import:()=>e.A(91336)},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:()=>e.A(58732)},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:()=>e.A(5358)},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:()=>e.A(53493)},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:()=>e.A(67374)},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:()=>e.A(61630)},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:()=>e.A(35353)},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:()=>e.A(29817)},{id:"vesper",displayName:"Vesper",type:"dark",import:()=>e.A(66144)},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:()=>e.A(96740)},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:()=>e.A(96290)},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:()=>e.A(61379)}].map(e=>[e.id,e.import]));var ho=class extends Error{constructor(e){super(e),this.name="ShikiError"}};function hs(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return n.forEach(t=>{for(let n in t)e[n]=t[n]}),e}var hl=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,hc=class{static hasCaptures(e){return null!==e&&(hl.lastIndex=0,hl.test(e))}static replaceCaptures(e,t,n){return e.replace(hl,(e,r,i,a)=>{let o=n[parseInt(r||i,10)];if(!o)return e;{let e=t.substring(o.start,o.end);for(;"."===e[0];)e=e.substring(1);switch(a){case"downcase":return e.toLowerCase();case"upcase":return e.toUpperCase();default:return e}}})}};function hu(e,t){if(null===e&&null===t)return 0;if(!e)return -1;if(!t)return 1;let n=e.length,r=t.length;if(n===r){for(let r=0;r<n;r++){var i,a;let n=(i=e[r],i<(a=t[r])?-1:+(i>a));if(0!==n)return n}return 0}return n-r}function hh(e){return!!(/^#[0-9a-f]{6}$/i.test(e)||/^#[0-9a-f]{8}$/i.test(e)||/^#[0-9a-f]{3}$/i.test(e)||/^#[0-9a-f]{4}$/i.test(e))}function hp(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var hd=class{get(e){if(this.cache.has(e))return this.cache.get(e);let t=this.fn(e);return this.cache.set(e,t),t}constructor(e){(0,V._)(this,"cache",new Map),this.fn=e}},hm=class{static createFromRawTheme(e,t){return this.createFromParsedTheme(function(e){if(!e||!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,n=[],r=0;for(let e=0,i=t.length;e<i;e++){let i,a=t[e];if(!a.settings)continue;if("string"==typeof a.scope){let e=a.scope;i=(e=(e=e.replace(/^[,]+/,"")).replace(/[,]+$/,"")).split(",")}else i=Array.isArray(a.scope)?a.scope:[""];let o=-1;if("string"==typeof a.settings.fontStyle){o=0;let e=a.settings.fontStyle.split(" ");for(let t=0,n=e.length;t<n;t++)switch(e[t]){case"italic":o|=1;break;case"bold":o|=2;break;case"underline":o|=4;break;case"strikethrough":o|=8}}let s=null;"string"==typeof a.settings.foreground&&hh(a.settings.foreground)&&(s=a.settings.foreground);let l=null;"string"==typeof a.settings.background&&hh(a.settings.background)&&(l=a.settings.background);for(let t=0,a=i.length;t<a;t++){let a=i[t].trim().split(" "),c=a[a.length-1],u=null;a.length>1&&(u=a.slice(0,a.length-1)).reverse(),n[r++]=new hy(c,u,e,o,s,l)}}return n}(e),t)}static createFromParsedTheme(e,t){return function(e,t){e.sort((e,t)=>{var n,r;let i=(n=e.scope,n<(r=t.scope)?-1:+(n>r));return 0!==i||0!==(i=hu(e.parentScopes,t.parentScopes))?i:e.index-t.index});let n=0,r="#000000",i="#ffffff";for(;e.length>=1&&""===e[0].scope;){let t=e.shift();-1!==t.fontStyle&&(n=t.fontStyle),null!==t.foreground&&(r=t.foreground),null!==t.background&&(i=t.background)}let a=new hv(t),o=new hg(n,a.getId(r),a.getId(i)),s=new hw(new hk(0,null,-1,0,0),[]);for(let t=0,n=e.length;t<n;t++){let n=e[t];s.insert(0,n.scope,n.parentScopes,n.fontStyle,a.getId(n.foreground),a.getId(n.background))}return new hm(a,o,s)}(e,t)}getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(null===e)return this._defaults;let t=e.scopeName,n=this._cachedMatchRoot.get(t).find(t=>(function(e,t){if(0===t.length)return!0;for(let i=0;i<t.length;i++){var n,r;let a=t[i],o=!1;if(">"===a){if(i===t.length-1)return!1;a=t[++i],o=!0}for(;e&&(n=e.scopeName,!((r=a)===n||n.startsWith(r)&&"."===n[r.length]));){if(o)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0})(e.parent,t.parentScopes));return n?new hg(n.fontStyle,n.foreground,n.background):null}constructor(e,t,n){(0,V._)(this,"_cachedMatchRoot",new hd(e=>this._root.match(e))),this._colorMap=e,this._defaults=t,this._root=n}},hf=class e{static push(t,n){for(let r of n)t=new e(t,r);return t}static from(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];let i=null;for(let t=0;t<n.length;t++)i=new e(i,n[t]);return i}push(t){return new e(this,t)}getSegments(){let e=this,t=[];for(;e;)t.push(e.scopeName),e=e.parent;return t.reverse(),t}toString(){return this.getSegments().join(" ")}extends(e){return this===e||null!==this.parent&&this.parent.extends(e)}getExtensionIfDefined(e){let t=[],n=this;for(;n&&n!==e;)t.push(n.scopeName),n=n.parent;return n===e?t.reverse():void 0}constructor(e,t){this.parent=e,this.scopeName=t}},hg=class{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}},hy=class{constructor(e,t,n,r,i,a){this.scope=e,this.parentScopes=t,this.index=n,this.fontStyle=r,this.foreground=i,this.background=a}},hb=(e=>(e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline",e[e.Strikethrough=8]="Strikethrough",e))(hb||{}),hv=class{getId(e){if(null===e)return 0;e=e.toUpperCase();let t=this._color2id[e];if(t)return t;if(this._isFrozen)throw Error("Missing color in color map - ".concat(e));return t=++this._lastColorId,this._color2id[e]=t,this._id2color[t]=e,t}getColorMap(){return this._id2color.slice(0)}constructor(e){if((0,V._)(this,"_isFrozen",void 0),(0,V._)(this,"_lastColorId",void 0),(0,V._)(this,"_id2color",void 0),(0,V._)(this,"_color2id",void 0),this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,n=e.length;t<n;t++)this._color2id[e[t]]=t,this._id2color[t]=e[t]}else this._isFrozen=!1}},hx=Object.freeze([]),hk=class e{clone(){return new e(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=e[n].clone();return t}acceptOverwrite(e,t,n,r){this.scopeDepth>e?console.log("how did this happen?"):this.scopeDepth=e,-1!==t&&(this.fontStyle=t),0!==n&&(this.foreground=n),0!==r&&(this.background=r)}constructor(e,t,n,r,i){(0,V._)(this,"scopeDepth",void 0),(0,V._)(this,"parentScopes",void 0),(0,V._)(this,"fontStyle",void 0),(0,V._)(this,"foreground",void 0),(0,V._)(this,"background",void 0),this.scopeDepth=e,this.parentScopes=t||hx,this.fontStyle=n,this.foreground=r,this.background=i}},hw=class e{static _cmpBySpecificity(e,t){if(e.scopeDepth!==t.scopeDepth)return t.scopeDepth-e.scopeDepth;let n=0,r=0;for(;">"===e.parentScopes[n]&&n++,">"===t.parentScopes[r]&&r++,!(n>=e.parentScopes.length)&&!(r>=t.parentScopes.length);){let i=t.parentScopes[r].length-e.parentScopes[n].length;if(0!==i)return i;n++,r++}return t.parentScopes.length-e.parentScopes.length}match(t){if(""!==t){let e,n,r=t.indexOf(".");if(-1===r?(e=t,n=""):(e=t.substring(0,r),n=t.substring(r+1)),this._children.hasOwnProperty(e))return this._children[e].match(n)}let n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(e._cmpBySpecificity),n}insert(t,n,r,i,a,o){let s,l,c;if(""===n)return void this._doInsertHere(t,r,i,a,o);let u=n.indexOf(".");-1===u?(s=n,l=""):(s=n.substring(0,u),l=n.substring(u+1)),this._children.hasOwnProperty(s)?c=this._children[s]:(c=new e(this._mainRule.clone(),hk.cloneArr(this._rulesWithParentScopes)),this._children[s]=c),c.insert(t+1,l,r,i,a,o)}_doInsertHere(e,t,n,r,i){if(null===t)return void this._mainRule.acceptOverwrite(e,n,r,i);for(let a=0,o=this._rulesWithParentScopes.length;a<o;a++){let o=this._rulesWithParentScopes[a];if(0===hu(o.parentScopes,t))return void o.acceptOverwrite(e,n,r,i)}-1===n&&(n=this._mainRule.fontStyle),0===r&&(r=this._mainRule.foreground),0===i&&(i=this._mainRule.background),this._rulesWithParentScopes.push(new hk(e,t,n,r,i))}constructor(e,t=[],n={}){(0,V._)(this,"_rulesWithParentScopes",void 0),this._mainRule=e,this._children=n,this._rulesWithParentScopes=t}},hS=class e{static toBinaryStr(e){return e.toString(2).padStart(32,"0")}static print(t){let n=e.getLanguageId(t),r=e.getTokenType(t),i=e.getFontStyle(t);console.log({languageId:n,tokenType:r,fontStyle:i,foreground:e.getForeground(t),background:e.getBackground(t)})}static getLanguageId(e){return(255&e)>>>0}static getTokenType(e){return(768&e)>>>8}static containsBalancedBrackets(e){return(1024&e)!=0}static getFontStyle(e){return(30720&e)>>>11}static getForeground(e){return(0xff8000&e)>>>15}static getBackground(e){return(0xff000000&e)>>>24}static set(t,n,r,i,a,o,s){let l=e.getLanguageId(t),c=e.getTokenType(t),u=+!!e.containsBalancedBrackets(t),h=e.getFontStyle(t),p=e.getForeground(t),d=e.getBackground(t);return 0!==n&&(l=n),8!==r&&(c=r),null!==i&&(u=+!!i),-1!==a&&(h=a),0!==o&&(p=o),0!==s&&(d=s),(0|l|c<<8|u<<10|h<<11|p<<15|d<<24)>>>0}};function hA(e,t){var n;let r,i,a=[],o=(n=e,i=(r=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g).exec(n),{next:()=>{if(!i)return null;let e=i[0];return i=r.exec(n),e}}),s=o.next();for(;null!==s;){let e=0;if(2===s.length&&":"===s.charAt(1)){switch(s.charAt(0)){case"R":e=1;break;case"L":e=-1;break;default:console.log("Unknown priority ".concat(s," in scope selector"))}s=o.next()}let t=c();if(a.push({matcher:t,priority:e}),","!==s)break;s=o.next()}return a;function l(){if("-"===s){s=o.next();let e=l();return t=>!!e&&!e(t)}if("("===s){s=o.next();let e=function(){let e=[],t=c();for(;t&&(e.push(t),"|"===s||","===s);){do s=o.next();while("|"===s||","===s)t=c()}return t=>e.some(e=>e(t))}();return")"===s&&(s=o.next()),e}if(hC(s)){let e=[];do e.push(s),s=o.next();while(hC(s))return n=>t(e,n)}return null}function c(){let e=[],t=l();for(;t;)e.push(t),t=l();return t=>e.every(e=>e(t))}}function hC(e){return!!e&&!!e.match(/[\w\.:]+/)}var hT=(e=>(e[e.None=0]="None",e[e.NotBeginString=1]="NotBeginString",e[e.NotEndString=2]="NotEndString",e[e.NotBeginPosition=4]="NotBeginPosition",e[e.DebugCall=8]="DebugCall",e))(hT||{});function h_(e){"function"==typeof e.dispose&&e.dispose()}var hM=class{toKey(){return this.scopeName}constructor(e){this.scopeName=e}},hN=class{toKey(){return"".concat(this.scopeName,"#").concat(this.ruleName)}constructor(e,t){this.scopeName=e,this.ruleName=t}},hE=class{get references(){return this._references}add(e){let t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}constructor(){(0,V._)(this,"_references",[]),(0,V._)(this,"_seenReferenceKeys",new Set),(0,V._)(this,"visitedRule",new Set)}},hz=class{processQueue(){let e=this.Q;this.Q=[];let t=new hE;for(let n of e)!function(e,t,n,r){let i=n.lookup(e.scopeName);if(!i){if(e.scopeName===t)throw Error("No grammar provided for <".concat(t,">"));return}let a=n.lookup(t);e instanceof hM?hj({baseGrammar:a,selfGrammar:i},r):hI(e.ruleName,{baseGrammar:a,selfGrammar:i,repository:i.repository},r);let o=n.injections(e.scopeName);if(o)for(let e of o)r.add(new hM(e))}(n,this.initialScopeName,this.repo,t);for(let e of t.references)if(e instanceof hM){if(this.seenFullScopeRequests.has(e.scopeName))continue;this.seenFullScopeRequests.add(e.scopeName),this.Q.push(e)}else{if(this.seenFullScopeRequests.has(e.scopeName)||this.seenPartialScopeRequests.has(e.toKey()))continue;this.seenPartialScopeRequests.add(e.toKey()),this.Q.push(e)}}constructor(e,t){(0,V._)(this,"seenFullScopeRequests",new Set),(0,V._)(this,"seenPartialScopeRequests",new Set),(0,V._)(this,"Q",void 0),this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new hM(this.initialScopeName)]}};function hI(e,t,n){t.repository&&t.repository[e]&&hR([t.repository[e]],t,n)}function hj(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&hR(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&hR(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function hR(e,t,n){for(let r of e){if(n.visitedRule.has(r))continue;n.visitedRule.add(r);let e=r.repository?hs({},t.repository,r.repository):t.repository;Array.isArray(r.patterns)&&hR(r.patterns,{...t,repository:e},n);let i=r.include;if(!i)continue;let a=hF(i);switch(a.kind){case 0:hj({...t,selfGrammar:t.baseGrammar},n);break;case 1:hj(t,n);break;case 2:hI(a.ruleName,{...t,repository:e},n);break;case 3:case 4:let o=a.scopeName===t.selfGrammar.scopeName?t.selfGrammar:a.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(o){let r={baseGrammar:t.baseGrammar,selfGrammar:o,repository:e};4===a.kind?hI(a.ruleName,r,n):hj(r,n)}else 4===a.kind?n.add(new hN(a.scopeName,a.ruleName)):n.add(new hM(a.scopeName))}}}var hL=class{constructor(){(0,V._)(this,"kind",0)}},hP=class{constructor(){(0,V._)(this,"kind",1)}},hB=class{constructor(e){(0,V._)(this,"kind",2),this.ruleName=e}},hO=class{constructor(e){(0,V._)(this,"kind",3),this.scopeName=e}},hD=class{constructor(e,t){(0,V._)(this,"kind",4),this.scopeName=e,this.ruleName=t}};function hF(e){if("$base"===e)return new hL;if("$self"===e)return new hP;let t=e.indexOf("#");return -1===t?new hO(e):0===t?new hB(e.substring(1)):new hD(e.substring(0,t),e.substring(t+1))}var hq=/\\(\d+)/,hH=/\\(\d+)/g;Symbol("RuleId");var hU=class{get debugName(){let e=this.$location?"".concat(function e(t){let n=~t.lastIndexOf("/")||~t.lastIndexOf("\\");return 0===n?t:~n==t.length-1?e(t.substring(0,t.length-1)):t.substr(~n+1)}(this.$location.filename),":").concat(this.$location.line):"unknown";return"".concat(this.constructor.name,"#").concat(this.id," @ ").concat(e)}getName(e,t){return this._nameIsCapturing&&null!==this._name&&null!==e&&null!==t?hc.replaceCaptures(this._name,e,t):this._name}getContentName(e,t){return this._contentNameIsCapturing&&null!==this._contentName?hc.replaceCaptures(this._contentName,e,t):this._contentName}constructor(e,t,n,r){(0,V._)(this,"$location",void 0),(0,V._)(this,"id",void 0),(0,V._)(this,"_nameIsCapturing",void 0),(0,V._)(this,"_name",void 0),(0,V._)(this,"_contentNameIsCapturing",void 0),(0,V._)(this,"_contentName",void 0),this.$location=e,this.id=t,this._name=n||null,this._nameIsCapturing=hc.hasCaptures(this._name),this._contentName=r||null,this._contentNameIsCapturing=hc.hasCaptures(this._contentName)}},hG=class extends hU{dispose(){}collectPatterns(e,t){throw Error("Not supported!")}compile(e,t){throw Error("Not supported!")}compileAG(e,t,n,r){throw Error("Not supported!")}constructor(e,t,n,r,i){super(e,t,n,r),(0,V._)(this,"retokenizeCapturedWithRuleId",void 0),this.retokenizeCapturedWithRuleId=i}},hW=class extends hU{dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return"".concat(this._match.source)}collectPatterns(e,t){t.push(this._match)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new hZ,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}constructor(e,t,n,r,i){super(e,t,n,null),(0,V._)(this,"_match",void 0),(0,V._)(this,"captures",void 0),(0,V._)(this,"_cachedCompiledPatterns",void 0),this._match=new hJ(r,this.id),this.captures=i,this._cachedCompiledPatterns=null}},hV=class extends hU{dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(e,t){for(let n of this.patterns)e.getRule(n).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new hZ,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}constructor(e,t,n,r,i){super(e,t,n,r),(0,V._)(this,"hasMissingPatterns",void 0),(0,V._)(this,"patterns",void 0),(0,V._)(this,"_cachedCompiledPatterns",void 0),this.patterns=i.patterns,this.hasMissingPatterns=i.hasMissingPatterns,this._cachedCompiledPatterns=null}},h$=class extends hU{dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return"".concat(this._begin.source)}get debugEndRegExp(){return"".concat(this._end.source)}getEndWithResolvedBackReferences(e,t){return this._end.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e,t).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e,t).compileAG(e,n,r)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){for(let t of(this._cachedCompiledPatterns=new hZ,this.patterns))e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,t):this._cachedCompiledPatterns.setSource(0,t)),this._cachedCompiledPatterns}constructor(e,t,n,r,i,a,o,s,l,c){super(e,t,n,r),(0,V._)(this,"_begin",void 0),(0,V._)(this,"beginCaptures",void 0),(0,V._)(this,"_end",void 0),(0,V._)(this,"endHasBackReferences",void 0),(0,V._)(this,"endCaptures",void 0),(0,V._)(this,"applyEndPatternLast",void 0),(0,V._)(this,"hasMissingPatterns",void 0),(0,V._)(this,"patterns",void 0),(0,V._)(this,"_cachedCompiledPatterns",void 0),this._begin=new hJ(i,this.id),this.beginCaptures=a,this._end=new hJ(o||"",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=s,this.applyEndPatternLast=l||!1,this.patterns=c.patterns,this.hasMissingPatterns=c.hasMissingPatterns,this._cachedCompiledPatterns=null}},hX=class extends hU{dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return"".concat(this._begin.source)}get debugWhileRegExp(){return"".concat(this._while.source)}getWhileWithResolvedBackReferences(e,t){return this._while.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns)for(let t of(this._cachedCompiledPatterns=new hZ,this.patterns))e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns);return this._cachedCompiledPatterns}compileWhile(e,t){return this._getCachedCompiledWhilePatterns(e,t).compile(e)}compileWhileAG(e,t,n,r){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,n,r)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new hZ,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||""),this._cachedCompiledWhilePatterns}constructor(e,t,n,r,i,a,o,s,l){super(e,t,n,r),(0,V._)(this,"_begin",void 0),(0,V._)(this,"beginCaptures",void 0),(0,V._)(this,"whileCaptures",void 0),(0,V._)(this,"_while",void 0),(0,V._)(this,"whileHasBackReferences",void 0),(0,V._)(this,"hasMissingPatterns",void 0),(0,V._)(this,"patterns",void 0),(0,V._)(this,"_cachedCompiledPatterns",void 0),(0,V._)(this,"_cachedCompiledWhilePatterns",void 0),this._begin=new hJ(i,this.id),this.beginCaptures=a,this.whileCaptures=s,this._while=new hJ(o,-2),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=l.patterns,this.hasMissingPatterns=l.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}},hY=class e{static createCaptureRule(e,t,n,r,i){return e.registerRule(e=>new hG(t,e,n,r,i))}static getCompiledRuleId(t,n,r){return t.id||n.registerRule(i=>{if(t.id=i,t.match)return new hW(t.$vscodeTextmateLocation,t.id,t.name,t.match,e._compileCaptures(t.captures,n,r));if(void 0===t.begin){t.repository&&(r=hs({},r,t.repository));let i=t.patterns;return void 0===i&&t.include&&(i=[{include:t.include}]),new hV(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,e._compilePatterns(i,n,r))}return t.while?new hX(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,e._compileCaptures(t.beginCaptures||t.captures,n,r),t.while,e._compileCaptures(t.whileCaptures||t.captures,n,r),e._compilePatterns(t.patterns,n,r)):new h$(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,e._compileCaptures(t.beginCaptures||t.captures,n,r),t.end,e._compileCaptures(t.endCaptures||t.captures,n,r),t.applyEndPatternLast,e._compilePatterns(t.patterns,n,r))}),t.id}static _compileCaptures(t,n,r){let i=[];if(t){let a=0;for(let e in t){if("$vscodeTextmateLocation"===e)continue;let t=parseInt(e,10);t>a&&(a=t)}for(let e=0;e<=a;e++)i[e]=null;for(let a in t){if("$vscodeTextmateLocation"===a)continue;let o=parseInt(a,10),s=0;t[a].patterns&&(s=e.getCompiledRuleId(t[a],n,r)),i[o]=e.createCaptureRule(n,t[a].$vscodeTextmateLocation,t[a].name,t[a].contentName,s)}}return i}static _compilePatterns(t,n,r){let i=[];if(t)for(let a=0,o=t.length;a<o;a++){let o=t[a],s=-1;if(o.include){let t=hF(o.include);switch(t.kind){case 0:case 1:s=e.getCompiledRuleId(r[o.include],n,r);break;case 2:let i=r[t.ruleName];i&&(s=e.getCompiledRuleId(i,n,r));break;case 3:case 4:let a=t.scopeName,l=4===t.kind?t.ruleName:null,c=n.getExternalGrammar(a,r);if(c)if(l){let t=c.repository[l];t&&(s=e.getCompiledRuleId(t,n,c.repository))}else s=e.getCompiledRuleId(c.repository.$self,n,c.repository)}}else s=e.getCompiledRuleId(o,n,r);if(-1!==s){let e=n.getRule(s),t=!1;if((e instanceof hV||e instanceof h$||e instanceof hX)&&e.hasMissingPatterns&&0===e.patterns.length&&(t=!0),t)continue;i.push(s)}}return{patterns:i,hasMissingPatterns:(t?t.length:0)!==i.length}}},hJ=class e{clone(){return new e(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,t){if("string"!=typeof this.source)throw Error("This method should only be called if the source is a string");let n=t.map(t=>e.substring(t.start,t.end));return hH.lastIndex=0,this.source.replace(hH,(e,t)=>hp(n[parseInt(t,10)]||""))}_buildAnchorCache(){let e,t,n,r;if("string"!=typeof this.source)throw Error("This method should only be called if the source is a string");let i=[],a=[],o=[],s=[];for(e=0,t=this.source.length;e<t;e++)n=this.source.charAt(e),i[e]=n,a[e]=n,o[e]=n,s[e]=n,"\\"===n&&e+1<t&&("A"===(r=this.source.charAt(e+1))?(i[e+1]="",a[e+1]="",o[e+1]="A",s[e+1]="A"):"G"===r?(i[e+1]="",a[e+1]="G",o[e+1]="",s[e+1]="G"):(i[e+1]=r,a[e+1]=r,o[e+1]=r,s[e+1]=r),e++);return{A0_G0:i.join(""),A0_G1:a.join(""),A1_G0:o.join(""),A1_G1:s.join("")}}resolveAnchors(e,t){if(!this.hasAnchor||!this._anchorCache||"string"!=typeof this.source)return this.source;if(e)if(t)return this._anchorCache.A1_G1;else return this._anchorCache.A1_G0;return t?this._anchorCache.A0_G1:this._anchorCache.A0_G0}constructor(e,t){if((0,V._)(this,"source",void 0),(0,V._)(this,"ruleId",void 0),(0,V._)(this,"hasAnchor",void 0),(0,V._)(this,"hasBackReferences",void 0),(0,V._)(this,"_anchorCache",void 0),e&&"string"==typeof e){let t=e.length,n=0,r=[],i=!1;for(let a=0;a<t;a++)if("\\"===e.charAt(a)&&a+1<t){let t=e.charAt(a+1);"z"===t?(r.push(e.substring(n,a)),r.push("$(?!\\n)(?<!\\n)"),n=a+2):("A"===t||"G"===t)&&(i=!0),a++}this.hasAnchor=i,0===n?this.source=e:(r.push(e.substring(n,t)),this.source=r.join(""))}else this.hasAnchor=!1,this.source=e;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=t,"string"==typeof this.source?this.hasBackReferences=hq.test(this.source):this.hasBackReferences=!1}},hZ=class{dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}unshift(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}length(){return this._items.length}setSource(e,t){this._items[e].source!==t&&(this._disposeCaches(),this._items[e].setSource(t))}compile(e){if(!this._cached){let t=this._items.map(e=>e.source);this._cached=new hK(e,t,this._items.map(e=>e.ruleId))}return this._cached}compileAG(e,t,n){if(!this._hasAnchors)return this.compile(e);if(t)if(n)return this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G1;else return this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G0;return n?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G0)}_resolveAnchors(e,t,n){return new hK(e,this._items.map(e=>e.resolveAnchors(t,n)),this._items.map(e=>e.ruleId))}constructor(){(0,V._)(this,"_items",void 0),(0,V._)(this,"_hasAnchors",void 0),(0,V._)(this,"_cached",void 0),(0,V._)(this,"_anchorCache",void 0),this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}},hK=class{dispose(){"function"==typeof this.scanner.dispose&&this.scanner.dispose()}toString(){let e=[];for(let t=0,n=this.rules.length;t<n;t++)e.push(" - "+this.rules[t]+": "+this.regExps[t]);return e.join("\n")}findNextMatchSync(e,t,n){let r=this.scanner.findNextMatchSync(e,t,n);return r?{ruleId:this.rules[r.index],captureIndices:r.captureIndices}:null}constructor(e,t,n){(0,V._)(this,"scanner",void 0),this.regExps=t,this.rules=n,this.scanner=e.createOnigScanner(t)}},hQ=class{constructor(e,t){this.languageId=e,this.tokenType=t}},h0=(s=class e{getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(t){return null===t?e._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(t)}_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(t){let n=t.match(e.STANDARD_TOKEN_TYPE_REGEXP);if(!n)return 8;switch(n[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw Error("Unexpected match for standard token type!")}constructor(e,t){(0,V._)(this,"_defaultAttributes",void 0),(0,V._)(this,"_embeddedLanguagesMatcher",void 0),(0,V._)(this,"_getBasicScopeAttributes",new hd(e=>new hQ(this._scopeToLanguage(e),this._toStandardTokenType(e)))),this._defaultAttributes=new hQ(e,8),this._embeddedLanguagesMatcher=new h1(Object.entries(t||{}))}},(0,V._)(s,"_NULL_SCOPE_METADATA",new hQ(0,0)),(0,V._)(s,"STANDARD_TOKEN_TYPE_REGEXP",/\b(comment|string|regex|meta\.embedded)\b/),s),h1=class{match(e){if(!this.scopesRegExp)return;let t=e.match(this.scopesRegExp);if(t)return this.values.get(t[1])}constructor(e){if((0,V._)(this,"values",void 0),(0,V._)(this,"scopesRegExp",void 0),0===e.length)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);let t=e.map(e=>{let[t,n]=e;return hp(t)});t.sort(),t.reverse(),this.scopesRegExp=RegExp("^((".concat(t.join(")|("),"))($|\\.)"),"")}}};void 0!==S.default&&S.default.env.VSCODE_TEXTMATE_DEBUG;var h4=class{constructor(e,t){this.stack=e,this.stoppedEarly=t}};function h5(e,t,n,r,i,a,o,s){let l=t.content.length,c=!1,u=-1;if(o){let o=function(e,t,n,r,i,a){let o=i.beginRuleCapturedEOL?0:-1,s=[];for(let t=i;t;t=t.pop()){let n=t.getRule(e);n instanceof hX&&s.push({rule:n,stack:t})}for(let d=s.pop();d;d=s.pop()){var l,c,u,h,p;let{ruleScanner:s,findOptions:m}=(l=d.rule,c=e,u=d.stack.endRule,h=n,p=r===o,{ruleScanner:l.compileWhileAG(c,u,h,p),findOptions:0}),f=s.findNextMatchSync(t,r,m);if(f){if(-2!==f.ruleId){i=d.stack.pop();break}f.captureIndices&&f.captureIndices.length&&(a.produce(d.stack,f.captureIndices[0].start),h3(e,t,n,d.stack,a,d.rule.whileCaptures,f.captureIndices),a.produce(d.stack,f.captureIndices[0].end),o=f.captureIndices[0].end,f.captureIndices[0].end>r&&(r=f.captureIndices[0].end,n=!1))}else{i=d.stack.pop();break}}return{stack:i,linePos:r,anchorPosition:o,isFirstLine:n}}(e,t,n,r,i,a);i=o.stack,r=o.linePos,n=o.isFirstLine,u=o.anchorPosition}let h=Date.now();for(;!c;){if(0!==s&&Date.now()-h>s)return new h4(i,!0);!function(){let o=function(e,t,n,r,i,a){let o=function(e,t,n,r,i,a){let{ruleScanner:o,findOptions:s}=h6(i.getRule(e),e,i.endRule,n,r===a),l=o.findNextMatchSync(t,r,s);return l?{captureIndices:l.captureIndices,matchedRuleId:l.ruleId}:null}(e,t,n,r,i,a),s=e.getInjections();if(0===s.length)return o;let l=function(e,t,n,r,i,a,o){let s,l=Number.MAX_VALUE,c=null,u=0,h=a.contentNameScopesList.getScopeNames();for(let a=0,p=e.length;a<p;a++){let p=e[a];if(!p.matcher(h))continue;let{ruleScanner:d,findOptions:m}=h6(t.getRule(p.ruleId),t,null,r,i===o),f=d.findNextMatchSync(n,i,m);if(!f)continue;let g=f.captureIndices[0].start;if(!(g>=l)&&(l=g,c=f.captureIndices,s=f.ruleId,u=p.priority,l===i))break}return c?{priorityMatch:-1===u,captureIndices:c,matchedRuleId:s}:null}(s,e,t,n,r,i,a);if(!l)return o;if(!o)return l;let c=o.captureIndices[0].start,u=l.captureIndices[0].start;return u<c||l.priorityMatch&&u===c?l:o}(e,t,n,r,i,u);if(!o){a.produce(i,l),c=!0;return}let s=o.captureIndices,h=o.matchedRuleId,p=!!s&&s.length>0&&s[0].end>r;if(-1===h){let o=i.getRule(e);a.produce(i,s[0].start),i=i.withContentNameScopesList(i.nameScopesList),h3(e,t,n,i,a,o.endCaptures,s),a.produce(i,s[0].end);let h=i;if(i=i.parent,u=h.getAnchorPos(),!p&&h.getEnterPos()===r){i=h,a.produce(i,l),c=!0;return}}else{let o=e.getRule(h);a.produce(i,s[0].start);let d=i,m=o.getName(t.content,s),f=i.contentNameScopesList.pushAttributed(m,e);if(i=i.push(h,r,u,s[0].end===l,null,f,f),o instanceof h$){h3(e,t,n,i,a,o.beginCaptures,s),a.produce(i,s[0].end),u=s[0].end;let r=o.getContentName(t.content,s),h=f.pushAttributed(r,e);if(i=i.withContentNameScopesList(h),o.endHasBackReferences&&(i=i.withEndRule(o.getEndWithResolvedBackReferences(t.content,s))),!p&&d.hasSameRuleAs(i)){i=i.pop(),a.produce(i,l),c=!0;return}}else if(o instanceof hX){h3(e,t,n,i,a,o.beginCaptures,s),a.produce(i,s[0].end),u=s[0].end;let r=o.getContentName(t.content,s),h=f.pushAttributed(r,e);if(i=i.withContentNameScopesList(h),o.whileHasBackReferences&&(i=i.withEndRule(o.getWhileWithResolvedBackReferences(t.content,s))),!p&&d.hasSameRuleAs(i)){i=i.pop(),a.produce(i,l),c=!0;return}}else if(h3(e,t,n,i,a,o.captures,s),a.produce(i,s[0].end),i=i.pop(),!p){i=i.safePop(),a.produce(i,l),c=!0;return}}s[0].end>r&&(r=s[0].end,n=!1)}()}return new h4(i,!1)}function h6(e,t,n,r,i){return{ruleScanner:e.compileAG(t,n,r,i),findOptions:0}}function h3(e,t,n,r,i,a,o){if(0===a.length)return;let s=t.content,l=Math.min(a.length,o.length),c=[],u=o[0].end;for(let t=0;t<l;t++){let l=a[t];if(null===l)continue;let h=o[t];if(0===h.length)continue;if(h.start>u)break;for(;c.length>0&&c[c.length-1].endPos<=h.start;)i.produceFromScopes(c[c.length-1].scopes,c[c.length-1].endPos),c.pop();if(c.length>0?i.produceFromScopes(c[c.length-1].scopes,h.start):i.produce(r,h.start),l.retokenizeCapturedWithRuleId){let t=l.getName(s,o),a=r.contentNameScopesList.pushAttributed(t,e),c=l.getContentName(s,o),u=a.pushAttributed(c,e),p=r.push(l.retokenizeCapturedWithRuleId,h.start,-1,!1,null,a,u),d=e.createOnigString(s.substring(0,h.end));h5(e,d,n&&0===h.start,h.start,p,i,!1,0),h_(d);continue}let p=l.getName(s,o);if(null!==p){let t=(c.length>0?c[c.length-1].scopes:r.contentNameScopesList).pushAttributed(p,e);c.push(new h2(t,h.end))}}for(;c.length>0;)i.produceFromScopes(c[c.length-1].scopes,c[c.length-1].endPos),c.pop()}var h2=class{constructor(e,t){(0,V._)(this,"scopes",void 0),(0,V._)(this,"endPos",void 0),this.scopes=e,this.endPos=t}};function h7(e,t,n,r,i){let a=hA(t,h8),o=hY.getCompiledRuleId(n,r,i.repository);for(let n of a)e.push({debugSelector:t,matcher:n.matcher,ruleId:o,grammar:i,priority:n.priority})}function h8(e,t){if(t.length<e.length)return!1;let n=0;return e.every(e=>{for(let r=n;r<t.length;r++)if(function(e,t){if(!e)return!1;if(e===t)return!0;let n=t.length;return e.length>n&&e.substr(0,n)===t&&"."===e[n]}(t[r],e))return n=r+1,!0;return!1})}var h9=class{get themeProvider(){return this._grammarRepository}dispose(){for(let e of this._ruleId2desc)e&&e.dispose()}createOnigScanner(e){return this._onigLib.createOnigScanner(e)}createOnigString(e){return this._onigLib.createOnigString(e)}getMetadataForScope(e){return this._basicScopeAttributesProvider.getBasicScopeAttributes(e)}_collectInjections(){let e=[],t=this._rootScopeName,n=({lookup:e=>e===this._rootScopeName?this._grammar:this.getExternalGrammar(e),injections:e=>this._grammarRepository.injections(e)}).lookup(t);if(n){let r=n.injections;if(r)for(let t in r)h7(e,t,r[t],this,n);let i=this._grammarRepository.injections(t);i&&i.forEach(t=>{let n=this.getExternalGrammar(t);if(n){let t=n.injectionSelector;t&&h7(e,t,n,this,n)}})}return e.sort((e,t)=>e.priority-t.priority),e}getInjections(){return null===this._injections&&(this._injections=this._collectInjections()),this._injections}registerRule(e){let t=++this._lastRuleId,n=e(t);return this._ruleId2desc[t]=n,n}getRule(e){return this._ruleId2desc[e]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){let n=this._grammarRepository.lookup(e);if(n)return this._includedGrammars[e]=pe(n,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=this._tokenize(e,t,!1,n);return{tokens:r.lineTokens.getResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}tokenizeLine2(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=this._tokenize(e,t,!0,n);return{tokens:r.lineTokens.getBinaryResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}_tokenize(e,t,n,r){let i;if(-1===this._rootId&&(this._rootId=hY.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections()),t&&t!==pn.NULL)i=!1,t.reset();else{let e;i=!0;let n=this._basicScopeAttributesProvider.getDefaultAttributes(),r=this.themeProvider.getDefaults(),a=hS.set(0,n.languageId,n.tokenType,null,r.fontStyle,r.foregroundId,r.backgroundId),o=this.getRule(this._rootId).getName(null,null);e=o?pt.createRootAndLookUpScopeName(o,a,this):pt.createRoot("unknown",a),t=new pn(null,this._rootId,-1,-1,!1,null,e,e)}e+="\n";let a=this.createOnigString(e),o=a.content.length,s=new pi(n,e,this._tokenTypeMatchers,this.balancedBracketSelectors),l=h5(this,a,i,0,t,s,!0,r);return h_(a),{lineLength:o,lineTokens:s,ruleStack:l.stack,stoppedEarly:l.stoppedEarly}}constructor(e,t,n,r,i,a,o,s){if((0,V._)(this,"_rootId",void 0),(0,V._)(this,"_lastRuleId",void 0),(0,V._)(this,"_ruleId2desc",void 0),(0,V._)(this,"_includedGrammars",void 0),(0,V._)(this,"_grammarRepository",void 0),(0,V._)(this,"_grammar",void 0),(0,V._)(this,"_injections",void 0),(0,V._)(this,"_basicScopeAttributesProvider",void 0),(0,V._)(this,"_tokenTypeMatchers",void 0),this._rootScopeName=e,this.balancedBracketSelectors=a,this._onigLib=s,this._basicScopeAttributesProvider=new h0(n,r),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=o,this._grammar=pe(t,null),this._injections=null,this._tokenTypeMatchers=[],i)for(let e of Object.keys(i))for(let t of hA(e,h8))this._tokenTypeMatchers.push({matcher:t.matcher,type:i[e]})}};function pe(e,t){return(e=function e(t){return Array.isArray(t)?function(t){let n=[];for(let r=0,i=t.length;r<i;r++)n[r]=e(t[r]);return n}(t):t instanceof RegExp?t:"object"==typeof t?function(t){let n={};for(let r in t)n[r]=e(t[r]);return n}(t):t}(e)).repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=t||e.repository.$self,e}var pt=class e{static fromExtension(t,n){var r;let i=t,a=null!=(r=null==t?void 0:t.scopePath)?r:null;for(let t of n)i=new e(i,a=hf.push(a,t.scopeNames),t.encodedTokenAttributes);return i}static createRoot(t,n){return new e(null,new hf(null,t),n)}static createRootAndLookUpScopeName(t,n,r){let i=r.getMetadataForScope(t),a=new hf(null,t),o=r.themeProvider.themeMatch(a),s=e.mergeAttributes(n,i,o);return new e(null,a,s)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(t){return e.equals(this,t)}static equals(e,t){for(;;){if(e===t||!e&&!t)return!0;if(!e||!t||e.scopeName!==t.scopeName||e.tokenAttributes!==t.tokenAttributes)return!1;e=e.parent,t=t.parent}}static mergeAttributes(e,t,n){let r=-1,i=0,a=0;return null!==n&&(r=n.fontStyle,i=n.foregroundId,a=n.backgroundId),hS.set(e,t.languageId,t.tokenType,null,r,i,a)}pushAttributed(t,n){if(null===t)return this;if(-1===t.indexOf(" "))return e._pushAttributed(this,t,n);let r=t.split(/ /g),i=this;for(let t of r)i=e._pushAttributed(i,t,n);return i}static _pushAttributed(t,n,r){let i=r.getMetadataForScope(n),a=t.scopePath.push(n),o=r.themeProvider.themeMatch(a),s=e.mergeAttributes(t.tokenAttributes,i,o);return new e(t,a,s)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(e){let t=[],n=this;for(;n&&n!==e;){var r,i;t.push({encodedTokenAttributes:n.tokenAttributes,scopeNames:n.scopePath.getExtensionIfDefined(null!=(i=null==(r=n.parent)?void 0:r.scopePath)?i:null)}),n=n.parent}return n===e?t.reverse():void 0}constructor(e,t,n){this.parent=e,this.scopePath=t,this.tokenAttributes=n}},pn=(l=class e{equals(t){return null!==t&&e._equals(this,t)}static _equals(e,t){return e===t||!!this._structuralEquals(e,t)&&pt.equals(e.contentNameScopesList,t.contentNameScopesList)}static _structuralEquals(e,t){for(;;){if(e===t||!e&&!t)return!0;if(!e||!t||e.depth!==t.depth||e.ruleId!==t.ruleId||e.endRule!==t.endRule)return!1;e=e.parent,t=t.parent}}clone(){return this}static _reset(e){for(;e;)e._enterPos=-1,e._anchorPos=-1,e=e.parent}reset(){e._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(t,n,r,i,a,o,s){return new e(this,t,n,r,i,a,o,s)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(e){return e.getRule(this.ruleId)}toString(){let e=[];return this._writeString(e,0),"["+e.join(",")+"]"}_writeString(e,t){var n,r;return this.parent&&(t=this.parent._writeString(e,t)),e[t++]="(".concat(this.ruleId,", ").concat(null==(n=this.nameScopesList)?void 0:n.toString(),", ").concat(null==(r=this.contentNameScopesList)?void 0:r.toString(),")"),t}withContentNameScopesList(e){return this.contentNameScopesList===e?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,e)}withEndRule(t){return this.endRule===t?this:new e(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,t,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(e){let t=this;for(;t&&t._enterPos===e._enterPos;){if(t.ruleId===e.ruleId)return!0;t=t.parent}return!1}toStateStackFrame(){var e,t,n,r,i,a;return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:null!=(i=null==(t=this.nameScopesList)?void 0:t.getExtensionIfDefined(null!=(r=null==(e=this.parent)?void 0:e.nameScopesList)?r:null))?i:[],contentNameScopesList:null!=(a=null==(n=this.contentNameScopesList)?void 0:n.getExtensionIfDefined(this.nameScopesList))?a:[]}}static pushFrame(t,n){var r,i,a;let o=pt.fromExtension(null!=(r=null==t?void 0:t.nameScopesList)?r:null,n.nameScopesList);return new e(t,n.ruleId,null!=(i=n.enterPos)?i:-1,null!=(a=n.anchorPos)?a:-1,n.beginRuleCapturedEOL,n.endRule,o,pt.fromExtension(o,n.contentNameScopesList))}constructor(e,t,n,r,i,a,o,s){(0,V._)(this,"_stackElementBrand",void 0),(0,V._)(this,"_enterPos",void 0),(0,V._)(this,"_anchorPos",void 0),(0,V._)(this,"depth",void 0),this.parent=e,this.ruleId=t,this.beginRuleCapturedEOL=i,this.endRule=a,this.nameScopesList=o,this.contentNameScopesList=s,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=n,this._anchorPos=r}},(0,V._)(l,"NULL",new l(null,0,0,0,!1,null,null,null)),l),pr=class{get matchesAlways(){return this.allowAny&&0===this.unbalancedBracketScopes.length}get matchesNever(){return 0===this.balancedBracketScopes.length&&!this.allowAny}match(e){for(let t of this.unbalancedBracketScopes)if(t(e))return!1;for(let t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}constructor(e,t){(0,V._)(this,"balancedBracketScopes",void 0),(0,V._)(this,"unbalancedBracketScopes",void 0),(0,V._)(this,"allowAny",!1),this.balancedBracketScopes=e.flatMap(e=>"*"===e?(this.allowAny=!0,[]):hA(e,h8).map(e=>e.matcher)),this.unbalancedBracketScopes=t.flatMap(e=>hA(e,h8).map(e=>e.matcher))}},pi=class{produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){var n,r,i,a;if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let a=null!=(r=null==e?void 0:e.tokenAttributes)?r:0,o=!1;if((null==(n=this.balancedBracketSelectors)?void 0:n.matchesAlways)&&(o=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){let t=null!=(i=null==e?void 0:e.getScopeNames())?i:[];for(let e of this._tokenTypeOverrides)e.matcher(t)&&(a=hS.set(a,0,e.type,null,-1,0,0));this.balancedBracketSelectors&&(o=this.balancedBracketSelectors.match(t))}if(o&&(a=hS.set(a,0,8,o,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===a){this._lastTokenEndIndex=t;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(a),this._lastTokenEndIndex=t;return}let o=null!=(a=null==e?void 0:e.getScopeNames())?a:[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:o}),this._lastTokenEndIndex=t}getResult(e,t){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===t-1&&this._tokens.pop(),0===this._tokens.length&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(e,t){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===t-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),0===this._binaryTokens.length&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._binaryTokens[this._binaryTokens.length-2]=0);let n=new Uint32Array(this._binaryTokens.length);for(let e=0,t=this._binaryTokens.length;e<t;e++)n[e]=this._binaryTokens[e];return n}constructor(e,t,n,r){(0,V._)(this,"_emitBinaryTokens",void 0),(0,V._)(this,"_lineText",void 0),(0,V._)(this,"_tokens",void 0),(0,V._)(this,"_binaryTokens",void 0),(0,V._)(this,"_lastTokenEndIndex",void 0),(0,V._)(this,"_tokenTypeOverrides",void 0),this.balancedBracketSelectors=r,this._emitBinaryTokens=e,this._tokenTypeOverrides=n,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}},pa=class{dispose(){for(let e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,t){this._rawGrammars.set(e.scopeName,e),t&&this._injectionGrammars.set(e.scopeName,t)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}grammarForScopeName(e,t,n,r,i){if(!this._grammars.has(e)){let a=this._rawGrammars.get(e);if(!a)return null;this._grammars.set(e,new h9(e,a,t,n,r,i,this,this._onigLib))}return this._grammars.get(e)}constructor(e,t){(0,V._)(this,"_grammars",new Map),(0,V._)(this,"_rawGrammars",new Map),(0,V._)(this,"_injectionGrammars",new Map),(0,V._)(this,"_theme",void 0),this._onigLib=t,this._theme=e}},po=class{dispose(){this._syncRegistry.dispose()}setTheme(e,t){this._syncRegistry.setTheme(hm.createFromRawTheme(e,t))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(e,t,n){return this.loadGrammarWithConfiguration(e,t,{embeddedLanguages:n})}loadGrammarWithConfiguration(e,t,n){return this._loadGrammar(e,t,n.embeddedLanguages,n.tokenTypes,new pr(n.balancedBracketSelectors||[],n.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}_loadGrammar(e,t,n,r,i){let a=new hz(this._syncRegistry,e);for(;a.Q.length>0;)a.Q.map(e=>this._loadSingleGrammar(e.scopeName)),a.processQueue();return this._grammarForScopeName(e,t,n,r,i)}_loadSingleGrammar(e){this._ensureGrammarCache.has(e)||(this._doLoadSingleGrammar(e),this._ensureGrammarCache.set(e,!0))}_doLoadSingleGrammar(e){let t=this._options.loadGrammar(e);if(t){let n="function"==typeof this._options.getInjections?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(t,n)}}addGrammar(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return this._syncRegistry.addGrammar(e,t),this._grammarForScopeName(e.scopeName,n,r)}_grammarForScopeName(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;return this._syncRegistry.grammarForScopeName(e,t,n,r,i)}constructor(e){(0,V._)(this,"_options",void 0),(0,V._)(this,"_syncRegistry",void 0),(0,V._)(this,"_ensureGrammarCache",void 0),this._options=e,this._syncRegistry=new pa(hm.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}},ps=pn.NULL;function pl(e,t){let n="string"==typeof e?{}:{...e.colorReplacements},r="string"==typeof e?e:e.name;for(let[e,i]of Object.entries((null==t?void 0:t.colorReplacements)||{}))"string"==typeof i?n[e]=i:e===r&&Object.assign(n,i);return n}function pc(e,t){return e&&(null==t?void 0:t[null==e?void 0:e.toLowerCase()])||e}async function pu(e){return Promise.resolve("function"==typeof e?e():e).then(e=>e.default||e)}function ph(e){return!e||["plaintext","txt","text","plain"].includes(e)}function pp(e){return"ansi"===e||ph(e)}function pd(e){return"none"===e}function pm(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(0===e.length)return[["",0]];let n=e.split(/(\r?\n)/g),r=0,i=[];for(let e=0;e<n.length;e+=2){var a;let o=t?n[e]+(n[e+1]||""):n[e];i.push([o,r]),r+=n[e].length,r+=(null==(a=n[e+1])?void 0:a.length)||0}return i}let pf={light:"#333333",dark:"#bbbbbb"},pg={light:"#fffffe",dark:"#1e1e1e"},py="__shiki_resolved";function pb(e){var t,n,r,i,a;if(null==e?void 0:e[py])return e;let o={...e};o.tokenColors&&!o.settings&&(o.settings=o.tokenColors,delete o.tokenColors),o.type||(o.type="dark"),o.colorReplacements={...o.colorReplacements},o.settings||(o.settings=[]);let{bg:s,fg:l}=o;if(!s||!l){let e=o.settings?o.settings.find(e=>!e.name&&!e.scope):void 0;(null==e||null==(t=e.settings)?void 0:t.foreground)&&(l=e.settings.foreground),(null==e||null==(n=e.settings)?void 0:n.background)&&(s=e.settings.background),!l&&(null==o||null==(r=o.colors)?void 0:r["editor.foreground"])&&(l=o.colors["editor.foreground"]),!s&&(null==o||null==(i=o.colors)?void 0:i["editor.background"])&&(s=o.colors["editor.background"]),l||(l="light"===o.type?pf.light:pf.dark),s||(s="light"===o.type?pg.light:pg.dark),o.fg=l,o.bg=s}o.settings[0]&&o.settings[0].settings&&!o.settings[0].scope||o.settings.unshift({settings:{foreground:o.fg,background:o.bg}});let c=0,u=new Map;function h(e){var t;if(u.has(e))return u.get(e);c+=1;let n="#".concat(c.toString(16).padStart(8,"0").toLowerCase());return(null==(t=o.colorReplacements)?void 0:t["#".concat(n)])?h(e):(u.set(e,n),n)}for(let e of(o.settings=o.settings.map(e=>{var t,n;let r=(null==(t=e.settings)?void 0:t.foreground)&&!e.settings.foreground.startsWith("#"),i=(null==(n=e.settings)?void 0:n.background)&&!e.settings.background.startsWith("#");if(!r&&!i)return e;let a={...e,settings:{...e.settings}};if(r){let t=h(e.settings.foreground);o.colorReplacements[t]=e.settings.foreground,a.settings.foreground=t}if(i){let t=h(e.settings.background);o.colorReplacements[t]=e.settings.background,a.settings.background=t}return a}),Object.keys(o.colors||{})))if(("editor.foreground"===e||"editor.background"===e||e.startsWith("terminal.ansi"))&&!(null==(a=o.colors[e])?void 0:a.startsWith("#"))){let t=h(o.colors[e]);o.colorReplacements[t]=o.colors[e],o.colors[e]=t}return Object.defineProperty(o,py,{enumerable:!1,writable:!1,value:!0}),o}async function pv(e){return Array.from(new Set((await Promise.all(e.filter(e=>!pp(e)).map(async e=>await pu(e).then(e=>Array.isArray(e)?e:[e])))).flat()))}async function px(e){return(await Promise.all(e.map(async e=>pd(e)?null:pb(await pu(e))))).filter(e=>!!e)}function pk(e,t){if(!t)return e;if(t[e]){let n=new Set([e]);for(;t[e];){if(e=t[e],n.has(e))throw new ho("Circular alias `".concat(Array.from(n).join(" -> ")," -> ").concat(e,"`"));n.add(e)}}return e}var pw=class extends po{getTheme(e){return"string"==typeof e?this._resolvedThemes.get(e):this.loadTheme(e)}loadTheme(e){let t=pb(e);return t.name&&(this._resolvedThemes.set(t.name,t),this._loadedThemesCache=null),t}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(e){let t=this._textmateThemeCache.get(e);t||(t=hm.createFromRawTheme(e),this._textmateThemeCache.set(e,t)),this._syncRegistry.setTheme(t)}getGrammar(e){return e=pk(e,this._alias),this._resolvedGrammars.get(e)}loadLanguage(e){if(this.getGrammar(e.name))return;let t=new Set([...this._langMap.values()].filter(t=>{var n;return null==(n=t.embeddedLangsLazy)?void 0:n.includes(e.name)}));this._resolver.addLanguage(e);let n={balancedBracketSelectors:e.balancedBracketSelectors||["*"],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(e.scopeName,e);let r=this.loadGrammarWithConfiguration(e.scopeName,1,n);if(r.name=e.name,this._resolvedGrammars.set(e.name,r),e.aliases&&e.aliases.forEach(t=>{this._alias[t]=e.name}),this._loadedLanguagesCache=null,t.size)for(let e of t){var i,a,o,s;this._resolvedGrammars.delete(e.name),this._loadedLanguagesCache=null,null==(a=this._syncRegistry)||null==(i=a._injectionGrammars)||i.delete(e.scopeName),null==(s=this._syncRegistry)||null==(o=s._grammars)||o.delete(e.scopeName),this.loadLanguage(this._langMap.get(e.name))}}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(e){for(let t of e)this.resolveEmbeddedLanguages(t);let t=Array.from(this._langGraph.entries()),n=t.filter(e=>{let[t,n]=e;return!n});if(n.length){let e=t.filter(e=>{var t;let[r,i]=e;return!!i&&(null==(t=i.embeddedLanguages||i.embeddedLangs)?void 0:t.some(e=>n.map(e=>{let[t]=e;return t}).includes(e)))}).filter(e=>!n.includes(e));throw new ho("Missing languages ".concat(n.map(e=>{let[t]=e;return"`".concat(t,"`")}).join(", "),", required by ").concat(e.map(e=>{let[t]=e;return"`".concat(t,"`")}).join(", ")))}for(let[e,n]of t)this._resolver.addLanguage(n);for(let[e,n]of t)this.loadLanguage(n)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(e){var t;this._langMap.set(e.name,e),this._langGraph.set(e.name,e);let n=null!=(t=e.embeddedLanguages)?t:e.embeddedLangs;if(n)for(let e of n)this._langGraph.set(e,this._langMap.get(e))}constructor(e,t,n,r={}){super(e),(0,V._)(this,"_resolvedThemes",new Map),(0,V._)(this,"_resolvedGrammars",new Map),(0,V._)(this,"_langMap",new Map),(0,V._)(this,"_langGraph",new Map),(0,V._)(this,"_textmateThemeCache",new WeakMap),(0,V._)(this,"_loadedThemesCache",null),(0,V._)(this,"_loadedLanguagesCache",null),this._resolver=e,this._themes=t,this._langs=n,this._alias=r,this._themes.map(e=>this.loadTheme(e)),this.loadLanguages(this._langs)}},pS=class{get onigLib(){return this._onigLib}getLangRegistration(e){return this._langs.get(e)}loadGrammar(e){return this._scopeToLang.get(e)}addLanguage(e){this._langs.set(e.name,e),e.aliases&&e.aliases.forEach(t=>{this._langs.set(t,e)}),this._scopeToLang.set(e.scopeName,e),e.injectTo&&e.injectTo.forEach(t=>{this._injections.get(t)||this._injections.set(t,[]),this._injections.get(t).push(e.scopeName)})}getInjections(e){let t=e.split("."),n=[];for(let e=1;e<=t.length;e++){let r=t.slice(0,e).join(".");n=[...n,...this._injections.get(r)||[]]}return n}constructor(e,t){(0,V._)(this,"_langs",new Map),(0,V._)(this,"_scopeToLang",new Map),(0,V._)(this,"_injections",new Map),(0,V._)(this,"_onigLib",void 0),this._onigLib={createOnigScanner:t=>e.createScanner(t),createOnigString:t=>e.createString(t)},t.forEach(e=>this.addLanguage(e))}};let pA=0;async function pC(e){e.engine||console.warn("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");let[t,n,r]=await Promise.all([px(e.themes||[]),pv(e.langs||[]),e.engine]);return function(e){let t;pA+=1,!1!==e.warnings&&pA>=10&&pA%10==0&&console.warn("[Shiki] ".concat(pA," instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call `highlighter.dispose()` to release unused instances."));let n=!1;if(!e.engine)throw new ho("`engine` option is required for synchronous mode");let r=(e.langs||[]).flat(1),i=(e.themes||[]).flat(1).map(pb),a=new pw(new pS(e.engine,r),i,r,e.langAlias);function o(e){if("none"===e)return{bg:"",fg:"",name:"none",settings:[],type:"dark"};c();let t=a.getTheme(e);if(!t)throw new ho("Theme `".concat(e,"` not found, you may need to load it first"));return t}function s(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];c(),a.loadLanguages(t.flat(1))}function l(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];for(let e of(c(),t.flat(1)))a.loadTheme(e)}function c(){if(n)throw new ho("Shiki instance has been disposed")}function u(){n||(n=!0,a.dispose(),pA-=1)}return{setTheme:function(e){c();let n=o(e);return t!==e&&(a.setTheme(n),t=e),{theme:n,colorMap:a.getColorMap()}},getTheme:o,getLanguage:function(e){c();let t=a.getGrammar("string"==typeof e?e:e.name);if(!t)throw new ho("Language `".concat(e,"` not found, you may need to load it first"));return t},getLoadedThemes:function(){return c(),a.getLoadedThemes()},getLoadedLanguages:function(){return c(),a.getLoadedLanguages()},resolveLangAlias:function(t){return pk(t,e.langAlias)},loadLanguage:async function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return s(await pv(t))},loadLanguageSync:s,loadTheme:async function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return c(),l(await px(t))},loadThemeSync:l,dispose:u,[Symbol.dispose]:u}}({...e,themes:t,langs:n,engine:r})}let pT=new WeakMap;function p_(e,t){pT.set(e,t)}function pM(e){return pT.get(e)}var pN=class e{get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(t,n){return new e(Object.fromEntries((Array.isArray(n)?n:[n]).map(e=>[e,ps])),t)}getInternalStack(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.theme;return this._stacks[e]}getScopes(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.theme;var t=this._stacks[e];let n=[],r=new Set;return!function e(t){var i;if(r.has(t))return;r.add(t);let a=null==t||null==(i=t.nameScopesList)?void 0:i.scopeName;a&&n.push(a),t.parent&&e(t.parent)}(t),n}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}constructor(...e){if((0,V._)(this,"_stacks",{}),(0,V._)(this,"lang",void 0),2===e.length){let[t,n]=e;this.lang=n,this._stacks=t}else{let[t,n,r]=e;this.lang=n,this._stacks={[r]:t}}}};function pE(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{theme:r=e.getLoadedThemes()[0]}=n;if(ph(e.resolveLangAlias(n.lang||"text"))||pd(r))return pm(t).map(e=>[{content:e[0],offset:e[1]}]);let{theme:i,colorMap:a}=e.setTheme(r),o=e.getLanguage(n.lang||"text");if(n.grammarState){if(n.grammarState.lang!==o.name)throw new ho('Grammar state language "'.concat(n.grammarState.lang,'" does not match highlight language "').concat(o.name,'"'));if(!n.grammarState.themes.includes(i.name))throw new ho('Grammar state themes "'.concat(n.grammarState.themes,'" do not contain highlight theme "').concat(i.name,'"'))}var s=t,l=o,c=i,u=a,h=n;let p=pz(s,l,c,u,h),d=new pN(p.stateStack,l.name,c.name);return p_(p.tokens,d),p.tokens}function pz(e,t,n,r,i){var a;let o=pl(n,i),{tokenizeMaxLineLength:s=0,tokenizeTimeLimit:l=500}=i,c=pm(e),u=i.grammarState?null!=(a=function(e,t){if(!(e instanceof pN))throw new ho("Invalid grammar state");return e.getInternalStack(t)}(i.grammarState,n.name))?a:ps:null!=i.grammarContextCode?pz(i.grammarContextCode,t,n,r,{...i,grammarState:void 0,grammarContextCode:void 0}).stateStack:ps,h=[],p=[];for(let e=0,a=c.length;e<a;e++){let a,d,[m,f]=c[e];if(""===m){h=[],p.push([]);continue}if(s>0&&m.length>=s){h=[],p.push([{content:m,offset:f,color:"",fontStyle:0}]);continue}i.includeExplanation&&(a=t.tokenizeLine(m,u,l).tokens,d=0);let g=t.tokenizeLine2(m,u,l),y=g.tokens.length/2;for(let e=0;e<y;e++){let t=g.tokens[2*e],s=e+1<y?g.tokens[2*e+2]:m.length;if(t===s)continue;let l=g.tokens[2*e+1],c=pc(r[hS.getForeground(l)],o),u=hS.getFontStyle(l),p={content:m.substring(t,s),offset:f+t,color:c,fontStyle:u};if(i.includeExplanation){let e=[];if("scopeName"!==i.includeExplanation)for(let t of n.settings){let n;switch(typeof t.scope){case"string":n=t.scope.split(/,/).map(e=>e.trim());break;case"object":n=t.scope;break;default:continue}e.push({settings:t,selectors:n.map(e=>e.split(/ /))})}p.explanation=[];let r=0;for(;t+r<s;){let t=a[d],n=m.substring(t.startIndex,t.endIndex);r+=n.length,p.explanation.push({content:n,scopes:"scopeName"===i.includeExplanation?t.scopes.map(e=>({scopeName:e})):function(e,t){let n=[];for(let r=0,i=t.length;r<i;r++){let i=t[r];n[r]={scopeName:i,themeMatches:function(e,t,n){let r=[];for(let{selectors:i,settings:a}of e)for(let e of i)if(function(e,t,n){if(!pI(e[e.length-1],t))return!1;let r=e.length-2,i=n.length-1;for(;r>=0&&i>=0;)pI(e[r],n[i])&&(r-=1),i-=1;return -1===r}(e,t,n)){r.push(a);break}return r}(e,i,t.slice(0,r))}}return n}(e,t.scopes)}),d+=1}}h.push(p)}p.push(h),h=[],u=g.ruleStack}return{tokens:p,stateStack:u}}function pI(e,t){return e===t||t.substring(0,e.length)===e&&"."===t[e.length]}function pj(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:pE,i=Object.entries(n.themes).filter(e=>e[1]).map(e=>({color:e[0],theme:e[1]})),a=i.map(i=>{let a=r(e,t,{...n,theme:i.theme});return{tokens:a,state:pM(a),theme:"string"==typeof i.theme?i.theme:i.theme.name}}),o=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];let r=t.map(()=>[]),i=t.length;for(let e=0;e<t[0].length;e++){let n=t.map(t=>t[e]),a=r.map(()=>[]);r.forEach((e,t)=>e.push(a[t]));let o=n.map(()=>0),s=n.map(e=>e[0]);for(;s.every(e=>e);){let e=Math.min(...s.map(e=>e.content.length));for(let t=0;t<i;t++){let r=s[t];r.content.length===e?(a[t].push(r),o[t]+=1,s[t]=n[t][o[t]]):(a[t].push({...r,content:r.content.slice(0,e)}),s[t]={...r,content:r.content.slice(e),offset:r.offset+e})}}}return r}(...a.map(e=>e.tokens)),s=o[0].map((e,t)=>e.map((e,r)=>{let a={content:e.content,variants:{},offset:e.offset};return"includeExplanation"in n&&n.includeExplanation&&(a.explanation=e.explanation),o.forEach((e,n)=>{let{content:o,explanation:s,offset:l,...c}=e[t][r];a.variants[i[n].color]=c}),a})),l=a[0].state?new pN(Object.fromEntries(a.map(e=>{var t;return[e.theme,null==(t=e.state)?void 0:t.getInternalStack(e.theme)]})),a[0].state.lang):void 0;return l&&p_(s,l),s}let pR=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],pL={}.hasOwnProperty,pP=/["&'<>`]/g,pB=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,pO=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,pD=/[|\\{}()[\]^$+*?.]/g,pF=new WeakMap,pq=/[\dA-Fa-f]/,pH=/\d/,pU=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],pG={nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"",zwj:"",lrm:"",rlm:"",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},pW=["cent","copy","divide","gt","lt","not","para","times"],pV={}.hasOwnProperty,p$={};for(r in pG)pV.call(pG,r)&&(p$[pG[r]]=r);let pX=/[^\dA-Za-z]/;function pY(e,t,n){let r,i=function(e,t,n){let r="&#x"+e.toString(16).toUpperCase();return n&&t&&!pq.test(String.fromCharCode(t))?r:r+";"}(e,t,n.omitOptionalSemicolons);if((n.useNamedReferences||n.useShortestReferences)&&(r=function(e,t,n,r){let i=String.fromCharCode(e);if(pV.call(p$,i)){let e=p$[i],a="&"+e;return n&&pU.includes(e)&&!pW.includes(e)&&(!r||t&&61!==t&&pX.test(String.fromCharCode(t)))?a:a+";"}return""}(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!r)&&n.useShortestReferences){let r=function(e,t,n){let r="&#"+String(e);return n&&t&&!pH.test(String.fromCharCode(t))?r:r+";"}(e,t,n.omitOptionalSemicolons);r.length<i.length&&(i=r)}return r&&(!n.useShortestReferences||r.length<i.length)?r:i}function pJ(e,t){let n;var r,i=e,a=Object.assign({format:pY},t);if(i=i.replace(a.subset?(r=a.subset,(n=pF.get(r))||(n=function(e){let t=[],n=-1;for(;++n<e.length;)t.push(e[n].replace(pD,"\\$&"));return RegExp("(?:"+t.join("|")+")","g")}(r),pF.set(r,n)),n):pP,o),a.subset||a.escapeOnly)return i;return i.replace(pB,function(e,t,n){return a.format((e.charCodeAt(0)-55296)*1024+e.charCodeAt(1)-56320+65536,n.charCodeAt(t+2),a)}).replace(pO,o);function o(e,t,n){return a.format(e.charCodeAt(0),n.charCodeAt(t+1),a)}}let pZ=/^>|^->|<!--|-->|--!>|<!-$/g,pK=[">"],pQ=["<",">"],p0=p5(1),p1=p5(-1),p4=[];function p5(e){return function(t,n,r){let i=t?t.children:p4,a=(n||0)+e,o=i[a];if(!r)for(;o&&tp(o);)a+=e,o=i[a];return o}}let p6={}.hasOwnProperty;function p3(e){return function(t,n,r){return p6.call(e,t.tagName)&&e[t.tagName](t,n,r)}}let p2=p3({body:function(e,t,n){let r=p0(n,t);return!r||"comment"!==r.type},caption:p7,colgroup:p7,dd:function(e,t,n){let r=p0(n,t);return!r||"element"===r.type&&("dt"===r.tagName||"dd"===r.tagName)},dt:function(e,t,n){let r=p0(n,t);return!!(r&&"element"===r.type&&("dt"===r.tagName||"dd"===r.tagName))},head:p7,html:function(e,t,n){let r=p0(n,t);return!r||"comment"!==r.type},li:function(e,t,n){let r=p0(n,t);return!r||"element"===r.type&&"li"===r.tagName},optgroup:function(e,t,n){let r=p0(n,t);return!r||"element"===r.type&&"optgroup"===r.tagName},option:function(e,t,n){let r=p0(n,t);return!r||"element"===r.type&&("option"===r.tagName||"optgroup"===r.tagName)},p:function(e,t,n){let r=p0(n,t);return r?"element"===r.type&&("address"===r.tagName||"article"===r.tagName||"aside"===r.tagName||"blockquote"===r.tagName||"details"===r.tagName||"div"===r.tagName||"dl"===r.tagName||"fieldset"===r.tagName||"figcaption"===r.tagName||"figure"===r.tagName||"footer"===r.tagName||"form"===r.tagName||"h1"===r.tagName||"h2"===r.tagName||"h3"===r.tagName||"h4"===r.tagName||"h5"===r.tagName||"h6"===r.tagName||"header"===r.tagName||"hgroup"===r.tagName||"hr"===r.tagName||"main"===r.tagName||"menu"===r.tagName||"nav"===r.tagName||"ol"===r.tagName||"p"===r.tagName||"pre"===r.tagName||"section"===r.tagName||"table"===r.tagName||"ul"===r.tagName):!n||"element"!==n.type||"a"!==n.tagName&&"audio"!==n.tagName&&"del"!==n.tagName&&"ins"!==n.tagName&&"map"!==n.tagName&&"noscript"!==n.tagName&&"video"!==n.tagName},rp:p8,rt:p8,tbody:function(e,t,n){let r=p0(n,t);return!r||"element"===r.type&&("tbody"===r.tagName||"tfoot"===r.tagName)},td:p9,tfoot:function(e,t,n){return!p0(n,t)},th:p9,thead:function(e,t,n){let r=p0(n,t);return!!(r&&"element"===r.type&&("tbody"===r.tagName||"tfoot"===r.tagName))},tr:function(e,t,n){let r=p0(n,t);return!r||"element"===r.type&&"tr"===r.tagName}});function p7(e,t,n){let r=p0(n,t,!0);return!r||"comment"!==r.type&&!("text"===r.type&&tp(r.value.charAt(0)))}function p8(e,t,n){let r=p0(n,t);return!r||"element"===r.type&&("rp"===r.tagName||"rt"===r.tagName)}function p9(e,t,n){let r=p0(n,t);return!r||"element"===r.type&&("td"===r.tagName||"th"===r.tagName)}let de=p3({body:function(e){let t=p0(e,-1,!0);return!t||"comment"!==t.type&&!("text"===t.type&&tp(t.value.charAt(0)))&&("element"!==t.type||"meta"!==t.tagName&&"link"!==t.tagName&&"script"!==t.tagName&&"style"!==t.tagName&&"template"!==t.tagName)},colgroup:function(e,t,n){let r=p1(n,t),i=p0(e,-1,!0);return!(n&&r&&"element"===r.type&&"colgroup"===r.tagName&&p2(r,n.children.indexOf(r),n))&&!!(i&&"element"===i.type&&"col"===i.tagName)},head:function(e){let t=new Set;for(let n of e.children)if("element"===n.type&&("base"===n.tagName||"title"===n.tagName)){if(t.has(n.tagName))return!1;t.add(n.tagName)}let n=e.children[0];return!n||"element"===n.type},html:function(e){let t=p0(e,-1);return!t||"comment"!==t.type},tbody:function(e,t,n){let r=p1(n,t),i=p0(e,-1);return!(n&&r&&"element"===r.type&&("thead"===r.tagName||"tbody"===r.tagName)&&p2(r,n.children.indexOf(r),n))&&!!(i&&"element"===i.type&&"tr"===i.tagName)}}),dt={name:[[" \n\f\r &/=>".split("")," \n\f\r \"&'/=>`".split("")],["\0 \n\f\r \"&'/<=>".split(""),"\0 \n\f\r \"&'/<=>`".split("")]],unquoted:[[" \n\f\r &>".split(""),"\0 \n\f\r \"&'<=>`".split("")],["\0 \n\f\r \"&'<=>`".split(""),"\0 \n\f\r \"&'<=>`".split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]},dn=["<","&"];function dr(e,t,n,r){return n&&"element"===n.type&&("script"===n.tagName||"style"===n.tagName)?e.value:pJ(e.value,Object.assign({},r.settings.characterReferences,{subset:dn}))}let di=function(e,t){let n=t||{};function r(t){for(var n=arguments.length,i=Array(n>1?n-1:0),a=1;a<n;a++)i[a-1]=arguments[a];let o=r.invalid,s=r.handlers;if(t&&pL.call(t,e)){let n=String(t[e]);o=pL.call(s,n)?s[n]:r.unknown}if(o)return o.call(this,t,...i)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}("type",{invalid:function(e){throw Error("Expected node, not `"+e+"`")},unknown:function(e){throw Error("Cannot compile unknown node `"+e.type+"`")},handlers:{comment:function(e,t,n,r){return r.settings.bogusComments?"<?"+pJ(e.value,Object.assign({},r.settings.characterReferences,{subset:pK}))+">":"<!--"+e.value.replace(pZ,function(e){return pJ(e,Object.assign({},r.settings.characterReferences,{subset:pQ}))})+"-->"},doctype:function(e,t,n,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"},element:function(e,t,n,r){let i,a=r.schema,o="svg"!==a.space&&r.settings.omitOptionalTags,s="svg"===a.space?r.settings.closeEmptyElements:r.settings.voids.includes(e.tagName.toLowerCase()),l=[];"html"===a.space&&"svg"===e.tagName&&(r.schema=t$);let c=function(e,t){let n,r=[],i=-1;if(t){for(n in t)if(null!==t[n]&&void 0!==t[n]){let i=function(e,t,n){let r,i=tz(e.schema,t),a=e.settings.allowParseErrors&&"html"===e.schema.space?0:1,o=+!e.settings.allowDangerousCharacters,s=e.quote;if(i.overloadedBoolean&&(n===i.attribute||""===n)?n=!0:(i.boolean||i.overloadedBoolean)&&("string"!=typeof n||n===i.attribute||""===n)&&(n=!!n),null==n||!1===n||"number"==typeof n&&Number.isNaN(n))return"";let l=pJ(i.attribute,Object.assign({},e.settings.characterReferences,{subset:dt.name[a][o]}));return!0===n||(n=Array.isArray(n)?(i.commaSeparated?to:tY)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n)?l:(e.settings.preferUnquoted&&(r=pJ(n,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:dt.unquoted[a][o]}))),r!==n&&(e.settings.quoteSmart&&iR(n,s)>iR(n,e.alternative)&&(s=e.alternative),r=s+pJ(n,Object.assign({},e.settings.characterReferences,{subset:("'"===s?dt.single:dt.double)[a][o],attribute:!0}))+s),l+(r?"="+r:r))}(e,n,t[n]);i&&r.push(i)}}for(;++i<r.length;){let t=e.settings.tightAttributes?r[i].charAt(r[i].length-1):void 0;i!==r.length-1&&'"'!==t&&"'"!==t&&(r[i]+=" ")}return r.join("")}(r,e.properties),u=r.all("html"===a.space&&"template"===e.tagName?e.content:e);return r.schema=a,u&&(s=!1),!c&&o&&de(e,t,n)||(l.push("<",e.tagName,c?" "+c:""),s&&("svg"===a.space||r.settings.closeSelfClosing)&&(i=c.charAt(c.length-1),(!r.settings.tightSelfClosing||"/"===i||i&&'"'!==i&&"'"!==i)&&l.push(" "),l.push("/")),l.push(">")),l.push(u),s||o&&p2(e,t,n)||l.push("</"+e.tagName+">"),l.join("")},raw:function(e,t,n,r){return r.settings.allowDangerousHtml?e.value:dr(e,t,n,r)},root:function(e,t,n,r){return r.all(e)},text:dr}}),da={},ds={},dl=[];function dc(e,t,n){return di(e,t,n,this)}function du(e){let t=[],n=e&&e.children||dl,r=-1;for(;++r<n.length;)t[r]=this.one(n[r],r,e);return t.join("")}function dh(e,t){var n;if(!t)return e;for(let r of(e.properties||(e.properties={}),(n=e.properties).class||(n.class=[]),"string"==typeof e.properties.class&&(e.properties.class=e.properties.class.split(/\s+/g)),Array.isArray(e.properties.class)||(e.properties.class=[]),Array.isArray(t)?t:t.split(/\s+/g)))r&&!e.properties.class.includes(r)&&e.properties.class.push(r);return e}let dp="light-dark()",dd=["color","background-color"];function dm(e){let t={};if(e.color&&(t.color=e.color),e.bgColor&&(t["background-color"]=e.bgColor),e.fontStyle){e.fontStyle&hb.Italic&&(t["font-style"]="italic"),e.fontStyle&hb.Bold&&(t["font-weight"]="bold");let n=[];e.fontStyle&hb.Underline&&n.push("underline"),e.fontStyle&hb.Strikethrough&&n.push("line-through"),n.length&&(t["text-decoration"]=n.join(" "))}return t}function df(e){return"string"==typeof e?e:Object.entries(e).map(e=>{let[t,n]=e;return"".concat(t,":").concat(n)}).join(";")}let dg=[function(){let e=new WeakMap;function t(t){if(!e.has(t.meta)){let r=function(e){let t=pm(e,!0).map(e=>{let[t]=e;return t});return{lines:t,indexToPos:function(n){if(n===e.length)return{line:t.length-1,character:t[t.length-1].length};let r=n,i=0;for(let e of t){if(r<e.length)break;r-=e.length,i++}return{line:i,character:r}},posToIndex:function(e,n){let r=0;for(let n=0;n<e;n++)r+=t[n].length;return r+n}}}(t.source);function n(e){if("number"==typeof e){if(e<0||e>t.source.length)throw new ho("Invalid decoration offset: ".concat(e,". Code length: ").concat(t.source.length));return{...r.indexToPos(e),offset:e}}{let t=r.lines[e.line];if(void 0===t)throw new ho("Invalid decoration position ".concat(JSON.stringify(e),". Lines length: ").concat(r.lines.length));let n=e.character;if(n<0&&(n=t.length+n),n<0||n>t.length)throw new ho("Invalid decoration position ".concat(JSON.stringify(e),". Line ").concat(e.line," length: ").concat(t.length));return{...e,character:n,offset:r.posToIndex(e.line,n)}}}let i=(t.options.decorations||[]).map(e=>({...e,start:n(e.start),end:n(e.end)}));(function(e){for(let t=0;t<e.length;t++){let n=e[t];if(n.start.offset>n.end.offset)throw new ho("Invalid decoration range: ".concat(JSON.stringify(n.start)," - ").concat(JSON.stringify(n.end)));for(let r=t+1;r<e.length;r++){let t=e[r],i=n.start.offset<=t.start.offset&&t.start.offset<n.end.offset,a=n.start.offset<t.end.offset&&t.end.offset<=n.end.offset,o=t.start.offset<=n.start.offset&&n.start.offset<t.end.offset,s=t.start.offset<n.end.offset&&n.end.offset<=t.end.offset;if(i||a||o||s){if(i&&a||o&&s||o&&n.start.offset===n.end.offset||a&&t.start.offset===t.end.offset)continue;throw new ho("Decorations ".concat(JSON.stringify(n.start)," and ").concat(JSON.stringify(t.start)," intersect."))}}}})(i),e.set(t.meta,{decorations:i,converter:r,source:t.source})}return e.get(t.meta)}return{name:"shiki:decorations",tokens(e){var n;if(null==(n=this.options.decorations)?void 0:n.length){var r=t(this).decorations.flatMap(e=>[e.start.offset,e.end.offset]);let n=Array.from(r instanceof Set?r:new Set(r)).sort((e,t)=>e-t);return n.length?e.map(e=>e.flatMap(e=>{let t=n.filter(t=>e.offset<t&&t<e.offset+e.content.length).map(t=>t-e.offset).sort((e,t)=>e-t);if(!t.length)return e;let r=0,i=[];for(let n of t)n>r&&i.push({...e,content:e.content.slice(r,n),offset:e.offset+r}),r=n;return r<e.content.length&&i.push({...e,content:e.content.slice(r),offset:e.offset+r}),i})):e}},code(e){var n;if(!(null==(n=this.options.decorations)?void 0:n.length))return;let r=t(this),i=Array.from(e.children).filter(e=>"element"===e.type&&"span"===e.tagName);if(i.length!==r.converter.lines.length)throw new ho("Number of lines in code element (".concat(i.length,") does not match the number of lines in the source (").concat(r.converter.lines.length,"). Failed to apply decorations."));function a(e,t,n,r){let a=i[e],s="",l=-1,c=-1;if(0===t&&(l=0),0===n&&(c=0),n===1/0&&(c=a.children.length),-1===l||-1===c)for(let e=0;e<a.children.length;e++)s+=function e(t){return"text"===t.type?t.value:"element"===t.type?t.children.map(e).join(""):""}(a.children[e]),-1===l&&s.length===t&&(l=e+1),-1===c&&s.length===n&&(c=e+1);if(-1===l)throw new ho("Failed to find start index for decoration ".concat(JSON.stringify(r.start)));if(-1===c)throw new ho("Failed to find end index for decoration ".concat(JSON.stringify(r.end)));let u=a.children.slice(l,c);if(r.alwaysWrap||u.length!==a.children.length)if(r.alwaysWrap||1!==u.length||"element"!==u[0].type){let e={type:"element",tagName:"span",properties:{},children:u};o(e,r,"wrapper"),a.children.splice(l,u.length,e)}else o(u[0],r,"token");else o(a,r,"line")}function o(e,t,n){var r;let i=t.properties||{},a=t.transform||(e=>e);return e.tagName=t.tagName||"span",e.properties={...e.properties,...i,class:e.properties.class},(null==(r=t.properties)?void 0:r.class)&&dh(e,t.properties.class),e=a(e,n)||e}let s=[];for(let e of r.decorations.sort((e,t)=>t.start.offset-e.start.offset||e.end.offset-t.end.offset)){let{start:t,end:n}=e;if(t.line===n.line)a(t.line,t.character,n.character,e);else if(t.line<n.line){a(t.line,t.character,1/0,e);for(let r=t.line+1;r<n.line;r++)s.unshift(()=>{var t;i[t=r]=o(i[t],e,"line")});a(n.line,0,n.character,e)}}s.forEach(e=>e())}}}()];function dy(e){let t=function(e){let t=[],n=[],r=[];for(let i of e)switch(i.enforce){case"pre":t.push(i);break;case"post":n.push(i);break;default:r.push(i)}return{pre:t,post:n,normal:r}}(e.transformers||[]);return[...t.pre,...t.normal,...t.post,...dg]}var db=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],dv={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",8:"hidden",9:"strikethrough"};function dx(e){let t=e.shift();if("2"===t){let t=e.splice(0,3).map(e=>Number.parseInt(e));if(3!==t.length||t.some(e=>Number.isNaN(e)))return;return{type:"rgb",rgb:t}}if("5"===t){let t=e.shift();if(t)return{type:"table",index:Number(t)}}}var dk={black:"#000000",red:"#bb0000",green:"#00bb00",yellow:"#bbbb00",blue:"#0000bb",magenta:"#ff00ff",cyan:"#00bbbb",white:"#eeeeee",brightBlack:"#555555",brightRed:"#ff5555",brightGreen:"#00ff00",brightYellow:"#ffff55",brightBlue:"#5555ff",brightMagenta:"#ff55ff",brightCyan:"#55ffff",brightWhite:"#ffffff"};let dw={black:"#000000",red:"#cd3131",green:"#0DBC79",yellow:"#E5E510",blue:"#2472C8",magenta:"#BC3FBC",cyan:"#11A8CD",white:"#E5E5E5",brightBlack:"#666666",brightRed:"#F14C4C",brightGreen:"#23D18B",brightYellow:"#F5F543",brightBlue:"#3B8EEA",brightMagenta:"#D670D6",brightCyan:"#29B8DB",brightWhite:"#FFFFFF"};function dS(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=e.resolveLangAlias(n.lang||"text"),{theme:i=e.getLoadedThemes()[0]}=n;if(!ph(r)&&!pd(i)&&"ansi"===r){let{theme:r}=e.setTheme(i);return function(e,t,n){let r,i,a,o=pl(e,n),s=pm(t),l=function(){let e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:dk;function n(e){return"#".concat(e.map(e=>Math.max(0,Math.min(e,255)).toString(16).padStart(2,"0")).join(""))}return{value:function(r){switch(r.type){case"named":return t[r.name];case"rgb":return n(r.rgb);case"table":var i;return i=r.index,function(){if(e)return e;e=[];for(let n=0;n<db.length;n++)e.push(t[db[n]]);let r=[0,95,135,175,215,255];for(let t=0;t<6;t++)for(let i=0;i<6;i++)for(let a=0;a<6;a++)e.push(n([r[t],r[i],r[a]]));let i=8;for(let t=0;t<24;t++,i+=10)e.push(n([i,i,i]));return e}()[i]}}}}(Object.fromEntries(db.map(t=>{var n;let r="terminal.ansi".concat(t[0].toUpperCase()).concat(t.substring(1));return[t,(null==(n=e.colors)?void 0:n[r])||dw[t]]}))),c=(r=null,i=null,a=new Set,{parse(e){let t=[],n=0;do{let o=function(e,t){let n=e.indexOf("\x1b",t);if(-1!==n&&"["===e[n+1]){let t=e.indexOf("m",n);if(-1!==t)return{sequence:e.substring(n+2,t).split(";"),startPosition:n,position:t+1}}return{position:e.length}}(e,n),s=o.sequence?e.substring(n,o.startPosition):e.substring(n);if(s.length>0&&t.push({value:s,foreground:r,background:i,decorations:new Set(a)}),o.sequence){let e=function(e){let t=[];for(;e.length>0;){let n=e.shift();if(!n)continue;let r=Number.parseInt(n);if(!Number.isNaN(r))if(0===r)t.push({type:"resetAll"});else if(r<=9)dv[r]&&t.push({type:"setDecoration",value:dv[r]});else if(r<=29){let e=dv[r-20];e&&(t.push({type:"resetDecoration",value:e}),"dim"===e&&t.push({type:"resetDecoration",value:"bold"}))}else if(r<=37)t.push({type:"setForegroundColor",value:{type:"named",name:db[r-30]}});else if(38===r){let n=dx(e);n&&t.push({type:"setForegroundColor",value:n})}else if(39===r)t.push({type:"resetForegroundColor"});else if(r<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:db[r-40]}});else if(48===r){let n=dx(e);n&&t.push({type:"setBackgroundColor",value:n})}else 49===r?t.push({type:"resetBackgroundColor"}):53===r?t.push({type:"setDecoration",value:"overline"}):55===r?t.push({type:"resetDecoration",value:"overline"}):r>=90&&r<=97?t.push({type:"setForegroundColor",value:{type:"named",name:db[r-90+8]}}):r>=100&&r<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:db[r-100+8]}})}return t}(o.sequence);for(let t of e)"resetAll"===t.type?(r=null,i=null,a.clear()):"resetForegroundColor"===t.type?r=null:"resetBackgroundColor"===t.type?i=null:"resetDecoration"===t.type&&a.delete(t.value);for(let t of e)"setForegroundColor"===t.type?r=t.value:"setBackgroundColor"===t.type?i=t.value:"setDecoration"===t.type&&a.add(t.value)}n=o.position}while(n<e.length)return t}});return s.map(t=>c.parse(t[0]).map(n=>{let r,i;n.decorations.has("reverse")?(r=n.background?l.value(n.background):e.bg,i=n.foreground?l.value(n.foreground):e.fg):(r=n.foreground?l.value(n.foreground):e.fg,i=n.background?l.value(n.background):void 0),r=pc(r,o),i=pc(i,o),n.decorations.has("dim")&&(r=function(e){let t=e.match(/#([0-9a-f]{3,8})/i);if(t){let e=t[1];if(8===e.length){let t=Math.round(Number.parseInt(e.slice(6,8),16)/2).toString(16).padStart(2,"0");return"#".concat(e.slice(0,6)).concat(t)}if(6===e.length)return"#".concat(e,"80");if(4===e.length){let t=e[0],n=e[1],r=e[2],i=e[3];return"#".concat(t).concat(t).concat(n).concat(n).concat(r).concat(r).concat(Math.round(Number.parseInt("".concat(i).concat(i),16)/2).toString(16).padStart(2,"0"))}else if(3===e.length){let t=e[0],n=e[1],r=e[2];return"#".concat(t).concat(t).concat(n).concat(n).concat(r).concat(r,"80")}}let n=e.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return n?"var(".concat(n[1],"-dim)"):e}(r));let a=hb.None;return n.decorations.has("bold")&&(a|=hb.Bold),n.decorations.has("italic")&&(a|=hb.Italic),n.decorations.has("underline")&&(a|=hb.Underline),n.decorations.has("strikethrough")&&(a|=hb.Strikethrough),{content:n.value,offset:t[1],color:r,bgColor:i,fontStyle:a}}))}(r,t,n)}return pE(e,t,n)}function dA(e,t,n){let r,i,a,o,s,l;if("themes"in n){let{defaultColor:c="light",cssVariablePrefix:u="--shiki-",colorsRendering:h="css-vars"}=n,p=Object.entries(n.themes).filter(e=>e[1]).map(e=>({color:e[0],theme:e[1]})).sort((e,t)=>e.color===c?-1:+(t.color===c));if(0===p.length)throw new ho("`themes` option must not be empty");let d=pj(e,t,n,dS);if(l=pM(d),c&&dp!==c&&!p.find(e=>e.color===c))throw new ho("`themes` option must contain the defaultColor key `".concat(c,"`"));let m=p.map(t=>e.getTheme(t.theme)),f=p.map(e=>e.color);a=d.map(e=>e.map(e=>(function(e,t,n,r){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"css-vars",a={content:e.content,explanation:e.explanation,offset:e.offset},o=t.map(t=>dm(e.variants[t])),s=new Set(o.flatMap(e=>Object.keys(e))),l={},c=(e,r)=>n+t[e]+("color"===r||"color"===r?"":"background-color"===r?"-bg":"-".concat(r));return o.forEach((e,n)=>{for(let a of s){let s=e[a]||"inherit";if(0===n&&r&&dd.includes(a))if(r===dp&&o.length>1){let e=t.findIndex(e=>"light"===e),r=t.findIndex(e=>"dark"===e);if(-1===e||-1===r)throw new ho('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');l[a]="light-dark(".concat(o[e][a]||"inherit",", ").concat(o[r][a]||"inherit",")"),"css-vars"===i&&(l[c(n,a)]=s)}else l[a]=s;else"css-vars"===i&&(l[c(n,a)]=s)}}),a.htmlStyle=l,a})(e,f,u,c,h))),l&&p_(a,l);let g=p.map(e=>pl(e.theme,n));i=dC(p,m,g,u,c,"fg",h),r=dC(p,m,g,u,c,"bg",h),o="shiki-themes ".concat(m.map(e=>e.name).join(" ")),s=c?void 0:[i,r].join(";")}else if("theme"in n){let s=pl(n.theme,n);a=dS(e,t,n);let c=e.getTheme(n.theme);r=pc(c.bg,s),i=pc(c.fg,s),o=c.name,l=pM(a)}else throw new ho("Invalid options, either `theme` or `themes` must be provided");return{tokens:a,fg:i,bg:r,themeName:o,rootStyle:s,grammarState:l}}function dC(e,t,n,r,i,a,o){return e.map((s,l)=>{let c=pc(t[l][a],n[l])||"inherit",u="".concat(r+s.color).concat("bg"===a?"-bg":"",":").concat(c);if(0===l&&i){if(i===dp&&e.length>1){let r=e.findIndex(e=>"light"===e.color),i=e.findIndex(e=>"dark"===e.color);if(-1===r||-1===i)throw new ho('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');return"light-dark(".concat(pc(t[r][a],n[r])||"inherit",", ").concat(pc(t[i][a],n[i])||"inherit",");").concat(u)}return c}return"css-vars"===o?u:null}).filter(e=>!!e).join(";")}function dT(e,t,n){var r,i,a;let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{meta:{},options:n,codeToHast:(t,n)=>dT(e,t,n),codeToTokens:(t,n)=>dA(e,t,n)},s=t;for(let e of dy(n))s=(null==(r=e.preprocess)?void 0:r.call(o,s,n))||s;let{tokens:l,fg:c,bg:u,themeName:h,rootStyle:p,grammarState:d}=dA(e,s,n),{mergeWhitespaces:m=!0,mergeSameStyleTokens:f=!1}=n;!0===m?l=l.map(e=>{let t,n=[],r="";return e.forEach((i,a)=>{let o=!(i.fontStyle&&(i.fontStyle&hb.Underline||i.fontStyle&hb.Strikethrough));o&&i.content.match(/^\s+$/)&&e[a+1]?(void 0===t&&(t=i.offset),r+=i.content):r?(o?n.push({...i,offset:t,content:r+i.content}):n.push({content:r,offset:t},i),t=void 0,r=""):n.push(i)}),n}):"never"===m&&(l=l.map(e=>e.flatMap(e=>{if(e.content.match(/^\s+$/))return e;let t=e.content.match(/^(\s*)(.*?)(\s*)$/);if(!t)return e;let[,n,r,i]=t;if(!n&&!i)return e;let a=[{...e,offset:e.offset+n.length,content:r}];return n&&a.unshift({content:n,offset:e.offset}),i&&a.push({content:i,offset:e.offset+n.length+r.length}),a}))),f&&(l=l.map(e=>{let t=[];for(let n of e){if(0===t.length){t.push({...n});continue}let e=t[t.length-1],r=df(e.htmlStyle||dm(e)),i=df(n.htmlStyle||dm(n)),a=e.fontStyle&&(e.fontStyle&hb.Underline||e.fontStyle&hb.Strikethrough),o=n.fontStyle&&(n.fontStyle&hb.Underline||n.fontStyle&hb.Strikethrough);a||o||r!==i?t.push({...n}):e.content+=n.content}return t}));let g={...o,get source(){return s}};for(let e of dy(n))l=(null==(i=e.tokens)?void 0:i.call(g,l))||l;return function(e,t,n){var r,i,a,o;let s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:pM(e),l=dy(t),c=[],u={type:"root",children:[]},{structure:h="classic",tabindex:p="0"}=t,d={class:"shiki ".concat(t.themeName||"")};for(let[e,n]of(!1!==t.rootStyle&&(null!=t.rootStyle?d.style=t.rootStyle:d.style="background-color:".concat(t.bg,";color:").concat(t.fg)),!1!==p&&null!=p&&(d.tabindex=p.toString()),Object.entries(t.meta||{})))e.startsWith("_")||(d[e]=n);let m={type:"element",tagName:"pre",properties:d,children:[],data:t.data},f={type:"element",tagName:"code",properties:{},children:c},g=[],y={...n,structure:h,addClassToHast:dh,get source(){return n.source},get tokens(){return e},get options(){return t},get root(){return u},get pre(){return m},get code(){return f},get lines(){return g}};if(e.forEach((e,t)=>{var n,r;t&&("inline"===h?u.children.push({type:"element",tagName:"br",properties:{},children:[]}):"classic"===h&&c.push({type:"text",value:"\n"}));let i={type:"element",tagName:"span",properties:{class:"line"},children:[]},a=0;for(let r of e){let e={type:"element",tagName:"span",properties:{...r.htmlAttrs},children:[{type:"text",value:r.content}]},o=df(r.htmlStyle||dm(r));for(let s of(o&&(e.properties.style=o),l))e=(null==s||null==(n=s.span)?void 0:n.call(y,e,t+1,a,i,r))||e;"inline"===h?u.children.push(e):"classic"===h&&i.children.push(e),a+=r.content.length}if("classic"===h){for(let e of l)i=(null==e||null==(r=e.line)?void 0:r.call(y,i,t+1))||i;g.push(i),c.push(i)}else"inline"===h&&g.push(i)}),"classic"===h){for(let e of l)f=(null==e||null==(i=e.code)?void 0:i.call(y,f))||f;for(let e of(m.children.push(f),l))m=(null==e||null==(a=e.pre)?void 0:a.call(y,m))||m;u.children.push(m)}else if("inline"===h){let e=[],t={type:"element",tagName:"span",properties:{class:"line"},children:[]};for(let n of u.children)"element"===n.type&&"br"===n.tagName?(e.push(t),t={type:"element",tagName:"span",properties:{class:"line"},children:[]}):("element"===n.type||"text"===n.type)&&t.children.push(n);e.push(t);let n={type:"element",tagName:"code",properties:{},children:e};for(let e of l)n=(null==e||null==(o=e.code)?void 0:o.call(y,n))||n;u.children=[];for(let e=0;e<n.children.length;e++){e>0&&u.children.push({type:"element",tagName:"br",properties:{},children:[]});let t=n.children[e];"element"===t.type&&u.children.push(...t.children)}}let b=u;for(let e of l)b=(null==e||null==(r=e.root)?void 0:r.call(y,b))||b;return s&&p_(b,s),b}(l,{...n,fg:c,bg:u,themeName:h,rootStyle:!1!==n.rootStyle&&(null!=(a=n.rootStyle)?a:p)},g,d)}let d_=function(e,t){let n=t||da,r=n.quote||'"';if('"'!==r&&"'"!==r)throw Error("Invalid quote `"+r+"`, expected `'` or `\"`");return({one:dc,all:du,settings:{omitOptionalTags:n.omitOptionalTags||!1,allowParseErrors:n.allowParseErrors||!1,allowDangerousCharacters:n.allowDangerousCharacters||!1,quoteSmart:n.quoteSmart||!1,preferUnquoted:n.preferUnquoted||!1,tightAttributes:n.tightAttributes||!1,upperDoctype:n.upperDoctype||!1,tightDoctype:n.tightDoctype||!1,bogusComments:n.bogusComments||!1,tightCommaSeparatedLists:n.tightCommaSeparatedLists||!1,tightSelfClosing:n.tightSelfClosing||!1,collapseEmptyAttributes:n.collapseEmptyAttributes||!1,allowDangerousHtml:n.allowDangerousHtml||!1,voids:n.voids||pR,characterReferences:n.characterReferences||ds,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:"svg"===n.space?t$:tV,quote:r,alternative:'"'===r?"'":'"'}).one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)};async function dM(e){let t=await pC(e);return{getLastGrammarState:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];if(2===t.length)return pM(t[1]);let[r,i,a={}]=t,{lang:o="text",theme:s=r.getLoadedThemes()[0]}=a;if(ph(o)||pd(s))throw new ho("Plain language does not have grammar state");if("ansi"===o)throw new ho("ANSI language does not have grammar state");let{theme:l,colorMap:c}=r.setTheme(s),u=r.getLanguage(o);return new pN(pz(i,u,l,c,a).stateStack,u.name,l.name)}(t,...n)},codeToTokensBase:(e,n)=>dS(t,e,n),codeToTokensWithThemes:(e,n)=>pj(t,e,n),codeToTokens:(e,n)=>dA(t,e,n),codeToHast:(e,n)=>dT(t,e,n),codeToHtml:(e,n)=>(function(e,t,n){var r;let i={meta:{},options:n,codeToHast:(t,n)=>dT(e,t,n),codeToTokens:(t,n)=>dA(e,t,n)},a=d_(dT(e,t,n,i));for(let e of dy(n))a=(null==(r=e.postprocess)?void 0:r.call(i,a,n))||a;return a})(t,e,n),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...t,getInternalContext:()=>t}}let{codeToHtml:dN}=function(e,t){let n,r=async function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(n){let e=await n;return await Promise.all([e.loadTheme(...t.themes||[]),e.loadLanguage(...t.langs||[])]),e}{n=e({...t,themes:[],langs:[]});let r=await n;return await Promise.all([r.loadTheme(...t.themes||[]),r.loadLanguage(...t.langs||[])]),r}};async function i(e,n){var i;let a=await r({langs:[n.lang],themes:"theme"in n?[n.theme]:Object.values(n.themes)}),o=await (null==t||null==(i=t.guessEmbeddedLanguages)?void 0:i.call(t,e,n.lang,a));return o&&await a.loadLanguage(...o),a}return{getSingletonHighlighter:e=>r(e),codeToHtml:async(e,t)=>(await i(e,t)).codeToHtml(e,t),codeToHast:async(e,t)=>(await i(e,t)).codeToHast(e,t),codeToTokens:async(e,t)=>(await i(e,t)).codeToTokens(e,t),codeToTokensBase:async(e,t)=>(await i(e,t)).codeToTokensBase(e,t),codeToTokensWithThemes:async(e,t)=>(await i(e,t)).codeToTokensWithThemes(e,t),getLastGrammarState:async(e,t)=>(await r({langs:[t.lang],themes:[t.theme]})).getLastGrammarState(e,t)}}(function(e){let t=e.langs,n=e.themes,r=e.engine;return async function(e){var i,a,o;function s(n){if("string"==typeof n){var r;if(pp(n=(null==(r=e.langAlias)?void 0:r[n])||n))return[];let i=t[n];if(!i)throw new ho("Language `".concat(n,"` is not included in this bundle. You may want to load it from external source."));return i}return n}function l(e){if(pd(e))return"none";if("string"==typeof e){let t=n[e];if(!t)throw new ho("Theme `".concat(e,"` is not included in this bundle. You may want to load it from external source."));return t}return e}let c=(null!=(i=e.themes)?i:[]).map(e=>l(e)),u=(null!=(a=e.langs)?a:[]).map(e=>s(e)),h=await dM({engine:null!=(o=e.engine)?o:r(),...e,themes:c,langs:u});return{...h,loadLanguage(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return h.loadLanguage(...t.map(s))},loadTheme(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return h.loadTheme(...t.map(l))},getBundledLanguages:()=>t,getBundledThemes:()=>n}}}({langs:hi,themes:ha,engine:()=>(0,he.createOnigurumaEngine)(e.A(14467))}),{guessEmbeddedLanguages:function(e,t,n){let r=new Set;for(let t of e.matchAll(/:?lang=["']([^"']+)["']/g)){let e=t[1].toLowerCase().trim();e&&r.add(e)}for(let t of e.matchAll(/(?:```|~~~)([\w-]+)/g)){let e=t[1].toLowerCase().trim();e&&r.add(e)}for(let t of e.matchAll(/\\begin\{([\w-]+)\}/g)){let e=t[1].toLowerCase().trim();e&&r.add(e)}for(let t of e.matchAll(/<script\s+(?:type|lang)=["']([^"']+)["']/gi)){let e=t[1].toLowerCase().trim(),n=e.includes("/")?e.split("/").pop():e;n&&r.add(n)}if(!n)return Array.from(r);let i=n.getBundledLanguages();return Array.from(r).filter(e=>e&&i[e])}}),dE={...uj,attributes:{...null!=(f=uj.attributes)?f:{},"*":[...null!=(g=null==(c=uj.attributes)?void 0:c["*"])?g:[],"className","ariaHidden","dataTheme"],input:[...null!=(y=null==(u=uj.attributes)?void 0:u.input)?y:[],"type","checked","disabled"],code:[...null!=(b=null==(h=uj.attributes)?void 0:h.code)?b:[],"className"],pre:[...null!=(v=null==(p=uj.attributes)?void 0:p.pre)?v:[],"className"],span:[...null!=(x=null==(d=uj.attributes)?void 0:d.span)?x:[],"className"],div:[...null!=(k=null==(m=uj.attributes)?void 0:m.div)?k:[],"className","dataTheme"],math:[["xmlns"],["display"]],annotation:[["encoding"]]},tagNames:[...null!=(w=uj.tagNames)?w:[],"math","annotation","semantics","mrow","mi","mn","mo","msup","msub","mfrac","msqrt","mtext"]};async function dz(e,t,n){let r=n?"github-dark":"github-light";try{return await dN(e,{lang:t||"text",theme:r})}catch(t){return await dN(e,{lang:"text",theme:r})}}function dI(e){let{code:t,lang:n,streaming:r,dark:i,enableMermaid:a,renderMermaid:o}=e,[s,l]=(0,C.useState)("");return((0,C.useEffect)(()=>{if(r||!n||"mermaid"===n)return void l("");let e=!1;return dz(t,n,i).then(t=>{e||l(t)}),()=>{e=!0}},[t,n,r,i]),"mermaid"===n&&a)?o?o(t):(0,C.createElement)("pre",{className:"mermaid"},t):(0,C.createElement)("div",{className:"chat-code-block"},(0,C.createElement)("div",{className:"chat-code-head"},(0,C.createElement)("span",{className:"chat-code-title"},n||"text"),(0,C.createElement)("button",{type:"button",className:"chat-code-copy-btn",title:"复制代码"},"复制")),s?(0,C.createElement)("div",{dangerouslySetInnerHTML:{__html:s}}):(0,C.createElement)("pre",null,(0,C.createElement)("code",{className:n?"language-".concat(n):void 0},t)))}function dj(e){let{markdown:t,streaming:n=!1,theme:r="auto",className:i,enableMath:a=!0,enableMermaid:o=!0,renderMermaid:s,components:l,remarkPlugins:c,rehypePlugins:u,sanitizeSchema:h}=e,p=function(e){let[t,n]=(0,C.useState)(!1);return(0,C.useEffect)(()=>{if("auto"!==e)return;let t=window.matchMedia("(prefers-color-scheme: dark)"),r=()=>n(t.matches);return r(),t.addEventListener("change",r),()=>t.removeEventListener("change",r)},[e]),"dark"===e||"light"!==e&&t}(r),d=p?"dark":"light",m=(0,C.useMemo)(()=>({code(e){var t,r;let{className:i,children:a,...l}=e,c=null!=(r=null==(t=/language-(\w+)/.exec(null!=i?i:""))?void 0:t[1])?r:"",u="string"==typeof a?a:Array.isArray(a)?a.map(e=>"string"==typeof e?e:"").join("").replace(/\n$/,""):"";return c?(0,C.createElement)(dI,{code:u,lang:c,streaming:n,dark:p,enableMermaid:o,renderMermaid:s}):(0,C.createElement)("code",{...l,className:i},a)}}),[p,n,o,s]),f=(0,C.useMemo)(()=>({...m,...null!=l?l:{}}),[m,l]),g=(0,C.useMemo)(()=>[...null!=c?c:[],aU,...a?[aY]:[]],[c,a]),y=(0,C.useMemo)(()=>[uq,null!=h?h:dE],[h]),b=(0,C.useMemo)(()=>[...null!=u?u:[],...a?[uz]:[],y],[u,a,y]),v=["chat-md",i].filter(Boolean).join(" ");return(0,C.createElement)("div",{className:v,"data-theme":d},(0,C.createElement)(iI,{skipHtml:!0,remarkPlugins:g,rehypePlugins:b,components:f},t))}function dR(e){if(!e||"object"!=typeof e)return"";let t=e.type;if("user"===t||"assistant"===t){let t=e.message;if(t&&void 0!==t.content)return function(e){if(null==e)return"";if("string"==typeof e)return e;if(!Array.isArray(e))try{return JSON.stringify(e,null,2)}catch(t){return String(e)}let t=[];for(let n of e)if(n&&"object"==typeof n){if("text"===n.type&&"string"==typeof n.text)t.push(n.text);else if("tool_use"===n.type){let e=n.name||"tool",r="";try{r=JSON.stringify(n.input,null,2)}catch(e){r=String(n.input)}t.push("\n\n**`".concat(e,"`**\n\n```json\n").concat(r.slice(0,12e3),"\n```\n"))}else if("tool_result"===n.type){let e=n.content;if("string"!=typeof e)try{e=JSON.stringify(e,null,2)}catch(t){e=String(e)}t.push("\n\n```\n".concat(String(e).slice(0,8e3),"\n```\n"))}}return t.join("")}(t.content)}return"system"===t&&"string"==typeof e.content?e.content:""}function dL(e){var t;if(!e||"object"!=typeof e)return[];let n=null==(t=e.message)?void 0:t.content;return Array.isArray(n)?n:[]}function dP(e){var t;if(e&&"object"==typeof e)for(let n of[e.timestamp,null==(t=e.message)?void 0:t.timestamp,e.ts]){if("string"==typeof n&&n.trim()){let e=Date.parse(n);if(Number.isFinite(e))return e}if("number"==typeof n&&Number.isFinite(n))return n}}function dB(e,t){if(t<0||t>=e.length)return;let n=dP(e[t]);if(void 0!==n)for(let r=t+1;r<e.length;r+=1){let t=dP(e[r]);if(void 0!==t)return Math.max(0,t-n)}}function dO(e,t){let n=e.durationMs;return"number"==typeof n&&Number.isFinite(n)&&n>=0||void 0===t?e:{...e,durationMs:t}}function dD(e){let t=[];for(let n of e){if("conversation"!==n.kind)continue;let e=n.payload;if(!e)continue;let r=e.message;null!=r&&t.push(r)}return t}function dF(e,t){let n=-1;for(let i=0;i<=t;i+=1){var r;(null==(r=e[i])?void 0:r.kind)==="conversation"&&(n+=1)}return Math.max(0,n)}function dq(e,t){let n=-1;return e.forEach((e,t)=>{e&&"object"==typeof e&&"thinking"===e.type&&(n=t)}),n===t}function dH(e){let{data:t}=e,[n,r]=(0,C.useState)(!1),i=(0,C.useMemo)(()=>{let e=t.name;if("string"!=typeof e||!e)return"tool";let n=e.split("__").filter(Boolean);return n[n.length-1]||e},[t.name]),a=(0,C.useMemo)(()=>(function(e){try{return JSON.stringify(e,null,2)}catch(t){return String(e)}})(t.input),[t.input]),o=(0,C.useMemo)(()=>a.split("\n").length>3,[a]),s=(0,C.useMemo)(()=>{let e=a.replace(/\s+/g," ").trim();return e?e.length>96?"".concat(e.slice(0,93),"…"):e:""},[a]);return(0,A.jsxs)("div",{className:"my-2 rounded-xl border border-[var(--ds-border)] bg-[var(--ds-main-tint)] text-sm",children:[(0,A.jsxs)("div",{className:"flex w-full flex-col gap-0.5 rounded-xl border-0 px-3 py-2 text-left",children:[(0,A.jsx)("span",{className:"font-400 text-sm text-[var(--ds-text)]",children:i}),s?(0,A.jsx)("span",{className:"line-clamp-2 text-xs leading-snug text-[var(--ds-muted)]",children:s}):null]}),(0,A.jsxs)("div",{className:"px-3 pb-3",children:[(0,A.jsx)("div",{className:"mb-1 text-xs text-gray-500",children:"参数"}),(0,A.jsx)("pre",{className:"overflow-auto rounded border border-[var(--ds-border)] bg-[var(--ds-log-bg)] p-2 text-xs text-[var(--ds-text)]",style:!n&&o?{display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:3,overflow:"hidden"}:void 0,children:a}),o?(0,A.jsx)("button",{type:"button",className:"mx-auto mt-1 flex items-center justify-center border-0 bg-transparent p-0 text-zinc-500 transition-colors hover:bg-transparent hover:text-zinc-700",onClick:()=>r(e=>!e),"aria-label":n?"收起":"展开",title:n?"收起":"展开",children:n?(0,A.jsx)(H.default,{name:"ChevronsUp",size:16,strokeWidth:1}):(0,A.jsx)(H.default,{name:"ChevronsDown",size:16,strokeWidth:1})}):null]})]})}function dU(e){let{data:t,onExpandChange:n}=e,[r,i]=(0,C.useState)(!1),a=!!t.is_error,o=(0,C.useMemo)(()=>"string"==typeof t.content?t.content:JSON.stringify(t.content,null,2),[t.content]),s=a?function(e){let t=[];return e.includes("WS_ALLOW_TOOL_ASK=1")&&t.push("设置环境变量 WS_ALLOW_TOOL_ASK=1"),e.includes("acceptEdits")&&t.push("开启 permission mode: acceptEdits"),t}(o):[],l=(0,C.useMemo)(()=>(function(e){if("string"==typeof e)return e;try{return JSON.stringify(e,null,2)}catch(t){return String(e)}})(t.content),[t.content]),c=(0,C.useMemo)(()=>l.split("\n").length>3,[l]);return(0,A.jsxs)("div",{className:"my-2 rounded-xl border text-sm ".concat(a?"border-red-200 bg-red-50":"border-[var(--ds-border)] bg-[var(--ds-main-tint)]"),children:[(0,A.jsx)("div",{className:"flex w-full items-center justify-between rounded-xl border-0 px-3 py-2 text-left text-xs",children:(0,A.jsx)("span",{children:a?"工具执行失败":"工具结果"})}),(0,A.jsxs)("div",{className:"px-3 pb-3",children:[(0,A.jsx)("div",{className:"mb-1 mt-4 text-xs text-gray-500",children:a?"错误信息":"返回结果"}),(0,A.jsx)("pre",{className:"overflow-auto whitespace-pre-wrap rounded border border-[var(--ds-border)] bg-[var(--ds-log-bg)] p-2 text-xs text-[var(--ds-text)]",style:!r&&c?{display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:3,overflow:"hidden"}:void 0,children:l}),c?(0,A.jsx)("button",{type:"button",className:"mx-auto mt-1 flex items-center justify-center border-0 bg-transparent p-0 text-zinc-500 transition-colors hover:bg-transparent hover:text-zinc-700",onClick:()=>i(e=>{let t=!e;return null==n||n(t),t}),"aria-label":r?"收起":"展开",title:r?"收起":"展开",children:r?(0,A.jsx)(H.default,{name:"ChevronsUp",size:16,strokeWidth:1}):(0,A.jsx)(H.default,{name:"ChevronsDown",size:16,strokeWidth:1})}):null,a&&s.length>0&&(0,A.jsx)("ul",{className:"mt-2 list-disc pl-4 text-xs text-orange-600",children:s.map((e,t)=>(0,A.jsx)("li",{children:e},t))})]})]})}let dG={default:{border:"#AFA9EC",previewColor:"var(--color-text-secondary)",openBackground:"rgba(175, 169, 236, 0.08)"},decision:{border:"#EF9F27",previewColor:"#7a6000",openBackground:"rgba(239, 159, 39, 0.08)"},recovery:{border:"#F09595",previewColor:"#A32D2D",openBackground:"rgba(240, 149, 149, 0.08)"}};function dW(e){let{payload:t,usage:n,compact:r=!1,streaming:i=!1}=e,[a,o]=(0,C.useState)(()=>i),s=(0,C.useRef)(i);(0,C.useEffect)(()=>{let e=s.current;i?o(!0):e&&o(!1),s.current=i},[i]);let l=dG["string"==typeof t.status&&("default"===t.status||"decision"===t.status||"recovery"===t.status)?t.status:"default"],c=(0,C.useMemo)(()=>(function(e){for(let t of[e.thinking,e.content,e.text])if("string"==typeof t&&t.trim())return t;return""})(t),[t]),u=(0,C.useMemo)(()=>(function(e){let t=e.durationMs;if("number"!=typeof t||!Number.isFinite(t)||t<0)return"";let n=(t/1e3).toFixed(1);return"0.0"===n?"":"".concat(n,"s")})(t),[t]),h=i?"思考中":"已思考";return(0,A.jsxs)("div",{"data-thinking-usage":n,"data-thinking-state":i?"active":"done",style:{},className:"my-1 transition-colors",children:[(0,A.jsxs)("button",{type:"button",onClick:()=>{i||o(e=>!e)},className:"flex w-full items-center gap-2 border-0 bg-transparent text-left ".concat(r?"px-2.5 py-1.5":"px-0 py-1.5"," cursor-pointer"),"aria-expanded":a,"aria-label":h,children:[(0,A.jsx)("span",{className:"shrink-0 text-sm font-medium ".concat(i?"loading-sweep":""),style:{color:"#b3b3b3"},children:h}),u?(0,A.jsx)("span",{className:"shrink-0 font-mono text-xs text-[var(--text-secondary)]",children:u}):null,a?(0,A.jsx)(H.default,{name:"ChevronDown",size:8,className:"text-[#8A8985]",strokeWidth:1}):(0,A.jsx)(H.default,{name:"ChevronRight",size:8,className:"text-[#8A8985]",strokeWidth:1})]}),a?(0,A.jsx)("div",{className:"border-t pb-2.5 pr-3 pt-1.5",style:{borderColor:"".concat(l.border,"66")},children:(0,A.jsx)("div",{className:"max-h-40 overflow-y-auto whitespace-pre-wrap break-words font-mono text-sm leading-[1.6] text-[var(--text-tertiary)]",children:c||"(无思考内容)"})}):null]})}function dV(e){if(!e)return"";let t=new Date(e);return Number.isFinite(t.getTime())?new Intl.DateTimeFormat("zh-CN",{hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1}).format(t):e}function d$(e){var t,n,r;let{input:i,toolUseId:a,createdAt:o,result:s,fired:l=!1}=e,c=null!=(r=null==s||null==(t=s.scheduleClock)?void 0:t.utcIso)?r:null==s||null==(n=s.scheduleClock)?void 0:n.localDateTime,u=function(e){let[t,n]=(0,C.useState)(()=>Date.now());if((0,C.useEffect)(()=>{if(!e)return;let t=window.setInterval(()=>n(Date.now()),1e3);return()=>window.clearInterval(t)},[e]),!e)return"";let r=Math.round((new Date(e).getTime()-t)/1e3);if(!Number.isFinite(r))return"";if(r<=0)return"已到触发时间";if(r<60)return"".concat(r," 秒后触发");if(r<3600)return"".concat(Math.ceil(r/60)," 分钟后触发");let i=Math.floor(r/3600),a=Math.ceil((r-3600*i)/60);return"".concat(i," 小时 ").concat(a," 分钟后触发")}(l?void 0:c),h=!s,p=!!(null==s?void 0:s.error),d=i.action||(null==s?void 0:s.action)||"create",m=(0,C.useMemo)(()=>h?{label:"创建定时任务中...",icon:"Loader2"}:p?{label:"调度任务失败",icon:"CircleX"}:"cancel"===d?{label:"已取消定时任务",icon:"CircleX"}:"list"===d?{label:"定时任务列表",icon:"Info"}:l?{label:"定时任务已触发",icon:"CircleCheckBig"}:{label:"已创建定时任务",icon:"CheckCircle2"},[d,l,p,h]);return(0,A.jsxs)("div",{className:["schedule-tool-card",l?"is-fired":"",p?"is-error":""].filter(Boolean).join(" "),"data-tool-use-id":a,children:[(0,A.jsxs)("div",{className:"schedule-tool-card-head",children:[(0,A.jsx)(H.default,{name:m.icon,size:14,className:h?"animate-spin":void 0,strokeWidth:1.6}),(0,A.jsx)("span",{children:m.label}),(null==s?void 0:s.id)?(0,A.jsxs)("code",{className:"schedule-tool-card-id",children:["#",s.id]}):null]}),i.prompt?(0,A.jsxs)("div",{className:"schedule-tool-card-prompt",children:[(0,A.jsx)("div",{className:"schedule-tool-card-prompt-label",children:"到点后派发给 Agent 的提示"}),(0,A.jsx)("div",{className:"schedule-tool-card-prompt-body",children:i.prompt})]}):null,(0,A.jsxs)("div",{className:"schedule-tool-card-meta",children:[c?(0,A.jsxs)("span",{children:["触发于 ",dV(c),u?(0,A.jsxs)("em",{children:[" · ",u]}):null]}):void 0!==i.delayMinutes?(0,A.jsxs)("span",{children:["延迟 ",String(i.delayMinutes)," 分钟"]}):null,(null==s?void 0:s.recurring)!==void 0?(0,A.jsx)("span",{children:s.recurring?"循环任务":"一次性任务"}):null,(null==s?void 0:s.cron)?(0,A.jsxs)("span",{children:["cron ",(0,A.jsx)("code",{children:s.cron})]}):null,o?(0,A.jsxs)("span",{title:o,children:["创建于 ",dV(o)]}):null]}),p&&(null==s?void 0:s.error)?(0,A.jsx)("div",{className:"schedule-tool-card-error",children:s.error}):null]})}var dX=e.i(41143);function dY(e){let t=0x811c9dc5;for(let n=0;n<e.length;n++)t^=e.charCodeAt(n),t=Math.imul(t,0x1000193);return(t>>>0).toString(36)}function dJ(e,t){return e.slice(t+1).some(e=>"toolContainer"===e.type)?"text":"final"}function dZ(e){var t;let n=(null==(t=(e.resultText.trim()||"等待工具返回结果…").split("\n")[0])?void 0:t.replace(/\s+/g," ").trim())||"等待工具返回结果…";return n.length<=80?n:"".concat(n.slice(0,80),"…")}function dK(e){if(null==e)return"-";try{let t=("string"==typeof e?e:JSON.stringify(e)).replace(/\s+/g," ").trim();if(!t)return"-";return t.length<=48?t:"".concat(t.slice(0,48),"…")}catch(t){return String(e)}}let dQ={bash:"终端",read_file:"读取文件",write:"写入文件",grep:"文本搜索",glob:"文件搜索",web_search:"网页搜索",task:"子任务"};function d0(e){var t;let n=function(e){if(!e)return"tool";let t=e.trim(),n=t.match(/^mcp__[^_]+__(.+)$/);return(null==n?void 0:n[1])||t}(e);return null!=(t=dQ[n])?t:n}function d1(e){let{status:t}=e;return"pending"===t?(0,A.jsx)(H.default,{name:"Dot",size:14,className:"shrink-0 text-[#b0bac8]",strokeWidth:2}):"error"===t?(0,A.jsx)(H.default,{name:"CircleX",size:14,className:"shrink-0 !text-[#A32D2D]",strokeWidth:1}):(0,A.jsx)(H.default,{name:"CheckCircle2",size:14,className:"shrink-0 text-[#b4c4b9]",strokeWidth:1})}function d4(e){let{className:t}=e;return(0,A.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",className:t,children:[(0,A.jsx)("path",{d:"M13.04 7.304a.5.5 0 0 1 .92.392C13.665 8.386 13.089 9 12.3 9c-.487 0-.892-.234-1.2-.574-.309.34-.713.574-1.2.574-.486 0-.892-.234-1.2-.574-.31.34-.714.574-1.2.574a.5.5 0 0 1 0-1c.212 0 .52-.18.74-.696a.5.5 0 0 1 .92 0c.221.516.528.696.74.696.213 0 .52-.18.74-.696l.035-.067a.5.5 0 0 1 .885.067c.22.516.527.696.74.696s.519-.18.74-.696"}),(0,A.jsx)("path",{fillRule:"evenodd",d:"M14 3a2 2 0 0 1 2 2v8h1.5a.5.5 0 0 1 .5.5V15a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V4H4a1 1 0 0 0-.745 1.667.5.5 0 0 1-.745.666A2 2 0 0 1 4 3zM6 15a1 1 0 1 0 2 0v-1.5a.5.5 0 0 1 .5-.5H15V5a1 1 0 0 0-1-1H6zm3 0c0 .365-.1.706-.27 1H16a1 1 0 0 0 1-1v-1H9z",clipRule:"evenodd"})]})}function d5(e){let{className:t}=e;return(0,A.jsx)("svg",{viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0,className:t,children:(0,A.jsx)("path",{d:"M11.586 2a1.5 1.5 0 0 1 1.06.44l2.914 2.914a1.5 1.5 0 0 1 .44 1.06V16.5a1.5 1.5 0 0 1-1.5 1.5h-9a1.5 1.5 0 0 1-1.492-1.347L4 16.5v-13A1.5 1.5 0 0 1 5.5 2zM5.5 3a.5.5 0 0 0-.5.5v13a.5.5 0 0 0 .5.5h9a.5.5 0 0 0 .5-.5V7h-2.5A1.5 1.5 0 0 1 11 5.5V3zm7.04 10.304a.5.5 0 0 1 .92.392c-.295.69-.871 1.304-1.66 1.304-.487 0-.892-.234-1.2-.574-.309.34-.713.574-1.2.574-.486 0-.892-.233-1.2-.574-.31.34-.714.574-1.2.574a.5.5 0 0 1 0-1c.212 0 .52-.18.74-.696l.034-.067a.5.5 0 0 1 .886.067c.221.516.528.696.74.696.213 0 .52-.18.74-.696l.035-.067a.5.5 0 0 1 .885.067c.22.516.527.696.74.696s.519-.18.74-.696m0-4a.5.5 0 0 1 .92.392c-.295.69-.871 1.304-1.66 1.304-.487 0-.892-.234-1.2-.574-.309.34-.713.574-1.2.574-.486 0-.892-.233-1.2-.574-.31.34-.714.574-1.2.574a.5.5 0 0 1 0-1c.212 0 .52-.18.74-.696l.034-.067a.5.5 0 0 1 .886.067c.221.516.528.696.74.696.213 0 .52-.18.74-.696l.035-.067a.5.5 0 0 1 .885.067c.22.516.527.696.74.696s.519-.18.74-.696M12 5.5a.5.5 0 0 0 .5.5h2.293L12 3.207z"})})}function d6(e){let{text:t,variant:n}=e,r="final"===n;return r?(0,A.jsxs)("div",{children:[(0,A.jsxs)("div",{className:"agent-timeline-label-row pt-2",children:[(0,A.jsx)("span",{className:r?"tag tag-final":"tag tag-text",children:r?"最终回答":"assistant text"}),(0,A.jsx)("span",{className:"agent-timeline-label-hint",children:r?"所有工具调用完成后输出":""})]}),r&&(0,A.jsx)("div",{className:"agent-timeline-thinking".concat(r?"agent-timeline-thinking--final":""),children:t})]}):(0,A.jsx)("div",{className:"agent-timeline-thinking !pt-2",children:t})}function d3(e){let{group:t,totalToolCalls:n,completedToolCalls:r,runId:i,agentName:a,scheduledTaskIndex:o}=e,[s,l]=(0,C.useState)(!0),[,c]=(0,C.useState)(!1),[u,h]=(0,C.useState)(!1),[p,d]=(0,C.useState)({}),m=(0,C.useRef)(null),f=(0,C.useRef)(null),g=(0,C.useRef)(null),y=(0,C.useRef)(null),b=(0,C.useMemo)(()=>(function(e){let t=new Map;for(let n of e){let e=n.toolName||"tool",r=t.get(e);if(r){r.push(n);continue}t.set(e,[n])}return Array.from(t.entries()).map(e=>{let[t,n]=e;return{toolName:t,items:n}})})(t.tools),[t.tools]),v=(0,C.useMemo)(()=>t.tools.map(e=>"".concat(e.toolUseId,":").concat(e.status,":").concat(e.resultText.length)).join("|"),[t.tools]);(0,C.useEffect)(()=>()=>{null!=f.current&&window.clearTimeout(f.current),null!=g.current&&window.clearTimeout(g.current),null!=y.current&&window.clearTimeout(y.current)},[]);let x=()=>{let e=m.current;if(!e)return;let t=()=>{e.scrollTop=e.scrollHeight};t(),requestAnimationFrame(t),null!=y.current&&window.clearTimeout(y.current),y.current=window.setTimeout(()=>{t(),y.current=null},320)};(0,C.useEffect)(()=>{if(null!=f.current&&(window.clearTimeout(f.current),f.current=null),null!=g.current&&(window.clearTimeout(g.current),g.current=null),"pending"===t.status)return void c(!1);f.current=window.setTimeout(()=>{c(!0),f.current=null},300),u||(g.current=window.setTimeout(()=>{l(!1),g.current=null},300))},[t.status,u]),(0,C.useEffect)(()=>{s&&x()},[s,v]);let k=(0,C.useMemo)(()=>{var e;let n=t.tools.find(e=>"pending"===e.status);return d0((null==n?void 0:n.toolName)||(null==(e=t.tools[0])?void 0:e.toolName)||"tool")},[t.tools]),w=(0,C.useMemo)(()=>t.tools.length>1?"".concat(k," 等 ").concat(t.tools.length," 个工具"):"pending"===t.status?"已执行":"完成",[t.status,t.tools.length,k]),S=(0,C.useMemo)(()=>{let e={type:"tool",tagClassName:"tag tag-tool",tagLabel:"工具调用面板",title:k,tagHint:t.tools.length>1?"本批 ".concat(t.tools.length," 个并发调用"):"工具执行与结果",runId:i||""};return"pending"===t.status?{...e,status:w,label:"等待工具返回…",panelModifier:"agent-timeline-tool-panel--done",headerModifier:"agent-timeline-tool-header--done"}:"error"===t.status?{...e,status:w,label:t.summary?"摘要:".concat(t.summary):"已完成(含错误)",panelModifier:"agent-timeline-tool-panel--error",headerModifier:"agent-timeline-tool-header--error"}:{...e,status:w,label:t.summary?"摘要:".concat(t.summary):"已完成",panelModifier:"agent-timeline-tool-panel--done",headerModifier:"agent-timeline-tool-header--done"}},[t.status,t.summary,w,t.tools.length,i,k]),T=(0,C.useMemo)(()=>{let e=t.tools.find(e=>"pending"===e.status);if(!e)return"";let n=dK(e.input);return"".concat(d0(e.toolName)," · ").concat(n)},[t.tools]);if(1===t.tools.length&&t.tools[0].isSchedule){var _;let e=t.tools[0],n=(0,dX.parseScheduleToolResult)(e.resultRaw),r=null==n?void 0:n.id,i=!!r&&(null==o||null==(_=o.get(r))?void 0:_.status)==="fired";return(0,A.jsx)(d$,{input:e.input&&"object"==typeof e.input?e.input:{},toolUseId:e.toolUseId,createdAt:t.timestamp,result:n,fired:i})}return(0,A.jsx)(A.Fragment,{children:(0,A.jsxs)("div",{className:"agent-timeline-tool-panel ".concat(S.panelModifier),children:[(0,A.jsx)("button",{type:"button",onClick:()=>{h(!0),l(e=>!e)},className:"agent-timeline-tool-header !border-0 ".concat(S.headerModifier),"aria-expanded":s,children:(0,A.jsxs)("div",{className:"flex min-w-0 flex-1 items-center gap-1.5",children:[(0,A.jsxs)("div",{className:"agent-timeline-tool-title min-w-0 truncate ".concat(S.tagClassName),children:[a||S.runId," · ",S.status]}),(0,A.jsx)("div",{className:"agent-timeline-tool-meta min-w-0 truncate",children:"pending"===t.status&&T?T:S.label}),(0,A.jsx)("div",{className:"agent-timeline-tool-calls",children:"pending"===t.status?"".concat(r,"/").concat(n):""})]})}),(0,A.jsx)("div",{className:"overflow-hidden transition-all duration-300 ".concat(s?"max-h-[min(50vh,22rem)]":"max-h-0"),children:(0,A.jsx)("div",{ref:m,className:"max-h-[min(50vh,22rem)] overflow-y-auto border-t border-black/5 bg-[#f9f9f7] px-2.5 py-1.5",children:(0,A.jsxs)("div",{className:"relative space-y-2.5 pl-6",children:[(0,A.jsx)("div",{className:"absolute bottom-1 left-2 top-1 w-px bg-[#efefef]","aria-hidden":!0}),b.map(e=>(0,A.jsx)("div",{className:"space-y-1.5",children:e.items.map((e,t)=>{let n=!0===p[e.toolUseId];return(0,A.jsxs)("div",{className:"relative",children:[(0,A.jsx)("div",{className:"absolute -left-[24px] top-1 inline-flex bg-[#f9f9f9] pb-1",children:(0,A.jsx)("span",{className:"h-4 w-4 items-center justify-center rounded-full border border-[#e2e6ee] bg-[#f6f7fa]","aria-hidden":!0,children:(0,A.jsx)(d1,{status:e.status})})}),(0,A.jsxs)("div",{className:"rounded-[4px] border border-white/5 bg-[#f9f9f9] ".concat("error"===e.status?"bg-[rgba(120,30,30,.07)]":""),children:[(0,A.jsxs)("button",{type:"button",onClick:()=>{d(t=>({...t,[e.toolUseId]:!t[e.toolUseId]})),x()},className:"flex w-full items-center justify-between gap-1.5 border-0 bg-transparent px-2 py-1 text-left text-[#535353] transition-colors hover:text-[#343d52]","aria-expanded":n,children:[(0,A.jsxs)("div",{className:"flex min-w-0 flex-1 items-center gap-1.5 font-mono text-[10.5px]",children:[(0,A.jsx)("span",{className:"w-5 shrink-0 text-[#252e3e]",children:String(t+1).padStart(2,"0")}),(0,A.jsx)("span",{className:"max-w-36 shrink-0 truncate font-medium ".concat("error"===e.status?"text-[#A32D2D]":"done"===e.status?"text-[#3B6D11]":"text-[#5a8ec4]"),children:d0(e.toolName)}),(0,A.jsx)("span",{className:"min-w-0 flex-1 truncate text-[#353f52]",children:dK(e.input)}),(0,A.jsx)("span",{className:"min-w-0 flex-1 truncate italic ".concat("error"===e.status?"text-[#6e2828]":"text-[#2e5a38]"),children:dZ(e)})]}),(0,A.jsx)("span",{className:"shrink-0 text-[#343d52]","aria-hidden":!0,children:n?(0,A.jsx)(H.default,{name:"ChevronsUp",size:12,strokeWidth:1}):(0,A.jsx)(H.default,{name:"ChevronsDown",size:12,strokeWidth:1})})]}),(0,A.jsx)("div",{className:"transition-all duration-300 ".concat(n?"max-h-[2000px] overflow-visible":"max-h-0 overflow-hidden"),children:(0,A.jsxs)("div",{className:"space-y-1.5 border-t border-white/5 bg-white/[.012] px-2 py-1.5",children:[(0,A.jsx)(dH,{data:{type:"tool_use",id:e.toolUseId,name:e.toolName,input:e.input}}),e.attachedThinkings.length>0?(0,A.jsx)("div",{className:"space-y-1 border-l-2 border-[#e4dfc8] pl-2 opacity-90",children:e.attachedThinkings.map((t,n)=>(0,A.jsx)(dW,{payload:t,usage:"tool-attached",compact:!0},"".concat(e.toolUseId,"-thinking-").concat(n,"-").concat(dY(JSON.stringify(t)))))}):null,"pending"===e.status?(0,A.jsx)("div",{className:"rounded-md border border-[#223044] bg-[rgba(50,100,180,.07)] px-3 py-2 text-xs text-[#4d80c4]",children:"等待工具返回结果…"}):(0,A.jsx)(dU,{data:{type:"tool_result",tool_use_id:e.toolUseId,is_error:"error"===e.status,content:e.resultRaw},onExpandChange:()=>{x()}})]})})]})]},e.toolUseId)})},e.toolName))]})})})]})})}function d2(e){let{messages:t,runId:n,agentName:r,streaming:i=!1,ev:a,scheduledTaskIndex:o}=e,s=(0,C.useMemo)(()=>{if("string"==typeof n&&n.trim())return n;if("string"==typeof(null==a?void 0:a.runId)&&a.runId.trim())return a.runId;for(let e of t){if(!e||"object"!=typeof e)continue;let t=e.runId;if("string"==typeof t&&t.trim())return t}return""},[null==a?void 0:a.runId,t,n]),l=(0,C.useMemo)(()=>{if("string"==typeof r&&r.trim())return r;if("string"==typeof(null==a?void 0:a.sourceAgent)&&a.sourceAgent.trim())return a.sourceAgent;for(let e of t){if(!e||"object"!=typeof e)continue;let t=e.agent_name;if("string"==typeof t&&t.trim())return t}return""},[r,null==a?void 0:a.sourceAgent,t]),c=(0,C.useMemo)(()=>(function(e){let t=[],n=0,r=[],i=new Map,a="",o=[],s=()=>"tool-use-".concat(n++),l=()=>r.filter(e=>"pending"===e.status),c=()=>{if(0!==o.length){for(let e of o)t.push({type:"thinking",payload:e.payload,timestamp:e.timestamp,key:e.key});o=[]}},u=e=>{0!==o.length&&(e.attachedThinkings.push(...o.map(e=>e.payload)),o=[])},h=()=>{if(0===o.length)return;let e=l(),t=1===e.length?e[0]:r[r.length-1];if(!t)return void c();u(t)},p=()=>{if(0===r.length)return;h();let e=r.map(e=>({...e,attachedThinkings:[...e.attachedThinkings]}));t.push({type:"toolContainer",status:e.some(e=>"error"===e.status)?"error":e.some(e=>"pending"===e.status)?"pending":"done",summary:function(e){let t=e.map(e=>e.resultText.trim()).filter(e=>e.length>0);for(let e of t){let t=e.match(/(\d+)\s*(?:条|个)?(?:命中|结果|items?)/i);if(null==t?void 0:t[1])return"".concat(t[1]," 条结果")}let n=t[0];if(!n)return"";let r=n.replace(/\s+/g," ").trim();return r.length<=30?r:"".concat(r.slice(0,30),"…")}(e),tools:e,timestamp:a||new Date().toISOString()}),r=[],i=new Map,a=""},d=()=>{var e;(e=r).length>0&&e.every(e=>"pending"!==e.status)&&p()},m=(e,t)=>{let n,o=function(e){if("string"==typeof e)return e;if(!Array.isArray(e))try{return JSON.stringify(e,null,2)}catch(t){return String(null!=e?e:"")}let t=[];for(let n of e)if(n&&"object"==typeof n){if("text"===n.type&&"string"==typeof n.text){t.push(n.text);continue}try{t.push(JSON.stringify(n,null,2))}catch(e){t.push(String(n))}}return t.join("\n").trim()}(e.content),l=!0===e.is_error||/\berror\b/i.test(o)?"error":"done",c="string"==typeof e.tool_use_id?e.tool_use_id:"";if(c&&(n=i.get(c)),n||c||(n=r.find(e=>"pending"===e.status)),!n){a||(a=t);let n=c||s(),h={toolUseId:n,toolName:"tool",input:null,status:l,resultText:o,resultRaw:e.content,attachedThinkings:[],isSchedule:!1};u(h),r.push(h),i.set(n,h),d();return}u(n),n.status=l,n.resultText=o,n.resultRaw=e.content,d()},f=(t,n)=>dO(t,dB(e,n));for(let n=0;n<e.length;n+=1){var g;let p=(g=e[n])&&"object"==typeof g?g:null;if(!p)continue;let y=function(e){var t,n;let r=null!=(n=null==(t=e.message)?void 0:t.timestamp)?n:e.timestamp;return"string"==typeof r&&r.trim()?r:new Date().toISOString()}(p),b=function(e){var t;let n=null==(t=e.message)?void 0:t.content;return Array.isArray(n)?n.filter(e=>!!e&&"object"==typeof e):[]}(p);for(let e=0;e<b.length;e+=1){let p=b[e];if("text"===p.type&&"string"==typeof p.text){if(!p.text.trim())continue;r.length>0?h():c(),d(),t.push({type:"thought",text:p.text,timestamp:y});continue}if("markdown"===p.type&&"string"==typeof p.content){if(!p.content.trim())continue;r.length>0?h():c(),d(),t.push({type:"thought",text:p.content,timestamp:y});continue}if("thinking"===p.type){let r=f(p,n),i="thinking-".concat(n,"-").concat(e,"-").concat(y),a=l();1===a.length?a[0].attachedThinkings.push(r):a.length>1?o.push({payload:r,timestamp:y,key:i}):(c(),t.push({type:"thinking",payload:r,timestamp:y,key:i}));continue}if("tool_use"===p.type){d();let e="string"==typeof p.id&&p.id?p.id:s(),t="string"==typeof p.name&&p.name.trim()?p.name:"tool";0===r.length&&(a=y);let n={toolUseId:e,toolName:t,input:p.input,status:"pending",resultText:"",resultRaw:null,attachedThinkings:[],isSchedule:t===dX.SCHEDULE_TOOL_NAME};u(n),r.push(n),i.set(e,n);continue}"tool_result"===p.type&&(0!==r.length||a||(a=y),m(p,y))}}return p(),t})(t),[t]),u=(0,C.useMemo)(()=>{for(let e=c.length-1;e>=0;e-=1)if("thinking"===c[e].type)return e;return -1},[c]),h=c.filter(e=>"toolContainer"===e.type),p=(0,C.useMemo)(()=>h.reduce((e,t)=>e+t.tools.length,0),[h]),d=(0,C.useMemo)(()=>h.reduce((e,t)=>e+t.tools.filter(e=>"pending"!==e.status).length,0),[h]),m=h.length>0,f=c.length>0,[g,y]=(0,C.useState)(()=>!i&&f),b=(0,C.useRef)(f),v=(0,C.useRef)(i),x=(0,C.useMemo)(()=>h.find(e=>"pending"===e.status)||h[h.length-1]||null,[h]),k=(0,C.useMemo)(()=>{if(!x)return{title:"工具调用面板",detail:"等待工具调用",toolCount:0,agentName:l,runId:s};let e=x.tools.find(e=>"pending"===e.status),t=e||x.tools[x.tools.length-1],n=t?d0(t.toolName):"tool";return{title:x.tools.length>1?"".concat(n," 等 ").concat(x.tools.length," 个工具"):(null==t?void 0:t.status)==="pending"?"".concat(n," · 已执行"):"".concat(n," · 已完成"),detail:(e?"".concat(n," · ").concat(dK(e.input)):x.summary||dZ(t||x.tools[0]))||"工具执行与结果",toolCount:x.tools.length,agentName:l,runId:s}},[x,l,s]);return((0,C.useEffect)(()=>{let e=v.current;!e&&i?y(!1):e&&!i?y(!0):(!b.current&&f&&y(!0),b.current&&!f&&y(!1)),v.current=i,b.current=f},[f,i]),c.length)?(0,A.jsxs)("div",{className:"chat-agent-timeline relative",children:[g?null:(0,A.jsx)("div",{className:"absolute bottom-1 left-2 top-6 w-px bg-[var(--border-hover)]","aria-hidden":!0}),(0,A.jsx)("div",{className:"relative",children:(0,A.jsxs)("button",{type:"button",className:"agent-timeline-summary-bar cursor-pointer !text-[#e6e6e6] hover:!text-[#cfcfcf]",onClick:()=>y(e=>!e),"aria-expanded":!g,children:[(0,A.jsxs)("span",{className:"agent-timeline-summary-title rounded-md bg-[var(--ds-item-active)] px-2 py-1",children:[k.agentName||k.runId," · tool"]}),(0,A.jsx)("span",{className:"agent-timeline-summary-detail !flex-none",children:k.detail}),(0,A.jsx)("div",{className:"text-xs text-[#6e6e6e]",children:"".concat(p," 次")}),g?(0,A.jsx)(H.default,{name:"ChevronRight",size:8,className:"text-[#8A8985]",strokeWidth:1}):(0,A.jsx)(H.default,{name:"ChevronDown",size:8,className:"text-[#8A8985]",strokeWidth:1})]})}),g?null:(0,A.jsx)("div",{className:"mt-[0.75rem] max-h-[6000px] overflow-visible pl-9 opacity-100 transition-all duration-300",children:(0,A.jsxs)("div",{className:"space-y-3",children:[c.map((e,t)=>(0,A.jsxs)("div",{className:"relative",children:["thought"===e.type?(0,A.jsx)("span",{className:"absolute -left-[40px] top-0.5 z-10 flex h-6 w-6 items-center justify-center rounded-full border border-[#efefef] bg-[#fbfbfc] ".concat("final"===dJ(c,t)?"agent-timeline-dot-final":"agent-timeline-dot-text"),"aria-hidden":!0,children:(0,A.jsx)(d5,{className:"h-5 w-5 shrink-0 text-[#6e6e6e]"})}):"thinking"===e.type?(0,A.jsx)("span",{className:"agent-timeline-dot-text absolute -left-[40px] top-0.5 z-10 flex h-6 w-6 items-center justify-center rounded-full border border-[#efefef] bg-[#fbfbfc]","aria-hidden":!0,children:(0,A.jsx)(H.default,{name:"Think",size:14,className:"text-[#6e6e6e]"})}):(0,A.jsx)("span",{className:"agent-timeline-dot-tool absolute -left-[40px] top-0.5 z-10 inline-flex h-6 w-6 items-center justify-center rounded-full border border-[#efefef] bg-[#fbfbfc]","aria-hidden":!0,children:(0,A.jsx)(d4,{className:"h-5 w-5 shrink-0 text-[#6e6e6e]"})}),"thought"===e.type?(0,A.jsx)(d6,{text:e.text,variant:dJ(c,t)}):"thinking"===e.type?(0,A.jsx)(dW,{payload:e.payload,usage:"agent-timeline",streaming:i&&t===u}):(0,A.jsx)(d3,{group:e,totalToolCalls:p,completedToolCalls:d,runId:s,agentName:l,scheduledTaskIndex:o})]},function(e){switch(e.type){case"thought":return"thought-".concat(e.timestamp,"-").concat(dY(e.text));case"thinking":return e.key;case"toolContainer":return"tool-".concat(e.timestamp,"-").concat(e.tools.map(e=>e.toolUseId).join("|"));default:return"timeline-".concat(String(e))}}(e))),m?(0,A.jsxs)("div",{className:"relative !mt-[1.25rem] font-mono text-xs text-[#6e6e6e]",children:[(0,A.jsx)("span",{className:"absolute -left-[40px] -top-0.5 z-10 inline-flex h-6 w-6 items-center justify-center rounded-full border border-[#efefef] bg-[#fbfbfc]","aria-hidden":!0,children:(0,A.jsx)(H.default,{name:"Check",size:8,className:"text-[#6e6e6e]",strokeWidth:1})}),"已完成"]}):null]})})]}):null}let d7=[{border:"#5DCAA5",headerBg:"#E1F5EE",headerText:"#085041",dot:"#0F6E56"}];function d8(e){for(let t=e.length-1;t>=0;t-=1){let n=e[t];if("source"!==n.kind)continue;let r=n.payload;if(r&&("resolved"===r.status||"failed"===r.status))return r.status}return null}let d9=(0,C.memo)(function(e){let{ev:t,idx:n,renderItem:r}=e;return(0,A.jsx)("div",{children:r(t,n)})});function me(e){let{block:t,paletteIndex:n,renderItem:r}=e,i=d7[n%d7.length],[a,o]=(0,C.useState)(!1),[s,l]=(0,C.useState)(!1),[c,u]=(0,C.useState)(!1),[h,p]=(0,C.useState)(!1),[d,m]=(0,C.useState)(0),f=(0,C.useRef)(null),g=(0,C.useRef)(null),{toolCount:y,errCount:b}=(0,C.useMemo)(()=>(function(e){let t=0,n=0,r=0;for(let i of e)if("conversation"===i.kind)for(let e of function(e){if(!e||"object"!=typeof e)return[];let t=e.message;if(!t||"object"!=typeof t)return[];let n=t.message;if(!n||"object"!=typeof n)return[];let r=n.content;return Array.isArray(r)?r.filter(e=>!!e&&"object"==typeof e):[]}(i.payload))"thinking"===e.type?t+=1:"tool_use"===e.type?n+=1:"tool_result"===e.type&&!0===e.is_error&&(r+=1);return{thinkCount:t,toolCount:n,errCount:r}})(t.items),[t.items]),v=(0,C.useMemo)(()=>d8(t.items),[t.items]),x=(0,C.useMemo)(()=>(function(e){let t=e=>e?("string"==typeof e.team_name?e.team_name:"string"==typeof e.teamName?e.teamName:"").trim():"",n=e=>{if(!e)return"";let t=e.content;if(!Array.isArray(t))return"";for(let e of t){var n;if(!e||"object"!=typeof e)continue;let t=e.text;if("string"!=typeof t||!t.trim())continue;let r=t.match(/(?:^|\n)\s*team_name\s*:\s*([^\n]+)/);if(null==r||null==(n=r[1])?void 0:n.trim())return r[1].trim()}return""},r=e=>{var t,n;if("string"!=typeof e||!e.trim())return"";let r=e.match(/(?:^|\n)\s*team_name\s*[:=]\s*([^\n]+)/);if(null==r||null==(t=r[1])?void 0:t.trim())return r[1].trim();let i=e.match(/(?:^|\n)\s*agent_id\s*:\s*[^\n@]+@([^\n]+)/);return(null==i||null==(n=i[1])?void 0:n.trim())?i[1].trim():""};for(let a of e){if(!a.payload||"object"!=typeof a.payload)continue;let e=a.payload,o=t(e);if(o)return o;let s=r(e.text);if(s)return s;if("string"==typeof e.source){var i;let t=e.source.match(/@(.+)$/);if(null==t||null==(i=t[1])?void 0:i.trim())return t[1].trim()}let l=e.message;if(!l||"object"!=typeof l)continue;let c=t(l);if(c)return c;let u=l.toolUseResult;if(u&&"object"==typeof u){let e=t(u);if(e)return e}let h=l.message;if(!h||"object"!=typeof h)continue;let p=h.content;if(Array.isArray(p)){for(let e of p)if(e&&"object"==typeof e){if("tool_use"===e.type){let n=e.input;if(n&&"object"==typeof n){let e=t(n);if(e)return e}}if("tool_result"===e.type){let r=t(e);if(r)return r;let i=n(e);if(i)return i}}}}return""})(t.items),[t.items]),k=(0,C.useMemo)(()=>null===d8(t.items),[t.items]),w=h?Math.min(d,t.items.length):0;(0,C.useEffect)(()=>()=>{null!=f.current&&window.cancelAnimationFrame(f.current),null!=g.current&&window.clearTimeout(g.current)},[]),(0,C.useEffect)(()=>{if(a&&h&&!(d>=t.items.length))return g.current=window.setTimeout(()=>{m(e=>Math.min(e+24,t.items.length)),g.current=null},0),()=>{null!=g.current&&window.clearTimeout(g.current),g.current=null}},[t.items.length,h,a,d]);let S=(t.runId||"").slice(0,8),T=t.sourceAgent||"unknown-agent";return(0,A.jsxs)("div",{className:"agent-block p-[var(--space-1)]","data-agent-work-phase":k?"active":"finished",style:{overflow:"hidden"},children:[(0,A.jsxs)("button",{type:"button",onClick:()=>{if(a){o(!1),p(!1),u(!1),m(0),null!=f.current&&(window.cancelAnimationFrame(f.current),f.current=null),null!=g.current&&(window.clearTimeout(g.current),g.current=null);return}o(!0),u(!0),p(!1),m(Math.min(16,t.items.length)),null!=f.current&&window.cancelAnimationFrame(f.current),f.current=window.requestAnimationFrame(()=>{p(!0),f.current=null})},onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),"aria-expanded":a,"aria-label":"".concat(T," · ").concat(v?" · ".concat(v):""),className:"agent-block-header ".concat(k?"slideHighlight":""),style:{display:"flex",alignItems:"center",gap:8,padding:"12px 0",border:"none",background:"transparent",cursor:"pointer",userSelect:"none",textAlign:"left"},children:[(0,A.jsxs)("span",{className:"rounded-md bg-[var(--ds-item-active)] px-2 py-1",style:{fontSize:"var(--text-xs)",fontWeight:500,color:i.headerText,flexShrink:0},children:["SUBAGENT = ",T]}),x?(0,A.jsxs)("span",{style:{fontSize:"var(--text-xs)",color:i.headerText,opacity:.65,flexShrink:0},children:["· ",x]}):null,(0,A.jsxs)("span",{style:{fontSize:"var(--text-xs)",color:i.headerText,opacity:.65,flexShrink:0,fontFamily:"ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace"},children:["run:",S]}),(0,A.jsxs)("div",{style:{display:"flex",gap:4,alignItems:"center",marginLeft:4,flexShrink:0},children:[y>0?(0,A.jsxs)("span",{style:{fontSize:"var(--text-xs)",padding:"1px 6px",borderRadius:20,background:"#EDEDED",color:i.headerText,fontWeight:400},children:["工具调用:",y]}):null,b>0?(0,A.jsxs)("span",{style:{fontSize:"var(--text-xs)",padding:"1px 6px",borderRadius:20,background:"#FCEBEB",color:"#A32D2D",fontWeight:500},children:[b," err"]}):null]}),v?(0,A.jsx)("span",{style:{fontSize:"var(--text-xs)",padding:"1px 7px",borderRadius:20,fontWeight:500,marginLeft:4,background:"resolved"===v?"#EAF3DE":"#FCEBEB",color:"resolved"===v?"#3B6D11":"#A32D2D"},children:v}):null,(0,A.jsxs)("span",{style:{fontSize:"var(--text-xs)",color:i.headerText,opacity:.55,marginLeft:4,flexShrink:0},children:[t.items.length," 条"]}),(0,A.jsx)("span",{style:{flex:1}}),(0,A.jsx)("span",{style:{transition:"transform .18s ease",transform:a?"rotate(90deg)":"none",flexShrink:0},children:(0,A.jsx)(H.default,{name:"ChevronRight",size:14,strokeWidth:1,color:i.headerText})})]}),c?(0,A.jsx)("div",{style:{padding:"8px 10px 10px",margin:"0",borderRadius:"8px",border:"1px solid ".concat(i.border,"40"),background:"#ffffff"},children:h?(0,A.jsxs)("div",{style:{maxHeight:"min(60vh, 680px)",overflowY:"auto",overflowX:"hidden",overscrollBehaviorY:"contain"},children:[t.items.slice(0,w).map((e,t)=>(0,A.jsx)(d9,{ev:e,idx:t,renderItem:r},"agent-block-item-".concat(t))),w<t.items.length?(0,A.jsx)("div",{style:{fontSize:"var(--text-sm)",color:"#717781",padding:"4px 0"},children:"加载更多内容..."}):null]}):(0,A.jsx)("div",{style:{fontSize:"var(--text-sm)",color:"#717781",padding:"4px 0"},children:"内容加载中..."})}):null]})}function mt(e){let{dispatchedPrompt:t,triggeredAt:n,children:r}=e;return(0,A.jsxs)("section",{className:"scheduled-turn","aria-label":"定时任务触发轮次",children:[(0,A.jsxs)("div",{className:"scheduled-turn-divider",children:[(0,A.jsx)(H.default,{name:"Info",size:14,strokeWidth:1.6}),(0,A.jsxs)("span",{children:["定时任务触发",n?(0,A.jsxs)("em",{children:[" · ",function(e){if(!e)return"";let t=new Date(e);return Number.isFinite(t.getTime())?new Intl.DateTimeFormat("zh-CN",{hour:"2-digit",minute:"2-digit",hour12:!1}).format(t):e}(n)]}):null]})]}),t.trim()?(0,A.jsxs)("div",{className:"scheduled-turn-dispatch",children:[(0,A.jsxs)("div",{className:"scheduled-turn-dispatch-head",children:[(0,A.jsx)(H.default,{name:"RefreshCw",size:12,strokeWidth:1.6}),(0,A.jsx)("span",{children:"调度系统派发提示(非用户发送)"})]}),(0,A.jsx)("div",{className:"scheduled-turn-dispatch-body",children:t})]}):null,(0,A.jsx)("div",{className:"scheduled-turn-body",children:r})]})}function mn(e){return"number"==typeof e&&Number.isFinite(e)?Math.max(0,Math.floor(e)):0}function mr(e){let{error:t,className:n="",message:r={}}=e,i=function(e){let t=e&&"object"==typeof e?e:{};return{retryInMs:mn(t.retryInMs),retryAttempt:mn(t.retryAttempt),maxRetries:mn(t.maxRetries)}}(r),a=i.retryAttempt,o=i.maxRetries,s=i.retryInMs;if(o<=0)return null;let l=a>=o,c=Math.max(1,Math.ceil(s/1e3));return(0,A.jsx)("div",{className:"chat-msg ".concat(n).trim(),role:l?"alert":"status","aria-live":"polite",children:(0,A.jsx)("div",{className:"inline-flex items-center gap-2 text-sm text-[#626a77]",children:l?(0,A.jsx)("span",{children:"服务暂时不可用,请稍后再试"}):(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(G,{className:"h-[14px] w-[14px] text-[#626a77]"}),(0,A.jsx)("span",{children:"服务连接中 (".concat(a,"/").concat(o,") · ").concat(c,"s")})]})})})}function mi(e){let{text:t,engine:n,streamMode:r=!1,components:i}=e;return"remark"===n?(0,A.jsx)(dj,{markdown:t,streaming:r,theme:"light",components:i}):(0,A.jsx)("div",{className:"chat-md",dangerouslySetInnerHTML:{__html:function(e){if(!e)return"";try{return tt.parse(e,{async:!1})}catch(e){return"<pre>".concat((0,j.escapeHtml)(String(e)),"</pre>")}}(t)}})}let ma=(0,C.memo)(function(e){let{ev:t,idx:n,streaming:r,showToolbar:i,durationContext:a,renderTimelineEvent:o}=e;return o(t,n,r,i,a)});function mo(e){if(!e||"object"!=typeof e)return null;let t=e.message;if(t&&"object"==typeof t)return e;let n=e.data;if(!n||"object"!=typeof n)return null;let r=n.message;return r&&"object"==typeof r?r:null}function ms(e){var t,n;let r=mo(e);if(!r)return null;let i=r.message;if(!i||"object"!=typeof i)return null;let a=e&&"object"==typeof e?e:null,o=null!=(n=null!=(t=r.timestamp)?t:"string"==typeof(null==a?void 0:a.timestamp)?a.timestamp:void 0)?n:"string"==typeof(null==a?void 0:a.ts)?a.ts:void 0,s={...r,message:i};return"string"==typeof o&&o.trim()&&(s.timestamp=o),(0,dX.retainScheduledTriggerFlag)(e,s)}function ml(e){let t=mo(e);return"string"==typeof(null==t?void 0:t.type)?t.type:void 0}function mc(e){return(function(e){var t;let n=mo(e);if(!n)return[];let r=null==(t=n.message)?void 0:t.content;return Array.isArray(r)?r.filter(e=>!!e&&"object"==typeof e):[]})(e).some(e=>"tool_use"===e.type||"tool_result"===e.type||"string"==typeof e.type&&e.type.startsWith("tool_"))}function mu(e){return"user"===ml(e)&&!mc(e)}function mh(e){var t;let n=mo(e);return!!n&&"assistant"===n.type&&(null==(t=n.message)?void 0:t.stop_reason)==="end_turn"}function mp(e){return"conversation"!==e.kind?null:ms(e.payload.message)}function md(e){if(!e||"object"!=typeof e)return null;let t=e.message;return t&&"object"==typeof t?t:null}function mm(e){if("conversation"!==e.kind)return!1;let t=md(e.payload);return!!t&&"system"===t.type&&"turn_duration"===t.subtype}function mf(e){if("conversation"!==e.kind)return!1;let t=md(e.payload);return!!t&&"progress"===t.type}function mg(e){var t;let n=mo(e);if(!n||"assistant"!==n.type)return!1;let r=null==(t=n.message)?void 0:t.content;if(!Array.isArray(r)||0===r.length)return!1;let i=!1;for(let e of r){if(!e||"object"!=typeof e)return!1;let t=e.type;if("text"===t||"markdown"===t){i=!0;continue}return!1}return i}function my(e){var t;let n=mo(e);if(!n||"assistant"!==n.type)return!1;let r=null==(t=n.message)?void 0:t.content;if(!Array.isArray(r)||0===r.length)return!1;for(let e of r)if(!e||"object"!=typeof e||"thinking"!==e.type)return!1;return!0}function mb(e){return!!e&&"object"==typeof e&&"system"===e.type&&"turn_duration"===e.subtype}function mv(e){var t;let n=null==e||null==(t=e.message)?void 0:t.content;return"user"===e.type&&Array.isArray(n)&&n.some(e=>(null==e?void 0:e.type)==="tool_result"||(null==e?void 0:e.type)==="tool_use")?"assistant":e.type}function mx(e){for(let t of e){if(!t||"object"!=typeof t)continue;let e=t.agent_name;if("string"==typeof e&&e.trim())return e}return""}let mk=new Intl.DateTimeFormat("zh-CN",{dateStyle:"medium",timeStyle:"short"}),mw=new Intl.DateTimeFormat("zh-CN",{hour:"2-digit",minute:"2-digit",hour12:!1});function mS(e){return"undefined"!=typeof navigator&&navigator.clipboard&&"function"==typeof navigator.clipboard.writeText?navigator.clipboard.writeText(e):"undefined"==typeof document?Promise.reject(Error("Clipboard unavailable")):new Promise((t,n)=>{let r=document.createElement("textarea");r.value=e,r.setAttribute("readonly",""),r.style.position="fixed",r.style.top="-9999px",r.style.opacity="0",document.body.appendChild(r),r.focus(),r.select();let i=document.execCommand("copy");if(document.body.removeChild(r),i)return void t();n(Error("Clipboard copy failed"))})}function mA(e){let t=[];for(let n of e)if(n&&"object"==typeof n){if("text"===n.type&&"string"==typeof n.text&&n.text.trim()){t.push(n.text.trim());continue}"markdown"===n.type&&"string"==typeof n.content&&n.content.trim()&&t.push(n.content.trim())}return t.join("\n\n").trim()}function mC(e){let{body:t,message:n}=e,[r,i]=(0,C.useState)(!1),a=(0,C.useRef)(null);(0,C.useEffect)(()=>()=>{null!=a.current&&window.clearTimeout(a.current)},[]);let o=function(e){let t;if(!e||"object"!=typeof e)return null;let n=e.message;if(n&&"object"==typeof n&&(t=n.timestamp),null==t&&(t=e.timestamp),null==t)return null;if("number"==typeof t){let e=new Date(t>1e12?t:1e3*t);return Number.isFinite(e.getTime())?e:null}if("string"==typeof t){let e=new Date(t);return Number.isFinite(e.getTime())?e:null}return null}(n),s=o?{label:mk.format(o),iso:o.toISOString()}:null,l=o?mw.format(o):null;return(0,A.jsxs)("div",{className:"chat-msg chat-msg-user group ml-auto flex max-w-[min(540px,100%)] flex-col items-end gap-1",children:[(0,A.jsx)("div",{className:"w-fit max-w-full whitespace-pre-wrap break-words rounded-md bg-[var(--ds-item-hover)] px-4 py-3 text-base text-[var(--ds-text)]",children:(0,A.jsx)("div",{children:t})}),(0,A.jsxs)("div",{className:"pointer-events-none invisible ml-auto flex min-h-5 w-fit items-center gap-2 pr-1 text-sm text-[var(--ds-muted)] opacity-0 transition-opacity group-focus-within:pointer-events-auto group-focus-within:visible group-focus-within:opacity-100 group-hover:pointer-events-auto group-hover:visible group-hover:opacity-100",children:[s?(0,A.jsx)(W.TooltipProvider,{delayDuration:150,children:(0,A.jsxs)(W.Tooltip,{children:[(0,A.jsx)(W.TooltipTrigger,{asChild:!0,children:(0,A.jsx)("time",{className:"shrink-0",dateTime:s.iso,children:l})}),(0,A.jsx)(W.TooltipContent,{side:"top",align:"center",sideOffset:8,children:s.label})]})}):null,(0,A.jsx)("button",{type:"button",className:"inline-flex h-5 w-5 items-center justify-center rounded-sm border-0 bg-transparent p-0 text-[var(--ds-muted)] transition-colors hover:bg-transparent hover:text-[var(--ds-text)] focus-visible:outline-none","aria-label":r?"已复制问话":"复制问话",title:r?"已复制":"复制问话",onClick:e=>{e.stopPropagation(),mS(t).then(()=>{i(!0),null!=a.current&&window.clearTimeout(a.current),a.current=window.setTimeout(()=>{i(!1),a.current=null},1500)},()=>{P.appToast.error("复制失败")})},children:r?(0,A.jsx)(H.default,{name:"Check",size:14}):(0,A.jsx)(H.default,{name:"Copy",size:14})})]})]})}function mT(e){let{copyText:t}=e,[n,r]=(0,C.useState)(!1),i=(0,C.useRef)(null),a=t.trim().length>0;return(0,C.useEffect)(()=>()=>{null!=i.current&&window.clearTimeout(i.current)},[]),(0,A.jsx)("div",{className:"flex min-h-5 w-fit items-center justify-start gap-2 pl-1 text-sm text-[var(--ds-muted)]",children:(0,A.jsx)("button",{type:"button",className:"inline-flex h-5 w-5 items-center justify-center rounded-sm border-0 bg-transparent p-0 text-[var(--ds-muted)] transition-colors hover:bg-transparent hover:text-[var(--ds-text)] focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50","aria-label":n?"已复制回复":"复制回复",title:n?"已复制":"复制回复",disabled:!a,onClick:e=>{e.stopPropagation(),a&&mS(t).then(()=>{r(!0),null!=i.current&&window.clearTimeout(i.current),i.current=window.setTimeout(()=>{r(!1),i.current=null},1500)},()=>{P.appToast.error("复制失败")})},children:n?(0,A.jsx)(H.default,{name:"Check",size:14}):(0,A.jsx)(H.default,{name:"Copy",size:14})})})}function m_(e){let{raw:t,payload:n}=e,r="1"===String((0,T.useSearchParams)().get("dev")),i=(()=>{try{return JSON.stringify(n,null,2)}catch(e){return String(n)}})();return(0,A.jsxs)("div",{className:"chat-msg chat-msg-system",children:[(0,A.jsx)("div",{className:"chat-msg-system-body whitespace-pre-wrap break-words",children:t}),r?(0,A.jsxs)("details",{className:"chat-msg-system-dev mt-2 rounded-md border border-[var(--ds-border)] bg-[var(--ds-log-bg)] p-2",children:[(0,A.jsx)("summary",{className:"cursor-pointer select-none text-xs text-[var(--ds-muted)]",children:"调试详情"}),(0,A.jsx)("pre",{className:"mt-2 max-h-48 overflow-auto font-mono text-xs leading-snug text-[var(--ds-text)]",children:i})]}):null]})}function mM(){let e=(0,T.useSearchParams)(),t=(0,_.useAppStore)(e=>e.lastMessages),n=(0,_.useAppStore)(e=>e.messagesByRun),r=(0,_.useAppStore)(e=>e.sourceAgentMessages),i=(0,_.useAppStore)(e=>e.streamBuffer),a=(0,_.useAppStore)(e=>e.assistantGenerating),o=(0,_.useAppStore)(e=>e.wsConnected),s=(0,_.useAppStore)(e=>e.bridgeReady),l=(0,_.useAppStore)(e=>e.sessionId),c=(0,C.useRef)(null),u=(0,C.useRef)(null),h=(0,C.useMemo)(()=>e.get("md")||"remark",[e]),p=(0,C.useMemo)(()=>(function(e){let t=new Map,n=new Set;for(let r=0;r<e.length;r+=1){if(!mu(e[r]))continue;let i=[],a=-1;for(let t=r+1;t<e.length;t+=1){let n=e[t];if(mu(n)||mb(n))break;if(-1!==a){let r=ms(n);if(r&&mg(r)&&!function(e,t){for(let n=t+1;n<e.length;n+=1){let t=e[n];if(mb(t)||mu(t))break;let r=ms(t);if(r){if(mc(r))return!0;if(!mg(r)&&my(r))continue}}return!1}(e,t))break}if(mc(n)){let e=ml(n);-1===a&&"assistant"===e&&(a=t)}if(mh(n))break;-1!==a&&i.push(t)}if(-1!==a&&0!==i.length)for(let r of(t.set(a,i.map(t=>ms(e[t])).filter(e=>null!==e)),i))r!==a&&n.add(r)}return{starts:t,consumed:n}})(t),[t]),d=(0,C.useMemo)(()=>(0,dX.buildScheduledTaskIndex)(t),[t]),m=(0,C.useMemo)(()=>(0,dX.partitionScheduledSegments)(t,d),[t,d]);(0,C.useEffect)(()=>{var e;null==(e=c.current)||e.scrollIntoView({block:"end"})},[t,i,a]),(0,C.useEffect)(()=>()=>{null!=u.current&&window.clearTimeout(u.current)},[]);let f=(0,C.useMemo)(()=>{let e=0;for(let n=t.length-1;n>=0;n--)if(mu(t[n])){e=n;break}if(t.slice(e).some(e=>{let t=e.message;return"assistant"===e.type&&((null==t?void 0:t.stop_reason)==="end_turn"||(null==t?void 0:t.stop_reason)==="stop_sequence")}))return new Set;let n=new Set;for(let r=t.length-1;r>=e;r--){let e=t[r];if("system"===e.type&&"api_error"===e.subtype){n.add(r);break}}return n},[t]),g=(0,C.useMemo)(()=>{let e=[],t=0;for(let[r,i]of Object.entries(n||{}))for(let n=0;n<i.length;n+=1){let a=i[n];a&&void 0!==a.message&&e.push({ts:a.ts||"",arrivalSeq:Number.isInteger(a.arrivalSeq)?a.arrivalSeq:Number.MAX_SAFE_INTEGER,fallbackOrder:t++,runId:r,sourceAgent:a.sourceAgent||("main"===r?"main":"unknown-agent"),kind:"conversation",payload:a})}for(let n=0;n<r.length;n+=1){let i=r[n];if(!i)continue;let a=i.runId||"main";e.push({ts:i.ts||"",arrivalSeq:Number.isInteger(i.arrivalSeq)?i.arrivalSeq:Number.MAX_SAFE_INTEGER,fallbackOrder:t++,runId:a,sourceAgent:i.source||("main"===a?"main":"unknown-agent"),kind:"source",payload:i})}e.sort((e,t)=>{let n=Date.parse(e.ts||""),r=Date.parse(t.ts||""),i=Number.isFinite(n),a=Number.isFinite(r);return i&&a&&n!==r?n-r:e.arrivalSeq!==t.arrivalSeq?e.arrivalSeq-t.arrivalSeq:e.fallbackOrder-t.fallbackOrder});let i=[],a=new Map,o=0;for(let t=0;t<e.length;t+=1){let n=e[t];if("main"===n.runId){let e=i.length?i[i.length-1]:null;e&&e.isMainSegment?e.items.push(n):i.push({runId:"main",sourceAgent:n.sourceAgent,items:[n],isMainSegment:!0,segmentSeq:++o});continue}let r=a.get(n.runId);if(r){r.items.push(n);continue}let s={runId:n.runId,sourceAgent:n.sourceAgent,items:[n],isMainSegment:!1,segmentSeq:0};a.set(n.runId,s),i.push(s)}return i},[n,r]),y=g.length>0,b=(0,C.useMemo)(()=>{let e=new Map,t=0;for(let n of g)!n.isMainSegment&&(e.has(n.runId)||(e.set(n.runId,t),t+=1));return e},[g]),v=(0,C.useMemo)(()=>{if(a)return null;let e=null;for(let n=0;n<g.length;n+=1){let r=g[n].items;for(let i=0;i<r.length;i+=1){var t;let a=r[i];if("conversation"!==a.kind)continue;let o=null!=(t=a.payload.message)?t:null;o&&"assistant"===(mv(o)||o.type)&&(e={blockIdx:n,itemIdx:i})}}return e},[g,a]),x=(0,C.useCallback)(function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=arguments.length>4?arguments[4]:void 0;if("source"===e.kind){if("main"===e.runId)return null;let n=e.payload,r="string"==typeof n.text?n.text.trim():"";if(!r)return null;let i="failed"===n.status?"chat-msg-system":"chat-msg-assistant",a="string"==typeof n.correlationId&&n.correlationId?" corr=".concat(n.correlationId):"";return(0,A.jsxs)("div",{className:"chat-msg ".concat(i),children:[(0,A.jsx)("div",{className:"chat-msg-label",children:"sourceAgent: ".concat(n.source||e.sourceAgent," run=").concat(e.runId).concat(a)}),(0,A.jsx)(mi,{text:r,engine:h})]},"source-".concat(t))}let a=e.payload.message||null;if(!a)return null;let o=mv(a)||a.type;if("user"===o){let e="remark"===h?dR(a):tn(a);return e.trim()?(0,A.jsx)(mC,{body:e,message:a},"user-".concat(t)):null}if("assistant"===o){let o=dL(a),s="remark"===h?dR(a):tn(a);if(!o.length&&!s.trim())return null;let l=o.map(e=>{if(!e||"object"!=typeof e)return"";let t=e.type;return"string"==typeof t?t:""}),c=e=>"tool_use"===e||"tool_result"===e||e.startsWith("tool_"),u=l.some(e=>c(e)),p=l.some((e,t)=>"thinking"===e&&c(l[t-1]||"")),m=l.some((e,t)=>{if("thinking"!==e)return!1;let n=l[t-1]||"",r=l[t+1]||"";return!c(n)&&c(r)}),f=o.length?mA(o):s.trim(),g=r&&!!f;return(0,A.jsx)("div",{className:"chat-msg chat-msg-assistant",children:(0,A.jsxs)("div",{className:"assistant-content flex flex-col gap-3",children:[u&&!m||p?(0,A.jsx)(d2,{messages:[a],runId:e.runId,agentName:e.sourceAgent,streaming:n,ev:e,scheduledTaskIndex:d}):o.length?o.map((e,t)=>{if(!e||"object"!=typeof e)return null;let r=e.type;if("text"===r){let n="string"==typeof e.text?e.text:"";return n.trim()?(0,A.jsx)(mi,{text:n,engine:h},t):null}if("markdown"===r){let n="string"==typeof e.content?e.content:"";return n.trim()?(0,A.jsx)(mi,{text:n,engine:h},t):null}if("thinking"===r){let r=dO(e,i?dB(i.messages,i.messageIndex):void 0),a=n&&dq(o,t);return(0,A.jsx)(dW,{payload:r,usage:"assistant-message",streaming:a},t)}return null}):s.trim()?(0,A.jsx)(mi,{text:s,engine:h}):null,g?(0,A.jsx)(mT,{copyText:f}):null]})},"assistant-".concat(t))}if("system"===o){var s;let e=null==(s=a.message)?void 0:s.content;if(null==e)return null;let n="string"==typeof e?e:JSON.stringify(e);return n.trim()?(0,A.jsx)(m_,{raw:n,payload:a},"system-".concat(t)):null}return null},[h,d]),k=(0,C.useCallback)(function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=arguments.length>4?arguments[4]:void 0;return(0,A.jsx)(ma,{ev:e,idx:t,streaming:n,showToolbar:r,durationContext:i,renderTimelineEvent:x})},[x]),w=(0,C.useCallback)(function(e,t,n,r){let i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return(0,A.jsx)(mt,{dispatchedPrompt:e.dispatchedPrompt,triggeredAt:e.triggeredAt,taskId:e.taskId,children:e.assistantMessages.map((a,o)=>{var s;let l="string"==typeof a.timestamp&&a.timestamp||("string"==typeof(null==(s=a.message)?void 0:s.timestamp)?a.message.timestamp:"")||e.triggeredAt;return(0,A.jsx)(C.Fragment,{children:k({ts:l,arrivalSeq:o,fallbackOrder:o,runId:n,sourceAgent:r,kind:"conversation",payload:{message:a}},o,i&&o===e.assistantMessages.length-1,!1,{messages:e.assistantMessages,messageIndex:o})},"".concat(t,"-assistant-").concat(o))})},t)},[k]),S=!y&&(!t||0===t.length)&&!i&&!a,M=!!l.trim()&&(!o||!s);return(0,A.jsxs)("div",{id:"chatThread",className:"chat-thread","data-region":"chat-thread","aria-live":"polite",onClick:e=>{var t;let n=e.target,r=null==n?void 0:n.closest(".chat-code-copy-btn");if(!r)return;e.preventDefault(),e.stopPropagation();let i=r.closest(".chat-code-block"),a=null==i?void 0:i.querySelector("pre code");mS(null!=(t=null==a?void 0:a.textContent)?t:"").then(()=>{r.textContent="已复制",r.classList.add("is-copied"),null!=u.current&&window.clearTimeout(u.current),u.current=window.setTimeout(()=>{r.textContent="复制",r.classList.remove("is-copied")},1400)})},children:[S?M?(0,A.jsxs)("div",{className:"flex min-h-[220px] items-center justify-center",children:[(0,A.jsx)(G,{}),(0,A.jsx)("div",{className:"text-sm text-muted-foreground",children:"加载中..."})]}):l.trim()?(0,A.jsx)("div",{className:"chat-placeholder",children:"当前历史会话暂无消息"}):(0,A.jsx)("div",{className:"chat-placeholder",children:"连接后将在此展示对话"}):(0,A.jsxs)(A.Fragment,{children:[y?g.map((e,t)=>{var n;if(!e.items.length)return null;let r=e.runId,i=e.sourceAgent||("main"===r?"main":"unknown-agent");e.isMainSegment&&e.segmentSeq>1&&e.segmentSeq;let o=t===g.length-1,s=e.items.length-1,l=e=>a&&o&&e===s,c=e=>(null==v?void 0:v.blockIdx)===t&&(null==v?void 0:v.itemIdx)===e,u=function(e){let t=[],n=0;for(;n<e.length;){let r=e[n];if(!function(e){let t=mp(e);return!!t&&"assistant"===t.type&&mc(t)}(r)){t.push({kind:"single",ev:r,index:n}),n+=1;continue}let i=[],a=n,o=n;for(;o<e.length;){let t=e[o];if(mm(t))break;let r=mp(t);if(!r){if(o===n)break;if(mf(t)){o+=1;continue}break}if(o>n&&mu(r)||o>n&&mg(r)&&!function(e,t){for(let n=t+1;n<e.length;n+=1){let t=e[n];if("conversation"!==t.kind)continue;if(mm(t))break;if(mf(t))continue;let r=mp(t);if(!r||mu(r))break;if(mc(r))return!0;if(!mg(r)&&my(r))continue}return!1}(e,o)||(i.push(r),a=o,(o+=1)>n+1&&mh(r)))break}if(0===i.length){t.push({kind:"single",ev:r,index:n}),n+=1;continue}t.push({kind:"toolRound",startIndex:n,endIndex:a,messages:i}),n=a+1}return t}(e.items),{toolRoundByStart:h,consumed:p}=function(e){let t=new Map,n=new Set;for(let r of e)if("toolRound"===r.kind){t.set(r.startIndex,r);for(let e=r.startIndex+1;e<=r.endIndex;e+=1)n.add(e)}return{toolRoundByStart:t,consumed:n}}(u),m=dD(e.items),f=e.items.map(e=>"conversation"===e.kind?mp(e):null),y=(0,dX.partitionScheduledSegments)(f,d);return"main"===r?(0,A.jsx)("div",{className:"chat-run-group",children:(0,A.jsx)("div",{className:"chat-run-group-body",children:u.map(n=>{let a="single"===n.kind?n.index:n.startIndex,o=y.scheduledStarts.get(a);return o?w(o,"scheduled-main-".concat(t,"-").concat(a),r,i,l(o.endIndex)):y.consumed.has(a)?null:(0,A.jsx)(C.Fragment,{children:"single"===n.kind?k(n.ev,n.index,l(n.index),c(n.index),{messages:m,messageIndex:dF(e.items,n.index)}):(0,A.jsx)("div",{className:"chat-msg chat-msg-assistant",children:(0,A.jsx)("div",{className:"assistant-content flex flex-col gap-3",children:(0,A.jsx)(d2,{messages:n.messages,runId:r,agentName:i,streaming:l(n.endIndex),scheduledTaskIndex:d})})})},"main-".concat(t,"-").concat(n.kind,"-").concat(a))})})},"run-main-".concat(t)):(0,A.jsx)("div",{className:"chat-run-group",children:(0,A.jsx)(me,{block:e,paletteIndex:null!=(n=b.get(r))?n:0,renderItem:(n,a)=>{if(p.has(a))return null;let o=y.scheduledStarts.get(a);if(o)return w(o,"scheduled-sub-".concat(t,"-").concat(a),r,i,l(o.endIndex));if(y.consumed.has(a))return null;let s=h.get(a);if(s)return(0,A.jsx)("div",{className:"chat-msg chat-msg-assistant",children:(0,A.jsx)("div",{className:"assistant-content flex flex-col gap-3",children:(0,A.jsx)(d2,{messages:s.messages,runId:r,agentName:i,streaming:l(s.endIndex),scheduledTaskIndex:d})})});let u=dD(e.items);return k(n,a,l(a),c(a),{messages:u,messageIndex:dF(e.items,a)})}})},"run-sub-".concat(t))}):t.map((e,n)=>{let r=m.scheduledStarts.get(n);if(r)return w(r,"scheduled-flat-".concat(n),"main",mx(r.assistantMessages)||"main",a&&n===t.length-1);if(m.consumed.has(n))return null;let i=p.starts.get(n);if(i){let e=n===t.length-1,r=mx(i);return(0,A.jsx)("div",{className:"chat-msg chat-msg-assistant",children:(0,A.jsx)("div",{className:"assistant-content 0000",children:(0,A.jsx)(d2,{messages:i,agentName:r,streaming:a&&e,scheduledTaskIndex:d})})},n)}if(p.consumed.has(n))return null;let o=ms(e);if(!o)return null;let s=mv(o)||o.type;if("user"===s){let t="remark"===h?dR(e):tn(e);return t.trim()?(0,A.jsx)(mC,{body:t,message:e},n):null}if("assistant"===s){let r=!a&&function(e,t){let n=e[t];if(!n||"assistant"!==mv(n))return!1;for(let n=t+1;n<e.length;n+=1){let t=e[n];if(mu(t))break;if(!mc(t)&&"assistant"===mv(t))return!1}return!0}(t,n),i=dL(e);if(!i.length){let t="remark"===h?dR(e):tn(e);return t.trim()?(0,A.jsx)("div",{className:"chat-msg chat-msg-assistant",children:(0,A.jsxs)("div",{className:"assistant-content flex flex-col gap-3",children:[(0,A.jsx)(mi,{text:t,engine:h}),r?(0,A.jsx)(mT,{copyText:t.trim()}):null]})},n):null}let o=mA(i);return(0,A.jsx)("div",{className:"chat-msg chat-msg-assistant",children:(0,A.jsxs)("div",{className:"assistant-content flex flex-col gap-3",children:[i.map((e,r)=>{if(!e||"object"!=typeof e)return null;let o=e.type;if("text"===o){let t="string"==typeof e.text?e.text:"";return t.trim()?(0,A.jsx)(mi,{text:t,engine:h},r):null}if("markdown"===o){let t="string"==typeof e.content?e.content:"";return t.trim()?(0,A.jsx)(mi,{text:t,engine:h},r):null}if("thinking"===o){let o=dO(e,dB(t,n)),s=a&&n===t.length-1&&dq(i,r);return(0,A.jsx)(dW,{payload:o,usage:"assistant-message",streaming:s},r)}return"tool_use"===o?(0,A.jsx)(dH,{data:e},r):"tool_result"===o?(0,A.jsx)(dU,{data:e},r):null}),r&&o?(0,A.jsx)(mT,{copyText:o}):null]})},n)}if("system"===s){let e=o.message,t=null==e?void 0:e.content,r="string"==typeof t?t:JSON.stringify(null!=t?t:"");return r.trim()&&"turn_duration"!==o.subtype?"api_error"===o.subtype?f.has(n)?(0,A.jsx)(mr,{error:o.error,message:o},n):null:(0,A.jsx)(m_,{raw:r,payload:o},n):null}return null}),i?(0,A.jsxs)("div",{className:"chat-msg chat-msg-assistant chat-streaming chat-streaming--content","data-stream-phase":"generating","aria-live":"polite","aria-busy":"true",children:[(0,A.jsxs)("div",{className:"chat-msg-label",children:["生成中",(0,A.jsx)("span",{className:"stream-cursor","aria-hidden":!0})]}),(0,A.jsx)(mi,{text:i,engine:h,streamMode:!0}),(0,A.jsx)("span",{className:"stream-cursor","aria-hidden":!0})]}):a?(0,A.jsx)("div",{className:"chat-msg chat-msg-assistant chat-streaming chat-streaming--pending","data-stream-phase":"generating","aria-live":"polite","aria-busy":"true",children:(0,A.jsxs)("div",{className:"chat-msg-label",children:["生成中",(0,A.jsx)("span",{className:"stream-cursor","aria-hidden":!0})]})}):null]}),(0,A.jsx)("div",{ref:c})]})}var mN=e.i(67489),mE=e.i(93479);let mz=[{label:"代码",text:"请帮我写一段 TypeScript 函数:"},{label:"排查问题",text:"请帮我分析下面报错的原因并给出修复步骤:\n"},{label:"梳理方案",text:"请针对以下需求列出实现思路与注意事项:\n"},{label:"解释概念",text:"请用简洁中文解释以下概念并举一个例子:\n"},{label:"草稿润色",text:"请润色下面这段文字,保持原意:\n"}],mI="ws-test-composer-recent-models",mj="WS_ALLOW_TOOL_ASK",mR="WS_PERMISSION_MODE",mL="__empty__",mP=["acceptEdits","plan","default","dontAsk","bypassPermissions"],mB=e=>{let t=String(e||"").trim();return mP.includes(t)?t:""};function mO(e){let{onSend:t,onAbort:n,onReloadAgentConfig:r,onRetryConnection:i}=e,a=(0,T.useSearchParams)(),[o,s]=(0,C.useState)(""),[l,c]=(0,C.useState)(!1),[u,h]=(0,C.useState)(!1),[p,d]=(0,C.useState)(""),[m,f]=(0,C.useState)([]),[g,y]=(0,C.useState)(!1),[b,v]=(0,C.useState)([]),[x,k]=(0,C.useState)(!1),[w,S]=(0,C.useState)(-1),[M,N]=(0,C.useState)([]),[E,j]=(0,C.useState)("1"),[R,L]=(0,C.useState)(""),[P,B]=(0,C.useState)(0),[O,D]=(0,C.useState)(0),F=(0,C.useRef)(null),q=(0,C.useRef)(null),U=(0,C.useRef)(null),G=(0,C.useRef)(!1),W=(0,C.useRef)(null),V=(0,C.useRef)(null),$=(0,C.useRef)(null),X=(0,_.useAppStore)(e=>e.wsUrl),Y=(0,_.useAppStore)(e=>e.apiBase),J=(0,_.useAppStore)(e=>e.sessionId),Z=(0,_.useAppStore)(e=>e.agentId),K=(0,_.useAppStore)(e=>e.agentConfig),Q=(0,_.useAppStore)(e=>e.setAgentConfig),ee=(0,_.useAppStore)(e=>e.setStatus),et=(0,_.useAppStore)(e=>e.bridgeReady),en=(0,_.useAppStore)(e=>e.wsConnected),er=(0,_.useAppStore)(e=>e.statusText),ei=(0,_.useAppStore)(e=>e.statusClass),ea=(0,_.useAppStore)(e=>e.apiErrorState),eo=(0,_.useAppStore)(e=>e.resetApiErrorState),es=(0,_.useAppStore)(e=>e.sessionViewMode),el=(0,_.useAppStore)(e=>e.setSessionViewMode),ec=(0,_.useAppStore)(e=>e.setPendingHistoryRefresh),eu=!en||!et||!o.trim(),eh="1"===String(a.get("dev")),ep=()=>{let e=F.current;if(!e)return;e.style.height="auto";let t=Math.min(e.scrollHeight,200);e.style.height="".concat(t,"px"),e.style.overflowY=e.scrollHeight>200?"auto":"hidden"},ed=async()=>{!eu&&(!W.current||await W.current)&&("draft"===es&&(el("history"),ec(!0)),t(o),s(""),y(!0))},em=(0,C.useCallback)(()=>{try{let e=window.localStorage.getItem(mI),t=e?JSON.parse(e):[];if(!Array.isArray(t))return[];return t.filter(e=>"string"==typeof e&&e.trim().length>0).map(e=>e.trim()).slice(0,12)}catch(e){return[]}},[]),ef=(0,C.useCallback)(e=>{let t=e.trim();if(!t)return;let n=em().filter(e=>e!==t);n.unshift(t);try{window.localStorage.setItem(mI,JSON.stringify(n.slice(0,12)))}catch(e){}},[em]),eg=(0,C.useCallback)(e=>{for(let t=0;t<b.length;t++)if(b[t].id===e)return b[t].label},[b]),ey=(0,C.useCallback)(async function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=Date.now();if(e||!(b.length>0)||!(t-P<3e4)){B(t);try{let e=await (0,I.get)((0,z.buildModelsApiUrl)(X,Y,Z.trim()||"qihoo")),t=Array.isArray(e.models)?e.models:[];v(t.filter(e=>!!e&&"string"==typeof e.id&&e.id.trim().length>0).map(e=>({id:e.id.trim(),label:"string"==typeof e.label&&e.label.trim()?e.label.trim():void 0})))}catch(e){v([])}}},[Z,Y,b.length,P,X]),eb=(0,C.useCallback)(()=>{let e=new Set,t=[],n=n=>{let r=n.trim();!r||e.has(r)||(e.add(r),t.push(r))},r=em();for(let e=0;e<r.length;e++)n(r[e]);for(let e=0;e<b.length;e++)n(b[e].id);return t},[b,em]),ev=(0,C.useCallback)(e=>{let t=eb(),n=e.trim().toLowerCase();if(!n)return t.slice(0,50);let r=[];for(let e=0;e<t.length;e++){let i=t[e],a=eg(i);if((i.toLowerCase().includes(n)||a&&a.toLowerCase().includes(n))&&r.push(i),r.length>=50)break}return r},[eg,eb]),ex=(0,C.useCallback)(async e=>{let t=e.trim(),n=_.useAppStore.getState();if(t===(n.agentConfig.model||"").trim())return!0;let i={...n.agentConfig,model:t};Q(i),t&&ef(t);try{let e={config:{tools:i.tools.slice(),mcpServers:i.mcpServers.slice(),skills:i.skills.slice(),model:i.model,agentTeams:i.agentTeams.slice(),rules:i.rules.slice(),env:{...i.env}}};await (0,I.patch)((0,z.buildAgentApiUrl)(X,Y,Z.trim()||"qihoo"),e),_.useAppStore.getState().wsConnected&&(null==r||r());let t=_.useAppStore.getState();return ee("模型已保存".concat(t.wsConnected?",已请求 worker 重新加载配置":""),t.bridgeReady?"ready":""),!0}catch(e){return ee("模型保存失败:".concat(e instanceof Error?e.message:String(e)),"err"),!1}},[Z,Y,r,ef,Q,ee,X]),ek=(0,C.useCallback)(e=>{var t;let n=(null!=(t=W.current)?t:Promise.resolve(!0)).then(()=>ex(e)).finally(()=>{W.current===n&&(W.current=null)});return W.current=n,n},[ex]),ew=(0,C.useCallback)(()=>{k(!1),N([]),S(-1)},[]),eS=(0,C.useCallback)(()=>{let e=q.current;e&&ek(e.value)},[ek]),eA=(0,C.useCallback)(e=>{let t=q.current;if(!t)return;let n=ev("string"==typeof e?e:t.value);N(n),S(n.length?0:-1),k(!0)},[ev]),eC=(0,C.useCallback)(()=>{let e=w<0||w>=M.length?0:w,t=M[e];if(!t)return;let n=q.current;n&&(n.value=t,ew(),ek(t))},[ek,ew,w,M]),eT=(K.model||"").trim()?"当前模型(完整 ID,悬停可复制核对):".concat(K.model.trim()):"模型 ID 须与网关控制台一致(如 360 智脑常用 anthropic/ 前缀),区分大小写",e_=(0,C.useCallback)(e=>{let t=eg(e);return t?"".concat(t," · ").concat(e):e},[eg]);(0,C.useEffect)(()=>{if(!en)return void y(!1);(er.includes("本轮结束")||er.startsWith("错误"))&&y(!1)},[en,er]),(0,C.useEffect)(()=>{ep()},[o]),(0,C.useEffect)(()=>{s(""),F.current&&(F.current.style.height="auto",F.current.style.overflowY="hidden")},[J,es]),(0,C.useEffect)(()=>{v([]),B(0),k(!1),N([]),S(-1)},[Z]),(0,C.useEffect)(()=>{if(!x)return;let e=e=>{var t;let n=e.target;n&&(null==(t=U.current)?void 0:t.contains(n))||ew()};return document.addEventListener("click",e,!0),()=>{document.removeEventListener("click",e,!0)}},[ew,x]),(0,C.useEffect)(()=>{var e;if(!x||w<0)return;let t=null==(e=U.current)?void 0:e.querySelector("#composerModelSuggestions"),n=null==t?void 0:t.querySelector("li.is-active");n&&"function"==typeof n.scrollIntoView&&n.scrollIntoView({block:"nearest"})},[w,x]),(0,C.useEffect)(()=>{if("retrying"!==ea.phase)return void D(0);let e=()=>{D(Math.ceil(Math.max(0,ea.retryUntilTs-Date.now())/1e3))};e();let t=window.setInterval(e,250);return()=>{window.clearInterval(t)}},[ea.phase,ea.retryUntilTs]);let eM=(0,C.useCallback)(async()=>{let e=J.trim();if(!e){f([]),c(!1);return}let t=Z.trim()||"qihoo";c(!1),h(!0),d(""),f([]);try{let n=await (0,I.get)((0,z.buildWorkspaceFilesListUrl)(X,Y,t,e)),r=(Array.isArray(n.files)?n.files:[]).filter(e=>"string"==typeof e.path&&e.path.length>0).map(e=>({path:e.path,name:"string"==typeof e.name?e.name:void 0,size:"number"==typeof e.size?e.size:void 0,mtimeMs:"number"==typeof e.mtimeMs?e.mtimeMs:void 0})).filter(e=>e.path.includes("tool-results"));f(r)}catch(e){d("加载失败:".concat(e instanceof Error?e.message:String(e))),f([])}finally{h(!1)}},[Z,Y,J,X]);(0,C.useEffect)(()=>{if("draft"===es){f([]),c(!1);return}eM()},[eM,es]);let eN=ea.maxRetries>0?Math.min(100,Math.max(0,ea.retryAttempt/ea.maxRetries*100)):0,eE=(0,C.useCallback)(async e=>{let t=J.trim(),n=Z.trim()||"qihoo";if(!t)return V.current=e.allowToolAsk,$.current=e.permissionMode,ee("已暂存 session overrides,待 session 建立后落盘",et?"ready":""),!0;let i={[mj]:"1"===e.allowToolAsk?"1":"",[mR]:mB(e.permissionMode)},a={model:(K.model||"").trim(),env:i};try{return await (0,I.patch)((0,z.buildSessionOverridesUrl)(X,Y,n,t),a),null==r||r(),ee("session overrides 已保存,已重启当前 session 子进程",et?"ready":""),!0}catch(e){return ee("保存 session overrides 失败:".concat(e instanceof Error?e.message:String(e)),"err"),!1}},[K.model,Z,Y,et,r,J,ee,X]),ez=(0,C.useCallback)(async()=>{let e=J.trim(),t=Z.trim()||"qihoo";if(!e){j("manual"),L("");return}try{let n=await (0,I.get)((0,z.buildSessionOverridesUrl)(X,Y,t,e)),r=n.overrides&&n.overrides.env&&"object"==typeof n.overrides.env?n.overrides.env:{},i=String(r[mj]||""),a=mB(r[mR]);j("1"===i?"1":"manual"),L(a)}catch(e){j("manual"),L("")}},[Z,Y,J,X]);(0,C.useEffect)(()=>{ez()},[ez]),(0,C.useEffect)(()=>{let e=V.current,t=$.current;(e||null!=t)&&J.trim()&&(V.current=null,$.current=null,eE({allowToolAsk:e||E,permissionMode:null==t?R:t}))},[E,R,eE,J]);let eI="1"===E?"已设置 WS_ALLOW_TOOL_ASK=1(ask 将自动通过)":"未设置 WS_ALLOW_TOOL_ASK(ask 将被拒绝;可按 session 单独启用)",ej=R?"已设置 WS_PERMISSION_MODE=".concat(R):"未设置 WS_PERMISSION_MODE(默认)",eR=R||mL;return(0,A.jsx)("div",{className:"composer",children:(0,A.jsxs)("div",{className:"composer-inner mx-auto max-w-[840px] ".concat("draft"===es?"is-draft-session":""),children:[m.length>0?(0,A.jsxs)("div",{className:["composer-tool-files-inline",l?"is-expanded":""].filter(Boolean).join(" "),onMouseEnter:()=>c(!0),onMouseLeave:()=>c(!1),children:[(0,A.jsxs)("div",{className:"composer-tool-files-inline-head",children:[(0,A.jsx)("span",{className:["composer-tool-files-inline-chevron",l?"is-expanded":""].filter(Boolean).join(" "),children:(0,A.jsx)(H.default,{name:"ChevronRight",size:16,className:"text-[var(--ds-muted)]",strokeWidth:1})}),(0,A.jsx)("span",{className:"composer-tool-files-inline-title text-[var(--ds-muted)]",children:"下载文件 · ".concat(m.length," 个")}),u?(0,A.jsx)("span",{className:"composer-tool-files-inline-loading",children:"加载中..."}):null]}),(0,A.jsx)("div",{className:"composer-tool-files-inline-panel-wrap",children:(0,A.jsx)("div",{className:"composer-tool-files-inline-panel-inner",children:(0,A.jsx)("div",{className:"composer-tool-files-inline-panel",children:u?(0,A.jsx)("div",{className:"composer-tool-files-inline-state",children:"正在获取文件列表…"}):p?(0,A.jsx)("div",{className:"composer-tool-files-inline-state is-error",children:p}):0===m.length?(0,A.jsx)("div",{className:"composer-tool-files-inline-state",children:"暂无 tool-results 文件"}):(0,A.jsx)("div",{className:"composer-tool-files-inline-list",children:m.map(e=>{let t=e.name||e.path.split("/").pop()||e.path;return(0,A.jsxs)("div",{className:"composer-tool-files-inline-item",children:[(0,A.jsxs)("div",{className:"composer-tool-files-inline-main",children:[(0,A.jsx)("div",{className:"composer-tool-files-inline-name text-zinc-500",title:e.path,children:t}),(0,A.jsx)("div",{className:"composer-tool-files-inline-size text-[var(--ds-muted)]",children:(e=>{let t=Number(e);return!Number.isFinite(t)||t<0?"—":t<1024?"".concat(t," B"):t<1048576?"".concat((t/1024).toFixed(1)," KB"):t<0x40000000?"".concat((t/1048576).toFixed(1)," MB"):"".concat((t/0x40000000).toFixed(1)," GB")})(e.size)})]}),(0,A.jsx)("a",{href:(0,z.buildWorkspaceFileDownloadUrl)(X,Y,Z.trim()||"qihoo",e.path),download:!0,target:"_blank",rel:"noopener noreferrer",className:"composer-tool-files-inline-download","aria-label":"下载 ".concat(t),title:"下载 ".concat(t),children:(0,A.jsx)(H.default,{name:"Download",size:16,className:"!text-zinc-500"})})]},e.path)})})})})})]}):null,"draft"===es?(0,A.jsxs)("div",{className:"composer-draft-hero mb-4 text-center",children:[(0,A.jsx)("div",{className:"composer-draft-title",children:"欢迎回来"}),(0,A.jsx)("div",{className:"composer-draft-shortcuts mt-4 flex flex-wrap justify-center gap-2",children:mz.map(e=>(0,A.jsx)("button",{type:"button",className:"composer-draft-pill",onClick:()=>{var t;s(e.text),window.setTimeout(()=>ep(),0),null==(t=F.current)||t.focus()},children:e.label},e.label))})]}):null,(0,A.jsxs)("div",{className:"composer-card ds-soft-shadow ".concat("draft"===es?"is-draft-session":""),children:[(0,A.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,A.jsx)("div",{title:er,id:"status",className:"conn-status min-w-0 flex-1 text-xs ".concat(ei?" ".concat(ei):""),children:er}),eh?(0,A.jsx)("span",{id:"promptSessionInfo",className:"prompt-session-info shrink-0",title:J.trim()||void 0,children:J.trim()?"sessionId: ".concat(J.trim()):"sessionId: -"}):null]}),"retrying"===ea.phase?(0,A.jsxs)("div",{className:"api-retry-banner mt-2",role:"status","aria-live":"polite",children:[(0,A.jsx)("div",{className:"api-retry-banner-text",children:"网络波动,正在重连 ".concat(O,"s... (").concat(ea.retryAttempt,"/").concat(ea.maxRetries,")")}),(0,A.jsx)("div",{className:"api-retry-banner-progress",children:(0,A.jsx)("span",{style:{width:"".concat(eN,"%")}})})]}):null,"failed"===ea.phase?(0,A.jsxs)("div",{className:"api-retry-failed mt-2",role:"alert",children:[(0,A.jsx)("div",{className:"api-retry-failed-text",children:"服务暂时不可用,请稍后重试"}),(0,A.jsx)("button",{type:"button",className:"api-retry-failed-btn",onClick:()=>{eo(),null==i||i()},children:"重试"})]}):null,(0,A.jsx)("div",{className:"composer-input-shell mt-2",children:(0,A.jsx)("textarea",{ref:F,id:"prompt",className:"w-full border-0 bg-transparent shadow-none focus-visible:border-0 focus-visible:ring-0",placeholder:"请输入你的问题",value:o,onChange:e=>s(e.target.value),onKeyDown:e=>{"Enter"!==e.key||e.shiftKey||e.nativeEvent.isComposing||(e.preventDefault(),ed())}})}),(0,A.jsxs)("div",{className:"mt-3 flex items-center justify-between gap-2",children:[(0,A.jsxs)("div",{className:"composer-tools-left flex items-center !justify-start gap-2",children:[(0,A.jsxs)("div",{className:"composer-model-field",id:"composerModelField",ref:U,children:[(0,A.jsx)(mE.Input,{ref:q,type:"text",id:"composerModelInput",className:"composer-model-input",placeholder:"模型 ID(如 anthropic/claude-3.5-haiku)",spellCheck:!1,autoComplete:"off","aria-label":"模型","aria-autocomplete":"list","aria-controls":"composerModelSuggestions",title:eT,value:K.model||"",onFocus:()=>{ey(!1).then(()=>{eA("")})},onClick:()=>{eA("")},onChange:e=>{Q({...K,model:e.target.value}),eA(e.target.value)},onKeyDown:e=>{if("ArrowDown"===e.key)return(e.preventDefault(),x)?void(M.length&&S(e=>e<0||e+1>=M.length?0:e+1)):void eA("");if("ArrowUp"===e.key){if(!x||!M.length)return;e.preventDefault(),S(e=>e<0?0:e-1<0?M.length-1:e-1);return}if("Escape"===e.key){if(!x)return;e.preventDefault(),ew();return}if("Enter"===e.key){if(x&&M.length){e.preventDefault(),eC();return}e.preventDefault(),ew(),eS()}},onBlur:()=>{G.current||(ew(),eS())}}),(0,A.jsx)("ul",{id:"composerModelSuggestions",className:"composer-model-suggestions ".concat(x?"is-open":""),role:"listbox","aria-label":"模型候选",children:M.length?M.map((e,t)=>(0,A.jsx)("li",{role:"option","aria-selected":t===w,"data-model":e,className:t===w?"is-active":"",onMouseDown:t=>{t.preventDefault(),G.current=!0,ew(),ek(e),window.setTimeout(()=>{G.current=!1},0)},onMouseEnter:()=>S(t),children:e_(e)},e)):(0,A.jsx)("li",{className:"composer-model-suggest-empty",role:"presentation",children:"(无匹配,可直接输入完整模型 ID)"})})]}),(0,A.jsxs)(mN.Select,{value:E,onValueChange:e=>{let t="1"===e?"1":"manual";j(t),eE({allowToolAsk:t,permissionMode:R})},children:[(0,A.jsx)(mN.SelectTrigger,{id:"composerAllowAskSelect",className:"composer-allow-ask-select","aria-label":"WS_ALLOW_TOOL_ASK",title:eI,children:(0,A.jsx)(mN.SelectValue,{placeholder:"手动"})}),(0,A.jsxs)(mN.SelectContent,{children:[(0,A.jsx)(mN.SelectItem,{value:"manual",children:"手动"}),(0,A.jsx)(mN.SelectItem,{value:"1",children:"自动"})]})]}),(0,A.jsxs)(mN.Select,{value:eR,onValueChange:e=>{let t=e===mL?"":mB(e);L(t),eE({allowToolAsk:E,permissionMode:t})},children:[(0,A.jsx)(mN.SelectTrigger,{id:"composerModeSelect",className:"composer-mode-select","aria-label":"权限模式",title:ej,children:(0,A.jsx)(mN.SelectValue,{placeholder:"默认"})}),(0,A.jsxs)(mN.SelectContent,{children:[(0,A.jsx)(mN.SelectItem,{value:mL,children:"默认"}),(0,A.jsx)(mN.SelectItem,{value:"acceptEdits",children:"acceptEdits"}),(0,A.jsx)(mN.SelectItem,{value:"plan",children:"plan"}),(0,A.jsx)(mN.SelectItem,{value:"default",children:"default"}),(0,A.jsx)(mN.SelectItem,{value:"dontAsk",children:"dontAsk"}),(0,A.jsx)(mN.SelectItem,{value:"bypassPermissions",children:"bypassPermissions"})]})]})]}),(0,A.jsx)("div",{className:"flex items-center gap-2",children:g?(0,A.jsx)("button",{type:"button",className:"btn-send-circle composer-icon-btn bg-gray-800",style:{backgroundColor:"#efefef",boxShadow:"none",color:"#8f8f8f"},disabled:!en,onClick:n,"aria-label":"中断",title:"中断",children:(0,A.jsx)(H.default,{name:"Stop",size:16})}):(0,A.jsx)("button",{type:"button",className:"btn-send-circle",disabled:eu,title:"发送","aria-label":"发送",onClick:ed,children:(0,A.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",viewBox:"0 0 256 256",children:(0,A.jsx)("path",{d:"M208.49,120.49a12,12,0,0,1-17,0L140,69V216a12,12,0,0,1-24,0V69L64.49,120.49a12,12,0,0,1-17-17l72-72a12,12,0,0,1,17,0l72,72A12,12,0,0,1,208.49,120.49Z"})})})})]})]}),(0,A.jsx)("p",{className:"page-footer-note ".concat("draft"===es?"":"page-footer-note--compact"),children:"本页仅供本地联调;模型与工具输出请自行甄别。"})]})})}function mD(){let e=(0,_.useAppStore)(e=>e.rawLog);return(0,A.jsxs)("details",{className:"raw-log-drawer",id:"rawLogDrawer",children:[(0,A.jsxs)("summary",{className:"raw-log-summary",children:[(0,A.jsx)("span",{children:"原始下行日志(JSON)"}),(0,A.jsx)("span",{className:"raw-log-chevron","aria-hidden":!0,children:"▼"})]}),(0,A.jsx)("div",{className:"raw-log-body",children:(0,A.jsx)("pre",{id:"log",children:e})})]})}let mF=/^[A-Za-z0-9_-]{1,128}$/;function mq(){let e=(0,T.useSearchParams)(),t=(0,_.useAppStore)(e=>e.wsUrl),n=(0,_.useAppStore)(e=>e.apiBase),r=(0,_.useAppStore)(e=>e.agentId),i=(0,_.useAppStore)(e=>e.sessionId),a=(0,_.useAppStore)(e=>e.lastSessions),o=(0,_.useAppStore)(e=>e.statusText),s=(0,_.useAppStore)(e=>e.sessionViewMode),l=(0,_.useAppStore)(e=>e.pendingHistoryRefresh),c=(0,_.useAppStore)(e=>e.setWsUrl),u=(0,_.useAppStore)(e=>e.setAgentId),h=(0,_.useAppStore)(e=>e.setSessionId),p=(0,_.useAppStore)(e=>e.setSessionViewMode),d=(0,_.useAppStore)(e=>e.setPendingHistoryRefresh),m=(0,_.useAppStore)(e=>e.setMessages);(0,C.useLayoutEffect)(()=>{_.useAppStore.getState().wsUrl.trim()||c((0,z.defaultWsUrl)())},[c]);let{loadSessions:f,loadAgentConfig:g,loadSessionOverrides:y,deleteSessionById:b,currentAgent:v}=(0,N.useSession)(),{reconnect:x,switchSession:k,sendPrompt:w,sendAbort:S,sendReloadAgentConfig:B}=(0,M.useWebSocket)({onSession:e=>{f(),y(e)}}),[F,H]=(0,C.useState)(!1),[U,G]=(0,C.useState)(""),[V,$]=(0,C.useState)(!1),[X,Y]=(0,C.useState)(!1),[J,Z]=(0,C.useState)(!1),[K,Q]=(0,C.useState)(!1),ee=(0,C.useRef)(!1),et=(0,C.useRef)(!1),en=(0,E.usePersistAgentConfig)();(0,C.useEffect)(()=>{var t,n;let r=e.get("agent");if((null==r?void 0:r.trim())&&u(r.trim()),ee.current)return;ee.current=!0;let i=null!=(n=null==(t=e.get("sessionId"))?void 0:t.trim())?n:"";mF.test(i)&&(h(i),p("history"),d(!1))},[e,u,h,p,d]),(0,C.useEffect)(()=>{try{let e=new URL(window.location.href);e.searchParams.set("agent",r.trim()||"qihoo"),window.history.replaceState(window.history.state,"","".concat(e.pathname).concat(e.search).concat(e.hash))}catch(e){}},[r]),(0,C.useEffect)(()=>{var t;et.current||"single-message"===(null==(t=e.get("demo"))?void 0:t.trim())&&(et.current=!0,(0,I.get)("/api/demo/single-message").then(e=>{if("messages"!==e.type||!Array.isArray(e.messages))throw Error("single-message.json 结构不符合预期");p("history"),h("demo-single-message"),d(!1),m(e.messages)}).catch(e=>{et.current=!1,P.appToast.error("加载 demo 失败:".concat(String(e)))}))},[e,m,d,h,p]),(0,C.useEffect)(()=>{f(),g()},[r,t,n,f,g]),(0,C.useEffect)(()=>{let e=i.trim(),t=o.includes("本轮结束")||o.startsWith("错误");l&&e&&t&&f().finally(()=>{_.useAppStore.getState().setPendingHistoryRefresh(!1)})},[l,i,o,f]);let er=(0,C.useMemo)(()=>{if("draft"===s)return"开启新对话";let e=i.trim();if(!e)return"选择左侧会话或开启新对话";let t=a.find(t=>t.sessionId===e);if(t){let e=(0,j.sessionTitle)(t).trim();if(e&&"(无标题)"!==e)return e.length>72?"".concat(e.slice(0,69),"…"):e}return e},[a,i,s]),ei=(0,C.useMemo)(()=>{if("draft"===s)return er;let e=i.trim();if(!e)return er;let t=a.find(t=>t.sessionId===e),n=[];return n.push("session:".concat(e)),t&&n.push((0,j.sessionTitle)(t)),n.join("\n")},[a,er,i,s]),ea="1"===String(e.get("dev"));return(0,A.jsxs)(A.Fragment,{children:[(0,A.jsxs)("div",{className:"ws-config-hidden","aria-hidden":!0,children:[(0,A.jsx)("input",{readOnly:!0,hidden:!0,value:t}),(0,A.jsx)("input",{readOnly:!0,hidden:!0,value:n}),(0,A.jsx)("input",{readOnly:!0,hidden:!0,value:i}),(0,A.jsx)("input",{readOnly:!0,hidden:!0,value:r})]}),(0,A.jsxs)("div",{className:"app","data-ui-layer":"presentation","data-topology":"local-first",children:[(0,A.jsx)(L.BridgeSidebar,{onNewSession:()=>{h(""),p("draft"),d(!1),k("",r)},onSelectSession:e=>{h(e),p("history"),d(!1),k(e,r)},onSaveAgentConfig:()=>void en({silent:!1}),deleteSessionById:async e=>{let t=await b(e);return t&&k("",r),t}}),(0,A.jsxs)("main",{className:"main ".concat("draft"===s?"is-draft-session":""),"data-region":"chat-shell",children:[(0,A.jsx)("header",{className:"main-header",children:(0,A.jsx)("div",{className:"main-header-top flex items-center justify-between gap-3",children:(0,A.jsxs)(W.TooltipProvider,{children:[(0,A.jsx)("div",{className:"flex min-w-0 flex-1 items-center gap-2",children:(0,A.jsxs)(W.Tooltip,{children:[(0,A.jsx)(W.TooltipTrigger,{asChild:!0,children:(0,A.jsx)("h1",{id:"mainTitle",className:"min-w-0 max-w-full flex-1 truncate",children:"draft"!==s&&i.trim()&&er===i.trim()?(0,j.shortUuidTitle)(i.trim()):er})}),(0,A.jsx)(W.TooltipContent,{children:(0,A.jsx)("p",{className:"max-w-xs whitespace-pre-wrap break-all",children:ei})})]})}),(0,A.jsx)("div",{className:"flex shrink-0 items-center gap-1"})]})})}),"draft"===s?null:(0,A.jsx)("div",{className:"main-scroll",children:(0,A.jsxs)("div",{className:"main-body",children:[(0,A.jsx)(mM,{}),ea?(0,A.jsx)(mD,{}):null]})}),(0,A.jsx)(mO,{onSend:w,onAbort:S,onReloadAgentConfig:x,onRetryConnection:x})]}),(0,A.jsx)(R.StageThreadFlyout,{})]}),(0,A.jsx)(D,{open:X,onOpenChange:Y,variant:"tools",wsUrl:t,apiBase:n,agent:v(),onNotifyReloadAgentConfig:B}),(0,A.jsx)(D,{open:J,onOpenChange:Z,variant:"mcp",wsUrl:t,apiBase:n,agent:v(),onNotifyReloadAgentConfig:B}),(0,A.jsx)(q,{open:K,onOpenChange:Q,wsUrl:t,apiBase:n,agent:v()}),(0,A.jsx)(O.AppDialog,{open:F,onOpenChange:H,title:"编辑系统 mcp.json",footer:(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)("button",{type:"button",className:"btn-agent-md-cancel",onClick:()=>H(!1),children:"取消"}),(0,A.jsx)("button",{type:"button",className:"btn-primary",disabled:V,onClick:()=>{$(!0),(0,I.patch)((0,z.buildSystemMcpJsonApiUrl)(t,n,v()),{content:U}).then(()=>{_.useAppStore.getState().setStatus("系统 mcp.json 已保存",_.useAppStore.getState().bridgeReady?"ready":""),P.appToast.success("已保存系统 mcp.json。"),H(!1)}).catch(e=>{P.appToast.error("保存 mcp.json 失败:".concat(e instanceof Error?e.message:String(e)))}).finally(()=>{$(!1)})},children:"保存"})]}),children:(0,A.jsx)("textarea",{className:"agent-md-editor",spellCheck:!1,value:U,onChange:e=>G(e.target.value)})})]})}}]);
|