1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="8603347e-b5ab-26e5-6848-a744c44c9a1c")}catch(e){}}(); 2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,775822,e=>{"use strict";function t(e){return{used:e?.used??0,remaining:e?.remaining??10,limit:e?.limit??10}}function n(e){return e.includes("Assistant Coach prompts for today")}function r(e){let t=(e instanceof Error?e.message:String(e??"")).toLowerCase();return t.includes("network")||t.includes("failed to fetch")||t.includes("load failed")||t.includes("fetch resource")||t.includes("connection")?"I lost the connection for a second there. Give it another go.":t.includes("timed out")||t.includes("timeout")?"That one took longer than expected. Try asking again.":t.includes("429")||t.includes("rate")?"A lot going on right now. Give me a moment and try again.":t.includes("401")||t.includes("403")||t.includes("unauthor")?"I need you to be signed in to pull that up. Try refreshing the page.":"I couldn't pull that up just now. Try asking again."}async function i(e){return t(await e.getUsage())}e.s([],893723),e.i(893723),e.s(["DEMO_PROMPT_LIMIT",0,3,"PROMPT_LIMIT",0,10,"formatCoachStreamError",0,function(e){let t=e instanceof Error?e.message:String(e??"");return n(t)||t.includes("Assistant Coach questions in this demo")||t.includes("demo assistant is busy")?t:r(e)},"getInsights",0,function(e,t){return e.getInsights(t)},"getUsage",0,i,"isDailyPromptLimitMessage",0,n,"isUsageExhausted",0,function(e){return!!e&&e.remaining<=0},"normalizeUsage",0,t,"streamChat",0,function(e,t,n){return e.streamChat(t,n)},"toCoachError",0,r],262953);var l=e.i(262953);e.s(["AssistantCoach",0,l],775822)},860806,94524,378493,365823,591010,35101,579034,e=>{"use strict";var t=e.i(289180);let n=(0,t.default)("arrow-up",[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]]);e.s(["ArrowUp",0,n],860806);let r=(0,t.default)("sparkles",[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}
2],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]]);e.s(["Sparkles",0,r],94524);let i=(0,t.default)("trending-up",[["path",{d:"M16 7h6v6",key:"box55l"}],["path",{d:"m22 7-8.5 8.5-5-5L2 17",key:"1t1m79"}]]);e.s(["TrendingUp",0,i],378493);let l=(0,t.default)("lightbulb",[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]]);e.s(["Lightbulb",0,l],365823);let o=(0,t.default)("maximize",[["path",{d:"M8 3H5a2 2 0 0 0-2 2v3",key:"1dcmit"}],["path",{d:"M21 8V5a2 2 0 0 0-2-2h-3",key:"1e4gt3"}],["path",{d:"M3 16v3a2 2 0 0 0 2 2h3",key:"wsl5sc"}],["path",{d:"M16 21h3a2 2 0 0 0 2-2v-3",key:"18trek"}]]);e.s(["Maximize",0,o],591010);let a=(0,t.default)("external-link",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);e.s(["ExternalLink",0,a],35101);let s=(0,t.default)("history",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]]);e.s(["History",0,s],579034)},369090,(e,t,n)=>{"use strict";var r=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,i=/\n/g,l=/^\s*/,o=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,a=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,u=/^[;\s]*/,c=/^\s+|\s+$/g;function d(e){return e?e.replace(c,""):""}t.exports=function(e,t){if("string"!=typeof e)throw TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,c=1;function f(e){var t=e.match(i);t&&(n+=t.length);var r=e.lastIndexOf("\n");c=~r?e.length-r:c+e.length}function p(){var e={line:n,column:c};return function(t){return t.position=new h(e),g(l),t}}function h(e){this.start=e,this.end={line:n,column:c},this.source=t.source}function m(r){var i=Error(t.source+":"+n+":"+c+": "+r);if(i.reason=r,i.filename=t.source,i.line=n,i.column=c,i.source=e,t.silent);else throw i}function g(t){var n=t.exec(e);if(n){var r=n[0];return f(r),e=e.slice(r.length),n}}function y(e){var t;for(e=e||[];t=x();)!1!==t&&e.push(t);return e}function x(){var t=p();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;""!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,""===e.charAt(n-1))return m("End of comment missing");var r=e.slice(2,n-2);return c+=2,f(r),e=e.slice(n),c+=2,t({type:"comment",comment:r})}}h.prototype.content=e,g(l);var b,v=[];for(y(v);b=function(){var e=p(),t=g(o);if(t){if(x(),!g(a))return m("property missing ':'");var n=g(s),i=e({type:"declaration",property:d(t[0].replace(r,"")),value:n?d(n[0].replace(r,"")):""});return g(u),i}}();)!1!==b&&(v.push(b),y(v));return v}},559596,(e,t,n)=>{"use strict";var r=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e,t){let n=null;if(!e||"string"!=typeof e)return n;let r=(0,i.default)(e),l="function"==typeof t;return r.forEach(e=>{if("declaration"!==e.type)return;let{property:r,value:i}=e;l?t(r,i,e):i&&((n=n||{})[r]=i)}),n};let i=r(e.r(369090))},851521,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.camelCase=void 0;var r=/^--[a-zA-Z0-9_-]+$/,i=/-([a-z])/g,l=/^[^-]+$/,o=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,s=function(e,t){return t.toUpperCase()},u=function(e,t){return"".concat(t,"-")};n.camelCase=function(e,t){var n;return(void 0===t&&(t={}),!(n=e)||l.test(n)||r.test(n))?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(a,u):e.replace(o,u)).replace(i,s))}},763185,(e,t,n)=>{"use strict";var r=(e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(e.r(559596)),i=e.r(851521);function l(e,t){var n={};return e&&"string"==typeof e&&(0,r.default)(e,function(e,r){e&&r&&(n[(0,i.camelCase)(e,t)]=r)}),n}l.default=l,t.exports=l},975609,(e,t,n)=>{"use strict";var r=Object.prototype.hasOwnProperty,i=Object.prototype.toString,l=Object.defineProperty,o=Object.getOwnPropertyDescriptor,a=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===i.call(e)},s=function(e){if(!e||"[object Object]"!==i.call(e))return!1;var t,n=r.call(e,"constructor"),l=e.constructor&&e.constructor.prototype&&r.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!l)return!1;for(t in e);return void 0===t||r.call(e,t)},u=function(e,t){l&&"__proto__"===t.name?l(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},c=function(e,t){if("__proto__"===t){if(!r.call(e,t))return;else if(o)return o(e,t).value}return e[t]};t.exports=function e(){var t,n,r,i,l,o,d=arguments[0],f=1,p=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},f=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});f<p;++f)if(t=arguments[f],null!=t)for(n in t)r=c(d,n),d!==(i=c(t,n))&&(h&&i&&(s(i)||(l=a(i)))?(l?(l=!1,o=r&&a(r)?r:[]):o=r&&s(r)?r:{},u(d,{name:n,newValue:e(h,o,i)})):void 0!==i&&u(d,{name:n,newValue:i}));return d}},893761,e=>{"use strict";var t=e.i(437761),n=e.i(767595),r=e.i(229109),i=e.i(455e3),l=e.i(125955),o=e.i(860806),a=e.i(207898),s=e.i(360537),u=e.i(338042),c=e.i(94524),d=e.i(378493),f=e.i(85398),p=e.i(365823),h=e.i(475423),m=e.i(591010),g=e.i(35101),y=e.i(470996),x=e.i(697541),b=e.i(628999),v=e.i(579034),k=e.i(498099),w=e.i(992778),S=e.i(6
25519),j=e.i(959128),C=e.i(92684),E=e.i(780771);e.i(399144),e.i(320125);var A=e.i(775822),N=e.i(529780),T=e.i(693943);A.AssistantCoach.toCoachError;let D=A.AssistantCoach.formatCoachStreamError;function P(){let e="https://internal-api.superstatsport.com".trim();if(!e)throw new N.ApiError("NEXT_PUBLIC_API_URL is not set",500);return e.replace(/\/$/,"")}async function L(e,t,n){let r=e.body.getReader(),i=new TextDecoder,l="",o=null,a=e=>{let n,r=e.trim();if(!r.startsWith("data:"))return;let i=r.slice(5).trim();if(i){try{n=JSON.parse(i)}catch{return}switch(t.onEvent?.(n),n.type){case"status":t.onStatus?.(n.label);break;case"widget":t.onWidget?.(n.handle,n.widget);break;case"delta":t.onDelta?.(n.text);break;case"usage":t.onUsage?.({used:n.used,remaining:n.remaining,limit:n.limit});break;case"error":o=n.message}}};for(;;){let{done:e,value:t}=await r.read();if(e)break;n();let o=(l+=i.decode(t,{stream:!0})).split("\n\n");for(let e of(l=o.pop()??"",o))a(e)}if(l.trim()&&a(l),o)throw Error(o)}async function F(e,t){let{data:{session:n}}=await T.supabase.auth.getSession(),r=n?.access_token;if(!r)throw new N.ApiError("Please sign in again.",401);await O(`${P()}/api/v1/assistant-coach/chat`,{teamId:e.teamId,userMessage:e.userMessage,messages:e.messages},{Authorization:`Bearer ${r}`},e.signal,t)}async function M(e,t){await O(`${P()}/api/v1/demo/assistant-coach/chat`,{visitorId:e.visitorId,userMessage:e.userMessage,messages:e.messages},{},e.signal,t)}async function O(e,t,n,r,i){let l,o=new AbortController,a=e=>{o.signal.aborted||(o._reason=e,o.abort())},s=()=>a("aborted");r&&(r.aborted?a("aborted"):r.addEventListener("abort",s,{once:!0}));let u=null,c=(e,t)=>{u&&clearTimeout(u),u=setTimeout(()=>a(t),e)},d=()=>{u&&clearTimeout(u),u=null};c(45e3,"timeout");try{l=await fetch(e,{method:"POST",headers:{"Content-Type":"application/json",...n},body:JSON.stringify(t),signal:o.signal})}catch(e){if(d(),r?.removeEventListener("abort",s),r?.aborted)throw e;if("timeout"===o._reason)throw Error("Request timed out");throw e}if(!l.ok||!l.body){d(),r?.removeEventListener("abort",s);let e=`Request failed (${l.status})`;try{let t=await l.json();"string"==typeof t?.error?.message?e=t.error.message:"string"==typeof t?.message?e=t.message:"string"==typeof t?.error&&(e=t.error)}catch{}throw Error(e)}try{await L(l,i,()=>c(12e4,"timeout"))}finally{d(),r?.removeEventListener("abort",s)}}A.AssistantCoach.isUsageExhausted;var I=e.i(460385),z=e.i(756247);let R={getInsights:e=>(0,N.nestFetch)("/api/v1/assistant-coach/insights",{method:"POST",body:JSON.stringify({teamId:e})}),getUsage:()=>(0,N.nestFetch)("/api/v1/assistant-coach/usage"),streamChat:(e,t)=>F({teamId:e.teamId,userMessage:e.userMessage,messages:e.messages},t)};var _=e.i(161344);let B="demo-assistant-coach-visitor",U=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i,H=null;function q(){try{let e=window.localStorage.getItem(B);if(e&&U.test(e))return e;let t=window.crypto.randomUUID();return window.localStorage.setItem(B,t),t}catch{return H??(H=crypto.randomUUID())}}let $=["assistant-coach","usage"],V=["assistant-coach","demo-usage"],W=["assistant-coach","demo-insights"];var K=e.i(729698),Q=e.i(272123),X=e.i(71773),J=e.i(114559),Y=e.i(457029),Z=e.i(226578),G=e.i(813852),ee=e.i(657701),et=e.i(891685),en=e.i(7284),er=e.i(120428),ei=e.i(436239),el=e.i(619478),eo=e.i(978729);function ea(){return(ea=Object.assign.bind()).apply(null,arguments)}function es(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function eu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?es(Object(n),!0).forEach(function(t){var r,i,l;r=e,i=t,l=n[t],(i=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(i))in r?Object.defineProperty(r,i,{value:l,enumerable:!0,configurable:!0,writable:!0}):r[i]=l}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):es(Object(n)).forEac
2h(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var ec={align:"center",iconSize:14,inactiveColor:"#ccc",layout:"horizontal",verticalAlign:"middle",labelStyle:{}};function ed(e){var{data:t,iconType:r,inactiveColor:i}=e,l=32/6,o=32/3,a=t.inactive?i:t.color,s=null!=r?r:t.type;if("none"===s)return null;if("plainline"===s)return n.createElement("line",{strokeWidth:4,fill:"none",stroke:a,strokeDasharray:function(e){if("object"==typeof e&&null!==e&&"strokeDasharray"in e)return String(e.strokeDasharray)}(t.payload),x1:0,y1:16,x2:32,y2:16,className:"recharts-legend-icon"});if("line"===s)return n.createElement("path",{strokeWidth:4,fill:"none",stroke:a,d:"M0,".concat(16,"h").concat(o,"\n A").concat(l,",").concat(l,",0,1,1,").concat(2*o,",").concat(16,"\n H").concat(32,"M").concat(2*o,",").concat(16,"\n A").concat(l,",").concat(l,",0,1,1,").concat(o,",").concat(16),className:"recharts-legend-icon"});if("rect"===s)return n.createElement("path",{stroke:"none",fill:a,d:"M0,".concat(4,"h").concat(32,"v").concat(24,"h").concat(-32,"z"),className:"recharts-legend-icon"});if(n.isValidElement(t.legendIcon)){var u=eu({},t);return delete u.legendIcon,n.cloneElement(t.legendIcon,u)}return n.createElement(ei.Symbols,{fill:a,cx:16,cy:16,size:32,sizeType:"diameter",type:s})}function ef(e){var{payload:t,iconSize:r,layout:i,formatter:l,inactiveColor:o,iconType:a,labelStyle:s}=e,u={x:0,y:0,width:32,height:32},c={display:"horizontal"===i?"inline-block":"block",marginRight:10},d={display:"inline-block",verticalAlign:"middle",marginRight:4};return t.map((t,i)=>{var f=t.formatter||l,p=(0,en.clsx)({"recharts-legend-item":!0,["legend-item-".concat(i)]:!0,inactive:t.inactive});if("none"===t.type)return null;var h="object"==typeof s?eu({},s):{};h.color=t.inactive?o:h.color||t.color;var m=f?f(t.value,t,i):t.value;return n.createElement("li",ea({className:p,style:c,key:"legend-item-".concat(i)},(0,el.adaptEventsOfChild)(e,t,i)),n.createElement(er.Surface,{width:r,height:r,viewBox:u,style:d,"aria-label":"".concat(t.value," legend icon")},n.createElement(ed,{data:t,iconType:a,inactiveColor:o})),n.createElement("span",{className:"recharts-legend-item-text",style:h},m))})}var ep=e=>{var t=(0,eo.resolveDefaultProps)(e,ec),{payload:r,layout:i,align:l}=t;return r&&r.length?n.createElement("ul",{className:"recharts-default-legend",style:{padding:0,margin:0,textAlign:"horizontal"===i?l:"left"}},n.createElement(ef,ea({},t,{payload:r}))):null},eh=e.i(263341),em=e.i(5654),eg=e.i(193288),ey=e.i(109662),ex=e.i(360216),eb=e.i(445631),ev=e.i(758537),ek=["contextPayload"];function ew(){return(ew=Object.assign.bind()).apply(null,arguments)}function eS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ej(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?eS(Object(n),!0).forEach(function(t){var r,i,l;r=e,i=t,l=n[t],(i=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(i))in r?Object.defineProperty(r,i,{value:l,enumerable:!0,configurable:!0,writable:!0}):r[i]=l}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eS(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function eC(e){return e.value}function eE(e){var{contextPayload:t}=e,r=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if(({}).hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)n=l[r],-1===t.indexOf(n)&&({}).propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,ek),i=(0,eh.getUniqPayload)(t,e.payloadUniqBy,eC),l=ej(ej({},r),{},{payload:i});return n.isValidElement(e.content)?n.cloneElement(e.content,l):"function"==typeof e.content?n.createElement(e.content,l):n.createElement(ep,l)}function eA(e){var t=(0,em.useAppDispatch)();return(0,n.useEffect)(()=>{t((0,eb.setLegendSettings)(e))},[t,e]),null}function eN(e){var t=(0,em.useAppDispatch)();return(0,n.useEffect)(()=>(t((0,eb.setLegendSize)(e)),()=>{t((0,eb.setLegendSize)({width:0,height:0}))}),[t,e]),null}var eT={align:"center",iconSize:14,inactiveColor:"#ccc",itemSorter:"value",layout:"horizontal",verticalAlign:"bottom"},eD=n.memo(function(e){var t,r=(0,eo.resolveDefaultProps)(e,eT),i=(0,em.useAppSelector)(eg.selectLegendPayload),l=(0,et.useLegendPortal)(),o=(0,ex.useMargin)(),{width:a,height:s,wrapperStyle:u,portal:c}=r,[d,f]=(0,ey.useElementOffset)([i]),p=(0,ex.useChartWidth)(),h=(0,ex.useChartHeight)();if(null==p||null==h)return null;var m=p-((null==o?void 0:o.left)||0)-((null==o?void 0:o.right)||0),g=(t=r.layout,"vertical"===t&&null!=s?{height:s}:"horizontal"===t?{width:a||m}:null),y=c?u:ej(ej({position:"absolute",width:(null==g?void 0:g.width)||a||"auto",height:(null==g?void 0:g.height)||s||"auto"},function(e,t,n,r,i,l){var o,a,{layout:s,align:u,verticalAlign:c}=t;return e&&(void 0!==e.left&&null!==e.left||void 0!==e.right&&null!==e.right)||(o="center"===u&&"vertical"===s?{left:((r||0)-l.width)/2}:"right"===u?{right:n&&n.right||0}:{left:n&&n.left||0}),e&&(void 0!==e.top&&null!==e.top||void 0!==e.bottom&&null!==e.bottom)||(a="middle"===c?{top:((i||0)-l.he
2ight)/2}:"bottom"===c?{bottom:n&&n.bottom||0}:{top:n&&n.top||0}),ej(ej({},o),a)}(u,r,o,p,h,d)),u),x=null!=c?c:l;if(null==x||null==i)return null;var b=n.createElement("div",{className:"recharts-legend-wrapper",style:y,ref:f},n.createElement(eA,{layout:r.layout,align:r.align,verticalAlign:r.verticalAlign,itemSorter:r.itemSorter}),!c&&n.createElement(eN,{width:d.width,height:d.height}),n.createElement(eE,ew({},r,g,{margin:o,chartWidth:p,chartHeight:h,contextPayload:i})));return(0,ee.createPortal)(b,x)},ev.propsAreEqual);eD.displayName="Legend";var eP=e.i(926082),eL=e.i(216939),eF=e.i(616746),eM=e.i(362841),eO=e.i(138639),eI=e.i(744444),ez=e.i(221441),eR=e.i(447450),e_=e.i(194826);function eB({className:e,strokeWidth:n=1.8}){return(0,t.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round",className:e,"aria-hidden":"true",children:[(0,t.jsx)("path",{d:"M21 12a8 8 0 0 1-11.6 7.14L4 20.5l1.36-5.4A8 8 0 1 1 21 12Z"}),(0,t.jsx)("path",{d:"M13.2 7.5 9.2 13h3l-1 3.5 4-5.5h-3l1-3.5Z",fill:"currentColor",stroke:"none"})]})}var eU=e.i(557905);function eH(){}function eq(){}let e$=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,eV=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,eW={};function eK(e,t){return((t||eW).jsx?eV:e$).test(e)}let eQ=/[ \t\n\f\r]/g;function eX(e){return""===e.replace(eQ,"")}class eJ{constructor(e,t){this.attribute=t,this.property=e}}eJ.prototype.attribute="",eJ.prototype.booleanish=!1,eJ.prototype.boolean=!1,eJ.prototype.commaOrSpaceSeparated=!1,eJ.prototype.commaSeparated=!1,eJ.prototype.defined=!1,eJ.prototype.mustUseProperty=!1,eJ.prototype.number=!1,eJ.prototype.overloadedBoolean=!1,eJ.prototype.property="",eJ.prototype.spaceSeparated=!1,eJ.prototype.space=void 0;let eY=0,eZ=e3(),eG=e3(),e0=e3(),e1=e3(),e2=e3(),e5=e3(),e4=e3();function e3(){return 2**++eY}e.s(["boolean",0,eZ,"booleanish",0,eG,"commaOrSpaceSeparated",0,e4,"commaSeparated",0,e5,"number",0,e1,"overloadedBoolean",0,e0,"spaceSeparated",0,e2],535999);var e9=e.i(535999);let e6=Object.keys(e9);class e7 extends eJ{constructor(e,t,n,r){let i=-1;if(super(e,t),function(e,t,n){n&&(e[t]=n)}(this,"space",r),"number"==typeof n)for(;++i<e6.length;){const e=e6[i];!function(e,t,n){n&&(e[t]=n)}(this,e6[i],(n&e9[e])===e9[e])}}}function e8(e){return e.toLowerCase()}e7.prototype.defined=!0;let te=/[A-Z]/g,tt=/-[a-z]/g,tn=/^data[-\w.:]+$/i;function tr(e){return"-"+e.toLowerCase()}function ti(e){return e.charAt(1).toUpperCase()}let tl={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"};class to{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}}function ta(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new to(n,r,t)}function ts(e){let t={},n={};for(let[r,i]of Object.entries(e.properties)){let l=new e7(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(l.mustUseProperty=!0),t[r]=l,n[e8(r)]=r,n[e8(l.attribute)]=r}return new to(t,n,e.space)}to.prototype.normal={},to.prototype.property={},to.prototype.space=void 0;let tu=ts({properties:{ariaActiveDescendant:null,ariaAtomic:eG,ariaAutoComplete:null,ariaBusy:eG,ariaChecked:eG,ariaColCount:e1,ariaColIndex:e1,ariaColSpan:e1,ariaControls:e2,ariaCurrent:null,ariaDescribedBy:e2,ariaDetails:null,ariaDisabled:eG,ariaDropEffect:e2,ariaErrorMessage:null,ariaExpanded:eG,ariaFlowTo:e2,ariaGrabbed:eG,ariaHasPopup:null,ariaHidden:eG,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:e2,ariaLevel:e1,ariaLive:null,ariaModal:eG,ariaMultiLine:eG,ariaMultiSelectable:eG,ariaOrientation:null,ariaOwns:e2,ariaPlaceholder:null,ariaPosInSet:e1,ariaPressed:eG,ariaReadOnly:eG,ariaRelevant:null,ariaRequired:eG,ariaRoleDescription:e2,ariaRowCount:e1,ariaRowIndex:e1,ariaRowSpan:e1,ariaSelected:eG,ariaSetSize:e1,ariaSort:null,ariaValueMax:e1,ariaValueMin:e1,ariaValueNow:e1,ariaValueText:null,role:null},transform:(e,t)=>
vendor: 4,906 bytes, line 2
2"role"===t?t:"aria-"+t.slice(4).toLowerCase()});function tc(e,t){return t in e?e[t]:t}function td(e,t){return tc(e,t.toLowerCase())}let tf=ts({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:e5,acceptCharset:e2,accessKey:e2,action:null,allow:null,allowFullScreen:eZ,allowPaymentRequest:eZ,allowUserMedia:eZ,alpha:eZ,alt:null,as:null,async:eZ,autoCapitalize:null,autoComplete:e2,autoFocus:eZ,autoPlay:eZ,blocking:e2,capture:null,charSet:null,checked:eZ,cite:null,className:e2,closedBy:null,colorSpace:null,cols:e1,colSpan:e1,command:null,commandFor:null,content:null,contentEditable:eG,controls:eZ,controlsList:e2,coords:e1|e5,crossOrigin:null,data:null,dateTime:null,decoding:null,default:eZ,defer:eZ,dir:null,dirName:null,disabled:eZ,download:e0,draggable:eG,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:eZ,formTarget:null,headers:e2,height:e1,hidden:e0,high:e1,href:null,hrefLang:null,htmlFor:e2,httpEquiv:e2,id:null,imageSizes:null,imageSrcSet:null,inert:eZ,inputMode:null,integrity:null,is:null,isMap:eZ,itemId:null,itemProp:e2,itemRef:e2,itemScope:eZ,itemType:e2,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:eZ,low:e1,manifest:null,max:null,maxLength:e1,media:null,method:null,min:null,minLength:e1,multiple:eZ,muted:eZ,name:null,nonce:null,noModule:eZ,noValidate:eZ,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:eZ,optimum:e1,pattern:null,ping:e2,placeholder:null,playsInline:eZ,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:eZ,referrerPolicy:null,rel:e2,required:eZ,reversed:eZ,rows:e1,rowSpan:e1,sandbox:e2,scope:null,scoped:eZ,seamless:eZ,selected:eZ,shadowRootClonable:eZ,shadowRootCustomElementRegistry:eZ,shadowRootDelegatesFocus:eZ,shadowRootMode:null,shadowRootSerializable:eZ,shape:null,size:e1,sizes:null,slot:null,span:e1,spellCheck:eG,src:null,srcDoc:null,srcLang:null,srcSet:null,start:e1,step:null,style:null,tabIndex:e1,target:null,title:null,translate:null,type:null,typeMustMatch:eZ,useMap:null,value:eG,width:e1,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:e2,axis:null,background:null,bgColor:null,border:e1,borderColor:null,bottomMargin:e1,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:eZ,declare:eZ,event:null,face:null,frame:null,frameBorder:null,hSpace:e1,leftMargin:e1,link:null,longDesc:null,lowSrc:null,marginHeight:e1,marginWidth:e1,noResize:eZ,noHref:eZ,noShade:eZ,noWrap:eZ,object:null,profile:null,prompt:null,rev:null,rightMargin:e1,rules:null,scheme:null,scrolling:eG,standby:null,summary:null,text:null,topMargin:e1,valueType:null,version:null,vAlign:null,vLink:null,vSpace:e1,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:eZ,disablePictureInPicture:eZ,disableRemotePlayback:eZ,exportParts:e5,part:e2,prefix:null,property:null,results:e1,security:null,unselectable:null},space:"html",transform:td}),tp=ts({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",colorRen
2dering:"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",maskType:"mask-type",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
2-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:e4,accentHeight:e1,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:e1,amplitude:e1,arabicForm:null,ascent:e1,attributeName:null,attributeType:null,azimuth:e1,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:e1,by:null,calcMode:null,capHeight:e1,className:e2,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:e1,diffuseConstant:e1,direction:null,display:null,dur:null,divisor:e1,dominantBaseline:null,download:eZ,dx:null,dy:null,edgeMode:null,editable:null,elevation:e1,enableBackground:null,end:null,event:null,exponent:e1,externalResourcesRequired:null,fill:null,fillOpacity:e1,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:e5,g2:e5,glyphName:e5,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:e1,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:e1,horizOriginX:e1,horizOriginY:e1,id:null,ideographic:e1,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:e1,k:e1,k1:e1,k2:e1,k3:e1,k4:e1,kernelMatrix:e4,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:e1,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:e1,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,on
2Zoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:e1,overlineThickness:e1,paintOrder:null,panose1:null,path:null,pathLength:e1,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:e2,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:e1,pointsAtY:e1,pointsAtZ:e1,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:e4,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:e4,rev:e4,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:e4,requiredFeatures:e4,requiredFonts:e4,requiredFormats:e4,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:e1,specularExponent:e1,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:e1,strikethroughThickness:e1,string:null,stroke:null,strokeDashArray:e4,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:e1,strokeOpacity:e1,strokeWidth:null,style:null,surfaceScale:e1,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:e4,tabIndex:e1,tableValues:null,target:null,targetX:e1,targetY:e1,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:e4,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:e1,underlineThickness:e1,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:e1,values:null,vAlphabetic:e1,vMathematical:e1,vectorEffect:null,vHanging:e1,vIdeographic:e1,version:null,vertAdvY:e1,vertOriginX:e1,vertOriginY:e1,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:e1,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:tc}),th=ts({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase()}),tm=ts({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:td}),tg=ts({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase()}),ty=ta([tu,tf,th,tm,tg],"html"),tx=ta([tu,tp,th,tm,tg],"svg");var tb=e.i(763185);let tv=tw("end"),tk=tw("start");function tw(e){return function(t){let n=t&&t.position&&t.position[e]||{};if("number"==typeof n.line&&n.line>0&&"number"==typeof n.column&&n.column>0)return{line:n.line,column:n.column,offset:"number"==typeof n.offset&&n.offset>-1?n.offset:void 0}}}function tS(e){return e&&"object"==typeof e?"position"in e||"type"in e?tC(e.position):"start"in e||"end"in e?tC(e):"line"in e||"column"in e?tj(e):"":""}function tj(e){return tE(e&&e.line)+":"+tE(e&&e.column)}function tC(e){return tj(e&&e.start)+"-"+tj(e&&e.end)}function tE(e){return e&&"number"==typeof e?e:1}class tA extends Error{constructor(e,t,n){super(),"string"==typeof t&&(n=t,t=void 0);let r="",i={},l=!1;if(t&&(i="line"in t&&"column"in t||"start"in t&&"end"in t?{place:t}:"type"in t?{ancestors:[t],place:t.position}:{...t}),"string"==typeof e?r=e:!i.cause&&e&&(l=!0,r=e.message,i.cause=e),!i.ruleId&&!i.source&&"string"==typeof n){const e=n.indexOf(":");-1===e?i.ruleId=n:(i.source=n.slice(0,e),i.ruleId=n.slice(e+1))}if(!i.place&&i.ancestors&&i.ancestors){const e=i.ancestors[i.ancestors.length-1];e&&(i.place=e.position)}const o=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file="",this.message=r,this.line=o?o.line:void 0,this.name=tS(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=l&&i.cause&&"string"==typeof i.cause.stack?i.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}tA.prototype.file="",tA.prototype.name="",tA.prototype.reason="",tA.prototype.message="",tA.prototype.stack="",tA.prototype.column=void 0,tA.prototype.line=void 0,tA.prototype.ancestors=void 0,tA.prototype.cause=void 0,tA.prototype.fatal=void 0,tA.prototype.place=void 0,tA.prototype.ruleId=void 0,tA.prototype.source=void 0;let tN={}.hasOwnProperty,tT=new Map,tD=/[A-Z]/g,tP=new Set(["table","tbody","thead","tfoot","tr"]),tL=new Set(["td","th"]),tF="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function tM(e,t,n){var r,i,l,o,a,s,u,c,d;let f,p,h,m,g,y,x,b,v,k,w;return"element"===t.type?(r=e,i=t,l=n,p=f=r.schema,"svg"===i.tagName.toLowerCase()&&"html"===f.space&&(r.schema=tx),r.ancestors.push(i),h=tR(r,i.tagName,!1),m=function(e,t){let n,r,i={};for(r in t.properties)if("children"!==r&&tN.call(t.properties,r)){let l=function(e,t,n){let r=function(e,t){let n=e8(t),r=t,i=eJ;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&tn.test(t)){if("-"===t.charAt(4)){let e=t.slice(5).replace(tt,ti);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!tt.test(e)){let n=e.replace(te,tr);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}i=e7}return new i(r,t)}(e.schema,t);if(!(null==n||"number"==typeof n&&Number.isNaN(n))){var i;let t;if(Array.isArray(n)&&(n=r.commaSeparated?(t={},(""===(i=n)[i.length-1]?[...i,""]:i).join((t.padRight?" ":"")+","+(!1===t.padLeft?"":" ")).trim()):n.join(" ").trim()),"style"===r.property){let t="object"==typeof n?n:function(e,t){try{return(0,tb.default)(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};let t=new tA("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:n,ruleId:"style",source:"hast-util-to-jsx-runtime"});
2throw t.file=e.filePath||void 0,t.url=tF+"#cannot-parse-style-attribute",t}}(e,String(n));return"css"===e.stylePropertyNameCase&&(t=function(e){let t,n={};for(t in e)tN.call(e,t)&&(n[function(e){let t=e.replace(tD,tB);return"ms-"===t.slice(0,3)&&(t="-"+t),t}(t)]=e[t]);return n}(t)),["style",t]}return["react"===e.elementAttributeNameCase&&r.space?tl[r.property]||r.property:r.attribute,n]}}(e,r,t.properties[r]);if(l){let[r,o]=l;e.tableCellAlignToStyle&&"align"===r&&"string"==typeof o&&tL.has(t.tagName)?n=o:i[r]=o}}return n&&((i.style||(i.style={}))["css"===e.stylePropertyNameCase?"text-align":"textAlign"]=n),i}(r,i),g=tz(r,i),tP.has(i.tagName)&&(g=g.filter(function(e){return"string"!=typeof e||!("object"==typeof e?"text"===e.type&&eX(e.value):eX(e))})),tO(r,m,h,i),tI(m,g),r.ancestors.pop(),r.schema=f,r.create(i,h,m,l)):"mdxFlowExpression"===t.type||"mdxTextExpression"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater){let n=t.data.estree.body[0];return eH("ExpressionStatement"===n.type),e.evaluater.evaluateExpression(n.expression)}t_(e,t.position)}(e,t):"mdxJsxFlowElement"===t.type||"mdxJsxTextElement"===t.type?(o=e,a=t,s=n,x=y=o.schema,"svg"===a.name&&"html"===y.space&&(o.schema=tx),o.ancestors.push(a),b=null===a.name?o.Fragment:tR(o,a.name,!0),v=function(e,t){let n={};for(let r of t.attributes)if("mdxJsxExpressionAttribute"===r.type)if(r.data&&r.data.estree&&e.evaluater){let t=r.data.estree.body[0];eH("ExpressionStatement"===t.type);let i=t.expression;eH("ObjectExpression"===i.type);let l=i.properties[0];eH("SpreadElement"===l.type),Object.assign(n,e.evaluater.evaluateExpression(l.argument))}else t_(e,t.position);else{let i,l=r.name;if(r.value&&"object"==typeof r.value)if(r.value.data&&r.value.data.estree&&e.evaluater){let t=r.value.data.estree.body[0];eH("ExpressionStatement"===t.type),i=e.evaluater.evaluateExpression(t.expression)}else t_(e,t.position);else i=null===r.value||r.value;n[l]=i}return n}(o,a),k=tz(o,a),tO(o,v,b,a),tI(v,k),o.ancestors.pop(),o.schema=y,o.create(a,b,v,s)):"mdxjsEsm"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);t_(e,t.position)}(e,t):"root"===t.type?(u=e,c=t,d=n,tI(w={},tz(u,c)),u.create(c,u.Fragment,w,d)):"text"===t.type?t.value:void 0}function tO(e,t,n,r){"string"!=typeof n&&n!==e.Fragment&&e.passNode&&(t.node=r)}function tI(e,t){if(t.length>0){let n=t.length>1?t:t[0];n&&(e.children=n)}}function tz(e,t){let n=[],r=-1,i=e.passKeys?new Map:tT;for(;++r<t.children.length;){let l,o=t.children[r];if(e.passKeys){let e="element"===o.type?o.tagName:"mdxJsxFlowElement"===o.type||"mdxJsxTextElement"===o.type?o.name:void 0;if(e){let t=i.get(e)||0;l=e+"-"+t,i.set(e,t+1)}}let a=tM(e,o,l);void 0!==a&&n.push(a)}return n}function tR(e,t,n){let r;if(n)if(t.includes(".")){let e,n=t.split("."),i=-1;for(;++i<n.length;){let t=eK(n[i])?{type:"Identifier",name:n[i]}:{type:"Literal",value:n[i]};e=e?{type:"MemberExpression",object:e,property:t,computed:!!(i&&"Literal"===t.type),optional:!1}:t}eH(e,"always a result"),r=e}else r=eK(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};else r={type:"Literal",value:t};if("Literal"===r.type){let t=r.value;return tN.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);t_(e)}function t_(e,t){let n=new tA("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=tF+"#cannot-handle-mdx-estrees-without-createevaluater",n}function tB(e){return"-"+e.toLowerCase()}let tU={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"]},tH={};function tq(e,t){let n=t||tH;return t$(e,"boolean"!=typeof n.includeImageAlt||n.includeImageAlt,"boolean"!=typeof n.includeHtml||n.includeHtml)}function t$(e,t,n){var r;if((r=e)&&"object"==typeof r){if("value"in e)return"html"!==e.type||n?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return tV(e.children,t,n)}
2return Array.isArray(e)?tV(e,t,n):""}function tV(e,t,n){let r=[],i=-1;for(;++i<e.length;)r[i]=t$(e[i],t,n);return r.join("")}function tW(e,t,n,r){let i,l=e.length,o=0;if(t=t<0?-t>l?0:l+t:t>l?l:t,n=n>0?n:0,r.length<1e4)(i=Array.from(r)).unshift(t,n),e.splice(...i);else for(n&&e.splice(t,n);o<r.length;)(i=r.slice(o,o+1e4)).unshift(t,0),e.splice(...i),o+=1e4,t+=1e4}function tK(e,t){return e.length>0?(tW(e,e.length,0,t),e):t}let tQ={}.hasOwnProperty;function tX(e){let t={},n=-1;for(;++n<e.length;)!function(e,t){let n;for(n in t){let r,i=(tQ.call(e,n)?e[n]:void 0)||(e[n]={}),l=t[n];if(l)for(r in l){tQ.call(i,r)||(i[r]=[]);let e=l[r];!function(e,t){let n=-1,r=[];for(;++n<t.length;)("after"===t[n].add?e:r).push(t[n]);tW(e,0,0,r)}(i[r],Array.isArray(e)?e:e?[e]:[])}}}(t,e[n]);return t}let tJ=t7(/[A-Za-z]/),tY=t7(/[\dA-Za-z]/),tZ=t7(/[#-'*+\--9=?A-Z^-~]/);function tG(e){return null!==e&&(e<32||127===e)}let t0=t7(/\d/),t1=t7(/[\dA-Fa-f]/),t2=t7(/[!-/:-@[-`{-~]/);function t5(e){return null!==e&&e<-2}function t4(e){return null!==e&&(e<0||32===e)}function t3(e){return -2===e||-1===e||32===e}let t9=t7(/\p{P}|\p{S}/u),t6=t7(/\s/);function t7(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}function t8(e,t,n,r){let i=r?r-1:1/0,l=0;return function(r){return t3(r)?(e.enter(n),function r(o){return t3(o)&&l++<i?(e.consume(o),r):(e.exit(n),t(o))}(r)):t(r)}}let ne={tokenize:function(e){let t,n=e.attempt(this.parser.constructs.contentInitial,function(t){return null===t?void e.consume(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),t8(e,n,"linePrefix"))},function(n){return e.enter("paragraph"),function n(r){let i=e.enter("chunkText",{contentType:"text",previous:t});return t&&(t.next=i),t=i,function t(r){if(null===r){e.exit("chunkText"),e.exit("paragraph"),e.consume(r);return}return t5(r)?(e.consume(r),e.exit("chunkText"),n):(e.consume(r),t)}(r)}(n)});return n}},nt={tokenize:function(e){let t,n,r,i=this,l=[],o=0;return a;function a(t){if(o<l.length){let n=l[o];return i.containerState=n[1],e.attempt(n[0].continuation,s,u)(t)}return u(t)}function s(e){if(o++,i.containerState._closeFlow){let n;i.containerState._closeFlow=void 0,t&&y();let r=i.events.length,l=r;for(;l--;)if("exit"===i.events[l][0]&&"chunkFlow"===i.events[l][1].type){n=i.events[l][1].end;break}g(o);let a=r;for(;a<i.events.length;)i.events[a][1].end={...n},a++;return tW(i.events,l+1,0,i.events.slice(r)),i.events.length=a,u(e)}return a(e)}function u(n){if(o===l.length){if(!t)return f(n);if(t.currentConstruct&&t.currentConstruct.concrete)return h(n);i.interrupt=!!(t.currentConstruct&&!t._gfmTableDynamicInterruptHack)}return i.containerState={},e.check(nn,c,d)(n)}function c(e){return t&&y(),g(o),f(e)}function d(e){return i.parser.lazy[i.now().line]=o!==l.length,r=i.now().offset,h(e)}function f(t){return i.containerState={},e.attempt(nn,p,h)(t)}function p(e){return o++,l.push([i.currentConstruct,i.containerState]),f(e)}function h(r){if(null===r){t&&y(),g(0),e.consume(r);return}return t=t||i.parser.flow(i.now()),e.enter("chunkFlow",{_tokenizer:t,contentType:"flow",previous:n}),function t(n){if(null===n){m(e.exit("chunkFlow"),!0),g(0),e.consume(n);return}return t5(n)?(e.consume(n),m(e.exit("chunkFlow")),o=0,i.interrupt=void 0,a):(e.consume(n),t)}(r)}function m(e,l){let a=i.sliceStream(e);if(l&&a.push(null),e.previous=n,n&&(n.next=e),n=e,t.defineSkip(e.start),t.write(a),i.parser.lazy[e.start.line]){let e,n,l=t.events.length;for(;l--;)if(t.events[l][1].start.offset<r&&(!t.events[l][1].end||t.events[l][1].end.offset>r))return;let a=i.events.length,s=a;for(;s--;)if("exit"===i.events[s][0]&&"chunkFlow"===i.events[s][1].type){if(e){n=i.events[s][1].end;break}e=!0}for(g(o),l=a;l<i.events.length;)i.events[l][1].end={...n},l++;tW(i.events,s+1,0,i.events.slice(a)),i.events.length=l}}function g(t){let n=l.length;for(;n-- >t;){let t=l[n];i.containerState=t[1],t[0].exit.call(i,e)}l.length=t}function y(){t.write([null]),n=void 0,t=void 0,i.containerState._closeFlow=void 0}}},nn={tokenize:function(e,t,n){return t8(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}},nr={partial:!0,tokenize:function(e,t,n){return function(t){return t3(t)?t8(e,r,"linePrefix")(t):r(t)};function r(e){return null===e||t5(e)?t(e):n(e)}}};
2class ni{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){let n=null==t?1/0:t;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){this.setCursor(Math.trunc(e));let r=this.right.splice(this.right.length-(t||0),1/0);return n&&nl(this.left,n),r.reverse()}pop(){return this.setCursor(1/0),this.left.pop()}push(e){this.setCursor(1/0),this.left.push(e)}pushMany(e){this.setCursor(1/0),nl(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),nl(this.right,e.reverse())}setCursor(e){if(e!==this.left.length&&(!(e>this.left.length)||0!==this.right.length)&&(!(e<0)||0!==this.left.length))if(e<this.left.length){let t=this.left.splice(e,1/0);nl(this.right,t.reverse())}else{let t=this.right.splice(this.left.length+this.right.length-e,1/0);nl(this.left,t.reverse())}}}function nl(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function no(e){let t,n,r,i,l,o,a,s={},u=-1,c=new ni(e);for(;++u<c.length;){for(;u in s;)u=s[u];if(t=c.get(u),u&&"chunkFlow"===t[1].type&&"listItemPrefix"===c.get(u-1)[1].type&&((r=0)<(o=t[1]._tokenizer.events).length&&"lineEndingBlank"===o[r][1].type&&(r+=2),r<o.length&&"content"===o[r][1].type))for(;++r<o.length&&"content"!==o[r][1].type;)"chunkText"===o[r][1].type&&(o[r][1]._isInFirstContentOfListItem=!0,r++);if("enter"===t[0])t[1].contentType&&(Object.assign(s,function(e,t){let n,r,i=e.get(t)[1],l=e.get(t)[2],o=t-1,a=[],s=i._tokenizer;!s&&(s=l.parser[i.contentType](i.start),i._contentTypeTextTrailing&&(s._c
2ontentTypeTextTrailing=!0));let u=s.events,c=[],d={},f=-1,p=i,h=0,m=0,g=[0];for(;p;){for(;e.get(++o)[1]!==p;);a.push(o),!p._tokenizer&&(n=l.sliceStream(p),p.next||n.push(null),r&&s.defineSkip(p.start),p._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(n),p._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),r=p,p=p.next}for(p=i;++f<u.length;)"exit"===u[f][0]&&"enter"===u[f-1][0]&&u[f][1].type===u[f-1][1].type&&u[f][1].start.line!==u[f][1].end.line&&(m=f+1,g.push(m),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(s.events=[],p?(p._tokenizer=void 0,p.previous=void 0):g.pop(),f=g.length;f--;){let t=u.slice(g[f],g[f+1]),n=a.pop();c.push([n,n+t.length-1]),e.splice(n,2,t)}for(c.reverse(),f=-1;++f<c.length;)d[h+c[f][0]]=h+c[f][1],h+=c[f][1]-c[f][0]-1;return d}(c,u)),u=s[u],a=!0);else if(t[1]._container){for(r=u,n=void 0;r--;)if("lineEnding"===(i=c.get(r))[1].type||"lineEndingBlank"===i[1].type)"enter"===i[0]&&(n&&(c.get(n)[1].type="lineEndingBlank"),i[1].type="lineEnding",n=r);else if("linePrefix"===i[1].type||"listItemIndent"===i[1].type);else break;n&&(t[1].end={...c.get(n)[1].start},(l=c.slice(n,u)).unshift(t),c.splice(n,u-n+1,l))}}return tW(e,0,1/0,c.slice(0)),!a}let na={resolve:function(e){return no(e),e},tokenize:function(e,t){let n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(t)};function r(t){return null===t?i(t):t5(t)?e.check(ns,l,i)(t):(e.consume(t),r)}function i(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function l(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}}},ns={partial:!0,tokenize:function(e,t,n){let r=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),t8(e,i,"linePrefix")};function i(i){if(null===i||t5(i))return n(i);let l=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&l&&"linePrefix"===l[1].type&&l[2].sliceSerialize(l[1],!0).length>=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}}},nu={tokenize:function(e){let t=this,n=e.attempt(nr,function(r){return null===r?void e.consume(r):(e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n)},e.attempt(this.parser.constructs.flowInitial,r,t8(e,e.attempt(this.parser.constructs.flow,r,e.attempt(na,r)),"linePrefix")));return n;function r(r){return null===r?void e.consume(r):(e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n)}}},nc={resolveAll:nh()},nd=np("string"),nf=np("text");function np(e){return{resolveAll:nh("text"===e?nm:void 0),tokenize:function(t){let n=this,r=this.parser.constructs[e],i=t.attempt(r,l,o);return l;function l(e){return s(e)?i(e):o(e)}function o(e){return null===e?void t.consume(e):(t.enter("data"),t.consume(e),a)}function a(e){return s(e)?(t.exit("data"),i(e)):(t.consume(e),a)}function s(e){if(null===e)return!0;let t=r[e],i=-1;if(t)for(;++i<t.length;){let e=t[i];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}}}}function nh(e){return function(t,n){let r,i=-1;for(;++i<=t.length;)void 0===r?t[i]&&"data"===t[i][1].type&&(r=i,i++):t[i]&&"data"===t[i][1].type||(i!==r+2&&(t[r][1].end=t[i-1][1].end,t.splice(r+2,i-r-2),i=r+2),r=void 0);return e?e(t,n):t}}function nm(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||"lineEnding"===e[n][1].type)&&"data"===e[n-1][1].type){let r,i=e[n-1][1],l=t.sliceStream(i),o=l.length,a=-1,s=0;for(;o--;){let e=l[o];if("string"==typeof e){for(a=e.length;32===e.charCodeAt(a-1);)s++,a--;if(a)break;a=-1}else if(-2===e)r=!0,s++;else if(-1===e);else{o++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(s=0),s){let l={type:n===e.length||r||s<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:o?a:i.start._bufferIndex+a,_index:i.start._index+o,line:i.end.line,column:i.end.column-s,offset:i.end.offset-s},end:{...i.end}};i.end={...l.start},i.start.offset===i.end.offset?Object.assign(i,l):(e.splice(n,0,["enter",l,t],["exit",l,t]),n+=2)}n++}return e}function ng(e){return null===e||t4(e)||t6(e)?1:t9(e)?2:void 0}function ny(e,t,n){let r=[],i=-1;for(;++i<e.length;){let l=e[i].resolveAll;l&&!r.includes(l)&&(t=l(t,n),r.push(l))}return t}let nx={name:"attention",resolveAll:function(e,t){let n,r,i,l,o,a,s,u,c=-1;for(;++c<e.length;)if("enter"===e[c][0]&&"attentionSequence"===e[c][1].type&&e[c][1]._close){for(n=c;n--;)if("exit"===e[n][0]&&"attentionSequence"===e[n][1].type&&e[n][1]._open&&t.sliceSerialize(e[
2n][1]).charCodeAt(0)===t.sliceSerialize(e[c][1]).charCodeAt(0)){if((e[n][1]._close||e[c][1]._open)&&(e[c][1].end.offset-e[c][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[c][1].end.offset-e[c][1].start.offset)%3))continue;a=e[n][1].end.offset-e[n][1].start.offset>1&&e[c][1].end.offset-e[c][1].start.offset>1?2:1;let d={...e[n][1].end},f={...e[c][1].start};nb(d,-a),nb(f,a),l={type:a>1?"strongSequence":"emphasisSequence",start:d,end:{...e[n][1].end}},o={type:a>1?"strongSequence":"emphasisSequence",start:{...e[c][1].start},end:f},i={type:a>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[c][1].start}},r={type:a>1?"strong":"emphasis",start:{...l.start},end:{...o.end}},e[n][1].end={...l.start},e[c][1].start={...o.end},s=[],e[n][1].end.offset-e[n][1].start.offset&&(s=tK(s,[["enter",e[n][1],t],["exit",e[n][1],t]])),s=tK(s,[["enter",r,t],["enter",l,t],["exit",l,t],["enter",i,t]]),s=tK(s,ny(t.parser.constructs.insideSpan.null,e.slice(n+1,c),t)),s=tK(s,[["exit",i,t],["enter",o,t],["exit",o,t],["exit",r,t]]),e[c][1].end.offset-e[c][1].start.offset?(u=2,s=tK(s,[["enter",e[c][1],t],["exit",e[c][1],t]])):u=0,tW(e,n-1,c-n+3,s),c=n+s.length-u-2;break}}for(c=-1;++c<e.length;)"attentionSequence"===e[c][1].type&&(e[c][1].type="data");return e},tokenize:function(e,t){let n,r=this.parser.constructs.attentionMarkers.null,i=this.previous,l=ng(i);return function(o){return n=o,e.enter("attentionSequence"),function o(a){if(a===n)return e.consume(a),o;let s=e.exit("attentionSequence"),u=ng(a),c=!u||2===u&&l||r.includes(a),d=!l||2===l&&u||r.includes(i);return s._open=!!(42===n?c:c&&(l||!d)),s._close=!!(42===n?d:d&&(u||!c)),t(a)}(o)}}};function nb(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}let nv={continuation:{tokenize:function(e,t,n){let r=this;return function(t){return t3(t)?t8(e,i,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):i(t)};function i(r){return e.attempt(nv,t,n)(r)}}},exit:function(e){e.exit("blockQuote")},name:"blockQuote",tokenize:function(e,t,n){let r=this;return function(t){if(62===t){let n=r.containerState;return n.open||(e.enter("blockQuote",{_container:!0}),n.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),i}return n(t)};function i(n){return t3(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}}},nk={name:"characterEscape",tokenize:function(e,t,n){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),r};function r(r){return t2(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(r)}}},nw=document.createElement("i");function nS(e){let t="&"+e+";";nw.innerHTML=t;let n=nw.textContent;return(59!==n.charCodeAt(n.length-1)||"semi"===e)&&n!==t&&n}let nj={name:"characterReference",tokenize:function(e,t,n){let r,i,l=this,o=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),a};function a(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),s):(e.enter("characterReferenceValue"),r=31,i=tY,u(t))}function s(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),r=6,i=t1,u):(e.enter("characterReferenceValue"),r=7,i=t0,u(t))}function u(a){if(59===a&&o){let r=e.exit("characterReferenceValue");return i!==tY||nS(l.sliceSerialize(r))?(e.enter("characterReferenceMarker"),e.consume(a),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(a)}return i(a)&&o++<r?(e.consume(a),u):n(a)}}},nC={partial:!0,tokenize:function(e,t,n){let r=this;return function(t){return null===t?n(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},nE={concrete:!0,name:"codeFenced",tokenize:function(e,t,n){let r,i=this,l={partial:!0,tokenize:function(e,t,n){let l=0;return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o};
vendor: 11,033 bytes, line 2
2function o(t){return e.enter("codeFencedFence"),t3(t)?t8(e,s,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):s(t)}function s(t){return t===r?(e.enter("codeFencedFenceSequence"),function t(i){return i===r?(l++,e.consume(i),t):l>=a?(e.exit("codeFencedFenceSequence"),t3(i)?t8(e,u,"whitespace")(i):u(i)):n(i)}(t)):n(t)}function u(r){return null===r||t5(r)?(e.exit("codeFencedFence"),t(r)):n(r)}}},o=0,a=0;return function(t){var l;let u;return l=t,o=(u=i.events[i.events.length-1])&&"linePrefix"===u[1].type?u[2].sliceSerialize(u[1],!0).length:0,r=l,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),function t(i){return i===r?(a++,e.consume(i),t):a<3?n(i):(e.exit("codeFencedFenceSequence"),t3(i)?t8(e,s,"whitespace")(i):s(i))}(l)};function s(l){return null===l||t5(l)?(e.exit("codeFencedFence"),i.interrupt?t(l):e.check(nC,c,h)(l)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),function t(i){return null===i||t5(i)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),s(i)):t3(i)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),t8(e,u,"whitespace")(i)):96===i&&i===r?n(i):(e.consume(i),t)}(l))}function u(t){return null===t||t5(t)?s(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),function t(i){return null===i||t5(i)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),s(i)):96===i&&i===r?n(i):(e.consume(i),t)}(t))}function c(t){return e.attempt(l,h,d)(t)}function d(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),f}function f(t){return o>0&&t3(t)?t8(e,p,"linePrefix",o+1)(t):p(t)}function p(t){return null===t||t5(t)?e.check(nC,c,h)(t):(e.enter("codeFlowValue"),function t(n){return null===n||t5(n)?(e.exit("codeFlowValue"),p(n)):(e.consume(n),t)}(t))}function h(n){return e.exit("codeFenced"),t(n)}}},nA={name:"codeIndented",tokenize:function(e,t,n){let r=this;return function(t){return e.enter("codeIndented"),t8(e,i,"linePrefix",5)(t)};function i(t){let i=r.events[r.events.length-1];return i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?function t(n){return null===n?l(n):t5(n)?e.attempt(nN,t,l)(n):(e.enter("codeFlowValue"),function n(r){return null===r||t5(r)?(e.exit("codeFlowValue"),t(r)):(e.consume(r),n)}(n))}(t):n(t)}function l(n){return e.exit("codeIndented"),t(n)}}},nN={partial:!0,tokenize:function(e,t,n){let r=this;return i;function i(t){return r.parser.lazy[r.now().line]?n(t):t5(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):t8(e,l,"linePrefix",5)(t)}function l(e){let l=r.events[r.events.length-1];return l&&"linePrefix"===l[1].type&&l[2].sliceSerialize(l[1],!0).length>=4?t(e):t5(e)?i(e):n(e)}}};function nT(e,t,n,r,i,l,o,a,s){let u=s||1/0,c=0;return function(t){return 60===t?(e.enter(r),e.enter(i),e.enter(l),e.consume(t),e.exit(l),d):null===t||32===t||41===t||tG(t)?n(t):(e.enter(r),e.enter(o),e.enter(a),e.enter("chunkString",{contentType:"string"}),h(t))};function d(n){return 62===n?(e.enter(l),e.consume(n),e.exit(l),e.exit(i),e.exit(r),t):(e.enter(a),e.enter("chunkString",{contentType:"string"}),f(n))}function f(t){return 62===t?(e.exit("chunkString"),e.exit(a),d(t)):null===t||60===t||t5(t)?n(t):(e.consume(t),92===t?p:f)}function p(t){return 60===t||62===t||92===t?(e.consume(t),f):f(t)}function h(i){return!c&&(null===i||41===i||t4(i))?(e.exit("chunkString"),e.exit(a),e.exit(o),e.exit(r),t(i)):c<u&&40===i?(e.consume(i),c++,h):41===i?(e.consume(i),c--,h):null===i||32===i||40===i||tG(i)?n(i):(e.consume(i),92===i?m:h)}function m(t){return 40===t||41===t||92===t?(e.consume(t),h):h(t)}}function nD(e,t,n,r,i,l){let o,a=this,s=0;return function(t){return e.enter(r),e.enter(i),e.consume(t),e.exit(i),e.enter(l),u};function u(d){return s>999||null===d||91===d||93===d&&!o||94===d&&!s&&"_hiddenFootnoteSupport"in a.parser.constructs?n(d):93===d?(e.exit(l),e.enter(i),e.consume(d),e.exit(i),e.exit(r),t):t5(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),u):(e.enter("chunkString",{contentType:"string"}),c(d))}function c(t){return null===t||91===t||93===t||t5(t)||s++>999?(e.exit("chunkString"),u(t)):(e.consume(t),o||(o=!t3(t)),92===t?d:c)}function d(t){return 91===t||92===t||93===t?(e.consume(t),s++,c):c(t)}}function nP(e,t,n,r,i,l){let o;return function(t){return 34===t||39===t||40===t?(e.enter(r),e.enter(i),e.consume(t),e.exit(i),o=40===t?41:t,a):n(t)};function a(n){return n===o?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(l),s(n))}function s(t){return t===o?(e.exit(l),a(o)):null===t?n(t):t5(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),t8(e,s,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),u(t))}function u(t){return t===o||null===t||t5(t)?(e.exit("chunkString"),s(t)):(e.consume(t),92===t?c:u)}function c(t){return t===o||92===t?(e.consume(t),u):u(t)}}function nL(e,t){let n;return function r(i){return t5(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):t3(i)?t8(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}function nF(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}let nM={partial:!0,tokenize:function(e,t,n){return function(t){return t4(t)?nL(e,r)(t):n(t)};function r(t){return nP(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function i(t){return t3(t)?t8(e,l,"whitespace")(t):l(t)}function l(e){return null===e||t5(e)?t(e):n(e)}}},nO=["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"],nI=["pre","script","style","textarea"],nz={partial:!0,tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(nr,t,n)}}},nR={partial:!0,tokenize:function(e,t,n){let r=this;return function(t){return t5(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):n(t)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},n_={name:"labelEnd",resolveAll:function(e){let t=-1,n=[];for(;++t<e.length;){let r=e[t][1];if(n.push(e[t]),"labelImage"===r.type||"labelLink"===r.type||"labelEnd"===r.type){let e="labelImage"===r.type?4:2;r.type="data",t+=e}}return e.length!==n.length&&tW(e,0,e.length,n),e},resolveTo:function(e,t){let n,r,i,l,o=e.length,a=0;for(;o--;)if(n=e[o][1],r){if("link"===n.type||"labelLink"===n.type&&n._inactive)break;"enter"===e[o][0]&&"labelLink"===n.type&&(n._inactive=!0)}else if(i){if("enter"===e[o][0]&&("labelImage"===n.type||"labelLink"===n.type)&&!n._balanced&&(r=o,"labelLink"!==n.type)){a=2;break}}else"labelEnd"===n.type&&(i=o);let s={type:"labelLink"===e[r][1].type?"link":"image",start:{...e[r][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[r][1].start},end:{...e[i][1].end}},c={type:"labelText",start:{...e[r+a+2][1].end},end:{...e[i-2][1].start}};return l=tK(l=[["enter",s,t],["enter",u,t]],e.slice(r+1,r+a+3)),l=tK(l,[["enter",c,t]]),l=tK(l,ny(t.parser.constructs.insideSpan.null,e.slice(r+a+4,i-3),t)),l=tK(l,[["exit",c,t],e[i-2],e[i-1],["exit",u,t]]),l=tK(l,e.slice(i+1)),l=tK(l,[["exit",s,t]]),tW(e,r,e.length,l),e},tokenize:function(e,t,n){let r,i,l=this,o=l.events.length;for(;o--;)if(("labelImage"===l.events[o][1].type||"labelLink"===l.events[o][1].type)&&!l.events[o][1]._balanced){r=l.events[o][1];break}return function(t){return r?r._inactive?c(t):(i=l.parser.defined.includes(nF(l.sliceSerialize({start:r.end,end:l.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),a):n(t)};function a(t){return 40===t?e.attempt(nB,u,i?u:c)(t):91===t?e.attempt(nU,u,i?s:c)(t):i?u(t):c(t)}function s(t){return e.attempt(nH,u,c)(t)}function u(e){return t(e)}function c(e){return r._balanced=!0,n(e)}}},nB={tokenize:function(e,t,n){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),r};function r(t){return t4(t)?nL(e,i)(t):i(t)}function i(t){return 41===t?u(t):nT(e,l,o,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function l(t){return t4(t)?nL(e,a)(t):u(t)}function o(e){return n(e)}function a(t){return 34===t||39===t||40===t?nP(e,s,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):u(t)}function s(t){return t4(t)?nL(e,u)(t):u(t)}function u(r){return 41===r?(e.enter("resourceMarker"),e.consume(r),e.exit("resourceMarker"),e.exit("resource"),t):n(r)}}},nU={tokenize:function(e,t,n){let r=this;return function(t){return nD.call(r,e,i,l,"reference","referenceMarker","referenceString")(t)};function i(e){return r.parser.defined.includes(nF(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function l(e){return n(e)}}},nH={tokenize:function(e,t,n){return function(t){return e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),r};function r(r){return 93===r?(e.enter("referenceMarker"),e.consume(r),e.exit("referenceMarker"),e.exit("reference"),t):n(r)}}},nq={name:"labelStartImage",resolveAll:n_.resolveAll,tokenize:function(e,t,n){let r=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),i};function i(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),l):n(t)}function l(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}},n$={name:"labelStartLink",resolveAll:n_.resolveAll,tokenize:function(e,t,n){let r=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),i};function i(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}},nV={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),t8(e,t,"linePrefix")}}},nW={name:"thematicBreak",tokenize:function(e,t,n){let r,i=0;return function(l){var o;return e.enter("thematicBreak"),r=o=l,function l(o){return o===r?(e.enter("thematicBreakSequence"),function t(n){return n===r?(e.consume(n),i++,t):(e.exit("thematicBreakSequence"),t3(n)?t8(e,l,"whitespace")(n):l(n))}(o)):i>=3&&(null===o||t5(o))?(e.exit("thematicBreak"),t(o)):n(o)}(o)}}},nK={continuation:{tokenize:function(e,t,n){let r=this;return r.containerState._closeFlow=void 0,e.check(nr,function(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,t8(e,t,"listItemIndent",r.containerState.size+1)(n)},function(n){return r.containerState.furtherBlankLines||!t3(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine
2=void 0,i(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(nX,t,i)(n))});function i(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,t8(e,e.attempt(nK,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i)}}},exit:function(e){e.exit(this.containerState.type)},name:"list",tokenize:function(e,t,n){let r=this,i=r.events[r.events.length-1],l=i&&"linePrefix"===i[1].type?i[2].sliceSerialize(i[1],!0).length:0,o=0;return function(t){let i=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===i?!r.containerState.marker||t===r.containerState.marker:t0(t)){if(r.containerState.type||(r.containerState.type=i,e.enter(i,{_container:!0})),"listUnordered"===i)return e.enter("listItemPrefix"),42===t||45===t?e.check(nW,n,a)(t):a(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),function t(i){return t0(i)&&++o<10?(e.consume(i),t):(!r.interrupt||o<2)&&(r.containerState.marker?i===r.containerState.marker:41===i||46===i)?(e.exit("listItemValue"),a(i)):n(i)}(t)}return n(t)};function a(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(nr,r.interrupt?n:s,e.attempt(nQ,c,u))}
2function s(e){return r.containerState.initialBlankLine=!0,l++,c(e)}function u(t){return t3(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),c):n(t)}function c(n){return r.containerState.size=l+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}}},nQ={partial:!0,tokenize:function(e,t,n){let r=this;return t8(e,function(e){let i=r.events[r.events.length-1];return!t3(e)&&i&&"listItemPrefixWhitespace"===i[1].type?t(e):n(e)},"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)}},nX={partial:!0,tokenize:function(e,t,n){let r=this;return t8(e,function(e){let i=r.events[r.events.length-1];return i&&"listItemIndent"===i[1].type&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(e):n(e)},"listItemIndent",r.containerState.size+1)}},nJ={name:"setextUnderline",resolveTo:function(e,t){let n,r,i,l=e.length;for(;l--;)if("enter"===e[l][0]){if("content"===e[l][1].type){n=l;break}"paragraph"===e[l][1].type&&(r=l)}else"content"===e[l][1].type&&e.splice(l,1),i||"definition"!==e[l][1].type||(i=l);let o={type:"setextHeading",start:{...e[n][1].start},end:{...e[e.length-1][1].end}};return e[r][1].type="setextHeadingText",i?(e.splice(r,0,["enter",o,t]),e.splice(i+1,0,["exit",e[n][1],t]),e[n][1].end={...e[i][1].end}):e[n][1]=o,e.push(["exit",o,t]),e},tokenize:function(e,t,n){let r,i=this;return function(t){var o;let a,s=i.events.length;for(;s--;)if("lineEnding"!==i.events[s][1].type&&"linePrefix"!==i.events[s][1].type&&"content"!==i.events[s][1].type){a="paragraph"===i.events[s][1].type;break}return!i.parser.lazy[i.now().line]&&(i.interrupt||a)?(e.enter("setextHeadingLine"),r=t,o=t,e.enter("setextHeadingLineSequence"),function t(n){return n===r?(e.consume(n),t):(e.exit("setextHeadingLineSequence"),t3(n)?t8(e,l,"lineSuffix")(n):l(n))}(o)):n(t)};function l(r){return null===r||t5(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}}};e.s(["attentionMarkers",0,{null:[42,95]},"contentInitial",0,{91:{name:"definition",tokenize:function(e,t,n){let r,i=this;return function(t){var r;return e.enter("definition"),r=t,nD.call(i,e,l,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(r)};function l(t){return(r=nF(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),58===t)?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),o):n(t)}function o(t){return t4(t)?nL(e,a)(t):a(t)}function a(t){return nT(e,s,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function s(t){return e.attempt(nM,u,u)(t)}function u(t){return t3(t)?t8(e,c,"whitespace")(t):c(t)}function c(l){return null===l||t5(l)?(e.exit("definition"),i.parser.defined.push(r),t(l)):n(l)}}}},"disable",0,{null:[]},"document",0,{42:nK,43:nK,45:nK,48:nK,49:nK,50:nK,51:nK,52:nK,53:nK,54:nK,55:nK,56:nK,57:nK,62:nv},"flow",0,{35:{name:"headingAtx",resolve:function(e,t){let n,r,i=e.length-2,l=3;return"whitespace"===e[3][1].type&&(l+=2),i-2>l&&"whitespace"===e[i][1].type&&(i-=2),"atxHeadingSequence"===e[i][1].type&&(l===i-1||i-4>l&&"whitespace"===e[i-2][1].type)&&(i-=l+1===i?2:4),i>l&&(n={type:"atxHeadingText",start:e[l][1].start,end:e[i][1].end},r={type:"chunkText",start:e[l][1].start,end:e[i][1].end,contentType:"text"},tW(e,l,i-l+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]])),e},tokenize:function(e,t,n){let r=0;return function(i){var l;return e.enter("atxHeading"),l=i,e.enter("atxHeadingSequence"),function i(l){return 35===l&&r++<6?(e.consume(l),i):null===l||t4(l)?(e.exit("atxHeadingSequence"),function n(r){return 35===r?(e.enter("atxHeadingSequence"),function t(r){return 35===r?(e.consume(r),t):(e.exit("atxHeadingSequence"),n(r))}(r)):null===r||t5(r)?(e.exit("atxHeading"),t(r)):t3(r)?t8(e,n,"whitespace")(r):(e.enter("atxHeadingText"),function t(r){return null===r||35===r||t4(r)?(e.exit("atxHeadingText"),n(r)):(e.consume(r),t)}(r))}(l)):n(l)}(l)}}},42:nW,45:[nJ,nW],60:{concrete:!0,name:"htmlFlow",resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););return t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e},tokenize:function(e,t,n){let r,i,l,o,a,s=this;return function(t){var n;return n=t,e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(n),u};function u(o){return 33===o?(e.consume(o),c):47===o?(e.consume(o),i=!0,p):63===o?(e.consume(o),r=3,s.interrupt?t:L):tJ(o)?(e.consume(o),l=String.fromCharCode(o),h):n(o)}function c(i){return 45===i?(e.consume(i),r=2,d):91===i?(e.consume(i),r=5,o=0,f):tJ(i)?(e.consume(i),r=4,s.interrupt?t:L):n(i)}function d(r){return 45===r?(e.consume(r),s.interrupt?t:L):n(r)}function f(r){let i="CDATA[";return r===i.charCodeAt(o++)?(e.consume(r),o===i.length)?s.interrupt?t:j:f:n(r)}function p(t){return tJ(t)?(e.consume(t),l=String.fromCharCode(t),h):n(t)}
2function h(o){if(null===o||47===o||62===o||t4(o)){let a=47===o,u=l.toLowerCase();return!a&&!i&&nI.includes(u)?(r=1,s.interrupt?t(o):j(o)):nO.includes(l.toLowerCase())?(r=6,a)?(e.consume(o),m):s.interrupt?t(o):j(o):(r=7,s.interrupt&&!s.parser.lazy[s.now().line]?n(o):i?function t(n){return t3(n)?(e.consume(n),t):w(n)}(o):g(o))}return 45===o||tY(o)?(e.consume(o),l+=String.fromCharCode(o),h):n(o)}function m(r){return 62===r?(e.consume(r),s.interrupt?t:j):n(r)}function g(t){return 47===t?(e.consume(t),w):58===t||95===t||tJ(t)?(e.consume(t),y):t3(t)?(e.consume(t),g):w(t)}function y(t){return 45===t||46===t||58===t||95===t||tY(t)?(e.consume(t),y):x(t)}function x(t){return 61===t?(e.consume(t),b):t3(t)?(e.consume(t),x):g(t)}function b(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),a=t,v):t3(t)?(e.consume(t),b):function t(n){return null===n||34===n||39===n||47===n||60===n||61===n||62===n||96===n||t4(n)?x(n):(e.consume(n),t)}(t)}function v(t){return t===a?(e.consume(t),a=null,k):null===t||t5(t)?n(t):(e.consume(t),v)}function k(e){return 47===e||62===e||t3(e)?g(e):n(e)}function w(t){return 62===t?(e.consume(t),S):n(t)}function S(t){return null===t||t5(t)?j(t):t3(t)?(e.consume(t),S):n(t)}function j(t){return 45===t&&2===r?(e.consume(t),N):60===t&&1===r?(e.consume(t),T):62===t&&4===r?(e.consume(t),F):63===t&&3===r?(e.consume(t),L):93===t&&5===r?(e.consume(t),P):t5(t)&&(6===r||7===r)?(e.exit("htmlFlowData"),e.check(nz,M,C)(t)):null===t||t5(t)?(e.exit("htmlFlowData"),C(t)):(e.consume(t),j)}function C(t){return e.check(nR,E,M)(t)}function E(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),A}function A(t){return null===t||t5(t)?C(t):(e.enter("htmlFlowData"),j(t))}function N(t){return 45===t?(e.consume(t),L):j(t)}function T(t){return 47===t?(e.consume(t),l="",D):j(t)}function D(t){if(62===t){let n=l.toLowerCase();return nI.includes(n)?(e.consume(t),F):j(t)}return tJ(t)&&l.length<8?(e.consume(t),l+=String.fromCharCode(t),D):j(t)}function P(t){return 93===t?(e.consume(t),L):j(t)}function L(t){return 62===t?(e.consume(t),F):45===t&&2===r?(e.consume(t),L):j(t)}function F(t){return null===t||t5(t)?(e.exit("htmlFlowData"),M(t)):(e.consume(t),F)}function M(n){return e.exit("htmlFlow"),t(n)}}},61:nJ,95:nW,96:nE,126:nE},"flowInitial",0,{[-2]:nA,[-1]:nA,32:nA},"insideSpan",0,{null:[nx,nc]},"string",0,{38:nj,92:nk},"text",0,{[-5]:nV,[-4]:nV,[-3]:nV,33:nq,38:nj,42:nx,60:[{name:"autolink",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i};function i(t){return tJ(t)?(e.consume(t),l):64===t?n(t):a(t)}function l(t){return 43===t||45===t||46===t||tY(t)?(r=1,function t(n){return 58===n?(e.consume(n),r=0,o):(43===n||45===n||46===n||tY(n))&&r++<32?(e.consume(n),t):(r=0,a(n))}(t)):a(t)}function o(r){return 62===r?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t):null===r||32===r||60===r||tG(r)?n(r):(e.consume(r),o)}function a(t){return 64===t?(e.consume(t),s):tZ(t)?(e.consume(t),a):n(t)}function s(i){return tY(i)?function i(l){return 46===l?(e.consume(l),r=0,s):62===l?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(l),e.exit("autolinkMarker"),e.exit("autolink"),t):function t(l){if((45===l||tY(l))&&r++<63){let n=45===l?t:i;return e.consume(l),n}return n(l)}(l)}(i):n(i)}}},{name:"htmlText",tokenize:function(e,t,n){let r,i,l,o=this;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),a};function a(t){return 33===t?(e.consume(t),s):47===t?(e.consume(t),v):63===t?(e.consume(t),x):tJ(t)?(e.consume(t),w):n(t)}function s(t){return 45===t?(e.consume(t),u):91===t?(e.consume(t),i=0,p):tJ(t)?(e.consume(t),y):n(t)}function u(t){return 45===t?(e.consume(t),f):n(t)}function c(t){return null===t?n(t):45===t?(e.consume(t),d):t5(t)?(l=c,D(t)):(e.consume(t),c)}function d(t){return 45===t?(e.consume(t),f):c(t)}function f(e){return 62===e?T(e):45===e?d(e):c(e)}function p(t){let r="CDATA[";return t===r.charCodeAt(i++)?(e.consume(t),i===r.length?h:p):n(t)}function h(t){return null===t?n(t):93===t?(e.consume(t),m):t5(t)?(l=h,D(t)):(e.consume(t),h)}function m(t){return 93===t?(e.consume(t),g):h(t)}function g(t){return 62===t?T(t):93===t?(e.consume(t),g):h(t)}function y(t){return null===t||62===t?T(t):t5(t)?(l=y,D(t)):(e.consume(t),y)}function x(t){return null===t?n(t):63===t?(e.consume(t),b):t5(t)?(l=x,D(t)):(e.consume(t),x)}function b(e){return 62===e?T(e):x(e)}function v(t){return tJ(t)?(e.consume(t),k):n(t)}function k(t){return 45===t||tY(t)?(e.consume(t),k):function t(n){return t5(n)?(l=t,D(n)):t3(n)?(e.consume(n),t):T(n)}(t)}function w(t){return 45===t||tY(t)?(e.consume(t),w):47===t||62===t||t4(t)?S(t):n(t)}function S(t){return 47===t?(e.consume(t),T):58===t||95===t||tJ(t)?(e.consume(t),j):t5(t)?(l=S,D(t)):t3(t)?(e.consume(t),S):T(t)}function j(t){return 45===t||46===t||58===t||95===t||tY(t)?(e.consume(t),j):function t(n){return 61===n?(e.consume(n),C):t5(n)?(l=t,D(n)):t3(n)?(e.consume(n),t):S(n)}(t)}function C(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),r=t,E):t5(t)?(l=C,D(t)):t3(t)?(e.consume(t),C):(e.consume(t),A)}function E(t){return t===r?(e.consume(t),r=void 0,N):null===t?n(t):t5(t)?(l=E,D(t)):(e.consume(t),E)}function A(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||t4(t)?S(t):(e.consume(t),A)}function N(e){return 47===e||62===e||t4(e)?S(e):n(e)}function T(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}function D(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),P}function P(t){return t3(t)?t8(e,L,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):L(t)}function L(t){return e.enter("htmlTextData"),l(t)}}}],91:n$,92:[{name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return t5(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}},nk],93:n_,95:nx,96:{name:"codeText",previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type},resolve:function(e){let t,n,r=e.length-4,i=3;if(("lineEnding"===e[3][1].type||"space"===e[i][1].type)&&("lineEnding"===e[r][1].type||"space"===e[r][1].type)){for(t=i;++t<r;)if("codeTextData"===e[t][1].type){e[i][1].type="codeTextPadding",e[r][1].type="codeTextPadding",i+=2,r-=2;break}}for(t=i-1,r++;++t<=r;)void 0===n?t!==r&&"lineEnding"!==e[t][1].type&&(n=t):(t===r||"lineEnding"===e[t][1].type)&&(e[n][1].type="codeTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),r-=t-n-2,t=n+2),n=void 0);return e},tokenize:function(e,t,n){let r,i,l=0;
2return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),function t(n){return 96===n?(e.consume(n),l++,t):(e.exit("codeTextSequence"),o(n))}(t)};function o(s){return null===s?n(s):32===s?(e.enter("space"),e.consume(s),e.exit("space"),o):96===s?(i=e.enter("codeTextSequence"),r=0,function n(o){return 96===o?(e.consume(o),r++,n):r===l?(e.exit("codeTextSequence"),e.exit("codeText"),t(o)):(i.type="codeTextData",a(o))}(s)):t5(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),o):(e.enter("codeTextData"),a(s))}function a(t){return null===t||32===t||96===t||t5(t)?(e.exit("codeTextData"),o(t)):(e.consume(t),a)}}}}],119210);var nY=e.i(119210);let nZ=/[\0\t\n\r]/g;function nG(e,t){let n=Number.parseInt(e,t);return n<9||11===n||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(65535&n)==65535||(65535&n)==65534||n>1114111?"�":String.fromCodePoint(n)}let n0=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function n1(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){let e=n.charCodeAt(1),t=120===e||88===e;return nG(n.slice(t?2:1),t?16:10)}return nS(n)||e}let n2={}.hasOwnProperty;function n5(e){return{line:e.line,column:e.column,offset:e.offset}}function n4(e,t){if(e)throw Error("Cannot close `"+e.type+"` ("+tS({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+tS({start:t.start,end:t.end})+") is open");throw Error("Cannot close document, a token (`"+t.type+"`, "+tS({start:t.start,end:t.end})+") is still open")}function n3(e){let t=this;t.parser=function(n){var r,i;let l,o,a,s;return"object"==typeof(r={...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})&&(i=r,r=void 0),(function(e){let t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:r(y),autolinkProtocol:u,autolinkEmail:u,atxHeading:r(h),blockQuote:r(function(){return{type:"blockquote",children:[]}}),characterEscape:u,characterReference:u,codeFenced:r(p),codeFencedFenceInfo:i,codeFencedFenceMeta:i,codeIndented:r(p,i),codeText:r(function(){return{type:"inlineCode",value:""}},i),codeTextData:u,data:u,codeFlowValue:u,definition:r(function(){return{type:"definition",identifier:"",label:null,title:null,url:""}}),definitionDestinationString:i,definitionLabelString:i,definitionTitleString:i,emphasis:r(function(){return{type:"emphasis",children:[]}}),hardBreakEscape:r(m),hardBreakTrailing:r(m),htmlFlow:r(g,i),htmlFlowData:u,htmlText:r(g,i),htmlTextData:u,image:r(function(){return{type:"image",title:null,url:"",alt:null}}),label:i,link:r(y),listItem:r(function(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}),listItemValue:function(e){this.data.expectingFirstListItemValue&&(this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0)},listOrdered:r(x,function(){this.data.expectingFirstListItemValue=!0}),listUnordered:r(x),paragraph:r(function(){return{type:"paragraph",children:[]}}),reference:function(){this.data.referenceType="collapsed"},referenceString:i,resourceDestinationString:i,resourceTitleString:i,setextHeading:r(h),strong:r(function(){return{type:"strong",children:[]}}),thematicBreak:r(function(){return{type:"thematicBreak"}})},exit:{atxHeading:o(),atxHeadingSequence:function(e){let t=this.stack[this.stack.length-1];t.depth||(t.depth=this.sliceSerialize(e).length)},autolink:o(),autolinkEmail:function(e){c.call(this,e),this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)},autolinkProtocol:function(e){c.call(this,e),this.stack[this.stack.length-1].url=this.sliceSerialize(e)},blockQuote:o(),characterEscapeValue:c,characterReferenceMarkerHexadecimal:f,characterReferenceMarkerNumeric:f,characterReferenceValue:function(e){let t,n=this.sliceSerialize(e),r=this.data.characterReferenceType;r?(t=nG(n,"characterReferenceMarkerNumeric"===r?10:16),this.data.characterReferenceType=void 0):t=nS(n);let i=this.stack[this.stack.length-1];i.value+=t},characterReference:function(e){this.stack.pop().position.end=n5(e.end)},codeFenced:o(function(){let e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}),codeFencedFence:function(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)},codeFencedFenceInfo:function(){let e=this.resume();this.stack[this.stack.length-1].lang=e},codeFencedFenceMeta:function(){let e=this.resume();this.stack[this.stack.length-1].meta=e},codeFlowValue:c,codeIndented:o(function(){let e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}),codeText:o(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),codeTextData:c,data:c,definition:o(),definitionDestinationString:function(){let e=this.resume();this.stack[this.stack.length-1].url=e},definitionLabelString:function(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=nF(this.sliceSerialize(e)).toLowerCase()},definitionTitleString:function(){let e=this.resume();this.stack[this.stack.length-1].title=e},emphasis:o(),hardBreakEscape:o(d),hardBreakTrailing:o(d),htmlFlow:o(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),htmlFlowData:c,htmlText:o(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),htmlTextData:c,image:o(function(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),label:function(){let e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];this.data.inReference=!0,"link"===n.type?n.children=e.children:n.alt=t},labelText:function(e){let t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=t.replace(n0,n1),n.identifier=nF(t).toLowerCase()},lineEnding:function(e){let n=this.stack[this.stack.length-1];if(this.data.atHardBreak){n.children[n.children.length-1].position.end=n5(e.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.t
2ype)&&(u.call(this,e),c.call(this,e))},link:o(function(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),listItem:o(),listOrdered:o(),listUnordered:o(),paragraph:o(),referenceString:function(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=nF(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType="full"},resourceDestinationString:function(){let e=this.resume();this.stack[this.stack.length-1].url=e},resourceTitleString:function(){let e=this.resume();this.stack[this.stack.length-1].title=e},resource:function(){this.data.inReference=void 0},setextHeading:o(function(){this.data.setextHeadingSlurpLineEnding=void 0}),setextHeadingLineSequence:function(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).codePointAt(0)?1:2},setextHeadingText:function(){this.data.setextHeadingSlurpLineEnding=!0},strong:o(),thematicBreak:o()}};!function e(t,n){let r=-1;for(;++r<n.length;){let i=n[r];Array.isArray(i)?e(t,i):function(e,t){let n;for(n in t)if(n2.call(t,n))switch(n){case"canContainEols":{let r=t[n];r&&e[n].push(...r);break}case"transforms":{let r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{let r=t[n];r&&Object.assign(e[n],r)}}}(t,i)}}(t,(e||{}).mdastExtensions||[]);let n={};return function(e){let r={type:"root",children:[]},o={stack:[r],tokenStack:[],config:t,enter:l,exit:a,buffer:i,resume:s,data:n},u=[],c=-1;for(;++c<e.length;)("listOrdered"===e[c][1].type||"listUnordered"===e[c][1].type)&&("enter"===e[c][0]?u.push(c):c=function(e,t,n){let r,i,l,o,a=t-1,s=-1,u=!1;for(;++a<=n;){let t=e[a];switch(t[1].type){case"listUnordered":case"listOrdered":case"blockQuote":"enter"===t[0]?s++:s--,o=void 0;break;case"lineEndingBlank":"enter"===t[0]&&(!r||o||s||l||(l=a),o=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:o=void 0}if(!s&&"enter"===t[0]&&"listItemPrefix"===t[1].type||-1===s&&"exit"===t[0]&&("listUnordered"===t[1].type||"listOrdered"===t[1].type)){if(r){let o=a;for(i=void 0;o--;){let t=e[o];if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){if("exit"===t[0])continue;i&&(e[i][1].type="lineEndingBlank",u=!0),t[1].type="lineEnding",i=o}else if("linePrefix"===t[1].type||"blockQuotePrefix"===t[1].type||"blockQuotePrefixWhitespace"===t[1].type||"blockQuoteMarker"===t[1].type||"listItemIndent"===t[1].type);else break}l&&(!i||l<i)&&(r._spread=!0),r.end=Object.assign({},i?e[i][1].start:t[1].end),e.splice(i||a,0,["exit",r,t[2]]),a++,n++}if("listItemPrefix"===t[1].type){let i={type:"listItem",_spread:!1,start:Object.assign({},t[1].start),end:void 0};r=i,e.splice(a,0,["enter",i,t[2]]),a++,n++,l=void 0,o=!0}}}return e[t][1]._spread=u,n}(e,u.pop(),c));for(c=-1;++c<e.length;){let n=t[e[c][0]];n2.call(n,e[c][1].type)&&n[e[c][1].type].call(Object.assign({sliceSerialize:e[c][2].sliceSerialize},o),e[c][1])}if(o.tokenStack.length>0){let e=o.tokenStack[o.tokenStack.length-1];(e[1]||n4).call(o,void 0,e[0])}for(r.position={start:n5(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:n5(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},c=-1;++c<t.transforms.length;)r=t.transforms[c](r)||r;return r};function r(e,t){return function(n){l.call(this,e(n),n),t&&t.call(this,n)}}function i(){this.stack.push({type:"fragment",children:[]})}function l(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n||void 0]),e.position={start:n5(t.start),end:void 0}}function o(e){return function(t){e&&e.call(this,t),a.call(this,t)}}function a(e,t){let n=this.stack.pop(),r=this.tokenStack.pop();if(r)r[0].type!==e.type&&(t?t.call(this,e,r[0]):(r[1]||n4).call(this,e,r[0]));else throw Error("Cannot close `"+e.type+"` ("+tS({start:e.start,end:e.end})+"): itâs not open");n.position.end=n5(e.end)}function s(){return tq(this.stack.pop())}function u(e){let t=this.stack[this.stack.length-1].children,n=t[t.length-1];n&&"text"===n.type||((n={type:"text",value:""}).position={start:n5(e.start),end:void 0},t.push(n)),this.stack.push(n)}function c(e){let t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=n5(e.end)}function d(){this.data.atHardBreak=!0}function f(e){this.data.characterReferenceType=e.type}function p(){return{type:"code",lang:null,meta:null,value:""}}function h(){return{type:"heading",depth:0,children:[]}}function m(){return{type:"break"}}function g(){return{type:"html",value:""}}function y(){return{type:"link",title:null,url:"",children:[]}}function x(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}})(i)(function(e){for(;!no(e););return e}((function(e){let t={constructs:tX([nY,...(e||{}).extensions||[]]),content:n(ne),defined:[],document:n(nt),flow:n(nu),lazy:{},string:n(nd),text:n(nf)};return t;function n(e){return function(n){return function(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,c
2olumn:n&&n.column||1,offset:n&&n.offset||0},i={},l=[],o=[],a=[],s={attempt:h(function(e,t){m(e,t.from)}),check:h(p),consume:function(e){t5(e)?(r.line++,r.column=1,r.offset+=-3===e?2:1,g()):-1!==e&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),u.previous=e},enter:function(e,t){let n=t||{};return n.type=e,n.start=f(),u.events.push(["enter",n,u]),a.push(n),n},exit:function(e){let t=a.pop();return t.end=f(),u.events.push(["exit",t,u]),t},interrupt:h(p,{interrupt:!0})},u={code:null,containerState:{},defineSkip:function(e){i[e.line]=e.column,g()},events:[],now:f,parser:e,previous:null,sliceSerialize:function(e,t){return function(e,t){let n,r=-1,i=[];for(;++r<e.length;){let l,o=e[r];if("string"==typeof o)l=o;else switch(o){case -5:l="\r";break;case -4:l="\n";break;case -3:l="\r\n";break;case -2:l=t?" ":" ";break;case -1:if(!t&&n)continue;l=" ";break;default:l=String.fromCharCode(o)}n=-2===o,i.push(l)}return i.join("")}(d(e),t)},sliceStream:d,write:function(e){return(o=tK(o,e),function(){let e;for(;r._index<o.length;){let n=o[r._index];if("string"==typeof n)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<n.length;){var t;t=n.charCodeAt(r._bufferIndex),c=c(t)}else c=c(n)}}(),null!==o[o.length-1])?[]:(m(t,0),u.events=ny(l,u.events,u),u.events)}},c=t.tokenize.call(u,s);return t.resolveAll&&l.push(t),u;function d(e){return function(e,t){let n,r=t.start._index,i=t.start._bufferIndex,l=t.end._index,o=t.end._bufferIndex;if(r===l)n=[e[r].slice(i,o)];else{if(n=e.slice(r,l),i>-1){let e=n[0];"string"==typeof e?n[0]=e.slice(i):n.shift()}o>0&&n.push(e[l].slice(0,o))}return n}(o,e)}function f(){let{_bufferIndex:e,_index:t,line:n,column:i,offset:l}=r;return{_bufferIndex:e,_index:t,line:n,column:i,offset:l}}function p(e,t){t.restore()}function h(e,t){return function(n,i,l){var o;let c,d,p,h;return Array.isArray(n)?m(n):"tokenize"in n?m([n]):(o=n,function(e){let t=null!==e&&o[e],n=null!==e&&o.null;return m([...Array.isArray(t)?t:t?[t]:[],...Array.isArray(n)?n:n?[n]:[]])(e)});function m(e){return(c=e,d=0,0===e.length)?l:y(e[d])}function y(e){return function(n){let i,l,o,c,d;return(i=f(),l=u.previous,o=u.currentConstruct,c=u.events.length,d=Array.from(a),h={from:c,restore:function(){r=i,u.previous=l,u.currentConstruct=o,u.events.length=c,a=d,g()}},p=e,e.partial||(u.currentConstruct=e),e.name&&u.parser.constructs.disable.null.includes(e.name))?b(n):e.tokenize.call(t?Object.assign(Object.create(u),t):u,s,x,b)(n)}}function x(t){return e(p,h),i}function b(e){return(h.restore(),++d<c.length)?y(c[d]):l}}}function m(e,t){e.resolveAll&&!l.includes(e)&&l.push(e),e.resolve&&tW(u.events,t,u.events.length-t,e.resolve(u.events.slice(t),u)),e.resolveTo&&(u.events=e.resolveTo(u.events,u))}function g(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}(t,e,n)}}})(i).document().write((o=1,a="",s=!0,function(e,t,n){let r,i,u,c,d,f=[];for(e=a+("string"==typeof e?e.toString():new TextDecoder(t||void 0).decode(e)),u=0,a="",s&&(65279===e.charCodeAt(0)&&u++,s=void 0);u<e.length;){if(nZ.lastIndex=u,c=(r=nZ.exec(e))&&void 0!==r.index?r.index:e.length,d=e.charCodeAt(c),!r){a=e.slice(u);break}if(10===d&&u===c&&l)f.push(-3),l=void 0;else switch(l&&(f.push(-5),l=void 0),u<c&&(f.push(e.slice(u,c)),o+=c-u),d){case 0:f.push(65533),o++;break;case 9:for(i=4*Math.ceil(o/4),f.push(-2);o++<i;)f.push(-1);break;case 10:f.push(-4),o=1;break;default:l=!0,o=1}u=c+1}return n&&(l&&f.push(-5),a&&f.push(a),f.push(null)),f})(n,r,!0))))}}let n9="object"==typeof self?self:globalThis,n6=(e,t)=>
2{switch(e){case"Function":case"SharedWorker":case"Worker":case"eval":case"setInterval":case"setTimeout":throw TypeError("unable to deserialize "+e)}return new n9[e](t)},n7=e=>{var t;let n,r;return(t=new Map,n=(e,n)=>(t.set(n,e),e),r=i=>{if(t.has(i))return t.get(i);let[l,o]=e[i];switch(l){case 0:case -1:return n(o,i);case 1:{let e=n([],i);for(let t of o)e.push(r(t));return e}case 2:{let e=n({},i);for(let[t,n]of o)e[r(t)]=r(n);return e}case 3:return n(new Date(o),i);case 4:{let{source:e,flags:t}=o;return n(new RegExp(e,t),i)}case 5:{let e=n(new Map,i);for(let[t,n]of o)e.set(r(t),r(n));return e}case 6:{let e=n(new Set,i);for(let t of o)e.add(r(t));return e}case 7:{let{name:e,message:t}=o;return n(n6(e,t),i)}case 8:return n(BigInt(o),i);case"BigInt":return n(Object(BigInt(o)),i);case"ArrayBuffer":return n(new Uint8Array(o).buffer,o);case"DataView":{let{buffer:e}=new Uint8Array(o);return n(new DataView(e),o)}}return n(n6(l,o),i)})(0)},{toString:n8}={},{keys:re}=Object,rt=e=>{let t=typeof e;if("object"!==t||!e)return[0,t];let n=n8.call(e).slice(8,-1);switch(n){case"Array":return[1,""];case"Object":return[2,""];case"Date":return[3,""];case"RegExp":return[4,""];case"Map":return[5,""];case"Set":return[6,""];case"DataView":return[1,n]}return n.includes("Array")?[1,n]:n.includes("Error")?[7,n]:[2,n]},rn=([e,t])=>0===e&&("function"===t||"symbol"===t),rr=(e,{json:t,lossy:n}={})=>{var r,i,l;let o,a,s=[];return(r=!(t||n),i=!!t,l=new Map,o=(e,t)=>{let n=s.push(e)-1;return l.set(t,n),n},a=e=>{if(l.has(e))return l.get(e);let[t,n]=rt(e);switch(t){case 0:{let i=e;switch(n){case"bigint":t=8,i=e.toString();break;case"function":case"symbol":if(r)throw TypeError("unable to serialize "+n);i=null;break;case"undefined":return o([-1],e)}return o([t,i],e)}case 1:{if(n){let t=e;return"DataView"===n?t=new Uint8Array(e.buffer):"ArrayBuffer"===n&&(t=new Uint8Array(e)),o([n,[...t]],e)}let r=[],i=o([t,r],e);for(let t of e)r.push(a(t));return i}case 2:{if(n)switch(n){case"BigInt":return o([n,e.toString()],e);case"Boolean":case"Number":case"String":return o([n,e.valueOf()],e)}if(i&&"toJSON"in e)return a(e.toJSON());let l=[],s=o([t,l],e);for(let t of re(e))(r||!rn(rt(e[t])))&&l.push([a(t),a(e[t])]);return s}case 3:return o([t,e.toISOString()],e);case 4:{let{source:n,flags:r}=e;return o([t,{source:n,flags:r}],e)}case 5:{let n=[],i=o([t,n],e);for(let[t,i]of e)(r||!(rn(rt(t))||rn(rt(i))))&&n.push([a(t),a(i)]);return i}case 6:{let n=[],i=o([t,n],e);for(let t of e)(r||!rn(rt(t)))&&n.push(a(t));return i}}let{message:s}=e;return o([t,{name:n,message:s}],e)})(e),s},ri="function"==typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?n7(rr(e,t)):structuredClone(e):(e,t)=>n7(rr(e,t));function rl(e){let t=[],n=-1,r=0,i=0;for(;++n<e.length;){let l=e.charCodeAt(n),o="";if(37===l&&tY(e.charCodeAt(n+1))&&tY(e.charCodeAt(n+2)))i=2;else if(l<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(l))||(o=String.fromCharCode(l));else if(l>55295&&l<57344){let t=e.charCodeAt(n+1);l<56320&&t>56319&&t<57344?(o=String.fromCharCode(l,t),i=1):o="�"}else o=String.fromCharCode(l);o&&(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+i+1,o=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function ro(e,t){let n=[{type:"text",value:"â©"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function ra(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}let rs=function(e){var t,n;if(null==e)return rc;if("function"==typeof e)return ru(e);if("object"==typeof e){return Array.isArray(e)?function(e){let t=[],n=-1;for(;++n<e.length;)t[n]=rs(e[n]);return ru(function(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1})}(e):(t=e,ru(function(e){let n;for(n in t)if(e[n]!==t[n])return!1;return!0}))}if("string"==typeof e){return n=e,ru(function(e){return e&&e.type===n})}throw Error("Expected function, string, or object as test")};function ru(e){return function(t,n,r){return!!(function(e){return null!==e&&"object"==typeof e&&"type"in e}(t)&&e.call(this,t,"number"==typeof n?n:void 0,r||void 0))}}function rc(){return!0}let rd=[];function rf(e,t,n,r){let i;"function"==typeof t&&"function"!=typeof n?(r=n,n=t):i=t;let l=rs(i),o=r?-1:1;(function e(i,a,s){let u=i&&"object"==typeof i?i:{};if("string"==typeof u.type){let e="string"==typeof u.tagName?u.tagName:"string"==typeof u.name?u.name:void 0;Object.defineProperty(c,"name",{value:"node ("+i.type+(e?"<"+e+">":"")+")"})}return c;function c(){var u;
2let c,d,f,p=rd;if((!t||l(i,a,s[s.length-1]||void 0))&&!1===(p=Array.isArray(u=n(i,s))?u:"number"==typeof u?[!0,u]:null==u?rd:[u])[0])return p;if("children"in i&&i.children&&i.children&&"skip"!==p[0])for(d=(r?i.children.length:-1)+o,f=s.concat(i);d>-1&&d<i.children.length;){if(!1===(c=e(i.children[d],d,f)())[0])return c;d="number"==typeof c[1]?c[1]:d+o}return p}})(e,void 0,[])()}function rp(e,t,n,r){let i,l,o;"function"==typeof t&&"function"!=typeof n?(l=void 0,o=t,i=n):(l=t,o=n,i=r),rf(e,l,function(e,t){let n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return o(e,r,n)},i)}function rh(e,t){let n=t.referenceType,r="]";if("collapsed"===n?r+="[]":"full"===n&&(r+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return[{type:"text",value:"!["+t.alt+r}];let i=e.all(t),l=i[0];l&&"text"===l.type?l.value="["+l.value:i.unshift({type:"text",value:"["});let o=i[i.length-1];return o&&"text"===o.type?o.value+=r:i.push({type:"text",value:r}),i}function rm(e){let t=e.spread;return null==t?e.children.length>1:t}function rg(e,t,n){let r=0,i=e.length;if(t){let t=e.codePointAt(r);for(;9===t||32===t;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(i-1);for(;9===t||32===t;)i--,t=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}let ry={blockquote:function(e,t){let n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)},break:function(e,t){let n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]},code:function(e,t){let n=t.value?t.value+"\n":"",r={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(r.className=["language-"+i[0]]);let l={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(l.data={meta:t.meta}),e.patch(t,l),l={type:"element",tagName:"pre",properties:{},children:[l=e.applyData(t,l)]},e.patch(t,l),l},delete:function(e,t){let n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){let n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},footnoteReference:function(e,t){let n,r="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",i=String(t.identifier).toUpperCase(),l=rl(i.toLowerCase()),o=e.footnoteOrder.indexOf(i),a=e.footnoteCounts.get(i);void 0===a?(a=0,e.footnoteOrder.push(i),n=e.footnoteOrder.length):n=o+1,a+=1,e.footnoteCounts.set(i,a);let s={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+l,id:r+"fnref-"+l+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(n)}]};e.patch(t,s);let u={type:"element",tagName:"sup",properties:{},children:[s]};return e.patch(t,u),e.applyData(t,u)},heading:function(e,t){let n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},html:function(e,t){if(e.options.allowDangerousHtml){let n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}},imageReference:function(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return rh(e,t);let i={src:rl(r.url||""),alt:t.alt};null!==r.title&&void 0!==r.title&&(i.title=r.title);let l={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,l),e.applyData(t,l)},image:function(e,t){let n={src:rl(t.url)};null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt),null!==t.title&&void 0!==t.title&&(n.title=t.title);let r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)},inlineCode:function(e,t){let n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);let r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)},linkReference:function(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return rh(e,t);let i={href:rl(r.url||"")};null!==r.title&&void 0!==r.title&&(i.title=r.title);let l={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,l),e.applyData(t,l)},link:function(e,t){let n={href:rl(t.url)};null!==t.title&&void 0!==t.title&&(n.title=t.title);let r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},listItem:function(e,t,n){let r=e.all(t),i=n?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;let n=e.children,r=-1;for(;!t&&++r<n.length;)t=rm(n[r])}return t}(n):rm(t),l={},o=[];if("boolean"==typeof t.checked){let e,n=r[0];n&&"element"===n.type&&"p"===n.tagName?e=n:(e={type:"element",tagName:"p",properties:{},children:[]},r.unshift(e)),e.children.length>0&&e.children.unshift({type:"text",value:" "}),e.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),l.className=["task-list-item"]}let a=-1;for(;++a<r.length;){let e=r[a];(i||0!==a||"element"!==e.type||"p"!==e.tagName)&&o.push({type:"text",value:"\n"}),"element"!==e.type||"p"!==e.tagName||i?o.push(e):o.push(...e.children)}let s=r[r.length-1];s&&(i||"element"!==s.type||"p"!==s.tagName)&&o.push({type:"text",value:"\n"});let u={type:"element",tagName:"li",properties:l,children:o};
2return e.patch(t,u),e.applyData(t,u)},list:function(e,t){let n={},r=e.all(t),i=-1;for("number"==typeof t.start&&1!==t.start&&(n.start=t.start);++i<r.length;){let e=r[i];if("element"===e.type&&"li"===e.tagName&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}let l={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,l),e.applyData(t,l)},paragraph:function(e,t){let n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},root:function(e,t){let n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)},strong:function(e,t){let n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},table:function(e,t){let n=e.all(t),r=n.shift(),i=[];if(r){let n={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],n),i.push(n)}if(n.length>0){let r={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},l=tk(t.children[1]),o=tv(t.children[t.children.length-1]);l&&o&&(r.position={start:l,end:o}),i.push(r)}let l={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,l),e.applyData(t,l)},tableCell:function(e,t){let n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){let r=n?n.children:void 0,i=0===(r?r.indexOf(t):1)?"th":"td",l=n&&"table"===n.type?n.align:void 0,o=l?l.length:t.children.length,a=-1,s=[];for(;++a<o;){let n=t.children[a],r={},o=l?l[a]:void 0;o&&(r.align=o);let u={type:"element",tagName:i,properties:r,children:[]};n&&(u.children=e.all(n),e.patch(n,u),u=e.applyData(n,u)),s.push(u)}let u={type:"element",tagName:"tr",properties:{},children:e.wrap(s,!0)};return e.patch(t,u),e.applyData(t,u)},text:function(e,t){let n={type:"text",value:function(e){let t=String(e),n=/\r?\n|\r/g,r=n.exec(t),i=0,l=[];for(;r;)l.push(rg(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return l.push(rg(t.slice(i),i>0,!1)),l.join("")}(String(t.value))};return e.patch(t,n),e.applyData(t,n)},thematicBreak:function(e,t){let n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)},toml:rx,yaml:rx,definition:rx,footnoteDefinition:rx};function rx(){}let rb={}.hasOwnProperty,rv={};function rk(e,t){e.position&&(t.position=function(e){let t=tk(e),n=tv(e);if(t&&n)return{start:t,end:n}}(e))}function rw(e,t){let n=t;if(e&&e.data){let t=e.data.hName,r=e.data.hChildren,i=e.data.hProperties;"string"==typeof t&&("element"===n.type?n.tagName=t:n={type:"element",tagName:t,properties:{},children:"children"in n?n.children:[n]}),"element"===n.type&&i&&Object.assign(n.properties,ri(i)),"children"in n&&n.children&&null!=r&&(n.children=r)}return n}function rS(e,t){let n=[],r=-1;for(t&&n.push({type:"text",value:"\n"});++r<e.length;)r&&n.push({type:"text",value:"\n"}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:"\n"}),n}function rj(e){let t=0,n=e.charCodeAt(t);for(;9===n||32===n;)t++,n=e.charCodeAt(t);return e.slice(t)}function rC(e,t){let n,r,i,l,o=(n=t||rv,r=new Map,i=new Map,l={all:function(e){let t=[];if("children"in e){let n=e.children,r=-1;for(;++r<n.length;){let i=l.one(n[r],e);if(i){if(r&&"break"===n[r-1].type&&(Array.isArray(i)||"text"!==i.type||(i.value=rj(i.value)),!Array.isArray(i)&&"element"===i.type)){let e=i.children[0];e&&"text"===e.type&&(e.value=rj(e.value))}Array.isArray(i)?t.push(...i):t.push(i)}}}return t},applyData:rw,definitionById:r,footnoteById:i,footnoteCounts:new Map,footnoteOrder:[],handlers:{...ry,...n.handlers},one:function(e,t){let n=e.type,r=l.handlers[n];if(rb.call(l.handlers,n)&&r)return r(l,e,t);if(l.options.passThrough&&l.options.passThrough.includes(n)){if("children"in e){let{children:t,...n}=e,r=ri(n);return r.children=l.all(e),r}return ri(e)}return(l.options.unknownHandler||function(e,t){let n=t.data||{},r="value"in t&&!(rb.call(n,"hProperties")||rb.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)})(l,e,t)},options:n,patch:rk,wrap:rS},rp(e,function(e){if("definition"===e.type||"footnoteDefinition"===e.type){let t="definition"===e.type?r:i,n=String(e.identifier).toUpperCase();t.has(n)||t.set(n,e)}}
2),l),a=o.one(e,void 0),s=function(e){let t="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||ro,r=e.options.footnoteBackLabel||ra,i=e.options.footnoteLabel||"Footnotes",l=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},a=[],s=-1;for(;++s<e.footnoteOrder.length;){let i=e.footnoteById.get(e.footnoteOrder[s]);if(!i)continue;let l=e.all(i),o=String(i.identifier).toUpperCase(),u=rl(o.toLowerCase()),c=0,d=[],f=e.footnoteCounts.get(o);for(;void 0!==f&&++c<=f;){d.length>0&&d.push({type:"text",value:" "});let e="string"==typeof n?n:n(s,c);"string"==typeof e&&(e={type:"text",value:e}),d.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+u+(c>1?"-"+c:""),dataFootnoteBackref:"",ariaLabel:"string"==typeof r?r:r(s,c),className:["data-footnote-backref"]},children:Array.isArray(e)?e:[e]})}let p=l[l.length-1];if(p&&"element"===p.type&&"p"===p.tagName){let e=p.children[p.children.length-1];e&&"text"===e.type?e.value+=" ":p.children.push({type:"text",value:" "}),p.children.push(...d)}else l.push(...d);let h={type:"element",tagName:"li",properties:{id:t+"fn-"+u},children:e.wrap(l,!0)};e.patch(i,h),a.push(h)}if(0!==a.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:l,properties:{...ri(o),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(a,!0)}
2,{type:"text",value:"\n"}]}}(o),u=Array.isArray(a)?{type:"root",children:a}:a||{type:"root",children:[]};return s&&(eH("children"in u),u.children.push({type:"text",value:"\n"},s)),u}function rE(e,t){return e&&"run"in e?async function(n,r){let i=rC(n,{file:r,...t});await e.run(i,r)}:function(n,r){return rC(n,{file:r,...e||t})}}function rA(e){if(e)throw e}var rN=e.i(975609);function rT(e){if("object"!=typeof e||null===e)return!1;let t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}let rD=function(e,t){let n;if(void 0!==t&&"string"!=typeof t)throw TypeError('"ext" argument must be a string');rM(e);let r=0,i=-1,l=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;l--;)if(47===e.codePointAt(l)){if(n){r=l+1;break}}else i<0&&(n=!0,i=l+1);return i<0?"":e.slice(r,i)}if(t===e)return"";let o=-1,a=t.length-1;for(;l--;)if(47===e.codePointAt(l)){if(n){r=l+1;break}}else o<0&&(n=!0,o=l+1),a>-1&&(e.codePointAt(l)===t.codePointAt(a--)?a<0&&(i=l):(a=-1,i=o));return r===i?i=o:i<0&&(i=e.length),e.slice(r,i)},rP=function(e){let t;if(rM(e),0===e.length)return".";let n=-1,r=e.length;for(;--r;)if(47===e.codePointAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.codePointAt(0)?"/":".":1===n&&47===e.codePointAt(0)?"//":e.slice(0,n)},rL=function(e){let t;rM(e);let n=e.length,r=-1,i=0,l=-1,o=0;for(;n--;){let a=e.codePointAt(n);if(47===a){if(t){i=n+1;break}continue}r<0&&(t=!0,r=n+1),46===a?l<0?l=n:1!==o&&(o=1):l>-1&&(o=-1)}return l<0||r<0||0===o||1===o&&l===r-1&&l===i+1?"":e.slice(l,r)},rF=function(...e){var t;let n,r,i,l=-1;for(;++l<e.length;)rM(e[l]),e[l]&&(i=void 0===i?e[l]:i+"/"+e[l]);return void 0===i?".":(rM(t=i),n=47===t.codePointAt(0),0!==(r=function(e,t){let n,r,i="",l=0,o=-1,a=0,s=-1;for(;++s<=e.length;){if(s<e.length)n=e.codePointAt(s);else if(47===n)break;else n=47;if(47===n){if(o===s-1||1===a);else if(o!==s-1&&2===a){if(i.length<2||2!==l||46!==i.codePointAt(i.length-1)||46!==i.codePointAt(i.length-2)){if(i.length>2){if((r=i.lastIndexOf("/"))!==i.length-1){r<0?(i="",l=0):l=(i=i.slice(0,r)).length-1-i.lastIndexOf("/"),o=s,a=0;continue}}else if(i.length>0){i="",l=0,o=s,a=0;continue}}t&&(i=i.length>0?i+"/..":"..",l=2)}else i.length>0?i+="/"+e.slice(o+1,s):i=e.slice(o+1,s),l=s-o-1;o=s,a=0}else 46===n&&a>-1?a++:a=-1}return i}(t,!n)).length||n||(r="."),r.length>0&&47===t.codePointAt(t.length-1)&&(r+="/"),n?"/"+r:r)};function rM(e){if("string"!=typeof e)throw TypeError("Path must be a string. Received "+JSON.stringify(e))}function rO(e){return!!(null!==e&&"object"==typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}let rI=["history","path","basename","stem","extname","dirname"];class rz{constructor(e){let t,n;t=e?rO(e)?{path:e}:"string"==typeof e||function(e){return!!(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(e)?{value:e}:e:{},this.cwd="cwd"in t?"":"/",this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<rI.length;){const e=rI[r];e in t&&void 0!==t[e]&&null!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(n in t)rI.includes(n)||(this[n]=t[n])}get basename(){return"string"==typeof this.path?rD(this.path):void 0}set basename(e){r_(e,"basename"),rR(e,"basename"),this.path=rF(this.dirname||"",e)}get dirname(){return"string"==typeof this.path?rP(this.path):void 0}set dirname(e){rB(this.basename,"dirname"),this.path=rF(e||"",this.basename)}get extname(){return"string"==typeof this.path?rL(this.path):void 0}set extname(e){if(rR(e,"extname"),rB(this.dirname,"extname"),e){if(46!==e.codePointAt(0))throw Error("`extname` must start with `.`");if(e.includes(".",1))throw Error("`extname` cannot contain multiple dots")}this.path=rF(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){rO(e)&&(e=function(e){if("string"==typeof e)e=new URL(e);else if(!rO(e)){let t=TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if("file:"!==e.protocol){let e=TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){let e=TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}let t=e.pathname,n=-1;for(;++n<t.length;)if(37===t.codePointAt(n)&&50===t.codePointAt(n+1)){let e=t.codePointAt(n+2);if(70===e||102===e){let e=TypeError("File URL path must not include encoded / characters");throw e.code="ERR_INVALID_FILE_URL_PATH",e}}return decodeURIComponent(t)}(e)}(e)),r_(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return"string"==typeof this.path?rD(this.path,this.extname):void 0}set stem(e){r_(e,"stem"),rR(e,"stem"),this.path=rF(this.dirname||"",e+(this.extname||""))}fail(e,t,n){let r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){let r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){let r=new tA(e,t,n);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){return void 0===this.value?"":"string"==typeof this.value?this.value:new TextDecoder(e||void 0).decode(this.value)}}function rR(e,t){if(e&&e.includes("/"))throw Error("`"+t+"` cannot be a path: did not expect `/`")}function r_(e,t){if(!e)throw Error("`"+t+"` cannot be empty")}function rB(e,t){if(!e)throw Error("Setting `"+t+"` requires `path` to be set too")}let rU=function(e){let t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r},rH={}.hasOwnProperty;class rq extends rU{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=function(){let e=[],t={run:function(...t){let n=-1,r=t.pop();if("function"!=typeof r)throw TypeError("Expected function as last argument, not "+r);!function i(l,...o){let a=e[++n],s=-1;if(l)return void r(l);for(;++s<t.length;)(null===o[s]||void 0===o[s])&&(o[s]=t[s]);t=o,a?(function(e,t){let n;return function(...t){let l,o=e.length>t.length;o&&t.push(r);try{l=e.apply(this,t)}catch(e){if(o&&n)throw e;return r(e)}o||(l&&l.then&&"function"==typeof l.then?l.then(i,r):l instanceof Error?r(l):i(l))};function r(e,...i){n||(n=!0,t(e,...i))}function i(e){r(null,e)}})(a,i)(...o):r(null,...o)}(null,...t)},use:function(n){if("function"!=typeof n)throw TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}()}copy(){let e=new rq,t=-1;for(;++t<this.attachers.length;){let n=this.attachers[t];e.use(...n)}return e.data((0,rN.default)(!0,{},this.namespace)),e}data(e,t){return"string"==typeof e?2==arguments.length?(rK("data",this.frozen),this.namespace[e]=t,this):rH.
2call(this.namespace,e)&&this.namespace[e]||void 0:e?(rK("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;for(;++this.freezeIndex<this.attachers.length;){let[e,...t]=this.attachers[this.freezeIndex];if(!1===t[0])continue;!0===t[0]&&(t[0]=void 0);let n=e.call(this,...t);"function"==typeof n&&this.transformers.use(n)}return this.frozen=!0,this.freezeIndex=1/0,this}parse(e){this.freeze();let t=rJ(e),n=this.parser||this.Parser;return rV("parse",n),n(String(t),t)}process(e,t){let n=this;return this.freeze(),rV("process",this.parser||this.Parser),rW("process",this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,i){let l=rJ(e),o=n.parse(l);function a(e,n){e||!n?i(e):r?r(n):(eH(t,"`done` is defined if `resolve` is not"),t(void 0,n))}n.run(o,l,function(e,t,r){var i,l;if(e||!t||!r)return a(e);let o=n.stringify(t,r);"string"==typeof(i=o)||(l=i)&&"object"==typeof l&&"byteLength"in l&&"byteOffset"in l?r.value=o:r.result=o,a(e,r)})}}processSync(e){let t,n=!1;return this.freeze(),rV("processSync",this.parser||this.Parser),rW("processSync",this.compiler||this.Compiler),this.process(e,function(e,r){n=!0,rA(e),t=r}),rX("processSync","process",n),eH(t,"we either bailed on an error or have a tree"),t}run(e,t,n){rQ(e),this.freeze();let r=this.transformers;return n||"function"!=typeof t||(n=t,t=void 0),n?i(void 0,n):new Promise(i);function i(i,l){eH("function"!=typeof t,"`file` canât be a `done` anymore, we checked");let o=rJ(t);r.run(e,o,function(t,r,o){let a=r||e;t?l(t):i?i(a):(eH(n,"`done` is defined if `resolve` is not"),n(void 0,a,o))})}}runSync(e,t){let n,r=!1;return this.run(e,t,function(e,t){rA(e),n=t,r=!0}),rX("runSync","run",r),eH(n,"we either bailed on an error or have a tree"),n}stringify(e,t){this.freeze();let n=rJ(t),r=this.compiler||this.Compiler;return rW("stringify",r),rQ(e),r(e,n)}use(e,...t){let n=this.attachers,r=this.namespace;if(rK("use",this.frozen),null==e);else if("function"==typeof e)o(e,t);else if("object"==typeof e)Array.isArray(e)?l(e):i(e);else throw TypeError("Expected usable value, not `"+e+"`");return this;function i(e){if(!("plugins"in e)&&!("settings"in e))throw Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");l(e.plugins),e.settings&&(r.settings=(0,rN.default)(!0,r.settings,e.settings))}function l(e){let t=-1;if(null==e);else if(Array.isArray(e))for(;++t<e.length;)!function(e){if("function"==typeof e)o(e,[]);else if("object"==typeof e)if(Array.isArray(e)){let[t,...n]=e;o(t,n)}else i(e);else throw TypeError("Expected usable value, not `"+e+"`")}(e[t]);else throw TypeError("Expected a list of plugins, not `"+e+"`")}function o(e,t){let r=-1,i=-1;for(;++r<n.length;)if(n[r][0]===e){i=r;break}if(-1===i)n.push([e,...t]);else if(t.length>0){let[r,...l]=t,o=n[i][1];rT(o)&&rT(r)&&(r=(0,rN.default)(!0,o,r)),n[i]=[e,r,...l]}}}}let r$=new rq().freeze();function rV(e,t){if("function"!=typeof t)throw TypeError("Cannot `"+e+"` without `parser`")}function rW(e,t){if("function"!=typeof t)throw TypeError("Cannot `"+e+"` without `compiler`")}function rK(e,t){if(t)throw Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function rQ(e){if(!rT(e)||"string"!=typeof e.type)throw TypeError("Expected node, got `"+e+"`")}function rX(e,t,n){if(!n)throw Error("`"+e+"` finished async. Use `"+t+"` instead")}function rJ(e){var t;return(t=e)&&"object"==typeof t&&"message"in t&&"messages"in t?e:new rz(e)}let rY=[],rZ={allowDangerousHtml:!0},rG=/^(https?|ircs?|mailto|xmpp)$/i,r0=[{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 r1(e){var n;let r,i,l,o,a,s=(r=(n=e).rehypePlugins||rY,i=n.remarkPlugins||rY,l=n.remarkRehypeOptions?{...n.remarkRehypeOptions,...rZ}:rZ,r$().use(n3).use(i).use(rE,l).use(r)),u=(o=e.children||"",a=new rz,"string"==typeof o?a.value=o:eq("Unexpected value `"+o+"` for `children` prop, expected `string`"),a);return function(e,n){let r=n.allowedElements,i=n.allowElement,l=n.components,o=n.disallowedElements,a=n.skipHtml,s=n.unwrapDisallowed,u=n.urlTransform||r2;for(let e of r0)Object.hasOwn(n,e.from)&&eq("Unexpected `"+e.from+"` prop, "+(e.to?"use `"+e.to+"` instead":"remove it")+" (see <https://github.com/remarkjs/react-markdown/blob/main/changelog.md#"+e.id+"> for more info)");return r&&o&&eq("Unexpected combined `allowedElements` and `disallowedElements`, expected one or the other"),rp(e,function(e,t,n){if("raw"===e.type&&n&&"number"==typeof t)return a?n.children.splice(t,1):n.children[t]={type:"text",value:e.value},t;if("element"===e.type){let t;for(t in tU)if(Object.hasOwn(tU,t)&&Object.hasOwn(e.properties,t)){let n=e.properties[t],r=tU[t];(null===r||r.includes(e.tagName))&&(e.properties[t]=u(String(n||""),t,e))}}if("element"===e.type){let l=r?!r.includes(e.tagName):!!o&&o.includes(e.tagName);if(!l&&i&&"number"==typeof t&&(l=!i(e,t,n)),l&&n&&"number"==typeof t)return s&&e.children?n.children.splice(t,1,...e.children):n.children.splice(t,1),t}}),function(e,t){var n,r,i,l;let o;if(!t||void 0===t.Fragment)throw TypeError("Expected `Fragment` in options");let a=t.filePath||void 0;if(t.development){if("function"!=typeof t.jsxDEV)throw TypeError("Expected `jsxDEV` in options when `development: true`");n=a,r=t.jsxDEV,o=function(e,t,i,l){let o=Array.isArray(i.children),a=tk(e);return r(t,i,l,o,{columnNumber:a?a.column-1:void 0,fileName:n,lineNumber:a?a.line:void 0},void 0)}}else{if("function"!=typeof t.jsx)throw TypeError("Expected `jsx` in production options");
2if("function"!=typeof t.jsxs)throw TypeError("Expected `jsxs` in production options");i=t.jsx,l=t.jsxs,o=function(e,t,n,r){let o=Array.isArray(n.children)?l:i;return r?o(t,n,r):o(t,n)}}let s={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:o,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:a,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:!1!==t.passKeys,passNode:t.passNode||!1,schema:"svg"===t.space?tx:ty,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==t.tableCellAlignToStyle},u=tM(s,e,void 0);return u&&"string"!=typeof u?u:s.create(e,s.Fragment,{children:u||void 0},void 0)}(e,{Fragment:t.Fragment,components:l,ignoreInvalidStyle:!0,jsx:t.jsx,jsxs:t.jsxs,passKeys:!0,passNode:!0})}(s.runSync(s.parse(u),u),e)}function r2(e){let t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return -1===t||-1!==i&&t>i||-1!==n&&t>n||-1!==r&&t>r||rG.test(e.slice(0,t))?e:""}function r5(e,t){let n=String(e);if("string"!=typeof t)throw TypeError("Expected character");let r=0,i=n.indexOf(t);for(;-1!==i;)r++,i=n.indexOf(t,i+t.length);return r}let r4="phrasing",r3=["autolink","link","image","label"];function r9(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function r6(e){this.config.enter.autolinkProtocol.call(this,e)}function r7(e){this.config.exit.autolinkProtocol.call(this,e)}function r8(e){this.config.exit.data.call(this,e);let t=this.stack[this.stack.length-1];eH("link"===t.type),t.url="http://"+this.sliceSerialize(e)}function ie(e){this.config.exit.autolinkEmail.call(this,e)}function it(e){this.exit(e)}function ir(e){!function(e,t,n){let r=rs((n||{}).ignore||[]),i=function(e){let t=[];if(!Array.isArray(e))throw TypeError("Expected find and replace tuple or list of tuples");let n=!e[0]||Array.isArray(e[0])?e:[e],r=-1;for(;++r<n.length;){var i;let e=n[r];t.push(["string"==typeof(i=e[0])?RegExp(function(e){if("string"!=typeof e)throw TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}(i),"g"):i,function(e){return"function"==typeof e?e:function(){return e}}(e[1])])}return t}(t),l=-1;for(;++l<i.length;)rf(e,"text",o);function o(e,t){let n,o=-1;for(;++o<t.length;){let e=t[o],i=n?n.children:void 0;if(r(e,i?i.indexOf(e):void 0,n))return;n=e}if(n)return function(e,t){let n=t[t.length-1],r=i[l][0],o=i[l][1],a=0,s=n.children.indexOf(e),u=!1,c=[];r.lastIndex=0;let d=r.exec(e.value);for(;d;){let n=d.index,i={index:d.index,input:d.input,stack:[...t,e]},l=o(...d,i);if("string"==typeof l&&(l=l.length>0?{type:"text",value:l}:void 0),!1===l?r.lastIndex=n+1:(a!==n&&c.push({type:"text",value:e.value.slice(a,n)}),Array.isArray(l)?c.push(...l):l&&c.push(l),a=n+d[0].length,u=!0),!r.global)break;d=r.exec(e.value)}return u?(a<e.value.length&&c.push({type:"text",value:e.value.slice(a)}),n.children.splice(s,1,...c)):c=[e],s+c.length}(e,t)}}(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,ii],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,il]],{ignore:["link","linkReference"]})}function ii(e,t,n,r,i){let l,o="";if(!io(i))return!1;if(/^w/i.test(t)&&(n=t+n,t="",o="http://"),(l=n.split(".")).length<2||l[l.length-1]&&(/_/.test(l[l.length-1])||!/[a-zA-Z\d]/.test(l[l.length-1]))||l[l.length-2]&&(/_/.test(l[l.length-2])||!/[a-zA-Z\d]/.test(l[l.length-2])))return!1;let a=function(e){let t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")"),i=r5(e,"("),l=r5(e,")");for(;-1!==r&&i>l;)e+=n.slice(0,r+1),r=(n=n.slice(r+1)).indexOf(")"),l++;return[e,n]}(n+r);if(!a[0])return!1;let 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 il(e,t,n,r){return!(!io(r,!0)||/[-\d_]$/.test(n))&&{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function io(e,t){let n=e.input.charCodeAt(e.index-1);return(0===e.index||t6(n)||t9(n))&&(!t||47!==n)}function ia(){this.buffer()}function is(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function iu(){this.buffer()}function ic(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function id(e){let t=this.resume(),n=this.stack[this.stack.length-1];eH("footnoteReference"===n.type),n.identifier=nF(this.sliceSerialize(e)).toLowerCase(),n.label=t}function ip(e){this.exit(e)}function ih(e){let t=this.resume(),n=this.stack[this.stack.length-1];eH("footnoteDefinition"===n.type),n.identifier=nF(this.sliceSerialize(e)).toLowerCase(),n.label=t}function im(e){this.exit(e)}function ig(e,t,n,r){let i=n.createTracker(r),l=i.move("[^"),o=n.enter("footnoteReference"),a=n.enter("reference");return l+=i.move(n.safe(n.associationId(e),{after:"]",before:l})),a(),o(),l+=i.move("]")}
2function iy(e,t,n){return 0===t?e:ix(e,t,n)}function ix(e,t,n){return(n?"":" ")+e}ig.peek=function(){return"["};let ib=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];function iv(e){this.enter({type:"delete",children:[]},e)}function ik(e){this.exit(e)}function iw(e,t,n,r){let i=n.createTracker(r),l=n.enter("strikethrough"),o=i.move("~~");return o+=n.containerPhrasing(e,{...i.current(),before:o,after:"~"}),o+=i.move("~~"),l(),o}function iS(e){return e.length}function ij(e){let t="string"==typeof e?e.codePointAt(0):0;return 67===t||99===t?99:76===t||108===t?108:114*(82===t||114===t)}iw.peek=function(){return"~"};function iC(e,t,n){let r=e.value||"",i="`",l=-1;for(;RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++l<n.unsafe.length;){let e,t=n.unsafe[l],i=n.compilePattern(t);if(t.atBreak)for(;e=i.exec(r);){let t=e.index;10===r.charCodeAt(t)&&13===r.charCodeAt(t-1)&&t--,r=r.slice(0,t)+" "+r.slice(e.index+1)}}return i+r+i}iC.peek=function(){return"`"};rs(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);let iE=function(e,t,n,r){let i=function(e){let t=e.options.listItemIndent||"one";if("tab"!==t&&"one"!==t&&"mixed"!==t)throw Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}(n),l=n.bulletCurrent||function(e){let t=e.options.bullet||"*";if("*"!==t&&"+"!==t&&"-"!==t)throw Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}(n);t&&"list"===t.type&&t.ordered&&(l=("number"==typeof t.start&&t.start>-1?t.start:1)+(!1===n.options.incrementListMarker?0:t.children.indexOf(e))+l);let o=l.length+1;("tab"===i||"mixed"===i&&(t&&"list"===t.type&&t.spread||e.spread))&&(o=4*Math.ceil(o/4));let a=n.createTracker(r);a.move(l+" ".repeat(o-l.length)),a.shift(o);let s=n.enter("listItem"),u=n.indentLines(n.containerFlow(e,a.current()),function(e,t,n){return t?(n?"":" ".repeat(o))+e:(n?l:l+" ".repeat(o-l.length))+e});return s(),u};function iA(e){let t=e._align;eH(t,"expected `_align` on table"),this.enter({type:"table",align:t.map(function(e){return"none"===e?null:e}),children:[]},e),this.data.inTable=!0}function iN(e){this.exit(e),this.data.inTable=void 0}function iT(e){this.enter({type:"tableRow",children:[]},e)}function iD(e){this.exit(e)}function iP(e){this.enter({type:"tableCell",children:[]},e)}function iL(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,iF));let n=this.stack[this.stack.length-1];eH("inlineCode"===n.type),n.value=t,this.exit(e)}function iF(e,t){return"|"===t?t:e}function iM(e){let t=this.stack[this.stack.length-2];eH("listItem"===t.type),t.checked="taskListCheckValueChecked"===e.type}function iO(e){let t=this.stack[this.stack.length-2];if(t&&"listItem"===t.type&&"boolean"==typeof t.checked){let e=this.stack[this.stack.length-1];eH("paragraph"===e.type);let n=e.children[0];if(n&&"text"===n.type){let r,i=t.children,l=-1;for(;++l<i.length;){let e=i[l];if("paragraph"===e.type){r=e;break}}r===e&&(n.value=n.value.slice(1),0===n.value.length?e.children.shift():e.position&&n.position&&"number"==typeof n.position.start.offset&&(n.position.start.column++,n.position.start.offset++,e.position.start=Object.assign({},n.position.start)))}}this.exit(e)}function iI(e,t,n,r){let i=e.children[0],l="boolean"==typeof e.checked&&i&&"paragraph"===i.type,o="["+(e.checked?"x":" ")+"] ",a=n.createTracker(r);l&&a.move(o);let s=iE(e,t,n,{...r,...a.current()});return l&&(s=s.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,function(e){return e+o})),s}let iz={tokenize:function(e,t,n){let r=0;return function t(l){return(87===l||119===l)&&r<3?(r++,e.consume(l),t):46===l&&3===r?(e.consume(l),i):n(l)};function i(e){return null===e?n(e):t(e)}},partial:!0},iR={tokenize:function(e,t,n){let r,i,l;return o;function o(t){return 46===t||95===t?e.check(iB,s,a)(t):null===t||t4(t)||t6(t)||45!==t&&t9(t)?s(t):(l=!0,e.consume(t),o)}function a(t){return 95===t?r=!0:(i=r,r=void 0),e.consume(t),o}function s(e){return i||r||!l?n(e):t(e)}},partial:!0},i_={tokenize:function(e,t){let n=0,r=0;return i;function i(o){return 40===o?(n++,e.consume(o),i):41===o&&r<n?l(o):33===o||34===o||38===o||39===o||41===o||42===o||44===o||46===o||58===o||59===o||60===o||63===o||93===o||95===o||126===o?e.check(iB,t,l)(o):null===o||t4(o)||t6(o)?t(o):(e.consume(o),i)}function l(t){return 41===t&&r++,e.consume(t),i}},partial:!0},iB={tokenize:function(e,t,n){return r;function r(o){return 33===o||34===o||39===o||41===o||42===o||44===o||46===o||58===o||59===o||63===o||95===o||126===o?(e.consume(o),r):38===o?(e.consume(o),l):93===o?(e.consume(o),i):60===o||null===o||t4(o)||t6(o)?t(o):n(o)}function i(e){return null===e||40===e||91===e||t4(e)||t6(e)?t(e):r(e)}function l(t){return tJ(t)?function t(i){return 59===i?(e.consume(i),r):tJ(i)?(e.consume(i),t):n(i)}(t):n(t)}},partial:!0},iU={tokenize:function(e,t,n){return function(t){return e.consume(t),r};function r(e){return tY(e)?n(e):t(e)}},partial:!0},iH={name:"wwwAutolink",tokenize:function(e,t,n){let r=this;return function(t){return 87!==t&&119!==t||!iK.call(r,r.previous)||iY(r.events)?n(t):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(iz,e.attempt(iR,e.attempt(i_,i),n),n)(t))};function i(n){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(n)}},previous:iK},iq={name:"protocolAutolink",tokenize:function(e,t,n){let r=this,i="",l=!1;return function(t){return(72===t||104===t)&&iQ.call(r,r.previous)&&!iY(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(t),e.consume(t),o):n(t)};function o(t){if(tJ(t)&&i.length<5)return i+=String.fromCodePoint(t),e.consume(t),o;if(58===t){let n=i.toLowerCase();if("http"===n||"https"===n)return e.consume(t),a}return n(t)}function a(t){return 47===t?(e.consume(t),l)?s:(l=!0,a):n(t)}function s(t){return null===t||tG(t)||t4(t)||t6(t)||t9(t)?n(t):e.attempt(iR,e.attempt(i_,u),n)(t)}function u(n){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(n)}},previous:iQ},i$={name:"emailAutolink",tokenize:function(e,t,n){let r,i,l=this;return function(t){return!iJ(t)||!iX.call(l,l.previous)||iY(l.events)?n(t):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),function t(r){return iJ(r)?(e.consume(r),t):64===r?(e.consume(r),o):n(r)}(t))};function o(t){return 46===t?e.check(iU,s,a)(t):45===t||95===t||tY(t)?(i=!0,e.consume(t),o):s(t)}function a(t){return e.consume(t),r=!0,o}function s(o){return i&&r&&tJ(l.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(o)):n(o)}},previous:iX},iV={},iW=48;for(;iW<123;)iV[iW]=i$,58==++iW?iW=65:91===iW&&(iW=97);function iK(e){return null===e||40===e||42===e||95===e||91===e||93===e||126===e||t4(e)}function iQ(e){return!tJ(e)}function iX(e){return!(47===e||iJ(e))}function iJ(e){return 43===e||45===e||46===e||95===e||tY(e)}function iY(e){let t=e.length,n=!1;for(;t--;){let r=e[t][1];if(("labelLink"===r.type||"labelImage"===r.type)&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}iV[43]=i$,iV[45]=i$,iV[46]=i$,iV[95]=i$,iV[72]=[i$,iq],iV[104]=[i$,iq],iV[87]=[i$,iH],iV[119]=[i$,iH];let iZ={tokenize:function(e,t,n){let r=this;return t8(e,function(e){let i=r.events[r.events.length-1];return i&&"gfmFootnoteDefinitionIndent"===i[1].type&&4===i[2].sliceSerialize(i[1],!0).length?t(e):n(e)},"gfmFootnoteDefinitionIndent",5)},partial:!0};function iG(e,t,n){let r,i=this,l=i.events.length,o=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);for(;l--;){let e=i.events[l][1];if("labelImage"===e.type){r=e;break}if("gfmFootnoteCall"===e.type||"labelLink"===e.type||"label"===e.type||"image"===e.type||"link"===e.type)break}return function(l){if(!r||!r._balanced)return n(l);let a=nF(i.sliceSerialize({start:r.end,end:i.now()}));return 94===a.codePointAt(0)&&o.includes(a.slice(1))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),t(l)):n(l)}}function i0(e,t){let n=e.length;for(;n--;
2)if("labelImage"===e[n][1].type&&"enter"===e[n][0]){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";let r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;let l={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},o={type:"chunkString",contentType:"string",start:Object.assign({},l.start),end:Object.assign({},l.end)},a=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",l,t],["enter",o,t],["exit",o,t],["exit",l,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...a),e}function i1(e,t,n){let r,i=this,l=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]),o=0;return function(t){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(t),e.exit("gfmFootnoteCallLabelMarker"),a};function a(t){return 94!==t?n(t):(e.enter("gfmFootnoteCallMarker"),e.consume(t),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",s)}function s(a){if(o>999||93===a&&!r||null===a||91===a||t4(a))return n(a);if(93===a){e.exit("chunkString");let r=e.exit("gfmFootnoteCallString");return l.includes(nF(i.sliceSerialize(r)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(a),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(a)}return t4(a)||(r=!0),o++,e.consume(a),92===a?u:s}function u(t){return 91===t||92===t||93===t?(e.consume(t),o++,s):s(t)}}function i2(e,t,n){let r,i,l=this,o=l.parser.gfmFootnotes||(l.parser.gfmFootnotes=[]),a=0;return function(t){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),s};function s(t){return 94===t?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",u):n(t)}function u(t){if(a>999||93===t&&!i||null===t||91===t||t4(t))return n(t);if(93===t){e.exit("chunkString");let n=e.exit("gfmFootnoteDefinitionLabelString");return r=nF(l.sliceSerialize(n)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),d}return t4(t)||(i=!0),a++,e.consume(t),92===t?c:u}function c(t){return 91===t||92===t||93===t?(e.consume(t),a++,u):u(t)}function d(t){return 58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),o.includes(r)||o.push(r),t8(e,f,"gfmFootnoteDefinitionWhitespace")):n(t)}function f(e){return t(e)}}function i5(e,t,n){return e.check(nr,t,e.attempt(iZ,t,n))}function i4(e){e.exit("gfmFootnoteDefinition")}class i3{constructor(){this.map=[]}add(e,t,n){!function(e,t,n,r){let i=0;if(0!==n||0!==r.length){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=n,e.map[i][2].push(...r);return}i+=1}e.map.push([t,n,r])}}(this,e,t,n)}consume(e){if(this.map.sort(function(e,t){return e[0]-t[0]}),0===this.map.length)return;let t=this.map.length,n=[];for(;t>0;)t-=1,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let r=n.pop();for(;r;){for(let t of r)e.push(t);r=n.pop()}this.map.length=0}}function i9(e,t,n){let r,i=this,l=0,o=0;return function(e){let t=i.events.length-1;for(;t>-1;){let e=i.events[t][1].type;if("lineEnding"===e||"linePrefix"===e)t--;else break}let r=t>-1?i.events[t][1].type:null,l="tableHead"===r||"tableRow"===r?x:a;return l===x&&i.parser.lazy[i.now().line]?n(e):l(e)};function a(t){var n;return e.enter("tableHead"),e.enter("tableRow"),124===(n=t)||(r=!0,o+=1),s(n)}function s(t){return null===t?n(t):t5(t)?o>1?(o=0,i.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),d):n(t):t3(t)?t8(e,s,"whitespace")(t):(o+=1,r&&(r=!1,l+=1),124===t)?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),r=!0,s):(e.enter("data"),u(t))}function u(t){return null===t||124===t||t4(t)?(e.exit("data"),s(t)):(e.consume(t),92===t?c:u)}function c(t){return 92===t||124===t?(e.consume(t),u):u(t)}function d(t){return(i.interrupt=!1,i.parser.lazy[i.now().line])?n(t):(e.enter("tableDelimiterRow"),r=!1,t3(t))?t8(e,f,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):f(t)}
2function f(t){return 45===t||58===t?h(t):124===t?(r=!0,e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),p):n(t)}function p(t){return t3(t)?t8(e,h,"whitespace")(t):h(t)}function h(t){return 58===t?(o+=1,r=!0,e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),m):45===t?(o+=1,m(t)):null===t||t5(t)?y(t):n(t)}function m(t){return 45===t?(e.enter("tableDelimiterFiller"),function t(n){return 45===n?(e.consume(n),t):58===n?(r=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(n),e.exit("tableDelimiterMarker"),g):(e.exit("tableDelimiterFiller"),g(n))}(t)):n(t)}function g(t){return t3(t)?t8(e,y,"whitespace")(t):y(t)}function y(i){if(124===i)return f(i);if(null===i||t5(i))return r&&l===o?(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(i)):n(i);return n(i)}function x(t){return e.enter("tableRow"),b(t)}function b(n){return 124===n?(e.enter("tableCellDivider"),e.consume(n),e.exit("tableCellDivider"),b):null===n||t5(n)?(e.exit("tableRow"),t(n)):t3(n)?t8(e,b,"whitespace")(n):(e.enter("data"),v(n))}function v(t){return null===t||124===t||t4(t)?(e.exit("data"),b(t)):(e.consume(t),92===t?k:v)}function k(t){return 92===t||124===t?(e.consume(t),v):v(t)}}function i6(e,t){let n,r,i,l=-1,o=!0,a=0,s=[0,0,0,0],u=[0,0,0,0],c=!1,d=0,f=new i3;for(;++l<e.length;){let p=e[l],h=p[1];"enter"===p[0]?"tableHead"===h.type?(c=!1,0!==d&&(i8(f,t,d,n,r),r=void 0,d=0),n={type:"table",start:Object.assign({},h.start),end:Object.assign({},h.end)},f.add(l,0,[["enter",n,t]])):"tableRow"===h.type||"tableDelimiterRow"===h.type?(o=!0,i=void 0,s=[0,0,0,0],u=[0,l+1,0,0],c&&(c=!1,r={type:"tableBody",start:Object.assign({},h.start),end:Object.assign({},h.end)},f.add(l,0,[["enter",r,t]])),a="tableDelimiterRow"===h.type?2:r?3:1):a&&("data"===h.type||"tableDelimiterMarker"===h.type||"tableDelimiterFiller"===h.type)?(o=!1,0===u[2]&&(0!==s[1]&&(u[0]=u[1],i=i7(f,t,s,a,void 0,i),s=[0,0,0,0]),u[2]=l)):"tableCellDivider"===h.type&&(o?o=!1:(0!==s[1]&&(u[0]=u[1],i=i7(f,t,s,a,void 0,i)),u=[(s=u)[1],l,0,0])):"tableHead"===h.type?(c=!0,d=l):"tableRow"===h.type||"tableDelimiterRow"===h.type?(d=l,0!==s[1]?(u[0]=u[1],i=i7(f,t,s,a,l,i)):0!==u[1]&&(i=i7(f,t,u,a,l,i)),a=0):a&&("data"===h.type||"tableDelimiterMarker"===h.type||"tableDelimiterFiller"===h.type)&&(u[3]=l)}for(0!==d&&i8(f,t,d,n,r),f.consume(t.events),l=-1;++l<t.events.length;){let e=t.events[l];"enter"===e[0]&&"table"===e[1].type&&(e[1]._align=function(e,t){let n=!1,r=[];for(;t<e.length;){let i=e[t];if(n){if("enter"===i[0])"tableContent"===i[1].type&&r.push("tableDelimiterMarker"===e[t+1][1].type?"left":"none");else if("tableContent"===i[1].type){if("tableDelimiterMarker"===e[t-1][1].type){let e=r.length-1;r[e]="left"===r[e]?"center":"right"}}else if("tableDelimiterRow"===i[1].type)break}else"enter"===i[0]&&"tableDelimiterRow"===i[1].type&&(n=!0);t+=1}return r}(t.events,l))}return e}function i7(e,t,n,r,i,l){0!==n[0]&&(l.end=Object.assign({},le(t.events,n[0])),e.add(n[0],0,[["exit",l,t]]));let o=le(t.events,n[1]);if(l={type:1===r?"tableHeader":2===r?"tableDelimiter":"tableData",start:Object.assign({},o),end:Object.assign({},o)},e.add(n[1],0,[["enter",l,t]]),0!==n[2]){let i=le(t.events,n[2]),l=le(t.events,n[3]),o={type:"tableContent",start:Object.assign({},i),end:Object.assign({},l)};if(e.add(n[2],0,[["enter",o,t]]),2!==r){let r=t.events[n[2]],i=t.events[n[3]];if(r[1].end=Object.assign({},i[1].end),r[1].type="chunkText",r[1].contentType="text",n[3]>n[2]+1){let t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[["exit",o,t]])}return void 0!==i&&(l.end=Object.assign({},le(t.events,i)),e.add(i,0,[["exit",l,t]]),l=void 0),l}function i8(e,t,n,r,i){let l=[],o=le(t.events,n);i&&(i.end=Object.assign({},o),l.push(["exit",i,t])),r.end=Object.assign({},o),l.push(["exit",r,t]),e.add(n+1,0,l)}function le(e,t){let n=e[t],r="enter"===n[0]?"start":"end";return n[1][r]}let lt={name:"tasklistCheck",tokenize:function(e,t,n){let r=this;return function(t){return null===r.previous&&r._gfmTasklistFirstContentOfListItem?(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),i):n(t)};function i(t){return t4(t)?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),l):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),l):n(t)}function l(t){return 93===t?(e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),o):n(t)}function o(r){return t5(r)?t(r):t3(r)?e.check({tokenize:ln},t,n)(r):n(r)}}};
2function ln(e,t,n){return t8(e,function(e){return null===e?n(e):t(e)},"whitespace")}let lr={};function li(e){let t,n,r,i=e||lr,l=this.data(),o=l.micromarkExtensions||(l.micromarkExtensions=[]),a=l.fromMarkdownExtensions||(l.fromMarkdownExtensions=[]),s=l.toMarkdownExtensions||(l.toMarkdownExtensions=[]);o.push(tX([{text:iV},{document:{91:{name:"gfmFootnoteDefinition",tokenize:i2,continuation:{tokenize:i5},exit:i4}},text:{91:{name:"gfmFootnoteCall",tokenize:i1},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:iG,resolveTo:i0}}},(t=(i||{}).singleTilde,n={name:"strikethrough",tokenize:function(e,n,r){let i=this.previous,l=this.events,o=0;return function(a){return 126===i&&"characterEscape"!==l[l.length-1][1].type?r(a):(e.enter("strikethroughSequenceTemporary"),function l(a){let s=ng(i);if(126===a)return o>1?r(a):(e.consume(a),o++,l);if(o<2&&!t)return r(a);let u=e.exit("strikethroughSequenceTemporary"),c=ng(a);return u._open=!c||2===c&&!!s,u._close=!s||2===s&&!!c,n(a)}(a))}},resolveAll:function(e,t){let n=-1;for(;++n<e.length;)if("enter"===e[n][0]&&"strikethroughSequenceTemporary"===e[n][1].type&&e[n][1]._close){let r=n;for(;r--;)if("exit"===e[r][0]&&"strikethroughSequenceTemporary"===e[r][1].type&&e[r][1]._open&&e[n][1].end.offset-e[n][1].start.offset==e[r][1].end.offset-e[r][1].start.offset){e[n][1].type="strikethroughSequence",e[r][1].type="strikethroughSequence";let i={type:"strikethrough",start:Object.assign({},e[r][1].start),end:Object.assign({},e[n][1].end)},l={type:"strikethroughText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},o=[["enter",i,t],["enter",e[r][1],t],["exit",e[r][1],t],["enter",l,t]],a=t.parser.constructs.insideSpan.null;a&&tW(o,o.length,0,ny(a,e.slice(r+1,n),t)),tW(o,o.length,0,[["exit",l,t],["enter",e[n][1],t],["exit",e[n][1],t],["exit",i,t]]),tW(e,r-1,n-r+3,o),n=r+o.length-2;break}}for(n=-1;++n<e.length;)"strikethroughSequenceTemporary"===e[n][1].type&&(e[n][1].type="data");return e}},null==t&&(t=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}}),{flow:{null:{name:"table",tokenize:i9,resolveAll:i6}}},{text:{91:lt}}])),a.push([{transforms:[ir],enter:{literalAutolink:r9,literalAutolinkEmail:r6,literalAutolinkHttp:r6,literalAutolinkWww:r6},exit:{literalAutolink:it,literalAutolinkEmail:ie,literalAutolinkHttp:r7,literalAutolinkWww:r8}},{enter:{gfmFootnoteCallString:ia,gfmFootnoteCall:is,gfmFootnoteDefinitionLabelString:iu,gfmFootnoteDefinition:ic},exit:{gfmFootnoteCallString:id,gfmFootnoteCall:ip,gfmFootnoteDefinitionLabelString:ih,gfmFootnoteDefinition:im}},{canContainEols:["delete"],enter:{strikethrough:iv},exit:{strikethrough:ik}},{enter:{table:iA,tableData:iP,tableHeader:iP,tableRow:iT},exit:{codeText:iL,table:iN,tableData:iD,tableHeader:iD,tableRow:iD}},{exit:{taskListCheckValueChecked:iM,taskListCheckValueUnchecked:iM,paragraph:iO}}]),s.push({extensions:[{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:r4,notInConstruct:r3},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:r4,notInConstruct:r3},{character:":",before:"[ps]",after:"\\/",inConstruct:r4,notInConstruct:r3}]},(r=!1,i&&i.firstLineBlank&&(r=!0),{handlers:{footnoteDefinition:function(e,t,n,i){let l=n.createTracker(i),o=l.move("[^"),a=n.enter("footnoteDefinition"),s=n.enter("label");return o+=l.move(n.safe(n.associationId(e),{before:o,after:"]"})),s(),o+=l.move("]:"),e.children&&e.children.length>0&&(l.shift(4),o+=l.move((r?"\n":" ")+n.indentLines(n.containerFlow(e,l.current()),r?ix:iy))),a(),o},footnoteReference:ig},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]}),{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:ib}],handlers:{delete:iw}},function(e){let t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,l=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:"\n",inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:function(e,t,n){let r=iC(e,t,n);return n.stack.includes("tableCell")&&(r=r.replace(/\|/g,"\\$&")),r},table:function(e,t,n,r){return a(function(e,t,n){let r=e.children,i=-1,l=[],o=t.enter("table");for(;++i<r.length;)l[i]=s(r[i],t,n);return o(),l}(e,n,r),e.align)},tableCell:o,tableRow:function(e,t,n,r){let i=a([s(e,n,r)]);return i.slice(0,i.indexOf("\n"))}}};function o(e,t,n,r){let i=n.enter("tableCell"),o=n.enter("phrasing"),a=n.containerPhrasing(e,{...r,before:l,after:l});return o(),i(),a}function a(e,t){return function(e,t){let n=t||{},r=(n.align||[]).concat(),i=n.stringLength||iS,l=[],o=[],a=[],s=[],u=0,c=-1;for(;++c<e.length;){let t=[],r=[],l=-1;for(e[c].length>u&&(u=e[c].length);++l<e[c].length;){var d;let o=null==(d=e[c][l])?"":String(d);if(!1!==n.alignDelimiters){let e=i(o);r[l]=e,(void 0===s[l]||e>s[l])&&(s[l]=e)}t.push(o)}o[c]=t,a[c]=r}let f=-1;if("object"==typeof r&&"length"in r)for(;++f<u;)l[f]=ij(r[f]);else{let e=ij(r);for(;++f<u;)l[f]=e}f=-1;let p=[],h=[];for(;++f<u;){let e=l[f],t="",r="";99===e?(t=":",r=":"):108===e?t=":":114===e&&(r=":");let i=!1===n.alignDelimiters?1:Math.max(1,s[f]-t.length-r.length),o=t+"-".repeat(i)+r;!1!==n.alignDelimiters&&((i=t.length+i+r.length)>s[f]&&(s[f]=i),h[f]=i),p[f]=o}o.splice(1,0,p),a.splice(1,0,h),c=-1;let m=[];for(;++c<o.length;){let e=o[c],t=a[c];f=-1;let r=[];for(;++f<u;){let i=e[f]||"",o="",a="";if(!1!==n.alignDelimiters){let e=s[f]-(t[f]||0),n=l[f];114===n?o=" ".repeat(e):99===n?e%2?(o=" ".repeat(e/2+.5),a=" ".repeat(e/2-.5)):a=o=" ".repeat(e/2):a=" ".repeat(e)}!1===n.delimiterStart||f||r.push("|"),!1!==n.padding&&(!1!==n.alignDelimiters||""!==i)&&(!1!==n.delimiterStart||f)&&r.push(" "),!1!==n.alignDelimiters&&r.push(o),r.push(i),!1!==n.alignDelimiters&&r.push(a),!1!==n.padding&&r.push(" "),(!1!==n.delimiterEnd||f!==u-1)&&r.push("|")}m.push(!1===n.delimiterEnd?r.join("").replace(/ +$/,""):r.join(""))}return m.join("\n")}(e,{align:t,alignDelimiters:r,padding:n,stringLength:i})}function s(e,t,n){let r=e.children,i=-1,l=[],a=t.enter("tableRow");for(;++i<r.length;)l[i]=o(r[i],e,t,n);return a(),l}}(i),{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:iI}}]})}
2let ll="#00FFBE",lo="#0D2B1F",la=["#0D2B1F","#00C896","#3B82F6","#F59E0B","#EF4444","#8B5CF6"],ls="mx-auto w-full max-w-[440px]",lu=["Who are our most efficient scorers?","Where are we conceding the most points?","Which players have improved this season?","Give me a scouting report on our defense","How do we perform in the fourth quarter?","Summarise our last game"],lc=["Who scored the most in this game?","Where did our shots come from?","How did we do in the fourth quarter?","Who had the biggest impact on defense?","Summarise this game","Which lineups worked best?"];function ld(){return Math.random().toString(36).slice(2)}let lf=(e,t)=>t?`assistant-coach:demo:conversations:${e}`:`assistant-coach:conversations:${e}`;function lp(e,t,n){try{window.localStorage.setItem(lf(e,t),JSON.stringify(n))}catch{}}function lh(e){let t=e.find(e=>"user"===e.role);if(t&&"user"===t.role){let e=t.content.trim().replace(/\s+/g," ");return e.length>44?`${e.slice(0,44)}â¦`:e||"New chat"}return"New chat"}function lm({conversations:e,activeId:n,onSwitch:r,onDelete:i}){return 0===e.length?(0,t.jsx)("div",{className:"px-2 py-6 text-center text-[11.5px] text-gray-400",children:"No saved conversations yet."}):(0,t.jsx)("div",{className:"space-y-1",children:e.map(e=>(0,t.jsxs)("div",{className:`group flex items-center gap-2 rounded-lg px-2.5 py-2 transition ${e.id===n?"bg-gray-100":"hover:bg-gray-50"}`,children:[(0,t.jsxs)("button",{type:"button",onClick:()=>r(e.id),className:"min-w-0 flex-1 text-left",children:[(0,t.jsx)("div",{className:"truncate text-[12px] font-medium text-gray-900",children:e.title}),(0,t.jsx)("div",{className:"text-[10.5px] text-gray-400",children:function(e){let t=Math.floor((Date.now()-e)/6e4);if(t<1)return"just now";if(t<60)return`${t}m ago`;let n=Math.floor(t/60);if(n<24)return`${n}h ago`;let r=Math.floor(n/24);return r<7?`${r}d ago`:new Date(e).toLocaleDateString()}(e.updatedAt)})]}),(0,t.jsx)("button",{type:"button",onClick:()=>i(e.id),className:"flex-shrink-0 rounded p-1 text-gray-300 opacity-100 transition hover:bg-gray-200 hover:text-gray-600 md:opacity-0 md:group-hover:opacity-100","aria-label":"Delete conversation",children:(0,t.jsx)(k.Trash2,{size:13})})]},e.id))})}function lg({tag:e}){let{bg:n,fg:r,Icon:i}={Alert:{bg:"#FEE2E2",fg:"#991B1B",Icon:f.AlertTriangle},Trend:{bg:"#DBEAFE",fg:"#1E3A8A",Icon:d.TrendingUp},Insight:{bg:"#DCFCE7",fg:"#065F46",Icon:p.Lightbulb}}[e];return(0,t.jsxs)("span",{className:"inline-flex items-center gap-1 rounded-full px-2 py-[2px] text-[10px] font-medium tracking-wide",style:{background:n,color:r},children:[(0,t.jsx)(i,{size:10,strokeWidth:2.5}),e]})}function ly({card:e,onAsk:n,disabled:r}){return(0,t.jsxs)("button",{type:"button",onClick:()=>n(e.seedQuestion||e.title),disabled:r,className:"group w-full rounded-xl border border-gray-200 bg-white p-3 text-left transition hover:border-gray-300 hover:shadow-sm focus:outline-none focus:ring-2 focus:ring-[#00FFBE] disabled:cursor-not-allowed disabled:opacity-50",children:[(0,t.jsxs)("div",{className:"flex items-start justify-between gap-2",children:[(0,t.jsx)(lg,{tag:e.tag}),(0,t.jsx)(c.Sparkles,{size:12,className:"text-gray-300 group-hover:text-gray-400"})]}),(0,t.jsx)("div",{className:"mt-2 text-[13px] font-semibold leading-snug text-gray-900",children:e.title}),(0,t.jsx)("div",{className:"mt-1 text-[11.5px] leading-snug text-gray-500",children:e.subt
2itle}),(0,t.jsxs)("div",{className:"mt-2 inline-flex items-center gap-1 text-[11px] font-medium",style:{color:"#065F46"},children:[e.ctaText||"Ask why"," ",(0,t.jsx)("span",{"aria-hidden":!0,children:"â"})]})]})}function lx({text:e}){return e.trim()?(0,t.jsx)("div",{className:"space-y-2 text-[13px] leading-relaxed text-gray-800",children:(0,t.jsx)(r1,{remarkPlugins:[li],components:{h1:({children:e})=>(0,t.jsx)("h1",{className:"text-[15px] font-semibold text-gray-900",children:e}),h2:({children:e})=>(0,t.jsx)("h2",{className:"text-[14px] font-semibold text-gray-900",children:e}),h3:({children:e})=>(0,t.jsx)("h3",{className:"text-[13.5px] font-semibold text-gray-900",children:e}),h4:({children:e})=>(0,t.jsx)("h4",{className:"text-[13px] font-semibold text-gray-900",children:e}),p:({children:e})=>(0,t.jsx)("p",{className:"leading-relaxed",children:e}),ul:({children:e})=>(0,t.jsx)("ul",{className:"list-disc space-y-1 pl-4 marker:text-gray-400",children:e}),ol:({children:e})=>(0,t.jsx)("ol",{className:"list-decimal space-y-1 pl-5 marker:text-gray-400",children:e}),li:({children:e})=>(0,t.jsx)("li",{className:"leading-relaxed",children:e}),strong:({children:e})=>(0,t.jsx)("strong",{className:"font-semibold text-gray-900",children:e}),em:({children:e})=>(0,t.jsx)("em",{className:"italic",children:e}),a:({children:e,href:n})=>(0,t.jsx)("a",{href:n,target:"_blank",rel:"noreferrer",className:"font-medium text-[#0D7C5C] underline underline-offset-2",children:e}),hr:()=>(0,t.jsx)("hr",{className:"my-3 border-gray-200"}),blockquote:({children:e})=>(0,t.jsx)("blockquote",{className:"border-l-2 border-gray-200 pl-3 text-gray-600",children:e}),code:({children:e})=>(0,t.jsx)("code",{className:"rounded bg-gray-100 px-1 py-0.5 text-[11.5px] text-gray-800",children:e}),pre:({children:e})=>(0,t.jsx)("pre",{className:"overflow-x-auto rounded-lg bg-gray-100 p-2.5 text-[11.5px] text-gray-800",children:e}),table:({children:e})=>(0,t.jsx)("div",{className:"my-2 overflow-x-auto rounded-xl border border-gray-200 bg-white",children:(0,t.jsx)("table",{className:"w-full border-collapse text-[12px]",children:e})}),thead:({children:e})=>(0,t.jsx)("thead",{children:e}),tr:({children:e})=>(0,t.jsx)("tr",{className:"border-b border-gray-100 last:border-0",children:e}),th:({children:e})=>(0,t.jsx)("th",{className:"whitespace-nowrap bg-gray-50 px-2.5 py-1.5 text-left font-semibold text-gray-700",children:e}),td:({children:e})=>(0,t.jsx)("td",{className:"whitespace-nowrap px-2.5 py-1.5 tabular-nums text-gray-700",children:e})},children:e})}):null}function lb({items:e}){return e.length?(0,t.jsx)("div",{className:"my-2 grid grid-cols-2 gap-2 rounded-xl border border-gray-200 bg-white p-3 sm:grid-cols-3",children:e.map((e,n)=>{let r="up"===e.direction?o.ArrowUp:"down"===e.direction?a.ArrowDown:s.Minus,i="up"===e.direction?"#047857":"down"===e.direction?"#B91C1C":"#6B7280";return(0,t.jsxs)("div",{className:"min-w-0",children:[(0,t.jsx)("div",{className:"truncate text-[10.5px] uppercase tracking-wide text-gray-400",children:e.label}),(0,t.jsx)("div",{className:"mt-0.5 text-[15px] font-semibold text-gray-900",children:e.value}),e.delta&&(0,t.jsxs)("div",{className:"mt-0.5 inline-flex items-center gap-1 text-[10.5px] font-medium",style:{color:i},children:[(0,t.jsx)(r,{size:10,strokeWidth:2.5}),e.delta]})]},n)})}):null}let lv=(0,n.memo)(function({widget:e}){let n,r,i,l,o=function(e){let t=e.series;if(!Array.isArray(t)||0===t.length)return[];let n=t[0];return n&&Array.isArray(n.points)?t.filter(e=>Array.isArray(e.points)&&e.points.length>0):[{points:t}]}(e);if(!o.length)return null;let{rows:a,keys:s}=(n=o.map((e,t)=>e.name||(1===o.length?"value":`series${t}`)),r=[],i=new Map,o.forEach((e,t)=>{let l=n[t];for(let t of e.points)i.has(t.label)||(i.set(t.label,{label:t.label}),r.push(t.label)),i.get(t.label)[l]=t.value}),l=r.length>1&&r.every(e=>/\(\d{4}-\d{2}-\d{2}\)/.test(e)),{rows:r.map((e,t)=>{let n=i.get(e),o=l?`G${t+1}`:r.length>4&&e.length>12?`${e.slice(0,10)}â¦`:e;return{...n,label:o,fullLabel:e}}),keys:n}),u=e.chartType,c={contentStyle:{background:"#FFFFFF",border:"1px solid #D1D5DB",borderRadius:8,boxShadow:"0 8px 20px rgba(15, 23, 42, 0.12)",color:"#111827",fontSize:11},itemStyle:{color:"#111827",fontSize:11},labelStyle:{color:"#374151",fontSize:11,fontWeight:600},labelFormatter:(e,t)=>{let n=t[0];return n?.payload?.fullLabel??String(e??"")}},d=e=>o[e]?.color||la[e%la.length],f=s.length>1,p=1===a.length&&s.length>1?s.map(e=>({label:e,value:Number(a[0][e]??0)})):null;if(p)return(0,t.jsx)("div",{className:`${ls} my-2`,children:(0,t.jsxs)("div",{className:"rounded-xl border border-gray-200 bg-white p-3",children:[(0,t.jsx)("div",{className:"mb-2 text-[11.5px] font-medium text-gray-600",children:e.title}),(0,t.jsx)("div",{className:"grid grid-cols-2 gap-2",children:p.map((e,n)=>(0,t.jsxs)("div",{className:"rounded-lg border border-gray-100 bg-gray-50 px-2.5 py-2",children:[(0,t.jsx)("div",{className:"truncate text-[10.5px] uppercase tracking-wide text-gray-400",children:e.label}),(0,t.jsx)("div",{className:"mt-0.5 text-[18px] font-semibold tabular-nums text-gray-900",children:Number.isInteger(e.value)?e.value:e.value.toFixed(1)}),(0,t.jsx)("div",{className:"mt-1 h-1 rounded-full",style:{background:d(n)}})]},e.label))})]})});if("donut"===u){let n=o[0].points,r=n.reduce((e,t)=>
2e+t.value,0);return(0,t.jsx)("div",{className:`${ls} my-2`,children:(0,t.jsxs)("div",{className:"rounded-xl border border-gray-200 bg-white p-3",children:[(0,t.jsx)("div",{className:"mb-1 text-[11.5px] font-medium text-gray-600",children:e.title}),(0,t.jsx)(eO.ResponsiveContainer,{width:"100%",height:180,children:(0,t.jsxs)(eM.PieChart,{children:[(0,t.jsx)(eF.Pie,{data:n,dataKey:"value",nameKey:"label",innerRadius:42,outerRadius:70,paddingAngle:2,stroke:"none",children:n.map((e,n)=>(0,t.jsx)(G.Cell,{fill:la[n%la.length]},n))}),(0,t.jsx)(eI.Tooltip,{formatter:e=>{let t="number"==typeof e?e:0;return[`${t}${r?` (${Math.round(t/r*100)}%)`:""}`,""]},...c}),(0,t.jsx)(eD,{wrapperStyle:{fontSize:10}})]})})]})})}let h="horizontal-bar"===u?Math.max(160,30*a.length+40):180;return(0,t.jsx)("div",{className:`${ls} my-2`,children:(0,t.jsxs)("div",{className:"rounded-xl border border-gray-200 bg-white p-3",children:[(0,t.jsxs)("div",{className:"mb-1 flex items-baseline justify-between gap-2",children:[(0,t.jsx)("span",{className:"text-[11.5px] font-medium text-gray-600",children:e.title}),e.unit&&(0,t.jsx)("span",{className:"text-[10px] text-gray-400",children:e.unit})]}),(0,t.jsx)(eO.ResponsiveContainer,{width:"100%",height:h,children:"line"===u?(0,t.jsxs)(eL.LineChart,{data:a,margin:{top:6,right:10,left:4,bottom:0},children:[(0,t.jsx)(Z.CartesianGrid,{strokeDasharray:"3 3",stroke:"#EEF2F0",vertical:!1}),(0,t.jsx)(ez.XAxis,{dataKey:"label",interval:0,minTickGap:0,tick:{fontSize:9,fill:"#6B7280"},tickLine:!1,axisLine:!1}),(0,t.jsx)(eR.YAxis,{tick:{fontSize:9,fill:"#6B7280"},tickLine:!1,axisLine:!1,width:40}),(0,t.jsx)(eI.Tooltip,{...c}),f&&(0,t.jsx)(eD,{wrapperStyle:{fontSize:10}}),s.map((e,n)=>(0,t.jsx)(eP.Line,{type:"monotone",dataKey:e,name:o[n].name||void 0,stroke:d(n),strokeWidth:2,dot:{r:2}},e))]}):"area"===u?(0,t.jsxs)(X.AreaChart,{data:a,margin:{top:6,right:10,left:4,bottom:0},children:[(0,t.jsx)("defs",{children:s.map((e,n)=>(0,t.jsxs)("linearGradient",{id:`grad-${e}-${n}`,x1:"0",y1:"0",x2:"0",y2:"1",children:[(0,t.jsx)("stop",{offset:"0%",stopColor:d(n),stopOpacity:.35}),(0,t.jsx)("stop",{offset:"100%",stopColor:d(n),stopOpacity:.02})]},e))}),(0,t.jsx)(Z.CartesianGrid,{strokeDasharray:"3 3",stroke:"#EEF2F0",vertical:!1}),(0,t.jsx)(ez.XAxis,{dataKey:"label",interval:0,minTickGap:0,tick:{fontSize:9,fill:"#6B7280"},tickLine:!1,axisLine:!1}),(0,t.jsx)(eR.YAxis,{tick:{fontSize:9,fill:"#6B7280"},tickLine:!1,axisLine:!1,width:40}),(0,t.jsx)(eI.Tooltip,{...c}),f&&(0,t.jsx)(eD,{wrapperStyle:{fontSize:10}}),s.map((e,n)=>(0,t.jsx)(Q.Area,{type:"monotone",dataKey:e,name:o[n].name||void 0,stroke:d(n),strokeWidth:2,fill:`url(#grad-${e}-${n})`},e))]}):"horizontal-bar"===u?(0,t.jsxs)(Y.BarChart,{data:a,layout:"vertical",margin:{top:4,right:12,left:4,bottom:0},children:[(0,t.jsx)(Z.CartesianGrid,{strokeDasharray:"3 3",stroke:"#EEF2F0",horizontal:!1}),(0,t.jsx)(ez.XAxis,{type:"number",tick:{fontSize:9,fill:"#6B7280"},tickLine:!1,axisLine:!1}),(0,t.jsx)(eR.YAxis,{type:"category",dataKey:"label",tick:{fontSize:9,fill:"#6B7280"},tickLine:!1,axisLine:!1,width:88}),(0,t.jsx)(eI.Tooltip,{cursor:{fill:"rgba(0,0,0,0.04)"},...c}),f&&(0,t.jsx)(eD,{wrapperStyle:{fontSize:10}}),s.map((e,n)=>(0,t.jsx)(J.Bar,{dataKey:e,name:o[n].name||void 0,fill:d(n),radius:[0,4,4,0]},e))]}):(0,t.jsxs)(Y.BarChart,{data:a,margin:{top:6,right:10,left:4,bottom:0},children:[(0,t.jsx)(Z.CartesianGrid,{strokeDasharray:"3 3",stroke:"#EEF2F0",vertical:!1}),(0,t.jsx)(ez.XAxis,{dataKey:"label",interval:0,minTickGap:0,tick:{fontSize:9,fill:"#6B7280"},tickLine:!1,axisLine:!1}),(0,t.jsx)(eR.YAxis,{tick:{fontSize:9,fill:"#6B7280"},tickLine:!1,axisLine:!1,width:40}),(0,t.jsx)(eI.Tooltip,{cursor:{fill:"rgba(0,0,0,0.04)"},...c}),f&&(0,t.jsx)(eD,{wrapperStyle:{fontSize:10}}),s.map((e,n)=>(0,t.jsx)(J.Bar,{dataKey:e,name:o[n].name||void 0,fill:d(n),radius:[4,4,0,0]},e))]})})]})})}),lk=(0,n.memo)(function({widget:e}){if(!e.subjects?.length||!e.metrics?.length)return null;let n=e.subjects,r=n.length>3?84:96,i=`minmax(110px,1.2fr) repeat(${n.length}, minmax(${r}px,1fr))`,l=110+n.length*r;return(0,t.jsx)("div",{className:"my-2 w-full",children:(0,t.jsxs)("div",{className:"overflow-hidden rounded-xl border border-gray-200 bg-white",children:[e.title&&(0,t.jsx)("div",{className:"border-b border-gray-100 px-3 py-2 text-[11.5px] font-semibold text-gray-700",children:e.title}),(0,t.jsx)("div",{className:"overflow-x-auto",children:(0,t.jsxs)("div",{style:{minWidth:l},children:[(0,t.jsxs)("div",{className:"grid items-end gap-x-2 border-b border-gray-100 px-3 py-2",style:{gridTemplateColumns:i},children:[(0,t.jsx)("span",{}),n.map((e,n)=>(0,t.jsx)("span",{className:"truncate text-center text-[11px] font-semibold text-gray-900",children:e},n))]}),(0,t.jsx)("div",{className:"divide-y divide-gray-100",children:e.metrics.map((e,r)=>{let l=e.values.slice(0,n.length),o=!1!==e.higherIsBetter,a=l.length?o?Math.max(...l):Math.min(...l):null,s=Math.max(1,...l.map(e=>Math.abs(e)));return(0,t.jsxs)("div",{className:"grid items-center gap-x-2 px-3 py-2",style:{gridTemplateColumns:i},children:[(0,t.jsx)("span",{className:"truncate text-[10.5px] uppercase tracking-wide text-gray-400",children:e.label}),l.map((n,r)=>{let i=null!==a&&n===a&&l.length>1;return(0,t.jsxs)("div",{className:"flex flex-col items-center gap-1",children:[(0,t.jsx)("span",{className:`text-[13px] font-semibold tabular-nums ${i?"text-[#047857]":"text-gray-700"}`,children:"percent"===e.format?`${Math.round(n)}%`:Number.isInteger(n)?String(n):n.toFixed(1)}),(0,t.jsx)("div",{className:"h-1 w-full overflow-hidden rounded-full bg-gray-100",children:(0,t.jsx)("div",{className:"h-full rounded-full",style:{width:`${Math.max(4,Math.abs(n)/s*100)}%`,background:i?"#00C896":"#CBD5E1"}})})]},r)})]},r)})})]})})]})})}),lw=(0,n.memo)(function({widget:e}){return e.shots.length?(0,t.jsx)("div",{className:`${ls} my-2`,children:(0,t.jsx)(e_.default,{shotData:e.shots,enableToggle:!0})}):null});function lS(e){if(!Number.isFinite(e)||e<0)return"0:00";let t=Math.floor(e/60),n=Math.floor(e%60);return`${t}:${n.toString().padStart(2,"0")}`}let lj=(0,n.memo)(function({clips:e,onOpenFull:r}){let i=(0,n.useRef)(null),l=(0,n.useRef)(null),o=(0,n.useRef)(null),a=(0,n.useRef)(!1),s=(0,n.useRef)(!1),[u,c]=(0,n.use
2State)(0),[d,f]=(0,n.useState)(!1),[p,h]=(0,n.useState)(0),[b,v]=(0,n.useState)(!1),k=(0,n.useCallback)(e=>{e.play().catch(e=>{f(!1),e instanceof DOMException&&!["AbortError","NotAllowedError"].includes(e.name)&&v(!0)})},[]),w=e[u]??e[0],S=Math.max(.1,w.endSeconds-w.startSeconds),j=Math.max(0,Math.min(S,p-w.startSeconds)),C=j/S*100,E=w.cloudflareStreamId?.trim()??"",A=w.videoUrl?.trim()??"",N=(0,n.useCallback)(()=>{let e=i.current;if(!e)return;let t=Math.max(0,w.startSeconds);Number.isFinite(t)&&(e.currentTime=t,h(t))},[w.startSeconds]);(0,n.useEffect)(()=>{v(!1),a.current=!1;let e=i.current;if(!e)return;if(!E&&!A)return void v(!0);let t=(0,eU.attachPlaybackSource)(e,{cloudflareStreamId:E||null,fallbackUrl:A}),n=()=>{if((e.currentSrc||e.getAttribute("src")||"").includes(".m3u8")&&A&&!A.includes(".m3u8")){a.current=!1;return}v(!0)};return e.addEventListener("error",n),()=>{e.removeEventListener("error",n),t.destroy()}},[w.clipId,A,E]),(0,n.useEffect)(()=>{a.current=!1;let e=i.current;e&&e.readyState>=1&&(e.currentTime=Math.max(0,w.startSeconds),h(w.startSeconds),s.current&&(s.current=!1,k(e)))},[u,w.startSeconds,k]);let T=(0,n.useCallback)(()=>{v(!1);let e=i.current;if(!e)return;let t=Math.max(0,w.startSeconds),n=e.currentTime<t||e.currentTime>=w.endSeconds;(!a.current||n)&&(a.current=!0,N()),s.current&&(s.current=!1,k(e))},[w.endSeconds,w.startSeconds,k,N]),D=(0,n.useCallback)(()=>{let t=i.current;t&&(h(t.currentTime),t.currentTime>=w.endSeconds&&(u<e.length-1?(s.current=!0,c(t=>Math.min(t+1,e.length-1))):(t.pause(),N())))},[u,w.endSeconds,e.length,N]),P=(0,n.useCallback)(()=>{let e=i.current;e&&(e.paused?((e.currentTime<w.startSeconds||e.currentTime>=w.endSeconds-.05)&&N(),k(e)):e.pause())},[w.startSeconds,w.endSeconds,k,N]),L=(0,n.useCallback)(e=>{let t=o.current,n=i.current;if(!t||!n)return;let r=t.getBoundingClientRect(),l=Math.max(0,Math.min(1,(e.clientX-r.left)/r.width)),a=w.startSeconds+l*S;n.currentTime=a,h(a)},[w.startSeconds,S]),F=(0,n.useCallback)(()=>{let e=l.current,t=i.current,n=t&&"requestFullscreen"in t?t:e;n&&("function"==typeof n.requestFullscreen?n.requestFullscreen():"function"==typeof n.webkitEnterFullscreen&&n.webkitEnterFullscreen())},[]);return(0,t.jsx)("div",{className:`${ls} my-2`,children:(0,t.jsxs)("div",{ref:l,className:"overflow-hidden rounded-xl border border-gray-200 bg-white",children:[(0,t.jsxs)("div",{className:"relative bg-black",children:[(0,t.jsx)("video",{ref:i,preload:"metadata",playsInline:!0,onLoadedMetadata:T,onTimeUpdate:D,onPlay:()=>f(!0),onPause:()=>f(!1),onClick:P,className:"aspect-video w-full cursor-pointer bg-black"}),b?(0,t.jsx)("div",{className:"absolute inset-0 flex items-center justify-center bg-[#0D2B1F] text-center text-[11.5px] text-gray-300",children:"That clip isn't available right now"}):(0,t.jsx)("button",{type:"button",onClick:P,className:`absolute inset-0 flex items-center justify-center transition ${d?"opacity-0":"opacity-100"}`,"aria-label":d?"Pause":"Play",children:(0,t.jsx)("span",{className:"flex h-12 w-12 items-center justify-center rounded-full bg-black/45 backdrop-blur-sm",children:d?(0,t.jsx)(x.Pause,{size:22,className:"text-white"}):(0,t.jsx)(y.Play,{size:22,className:"ml-0.5 text-white"})})})]}),(0,t.jsxs)("div",{className:"px-2.5 pt-2",children:[(0,t.jsx)("div",{ref:o,onClick:L,className:"group h-1.5 w-full cursor-pointer rounded-full bg-gray-200",children:(0,t.jsx)("div",{className:"h-full rounded-full transition-[width] duration-100",style:{width:`${C}%`,background:lo}})}),(0,t.jsxs)("div",{className:"mt-1 flex items-center justify-between text-[10px] tabular-nums text-gray-400",children:[(0,t.jsx)("span",{children:lS(j)}),(0,t.jsx)("span",{children:lS(S)})]})]}),(0,t.jsxs)("div",{className:"flex items-center justify-between gap-2 px-2.5 pb-2 pt-1",children:[(0,t.jsxs)("div",{className:"flex min-w-0 items-center gap-2",children:[(0,t.jsx)("button",{type:"button",onClick:P,className:"flex h-7 w-7 flex-shrink-0 items-center justify-center rounded-full transition hover:brightness-95",style:{background:ll,color:lo},"aria-label":d?"Pause":"Play",children:d?(0,t.jsx)(x.Pause,{size:13}):(0,t.jsx)(y.Play,{size:13,className:"ml-0.5"})}),(0,t.jsxs)("div",{className:"min-w-0",children:[(0,t.jsx)("div",{className:"truncate text-[12px] font-medium text-gray-900",children:w.title}),w.subtitle&&(0,t.jsx)("div",{className:"truncate text-[10.5px] text-gray-500",children:w.subtitle})]})]}),(0,t.jsxs)("div",{className:"flex flex-shrink-0 items-center gap-1",children:[(0,t.jsx)("button",{type:"button",onClick:F,className:"rounded-md p-1.5 text-gray-500 transition hover:bg-gray-100 hover:text-gray-800","aria-label":"Fullscreen clip",title:"Fullscreen",children:(0,t.jsx)(m.Maximize,{size:14})}),(0,t.jsx)("button",{type:"button",onClick:()=>r(w.matchId,w.deepLinkSeconds),className:"rounded-md p-1.5 text-gray-500 transition hover:bg-gray-100 hover:text-gray-800","aria-label":"Open full game",title:"Open full game",children:(0,t.jsx)(g.ExternalLink,{size:14})})]})]}),e.length>1&&(0,t.jsx)("div",{className:"max-h-52 space-y-1 overflow-y-auto border-t border-gray-100 p-2",children:e.map((e,n)=>(0,t.jsxs)("button",{type:"button",onClick:()=>{s.current=d,c(n)},className:`flex w-full items-center gap-2 rounded-lg border px-2.5 py-2 text-left text-[11px] transition ${n===u?"border-transparent bg-[#0D2B1F] text-white":"border-gray-200 bg-white text-gray-600 hover:border-gray-300 hover:bg-gray-50"}`,title:e.title,children:[(0,t.jsx)("span",{className:`flex h-5 w-5 flex-shrink-0 items-center justify-center rounded-full text-[9px] font-semibold ${n===u?"bg-white/20":"bg-gray-100 text-gray-500"}`,children:n+1}),(0,t.jsxs)("span",{className:"min-w-0 flex-1",children:[(0,t.jsx)("span",{className:"block truncate font-medium",children:e.title}),e.subtitle&&(0,t.jsx)("span",{className:`block truncate text-[10px] ${n===u?"text-white/70":"text-gray-400"}
2`,children:e.subtitle})]})]},n))})]})})},(e,t)=>e.onOpenFull===t.onOpenFull&&e.clips.length===t.clips.length&&e.clips.every((e,n)=>e===t.clips[n])),lC=/\{\{(clip|shot|chart|compare):([a-zA-Z0-9_]+)\}\}|\{\{stats:(\[[\s\S]*?\])\}\}/g;function lE({text:e,widgets:n,onOpenFull:r}){let i,l,o=-1===(l=e.lastIndexOf("{{"))?e:-1===e.indexOf("}}",l)?e.slice(0,l):e,a=[],s=0,u=0,c=[],d=new Set,f=-1;for(lC.lastIndex=0;null!==(i=lC.exec(o));){i.index>s&&a.push((0,t.jsx)(lx,{text:o.slice(s,i.index)},`md${u}`));let e=i[1],r=i[2],l=i[3];if(void 0!==l)try{let e=JSON.parse(l);Array.isArray(e)&&a.push((0,t.jsx)(lb,{items:e},`w${u}`))}catch{}else if(e&&r){let e=n[r];e&&("clip"===e.kind?(d.has(r)||(d.add(r),c.push(e)),-1===f&&(f=a.length,a.push((0,t.jsx)("span",{},"clip-anchor")))):"chart"===e.kind?a.push((0,t.jsx)(lv,{widget:e},`w${u}`)):"shot"===e.kind?a.push((0,t.jsx)(lw,{widget:e},`w${u}`)):"comparison"===e.kind&&a.push((0,t.jsx)(lk,{widget:e},`w${u}`)))}s=lC.lastIndex,u++}return s<o.length&&a.push((0,t.jsx)(lx,{text:o.slice(s)},`md${u}`)),-1!==f&&c.length>0&&(a[f]=(0,t.jsx)(lj,{clips:c,onOpenFull:r},"clips")),(0,t.jsx)(t.Fragment,{children:a})}function lA({size:e=28}){return(0,t.jsx)("div",{className:"flex flex-shrink-0 items-center justify-center rounded-lg",style:{background:ll,color:lo,height:e,width:e},children:(0,t.jsx)(eB,{className:"h-[55%] w-[55%]"})})}function lN(){return(0,t.jsxs)("div",{className:"flex gap-1",children:[(0,t.jsx)("span",{className:"h-1.5 w-1.5 animate-bounce rounded-full bg-gray-400 [animation-delay:-0.3s]"}),(0,t.jsx)("span",{className:"h-1.5 w-1.5 animate-bounce rounded-full bg-gray-400 [animation-delay:-0.15s]"}),(0,t.jsx)("span",{className:"h-1.5 w-1.5 animate-bounce rounded-full bg-gray-400"})]})}let lT=(0,n.memo)(function({message:e,onOpenFull:n,onRetry:r,onEdit:i}){if("user"===e.role)return(0,t.jsxs)("div",{className:"group flex items-center justify-end gap-1.5",children:[(0,t.jsx)("button",{type:"button",onClick:()=>i(e.id),className:"flex h-6 w-6 flex-shrink-0 items-center justify-center rounded-md text-gray-400 opacity-0 transition hover:bg-gray-100 hover:text-gray-600 group-hover:opacity-100","aria-label":"Edit message",children:(0,t.jsx)(j.Pencil,{size:13})}),(0,t.jsx)("div",{className:"max-w-[85%] rounded-2xl rounded-br-md px-3.5 py-2 text-[13px] leading-snug",style:{background:lo,color:"#F5FFFB"},children:e.content})]});let l=e.text.trim().length>0,o=e.status;return(0,t.jsxs)("div",{className:"flex items-start gap-2",children:[(0,t.jsx)("div",{className:"mt-0.5",children:(0,t.jsx)(lA,{})}),(0,t.jsxs)("div",{className:"min-w-0 max-w-[88%] flex-1",children:[!l&&e.streaming?(0,t.jsx)("div",{className:"px-1 py-1.5 text-[13px] leading-snug text-gray-500",children:o?(0,t.jsxs)("span",{className:"inline-flex items-center gap-2",children:[(0,t.jsx)("span",{className:"h-1.5 w-1.5 shrink-0 rounded-full",style:{background:ll,animation:"pulse 1.2s ease-in-out infinite"}}),(0,t.jsx)("span",{className:"italic",children:o})]}):(0,t.jsx)(lN,{})}):(0,t.jsxs)("div",{className:"rounded-2xl rounded-bl-md border border-gray-200 bg-white px-3.5 py-2.5",children:[(0,t.jsx)(lE,{text:e.text,widgets:e.widgets,onOpenFull:n}),e.streaming&&(0,t.jsx)("span",{className:"ml-0.5 inline-block h-3 w-1.5 animate-pulse rounded-sm bg-gray-400 align-middle"})]}),e.streaming&&l&&o?(0,t.jsx)("div",{className:"mt-1.5 px-1 text-[12px] italic text-gray-400",children:o}):null,e.error&&!e.streaming&&(0,t.jsxs)("button",{type:"button",onClick:()=>r(e.id),className:"mt-1.5 inline-flex items-center gap-1.5 rounded-lg border border-gray-200 bg-white px-2.5 py-1 text-[11.5px] font-medium text-gray-700 transition hover:border-gray-300 hover:bg-gray-50",children:[(0,t.jsx)(w.RotateCcw,{size:12}),"Try again"]})]})]})});e.s(["default",0,function({demo:e=!1,onOpenMatch:o}){let{currentTeam:a,matches:s}=(0,E.useDashboardContext)(),c=(0,l.useRouter)(),d=(0,K.useQueryClient)(),[f,p]=(0,n.useState)(!1),[m,g]=(0,n.useState)([]),[y,x]=(0,n.useState)(""),[k,w]=(0,n.useState)(!1),[j,N]=(0,n.useState)([]),[T,P]=(0,n.useState)(()=>ld()),[L,O]=(0,n.useState)(!1),B=(0,n.useRef)(null),U=(0,n.useRef)(!0),H=(0,n.useRef)(null),Q=(0,n.useRef)([]),X=(0,n.useRef)(null),J=(0,n.useRef)(null),Y=(0,n.useRef)(T),Z=(0,n.useRef)(!1);(0,n.useEffect)(()=>p(!0),[]),(0,n.useEffect)(()=>{Y.current=T},[T]),(0,n.useEffect)(()=>{Q.current=m},[m]);let G=(0,n.useMemo)(()=>s.filter(e=>"complete"===e.status).length,[s]),ee=G>0,et=a?.id??null,en=a?.club?.name?.trim()??"",er=a?.name?.trim()??"",ei=er.toLowerCase(),el=en.toLowerCase(),eo=!!el&&(ei===el||ei.startsWith(`${el} `)),ea=en&&er&&!eo?`${en} ${er}`:er||en,es=function(e,t={}){let n=!!e&&(t.enabled??!0);return(0,z.useQuery)({queryKey:["assistant-coach","insights",e??""],queryFn:()=>A.AssistantCoach.getInsights(R,e),enabled:n})}(et,{enabled:ee&&!e}),eu=function(e={}){return(0,z.useQuery)({queryKey:W,queryFn:()=>I.Demo.getAssistantCoachInsights(_.demoAdapter),enabled:e.enabled??!0})}({enabled:ee&&e&&f}),ec=function(e={}){return(0,z.useQuery)({queryKey:$,queryFn:()=>A.AssistantCoach.getUsage(R),enabled:e.enabled??!0,refetchOnWindowFocus:!0})}({enabled:ee&&!e}),ed=function(e={}){return(0,z.useQuery)({queryKey:V,queryFn:()=>I.Demo.getAssistantCoachUsage(_.demoAdapter,q()),enabled:e.enabled??!0,refetchOnWindowFocus:!0})}({enabled:ee&&e&&f}),ef=e?eu:es,ep=e?ed:ec,eh=ef.data?.cards??null,em=ef.isLoading,eg=ef.error?ef.error instanceof Error?ef.error.message:"Failed to load insights":null,ey=ep.data??null;(0,n.useEffect)(()=>
2{if(X.current?.abort(),X.current=null,O(!1),!et){Z.current=!0,N([]),g([]),P(ld());return}let t=function(e,t){try{let n=window.localStorage.getItem(lf(e,t));if(!n)return[];let r=JSON.parse(n);if(!Array.isArray(r))return[];return r.filter(e=>!!e&&"string"==typeof e.id&&Array.isArray(e.messages)).sort((e,t)=>t.updatedAt-e.updatedAt)}catch{return[]}}(et,e);N(t),Z.current=!0,t.length>0?(P(t[0].id),g(t[0].messages)):(P(ld()),g([]))},[e,et]),(0,n.useEffect)(()=>{if(Z.current){Z.current=!1;return}if(!et||0===m.length)return;let t=m.map(e=>"assistant"===e.role?{...e,streaming:!1,status:null}:e);N(n=>{let r=n.find(e=>e.id===Y.current),i=Date.now(),l=[r?{...r,messages:t,title:lh(t),updatedAt:i}:{id:Y.current,title:lh(t),createdAt:i,updatedAt:i,messages:t},...n.filter(e=>e.id!==Y.current)].sort((e,t)=>t.updatedAt-e.updatedAt);return lp(et,e,l),l})},[e,m,et]);let ex=(0,n.useCallback)(()=>{X.current?.abort(),X.current=null,w(!1),Z.current=!0,g([]),P(ld()),O(!1),x(""),requestAnimationFrame(()=>H.current?.focus())},[]),eb=(0,n.useCallback)(e=>{let t=j.find(t=>t.id===e);t&&(X.current?.abort(),X.current=null,w(!1),Z.current=!0,P(e),g(t.messages),O(!1))},[j]),ev=(0,n.useCallback)(t=>{et&&(N(n=>{let r=n.filter(e=>e.id!==t);return lp(et,e,r),r}),t===Y.current&&(Z.current=!0,g([]),P(ld())))},[e,et]),ek=ey?.remaining??null,ew=0===ek,eS=(0,n.useCallback)(()=>{ef.refetch()},[ef]);(0,n.useEffect)(()=>{let e=B.current;e&&U.current&&(e.scrollTop=e.scrollHeight)},[m]);let ej=(0,n.useCallback)(()=>{let e=B.current;e&&(U.current=e.scrollHeight-e.scrollTop-e.clientHeight<=16)},[]),eC=(0,n.useCallback)(e=>{e.deltaY<0&&(U.current=!1)},[]),eE=(0,n.useCallback)(()=>{U.current=!1},[]);(0,n.useEffect)(()=>{f&&ee&&requestAnimationFrame(()=>H.current?.focus())},[f,ee]);let eA=(0,n.useCallback)(async t=>{let n=t.trim();if(!n||!et||!ee||ew||X.current)return;U.current=!0;let r={id:ld(),role:"user",content:n},i=ld(),l=Q.current.map(e=>"user"===e.role?{role:"user",content:e.content}:e.text.trim()?{role:"assistant",content:e.text}:null).filter(e=>null!==e),o=new AbortController;X.current=o,J.current=i,g(e=>[...e,r,{id:i,role:"assistant",text:"",widgets:{},status:null,streaming:!0}]),x(""),w(!0);let a=e=>{g(t=>t.map(t=>t.id===i&&"assistant"===t.role?e(t):t))};try{let t={onStatus:e=>a(t=>({...t,status:e})),onWidget:(e,t)=>a(n=>({...n,widgets:{...n.widgets,[e]:t}})),onDelta:e=>a(t=>({...t,status:null,text:t.text+e})),onUsage:t=>{d.setQueryData(e?V:$,t)}};if(e?await M({visitorId:q(),messages:l,userMessage:n,signal:o.signal},t):await F({teamId:et,messages:l,userMessage:n,signal:o.signal},t),o.signal.aborted)return;a(e=>({...e,streaming:!1,status:null}))}catch(e){if(o.signal.aborted)return;a(t=>({...t,streaming:!1,status:null,error:!0,text:t.text.trim()?t.text:D(e)}))}finally{X.current===o&&(X.current=null),J.current===i&&(J.current=null),o.signal.aborted||(w(!1),requestAnimationFrame(()=>H.current?.focus()))}},[e,ee,ew,d,et]),eN=(0,n.useCallback)(e=>{if(X.current)return;let t=Q.current,n=t.findIndex(t=>t.id===e);if(n<1)return;let r=t[n-1];if("user"!==r.role)return;let i=r.content;Z.current=!0,g(t.slice(0,n-1)),requestAnimationFrame(()=>eA(i))},[eA]),eT=(0,n.useCallback)(()=>{let e=X.current;e&&e.abort(),X.current=null;let t=J.current;J.current=null,t&&g(e=>e.map(e=>e.id===t&&"assistant"===e.role?{...e,streaming:!1,status:null,text:e.text.trim()?e.text:"Stopped."}:e)),w(!1)},[]),eD=(0,n.useCallback)(e=>{if(X.current)return;let t=Q.current,n=t.findIndex(t=>t.id===e);if(n<0||"user"!==t[n].role)return;let r=t[n].content;Z.current=!0,g(t.slice(0,n)),x(r),requestAnimationFrame(()=>{let e=H.current;e&&(e.focus(),e.setSelectionRange(r.length,r.length))})},[]),eP=(0,n.useCallback)((e,t)=>{if(o)return void o(e,t);let n=t>0?`?t=${t}`:"";c.push(`/match/${e}${n}`)},[o,c]);if(!f||!a)return null;let eL="mx-auto w-full max-w-[820px]";return(0,t.jsxs)("div",{className:"relative flex h-full flex-col overflow-hidden bg-gray-50",style:{fontFamily:"var(--font-inter-tight), Inter, system-ui, sans-serif"},children:[(0,t.jsxs)("div",{className:"flex items-center gap-3 px-4 py-3 sm:px-6",style:{background:lo,color:"#F5FFFB"},children:[(0,t.jsx)("div",{className:"flex h-9 w-9 items-center justify-center rounded-lg",style:{background:ll,color:lo},children:(0,t.jsx)(eB,{className:"h-5 w-5"})}),(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsx)("div",{className:"text-[15px] font-semibold leading-tight",children:"Assistant coach"}),(0,t.jsx)("div",{className:"truncate text-[11.5px] opacity-70",children:e?`Demo \xb7 ${A.AssistantCoach.DEMO_PROMPT_LIMIT} questions \xb7 ${ea}`:ee?`${G} game${1===G?"":"s"} \xb7 ${ea}`:ea})]}),(0,t.jsxs)("button",{type:"button",onClick:ex,className:"inline-flex items-center gap-1.5 rounded-lg bg-white/10 px-2.5 py-1.5 text-[12px] font-medium opacity-90 transition hover:bg-white/20 hover:opacity-100","aria-label":"New chat",title:"New chat",children:[(0,t.jsx)(b.Plus,{size:15})," New chat"]}),(0,t.jsx)("button",{type:"button",onClick:()=>O(e=>!e),className:`rounded-lg p-2 transition hover:bg-white/10 hover:opacity-100 ${L?"bg-white/10 opacity-100":"opacity-70"}`,"aria-label":"Conversation history",title:"History",children:(0,t.jsx)(v.History,{size:17})})]}),(0,t.jsx)(r.AnimatePresence,{initial:!1,children:L&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(i.motion.div,{initial:{opacity:0}
2,animate:{opacity:1},exit:{opacity:0},transition:{duration:.14},className:"absolute inset-0 z-40 bg-black/25 md:hidden",onClick:()=>O(!1)},"hist-mobile-backdrop"),(0,t.jsxs)(i.motion.aside,{initial:{x:"-100%"},animate:{x:0},exit:{x:"-100%"},transition:{type:"spring",stiffness:420,damping:38},className:"absolute inset-y-0 left-0 z-50 flex w-[min(86vw,340px)] flex-col border-r border-gray-200 bg-white shadow-xl md:hidden",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between border-b border-gray-100 px-3 py-3",children:[(0,t.jsx)("span",{className:"text-[13px] font-semibold text-gray-900",children:"Conversations"}),(0,t.jsxs)("div",{className:"flex items-center gap-1",children:[(0,t.jsxs)("button",{type:"button",onClick:ex,className:"inline-flex items-center gap-1 rounded-md px-2 py-1 text-[11.5px] font-medium text-gray-700 transition hover:bg-gray-100",children:[(0,t.jsx)(b.Plus,{size:13})," New"]}),(0,t.jsx)("button",{type:"button",onClick:()=>O(!1),className:"flex h-7 w-7 items-center justify-center rounded-md text-gray-500 transition hover:bg-gray-100 hover:text-gray-800","aria-label":"Close conversations",children:(0,t.jsx)(C.X,{size:15})})]})]}),(0,t.jsx)("div",{className:"flex-1 overflow-y-auto p-2",children:(0,t.jsx)(lm,{conversations:j,activeId:T,onSwitch:eb,onDelete:ev})})]},"hist-mobile-drawer")]})}),(0,t.jsx)("div",{ref:B,onScroll:ej,onWheel:eC,onTouchMove:eE,className:"flex-1 overflow-y-auto bg-gray-50 px-4 py-5 sm:px-6",children:(0,t.jsxs)("div",{className:"mx-auto flex min-h-full w-full max-w-[1180px] items-start gap-4",children:[(0,t.jsx)(r.AnimatePresence,{initial:!1,children:L&&(0,t.jsxs)(i.motion.aside,{initial:{width:0,opacity:0},animate:{width:300,opacity:1},exit:{width:0,opacity:0},transition:{type:"spring",stiffness:420,damping:38},className:"sticky top-0 z-10 hidden max-h-[calc(100dvh-9rem)] flex-shrink-0 overflow-hidden rounded-xl border border-gray-200 bg-white shadow-sm md:flex md:flex-col",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between border-b border-gray-100 px-3 py-2.5",children:[(0,t.jsx)("span",{className:"text-[12.5px] font-semibold text-gray-900",children:"Conversations"}),(0,t.jsxs)("button",{type:"button",onClick:ex,className:"inline-flex items-center gap-1 rounded-md px-2 py-1 text-[11.5px] font-medium text-gray-700 transition hover:bg-gray-100",children:[(0,t.jsx)(b.Plus,{size:13})," New"]})]}),(0,t.jsx)("div",{className:"flex-1 overflow-y-auto p-2",children:(0,t.jsx)(lm,{conversations:j,activeId:T,onSwitch:eb,onDelete:ev})})]},"hist-panel")}),(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[0===m.length&&(0,t.jsxs)("div",{className:`space-y-4 ${eL}`,children:[(em||eh&&eh.length>0||eg)&&(0,t.jsxs)("section",{children:[(0,t.jsx)("div",{className:"mb-2 px-0.5 text-[10.5px] font-medium uppercase tracking-wide text-gray-400",children:"Proactive insights"}),em&&(0,t.jsxs)("div",{className:"flex items-center justify-center rounded-xl border border-dashed border-gray-200 bg-white py-6 text-[12px] text-gray-400",children:[(0,t.jsx)(h.Loader2,{size:14,className:"mr-2 animate-spin"}),"Scanning your recent gamesâ¦"]}),!em&&eg&&(0,t.jsxs)("div",{className:"rounded-xl border border-gray-200 bg-white p-3 text-[12px] text-gray-500",children:["Couldn't load insights right now.",(0,t.jsx)("button",{type:"button",onClick:eS,className:"ml-1 font-medium text-gray-900 underline",children:"Retry"})]}),!em&&eh&&eh.length>0&&(0,t.jsx)("div",{className:"grid grid-cols-1 gap-2 sm:grid-cols-2",children:eh.map((e,n)=>(0,t.jsx)(ly,{card:e,onAsk:e=>eA(e),disabled:k||ew},n))})]}),(0,t.jsxs)("section",{children:[(0,t.jsx)("div",{className:"mb-2 px-0.5 text-[10.5px] font-medium uppercase tracking-wide text-gray-400",children:"Suggested questions"}),(0,t.jsx)("div",{className:"flex flex-wrap gap-1.5",children:(e?lc:lu).map(e=>(0,t.jsx)("button",{type:"button",onClick:()=>eA(e),disabled:k||ew||!ee,className:"rounded-full border border-gray-200 bg-white px-3 py-1.5 text-[12px] text-gray-700 transition hover:border-gray-300 hover:bg-gray-50 disabled:opacity-50",children:e},e))})]})]}),m.length>0&&(0,t.jsx)("div",{className:`space-y-3 ${eL}`,children:m.map(e=>(0,t.jsx)(lT,{message:e,onOpenFull:eP,onRetry:eN,onEdit:eD},e.id))})]})]})}),(0,t.jsx)("form",{onSubmit:e=>{e.preventDefault(),eA(y)},className:"border-t border-gray-100 bg-white px-4 pb-4 pt-3 sm:px-6",children:(0,t.jsxs)("div",{className:eL,children:[ee&&null!==ek?(0,t.jsx)("div",{className:"mb-1.5 px-1 text-[11px] text-gray-500",children:e?ew?"No demo questions left":`${ek} demo question${1===ek?"":"s"} left`:ew?"No prompts left today":`${ek} prompt${1===ek?"":"s"} left today`}):e&&ep.isError?(0,t.jsx)("div",{className:"mb-1.5 px-1 text-[11px] text-gray-500",children:"Couldn't load your question allowance. Try refreshing."}):null,(0,t.jsxs)("div",{className:"flex items-end gap-2 rounded-xl border border-gray-200 bg-white px-3 py-2 focus-within:border-gray-300 focus-within:ring-2 focus-within:ring-[#00FFBE]/25 focus-within:ring-offset-0",children:[(0,t.jsx)("textarea",{ref:H,value:y,onChange:e=>x(e.target.value),onKeyDown:e=>{"Enter"!==e.key||e.shiftKey||(e.preventDefault(),eA(y))},rows:1,disabled:!ee||k||ew,placeholder:ee?ew?e?"Demo question limit reached":"Daily prompt limit reached":"Ask your assistant coachâ¦":"No game data yet. Upload a game to get started",className:"flex-1 resize-none bg-transparent py-1.5 text-[14px] leading-snug text-gray-900 placeholder:text-gray-400 focus:outline-none disabled:cursor-not-allowed",style:{maxHeight:160}}),(0,t.jsx)("button",{type:k?"button":"submit",onClick:k?eT:void 0,disabled:!ee||ew||!k&&!y.trim(),className:"flex h-9 w-9 flex-shrink-0 items-center justify-center rounded-lg transition disabled:cursor-not-allowed disabled:opacity-40",style:{background:ll,color:lo},"aria-label":k?"Stop":"Send",children:k?(0,t.jsx)(S.Square,{size:13,strokeWidth:3,fill:lo}):(0,t.jsx)(u.Send,{size:15,strokeWidth:2.5})})]}),(0,t.jsx)("div",{className:"mt-1.5 px-1 text-[10.5px] text-gray-400",children:e?`Answers use this demo match only \xb7 ${A.AssistantCoach.DEMO_PROMPT_LIMIT} questions included`:ee?`Assistant coach has access to all ${G} game${1===G?"":"s"} \xb7 stats \xb7 clips for ${ea}`:"Upload a game to start"})]})})]})}],893761)}]); 3 4//# debugId=8603347e-b5ab-26e5-6848-a744c44c9a1c
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.