@schmitech/chatbot-widget 0.3.3 → 0.3.5

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.
@@ -1,4 +1,4 @@
1
- (function(we,j){typeof exports=="object"&&typeof module<"u"?j(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],j):(we=typeof globalThis<"u"?globalThis:we||self,j(we.ChatbotWidget={},we.React))})(this,function(we,j){"use strict";typeof window<"u"&&(window.global=window);var Vn={},Rt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof Vn<"u"?Vn:typeof self<"u"?self:{};function Wt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Yt={exports:{}},yt={};/**
1
+ (function(Me,Y){typeof exports=="object"&&typeof module<"u"?Y(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],Y):(Me=typeof globalThis<"u"?globalThis:Me||self,Y(Me.ChatbotWidget={},Me.React))})(this,function(Me,Y){"use strict";typeof window<"u"&&(window.global=window);function Ls(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const Mn=Ls(Y);var Yr={},rn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof Yr<"u"?Yr:typeof self<"u"?self:{};function an(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ln={exports:{}},Bt={};/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.min.js
4
4
  *
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var Wn;function Qi(){if(Wn)return yt;Wn=1;var e=j,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o={key:!0,ref:!0,__self:!0,__source:!0};function l(a,u,f){var s,c={},h=null,p=null;f!==void 0&&(h=""+f),u.key!==void 0&&(h=""+u.key),u.ref!==void 0&&(p=u.ref);for(s in u)r.call(u,s)&&!o.hasOwnProperty(s)&&(c[s]=u[s]);if(a&&a.defaultProps)for(s in u=a.defaultProps,u)c[s]===void 0&&(c[s]=u[s]);return{$$typeof:t,type:a,key:h,ref:p,props:c,_owner:i.current}}return yt.Fragment=n,yt.jsx=l,yt.jsxs=l,yt}var xt={},Yn;function Ji(){if(Yn)return xt;Yn=1;var e={};/**
9
+ */var Zr;function Ds(){if(Zr)return Bt;Zr=1;var e=Y,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o={key:!0,ref:!0,__self:!0,__source:!0};function a(s,l,c){var u,d={},p=null,f=null;c!==void 0&&(p=""+c),l.key!==void 0&&(p=""+l.key),l.ref!==void 0&&(f=l.ref);for(u in l)r.call(l,u)&&!o.hasOwnProperty(u)&&(d[u]=l[u]);if(s&&s.defaultProps)for(u in l=s.defaultProps,l)d[u]===void 0&&(d[u]=l[u]);return{$$typeof:t,type:s,key:p,ref:f,props:d,_owner:i.current}}return Bt.Fragment=n,Bt.jsx=a,Bt.jsxs=a,Bt}var zt={},Xr;function Ps(){if(Xr)return zt;Xr=1;var e={};/**
10
10
  * @license React
11
11
  * react-jsx-runtime.development.js
12
12
  *
@@ -14,100 +14,100 @@
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */return e.NODE_ENV!=="production"&&function(){var t=j,n=Symbol.for("react.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),u=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),s=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),y=Symbol.for("react.offscreen"),x=Symbol.iterator,T="@@iterator";function k(m){if(m===null||typeof m!="object")return null;var v=x&&m[x]||m[T];return typeof v=="function"?v:null}var A=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function S(m){{for(var v=arguments.length,I=new Array(v>1?v-1:0),F=1;F<v;F++)I[F-1]=arguments[F];z("error",m,I)}}function z(m,v,I){{var F=A.ReactDebugCurrentFrame,ee=F.getStackAddendum();ee!==""&&(v+="%s",I=I.concat([ee]));var re=I.map(function(Q){return String(Q)});re.unshift("Warning: "+v),Function.prototype.apply.call(console[m],console,re)}}var U=!1,w=!1,L=!1,Y=!1,M=!1,K;K=Symbol.for("react.module.reference");function O(m){return!!(typeof m=="string"||typeof m=="function"||m===i||m===l||M||m===o||m===s||m===c||Y||m===y||U||w||L||typeof m=="object"&&m!==null&&(m.$$typeof===p||m.$$typeof===h||m.$$typeof===a||m.$$typeof===u||m.$$typeof===f||m.$$typeof===K||m.getModuleId!==void 0))}function P(m,v,I){var F=m.displayName;if(F)return F;var ee=v.displayName||v.name||"";return ee!==""?I+"("+ee+")":I}function $(m){return m.displayName||"Context"}function G(m){if(m==null)return null;if(typeof m.tag=="number"&&S("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof m=="function")return m.displayName||m.name||null;if(typeof m=="string")return m;switch(m){case i:return"Fragment";case r:return"Portal";case l:return"Profiler";case o:return"StrictMode";case s:return"Suspense";case c:return"SuspenseList"}if(typeof m=="object")switch(m.$$typeof){case u:var v=m;return $(v)+".Consumer";case a:var I=m;return $(I._context)+".Provider";case f:return P(m,m.render,"ForwardRef");case h:var F=m.displayName||null;return F!==null?F:G(m.type)||"Memo";case p:{var ee=m,re=ee._payload,Q=ee._init;try{return G(Q(re))}catch{return null}}}return null}var H=Object.assign,le=0,te,ge,B,d,ae,ve,g;function ye(){}ye.__reactDisabledLog=!0;function Fe(){{if(le===0){te=console.log,ge=console.info,B=console.warn,d=console.error,ae=console.group,ve=console.groupCollapsed,g=console.groupEnd;var m={configurable:!0,enumerable:!0,value:ye,writable:!0};Object.defineProperties(console,{info:m,log:m,warn:m,error:m,group:m,groupCollapsed:m,groupEnd:m})}le++}}function se(){{if(le--,le===0){var m={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:H({},m,{value:te}),info:H({},m,{value:ge}),warn:H({},m,{value:B}),error:H({},m,{value:d}),group:H({},m,{value:ae}),groupCollapsed:H({},m,{value:ve}),groupEnd:H({},m,{value:g})})}le<0&&S("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Be=A.ReactCurrentDispatcher,Ee;function Ne(m,v,I){{if(Ee===void 0)try{throw Error()}catch(ee){var F=ee.stack.trim().match(/\n( *(at )?)/);Ee=F&&F[1]||""}return`
18
- `+Ee+m}}var de=!1,De;{var It=typeof WeakMap=="function"?WeakMap:Map;De=new It}function dt(m,v){if(!m||de)return"";{var I=De.get(m);if(I!==void 0)return I}var F;de=!0;var ee=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var re;re=Be.current,Be.current=null,Fe();try{if(v){var Q=function(){throw Error()};if(Object.defineProperty(Q.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Q,[])}catch(Pe){F=Pe}Reflect.construct(m,[],Q)}else{try{Q.call()}catch(Pe){F=Pe}m.call(Q.prototype)}}else{try{throw Error()}catch(Pe){F=Pe}m()}}catch(Pe){if(Pe&&F&&typeof Pe.stack=="string"){for(var q=Pe.stack.split(`
19
- `),_e=F.stack.split(`
20
- `),ce=q.length-1,pe=_e.length-1;ce>=1&&pe>=0&&q[ce]!==_e[pe];)pe--;for(;ce>=1&&pe>=0;ce--,pe--)if(q[ce]!==_e[pe]){if(ce!==1||pe!==1)do if(ce--,pe--,pe<0||q[ce]!==_e[pe]){var ze=`
21
- `+q[ce].replace(" at new "," at ");return m.displayName&&ze.includes("<anonymous>")&&(ze=ze.replace("<anonymous>",m.displayName)),typeof m=="function"&&De.set(m,ze),ze}while(ce>=1&&pe>=0);break}}}finally{de=!1,Be.current=re,se(),Error.prepareStackTrace=ee}var gt=m?m.displayName||m.name:"",lt=gt?Ne(gt):"";return typeof m=="function"&&De.set(m,lt),lt}function At(m,v,I){return dt(m,!1)}function it(m){var v=m.prototype;return!!(v&&v.isReactComponent)}function qe(m,v,I){if(m==null)return"";if(typeof m=="function")return dt(m,it(m));if(typeof m=="string")return Ne(m);switch(m){case s:return Ne("Suspense");case c:return Ne("SuspenseList")}if(typeof m=="object")switch(m.$$typeof){case f:return At(m.render);case h:return qe(m.type,v,I);case p:{var F=m,ee=F._payload,re=F._init;try{return qe(re(ee),v,I)}catch{}}}return""}var R=Object.prototype.hasOwnProperty,X={},ue=A.ReactDebugCurrentFrame;function Se(m){if(m){var v=m._owner,I=qe(m.type,m._source,v?v.type:null);ue.setExtraStackFrame(I)}else ue.setExtraStackFrame(null)}function Oe(m,v,I,F,ee){{var re=Function.call.bind(R);for(var Q in m)if(re(m,Q)){var q=void 0;try{if(typeof m[Q]!="function"){var _e=Error((F||"React class")+": "+I+" type `"+Q+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof m[Q]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw _e.name="Invariant Violation",_e}q=m[Q](v,Q,F,I,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(ce){q=ce}q&&!(q instanceof Error)&&(Se(ee),S("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",F||"React class",I,Q,typeof q),Se(null)),q instanceof Error&&!(q.message in X)&&(X[q.message]=!0,Se(ee),S("Failed %s type: %s",I,q.message),Se(null))}}}var Ce=Array.isArray;function ot(m){return Ce(m)}function Ge(m){{var v=typeof Symbol=="function"&&Symbol.toStringTag,I=v&&m[Symbol.toStringTag]||m.constructor.name||"Object";return I}}function Ze(m){try{return b(m),!1}catch{return!0}}function b(m){return""+m}function _(m){if(Ze(m))return S("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Ge(m)),b(m)}var N=A.ReactCurrentOwner,V={key:!0,ref:!0,__self:!0,__source:!0},J,xe;function ne(m){if(R.call(m,"ref")){var v=Object.getOwnPropertyDescriptor(m,"ref").get;if(v&&v.isReactWarning)return!1}return m.ref!==void 0}function he(m){if(R.call(m,"key")){var v=Object.getOwnPropertyDescriptor(m,"key").get;if(v&&v.isReactWarning)return!1}return m.key!==void 0}function Ye(m,v){typeof m.ref=="string"&&N.current}function Ke(m,v){{var I=function(){J||(J=!0,S("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",v))};I.isReactWarning=!0,Object.defineProperty(m,"key",{get:I,configurable:!0})}}function be(m,v){{var I=function(){xe||(xe=!0,S("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",v))};I.isReactWarning=!0,Object.defineProperty(m,"ref",{get:I,configurable:!0})}}var $e=function(m,v,I,F,ee,re,Q){var q={$$typeof:n,type:m,key:v,ref:I,props:Q,_owner:re};return q._store={},Object.defineProperty(q._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(q,"_self",{configurable:!1,enumerable:!1,writable:!1,value:F}),Object.defineProperty(q,"_source",{configurable:!1,enumerable:!1,writable:!1,value:ee}),Object.freeze&&(Object.freeze(q.props),Object.freeze(q)),q};function Ue(m,v,I,F,ee){{var re,Q={},q=null,_e=null;I!==void 0&&(_(I),q=""+I),he(v)&&(_(v.key),q=""+v.key),ne(v)&&(_e=v.ref,Ye(v,ee));for(re in v)R.call(v,re)&&!V.hasOwnProperty(re)&&(Q[re]=v[re]);if(m&&m.defaultProps){var ce=m.defaultProps;for(re in ce)Q[re]===void 0&&(Q[re]=ce[re])}if(q||_e){var pe=typeof m=="function"?m.displayName||m.name||"Unknown":m;q&&Ke(Q,pe),_e&&be(Q,pe)}return $e(m,q,_e,ee,F,N.current,Q)}}var zn=A.ReactCurrentOwner,Vi=A.ReactDebugCurrentFrame;function mt(m){if(m){var v=m._owner,I=qe(m.type,m._source,v?v.type:null);Vi.setExtraStackFrame(I)}else Vi.setExtraStackFrame(null)}var Bn;Bn=!1;function Un(m){return typeof m=="object"&&m!==null&&m.$$typeof===n}function Wi(){{if(zn.current){var m=G(zn.current.type);if(m)return`
17
+ */return e.NODE_ENV!=="production"&&function(){var t=Y,n=Symbol.for("react.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen"),m=Symbol.iterator,x="@@iterator";function E(y){if(y===null||typeof y!="object")return null;var O=m&&y[m]||y[x];return typeof O=="function"?O:null}var T=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function k(y){{for(var O=arguments.length,K=new Array(O>1?O-1:0),te=1;te<O;te++)K[te-1]=arguments[te];C("error",y,K)}}function C(y,O,K){{var te=T.ReactDebugCurrentFrame,fe=te.getStackAddendum();fe!==""&&(O+="%s",K=K.concat([fe]));var me=K.map(function(ce){return String(ce)});me.unshift("Warning: "+O),Function.prototype.apply.call(console[y],console,me)}}var R=!1,w=!1,P=!1,F=!1,$=!1,S;S=Symbol.for("react.module.reference");function z(y){return!!(typeof y=="string"||typeof y=="function"||y===i||y===a||$||y===o||y===u||y===d||F||y===g||R||w||P||typeof y=="object"&&y!==null&&(y.$$typeof===f||y.$$typeof===p||y.$$typeof===s||y.$$typeof===l||y.$$typeof===c||y.$$typeof===S||y.getModuleId!==void 0))}function U(y,O,K){var te=y.displayName;if(te)return te;var fe=O.displayName||O.name||"";return fe!==""?K+"("+fe+")":K}function ne(y){return y.displayName||"Context"}function V(y){if(y==null)return null;if(typeof y.tag=="number"&&k("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof y=="function")return y.displayName||y.name||null;if(typeof y=="string")return y;switch(y){case i:return"Fragment";case r:return"Portal";case a:return"Profiler";case o:return"StrictMode";case u:return"Suspense";case d:return"SuspenseList"}if(typeof y=="object")switch(y.$$typeof){case l:var O=y;return ne(O)+".Consumer";case s:var K=y;return ne(K._context)+".Provider";case c:return U(y,y.render,"ForwardRef");case p:var te=y.displayName||null;return te!==null?te:V(y.type)||"Memo";case f:{var fe=y,me=fe._payload,ce=fe._init;try{return V(ce(me))}catch{return null}}}return null}var G=Object.assign,N=0,D,L,j,h,Z,ee,b;function ue(){}ue.__reactDisabledLog=!0;function ye(){{if(N===0){D=console.log,L=console.info,j=console.warn,h=console.error,Z=console.group,ee=console.groupCollapsed,b=console.groupEnd;var y={configurable:!0,enumerable:!0,value:ue,writable:!0};Object.defineProperties(console,{info:y,log:y,warn:y,error:y,group:y,groupCollapsed:y,groupEnd:y})}N++}}function pe(){{if(N--,N===0){var y={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:G({},y,{value:D}),info:G({},y,{value:L}),warn:G({},y,{value:j}),error:G({},y,{value:h}),group:G({},y,{value:Z}),groupCollapsed:G({},y,{value:ee}),groupEnd:G({},y,{value:b})})}N<0&&k("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Pe=T.ReactCurrentDispatcher,we;function Ne(y,O,K){{if(we===void 0)try{throw Error()}catch(fe){var te=fe.stack.trim().match(/\n( *(at )?)/);we=te&&te[1]||""}return`
18
+ `+we+y}}var Oe=!1,ze;{var Ue=typeof WeakMap=="function"?WeakMap:Map;ze=new Ue}function $e(y,O){if(!y||Oe)return"";{var K=ze.get(y);if(K!==void 0)return K}var te;Oe=!0;var fe=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var me;me=Pe.current,Pe.current=null,ye();try{if(O){var ce=function(){throw Error()};if(Object.defineProperty(ce.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ce,[])}catch(qe){te=qe}Reflect.construct(y,[],ce)}else{try{ce.call()}catch(qe){te=qe}y.call(ce.prototype)}}else{try{throw Error()}catch(qe){te=qe}y()}}catch(qe){if(qe&&te&&typeof qe.stack=="string"){for(var oe=qe.stack.split(`
19
+ `),He=te.stack.split(`
20
+ `),_e=oe.length-1,ve=He.length-1;_e>=1&&ve>=0&&oe[_e]!==He[ve];)ve--;for(;_e>=1&&ve>=0;_e--,ve--)if(oe[_e]!==He[ve]){if(_e!==1||ve!==1)do if(_e--,ve--,ve<0||oe[_e]!==He[ve]){var Je=`
21
+ `+oe[_e].replace(" at new "," at ");return y.displayName&&Je.includes("<anonymous>")&&(Je=Je.replace("<anonymous>",y.displayName)),typeof y=="function"&&ze.set(y,Je),Je}while(_e>=1&&ve>=0);break}}}finally{Oe=!1,Pe.current=me,pe(),Error.prepareStackTrace=fe}var Ft=y?y.displayName||y.name:"",kt=Ft?Ne(Ft):"";return typeof y=="function"&&ze.set(y,kt),kt}function at(y,O,K){return $e(y,!1)}function Te(y){var O=y.prototype;return!!(O&&O.isReactComponent)}function ie(y,O,K){if(y==null)return"";if(typeof y=="function")return $e(y,Te(y));if(typeof y=="string")return Ne(y);switch(y){case u:return Ne("Suspense");case d:return Ne("SuspenseList")}if(typeof y=="object")switch(y.$$typeof){case c:return at(y.render);case p:return ie(y.type,O,K);case f:{var te=y,fe=te._payload,me=te._init;try{return ie(me(fe),O,K)}catch{}}}return""}var ke=Object.prototype.hasOwnProperty,q={},H=T.ReactDebugCurrentFrame;function W(y){if(y){var O=y._owner,K=ie(y.type,y._source,O?O.type:null);H.setExtraStackFrame(K)}else H.setExtraStackFrame(null)}function X(y,O,K,te,fe){{var me=Function.call.bind(ke);for(var ce in y)if(me(y,ce)){var oe=void 0;try{if(typeof y[ce]!="function"){var He=Error((te||"React class")+": "+K+" type `"+ce+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof y[ce]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw He.name="Invariant Violation",He}oe=y[ce](O,ce,te,K,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(_e){oe=_e}oe&&!(oe instanceof Error)&&(W(fe),k("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",te||"React class",K,ce,typeof oe),W(null)),oe instanceof Error&&!(oe.message in q)&&(q[oe.message]=!0,W(fe),k("Failed %s type: %s",K,oe.message),W(null))}}}var Re=Array.isArray;function Ee(y){return Re(y)}function je(y){{var O=typeof Symbol=="function"&&Symbol.toStringTag,K=O&&y[Symbol.toStringTag]||y.constructor.name||"Object";return K}}function st(y){try{return _(y),!1}catch{return!0}}function _(y){return""+y}function v(y){if(st(y))return k("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",je(y)),_(y)}var I=T.ReactCurrentOwner,B={key:!0,ref:!0,__self:!0,__source:!0},J,le;function Ve(y){if(ke.call(y,"ref")){var O=Object.getOwnPropertyDescriptor(y,"ref").get;if(O&&O.isReactWarning)return!1}return y.ref!==void 0}function Ie(y){if(ke.call(y,"key")){var O=Object.getOwnPropertyDescriptor(y,"key").get;if(O&&O.isReactWarning)return!1}return y.key!==void 0}function de(y,O){typeof y.ref=="string"&&I.current}function Ae(y,O){{var K=function(){J||(J=!0,k("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",O))};K.isReactWarning=!0,Object.defineProperty(y,"key",{get:K,configurable:!0})}}function Se(y,O){{var K=function(){le||(le=!0,k("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",O))};K.isReactWarning=!0,Object.defineProperty(y,"ref",{get:K,configurable:!0})}}var tt=function(y,O,K,te,fe,me,ce){var oe={$$typeof:n,type:y,key:O,ref:K,props:ce,_owner:me};return oe._store={},Object.defineProperty(oe._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(oe,"_self",{configurable:!1,enumerable:!1,writable:!1,value:te}),Object.defineProperty(oe,"_source",{configurable:!1,enumerable:!1,writable:!1,value:fe}),Object.freeze&&(Object.freeze(oe.props),Object.freeze(oe)),oe};function Xe(y,O,K,te,fe){{var me,ce={},oe=null,He=null;K!==void 0&&(v(K),oe=""+K),Ie(O)&&(v(O.key),oe=""+O.key),Ve(O)&&(He=O.ref,de(O,fe));for(me in O)ke.call(O,me)&&!B.hasOwnProperty(me)&&(ce[me]=O[me]);if(y&&y.defaultProps){var _e=y.defaultProps;for(me in _e)ce[me]===void 0&&(ce[me]=_e[me])}if(oe||He){var ve=typeof y=="function"?y.displayName||y.name||"Unknown":y;oe&&Ae(ce,ve),He&&Se(ce,ve)}return tt(y,oe,He,fe,te,I.current,ce)}}var Wr=T.ReactCurrentOwner,Ns=T.ReactDebugCurrentFrame;function Pt(y){if(y){var O=y._owner,K=ie(y.type,y._source,O?O.type:null);Ns.setExtraStackFrame(K)}else Ns.setExtraStackFrame(null)}var jr;jr=!1;function Vr(y){return typeof y=="object"&&y!==null&&y.$$typeof===n}function As(){{if(Wr.current){var y=V(Wr.current.type);if(y)return`
22
22
 
23
- Check the render method of \``+m+"`."}return""}}function dc(m){return""}var Yi={};function mc(m){{var v=Wi();if(!v){var I=typeof m=="string"?m:m.displayName||m.name;I&&(v=`
23
+ Check the render method of \``+y+"`."}return""}}function qb(y){return""}var Cs={};function Yb(y){{var O=As();if(!O){var K=typeof y=="string"?y:y.displayName||y.name;K&&(O=`
24
24
 
25
- Check the top-level render call using <`+I+">.")}return v}}function Ki(m,v){{if(!m._store||m._store.validated||m.key!=null)return;m._store.validated=!0;var I=mc(v);if(Yi[I])return;Yi[I]=!0;var F="";m&&m._owner&&m._owner!==zn.current&&(F=" It was passed a child from "+G(m._owner.type)+"."),mt(m),S('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',I,F),mt(null)}}function qi(m,v){{if(typeof m!="object")return;if(ot(m))for(var I=0;I<m.length;I++){var F=m[I];Un(F)&&Ki(F,v)}else if(Un(m))m._store&&(m._store.validated=!0);else if(m){var ee=k(m);if(typeof ee=="function"&&ee!==m.entries)for(var re=ee.call(m),Q;!(Q=re.next()).done;)Un(Q.value)&&Ki(Q.value,v)}}}function gc(m){{var v=m.type;if(v==null||typeof v=="string")return;var I;if(typeof v=="function")I=v.propTypes;else if(typeof v=="object"&&(v.$$typeof===f||v.$$typeof===h))I=v.propTypes;else return;if(I){var F=G(v);Oe(I,m.props,"prop",F,m)}else if(v.PropTypes!==void 0&&!Bn){Bn=!0;var ee=G(v);S("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",ee||"Unknown")}typeof v.getDefaultProps=="function"&&!v.getDefaultProps.isReactClassApproved&&S("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function yc(m){{for(var v=Object.keys(m.props),I=0;I<v.length;I++){var F=v[I];if(F!=="children"&&F!=="key"){mt(m),S("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",F),mt(null);break}}m.ref!==null&&(mt(m),S("Invalid attribute `ref` supplied to `React.Fragment`."),mt(null))}}var Gi={};function Xi(m,v,I,F,ee,re){{var Q=O(m);if(!Q){var q="";(m===void 0||typeof m=="object"&&m!==null&&Object.keys(m).length===0)&&(q+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var _e=dc();_e?q+=_e:q+=Wi();var ce;m===null?ce="null":ot(m)?ce="array":m!==void 0&&m.$$typeof===n?(ce="<"+(G(m.type)||"Unknown")+" />",q=" Did you accidentally export a JSX literal instead of a component?"):ce=typeof m,S("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",ce,q)}var pe=Ue(m,v,I,ee,re);if(pe==null)return pe;if(Q){var ze=v.children;if(ze!==void 0)if(F)if(ot(ze)){for(var gt=0;gt<ze.length;gt++)qi(ze[gt],m);Object.freeze&&Object.freeze(ze)}else S("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else qi(ze,m)}if(R.call(v,"key")){var lt=G(m),Pe=Object.keys(v).filter(function(vc){return vc!=="key"}),Hn=Pe.length>0?"{key: someKey, "+Pe.join(": ..., ")+": ...}":"{key: someKey}";if(!Gi[lt+Hn]){var Sc=Pe.length>0?"{"+Pe.join(": ..., ")+": ...}":"{}";S(`A props object containing a "key" prop is being spread into JSX:
25
+ Check the top-level render call using <`+K+">.")}return O}}function Os(y,O){{if(!y._store||y._store.validated||y.key!=null)return;y._store.validated=!0;var K=Yb(O);if(Cs[K])return;Cs[K]=!0;var te="";y&&y._owner&&y._owner!==Wr.current&&(te=" It was passed a child from "+V(y._owner.type)+"."),Pt(y),k('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',K,te),Pt(null)}}function Rs(y,O){{if(typeof y!="object")return;if(Ee(y))for(var K=0;K<y.length;K++){var te=y[K];Vr(te)&&Os(te,O)}else if(Vr(y))y._store&&(y._store.validated=!0);else if(y){var fe=E(y);if(typeof fe=="function"&&fe!==y.entries)for(var me=fe.call(y),ce;!(ce=me.next()).done;)Vr(ce.value)&&Os(ce.value,O)}}}function Zb(y){{var O=y.type;if(O==null||typeof O=="string")return;var K;if(typeof O=="function")K=O.propTypes;else if(typeof O=="object"&&(O.$$typeof===c||O.$$typeof===p))K=O.propTypes;else return;if(K){var te=V(O);X(K,y.props,"prop",te,y)}else if(O.PropTypes!==void 0&&!jr){jr=!0;var fe=V(O);k("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",fe||"Unknown")}typeof O.getDefaultProps=="function"&&!O.getDefaultProps.isReactClassApproved&&k("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Xb(y){{for(var O=Object.keys(y.props),K=0;K<O.length;K++){var te=O[K];if(te!=="children"&&te!=="key"){Pt(y),k("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",te),Pt(null);break}}y.ref!==null&&(Pt(y),k("Invalid attribute `ref` supplied to `React.Fragment`."),Pt(null))}}var Is={};function Ms(y,O,K,te,fe,me){{var ce=z(y);if(!ce){var oe="";(y===void 0||typeof y=="object"&&y!==null&&Object.keys(y).length===0)&&(oe+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var He=qb();He?oe+=He:oe+=As();var _e;y===null?_e="null":Ee(y)?_e="array":y!==void 0&&y.$$typeof===n?(_e="<"+(V(y.type)||"Unknown")+" />",oe=" Did you accidentally export a JSX literal instead of a component?"):_e=typeof y,k("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",_e,oe)}var ve=Xe(y,O,K,fe,me);if(ve==null)return ve;if(ce){var Je=O.children;if(Je!==void 0)if(te)if(Ee(Je)){for(var Ft=0;Ft<Je.length;Ft++)Rs(Je[Ft],y);Object.freeze&&Object.freeze(Je)}else k("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Rs(Je,y)}if(ke.call(O,"key")){var kt=V(y),qe=Object.keys(O).filter(function(ry){return ry!=="key"}),qr=qe.length>0?"{key: someKey, "+qe.join(": ..., ")+": ...}":"{key: someKey}";if(!Is[kt+qr]){var ny=qe.length>0?"{"+qe.join(": ..., ")+": ...}":"{}";k(`A props object containing a "key" prop is being spread into JSX:
26
26
  let props = %s;
27
27
  <%s {...props} />
28
28
  React keys must be passed directly to JSX without using spread:
29
29
  let props = %s;
30
- <%s key={someKey} {...props} />`,Hn,lt,Sc,lt),Gi[lt+Hn]=!0}}return m===i?yc(pe):gc(pe),pe}}function xc(m,v,I){return Xi(m,v,I,!0)}function bc(m,v,I){return Xi(m,v,I,!1)}var wc=bc,kc=xc;xt.Fragment=i,xt.jsx=wc,xt.jsxs=kc}(),xt}var Zi={};Zi.NODE_ENV==="production"?Yt.exports=Qi():Yt.exports=Ji();var E=Yt.exports;/**
30
+ <%s key={someKey} {...props} />`,qr,kt,ny,kt),Is[kt+qr]=!0}}return y===i?Xb(ve):Zb(ve),ve}}function Qb(y,O,K){return Ms(y,O,K,!0)}function Jb(y,O,K){return Ms(y,O,K,!1)}var ey=Jb,ty=Qb;zt.Fragment=i,zt.jsx=ey,zt.jsxs=ty}(),zt}var Fs={};Fs.NODE_ENV==="production"?Ln.exports=Ds():Ln.exports=Ps();var A=Ln.exports;/**
31
31
  * @license lucide-react v0.344.0 - ISC
32
32
  *
33
33
  * This source code is licensed under the ISC license.
34
34
  * See the LICENSE file in the root directory of this source tree.
35
- */var $i={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
35
+ */var Bs={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
36
36
  * @license lucide-react v0.344.0 - ISC
37
37
  *
38
38
  * This source code is licensed under the ISC license.
39
39
  * See the LICENSE file in the root directory of this source tree.
40
- */const eo=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase().trim(),Te=(e,t)=>{const n=j.forwardRef(({color:r="currentColor",size:i=24,strokeWidth:o=2,absoluteStrokeWidth:l,className:a="",children:u,...f},s)=>j.createElement("svg",{ref:s,...$i,width:i,height:i,stroke:r,strokeWidth:l?Number(o)*24/Number(i):o,className:["lucide",`lucide-${eo(e)}`,a].join(" "),...f},[...t.map(([c,h])=>j.createElement(c,h)),...Array.isArray(u)?u:[u]]));return n.displayName=`${e}`,n};/**
40
+ */const zs=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase().trim(),Ke=(e,t)=>{const n=Y.forwardRef(({color:r="currentColor",size:i=24,strokeWidth:o=2,absoluteStrokeWidth:a,className:s="",children:l,...c},u)=>Y.createElement("svg",{ref:u,...Bs,width:i,height:i,stroke:r,strokeWidth:a?Number(o)*24/Number(i):o,className:["lucide",`lucide-${zs(e)}`,s].join(" "),...c},[...t.map(([d,p])=>Y.createElement(d,p)),...Array.isArray(l)?l:[l]]));return n.displayName=`${e}`,n};/**
41
41
  * @license lucide-react v0.344.0 - ISC
42
42
  *
43
43
  * This source code is licensed under the ISC license.
44
44
  * See the LICENSE file in the root directory of this source tree.
45
- */const to=Te("Bot",[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]]);/**
45
+ */const Us=Ke("Bot",[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]]);/**
46
46
  * @license lucide-react v0.344.0 - ISC
47
47
  *
48
48
  * This source code is licensed under the ISC license.
49
49
  * See the LICENSE file in the root directory of this source tree.
50
- */const no=Te("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
50
+ */const $s=Ke("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
51
51
  * @license lucide-react v0.344.0 - ISC
52
52
  *
53
53
  * This source code is licensed under the ISC license.
54
54
  * See the LICENSE file in the root directory of this source tree.
55
- */const ro=Te("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
55
+ */const Hs=Ke("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
56
56
  * @license lucide-react v0.344.0 - ISC
57
57
  *
58
58
  * This source code is licensed under the ISC license.
59
59
  * See the LICENSE file in the root directory of this source tree.
60
- */const io=Te("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/**
60
+ */const Ks=Ke("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/**
61
61
  * @license lucide-react v0.344.0 - ISC
62
62
  *
63
63
  * This source code is licensed under the ISC license.
64
64
  * See the LICENSE file in the root directory of this source tree.
65
- */const oo=Te("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);/**
65
+ */const Gs=Ke("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);/**
66
66
  * @license lucide-react v0.344.0 - ISC
67
67
  *
68
68
  * This source code is licensed under the ISC license.
69
69
  * See the LICENSE file in the root directory of this source tree.
70
- */const lo=Te("Heart",[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}]]);/**
70
+ */const Ws=Ke("Heart",[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}]]);/**
71
71
  * @license lucide-react v0.344.0 - ISC
72
72
  *
73
73
  * This source code is licensed under the ISC license.
74
74
  * See the LICENSE file in the root directory of this source tree.
75
- */const ao=Te("HelpCircle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
75
+ */const js=Ke("HelpCircle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
76
76
  * @license lucide-react v0.344.0 - ISC
77
77
  *
78
78
  * This source code is licensed under the ISC license.
79
79
  * See the LICENSE file in the root directory of this source tree.
80
- */const so=Te("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);/**
80
+ */const Vs=Ke("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);/**
81
81
  * @license lucide-react v0.344.0 - ISC
82
82
  *
83
83
  * This source code is licensed under the ISC license.
84
84
  * See the LICENSE file in the root directory of this source tree.
85
- */const Kn=Te("MessageCircle",[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}]]);/**
85
+ */const Dn=Ke("MessageCircle",[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}]]);/**
86
86
  * @license lucide-react v0.344.0 - ISC
87
87
  *
88
88
  * This source code is licensed under the ISC license.
89
89
  * See the LICENSE file in the root directory of this source tree.
90
- */const uo=Te("MessageSquare",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]]);/**
90
+ */const qs=Ke("MessageSquare",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]]);/**
91
91
  * @license lucide-react v0.344.0 - ISC
92
92
  *
93
93
  * This source code is licensed under the ISC license.
94
94
  * See the LICENSE file in the root directory of this source tree.
95
- */const qn=Te("Minimize2",[["polyline",{points:"4 14 10 14 10 20",key:"11kfnr"}],["polyline",{points:"20 10 14 10 14 4",key:"rlmsce"}],["line",{x1:"14",x2:"21",y1:"10",y2:"3",key:"o5lafz"}],["line",{x1:"3",x2:"10",y1:"21",y2:"14",key:"1atl0r"}]]);/**
95
+ */const Qr=Ke("Minimize2",[["polyline",{points:"4 14 10 14 10 20",key:"11kfnr"}],["polyline",{points:"20 10 14 10 14 4",key:"rlmsce"}],["line",{x1:"14",x2:"21",y1:"10",y2:"3",key:"o5lafz"}],["line",{x1:"3",x2:"10",y1:"21",y2:"14",key:"1atl0r"}]]);/**
96
96
  * @license lucide-react v0.344.0 - ISC
97
97
  *
98
98
  * This source code is licensed under the ISC license.
99
99
  * See the LICENSE file in the root directory of this source tree.
100
- */const co=Te("Send",[["path",{d:"m22 2-7 20-4-9-9-4Z",key:"1q3vgg"}],["path",{d:"M22 2 11 13",key:"nzbqef"}]]);/**
100
+ */const Ys=Ke("Send",[["path",{d:"m22 2-7 20-4-9-9-4Z",key:"1q3vgg"}],["path",{d:"M22 2 11 13",key:"nzbqef"}]]);/**
101
101
  * @license lucide-react v0.344.0 - ISC
102
102
  *
103
103
  * This source code is licensed under the ISC license.
104
104
  * See the LICENSE file in the root directory of this source tree.
105
- */const fo=Te("Sparkles",[["path",{d:"m12 3-1.912 5.813a2 2 0 0 1-1.275 1.275L3 12l5.813 1.912a2 2 0 0 1 1.275 1.275L12 21l1.912-5.813a2 2 0 0 1 1.275-1.275L21 12l-5.813-1.912a2 2 0 0 1-1.275-1.275L12 3Z",key:"17u4zn"}],["path",{d:"M5 3v4",key:"bklmnn"}],["path",{d:"M19 17v4",key:"iiml17"}],["path",{d:"M3 5h4",key:"nem4j1"}],["path",{d:"M17 19h4",key:"lbex7p"}]]);/**
105
+ */const Zs=Ke("Sparkles",[["path",{d:"m12 3-1.912 5.813a2 2 0 0 1-1.275 1.275L3 12l5.813 1.912a2 2 0 0 1 1.275 1.275L12 21l1.912-5.813a2 2 0 0 1 1.275-1.275L21 12l-5.813-1.912a2 2 0 0 1-1.275-1.275L12 3Z",key:"17u4zn"}],["path",{d:"M5 3v4",key:"bklmnn"}],["path",{d:"M19 17v4",key:"iiml17"}],["path",{d:"M3 5h4",key:"nem4j1"}],["path",{d:"M17 19h4",key:"lbex7p"}]]);/**
106
106
  * @license lucide-react v0.344.0 - ISC
107
107
  *
108
108
  * This source code is licensed under the ISC license.
109
109
  * See the LICENSE file in the root directory of this source tree.
110
- */const po=Te("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]),ho={},Gn=e=>{let t;const n=new Set,r=(s,c)=>{const h=typeof s=="function"?s(t):s;if(!Object.is(h,t)){const p=t;t=c??(typeof h!="object"||h===null)?h:Object.assign({},t,h),n.forEach(y=>y(t,p))}},i=()=>t,u={setState:r,getState:i,getInitialState:()=>f,subscribe:s=>(n.add(s),()=>n.delete(s)),destroy:()=>{(ho?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}},f=t=e(r,i,u);return u},mo=e=>e?Gn(e):Gn;var Kt={exports:{}},qt={},Ot={exports:{}},Gt={};/**
110
+ */const Xs=Ke("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]),Qs={},Jr=e=>{let t;const n=new Set,r=(u,d)=>{const p=typeof u=="function"?u(t):u;if(!Object.is(p,t)){const f=t;t=d??(typeof p!="object"||p===null)?p:Object.assign({},t,p),n.forEach(g=>g(t,f))}},i=()=>t,l={setState:r,getState:i,getInitialState:()=>c,subscribe:u=>(n.add(u),()=>n.delete(u)),destroy:()=>{(Qs?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}},c=t=e(r,i,l);return l},Js=e=>e?Jr(e):Jr;var Pn={exports:{}},Fn={},on={exports:{}},Bn={};/**
111
111
  * @license React
112
112
  * use-sync-external-store-shim.production.js
113
113
  *
@@ -115,7 +115,7 @@ React keys must be passed directly to JSX without using spread:
115
115
  *
116
116
  * This source code is licensed under the MIT license found in the
117
117
  * LICENSE file in the root directory of this source tree.
118
- */var Xn;function go(){if(Xn)return Gt;Xn=1;var e=j;function t(c,h){return c===h&&(c!==0||1/c===1/h)||c!==c&&h!==h}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,i=e.useEffect,o=e.useLayoutEffect,l=e.useDebugValue;function a(c,h){var p=h(),y=r({inst:{value:p,getSnapshot:h}}),x=y[0].inst,T=y[1];return o(function(){x.value=p,x.getSnapshot=h,u(x)&&T({inst:x})},[c,p,h]),i(function(){return u(x)&&T({inst:x}),c(function(){u(x)&&T({inst:x})})},[c]),l(p),p}function u(c){var h=c.getSnapshot;c=c.value;try{var p=h();return!n(c,p)}catch{return!0}}function f(c,h){return h()}var s=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?f:a;return Gt.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:s,Gt}var Xt={},Qn;function yo(){if(Qn)return Xt;Qn=1;var e={};/**
118
+ */var ei;function el(){if(ei)return Bn;ei=1;var e=Y;function t(d,p){return d===p&&(d!==0||1/d===1/p)||d!==d&&p!==p}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,i=e.useEffect,o=e.useLayoutEffect,a=e.useDebugValue;function s(d,p){var f=p(),g=r({inst:{value:f,getSnapshot:p}}),m=g[0].inst,x=g[1];return o(function(){m.value=f,m.getSnapshot=p,l(m)&&x({inst:m})},[d,f,p]),i(function(){return l(m)&&x({inst:m}),d(function(){l(m)&&x({inst:m})})},[d]),a(f),f}function l(d){var p=d.getSnapshot;d=d.value;try{var f=p();return!n(d,f)}catch{return!0}}function c(d,p){return p()}var u=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?c:s;return Bn.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:u,Bn}var zn={},ti;function tl(){if(ti)return zn;ti=1;var e={};/**
119
119
  * @license React
120
120
  * use-sync-external-store-shim.development.js
121
121
  *
@@ -123,7 +123,7 @@ React keys must be passed directly to JSX without using spread:
123
123
  *
124
124
  * This source code is licensed under the MIT license found in the
125
125
  * LICENSE file in the root directory of this source tree.
126
- */return e.NODE_ENV!=="production"&&function(){function t(y,x){return y===x&&(y!==0||1/y===1/x)||y!==y&&x!==x}function n(y,x){c||o.startTransition===void 0||(c=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var T=x();if(!h){var k=x();l(T,k)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),h=!0)}k=a({inst:{value:T,getSnapshot:x}});var A=k[0].inst,S=k[1];return f(function(){A.value=T,A.getSnapshot=x,r(A)&&S({inst:A})},[y,T,x]),u(function(){return r(A)&&S({inst:A}),y(function(){r(A)&&S({inst:A})})},[y]),s(T),T}function r(y){var x=y.getSnapshot;y=y.value;try{var T=x();return!l(y,T)}catch{return!0}}function i(y,x){return x()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var o=j,l=typeof Object.is=="function"?Object.is:t,a=o.useState,u=o.useEffect,f=o.useLayoutEffect,s=o.useDebugValue,c=!1,h=!1,p=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?i:n;Xt.useSyncExternalStore=o.useSyncExternalStore!==void 0?o.useSyncExternalStore:p,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}(),Xt}var Jn;function Zn(){if(Jn)return Ot.exports;Jn=1;var e={};return e.NODE_ENV==="production"?Ot.exports=go():Ot.exports=yo(),Ot.exports}/**
126
+ */return e.NODE_ENV!=="production"&&function(){function t(g,m){return g===m&&(g!==0||1/g===1/m)||g!==g&&m!==m}function n(g,m){d||o.startTransition===void 0||(d=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var x=m();if(!p){var E=m();a(x,E)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),p=!0)}E=s({inst:{value:x,getSnapshot:m}});var T=E[0].inst,k=E[1];return c(function(){T.value=x,T.getSnapshot=m,r(T)&&k({inst:T})},[g,x,m]),l(function(){return r(T)&&k({inst:T}),g(function(){r(T)&&k({inst:T})})},[g]),u(x),x}function r(g){var m=g.getSnapshot;g=g.value;try{var x=m();return!a(g,x)}catch{return!0}}function i(g,m){return m()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var o=Y,a=typeof Object.is=="function"?Object.is:t,s=o.useState,l=o.useEffect,c=o.useLayoutEffect,u=o.useDebugValue,d=!1,p=!1,f=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?i:n;zn.useSyncExternalStore=o.useSyncExternalStore!==void 0?o.useSyncExternalStore:f,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}(),zn}var ni;function ri(){if(ni)return on.exports;ni=1;var e={};return e.NODE_ENV==="production"?on.exports=el():on.exports=tl(),on.exports}/**
127
127
  * @license React
128
128
  * use-sync-external-store-shim/with-selector.production.js
129
129
  *
@@ -131,7 +131,7 @@ React keys must be passed directly to JSX without using spread:
131
131
  *
132
132
  * This source code is licensed under the MIT license found in the
133
133
  * LICENSE file in the root directory of this source tree.
134
- */var $n;function xo(){if($n)return qt;$n=1;var e=j,t=Zn();function n(f,s){return f===s&&(f!==0||1/f===1/s)||f!==f&&s!==s}var r=typeof Object.is=="function"?Object.is:n,i=t.useSyncExternalStore,o=e.useRef,l=e.useEffect,a=e.useMemo,u=e.useDebugValue;return qt.useSyncExternalStoreWithSelector=function(f,s,c,h,p){var y=o(null);if(y.current===null){var x={hasValue:!1,value:null};y.current=x}else x=y.current;y=a(function(){function k(w){if(!A){if(A=!0,S=w,w=h(w),p!==void 0&&x.hasValue){var L=x.value;if(p(L,w))return z=L}return z=w}if(L=z,r(S,w))return L;var Y=h(w);return p!==void 0&&p(L,Y)?(S=w,L):(S=w,z=Y)}var A=!1,S,z,U=c===void 0?null:c;return[function(){return k(s())},U===null?void 0:function(){return k(U())}]},[s,c,h,p]);var T=i(f,y[0],y[1]);return l(function(){x.hasValue=!0,x.value=T},[T]),u(T),T},qt}var Qt={},er;function bo(){if(er)return Qt;er=1;var e={};/**
134
+ */var ii;function nl(){if(ii)return Fn;ii=1;var e=Y,t=ri();function n(c,u){return c===u&&(c!==0||1/c===1/u)||c!==c&&u!==u}var r=typeof Object.is=="function"?Object.is:n,i=t.useSyncExternalStore,o=e.useRef,a=e.useEffect,s=e.useMemo,l=e.useDebugValue;return Fn.useSyncExternalStoreWithSelector=function(c,u,d,p,f){var g=o(null);if(g.current===null){var m={hasValue:!1,value:null};g.current=m}else m=g.current;g=s(function(){function E(w){if(!T){if(T=!0,k=w,w=p(w),f!==void 0&&m.hasValue){var P=m.value;if(f(P,w))return C=P}return C=w}if(P=C,r(k,w))return P;var F=p(w);return f!==void 0&&f(P,F)?(k=w,P):(k=w,C=F)}var T=!1,k,C,R=d===void 0?null:d;return[function(){return E(u())},R===null?void 0:function(){return E(R())}]},[u,d,p,f]);var x=i(c,g[0],g[1]);return a(function(){m.hasValue=!0,m.value=x},[x]),l(x),x},Fn}var Un={},ai;function rl(){if(ai)return Un;ai=1;var e={};/**
135
135
  * @license React
136
136
  * use-sync-external-store-shim/with-selector.development.js
137
137
  *
@@ -139,21 +139,47 @@ React keys must be passed directly to JSX without using spread:
139
139
  *
140
140
  * This source code is licensed under the MIT license found in the
141
141
  * LICENSE file in the root directory of this source tree.
142
- */return e.NODE_ENV!=="production"&&function(){function t(s,c){return s===c&&(s!==0||1/s===1/c)||s!==s&&c!==c}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var n=j,r=Zn(),i=typeof Object.is=="function"?Object.is:t,o=r.useSyncExternalStore,l=n.useRef,a=n.useEffect,u=n.useMemo,f=n.useDebugValue;Qt.useSyncExternalStoreWithSelector=function(s,c,h,p,y){var x=l(null);if(x.current===null){var T={hasValue:!1,value:null};x.current=T}else T=x.current;x=u(function(){function A(L){if(!S){if(S=!0,z=L,L=p(L),y!==void 0&&T.hasValue){var Y=T.value;if(y(Y,L))return U=Y}return U=L}if(Y=U,i(z,L))return Y;var M=p(L);return y!==void 0&&y(Y,M)?(z=L,Y):(z=L,U=M)}var S=!1,z,U,w=h===void 0?null:h;return[function(){return A(c())},w===null?void 0:function(){return A(w())}]},[c,h,p,y]);var k=o(s,x[0],x[1]);return a(function(){T.hasValue=!0,T.value=k},[k]),f(k),k},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}(),Qt}var wo={};wo.NODE_ENV==="production"?Kt.exports=xo():Kt.exports=bo();var ko=Kt.exports;const So=Wt(ko),tr={},{useDebugValue:vo}=j,{useSyncExternalStoreWithSelector:Eo}=So;let nr=!1;const Co=e=>e;function _o(e,t=Co,n){(tr?"production":void 0)!=="production"&&n&&!nr&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),nr=!0);const r=Eo(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return vo(r),r}const rr=e=>{(tr?"production":void 0)!=="production"&&typeof e!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const t=typeof e=="function"?mo(e):e,n=(r,i)=>_o(t,r,i);return Object.assign(n,t),n},To=e=>e?rr(e):rr;let Jt=null,ir=null,or=null;const Io=(e,t=null,n=null)=>{if(!e||typeof e!="string")throw new Error("API URL must be a valid string");if(t!==null&&typeof t!="string")throw new Error("API key must be a valid string or null");if(n!==null&&typeof n!="string")throw new Error("Session ID must be a valid string or null");Jt=e,ir=t,or=n},Ao=()=>{if(!Jt)throw new Error("API URL not configured. Please call configureApi() with your server URL before using any API functions.");return Jt},Ro=()=>ir,Oo=()=>or,Po=(e,t={})=>{e.startsWith("https:");const r={Connection:"keep-alive","X-Request-ID":Date.now().toString(36)+Math.random().toString(36).substring(2)},i=Ro();i&&(r["X-API-Key"]=i);const o=Oo();return o&&(r["X-Session-ID"]=o),{...t,headers:{...t.headers,...r}}},Lo=(e,t=!0)=>({jsonrpc:"2.0",method:"tools/call",params:{name:"chat",arguments:{messages:[{role:"user",content:e}],stream:t}},id:Date.now().toString(36)+Math.random().toString(36).substring(2)});async function*jo(e,t=!0){var n,r,i,o,l,a,u,f,s;try{const c=Ao(),h=new AbortController,p=setTimeout(()=>h.abort(),6e4),y=await fetch(`${c}/v1/chat`,{...Po(c,{method:"POST",headers:{"Content-Type":"application/json",Accept:t?"text/event-stream":"application/json"},body:JSON.stringify(Lo(e,t))}),signal:h.signal});if(clearTimeout(p),!y.ok){const S=await y.text();throw new Error(`Network response was not ok: ${y.status} ${S}`)}if(!t){const S=await y.json();if(S.error)throw new Error(`MCP Error: ${S.error.message}`);(o=(i=(r=(n=S.result)==null?void 0:n.output)==null?void 0:r.messages)==null?void 0:i[0])!=null&&o.content&&(yield{text:S.result.output.messages[0].content,done:!0});return}const x=(l=y.body)==null?void 0:l.getReader();if(!x)throw new Error("No reader available");const T=new TextDecoder;let k="",A="";try{for(;;){const{done:S,value:z}=await x.read();if(S)break;const U=T.decode(z,{stream:!0});k+=U;const w=k.split(`
143
- `);k=w.pop()||"";for(const L of w)if(L.trim()&&L.startsWith("data: "))try{const Y=L.slice(6).trim();if(Y==="[DONE]"){yield{text:"",done:!0};break}const M=JSON.parse(Y);if(M.result){let K="";if(M.result.type==="start")continue;if(M.result.type==="chunk"&&M.result.chunk?K=M.result.chunk.content:M.result.type==="complete"&&((u=(a=M.result.output)==null?void 0:a.messages)!=null&&u[0])&&(K=M.result.output.messages[0].content),K){const O=lr(K,A);O?(A+=O,yield{text:O,done:M.result.type==="complete"}):M.result.type==="complete"&&(yield{text:"",done:!0})}}}catch(Y){console.warn("Error parsing JSON chunk:",L,"Error:",Y)}}}finally{x.releaseLock()}if(k&&k.startsWith("data: "))try{const S=k.slice(6).trim();if(S!=="[DONE]"){const z=JSON.parse(S);if((s=(f=z.result)==null?void 0:f.chunk)!=null&&s.content){const U=lr(z.result.chunk.content,A);U&&(yield{text:U,done:z.result.type==="complete"})}}}catch(S){console.warn("Error parsing final JSON buffer:",k,"Error:",S)}}catch(c){c.name==="AbortError"?yield{text:"Connection timed out. Please check if the server is running.",done:!0}:c.name==="TypeError"&&c.message.includes("Failed to fetch")?yield{text:"Could not connect to the server. Please check if the server is running.",done:!0}:yield{text:`Error: ${c.message}`,done:!0}}}function lr(e,t){if(!t)return e;if(t.endsWith(e))return"";if(e.length>t.length){if(e.startsWith(t))return e.slice(t.length);let n=0;const r=Math.min(t.length,e.length);for(;n<r&&t[n]===e[n];)n++;if(n>t.length/2)return e.slice(n)}return e}function ar(){try{if(typeof window<"u"&&window.CHATBOT_API_URL&&window.CHATBOT_API_KEY){const e=No();return Io(window.CHATBOT_API_URL,window.CHATBOT_API_KEY,e),!0}}catch(e){console.error("Failed to configure API:",e)}return!1}function No(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){const t=Math.random()*16|0;return(e==="x"?t:t&3|8).toString(16)})}ar();const Zt=To((e,t)=>({messages:[],isLoading:!1,error:null,voiceEnabled:!1,toggleVoice:()=>e(n=>({voiceEnabled:!n.voiceEnabled})),sendMessage:async n=>{try{if(!ar())throw new Error("API URL not configured");e(i=>({messages:[...i.messages,{role:"user",content:n}],isLoading:!0,error:null})),e(i=>({messages:[...i.messages,{role:"assistant",content:""}]}));let r=!1;try{for await(const i of jo(n,t().voiceEnabled))i.text&&(t().appendToLastMessage(i.text),r=!0);r||t().appendToLastMessage("No response received from the server. Please try again later.")}catch(i){console.error("Chat API error:",i),t().appendToLastMessage("Sorry, there was an error processing your request.")}e({isLoading:!1})}catch(r){console.error("Chat store error:",r),e(i=>({isLoading:!1,error:`Failed to send message: ${r instanceof Error?r.message:"Unknown error"}`}))}},appendToLastMessage:n=>{e(r=>{const i=[...r.messages],o=i[i.length-1];return o&&o.role==="assistant"&&(i[i.length-1]={...o,content:o.content+n}),{messages:i}})},clearMessages:()=>{e({messages:[]})}}));function Ec(){}function Cc(){}function Do(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const Mo=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Fo=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,zo={};function sr(e,t){return(zo.jsx?Fo:Mo).test(e)}const Bo=/[ \t\n\f\r]/g;function Uo(e){return typeof e=="object"?e.type==="text"?ur(e.value):!1:ur(e)}function ur(e){return e.replace(Bo,"")===""}class bt{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}bt.prototype.normal={},bt.prototype.property={},bt.prototype.space=void 0;function cr(e,t){const n={},r={};for(const i of e)Object.assign(n,i.property),Object.assign(r,i.normal);return new bt(n,r,t)}function $t(e){return e.toLowerCase()}class Ie{constructor(t,n){this.attribute=n,this.property=t}}Ie.prototype.attribute="",Ie.prototype.booleanish=!1,Ie.prototype.boolean=!1,Ie.prototype.commaOrSpaceSeparated=!1,Ie.prototype.commaSeparated=!1,Ie.prototype.defined=!1,Ie.prototype.mustUseProperty=!1,Ie.prototype.number=!1,Ie.prototype.overloadedBoolean=!1,Ie.prototype.property="",Ie.prototype.spaceSeparated=!1,Ie.prototype.space=void 0;let Ho=0;const W=et(),fe=et(),en=et(),C=et(),ie=et(),at=et(),Le=et();function et(){return 2**++Ho}const tn=Object.freeze(Object.defineProperty({__proto__:null,boolean:W,booleanish:fe,commaOrSpaceSeparated:Le,commaSeparated:at,number:C,overloadedBoolean:en,spaceSeparated:ie},Symbol.toStringTag,{value:"Module"})),nn=Object.keys(tn);class rn extends Ie{constructor(t,n,r,i){let o=-1;if(super(t,n),fr(this,"space",i),typeof r=="number")for(;++o<nn.length;){const l=nn[o];fr(this,nn[o],(r&tn[l])===tn[l])}}}rn.prototype.defined=!0;function fr(e,t,n){n&&(e[t]=n)}function st(e){const t={},n={};for(const[r,i]of Object.entries(e.properties)){const o=new rn(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[$t(r)]=r,n[$t(o.attribute)]=r}return new bt(t,n,e.space)}const pr=st({properties:{ariaActiveDescendant:null,ariaAtomic:fe,ariaAutoComplete:null,ariaBusy:fe,ariaChecked:fe,ariaColCount:C,ariaColIndex:C,ariaColSpan:C,ariaControls:ie,ariaCurrent:null,ariaDescribedBy:ie,ariaDetails:null,ariaDisabled:fe,ariaDropEffect:ie,ariaErrorMessage:null,ariaExpanded:fe,ariaFlowTo:ie,ariaGrabbed:fe,ariaHasPopup:null,ariaHidden:fe,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:ie,ariaLevel:C,ariaLive:null,ariaModal:fe,ariaMultiLine:fe,ariaMultiSelectable:fe,ariaOrientation:null,ariaOwns:ie,ariaPlaceholder:null,ariaPosInSet:C,ariaPressed:fe,ariaReadOnly:fe,ariaRelevant:null,ariaRequired:fe,ariaRoleDescription:ie,ariaRowCount:C,ariaRowIndex:C,ariaRowSpan:C,ariaSelected:fe,ariaSetSize:C,ariaSort:null,ariaValueMax:C,ariaValueMin:C,ariaValueNow:C,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function hr(e,t){return t in e?e[t]:t}function dr(e,t){return hr(e,t.toLowerCase())}const Vo=st({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:at,acceptCharset:ie,accessKey:ie,action:null,allow:null,allowFullScreen:W,allowPaymentRequest:W,allowUserMedia:W,alt:null,as:null,async:W,autoCapitalize:null,autoComplete:ie,autoFocus:W,autoPlay:W,blocking:ie,capture:null,charSet:null,checked:W,cite:null,className:ie,cols:C,colSpan:null,content:null,contentEditable:fe,controls:W,controlsList:ie,coords:C|at,crossOrigin:null,data:null,dateTime:null,decoding:null,default:W,defer:W,dir:null,dirName:null,disabled:W,download:en,draggable:fe,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:W,formTarget:null,headers:ie,height:C,hidden:en,high:C,href:null,hrefLang:null,htmlFor:ie,httpEquiv:ie,id:null,imageSizes:null,imageSrcSet:null,inert:W,inputMode:null,integrity:null,is:null,isMap:W,itemId:null,itemProp:ie,itemRef:ie,itemScope:W,itemType:ie,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:W,low:C,manifest:null,max:null,maxLength:C,media:null,method:null,min:null,minLength:C,multiple:W,muted:W,name:null,nonce:null,noModule:W,noValidate:W,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:W,optimum:C,pattern:null,ping:ie,placeholder:null,playsInline:W,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:W,referrerPolicy:null,rel:ie,required:W,reversed:W,rows:C,rowSpan:C,sandbox:ie,scope:null,scoped:W,seamless:W,selected:W,shadowRootClonable:W,shadowRootDelegatesFocus:W,shadowRootMode:null,shape:null,size:C,sizes:null,slot:null,span:C,spellCheck:fe,src:null,srcDoc:null,srcLang:null,srcSet:null,start:C,step:null,style:null,tabIndex:C,target:null,title:null,translate:null,type:null,typeMustMatch:W,useMap:null,value:fe,width:C,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:ie,axis:null,background:null,bgColor:null,border:C,borderColor:null,bottomMargin:C,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:W,declare:W,event:null,face:null,frame:null,frameBorder:null,hSpace:C,leftMargin:C,link:null,longDesc:null,lowSrc:null,marginHeight:C,marginWidth:C,noResize:W,noHref:W,noShade:W,noWrap:W,object:null,profile:null,prompt:null,rev:null,rightMargin:C,rules:null,scheme:null,scrolling:fe,standby:null,summary:null,text:null,topMargin:C,valueType:null,version:null,vAlign:null,vLink:null,vSpace:C,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:W,disableRemotePlayback:W,prefix:null,property:null,results:C,security:null,unselectable:null},space:"html",transform:dr}),Wo=st({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:Le,accentHeight:C,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:C,amplitude:C,arabicForm:null,ascent:C,attributeName:null,attributeType:null,azimuth:C,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:C,by:null,calcMode:null,capHeight:C,className:ie,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:C,diffuseConstant:C,direction:null,display:null,dur:null,divisor:C,dominantBaseline:null,download:W,dx:null,dy:null,edgeMode:null,editable:null,elevation:C,enableBackground:null,end:null,event:null,exponent:C,externalResourcesRequired:null,fill:null,fillOpacity:C,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:at,g2:at,glyphName:at,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:C,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:C,horizOriginX:C,horizOriginY:C,id:null,ideographic:C,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:C,k:C,k1:C,k2:C,k3:C,k4:C,kernelMatrix:Le,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:C,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:C,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:C,overlineThickness:C,paintOrder:null,panose1:null,path:null,pathLength:C,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:ie,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:C,pointsAtY:C,pointsAtZ:C,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Le,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Le,rev:Le,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Le,requiredFeatures:Le,requiredFonts:Le,requiredFormats:Le,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:C,specularExponent:C,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:C,strikethroughThickness:C,string:null,stroke:null,strokeDashArray:Le,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:C,strokeOpacity:C,strokeWidth:null,style:null,surfaceScale:C,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Le,tabIndex:C,tableValues:null,target:null,targetX:C,targetY:C,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Le,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:C,underlineThickness:C,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:C,values:null,vAlphabetic:C,vMathematical:C,vectorEffect:null,vHanging:C,vIdeographic:C,version:null,vertAdvY:C,vertOriginX:C,vertOriginY:C,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:C,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:hr}),mr=st({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),gr=st({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:dr}),yr=st({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),Yo={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"},Ko=/[A-Z]/g,xr=/-[a-z]/g,qo=/^data[-\w.:]+$/i;function Go(e,t){const n=$t(t);let r=t,i=Ie;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&qo.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(xr,Qo);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!xr.test(o)){let l=o.replace(Ko,Xo);l.charAt(0)!=="-"&&(l="-"+l),t="data"+l}}i=rn}return new i(r,t)}function Xo(e){return"-"+e.toLowerCase()}function Qo(e){return e.charAt(1).toUpperCase()}const Jo=cr([pr,Vo,mr,gr,yr],"html"),on=cr([pr,Wo,mr,gr,yr],"svg");function Zo(e){return e.join(" ").trim()}var ln={},br=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,$o=/\n/g,el=/^\s*/,tl=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,nl=/^:\s*/,rl=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,il=/^[;\s]*/,ol=/^\s+|\s+$/g,ll=`
144
- `,wr="/",kr="*",tt="",al="comment",sl="declaration",ul=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function i(y){var x=y.match($o);x&&(n+=x.length);var T=y.lastIndexOf(ll);r=~T?y.length-T:r+y.length}function o(){var y={line:n,column:r};return function(x){return x.position=new l(y),f(),x}}function l(y){this.start=y,this.end={line:n,column:r},this.source=t.source}l.prototype.content=e;function a(y){var x=new Error(t.source+":"+n+":"+r+": "+y);if(x.reason=y,x.filename=t.source,x.line=n,x.column=r,x.source=e,!t.silent)throw x}function u(y){var x=y.exec(e);if(x){var T=x[0];return i(T),e=e.slice(T.length),x}}function f(){u(el)}function s(y){var x;for(y=y||[];x=c();)x!==!1&&y.push(x);return y}function c(){var y=o();if(!(wr!=e.charAt(0)||kr!=e.charAt(1))){for(var x=2;tt!=e.charAt(x)&&(kr!=e.charAt(x)||wr!=e.charAt(x+1));)++x;if(x+=2,tt===e.charAt(x-1))return a("End of comment missing");var T=e.slice(2,x-2);return r+=2,i(T),e=e.slice(x),r+=2,y({type:al,comment:T})}}function h(){var y=o(),x=u(tl);if(x){if(c(),!u(nl))return a("property missing ':'");var T=u(rl),k=y({type:sl,property:Sr(x[0].replace(br,tt)),value:T?Sr(T[0].replace(br,tt)):tt});return u(il),k}}function p(){var y=[];s(y);for(var x;x=h();)x!==!1&&(y.push(x),s(y));return y}return f(),p()};function Sr(e){return e?e.replace(ol,tt):tt}var cl=Rt&&Rt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ln,"__esModule",{value:!0}),ln.default=pl;var fl=cl(ul);function pl(e,t){var n=null;if(!e||typeof e!="string")return n;var r=(0,fl.default)(e),i=typeof t=="function";return r.forEach(function(o){if(o.type==="declaration"){var l=o.property,a=o.value;i?t(l,a,o):a&&(n=n||{},n[l]=a)}}),n}var Pt={};Object.defineProperty(Pt,"__esModule",{value:!0}),Pt.camelCase=void 0;var hl=/^--[a-zA-Z0-9_-]+$/,dl=/-([a-z])/g,ml=/^[^-]+$/,gl=/^-(webkit|moz|ms|o|khtml)-/,yl=/^-(ms)-/,xl=function(e){return!e||ml.test(e)||hl.test(e)},bl=function(e,t){return t.toUpperCase()},vr=function(e,t){return"".concat(t,"-")},wl=function(e,t){return t===void 0&&(t={}),xl(e)?e:(e=e.toLowerCase(),t.reactCompat?e=e.replace(yl,vr):e=e.replace(gl,vr),e.replace(dl,bl))};Pt.camelCase=wl;var kl=Rt&&Rt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},Sl=kl(ln),vl=Pt;function an(e,t){var n={};return!e||typeof e!="string"||(0,Sl.default)(e,function(r,i){r&&i&&(n[(0,vl.camelCase)(r,t)]=i)}),n}an.default=an;var El=an;const Cl=Wt(El),Er=Cr("end"),sn=Cr("start");function Cr(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function _l(e){const t=sn(e),n=Er(e);if(t&&n)return{start:t,end:n}}function wt(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?_r(e.position):"start"in e||"end"in e?_r(e):"line"in e||"column"in e?un(e):""}function un(e){return Tr(e&&e.line)+":"+Tr(e&&e.column)}function _r(e){return un(e&&e.start)+"-"+un(e&&e.end)}function Tr(e){return e&&typeof e=="number"?e:1}class ke extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",o={},l=!1;if(n&&("line"in n&&"column"in n?o={place:n}:"start"in n&&"end"in n?o={place:n}:"type"in n?o={ancestors:[n],place:n.position}:o={...n}),typeof t=="string"?i=t:!o.cause&&t&&(l=!0,i=t.message,o.cause=t),!o.ruleId&&!o.source&&typeof r=="string"){const u=r.indexOf(":");u===-1?o.ruleId=r:(o.source=r.slice(0,u),o.ruleId=r.slice(u+1))}if(!o.place&&o.ancestors&&o.ancestors){const u=o.ancestors[o.ancestors.length-1];u&&(o.place=u.position)}const a=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file,this.message=i,this.line=a?a.line:void 0,this.name=wt(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=l&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual,this.expected,this.note,this.url}}ke.prototype.file="",ke.prototype.name="",ke.prototype.reason="",ke.prototype.message="",ke.prototype.stack="",ke.prototype.column=void 0,ke.prototype.line=void 0,ke.prototype.ancestors=void 0,ke.prototype.cause=void 0,ke.prototype.fatal=void 0,ke.prototype.place=void 0,ke.prototype.ruleId=void 0,ke.prototype.source=void 0;const cn={}.hasOwnProperty,Tl=new Map,Il=/[A-Z]/g,Al=new Set(["table","tbody","thead","tfoot","tr"]),Rl=new Set(["td","th"]),Ir="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Ol(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=zl(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=Fl(n,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?on:Jo,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},o=Ar(i,e,void 0);return o&&typeof o!="string"?o:i.create(e,i.Fragment,{children:o||void 0},void 0)}function Ar(e,t,n){if(t.type==="element")return Pl(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return Ll(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return Nl(e,t,n);if(t.type==="mdxjsEsm")return jl(e,t);if(t.type==="root")return Dl(e,t,n);if(t.type==="text")return Ml(e,t)}function Pl(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=on,e.schema=i),e.ancestors.push(t);const o=Or(e,t.tagName,!1),l=Bl(e,t);let a=pn(e,t);return Al.has(t.tagName)&&(a=a.filter(function(u){return typeof u=="string"?!Uo(u):!0})),Rr(e,l,o,t),fn(l,a),e.ancestors.pop(),e.schema=r,e.create(t,o,l,n)}function Ll(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}kt(e,t.position)}function jl(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);kt(e,t.position)}function Nl(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=on,e.schema=i),e.ancestors.push(t);const o=t.name===null?e.Fragment:Or(e,t.name,!0),l=Ul(e,t),a=pn(e,t);return Rr(e,l,o,t),fn(l,a),e.ancestors.pop(),e.schema=r,e.create(t,o,l,n)}function Dl(e,t,n){const r={};return fn(r,pn(e,t)),e.create(t,e.Fragment,r,n)}function Ml(e,t){return t.value}function Rr(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function fn(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function Fl(e,t,n){return r;function r(i,o,l,a){const f=Array.isArray(l.children)?n:t;return a?f(o,l,a):f(o,l)}}function zl(e,t){return n;function n(r,i,o,l){const a=Array.isArray(o.children),u=sn(r);return t(i,o,l,a,{columnNumber:u?u.column-1:void 0,fileName:e,lineNumber:u?u.line:void 0},void 0)}}function Bl(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&cn.call(t.properties,i)){const o=Hl(e,i,t.properties[i]);if(o){const[l,a]=o;e.tableCellAlignToStyle&&l==="align"&&typeof a=="string"&&Rl.has(t.tagName)?r=a:n[l]=a}}if(r){const o=n.style||(n.style={});o[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function Ul(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const o=r.data.estree.body[0];o.type;const l=o.expression;l.type;const a=l.properties[0];a.type,Object.assign(n,e.evaluater.evaluateExpression(a.argument))}else kt(e,t.position);else{const i=r.name;let o;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const a=r.value.data.estree.body[0];a.type,o=e.evaluater.evaluateExpression(a.expression)}else kt(e,t.position);else o=r.value===null?!0:r.value;n[i]=o}return n}function pn(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:Tl;for(;++r<t.children.length;){const o=t.children[r];let l;if(e.passKeys){const u=o.type==="element"?o.tagName:o.type==="mdxJsxFlowElement"||o.type==="mdxJsxTextElement"?o.name:void 0;if(u){const f=i.get(u)||0;l=u+"-"+f,i.set(u,f+1)}}const a=Ar(e,o,l);a!==void 0&&n.push(a)}return n}function Hl(e,t,n){const r=Go(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?Do(n):Zo(n)),r.property==="style"){let i=typeof n=="object"?n:Vl(e,String(n));return e.stylePropertyNameCase==="css"&&(i=Wl(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?Yo[r.property]||r.property:r.attribute,n]}}function Vl(e,t){try{return Cl(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,i=new ke("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw i.file=e.filePath||void 0,i.url=Ir+"#cannot-parse-style-attribute",i}}function Or(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const i=t.split(".");let o=-1,l;for(;++o<i.length;){const a=sr(i[o])?{type:"Identifier",name:i[o]}:{type:"Literal",value:i[o]};l=l?{type:"MemberExpression",object:l,property:a,computed:!!(o&&a.type==="Literal"),optional:!1}:a}r=l}else r=sr(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const i=r.value;return cn.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);kt(e)}function kt(e,t){const n=new ke("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=Ir+"#cannot-handle-mdx-estrees-without-createevaluater",n}function Wl(e){const t={};let n;for(n in e)cn.call(e,n)&&(t[Yl(n)]=e[n]);return t}function Yl(e){let t=e.replace(Il,Kl);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function Kl(e){return"-"+e.toLowerCase()}const hn={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"]},ql={};function Gl(e,t){const n=ql,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return Pr(e,r,i)}function Pr(e,t,n){if(Xl(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Lr(e.children,t,n)}return Array.isArray(e)?Lr(e,t,n):""}function Lr(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=Pr(e[i],t,n);return r.join("")}function Xl(e){return!!(e&&typeof e=="object")}const jr=document.createElement("i");function dn(e){const t="&"+e+";";jr.innerHTML=t;const n=jr.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function He(e,t,n,r){const i=e.length;let o=0,l;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)l=Array.from(r),l.unshift(t,n),e.splice(...l);else for(n&&e.splice(t,n);o<r.length;)l=r.slice(o,o+1e4),l.unshift(t,0),e.splice(...l),o+=1e4,t+=1e4}function Me(e,t){return e.length>0?(He(e,e.length,0,t),e):t}const Nr={}.hasOwnProperty;function Ql(e){const t={};let n=-1;for(;++n<e.length;)Jl(t,e[n]);return t}function Jl(e,t){let n;for(n in t){const i=(Nr.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];let l;if(o)for(l in o){Nr.call(i,l)||(i[l]=[]);const a=o[l];Zl(i[l],Array.isArray(a)?a:a?[a]:[])}}}function Zl(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);He(e,0,0,r)}function Dr(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function ut(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Ve=Xe(/[A-Za-z]/),je=Xe(/[\dA-Za-z]/),$l=Xe(/[#-'*+\--9=?A-Z^-~]/);function mn(e){return e!==null&&(e<32||e===127)}const gn=Xe(/\d/),ea=Xe(/[\dA-Fa-f]/),ta=Xe(/[!-/:-@[-`{-~]/);function D(e){return e!==null&&e<-2}function Ae(e){return e!==null&&(e<0||e===32)}function Z(e){return e===-2||e===-1||e===32}const na=Xe(new RegExp("\\p{P}|\\p{S}","u")),ra=Xe(/\s/);function Xe(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function ct(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const o=e.charCodeAt(n);let l="";if(o===37&&je(e.charCodeAt(n+1))&&je(e.charCodeAt(n+2)))i=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(l=String.fromCharCode(o));else if(o>55295&&o<57344){const a=e.charCodeAt(n+1);o<56320&&a>56319&&a<57344?(l=String.fromCharCode(o,a),i=1):l="�"}else l=String.fromCharCode(o);l&&(t.push(e.slice(r,n),encodeURIComponent(l)),r=n+i+1,l=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function oe(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let o=0;return l;function l(u){return Z(u)?(e.enter(n),a(u)):t(u)}function a(u){return Z(u)&&o++<i?(e.consume(u),a):(e.exit(n),t(u))}}const ia={tokenize:oa};function oa(e){const t=e.attempt(this.parser.constructs.contentInitial,r,i);let n;return t;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),oe(e,t,"linePrefix")}function i(a){return e.enter("paragraph"),o(a)}function o(a){const u=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=u),n=u,l(a)}function l(a){if(a===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(a);return}return D(a)?(e.consume(a),e.exit("chunkText"),o):(e.consume(a),l)}}const la={tokenize:aa},Mr={tokenize:sa};function aa(e){const t=this,n=[];let r=0,i,o,l;return a;function a(S){if(r<n.length){const z=n[r];return t.containerState=z[1],e.attempt(z[0].continuation,u,f)(S)}return f(S)}function u(S){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&A();const z=t.events.length;let U=z,w;for(;U--;)if(t.events[U][0]==="exit"&&t.events[U][1].type==="chunkFlow"){w=t.events[U][1].end;break}k(r);let L=z;for(;L<t.events.length;)t.events[L][1].end={...w},L++;return He(t.events,U+1,0,t.events.slice(z)),t.events.length=L,f(S)}return a(S)}function f(S){if(r===n.length){if(!i)return h(S);if(i.currentConstruct&&i.currentConstruct.concrete)return y(S);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Mr,s,c)(S)}function s(S){return i&&A(),k(r),h(S)}function c(S){return t.parser.lazy[t.now().line]=r!==n.length,l=t.now().offset,y(S)}function h(S){return t.containerState={},e.attempt(Mr,p,y)(S)}function p(S){return r++,n.push([t.currentConstruct,t.containerState]),h(S)}function y(S){if(S===null){i&&A(),k(0),e.consume(S);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:o}),x(S)}function x(S){if(S===null){T(e.exit("chunkFlow"),!0),k(0),e.consume(S);return}return D(S)?(e.consume(S),T(e.exit("chunkFlow")),r=0,t.interrupt=void 0,a):(e.consume(S),x)}function T(S,z){const U=t.sliceStream(S);if(z&&U.push(null),S.previous=o,o&&(o.next=S),o=S,i.defineSkip(S.start),i.write(U),t.parser.lazy[S.start.line]){let w=i.events.length;for(;w--;)if(i.events[w][1].start.offset<l&&(!i.events[w][1].end||i.events[w][1].end.offset>l))return;const L=t.events.length;let Y=L,M,K;for(;Y--;)if(t.events[Y][0]==="exit"&&t.events[Y][1].type==="chunkFlow"){if(M){K=t.events[Y][1].end;break}M=!0}for(k(r),w=L;w<t.events.length;)t.events[w][1].end={...K},w++;He(t.events,Y+1,0,t.events.slice(L)),t.events.length=w}}function k(S){let z=n.length;for(;z-- >S;){const U=n[z];t.containerState=U[1],U[0].exit.call(t,e)}n.length=S}function A(){i.write([null]),o=void 0,i=void 0,t.containerState._closeFlow=void 0}}function sa(e,t,n){return oe(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Fr(e){if(e===null||Ae(e)||ra(e))return 1;if(na(e))return 2}function yn(e,t,n){const r=[];let i=-1;for(;++i<e.length;){const o=e[i].resolveAll;o&&!r.includes(o)&&(t=o(t,n),r.push(o))}return t}const xn={name:"attention",resolveAll:ua,tokenize:ca};function ua(e,t){let n=-1,r,i,o,l,a,u,f,s;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;u=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const c={...e[r][1].end},h={...e[n][1].start};zr(c,-u),zr(h,u),l={type:u>1?"strongSequence":"emphasisSequence",start:c,end:{...e[r][1].end}},a={type:u>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:h},o={type:u>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},i={type:u>1?"strong":"emphasis",start:{...l.start},end:{...a.end}},e[r][1].end={...l.start},e[n][1].start={...a.end},f=[],e[r][1].end.offset-e[r][1].start.offset&&(f=Me(f,[["enter",e[r][1],t],["exit",e[r][1],t]])),f=Me(f,[["enter",i,t],["enter",l,t],["exit",l,t],["enter",o,t]]),f=Me(f,yn(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),f=Me(f,[["exit",o,t],["enter",a,t],["exit",a,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(s=2,f=Me(f,[["enter",e[n][1],t],["exit",e[n][1],t]])):s=0,He(e,r-1,n-r+3,f),n=r+f.length-s-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function ca(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=Fr(r);let o;return l;function l(u){return o=u,e.enter("attentionSequence"),a(u)}function a(u){if(u===o)return e.consume(u),a;const f=e.exit("attentionSequence"),s=Fr(u),c=!s||s===2&&i||n.includes(u),h=!i||i===2&&s||n.includes(r);return f._open=!!(o===42?c:c&&(i||!h)),f._close=!!(o===42?h:h&&(s||!c)),t(u)}}function zr(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const fa={name:"autolink",tokenize:pa};function pa(e,t,n){let r=0;return i;function i(p){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o}function o(p){return Ve(p)?(e.consume(p),l):p===64?n(p):f(p)}function l(p){return p===43||p===45||p===46||je(p)?(r=1,a(p)):f(p)}function a(p){return p===58?(e.consume(p),r=0,u):(p===43||p===45||p===46||je(p))&&r++<32?(e.consume(p),a):(r=0,f(p))}function u(p){return p===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),t):p===null||p===32||p===60||mn(p)?n(p):(e.consume(p),u)}function f(p){return p===64?(e.consume(p),s):$l(p)?(e.consume(p),f):n(p)}function s(p){return je(p)?c(p):n(p)}function c(p){return p===46?(e.consume(p),r=0,s):p===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),t):h(p)}function h(p){if((p===45||je(p))&&r++<63){const y=p===45?h:c;return e.consume(p),y}return n(p)}}const Lt={partial:!0,tokenize:ha};function ha(e,t,n){return r;function r(o){return Z(o)?oe(e,i,"linePrefix")(o):i(o)}function i(o){return o===null||D(o)?t(o):n(o)}}const Br={continuation:{tokenize:ma},exit:ga,name:"blockQuote",tokenize:da};function da(e,t,n){const r=this;return i;function i(l){if(l===62){const a=r.containerState;return a.open||(e.enter("blockQuote",{_container:!0}),a.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(l),e.exit("blockQuoteMarker"),o}return n(l)}function o(l){return Z(l)?(e.enter("blockQuotePrefixWhitespace"),e.consume(l),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(l))}}function ma(e,t,n){const r=this;return i;function i(l){return Z(l)?oe(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l):o(l)}function o(l){return e.attempt(Br,t,n)(l)}}function ga(e){e.exit("blockQuote")}const Ur={name:"characterEscape",tokenize:ya};function ya(e,t,n){return r;function r(o){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(o),e.exit("escapeMarker"),i}function i(o){return ta(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(o)}}const Hr={name:"characterReference",tokenize:xa};function xa(e,t,n){const r=this;let i=0,o,l;return a;function a(c){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),u}function u(c){return c===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(c),e.exit("characterReferenceMarkerNumeric"),f):(e.enter("characterReferenceValue"),o=31,l=je,s(c))}function f(c){return c===88||c===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(c),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,l=ea,s):(e.enter("characterReferenceValue"),o=7,l=gn,s(c))}function s(c){if(c===59&&i){const h=e.exit("characterReferenceValue");return l===je&&!dn(r.sliceSerialize(h))?n(c):(e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return l(c)&&i++<o?(e.consume(c),s):n(c)}}const Vr={partial:!0,tokenize:wa},Wr={concrete:!0,name:"codeFenced",tokenize:ba};function ba(e,t,n){const r=this,i={partial:!0,tokenize:U};let o=0,l=0,a;return u;function u(w){return f(w)}function f(w){const L=r.events[r.events.length-1];return o=L&&L[1].type==="linePrefix"?L[2].sliceSerialize(L[1],!0).length:0,a=w,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),s(w)}function s(w){return w===a?(l++,e.consume(w),s):l<3?n(w):(e.exit("codeFencedFenceSequence"),Z(w)?oe(e,c,"whitespace")(w):c(w))}function c(w){return w===null||D(w)?(e.exit("codeFencedFence"),r.interrupt?t(w):e.check(Vr,x,z)(w)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),h(w))}function h(w){return w===null||D(w)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(w)):Z(w)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),oe(e,p,"whitespace")(w)):w===96&&w===a?n(w):(e.consume(w),h)}function p(w){return w===null||D(w)?c(w):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),y(w))}function y(w){return w===null||D(w)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(w)):w===96&&w===a?n(w):(e.consume(w),y)}function x(w){return e.attempt(i,z,T)(w)}function T(w){return e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),k}function k(w){return o>0&&Z(w)?oe(e,A,"linePrefix",o+1)(w):A(w)}function A(w){return w===null||D(w)?e.check(Vr,x,z)(w):(e.enter("codeFlowValue"),S(w))}function S(w){return w===null||D(w)?(e.exit("codeFlowValue"),A(w)):(e.consume(w),S)}function z(w){return e.exit("codeFenced"),t(w)}function U(w,L,Y){let M=0;return K;function K(H){return w.enter("lineEnding"),w.consume(H),w.exit("lineEnding"),O}function O(H){return w.enter("codeFencedFence"),Z(H)?oe(w,P,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(H):P(H)}function P(H){return H===a?(w.enter("codeFencedFenceSequence"),$(H)):Y(H)}function $(H){return H===a?(M++,w.consume(H),$):M>=l?(w.exit("codeFencedFenceSequence"),Z(H)?oe(w,G,"whitespace")(H):G(H)):Y(H)}function G(H){return H===null||D(H)?(w.exit("codeFencedFence"),L(H)):Y(H)}}}function wa(e,t,n){const r=this;return i;function i(l){return l===null?n(l):(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),o)}function o(l){return r.parser.lazy[r.now().line]?n(l):t(l)}}const bn={name:"codeIndented",tokenize:Sa},ka={partial:!0,tokenize:va};function Sa(e,t,n){const r=this;return i;function i(f){return e.enter("codeIndented"),oe(e,o,"linePrefix",5)(f)}function o(f){const s=r.events[r.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?l(f):n(f)}function l(f){return f===null?u(f):D(f)?e.attempt(ka,l,u)(f):(e.enter("codeFlowValue"),a(f))}function a(f){return f===null||D(f)?(e.exit("codeFlowValue"),l(f)):(e.consume(f),a)}function u(f){return e.exit("codeIndented"),t(f)}}function va(e,t,n){const r=this;return i;function i(l){return r.parser.lazy[r.now().line]?n(l):D(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),i):oe(e,o,"linePrefix",5)(l)}function o(l){const a=r.events[r.events.length-1];return a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?t(l):D(l)?i(l):n(l)}}const Ea={name:"codeText",previous:_a,resolve:Ca,tokenize:Ta};function Ca(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(i=r):(r===t||e[r][1].type==="lineEnding")&&(e[i][1].type="codeTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function _a(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Ta(e,t,n){let r=0,i,o;return l;function l(c){return e.enter("codeText"),e.enter("codeTextSequence"),a(c)}function a(c){return c===96?(e.consume(c),r++,a):(e.exit("codeTextSequence"),u(c))}function u(c){return c===null?n(c):c===32?(e.enter("space"),e.consume(c),e.exit("space"),u):c===96?(o=e.enter("codeTextSequence"),i=0,s(c)):D(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),u):(e.enter("codeTextData"),f(c))}function f(c){return c===null||c===32||c===96||D(c)?(e.exit("codeTextData"),u(c)):(e.consume(c),f)}function s(c){return c===96?(e.consume(c),i++,s):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(c)):(o.type="codeTextData",f(c))}}class Ia{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const i=n||0;this.setCursor(Math.trunc(t));const o=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&St(this.left,r),o.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),St(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),St(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);St(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);St(this.left,n.reverse())}}}function St(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 Yr(e){const t={};let n=-1,r,i,o,l,a,u,f;const s=new Ia(e);for(;++n<s.length;){for(;n in t;)n=t[n];if(r=s.get(n),n&&r[1].type==="chunkFlow"&&s.get(n-1)[1].type==="listItemPrefix"&&(u=r[1]._tokenizer.events,o=0,o<u.length&&u[o][1].type==="lineEndingBlank"&&(o+=2),o<u.length&&u[o][1].type==="content"))for(;++o<u.length&&u[o][1].type!=="content";)u[o][1].type==="chunkText"&&(u[o][1]._isInFirstContentOfListItem=!0,o++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,Aa(s,n)),n=t[n],f=!0);else if(r[1]._container){for(o=n,i=void 0;o--;)if(l=s.get(o),l[1].type==="lineEnding"||l[1].type==="lineEndingBlank")l[0]==="enter"&&(i&&(s.get(i)[1].type="lineEndingBlank"),l[1].type="lineEnding",i=o);else if(!(l[1].type==="linePrefix"||l[1].type==="listItemIndent"))break;i&&(r[1].end={...s.get(i)[1].start},a=s.slice(i,n),a.unshift(r),s.splice(i,n-i+1,a))}}return He(e,0,Number.POSITIVE_INFINITY,s.slice(0)),!f}function Aa(e,t){const n=e.get(t)[1],r=e.get(t)[2];let i=t-1;const o=[];let l=n._tokenizer;l||(l=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(l._contentTypeTextTrailing=!0));const a=l.events,u=[],f={};let s,c,h=-1,p=n,y=0,x=0;const T=[x];for(;p;){for(;e.get(++i)[1]!==p;);o.push(i),p._tokenizer||(s=r.sliceStream(p),p.next||s.push(null),c&&l.defineSkip(p.start),p._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=!0),l.write(s),p._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=void 0)),c=p,p=p.next}for(p=n;++h<a.length;)a[h][0]==="exit"&&a[h-1][0]==="enter"&&a[h][1].type===a[h-1][1].type&&a[h][1].start.line!==a[h][1].end.line&&(x=h+1,T.push(x),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(l.events=[],p?(p._tokenizer=void 0,p.previous=void 0):T.pop(),h=T.length;h--;){const k=a.slice(T[h],T[h+1]),A=o.pop();u.push([A,A+k.length-1]),e.splice(A,2,k)}for(u.reverse(),h=-1;++h<u.length;)f[y+u[h][0]]=y+u[h][1],y+=u[h][1]-u[h][0]-1;return f}const Ra={resolve:Pa,tokenize:La},Oa={partial:!0,tokenize:ja};function Pa(e){return Yr(e),e}function La(e,t){let n;return r;function r(a){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),i(a)}function i(a){return a===null?o(a):D(a)?e.check(Oa,l,o)(a):(e.consume(a),i)}function o(a){return e.exit("chunkContent"),e.exit("content"),t(a)}function l(a){return e.consume(a),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,i}}function ja(e,t,n){const r=this;return i;function i(l){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),oe(e,o,"linePrefix")}function o(l){if(l===null||D(l))return n(l);const a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?t(l):e.interrupt(r.parser.constructs.flow,n,t)(l)}}function Kr(e,t,n,r,i,o,l,a,u){const f=u||Number.POSITIVE_INFINITY;let s=0;return c;function c(k){return k===60?(e.enter(r),e.enter(i),e.enter(o),e.consume(k),e.exit(o),h):k===null||k===32||k===41||mn(k)?n(k):(e.enter(r),e.enter(l),e.enter(a),e.enter("chunkString",{contentType:"string"}),x(k))}function h(k){return k===62?(e.enter(o),e.consume(k),e.exit(o),e.exit(i),e.exit(r),t):(e.enter(a),e.enter("chunkString",{contentType:"string"}),p(k))}function p(k){return k===62?(e.exit("chunkString"),e.exit(a),h(k)):k===null||k===60||D(k)?n(k):(e.consume(k),k===92?y:p)}function y(k){return k===60||k===62||k===92?(e.consume(k),p):p(k)}function x(k){return!s&&(k===null||k===41||Ae(k))?(e.exit("chunkString"),e.exit(a),e.exit(l),e.exit(r),t(k)):s<f&&k===40?(e.consume(k),s++,x):k===41?(e.consume(k),s--,x):k===null||k===32||k===40||mn(k)?n(k):(e.consume(k),k===92?T:x)}function T(k){return k===40||k===41||k===92?(e.consume(k),x):x(k)}}function qr(e,t,n,r,i,o){const l=this;let a=0,u;return f;function f(p){return e.enter(r),e.enter(i),e.consume(p),e.exit(i),e.enter(o),s}function s(p){return a>999||p===null||p===91||p===93&&!u||p===94&&!a&&"_hiddenFootnoteSupport"in l.parser.constructs?n(p):p===93?(e.exit(o),e.enter(i),e.consume(p),e.exit(i),e.exit(r),t):D(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),s):(e.enter("chunkString",{contentType:"string"}),c(p))}function c(p){return p===null||p===91||p===93||D(p)||a++>999?(e.exit("chunkString"),s(p)):(e.consume(p),u||(u=!Z(p)),p===92?h:c)}function h(p){return p===91||p===92||p===93?(e.consume(p),a++,c):c(p)}}function Gr(e,t,n,r,i,o){let l;return a;function a(h){return h===34||h===39||h===40?(e.enter(r),e.enter(i),e.consume(h),e.exit(i),l=h===40?41:h,u):n(h)}function u(h){return h===l?(e.enter(i),e.consume(h),e.exit(i),e.exit(r),t):(e.enter(o),f(h))}function f(h){return h===l?(e.exit(o),u(l)):h===null?n(h):D(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),oe(e,f,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),s(h))}function s(h){return h===l||h===null||D(h)?(e.exit("chunkString"),f(h)):(e.consume(h),h===92?c:s)}function c(h){return h===l||h===92?(e.consume(h),s):s(h)}}function vt(e,t){let n;return r;function r(i){return D(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):Z(i)?oe(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const Na={name:"definition",tokenize:Ma},Da={partial:!0,tokenize:Fa};function Ma(e,t,n){const r=this;let i;return o;function o(p){return e.enter("definition"),l(p)}function l(p){return qr.call(r,e,a,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function a(p){return i=ut(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),u):n(p)}function u(p){return Ae(p)?vt(e,f)(p):f(p)}function f(p){return Kr(e,s,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function s(p){return e.attempt(Da,c,c)(p)}function c(p){return Z(p)?oe(e,h,"whitespace")(p):h(p)}function h(p){return p===null||D(p)?(e.exit("definition"),r.parser.defined.push(i),t(p)):n(p)}}function Fa(e,t,n){return r;function r(a){return Ae(a)?vt(e,i)(a):n(a)}function i(a){return Gr(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function o(a){return Z(a)?oe(e,l,"whitespace")(a):l(a)}function l(a){return a===null||D(a)?t(a):n(a)}}const za={name:"hardBreakEscape",tokenize:Ba};function Ba(e,t,n){return r;function r(o){return e.enter("hardBreakEscape"),e.consume(o),i}function i(o){return D(o)?(e.exit("hardBreakEscape"),t(o)):n(o)}}const Ua={name:"headingAtx",resolve:Ha,tokenize:Va};function Ha(e,t){let n=e.length-2,r=3,i,o;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},o={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},He(e,r,n-r+1,[["enter",i,t],["enter",o,t],["exit",o,t],["exit",i,t]])),e}function Va(e,t,n){let r=0;return i;function i(s){return e.enter("atxHeading"),o(s)}function o(s){return e.enter("atxHeadingSequence"),l(s)}function l(s){return s===35&&r++<6?(e.consume(s),l):s===null||Ae(s)?(e.exit("atxHeadingSequence"),a(s)):n(s)}function a(s){return s===35?(e.enter("atxHeadingSequence"),u(s)):s===null||D(s)?(e.exit("atxHeading"),t(s)):Z(s)?oe(e,a,"whitespace")(s):(e.enter("atxHeadingText"),f(s))}function u(s){return s===35?(e.consume(s),u):(e.exit("atxHeadingSequence"),a(s))}function f(s){return s===null||s===35||Ae(s)?(e.exit("atxHeadingText"),a(s)):(e.consume(s),f)}}const Wa=["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"],Xr=["pre","script","style","textarea"],Ya={concrete:!0,name:"htmlFlow",resolveTo:Ga,tokenize:Xa},Ka={partial:!0,tokenize:Ja},qa={partial:!0,tokenize:Qa};function Ga(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(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}function Xa(e,t,n){const r=this;let i,o,l,a,u;return f;function f(g){return s(g)}function s(g){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(g),c}function c(g){return g===33?(e.consume(g),h):g===47?(e.consume(g),o=!0,x):g===63?(e.consume(g),i=3,r.interrupt?t:d):Ve(g)?(e.consume(g),l=String.fromCharCode(g),T):n(g)}function h(g){return g===45?(e.consume(g),i=2,p):g===91?(e.consume(g),i=5,a=0,y):Ve(g)?(e.consume(g),i=4,r.interrupt?t:d):n(g)}function p(g){return g===45?(e.consume(g),r.interrupt?t:d):n(g)}function y(g){const ye="CDATA[";return g===ye.charCodeAt(a++)?(e.consume(g),a===ye.length?r.interrupt?t:P:y):n(g)}function x(g){return Ve(g)?(e.consume(g),l=String.fromCharCode(g),T):n(g)}function T(g){if(g===null||g===47||g===62||Ae(g)){const ye=g===47,Fe=l.toLowerCase();return!ye&&!o&&Xr.includes(Fe)?(i=1,r.interrupt?t(g):P(g)):Wa.includes(l.toLowerCase())?(i=6,ye?(e.consume(g),k):r.interrupt?t(g):P(g)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(g):o?A(g):S(g))}return g===45||je(g)?(e.consume(g),l+=String.fromCharCode(g),T):n(g)}function k(g){return g===62?(e.consume(g),r.interrupt?t:P):n(g)}function A(g){return Z(g)?(e.consume(g),A):K(g)}function S(g){return g===47?(e.consume(g),K):g===58||g===95||Ve(g)?(e.consume(g),z):Z(g)?(e.consume(g),S):K(g)}function z(g){return g===45||g===46||g===58||g===95||je(g)?(e.consume(g),z):U(g)}function U(g){return g===61?(e.consume(g),w):Z(g)?(e.consume(g),U):S(g)}function w(g){return g===null||g===60||g===61||g===62||g===96?n(g):g===34||g===39?(e.consume(g),u=g,L):Z(g)?(e.consume(g),w):Y(g)}function L(g){return g===u?(e.consume(g),u=null,M):g===null||D(g)?n(g):(e.consume(g),L)}function Y(g){return g===null||g===34||g===39||g===47||g===60||g===61||g===62||g===96||Ae(g)?U(g):(e.consume(g),Y)}function M(g){return g===47||g===62||Z(g)?S(g):n(g)}function K(g){return g===62?(e.consume(g),O):n(g)}function O(g){return g===null||D(g)?P(g):Z(g)?(e.consume(g),O):n(g)}function P(g){return g===45&&i===2?(e.consume(g),le):g===60&&i===1?(e.consume(g),te):g===62&&i===4?(e.consume(g),ae):g===63&&i===3?(e.consume(g),d):g===93&&i===5?(e.consume(g),B):D(g)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(Ka,ve,$)(g)):g===null||D(g)?(e.exit("htmlFlowData"),$(g)):(e.consume(g),P)}function $(g){return e.check(qa,G,ve)(g)}function G(g){return e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),H}function H(g){return g===null||D(g)?$(g):(e.enter("htmlFlowData"),P(g))}function le(g){return g===45?(e.consume(g),d):P(g)}function te(g){return g===47?(e.consume(g),l="",ge):P(g)}function ge(g){if(g===62){const ye=l.toLowerCase();return Xr.includes(ye)?(e.consume(g),ae):P(g)}return Ve(g)&&l.length<8?(e.consume(g),l+=String.fromCharCode(g),ge):P(g)}function B(g){return g===93?(e.consume(g),d):P(g)}function d(g){return g===62?(e.consume(g),ae):g===45&&i===2?(e.consume(g),d):P(g)}function ae(g){return g===null||D(g)?(e.exit("htmlFlowData"),ve(g)):(e.consume(g),ae)}function ve(g){return e.exit("htmlFlow"),t(g)}}function Qa(e,t,n){const r=this;return i;function i(l){return D(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),o):n(l)}function o(l){return r.parser.lazy[r.now().line]?n(l):t(l)}}function Ja(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(Lt,t,n)}}const Za={name:"htmlText",tokenize:$a};function $a(e,t,n){const r=this;let i,o,l;return a;function a(d){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(d),u}function u(d){return d===33?(e.consume(d),f):d===47?(e.consume(d),U):d===63?(e.consume(d),S):Ve(d)?(e.consume(d),Y):n(d)}function f(d){return d===45?(e.consume(d),s):d===91?(e.consume(d),o=0,y):Ve(d)?(e.consume(d),A):n(d)}function s(d){return d===45?(e.consume(d),p):n(d)}function c(d){return d===null?n(d):d===45?(e.consume(d),h):D(d)?(l=c,te(d)):(e.consume(d),c)}function h(d){return d===45?(e.consume(d),p):c(d)}function p(d){return d===62?le(d):d===45?h(d):c(d)}function y(d){const ae="CDATA[";return d===ae.charCodeAt(o++)?(e.consume(d),o===ae.length?x:y):n(d)}function x(d){return d===null?n(d):d===93?(e.consume(d),T):D(d)?(l=x,te(d)):(e.consume(d),x)}function T(d){return d===93?(e.consume(d),k):x(d)}function k(d){return d===62?le(d):d===93?(e.consume(d),k):x(d)}function A(d){return d===null||d===62?le(d):D(d)?(l=A,te(d)):(e.consume(d),A)}function S(d){return d===null?n(d):d===63?(e.consume(d),z):D(d)?(l=S,te(d)):(e.consume(d),S)}function z(d){return d===62?le(d):S(d)}function U(d){return Ve(d)?(e.consume(d),w):n(d)}function w(d){return d===45||je(d)?(e.consume(d),w):L(d)}function L(d){return D(d)?(l=L,te(d)):Z(d)?(e.consume(d),L):le(d)}function Y(d){return d===45||je(d)?(e.consume(d),Y):d===47||d===62||Ae(d)?M(d):n(d)}function M(d){return d===47?(e.consume(d),le):d===58||d===95||Ve(d)?(e.consume(d),K):D(d)?(l=M,te(d)):Z(d)?(e.consume(d),M):le(d)}function K(d){return d===45||d===46||d===58||d===95||je(d)?(e.consume(d),K):O(d)}function O(d){return d===61?(e.consume(d),P):D(d)?(l=O,te(d)):Z(d)?(e.consume(d),O):M(d)}function P(d){return d===null||d===60||d===61||d===62||d===96?n(d):d===34||d===39?(e.consume(d),i=d,$):D(d)?(l=P,te(d)):Z(d)?(e.consume(d),P):(e.consume(d),G)}function $(d){return d===i?(e.consume(d),i=void 0,H):d===null?n(d):D(d)?(l=$,te(d)):(e.consume(d),$)}function G(d){return d===null||d===34||d===39||d===60||d===61||d===96?n(d):d===47||d===62||Ae(d)?M(d):(e.consume(d),G)}function H(d){return d===47||d===62||Ae(d)?M(d):n(d)}function le(d){return d===62?(e.consume(d),e.exit("htmlTextData"),e.exit("htmlText"),t):n(d)}function te(d){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),ge}function ge(d){return Z(d)?oe(e,B,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(d):B(d)}function B(d){return e.enter("htmlTextData"),l(d)}}const wn={name:"labelEnd",resolveAll:rs,resolveTo:is,tokenize:os},es={tokenize:ls},ts={tokenize:as},ns={tokenize:ss};function rs(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const i=r.type==="labelImage"?4:2;r.type="data",t+=i}}return e.length!==n.length&&He(e,0,e.length,n),e}function is(e,t){let n=e.length,r=0,i,o,l,a;for(;n--;)if(i=e[n][1],o){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[n][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(l){if(e[n][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(o=n,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(l=n);const u={type:e[o][1].type==="labelLink"?"link":"image",start:{...e[o][1].start},end:{...e[e.length-1][1].end}},f={type:"label",start:{...e[o][1].start},end:{...e[l][1].end}},s={type:"labelText",start:{...e[o+r+2][1].end},end:{...e[l-2][1].start}};return a=[["enter",u,t],["enter",f,t]],a=Me(a,e.slice(o+1,o+r+3)),a=Me(a,[["enter",s,t]]),a=Me(a,yn(t.parser.constructs.insideSpan.null,e.slice(o+r+4,l-3),t)),a=Me(a,[["exit",s,t],e[l-2],e[l-1],["exit",f,t]]),a=Me(a,e.slice(l+1)),a=Me(a,[["exit",u,t]]),He(e,o,e.length,a),e}function os(e,t,n){const r=this;let i=r.events.length,o,l;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){o=r.events[i][1];break}return a;function a(h){return o?o._inactive?c(h):(l=r.parser.defined.includes(ut(r.sliceSerialize({start:o.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(h),e.exit("labelMarker"),e.exit("labelEnd"),u):n(h)}function u(h){return h===40?e.attempt(es,s,l?s:c)(h):h===91?e.attempt(ts,s,l?f:c)(h):l?s(h):c(h)}function f(h){return e.attempt(ns,s,c)(h)}function s(h){return t(h)}function c(h){return o._balanced=!0,n(h)}}function ls(e,t,n){return r;function r(c){return e.enter("resource"),e.enter("resourceMarker"),e.consume(c),e.exit("resourceMarker"),i}function i(c){return Ae(c)?vt(e,o)(c):o(c)}function o(c){return c===41?s(c):Kr(e,l,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(c)}function l(c){return Ae(c)?vt(e,u)(c):s(c)}function a(c){return n(c)}function u(c){return c===34||c===39||c===40?Gr(e,f,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(c):s(c)}function f(c){return Ae(c)?vt(e,s)(c):s(c)}function s(c){return c===41?(e.enter("resourceMarker"),e.consume(c),e.exit("resourceMarker"),e.exit("resource"),t):n(c)}}function as(e,t,n){const r=this;return i;function i(a){return qr.call(r,e,o,l,"reference","referenceMarker","referenceString")(a)}function o(a){return r.parser.defined.includes(ut(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(a):n(a)}function l(a){return n(a)}}function ss(e,t,n){return r;function r(o){return e.enter("reference"),e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),i}function i(o){return o===93?(e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),e.exit("reference"),t):n(o)}}const us={name:"labelStartImage",resolveAll:wn.resolveAll,tokenize:cs};function cs(e,t,n){const r=this;return i;function i(a){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(a),e.exit("labelImageMarker"),o}function o(a){return a===91?(e.enter("labelMarker"),e.consume(a),e.exit("labelMarker"),e.exit("labelImage"),l):n(a)}function l(a){return a===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(a):t(a)}}const fs={name:"labelStartLink",resolveAll:wn.resolveAll,tokenize:ps};function ps(e,t,n){const r=this;return i;function i(l){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(l),e.exit("labelMarker"),e.exit("labelLink"),o}function o(l){return l===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(l):t(l)}}const kn={name:"lineEnding",tokenize:hs};function hs(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),oe(e,t,"linePrefix")}}const jt={name:"thematicBreak",tokenize:ds};function ds(e,t,n){let r=0,i;return o;function o(f){return e.enter("thematicBreak"),l(f)}function l(f){return i=f,a(f)}function a(f){return f===i?(e.enter("thematicBreakSequence"),u(f)):r>=3&&(f===null||D(f))?(e.exit("thematicBreak"),t(f)):n(f)}function u(f){return f===i?(e.consume(f),r++,u):(e.exit("thematicBreakSequence"),Z(f)?oe(e,a,"whitespace")(f):a(f))}}const Re={continuation:{tokenize:xs},exit:ws,name:"list",tokenize:ys},ms={partial:!0,tokenize:ks},gs={partial:!0,tokenize:bs};function ys(e,t,n){const r=this,i=r.events[r.events.length-1];let o=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,l=0;return a;function a(p){const y=r.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(y==="listUnordered"?!r.containerState.marker||p===r.containerState.marker:gn(p)){if(r.containerState.type||(r.containerState.type=y,e.enter(y,{_container:!0})),y==="listUnordered")return e.enter("listItemPrefix"),p===42||p===45?e.check(jt,n,f)(p):f(p);if(!r.interrupt||p===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),u(p)}return n(p)}function u(p){return gn(p)&&++l<10?(e.consume(p),u):(!r.interrupt||l<2)&&(r.containerState.marker?p===r.containerState.marker:p===41||p===46)?(e.exit("listItemValue"),f(p)):n(p)}function f(p){return e.enter("listItemMarker"),e.consume(p),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||p,e.check(Lt,r.interrupt?n:s,e.attempt(ms,h,c))}function s(p){return r.containerState.initialBlankLine=!0,o++,h(p)}function c(p){return Z(p)?(e.enter("listItemPrefixWhitespace"),e.consume(p),e.exit("listItemPrefixWhitespace"),h):n(p)}function h(p){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(p)}}function xs(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Lt,i,o);function i(a){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,oe(e,t,"listItemIndent",r.containerState.size+1)(a)}function o(a){return r.containerState.furtherBlankLines||!Z(a)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,l(a)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(gs,t,l)(a))}function l(a){return r.containerState._closeFlow=!0,r.interrupt=void 0,oe(e,e.attempt(Re,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function bs(e,t,n){const r=this;return oe(e,i,"listItemIndent",r.containerState.size+1);function i(o){const l=r.events[r.events.length-1];return l&&l[1].type==="listItemIndent"&&l[2].sliceSerialize(l[1],!0).length===r.containerState.size?t(o):n(o)}}function ws(e){e.exit(this.containerState.type)}function ks(e,t,n){const r=this;return oe(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(o){const l=r.events[r.events.length-1];return!Z(o)&&l&&l[1].type==="listItemPrefixWhitespace"?t(o):n(o)}}const Qr={name:"setextUnderline",resolveTo:Ss,tokenize:vs};function Ss(e,t){let n=e.length,r,i,o;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!o&&e[n][1].type==="definition"&&(o=n);const l={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",o?(e.splice(i,0,["enter",l,t]),e.splice(o+1,0,["exit",e[r][1],t]),e[r][1].end={...e[o][1].end}):e[r][1]=l,e.push(["exit",l,t]),e}function vs(e,t,n){const r=this;let i;return o;function o(f){let s=r.events.length,c;for(;s--;)if(r.events[s][1].type!=="lineEnding"&&r.events[s][1].type!=="linePrefix"&&r.events[s][1].type!=="content"){c=r.events[s][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||c)?(e.enter("setextHeadingLine"),i=f,l(f)):n(f)}function l(f){return e.enter("setextHeadingLineSequence"),a(f)}function a(f){return f===i?(e.consume(f),a):(e.exit("setextHeadingLineSequence"),Z(f)?oe(e,u,"lineSuffix")(f):u(f))}function u(f){return f===null||D(f)?(e.exit("setextHeadingLine"),t(f)):n(f)}}const Es={tokenize:Cs};function Cs(e){const t=this,n=e.attempt(Lt,r,e.attempt(this.parser.constructs.flowInitial,i,oe(e,e.attempt(this.parser.constructs.flow,i,e.attempt(Ra,i)),"linePrefix")));return n;function r(o){if(o===null){e.consume(o);return}return e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const _s={resolveAll:Zr()},Ts=Jr("string"),Is=Jr("text");function Jr(e){return{resolveAll:Zr(e==="text"?As:void 0),tokenize:t};function t(n){const r=this,i=this.parser.constructs[e],o=n.attempt(i,l,a);return l;function l(s){return f(s)?o(s):a(s)}function a(s){if(s===null){n.consume(s);return}return n.enter("data"),n.consume(s),u}function u(s){return f(s)?(n.exit("data"),o(s)):(n.consume(s),u)}function f(s){if(s===null)return!0;const c=i[s];let h=-1;if(c)for(;++h<c.length;){const p=c[h];if(!p.previous||p.previous.call(r,r.previous))return!0}return!1}}}function Zr(e){return t;function t(n,r){let i=-1,o;for(;++i<=n.length;)o===void 0?n[i]&&n[i][1].type==="data"&&(o=i,i++):(!n[i]||n[i][1].type!=="data")&&(i!==o+2&&(n[o][1].end=n[i-1][1].end,n.splice(o+2,i-o-2),i=o+2),o=void 0);return e?e(n,r):n}}function As(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],i=t.sliceStream(r);let o=i.length,l=-1,a=0,u;for(;o--;){const f=i[o];if(typeof f=="string"){for(l=f.length;f.charCodeAt(l-1)===32;)a++,l--;if(l)break;l=-1}else if(f===-2)u=!0,a++;else if(f!==-1){o++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(a=0),a){const f={type:n===e.length||u||a<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:o?l:r.start._bufferIndex+l,_index:r.start._index+o,line:r.end.line,column:r.end.column-a,offset:r.end.offset-a},end:{...r.end}};r.end={...f.start},r.start.offset===r.end.offset?Object.assign(r,f):(e.splice(n,0,["enter",f,t],["exit",f,t]),n+=2)}n++}return e}const Rs=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:{91:Na},disable:{null:[]},document:{42:Re,43:Re,45:Re,48:Re,49:Re,50:Re,51:Re,52:Re,53:Re,54:Re,55:Re,56:Re,57:Re,62:Br},flow:{35:Ua,42:jt,45:[Qr,jt],60:Ya,61:Qr,95:jt,96:Wr,126:Wr},flowInitial:{[-2]:bn,[-1]:bn,32:bn},insideSpan:{null:[xn,_s]},string:{38:Hr,92:Ur},text:{[-5]:kn,[-4]:kn,[-3]:kn,33:us,38:Hr,42:xn,60:[fa,Za],91:fs,92:[za,Ur],93:wn,95:xn,96:Ea}},Symbol.toStringTag,{value:"Module"}));function Os(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const i={},o=[];let l=[],a=[];const u={attempt:L(U),check:L(w),consume:A,enter:S,exit:z,interrupt:L(w,{interrupt:!0})},f={code:null,containerState:{},defineSkip:x,events:[],now:y,parser:e,previous:null,sliceSerialize:h,sliceStream:p,write:c};let s=t.tokenize.call(f,u);return t.resolveAll&&o.push(t),f;function c(O){return l=Me(l,O),T(),l[l.length-1]!==null?[]:(Y(t,0),f.events=yn(o,f.events,f),f.events)}function h(O,P){return Ls(p(O),P)}function p(O){return Ps(l,O)}function y(){const{_bufferIndex:O,_index:P,line:$,column:G,offset:H}=r;return{_bufferIndex:O,_index:P,line:$,column:G,offset:H}}function x(O){i[O.line]=O.column,K()}function T(){let O;for(;r._index<l.length;){const P=l[r._index];if(typeof P=="string")for(O=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===O&&r._bufferIndex<P.length;)k(P.charCodeAt(r._bufferIndex));else k(P)}}function k(O){s=s(O)}function A(O){D(O)?(r.line++,r.column=1,r.offset+=O===-3?2:1,K()):O!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===l[r._index].length&&(r._bufferIndex=-1,r._index++)),f.previous=O}function S(O,P){const $=P||{};return $.type=O,$.start=y(),f.events.push(["enter",$,f]),a.push($),$}function z(O){const P=a.pop();return P.end=y(),f.events.push(["exit",P,f]),P}function U(O,P){Y(O,P.from)}function w(O,P){P.restore()}function L(O,P){return $;function $(G,H,le){let te,ge,B,d;return Array.isArray(G)?ve(G):"tokenize"in G?ve([G]):ae(G);function ae(se){return Be;function Be(Ee){const Ne=Ee!==null&&se[Ee],de=Ee!==null&&se.null,De=[...Array.isArray(Ne)?Ne:Ne?[Ne]:[],...Array.isArray(de)?de:de?[de]:[]];return ve(De)(Ee)}}function ve(se){return te=se,ge=0,se.length===0?le:g(se[ge])}function g(se){return Be;function Be(Ee){return d=M(),B=se,se.partial||(f.currentConstruct=se),se.name&&f.parser.constructs.disable.null.includes(se.name)?Fe():se.tokenize.call(P?Object.assign(Object.create(f),P):f,u,ye,Fe)(Ee)}}function ye(se){return O(B,d),H}function Fe(se){return d.restore(),++ge<te.length?g(te[ge]):le}}}function Y(O,P){O.resolveAll&&!o.includes(O)&&o.push(O),O.resolve&&He(f.events,P,f.events.length-P,O.resolve(f.events.slice(P),f)),O.resolveTo&&(f.events=O.resolveTo(f.events,f))}function M(){const O=y(),P=f.previous,$=f.currentConstruct,G=f.events.length,H=Array.from(a);return{from:G,restore:le};function le(){r=O,f.previous=P,f.currentConstruct=$,f.events.length=G,a=H,K()}}function K(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function Ps(e,t){const n=t.start._index,r=t.start._bufferIndex,i=t.end._index,o=t.end._bufferIndex;let l;if(n===i)l=[e[n].slice(r,o)];else{if(l=e.slice(n,i),r>-1){const a=l[0];typeof a=="string"?l[0]=a.slice(r):l.shift()}o>0&&l.push(e[i].slice(0,o))}return l}function Ls(e,t){let n=-1;const r=[];let i;for(;++n<e.length;){const o=e[n];let l;if(typeof o=="string")l=o;else switch(o){case-5:{l="\r";break}case-4:{l=`
145
- `;break}case-3:{l=`\r
146
- `;break}case-2:{l=t?" ":" ";break}case-1:{if(!t&&i)continue;l=" ";break}default:l=String.fromCharCode(o)}i=o===-2,r.push(l)}return r.join("")}function js(e){const r={constructs:Ql([Rs,...(e||{}).extensions||[]]),content:i(ia),defined:[],document:i(la),flow:i(Es),lazy:{},string:i(Ts),text:i(Is)};return r;function i(o){return l;function l(a){return Os(r,o,a)}}}function Ns(e){for(;!Yr(e););return e}const $r=/[\0\t\n\r]/g;function Ds(){let e=1,t="",n=!0,r;return i;function i(o,l,a){const u=[];let f,s,c,h,p;for(o=t+(typeof o=="string"?o.toString():new TextDecoder(l||void 0).decode(o)),c=0,t="",n&&(o.charCodeAt(0)===65279&&c++,n=void 0);c<o.length;){if($r.lastIndex=c,f=$r.exec(o),h=f&&f.index!==void 0?f.index:o.length,p=o.charCodeAt(h),!f){t=o.slice(c);break}if(p===10&&c===h&&r)u.push(-3),r=void 0;else switch(r&&(u.push(-5),r=void 0),c<h&&(u.push(o.slice(c,h)),e+=h-c),p){case 0:{u.push(65533),e++;break}case 9:{for(s=Math.ceil(e/4)*4,u.push(-2);e++<s;)u.push(-1);break}case 10:{u.push(-4),e=1;break}default:r=!0,e=1}c=h+1}return a&&(r&&u.push(-5),t&&u.push(t),u.push(null)),u}}const Ms=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Fs(e){return e.replace(Ms,zs)}function zs(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),o=i===120||i===88;return Dr(n.slice(o?2:1),o?16:10)}return dn(n)||e}const ei={}.hasOwnProperty;function Bs(e,t,n){return typeof t!="string"&&(n=t,t=void 0),Us(n)(Ns(js(n).document().write(Ds()(e,t,!0))))}function Us(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(ue),autolinkProtocol:M,autolinkEmail:M,atxHeading:o(it),blockQuote:o(de),characterEscape:M,characterReference:M,codeFenced:o(De),codeFencedFenceInfo:l,codeFencedFenceMeta:l,codeIndented:o(De,l),codeText:o(It,l),codeTextData:M,data:M,codeFlowValue:M,definition:o(dt),definitionDestinationString:l,definitionLabelString:l,definitionTitleString:l,emphasis:o(At),hardBreakEscape:o(qe),hardBreakTrailing:o(qe),htmlFlow:o(R,l),htmlFlowData:M,htmlText:o(R,l),htmlTextData:M,image:o(X),label:l,link:o(ue),listItem:o(Oe),listItemValue:h,listOrdered:o(Se,c),listUnordered:o(Se),paragraph:o(Ce),reference:g,referenceString:l,resourceDestinationString:l,resourceTitleString:l,setextHeading:o(it),strong:o(ot),thematicBreak:o(Ze)},exit:{atxHeading:u(),atxHeadingSequence:U,autolink:u(),autolinkEmail:Ne,autolinkProtocol:Ee,blockQuote:u(),characterEscapeValue:K,characterReferenceMarkerHexadecimal:Fe,characterReferenceMarkerNumeric:Fe,characterReferenceValue:se,characterReference:Be,codeFenced:u(T),codeFencedFence:x,codeFencedFenceInfo:p,codeFencedFenceMeta:y,codeFlowValue:K,codeIndented:u(k),codeText:u(H),codeTextData:K,data:K,definition:u(),definitionDestinationString:z,definitionLabelString:A,definitionTitleString:S,emphasis:u(),hardBreakEscape:u(P),hardBreakTrailing:u(P),htmlFlow:u($),htmlFlowData:K,htmlText:u(G),htmlTextData:K,image:u(te),label:B,labelText:ge,lineEnding:O,link:u(le),listItem:u(),listOrdered:u(),listUnordered:u(),paragraph:u(),referenceString:ye,resourceDestinationString:d,resourceTitleString:ae,resource:ve,setextHeading:u(Y),setextHeadingLineSequence:L,setextHeadingText:w,strong:u(),thematicBreak:u()}};ti(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(b){let _={type:"root",children:[]};const N={stack:[_],tokenStack:[],config:t,enter:a,exit:f,buffer:l,resume:s,data:n},V=[];let J=-1;for(;++J<b.length;)if(b[J][1].type==="listOrdered"||b[J][1].type==="listUnordered")if(b[J][0]==="enter")V.push(J);else{const xe=V.pop();J=i(b,xe,J)}for(J=-1;++J<b.length;){const xe=t[b[J][0]];ei.call(xe,b[J][1].type)&&xe[b[J][1].type].call(Object.assign({sliceSerialize:b[J][2].sliceSerialize},N),b[J][1])}if(N.tokenStack.length>0){const xe=N.tokenStack[N.tokenStack.length-1];(xe[1]||ni).call(N,void 0,xe[0])}for(_.position={start:Qe(b.length>0?b[0][1].start:{line:1,column:1,offset:0}),end:Qe(b.length>0?b[b.length-2][1].end:{line:1,column:1,offset:0})},J=-1;++J<t.transforms.length;)_=t.transforms[J](_)||_;return _}function i(b,_,N){let V=_-1,J=-1,xe=!1,ne,he,Ye,Ke;for(;++V<=N;){const be=b[V];switch(be[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{be[0]==="enter"?J++:J--,Ke=void 0;break}case"lineEndingBlank":{be[0]==="enter"&&(ne&&!Ke&&!J&&!Ye&&(Ye=V),Ke=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Ke=void 0}if(!J&&be[0]==="enter"&&be[1].type==="listItemPrefix"||J===-1&&be[0]==="exit"&&(be[1].type==="listUnordered"||be[1].type==="listOrdered")){if(ne){let $e=V;for(he=void 0;$e--;){const Ue=b[$e];if(Ue[1].type==="lineEnding"||Ue[1].type==="lineEndingBlank"){if(Ue[0]==="exit")continue;he&&(b[he][1].type="lineEndingBlank",xe=!0),Ue[1].type="lineEnding",he=$e}else if(!(Ue[1].type==="linePrefix"||Ue[1].type==="blockQuotePrefix"||Ue[1].type==="blockQuotePrefixWhitespace"||Ue[1].type==="blockQuoteMarker"||Ue[1].type==="listItemIndent"))break}Ye&&(!he||Ye<he)&&(ne._spread=!0),ne.end=Object.assign({},he?b[he][1].start:be[1].end),b.splice(he||V,0,["exit",ne,be[2]]),V++,N++}if(be[1].type==="listItemPrefix"){const $e={type:"listItem",_spread:!1,start:Object.assign({},be[1].start),end:void 0};ne=$e,b.splice(V,0,["enter",$e,be[2]]),V++,N++,Ye=void 0,Ke=!0}}}return b[_][1]._spread=xe,N}function o(b,_){return N;function N(V){a.call(this,b(V),V),_&&_.call(this,V)}}function l(){this.stack.push({type:"fragment",children:[]})}function a(b,_,N){this.stack[this.stack.length-1].children.push(b),this.stack.push(b),this.tokenStack.push([_,N||void 0]),b.position={start:Qe(_.start),end:void 0}}function u(b){return _;function _(N){b&&b.call(this,N),f.call(this,N)}}function f(b,_){const N=this.stack.pop(),V=this.tokenStack.pop();if(V)V[0].type!==b.type&&(_?_.call(this,b,V[0]):(V[1]||ni).call(this,b,V[0]));else throw new Error("Cannot close `"+b.type+"` ("+wt({start:b.start,end:b.end})+"): it’s not open");N.position.end=Qe(b.end)}function s(){return Gl(this.stack.pop())}function c(){this.data.expectingFirstListItemValue=!0}function h(b){if(this.data.expectingFirstListItemValue){const _=this.stack[this.stack.length-2];_.start=Number.parseInt(this.sliceSerialize(b),10),this.data.expectingFirstListItemValue=void 0}}function p(){const b=this.resume(),_=this.stack[this.stack.length-1];_.lang=b}function y(){const b=this.resume(),_=this.stack[this.stack.length-1];_.meta=b}function x(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function T(){const b=this.resume(),_=this.stack[this.stack.length-1];_.value=b.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function k(){const b=this.resume(),_=this.stack[this.stack.length-1];_.value=b.replace(/(\r?\n|\r)$/g,"")}function A(b){const _=this.resume(),N=this.stack[this.stack.length-1];N.label=_,N.identifier=ut(this.sliceSerialize(b)).toLowerCase()}function S(){const b=this.resume(),_=this.stack[this.stack.length-1];_.title=b}function z(){const b=this.resume(),_=this.stack[this.stack.length-1];_.url=b}function U(b){const _=this.stack[this.stack.length-1];if(!_.depth){const N=this.sliceSerialize(b).length;_.depth=N}}function w(){this.data.setextHeadingSlurpLineEnding=!0}function L(b){const _=this.stack[this.stack.length-1];_.depth=this.sliceSerialize(b).codePointAt(0)===61?1:2}function Y(){this.data.setextHeadingSlurpLineEnding=void 0}function M(b){const N=this.stack[this.stack.length-1].children;let V=N[N.length-1];(!V||V.type!=="text")&&(V=Ge(),V.position={start:Qe(b.start),end:void 0},N.push(V)),this.stack.push(V)}function K(b){const _=this.stack.pop();_.value+=this.sliceSerialize(b),_.position.end=Qe(b.end)}function O(b){const _=this.stack[this.stack.length-1];if(this.data.atHardBreak){const N=_.children[_.children.length-1];N.position.end=Qe(b.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(_.type)&&(M.call(this,b),K.call(this,b))}function P(){this.data.atHardBreak=!0}function $(){const b=this.resume(),_=this.stack[this.stack.length-1];_.value=b}function G(){const b=this.resume(),_=this.stack[this.stack.length-1];_.value=b}function H(){const b=this.resume(),_=this.stack[this.stack.length-1];_.value=b}function le(){const b=this.stack[this.stack.length-1];if(this.data.inReference){const _=this.data.referenceType||"shortcut";b.type+="Reference",b.referenceType=_,delete b.url,delete b.title}else delete b.identifier,delete b.label;this.data.referenceType=void 0}function te(){const b=this.stack[this.stack.length-1];if(this.data.inReference){const _=this.data.referenceType||"shortcut";b.type+="Reference",b.referenceType=_,delete b.url,delete b.title}else delete b.identifier,delete b.label;this.data.referenceType=void 0}function ge(b){const _=this.sliceSerialize(b),N=this.stack[this.stack.length-2];N.label=Fs(_),N.identifier=ut(_).toLowerCase()}function B(){const b=this.stack[this.stack.length-1],_=this.resume(),N=this.stack[this.stack.length-1];if(this.data.inReference=!0,N.type==="link"){const V=b.children;N.children=V}else N.alt=_}function d(){const b=this.resume(),_=this.stack[this.stack.length-1];_.url=b}function ae(){const b=this.resume(),_=this.stack[this.stack.length-1];_.title=b}function ve(){this.data.inReference=void 0}function g(){this.data.referenceType="collapsed"}function ye(b){const _=this.resume(),N=this.stack[this.stack.length-1];N.label=_,N.identifier=ut(this.sliceSerialize(b)).toLowerCase(),this.data.referenceType="full"}function Fe(b){this.data.characterReferenceType=b.type}function se(b){const _=this.sliceSerialize(b),N=this.data.characterReferenceType;let V;N?(V=Dr(_,N==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):V=dn(_);const J=this.stack[this.stack.length-1];J.value+=V}function Be(b){const _=this.stack.pop();_.position.end=Qe(b.end)}function Ee(b){K.call(this,b);const _=this.stack[this.stack.length-1];_.url=this.sliceSerialize(b)}function Ne(b){K.call(this,b);const _=this.stack[this.stack.length-1];_.url="mailto:"+this.sliceSerialize(b)}function de(){return{type:"blockquote",children:[]}}function De(){return{type:"code",lang:null,meta:null,value:""}}function It(){return{type:"inlineCode",value:""}}function dt(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function At(){return{type:"emphasis",children:[]}}function it(){return{type:"heading",depth:0,children:[]}}function qe(){return{type:"break"}}function R(){return{type:"html",value:""}}function X(){return{type:"image",title:null,url:"",alt:null}}function ue(){return{type:"link",title:null,url:"",children:[]}}function Se(b){return{type:"list",ordered:b.type==="listOrdered",start:null,spread:b._spread,children:[]}}function Oe(b){return{type:"listItem",spread:b._spread,checked:null,children:[]}}function Ce(){return{type:"paragraph",children:[]}}function ot(){return{type:"strong",children:[]}}function Ge(){return{type:"text",value:""}}function Ze(){return{type:"thematicBreak"}}}function Qe(e){return{line:e.line,column:e.column,offset:e.offset}}function ti(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?ti(e,r):Hs(e,r)}}function Hs(e,t){let n;for(n in t)if(ei.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function ni(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+wt({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+wt({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+wt({start:t.start,end:t.end})+") is still open")}function Vs(e){const t=this;t.parser=n;function n(r){return Bs(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function Ws(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function Ys(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
147
- `}]}function Ks(e,t){const n=t.value?t.value+`
148
- `:"",r={};t.lang&&(r.className=["language-"+t.lang]);let i={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(i.data={meta:t.meta}),e.patch(t,i),i=e.applyData(t,i),i={type:"element",tagName:"pre",properties:{},children:[i]},e.patch(t,i),i}function qs(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Gs(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Xs(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),i=ct(r.toLowerCase()),o=e.footnoteOrder.indexOf(r);let l,a=e.footnoteCounts.get(r);a===void 0?(a=0,e.footnoteOrder.push(r),l=e.footnoteOrder.length):l=o+1,a+=1,e.footnoteCounts.set(r,a);const u={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+i,id:n+"fnref-"+i+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(l)}]};e.patch(t,u);const f={type:"element",tagName:"sup",properties:{},children:[u]};return e.patch(t,f),e.applyData(t,f)}function Qs(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Js(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function ri(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const i=e.all(t),o=i[0];o&&o.type==="text"?o.value="["+o.value:i.unshift({type:"text",value:"["});const l=i[i.length-1];return l&&l.type==="text"?l.value+=r:i.push({type:"text",value:r}),i}function Zs(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return ri(e,t);const i={src:ct(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const o={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,o),e.applyData(t,o)}function $s(e,t){const n={src:ct(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function eu(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function tu(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return ri(e,t);const i={href:ct(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const o={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)}function nu(e,t){const n={href:ct(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function ru(e,t,n){const r=e.all(t),i=n?iu(n):ii(t),o={},l=[];if(typeof t.checked=="boolean"){const s=r[0];let c;s&&s.type==="element"&&s.tagName==="p"?c=s:(c={type:"element",tagName:"p",properties:{},children:[]},r.unshift(c)),c.children.length>0&&c.children.unshift({type:"text",value:" "}),c.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let a=-1;for(;++a<r.length;){const s=r[a];(i||a!==0||s.type!=="element"||s.tagName!=="p")&&l.push({type:"text",value:`
149
- `}),s.type==="element"&&s.tagName==="p"&&!i?l.push(...s.children):l.push(s)}const u=r[r.length-1];u&&(i||u.type!=="element"||u.tagName!=="p")&&l.push({type:"text",value:`
150
- `});const f={type:"element",tagName:"li",properties:o,children:l};return e.patch(t,f),e.applyData(t,f)}function iu(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=ii(n[r])}return t}function ii(e){const t=e.spread;return t??e.children.length>1}function ou(e,t){const n={},r=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i<r.length;){const l=r[i];if(l.type==="element"&&l.tagName==="li"&&l.properties&&Array.isArray(l.properties.className)&&l.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const o={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,o),e.applyData(t,o)}function lu(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function au(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function su(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function uu(e,t){const n=e.all(t),r=n.shift(),i=[];if(r){const l={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],l),i.push(l)}if(n.length>0){const l={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},a=sn(t.children[1]),u=Er(t.children[t.children.length-1]);a&&u&&(l.position={start:a,end:u}),i.push(l)}const o={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,o),e.applyData(t,o)}function cu(e,t,n){const r=n?n.children:void 0,o=(r?r.indexOf(t):1)===0?"th":"td",l=n&&n.type==="table"?n.align:void 0,a=l?l.length:t.children.length;let u=-1;const f=[];for(;++u<a;){const c=t.children[u],h={},p=l?l[u]:void 0;p&&(h.align=p);let y={type:"element",tagName:o,properties:h,children:[]};c&&(y.children=e.all(c),e.patch(c,y),y=e.applyData(c,y)),f.push(y)}const s={type:"element",tagName:"tr",properties:{},children:e.wrap(f,!0)};return e.patch(t,s),e.applyData(t,s)}function fu(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const oi=9,li=32;function pu(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),i=0;const o=[];for(;r;)o.push(ai(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return o.push(ai(t.slice(i),i>0,!1)),o.join("")}function ai(e,t,n){let r=0,i=e.length;if(t){let o=e.codePointAt(r);for(;o===oi||o===li;)r++,o=e.codePointAt(r)}if(n){let o=e.codePointAt(i-1);for(;o===oi||o===li;)i--,o=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function hu(e,t){const n={type:"text",value:pu(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function du(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const mu={blockquote:Ws,break:Ys,code:Ks,delete:qs,emphasis:Gs,footnoteReference:Xs,heading:Qs,html:Js,imageReference:Zs,image:$s,inlineCode:eu,linkReference:tu,link:nu,listItem:ru,list:ou,paragraph:lu,root:au,strong:su,table:uu,tableCell:fu,tableRow:cu,text:hu,thematicBreak:du,toml:Nt,yaml:Nt,definition:Nt,footnoteDefinition:Nt};function Nt(){}const si=-1,Dt=0,Et=1,Mt=2,Sn=3,vn=4,En=5,Cn=6,ui=7,ci=8,fi=typeof self=="object"?self:globalThis,gu=(e,t)=>{const n=(i,o)=>(e.set(o,i),i),r=i=>{if(e.has(i))return e.get(i);const[o,l]=t[i];switch(o){case Dt:case si:return n(l,i);case Et:{const a=n([],i);for(const u of l)a.push(r(u));return a}case Mt:{const a=n({},i);for(const[u,f]of l)a[r(u)]=r(f);return a}case Sn:return n(new Date(l),i);case vn:{const{source:a,flags:u}=l;return n(new RegExp(a,u),i)}case En:{const a=n(new Map,i);for(const[u,f]of l)a.set(r(u),r(f));return a}case Cn:{const a=n(new Set,i);for(const u of l)a.add(r(u));return a}case ui:{const{name:a,message:u}=l;return n(new fi[a](u),i)}case ci:return n(BigInt(l),i);case"BigInt":return n(Object(BigInt(l)),i);case"ArrayBuffer":return n(new Uint8Array(l).buffer,l);case"DataView":{const{buffer:a}=new Uint8Array(l);return n(new DataView(a),l)}}return n(new fi[o](l),i)};return r},pi=e=>gu(new Map,e)(0),ft="",{toString:yu}={},{keys:xu}=Object,Ct=e=>{const t=typeof e;if(t!=="object"||!e)return[Dt,t];const n=yu.call(e).slice(8,-1);switch(n){case"Array":return[Et,ft];case"Object":return[Mt,ft];case"Date":return[Sn,ft];case"RegExp":return[vn,ft];case"Map":return[En,ft];case"Set":return[Cn,ft];case"DataView":return[Et,n]}return n.includes("Array")?[Et,n]:n.includes("Error")?[ui,n]:[Mt,n]},Ft=([e,t])=>e===Dt&&(t==="function"||t==="symbol"),bu=(e,t,n,r)=>{const i=(l,a)=>{const u=r.push(l)-1;return n.set(a,u),u},o=l=>{if(n.has(l))return n.get(l);let[a,u]=Ct(l);switch(a){case Dt:{let s=l;switch(u){case"bigint":a=ci,s=l.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+u);s=null;break;case"undefined":return i([si],l)}return i([a,s],l)}case Et:{if(u){let h=l;return u==="DataView"?h=new Uint8Array(l.buffer):u==="ArrayBuffer"&&(h=new Uint8Array(l)),i([u,[...h]],l)}const s=[],c=i([a,s],l);for(const h of l)s.push(o(h));return c}case Mt:{if(u)switch(u){case"BigInt":return i([u,l.toString()],l);case"Boolean":case"Number":case"String":return i([u,l.valueOf()],l)}if(t&&"toJSON"in l)return o(l.toJSON());const s=[],c=i([a,s],l);for(const h of xu(l))(e||!Ft(Ct(l[h])))&&s.push([o(h),o(l[h])]);return c}case Sn:return i([a,l.toISOString()],l);case vn:{const{source:s,flags:c}=l;return i([a,{source:s,flags:c}],l)}case En:{const s=[],c=i([a,s],l);for(const[h,p]of l)(e||!(Ft(Ct(h))||Ft(Ct(p))))&&s.push([o(h),o(p)]);return c}case Cn:{const s=[],c=i([a,s],l);for(const h of l)(e||!Ft(Ct(h)))&&s.push(o(h));return c}}const{message:f}=l;return i([a,{name:u,message:f}],l)};return o},hi=(e,{json:t,lossy:n}={})=>{const r=[];return bu(!(t||n),!!t,new Map,r)(e),r},zt=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?pi(hi(e,t)):structuredClone(e):(e,t)=>pi(hi(e,t));function wu(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function ku(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function Su(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||wu,r=e.options.footnoteBackLabel||ku,i=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",l=e.options.footnoteLabelProperties||{className:["sr-only"]},a=[];let u=-1;for(;++u<e.footnoteOrder.length;){const f=e.footnoteById.get(e.footnoteOrder[u]);if(!f)continue;const s=e.all(f),c=String(f.identifier).toUpperCase(),h=ct(c.toLowerCase());let p=0;const y=[],x=e.footnoteCounts.get(c);for(;x!==void 0&&++p<=x;){y.length>0&&y.push({type:"text",value:" "});let A=typeof n=="string"?n:n(u,p);typeof A=="string"&&(A={type:"text",value:A}),y.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+h+(p>1?"-"+p:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(u,p),className:["data-footnote-backref"]},children:Array.isArray(A)?A:[A]})}const T=s[s.length-1];if(T&&T.type==="element"&&T.tagName==="p"){const A=T.children[T.children.length-1];A&&A.type==="text"?A.value+=" ":T.children.push({type:"text",value:" "}),T.children.push(...y)}else s.push(...y);const k={type:"element",tagName:"li",properties:{id:t+"fn-"+h},children:e.wrap(s,!0)};e.patch(f,k),a.push(k)}if(a.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...zt(l),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
151
- `},{type:"element",tagName:"ol",properties:{},children:e.wrap(a,!0)},{type:"text",value:`
152
- `}]}}const di=function(e){if(e==null)return _u;if(typeof e=="function")return Bt(e);if(typeof e=="object")return Array.isArray(e)?vu(e):Eu(e);if(typeof e=="string")return Cu(e);throw new Error("Expected function, string, or object as test")};function vu(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=di(e[n]);return Bt(r);function r(...i){let o=-1;for(;++o<t.length;)if(t[o].apply(this,i))return!0;return!1}}function Eu(e){const t=e;return Bt(n);function n(r){const i=r;let o;for(o in e)if(i[o]!==t[o])return!1;return!0}}function Cu(e){return Bt(t);function t(n){return n&&n.type===e}}function Bt(e){return t;function t(n,r,i){return!!(Tu(n)&&e.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}function _u(){return!0}function Tu(e){return e!==null&&typeof e=="object"&&"type"in e}function Nc(e){return e}const mi=[],Iu=!0,gi=!1,Au="skip";function Ru(e,t,n,r){let i;typeof t=="function"&&typeof n!="function"?(r=n,n=t):i=t;const o=di(i),l=r?-1:1;a(e,void 0,[])();function a(u,f,s){const c=u&&typeof u=="object"?u:{};if(typeof c.type=="string"){const p=typeof c.tagName=="string"?c.tagName:typeof c.name=="string"?c.name:void 0;Object.defineProperty(h,"name",{value:"node ("+(u.type+(p?"<"+p+">":""))+")"})}return h;function h(){let p=mi,y,x,T;if((!t||o(u,f,s[s.length-1]||void 0))&&(p=Ou(n(u,s)),p[0]===gi))return p;if("children"in u&&u.children){const k=u;if(k.children&&p[0]!==Au)for(x=(r?k.children.length:-1)+l,T=s.concat(k);x>-1&&x<k.children.length;){const A=k.children[x];if(y=a(A,x,T)(),y[0]===gi)return y;x=typeof y[1]=="number"?y[1]:x+l}}return p}}}function Ou(e){return Array.isArray(e)?e:typeof e=="number"?[Iu,e]:e==null?mi:[e]}function yi(e,t,n,r){let i,o,l;typeof t=="function"?(o=void 0,l=t,i=n):(o=t,l=n,i=r),Ru(e,o,a,i);function a(u,f){const s=f[f.length-1],c=s?s.children.indexOf(u):void 0;return l(u,c,s)}}const _n={}.hasOwnProperty,Pu={};function Lu(e,t){const n=t||Pu,r=new Map,i=new Map,o=new Map,l={...mu,...n.handlers},a={all:f,applyData:Nu,definitionById:r,footnoteById:i,footnoteCounts:o,footnoteOrder:[],handlers:l,one:u,options:n,patch:ju,wrap:Mu};return yi(e,function(s){if(s.type==="definition"||s.type==="footnoteDefinition"){const c=s.type==="definition"?r:i,h=String(s.identifier).toUpperCase();c.has(h)||c.set(h,s)}}),a;function u(s,c){const h=s.type,p=a.handlers[h];if(_n.call(a.handlers,h)&&p)return p(a,s,c);if(a.options.passThrough&&a.options.passThrough.includes(h)){if("children"in s){const{children:x,...T}=s,k=zt(T);return k.children=a.all(s),k}return zt(s)}return(a.options.unknownHandler||Du)(a,s,c)}function f(s){const c=[];if("children"in s){const h=s.children;let p=-1;for(;++p<h.length;){const y=a.one(h[p],s);if(y){if(p&&h[p-1].type==="break"&&(!Array.isArray(y)&&y.type==="text"&&(y.value=xi(y.value)),!Array.isArray(y)&&y.type==="element")){const x=y.children[0];x&&x.type==="text"&&(x.value=xi(x.value))}Array.isArray(y)?c.push(...y):c.push(y)}}}return c}}function ju(e,t){e.position&&(t.position=_l(e))}function Nu(e,t){let n=t;if(e&&e.data){const r=e.data.hName,i=e.data.hChildren,o=e.data.hProperties;if(typeof r=="string")if(n.type==="element")n.tagName=r;else{const l="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:l}}n.type==="element"&&o&&Object.assign(n.properties,zt(o)),"children"in n&&n.children&&i!==null&&i!==void 0&&(n.children=i)}return n}function Du(e,t){const n=t.data||{},r="value"in t&&!(_n.call(n,"hProperties")||_n.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)}function Mu(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:`
142
+ */return e.NODE_ENV!=="production"&&function(){function t(u,d){return u===d&&(u!==0||1/u===1/d)||u!==u&&d!==d}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var n=Y,r=ri(),i=typeof Object.is=="function"?Object.is:t,o=r.useSyncExternalStore,a=n.useRef,s=n.useEffect,l=n.useMemo,c=n.useDebugValue;Un.useSyncExternalStoreWithSelector=function(u,d,p,f,g){var m=a(null);if(m.current===null){var x={hasValue:!1,value:null};m.current=x}else x=m.current;m=l(function(){function T(P){if(!k){if(k=!0,C=P,P=f(P),g!==void 0&&x.hasValue){var F=x.value;if(g(F,P))return R=F}return R=P}if(F=R,i(C,P))return F;var $=f(P);return g!==void 0&&g(F,$)?(C=P,F):(C=P,R=$)}var k=!1,C,R,w=p===void 0?null:p;return[function(){return T(d())},w===null?void 0:function(){return T(w())}]},[d,p,f,g]);var E=o(u,m[0],m[1]);return s(function(){x.hasValue=!0,x.value=E},[E]),c(E),E},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}(),Un}var il={};il.NODE_ENV==="production"?Pn.exports=nl():Pn.exports=rl();var al=Pn.exports;const ol=an(al),oi={},{useDebugValue:sl}=Y,{useSyncExternalStoreWithSelector:ll}=ol;let si=!1;const cl=e=>e;function ul(e,t=cl,n){(oi?"production":void 0)!=="production"&&n&&!si&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),si=!0);const r=ll(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return sl(r),r}const li=e=>{(oi?"production":void 0)!=="production"&&typeof e!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const t=typeof e=="function"?Js(e):e,n=(r,i)=>ul(t,r,i);return Object.assign(n,t),n},dl=e=>e?li(e):li;let $n=null,ci=null,ui=null;const fl=(e,t=null,n=null)=>{if(!e||typeof e!="string")throw new Error("API URL must be a valid string");if(t!==null&&typeof t!="string")throw new Error("API key must be a valid string or null");if(n!==null&&typeof n!="string")throw new Error("Session ID must be a valid string or null");$n=e,ci=t,ui=n},pl=()=>{if(!$n)throw new Error("API URL not configured. Please call configureApi() with your server URL before using any API functions.");return $n},gl=()=>ci,hl=()=>ui,ml=(e,t={})=>{e.startsWith("https:");const r={Connection:"keep-alive","X-Request-ID":Date.now().toString(36)+Math.random().toString(36).substring(2)},i=gl();i&&(r["X-API-Key"]=i);const o=hl();return o&&(r["X-Session-ID"]=o),{...t,headers:{...t.headers,...r}}},bl=(e,t=!0)=>({jsonrpc:"2.0",method:"tools/call",params:{name:"chat",arguments:{messages:[{role:"user",content:e}],stream:t}},id:Date.now().toString(36)+Math.random().toString(36).substring(2)});async function*yl(e,t=!0){var n,r,i,o,a,s,l,c,u;try{const d=pl(),p=new AbortController,f=setTimeout(()=>p.abort(),6e4),g=await fetch(`${d}/v1/chat`,{...ml(d,{method:"POST",headers:{"Content-Type":"application/json",Accept:t?"text/event-stream":"application/json"},body:JSON.stringify(bl(e,t))}),signal:p.signal});if(clearTimeout(f),!g.ok){const k=await g.text();throw new Error(`Network response was not ok: ${g.status} ${k}`)}if(!t){const k=await g.json();if(k.error)throw new Error(`MCP Error: ${k.error.message}`);(o=(i=(r=(n=k.result)==null?void 0:n.output)==null?void 0:r.messages)==null?void 0:i[0])!=null&&o.content&&(yield{text:k.result.output.messages[0].content,done:!0});return}const m=(a=g.body)==null?void 0:a.getReader();if(!m)throw new Error("No reader available");const x=new TextDecoder;let E="",T="";try{for(;;){const{done:k,value:C}=await m.read();if(k)break;const R=x.decode(C,{stream:!0});E+=R;const w=E.split(`
143
+ `);E=w.pop()||"";for(const P of w)if(P.trim()&&P.startsWith("data: "))try{const F=P.slice(6).trim();if(F==="[DONE]"){yield{text:"",done:!0};break}const $=JSON.parse(F);if($.result){let S="";if($.result.type==="start")continue;if($.result.type==="chunk"&&$.result.chunk?S=$.result.chunk.content:$.result.type==="complete"&&((l=(s=$.result.output)==null?void 0:s.messages)!=null&&l[0])&&(S=$.result.output.messages[0].content),S){const z=di(S,T);z?(T+=z,yield{text:z,done:$.result.type==="complete"}):$.result.type==="complete"&&(yield{text:"",done:!0})}}}catch(F){console.warn("Error parsing JSON chunk:",P,"Error:",F)}}}finally{m.releaseLock()}if(E&&E.startsWith("data: "))try{const k=E.slice(6).trim();if(k!=="[DONE]"){const C=JSON.parse(k);if((u=(c=C.result)==null?void 0:c.chunk)!=null&&u.content){const R=di(C.result.chunk.content,T);R&&(yield{text:R,done:C.result.type==="complete"})}}}catch(k){console.warn("Error parsing final JSON buffer:",E,"Error:",k)}}catch(d){d.name==="AbortError"?yield{text:"Connection timed out. Please check if the server is running.",done:!0}:d.name==="TypeError"&&d.message.includes("Failed to fetch")?yield{text:"Could not connect to the server. Please check if the server is running.",done:!0}:yield{text:`Error: ${d.message}`,done:!0}}}function di(e,t){if(!t)return e;if(t.endsWith(e))return"";if(e.length>t.length){if(e.startsWith(t))return e.slice(t.length);let n=0;const r=Math.min(t.length,e.length);for(;n<r&&t[n]===e[n];)n++;if(n>t.length/2)return e.slice(n)}return e}function fi(){try{if(typeof window<"u"&&window.CHATBOT_API_URL&&window.CHATBOT_API_KEY){const e=El();return fl(window.CHATBOT_API_URL,window.CHATBOT_API_KEY,e),!0}}catch(e){console.error("Failed to configure API:",e)}return!1}function El(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){const t=Math.random()*16|0;return(e==="x"?t:t&3|8).toString(16)})}fi();const Hn=dl((e,t)=>({messages:[],isLoading:!1,error:null,voiceEnabled:!1,toggleVoice:()=>e(n=>({voiceEnabled:!n.voiceEnabled})),sendMessage:async n=>{try{if(!fi())throw new Error("API URL not configured");e(i=>({messages:[...i.messages,{role:"user",content:n}],isLoading:!0,error:null})),e(i=>({messages:[...i.messages,{role:"assistant",content:""}]}));let r=!1;try{for await(const i of yl(n,t().voiceEnabled))i.text&&(t().appendToLastMessage(i.text),r=!0);r||t().appendToLastMessage("No response received from the server. Please try again later.")}catch(i){console.error("Chat API error:",i),t().appendToLastMessage("Sorry, there was an error processing your request.")}e({isLoading:!1})}catch(r){console.error("Chat store error:",r),e(i=>({isLoading:!1,error:`Failed to send message: ${r instanceof Error?r.message:"Unknown error"}`}))}},appendToLastMessage:n=>{e(r=>{const i=[...r.messages],o=i[i.length-1];return o&&o.role==="assistant"&&(i[i.length-1]={...o,content:o.content+n}),{messages:i}})},clearMessages:()=>{e({messages:[]})}}));function iy(){}function ay(){}function _l(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const xl=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,wl=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,kl={};function pi(e,t){return(kl.jsx?wl:xl).test(e)}const Sl=/[ \t\n\f\r]/g;function vl(e){return typeof e=="object"?e.type==="text"?gi(e.value):!1:gi(e)}function gi(e){return e.replace(Sl,"")===""}class Ut{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}Ut.prototype.normal={},Ut.prototype.property={},Ut.prototype.space=void 0;function hi(e,t){const n={},r={};for(const i of e)Object.assign(n,i.property),Object.assign(r,i.normal);return new Ut(n,r,t)}function Kn(e){return e.toLowerCase()}class Ge{constructor(t,n){this.attribute=n,this.property=t}}Ge.prototype.attribute="",Ge.prototype.booleanish=!1,Ge.prototype.boolean=!1,Ge.prototype.commaOrSpaceSeparated=!1,Ge.prototype.commaSeparated=!1,Ge.prototype.defined=!1,Ge.prototype.mustUseProperty=!1,Ge.prototype.number=!1,Ge.prototype.overloadedBoolean=!1,Ge.prototype.property="",Ge.prototype.spaceSeparated=!1,Ge.prototype.space=void 0;let Tl=0;const re=pt(),xe=pt(),Gn=pt(),M=pt(),be=pt(),St=pt(),Ye=pt();function pt(){return 2**++Tl}const Wn=Object.freeze(Object.defineProperty({__proto__:null,boolean:re,booleanish:xe,commaOrSpaceSeparated:Ye,commaSeparated:St,number:M,overloadedBoolean:Gn,spaceSeparated:be},Symbol.toStringTag,{value:"Module"})),jn=Object.keys(Wn);class Vn extends Ge{constructor(t,n,r,i){let o=-1;if(super(t,n),mi(this,"space",i),typeof r=="number")for(;++o<jn.length;){const a=jn[o];mi(this,jn[o],(r&Wn[a])===Wn[a])}}}Vn.prototype.defined=!0;function mi(e,t,n){n&&(e[t]=n)}function vt(e){const t={},n={};for(const[r,i]of Object.entries(e.properties)){const o=new Vn(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[Kn(r)]=r,n[Kn(o.attribute)]=r}return new Ut(t,n,e.space)}const bi=vt({properties:{ariaActiveDescendant:null,ariaAtomic:xe,ariaAutoComplete:null,ariaBusy:xe,ariaChecked:xe,ariaColCount:M,ariaColIndex:M,ariaColSpan:M,ariaControls:be,ariaCurrent:null,ariaDescribedBy:be,ariaDetails:null,ariaDisabled:xe,ariaDropEffect:be,ariaErrorMessage:null,ariaExpanded:xe,ariaFlowTo:be,ariaGrabbed:xe,ariaHasPopup:null,ariaHidden:xe,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:be,ariaLevel:M,ariaLive:null,ariaModal:xe,ariaMultiLine:xe,ariaMultiSelectable:xe,ariaOrientation:null,ariaOwns:be,ariaPlaceholder:null,ariaPosInSet:M,ariaPressed:xe,ariaReadOnly:xe,ariaRelevant:null,ariaRequired:xe,ariaRoleDescription:be,ariaRowCount:M,ariaRowIndex:M,ariaRowSpan:M,ariaSelected:xe,ariaSetSize:M,ariaSort:null,ariaValueMax:M,ariaValueMin:M,ariaValueNow:M,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function yi(e,t){return t in e?e[t]:t}function Ei(e,t){return yi(e,t.toLowerCase())}const Nl=vt({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:St,acceptCharset:be,accessKey:be,action:null,allow:null,allowFullScreen:re,allowPaymentRequest:re,allowUserMedia:re,alt:null,as:null,async:re,autoCapitalize:null,autoComplete:be,autoFocus:re,autoPlay:re,blocking:be,capture:null,charSet:null,checked:re,cite:null,className:be,cols:M,colSpan:null,content:null,contentEditable:xe,controls:re,controlsList:be,coords:M|St,crossOrigin:null,data:null,dateTime:null,decoding:null,default:re,defer:re,dir:null,dirName:null,disabled:re,download:Gn,draggable:xe,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:re,formTarget:null,headers:be,height:M,hidden:Gn,high:M,href:null,hrefLang:null,htmlFor:be,httpEquiv:be,id:null,imageSizes:null,imageSrcSet:null,inert:re,inputMode:null,integrity:null,is:null,isMap:re,itemId:null,itemProp:be,itemRef:be,itemScope:re,itemType:be,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:re,low:M,manifest:null,max:null,maxLength:M,media:null,method:null,min:null,minLength:M,multiple:re,muted:re,name:null,nonce:null,noModule:re,noValidate:re,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:re,optimum:M,pattern:null,ping:be,placeholder:null,playsInline:re,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:re,referrerPolicy:null,rel:be,required:re,reversed:re,rows:M,rowSpan:M,sandbox:be,scope:null,scoped:re,seamless:re,selected:re,shadowRootClonable:re,shadowRootDelegatesFocus:re,shadowRootMode:null,shape:null,size:M,sizes:null,slot:null,span:M,spellCheck:xe,src:null,srcDoc:null,srcLang:null,srcSet:null,start:M,step:null,style:null,tabIndex:M,target:null,title:null,translate:null,type:null,typeMustMatch:re,useMap:null,value:xe,width:M,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:be,axis:null,background:null,bgColor:null,border:M,borderColor:null,bottomMargin:M,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:re,declare:re,event:null,face:null,frame:null,frameBorder:null,hSpace:M,leftMargin:M,link:null,longDesc:null,lowSrc:null,marginHeight:M,marginWidth:M,noResize:re,noHref:re,noShade:re,noWrap:re,object:null,profile:null,prompt:null,rev:null,rightMargin:M,rules:null,scheme:null,scrolling:xe,standby:null,summary:null,text:null,topMargin:M,valueType:null,version:null,vAlign:null,vLink:null,vSpace:M,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:re,disableRemotePlayback:re,prefix:null,property:null,results:M,security:null,unselectable:null},space:"html",transform:Ei}),Al=vt({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:Ye,accentHeight:M,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:M,amplitude:M,arabicForm:null,ascent:M,attributeName:null,attributeType:null,azimuth:M,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:M,by:null,calcMode:null,capHeight:M,className:be,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:M,diffuseConstant:M,direction:null,display:null,dur:null,divisor:M,dominantBaseline:null,download:re,dx:null,dy:null,edgeMode:null,editable:null,elevation:M,enableBackground:null,end:null,event:null,exponent:M,externalResourcesRequired:null,fill:null,fillOpacity:M,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:St,g2:St,glyphName:St,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:M,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:M,horizOriginX:M,horizOriginY:M,id:null,ideographic:M,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:M,k:M,k1:M,k2:M,k3:M,k4:M,kernelMatrix:Ye,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:M,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:M,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:M,overlineThickness:M,paintOrder:null,panose1:null,path:null,pathLength:M,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:be,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:M,pointsAtY:M,pointsAtZ:M,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Ye,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Ye,rev:Ye,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Ye,requiredFeatures:Ye,requiredFonts:Ye,requiredFormats:Ye,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:M,specularExponent:M,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:M,strikethroughThickness:M,string:null,stroke:null,strokeDashArray:Ye,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:M,strokeOpacity:M,strokeWidth:null,style:null,surfaceScale:M,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Ye,tabIndex:M,tableValues:null,target:null,targetX:M,targetY:M,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Ye,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:M,underlineThickness:M,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:M,values:null,vAlphabetic:M,vMathematical:M,vectorEffect:null,vHanging:M,vIdeographic:M,version:null,vertAdvY:M,vertOriginX:M,vertOriginY:M,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:M,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:yi}),_i=vt({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),xi=vt({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Ei}),wi=vt({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),Cl={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"},Ol=/[A-Z]/g,ki=/-[a-z]/g,Rl=/^data[-\w.:]+$/i;function Il(e,t){const n=Kn(t);let r=t,i=Ge;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&Rl.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(ki,Ll);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!ki.test(o)){let a=o.replace(Ol,Ml);a.charAt(0)!=="-"&&(a="-"+a),t="data"+a}}i=Vn}return new i(r,t)}function Ml(e){return"-"+e.toLowerCase()}function Ll(e){return e.charAt(1).toUpperCase()}const Dl=hi([bi,Nl,_i,xi,wi],"html"),qn=hi([bi,Al,_i,xi,wi],"svg");function Pl(e){return e.join(" ").trim()}var Yn={},Si=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,Fl=/\n/g,Bl=/^\s*/,zl=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Ul=/^:\s*/,$l=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Hl=/^[;\s]*/,Kl=/^\s+|\s+$/g,Gl=`
144
+ `,vi="/",Ti="*",gt="",Wl="comment",jl="declaration",Vl=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function i(g){var m=g.match(Fl);m&&(n+=m.length);var x=g.lastIndexOf(Gl);r=~x?g.length-x:r+g.length}function o(){var g={line:n,column:r};return function(m){return m.position=new a(g),c(),m}}function a(g){this.start=g,this.end={line:n,column:r},this.source=t.source}a.prototype.content=e;function s(g){var m=new Error(t.source+":"+n+":"+r+": "+g);if(m.reason=g,m.filename=t.source,m.line=n,m.column=r,m.source=e,!t.silent)throw m}function l(g){var m=g.exec(e);if(m){var x=m[0];return i(x),e=e.slice(x.length),m}}function c(){l(Bl)}function u(g){var m;for(g=g||[];m=d();)m!==!1&&g.push(m);return g}function d(){var g=o();if(!(vi!=e.charAt(0)||Ti!=e.charAt(1))){for(var m=2;gt!=e.charAt(m)&&(Ti!=e.charAt(m)||vi!=e.charAt(m+1));)++m;if(m+=2,gt===e.charAt(m-1))return s("End of comment missing");var x=e.slice(2,m-2);return r+=2,i(x),e=e.slice(m),r+=2,g({type:Wl,comment:x})}}function p(){var g=o(),m=l(zl);if(m){if(d(),!l(Ul))return s("property missing ':'");var x=l($l),E=g({type:jl,property:Ni(m[0].replace(Si,gt)),value:x?Ni(x[0].replace(Si,gt)):gt});return l(Hl),E}}function f(){var g=[];u(g);for(var m;m=p();)m!==!1&&(g.push(m),u(g));return g}return c(),f()};function Ni(e){return e?e.replace(Kl,gt):gt}var ql=rn&&rn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Yn,"__esModule",{value:!0}),Yn.default=Zl;var Yl=ql(Vl);function Zl(e,t){var n=null;if(!e||typeof e!="string")return n;var r=(0,Yl.default)(e),i=typeof t=="function";return r.forEach(function(o){if(o.type==="declaration"){var a=o.property,s=o.value;i?t(a,s,o):s&&(n=n||{},n[a]=s)}}),n}var sn={};Object.defineProperty(sn,"__esModule",{value:!0}),sn.camelCase=void 0;var Xl=/^--[a-zA-Z0-9_-]+$/,Ql=/-([a-z])/g,Jl=/^[^-]+$/,ec=/^-(webkit|moz|ms|o|khtml)-/,tc=/^-(ms)-/,nc=function(e){return!e||Jl.test(e)||Xl.test(e)},rc=function(e,t){return t.toUpperCase()},Ai=function(e,t){return"".concat(t,"-")},ic=function(e,t){return t===void 0&&(t={}),nc(e)?e:(e=e.toLowerCase(),t.reactCompat?e=e.replace(tc,Ai):e=e.replace(ec,Ai),e.replace(Ql,rc))};sn.camelCase=ic;var ac=rn&&rn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},oc=ac(Yn),sc=sn;function Zn(e,t){var n={};return!e||typeof e!="string"||(0,oc.default)(e,function(r,i){r&&i&&(n[(0,sc.camelCase)(r,t)]=i)}),n}Zn.default=Zn;var lc=Zn;const cc=an(lc),Ci=Oi("end"),Xn=Oi("start");function Oi(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function Ri(e){const t=Xn(e),n=Ci(e);if(t&&n)return{start:t,end:n}}function $t(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Ii(e.position):"start"in e||"end"in e?Ii(e):"line"in e||"column"in e?Qn(e):""}function Qn(e){return Mi(e&&e.line)+":"+Mi(e&&e.column)}function Ii(e){return Qn(e&&e.start)+"-"+Qn(e&&e.end)}function Mi(e){return e&&typeof e=="number"?e:1}class Le extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",o={},a=!1;if(n&&("line"in n&&"column"in n?o={place:n}:"start"in n&&"end"in n?o={place:n}:"type"in n?o={ancestors:[n],place:n.position}:o={...n}),typeof t=="string"?i=t:!o.cause&&t&&(a=!0,i=t.message,o.cause=t),!o.ruleId&&!o.source&&typeof r=="string"){const l=r.indexOf(":");l===-1?o.ruleId=r:(o.source=r.slice(0,l),o.ruleId=r.slice(l+1))}if(!o.place&&o.ancestors&&o.ancestors){const l=o.ancestors[o.ancestors.length-1];l&&(o.place=l.position)}const s=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=s?s.column:void 0,this.fatal=void 0,this.file,this.message=i,this.line=s?s.line:void 0,this.name=$t(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=a&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual,this.expected,this.note,this.url}}Le.prototype.file="",Le.prototype.name="",Le.prototype.reason="",Le.prototype.message="",Le.prototype.stack="",Le.prototype.column=void 0,Le.prototype.line=void 0,Le.prototype.ancestors=void 0,Le.prototype.cause=void 0,Le.prototype.fatal=void 0,Le.prototype.place=void 0,Le.prototype.ruleId=void 0,Le.prototype.source=void 0;const Jn={}.hasOwnProperty,uc=new Map,dc=/[A-Z]/g,fc=new Set(["table","tbody","thead","tfoot","tr"]),pc=new Set(["td","th"]),Li="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function gc(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=wc(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=xc(n,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?qn:Dl,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},o=Di(i,e,void 0);return o&&typeof o!="string"?o:i.create(e,i.Fragment,{children:o||void 0},void 0)}function Di(e,t,n){if(t.type==="element")return hc(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return mc(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return yc(e,t,n);if(t.type==="mdxjsEsm")return bc(e,t);if(t.type==="root")return Ec(e,t,n);if(t.type==="text")return _c(e,t)}function hc(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=qn,e.schema=i),e.ancestors.push(t);const o=Fi(e,t.tagName,!1),a=kc(e,t);let s=tr(e,t);return fc.has(t.tagName)&&(s=s.filter(function(l){return typeof l=="string"?!vl(l):!0})),Pi(e,a,o,t),er(a,s),e.ancestors.pop(),e.schema=r,e.create(t,o,a,n)}function mc(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}Ht(e,t.position)}function bc(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Ht(e,t.position)}function yc(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=qn,e.schema=i),e.ancestors.push(t);const o=t.name===null?e.Fragment:Fi(e,t.name,!0),a=Sc(e,t),s=tr(e,t);return Pi(e,a,o,t),er(a,s),e.ancestors.pop(),e.schema=r,e.create(t,o,a,n)}function Ec(e,t,n){const r={};return er(r,tr(e,t)),e.create(t,e.Fragment,r,n)}function _c(e,t){return t.value}function Pi(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function er(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function xc(e,t,n){return r;function r(i,o,a,s){const c=Array.isArray(a.children)?n:t;return s?c(o,a,s):c(o,a)}}function wc(e,t){return n;function n(r,i,o,a){const s=Array.isArray(o.children),l=Xn(r);return t(i,o,a,s,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}function kc(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&Jn.call(t.properties,i)){const o=vc(e,i,t.properties[i]);if(o){const[a,s]=o;e.tableCellAlignToStyle&&a==="align"&&typeof s=="string"&&pc.has(t.tagName)?r=s:n[a]=s}}if(r){const o=n.style||(n.style={});o[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function Sc(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const o=r.data.estree.body[0];o.type;const a=o.expression;a.type;const s=a.properties[0];s.type,Object.assign(n,e.evaluater.evaluateExpression(s.argument))}else Ht(e,t.position);else{const i=r.name;let o;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const s=r.value.data.estree.body[0];s.type,o=e.evaluater.evaluateExpression(s.expression)}else Ht(e,t.position);else o=r.value===null?!0:r.value;n[i]=o}return n}function tr(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:uc;for(;++r<t.children.length;){const o=t.children[r];let a;if(e.passKeys){const l=o.type==="element"?o.tagName:o.type==="mdxJsxFlowElement"||o.type==="mdxJsxTextElement"?o.name:void 0;if(l){const c=i.get(l)||0;a=l+"-"+c,i.set(l,c+1)}}const s=Di(e,o,a);s!==void 0&&n.push(s)}return n}function vc(e,t,n){const r=Il(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?_l(n):Pl(n)),r.property==="style"){let i=typeof n=="object"?n:Tc(e,String(n));return e.stylePropertyNameCase==="css"&&(i=Nc(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?Cl[r.property]||r.property:r.attribute,n]}}function Tc(e,t){try{return cc(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,i=new Le("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw i.file=e.filePath||void 0,i.url=Li+"#cannot-parse-style-attribute",i}}function Fi(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const i=t.split(".");let o=-1,a;for(;++o<i.length;){const s=pi(i[o])?{type:"Identifier",name:i[o]}:{type:"Literal",value:i[o]};a=a?{type:"MemberExpression",object:a,property:s,computed:!!(o&&s.type==="Literal"),optional:!1}:s}r=a}else r=pi(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const i=r.value;return Jn.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);Ht(e)}function Ht(e,t){const n=new Le("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=Li+"#cannot-handle-mdx-estrees-without-createevaluater",n}function Nc(e){const t={};let n;for(n in e)Jn.call(e,n)&&(t[Ac(n)]=e[n]);return t}function Ac(e){let t=e.replace(dc,Cc);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function Cc(e){return"-"+e.toLowerCase()}const nr={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"]},Oc={};function rr(e,t){const n=Oc,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return Bi(e,r,i)}function Bi(e,t,n){if(Rc(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return zi(e.children,t,n)}return Array.isArray(e)?zi(e,t,n):""}function zi(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=Bi(e[i],t,n);return r.join("")}function Rc(e){return!!(e&&typeof e=="object")}const Ui=document.createElement("i");function ir(e){const t="&"+e+";";Ui.innerHTML=t;const n=Ui.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function Ze(e,t,n,r){const i=e.length;let o=0,a;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)a=Array.from(r),a.unshift(t,n),e.splice(...a);else for(n&&e.splice(t,n);o<r.length;)a=r.slice(o,o+1e4),a.unshift(t,0),e.splice(...a),o+=1e4,t+=1e4}function Qe(e,t){return e.length>0?(Ze(e,e.length,0,t),e):t}const $i={}.hasOwnProperty;function Hi(e){const t={};let n=-1;for(;++n<e.length;)Ic(t,e[n]);return t}function Ic(e,t){let n;for(n in t){const i=($i.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];let a;if(o)for(a in o){$i.call(i,a)||(i[a]=[]);const s=o[a];Mc(i[a],Array.isArray(s)?s:s?[s]:[])}}}function Mc(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);Ze(e,0,0,r)}function Ki(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function et(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Fe=lt(/[A-Za-z]/),De=lt(/[\dA-Za-z]/),Lc=lt(/[#-'*+\--9=?A-Z^-~]/);function ln(e){return e!==null&&(e<32||e===127)}const ar=lt(/\d/),Dc=lt(/[\dA-Fa-f]/),Pc=lt(/[!-/:-@[-`{-~]/);function Q(e){return e!==null&&e<-2}function he(e){return e!==null&&(e<0||e===32)}function ae(e){return e===-2||e===-1||e===32}const cn=lt(new RegExp("\\p{P}|\\p{S}","u")),ht=lt(/\s/);function lt(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function Tt(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const o=e.charCodeAt(n);let a="";if(o===37&&De(e.charCodeAt(n+1))&&De(e.charCodeAt(n+2)))i=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(a=String.fromCharCode(o));else if(o>55295&&o<57344){const s=e.charCodeAt(n+1);o<56320&&s>56319&&s<57344?(a=String.fromCharCode(o,s),i=1):a="�"}else a=String.fromCharCode(o);a&&(t.push(e.slice(r,n),encodeURIComponent(a)),r=n+i+1,a=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function se(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let o=0;return a;function a(l){return ae(l)?(e.enter(n),s(l)):t(l)}function s(l){return ae(l)&&o++<i?(e.consume(l),s):(e.exit(n),t(l))}}const Fc={tokenize:Bc};function Bc(e){const t=e.attempt(this.parser.constructs.contentInitial,r,i);let n;return t;function r(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),se(e,t,"linePrefix")}function i(s){return e.enter("paragraph"),o(s)}function o(s){const l=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=l),n=l,a(s)}function a(s){if(s===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(s);return}return Q(s)?(e.consume(s),e.exit("chunkText"),o):(e.consume(s),a)}}const zc={tokenize:Uc},Gi={tokenize:$c};function Uc(e){const t=this,n=[];let r=0,i,o,a;return s;function s(k){if(r<n.length){const C=n[r];return t.containerState=C[1],e.attempt(C[0].continuation,l,c)(k)}return c(k)}function l(k){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&T();const C=t.events.length;let R=C,w;for(;R--;)if(t.events[R][0]==="exit"&&t.events[R][1].type==="chunkFlow"){w=t.events[R][1].end;break}E(r);let P=C;for(;P<t.events.length;)t.events[P][1].end={...w},P++;return Ze(t.events,R+1,0,t.events.slice(C)),t.events.length=P,c(k)}return s(k)}function c(k){if(r===n.length){if(!i)return p(k);if(i.currentConstruct&&i.currentConstruct.concrete)return g(k);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Gi,u,d)(k)}function u(k){return i&&T(),E(r),p(k)}function d(k){return t.parser.lazy[t.now().line]=r!==n.length,a=t.now().offset,g(k)}function p(k){return t.containerState={},e.attempt(Gi,f,g)(k)}function f(k){return r++,n.push([t.currentConstruct,t.containerState]),p(k)}function g(k){if(k===null){i&&T(),E(0),e.consume(k);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:o}),m(k)}function m(k){if(k===null){x(e.exit("chunkFlow"),!0),E(0),e.consume(k);return}return Q(k)?(e.consume(k),x(e.exit("chunkFlow")),r=0,t.interrupt=void 0,s):(e.consume(k),m)}function x(k,C){const R=t.sliceStream(k);if(C&&R.push(null),k.previous=o,o&&(o.next=k),o=k,i.defineSkip(k.start),i.write(R),t.parser.lazy[k.start.line]){let w=i.events.length;for(;w--;)if(i.events[w][1].start.offset<a&&(!i.events[w][1].end||i.events[w][1].end.offset>a))return;const P=t.events.length;let F=P,$,S;for(;F--;)if(t.events[F][0]==="exit"&&t.events[F][1].type==="chunkFlow"){if($){S=t.events[F][1].end;break}$=!0}for(E(r),w=P;w<t.events.length;)t.events[w][1].end={...S},w++;Ze(t.events,F+1,0,t.events.slice(P)),t.events.length=w}}function E(k){let C=n.length;for(;C-- >k;){const R=n[C];t.containerState=R[1],R[0].exit.call(t,e)}n.length=k}function T(){i.write([null]),o=void 0,i=void 0,t.containerState._closeFlow=void 0}}function $c(e,t,n){return se(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Nt(e){if(e===null||he(e)||ht(e))return 1;if(cn(e))return 2}function un(e,t,n){const r=[];let i=-1;for(;++i<e.length;){const o=e[i].resolveAll;o&&!r.includes(o)&&(t=o(t,n),r.push(o))}return t}const or={name:"attention",resolveAll:Hc,tokenize:Kc};function Hc(e,t){let n=-1,r,i,o,a,s,l,c,u;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;l=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const d={...e[r][1].end},p={...e[n][1].start};Wi(d,-l),Wi(p,l),a={type:l>1?"strongSequence":"emphasisSequence",start:d,end:{...e[r][1].end}},s={type:l>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:p},o={type:l>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},i={type:l>1?"strong":"emphasis",start:{...a.start},end:{...s.end}},e[r][1].end={...a.start},e[n][1].start={...s.end},c=[],e[r][1].end.offset-e[r][1].start.offset&&(c=Qe(c,[["enter",e[r][1],t],["exit",e[r][1],t]])),c=Qe(c,[["enter",i,t],["enter",a,t],["exit",a,t],["enter",o,t]]),c=Qe(c,un(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),c=Qe(c,[["exit",o,t],["enter",s,t],["exit",s,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(u=2,c=Qe(c,[["enter",e[n][1],t],["exit",e[n][1],t]])):u=0,Ze(e,r-1,n-r+3,c),n=r+c.length-u-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function Kc(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=Nt(r);let o;return a;function a(l){return o=l,e.enter("attentionSequence"),s(l)}function s(l){if(l===o)return e.consume(l),s;const c=e.exit("attentionSequence"),u=Nt(l),d=!u||u===2&&i||n.includes(l),p=!i||i===2&&u||n.includes(r);return c._open=!!(o===42?d:d&&(i||!p)),c._close=!!(o===42?p:p&&(u||!d)),t(l)}}function Wi(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const Gc={name:"autolink",tokenize:Wc};function Wc(e,t,n){let r=0;return i;function i(f){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o}function o(f){return Fe(f)?(e.consume(f),a):f===64?n(f):c(f)}function a(f){return f===43||f===45||f===46||De(f)?(r=1,s(f)):c(f)}function s(f){return f===58?(e.consume(f),r=0,l):(f===43||f===45||f===46||De(f))&&r++<32?(e.consume(f),s):(r=0,c(f))}function l(f){return f===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.exit("autolink"),t):f===null||f===32||f===60||ln(f)?n(f):(e.consume(f),l)}function c(f){return f===64?(e.consume(f),u):Lc(f)?(e.consume(f),c):n(f)}function u(f){return De(f)?d(f):n(f)}function d(f){return f===46?(e.consume(f),r=0,u):f===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.exit("autolink"),t):p(f)}function p(f){if((f===45||De(f))&&r++<63){const g=f===45?p:d;return e.consume(f),g}return n(f)}}const Kt={partial:!0,tokenize:jc};function jc(e,t,n){return r;function r(o){return ae(o)?se(e,i,"linePrefix")(o):i(o)}function i(o){return o===null||Q(o)?t(o):n(o)}}const ji={continuation:{tokenize:qc},exit:Yc,name:"blockQuote",tokenize:Vc};function Vc(e,t,n){const r=this;return i;function i(a){if(a===62){const s=r.containerState;return s.open||(e.enter("blockQuote",{_container:!0}),s.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(a),e.exit("blockQuoteMarker"),o}return n(a)}function o(a){return ae(a)?(e.enter("blockQuotePrefixWhitespace"),e.consume(a),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(a))}}function qc(e,t,n){const r=this;return i;function i(a){return ae(a)?se(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a):o(a)}function o(a){return e.attempt(ji,t,n)(a)}}function Yc(e){e.exit("blockQuote")}const Vi={name:"characterEscape",tokenize:Zc};function Zc(e,t,n){return r;function r(o){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(o),e.exit("escapeMarker"),i}function i(o){return Pc(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(o)}}const qi={name:"characterReference",tokenize:Xc};function Xc(e,t,n){const r=this;let i=0,o,a;return s;function s(d){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),l}function l(d){return d===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(d),e.exit("characterReferenceMarkerNumeric"),c):(e.enter("characterReferenceValue"),o=31,a=De,u(d))}function c(d){return d===88||d===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(d),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,a=Dc,u):(e.enter("characterReferenceValue"),o=7,a=ar,u(d))}function u(d){if(d===59&&i){const p=e.exit("characterReferenceValue");return a===De&&!ir(r.sliceSerialize(p))?n(d):(e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return a(d)&&i++<o?(e.consume(d),u):n(d)}}const Yi={partial:!0,tokenize:Jc},Zi={concrete:!0,name:"codeFenced",tokenize:Qc};function Qc(e,t,n){const r=this,i={partial:!0,tokenize:R};let o=0,a=0,s;return l;function l(w){return c(w)}function c(w){const P=r.events[r.events.length-1];return o=P&&P[1].type==="linePrefix"?P[2].sliceSerialize(P[1],!0).length:0,s=w,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),u(w)}function u(w){return w===s?(a++,e.consume(w),u):a<3?n(w):(e.exit("codeFencedFenceSequence"),ae(w)?se(e,d,"whitespace")(w):d(w))}function d(w){return w===null||Q(w)?(e.exit("codeFencedFence"),r.interrupt?t(w):e.check(Yi,m,C)(w)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),p(w))}function p(w){return w===null||Q(w)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),d(w)):ae(w)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),se(e,f,"whitespace")(w)):w===96&&w===s?n(w):(e.consume(w),p)}function f(w){return w===null||Q(w)?d(w):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),g(w))}function g(w){return w===null||Q(w)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),d(w)):w===96&&w===s?n(w):(e.consume(w),g)}function m(w){return e.attempt(i,C,x)(w)}function x(w){return e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),E}function E(w){return o>0&&ae(w)?se(e,T,"linePrefix",o+1)(w):T(w)}function T(w){return w===null||Q(w)?e.check(Yi,m,C)(w):(e.enter("codeFlowValue"),k(w))}function k(w){return w===null||Q(w)?(e.exit("codeFlowValue"),T(w)):(e.consume(w),k)}function C(w){return e.exit("codeFenced"),t(w)}function R(w,P,F){let $=0;return S;function S(G){return w.enter("lineEnding"),w.consume(G),w.exit("lineEnding"),z}function z(G){return w.enter("codeFencedFence"),ae(G)?se(w,U,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(G):U(G)}function U(G){return G===s?(w.enter("codeFencedFenceSequence"),ne(G)):F(G)}function ne(G){return G===s?($++,w.consume(G),ne):$>=a?(w.exit("codeFencedFenceSequence"),ae(G)?se(w,V,"whitespace")(G):V(G)):F(G)}function V(G){return G===null||Q(G)?(w.exit("codeFencedFence"),P(G)):F(G)}}}function Jc(e,t,n){const r=this;return i;function i(a){return a===null?n(a):(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),o)}function o(a){return r.parser.lazy[r.now().line]?n(a):t(a)}}const sr={name:"codeIndented",tokenize:tu},eu={partial:!0,tokenize:nu};function tu(e,t,n){const r=this;return i;function i(c){return e.enter("codeIndented"),se(e,o,"linePrefix",5)(c)}function o(c){const u=r.events[r.events.length-1];return u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?a(c):n(c)}function a(c){return c===null?l(c):Q(c)?e.attempt(eu,a,l)(c):(e.enter("codeFlowValue"),s(c))}function s(c){return c===null||Q(c)?(e.exit("codeFlowValue"),a(c)):(e.consume(c),s)}function l(c){return e.exit("codeIndented"),t(c)}}function nu(e,t,n){const r=this;return i;function i(a){return r.parser.lazy[r.now().line]?n(a):Q(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),i):se(e,o,"linePrefix",5)(a)}function o(a){const s=r.events[r.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(a):Q(a)?i(a):n(a)}}const ru={name:"codeText",previous:au,resolve:iu,tokenize:ou};function iu(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(i=r):(r===t||e[r][1].type==="lineEnding")&&(e[i][1].type="codeTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function au(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function ou(e,t,n){let r=0,i,o;return a;function a(d){return e.enter("codeText"),e.enter("codeTextSequence"),s(d)}function s(d){return d===96?(e.consume(d),r++,s):(e.exit("codeTextSequence"),l(d))}function l(d){return d===null?n(d):d===32?(e.enter("space"),e.consume(d),e.exit("space"),l):d===96?(o=e.enter("codeTextSequence"),i=0,u(d)):Q(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),l):(e.enter("codeTextData"),c(d))}function c(d){return d===null||d===32||d===96||Q(d)?(e.exit("codeTextData"),l(d)):(e.consume(d),c)}function u(d){return d===96?(e.consume(d),i++,u):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(d)):(o.type="codeTextData",c(d))}}class su{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const i=n||0;this.setCursor(Math.trunc(t));const o=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&Gt(this.left,r),o.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),Gt(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Gt(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);Gt(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Gt(this.left,n.reverse())}}}function Gt(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 Xi(e){const t={};let n=-1,r,i,o,a,s,l,c;const u=new su(e);for(;++n<u.length;){for(;n in t;)n=t[n];if(r=u.get(n),n&&r[1].type==="chunkFlow"&&u.get(n-1)[1].type==="listItemPrefix"&&(l=r[1]._tokenizer.events,o=0,o<l.length&&l[o][1].type==="lineEndingBlank"&&(o+=2),o<l.length&&l[o][1].type==="content"))for(;++o<l.length&&l[o][1].type!=="content";)l[o][1].type==="chunkText"&&(l[o][1]._isInFirstContentOfListItem=!0,o++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,lu(u,n)),n=t[n],c=!0);else if(r[1]._container){for(o=n,i=void 0;o--;)if(a=u.get(o),a[1].type==="lineEnding"||a[1].type==="lineEndingBlank")a[0]==="enter"&&(i&&(u.get(i)[1].type="lineEndingBlank"),a[1].type="lineEnding",i=o);else if(!(a[1].type==="linePrefix"||a[1].type==="listItemIndent"))break;i&&(r[1].end={...u.get(i)[1].start},s=u.slice(i,n),s.unshift(r),u.splice(i,n-i+1,s))}}return Ze(e,0,Number.POSITIVE_INFINITY,u.slice(0)),!c}function lu(e,t){const n=e.get(t)[1],r=e.get(t)[2];let i=t-1;const o=[];let a=n._tokenizer;a||(a=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(a._contentTypeTextTrailing=!0));const s=a.events,l=[],c={};let u,d,p=-1,f=n,g=0,m=0;const x=[m];for(;f;){for(;e.get(++i)[1]!==f;);o.push(i),f._tokenizer||(u=r.sliceStream(f),f.next||u.push(null),d&&a.defineSkip(f.start),f._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=!0),a.write(u),f._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=void 0)),d=f,f=f.next}for(f=n;++p<s.length;)s[p][0]==="exit"&&s[p-1][0]==="enter"&&s[p][1].type===s[p-1][1].type&&s[p][1].start.line!==s[p][1].end.line&&(m=p+1,x.push(m),f._tokenizer=void 0,f.previous=void 0,f=f.next);for(a.events=[],f?(f._tokenizer=void 0,f.previous=void 0):x.pop(),p=x.length;p--;){const E=s.slice(x[p],x[p+1]),T=o.pop();l.push([T,T+E.length-1]),e.splice(T,2,E)}for(l.reverse(),p=-1;++p<l.length;)c[g+l[p][0]]=g+l[p][1],g+=l[p][1]-l[p][0]-1;return c}const cu={resolve:du,tokenize:fu},uu={partial:!0,tokenize:pu};function du(e){return Xi(e),e}function fu(e,t){let n;return r;function r(s){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),i(s)}function i(s){return s===null?o(s):Q(s)?e.check(uu,a,o)(s):(e.consume(s),i)}function o(s){return e.exit("chunkContent"),e.exit("content"),t(s)}function a(s){return e.consume(s),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,i}}function pu(e,t,n){const r=this;return i;function i(a){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),se(e,o,"linePrefix")}function o(a){if(a===null||Q(a))return n(a);const s=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(a):e.interrupt(r.parser.constructs.flow,n,t)(a)}}function Qi(e,t,n,r,i,o,a,s,l){const c=l||Number.POSITIVE_INFINITY;let u=0;return d;function d(E){return E===60?(e.enter(r),e.enter(i),e.enter(o),e.consume(E),e.exit(o),p):E===null||E===32||E===41||ln(E)?n(E):(e.enter(r),e.enter(a),e.enter(s),e.enter("chunkString",{contentType:"string"}),m(E))}function p(E){return E===62?(e.enter(o),e.consume(E),e.exit(o),e.exit(i),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),f(E))}function f(E){return E===62?(e.exit("chunkString"),e.exit(s),p(E)):E===null||E===60||Q(E)?n(E):(e.consume(E),E===92?g:f)}function g(E){return E===60||E===62||E===92?(e.consume(E),f):f(E)}function m(E){return!u&&(E===null||E===41||he(E))?(e.exit("chunkString"),e.exit(s),e.exit(a),e.exit(r),t(E)):u<c&&E===40?(e.consume(E),u++,m):E===41?(e.consume(E),u--,m):E===null||E===32||E===40||ln(E)?n(E):(e.consume(E),E===92?x:m)}function x(E){return E===40||E===41||E===92?(e.consume(E),m):m(E)}}function Ji(e,t,n,r,i,o){const a=this;let s=0,l;return c;function c(f){return e.enter(r),e.enter(i),e.consume(f),e.exit(i),e.enter(o),u}function u(f){return s>999||f===null||f===91||f===93&&!l||f===94&&!s&&"_hiddenFootnoteSupport"in a.parser.constructs?n(f):f===93?(e.exit(o),e.enter(i),e.consume(f),e.exit(i),e.exit(r),t):Q(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),u):(e.enter("chunkString",{contentType:"string"}),d(f))}function d(f){return f===null||f===91||f===93||Q(f)||s++>999?(e.exit("chunkString"),u(f)):(e.consume(f),l||(l=!ae(f)),f===92?p:d)}function p(f){return f===91||f===92||f===93?(e.consume(f),s++,d):d(f)}}function ea(e,t,n,r,i,o){let a;return s;function s(p){return p===34||p===39||p===40?(e.enter(r),e.enter(i),e.consume(p),e.exit(i),a=p===40?41:p,l):n(p)}function l(p){return p===a?(e.enter(i),e.consume(p),e.exit(i),e.exit(r),t):(e.enter(o),c(p))}function c(p){return p===a?(e.exit(o),l(a)):p===null?n(p):Q(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),se(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),u(p))}function u(p){return p===a||p===null||Q(p)?(e.exit("chunkString"),c(p)):(e.consume(p),p===92?d:u)}function d(p){return p===a||p===92?(e.consume(p),u):u(p)}}function Wt(e,t){let n;return r;function r(i){return Q(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):ae(i)?se(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const gu={name:"definition",tokenize:mu},hu={partial:!0,tokenize:bu};function mu(e,t,n){const r=this;let i;return o;function o(f){return e.enter("definition"),a(f)}function a(f){return Ji.call(r,e,s,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(f)}function s(f){return i=et(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),f===58?(e.enter("definitionMarker"),e.consume(f),e.exit("definitionMarker"),l):n(f)}function l(f){return he(f)?Wt(e,c)(f):c(f)}function c(f){return Qi(e,u,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(f)}function u(f){return e.attempt(hu,d,d)(f)}function d(f){return ae(f)?se(e,p,"whitespace")(f):p(f)}function p(f){return f===null||Q(f)?(e.exit("definition"),r.parser.defined.push(i),t(f)):n(f)}}function bu(e,t,n){return r;function r(s){return he(s)?Wt(e,i)(s):n(s)}function i(s){return ea(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function o(s){return ae(s)?se(e,a,"whitespace")(s):a(s)}function a(s){return s===null||Q(s)?t(s):n(s)}}const yu={name:"hardBreakEscape",tokenize:Eu};function Eu(e,t,n){return r;function r(o){return e.enter("hardBreakEscape"),e.consume(o),i}function i(o){return Q(o)?(e.exit("hardBreakEscape"),t(o)):n(o)}}const _u={name:"headingAtx",resolve:xu,tokenize:wu};function xu(e,t){let n=e.length-2,r=3,i,o;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},o={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},Ze(e,r,n-r+1,[["enter",i,t],["enter",o,t],["exit",o,t],["exit",i,t]])),e}function wu(e,t,n){let r=0;return i;function i(u){return e.enter("atxHeading"),o(u)}function o(u){return e.enter("atxHeadingSequence"),a(u)}function a(u){return u===35&&r++<6?(e.consume(u),a):u===null||he(u)?(e.exit("atxHeadingSequence"),s(u)):n(u)}function s(u){return u===35?(e.enter("atxHeadingSequence"),l(u)):u===null||Q(u)?(e.exit("atxHeading"),t(u)):ae(u)?se(e,s,"whitespace")(u):(e.enter("atxHeadingText"),c(u))}function l(u){return u===35?(e.consume(u),l):(e.exit("atxHeadingSequence"),s(u))}function c(u){return u===null||u===35||he(u)?(e.exit("atxHeadingText"),s(u)):(e.consume(u),c)}}const ku=["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"],ta=["pre","script","style","textarea"],Su={concrete:!0,name:"htmlFlow",resolveTo:Nu,tokenize:Au},vu={partial:!0,tokenize:Ou},Tu={partial:!0,tokenize:Cu};function Nu(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(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}function Au(e,t,n){const r=this;let i,o,a,s,l;return c;function c(b){return u(b)}function u(b){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(b),d}function d(b){return b===33?(e.consume(b),p):b===47?(e.consume(b),o=!0,m):b===63?(e.consume(b),i=3,r.interrupt?t:h):Fe(b)?(e.consume(b),a=String.fromCharCode(b),x):n(b)}function p(b){return b===45?(e.consume(b),i=2,f):b===91?(e.consume(b),i=5,s=0,g):Fe(b)?(e.consume(b),i=4,r.interrupt?t:h):n(b)}function f(b){return b===45?(e.consume(b),r.interrupt?t:h):n(b)}function g(b){const ue="CDATA[";return b===ue.charCodeAt(s++)?(e.consume(b),s===ue.length?r.interrupt?t:U:g):n(b)}function m(b){return Fe(b)?(e.consume(b),a=String.fromCharCode(b),x):n(b)}function x(b){if(b===null||b===47||b===62||he(b)){const ue=b===47,ye=a.toLowerCase();return!ue&&!o&&ta.includes(ye)?(i=1,r.interrupt?t(b):U(b)):ku.includes(a.toLowerCase())?(i=6,ue?(e.consume(b),E):r.interrupt?t(b):U(b)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(b):o?T(b):k(b))}return b===45||De(b)?(e.consume(b),a+=String.fromCharCode(b),x):n(b)}function E(b){return b===62?(e.consume(b),r.interrupt?t:U):n(b)}function T(b){return ae(b)?(e.consume(b),T):S(b)}function k(b){return b===47?(e.consume(b),S):b===58||b===95||Fe(b)?(e.consume(b),C):ae(b)?(e.consume(b),k):S(b)}function C(b){return b===45||b===46||b===58||b===95||De(b)?(e.consume(b),C):R(b)}function R(b){return b===61?(e.consume(b),w):ae(b)?(e.consume(b),R):k(b)}function w(b){return b===null||b===60||b===61||b===62||b===96?n(b):b===34||b===39?(e.consume(b),l=b,P):ae(b)?(e.consume(b),w):F(b)}function P(b){return b===l?(e.consume(b),l=null,$):b===null||Q(b)?n(b):(e.consume(b),P)}function F(b){return b===null||b===34||b===39||b===47||b===60||b===61||b===62||b===96||he(b)?R(b):(e.consume(b),F)}function $(b){return b===47||b===62||ae(b)?k(b):n(b)}function S(b){return b===62?(e.consume(b),z):n(b)}function z(b){return b===null||Q(b)?U(b):ae(b)?(e.consume(b),z):n(b)}function U(b){return b===45&&i===2?(e.consume(b),N):b===60&&i===1?(e.consume(b),D):b===62&&i===4?(e.consume(b),Z):b===63&&i===3?(e.consume(b),h):b===93&&i===5?(e.consume(b),j):Q(b)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(vu,ee,ne)(b)):b===null||Q(b)?(e.exit("htmlFlowData"),ne(b)):(e.consume(b),U)}function ne(b){return e.check(Tu,V,ee)(b)}function V(b){return e.enter("lineEnding"),e.consume(b),e.exit("lineEnding"),G}function G(b){return b===null||Q(b)?ne(b):(e.enter("htmlFlowData"),U(b))}function N(b){return b===45?(e.consume(b),h):U(b)}function D(b){return b===47?(e.consume(b),a="",L):U(b)}function L(b){if(b===62){const ue=a.toLowerCase();return ta.includes(ue)?(e.consume(b),Z):U(b)}return Fe(b)&&a.length<8?(e.consume(b),a+=String.fromCharCode(b),L):U(b)}function j(b){return b===93?(e.consume(b),h):U(b)}function h(b){return b===62?(e.consume(b),Z):b===45&&i===2?(e.consume(b),h):U(b)}function Z(b){return b===null||Q(b)?(e.exit("htmlFlowData"),ee(b)):(e.consume(b),Z)}function ee(b){return e.exit("htmlFlow"),t(b)}}function Cu(e,t,n){const r=this;return i;function i(a){return Q(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),o):n(a)}function o(a){return r.parser.lazy[r.now().line]?n(a):t(a)}}function Ou(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(Kt,t,n)}}const Ru={name:"htmlText",tokenize:Iu};function Iu(e,t,n){const r=this;let i,o,a;return s;function s(h){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(h),l}function l(h){return h===33?(e.consume(h),c):h===47?(e.consume(h),R):h===63?(e.consume(h),k):Fe(h)?(e.consume(h),F):n(h)}function c(h){return h===45?(e.consume(h),u):h===91?(e.consume(h),o=0,g):Fe(h)?(e.consume(h),T):n(h)}function u(h){return h===45?(e.consume(h),f):n(h)}function d(h){return h===null?n(h):h===45?(e.consume(h),p):Q(h)?(a=d,D(h)):(e.consume(h),d)}function p(h){return h===45?(e.consume(h),f):d(h)}function f(h){return h===62?N(h):h===45?p(h):d(h)}function g(h){const Z="CDATA[";return h===Z.charCodeAt(o++)?(e.consume(h),o===Z.length?m:g):n(h)}function m(h){return h===null?n(h):h===93?(e.consume(h),x):Q(h)?(a=m,D(h)):(e.consume(h),m)}function x(h){return h===93?(e.consume(h),E):m(h)}function E(h){return h===62?N(h):h===93?(e.consume(h),E):m(h)}function T(h){return h===null||h===62?N(h):Q(h)?(a=T,D(h)):(e.consume(h),T)}function k(h){return h===null?n(h):h===63?(e.consume(h),C):Q(h)?(a=k,D(h)):(e.consume(h),k)}function C(h){return h===62?N(h):k(h)}function R(h){return Fe(h)?(e.consume(h),w):n(h)}function w(h){return h===45||De(h)?(e.consume(h),w):P(h)}function P(h){return Q(h)?(a=P,D(h)):ae(h)?(e.consume(h),P):N(h)}function F(h){return h===45||De(h)?(e.consume(h),F):h===47||h===62||he(h)?$(h):n(h)}function $(h){return h===47?(e.consume(h),N):h===58||h===95||Fe(h)?(e.consume(h),S):Q(h)?(a=$,D(h)):ae(h)?(e.consume(h),$):N(h)}function S(h){return h===45||h===46||h===58||h===95||De(h)?(e.consume(h),S):z(h)}function z(h){return h===61?(e.consume(h),U):Q(h)?(a=z,D(h)):ae(h)?(e.consume(h),z):$(h)}function U(h){return h===null||h===60||h===61||h===62||h===96?n(h):h===34||h===39?(e.consume(h),i=h,ne):Q(h)?(a=U,D(h)):ae(h)?(e.consume(h),U):(e.consume(h),V)}function ne(h){return h===i?(e.consume(h),i=void 0,G):h===null?n(h):Q(h)?(a=ne,D(h)):(e.consume(h),ne)}function V(h){return h===null||h===34||h===39||h===60||h===61||h===96?n(h):h===47||h===62||he(h)?$(h):(e.consume(h),V)}function G(h){return h===47||h===62||he(h)?$(h):n(h)}function N(h){return h===62?(e.consume(h),e.exit("htmlTextData"),e.exit("htmlText"),t):n(h)}function D(h){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),L}function L(h){return ae(h)?se(e,j,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(h):j(h)}function j(h){return e.enter("htmlTextData"),a(h)}}const lr={name:"labelEnd",resolveAll:Pu,resolveTo:Fu,tokenize:Bu},Mu={tokenize:zu},Lu={tokenize:Uu},Du={tokenize:$u};function Pu(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const i=r.type==="labelImage"?4:2;r.type="data",t+=i}}return e.length!==n.length&&Ze(e,0,e.length,n),e}function Fu(e,t){let n=e.length,r=0,i,o,a,s;for(;n--;)if(i=e[n][1],o){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[n][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(a){if(e[n][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(o=n,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(a=n);const l={type:e[o][1].type==="labelLink"?"link":"image",start:{...e[o][1].start},end:{...e[e.length-1][1].end}},c={type:"label",start:{...e[o][1].start},end:{...e[a][1].end}},u={type:"labelText",start:{...e[o+r+2][1].end},end:{...e[a-2][1].start}};return s=[["enter",l,t],["enter",c,t]],s=Qe(s,e.slice(o+1,o+r+3)),s=Qe(s,[["enter",u,t]]),s=Qe(s,un(t.parser.constructs.insideSpan.null,e.slice(o+r+4,a-3),t)),s=Qe(s,[["exit",u,t],e[a-2],e[a-1],["exit",c,t]]),s=Qe(s,e.slice(a+1)),s=Qe(s,[["exit",l,t]]),Ze(e,o,e.length,s),e}function Bu(e,t,n){const r=this;let i=r.events.length,o,a;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){o=r.events[i][1];break}return s;function s(p){return o?o._inactive?d(p):(a=r.parser.defined.includes(et(r.sliceSerialize({start:o.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(p),e.exit("labelMarker"),e.exit("labelEnd"),l):n(p)}function l(p){return p===40?e.attempt(Mu,u,a?u:d)(p):p===91?e.attempt(Lu,u,a?c:d)(p):a?u(p):d(p)}function c(p){return e.attempt(Du,u,d)(p)}function u(p){return t(p)}function d(p){return o._balanced=!0,n(p)}}function zu(e,t,n){return r;function r(d){return e.enter("resource"),e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),i}function i(d){return he(d)?Wt(e,o)(d):o(d)}function o(d){return d===41?u(d):Qi(e,a,s,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(d)}function a(d){return he(d)?Wt(e,l)(d):u(d)}function s(d){return n(d)}function l(d){return d===34||d===39||d===40?ea(e,c,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(d):u(d)}function c(d){return he(d)?Wt(e,u)(d):u(d)}function u(d){return d===41?(e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),e.exit("resource"),t):n(d)}}function Uu(e,t,n){const r=this;return i;function i(s){return Ji.call(r,e,o,a,"reference","referenceMarker","referenceString")(s)}function o(s){return r.parser.defined.includes(et(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(s):n(s)}function a(s){return n(s)}}function $u(e,t,n){return r;function r(o){return e.enter("reference"),e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),i}function i(o){return o===93?(e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),e.exit("reference"),t):n(o)}}const Hu={name:"labelStartImage",resolveAll:lr.resolveAll,tokenize:Ku};function Ku(e,t,n){const r=this;return i;function i(s){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(s),e.exit("labelImageMarker"),o}function o(s){return s===91?(e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelImage"),a):n(s)}function a(s){return s===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(s):t(s)}}const Gu={name:"labelStartLink",resolveAll:lr.resolveAll,tokenize:Wu};function Wu(e,t,n){const r=this;return i;function i(a){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(a),e.exit("labelMarker"),e.exit("labelLink"),o}function o(a){return a===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(a):t(a)}}const cr={name:"lineEnding",tokenize:ju};function ju(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),se(e,t,"linePrefix")}}const dn={name:"thematicBreak",tokenize:Vu};function Vu(e,t,n){let r=0,i;return o;function o(c){return e.enter("thematicBreak"),a(c)}function a(c){return i=c,s(c)}function s(c){return c===i?(e.enter("thematicBreakSequence"),l(c)):r>=3&&(c===null||Q(c))?(e.exit("thematicBreak"),t(c)):n(c)}function l(c){return c===i?(e.consume(c),r++,l):(e.exit("thematicBreakSequence"),ae(c)?se(e,s,"whitespace")(c):s(c))}}const We={continuation:{tokenize:Xu},exit:Ju,name:"list",tokenize:Zu},qu={partial:!0,tokenize:ed},Yu={partial:!0,tokenize:Qu};function Zu(e,t,n){const r=this,i=r.events[r.events.length-1];let o=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,a=0;return s;function s(f){const g=r.containerState.type||(f===42||f===43||f===45?"listUnordered":"listOrdered");if(g==="listUnordered"?!r.containerState.marker||f===r.containerState.marker:ar(f)){if(r.containerState.type||(r.containerState.type=g,e.enter(g,{_container:!0})),g==="listUnordered")return e.enter("listItemPrefix"),f===42||f===45?e.check(dn,n,c)(f):c(f);if(!r.interrupt||f===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(f)}return n(f)}function l(f){return ar(f)&&++a<10?(e.consume(f),l):(!r.interrupt||a<2)&&(r.containerState.marker?f===r.containerState.marker:f===41||f===46)?(e.exit("listItemValue"),c(f)):n(f)}function c(f){return e.enter("listItemMarker"),e.consume(f),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||f,e.check(Kt,r.interrupt?n:u,e.attempt(qu,p,d))}function u(f){return r.containerState.initialBlankLine=!0,o++,p(f)}function d(f){return ae(f)?(e.enter("listItemPrefixWhitespace"),e.consume(f),e.exit("listItemPrefixWhitespace"),p):n(f)}function p(f){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(f)}}function Xu(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Kt,i,o);function i(s){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,se(e,t,"listItemIndent",r.containerState.size+1)(s)}function o(s){return r.containerState.furtherBlankLines||!ae(s)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,a(s)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(Yu,t,a)(s))}function a(s){return r.containerState._closeFlow=!0,r.interrupt=void 0,se(e,e.attempt(We,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function Qu(e,t,n){const r=this;return se(e,i,"listItemIndent",r.containerState.size+1);function i(o){const a=r.events[r.events.length-1];return a&&a[1].type==="listItemIndent"&&a[2].sliceSerialize(a[1],!0).length===r.containerState.size?t(o):n(o)}}function Ju(e){e.exit(this.containerState.type)}function ed(e,t,n){const r=this;return se(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(o){const a=r.events[r.events.length-1];return!ae(o)&&a&&a[1].type==="listItemPrefixWhitespace"?t(o):n(o)}}const na={name:"setextUnderline",resolveTo:td,tokenize:nd};function td(e,t){let n=e.length,r,i,o;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!o&&e[n][1].type==="definition"&&(o=n);const a={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",o?(e.splice(i,0,["enter",a,t]),e.splice(o+1,0,["exit",e[r][1],t]),e[r][1].end={...e[o][1].end}):e[r][1]=a,e.push(["exit",a,t]),e}function nd(e,t,n){const r=this;let i;return o;function o(c){let u=r.events.length,d;for(;u--;)if(r.events[u][1].type!=="lineEnding"&&r.events[u][1].type!=="linePrefix"&&r.events[u][1].type!=="content"){d=r.events[u][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||d)?(e.enter("setextHeadingLine"),i=c,a(c)):n(c)}function a(c){return e.enter("setextHeadingLineSequence"),s(c)}function s(c){return c===i?(e.consume(c),s):(e.exit("setextHeadingLineSequence"),ae(c)?se(e,l,"lineSuffix")(c):l(c))}function l(c){return c===null||Q(c)?(e.exit("setextHeadingLine"),t(c)):n(c)}}const rd={tokenize:id};function id(e){const t=this,n=e.attempt(Kt,r,e.attempt(this.parser.constructs.flowInitial,i,se(e,e.attempt(this.parser.constructs.flow,i,e.attempt(cu,i)),"linePrefix")));return n;function r(o){if(o===null){e.consume(o);return}return e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const ad={resolveAll:ia()},od=ra("string"),sd=ra("text");function ra(e){return{resolveAll:ia(e==="text"?ld:void 0),tokenize:t};function t(n){const r=this,i=this.parser.constructs[e],o=n.attempt(i,a,s);return a;function a(u){return c(u)?o(u):s(u)}function s(u){if(u===null){n.consume(u);return}return n.enter("data"),n.consume(u),l}function l(u){return c(u)?(n.exit("data"),o(u)):(n.consume(u),l)}function c(u){if(u===null)return!0;const d=i[u];let p=-1;if(d)for(;++p<d.length;){const f=d[p];if(!f.previous||f.previous.call(r,r.previous))return!0}return!1}}}function ia(e){return t;function t(n,r){let i=-1,o;for(;++i<=n.length;)o===void 0?n[i]&&n[i][1].type==="data"&&(o=i,i++):(!n[i]||n[i][1].type!=="data")&&(i!==o+2&&(n[o][1].end=n[i-1][1].end,n.splice(o+2,i-o-2),i=o+2),o=void 0);return e?e(n,r):n}}function ld(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],i=t.sliceStream(r);let o=i.length,a=-1,s=0,l;for(;o--;){const c=i[o];if(typeof c=="string"){for(a=c.length;c.charCodeAt(a-1)===32;)s++,a--;if(a)break;a=-1}else if(c===-2)l=!0,s++;else if(c!==-1){o++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(s=0),s){const c={type:n===e.length||l||s<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:o?a:r.start._bufferIndex+a,_index:r.start._index+o,line:r.end.line,column:r.end.column-s,offset:r.end.offset-s},end:{...r.end}};r.end={...c.start},r.start.offset===r.end.offset?Object.assign(r,c):(e.splice(n,0,["enter",c,t],["exit",c,t]),n+=2)}n++}return e}const cd=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:{91:gu},disable:{null:[]},document:{42:We,43:We,45:We,48:We,49:We,50:We,51:We,52:We,53:We,54:We,55:We,56:We,57:We,62:ji},flow:{35:_u,42:dn,45:[na,dn],60:Su,61:na,95:dn,96:Zi,126:Zi},flowInitial:{[-2]:sr,[-1]:sr,32:sr},insideSpan:{null:[or,ad]},string:{38:qi,92:Vi},text:{[-5]:cr,[-4]:cr,[-3]:cr,33:Hu,38:qi,42:or,60:[Gc,Ru],91:Gu,92:[yu,Vi],93:lr,95:or,96:ru}},Symbol.toStringTag,{value:"Module"}));function ud(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const i={},o=[];let a=[],s=[];const l={attempt:P(R),check:P(w),consume:T,enter:k,exit:C,interrupt:P(w,{interrupt:!0})},c={code:null,containerState:{},defineSkip:m,events:[],now:g,parser:e,previous:null,sliceSerialize:p,sliceStream:f,write:d};let u=t.tokenize.call(c,l);return t.resolveAll&&o.push(t),c;function d(z){return a=Qe(a,z),x(),a[a.length-1]!==null?[]:(F(t,0),c.events=un(o,c.events,c),c.events)}function p(z,U){return fd(f(z),U)}function f(z){return dd(a,z)}function g(){const{_bufferIndex:z,_index:U,line:ne,column:V,offset:G}=r;return{_bufferIndex:z,_index:U,line:ne,column:V,offset:G}}function m(z){i[z.line]=z.column,S()}function x(){let z;for(;r._index<a.length;){const U=a[r._index];if(typeof U=="string")for(z=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===z&&r._bufferIndex<U.length;)E(U.charCodeAt(r._bufferIndex));else E(U)}}function E(z){u=u(z)}function T(z){Q(z)?(r.line++,r.column=1,r.offset+=z===-3?2:1,S()):z!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===a[r._index].length&&(r._bufferIndex=-1,r._index++)),c.previous=z}function k(z,U){const ne=U||{};return ne.type=z,ne.start=g(),c.events.push(["enter",ne,c]),s.push(ne),ne}function C(z){const U=s.pop();return U.end=g(),c.events.push(["exit",U,c]),U}function R(z,U){F(z,U.from)}function w(z,U){U.restore()}function P(z,U){return ne;function ne(V,G,N){let D,L,j,h;return Array.isArray(V)?ee(V):"tokenize"in V?ee([V]):Z(V);function Z(pe){return Pe;function Pe(we){const Ne=we!==null&&pe[we],Oe=we!==null&&pe.null,ze=[...Array.isArray(Ne)?Ne:Ne?[Ne]:[],...Array.isArray(Oe)?Oe:Oe?[Oe]:[]];return ee(ze)(we)}}function ee(pe){return D=pe,L=0,pe.length===0?N:b(pe[L])}function b(pe){return Pe;function Pe(we){return h=$(),j=pe,pe.partial||(c.currentConstruct=pe),pe.name&&c.parser.constructs.disable.null.includes(pe.name)?ye():pe.tokenize.call(U?Object.assign(Object.create(c),U):c,l,ue,ye)(we)}}function ue(pe){return z(j,h),G}function ye(pe){return h.restore(),++L<D.length?b(D[L]):N}}}function F(z,U){z.resolveAll&&!o.includes(z)&&o.push(z),z.resolve&&Ze(c.events,U,c.events.length-U,z.resolve(c.events.slice(U),c)),z.resolveTo&&(c.events=z.resolveTo(c.events,c))}function $(){const z=g(),U=c.previous,ne=c.currentConstruct,V=c.events.length,G=Array.from(s);return{from:V,restore:N};function N(){r=z,c.previous=U,c.currentConstruct=ne,c.events.length=V,s=G,S()}}function S(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function dd(e,t){const n=t.start._index,r=t.start._bufferIndex,i=t.end._index,o=t.end._bufferIndex;let a;if(n===i)a=[e[n].slice(r,o)];else{if(a=e.slice(n,i),r>-1){const s=a[0];typeof s=="string"?a[0]=s.slice(r):a.shift()}o>0&&a.push(e[i].slice(0,o))}return a}function fd(e,t){let n=-1;const r=[];let i;for(;++n<e.length;){const o=e[n];let a;if(typeof o=="string")a=o;else switch(o){case-5:{a="\r";break}case-4:{a=`
145
+ `;break}case-3:{a=`\r
146
+ `;break}case-2:{a=t?" ":" ";break}case-1:{if(!t&&i)continue;a=" ";break}default:a=String.fromCharCode(o)}i=o===-2,r.push(a)}return r.join("")}function pd(e){const r={constructs:Hi([cd,...(e||{}).extensions||[]]),content:i(Fc),defined:[],document:i(zc),flow:i(rd),lazy:{},string:i(od),text:i(sd)};return r;function i(o){return a;function a(s){return ud(r,o,s)}}}function gd(e){for(;!Xi(e););return e}const aa=/[\0\t\n\r]/g;function hd(){let e=1,t="",n=!0,r;return i;function i(o,a,s){const l=[];let c,u,d,p,f;for(o=t+(typeof o=="string"?o.toString():new TextDecoder(a||void 0).decode(o)),d=0,t="",n&&(o.charCodeAt(0)===65279&&d++,n=void 0);d<o.length;){if(aa.lastIndex=d,c=aa.exec(o),p=c&&c.index!==void 0?c.index:o.length,f=o.charCodeAt(p),!c){t=o.slice(d);break}if(f===10&&d===p&&r)l.push(-3),r=void 0;else switch(r&&(l.push(-5),r=void 0),d<p&&(l.push(o.slice(d,p)),e+=p-d),f){case 0:{l.push(65533),e++;break}case 9:{for(u=Math.ceil(e/4)*4,l.push(-2);e++<u;)l.push(-1);break}case 10:{l.push(-4),e=1;break}default:r=!0,e=1}d=p+1}return s&&(r&&l.push(-5),t&&l.push(t),l.push(null)),l}}const md=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function bd(e){return e.replace(md,yd)}function yd(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),o=i===120||i===88;return Ki(n.slice(o?2:1),o?16:10)}return ir(n)||e}const oa={}.hasOwnProperty;function Ed(e,t,n){return typeof t!="string"&&(n=t,t=void 0),_d(n)(gd(pd(n).document().write(hd()(e,t,!0))))}function _d(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(H),autolinkProtocol:$,autolinkEmail:$,atxHeading:o(Te),blockQuote:o(Oe),characterEscape:$,characterReference:$,codeFenced:o(ze),codeFencedFenceInfo:a,codeFencedFenceMeta:a,codeIndented:o(ze,a),codeText:o(Ue,a),codeTextData:$,data:$,codeFlowValue:$,definition:o($e),definitionDestinationString:a,definitionLabelString:a,definitionTitleString:a,emphasis:o(at),hardBreakEscape:o(ie),hardBreakTrailing:o(ie),htmlFlow:o(ke,a),htmlFlowData:$,htmlText:o(ke,a),htmlTextData:$,image:o(q),label:a,link:o(H),listItem:o(X),listItemValue:p,listOrdered:o(W,d),listUnordered:o(W),paragraph:o(Re),reference:b,referenceString:a,resourceDestinationString:a,resourceTitleString:a,setextHeading:o(Te),strong:o(Ee),thematicBreak:o(st)},exit:{atxHeading:l(),atxHeadingSequence:R,autolink:l(),autolinkEmail:Ne,autolinkProtocol:we,blockQuote:l(),characterEscapeValue:S,characterReferenceMarkerHexadecimal:ye,characterReferenceMarkerNumeric:ye,characterReferenceValue:pe,characterReference:Pe,codeFenced:l(x),codeFencedFence:m,codeFencedFenceInfo:f,codeFencedFenceMeta:g,codeFlowValue:S,codeIndented:l(E),codeText:l(G),codeTextData:S,data:S,definition:l(),definitionDestinationString:C,definitionLabelString:T,definitionTitleString:k,emphasis:l(),hardBreakEscape:l(U),hardBreakTrailing:l(U),htmlFlow:l(ne),htmlFlowData:S,htmlText:l(V),htmlTextData:S,image:l(D),label:j,labelText:L,lineEnding:z,link:l(N),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:ue,resourceDestinationString:h,resourceTitleString:Z,resource:ee,setextHeading:l(F),setextHeadingLineSequence:P,setextHeadingText:w,strong:l(),thematicBreak:l()}};sa(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(_){let v={type:"root",children:[]};const I={stack:[v],tokenStack:[],config:t,enter:s,exit:c,buffer:a,resume:u,data:n},B=[];let J=-1;for(;++J<_.length;)if(_[J][1].type==="listOrdered"||_[J][1].type==="listUnordered")if(_[J][0]==="enter")B.push(J);else{const le=B.pop();J=i(_,le,J)}for(J=-1;++J<_.length;){const le=t[_[J][0]];oa.call(le,_[J][1].type)&&le[_[J][1].type].call(Object.assign({sliceSerialize:_[J][2].sliceSerialize},I),_[J][1])}if(I.tokenStack.length>0){const le=I.tokenStack[I.tokenStack.length-1];(le[1]||la).call(I,void 0,le[0])}for(v.position={start:ct(_.length>0?_[0][1].start:{line:1,column:1,offset:0}),end:ct(_.length>0?_[_.length-2][1].end:{line:1,column:1,offset:0})},J=-1;++J<t.transforms.length;)v=t.transforms[J](v)||v;return v}function i(_,v,I){let B=v-1,J=-1,le=!1,Ve,Ie,de,Ae;for(;++B<=I;){const Se=_[B];switch(Se[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Se[0]==="enter"?J++:J--,Ae=void 0;break}case"lineEndingBlank":{Se[0]==="enter"&&(Ve&&!Ae&&!J&&!de&&(de=B),Ae=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Ae=void 0}if(!J&&Se[0]==="enter"&&Se[1].type==="listItemPrefix"||J===-1&&Se[0]==="exit"&&(Se[1].type==="listUnordered"||Se[1].type==="listOrdered")){if(Ve){let tt=B;for(Ie=void 0;tt--;){const Xe=_[tt];if(Xe[1].type==="lineEnding"||Xe[1].type==="lineEndingBlank"){if(Xe[0]==="exit")continue;Ie&&(_[Ie][1].type="lineEndingBlank",le=!0),Xe[1].type="lineEnding",Ie=tt}else if(!(Xe[1].type==="linePrefix"||Xe[1].type==="blockQuotePrefix"||Xe[1].type==="blockQuotePrefixWhitespace"||Xe[1].type==="blockQuoteMarker"||Xe[1].type==="listItemIndent"))break}de&&(!Ie||de<Ie)&&(Ve._spread=!0),Ve.end=Object.assign({},Ie?_[Ie][1].start:Se[1].end),_.splice(Ie||B,0,["exit",Ve,Se[2]]),B++,I++}if(Se[1].type==="listItemPrefix"){const tt={type:"listItem",_spread:!1,start:Object.assign({},Se[1].start),end:void 0};Ve=tt,_.splice(B,0,["enter",tt,Se[2]]),B++,I++,de=void 0,Ae=!0}}}return _[v][1]._spread=le,I}function o(_,v){return I;function I(B){s.call(this,_(B),B),v&&v.call(this,B)}}function a(){this.stack.push({type:"fragment",children:[]})}function s(_,v,I){this.stack[this.stack.length-1].children.push(_),this.stack.push(_),this.tokenStack.push([v,I||void 0]),_.position={start:ct(v.start),end:void 0}}function l(_){return v;function v(I){_&&_.call(this,I),c.call(this,I)}}function c(_,v){const I=this.stack.pop(),B=this.tokenStack.pop();if(B)B[0].type!==_.type&&(v?v.call(this,_,B[0]):(B[1]||la).call(this,_,B[0]));else throw new Error("Cannot close `"+_.type+"` ("+$t({start:_.start,end:_.end})+"): it’s not open");I.position.end=ct(_.end)}function u(){return rr(this.stack.pop())}function d(){this.data.expectingFirstListItemValue=!0}function p(_){if(this.data.expectingFirstListItemValue){const v=this.stack[this.stack.length-2];v.start=Number.parseInt(this.sliceSerialize(_),10),this.data.expectingFirstListItemValue=void 0}}function f(){const _=this.resume(),v=this.stack[this.stack.length-1];v.lang=_}function g(){const _=this.resume(),v=this.stack[this.stack.length-1];v.meta=_}function m(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function x(){const _=this.resume(),v=this.stack[this.stack.length-1];v.value=_.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function E(){const _=this.resume(),v=this.stack[this.stack.length-1];v.value=_.replace(/(\r?\n|\r)$/g,"")}function T(_){const v=this.resume(),I=this.stack[this.stack.length-1];I.label=v,I.identifier=et(this.sliceSerialize(_)).toLowerCase()}function k(){const _=this.resume(),v=this.stack[this.stack.length-1];v.title=_}function C(){const _=this.resume(),v=this.stack[this.stack.length-1];v.url=_}function R(_){const v=this.stack[this.stack.length-1];if(!v.depth){const I=this.sliceSerialize(_).length;v.depth=I}}function w(){this.data.setextHeadingSlurpLineEnding=!0}function P(_){const v=this.stack[this.stack.length-1];v.depth=this.sliceSerialize(_).codePointAt(0)===61?1:2}function F(){this.data.setextHeadingSlurpLineEnding=void 0}function $(_){const I=this.stack[this.stack.length-1].children;let B=I[I.length-1];(!B||B.type!=="text")&&(B=je(),B.position={start:ct(_.start),end:void 0},I.push(B)),this.stack.push(B)}function S(_){const v=this.stack.pop();v.value+=this.sliceSerialize(_),v.position.end=ct(_.end)}function z(_){const v=this.stack[this.stack.length-1];if(this.data.atHardBreak){const I=v.children[v.children.length-1];I.position.end=ct(_.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(v.type)&&($.call(this,_),S.call(this,_))}function U(){this.data.atHardBreak=!0}function ne(){const _=this.resume(),v=this.stack[this.stack.length-1];v.value=_}function V(){const _=this.resume(),v=this.stack[this.stack.length-1];v.value=_}function G(){const _=this.resume(),v=this.stack[this.stack.length-1];v.value=_}function N(){const _=this.stack[this.stack.length-1];if(this.data.inReference){const v=this.data.referenceType||"shortcut";_.type+="Reference",_.referenceType=v,delete _.url,delete _.title}else delete _.identifier,delete _.label;this.data.referenceType=void 0}function D(){const _=this.stack[this.stack.length-1];if(this.data.inReference){const v=this.data.referenceType||"shortcut";_.type+="Reference",_.referenceType=v,delete _.url,delete _.title}else delete _.identifier,delete _.label;this.data.referenceType=void 0}function L(_){const v=this.sliceSerialize(_),I=this.stack[this.stack.length-2];I.label=bd(v),I.identifier=et(v).toLowerCase()}function j(){const _=this.stack[this.stack.length-1],v=this.resume(),I=this.stack[this.stack.length-1];if(this.data.inReference=!0,I.type==="link"){const B=_.children;I.children=B}else I.alt=v}function h(){const _=this.resume(),v=this.stack[this.stack.length-1];v.url=_}function Z(){const _=this.resume(),v=this.stack[this.stack.length-1];v.title=_}function ee(){this.data.inReference=void 0}function b(){this.data.referenceType="collapsed"}function ue(_){const v=this.resume(),I=this.stack[this.stack.length-1];I.label=v,I.identifier=et(this.sliceSerialize(_)).toLowerCase(),this.data.referenceType="full"}function ye(_){this.data.characterReferenceType=_.type}function pe(_){const v=this.sliceSerialize(_),I=this.data.characterReferenceType;let B;I?(B=Ki(v,I==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):B=ir(v);const J=this.stack[this.stack.length-1];J.value+=B}function Pe(_){const v=this.stack.pop();v.position.end=ct(_.end)}function we(_){S.call(this,_);const v=this.stack[this.stack.length-1];v.url=this.sliceSerialize(_)}function Ne(_){S.call(this,_);const v=this.stack[this.stack.length-1];v.url="mailto:"+this.sliceSerialize(_)}function Oe(){return{type:"blockquote",children:[]}}function ze(){return{type:"code",lang:null,meta:null,value:""}}function Ue(){return{type:"inlineCode",value:""}}function $e(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function at(){return{type:"emphasis",children:[]}}function Te(){return{type:"heading",depth:0,children:[]}}function ie(){return{type:"break"}}function ke(){return{type:"html",value:""}}function q(){return{type:"image",title:null,url:"",alt:null}}function H(){return{type:"link",title:null,url:"",children:[]}}function W(_){return{type:"list",ordered:_.type==="listOrdered",start:null,spread:_._spread,children:[]}}function X(_){return{type:"listItem",spread:_._spread,checked:null,children:[]}}function Re(){return{type:"paragraph",children:[]}}function Ee(){return{type:"strong",children:[]}}function je(){return{type:"text",value:""}}function st(){return{type:"thematicBreak"}}}function ct(e){return{line:e.line,column:e.column,offset:e.offset}}function sa(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?sa(e,r):xd(e,r)}}function xd(e,t){let n;for(n in t)if(oa.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function la(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+$t({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+$t({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+$t({start:t.start,end:t.end})+") is still open")}function wd(e){const t=this;t.parser=n;function n(r){return Ed(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function kd(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function Sd(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
147
+ `}]}function vd(e,t){const n=t.value?t.value+`
148
+ `:"",r={};t.lang&&(r.className=["language-"+t.lang]);let i={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(i.data={meta:t.meta}),e.patch(t,i),i=e.applyData(t,i),i={type:"element",tagName:"pre",properties:{},children:[i]},e.patch(t,i),i}function Td(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Nd(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Ad(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),i=Tt(r.toLowerCase()),o=e.footnoteOrder.indexOf(r);let a,s=e.footnoteCounts.get(r);s===void 0?(s=0,e.footnoteOrder.push(r),a=e.footnoteOrder.length):a=o+1,s+=1,e.footnoteCounts.set(r,s);const l={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+i,id:n+"fnref-"+i+(s>1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(a)}]};e.patch(t,l);const c={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,c),e.applyData(t,c)}function Cd(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Od(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function ca(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const i=e.all(t),o=i[0];o&&o.type==="text"?o.value="["+o.value:i.unshift({type:"text",value:"["});const a=i[i.length-1];return a&&a.type==="text"?a.value+=r:i.push({type:"text",value:r}),i}function Rd(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return ca(e,t);const i={src:Tt(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const o={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,o),e.applyData(t,o)}function Id(e,t){const n={src:Tt(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function Md(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function Ld(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return ca(e,t);const i={href:Tt(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const o={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)}function Dd(e,t){const n={href:Tt(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Pd(e,t,n){const r=e.all(t),i=n?Fd(n):ua(t),o={},a=[];if(typeof t.checked=="boolean"){const u=r[0];let d;u&&u.type==="element"&&u.tagName==="p"?d=u:(d={type:"element",tagName:"p",properties:{},children:[]},r.unshift(d)),d.children.length>0&&d.children.unshift({type:"text",value:" "}),d.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let s=-1;for(;++s<r.length;){const u=r[s];(i||s!==0||u.type!=="element"||u.tagName!=="p")&&a.push({type:"text",value:`
149
+ `}),u.type==="element"&&u.tagName==="p"&&!i?a.push(...u.children):a.push(u)}const l=r[r.length-1];l&&(i||l.type!=="element"||l.tagName!=="p")&&a.push({type:"text",value:`
150
+ `});const c={type:"element",tagName:"li",properties:o,children:a};return e.patch(t,c),e.applyData(t,c)}function Fd(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=ua(n[r])}return t}function ua(e){const t=e.spread;return t??e.children.length>1}function Bd(e,t){const n={},r=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i<r.length;){const a=r[i];if(a.type==="element"&&a.tagName==="li"&&a.properties&&Array.isArray(a.properties.className)&&a.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const o={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,o),e.applyData(t,o)}function zd(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Ud(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function $d(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Hd(e,t){const n=e.all(t),r=n.shift(),i=[];if(r){const a={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],a),i.push(a)}if(n.length>0){const a={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},s=Xn(t.children[1]),l=Ci(t.children[t.children.length-1]);s&&l&&(a.position={start:s,end:l}),i.push(a)}const o={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,o),e.applyData(t,o)}function Kd(e,t,n){const r=n?n.children:void 0,o=(r?r.indexOf(t):1)===0?"th":"td",a=n&&n.type==="table"?n.align:void 0,s=a?a.length:t.children.length;let l=-1;const c=[];for(;++l<s;){const d=t.children[l],p={},f=a?a[l]:void 0;f&&(p.align=f);let g={type:"element",tagName:o,properties:p,children:[]};d&&(g.children=e.all(d),e.patch(d,g),g=e.applyData(d,g)),c.push(g)}const u={type:"element",tagName:"tr",properties:{},children:e.wrap(c,!0)};return e.patch(t,u),e.applyData(t,u)}function Gd(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const da=9,fa=32;function Wd(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),i=0;const o=[];for(;r;)o.push(pa(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return o.push(pa(t.slice(i),i>0,!1)),o.join("")}function pa(e,t,n){let r=0,i=e.length;if(t){let o=e.codePointAt(r);for(;o===da||o===fa;)r++,o=e.codePointAt(r)}if(n){let o=e.codePointAt(i-1);for(;o===da||o===fa;)i--,o=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function jd(e,t){const n={type:"text",value:Wd(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function Vd(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const qd={blockquote:kd,break:Sd,code:vd,delete:Td,emphasis:Nd,footnoteReference:Ad,heading:Cd,html:Od,imageReference:Rd,image:Id,inlineCode:Md,linkReference:Ld,link:Dd,listItem:Pd,list:Bd,paragraph:zd,root:Ud,strong:$d,table:Hd,tableCell:Gd,tableRow:Kd,text:jd,thematicBreak:Vd,toml:fn,yaml:fn,definition:fn,footnoteDefinition:fn};function fn(){}const ga=-1,pn=0,jt=1,gn=2,ur=3,dr=4,fr=5,pr=6,ha=7,ma=8,ba=typeof self=="object"?self:globalThis,Yd=(e,t)=>{const n=(i,o)=>(e.set(o,i),i),r=i=>{if(e.has(i))return e.get(i);const[o,a]=t[i];switch(o){case pn:case ga:return n(a,i);case jt:{const s=n([],i);for(const l of a)s.push(r(l));return s}case gn:{const s=n({},i);for(const[l,c]of a)s[r(l)]=r(c);return s}case ur:return n(new Date(a),i);case dr:{const{source:s,flags:l}=a;return n(new RegExp(s,l),i)}case fr:{const s=n(new Map,i);for(const[l,c]of a)s.set(r(l),r(c));return s}case pr:{const s=n(new Set,i);for(const l of a)s.add(r(l));return s}case ha:{const{name:s,message:l}=a;return n(new ba[s](l),i)}case ma:return n(BigInt(a),i);case"BigInt":return n(Object(BigInt(a)),i);case"ArrayBuffer":return n(new Uint8Array(a).buffer,a);case"DataView":{const{buffer:s}=new Uint8Array(a);return n(new DataView(s),a)}}return n(new ba[o](a),i)};return r},ya=e=>Yd(new Map,e)(0),At="",{toString:Zd}={},{keys:Xd}=Object,Vt=e=>{const t=typeof e;if(t!=="object"||!e)return[pn,t];const n=Zd.call(e).slice(8,-1);switch(n){case"Array":return[jt,At];case"Object":return[gn,At];case"Date":return[ur,At];case"RegExp":return[dr,At];case"Map":return[fr,At];case"Set":return[pr,At];case"DataView":return[jt,n]}return n.includes("Array")?[jt,n]:n.includes("Error")?[ha,n]:[gn,n]},hn=([e,t])=>e===pn&&(t==="function"||t==="symbol"),Qd=(e,t,n,r)=>{const i=(a,s)=>{const l=r.push(a)-1;return n.set(s,l),l},o=a=>{if(n.has(a))return n.get(a);let[s,l]=Vt(a);switch(s){case pn:{let u=a;switch(l){case"bigint":s=ma,u=a.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);u=null;break;case"undefined":return i([ga],a)}return i([s,u],a)}case jt:{if(l){let p=a;return l==="DataView"?p=new Uint8Array(a.buffer):l==="ArrayBuffer"&&(p=new Uint8Array(a)),i([l,[...p]],a)}const u=[],d=i([s,u],a);for(const p of a)u.push(o(p));return d}case gn:{if(l)switch(l){case"BigInt":return i([l,a.toString()],a);case"Boolean":case"Number":case"String":return i([l,a.valueOf()],a)}if(t&&"toJSON"in a)return o(a.toJSON());const u=[],d=i([s,u],a);for(const p of Xd(a))(e||!hn(Vt(a[p])))&&u.push([o(p),o(a[p])]);return d}case ur:return i([s,a.toISOString()],a);case dr:{const{source:u,flags:d}=a;return i([s,{source:u,flags:d}],a)}case fr:{const u=[],d=i([s,u],a);for(const[p,f]of a)(e||!(hn(Vt(p))||hn(Vt(f))))&&u.push([o(p),o(f)]);return d}case pr:{const u=[],d=i([s,u],a);for(const p of a)(e||!hn(Vt(p)))&&u.push(o(p));return d}}const{message:c}=a;return i([s,{name:l,message:c}],a)};return o},Ea=(e,{json:t,lossy:n}={})=>{const r=[];return Qd(!(t||n),!!t,new Map,r)(e),r},qt=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?ya(Ea(e,t)):structuredClone(e):(e,t)=>ya(Ea(e,t));function Jd(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function ef(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function tf(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||Jd,r=e.options.footnoteBackLabel||ef,i=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",a=e.options.footnoteLabelProperties||{className:["sr-only"]},s=[];let l=-1;for(;++l<e.footnoteOrder.length;){const c=e.footnoteById.get(e.footnoteOrder[l]);if(!c)continue;const u=e.all(c),d=String(c.identifier).toUpperCase(),p=Tt(d.toLowerCase());let f=0;const g=[],m=e.footnoteCounts.get(d);for(;m!==void 0&&++f<=m;){g.length>0&&g.push({type:"text",value:" "});let T=typeof n=="string"?n:n(l,f);typeof T=="string"&&(T={type:"text",value:T}),g.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+p+(f>1?"-"+f:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(l,f),className:["data-footnote-backref"]},children:Array.isArray(T)?T:[T]})}const x=u[u.length-1];if(x&&x.type==="element"&&x.tagName==="p"){const T=x.children[x.children.length-1];T&&T.type==="text"?T.value+=" ":x.children.push({type:"text",value:" "}),x.children.push(...g)}else u.push(...g);const E={type:"element",tagName:"li",properties:{id:t+"fn-"+p},children:e.wrap(u,!0)};e.patch(c,E),s.push(E)}if(s.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...qt(a),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
151
+ `},{type:"element",tagName:"ol",properties:{},children:e.wrap(s,!0)},{type:"text",value:`
152
+ `}]}}const Yt=function(e){if(e==null)return of;if(typeof e=="function")return mn(e);if(typeof e=="object")return Array.isArray(e)?nf(e):rf(e);if(typeof e=="string")return af(e);throw new Error("Expected function, string, or object as test")};function nf(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Yt(e[n]);return mn(r);function r(...i){let o=-1;for(;++o<t.length;)if(t[o].apply(this,i))return!0;return!1}}function rf(e){const t=e;return mn(n);function n(r){const i=r;let o;for(o in e)if(i[o]!==t[o])return!1;return!0}}function af(e){return mn(t);function t(n){return n&&n.type===e}}function mn(e){return t;function t(n,r,i){return!!(sf(n)&&e.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}function of(){return!0}function sf(e){return e!==null&&typeof e=="object"&&"type"in e}function hy(e){return e}const _a=[],lf=!0,gr=!1,cf="skip";function xa(e,t,n,r){let i;typeof t=="function"&&typeof n!="function"?(r=n,n=t):i=t;const o=Yt(i),a=r?-1:1;s(e,void 0,[])();function s(l,c,u){const d=l&&typeof l=="object"?l:{};if(typeof d.type=="string"){const f=typeof d.tagName=="string"?d.tagName:typeof d.name=="string"?d.name:void 0;Object.defineProperty(p,"name",{value:"node ("+(l.type+(f?"<"+f+">":""))+")"})}return p;function p(){let f=_a,g,m,x;if((!t||o(l,c,u[u.length-1]||void 0))&&(f=uf(n(l,u)),f[0]===gr))return f;if("children"in l&&l.children){const E=l;if(E.children&&f[0]!==cf)for(m=(r?E.children.length:-1)+a,x=u.concat(E);m>-1&&m<E.children.length;){const T=E.children[m];if(g=s(T,m,x)(),g[0]===gr)return g;m=typeof g[1]=="number"?g[1]:m+a}}return f}}}function uf(e){return Array.isArray(e)?e:typeof e=="number"?[lf,e]:e==null?_a:[e]}function bn(e,t,n,r){let i,o,a;typeof t=="function"&&typeof n!="function"?(o=void 0,a=t,i=n):(o=t,a=n,i=r),xa(e,o,s,i);function s(l,c){const u=c[c.length-1],d=u?u.children.indexOf(l):void 0;return a(l,d,u)}}const hr={}.hasOwnProperty,df={};function ff(e,t){const n=t||df,r=new Map,i=new Map,o=new Map,a={...qd,...n.handlers},s={all:c,applyData:gf,definitionById:r,footnoteById:i,footnoteCounts:o,footnoteOrder:[],handlers:a,one:l,options:n,patch:pf,wrap:mf};return bn(e,function(u){if(u.type==="definition"||u.type==="footnoteDefinition"){const d=u.type==="definition"?r:i,p=String(u.identifier).toUpperCase();d.has(p)||d.set(p,u)}}),s;function l(u,d){const p=u.type,f=s.handlers[p];if(hr.call(s.handlers,p)&&f)return f(s,u,d);if(s.options.passThrough&&s.options.passThrough.includes(p)){if("children"in u){const{children:m,...x}=u,E=qt(x);return E.children=s.all(u),E}return qt(u)}return(s.options.unknownHandler||hf)(s,u,d)}function c(u){const d=[];if("children"in u){const p=u.children;let f=-1;for(;++f<p.length;){const g=s.one(p[f],u);if(g){if(f&&p[f-1].type==="break"&&(!Array.isArray(g)&&g.type==="text"&&(g.value=wa(g.value)),!Array.isArray(g)&&g.type==="element")){const m=g.children[0];m&&m.type==="text"&&(m.value=wa(m.value))}Array.isArray(g)?d.push(...g):d.push(g)}}}return d}}function pf(e,t){e.position&&(t.position=Ri(e))}function gf(e,t){let n=t;if(e&&e.data){const r=e.data.hName,i=e.data.hChildren,o=e.data.hProperties;if(typeof r=="string")if(n.type==="element")n.tagName=r;else{const a="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:a}}n.type==="element"&&o&&Object.assign(n.properties,qt(o)),"children"in n&&n.children&&i!==null&&i!==void 0&&(n.children=i)}return n}function hf(e,t){const n=t.data||{},r="value"in t&&!(hr.call(n,"hProperties")||hr.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)}function mf(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:`
153
153
  `});++r<e.length;)r&&n.push({type:"text",value:`
154
154
  `}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:`
155
- `}),n}function xi(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function bi(e,t){const n=Lu(e,t),r=n.one(e,void 0),i=Su(n),o=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&o.children.push({type:"text",value:`
156
- `},i),o}function Fu(e,t){return e&&"run"in e?async function(n,r){const i=bi(n,{file:r,...t});await e.run(i,r)}:function(n,r){return bi(n,{file:r,...e||t})}}function wi(e){if(e)throw e}var Ut=Object.prototype.hasOwnProperty,ki=Object.prototype.toString,Si=Object.defineProperty,vi=Object.getOwnPropertyDescriptor,Ei=function(t){return typeof Array.isArray=="function"?Array.isArray(t):ki.call(t)==="[object Array]"},Ci=function(t){if(!t||ki.call(t)!=="[object Object]")return!1;var n=Ut.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&Ut.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var i;for(i in t);return typeof i>"u"||Ut.call(t,i)},_i=function(t,n){Si&&n.name==="__proto__"?Si(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},Ti=function(t,n){if(n==="__proto__")if(Ut.call(t,n)){if(vi)return vi(t,n).value}else return;return t[n]},zu=function e(){var t,n,r,i,o,l,a=arguments[0],u=1,f=arguments.length,s=!1;for(typeof a=="boolean"&&(s=a,a=arguments[1]||{},u=2),(a==null||typeof a!="object"&&typeof a!="function")&&(a={});u<f;++u)if(t=arguments[u],t!=null)for(n in t)r=Ti(a,n),i=Ti(t,n),a!==i&&(s&&i&&(Ci(i)||(o=Ei(i)))?(o?(o=!1,l=r&&Ei(r)?r:[]):l=r&&Ci(r)?r:{},_i(a,{name:n,newValue:e(s,l,i)})):typeof i<"u"&&_i(a,{name:n,newValue:i}));return a};const Tn=Wt(zu);function In(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Bu(){const e=[],t={run:n,use:r};return t;function n(...i){let o=-1;const l=i.pop();if(typeof l!="function")throw new TypeError("Expected function as last argument, not "+l);a(null,...i);function a(u,...f){const s=e[++o];let c=-1;if(u){l(u);return}for(;++c<i.length;)(f[c]===null||f[c]===void 0)&&(f[c]=i[c]);i=f,s?Uu(s,a)(...f):l(null,...f)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),t}}function Uu(e,t){let n;return r;function r(...l){const a=e.length>l.length;let u;a&&l.push(i);try{u=e.apply(this,l)}catch(f){const s=f;if(a&&n)throw s;return i(s)}a||(u&&u.then&&typeof u.then=="function"?u.then(o,i):u instanceof Error?i(u):o(u))}function i(l,...a){n||(n=!0,t(l,...a))}function o(l){i(null,l)}}const We={basename:Hu,dirname:Vu,extname:Wu,join:Yu,sep:"/"};function Hu(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');_t(e);let n=0,r=-1,i=e.length,o;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(o){n=i+1;break}}else r<0&&(o=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let l=-1,a=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(o){n=i+1;break}}else l<0&&(o=!0,l=i+1),a>-1&&(e.codePointAt(i)===t.codePointAt(a--)?a<0&&(r=i):(a=-1,r=l));return n===r?r=l:r<0&&(r=e.length),e.slice(n,r)}function Vu(e){if(_t(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function Wu(e){_t(e);let t=e.length,n=-1,r=0,i=-1,o=0,l;for(;t--;){const a=e.codePointAt(t);if(a===47){if(l){r=t+1;break}continue}n<0&&(l=!0,n=t+1),a===46?i<0?i=t:o!==1&&(o=1):i>-1&&(o=-1)}return i<0||n<0||o===0||o===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function Yu(...e){let t=-1,n;for(;++t<e.length;)_t(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":Ku(n)}function Ku(e){_t(e);const t=e.codePointAt(0)===47;let n=qu(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function qu(e,t){let n="",r=0,i=-1,o=0,l=-1,a,u;for(;++l<=e.length;){if(l<e.length)a=e.codePointAt(l);else{if(a===47)break;a=47}if(a===47){if(!(i===l-1||o===1))if(i!==l-1&&o===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(u=n.lastIndexOf("/"),u!==n.length-1){u<0?(n="",r=0):(n=n.slice(0,u),r=n.length-1-n.lastIndexOf("/")),i=l,o=0;continue}}else if(n.length>0){n="",r=0,i=l,o=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,l):n=e.slice(i+1,l),r=l-i-1;i=l,o=0}else a===46&&o>-1?o++:o=-1}return n}function _t(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Gu={cwd:Xu};function Xu(){return"/"}function An(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function Qu(e){if(typeof e=="string")e=new URL(e);else if(!An(e)){const t=new 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(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return Ju(e)}function Ju(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const r=t.codePointAt(n+2);if(r===70||r===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(t)}const Rn=["history","path","basename","stem","extname","dirname"];class Ii{constructor(t){let n;t?An(t)?n={path:t}:typeof t=="string"||Zu(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":Gu.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<Rn.length;){const o=Rn[r];o in n&&n[o]!==void 0&&n[o]!==null&&(this[o]=o==="history"?[...n[o]]:n[o])}let i;for(i in n)Rn.includes(i)||(this[i]=n[i])}get basename(){return typeof this.path=="string"?We.basename(this.path):void 0}set basename(t){Pn(t,"basename"),On(t,"basename"),this.path=We.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?We.dirname(this.path):void 0}set dirname(t){Ai(this.basename,"dirname"),this.path=We.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?We.extname(this.path):void 0}set extname(t){if(On(t,"extname"),Ai(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=We.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){An(t)&&(t=Qu(t)),Pn(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?We.basename(this.path,this.extname):void 0}set stem(t){Pn(t,"stem"),On(t,"stem"),this.path=We.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const i=this.message(t,n,r);throw i.fatal=!0,i}info(t,n,r){const i=this.message(t,n,r);return i.fatal=void 0,i}message(t,n,r){const i=new ke(t,n,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function On(e,t){if(e&&e.includes(We.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+We.sep+"`")}function Pn(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function Ai(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function Zu(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const $u=function(e){const r=this.constructor.prototype,i=r[e],o=function(){return i.apply(o,arguments)};return Object.setPrototypeOf(o,r),o},ec={}.hasOwnProperty;class Ln extends $u{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=Bu()}copy(){const t=new Ln;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(Tn(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(Dn("data",this.frozen),this.namespace[t]=n,this):ec.call(this.namespace,t)&&this.namespace[t]||void 0:t?(Dn("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const i=n.call(t,...r);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=Ht(t),r=this.parser||this.Parser;return jn("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),jn("process",this.parser||this.Parser),Nn("process",this.compiler||this.Compiler),n?i(void 0,n):new Promise(i);function i(o,l){const a=Ht(t),u=r.parse(a);r.run(u,a,function(s,c,h){if(s||!c||!h)return f(s);const p=c,y=r.stringify(p,h);rc(y)?h.value=y:h.result=y,f(s,h)});function f(s,c){s||!c?l(s):o?o(c):n(void 0,c)}}}processSync(t){let n=!1,r;return this.freeze(),jn("processSync",this.parser||this.Parser),Nn("processSync",this.compiler||this.Compiler),this.process(t,i),Oi("processSync","process",n),r;function i(o,l){n=!0,wi(o),r=l}}run(t,n,r){Ri(t),this.freeze();const i=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?o(void 0,r):new Promise(o);function o(l,a){const u=Ht(n);i.run(t,u,f);function f(s,c,h){const p=c||t;s?a(s):l?l(p):r(void 0,p,h)}}}runSync(t,n){let r=!1,i;return this.run(t,n,o),Oi("runSync","run",r),i;function o(l,a){wi(l),i=a,r=!0}}stringify(t,n){this.freeze();const r=Ht(n),i=this.compiler||this.Compiler;return Nn("stringify",i),Ri(t),i(t,r)}use(t,...n){const r=this.attachers,i=this.namespace;if(Dn("use",this.frozen),t!=null)if(typeof t=="function")u(t,n);else if(typeof t=="object")Array.isArray(t)?a(t):l(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function o(f){if(typeof f=="function")u(f,[]);else if(typeof f=="object")if(Array.isArray(f)){const[s,...c]=f;u(s,c)}else l(f);else throw new TypeError("Expected usable value, not `"+f+"`")}function l(f){if(!("plugins"in f)&&!("settings"in f))throw new 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");a(f.plugins),f.settings&&(i.settings=Tn(!0,i.settings,f.settings))}function a(f){let s=-1;if(f!=null)if(Array.isArray(f))for(;++s<f.length;){const c=f[s];o(c)}else throw new TypeError("Expected a list of plugins, not `"+f+"`")}function u(f,s){let c=-1,h=-1;for(;++c<r.length;)if(r[c][0]===f){h=c;break}if(h===-1)r.push([f,...s]);else if(s.length>0){let[p,...y]=s;const x=r[h][1];In(x)&&In(p)&&(p=Tn(!0,x,p)),r[h]=[f,p,...y]}}}}const tc=new Ln().freeze();function jn(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Nn(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Dn(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Ri(e){if(!In(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Oi(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Ht(e){return nc(e)?e:new Ii(e)}function nc(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function rc(e){return typeof e=="string"||ic(e)}function ic(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const oc="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Pi=[],Li={allowDangerousHtml:!0},lc=/^(https?|ircs?|mailto|xmpp)$/i,ac=[{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:"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 ji(e){const t=sc(e),n=uc(e);return cc(t.runSync(t.parse(n),n),e)}function sc(e){const t=e.rehypePlugins||Pi,n=e.remarkPlugins||Pi,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Li}:Li;return tc().use(Vs).use(n).use(Fu,r).use(t)}function uc(e){const t=e.children||"",n=new Ii;return typeof t=="string"&&(n.value=t),n}function cc(e,t){const n=t.allowedElements,r=t.allowElement,i=t.components,o=t.disallowedElements,l=t.skipHtml,a=t.unwrapDisallowed,u=t.urlTransform||fc;for(const s of ac)Object.hasOwn(t,s.from)&&(""+s.from+(s.to?"use `"+s.to+"` instead":"remove it")+oc+s.id,void 0);return t.className&&(e={type:"element",tagName:"div",properties:{className:t.className},children:e.type==="root"?e.children:[e]}),yi(e,f),Ol(e,{Fragment:E.Fragment,components:i,ignoreInvalidStyle:!0,jsx:E.jsx,jsxs:E.jsxs,passKeys:!0,passNode:!0});function f(s,c,h){if(s.type==="raw"&&h&&typeof c=="number")return l?h.children.splice(c,1):h.children[c]={type:"text",value:s.value},c;if(s.type==="element"){let p;for(p in hn)if(Object.hasOwn(hn,p)&&Object.hasOwn(s.properties,p)){const y=s.properties[p],x=hn[p];(x===null||x.includes(s.tagName))&&(s.properties[p]=u(String(y||""),p,s))}}if(s.type==="element"){let p=n?!n.includes(s.tagName):o?o.includes(s.tagName):!1;if(!p&&r&&typeof c=="number"&&(p=!r(s,c,h)),p&&h&&typeof c=="number")return a&&s.children?h.children.splice(c,1,...s.children):h.children.splice(c,1),c}}}function fc(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return t===-1||i!==-1&&t>i||n!==-1&&t>n||r!==-1&&t>r||lc.test(e.slice(0,t))?e:""}function Ni(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Ni(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function pt(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Ni(e))&&(r&&(r+=" "),r+=t);return r}const Di={primary:"#EC994B",secondary:"#1E3A8A",background:"#FFFFFF",text:{primary:"#1F2937",inverse:"#FFFFFF"},input:{background:"#F9FAFB",border:"#E5E7EB"},message:{user:"#1E3A8A",userText:"#FFFFFF",assistant:"#FFFFFF"},suggestedQuestions:{background:"#F3F4F6",text:"#1F2937",hoverBackground:"#E5E7EB"},iconColor:"#EC994B"},Je=()=>({header:{title:"AI Assistant"},theme:Di,welcome:{title:"Hello! How can I help you today?",description:"I'm your AI assistant, ready to help with any questions you might have."},suggestedQuestions:[{text:"What can you help me with?",query:"What can you help me with?"},{text:"Tell me about your features",query:"Tell me about your features"},{text:"How do I get started?",query:"How do I get started?"}],icon:"sparkles"}),Tt=(e,t=null,n=null)=>{if(!e||typeof e!="string")throw new Error("API URL must be a valid string");if(t!==null&&typeof t!="string")throw new Error("API key must be a valid string or null");if(n!==null&&typeof n!="string")throw new Error("Session ID must be a valid string or null")},Mi=e=>E.jsx("a",{...e,target:"_blank",rel:"noopener noreferrer",className:"text-orange-500 hover:text-orange-700 underline",children:e.children}),Mn=({iconName:e,size:t,className:n,style:r})=>{switch(e){case"heart":return E.jsx(lo,{size:t,className:n,style:r});case"message-circle":return E.jsx(Kn,{size:t,className:n,style:r});case"help-circle":return E.jsx(ao,{size:t,className:n,style:r});case"info":return E.jsx(so,{size:t,className:n,style:r});case"bot":return E.jsx(to,{size:t,className:n,style:r});case"sparkles":return E.jsx(fo,{size:t,className:n,style:r});case"message-square":default:return E.jsx(uo,{size:t,className:n,style:r})}},Vt=e=>{const[t,n]=j.useState(!1),[r,i]=j.useState(""),[o,l]=j.useState(!1),[a,u]=j.useState(!1),f=j.useRef(null),s=j.useRef(null),c=250,h=j.useRef(null),[p,y]=j.useState(!1),[x,T]=j.useState(!1),[k,A]=j.useState(!1),[S,z]=j.useState(!1),U=j.useRef(new Set),w=j.useRef(!0),L=j.useRef(),Y=j.useRef(null),M=j.useRef(!1),[K,O]=j.useState(!1),[P,$]=j.useState(null),[G,H]=j.useState(window.innerWidth);j.useEffect(()=>{const R=()=>H(window.innerWidth);return window.addEventListener("resize",R),()=>window.removeEventListener("resize",R)},[]);const le=Je(),[te,ge]=j.useState({...le,...e}),B=te.theme||Di;j.useEffect(()=>{e.apiUrl&&e.apiKey&&e.sessionId&&Tt(e.apiUrl,e.apiKey,e.sessionId)},[e.apiUrl,e.apiKey,e.sessionId]),j.useEffect(()=>{const R=X=>{ge(X.detail)};return window.addEventListener("chatbot-config-update",R),()=>{window.removeEventListener("chatbot-config-update",R)}},[]),j.useEffect(()=>{e&&ge(R=>({...R,...e}))},[e]);const{messages:d,isLoading:ae,sendMessage:ve,clearMessages:g}=Zt();j.useEffect(()=>{d.length===0&&U.current.clear()},[d.length]);const ye=()=>{n(!t),t||(l(!1),setTimeout(()=>de(!0),100))},Fe=()=>{r.trim()&&!ae&&(w.current=!0,ve(r),i(""),setTimeout(()=>de(!0),100))},se=R=>{R.key==="Enter"&&!R.shiftKey&&(R.preventDefault(),Fe())},Be=async(R,X)=>{try{await navigator.clipboard.writeText(R),$(X),setTimeout(()=>{$(null)},2e3)}catch(ue){console.error("Failed to copy text: ",ue)}},Ee=R=>{const X=/(https?:\/\/[^\s]+?)([.,;:!?)]*)(?=\s|$)/g;return R.replace(X,(Se,Oe,Ce)=>`[${Oe}](${Oe})${Ce}`)},Ne=R=>R.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"}),de=(R=!1)=>{if(h.current){const{scrollHeight:X}=h.current;h.current.scrollTo({top:X,behavior:R?"auto":"smooth"}),setTimeout(()=>{De()},R?0:300)}},De=()=>{if(h.current&&!K){const{scrollTop:R,scrollHeight:X,clientHeight:ue}=h.current,Se=Math.abs(X-R-ue)<10,Oe=R<10;y(!Oe&&R>200),T(!Se)}},It=()=>{h.current&&(z(!0),h.current.scrollTo({top:0,behavior:"smooth"}),setTimeout(()=>{z(!1),De()},300))},dt=R=>{const X=R.target.value;X.length<=c&&i(X)},At=R=>{U.current.add(R),R===d.length-1&&(O(!1),setTimeout(()=>de(),50))},it=R=>U.current.has(R);j.useEffect(()=>{(ae||d.length===0)&&de(!0)},[d,ae]),j.useEffect(()=>{t&&s.current&&s.current.focus()},[t]),j.useEffect(()=>()=>{L.current&&clearTimeout(L.current)},[]);const qe=({content:R,onComplete:X,messageIndex:ue,inputRef:Se})=>{const[Oe,Ce]=j.useState(""),[ot,Ge]=j.useState(!0),Ze=j.useRef(0),b=j.useRef(!1),_=j.useRef(),N=j.useRef(!1),V=j.useRef(R);j.useEffect(()=>{if(it(ue)){Ce(R),Ge(!1),X();return}if(!N.current)return N.current=!0,V.current=R,J(),()=>{_.current&&cancelAnimationFrame(_.current)}},[ue]);const J=()=>{if(b.current)return;b.current=!0,M.current=!0,O(!0);let ne=Ze.current,he=0;Ge(ne===0);const Ye=Ke=>{if(ne<V.current.length){const be=V.current.slice(0,ne+1);Ce(be),ne===0&&Ge(!1),Ke-he>100&&(de(),he=Ke),ne++,Ze.current=ne,_.current=requestAnimationFrame(Ye)}else xe()};_.current=requestAnimationFrame(Ye)},xe=()=>{M.current=!1,X(),b.current=!1,O(!1),de()};return j.useEffect(()=>{const ne=()=>{b.current&&(_.current&&cancelAnimationFrame(_.current),Ce(V.current),Ge(!1),xe())},he=Se.current;return he&&he.addEventListener("input",ne),()=>{he&&he.removeEventListener("input",ne)}},[Se,X]),j.useEffect(()=>{const ne=()=>{document.hidden?_.current&&(cancelAnimationFrame(_.current),b.current=!1):N.current&&!b.current&&Ze.current>0&&Ze.current<V.current.length&&J()};return document.addEventListener("visibilitychange",ne),()=>{document.removeEventListener("visibilitychange",ne)}},[]),E.jsxs(E.Fragment,{children:[Oe&&E.jsx("div",{className:"prose prose-base max-w-full whitespace-pre-wrap",style:{overflowWrap:"anywhere",wordBreak:"break-word",width:"100%",maxWidth:"100%",fontSize:"16px"},children:E.jsx(ji,{components:{a:ne=>E.jsx(Mi,{...ne}),p:ne=>E.jsx("p",{style:{overflowWrap:"anywhere",wordBreak:"break-word",whiteSpace:"pre-line",margin:"0 0 0.5em 0"},...ne}),code:ne=>E.jsx("code",{style:{display:"block",whiteSpace:"pre-wrap",overflowX:"auto",overflowWrap:"anywhere"},...ne})},children:Ee(Oe)})}),ot&&E.jsxs("div",{className:"text-gray-500",children:[E.jsx("span",{className:"font-medium",children:"Thinking"}),E.jsxs("span",{className:"animate-dots ml-1",children:[E.jsx("span",{className:"dot",children:"."}),E.jsx("span",{className:"dot",children:"."}),E.jsx("span",{className:"dot",children:"."})]})]})]})};return E.jsxs("div",{className:"fixed bottom-4 right-4 z-50 flex flex-col items-end font-sans",style:{fontFamily:'Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif'},children:[t&&E.jsxs("div",{className:"mb-4 w-full sm:w-[500px] md:w-[650px] lg:w-[700px] rounded-xl shadow-xl flex flex-col overflow-hidden border border-gray-200 transition-all duration-300 ease-in-out",style:{background:B.background,height:"650px",maxHeight:"calc(100vh - 100px)",width:G<640?"100%":G<768?"500px":G<1024?"650px":"700px",minWidth:G<640?"100%":"500px"},children:[E.jsxs("div",{className:"p-4 flex justify-between items-center shrink-0",style:{background:B.primary,color:B.text.inverse},children:[E.jsxs("div",{className:"flex items-center",children:[E.jsx(Mn,{iconName:te.icon,size:32,className:"mr-3",style:{color:B.secondary}}),E.jsx("h3",{className:"text-xl font-medium",children:te.header.title})]}),E.jsxs("div",{className:"flex items-center space-x-3",children:[E.jsx("button",{onClick:()=>{g(),U.current.clear()},className:"transition-colors p-2 rounded-full hover:bg-opacity-20 hover:bg-black",style:{color:B.text.inverse},"aria-label":"Clear conversation",title:"Clear conversation",children:E.jsx(po,{size:20})}),E.jsx("button",{onClick:ye,className:"transition-colors p-2 rounded-full hover:bg-opacity-20 hover:bg-black",style:{color:B.text.inverse},"aria-label":"Minimize chat",children:E.jsx(qn,{size:20})})]})]}),E.jsxs("div",{ref:h,className:"flex-1 p-4 overflow-y-auto scroll-smooth relative messages-container",style:{background:B.input.background,overflowY:"auto"},onScroll:De,children:[p&&E.jsx("button",{onClick:It,className:"sticky top-3 left-[calc(100%-48px)] z-10 flex items-center justify-center p-2 rounded-full shadow-md",style:{backgroundColor:B.primary,color:B.text.inverse},"aria-label":"Scroll to top",title:"Scroll to top",children:E.jsx(io,{size:20})}),x&&!K&&E.jsx("button",{onClick:()=>de(),className:"sticky bottom-3 left-[calc(100%-48px)] z-10 flex items-center justify-center p-2 rounded-full shadow-md",style:{backgroundColor:B.primary,color:B.text.inverse},"aria-label":"Scroll to bottom",title:"Scroll to bottom",children:E.jsx(ro,{size:20})}),d.length===0?E.jsxs("div",{className:"text-center py-16",children:[E.jsx(Mn,{iconName:te.icon,size:56,className:"mx-auto mb-4",style:{color:B.iconColor}}),E.jsx("h4",{className:"font-medium text-xl text-[#2C3E50] mb-2",children:te.welcome.title}),E.jsx("p",{className:"text-lg text-gray-600 mb-6",children:te.welcome.description}),E.jsx("div",{className:"w-full px-4",children:te.suggestedQuestions.map((R,X)=>E.jsxs("button",{onClick:()=>{ve(R.query),setTimeout(()=>{s.current&&s.current.focus()},100)},className:"w-full text-left text-base p-3 rounded-lg transition-colors mb-3 flex items-center",style:{backgroundColor:B.suggestedQuestions.background,color:B.suggestedQuestions.text},onMouseEnter:ue=>{ue.currentTarget.style.backgroundColor=B.suggestedQuestions.hoverBackground},onMouseLeave:ue=>{ue.currentTarget.style.backgroundColor=B.suggestedQuestions.background},children:[E.jsx(Kn,{size:20,className:"mr-2 flex-shrink-0"}),E.jsx("span",{children:R.text})]},X))})]}):E.jsxs("div",{className:"space-y-5",children:[d.map((R,X)=>{const ue=new Date;ue.setMinutes(ue.getMinutes()-(d.length-X));const Se=R.role==="assistant"&&X===d.length-1,Oe=Se&&ae;return E.jsx("div",{className:pt("flex",R.role==="user"?"justify-end":"justify-start"),ref:X===d.length-1?Y:null,children:E.jsxs("div",{className:pt("max-w-[85%] rounded-xl p-4 shadow-sm",R.role==="user"?"rounded-tr-none":"rounded-tl-none"),style:{background:R.role==="user"?B.message.user:B.message.assistant,color:R.role==="user"?B.message.userText:B.text.primary,border:R.role==="assistant"?`1px solid ${B.input.border}`:"none",width:"100%",maxWidth:"85%",wordWrap:"break-word",overflowWrap:"anywhere"},children:[R.role==="assistant"?Oe?E.jsxs("div",{className:"text-gray-500",children:[E.jsx("span",{className:"font-medium",children:"Thinking"}),E.jsxs("span",{className:"animate-dots ml-1",children:[E.jsx("span",{className:"dot",children:"."}),E.jsx("span",{className:"dot",children:"."}),E.jsx("span",{className:"dot",children:"."})]})]}):!it(X)&&Se?E.jsx(qe,{content:R.content,onComplete:()=>At(X),messageIndex:X,inputRef:s}):E.jsx("div",{className:"prose prose-base max-w-full whitespace-pre-wrap",style:{overflowWrap:"anywhere",wordBreak:"break-word",width:"100%",maxWidth:"100%",fontSize:"16px"},children:E.jsx(ji,{components:{a:Ce=>E.jsx(Mi,{...Ce}),p:Ce=>E.jsx("p",{style:{overflowWrap:"anywhere",wordBreak:"break-word",whiteSpace:"pre-line",margin:"0 0 0.5em 0"},...Ce}),code:Ce=>E.jsx("code",{style:{display:"block",whiteSpace:"pre-wrap",overflowX:"auto",overflowWrap:"anywhere"},...Ce})},children:Ee(R.content)})}):E.jsx("p",{className:"text-base",style:{overflowWrap:"anywhere",wordBreak:"break-word",whiteSpace:"pre-wrap",width:"100%"},children:R.content}),E.jsxs("div",{className:pt("flex text-xs mt-2",R.role==="user"?"justify-start text-white/70":"justify-between text-gray-400"),children:[E.jsx("span",{children:Ne(ue)}),R.role==="assistant"&&!Oe&&E.jsxs("div",{className:"relative",children:[E.jsx("button",{onClick:()=>Be(R.content,X),className:"text-gray-400 hover:text-gray-600 transition-colors ml-2 p-1 rounded-full hover:bg-gray-100","aria-label":"Copy to clipboard",children:P===X?E.jsx(no,{size:16}):E.jsx(oo,{size:16})}),P===X&&E.jsx("div",{className:"absolute bottom-full right-0 mb-1 px-2 py-1 text-xs rounded-md shadow-sm animate-fade-in-out whitespace-nowrap",style:{backgroundColor:B.secondary,color:B.text.inverse},children:"Copied!"})]})]})]})},X)}),ae&&d.length===0&&E.jsx("div",{className:"flex justify-start",children:E.jsx("div",{className:"bg-white border border-gray-200 rounded-xl rounded-tl-none max-w-[85%] p-4 shadow-sm",children:E.jsxs("div",{className:"text-gray-500",children:[E.jsx("span",{className:"font-medium",children:"Thinking"}),E.jsxs("span",{className:"animate-dots ml-1",children:[E.jsx("span",{className:"dot",children:"."}),E.jsx("span",{className:"dot",children:"."}),E.jsx("span",{className:"dot",children:"."})]})]})})}),E.jsx("div",{ref:f})]})]}),E.jsx("div",{className:"p-4 border-t shrink-0",style:{borderColor:B.input.border,background:B.background,boxShadow:"0 -2px 10px rgba(0,0,0,0.05)"},children:E.jsxs("div",{className:"flex items-end gap-3",children:[E.jsxs("div",{className:pt("flex-1 relative rounded-xl transition-all duration-200 overflow-hidden",k?"ring-2":"ring-0"),style:{borderColor:B.input.border,border:"1px solid",boxShadow:k?"0 0 0 2px rgba(236, 153, 75, 0.2)":"none","--tw-ring-color":B.secondary,background:B.input.background},children:[E.jsx("textarea",{ref:s,value:r,onChange:dt,onKeyDown:se,onFocus:()=>A(!0),onBlur:()=>A(!1),placeholder:"Type your message...",maxLength:c,className:"w-full resize-none outline-none p-3 pr-12 text-base custom-scrollbar",style:{background:"transparent",color:B.text.primary,height:"48px",minHeight:"48px",maxHeight:"96px",overflow:"auto",lineHeight:"1.5",boxSizing:"border-box"}}),r.length>0&&E.jsxs("div",{className:"absolute bottom-2 right-3 text-xs px-2 py-1 rounded-full",style:{color:r.length>=c*.9?"#ef4444":"#6b7280",backgroundColor:r.length>=c*.9?"rgba(239, 68, 68, 0.1)":"rgba(107, 114, 128, 0.1)",fontSize:"0.7rem"},children:[r.length,"/",c]})]}),E.jsx("button",{onClick:Fe,disabled:!r.trim()||ae,className:pt("rounded-full transition-all duration-200 flex items-center justify-center shrink-0",r.trim()&&!ae?"hover:shadow-md transform hover:-translate-y-0.5":"bg-gray-200 text-gray-400 cursor-not-allowed"),style:{backgroundColor:r.trim()&&!ae?B.secondary:void 0,color:r.trim()&&!ae?"white":void 0,width:"48px",height:"48px",padding:"12px"},"aria-label":"Send message",children:E.jsx(co,{size:24})})]})})]}),E.jsxs("div",{className:"relative",children:[o&&!t&&E.jsx("span",{className:"absolute -top-1 -right-1 h-4 w-4 bg-orange-500 rounded-full animate-pulse z-10"}),E.jsx("button",{onClick:ye,onMouseEnter:()=>u(!0),onMouseLeave:()=>u(!1),className:pt("rounded-full shadow-lg flex items-center justify-center transition-all duration-300",a&&!t&&"animate-pulse",!t&&"animate-bounce-gentle"),style:{backgroundColor:B.primary,color:B.text.inverse,width:"80px",height:"80px"},"aria-label":t?"Close chat":"Open chat",children:t?E.jsx(qn,{size:40,className:"text-white",style:{opacity:.9}}):E.jsx(Mn,{iconName:"message-square",size:40,className:"text-white"})})]}),E.jsx("style",{children:`
155
+ `}),n}function wa(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function ka(e,t){const n=ff(e,t),r=n.one(e,void 0),i=tf(n),o=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&o.children.push({type:"text",value:`
156
+ `},i),o}function bf(e,t){return e&&"run"in e?async function(n,r){const i=ka(n,{file:r,...t});await e.run(i,r)}:function(n,r){return ka(n,{file:r,...e||t})}}function Sa(e){if(e)throw e}var yn=Object.prototype.hasOwnProperty,va=Object.prototype.toString,Ta=Object.defineProperty,Na=Object.getOwnPropertyDescriptor,Aa=function(t){return typeof Array.isArray=="function"?Array.isArray(t):va.call(t)==="[object Array]"},Ca=function(t){if(!t||va.call(t)!=="[object Object]")return!1;var n=yn.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&yn.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var i;for(i in t);return typeof i>"u"||yn.call(t,i)},Oa=function(t,n){Ta&&n.name==="__proto__"?Ta(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},Ra=function(t,n){if(n==="__proto__")if(yn.call(t,n)){if(Na)return Na(t,n).value}else return;return t[n]},yf=function e(){var t,n,r,i,o,a,s=arguments[0],l=1,c=arguments.length,u=!1;for(typeof s=="boolean"&&(u=s,s=arguments[1]||{},l=2),(s==null||typeof s!="object"&&typeof s!="function")&&(s={});l<c;++l)if(t=arguments[l],t!=null)for(n in t)r=Ra(s,n),i=Ra(t,n),s!==i&&(u&&i&&(Ca(i)||(o=Aa(i)))?(o?(o=!1,a=r&&Aa(r)?r:[]):a=r&&Ca(r)?r:{},Oa(s,{name:n,newValue:e(u,a,i)})):typeof i<"u"&&Oa(s,{name:n,newValue:i}));return s};const mr=an(yf);function br(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Ef(){const e=[],t={run:n,use:r};return t;function n(...i){let o=-1;const a=i.pop();if(typeof a!="function")throw new TypeError("Expected function as last argument, not "+a);s(null,...i);function s(l,...c){const u=e[++o];let d=-1;if(l){a(l);return}for(;++d<i.length;)(c[d]===null||c[d]===void 0)&&(c[d]=i[d]);i=c,u?_f(u,s)(...c):a(null,...c)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),t}}function _f(e,t){let n;return r;function r(...a){const s=e.length>a.length;let l;s&&a.push(i);try{l=e.apply(this,a)}catch(c){const u=c;if(s&&n)throw u;return i(u)}s||(l&&l.then&&typeof l.then=="function"?l.then(o,i):l instanceof Error?i(l):o(l))}function i(a,...s){n||(n=!0,t(a,...s))}function o(a){i(null,a)}}const nt={basename:xf,dirname:wf,extname:kf,join:Sf,sep:"/"};function xf(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Zt(e);let n=0,r=-1,i=e.length,o;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(o){n=i+1;break}}else r<0&&(o=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let a=-1,s=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(o){n=i+1;break}}else a<0&&(o=!0,a=i+1),s>-1&&(e.codePointAt(i)===t.codePointAt(s--)?s<0&&(r=i):(s=-1,r=a));return n===r?r=a:r<0&&(r=e.length),e.slice(n,r)}function wf(e){if(Zt(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function kf(e){Zt(e);let t=e.length,n=-1,r=0,i=-1,o=0,a;for(;t--;){const s=e.codePointAt(t);if(s===47){if(a){r=t+1;break}continue}n<0&&(a=!0,n=t+1),s===46?i<0?i=t:o!==1&&(o=1):i>-1&&(o=-1)}return i<0||n<0||o===0||o===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function Sf(...e){let t=-1,n;for(;++t<e.length;)Zt(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":vf(n)}function vf(e){Zt(e);const t=e.codePointAt(0)===47;let n=Tf(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function Tf(e,t){let n="",r=0,i=-1,o=0,a=-1,s,l;for(;++a<=e.length;){if(a<e.length)s=e.codePointAt(a);else{if(s===47)break;s=47}if(s===47){if(!(i===a-1||o===1))if(i!==a-1&&o===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(l=n.lastIndexOf("/"),l!==n.length-1){l<0?(n="",r=0):(n=n.slice(0,l),r=n.length-1-n.lastIndexOf("/")),i=a,o=0;continue}}else if(n.length>0){n="",r=0,i=a,o=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,a):n=e.slice(i+1,a),r=a-i-1;i=a,o=0}else s===46&&o>-1?o++:o=-1}return n}function Zt(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Nf={cwd:Af};function Af(){return"/"}function yr(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function Cf(e){if(typeof e=="string")e=new URL(e);else if(!yr(e)){const t=new 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(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return Of(e)}function Of(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const r=t.codePointAt(n+2);if(r===70||r===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(t)}const Er=["history","path","basename","stem","extname","dirname"];class Ia{constructor(t){let n;t?yr(t)?n={path:t}:typeof t=="string"||Rf(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":Nf.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<Er.length;){const o=Er[r];o in n&&n[o]!==void 0&&n[o]!==null&&(this[o]=o==="history"?[...n[o]]:n[o])}let i;for(i in n)Er.includes(i)||(this[i]=n[i])}get basename(){return typeof this.path=="string"?nt.basename(this.path):void 0}set basename(t){xr(t,"basename"),_r(t,"basename"),this.path=nt.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?nt.dirname(this.path):void 0}set dirname(t){Ma(this.basename,"dirname"),this.path=nt.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?nt.extname(this.path):void 0}set extname(t){if(_r(t,"extname"),Ma(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=nt.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){yr(t)&&(t=Cf(t)),xr(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?nt.basename(this.path,this.extname):void 0}set stem(t){xr(t,"stem"),_r(t,"stem"),this.path=nt.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const i=this.message(t,n,r);throw i.fatal=!0,i}info(t,n,r){const i=this.message(t,n,r);return i.fatal=void 0,i}message(t,n,r){const i=new Le(t,n,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function _r(e,t){if(e&&e.includes(nt.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+nt.sep+"`")}function xr(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function Ma(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function Rf(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const If=function(e){const r=this.constructor.prototype,i=r[e],o=function(){return i.apply(o,arguments)};return Object.setPrototypeOf(o,r),o},Mf={}.hasOwnProperty;class wr extends If{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=Ef()}copy(){const t=new wr;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(mr(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(vr("data",this.frozen),this.namespace[t]=n,this):Mf.call(this.namespace,t)&&this.namespace[t]||void 0:t?(vr("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const i=n.call(t,...r);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=En(t),r=this.parser||this.Parser;return kr("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),kr("process",this.parser||this.Parser),Sr("process",this.compiler||this.Compiler),n?i(void 0,n):new Promise(i);function i(o,a){const s=En(t),l=r.parse(s);r.run(l,s,function(u,d,p){if(u||!d||!p)return c(u);const f=d,g=r.stringify(f,p);Pf(g)?p.value=g:p.result=g,c(u,p)});function c(u,d){u||!d?a(u):o?o(d):n(void 0,d)}}}processSync(t){let n=!1,r;return this.freeze(),kr("processSync",this.parser||this.Parser),Sr("processSync",this.compiler||this.Compiler),this.process(t,i),Da("processSync","process",n),r;function i(o,a){n=!0,Sa(o),r=a}}run(t,n,r){La(t),this.freeze();const i=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?o(void 0,r):new Promise(o);function o(a,s){const l=En(n);i.run(t,l,c);function c(u,d,p){const f=d||t;u?s(u):a?a(f):r(void 0,f,p)}}}runSync(t,n){let r=!1,i;return this.run(t,n,o),Da("runSync","run",r),i;function o(a,s){Sa(a),i=s,r=!0}}stringify(t,n){this.freeze();const r=En(n),i=this.compiler||this.Compiler;return Sr("stringify",i),La(t),i(t,r)}use(t,...n){const r=this.attachers,i=this.namespace;if(vr("use",this.frozen),t!=null)if(typeof t=="function")l(t,n);else if(typeof t=="object")Array.isArray(t)?s(t):a(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function o(c){if(typeof c=="function")l(c,[]);else if(typeof c=="object")if(Array.isArray(c)){const[u,...d]=c;l(u,d)}else a(c);else throw new TypeError("Expected usable value, not `"+c+"`")}function a(c){if(!("plugins"in c)&&!("settings"in c))throw new 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(c.plugins),c.settings&&(i.settings=mr(!0,i.settings,c.settings))}function s(c){let u=-1;if(c!=null)if(Array.isArray(c))for(;++u<c.length;){const d=c[u];o(d)}else throw new TypeError("Expected a list of plugins, not `"+c+"`")}function l(c,u){let d=-1,p=-1;for(;++d<r.length;)if(r[d][0]===c){p=d;break}if(p===-1)r.push([c,...u]);else if(u.length>0){let[f,...g]=u;const m=r[p][1];br(m)&&br(f)&&(f=mr(!0,m,f)),r[p]=[c,f,...g]}}}}const Lf=new wr().freeze();function kr(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Sr(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function vr(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function La(e){if(!br(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Da(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function En(e){return Df(e)?e:new Ia(e)}function Df(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function Pf(e){return typeof e=="string"||Ff(e)}function Ff(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Bf="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Pa=[],Fa={allowDangerousHtml:!0},zf=/^(https?|ircs?|mailto|xmpp)$/i,Uf=[{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 Ba(e){const t=$f(e),n=Hf(e);return Kf(t.runSync(t.parse(n),n),e)}function $f(e){const t=e.rehypePlugins||Pa,n=e.remarkPlugins||Pa,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Fa}:Fa;return Lf().use(wd).use(n).use(bf,r).use(t)}function Hf(e){const t=e.children||"",n=new Ia;return typeof t=="string"&&(n.value=t),n}function Kf(e,t){const n=t.allowedElements,r=t.allowElement,i=t.components,o=t.disallowedElements,a=t.skipHtml,s=t.unwrapDisallowed,l=t.urlTransform||Gf;for(const u of Uf)Object.hasOwn(t,u.from)&&(""+u.from+(u.to?"use `"+u.to+"` instead":"remove it")+Bf+u.id,void 0);return bn(e,c),gc(e,{Fragment:A.Fragment,components:i,ignoreInvalidStyle:!0,jsx:A.jsx,jsxs:A.jsxs,passKeys:!0,passNode:!0});function c(u,d,p){if(u.type==="raw"&&p&&typeof d=="number")return a?p.children.splice(d,1):p.children[d]={type:"text",value:u.value},d;if(u.type==="element"){let f;for(f in nr)if(Object.hasOwn(nr,f)&&Object.hasOwn(u.properties,f)){const g=u.properties[f],m=nr[f];(m===null||m.includes(u.tagName))&&(u.properties[f]=l(String(g||""),f,u))}}if(u.type==="element"){let f=n?!n.includes(u.tagName):o?o.includes(u.tagName):!1;if(!f&&r&&typeof d=="number"&&(f=!r(u,d,p)),f&&p&&typeof d=="number")return s&&u.children?p.children.splice(d,1,...u.children):p.children.splice(d,1),d}}}function Gf(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return t===-1||i!==-1&&t>i||n!==-1&&t>n||r!==-1&&t>r||zf.test(e.slice(0,t))?e:""}function za(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=za(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Ct(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=za(e))&&(r&&(r+=" "),r+=t);return r}const Ua={primary:"#EC994B",secondary:"#1E3A8A",background:"#FFFFFF",text:{primary:"#1F2937",inverse:"#FFFFFF"},input:{background:"#F9FAFB",border:"#E5E7EB"},message:{user:"#1E3A8A",userText:"#FFFFFF",assistant:"#FFFFFF"},suggestedQuestions:{background:"#F3F4F6",text:"#1F2937",hoverBackground:"#E5E7EB"},iconColor:"#EC994B"},ut=()=>({header:{title:"AI Assistant"},theme:Ua,welcome:{title:"Hello! How can I help you today?",description:"I'm your AI assistant, ready to help with any questions you might have."},suggestedQuestions:[{text:"What can you help me with?",query:"What can you help me with?"},{text:"Tell me about your features",query:"Tell me about your features"},{text:"How do I get started?",query:"How do I get started?"}],icon:"sparkles"}),Xt=(e,t=null,n=null)=>{if(!e||typeof e!="string")throw new Error("API URL must be a valid string");if(t!==null&&typeof t!="string")throw new Error("API key must be a valid string or null");if(n!==null&&typeof n!="string")throw new Error("Session ID must be a valid string or null")},Wf=e=>Mn.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:"lucide lucide-messages-square-icon lucide-messages-square",...e},Mn.createElement("path",{d:"M14 9a2 2 0 0 1-2 2H6l-4 4V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2z"}),Mn.createElement("path",{d:"M18 9h2a2 2 0 0 1 2 2v11l-4-4h-6a2 2 0 0 1-2-2v-1"}));function $a(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}function jf(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function Vf(e,t,n){const i=Yt((n||{}).ignore||[]),o=qf(t);let a=-1;for(;++a<o.length;)xa(e,"text",s);function s(c,u){let d=-1,p;for(;++d<u.length;){const f=u[d],g=p?p.children:void 0;if(i(f,g?g.indexOf(f):void 0,p))return;p=f}if(p)return l(c,u)}function l(c,u){const d=u[u.length-1],p=o[a][0],f=o[a][1];let g=0;const x=d.children.indexOf(c);let E=!1,T=[];p.lastIndex=0;let k=p.exec(c.value);for(;k;){const C=k.index,R={index:k.index,input:k.input,stack:[...u,c]};let w=f(...k,R);if(typeof w=="string"&&(w=w.length>0?{type:"text",value:w}:void 0),w===!1?p.lastIndex=C+1:(g!==C&&T.push({type:"text",value:c.value.slice(g,C)}),Array.isArray(w)?T.push(...w):w&&T.push(w),g=C+k[0].length,E=!0),!p.global)break;k=p.exec(c.value)}return E?(g<c.value.length&&T.push({type:"text",value:c.value.slice(g)}),d.children.splice(x,1,...T)):T=[c],x+T.length}}function qf(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const i=n[r];t.push([Yf(i[0]),Zf(i[1])])}return t}function Yf(e){return typeof e=="string"?new RegExp(jf(e),"g"):e}function Zf(e){return typeof e=="function"?e:function(){return e}}const Tr="phrasing",Nr=["autolink","link","image","label"];function Xf(){return{transforms:[ip],enter:{literalAutolink:Jf,literalAutolinkEmail:Ar,literalAutolinkHttp:Ar,literalAutolinkWww:Ar},exit:{literalAutolink:rp,literalAutolinkEmail:np,literalAutolinkHttp:ep,literalAutolinkWww:tp}}}function Qf(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Tr,notInConstruct:Nr},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Tr,notInConstruct:Nr},{character:":",before:"[ps]",after:"\\/",inConstruct:Tr,notInConstruct:Nr}]}}function Jf(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Ar(e){this.config.enter.autolinkProtocol.call(this,e)}function ep(e){this.config.exit.autolinkProtocol.call(this,e)}function tp(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function np(e){this.config.exit.autolinkEmail.call(this,e)}function rp(e){this.exit(e)}function ip(e){Vf(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,ap],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),op]],{ignore:["link","linkReference"]})}function ap(e,t,n,r,i){let o="";if(!Ha(i)||(/^w/i.test(t)&&(n=t+n,t="",o="http://"),!sp(n)))return!1;const a=lp(n+r);if(!a[0])return!1;const s={type:"link",title:null,url:o+t+a[0],children:[{type:"text",value:t+a[0]}]};return a[1]?[s,{type:"text",value:a[1]}]:s}function op(e,t,n,r){return!Ha(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function sp(e){const 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])))}function lp(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const i=$a(e,"(");let o=$a(e,")");for(;r!==-1&&i>o;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),o++;return[e,n]}function Ha(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||ht(n)||cn(n))&&(!t||n!==47)}Ka.peek=bp;function cp(){this.buffer()}function up(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function dp(){this.buffer()}function fp(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function pp(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=et(this.sliceSerialize(e)).toLowerCase(),n.label=t}function gp(e){this.exit(e)}function hp(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=et(this.sliceSerialize(e)).toLowerCase(),n.label=t}function mp(e){this.exit(e)}function bp(){return"["}function Ka(e,t,n,r){const i=n.createTracker(r);let o=i.move("[^");const a=n.enter("footnoteReference"),s=n.enter("reference");return o+=i.move(n.safe(n.associationId(e),{after:"]",before:o})),s(),a(),o+=i.move("]"),o}function yp(){return{enter:{gfmFootnoteCallString:cp,gfmFootnoteCall:up,gfmFootnoteDefinitionLabelString:dp,gfmFootnoteDefinition:fp},exit:{gfmFootnoteCallString:pp,gfmFootnoteCall:gp,gfmFootnoteDefinitionLabelString:hp,gfmFootnoteDefinition:mp}}}function Ep(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:Ka},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(r,i,o,a){const s=o.createTracker(a);let l=s.move("[^");const c=o.enter("footnoteDefinition"),u=o.enter("label");return l+=s.move(o.safe(o.associationId(r),{before:l,after:"]"})),u(),l+=s.move("]:"),r.children&&r.children.length>0&&(s.shift(4),l+=s.move((t?`
157
+ `:" ")+o.indentLines(o.containerFlow(r,s.current()),t?Ga:_p))),c(),l}}function _p(e,t,n){return t===0?e:Ga(e,t,n)}function Ga(e,t,n){return(n?"":" ")+e}const xp=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];Wa.peek=Tp;function wp(){return{canContainEols:["delete"],enter:{strikethrough:Sp},exit:{strikethrough:vp}}}function kp(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:xp}],handlers:{delete:Wa}}}function Sp(e){this.enter({type:"delete",children:[]},e)}function vp(e){this.exit(e)}function Wa(e,t,n,r){const i=n.createTracker(r),o=n.enter("strikethrough");let a=i.move("~~");return a+=n.containerPhrasing(e,{...i.current(),before:a,after:"~"}),a+=i.move("~~"),o(),a}function Tp(){return"~"}function Np(e){return e.length}function Ap(e,t){const n=t||{},r=(n.align||[]).concat(),i=n.stringLength||Np,o=[],a=[],s=[],l=[];let c=0,u=-1;for(;++u<e.length;){const m=[],x=[];let E=-1;for(e[u].length>c&&(c=e[u].length);++E<e[u].length;){const T=Cp(e[u][E]);if(n.alignDelimiters!==!1){const k=i(T);x[E]=k,(l[E]===void 0||k>l[E])&&(l[E]=k)}m.push(T)}a[u]=m,s[u]=x}let d=-1;if(typeof r=="object"&&"length"in r)for(;++d<c;)o[d]=ja(r[d]);else{const m=ja(r);for(;++d<c;)o[d]=m}d=-1;const p=[],f=[];for(;++d<c;){const m=o[d];let x="",E="";m===99?(x=":",E=":"):m===108?x=":":m===114&&(E=":");let T=n.alignDelimiters===!1?1:Math.max(1,l[d]-x.length-E.length);const k=x+"-".repeat(T)+E;n.alignDelimiters!==!1&&(T=x.length+T+E.length,T>l[d]&&(l[d]=T),f[d]=T),p[d]=k}a.splice(1,0,p),s.splice(1,0,f),u=-1;const g=[];for(;++u<a.length;){const m=a[u],x=s[u];d=-1;const E=[];for(;++d<c;){const T=m[d]||"";let k="",C="";if(n.alignDelimiters!==!1){const R=l[d]-(x[d]||0),w=o[d];w===114?k=" ".repeat(R):w===99?R%2?(k=" ".repeat(R/2+.5),C=" ".repeat(R/2-.5)):(k=" ".repeat(R/2),C=k):C=" ".repeat(R)}n.delimiterStart!==!1&&!d&&E.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&T==="")&&(n.delimiterStart!==!1||d)&&E.push(" "),n.alignDelimiters!==!1&&E.push(k),E.push(T),n.alignDelimiters!==!1&&E.push(C),n.padding!==!1&&E.push(" "),(n.delimiterEnd!==!1||d!==c-1)&&E.push("|")}g.push(n.delimiterEnd===!1?E.join("").replace(/ +$/,""):E.join(""))}return g.join(`
158
+ `)}function Cp(e){return e==null?"":String(e)}function ja(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function Op(e,t,n,r){const i=n.enter("blockquote"),o=n.createTracker(r);o.move("> "),o.shift(2);const a=n.indentLines(n.containerFlow(e,o.current()),Rp);return i(),a}function Rp(e,t,n){return">"+(n?"":" ")+e}function Ip(e,t){return Va(e,t.inConstruct,!0)&&!Va(e,t.notInConstruct,!1)}function Va(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function qa(e,t,n,r){let i=-1;for(;++i<n.unsafe.length;)if(n.unsafe[i].character===`
159
+ `&&Ip(n.stack,n.unsafe[i]))return/[ \t]/.test(r.before)?"":" ";return`\\
160
+ `}function Mp(e,t){const n=String(e);let r=n.indexOf(t),i=r,o=0,a=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===i?++o>a&&(a=o):o=1,i=r+t.length,r=n.indexOf(t,i);return a}function Lp(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function Dp(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function Pp(e,t,n,r){const i=Dp(n),o=e.value||"",a=i==="`"?"GraveAccent":"Tilde";if(Lp(e,n)){const d=n.enter("codeIndented"),p=n.indentLines(o,Fp);return d(),p}const s=n.createTracker(r),l=i.repeat(Math.max(Mp(o,i)+1,3)),c=n.enter("codeFenced");let u=s.move(l);if(e.lang){const d=n.enter(`codeFencedLang${a}`);u+=s.move(n.safe(e.lang,{before:u,after:" ",encode:["`"],...s.current()})),d()}if(e.lang&&e.meta){const d=n.enter(`codeFencedMeta${a}`);u+=s.move(" "),u+=s.move(n.safe(e.meta,{before:u,after:`
161
+ `,encode:["`"],...s.current()})),d()}return u+=s.move(`
162
+ `),o&&(u+=s.move(o+`
163
+ `)),u+=s.move(l),c(),u}function Fp(e,t,n){return(n?"":" ")+e}function Cr(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function Bp(e,t,n,r){const i=Cr(n),o=i==='"'?"Quote":"Apostrophe",a=n.enter("definition");let s=n.enter("label");const l=n.createTracker(r);let c=l.move("[");return c+=l.move(n.safe(n.associationId(e),{before:c,after:"]",...l.current()})),c+=l.move("]: "),s(),!e.url||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),c+=l.move("<"),c+=l.move(n.safe(e.url,{before:c,after:">",...l.current()})),c+=l.move(">")):(s=n.enter("destinationRaw"),c+=l.move(n.safe(e.url,{before:c,after:e.title?" ":`
164
+ `,...l.current()}))),s(),e.title&&(s=n.enter(`title${o}`),c+=l.move(" "+i),c+=l.move(n.safe(e.title,{before:c,after:i,...l.current()})),c+=l.move(i),s()),a(),c}function zp(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function Qt(e){return"&#x"+e.toString(16).toUpperCase()+";"}function _n(e,t,n){const r=Nt(e),i=Nt(t);return r===void 0?i===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}Ya.peek=Up;function Ya(e,t,n,r){const i=zp(n),o=n.enter("emphasis"),a=n.createTracker(r),s=a.move(i);let l=a.move(n.containerPhrasing(e,{after:i,before:s,...a.current()}));const c=l.charCodeAt(0),u=_n(r.before.charCodeAt(r.before.length-1),c,i);u.inside&&(l=Qt(c)+l.slice(1));const d=l.charCodeAt(l.length-1),p=_n(r.after.charCodeAt(0),d,i);p.inside&&(l=l.slice(0,-1)+Qt(d));const f=a.move(i);return o(),n.attentionEncodeSurroundingInfo={after:p.outside,before:u.outside},s+l+f}function Up(e,t,n){return n.options.emphasis||"*"}function $p(e,t){let n=!1;return bn(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,gr}),!!((!e.depth||e.depth<3)&&rr(e)&&(t.options.setext||n))}function Hp(e,t,n,r){const i=Math.max(Math.min(6,e.depth||1),1),o=n.createTracker(r);if($p(e,n)){const u=n.enter("headingSetext"),d=n.enter("phrasing"),p=n.containerPhrasing(e,{...o.current(),before:`
165
+ `,after:`
166
+ `});return d(),u(),p+`
167
+ `+(i===1?"=":"-").repeat(p.length-(Math.max(p.lastIndexOf("\r"),p.lastIndexOf(`
168
+ `))+1))}const a="#".repeat(i),s=n.enter("headingAtx"),l=n.enter("phrasing");o.move(a+" ");let c=n.containerPhrasing(e,{before:"# ",after:`
169
+ `,...o.current()});return/^[\t ]/.test(c)&&(c=Qt(c.charCodeAt(0))+c.slice(1)),c=c?a+" "+c:a,n.options.closeAtx&&(c+=" "+a),l(),s(),c}Za.peek=Kp;function Za(e){return e.value||""}function Kp(){return"<"}Xa.peek=Gp;function Xa(e,t,n,r){const i=Cr(n),o=i==='"'?"Quote":"Apostrophe",a=n.enter("image");let s=n.enter("label");const l=n.createTracker(r);let c=l.move("![");return c+=l.move(n.safe(e.alt,{before:c,after:"]",...l.current()})),c+=l.move("]("),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),c+=l.move("<"),c+=l.move(n.safe(e.url,{before:c,after:">",...l.current()})),c+=l.move(">")):(s=n.enter("destinationRaw"),c+=l.move(n.safe(e.url,{before:c,after:e.title?" ":")",...l.current()}))),s(),e.title&&(s=n.enter(`title${o}`),c+=l.move(" "+i),c+=l.move(n.safe(e.title,{before:c,after:i,...l.current()})),c+=l.move(i),s()),c+=l.move(")"),a(),c}function Gp(){return"!"}Qa.peek=Wp;function Qa(e,t,n,r){const i=e.referenceType,o=n.enter("imageReference");let a=n.enter("label");const s=n.createTracker(r);let l=s.move("![");const c=n.safe(e.alt,{before:l,after:"]",...s.current()});l+=s.move(c+"]["),a();const u=n.stack;n.stack=[],a=n.enter("reference");const d=n.safe(n.associationId(e),{before:l,after:"]",...s.current()});return a(),n.stack=u,o(),i==="full"||!c||c!==d?l+=s.move(d+"]"):i==="shortcut"?l=l.slice(0,-1):l+=s.move("]"),l}function Wp(){return"!"}Ja.peek=jp;function Ja(e,t,n){let r=e.value||"",i="`",o=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++o<n.unsafe.length;){const a=n.unsafe[o],s=n.compilePattern(a);let l;if(a.atBreak)for(;l=s.exec(r);){let c=l.index;r.charCodeAt(c)===10&&r.charCodeAt(c-1)===13&&c--,r=r.slice(0,c)+" "+r.slice(l.index+1)}}return i+r+i}function jp(){return"`"}function eo(e,t){const n=rr(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}to.peek=Vp;function to(e,t,n,r){const i=Cr(n),o=i==='"'?"Quote":"Apostrophe",a=n.createTracker(r);let s,l;if(eo(e,n)){const u=n.stack;n.stack=[],s=n.enter("autolink");let d=a.move("<");return d+=a.move(n.containerPhrasing(e,{before:d,after:">",...a.current()})),d+=a.move(">"),s(),n.stack=u,d}s=n.enter("link"),l=n.enter("label");let c=a.move("[");return c+=a.move(n.containerPhrasing(e,{before:c,after:"](",...a.current()})),c+=a.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),c+=a.move("<"),c+=a.move(n.safe(e.url,{before:c,after:">",...a.current()})),c+=a.move(">")):(l=n.enter("destinationRaw"),c+=a.move(n.safe(e.url,{before:c,after:e.title?" ":")",...a.current()}))),l(),e.title&&(l=n.enter(`title${o}`),c+=a.move(" "+i),c+=a.move(n.safe(e.title,{before:c,after:i,...a.current()})),c+=a.move(i),l()),c+=a.move(")"),s(),c}function Vp(e,t,n){return eo(e,n)?"<":"["}no.peek=qp;function no(e,t,n,r){const i=e.referenceType,o=n.enter("linkReference");let a=n.enter("label");const s=n.createTracker(r);let l=s.move("[");const c=n.containerPhrasing(e,{before:l,after:"]",...s.current()});l+=s.move(c+"]["),a();const u=n.stack;n.stack=[],a=n.enter("reference");const d=n.safe(n.associationId(e),{before:l,after:"]",...s.current()});return a(),n.stack=u,o(),i==="full"||!c||c!==d?l+=s.move(d+"]"):i==="shortcut"?l=l.slice(0,-1):l+=s.move("]"),l}function qp(){return"["}function Or(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function Yp(e){const t=Or(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function Zp(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function ro(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function Xp(e,t,n,r){const i=n.enter("list"),o=n.bulletCurrent;let a=e.ordered?Zp(n):Or(n);const s=e.ordered?a==="."?")":".":Yp(n);let l=t&&n.bulletLastUsed?a===n.bulletLastUsed:!1;if(!e.ordered){const u=e.children?e.children[0]:void 0;if((a==="*"||a==="-")&&u&&(!u.children||!u.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(l=!0),ro(n)===a&&u){let d=-1;for(;++d<e.children.length;){const p=e.children[d];if(p&&p.type==="listItem"&&p.children&&p.children[0]&&p.children[0].type==="thematicBreak"){l=!0;break}}}}l&&(a=s),n.bulletCurrent=a;const c=n.containerFlow(e,r);return n.bulletLastUsed=a,n.bulletCurrent=o,i(),c}function Qp(e){const t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function Jp(e,t,n,r){const i=Qp(n);let o=n.bulletCurrent||Or(n);t&&t.type==="list"&&t.ordered&&(o=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+o);let a=o.length+1;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(a=Math.ceil(a/4)*4);const s=n.createTracker(r);s.move(o+" ".repeat(a-o.length)),s.shift(a);const l=n.enter("listItem"),c=n.indentLines(n.containerFlow(e,s.current()),u);return l(),c;function u(d,p,f){return p?(f?"":" ".repeat(a))+d:(f?o:o+" ".repeat(a-o.length))+d}}function eg(e,t,n,r){const i=n.enter("paragraph"),o=n.enter("phrasing"),a=n.containerPhrasing(e,r);return o(),i(),a}const tg=Yt(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function ng(e,t,n,r){return(e.children.some(function(a){return tg(a)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function rg(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}io.peek=ig;function io(e,t,n,r){const i=rg(n),o=n.enter("strong"),a=n.createTracker(r),s=a.move(i+i);let l=a.move(n.containerPhrasing(e,{after:i,before:s,...a.current()}));const c=l.charCodeAt(0),u=_n(r.before.charCodeAt(r.before.length-1),c,i);u.inside&&(l=Qt(c)+l.slice(1));const d=l.charCodeAt(l.length-1),p=_n(r.after.charCodeAt(0),d,i);p.inside&&(l=l.slice(0,-1)+Qt(d));const f=a.move(i+i);return o(),n.attentionEncodeSurroundingInfo={after:p.outside,before:u.outside},s+l+f}function ig(e,t,n){return n.options.strong||"*"}function ag(e,t,n,r){return n.safe(e.value,r)}function og(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function sg(e,t,n){const r=(ro(n)+(n.options.ruleSpaces?" ":"")).repeat(og(n));return n.options.ruleSpaces?r.slice(0,-1):r}const ao={blockquote:Op,break:qa,code:Pp,definition:Bp,emphasis:Ya,hardBreak:qa,heading:Hp,html:Za,image:Xa,imageReference:Qa,inlineCode:Ja,link:to,linkReference:no,list:Xp,listItem:Jp,paragraph:eg,root:ng,strong:io,text:ag,thematicBreak:sg};function lg(){return{enter:{table:cg,tableData:oo,tableHeader:oo,tableRow:dg},exit:{codeText:fg,table:ug,tableData:Rr,tableHeader:Rr,tableRow:Rr}}}function cg(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function ug(e){this.exit(e),this.data.inTable=void 0}function dg(e){this.enter({type:"tableRow",children:[]},e)}function Rr(e){this.exit(e)}function oo(e){this.enter({type:"tableCell",children:[]},e)}function fg(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,pg));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function pg(e,t){return t==="|"?t:e}function gg(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,o=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
170
+ `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:p,table:a,tableCell:l,tableRow:s}};function a(f,g,m,x){return c(u(f,m,x),f.align)}function s(f,g,m,x){const E=d(f,m,x),T=c([E]);return T.slice(0,T.indexOf(`
171
+ `))}function l(f,g,m,x){const E=m.enter("tableCell"),T=m.enter("phrasing"),k=m.containerPhrasing(f,{...x,before:o,after:o});return T(),E(),k}function c(f,g){return Ap(f,{align:g,alignDelimiters:r,padding:n,stringLength:i})}function u(f,g,m){const x=f.children;let E=-1;const T=[],k=g.enter("table");for(;++E<x.length;)T[E]=d(x[E],g,m);return k(),T}function d(f,g,m){const x=f.children;let E=-1;const T=[],k=g.enter("tableRow");for(;++E<x.length;)T[E]=l(x[E],f,g,m);return k(),T}function p(f,g,m){let x=ao.inlineCode(f,g,m);return m.stack.includes("tableCell")&&(x=x.replace(/\|/g,"\\$&")),x}}function hg(){return{exit:{taskListCheckValueChecked:so,taskListCheckValueUnchecked:so,paragraph:bg}}}function mg(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:yg}}}function so(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function bg(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const r=n.children[0];if(r&&r.type==="text"){const i=t.children;let o=-1,a;for(;++o<i.length;){const s=i[o];if(s.type==="paragraph"){a=s;break}}a===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function yg(e,t,n,r){const i=e.children[0],o=typeof e.checked=="boolean"&&i&&i.type==="paragraph",a="["+(e.checked?"x":" ")+"] ",s=n.createTracker(r);o&&s.move(a);let l=ao.listItem(e,t,n,{...r,...s.current()});return o&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,c)),l;function c(u){return u+a}}function Eg(){return[Xf(),yp(),wp(),lg(),hg()]}function _g(e){return{extensions:[Qf(),Ep(e),kp(),gg(e),mg()]}}const xg={tokenize:Ng,partial:!0},lo={tokenize:Ag,partial:!0},co={tokenize:Cg,partial:!0},uo={tokenize:Og,partial:!0},wg={tokenize:Rg,partial:!0},fo={name:"wwwAutolink",tokenize:vg,previous:go},po={name:"protocolAutolink",tokenize:Tg,previous:ho},ot={name:"emailAutolink",tokenize:Sg,previous:mo},rt={};function kg(){return{text:rt}}let mt=48;for(;mt<123;)rt[mt]=ot,mt++,mt===58?mt=65:mt===91&&(mt=97);rt[43]=ot,rt[45]=ot,rt[46]=ot,rt[95]=ot,rt[72]=[ot,po],rt[104]=[ot,po],rt[87]=[ot,fo],rt[119]=[ot,fo];function Sg(e,t,n){const r=this;let i,o;return a;function a(d){return!Ir(d)||!mo.call(r,r.previous)||Mr(r.events)?n(d):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),s(d))}function s(d){return Ir(d)?(e.consume(d),s):d===64?(e.consume(d),l):n(d)}function l(d){return d===46?e.check(wg,u,c)(d):d===45||d===95||De(d)?(o=!0,e.consume(d),l):u(d)}function c(d){return e.consume(d),i=!0,l}function u(d){return o&&i&&Fe(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(d)):n(d)}}function vg(e,t,n){const r=this;return i;function i(a){return a!==87&&a!==119||!go.call(r,r.previous)||Mr(r.events)?n(a):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(xg,e.attempt(lo,e.attempt(co,o),n),n)(a))}function o(a){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(a)}}function Tg(e,t,n){const r=this;let i="",o=!1;return a;function a(d){return(d===72||d===104)&&ho.call(r,r.previous)&&!Mr(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(d),e.consume(d),s):n(d)}function s(d){if(Fe(d)&&i.length<5)return i+=String.fromCodePoint(d),e.consume(d),s;if(d===58){const p=i.toLowerCase();if(p==="http"||p==="https")return e.consume(d),l}return n(d)}function l(d){return d===47?(e.consume(d),o?c:(o=!0,l)):n(d)}function c(d){return d===null||ln(d)||he(d)||ht(d)||cn(d)?n(d):e.attempt(lo,e.attempt(co,u),n)(d)}function u(d){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(d)}}function Ng(e,t,n){let r=0;return i;function i(a){return(a===87||a===119)&&r<3?(r++,e.consume(a),i):a===46&&r===3?(e.consume(a),o):n(a)}function o(a){return a===null?n(a):t(a)}}function Ag(e,t,n){let r,i,o;return a;function a(c){return c===46||c===95?e.check(uo,l,s)(c):c===null||he(c)||ht(c)||c!==45&&cn(c)?l(c):(o=!0,e.consume(c),a)}function s(c){return c===95?r=!0:(i=r,r=void 0),e.consume(c),a}function l(c){return i||r||!o?n(c):t(c)}}function Cg(e,t){let n=0,r=0;return i;function i(a){return a===40?(n++,e.consume(a),i):a===41&&r<n?o(a):a===33||a===34||a===38||a===39||a===41||a===42||a===44||a===46||a===58||a===59||a===60||a===63||a===93||a===95||a===126?e.check(uo,t,o)(a):a===null||he(a)||ht(a)?t(a):(e.consume(a),i)}function o(a){return a===41&&r++,e.consume(a),i}}function Og(e,t,n){return r;function r(s){return s===33||s===34||s===39||s===41||s===42||s===44||s===46||s===58||s===59||s===63||s===95||s===126?(e.consume(s),r):s===38?(e.consume(s),o):s===93?(e.consume(s),i):s===60||s===null||he(s)||ht(s)?t(s):n(s)}function i(s){return s===null||s===40||s===91||he(s)||ht(s)?t(s):r(s)}function o(s){return Fe(s)?a(s):n(s)}function a(s){return s===59?(e.consume(s),r):Fe(s)?(e.consume(s),a):n(s)}}function Rg(e,t,n){return r;function r(o){return e.consume(o),i}function i(o){return De(o)?n(o):t(o)}}function go(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||he(e)}function ho(e){return!Fe(e)}function mo(e){return!(e===47||Ir(e))}function Ir(e){return e===43||e===45||e===46||e===95||De(e)}function Mr(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const Ig={tokenize:Ug,partial:!0};function Mg(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:Fg,continuation:{tokenize:Bg},exit:zg}},text:{91:{name:"gfmFootnoteCall",tokenize:Pg},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:Lg,resolveTo:Dg}}}}function Lg(e,t,n){const r=this;let i=r.events.length;const o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a;for(;i--;){const l=r.events[i][1];if(l.type==="labelImage"){a=l;break}if(l.type==="gfmFootnoteCall"||l.type==="labelLink"||l.type==="label"||l.type==="image"||l.type==="link")break}return s;function s(l){if(!a||!a._balanced)return n(l);const c=et(r.sliceSerialize({start:a.end,end:r.now()}));return c.codePointAt(0)!==94||!o.includes(c.slice(1))?n(l):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),t(l))}}function Dg(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const 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++;const o={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},a={type:"chunkString",contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)},s=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",o,t],["enter",a,t],["exit",a,t],["exit",o,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...s),e}function Pg(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o=0,a;return s;function s(d){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),l}function l(d){return d!==94?n(d):(e.enter("gfmFootnoteCallMarker"),e.consume(d),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",c)}function c(d){if(o>999||d===93&&!a||d===null||d===91||he(d))return n(d);if(d===93){e.exit("chunkString");const p=e.exit("gfmFootnoteCallString");return i.includes(et(r.sliceSerialize(p)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(d)}return he(d)||(a=!0),o++,e.consume(d),d===92?u:c}function u(d){return d===91||d===92||d===93?(e.consume(d),o++,c):c(d)}}function Fg(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o,a=0,s;return l;function l(g){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionLabelMarker"),c}function c(g){return g===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",u):n(g)}function u(g){if(a>999||g===93&&!s||g===null||g===91||he(g))return n(g);if(g===93){e.exit("chunkString");const m=e.exit("gfmFootnoteDefinitionLabelString");return o=et(r.sliceSerialize(m)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),p}return he(g)||(s=!0),a++,e.consume(g),g===92?d:u}function d(g){return g===91||g===92||g===93?(e.consume(g),a++,u):u(g)}function p(g){return g===58?(e.enter("definitionMarker"),e.consume(g),e.exit("definitionMarker"),i.includes(o)||i.push(o),se(e,f,"gfmFootnoteDefinitionWhitespace")):n(g)}function f(g){return t(g)}}function Bg(e,t,n){return e.check(Kt,t,e.attempt(Ig,t,n))}function zg(e){e.exit("gfmFootnoteDefinition")}function Ug(e,t,n){const r=this;return se(e,i,"gfmFootnoteDefinitionIndent",5);function i(o){const a=r.events[r.events.length-1];return a&&a[1].type==="gfmFootnoteDefinitionIndent"&&a[2].sliceSerialize(a[1],!0).length===4?t(o):n(o)}}function $g(e){let n=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:o,resolveAll:i};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(a,s){let l=-1;for(;++l<a.length;)if(a[l][0]==="enter"&&a[l][1].type==="strikethroughSequenceTemporary"&&a[l][1]._close){let c=l;for(;c--;)if(a[c][0]==="exit"&&a[c][1].type==="strikethroughSequenceTemporary"&&a[c][1]._open&&a[l][1].end.offset-a[l][1].start.offset===a[c][1].end.offset-a[c][1].start.offset){a[l][1].type="strikethroughSequence",a[c][1].type="strikethroughSequence";const u={type:"strikethrough",start:Object.assign({},a[c][1].start),end:Object.assign({},a[l][1].end)},d={type:"strikethroughText",start:Object.assign({},a[c][1].end),end:Object.assign({},a[l][1].start)},p=[["enter",u,s],["enter",a[c][1],s],["exit",a[c][1],s],["enter",d,s]],f=s.parser.constructs.insideSpan.null;f&&Ze(p,p.length,0,un(f,a.slice(c+1,l),s)),Ze(p,p.length,0,[["exit",d,s],["enter",a[l][1],s],["exit",a[l][1],s],["exit",u,s]]),Ze(a,c-1,l-c+3,p),l=c+p.length-2;break}}for(l=-1;++l<a.length;)a[l][1].type==="strikethroughSequenceTemporary"&&(a[l][1].type="data");return a}function o(a,s,l){const c=this.previous,u=this.events;let d=0;return p;function p(g){return c===126&&u[u.length-1][1].type!=="characterEscape"?l(g):(a.enter("strikethroughSequenceTemporary"),f(g))}function f(g){const m=Nt(c);if(g===126)return d>1?l(g):(a.consume(g),d++,f);if(d<2&&!n)return l(g);const x=a.exit("strikethroughSequenceTemporary"),E=Nt(g);return x._open=!E||E===2&&!!m,x._close=!m||m===2&&!!E,s(g)}}}class Hg{constructor(){this.map=[]}add(t,n,r){Kg(this,t,n,r)}consume(t){if(this.map.sort(function(o,a){return o[0]-a[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push(t.slice()),t.length=0;let i=r.pop();for(;i;){for(const o of i)t.push(o);i=r.pop()}this.map.length=0}}function Kg(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){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])}}function Gg(e,t){let n=!1;const r=[];for(;t<e.length;){const i=e[t];if(n){if(i[0]==="enter")i[1].type==="tableContent"&&r.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const o=r.length-1;r[o]=r[o]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return r}function Wg(){return{flow:{null:{name:"table",tokenize:jg,resolveAll:Vg}}}}function jg(e,t,n){const r=this;let i=0,o=0,a;return s;function s(S){let z=r.events.length-1;for(;z>-1;){const V=r.events[z][1].type;if(V==="lineEnding"||V==="linePrefix")z--;else break}const U=z>-1?r.events[z][1].type:null,ne=U==="tableHead"||U==="tableRow"?w:l;return ne===w&&r.parser.lazy[r.now().line]?n(S):ne(S)}function l(S){return e.enter("tableHead"),e.enter("tableRow"),c(S)}function c(S){return S===124||(a=!0,o+=1),u(S)}function u(S){return S===null?n(S):Q(S)?o>1?(o=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(S),e.exit("lineEnding"),f):n(S):ae(S)?se(e,u,"whitespace")(S):(o+=1,a&&(a=!1,i+=1),S===124?(e.enter("tableCellDivider"),e.consume(S),e.exit("tableCellDivider"),a=!0,u):(e.enter("data"),d(S)))}function d(S){return S===null||S===124||he(S)?(e.exit("data"),u(S)):(e.consume(S),S===92?p:d)}function p(S){return S===92||S===124?(e.consume(S),d):d(S)}function f(S){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(S):(e.enter("tableDelimiterRow"),a=!1,ae(S)?se(e,g,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(S):g(S))}function g(S){return S===45||S===58?x(S):S===124?(a=!0,e.enter("tableCellDivider"),e.consume(S),e.exit("tableCellDivider"),m):R(S)}function m(S){return ae(S)?se(e,x,"whitespace")(S):x(S)}function x(S){return S===58?(o+=1,a=!0,e.enter("tableDelimiterMarker"),e.consume(S),e.exit("tableDelimiterMarker"),E):S===45?(o+=1,E(S)):S===null||Q(S)?C(S):R(S)}function E(S){return S===45?(e.enter("tableDelimiterFiller"),T(S)):R(S)}function T(S){return S===45?(e.consume(S),T):S===58?(a=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(S),e.exit("tableDelimiterMarker"),k):(e.exit("tableDelimiterFiller"),k(S))}function k(S){return ae(S)?se(e,C,"whitespace")(S):C(S)}function C(S){return S===124?g(S):S===null||Q(S)?!a||i!==o?R(S):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(S)):R(S)}function R(S){return n(S)}function w(S){return e.enter("tableRow"),P(S)}function P(S){return S===124?(e.enter("tableCellDivider"),e.consume(S),e.exit("tableCellDivider"),P):S===null||Q(S)?(e.exit("tableRow"),t(S)):ae(S)?se(e,P,"whitespace")(S):(e.enter("data"),F(S))}function F(S){return S===null||S===124||he(S)?(e.exit("data"),P(S)):(e.consume(S),S===92?$:F)}function $(S){return S===92||S===124?(e.consume(S),F):F(S)}}function Vg(e,t){let n=-1,r=!0,i=0,o=[0,0,0,0],a=[0,0,0,0],s=!1,l=0,c,u,d;const p=new Hg;for(;++n<e.length;){const f=e[n],g=f[1];f[0]==="enter"?g.type==="tableHead"?(s=!1,l!==0&&(bo(p,t,l,c,u),u=void 0,l=0),c={type:"table",start:Object.assign({},g.start),end:Object.assign({},g.end)},p.add(n,0,[["enter",c,t]])):g.type==="tableRow"||g.type==="tableDelimiterRow"?(r=!0,d=void 0,o=[0,0,0,0],a=[0,n+1,0,0],s&&(s=!1,u={type:"tableBody",start:Object.assign({},g.start),end:Object.assign({},g.end)},p.add(n,0,[["enter",u,t]])),i=g.type==="tableDelimiterRow"?2:u?3:1):i&&(g.type==="data"||g.type==="tableDelimiterMarker"||g.type==="tableDelimiterFiller")?(r=!1,a[2]===0&&(o[1]!==0&&(a[0]=a[1],d=xn(p,t,o,i,void 0,d),o=[0,0,0,0]),a[2]=n)):g.type==="tableCellDivider"&&(r?r=!1:(o[1]!==0&&(a[0]=a[1],d=xn(p,t,o,i,void 0,d)),o=a,a=[o[1],n,0,0])):g.type==="tableHead"?(s=!0,l=n):g.type==="tableRow"||g.type==="tableDelimiterRow"?(l=n,o[1]!==0?(a[0]=a[1],d=xn(p,t,o,i,n,d)):a[1]!==0&&(d=xn(p,t,a,i,n,d)),i=0):i&&(g.type==="data"||g.type==="tableDelimiterMarker"||g.type==="tableDelimiterFiller")&&(a[3]=n)}for(l!==0&&bo(p,t,l,c,u),p.consume(t.events),n=-1;++n<t.events.length;){const f=t.events[n];f[0]==="enter"&&f[1].type==="table"&&(f[1]._align=Gg(t.events,n))}return e}function xn(e,t,n,r,i,o){const a=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",s="tableContent";n[0]!==0&&(o.end=Object.assign({},Ot(t.events,n[0])),e.add(n[0],0,[["exit",o,t]]));const l=Ot(t.events,n[1]);if(o={type:a,start:Object.assign({},l),end:Object.assign({},l)},e.add(n[1],0,[["enter",o,t]]),n[2]!==0){const c=Ot(t.events,n[2]),u=Ot(t.events,n[3]),d={type:s,start:Object.assign({},c),end:Object.assign({},u)};if(e.add(n[2],0,[["enter",d,t]]),r!==2){const p=t.events[n[2]],f=t.events[n[3]];if(p[1].end=Object.assign({},f[1].end),p[1].type="chunkText",p[1].contentType="text",n[3]>n[2]+1){const g=n[2]+1,m=n[3]-n[2]-1;e.add(g,m,[])}}e.add(n[3]+1,0,[["exit",d,t]])}return i!==void 0&&(o.end=Object.assign({},Ot(t.events,i)),e.add(i,0,[["exit",o,t]]),o=void 0),o}function bo(e,t,n,r,i){const o=[],a=Ot(t.events,n);i&&(i.end=Object.assign({},a),o.push(["exit",i,t])),r.end=Object.assign({},a),o.push(["exit",r,t]),e.add(n+1,0,o)}function Ot(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const qg={name:"tasklistCheck",tokenize:Zg};function Yg(){return{text:{91:qg}}}function Zg(e,t,n){const r=this;return i;function i(l){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(l):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),o)}function o(l){return he(l)?(e.enter("taskListCheckValueUnchecked"),e.consume(l),e.exit("taskListCheckValueUnchecked"),a):l===88||l===120?(e.enter("taskListCheckValueChecked"),e.consume(l),e.exit("taskListCheckValueChecked"),a):n(l)}function a(l){return l===93?(e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),s):n(l)}function s(l){return Q(l)?t(l):ae(l)?e.check({tokenize:Xg},t,n)(l):n(l)}}function Xg(e,t,n){return se(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function Qg(e){return Hi([kg(),Mg(),$g(e),Wg(),Yg()])}const Jg={};function eh(e){const t=this,n=e||Jg,r=t.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),o=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),a=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(Qg(n)),o.push(Eg()),a.push(_g(n))}const bt=["ariaDescribedBy","ariaLabel","ariaLabelledBy"],yo={ancestors:{tbody:["table"],td:["table"],th:["table"],thead:["table"],tfoot:["table"],tr:["table"]},attributes:{a:[...bt,"dataFootnoteBackref","dataFootnoteRef",["className","data-footnote-backref"],"href"],blockquote:["cite"],code:[["className",/^language-./]],del:["cite"],div:["itemScope","itemType"],dl:[...bt],h2:[["className","sr-only"]],img:[...bt,"longDesc","src"],input:[["disabled",!0],["type","checkbox"]],ins:["cite"],li:[["className","task-list-item"]],ol:[...bt,["className","contains-task-list"]],q:["cite"],section:["dataFootnotes",["className","footnotes"]],source:["srcSet"],summary:[...bt],table:[...bt],ul:[...bt,["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"]},dt={}.hasOwnProperty;function th(e,t){let n={type:"root",children:[]};const r={schema:t?{...yo,...t}:yo,stack:[]},i=Eo(r,e);return i&&(Array.isArray(i)?i.length===1?n=i[0]:n.children=i:n=i),n}function Eo(e,t){if(t&&typeof t=="object"){const n=t;switch(typeof n.type=="string"?n.type:""){case"comment":return nh(e,n);case"doctype":return rh(e,n);case"element":return ih(e,n);case"root":return ah(e,n);case"text":return oh(e,n)}}}function nh(e,t){if(e.schema.allowComments){const n=typeof t.value=="string"?t.value:"",r=n.indexOf("-->"),o={type:"comment",value:r<0?n:n.slice(0,r)};return Jt(o,t),o}}function rh(e,t){if(e.schema.allowDoctypes){const n={type:"doctype"};return Jt(n,t),n}}function ih(e,t){const n=typeof t.tagName=="string"?t.tagName:"";e.stack.push(n);const r=_o(e,t.children),i=sh(e,t.properties);e.stack.pop();let o=!1;if(n&&n!=="*"&&(!e.schema.tagNames||e.schema.tagNames.includes(n))&&(o=!0,e.schema.ancestors&&dt.call(e.schema.ancestors,n))){const s=e.schema.ancestors[n];let l=-1;for(o=!1;++l<s.length;)e.stack.includes(s[l])&&(o=!0)}if(!o)return e.schema.strip&&!e.schema.strip.includes(n)?r:void 0;const a={type:"element",tagName:n,properties:i,children:r};return Jt(a,t),a}function ah(e,t){const r={type:"root",children:_o(e,t.children)};return Jt(r,t),r}function oh(e,t){const r={type:"text",value:typeof t.value=="string"?t.value:""};return Jt(r,t),r}function _o(e,t){const n=[];if(Array.isArray(t)){const r=t;let i=-1;for(;++i<r.length;){const o=Eo(e,r[i]);o&&(Array.isArray(o)?n.push(...o):n.push(o))}}return n}function sh(e,t){const n=e.stack[e.stack.length-1],r=e.schema.attributes,i=e.schema.required,o=r&&dt.call(r,n)?r[n]:void 0,a=r&&dt.call(r,"*")?r["*"]:void 0,s=t&&typeof t=="object"?t:{},l={};let c;for(c in s)if(dt.call(s,c)){const u=s[c];let d=xo(e,ko(o,c),c,u);d==null&&(d=xo(e,ko(a,c),c,u)),d!=null&&(l[c]=d)}if(i&&dt.call(i,n)){const u=i[n];for(c in u)dt.call(u,c)&&!dt.call(l,c)&&(l[c]=u[c])}return l}function xo(e,t,n,r){return t?Array.isArray(r)?lh(e,t,n,r):wo(e,t,n,r):void 0}function lh(e,t,n,r){let i=-1;const o=[];for(;++i<r.length;){const a=wo(e,t,n,r[i]);(typeof a=="number"||typeof a=="string")&&o.push(a)}return o}function wo(e,t,n,r){if(!(typeof r!="boolean"&&typeof r!="number"&&typeof r!="string")&&ch(e,n,r)){if(typeof t=="object"&&t.length>1){let i=!1,o=0;for(;++o<t.length;){const a=t[o];if(a&&typeof a=="object"&&"flags"in a){if(a.test(String(r))){i=!0;break}}else if(a===r){i=!0;break}}if(!i)return}return e.schema.clobber&&e.schema.clobberPrefix&&e.schema.clobber.includes(n)?e.schema.clobberPrefix+r:r}}function ch(e,t,n){const r=e.schema.protocols&&dt.call(e.schema.protocols,t)?e.schema.protocols[t]:void 0;if(!r||r.length===0)return!0;const i=String(n),o=i.indexOf(":"),a=i.indexOf("?"),s=i.indexOf("#"),l=i.indexOf("/");if(o<0||l>-1&&o>l||a>-1&&o>a||s>-1&&o>s)return!0;let c=-1;for(;++c<r.length;){const u=r[c];if(o===u.length&&i.slice(0,u.length)===u)return!0}return!1}function Jt(e,t){const n=Ri(t);t.data&&(e.data=qt(t.data)),n&&(e.position=n)}function ko(e,t){let n,r=-1;if(e)for(;++r<e.length;){const i=e[r],o=typeof i=="string"?i:i[0];if(o===t)return i;o==="data*"&&(n=i)}if(t.length>4&&t.slice(0,4).toLowerCase()==="data")return n}function uh(e){return function(t){return th(t,e)}}const So=function(e,t,n){const r=Yt(n);if(!e||!e.type||!e.children)throw new Error("Expected parent node");if(typeof t=="number"){if(t<0||t===Number.POSITIVE_INFINITY)throw new Error("Expected positive finite number as index")}else if(t=e.children.indexOf(t),t<0)throw new Error("Expected child node or index");for(;++t<e.children.length;)if(r(e.children[t],t,e))return e.children[t]},yt=function(e){if(e==null)return ph;if(typeof e=="string")return fh(e);if(typeof e=="object")return dh(e);if(typeof e=="function")return Lr(e);throw new Error("Expected function, string, or array as `test`")};function dh(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=yt(e[n]);return Lr(r);function r(...i){let o=-1;for(;++o<t.length;)if(t[o].apply(this,i))return!0;return!1}}function fh(e){return Lr(t);function t(n){return n.tagName===e}}function Lr(e){return t;function t(n,r,i){return!!(gh(n)&&e.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}function ph(e){return!!(e&&typeof e=="object"&&"type"in e&&e.type==="element"&&"tagName"in e&&typeof e.tagName=="string")}function gh(e){return e!==null&&typeof e=="object"&&"type"in e&&"tagName"in e}const vo=/\n/g,To=/[\t ]+/g,Dr=yt("br"),No=yt(wh),hh=yt("p"),Ao=yt("tr"),mh=yt(["datalist","head","noembed","noframes","noscript","rp","script","style","template","title",xh,kh]),Co=yt(["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 bh(e,t){const n=t||{},r="children"in e?e.children:[],i=Co(e),o=Io(e,{whitespace:n.whitespace||"normal"}),a=[];(e.type==="text"||e.type==="comment")&&a.push(...Ro(e,{breakBefore:!0,breakAfter:!0}));let s=-1;for(;++s<r.length;)a.push(...Oo(r[s],e,{whitespace:o,breakBefore:s?void 0:i,breakAfter:s<r.length-1?Dr(r[s+1]):i}));const l=[];let c;for(s=-1;++s<a.length;){const u=a[s];typeof u=="number"?c!==void 0&&u>c&&(c=u):u&&(c!==void 0&&c>-1&&l.push(`
172
+ `.repeat(c)||" "),c=-1,l.push(u))}return l.join("")}function Oo(e,t,n){return e.type==="element"?yh(e,t,n):e.type==="text"?n.whitespace==="normal"?Ro(e,n):Eh(e):[]}function yh(e,t,n){const r=Io(e,n),i=e.children||[];let o=-1,a=[];if(mh(e))return a;let s,l;for(Dr(e)||Ao(e)&&So(t,e,Ao)?l=`
173
+ `:hh(e)?(s=2,l=2):Co(e)&&(s=1,l=1);++o<i.length;)a=a.concat(Oo(i[o],e,{whitespace:r,breakBefore:o?void 0:s,breakAfter:o<i.length-1?Dr(i[o+1]):l}));return No(e)&&So(t,e,No)&&a.push(" "),s&&a.unshift(s),l&&a.push(l),a}function Ro(e,t){const n=String(e.value),r=[],i=[];let o=0;for(;o<=n.length;){vo.lastIndex=o;const l=vo.exec(n),c=l&&"index"in l?l.index:n.length;r.push(_h(n.slice(o,c).replace(/[\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g,""),o===0?t.breakBefore:!0,c===n.length?t.breakAfter:!0)),o=c+1}let a=-1,s;for(;++a<r.length;)r[a].charCodeAt(r[a].length-1)===8203||a<r.length-1&&r[a+1].charCodeAt(0)===8203?(i.push(r[a]),s=void 0):r[a]?(typeof s=="number"&&i.push(s),i.push(r[a]),s=0):(a===0||a===r.length-1)&&i.push(0);return i}function Eh(e){return[String(e.value)]}function _h(e,t,n){const r=[];let i=0,o;for(;i<e.length;){To.lastIndex=i;const a=To.exec(e);o=a?a.index:e.length,!i&&!o&&a&&!t&&r.push(""),i!==o&&r.push(e.slice(i,o)),i=a?o+a[0].length:o}return i!==o&&!n&&r.push(""),r.join(" ")}function Io(e,t){if(e.type==="element"){const 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}function xh(e){return!!(e.properties||{}).hidden}function wh(e){return e.tagName==="td"||e.tagName==="th"}function kh(e){return e.tagName==="dialog"&&!(e.properties||{}).open}function Sh(e){const t=e.regex,n=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),r="decltype\\(auto\\)",i="[a-zA-Z_]\\w*::",a="(?!struct)("+r+"|"+t.optional(i)+"[a-zA-Z_]\\w*"+t.optional("<[^<>]+>")+")",s={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},c={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},u={className:"number",variants:[{begin:"[+-]?(?:(?:[0-9](?:'?[0-9])*\\.(?:[0-9](?:'?[0-9])*)?|\\.[0-9](?:'?[0-9])*)(?:[Ee][+-]?[0-9](?:'?[0-9])*)?|[0-9](?:'?[0-9])*[Ee][+-]?[0-9](?:'?[0-9])*|0[Xx](?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*(?:\\.(?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)?)?|\\.[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)[Pp][+-]?[0-9](?:'?[0-9])*)(?:[Ff](?:16|32|64|128)?|(BF|bf)16|[Ll]|)"},{begin:"[+-]?\\b(?:0[Bb][01](?:'?[01])*|0[Xx][0-9A-Fa-f](?:'?[0-9A-Fa-f])*|0(?:'?[0-7])*|[1-9](?:'?[0-9])*)(?:[Uu](?:LL?|ll?)|[Uu][Zz]?|(?:LL?|ll?)[Uu]?|[Zz][Uu]|)"}],relevance:0},d={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(c,{className:"string"}),{className:"string",begin:/<.*?>/},n,e.C_BLOCK_COMMENT_MODE]},p={className:"title",begin:t.optional(i)+e.IDENT_RE,relevance:0},f=t.optional(i)+e.IDENT_RE+"\\s*\\(",g=["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],m=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],x=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","flat_map","flat_set","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"],E=["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"],C={type:m,keyword:g,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:x},R={className:"function.dispatch",relevance:0,keywords:{_hint:E},begin:t.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,e.IDENT_RE,t.lookahead(/(<[^<>]+>|)\s*\(/))},w=[R,d,s,n,e.C_BLOCK_COMMENT_MODE,u,c],P={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:C,contains:w.concat([{begin:/\(/,end:/\)/,keywords:C,contains:w.concat(["self"]),relevance:0}]),relevance:0},F={className:"function",begin:"("+a+"[\\*&\\s]+)+"+f,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:C,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:r,keywords:C,relevance:0},{begin:f,returnBegin:!0,contains:[p],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[c,u]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:C,relevance:0,contains:[n,e.C_BLOCK_COMMENT_MODE,c,u,s,{begin:/\(/,end:/\)/,keywords:C,relevance:0,contains:["self",n,e.C_BLOCK_COMMENT_MODE,c,u,s]}]},s,n,e.C_BLOCK_COMMENT_MODE,d]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:C,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(P,F,R,w,[d,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function|flat_map|flat_set)\\s*<(?!<)",end:">",keywords:C,contains:["self",s]},{begin:e.IDENT_RE+"::",keywords:C},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}function vh(e){const t={type:["boolean","byte","word","String"],built_in:["KeyboardController","MouseController","SoftwareSerial","EthernetServer","EthernetClient","LiquidCrystal","RobotControl","GSMVoiceCall","EthernetUDP","EsploraTFT","HttpClient","RobotMotor","WiFiClient","GSMScanner","FileSystem","Scheduler","GSMServer","YunClient","YunServer","IPAddress","GSMClient","GSMModem","Keyboard","Ethernet","Console","GSMBand","Esplora","Stepper","Process","WiFiUDP","GSM_SMS","Mailbox","USBHost","Firmata","PImage","Client","Server","GSMPIN","FileIO","Bridge","Serial","EEPROM","Stream","Mouse","Audio","Servo","File","Task","GPRS","WiFi","Wire","TFT","GSM","SPI","SD"],_hints:["setup","loop","runShellCommandAsynchronously","analogWriteResolution","retrieveCallingNumber","printFirmwareVersion","analogReadResolution","sendDigitalPortPair","noListenOnLocalhost","readJoystickButton","setFirmwareVersion","readJoystickSwitch","scrollDisplayRight","getVoiceCallStatus","scrollDisplayLeft","writeMicroseconds","delayMicroseconds","beginTransmission","getSignalStrength","runAsynchronously","getAsynchronously","listenOnLocalhost","getCurrentCarrier","readAccelerometer","messageAvailable","sendDigitalPorts","lineFollowConfig","countryNameWrite","runShellCommand","readStringUntil","rewindDirectory","readTemperature","setClockDivider","readLightSensor","endTransmission","analogReference","detachInterrupt","countryNameRead","attachInterrupt","encryptionType","readBytesUntil","robotNameWrite","readMicrophone","robotNameRead","cityNameWrite","userNameWrite","readJoystickY","readJoystickX","mouseReleased","openNextFile","scanNetworks","noInterrupts","digitalWrite","beginSpeaker","mousePressed","isActionDone","mouseDragged","displayLogos","noAutoscroll","addParameter","remoteNumber","getModifiers","keyboardRead","userNameRead","waitContinue","processInput","parseCommand","printVersion","readNetworks","writeMessage","blinkVersion","cityNameRead","readMessage","setDataMode","parsePacket","isListening","setBitOrder","beginPacket","isDirectory","motorsWrite","drawCompass","digitalRead","clearScreen","serialEvent","rightToLeft","setTextSize","leftToRight","requestFrom","keyReleased","compassRead","analogWrite","interrupts","WiFiServer","disconnect","playMelody","parseFloat","autoscroll","getPINUsed","setPINUsed","setTimeout","sendAnalog","readSlider","analogRead","beginWrite","createChar","motorsStop","keyPressed","tempoWrite","readButton","subnetMask","debugPrint","macAddress","writeGreen","randomSeed","attachGPRS","readString","sendString","remotePort","releaseAll","mouseMoved","background","getXChange","getYChange","answerCall","getResult","voiceCall","endPacket","constrain","getSocket","writeJSON","getButton","available","connected","findUntil","readBytes","exitValue","readGreen","writeBlue","startLoop","IPAddress","isPressed","sendSysex","pauseMode","gatewayIP","setCursor","getOemKey","tuneWrite","noDisplay","loadImage","switchPIN","onRequest","onReceive","changePIN","playFile","noBuffer","parseInt","overflow","checkPIN","knobRead","beginTFT","bitClear","updateIR","bitWrite","position","writeRGB","highByte","writeRed","setSpeed","readBlue","noStroke","remoteIP","transfer","shutdown","hangCall","beginSMS","endWrite","attached","maintain","noCursor","checkReg","checkPUK","shiftOut","isValid","shiftIn","pulseIn","connect","println","localIP","pinMode","getIMEI","display","noBlink","process","getBand","running","beginSD","drawBMP","lowByte","setBand","release","bitRead","prepare","pointTo","readRed","setMode","noFill","remove","listen","stroke","detach","attach","noTone","exists","buffer","height","bitSet","circle","config","cursor","random","IRread","setDNS","endSMS","getKey","micros","millis","begin","print","write","ready","flush","width","isPIN","blink","clear","press","mkdir","rmdir","close","point","yield","image","BSSID","click","delay","read","text","move","peek","beep","rect","line","open","seek","fill","size","turn","stop","home","find","step","tone","sqrt","RSSI","SSID","end","bit","tan","cos","sin","pow","map","abs","max","min","get","run","put"],literal:["DIGITAL_MESSAGE","FIRMATA_STRING","ANALOG_MESSAGE","REPORT_DIGITAL","REPORT_ANALOG","INPUT_PULLUP","SET_PIN_MODE","INTERNAL2V56","SYSTEM_RESET","LED_BUILTIN","INTERNAL1V1","SYSEX_START","INTERNAL","EXTERNAL","DEFAULT","OUTPUT","INPUT","HIGH","LOW"]},n=Sh(e),r=n.keywords;return r.type=[...r.type,...t.type],r.literal=[...r.literal,...t.literal],r.built_in=[...r.built_in,...t.built_in],r._hints=t._hints,n.name="Arduino",n.aliases=["ino"],n.supersetOf="cpp",n}function Th(e){const t=e.regex,n={},r={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[n]}]};Object.assign(n,{className:"variable",variants:[{begin:t.concat(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},r]});const i={className:"subst",begin:/\$\(/,end:/\)/,contains:[e.BACKSLASH_ESCAPE]},o=e.inherit(e.COMMENT(),{match:[/(^|\s)/,/#.*$/],scope:{2:"comment"}}),a={begin:/<<-?\s*(?=\w+)/,starts:{contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},s={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,n,i]};i.contains.push(s);const l={match:/\\"/},c={className:"string",begin:/'/,end:/'/},u={match:/\\'/},d={begin:/\$?\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},e.NUMBER_MODE,n]},p=["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"],f=e.SHEBANG({binary:`(${p.join("|")})`,relevance:10}),g={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0},m=["if","then","else","elif","fi","time","for","while","until","in","do","done","case","esac","coproc","function","select"],x=["true","false"],E={match:/(\/[a-z._-]+)+/},T=["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset"],k=["alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","sudo","type","typeset","ulimit","unalias"],C=["autoload","bg","bindkey","bye","cap","chdir","clone","comparguments","compcall","compctl","compdescribe","compfiles","compgroups","compquote","comptags","comptry","compvalues","dirs","disable","disown","echotc","echoti","emulate","fc","fg","float","functions","getcap","getln","history","integer","jobs","kill","limit","log","noglob","popd","print","pushd","pushln","rehash","sched","setcap","setopt","stat","suspend","ttyctl","unfunction","unhash","unlimit","unsetopt","vared","wait","whence","where","which","zcompile","zformat","zftp","zle","zmodload","zparseopts","zprof","zpty","zregexparse","zsocket","zstyle","ztcp"],R=["chcon","chgrp","chown","chmod","cp","dd","df","dir","dircolors","ln","ls","mkdir","mkfifo","mknod","mktemp","mv","realpath","rm","rmdir","shred","sync","touch","truncate","vdir","b2sum","base32","base64","cat","cksum","comm","csplit","cut","expand","fmt","fold","head","join","md5sum","nl","numfmt","od","paste","ptx","pr","sha1sum","sha224sum","sha256sum","sha384sum","sha512sum","shuf","sort","split","sum","tac","tail","tr","tsort","unexpand","uniq","wc","arch","basename","chroot","date","dirname","du","echo","env","expr","factor","groups","hostid","id","link","logname","nice","nohup","nproc","pathchk","pinky","printenv","printf","pwd","readlink","runcon","seq","sleep","stat","stdbuf","stty","tee","test","timeout","tty","uname","unlink","uptime","users","who","whoami","yes"];return{name:"Bash",aliases:["sh","zsh"],keywords:{$pattern:/\b[a-z][a-z0-9._-]+\b/,keyword:m,literal:x,built_in:[...T,...k,"set","shopt",...C,...R]},contains:[f,e.SHEBANG(),g,d,o,a,E,s,l,c,u,n]}}function Nh(e){const t=e.regex,n=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),r="decltype\\(auto\\)",i="[a-zA-Z_]\\w*::",a="("+r+"|"+t.optional(i)+"[a-zA-Z_]\\w*"+t.optional("<[^<>]+>")+")",s={className:"type",variants:[{begin:"\\b[a-z\\d_]*_t\\b"},{match:/\batomic_[a-z]{3,6}\b/}]},c={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},u={className:"number",variants:[{match:/\b(0b[01']+)/},{match:/(-?)\b([\d']+(\.[\d']*)?|\.[\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)/},{match:/(-?)\b(0[xX][a-fA-F0-9]+(?:'[a-fA-F0-9]+)*(?:\.[a-fA-F0-9]*(?:'[a-fA-F0-9]*)*)?(?:[pP][-+]?[0-9]+)?(l|L)?(u|U)?)/},{match:/(-?)\b\d+(?:'\d+)*(?:\.\d*(?:'\d*)*)?(?:[eE][-+]?\d+)?/}],relevance:0},d={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef elifdef elifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(c,{className:"string"}),{className:"string",begin:/<.*?>/},n,e.C_BLOCK_COMMENT_MODE]},p={className:"title",begin:t.optional(i)+e.IDENT_RE,relevance:0},f=t.optional(i)+e.IDENT_RE+"\\s*\\(",x={keyword:["asm","auto","break","case","continue","default","do","else","enum","extern","for","fortran","goto","if","inline","register","restrict","return","sizeof","typeof","typeof_unqual","struct","switch","typedef","union","volatile","while","_Alignas","_Alignof","_Atomic","_Generic","_Noreturn","_Static_assert","_Thread_local","alignas","alignof","noreturn","static_assert","thread_local","_Pragma"],type:["float","double","signed","unsigned","int","short","long","char","void","_Bool","_BitInt","_Complex","_Imaginary","_Decimal32","_Decimal64","_Decimal96","_Decimal128","_Decimal64x","_Decimal128x","_Float16","_Float32","_Float64","_Float128","_Float32x","_Float64x","_Float128x","const","static","constexpr","complex","bool","imaginary"],literal:"true false NULL",built_in:"std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set pair bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap priority_queue make_pair array shared_ptr abort terminate abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr"},E=[d,s,n,e.C_BLOCK_COMMENT_MODE,u,c],T={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:x,contains:E.concat([{begin:/\(/,end:/\)/,keywords:x,contains:E.concat(["self"]),relevance:0}]),relevance:0},k={begin:"("+a+"[\\*&\\s]+)+"+f,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:x,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:r,keywords:x,relevance:0},{begin:f,returnBegin:!0,contains:[e.inherit(p,{className:"title.function"})],relevance:0},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:x,relevance:0,contains:[n,e.C_BLOCK_COMMENT_MODE,c,u,s,{begin:/\(/,end:/\)/,keywords:x,relevance:0,contains:["self",n,e.C_BLOCK_COMMENT_MODE,c,u,s]}]},s,n,e.C_BLOCK_COMMENT_MODE,d]};return{name:"C",aliases:["h"],keywords:x,disableAutodetect:!0,illegal:"</",contains:[].concat(T,k,E,[d,{begin:e.IDENT_RE+"::",keywords:x},{className:"class",beginKeywords:"enum class struct union",end:/[{;:<>=]/,contains:[{beginKeywords:"final class struct"},e.TITLE_MODE]}]),exports:{preprocessor:d,strings:c,keywords:x}}}function Ah(e){const t=e.regex,n=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),r="decltype\\(auto\\)",i="[a-zA-Z_]\\w*::",a="(?!struct)("+r+"|"+t.optional(i)+"[a-zA-Z_]\\w*"+t.optional("<[^<>]+>")+")",s={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},c={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},u={className:"number",variants:[{begin:"[+-]?(?:(?:[0-9](?:'?[0-9])*\\.(?:[0-9](?:'?[0-9])*)?|\\.[0-9](?:'?[0-9])*)(?:[Ee][+-]?[0-9](?:'?[0-9])*)?|[0-9](?:'?[0-9])*[Ee][+-]?[0-9](?:'?[0-9])*|0[Xx](?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*(?:\\.(?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)?)?|\\.[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)[Pp][+-]?[0-9](?:'?[0-9])*)(?:[Ff](?:16|32|64|128)?|(BF|bf)16|[Ll]|)"},{begin:"[+-]?\\b(?:0[Bb][01](?:'?[01])*|0[Xx][0-9A-Fa-f](?:'?[0-9A-Fa-f])*|0(?:'?[0-7])*|[1-9](?:'?[0-9])*)(?:[Uu](?:LL?|ll?)|[Uu][Zz]?|(?:LL?|ll?)[Uu]?|[Zz][Uu]|)"}],relevance:0},d={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(c,{className:"string"}),{className:"string",begin:/<.*?>/},n,e.C_BLOCK_COMMENT_MODE]},p={className:"title",begin:t.optional(i)+e.IDENT_RE,relevance:0},f=t.optional(i)+e.IDENT_RE+"\\s*\\(",g=["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],m=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],x=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","flat_map","flat_set","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"],E=["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"],C={type:m,keyword:g,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:x},R={className:"function.dispatch",relevance:0,keywords:{_hint:E},begin:t.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,e.IDENT_RE,t.lookahead(/(<[^<>]+>|)\s*\(/))},w=[R,d,s,n,e.C_BLOCK_COMMENT_MODE,u,c],P={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:C,contains:w.concat([{begin:/\(/,end:/\)/,keywords:C,contains:w.concat(["self"]),relevance:0}]),relevance:0},F={className:"function",begin:"("+a+"[\\*&\\s]+)+"+f,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:C,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:r,keywords:C,relevance:0},{begin:f,returnBegin:!0,contains:[p],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[c,u]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:C,relevance:0,contains:[n,e.C_BLOCK_COMMENT_MODE,c,u,s,{begin:/\(/,end:/\)/,keywords:C,relevance:0,contains:["self",n,e.C_BLOCK_COMMENT_MODE,c,u,s]}]},s,n,e.C_BLOCK_COMMENT_MODE,d]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:C,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(P,F,R,w,[d,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function|flat_map|flat_set)\\s*<(?!<)",end:">",keywords:C,contains:["self",s]},{begin:e.IDENT_RE+"::",keywords:C},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}function Ch(e){const t=["bool","byte","char","decimal","delegate","double","dynamic","enum","float","int","long","nint","nuint","object","sbyte","short","string","ulong","uint","ushort"],n=["public","private","protected","static","internal","protected","abstract","async","extern","override","unsafe","virtual","new","sealed","partial"],r=["default","false","null","true"],i=["abstract","as","base","break","case","catch","class","const","continue","do","else","event","explicit","extern","finally","fixed","for","foreach","goto","if","implicit","in","interface","internal","is","lock","namespace","new","operator","out","override","params","private","protected","public","readonly","record","ref","return","scoped","sealed","sizeof","stackalloc","static","struct","switch","this","throw","try","typeof","unchecked","unsafe","using","virtual","void","volatile","while"],o=["add","alias","and","ascending","args","async","await","by","descending","dynamic","equals","file","from","get","global","group","init","into","join","let","nameof","not","notnull","on","or","orderby","partial","record","remove","required","scoped","select","set","unmanaged","value|0","var","when","where","with","yield"],a={keyword:i.concat(o),built_in:t,literal:r},s=e.inherit(e.TITLE_MODE,{begin:"[a-zA-Z](\\.?\\w)*"}),l={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)(u|U|l|L|ul|UL|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},c={className:"string",begin:/"""("*)(?!")(.|\n)*?"""\1/,relevance:1},u={className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},d=e.inherit(u,{illegal:/\n/}),p={className:"subst",begin:/\{/,end:/\}/,keywords:a},f=e.inherit(p,{illegal:/\n/}),g={className:"string",begin:/\$"/,end:'"',illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},e.BACKSLASH_ESCAPE,f]},m={className:"string",begin:/\$@"/,end:'"',contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},p]},x=e.inherit(m,{illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},f]});p.contains=[m,g,u,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,l,e.C_BLOCK_COMMENT_MODE],f.contains=[x,g,d,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,l,e.inherit(e.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];const E={variants:[c,m,g,u,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},T={begin:"<",end:">",contains:[{beginKeywords:"in out"},s]},k=e.IDENT_RE+"(<"+e.IDENT_RE+"(\\s*,\\s*"+e.IDENT_RE+")*>)?(\\[\\])?",C={begin:"@"+e.IDENT_RE,relevance:0};return{name:"C#",aliases:["cs","c#"],keywords:a,illegal:/::/,contains:[e.COMMENT("///","$",{returnBegin:!0,contains:[{className:"doctag",variants:[{begin:"///",relevance:0},{begin:"<!--|-->"},{begin:"</?",end:">"}]}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"meta",begin:"#",end:"$",keywords:{keyword:"if else elif endif define undef warning error line region endregion pragma checksum"}},E,l,{beginKeywords:"class interface",relevance:0,end:/[{;=]/,illegal:/[^\s:,]/,contains:[{beginKeywords:"where class"},s,T,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"namespace",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[s,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"record",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[s,T,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"meta",begin:"^\\s*\\[(?=[\\w])",excludeBegin:!0,end:"\\]",excludeEnd:!0,contains:[{className:"string",begin:/"/,end:/"/}]},{beginKeywords:"new return throw await else",relevance:0},{className:"function",begin:"("+k+"\\s+)+"+e.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,end:/\s*[{;=]/,excludeEnd:!0,keywords:a,contains:[{beginKeywords:n.join(" "),relevance:0},{begin:e.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,contains:[e.TITLE_MODE,T],relevance:0},{match:/\(\)/},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:a,relevance:0,contains:[E,l,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},C]}}const Oh=e=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),Rh=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],Ih=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],Mh=[...Rh,...Ih],Lh=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),Dh=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),Ph=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),Fh=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function Bh(e){const t=e.regex,n=Oh(e),r={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},i="and or not only",o=/@-?\w[\w]*(-\w+)*/,a="[a-zA-Z-][a-zA-Z0-9_-]*",s=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[n.BLOCK_COMMENT,r,n.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+a,relevance:0},n.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+Dh.join("|")+")"},{begin:":(:)?("+Ph.join("|")+")"}]},n.CSS_VARIABLE,{className:"attribute",begin:"\\b("+Fh.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[n.BLOCK_COMMENT,n.HEXCOLOR,n.IMPORTANT,n.CSS_NUMBER_MODE,...s,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...s,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},n.FUNCTION_DISPATCH]},{begin:t.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:o},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:i,attribute:Lh.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...s,n.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+Mh.join("|")+")\\b"}]}}function zh(e){const t=e.regex;return{name:"Diff",aliases:["patch"],contains:[{className:"meta",relevance:10,match:t.either(/^@@ +-\d+,\d+ +\+\d+,\d+ +@@/,/^\*\*\* +\d+,\d+ +\*\*\*\*$/,/^--- +\d+,\d+ +----$/)},{className:"comment",variants:[{begin:t.either(/Index: /,/^index/,/={3,}/,/^-{3}/,/^\*{3} /,/^\+{3}/,/^diff --git/),end:/$/},{match:/^\*{15}$/}]},{className:"addition",begin:/^\+/,end:/$/},{className:"deletion",begin:/^-/,end:/$/},{className:"addition",begin:/^!/,end:/$/}]}}function Uh(e){const o={keyword:["break","case","chan","const","continue","default","defer","else","fallthrough","for","func","go","goto","if","import","interface","map","package","range","return","select","struct","switch","type","var"],type:["bool","byte","complex64","complex128","error","float32","float64","int8","int16","int32","int64","string","uint8","uint16","uint32","uint64","int","uint","uintptr","rune"],literal:["true","false","iota","nil"],built_in:["append","cap","close","complex","copy","imag","len","make","new","panic","print","println","real","recover","delete"]};return{name:"Go",aliases:["golang"],keywords:o,illegal:"</",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"string",variants:[e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{begin:"`",end:"`"}]},{className:"number",variants:[{match:/-?\b0[xX]\.[a-fA-F0-9](_?[a-fA-F0-9])*[pP][+-]?\d(_?\d)*i?/,relevance:0},{match:/-?\b0[xX](_?[a-fA-F0-9])+((\.([a-fA-F0-9](_?[a-fA-F0-9])*)?)?[pP][+-]?\d(_?\d)*)?i?/,relevance:0},{match:/-?\b0[oO](_?[0-7])*i?/,relevance:0},{match:/-?\.\d(_?\d)*([eE][+-]?\d(_?\d)*)?i?/,relevance:0},{match:/-?\b\d(_?\d)*(\.(\d(_?\d)*)?)?([eE][+-]?\d(_?\d)*)?i?/,relevance:0}]},{begin:/:=/},{className:"function",beginKeywords:"func",end:"\\s*(\\{|$)",excludeEnd:!0,contains:[e.TITLE_MODE,{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:o,illegal:/["']/}]}]}}function $h(e){const t=e.regex,n=/[_A-Za-z][_0-9A-Za-z]*/;return{name:"GraphQL",aliases:["gql"],case_insensitive:!0,disableAutodetect:!1,keywords:{keyword:["query","mutation","subscription","type","input","schema","directive","interface","union","scalar","fragment","enum","on"],literal:["true","false","null"]},contains:[e.HASH_COMMENT_MODE,e.QUOTE_STRING_MODE,e.NUMBER_MODE,{scope:"punctuation",match:/[.]{3}/,relevance:0},{scope:"punctuation",begin:/[\!\(\)\:\=\[\]\{\|\}]{1}/,relevance:0},{scope:"variable",begin:/\$/,end:/\W/,excludeEnd:!0,relevance:0},{scope:"meta",match:/@\w+/,excludeEnd:!0},{scope:"symbol",begin:t.concat(n,t.lookahead(/\s*:/)),relevance:0}],illegal:[/[;<']/,/BEGIN/]}}function Hh(e){const t=e.regex,n={className:"number",relevance:0,variants:[{begin:/([+-]+)?[\d]+_[\d_]+/},{begin:e.NUMBER_RE}]},r=e.COMMENT();r.variants=[{begin:/;/,end:/$/},{begin:/#/,end:/$/}];const i={className:"variable",variants:[{begin:/\$[\w\d"][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},o={className:"literal",begin:/\bon|off|true|false|yes|no\b/},a={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:"'''",end:"'''",relevance:10},{begin:'"""',end:'"""',relevance:10},{begin:'"',end:'"'},{begin:"'",end:"'"}]},s={begin:/\[/,end:/\]/,contains:[r,o,i,a,n,"self"],relevance:0},l=/[A-Za-z0-9_-]+/,c=/"(\\"|[^"])*"/,u=/'[^']*'/,d=t.either(l,c,u),p=t.concat(d,"(\\s*\\.\\s*",d,")*",t.lookahead(/\s*=\s*[^#\s]/));return{name:"TOML, also INI",aliases:["toml"],case_insensitive:!0,illegal:/\S/,contains:[r,{className:"section",begin:/\[+/,end:/\]+/},{begin:p,className:"attr",starts:{end:/$/,contains:[r,s,o,i,a,n]}}]}}var Rt="[0-9](_*[0-9])*",wn=`\\.(${Rt})`,kn="[0-9a-fA-F](_*[0-9a-fA-F])*",Mo={className:"number",variants:[{begin:`(\\b(${Rt})((${wn})|\\.)?|(${wn}))[eE][+-]?(${Rt})[fFdD]?\\b`},{begin:`\\b(${Rt})((${wn})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${wn})[fFdD]?\\b`},{begin:`\\b(${Rt})[fFdD]\\b`},{begin:`\\b0[xX]((${kn})\\.?|(${kn})?\\.(${kn}))[pP][+-]?(${Rt})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${kn})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function Lo(e,t,n){return n===-1?"":e.replace(t,r=>Lo(e,t,n-1))}function Kh(e){const t=e.regex,n="[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*",r=n+Lo("(?:<"+n+"~~~(?:\\s*,\\s*"+n+"~~~)*>)?",/~~~/g,2),l={keyword:["synchronized","abstract","private","var","static","if","const ","for","while","strictfp","finally","protected","import","native","final","void","enum","else","break","transient","catch","instanceof","volatile","case","assert","package","default","public","try","switch","continue","throws","protected","public","private","module","requires","exports","do","sealed","yield","permits","goto","when"],literal:["false","true","null"],type:["char","boolean","long","float","int","byte","short","double"],built_in:["super","this"]},c={className:"meta",begin:"@"+n,contains:[{begin:/\(/,end:/\)/,contains:["self"]}]},u={className:"params",begin:/\(/,end:/\)/,keywords:l,relevance:0,contains:[e.C_BLOCK_COMMENT_MODE],endsParent:!0};return{name:"Java",aliases:["jsp"],keywords:l,illegal:/<\/|#/,contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),{begin:/import java\.[a-z]+\./,keywords:"import",relevance:2},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{begin:/"""/,end:/"""/,className:"string",contains:[e.BACKSLASH_ESCAPE]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{match:[/\b(?:class|interface|enum|extends|implements|new)/,/\s+/,n],className:{1:"keyword",3:"title.class"}},{match:/non-sealed/,scope:"keyword"},{begin:[t.concat(/(?!else)/,n),/\s+/,n,/\s+/,/=(?!=)/],className:{1:"type",3:"variable",5:"operator"}},{begin:[/record/,/\s+/,n],className:{1:"keyword",3:"title.class"},contains:[u,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"new throw return else",relevance:0},{begin:["(?:"+r+"\\s+)",e.UNDERSCORE_IDENT_RE,/\s*(?=\()/],className:{2:"title.function"},keywords:l,contains:[{className:"params",begin:/\(/,end:/\)/,keywords:l,relevance:0,contains:[c,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,Mo,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},Mo,c]}}const Do="[A-Za-z$_][0-9A-Za-z$_]*",Gh=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],Wh=["true","false","null","undefined","NaN","Infinity"],Po=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],Fo=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],Bo=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],jh=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],Vh=[].concat(Bo,Po,Fo);function qh(e){const t=e.regex,n=(L,{after:j})=>{const h="</"+L[0].slice(1);return L.input.indexOf(h,j)!==-1},r=Do,i={begin:"<>",end:"</>"},o=/<[A-Za-z0-9\\._:-]+\s*\/>/,a={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(L,j)=>{const h=L[0].length+L.index,Z=L.input[h];if(Z==="<"||Z===","){j.ignoreMatch();return}Z===">"&&(n(L,{after:h})||j.ignoreMatch());let ee;const b=L.input.substring(h);if(ee=b.match(/^\s*=/)){j.ignoreMatch();return}if((ee=b.match(/^\s+extends\s+/))&&ee.index===0){j.ignoreMatch();return}}},s={$pattern:Do,keyword:Gh,literal:Wh,built_in:Vh,"variable.language":jh},l="[0-9](_?[0-9])*",c=`\\.(${l})`,u="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",d={className:"number",variants:[{begin:`(\\b(${u})((${c})|\\.)?|(${c}))[eE][+-]?(${l})\\b`},{begin:`\\b(${u})\\b((${c})\\b|\\.)?|(${c})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},p={className:"subst",begin:"\\$\\{",end:"\\}",keywords:s,contains:[]},f={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,p],subLanguage:"xml"}},g={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,p],subLanguage:"css"}},m={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,p],subLanguage:"graphql"}},x={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,p]},T={className:"comment",variants:[e.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:r+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},k=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,f,g,m,x,{match:/\$\d+/},d];p.contains=k.concat({begin:/\{/,end:/\}/,keywords:s,contains:["self"].concat(k)});const C=[].concat(T,p.contains),R=C.concat([{begin:/(\s*)\(/,end:/\)/,keywords:s,contains:["self"].concat(C)}]),w={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:R},P={variants:[{match:[/class/,/\s+/,r,/\s+/,/extends/,/\s+/,t.concat(r,"(",t.concat(/\./,r),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,r],scope:{1:"keyword",3:"title.class"}}]},F={relevance:0,match:t.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...Po,...Fo]}},$={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},S={variants:[{match:[/function/,/\s+/,r,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[w],illegal:/%/},z={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function U(L){return t.concat("(?!",L.join("|"),")")}const ne={match:t.concat(/\b/,U([...Bo,"super","import"].map(L=>`${L}\\s*\\(`)),r,t.lookahead(/\s*\(/)),className:"title.function",relevance:0},V={begin:t.concat(/\./,t.lookahead(t.concat(r,/(?![0-9A-Za-z$_(])/))),end:r,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},G={match:[/get|set/,/\s+/,r,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},w]},N="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",D={match:[/const|var|let/,/\s+/,r,/\s*/,/=\s*/,/(async\s*)?/,t.lookahead(N)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[w]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:s,exports:{PARAMS_CONTAINS:R,CLASS_REFERENCE:F},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),$,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,f,g,m,x,T,{match:/\$\d+/},d,F,{scope:"attr",match:r+t.lookahead(":"),relevance:0},D,{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[T,e.REGEXP_MODE,{className:"function",begin:N,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:R}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:i.begin,end:i.end},{match:o},{begin:a.begin,"on:begin":a.isTrulyOpeningTag,end:a.end}],subLanguage:"xml",contains:[{begin:a.begin,end:a.end,skip:!0,contains:["self"]}]}]},S,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[w,e.inherit(e.TITLE_MODE,{begin:r,className:"title.function"})]},{match:/\.\.\./,relevance:0},V,{match:"\\$"+r,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[w]},ne,z,P,G,{match:/\$[(.]/}]}}function Yh(e){const t={className:"attr",begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},n={match:/[{}[\],:]/,className:"punctuation",relevance:0},r=["true","false","null"],i={scope:"literal",beginKeywords:r.join(" ")};return{name:"JSON",aliases:["jsonc"],keywords:{literal:r},contains:[t,n,e.QUOTE_STRING_MODE,i,e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}var It="[0-9](_*[0-9])*",Sn=`\\.(${It})`,vn="[0-9a-fA-F](_*[0-9a-fA-F])*",Zh={className:"number",variants:[{begin:`(\\b(${It})((${Sn})|\\.)?|(${Sn}))[eE][+-]?(${It})[fFdD]?\\b`},{begin:`\\b(${It})((${Sn})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${Sn})[fFdD]?\\b`},{begin:`\\b(${It})[fFdD]\\b`},{begin:`\\b0[xX]((${vn})\\.?|(${vn})?\\.(${vn}))[pP][+-]?(${It})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${vn})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function Xh(e){const t={keyword:"abstract as val var vararg get set class object open private protected public noinline crossinline dynamic final enum if else do while for when throw try catch finally import package is in fun override companion reified inline lateinit init interface annotation data sealed internal infix operator out by constructor super tailrec where const inner suspend typealias external expect actual",built_in:"Byte Short Char Int Long Boolean Float Double Void Unit Nothing",literal:"true false null"},n={className:"keyword",begin:/\b(break|continue|return|this)\b/,starts:{contains:[{className:"symbol",begin:/@\w+/}]}},r={className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"@"},i={className:"subst",begin:/\$\{/,end:/\}/,contains:[e.C_NUMBER_MODE]},o={className:"variable",begin:"\\$"+e.UNDERSCORE_IDENT_RE},a={className:"string",variants:[{begin:'"""',end:'"""(?=[^"])',contains:[o,i]},{begin:"'",end:"'",illegal:/\n/,contains:[e.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/,contains:[e.BACKSLASH_ESCAPE,o,i]}]};i.contains.push(a);const s={className:"meta",begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+e.UNDERSCORE_IDENT_RE+")?"},l={className:"meta",begin:"@"+e.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[e.inherit(a,{className:"string"}),"self"]}]},c=Zh,u=e.COMMENT("/\\*","\\*/",{contains:[e.C_BLOCK_COMMENT_MODE]}),d={variants:[{className:"type",begin:e.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/,contains:[]}]},p=d;return p.variants[1].contains=[d],d.variants[1].contains=[p],{name:"Kotlin",aliases:["kt","kts"],keywords:t,contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),e.C_LINE_COMMENT_MODE,u,n,r,s,l,{className:"function",beginKeywords:"fun",end:"[(]|$",returnBegin:!0,excludeEnd:!0,keywords:t,relevance:5,contains:[{begin:e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[e.UNDERSCORE_TITLE_MODE]},{className:"type",begin:/</,end:/>/,keywords:"reified",relevance:0},{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:t,relevance:0,contains:[{begin:/:/,end:/[=,\/]/,endsWithParent:!0,contains:[d,e.C_LINE_COMMENT_MODE,u],relevance:0},e.C_LINE_COMMENT_MODE,u,s,l,a,e.C_NUMBER_MODE]},u]},{begin:[/class|interface|trait/,/\s+/,e.UNDERSCORE_IDENT_RE],beginScope:{3:"title.class"},keywords:"class interface trait",end:/[:\{(]|$/,excludeEnd:!0,illegal:"extends implements",contains:[{beginKeywords:"public protected internal private constructor"},e.UNDERSCORE_TITLE_MODE,{className:"type",begin:/</,end:/>/,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:/[,:]\s*/,end:/[<\(,){\s]|$/,excludeBegin:!0,returnEnd:!0},s,l]},a,{className:"meta",begin:"^#!/usr/bin/env",end:"$",illegal:`
174
+ `},c]}}const Qh=e=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),Jh=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],em=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],tm=[...Jh,...em],nm=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),zo=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),Uo=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),rm=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse(),im=zo.concat(Uo).sort().reverse();function am(e){const t=Qh(e),n=im,r="and or not only",i="[\\w-]+",o="("+i+"|@\\{"+i+"\\})",a=[],s=[],l=function(k){return{className:"string",begin:"~?"+k+".*?"+k}},c=function(k,C,R){return{className:k,begin:C,relevance:R}},u={$pattern:/[a-z-]+/,keyword:r,attribute:nm.join(" ")},d={begin:"\\(",end:"\\)",contains:s,keywords:u,relevance:0};s.push(e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,l("'"),l('"'),t.CSS_NUMBER_MODE,{begin:"(url|data-uri)\\(",starts:{className:"string",end:"[\\)\\n]",excludeEnd:!0}},t.HEXCOLOR,d,c("variable","@@?"+i,10),c("variable","@\\{"+i+"\\}"),c("built_in","~?`[^`]*?`"),{className:"attribute",begin:i+"\\s*:",end:":",returnBegin:!0,excludeEnd:!0},t.IMPORTANT,{beginKeywords:"and not"},t.FUNCTION_DISPATCH);const p=s.concat({begin:/\{/,end:/\}/,contains:a}),f={beginKeywords:"when",endsWithParent:!0,contains:[{beginKeywords:"and not"}].concat(s)},g={begin:o+"\\s*:",returnBegin:!0,end:/[;}]/,relevance:0,contains:[{begin:/-(webkit|moz|ms|o)-/},t.CSS_VARIABLE,{className:"attribute",begin:"\\b("+rm.join("|")+")\\b",end:/(?=:)/,starts:{endsWithParent:!0,illegal:"[<=$]",relevance:0,contains:s}}]},m={className:"keyword",begin:"@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",starts:{end:"[;{}]",keywords:u,returnEnd:!0,contains:s,relevance:0}},x={className:"variable",variants:[{begin:"@"+i+"\\s*:",relevance:15},{begin:"@"+i}],starts:{end:"[;}]",returnEnd:!0,contains:p}},E={variants:[{begin:"[\\.#:&\\[>]",end:"[;{}]"},{begin:o,end:/\{/}],returnBegin:!0,returnEnd:!0,illegal:`[<='$"]`,relevance:0,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,f,c("keyword","all\\b"),c("variable","@\\{"+i+"\\}"),{begin:"\\b("+tm.join("|")+")\\b",className:"selector-tag"},t.CSS_NUMBER_MODE,c("selector-tag",o,0),c("selector-id","#"+o),c("selector-class","\\."+o,0),c("selector-tag","&",0),t.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",begin:":("+zo.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+Uo.join("|")+")"},{begin:/\(/,end:/\)/,relevance:0,contains:p},{begin:"!important"},t.FUNCTION_DISPATCH]},T={begin:i+`:(:)?(${n.join("|")})`,returnBegin:!0,contains:[E]};return a.push(e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,m,x,T,g,E,f,t.FUNCTION_DISPATCH),{name:"Less",case_insensitive:!0,illegal:`[=>'/<($"]`,contains:a}}function om(e){const t="\\[=*\\[",n="\\]=*\\]",r={begin:t,end:n,contains:["self"]},i=[e.COMMENT("--(?!"+t+")","$"),e.COMMENT("--"+t,n,{contains:[r],relevance:10})];return{name:"Lua",aliases:["pluto"],keywords:{$pattern:e.UNDERSCORE_IDENT_RE,literal:"true false nil",keyword:"and break do else elseif end for goto if in local not or repeat return then until while",built_in:"_G _ENV _VERSION __index __newindex __mode __call __metatable __tostring __len __gc __add __sub __mul __div __mod __pow __concat __unm __eq __lt __le assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall arg self coroutine resume yield status wrap create running debug getupvalue debug sethook getmetatable gethook setmetatable setlocal traceback setfenv getinfo setupvalue getlocal getregistry getfenv io lines write close flush open output type read stderr stdin input stdout popen tmpfile math log max acos huge ldexp pi cos tanh pow deg tan cosh sinh random randomseed frexp ceil floor rad abs sqrt modf asin min mod fmod log10 atan2 exp sin atan os exit setlocale date getenv difftime remove time clock tmpname rename execute package preload loadlib loaded loaders cpath config path seeall string sub upper len gfind rep find match char dump gmatch reverse byte format gsub lower table setn insert getn foreachi maxn foreach concat sort remove"},contains:i.concat([{className:"function",beginKeywords:"function",end:"\\)",contains:[e.inherit(e.TITLE_MODE,{begin:"([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"}),{className:"params",begin:"\\(",endsWithParent:!0,contains:i}].concat(i)},e.C_NUMBER_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:t,end:n,contains:[r],relevance:5}])}}function sm(e){const t={className:"variable",variants:[{begin:"\\$\\("+e.UNDERSCORE_IDENT_RE+"\\)",contains:[e.BACKSLASH_ESCAPE]},{begin:/\$[@%<?\^\+\*]/}]},n={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,t]},r={className:"variable",begin:/\$\([\w-]+\s/,end:/\)/,keywords:{built_in:"subst patsubst strip findstring filter filter-out sort word wordlist firstword lastword dir notdir suffix basename addsuffix addprefix join wildcard realpath abspath error warning shell origin flavor foreach if or and call eval file value"},contains:[t,n]},i={begin:"^"+e.UNDERSCORE_IDENT_RE+"\\s*(?=[:+?]?=)"},o={className:"meta",begin:/^\.PHONY:/,end:/$/,keywords:{$pattern:/[\.\w]+/,keyword:".PHONY"}},a={className:"section",begin:/^[^\s]+:/,end:/$/,contains:[t]};return{name:"Makefile",aliases:["mk","mak","make"],keywords:{$pattern:/[\w-]+/,keyword:"define endef undefine ifdef ifndef ifeq ifneq else endif include -include sinclude override export unexport private vpath"},contains:[e.HASH_COMMENT_MODE,t,n,r,i,o,a]}}function lm(e){const t=e.regex,n={begin:/<\/?[A-Za-z_]/,end:">",subLanguage:"xml",relevance:0},r={begin:"^[-\\*]{3,}",end:"$"},i={className:"code",variants:[{begin:"(`{3,})[^`](.|\\n)*?\\1`*[ ]*"},{begin:"(~{3,})[^~](.|\\n)*?\\1~*[ ]*"},{begin:"```",end:"```+[ ]*$"},{begin:"~~~",end:"~~~+[ ]*$"},{begin:"`.+?`"},{begin:"(?=^( {4}|\\t))",contains:[{begin:"^( {4}|\\t)",end:"(\\n)$"}],relevance:0}]},o={className:"bullet",begin:"^[ ]*([*+-]|(\\d+\\.))(?=\\s+)",end:"\\s+",excludeEnd:!0},a={begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]},s=/[A-Za-z][A-Za-z0-9+.-]*/,l={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,relevance:2},{begin:t.concat(/\[.+?\]\(/,s,/:\/\/.*?\)/),relevance:2},{begin:/\[.+?\]\([./?&#].*?\)/,relevance:1},{begin:/\[.*?\]\(.*?\)/,relevance:0}],returnBegin:!0,contains:[{match:/\[(?=\])/},{className:"string",relevance:0,begin:"\\[",end:"\\]",excludeBegin:!0,returnEnd:!0},{className:"link",relevance:0,begin:"\\]\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0},{className:"symbol",relevance:0,begin:"\\]\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0}]},c={className:"strong",contains:[],variants:[{begin:/_{2}(?!\s)/,end:/_{2}/},{begin:/\*{2}(?!\s)/,end:/\*{2}/}]},u={className:"emphasis",contains:[],variants:[{begin:/\*(?![*\s])/,end:/\*/},{begin:/_(?![_\s])/,end:/_/,relevance:0}]},d=e.inherit(c,{contains:[]}),p=e.inherit(u,{contains:[]});c.contains.push(p),u.contains.push(d);let f=[n,l];return[c,u,d,p].forEach(E=>{E.contains=E.contains.concat(f)}),f=f.concat(c,u),{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[{className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:f},{begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n",contains:f}]}]},n,o,c,u,{className:"quote",begin:"^>\\s+",contains:f,end:"$"},i,r,l,a,{scope:"literal",match:/&([a-zA-Z0-9]+|#[0-9]{1,7}|#[Xx][0-9a-fA-F]{1,6});/}]}}function cm(e){const t={className:"built_in",begin:"\\b(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)\\w+"},n=/[a-zA-Z@][a-zA-Z0-9_]*/,s={"variable.language":["this","super"],$pattern:n,keyword:["while","export","sizeof","typedef","const","struct","for","union","volatile","static","mutable","if","do","return","goto","enum","else","break","extern","asm","case","default","register","explicit","typename","switch","continue","inline","readonly","assign","readwrite","self","@synchronized","id","typeof","nonatomic","IBOutlet","IBAction","strong","weak","copy","in","out","inout","bycopy","byref","oneway","__strong","__weak","__block","__autoreleasing","@private","@protected","@public","@try","@property","@end","@throw","@catch","@finally","@autoreleasepool","@synthesize","@dynamic","@selector","@optional","@required","@encode","@package","@import","@defs","@compatibility_alias","__bridge","__bridge_transfer","__bridge_retained","__bridge_retain","__covariant","__contravariant","__kindof","_Nonnull","_Nullable","_Null_unspecified","__FUNCTION__","__PRETTY_FUNCTION__","__attribute__","getter","setter","retain","unsafe_unretained","nonnull","nullable","null_unspecified","null_resettable","class","instancetype","NS_DESIGNATED_INITIALIZER","NS_UNAVAILABLE","NS_REQUIRES_SUPER","NS_RETURNS_INNER_POINTER","NS_INLINE","NS_AVAILABLE","NS_DEPRECATED","NS_ENUM","NS_OPTIONS","NS_SWIFT_UNAVAILABLE","NS_ASSUME_NONNULL_BEGIN","NS_ASSUME_NONNULL_END","NS_REFINED_FOR_SWIFT","NS_SWIFT_NAME","NS_SWIFT_NOTHROW","NS_DURING","NS_HANDLER","NS_ENDHANDLER","NS_VALUERETURN","NS_VOIDRETURN"],literal:["false","true","FALSE","TRUE","nil","YES","NO","NULL"],built_in:["dispatch_once_t","dispatch_queue_t","dispatch_sync","dispatch_async","dispatch_once"],type:["int","float","char","unsigned","signed","short","long","double","wchar_t","unichar","void","bool","BOOL","id|0","_Bool"]},l={$pattern:n,keyword:["@interface","@class","@protocol","@implementation"]};return{name:"Objective-C",aliases:["mm","objc","obj-c","obj-c++","objective-c++"],keywords:s,illegal:"</",contains:[t,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.C_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{className:"string",variants:[{begin:'@"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]}]},{className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),{className:"string",begin:/<.*?>/,end:/$/,illegal:"\\n"},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"class",begin:"("+l.keyword.join("|")+")\\b",end:/(\{|$)/,excludeEnd:!0,keywords:l,contains:[e.UNDERSCORE_TITLE_MODE]},{begin:"\\."+e.UNDERSCORE_IDENT_RE,relevance:0}]}}function um(e){const t=e.regex,n=["abs","accept","alarm","and","atan2","bind","binmode","bless","break","caller","chdir","chmod","chomp","chop","chown","chr","chroot","class","close","closedir","connect","continue","cos","crypt","dbmclose","dbmopen","defined","delete","die","do","dump","each","else","elsif","endgrent","endhostent","endnetent","endprotoent","endpwent","endservent","eof","eval","exec","exists","exit","exp","fcntl","field","fileno","flock","for","foreach","fork","format","formline","getc","getgrent","getgrgid","getgrnam","gethostbyaddr","gethostbyname","gethostent","getlogin","getnetbyaddr","getnetbyname","getnetent","getpeername","getpgrp","getpriority","getprotobyname","getprotobynumber","getprotoent","getpwent","getpwnam","getpwuid","getservbyname","getservbyport","getservent","getsockname","getsockopt","given","glob","gmtime","goto","grep","gt","hex","if","index","int","ioctl","join","keys","kill","last","lc","lcfirst","length","link","listen","local","localtime","log","lstat","lt","ma","map","method","mkdir","msgctl","msgget","msgrcv","msgsnd","my","ne","next","no","not","oct","open","opendir","or","ord","our","pack","package","pipe","pop","pos","print","printf","prototype","push","q|0","qq","quotemeta","qw","qx","rand","read","readdir","readline","readlink","readpipe","recv","redo","ref","rename","require","reset","return","reverse","rewinddir","rindex","rmdir","say","scalar","seek","seekdir","select","semctl","semget","semop","send","setgrent","sethostent","setnetent","setpgrp","setpriority","setprotoent","setpwent","setservent","setsockopt","shift","shmctl","shmget","shmread","shmwrite","shutdown","sin","sleep","socket","socketpair","sort","splice","split","sprintf","sqrt","srand","stat","state","study","sub","substr","symlink","syscall","sysopen","sysread","sysseek","system","syswrite","tell","telldir","tie","tied","time","times","tr","truncate","uc","ucfirst","umask","undef","unless","unlink","unpack","unshift","untie","until","use","utime","values","vec","wait","waitpid","wantarray","warn","when","while","write","x|0","xor","y|0"],r=/[dualxmsipngr]{0,12}/,i={$pattern:/[\w.]+/,keyword:n.join(" ")},o={className:"subst",begin:"[$@]\\{",end:"\\}",keywords:i},a={begin:/->\{/,end:/\}/},s={scope:"attr",match:/\s+:\s*\w+(\s*\(.*?\))?/},l={scope:"variable",variants:[{begin:/\$\d/},{begin:t.concat(/[$%@](?!")(\^\w\b|#\w+(::\w+)*|\{\w+\}|\w+(::\w*)*)/,"(?![A-Za-z])(?![@$%])")},{begin:/[$%@](?!")[^\s\w{=]|\$=/,relevance:0}],contains:[s]},c={className:"number",variants:[{match:/0?\.[0-9][0-9_]+\b/},{match:/\bv?(0|[1-9][0-9_]*(\.[0-9_]+)?|[1-9][0-9_]*)\b/},{match:/\b0[0-7][0-7_]*\b/},{match:/\b0x[0-9a-fA-F][0-9a-fA-F_]*\b/},{match:/\b0b[0-1][0-1_]*\b/}],relevance:0},u=[e.BACKSLASH_ESCAPE,o,l],d=[/!/,/\//,/\|/,/\?/,/'/,/"/,/#/],p=(m,x,E="\\1")=>{const T=E==="\\1"?E:t.concat(E,x);return t.concat(t.concat("(?:",m,")"),x,/(?:\\.|[^\\\/])*?/,T,/(?:\\.|[^\\\/])*?/,E,r)},f=(m,x,E)=>t.concat(t.concat("(?:",m,")"),x,/(?:\\.|[^\\\/])*?/,E,r),g=[l,e.HASH_COMMENT_MODE,e.COMMENT(/^=\w/,/=cut/,{endsWithParent:!0}),a,{className:"string",contains:u,variants:[{begin:"q[qwxr]?\\s*\\(",end:"\\)",relevance:5},{begin:"q[qwxr]?\\s*\\[",end:"\\]",relevance:5},{begin:"q[qwxr]?\\s*\\{",end:"\\}",relevance:5},{begin:"q[qwxr]?\\s*\\|",end:"\\|",relevance:5},{begin:"q[qwxr]?\\s*<",end:">",relevance:5},{begin:"qw\\s+q",end:"q",relevance:5},{begin:"'",end:"'",contains:[e.BACKSLASH_ESCAPE]},{begin:'"',end:'"'},{begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE]},{begin:/\{\w+\}/,relevance:0},{begin:"-?\\w+\\s*=>",relevance:0}]},c,{begin:"(\\/\\/|"+e.RE_STARTERS_RE+"|\\b(split|return|print|reverse|grep)\\b)\\s*",keywords:"split return print reverse grep",relevance:0,contains:[e.HASH_COMMENT_MODE,{className:"regexp",variants:[{begin:p("s|tr|y",t.either(...d,{capture:!0}))},{begin:p("s|tr|y","\\(","\\)")},{begin:p("s|tr|y","\\[","\\]")},{begin:p("s|tr|y","\\{","\\}")}],relevance:2},{className:"regexp",variants:[{begin:/(m|qr)\/\//,relevance:0},{begin:f("(?:m|qr)?",/\//,/\//)},{begin:f("m|qr",t.either(...d,{capture:!0}),/\1/)},{begin:f("m|qr",/\(/,/\)/)},{begin:f("m|qr",/\[/,/\]/)},{begin:f("m|qr",/\{/,/\}/)}]}]},{className:"function",beginKeywords:"sub method",end:"(\\s*\\(.*?\\))?[;{]",excludeEnd:!0,relevance:5,contains:[e.TITLE_MODE,s]},{className:"class",beginKeywords:"class",end:"[;{]",excludeEnd:!0,relevance:5,contains:[e.TITLE_MODE,s,c]},{begin:"-\\w\\b",relevance:0},{begin:"^__DATA__$",end:"^__END__$",subLanguage:"mojolicious",contains:[{begin:"^@@.*",end:"$",className:"comment"}]}];return o.contains=g,a.contains=g,{name:"Perl",aliases:["pl","pm"],keywords:i,contains:g}}function dm(e){const t=e.regex,n=/(?![A-Za-z0-9])(?![$])/,r=t.concat(/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/,n),i=t.concat(/(\\?[A-Z][a-z0-9_\x7f-\xff]+|\\?[A-Z]+(?=[A-Z][a-z0-9_\x7f-\xff])){1,}/,n),o=t.concat(/[A-Z]+/,n),a={scope:"variable",match:"\\$+"+r},s={scope:"meta",variants:[{begin:/<\?php/,relevance:10},{begin:/<\?=/},{begin:/<\?/,relevance:.1},{begin:/\?>/}]},l={scope:"subst",variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]},c=e.inherit(e.APOS_STRING_MODE,{illegal:null}),u=e.inherit(e.QUOTE_STRING_MODE,{illegal:null,contains:e.QUOTE_STRING_MODE.contains.concat(l)}),d={begin:/<<<[ \t]*(?:(\w+)|"(\w+)")\n/,end:/[ \t]*(\w+)\b/,contains:e.QUOTE_STRING_MODE.contains.concat(l),"on:begin":(V,G)=>{G.data._beginMatch=V[1]||V[2]},"on:end":(V,G)=>{G.data._beginMatch!==V[1]&&G.ignoreMatch()}},p=e.END_SAME_AS_BEGIN({begin:/<<<[ \t]*'(\w+)'\n/,end:/[ \t]*(\w+)\b/}),f=`[
175
+ ]`,g={scope:"string",variants:[u,c,d,p]},m={scope:"number",variants:[{begin:"\\b0[bB][01]+(?:_[01]+)*\\b"},{begin:"\\b0[oO][0-7]+(?:_[0-7]+)*\\b"},{begin:"\\b0[xX][\\da-fA-F]+(?:_[\\da-fA-F]+)*\\b"},{begin:"(?:\\b\\d+(?:_\\d+)*(\\.(?:\\d+(?:_\\d+)*))?|\\B\\.\\d+)(?:[eE][+-]?\\d+)?"}],relevance:0},x=["false","null","true"],E=["__CLASS__","__DIR__","__FILE__","__FUNCTION__","__COMPILER_HALT_OFFSET__","__LINE__","__METHOD__","__NAMESPACE__","__TRAIT__","die","echo","exit","include","include_once","print","require","require_once","array","abstract","and","as","binary","bool","boolean","break","callable","case","catch","class","clone","const","continue","declare","default","do","double","else","elseif","empty","enddeclare","endfor","endforeach","endif","endswitch","endwhile","enum","eval","extends","final","finally","float","for","foreach","from","global","goto","if","implements","instanceof","insteadof","int","integer","interface","isset","iterable","list","match|0","mixed","new","never","object","or","private","protected","public","readonly","real","return","string","switch","throw","trait","try","unset","use","var","void","while","xor","yield"],T=["Error|0","AppendIterator","ArgumentCountError","ArithmeticError","ArrayIterator","ArrayObject","AssertionError","BadFunctionCallException","BadMethodCallException","CachingIterator","CallbackFilterIterator","CompileError","Countable","DirectoryIterator","DivisionByZeroError","DomainException","EmptyIterator","ErrorException","Exception","FilesystemIterator","FilterIterator","GlobIterator","InfiniteIterator","InvalidArgumentException","IteratorIterator","LengthException","LimitIterator","LogicException","MultipleIterator","NoRewindIterator","OutOfBoundsException","OutOfRangeException","OuterIterator","OverflowException","ParentIterator","ParseError","RangeException","RecursiveArrayIterator","RecursiveCachingIterator","RecursiveCallbackFilterIterator","RecursiveDirectoryIterator","RecursiveFilterIterator","RecursiveIterator","RecursiveIteratorIterator","RecursiveRegexIterator","RecursiveTreeIterator","RegexIterator","RuntimeException","SeekableIterator","SplDoublyLinkedList","SplFileInfo","SplFileObject","SplFixedArray","SplHeap","SplMaxHeap","SplMinHeap","SplObjectStorage","SplObserver","SplPriorityQueue","SplQueue","SplStack","SplSubject","SplTempFileObject","TypeError","UnderflowException","UnexpectedValueException","UnhandledMatchError","ArrayAccess","BackedEnum","Closure","Fiber","Generator","Iterator","IteratorAggregate","Serializable","Stringable","Throwable","Traversable","UnitEnum","WeakReference","WeakMap","Directory","__PHP_Incomplete_Class","parent","php_user_filter","self","static","stdClass"],C={keyword:E,literal:(V=>{const G=[];return V.forEach(N=>{G.push(N),N.toLowerCase()===N?G.push(N.toUpperCase()):G.push(N.toLowerCase())}),G})(x),built_in:T},R=V=>V.map(G=>G.replace(/\|\d+$/,"")),w={variants:[{match:[/new/,t.concat(f,"+"),t.concat("(?!",R(T).join("\\b|"),"\\b)"),i],scope:{1:"keyword",4:"title.class"}}]},P=t.concat(r,"\\b(?!\\()"),F={variants:[{match:[t.concat(/::/,t.lookahead(/(?!class\b)/)),P],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[i,t.concat(/::/,t.lookahead(/(?!class\b)/)),P],scope:{1:"title.class",3:"variable.constant"}},{match:[i,t.concat("::",t.lookahead(/(?!class\b)/))],scope:{1:"title.class"}},{match:[i,/::/,/class/],scope:{1:"title.class",3:"variable.language"}}]},$={scope:"attr",match:t.concat(r,t.lookahead(":"),t.lookahead(/(?!::)/))},S={relevance:0,begin:/\(/,end:/\)/,keywords:C,contains:[$,a,F,e.C_BLOCK_COMMENT_MODE,g,m,w]},z={relevance:0,match:[/\b/,t.concat("(?!fn\\b|function\\b|",R(E).join("\\b|"),"|",R(T).join("\\b|"),"\\b)"),r,t.concat(f,"*"),t.lookahead(/(?=\()/)],scope:{3:"title.function.invoke"},contains:[S]};S.contains.push(z);const U=[$,F,e.C_BLOCK_COMMENT_MODE,g,m,w],ne={begin:t.concat(/#\[\s*\\?/,t.either(i,o)),beginScope:"meta",end:/]/,endScope:"meta",keywords:{literal:x,keyword:["new","array"]},contains:[{begin:/\[/,end:/]/,keywords:{literal:x,keyword:["new","array"]},contains:["self",...U]},...U,{scope:"meta",variants:[{match:i},{match:o}]}]};return{case_insensitive:!1,keywords:C,contains:[ne,e.HASH_COMMENT_MODE,e.COMMENT("//","$"),e.COMMENT("/\\*","\\*/",{contains:[{scope:"doctag",match:"@[A-Za-z]+"}]}),{match:/__halt_compiler\(\);/,keywords:"__halt_compiler",starts:{scope:"comment",end:e.MATCH_NOTHING_RE,contains:[{match:/\?>/,scope:"meta",endsParent:!0}]}},s,{scope:"variable.language",match:/\$this\b/},a,z,F,{match:[/const/,/\s/,r],scope:{1:"keyword",3:"variable.constant"}},w,{scope:"function",relevance:0,beginKeywords:"fn function",end:/[;{]/,excludeEnd:!0,illegal:"[$%\\[]",contains:[{beginKeywords:"use"},e.UNDERSCORE_TITLE_MODE,{begin:"=>",endsParent:!0},{scope:"params",begin:"\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0,keywords:C,contains:["self",ne,a,F,e.C_BLOCK_COMMENT_MODE,g,m]}]},{scope:"class",variants:[{beginKeywords:"enum",illegal:/[($"]/},{beginKeywords:"class interface trait",illegal:/[:($"]/}],relevance:0,end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"namespace",relevance:0,end:";",illegal:/[.']/,contains:[e.inherit(e.UNDERSCORE_TITLE_MODE,{scope:"title.class"})]},{beginKeywords:"use",relevance:0,end:";",contains:[{match:/\b(as|const|function)\b/,scope:"keyword"},e.UNDERSCORE_TITLE_MODE]},g,m]}}function fm(e){return{name:"PHP template",subLanguage:"xml",contains:[{begin:/<\?(php|=)?/,end:/\?>/,subLanguage:"php",contains:[{begin:"/\\*",end:"\\*/",skip:!0},{begin:'b"',end:'"',skip:!0},{begin:"b'",end:"'",skip:!0},e.inherit(e.APOS_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0})]}]}}function pm(e){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}}function gm(e){const t=e.regex,n=new RegExp("[\\p{XID_Start}_]\\p{XID_Continue}*","u"),r=["and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","match","nonlocal|10","not","or","pass","raise","return","try","while","with","yield"],s={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:r,built_in:["__import__","abs","all","any","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip"],literal:["__debug__","Ellipsis","False","None","NotImplemented","True"],type:["Any","Callable","Coroutine","Dict","List","Literal","Generic","Optional","Sequence","Set","Tuple","Type","Union"]},l={className:"meta",begin:/^(>>>|\.\.\.) /},c={className:"subst",begin:/\{/,end:/\}/,keywords:s,illegal:/#/},u={begin:/\{\{/,relevance:0},d={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,l],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,l],relevance:10},{begin:/([fF][rR]|[rR][fF]|[fF])'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,l,u,c]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,l,u,c]},{begin:/([uU]|[rR])'/,end:/'/,relevance:10},{begin:/([uU]|[rR])"/,end:/"/,relevance:10},{begin:/([bB]|[bB][rR]|[rR][bB])'/,end:/'/},{begin:/([bB]|[bB][rR]|[rR][bB])"/,end:/"/},{begin:/([fF][rR]|[rR][fF]|[fF])'/,end:/'/,contains:[e.BACKSLASH_ESCAPE,u,c]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,u,c]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},p="[0-9](_?[0-9])*",f=`(\\b(${p}))?\\.(${p})|\\b(${p})\\.`,g=`\\b|${r.join("|")}`,m={className:"number",relevance:0,variants:[{begin:`(\\b(${p})|(${f}))[eE][+-]?(${p})[jJ]?(?=${g})`},{begin:`(${f})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${g})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${g})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${g})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${g})`},{begin:`\\b(${p})[jJ](?=${g})`}]},x={className:"comment",begin:t.lookahead(/# type:/),end:/$/,keywords:s,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},E={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:["self",l,m,d,e.HASH_COMMENT_MODE]}]};return c.contains=[d,m,l],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:s,illegal:/(<\/|\?)|=>/,contains:[l,m,{scope:"variable.language",match:/\bself\b/},{beginKeywords:"if",relevance:0},{match:/\bor\b/,scope:"keyword"},d,x,e.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,n],scope:{1:"keyword",3:"title.function"},contains:[E]},{variants:[{match:[/\bclass/,/\s+/,n,/\s*/,/\(\s*/,n,/\s*\)/]},{match:[/\bclass/,/\s+/,n]}],scope:{1:"keyword",3:"title.class",6:"title.class.inherited"}},{className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[m,E,d]}]}}function hm(e){return{aliases:["pycon"],contains:[{className:"meta.prompt",starts:{end:/ |$/,starts:{end:"$",subLanguage:"python"}},variants:[{begin:/^>>>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}function mm(e){const t=e.regex,n=/(?:(?:[a-zA-Z]|\.[._a-zA-Z])[._a-zA-Z0-9]*)|\.(?!\d)/,r=t.either(/0[xX][0-9a-fA-F]+\.[0-9a-fA-F]*[pP][+-]?\d+i?/,/0[xX][0-9a-fA-F]+(?:[pP][+-]?\d+)?[Li]?/,/(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?[Li]?/),i=/[=!<>:]=|\|\||&&|:::?|<-|<<-|->>|->|\|>|[-+*\/?!$&|:<=>@^~]|\*\*/,o=t.either(/[()]/,/[{}]/,/\[\[/,/[[\]]/,/\\/,/,/);return{name:"R",keywords:{$pattern:n,keyword:"function if in break next repeat else for while",literal:"NULL NA TRUE FALSE Inf NaN NA_integer_|10 NA_real_|10 NA_character_|10 NA_complex_|10",built_in:"LETTERS letters month.abb month.name pi T F abs acos acosh all any anyNA Arg as.call as.character as.complex as.double as.environment as.integer as.logical as.null.default as.numeric as.raw asin asinh atan atanh attr attributes baseenv browser c call ceiling class Conj cos cosh cospi cummax cummin cumprod cumsum digamma dim dimnames emptyenv exp expression floor forceAndCall gamma gc.time globalenv Im interactive invisible is.array is.atomic is.call is.character is.complex is.double is.environment is.expression is.finite is.function is.infinite is.integer is.language is.list is.logical is.matrix is.na is.name is.nan is.null is.numeric is.object is.pairlist is.raw is.recursive is.single is.symbol lazyLoadDBfetch length lgamma list log max min missing Mod names nargs nzchar oldClass on.exit pos.to.env proc.time prod quote range Re rep retracemem return round seq_along seq_len seq.int sign signif sin sinh sinpi sqrt standardGeneric substitute sum switch tan tanh tanpi tracemem trigamma trunc unclass untracemem UseMethod xtfrm"},contains:[e.COMMENT(/#'/,/$/,{contains:[{scope:"doctag",match:/@examples/,starts:{end:t.lookahead(t.either(/\n^#'\s*(?=@[a-zA-Z]+)/,/\n^(?!#')/)),endsParent:!0}},{scope:"doctag",begin:"@param",end:/$/,contains:[{scope:"variable",variants:[{match:n},{match:/`(?:\\.|[^`\\])+`/}],endsParent:!0}]},{scope:"doctag",match:/@[a-zA-Z]+/},{scope:"keyword",match:/\\[a-zA-Z]+/}]}),e.HASH_COMMENT_MODE,{scope:"string",contains:[e.BACKSLASH_ESCAPE],variants:[e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\(/,end:/\)(-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\{/,end:/\}(-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\[/,end:/\](-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\(/,end:/\)(-*)'/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\{/,end:/\}(-*)'/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\[/,end:/\](-*)'/}),{begin:'"',end:'"',relevance:0},{begin:"'",end:"'",relevance:0}]},{relevance:0,variants:[{scope:{1:"operator",2:"number"},match:[i,r]},{scope:{1:"operator",2:"number"},match:[/%[^%]*%/,r]},{scope:{1:"punctuation",2:"number"},match:[o,r]},{scope:{2:"number"},match:[/[^a-zA-Z0-9._]|^/,r]}]},{scope:{3:"operator"},match:[n,/\s+/,/<-/,/\s+/]},{scope:"operator",relevance:0,variants:[{match:i},{match:/%[^%]*%/}]},{scope:"punctuation",relevance:0,match:o},{begin:"`",end:"`",contains:[{begin:/\\./}]}]}}function bm(e){const t=e.regex,n="([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)",r=t.either(/\b([A-Z]+[a-z0-9]+)+/,/\b([A-Z]+[a-z0-9]+)+[A-Z]+/),i=t.concat(r,/(::\w+)*/),a={"variable.constant":["__FILE__","__LINE__","__ENCODING__"],"variable.language":["self","super"],keyword:["alias","and","begin","BEGIN","break","case","class","defined","do","else","elsif","end","END","ensure","for","if","in","module","next","not","or","redo","require","rescue","retry","return","then","undef","unless","until","when","while","yield",...["include","extend","prepend","public","private","protected","raise","throw"]],built_in:["proc","lambda","attr_accessor","attr_reader","attr_writer","define_method","private_constant","module_function"],literal:["true","false","nil"]},s={className:"doctag",begin:"@[A-Za-z]+"},l={begin:"#<",end:">"},c=[e.COMMENT("#","$",{contains:[s]}),e.COMMENT("^=begin","^=end",{contains:[s],relevance:10}),e.COMMENT("^__END__",e.MATCH_NOTHING_RE)],u={className:"subst",begin:/#\{/,end:/\}/,keywords:a},d={className:"string",contains:[e.BACKSLASH_ESCAPE,u],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:/%[qQwWx]?\(/,end:/\)/},{begin:/%[qQwWx]?\[/,end:/\]/},{begin:/%[qQwWx]?\{/,end:/\}/},{begin:/%[qQwWx]?</,end:/>/},{begin:/%[qQwWx]?\//,end:/\//},{begin:/%[qQwWx]?%/,end:/%/},{begin:/%[qQwWx]?-/,end:/-/},{begin:/%[qQwWx]?\|/,end:/\|/},{begin:/\B\?(\\\d{1,3})/},{begin:/\B\?(\\x[A-Fa-f0-9]{1,2})/},{begin:/\B\?(\\u\{?[A-Fa-f0-9]{1,6}\}?)/},{begin:/\B\?(\\M-\\C-|\\M-\\c|\\c\\M-|\\M-|\\C-\\M-)[\x20-\x7e]/},{begin:/\B\?\\(c|C-)[\x20-\x7e]/},{begin:/\B\?\\?\S/},{begin:t.concat(/<<[-~]?'?/,t.lookahead(/(\w+)(?=\W)[^\n]*\n(?:[^\n]*\n)*?\s*\1\b/)),contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,contains:[e.BACKSLASH_ESCAPE,u]})]}]},p="[1-9](_?[0-9])*|0",f="[0-9](_?[0-9])*",g={className:"number",relevance:0,variants:[{begin:`\\b(${p})(\\.(${f}))?([eE][+-]?(${f})|r)?i?\\b`},{begin:"\\b0[dD][0-9](_?[0-9])*r?i?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*r?i?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*r?i?\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*r?i?\\b"},{begin:"\\b0(_?[0-7])+r?i?\\b"}]},m={variants:[{match:/\(\)/},{className:"params",begin:/\(/,end:/(?=\))/,excludeBegin:!0,endsParent:!0,keywords:a}]},w=[d,{variants:[{match:[/class\s+/,i,/\s+<\s+/,i]},{match:[/\b(class|module)\s+/,i]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:a},{match:[/(include|extend)\s+/,i],scope:{2:"title.class"},keywords:a},{relevance:0,match:[i,/\.new[. (]/],scope:{1:"title.class"}},{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"},{relevance:0,match:r,scope:"title.class"},{match:[/def/,/\s+/,n],scope:{1:"keyword",3:"title.function"},contains:[m]},{begin:e.IDENT_RE+"::"},{className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":(?!\\s)",contains:[d,{begin:n}],relevance:0},g,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"},{className:"params",begin:/\|(?!=)/,end:/\|/,excludeBegin:!0,excludeEnd:!0,relevance:0,keywords:a},{begin:"("+e.RE_STARTERS_RE+"|unless)\\s*",keywords:"unless",contains:[{className:"regexp",contains:[e.BACKSLASH_ESCAPE,u],illegal:/\n/,variants:[{begin:"/",end:"/[a-z]*"},{begin:/%r\{/,end:/\}[a-z]*/},{begin:"%r\\(",end:"\\)[a-z]*"},{begin:"%r!",end:"![a-z]*"},{begin:"%r\\[",end:"\\][a-z]*"}]}].concat(l,c),relevance:0}].concat(l,c);u.contains=w,m.contains=w;const S=[{begin:/^\s*=>/,starts:{end:"$",contains:w}},{className:"meta.prompt",begin:"^("+"[>?]>"+"|"+"[\\w#]+\\(\\w+\\):\\d+:\\d+[>*]"+"|"+"(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>"+")(?=[ ])",starts:{end:"$",keywords:a,contains:w}}];return c.unshift(l),{name:"Ruby",aliases:["rb","gemspec","podspec","thor","irb"],keywords:a,illegal:/\/\*/,contains:[e.SHEBANG({binary:"ruby"})].concat(S).concat(c).concat(w)}}function ym(e){const t=e.regex,n=/(r#)?/,r=t.concat(n,e.UNDERSCORE_IDENT_RE),i=t.concat(n,e.IDENT_RE),o={className:"title.function.invoke",relevance:0,begin:t.concat(/\b/,/(?!let|for|while|if|else|match\b)/,i,t.lookahead(/\s*\(/))},a="([ui](8|16|32|64|128|size)|f(32|64))?",s=["abstract","as","async","await","become","box","break","const","continue","crate","do","dyn","else","enum","extern","false","final","fn","for","if","impl","in","let","loop","macro","match","mod","move","mut","override","priv","pub","ref","return","self","Self","static","struct","super","trait","true","try","type","typeof","union","unsafe","unsized","use","virtual","where","while","yield"],l=["true","false","Some","None","Ok","Err"],c=["drop ","Copy","Send","Sized","Sync","Drop","Fn","FnMut","FnOnce","ToOwned","Clone","Debug","PartialEq","PartialOrd","Eq","Ord","AsRef","AsMut","Into","From","Default","Iterator","Extend","IntoIterator","DoubleEndedIterator","ExactSizeIterator","SliceConcatExt","ToString","assert!","assert_eq!","bitflags!","bytes!","cfg!","col!","concat!","concat_idents!","debug_assert!","debug_assert_eq!","env!","eprintln!","panic!","file!","format!","format_args!","include_bytes!","include_str!","line!","local_data_key!","module_path!","option_env!","print!","println!","select!","stringify!","try!","unimplemented!","unreachable!","vec!","write!","writeln!","macro_rules!","assert_ne!","debug_assert_ne!"],u=["i8","i16","i32","i64","i128","isize","u8","u16","u32","u64","u128","usize","f32","f64","str","char","bool","Box","Option","Result","String","Vec"];return{name:"Rust",aliases:["rs"],keywords:{$pattern:e.IDENT_RE+"!?",type:u,keyword:s,literal:l,built_in:c},illegal:"</",contains:[e.C_LINE_COMMENT_MODE,e.COMMENT("/\\*","\\*/",{contains:["self"]}),e.inherit(e.QUOTE_STRING_MODE,{begin:/b?"/,illegal:null}),{className:"symbol",begin:/'[a-zA-Z_][a-zA-Z0-9_]*(?!')/},{scope:"string",variants:[{begin:/b?r(#*)"(.|\n)*?"\1(?!#)/},{begin:/b?'/,end:/'/,contains:[{scope:"char.escape",match:/\\('|\w|x\w{2}|u\w{4}|U\w{8})/}]}]},{className:"number",variants:[{begin:"\\b0b([01_]+)"+a},{begin:"\\b0o([0-7_]+)"+a},{begin:"\\b0x([A-Fa-f0-9_]+)"+a},{begin:"\\b(\\d[\\d_]*(\\.[0-9_]+)?([eE][+-]?[0-9_]+)?)"+a}],relevance:0},{begin:[/fn/,/\s+/,r],className:{1:"keyword",3:"title.function"}},{className:"meta",begin:"#!?\\[",end:"\\]",contains:[{className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE]}]},{begin:[/let/,/\s+/,/(?:mut\s+)?/,r],className:{1:"keyword",3:"keyword",4:"variable"}},{begin:[/for/,/\s+/,r,/\s+/,/in/],className:{1:"keyword",3:"variable",5:"keyword"}},{begin:[/type/,/\s+/,r],className:{1:"keyword",3:"title.class"}},{begin:[/(?:trait|enum|struct|union|impl|for)/,/\s+/,r],className:{1:"keyword",3:"title.class"}},{begin:e.IDENT_RE+"::",keywords:{keyword:"Self",built_in:c,type:u}},{className:"punctuation",begin:"->"},o]}}const Em=e=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),_m=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],xm=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],wm=[..._m,...xm],km=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),Sm=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),vm=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),Tm=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function Nm(e){const t=Em(e),n=vm,r=Sm,i="@[a-z-]+",o="and or not only",s={className:"variable",begin:"(\\$"+"[a-zA-Z-][a-zA-Z0-9_-]*"+")\\b",relevance:0};return{name:"SCSS",case_insensitive:!0,illegal:"[=/|']",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,t.CSS_NUMBER_MODE,{className:"selector-id",begin:"#[A-Za-z0-9_-]+",relevance:0},{className:"selector-class",begin:"\\.[A-Za-z0-9_-]+",relevance:0},t.ATTRIBUTE_SELECTOR_MODE,{className:"selector-tag",begin:"\\b("+wm.join("|")+")\\b",relevance:0},{className:"selector-pseudo",begin:":("+r.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+n.join("|")+")"},s,{begin:/\(/,end:/\)/,contains:[t.CSS_NUMBER_MODE]},t.CSS_VARIABLE,{className:"attribute",begin:"\\b("+Tm.join("|")+")\\b"},{begin:"\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inline-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b"},{begin:/:/,end:/[;}{]/,relevance:0,contains:[t.BLOCK_COMMENT,s,t.HEXCOLOR,t.CSS_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,t.IMPORTANT,t.FUNCTION_DISPATCH]},{begin:"@(page|font-face)",keywords:{$pattern:i,keyword:"@page @font-face"}},{begin:"@",end:"[{;]",returnBegin:!0,keywords:{$pattern:/[a-z-]+/,keyword:o,attribute:km.join(" ")},contains:[{begin:i,className:"keyword"},{begin:/[a-z-]+(?=:)/,className:"attribute"},s,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,t.HEXCOLOR,t.CSS_NUMBER_MODE]},t.FUNCTION_DISPATCH]}}function Am(e){return{name:"Shell Session",aliases:["console","shellsession"],contains:[{className:"meta.prompt",begin:/^\s{0,3}[/~\w\d[\]()@-]*[>%$#][ ]?/,starts:{end:/[^\\](?=\s*$)/,subLanguage:"bash"}}]}}function Cm(e){const t=e.regex,n=e.COMMENT("--","$"),r={scope:"string",variants:[{begin:/'/,end:/'/,contains:[{match:/''/}]}]},i={begin:/"/,end:/"/,contains:[{match:/""/}]},o=["true","false","unknown"],a=["double precision","large object","with timezone","without timezone"],s=["bigint","binary","blob","boolean","char","character","clob","date","dec","decfloat","decimal","float","int","integer","interval","nchar","nclob","national","numeric","real","row","smallint","time","timestamp","varchar","varying","varbinary"],l=["add","asc","collation","desc","final","first","last","view"],c=["abs","acos","all","allocate","alter","and","any","are","array","array_agg","array_max_cardinality","as","asensitive","asin","asymmetric","at","atan","atomic","authorization","avg","begin","begin_frame","begin_partition","between","bigint","binary","blob","boolean","both","by","call","called","cardinality","cascaded","case","cast","ceil","ceiling","char","char_length","character","character_length","check","classifier","clob","close","coalesce","collate","collect","column","commit","condition","connect","constraint","contains","convert","copy","corr","corresponding","cos","cosh","count","covar_pop","covar_samp","create","cross","cube","cume_dist","current","current_catalog","current_date","current_default_transform_group","current_path","current_role","current_row","current_schema","current_time","current_timestamp","current_path","current_role","current_transform_group_for_type","current_user","cursor","cycle","date","day","deallocate","dec","decimal","decfloat","declare","default","define","delete","dense_rank","deref","describe","deterministic","disconnect","distinct","double","drop","dynamic","each","element","else","empty","end","end_frame","end_partition","end-exec","equals","escape","every","except","exec","execute","exists","exp","external","extract","false","fetch","filter","first_value","float","floor","for","foreign","frame_row","free","from","full","function","fusion","get","global","grant","group","grouping","groups","having","hold","hour","identity","in","indicator","initial","inner","inout","insensitive","insert","int","integer","intersect","intersection","interval","into","is","join","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","language","large","last_value","lateral","lead","leading","left","like","like_regex","listagg","ln","local","localtime","localtimestamp","log","log10","lower","match","match_number","match_recognize","matches","max","member","merge","method","min","minute","mod","modifies","module","month","multiset","national","natural","nchar","nclob","new","no","none","normalize","not","nth_value","ntile","null","nullif","numeric","octet_length","occurrences_regex","of","offset","old","omit","on","one","only","open","or","order","out","outer","over","overlaps","overlay","parameter","partition","pattern","per","percent","percent_rank","percentile_cont","percentile_disc","period","portion","position","position_regex","power","precedes","precision","prepare","primary","procedure","ptf","range","rank","reads","real","recursive","ref","references","referencing","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","release","result","return","returns","revoke","right","rollback","rollup","row","row_number","rows","running","savepoint","scope","scroll","search","second","seek","select","sensitive","session_user","set","show","similar","sin","sinh","skip","smallint","some","specific","specifictype","sql","sqlexception","sqlstate","sqlwarning","sqrt","start","static","stddev_pop","stddev_samp","submultiset","subset","substring","substring_regex","succeeds","sum","symmetric","system","system_time","system_user","table","tablesample","tan","tanh","then","time","timestamp","timezone_hour","timezone_minute","to","trailing","translate","translate_regex","translation","treat","trigger","trim","trim_array","true","truncate","uescape","union","unique","unknown","unnest","update","upper","user","using","value","values","value_of","var_pop","var_samp","varbinary","varchar","varying","versioning","when","whenever","where","width_bucket","window","with","within","without","year"],u=["abs","acos","array_agg","asin","atan","avg","cast","ceil","ceiling","coalesce","corr","cos","cosh","count","covar_pop","covar_samp","cume_dist","dense_rank","deref","element","exp","extract","first_value","floor","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","last_value","lead","listagg","ln","log","log10","lower","max","min","mod","nth_value","ntile","nullif","percent_rank","percentile_cont","percentile_disc","position","position_regex","power","rank","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","row_number","sin","sinh","sqrt","stddev_pop","stddev_samp","substring","substring_regex","sum","tan","tanh","translate","translate_regex","treat","trim","trim_array","unnest","upper","value_of","var_pop","var_samp","width_bucket"],d=["current_catalog","current_date","current_default_transform_group","current_path","current_role","current_schema","current_transform_group_for_type","current_user","session_user","system_time","system_user","current_time","localtime","current_timestamp","localtimestamp"],p=["create table","insert into","primary key","foreign key","not null","alter table","add constraint","grouping sets","on overflow","character set","respect nulls","ignore nulls","nulls first","nulls last","depth first","breadth first"],f=u,g=[...c,...l].filter(R=>!u.includes(R)),m={scope:"variable",match:/@[a-z0-9][a-z0-9_]*/},x={scope:"operator",match:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},E={match:t.concat(/\b/,t.either(...f),/\s*\(/),relevance:0,keywords:{built_in:f}};function T(R){return t.concat(/\b/,t.either(...R.map(w=>w.replace(/\s+/,"\\s+"))),/\b/)}const k={scope:"keyword",match:T(p),relevance:0};function C(R,{exceptions:w,when:P}={}){const F=P;return w=w||[],R.map($=>$.match(/\|\d+$/)||w.includes($)?$:F($)?`${$}|0`:$)}return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:C(g,{when:R=>R.length<3}),literal:o,type:s,built_in:d},contains:[{scope:"type",match:T(a)},k,E,m,r,i,e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,n,x]}}function $o(e){return e?typeof e=="string"?e:e.source:null}function en(e){return ge("(?=",e,")")}function ge(...e){return e.map(n=>$o(n)).join("")}function Om(e){const t=e[e.length-1];return typeof t=="object"&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}function Be(...e){return"("+(Om(e).capture?"":"?:")+e.map(r=>$o(r)).join("|")+")"}const Pr=e=>ge(/\b/,e,/\w$/.test(e)?/\b/:/\B/),Rm=["Protocol","Type"].map(Pr),Ho=["init","self"].map(Pr),Im=["Any","Self"],Fr=["actor","any","associatedtype","async","await",/as\?/,/as!/,"as","borrowing","break","case","catch","class","consume","consuming","continue","convenience","copy","default","defer","deinit","didSet","distributed","do","dynamic","each","else","enum","extension","fallthrough",/fileprivate\(set\)/,"fileprivate","final","for","func","get","guard","if","import","indirect","infix",/init\?/,/init!/,"inout",/internal\(set\)/,"internal","in","is","isolated","nonisolated","lazy","let","macro","mutating","nonmutating",/open\(set\)/,"open","operator","optional","override","package","postfix","precedencegroup","prefix",/private\(set\)/,"private","protocol",/public\(set\)/,"public","repeat","required","rethrows","return","set","some","static","struct","subscript","super","switch","throws","throw",/try\?/,/try!/,"try","typealias",/unowned\(safe\)/,/unowned\(unsafe\)/,"unowned","var","weak","where","while","willSet"],Ko=["false","nil","true"],Mm=["assignment","associativity","higherThan","left","lowerThan","none","right"],Lm=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warning"],Go=["abs","all","any","assert","assertionFailure","debugPrint","dump","fatalError","getVaList","isKnownUniquelyReferenced","max","min","numericCast","pointwiseMax","pointwiseMin","precondition","preconditionFailure","print","readLine","repeatElement","sequence","stride","swap","swift_unboxFromSwiftValueWithType","transcode","type","unsafeBitCast","unsafeDowncast","withExtendedLifetime","withUnsafeMutablePointer","withUnsafePointer","withVaList","withoutActuallyEscaping","zip"],Wo=Be(/[/=\-+!*%<>&|^~?]/,/[\u00A1-\u00A7]/,/[\u00A9\u00AB]/,/[\u00AC\u00AE]/,/[\u00B0\u00B1]/,/[\u00B6\u00BB\u00BF\u00D7\u00F7]/,/[\u2016-\u2017]/,/[\u2020-\u2027]/,/[\u2030-\u203E]/,/[\u2041-\u2053]/,/[\u2055-\u205E]/,/[\u2190-\u23FF]/,/[\u2500-\u2775]/,/[\u2794-\u2BFF]/,/[\u2E00-\u2E7F]/,/[\u3001-\u3003]/,/[\u3008-\u3020]/,/[\u3030]/),jo=Be(Wo,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),Br=ge(Wo,jo,"*"),Vo=Be(/[a-zA-Z_]/,/[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/,/[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/,/[\u0100-\u02FF\u0370-\u167F\u1681-\u180D\u180F-\u1DBF]/,/[\u1E00-\u1FFF]/,/[\u200B-\u200D\u202A-\u202E\u203F-\u2040\u2054\u2060-\u206F]/,/[\u2070-\u20CF\u2100-\u218F\u2460-\u24FF\u2776-\u2793]/,/[\u2C00-\u2DFF\u2E80-\u2FFF]/,/[\u3004-\u3007\u3021-\u302F\u3031-\u303F\u3040-\uD7FF]/,/[\uF900-\uFD3D\uFD40-\uFDCF\uFDF0-\uFE1F\uFE30-\uFE44]/,/[\uFE47-\uFEFE\uFF00-\uFFFD]/),Tn=Be(Vo,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),it=ge(Vo,Tn,"*"),Nn=ge(/[A-Z]/,Tn,"*"),Dm=["attached","autoclosure",ge(/convention\(/,Be("swift","block","c"),/\)/),"discardableResult","dynamicCallable","dynamicMemberLookup","escaping","freestanding","frozen","GKInspectable","IBAction","IBDesignable","IBInspectable","IBOutlet","IBSegueAction","inlinable","main","nonobjc","NSApplicationMain","NSCopying","NSManaged",ge(/objc\(/,it,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","resultBuilder","Sendable","testable","UIApplicationMain","unchecked","unknown","usableFromInline","warn_unqualified_access"],Pm=["iOS","iOSApplicationExtension","macOS","macOSApplicationExtension","macCatalyst","macCatalystApplicationExtension","watchOS","watchOSApplicationExtension","tvOS","tvOSApplicationExtension","swift"];function Fm(e){const t={match:/\s+/,relevance:0},n=e.COMMENT("/\\*","\\*/",{contains:["self"]}),r=[e.C_LINE_COMMENT_MODE,n],i={match:[/\./,Be(...Rm,...Ho)],className:{2:"keyword"}},o={match:ge(/\./,Be(...Fr)),relevance:0},a=Fr.filter(ie=>typeof ie=="string").concat(["_|0"]),s=Fr.filter(ie=>typeof ie!="string").concat(Im).map(Pr),l={variants:[{className:"keyword",match:Be(...s,...Ho)}]},c={$pattern:Be(/\b\w+/,/#\w+/),keyword:a.concat(Lm),literal:Ko},u=[i,o,l],d={match:ge(/\./,Be(...Go)),relevance:0},p={className:"built_in",match:ge(/\b/,Be(...Go),/(?=\()/)},f=[d,p],g={match:/->/,relevance:0},m={className:"operator",relevance:0,variants:[{match:Br},{match:`\\.(\\.|${jo})+`}]},x=[g,m],E="([0-9]_*)+",T="([0-9a-fA-F]_*)+",k={className:"number",relevance:0,variants:[{match:`\\b(${E})(\\.(${E}))?([eE][+-]?(${E}))?\\b`},{match:`\\b0x(${T})(\\.(${T}))?([pP][+-]?(${E}))?\\b`},{match:/\b0o([0-7]_*)+\b/},{match:/\b0b([01]_*)+\b/}]},C=(ie="")=>({className:"subst",variants:[{match:ge(/\\/,ie,/[0\\tnr"']/)},{match:ge(/\\/,ie,/u\{[0-9a-fA-F]{1,8}\}/)}]}),R=(ie="")=>({className:"subst",match:ge(/\\/,ie,/[\t ]*(?:[\r\n]|\r\n)/)}),w=(ie="")=>({className:"subst",label:"interpol",begin:ge(/\\/,ie,/\(/),end:/\)/}),P=(ie="")=>({begin:ge(ie,/"""/),end:ge(/"""/,ie),contains:[C(ie),R(ie),w(ie)]}),F=(ie="")=>({begin:ge(ie,/"/),end:ge(/"/,ie),contains:[C(ie),w(ie)]}),$={className:"string",variants:[P(),P("#"),P("##"),P("###"),F(),F("#"),F("##"),F("###")]},S=[e.BACKSLASH_ESCAPE,{begin:/\[/,end:/\]/,relevance:0,contains:[e.BACKSLASH_ESCAPE]}],z={begin:/\/[^\s](?=[^/\n]*\/)/,end:/\//,contains:S},U=ie=>{const ke=ge(ie,/\//),q=ge(/\//,ie);return{begin:ke,end:q,contains:[...S,{scope:"comment",begin:`#(?!.*${q})`,end:/$/}]}},ne={scope:"regexp",variants:[U("###"),U("##"),U("#"),z]},V={match:ge(/`/,it,/`/)},G={className:"variable",match:/\$\d+/},N={className:"variable",match:`\\$${Tn}+`},D=[V,G,N],L={match:/(@|#(un)?)available/,scope:"keyword",starts:{contains:[{begin:/\(/,end:/\)/,keywords:Pm,contains:[...x,k,$]}]}},j={scope:"keyword",match:ge(/@/,Be(...Dm),en(Be(/\(/,/\s+/)))},h={scope:"meta",match:ge(/@/,it)},Z=[L,j,h],ee={match:en(/\b[A-Z]/),relevance:0,contains:[{className:"type",match:ge(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/,Tn,"+")},{className:"type",match:Nn,relevance:0},{match:/[?!]+/,relevance:0},{match:/\.\.\./,relevance:0},{match:ge(/\s+&\s+/,en(Nn)),relevance:0}]},b={begin:/</,end:/>/,keywords:c,contains:[...r,...u,...Z,g,ee]};ee.contains.push(b);const ue={match:ge(it,/\s*:/),keywords:"_|0",relevance:0},ye={begin:/\(/,end:/\)/,relevance:0,keywords:c,contains:["self",ue,...r,ne,...u,...f,...x,k,$,...D,...Z,ee]},pe={begin:/</,end:/>/,keywords:"repeat each",contains:[...r,ee]},Pe={begin:Be(en(ge(it,/\s*:/)),en(ge(it,/\s+/,it,/\s*:/))),end:/:/,relevance:0,contains:[{className:"keyword",match:/\b_\b/},{className:"params",match:it}]},we={begin:/\(/,end:/\)/,keywords:c,contains:[Pe,...r,...u,...x,k,$,...Z,ee,ye],endsParent:!0,illegal:/["']/},Ne={match:[/(func|macro)/,/\s+/,Be(V.match,it,Br)],className:{1:"keyword",3:"title.function"},contains:[pe,we,t],illegal:[/\[/,/%/]},Oe={match:[/\b(?:subscript|init[?!]?)/,/\s*(?=[<(])/],className:{1:"keyword"},contains:[pe,we,t],illegal:/\[|%/},ze={match:[/operator/,/\s+/,Br],className:{1:"keyword",3:"title"}},Ue={begin:[/precedencegroup/,/\s+/,Nn],className:{1:"keyword",3:"title"},contains:[ee],keywords:[...Mm,...Ko],end:/}/},$e={match:[/class\b/,/\s+/,/func\b/,/\s+/,/\b[A-Za-z_][A-Za-z0-9_]*\b/],scope:{1:"keyword",3:"keyword",5:"title.function"}},at={match:[/class\b/,/\s+/,/var\b/],scope:{1:"keyword",3:"keyword"}},Te={begin:[/(struct|protocol|class|extension|enum|actor)/,/\s+/,it,/\s*/],beginScope:{1:"keyword",3:"title.class"},keywords:c,contains:[pe,...u,{begin:/:/,end:/\{/,keywords:c,contains:[{scope:"title.class.inherited",match:Nn},...u],relevance:0}]};for(const ie of $.variants){const ke=ie.contains.find(H=>H.label==="interpol");ke.keywords=c;const q=[...u,...f,...x,k,$,...D];ke.contains=[...q,{begin:/\(/,end:/\)/,contains:["self",...q]}]}return{name:"Swift",keywords:c,contains:[...r,Ne,Oe,$e,at,Te,ze,Ue,{beginKeywords:"import",end:/$/,contains:[...r],relevance:0},ne,...u,...f,...x,k,$,...D,...Z,ee,ye]}}const An="[A-Za-z$_][0-9A-Za-z$_]*",qo=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],Yo=["true","false","null","undefined","NaN","Infinity"],Zo=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],Xo=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],Qo=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],Jo=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],es=[].concat(Qo,Zo,Xo);function Bm(e){const t=e.regex,n=(L,{after:j})=>{const h="</"+L[0].slice(1);return L.input.indexOf(h,j)!==-1},r=An,i={begin:"<>",end:"</>"},o=/<[A-Za-z0-9\\._:-]+\s*\/>/,a={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(L,j)=>{const h=L[0].length+L.index,Z=L.input[h];if(Z==="<"||Z===","){j.ignoreMatch();return}Z===">"&&(n(L,{after:h})||j.ignoreMatch());let ee;const b=L.input.substring(h);if(ee=b.match(/^\s*=/)){j.ignoreMatch();return}if((ee=b.match(/^\s+extends\s+/))&&ee.index===0){j.ignoreMatch();return}}},s={$pattern:An,keyword:qo,literal:Yo,built_in:es,"variable.language":Jo},l="[0-9](_?[0-9])*",c=`\\.(${l})`,u="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",d={className:"number",variants:[{begin:`(\\b(${u})((${c})|\\.)?|(${c}))[eE][+-]?(${l})\\b`},{begin:`\\b(${u})\\b((${c})\\b|\\.)?|(${c})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},p={className:"subst",begin:"\\$\\{",end:"\\}",keywords:s,contains:[]},f={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,p],subLanguage:"xml"}},g={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,p],subLanguage:"css"}},m={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,p],subLanguage:"graphql"}},x={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,p]},T={className:"comment",variants:[e.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:r+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},k=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,f,g,m,x,{match:/\$\d+/},d];p.contains=k.concat({begin:/\{/,end:/\}/,keywords:s,contains:["self"].concat(k)});const C=[].concat(T,p.contains),R=C.concat([{begin:/(\s*)\(/,end:/\)/,keywords:s,contains:["self"].concat(C)}]),w={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:R},P={variants:[{match:[/class/,/\s+/,r,/\s+/,/extends/,/\s+/,t.concat(r,"(",t.concat(/\./,r),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,r],scope:{1:"keyword",3:"title.class"}}]},F={relevance:0,match:t.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...Zo,...Xo]}},$={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},S={variants:[{match:[/function/,/\s+/,r,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[w],illegal:/%/},z={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function U(L){return t.concat("(?!",L.join("|"),")")}const ne={match:t.concat(/\b/,U([...Qo,"super","import"].map(L=>`${L}\\s*\\(`)),r,t.lookahead(/\s*\(/)),className:"title.function",relevance:0},V={begin:t.concat(/\./,t.lookahead(t.concat(r,/(?![0-9A-Za-z$_(])/))),end:r,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},G={match:[/get|set/,/\s+/,r,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},w]},N="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",D={match:[/const|var|let/,/\s+/,r,/\s*/,/=\s*/,/(async\s*)?/,t.lookahead(N)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[w]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:s,exports:{PARAMS_CONTAINS:R,CLASS_REFERENCE:F},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),$,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,f,g,m,x,T,{match:/\$\d+/},d,F,{scope:"attr",match:r+t.lookahead(":"),relevance:0},D,{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[T,e.REGEXP_MODE,{className:"function",begin:N,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:R}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:i.begin,end:i.end},{match:o},{begin:a.begin,"on:begin":a.isTrulyOpeningTag,end:a.end}],subLanguage:"xml",contains:[{begin:a.begin,end:a.end,skip:!0,contains:["self"]}]}]},S,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[w,e.inherit(e.TITLE_MODE,{begin:r,className:"title.function"})]},{match:/\.\.\./,relevance:0},V,{match:"\\$"+r,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[w]},ne,z,P,G,{match:/\$[(.]/}]}}function zm(e){const t=e.regex,n=Bm(e),r=An,i=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],o={begin:[/namespace/,/\s+/,e.IDENT_RE],beginScope:{1:"keyword",3:"title.class"}},a={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:i},contains:[n.exports.CLASS_REFERENCE]},s={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},l=["type","interface","public","private","protected","implements","declare","abstract","readonly","enum","override","satisfies"],c={$pattern:An,keyword:qo.concat(l),literal:Yo,built_in:es.concat(i),"variable.language":Jo},u={className:"meta",begin:"@"+r},d=(m,x,E)=>{const T=m.contains.findIndex(k=>k.label===x);if(T===-1)throw new Error("can not find mode to replace");m.contains.splice(T,1,E)};Object.assign(n.keywords,c),n.exports.PARAMS_CONTAINS.push(u);const p=n.contains.find(m=>m.scope==="attr"),f=Object.assign({},p,{match:t.concat(r,t.lookahead(/\s*\?:/))});n.exports.PARAMS_CONTAINS.push([n.exports.CLASS_REFERENCE,p,f]),n.contains=n.contains.concat([u,o,a,f]),d(n,"shebang",e.SHEBANG()),d(n,"use_strict",s);const g=n.contains.find(m=>m.label==="func.def");return g.relevance=0,Object.assign(n,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),n}function Um(e){const t=e.regex,n={className:"string",begin:/"(""|[^/n])"C\b/},r={className:"string",begin:/"/,end:/"/,illegal:/\n/,contains:[{begin:/""/}]},i=/\d{1,2}\/\d{1,2}\/\d{4}/,o=/\d{4}-\d{1,2}-\d{1,2}/,a=/(\d|1[012])(:\d+){0,2} *(AM|PM)/,s=/\d{1,2}(:\d{1,2}){1,2}/,l={className:"literal",variants:[{begin:t.concat(/# */,t.either(o,i),/ *#/)},{begin:t.concat(/# */,s,/ *#/)},{begin:t.concat(/# */,a,/ *#/)},{begin:t.concat(/# */,t.either(o,i),/ +/,t.either(a,s),/ *#/)}]},c={className:"number",relevance:0,variants:[{begin:/\b\d[\d_]*((\.[\d_]+(E[+-]?[\d_]+)?)|(E[+-]?[\d_]+))[RFD@!#]?/},{begin:/\b\d[\d_]*((U?[SIL])|[%&])?/},{begin:/&H[\dA-F_]+((U?[SIL])|[%&])?/},{begin:/&O[0-7_]+((U?[SIL])|[%&])?/},{begin:/&B[01_]+((U?[SIL])|[%&])?/}]},u={className:"label",begin:/^\w+:/},d=e.COMMENT(/'''/,/$/,{contains:[{className:"doctag",begin:/<\/?/,end:/>/}]}),p=e.COMMENT(null,/$/,{variants:[{begin:/'/},{begin:/([\t ]|^)REM(?=\s)/}]});return{name:"Visual Basic .NET",aliases:["vb"],case_insensitive:!0,classNameAliases:{label:"symbol"},keywords:{keyword:"addhandler alias aggregate ansi as async assembly auto binary by byref byval call case catch class compare const continue custom declare default delegate dim distinct do each equals else elseif end enum erase error event exit explicit finally for friend from function get global goto group handles if implements imports in inherits interface into iterator join key let lib loop me mid module mustinherit mustoverride mybase myclass namespace narrowing new next notinheritable notoverridable of off on operator option optional order overloads overridable overrides paramarray partial preserve private property protected public raiseevent readonly redim removehandler resume return select set shadows shared skip static step stop structure strict sub synclock take text then throw to try unicode until using when where while widening with withevents writeonly yield",built_in:"addressof and andalso await directcast gettype getxmlnamespace is isfalse isnot istrue like mod nameof new not or orelse trycast typeof xor cbool cbyte cchar cdate cdbl cdec cint clng cobj csbyte cshort csng cstr cuint culng cushort",type:"boolean byte char date decimal double integer long object sbyte short single string uinteger ulong ushort",literal:"true false nothing"},illegal:"//|\\{|\\}|endif|gosub|variant|wend|^\\$ ",contains:[n,r,l,c,u,d,p,{className:"meta",begin:/[\t ]*#(const|disable|else|elseif|enable|end|externalsource|if|region)\b/,end:/$/,keywords:{keyword:"const disable else elseif enable end externalsource if region then"},contains:[p]}]}}function $m(e){e.regex;const t=e.COMMENT(/\(;/,/;\)/);t.contains.push("self");const n=e.COMMENT(/;;/,/$/),r=["anyfunc","block","br","br_if","br_table","call","call_indirect","data","drop","elem","else","end","export","func","global.get","global.set","local.get","local.set","local.tee","get_global","get_local","global","if","import","local","loop","memory","memory.grow","memory.size","module","mut","nop","offset","param","result","return","select","set_global","set_local","start","table","tee_local","then","type","unreachable"],i={begin:[/(?:func|call|call_indirect)/,/\s+/,/\$[^\s)]+/],className:{1:"keyword",3:"title.function"}},o={className:"variable",begin:/\$[\w_]+/},a={match:/(\((?!;)|\))+/,className:"punctuation",relevance:0},s={className:"number",relevance:0,match:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/},l={match:/(i32|i64|f32|f64)(?!\.)/,className:"type"},c={className:"keyword",match:/\b(f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|nearest|neg?|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|store(?:8|16|32)?|sqrt|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))\b/};return{name:"WebAssembly",keywords:{$pattern:/[\w.]+/,keyword:r},contains:[n,t,{match:[/(?:offset|align)/,/\s*/,/=/],className:{1:"keyword",3:"operator"}},o,a,i,e.QUOTE_STRING_MODE,l,c,s]}}function Hm(e){const t=e.regex,n=t.concat(/[\p{L}_]/u,t.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),r=/[\p{L}0-9._:-]+/u,i={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},o={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},a=e.inherit(o,{begin:/\(/,end:/\)/}),s=e.inherit(e.APOS_STRING_MODE,{className:"string"}),l=e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),c={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:r,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[i]},{begin:/'/,end:/'/,contains:[i]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[o,l,s,a,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[o,a,l,s]}]}]},e.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},i,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[l]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[c],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[c],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:t.concat(/</,t.lookahead(t.concat(n,t.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:n,relevance:0,starts:c}]},{className:"tag",begin:t.concat(/<\//,t.lookahead(t.concat(n,/>/))),contains:[{className:"name",begin:n,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}function Km(e){const t="true false yes no null",n="[\\w#;/?:@&=+$,.~*'()[\\]]+",r={className:"attr",variants:[{begin:/[\w*@][\w*@ :()\./-]*:(?=[ \t]|$)/},{begin:/"[\w*@][\w*@ :()\./-]*":(?=[ \t]|$)/},{begin:/'[\w*@][\w*@ :()\./-]*':(?=[ \t]|$)/}]},i={className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]},o={className:"string",relevance:0,begin:/'/,end:/'/,contains:[{match:/''/,scope:"char.escape",relevance:0}]},a={className:"string",relevance:0,variants:[{begin:/"/,end:/"/},{begin:/\S+/}],contains:[e.BACKSLASH_ESCAPE,i]},s=e.inherit(a,{variants:[{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),p={className:"number",begin:"\\b"+"[0-9]{4}(-[0-9][0-9]){0,2}"+"([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?"+"(\\.[0-9]*)?"+"([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?"+"\\b"},f={end:",",endsWithParent:!0,excludeEnd:!0,keywords:t,relevance:0},g={begin:/\{/,end:/\}/,contains:[f],illegal:"\\n",relevance:0},m={begin:"\\[",end:"\\]",contains:[f],illegal:"\\n",relevance:0},x=[r,{className:"meta",begin:"^---\\s*$",relevance:10},{className:"string",begin:"[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*"},{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:"!\\w+!"+n},{className:"type",begin:"!<"+n+">"},{className:"type",begin:"!"+n},{className:"type",begin:"!!"+n},{className:"meta",begin:"&"+e.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+e.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"-(?=[ ]|$)",relevance:0},e.HASH_COMMENT_MODE,{beginKeywords:t,keywords:{literal:t}},p,{className:"number",begin:e.C_NUMBER_RE+"\\b",relevance:0},g,m,o,a],E=[...x];return E.pop(),E.push(s),f.contains=E,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:x}}const Gm={arduino:vh,bash:Th,c:Nh,cpp:Ah,csharp:Ch,css:Bh,diff:zh,go:Uh,graphql:$h,ini:Hh,java:Kh,javascript:qh,json:Yh,kotlin:Xh,less:am,lua:om,makefile:sm,markdown:lm,objectivec:cm,perl:um,php:dm,"php-template":fm,plaintext:pm,python:gm,"python-repl":hm,r:mm,ruby:bm,rust:ym,scss:Nm,shell:Am,sql:Cm,swift:Fm,typescript:zm,vbnet:Um,wasm:$m,xml:Hm,yaml:Km};function ts(e){return e instanceof Map?e.clear=e.delete=e.set=function(){throw new Error("map is read-only")}:e instanceof Set&&(e.add=e.clear=e.delete=function(){throw new Error("set is read-only")}),Object.freeze(e),Object.getOwnPropertyNames(e).forEach(t=>{const n=e[t],r=typeof n;(r==="object"||r==="function")&&!Object.isFrozen(n)&&ts(n)}),e}class ns{constructor(t){t.data===void 0&&(t.data={}),this.data=t.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function rs(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function ft(e,...t){const n=Object.create(null);for(const r in e)n[r]=e[r];return t.forEach(function(r){for(const i in r)n[i]=r[i]}),n}const Wm="</span>",is=e=>!!e.scope,jm=(e,{prefix:t})=>{if(e.startsWith("language:"))return e.replace("language:","language-");if(e.includes(".")){const n=e.split(".");return[`${t}${n.shift()}`,...n.map((r,i)=>`${r}${"_".repeat(i+1)}`)].join(" ")}return`${t}${e}`};class Vm{constructor(t,n){this.buffer="",this.classPrefix=n.classPrefix,t.walk(this)}addText(t){this.buffer+=rs(t)}openNode(t){if(!is(t))return;const n=jm(t.scope,{prefix:this.classPrefix});this.span(n)}closeNode(t){is(t)&&(this.buffer+=Wm)}value(){return this.buffer}span(t){this.buffer+=`<span class="${t}">`}}const as=(e={})=>{const t={children:[]};return Object.assign(t,e),t};class zr{constructor(){this.rootNode=as(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(t){this.top.children.push(t)}openNode(t){const n=as({scope:t});this.add(n),this.stack.push(n)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(t){return this.constructor._walk(t,this.rootNode)}static _walk(t,n){return typeof n=="string"?t.addText(n):n.children&&(t.openNode(n),n.children.forEach(r=>this._walk(t,r)),t.closeNode(n)),t}static _collapse(t){typeof t!="string"&&t.children&&(t.children.every(n=>typeof n=="string")?t.children=[t.children.join("")]:t.children.forEach(n=>{zr._collapse(n)}))}}class qm extends zr{constructor(t){super(),this.options=t}addText(t){t!==""&&this.add(t)}startScope(t){this.openNode(t)}endScope(){this.closeNode()}__addSublanguage(t,n){const r=t.root;n&&(r.scope=`language:${n}`),this.add(r)}toHTML(){return new Vm(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function tn(e){return e?typeof e=="string"?e:e.source:null}function os(e){return Et("(?=",e,")")}function Ym(e){return Et("(?:",e,")*")}function Zm(e){return Et("(?:",e,")?")}function Et(...e){return e.map(n=>tn(n)).join("")}function Xm(e){const t=e[e.length-1];return typeof t=="object"&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}function Ur(...e){return"("+(Xm(e).capture?"":"?:")+e.map(r=>tn(r)).join("|")+")"}function ss(e){return new RegExp(e.toString()+"|").exec("").length-1}function Qm(e,t){const n=e&&e.exec(t);return n&&n.index===0}const Jm=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function $r(e,{joinWith:t}){let n=0;return e.map(r=>{n+=1;const i=n;let o=tn(r),a="";for(;o.length>0;){const s=Jm.exec(o);if(!s){a+=o;break}a+=o.substring(0,s.index),o=o.substring(s.index+s[0].length),s[0][0]==="\\"&&s[1]?a+="\\"+String(Number(s[1])+i):(a+=s[0],s[0]==="("&&n++)}return a}).map(r=>`(${r})`).join(t)}const eb=/\b\B/,ls="[a-zA-Z]\\w*",Hr="[a-zA-Z_]\\w*",cs="\\b\\d+(\\.\\d+)?",us="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",ds="\\b(0b[01]+)",tb="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",nb=(e={})=>{const t=/^#![ ]*\//;return e.binary&&(e.begin=Et(t,/.*\b/,e.binary,/\b.*/)),ft({scope:"meta",begin:t,end:/$/,relevance:0,"on:begin":(n,r)=>{n.index!==0&&r.ignoreMatch()}},e)},nn={begin:"\\\\[\\s\\S]",relevance:0},rb={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[nn]},ib={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[nn]},ab={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},Cn=function(e,t,n={}){const r=ft({scope:"comment",begin:e,end:t,contains:[]},n);r.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const i=Ur("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return r.contains.push({begin:Et(/[ ]+/,"(",i,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),r},ob=Cn("//","$"),sb=Cn("/\\*","\\*/"),lb=Cn("#","$"),cb={scope:"number",begin:cs,relevance:0},ub={scope:"number",begin:us,relevance:0},db={scope:"number",begin:ds,relevance:0},fb={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[nn,{begin:/\[/,end:/\]/,relevance:0,contains:[nn]}]},pb={scope:"title",begin:ls,relevance:0},gb={scope:"title",begin:Hr,relevance:0},hb={begin:"\\.\\s*"+Hr,relevance:0};var On=Object.freeze({__proto__:null,APOS_STRING_MODE:rb,BACKSLASH_ESCAPE:nn,BINARY_NUMBER_MODE:db,BINARY_NUMBER_RE:ds,COMMENT:Cn,C_BLOCK_COMMENT_MODE:sb,C_LINE_COMMENT_MODE:ob,C_NUMBER_MODE:ub,C_NUMBER_RE:us,END_SAME_AS_BEGIN:function(e){return Object.assign(e,{"on:begin":(t,n)=>{n.data._beginMatch=t[1]},"on:end":(t,n)=>{n.data._beginMatch!==t[1]&&n.ignoreMatch()}})},HASH_COMMENT_MODE:lb,IDENT_RE:ls,MATCH_NOTHING_RE:eb,METHOD_GUARD:hb,NUMBER_MODE:cb,NUMBER_RE:cs,PHRASAL_WORDS_MODE:ab,QUOTE_STRING_MODE:ib,REGEXP_MODE:fb,RE_STARTERS_RE:tb,SHEBANG:nb,TITLE_MODE:pb,UNDERSCORE_IDENT_RE:Hr,UNDERSCORE_TITLE_MODE:gb});function mb(e,t){e.input[e.index-1]==="."&&t.ignoreMatch()}function bb(e,t){e.className!==void 0&&(e.scope=e.className,delete e.className)}function yb(e,t){t&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",e.__beforeBegin=mb,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,e.relevance===void 0&&(e.relevance=0))}function Eb(e,t){Array.isArray(e.illegal)&&(e.illegal=Ur(...e.illegal))}function _b(e,t){if(e.match){if(e.begin||e.end)throw new Error("begin & end are not supported with match");e.begin=e.match,delete e.match}}function xb(e,t){e.relevance===void 0&&(e.relevance=1)}const wb=(e,t)=>{if(!e.beforeMatch)return;if(e.starts)throw new Error("beforeMatch cannot be used with starts");const n=Object.assign({},e);Object.keys(e).forEach(r=>{delete e[r]}),e.keywords=n.keywords,e.begin=Et(n.beforeMatch,os(n.begin)),e.starts={relevance:0,contains:[Object.assign(n,{endsParent:!0})]},e.relevance=0,delete n.beforeMatch},kb=["of","and","for","in","not","or","if","then","parent","list","value"],Sb="keyword";function fs(e,t,n=Sb){const r=Object.create(null);return typeof e=="string"?i(n,e.split(" ")):Array.isArray(e)?i(n,e):Object.keys(e).forEach(function(o){Object.assign(r,fs(e[o],t,o))}),r;function i(o,a){t&&(a=a.map(s=>s.toLowerCase())),a.forEach(function(s){const l=s.split("|");r[l[0]]=[o,vb(l[0],l[1])]})}}function vb(e,t){return t?Number(t):Tb(e)?0:1}function Tb(e){return kb.includes(e.toLowerCase())}const ps={},_t=e=>{console.error(e)},gs=(e,...t)=>{console.log(`WARN: ${e}`,...t)},Mt=(e,t)=>{ps[`${e}/${t}`]||(console.log(`Deprecated as of ${e}. ${t}`),ps[`${e}/${t}`]=!0)},Rn=new Error;function hs(e,t,{key:n}){let r=0;const i=e[n],o={},a={};for(let s=1;s<=t.length;s++)a[s+r]=i[s],o[s+r]=!0,r+=ss(t[s-1]);e[n]=a,e[n]._emit=o,e[n]._multi=!0}function Nb(e){if(Array.isArray(e.begin)){if(e.skip||e.excludeBegin||e.returnBegin)throw _t("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),Rn;if(typeof e.beginScope!="object"||e.beginScope===null)throw _t("beginScope must be object"),Rn;hs(e,e.begin,{key:"beginScope"}),e.begin=$r(e.begin,{joinWith:""})}}function Ab(e){if(Array.isArray(e.end)){if(e.skip||e.excludeEnd||e.returnEnd)throw _t("skip, excludeEnd, returnEnd not compatible with endScope: {}"),Rn;if(typeof e.endScope!="object"||e.endScope===null)throw _t("endScope must be object"),Rn;hs(e,e.end,{key:"endScope"}),e.end=$r(e.end,{joinWith:""})}}function Cb(e){e.scope&&typeof e.scope=="object"&&e.scope!==null&&(e.beginScope=e.scope,delete e.scope)}function Ob(e){Cb(e),typeof e.beginScope=="string"&&(e.beginScope={_wrap:e.beginScope}),typeof e.endScope=="string"&&(e.endScope={_wrap:e.endScope}),Nb(e),Ab(e)}function Rb(e){function t(a,s){return new RegExp(tn(a),"m"+(e.case_insensitive?"i":"")+(e.unicodeRegex?"u":"")+(s?"g":""))}class n{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(s,l){l.position=this.position++,this.matchIndexes[this.matchAt]=l,this.regexes.push([l,s]),this.matchAt+=ss(s)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const s=this.regexes.map(l=>l[1]);this.matcherRe=t($r(s,{joinWith:"|"}),!0),this.lastIndex=0}exec(s){this.matcherRe.lastIndex=this.lastIndex;const l=this.matcherRe.exec(s);if(!l)return null;const c=l.findIndex((d,p)=>p>0&&d!==void 0),u=this.matchIndexes[c];return l.splice(0,c),Object.assign(l,u)}}class r{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(s){if(this.multiRegexes[s])return this.multiRegexes[s];const l=new n;return this.rules.slice(s).forEach(([c,u])=>l.addRule(c,u)),l.compile(),this.multiRegexes[s]=l,l}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(s,l){this.rules.push([s,l]),l.type==="begin"&&this.count++}exec(s){const l=this.getMatcher(this.regexIndex);l.lastIndex=this.lastIndex;let c=l.exec(s);if(this.resumingScanAtSamePosition()&&!(c&&c.index===this.lastIndex)){const u=this.getMatcher(0);u.lastIndex=this.lastIndex+1,c=u.exec(s)}return c&&(this.regexIndex+=c.position+1,this.regexIndex===this.count&&this.considerAll()),c}}function i(a){const s=new r;return a.contains.forEach(l=>s.addRule(l.begin,{rule:l,type:"begin"})),a.terminatorEnd&&s.addRule(a.terminatorEnd,{type:"end"}),a.illegal&&s.addRule(a.illegal,{type:"illegal"}),s}function o(a,s){const l=a;if(a.isCompiled)return l;[bb,_b,Ob,wb].forEach(u=>u(a,s)),e.compilerExtensions.forEach(u=>u(a,s)),a.__beforeBegin=null,[yb,Eb,xb].forEach(u=>u(a,s)),a.isCompiled=!0;let c=null;return typeof a.keywords=="object"&&a.keywords.$pattern&&(a.keywords=Object.assign({},a.keywords),c=a.keywords.$pattern,delete a.keywords.$pattern),c=c||/\w+/,a.keywords&&(a.keywords=fs(a.keywords,e.case_insensitive)),l.keywordPatternRe=t(c,!0),s&&(a.begin||(a.begin=/\B|\b/),l.beginRe=t(l.begin),!a.end&&!a.endsWithParent&&(a.end=/\B|\b/),a.end&&(l.endRe=t(l.end)),l.terminatorEnd=tn(l.end)||"",a.endsWithParent&&s.terminatorEnd&&(l.terminatorEnd+=(a.end?"|":"")+s.terminatorEnd)),a.illegal&&(l.illegalRe=t(a.illegal)),a.contains||(a.contains=[]),a.contains=[].concat(...a.contains.map(function(u){return Ib(u==="self"?a:u)})),a.contains.forEach(function(u){o(u,l)}),a.starts&&o(a.starts,s),l.matcher=i(l),l}if(e.compilerExtensions||(e.compilerExtensions=[]),e.contains&&e.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return e.classNameAliases=ft(e.classNameAliases||{}),o(e)}function ms(e){return e?e.endsWithParent||ms(e.starts):!1}function Ib(e){return e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map(function(t){return ft(e,{variants:null},t)})),e.cachedVariants?e.cachedVariants:ms(e)?ft(e,{starts:e.starts?ft(e.starts):null}):Object.isFrozen(e)?ft(e):e}var Mb="11.11.1";class Lb extends Error{constructor(t,n){super(t),this.name="HTMLInjectionError",this.html=n}}const Kr=rs,bs=ft,ys=Symbol("nomatch"),Db=7,Es=function(e){const t=Object.create(null),n=Object.create(null),r=[];let i=!0;const o="Could not find the language '{}', did you forget to load/include a language module?",a={disableAutodetect:!0,name:"Plain text",contains:[]};let s={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:qm};function l(N){return s.noHighlightRe.test(N)}function c(N){let D=N.className+" ";D+=N.parentNode?N.parentNode.className:"";const L=s.languageDetectRe.exec(D);if(L){const j=F(L[1]);return j||(gs(o.replace("{}",L[1])),gs("Falling back to no-highlight mode for this block.",N)),j?L[1]:"no-highlight"}return D.split(/\s+/).find(j=>l(j)||F(j))}function u(N,D,L){let j="",h="";typeof D=="object"?(j=N,L=D.ignoreIllegals,h=D.language):(Mt("10.7.0","highlight(lang, code, ...args) has been deprecated."),Mt("10.7.0",`Please use highlight(code, options) instead.
176
+ https://github.com/highlightjs/highlight.js/issues/2277`),h=N,j=D),L===void 0&&(L=!0);const Z={code:j,language:h};V("before:highlight",Z);const ee=Z.result?Z.result:d(Z.language,Z.code,L);return ee.code=Z.code,V("after:highlight",ee),ee}function d(N,D,L,j){const h=Object.create(null);function Z(_,v){return _.keywords[v]}function ee(){if(!q.keywords){W.addText(X);return}let _=0;q.keywordPatternRe.lastIndex=0;let v=q.keywordPatternRe.exec(X),I="";for(;v;){I+=X.substring(_,v.index);const B=Te.case_insensitive?v[0].toLowerCase():v[0],J=Z(q,B);if(J){const[le,Ve]=J;if(W.addText(I),I="",h[B]=(h[B]||0)+1,h[B]<=Db&&(Re+=Ve),le.startsWith("_"))I+=v[0];else{const Ie=Te.classNameAliases[le]||le;ye(v[0],Ie)}}else I+=v[0];_=q.keywordPatternRe.lastIndex,v=q.keywordPatternRe.exec(X)}I+=X.substring(_),W.addText(I)}function b(){if(X==="")return;let _=null;if(typeof q.subLanguage=="string"){if(!t[q.subLanguage]){W.addText(X);return}_=d(q.subLanguage,X,!0,H[q.subLanguage]),H[q.subLanguage]=_._top}else _=f(X,q.subLanguage.length?q.subLanguage:null);q.relevance>0&&(Re+=_.relevance),W.__addSublanguage(_._emitter,_.language)}function ue(){q.subLanguage!=null?b():ee(),X=""}function ye(_,v){_!==""&&(W.startScope(v),W.addText(_),W.endScope())}function pe(_,v){let I=1;const B=v.length-1;for(;I<=B;){if(!_._emit[I]){I++;continue}const J=Te.classNameAliases[_[I]]||_[I],le=v[I];J?ye(le,J):(X=le,ee(),X=""),I++}}function Pe(_,v){return _.scope&&typeof _.scope=="string"&&W.openNode(Te.classNameAliases[_.scope]||_.scope),_.beginScope&&(_.beginScope._wrap?(ye(X,Te.classNameAliases[_.beginScope._wrap]||_.beginScope._wrap),X=""):_.beginScope._multi&&(pe(_.beginScope,v),X="")),q=Object.create(_,{parent:{value:q}}),q}function we(_,v,I){let B=Qm(_.endRe,I);if(B){if(_["on:end"]){const J=new ns(_);_["on:end"](v,J),J.isMatchIgnored&&(B=!1)}if(B){for(;_.endsParent&&_.parent;)_=_.parent;return _}}if(_.endsWithParent)return we(_.parent,v,I)}function Ne(_){return q.matcher.regexIndex===0?(X+=_[0],1):(st=!0,0)}function Oe(_){const v=_[0],I=_.rule,B=new ns(I),J=[I.__beforeBegin,I["on:begin"]];for(const le of J)if(le&&(le(_,B),B.isMatchIgnored))return Ne(v);return I.skip?X+=v:(I.excludeBegin&&(X+=v),ue(),!I.returnBegin&&!I.excludeBegin&&(X=v)),Pe(I,_),I.returnBegin?0:v.length}function ze(_){const v=_[0],I=D.substring(_.index),B=we(q,_,I);if(!B)return ys;const J=q;q.endScope&&q.endScope._wrap?(ue(),ye(v,q.endScope._wrap)):q.endScope&&q.endScope._multi?(ue(),pe(q.endScope,_)):J.skip?X+=v:(J.returnEnd||J.excludeEnd||(X+=v),ue(),J.excludeEnd&&(X=v));do q.scope&&W.closeNode(),!q.skip&&!q.subLanguage&&(Re+=q.relevance),q=q.parent;while(q!==B.parent);return B.starts&&Pe(B.starts,_),J.returnEnd?0:v.length}function Ue(){const _=[];for(let v=q;v!==Te;v=v.parent)v.scope&&_.unshift(v.scope);_.forEach(v=>W.openNode(v))}let $e={};function at(_,v){const I=v&&v[0];if(X+=_,I==null)return ue(),0;if($e.type==="begin"&&v.type==="end"&&$e.index===v.index&&I===""){if(X+=D.slice(v.index,v.index+1),!i){const B=new Error(`0 width match regex (${N})`);throw B.languageName=N,B.badRule=$e.rule,B}return 1}if($e=v,v.type==="begin")return Oe(v);if(v.type==="illegal"&&!L){const B=new Error('Illegal lexeme "'+I+'" for mode "'+(q.scope||"<unnamed>")+'"');throw B.mode=q,B}else if(v.type==="end"){const B=ze(v);if(B!==ys)return B}if(v.type==="illegal"&&I==="")return X+=`
177
+ `,1;if(je>1e5&&je>v.index*3)throw new Error("potential infinite loop, way more iterations than matches");return X+=I,I.length}const Te=F(N);if(!Te)throw _t(o.replace("{}",N)),new Error('Unknown language: "'+N+'"');const ie=Rb(Te);let ke="",q=j||ie;const H={},W=new s.__emitter(s);Ue();let X="",Re=0,Ee=0,je=0,st=!1;try{if(Te.__emitTokens)Te.__emitTokens(D,W);else{for(q.matcher.considerAll();;){je++,st?st=!1:q.matcher.considerAll(),q.matcher.lastIndex=Ee;const _=q.matcher.exec(D);if(!_)break;const v=D.substring(Ee,_.index),I=at(v,_);Ee=_.index+I}at(D.substring(Ee))}return W.finalize(),ke=W.toHTML(),{language:N,value:ke,relevance:Re,illegal:!1,_emitter:W,_top:q}}catch(_){if(_.message&&_.message.includes("Illegal"))return{language:N,value:Kr(D),illegal:!0,relevance:0,_illegalBy:{message:_.message,index:Ee,context:D.slice(Ee-100,Ee+100),mode:_.mode,resultSoFar:ke},_emitter:W};if(i)return{language:N,value:Kr(D),illegal:!1,relevance:0,errorRaised:_,_emitter:W,_top:q};throw _}}function p(N){const D={value:Kr(N),illegal:!1,relevance:0,_top:a,_emitter:new s.__emitter(s)};return D._emitter.addText(N),D}function f(N,D){D=D||s.languages||Object.keys(t);const L=p(N),j=D.filter(F).filter(S).map(ue=>d(ue,N,!1));j.unshift(L);const h=j.sort((ue,ye)=>{if(ue.relevance!==ye.relevance)return ye.relevance-ue.relevance;if(ue.language&&ye.language){if(F(ue.language).supersetOf===ye.language)return 1;if(F(ye.language).supersetOf===ue.language)return-1}return 0}),[Z,ee]=h,b=Z;return b.secondBest=ee,b}function g(N,D,L){const j=D&&n[D]||L;N.classList.add("hljs"),N.classList.add(`language-${j}`)}function m(N){let D=null;const L=c(N);if(l(L))return;if(V("before:highlightElement",{el:N,language:L}),N.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",N);return}if(N.children.length>0&&(s.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(N)),s.throwUnescapedHTML))throw new Lb("One of your code blocks includes unescaped HTML.",N.innerHTML);D=N;const j=D.textContent,h=L?u(j,{language:L,ignoreIllegals:!0}):f(j);N.innerHTML=h.value,N.dataset.highlighted="yes",g(N,L,h.language),N.result={language:h.language,re:h.relevance,relevance:h.relevance},h.secondBest&&(N.secondBest={language:h.secondBest.language,relevance:h.secondBest.relevance}),V("after:highlightElement",{el:N,result:h,text:j})}function x(N){s=bs(s,N)}const E=()=>{C(),Mt("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function T(){C(),Mt("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let k=!1;function C(){function N(){C()}if(document.readyState==="loading"){k||window.addEventListener("DOMContentLoaded",N,!1),k=!0;return}document.querySelectorAll(s.cssSelector).forEach(m)}function R(N,D){let L=null;try{L=D(e)}catch(j){if(_t("Language definition for '{}' could not be registered.".replace("{}",N)),i)_t(j);else throw j;L=a}L.name||(L.name=N),t[N]=L,L.rawDefinition=D.bind(null,e),L.aliases&&$(L.aliases,{languageName:N})}function w(N){delete t[N];for(const D of Object.keys(n))n[D]===N&&delete n[D]}function P(){return Object.keys(t)}function F(N){return N=(N||"").toLowerCase(),t[N]||t[n[N]]}function $(N,{languageName:D}){typeof N=="string"&&(N=[N]),N.forEach(L=>{n[L.toLowerCase()]=D})}function S(N){const D=F(N);return D&&!D.disableAutodetect}function z(N){N["before:highlightBlock"]&&!N["before:highlightElement"]&&(N["before:highlightElement"]=D=>{N["before:highlightBlock"](Object.assign({block:D.el},D))}),N["after:highlightBlock"]&&!N["after:highlightElement"]&&(N["after:highlightElement"]=D=>{N["after:highlightBlock"](Object.assign({block:D.el},D))})}function U(N){z(N),r.push(N)}function ne(N){const D=r.indexOf(N);D!==-1&&r.splice(D,1)}function V(N,D){const L=N;r.forEach(function(j){j[L]&&j[L](D)})}function G(N){return Mt("10.7.0","highlightBlock will be removed entirely in v12.0"),Mt("10.7.0","Please use highlightElement now."),m(N)}Object.assign(e,{highlight:u,highlightAuto:f,highlightAll:C,highlightElement:m,highlightBlock:G,configure:x,initHighlighting:E,initHighlightingOnLoad:T,registerLanguage:R,unregisterLanguage:w,listLanguages:P,getLanguage:F,registerAliases:$,autoDetection:S,inherit:bs,addPlugin:U,removePlugin:ne}),e.debugMode=function(){i=!1},e.safeMode=function(){i=!0},e.versionString=Mb,e.regex={concat:Et,lookahead:os,either:Ur,optional:Zm,anyNumberOfTimes:Ym};for(const N in On)typeof On[N]=="object"&&ts(On[N]);return Object.assign(e,On),e},Lt=Es({});Lt.newInstance=()=>Es({});var Pb=Lt;Lt.HighlightJS=Lt,Lt.default=Lt;const Fb=an(Pb),_s={},Bb="hljs-";function zb(e){const t=Fb.newInstance();return e&&o(e),{highlight:n,highlightAuto:r,listLanguages:i,register:o,registerAlias:a,registered:s};function n(l,c,u){const d=u||_s,p=typeof d.prefix=="string"?d.prefix:Bb;if(!t.getLanguage(l))throw new Error("Unknown language: `"+l+"` is not registered");t.configure({__emitter:Ub,classPrefix:p});const f=t.highlight(c,{ignoreIllegals:!0,language:l});if(f.errorRaised)throw new Error("Could not highlight with `Highlight.js`",{cause:f.errorRaised});const g=f._emitter.root,m=g.data;return m.language=f.language,m.relevance=f.relevance,g}function r(l,c){const d=(c||_s).subset||i();let p=-1,f=0,g;for(;++p<d.length;){const m=d[p];if(!t.getLanguage(m))continue;const x=n(m,l,c);x.data&&x.data.relevance!==void 0&&x.data.relevance>f&&(f=x.data.relevance,g=x)}return g||{type:"root",children:[],data:{language:void 0,relevance:f}}}function i(){return t.listLanguages()}function o(l,c){if(typeof l=="string")t.registerLanguage(l,c);else{let u;for(u in l)Object.hasOwn(l,u)&&t.registerLanguage(u,l[u])}}function a(l,c){if(typeof l=="string")t.registerAliases(typeof c=="string"?c:[...c],{languageName:l});else{let u;for(u in l)if(Object.hasOwn(l,u)){const d=l[u];t.registerAliases(typeof d=="string"?d:[...d],{languageName:u})}}}function s(l){return!!t.getLanguage(l)}}class Ub{constructor(t){this.options=t,this.root={type:"root",children:[],data:{language:void 0,relevance:0}},this.stack=[this.root]}addText(t){if(t==="")return;const n=this.stack[this.stack.length-1],r=n.children[n.children.length-1];r&&r.type==="text"?r.value+=t:n.children.push({type:"text",value:t})}startScope(t){this.openNode(String(t))}endScope(){this.closeNode()}__addSublanguage(t,n){const r=this.stack[this.stack.length-1],i=t.root.children;n?r.children.push({type:"element",tagName:"span",properties:{className:[n]},children:i}):r.children.push(...i)}openNode(t){const n=this,r=t.split(".").map(function(a,s){return s?a+"_".repeat(s):n.options.classPrefix+a}),i=this.stack[this.stack.length-1],o={type:"element",tagName:"span",properties:{className:r},children:[]};i.children.push(o),this.stack.push(o)}closeNode(){this.stack.pop()}finalize(){}toHTML(){return""}}const $b={};function Hb(e){const t=e||$b,n=t.aliases,r=t.detect||!1,i=t.languages||Gm,o=t.plainText,a=t.prefix,s=t.subset;let l="hljs";const c=zb(i);if(n&&c.registerAlias(n),a){const u=a.indexOf("-");l=u===-1?a:a.slice(0,u)}return function(u,d){bn(u,"element",function(p,f,g){if(p.tagName!=="code"||!g||g.type!=="element"||g.tagName!=="pre")return;const m=Kb(p);if(m===!1||!m&&!r||m&&o&&o.includes(m))return;Array.isArray(p.properties.className)||(p.properties.className=[]),p.properties.className.includes(l)||p.properties.className.unshift(l);const x=bh(p,{whitespace:"pre"});let E;try{E=m?c.highlight(m,x,{prefix:a}):c.highlightAuto(x,{prefix:a,subset:s})}catch(T){const k=T;if(m&&/Unknown language/.test(k.message)){d.message("Cannot highlight as `"+m+"`, it’s not registered",{ancestors:[g,p],cause:k,place:p.position,ruleId:"missing-language",source:"rehype-highlight"});return}throw k}!m&&E.data&&E.data.language&&p.properties.className.push("language-"+E.data.language),E.children.length>0&&(p.children=E.children)})}}function Kb(e){const t=e.properties.className;let n=-1;if(!Array.isArray(t))return;let r;for(;++n<t.length;){const i=String(t[n]);if(i==="no-highlight"||i==="nohighlight")return!1;!r&&i.slice(0,5)==="lang-"&&(r=i.slice(5)),!r&&i.slice(0,9)==="language-"&&(r=i.slice(9))}return r}const Gb=e=>A.jsx("a",{...e,target:"_blank",rel:"noopener noreferrer",className:"text-orange-500 hover:text-orange-700 underline",children:e.children}),xs=({iconName:e,size:t,className:n,style:r})=>{switch(e){case"heart":return A.jsx(Ws,{size:t,className:n,style:r});case"message-circle":return A.jsx(Dn,{size:t,className:n,style:r});case"help-circle":return A.jsx(js,{size:t,className:n,style:r});case"info":return A.jsx(Vs,{size:t,className:n,style:r});case"bot":return A.jsx(Us,{size:t,className:n,style:r});case"sparkles":return A.jsx(Zs,{size:t,className:n,style:r});case"message-square":case"message-dots":return A.jsxs("span",{style:{position:"relative",display:"inline-block"},children:[A.jsx(Dn,{size:t,className:n,style:r}),e==="message-dots"&&A.jsxs("span",{style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -40%)",display:"flex",gap:t?t*.12:3,alignItems:"center",justifyContent:"center",width:t?t*.6:24,height:t?t*.2:6,pointerEvents:"none"},children:[A.jsx("span",{style:{width:t?t*.12:3,height:t?t*.12:3,borderRadius:"50%",background:"white",display:"inline-block"}}),A.jsx("span",{style:{width:t?t*.12:3,height:t?t*.12:3,borderRadius:"50%",background:"white",display:"inline-block"}}),A.jsx("span",{style:{width:t?t*.12:3,height:t?t*.12:3,borderRadius:"50%",background:"white",display:"inline-block"}})]})]});default:return A.jsx(qs,{size:t,className:n,style:r})}},Wb=({content:e})=>A.jsx("div",{className:"prose prose-slate max-w-full dark:prose-invert overflow-hidden break-words",style:{color:"inherit"},children:A.jsx(Ba,{remarkPlugins:[eh],rehypePlugins:[uh,Hb],components:{a:({node:t,...n})=>A.jsx("a",{...n,target:"_blank",rel:"noopener noreferrer",className:"text-orange-500 hover:text-orange-700 underline"}),p:({node:t,...n})=>A.jsx("p",{style:{color:"inherit",margin:"0 0 0.5em 0"},...n}),pre:({node:t,...n})=>A.jsx("pre",{className:"overflow-x-auto p-4 rounded-md bg-gray-100 dark:bg-gray-800",...n}),code:({node:t,...n})=>A.jsx("code",{className:"px-1 py-0.5 rounded-md bg-gray-100 dark:bg-gray-800 text-sm",...n}),ul:({node:t,...n})=>A.jsx("ul",{style:{color:"inherit",margin:"0.5em 0",paddingLeft:"1.5em"},...n}),ol:({node:t,...n})=>A.jsx("ol",{style:{color:"inherit",margin:"0.5em 0",paddingLeft:"1.5em"},...n}),li:({node:t,...n})=>A.jsx("li",{style:{color:"inherit",marginBottom:"0.25em"},...n}),h1:({node:t,...n})=>A.jsx("h1",{style:{color:"inherit",margin:"1em 0 0.5em 0"},...n}),h2:({node:t,...n})=>A.jsx("h2",{style:{color:"inherit",margin:"1em 0 0.5em 0"},...n}),h3:({node:t,...n})=>A.jsx("h3",{style:{color:"inherit",margin:"1em 0 0.5em 0"},...n}),h4:({node:t,...n})=>A.jsx("h4",{style:{color:"inherit",margin:"1em 0 0.5em 0"},...n}),h5:({node:t,...n})=>A.jsx("h5",{style:{color:"inherit",margin:"1em 0 0.5em 0"},...n}),h6:({node:t,...n})=>A.jsx("h6",{style:{color:"inherit",margin:"1em 0 0.5em 0"},...n})},children:e})}),In=e=>{const[t,n]=Y.useState(!1),[r,i]=Y.useState(""),[o,a]=Y.useState(!1),[s,l]=Y.useState(!1),c=Y.useRef(null),u=Y.useRef(null),d=250,p=Y.useRef(null),[f,g]=Y.useState(!1),[m,x]=Y.useState(!1),[E,T]=Y.useState(!1),[k,C]=Y.useState(!1),R=Y.useRef(new Set),w=Y.useRef(new Map),P=Y.useRef(!0),F=Y.useRef(),$=Y.useRef(null),S=Y.useRef(!1),[z,U]=Y.useState(!1),[ne,V]=Y.useState(null),[G,N]=Y.useState(window.innerWidth);Y.useEffect(()=>{const H=()=>N(window.innerWidth);return window.addEventListener("resize",H),()=>window.removeEventListener("resize",H)},[]);const D=ut(),[L,j]=Y.useState({...D,...e}),h=L.theme||Ua;Y.useEffect(()=>{e.apiUrl&&e.apiKey&&e.sessionId&&Xt(e.apiUrl,e.apiKey,e.sessionId)},[e.apiUrl,e.apiKey,e.sessionId]),Y.useEffect(()=>{const H=W=>{j(W.detail)};return window.addEventListener("chatbot-config-update",H),()=>{window.removeEventListener("chatbot-config-update",H)}},[]),Y.useEffect(()=>{e&&j(H=>({...H,...e}))},[e]);const{messages:Z,isLoading:ee,sendMessage:b,clearMessages:ue}=Hn();Y.useEffect(()=>{Z.length===0&&R.current.clear()},[Z.length]);const ye=()=>{n(!t),t||(a(!1),setTimeout(()=>Ue(!0),100))},pe=()=>{r.trim()&&!ee&&(P.current=!0,b(r),i(""),setTimeout(()=>Ue(!0),100))},Pe=H=>{H.key==="Enter"&&!H.shiftKey&&(H.preventDefault(),pe())},we=async(H,W)=>{try{await navigator.clipboard.writeText(H),V(W),setTimeout(()=>{V(null)},2e3)}catch(X){console.error("Failed to copy text: ",X)}},Ne=H=>{const W=/(https?:\/\/[^\s]+?)([.,;:!?)]*)(?=\s|$)/g;return H.replace(W,(Re,Ee,je)=>`[${Ee}](${Ee})${je}`)},Oe=H=>{let W=H.replace(/\n{3,}/g,`
178
+
179
+ `);return W=W.replace(/\n(\s*[-*+]|\s*\d+\.)\s*/g,`
180
+ $1 `),W=W.replace(/\n\n\n+/g,`
181
+
182
+ `),W.trim()},ze=H=>H.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"}),Ue=(H=!1)=>{if(p.current){const{scrollHeight:W}=p.current;p.current.scrollTo({top:W,behavior:H?"auto":"smooth"}),setTimeout(()=>{$e()},H?0:300)}},$e=()=>{if(p.current&&!z){const{scrollTop:H,scrollHeight:W,clientHeight:X}=p.current,Re=Math.abs(W-H-X)<10,Ee=H<10;g(!Ee&&H>200),x(!Re)}},at=()=>{p.current&&(C(!0),p.current.scrollTo({top:0,behavior:"smooth"}),setTimeout(()=>{C(!1),$e()},300))},Te=H=>{const W=H.target.value;W.length<=d&&i(W)},ie=H=>{R.current.add(H),H===Z.length-1&&(U(!1),setTimeout(()=>Ue(),50))},ke=H=>R.current.has(H);Y.useEffect(()=>{(ee||Z.length===0)&&Ue(!0)},[Z,ee]),Y.useEffect(()=>{t&&u.current&&u.current.focus()},[t]),Y.useEffect(()=>()=>{F.current&&clearTimeout(F.current)},[]);const q=({content:H,onComplete:W,messageIndex:X,inputRef:Re})=>{const[Ee,je]=Y.useState(()=>{const de=w.current.get(X);return de?H.slice(0,de):""}),[st,_]=Y.useState(!0),v=Y.useRef(w.current.get(X)||0),I=Y.useRef(!1),B=Y.useRef(),J=Y.useRef(!1),le=Y.useRef(H);Y.useEffect(()=>{if(ke(X)){je(H),_(!1),W(),w.current.set(X,H.length);return}if(!J.current)return J.current=!0,le.current=H,Ve(),()=>{B.current&&cancelAnimationFrame(B.current)}},[X,H]);const Ve=()=>{if(I.current)return;I.current=!0,S.current=!0,U(!0);let de=v.current,Ae=0;_(de===0);const Se=tt=>{if(de<le.current.length){const Xe=le.current.slice(0,de+1);je(Xe),w.current.set(X,de+1),de===0&&_(!1),tt-Ae>100&&(Ue(),Ae=tt),de++,v.current=de,B.current=requestAnimationFrame(Se)}else Ie()};B.current=requestAnimationFrame(Se)},Ie=()=>{S.current=!1,W(),I.current=!1,U(!1),Ue(),w.current.set(X,le.current.length)};return Y.useEffect(()=>{const de=()=>{I.current&&(B.current&&cancelAnimationFrame(B.current),je(le.current),_(!1),Ie(),w.current.set(X,le.current.length))},Ae=Re.current;return Ae&&Ae.addEventListener("input",de),()=>{Ae&&Ae.removeEventListener("input",de)}},[Re,W]),Y.useEffect(()=>{let de=null;const Ae=()=>{if(document.hidden)B.current&&(cancelAnimationFrame(B.current),I.current=!1),de=Date.now();else if(J.current&&!I.current&&v.current>0&&v.current<le.current.length){const Se=Date.now();de&&Se-de>1e3?(je(le.current),_(!1),Ie(),w.current.set(X,le.current.length)):Ve(),de=null}};return document.addEventListener("visibilitychange",Ae),()=>{document.removeEventListener("visibilitychange",Ae)}},[]),A.jsxs(A.Fragment,{children:[Ee&&A.jsx("div",{className:"prose prose-base max-w-full whitespace-pre-wrap",style:{overflowWrap:"anywhere",wordBreak:"break-word",width:"100%",maxWidth:"100%",fontSize:"16px"},children:A.jsx(Ba,{components:{a:de=>A.jsx(Gb,{...de}),p:de=>A.jsx("p",{style:{overflowWrap:"anywhere",wordBreak:"break-word",margin:"0 0 0.2em 0"},...de}),code:de=>A.jsx("code",{style:{display:"block",whiteSpace:"pre-wrap",overflowX:"auto",overflowWrap:"anywhere"},...de})},children:Oe(Ne(Ee))})}),st&&A.jsxs("div",{className:"text-gray-500",children:[A.jsx("span",{className:"font-medium",children:"Thinking"}),A.jsxs("span",{className:"animate-dots ml-1",children:[A.jsx("span",{className:"dot",children:"."}),A.jsx("span",{className:"dot",children:"."}),A.jsx("span",{className:"dot",children:"."})]})]})]})};return A.jsxs("div",{className:"fixed bottom-8 right-8 z-50 flex flex-col items-end font-sans",style:{fontFamily:'Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif'},children:[t&&A.jsxs("div",{className:"mb-4 w-full sm:w-[480px] md:w-[600px] lg:w-[700px] rounded-xl shadow-xl flex flex-col overflow-hidden border border-gray-200 transition-all duration-300 ease-in-out",style:{background:h.background,height:"600px",maxHeight:"calc(100vh - 80px)",width:G<640?"100%":G<768?"480px":G<1024?"600px":"700px",minWidth:G<640?"100%":"480px"},children:[A.jsxs("div",{className:"p-4 flex justify-between items-center shrink-0",style:{background:h.primary,color:h.text.inverse},children:[A.jsxs("div",{className:"flex items-center",children:[A.jsx(xs,{iconName:L.icon,size:32,className:"mr-3",style:{color:h.secondary}}),A.jsx("h3",{className:"text-xl font-medium",children:L.header.title})]}),A.jsxs("div",{className:"flex items-center space-x-3",children:[A.jsx("button",{onClick:()=>{ue(),R.current.clear()},className:"transition-colors p-2 rounded-full hover:bg-opacity-20 hover:bg-black",style:{color:h.text.inverse},"aria-label":"Clear conversation",title:"Clear conversation",children:A.jsx(Xs,{size:20})}),A.jsx("button",{onClick:ye,className:"transition-colors p-2 rounded-full hover:bg-opacity-20 hover:bg-black",style:{color:h.text.inverse},"aria-label":"Minimize chat",children:A.jsx(Qr,{size:40,className:"text-white",style:{opacity:.9}})})]})]}),A.jsxs("div",{ref:p,className:"flex-1 p-4 overflow-y-auto scroll-smooth relative messages-container",style:{background:h.input.background,overflowY:"auto"},onScroll:$e,children:[f&&A.jsx("button",{onClick:at,className:"sticky top-3 left-[calc(100%-48px)] z-10 flex items-center justify-center p-2 rounded-full shadow-md",style:{backgroundColor:h.primary,color:h.text.inverse},"aria-label":"Scroll to top",title:"Scroll to top",children:A.jsx(Ks,{size:20})}),m&&!z&&A.jsx("button",{onClick:()=>Ue(),className:"sticky bottom-3 left-[calc(100%-48px)] z-10 flex items-center justify-center p-2 rounded-full shadow-md",style:{backgroundColor:h.primary,color:h.text.inverse},"aria-label":"Scroll to bottom",title:"Scroll to bottom",children:A.jsx(Hs,{size:20})}),Z.length===0?A.jsxs("div",{className:"text-center py-16",children:[A.jsx(xs,{iconName:L.icon,size:56,className:"mx-auto mb-4",style:{color:h.iconColor}}),A.jsx("h4",{className:"font-medium text-xl text-[#2C3E50] mb-2",children:L.welcome.title}),A.jsx("p",{className:"text-lg text-gray-600 mb-6",children:L.welcome.description}),A.jsx("div",{className:"w-full px-4",children:L.suggestedQuestions.map((H,W)=>A.jsxs("button",{onClick:()=>{b(H.query),setTimeout(()=>{u.current&&u.current.focus()},100)},className:"w-full text-left text-base p-3 rounded-lg transition-colors mb-3 flex items-center",style:{backgroundColor:h.suggestedQuestions.background,color:h.suggestedQuestions.text},onMouseEnter:X=>{X.currentTarget.style.backgroundColor=h.suggestedQuestions.hoverBackground},onMouseLeave:X=>{X.currentTarget.style.backgroundColor=h.suggestedQuestions.background},children:[A.jsx(Dn,{size:20,className:"mr-2 flex-shrink-0"}),A.jsx("span",{children:H.text})]},W))})]}):A.jsxs("div",{className:"space-y-5",children:[Z.map((H,W)=>{const X=new Date;X.setMinutes(X.getMinutes()-(Z.length-W));const Re=H.role==="assistant"&&W===Z.length-1,Ee=Re&&ee;return A.jsx("div",{className:Ct("flex",H.role==="user"?"justify-end":"justify-start"),ref:W===Z.length-1?$:null,children:A.jsxs("div",{className:Ct("max-w-[85%] rounded-xl p-4 shadow-sm",H.role==="user"?"rounded-tr-none":"rounded-tl-none"),style:{background:H.role==="user"?h.message.user:h.message.assistant,color:H.role==="user"?h.message.userText:h.text.primary,border:H.role==="assistant"?`1px solid ${h.input.border}`:"none",width:"100%",maxWidth:"85%",wordWrap:"break-word",overflowWrap:"anywhere"},children:[H.role==="assistant"?Ee?A.jsxs("div",{className:"text-gray-500",children:[A.jsx("span",{className:"font-medium",children:"Thinking"}),A.jsxs("span",{className:"animate-dots ml-1",children:[A.jsx("span",{className:"dot",children:"."}),A.jsx("span",{className:"dot",children:"."}),A.jsx("span",{className:"dot",children:"."})]})]}):!ke(W)&&Re?A.jsx(q,{content:H.content,onComplete:()=>ie(W),messageIndex:W,inputRef:u}):A.jsx(Wb,{content:Oe(Ne(H.content))}):A.jsx("p",{className:"text-base",style:{overflowWrap:"anywhere",wordBreak:"break-word",whiteSpace:"pre-wrap",width:"100%"},children:H.content}),A.jsxs("div",{className:Ct("flex text-xs mt-2",H.role==="user"?"justify-start text-white/70":"justify-between text-gray-400"),children:[A.jsx("span",{children:ze(X)}),H.role==="assistant"&&!Ee&&A.jsxs("div",{className:"relative",children:[A.jsx("button",{onClick:()=>we(H.content,W),className:"text-gray-400 hover:text-gray-600 transition-colors ml-2 p-1 rounded-full hover:bg-gray-100","aria-label":"Copy to clipboard",children:ne===W?A.jsx($s,{size:16}):A.jsx(Gs,{size:16})}),ne===W&&A.jsx("div",{className:"absolute bottom-full right-0 mb-1 px-2 py-1 text-xs rounded-md shadow-sm animate-fade-in-out whitespace-nowrap",style:{backgroundColor:h.secondary,color:h.text.inverse},children:"Copied!"})]})]})]})},W)}),ee&&Z.length===0&&A.jsx("div",{className:"flex justify-start",children:A.jsx("div",{className:"bg-white border border-gray-200 rounded-xl rounded-tl-none max-w-[85%] p-4 shadow-sm",children:A.jsxs("div",{className:"text-gray-500",children:[A.jsx("span",{className:"font-medium",children:"Thinking"}),A.jsxs("span",{className:"animate-dots ml-1",children:[A.jsx("span",{className:"dot",children:"."}),A.jsx("span",{className:"dot",children:"."}),A.jsx("span",{className:"dot",children:"."})]})]})})}),A.jsx("div",{ref:c})]})]}),A.jsx("div",{className:"p-4 border-t shrink-0",style:{borderColor:h.input.border,background:h.background,boxShadow:"0 -2px 10px rgba(0,0,0,0.05)"},children:A.jsxs("div",{className:"flex items-end gap-3",children:[A.jsxs("div",{className:Ct("flex-1 relative rounded-xl transition-all duration-200 overflow-hidden",E?"ring-2":"ring-0"),style:{borderColor:h.input.border,border:"1px solid",boxShadow:E?"0 0 0 2px rgba(236, 153, 75, 0.2)":"none","--tw-ring-color":h.secondary,background:h.input.background},children:[A.jsx("textarea",{ref:u,value:r,onChange:Te,onKeyDown:Pe,onFocus:()=>T(!0),onBlur:()=>T(!1),placeholder:"Type your message...",maxLength:d,className:"w-full resize-none outline-none p-3 pr-12 text-base custom-scrollbar",style:{background:"transparent",color:h.text.primary,height:"48px",minHeight:"48px",maxHeight:"96px",overflow:"auto",lineHeight:"1.5",boxSizing:"border-box"}}),r.length>0&&A.jsxs("div",{className:"absolute bottom-2 right-3 text-xs px-2 py-1 rounded-full",style:{color:r.length>=d*.9?"#ef4444":"#6b7280",backgroundColor:r.length>=d*.9?"rgba(239, 68, 68, 0.1)":"rgba(107, 114, 128, 0.1)",fontSize:"0.7rem"},children:[r.length,"/",d]})]}),A.jsx("button",{onClick:pe,disabled:!r.trim()||ee,className:Ct("rounded-full transition-all duration-200 flex items-center justify-center shrink-0",r.trim()&&!ee?"hover:shadow-md transform hover:-translate-y-0.5":"bg-gray-200 text-gray-400 cursor-not-allowed"),style:{backgroundColor:r.trim()&&!ee?h.secondary:void 0,color:r.trim()&&!ee?"white":void 0,width:"48px",height:"48px",padding:"12px"},"aria-label":"Send message",children:A.jsx(Ys,{size:24})})]})})]}),A.jsxs("div",{className:"relative",children:[o&&!t&&A.jsx("span",{className:"absolute -top-1 -right-1 h-4 w-4 bg-orange-500 rounded-full animate-pulse z-10"}),A.jsx("button",{onClick:ye,onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),className:Ct("rounded-full shadow-lg flex items-center justify-center transition-all duration-300",s&&!t&&"animate-pulse",!t&&"animate-bounce-gentle"),style:{background:t?h.primary:"transparent",color:t?void 0:h.iconColor,border:"none",boxShadow:"none",width:"64px",height:"64px"},"aria-label":t?"Close chat":"Open chat",children:t?A.jsx(Qr,{size:40,className:"text-white",style:{opacity:.9}}):A.jsx(Wf,{width:48,height:48})})]}),A.jsx("style",{children:`
157
183
  @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
158
184
 
159
185
  body, button, input, textarea {
@@ -202,38 +228,47 @@ React keys must be passed directly to JSX without using spread:
202
228
  }
203
229
 
204
230
  .prose {
205
- max-width: 100%;
206
- }
207
-
208
- .prose > * {
209
- margin-top: 0 !important;
210
- margin-bottom: 0 !important;
211
- }
231
+ max-width: 100%;
232
+ }
212
233
 
213
- .prose p {
214
- margin: 0 0 0.5em 0 !important;
215
- padding: 0;
216
- line-height: 1.5;
217
- white-space: pre-line;
218
- }
234
+ .prose > * {
235
+ margin-top: 0 !important;
236
+ margin-bottom: 0.5em !important;
237
+ }
219
238
 
220
- .prose p:last-child {
221
- margin-bottom: 0 !important;
222
- }
239
+ .prose p {
240
+ margin: 0 0 0.5em 0 !important;
241
+ padding: 0;
242
+ line-height: 1.5;
243
+ }
223
244
 
224
- .prose p + p {
225
- margin-top: 0 !important;
226
- }
227
-
228
- .prose code {
229
- font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
230
- font-size: 14px;
231
- padding: 0.2em 0.4em;
232
- background: rgba(0, 0, 0, 0.05);
233
- border-radius: 3px;
234
- }
235
-
236
- textarea, button {
237
- font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
238
- }
239
- `})]})};function pc(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){const t=Math.random()*16|0;return(e==="x"?t:t&3|8).toString(16)})}function hc(){const e="orbit_session_id";let t=sessionStorage.getItem(e);return t||(t=pc(),sessionStorage.setItem(e,t)),t}let nt=null,rt=null,ht=null,me=null;function Fi(){if(!nt)if(typeof window<"u"&&window.CHATBOT_API_URL)nt=window.CHATBOT_API_URL;else throw new Error("API URL not set. Call setApiUrl or use injectChatWidget to configure the API URL.");return nt}function zi(){if(!rt)if(typeof window<"u"&&window.CHATBOT_API_KEY)rt=window.CHATBOT_API_KEY;else throw new Error("API key not set. Call setApiKey or use injectChatWidget to configure the API key.");return rt}function Bi(e){nt=e,typeof window<"u"&&(window.CHATBOT_API_URL=e,rt&&ht&&Tt(e,rt,ht))}function Ui(e){rt=e,typeof window<"u"&&(window.CHATBOT_API_KEY=e,nt&&ht&&Tt(nt,e,ht))}function Hi(e){typeof window>"u"||(me={...Je(),...me,...e,header:{...Je().header,...me==null?void 0:me.header,...e.header},welcome:{...Je().welcome,...me==null?void 0:me.welcome,...e.welcome},suggestedQuestions:e.suggestedQuestions||(me==null?void 0:me.suggestedQuestions)||Je().suggestedQuestions,theme:{...Je().theme,...me==null?void 0:me.theme,...e.theme}},window.dispatchEvent(new CustomEvent("chatbot-config-update",{detail:me})))}function Fn(e){if(typeof window>"u")return;nt=e.apiUrl,rt=e.apiKey,ht=e.sessionId||hc(),Tt(e.apiUrl,e.apiKey,ht),e.widgetConfig&&(me={...Je(),...e.widgetConfig});function t(){try{if(!window.React||!window.ReactDOM){console.log("React or ReactDOM not available yet, retrying in 100ms..."),setTimeout(t,100);return}const n=e.containerSelector?document.querySelector(e.containerSelector):document.createElement("div");if(!n){console.error(`Container with selector "${e.containerSelector}" not found`);return}e.containerSelector||(n.id="chatbot-widget-container",document.body.appendChild(n)),window.ReactDOM.createRoot(n).render(window.React.createElement(Vt,me)),console.log("Chatbot widget initialized successfully!")}catch(n){console.error("Error initializing chatbot widget:",n)}}setTimeout(t,100)}typeof window<"u"&&(window.initChatbotWidget=Fn,window.ChatbotWidget={ChatWidget:Vt,useChatStore:Zt,injectChatWidget:Fn,setApiUrl:Bi,getApiUrl:Fi,setApiKey:Ui,getApiKey:zi,updateWidgetConfig:Hi,configureApi:Tt},console.log("Chatbot widget loaded.")),we.ChatWidget=Vt,we.default=Vt,we.getApiKey=zi,we.getApiUrl=Fi,we.getChatConfig=Je,we.injectChatWidget=Fn,we.setApiKey=Ui,we.setApiUrl=Bi,we.updateWidgetConfig=Hi,we.useChatStore=Zt,Object.defineProperties(we,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
245
+ .prose p:last-child {
246
+ margin-bottom: 0 !important;
247
+ }
248
+
249
+ .prose ul,
250
+ .prose ol {
251
+ margin-top: 0.5em !important;
252
+ margin-bottom: 0.5em !important;
253
+ padding-left: 1.5em !important;
254
+ }
255
+
256
+ .prose li {
257
+ margin-bottom: 0.25em !important;
258
+ padding-left: 0.25em !important;
259
+ line-height: 1.4;
260
+ }
261
+
262
+ .prose li p {
263
+ margin: 0 !important;
264
+ }
265
+
266
+ .prose li + li {
267
+ margin-top: 0.1em !important;
268
+ }
269
+
270
+ .prose h1, .prose h2, .prose h3, .prose h4, .prose h5, .prose h6 {
271
+ margin-top: 1em !important;
272
+ margin-bottom: 0.5em !important;
273
+ }
274
+ `})]})};function jb(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){const t=Math.random()*16|0;return(e==="x"?t:t&3|8).toString(16)})}function Vb(){const e="orbit_session_id";let t=sessionStorage.getItem(e);return t||(t=jb(),sessionStorage.setItem(e,t)),t}let xt=null,wt=null,Dt=null,Ce=null;function ws(){if(!xt)if(typeof window<"u"&&window.CHATBOT_API_URL)xt=window.CHATBOT_API_URL;else throw new Error("API URL not set. Call setApiUrl or use injectChatWidget to configure the API URL.");return xt}function ks(){if(!wt)if(typeof window<"u"&&window.CHATBOT_API_KEY)wt=window.CHATBOT_API_KEY;else throw new Error("API key not set. Call setApiKey or use injectChatWidget to configure the API key.");return wt}function Ss(e){xt=e,typeof window<"u"&&(window.CHATBOT_API_URL=e,wt&&Dt&&Xt(e,wt,Dt))}function vs(e){wt=e,typeof window<"u"&&(window.CHATBOT_API_KEY=e,xt&&Dt&&Xt(xt,e,Dt))}function Ts(e){typeof window>"u"||(Ce={...ut(),...Ce,...e,header:{...ut().header,...Ce==null?void 0:Ce.header,...e.header},welcome:{...ut().welcome,...Ce==null?void 0:Ce.welcome,...e.welcome},suggestedQuestions:e.suggestedQuestions||(Ce==null?void 0:Ce.suggestedQuestions)||ut().suggestedQuestions,theme:{...ut().theme,...Ce==null?void 0:Ce.theme,...e.theme}},window.dispatchEvent(new CustomEvent("chatbot-config-update",{detail:Ce})))}function Gr(e){if(typeof window>"u")return;xt=e.apiUrl,wt=e.apiKey,Dt=e.sessionId||Vb(),Xt(e.apiUrl,e.apiKey,Dt),e.widgetConfig&&(Ce={...ut(),...e.widgetConfig});function t(){try{if(!window.React||!window.ReactDOM){console.log("React or ReactDOM not available yet, retrying in 100ms..."),setTimeout(t,100);return}const n=e.containerSelector?document.querySelector(e.containerSelector):document.createElement("div");if(!n){console.error(`Container with selector "${e.containerSelector}" not found`);return}e.containerSelector||(n.id="chatbot-widget-container",document.body.appendChild(n)),window.ReactDOM.createRoot(n).render(window.React.createElement(In,Ce)),console.log("Chatbot widget initialized successfully!")}catch(n){console.error("Error initializing chatbot widget:",n)}}setTimeout(t,100)}typeof window<"u"&&(window.initChatbotWidget=Gr,window.ChatbotWidget={ChatWidget:In,useChatStore:Hn,injectChatWidget:Gr,setApiUrl:Ss,getApiUrl:ws,setApiKey:vs,getApiKey:ks,updateWidgetConfig:Ts,configureApi:Xt},console.log("Chatbot widget loaded.")),Me.ChatWidget=In,Me.default=In,Me.getApiKey=ks,Me.getApiUrl=ws,Me.getChatConfig=ut,Me.injectChatWidget=Gr,Me.setApiKey=vs,Me.setApiUrl=Ss,Me.updateWidgetConfig=Ts,Me.useChatStore=Hn,Object.defineProperties(Me,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});