PageSourceSearch

https://lmk.today/_next/static/chunks/93008-d80184f431db8750.js

js lmk.today collected 2026-09-24 12:08:03 UTC 189,274 bytes, 21 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[93008],{333:(e,t,n)=>{let r;n.d(t,{N:()=>t$});var i,o,l,a,s,u,c,p,d,f,h,m="vercel.ai.error",g=Symbol.for(m),y=class e extends Error{constructor({name:e,message:t,cause:n}){super(t),this[i]=!0,this.name=e,this.cause=n}static isInstance(t){return e.hasMarker(t,m)}static hasMarker(e,t){let n=Symbol.for(t);return null!=e&&"object"==typeof e&&n in e&&"boolean"==typeof e[n]&&!0===e[n]}};i=g;var v=y,k="AI_APICallError",x=`vercel.ai.error.${k}`,b=Symbol.for(x),w=class extends v{constructor({message:e,url:t,requestBodyValues:n,statusCode:r,responseHeaders:i,responseBody:l,cause:a,isRetryable:s=null!=r&&(408===r||409===r||429===r||r>=500),data:u}){super({name:k,message:e,cause:a}),this[o]=!0,this.url=t,this.requestBodyValues=n,this.statusCode=r,this.responseHeaders=i,this.responseBody=l,this.isRetryable=s,this.data=u}static isInstance(e){return v.hasMarker(e,x)}};o=b;var _="AI_EmptyResponseBodyError",I=`vercel.ai.error.${_}`,S=Symbol.for(I),C=class extends v{constructor({message:e="Empty response body"}={}){super({name:_,message:e}),this[l]=!0}static isInstance(e){return v.hasMarker(e,I)}};function T(e){return null==e?"unknown error":"string"==typeof e?e:e instanceof Error?e.message:JSON.stringify(e)}l=S;var j="AI_InvalidArgumentError",E=`vercel.ai.error.${j}`,A=Symbol.for(E),P=class extends v{constructor({message:e,cause:t,argument:n}){super({name:j,message:e,cause:t}),this[a]=!0,this.argument=n}static isInstance(e){return v.hasMarker(e,E)}};a=A;var O="AI_InvalidPromptError",M=`vercel.ai.error.${O}`,Y=Symbol.for(M),N=class extends v{constructor({prompt:e,message:t,cause:n}){super({name:O,message:`Invalid prompt: ${t}`,cause:n}),this[s]=!0,this.prompt=e}static isInstance(e){return v.hasMarker(e,M)}};s=Y;var D="AI_InvalidResponseDataError",L=`vercel.ai.error.${D}`,R=Symbol.for(L),z=class extends v{constructor({data:e,message:t=`Invalid response data: ${JSON.stringify(e)}.`}){super({name:D,message:t}),this[u]=!0,this.data=e}static isInstance(e){return v.hasMarker(e,L)}};u=R;var q="AI_JSONParseError",F=`vercel.ai.error.${q}`,$=Symbol.for(F),V=class extends v{constructor({text:e,cause:t}){super({name:q,message:`JSON parsing failed: Text: ${e}.
2Error message: ${T(t)}`,cause:t}),this[c]=!0,this.text=e}static isInstance(e){return v.hasMarker(e,F)}};c=$;var B="AI_LoadAPIKeyError",U=`vercel.ai.error.${B}`,H=Symbol.for(U),W=class extends v{constructor({message:e}){super({name:B,message:e}),this[p]=!0}static isInstance(e){return v.hasMarker(e,U)}};p=H;var K=Symbol.for("vercel.ai.error.AI_LoadSettingError"),J=Symbol.for("vercel.ai.error.AI_NoContentGeneratedError"),Z=Symbol.for("vercel.ai.error.AI_NoSuchModelError"),Q="AI_TooManyEmbeddingValuesForCallError",G=`vercel.ai.error.${Q}`,X=Symbol.for(G),ee=class extends v{constructor(e){super({name:Q,message:`Too many values for a single embedding call. The ${e.provider} model "${e.modelId}" can only embed up to ${e.maxEmbeddingsPerCall} values per call, but ${e.values.length} values were provided.`}),this[d]=!0,this.provider=e.provider,this.modelId=e.modelId,this.maxEmbeddingsPerCall=e.maxEmbeddingsPerCall,this.values=e.values}static isInstance(e){return v.hasMarker(e,G)}};d=X;var et="AI_TypeValidationError",en=`vercel.ai.error.${et}`,er=Symbol.for(en),ei=class e extends v{constructor({value:e,cause:t}){super({name:et,message:`Type validation failed: Value: ${JSON.stringify(e)}.
3Error message: ${T(t)}`,cause:t}),this[f]=!0,this.value=e}static isInstance(e){return v.hasMarker(e,en)}static wrap({value:t,cause:n}){return e.isInstance(n)&&n.value===t?n:new e({value:t,cause:n})}};f=er;var eo="AI_UnsupportedFunctionalityError",el=`vercel.ai.error.${eo}`,ea=Symbol.for(el),es=class extends v{constructor({functionality:e,message:t=`'${e}' functionality not supported.`}){super({name:eo,message:t}),this[h]=!0,this.functionality=e}static isInstance(e){return v.hasMarker(e,el)}};function eu(e){return null===e||"string"==typeof e||"number"==typeof e||"boolean"==typeof e||(Array.isArray(e)?e.every(eu):"object"==typeof e&&Object.entries(e).every(([e,t])=>"string"==typeof e&&eu(t)))}h=ea;
3class ec extends Error{constructor(e,t){super(e),this.name="ParseError",this.type=t.type,this.field=t.field,this.value=t.value,this.line=t.line}}function ep(e){}class ed extends TransformStream{constructor({onError:e,onRetry:t,onComment:n}={}){let r;super({start(i){r=function(e){if("function"==typeof e)throw TypeError("`callbacks` must be an object, got a function instead. Did you mean `{onEvent: fn}`?");let{onEvent:t=ep,onError:n=ep,onRetry:r=ep,onComment:i}=e,o="",l=!0,a,s="",u="";function c(e){if(""===e){s.length>0&&t({id:a,event:u||void 0,data:s.endsWith(`
4`)?s.slice(0,-1):s}),a=void 0,s="",u="";return}if(e.startsWith(":")){i&&i(e.slice(e.startsWith(": ")?2:1));return}let n=e.indexOf(":");if(-1!==n){let t=e.slice(0,n),r=" "===e[n+1]?2:1;p(t,e.slice(n+r),e);return}p(e,"",e)}function p(e,t,i){switch(e){case"event":u=t;break;case"data":s=`${s}${t}
5`;break;case"id":a=t.includes("\0")?void 0:t;break;case"retry":/^\d+$/.test(t)?r(parseInt(t,10)):n(new ec(`Invalid \`retry\` value: "${t}"`,{type:"invalid-retry",value:t,line:i}));break;default:n(new ec(`Unknown field "${e.length>20?`${e.slice(0,20)}\u2026`:e}"`,{type:"unknown-field",field:e,value:t,line:i}))}}return{feed:function(e){let t=l?e.replace(/^\xEF\xBB\xBF/,""):e,[n,r]=function(e){let t=[],n="",r=0;for(;r<e.length;){let i=e.indexOf("\r",r),o=e.indexOf(`
6`,r),l=-1;if(-1!==i&&-1!==o?l=Math.min(i,o):-1!==i?l=i===e.length-1?-1:i:-1!==o&&(l=o),-1===l){n=e.slice(r);break}{let n=e.slice(r,l);t.push(n),"\r"===e[(r=l+1)-1]&&e[r]===`
7`&&r++}}return[t,n]}(`${o}${t}`);for(let e of n)c(e);o=r,l=!1},reset:function(e={}){o&&e.consume&&c(o),l=!0,a=void 0,s="",u="",o=""}}}({onEvent:e=>{i.enqueue(e)},onError(t){"terminate"===e?i.error(t):"function"==typeof e&&e(t)},onRetry:t,onComment:n})},transform(e){r.feed(e)}})}}Symbol("Let zodToJsonSchema decide on which parser to use");let ef=new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789");function eh(e,t){if(!t.applyRegexFlags||!e.flags)return e.source;let n={i:e.flags.includes("i"),m:e.flags.includes("m"),s:e.flags.includes("s")},r=n.i?e.source.toLowerCase():e.source,i="",o=!1,l=!1,a=!1;for(let e=0;e<r.length;e++){if(o){i+=r[e],o=!1;continue}if(n.i){if(l){if(r[e].match(/[a-z]/)){a?(i+=r[e],i+=`${r[e-2]}-${r[e]}`.toUpperCase(),a=!1):"-"===r[e+1]&&r[e+2]?.match(/[a-z]/)?(i+=r[e],a=!0):i+=`${r[e]}${r[e].toUpperCase()}`;continue}}else if(r[e].match(/[a-z]/)){i+=`[${r[e]}${r[e].toUpperCase()}]`;continue}}if(n.m){if("^"===r[e]){i+=`(^|(?<=[\r
8]))`;continue}else if("$"===r[e]){i+=`($|(?=[\r
9]))`;continue}}if(n.s&&"."===r[e]){i+=l?`${r[e]}\r
10`:`[${r[e]}\r
11]`;continue}i+=r[e],"\\"===r[e]?o=!0:l&&"]"===r[e]?l=!1:l||"["!==r[e]||(l=!0)}try{new RegExp(i)}catch{return console.warn(`Could not convert regex pattern at ${t.currentPath.join("/")} to a flag-independent form! Falling back to the flag-ignorant source`),e.source}return i}var em=n(87358);function eg(...e){return e.reduce((e,t)=>({...e,...null!=t?t:{}}),{})}function ey(e){return Object.fromEntries([...e.headers])}var ev=(({prefix:e,size:t=16,alphabet:n="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",separator:r="-"}={})=>{let i=()=>{let e=n.length,r=Array(t);for(let i=0;i<t;i++)r[i]=n[Math.random()*e|0];return r.join("")};if(null==e)return i;if(n.includes(r))throw new P({argument:"separator",message:`The separator "${r}" must not be part of the alphabet "${n}".`});return()=>`${e}${r}${i()}`})();function ek(e){return(e instanceof Error||e instanceof DOMException)&&("AbortError"===e.name||"ResponseAborted"===e.name||"TimeoutError"===e.name)}var ex=["fetch failed","failed to fetch"],eb=/"__proto__"\s*:/,ew=/"constructor"\s*:/;function e_(e){let{stackTraceLimit:t}=Error;Error.stackTraceLimit=0;try{let t=JSON.parse(e);return null===t||"object"!=typeof t||!1===eb.test(e)&&!1===ew.test(e)?t:function(e){let t=[e];for(;t.length;){let e=t;for(let n of(t=[],e)){if(Object.prototype.hasOwnProperty.call(n,"__proto__")||Object.prototype.hasOwnProperty.call(n,"constructor")&&Object.prototype.hasOwnProperty.call(n.constructor,"prototype"))throw SyntaxError("Object contains forbidden prototype property");for(let e in n){let r=n[e];r&&"object"==typeof r&&t.push(r)}}}return e}(t)}finally{Error.stackTraceLimit=t}}var eI=Symbol.for("vercel.ai.validator");async function eS({value:e,schema:t}){let n=await eC({value:e,schema:t});if(!n.success)throw ei.wrap({value:e,cause:n.error});return n.value}async function eC({value:e,schema:t}){var n;let r="object"==typeof t&&null!==t&&eI in t&&!0===t[eI]&&"validate"in t?t:(n=t,{[eI]:!0,validate:async e=>{let t=await n["~standard"].validate(e);return null==t.issues?{success:!0,value:t.value}:{success:!1,error:new ei({value:e,cause:t.issues})}}});try{if(null==r.validate)return{success:!0,value:e,rawValue:e};let t=await r.validate(e);if(t.success)return{success:!0,value:t.value,rawValue:e};return{success:!1,error:ei.wrap({value:e,cause:t.error}),rawValue:e}}catch(t){return{success:!1,error:ei.wrap({value:e,cause:t}),rawValue:e}}}async function eT({text:e,schema:t}){try{let n=e_(e);
11if(null==t)return n;return eS({value:n,schema:t})}catch(t){if(V.isInstance(t)||ei.isInstance(t))throw t;throw new V({text:e,cause:t})}}async function ej({text:e,schema:t}){try{let n=e_(e);if(null==t)return{success:!0,value:n,rawValue:n};return await eC({value:n,schema:t})}catch(t){return{success:!1,error:V.isInstance(t)?t:new V({text:e,cause:t}),rawValue:void 0}}}function eE(e){try{return e_(e),!0}catch(e){return!1}}async function eA({provider:e,providerOptions:t,schema:n}){if((null==t?void 0:t[e])==null)return;let r=await eC({value:t[e],schema:n});if(!r.success)throw new P({argument:"providerOptions",message:`invalid ${e} provider options`,cause:r.error});return r.value}var eP=()=>globalThis.fetch,eO=async({url:e,headers:t,body:n,failedResponseHandler:r,successfulResponseHandler:i,abortSignal:o,fetch:l})=>eY({url:e,headers:{"Content-Type":"application/json",...t},body:{content:JSON.stringify(n),values:n},failedResponseHandler:r,successfulResponseHandler:i,abortSignal:o,fetch:l}),eM=async({url:e,headers:t,formData:n,failedResponseHandler:r,successfulResponseHandler:i,abortSignal:o,fetch:l})=>eY({url:e,headers:t,body:{content:n,values:Object.fromEntries(n.entries())},failedResponseHandler:r,successfulResponseHandler:i,abortSignal:o,fetch:l}),eY=async({url:e,headers:t={},body:n,successfulResponseHandler:r,failedResponseHandler:i,abortSignal:o,fetch:l=eP()})=>{try{var a;let s=await l(e,{method:"POST",headers:(a=t,Object.fromEntries(Object.entries(a).filter(([e,t])=>null!=t))),body:n.content,signal:o}),u=ey(s);if(!s.ok){let t;try{t=await i({response:s,url:e,requestBodyValues:n.values})}catch(t){if(ek(t)||w.isInstance(t))throw t;throw new w({message:"Failed to process error response",cause:t,statusCode:s.status,url:e,responseHeaders:u,requestBodyValues:n.values})}throw t.value}try{return await r({response:s,url:e,requestBodyValues:n.values})}catch(t){if(t instanceof Error&&(ek(t)||w.isInstance(t)))throw t;throw new w({message:"Failed to process successful response",cause:t,statusCode:s.status,url:e,responseHeaders:u,requestBodyValues:n.values})}}catch(t){throw function({error:e,url:t,requestBodyValues:n}){if(ek(e))return e;if(e instanceof TypeError&&ex.includes(e.message.toLowerCase())){let r=e.cause;if(null!=r)return new w({message:`Cannot connect to API: ${r.message}`,cause:r,url:t,requestBodyValues:n,isRetryable:!0})}return e}({error:t,url:e,requestBodyValues:n.values})}};function eN({id:e,name:t,inputSchema:n}){return({execute:r,outputSchema:i,toModelOutput:o,onInputStart:l,onInputDelta:a,onInputAvailable:s,...u})=>({type:"provider-defined",id:e,name:t,args:u,inputSchema:n,outputSchema:i,execute:r,toModelOutput:o,onInputStart:l,onInputDelta:a,onInputAvailable:s})}var eD=e=>async({response:t})=>{let n=ey(t);if(null==t.body)throw new C({});return{responseHeaders:n,value:function({stream:e,schema:t}){return e.pipeThrough(new TextDecoderStream).pipeThrough(new ed).pipeThrough(new TransformStream({async transform({data:e},n){"[DONE]"!==e&&n.enqueue(await ej({text:e,schema:t}))}}))}({stream:t.body,schema:e})}},eL=e=>async({response:t,url:n,requestBodyValues:r})=>{let i=await t.text(),o=await ej({text:i,schema:e}),l=ey(t);if(!o.success)throw new w({message:"Invalid JSON response",cause:o.error,statusCode:t.status,responseHeaders:l,responseBody:i,url:n,requestBodyValues:r});return{responseHeaders:l,value:o.value,rawValue:o.rawValue}},eR=()=>async({response:e,url:t,requestBodyValues:n})=>{let r=ey(e);if(!e.body)throw new w({message:"Response body is empty",url:t,requestBodyValues:n,statusCode:e.status,responseHeaders:r,responseBody:void 0});try{let t=await e.arrayBuffer();return{responseHeaders:r,value:new Uint8Array(t)}}catch(i){throw new w({message:"Failed to read response as array buffer",url:t,requestBodyValues:n,statusCode:e.status,responseHeaders:r,responseBody:void 0,cause:i})}},ez=Symbol.for("vercel.ai.schema"),{btoa:eq,atob:eF}=globalThis;function e$(e){return e instanceof Uint8Array?function(e){let t="";for(let n=0;n<e.length;n++)t+=String.fromCodePoint(e[n]);return eq(t)}(e):e}var eV=n(2180),eB=n(70186),eU=eV.Ik({error:eV.Ik({message:eV.Yj(),type:eV.Yj().nullish(),param:eV.bz().nullish(),code:eV.KC([eV.Yj(),eV.ai()]).nullish()})}),eH=(({errorSchema:e,errorToMessage:t,isRetryable:n})=>async({response:r,url:i,requestBodyValues:o})=>{let l=await r.text(),a=ey(r);if(""===l.trim())return{responseHeaders:a,value:new w({message:r.statusText,url:i,requestBodyValues:o,statusCode:r.status,responseHeaders:a,responseBody:l,isRetryable:null==n?void 0:n(r)})};try{let s=await eT({text:l,schema:e});return{responseHeaders:a,value:new w({message:t(s),url:i,requestBodyValues:o,statusCode:r.status,responseHeaders:a,responseBody:l,data:s,isRetryable:null==n?void 0:n(r,s)})}}catch(e){return{responseHeaders:a,value:new w({message:r.statusText,url:i,requestBodyValues:o,statusCode:r.status,responseHeaders:a,responseBody:l,isRetryable:null==n?void 0:n(r)})}}})({errorSchema:eU,errorToMessage:e=>e.error.message});function eW({id:e,model:t,created:n}){return{id:null!=e?e:void 0,modelId:null!=t?t:void 0,timestamp:null!=n?new Date(1e3*n):void 0}}function eK(e){switch(e){case"stop":return"stop";case"length":return"length";case"content_filter":return"content-filter";case"function_call":case"tool_calls":return"tool-calls";default:return"unknown"}}var eJ=eV.Ik({logitBias:eV.g1(eB.qG(eV.rS,void 0),eV.ai()).optional(),logprobs:eV.KC([eV.zM(),eV.ai()]).optional(),parallelToolCalls:eV.zM().optional(),user:eV.Yj().optional(),reasoningEffort:eV.k5(["minimal","low","medium","high"]).optional(),maxCompletionTokens:eV.ai().optional(),store:eV.zM().optional(),metadata:eV.g1(eV.Yj().max(64),eV.Yj().max(512)).optional(),prediction:eV.g1(eV.Yj(),eV.bz()).optional(),structuredOutputs:eV.zM().optional(),serviceTier:eV.k5(["auto","flex","priority"]).optional(),strictJsonSchema:eV.zM().optional(),textVerbosity:eV.k5(["low","medium","high"]).optional(),promptCacheKey:eV.Yj().optional(),safetyIdentifier:eV.Yj().optional()}),eZ=eV.Ik({key:eV.Yj(),type:eV.k5(["eq","ne","gt","gte","lt","lte"]),value:eV.KC([eV.Yj(),eV.ai(),eV.zM()])}),eQ=eV.Ik({type:eV.k5(["and","or"]),filters:eV.YO(eV.KC([eZ,eV.RZ(()=>eQ)]))}),eG=eV.KC([eZ,eQ]),eX=eV.Ik({vectorStoreIds:eV.YO(eV.Yj()).optional(),maxNumResults:eV.ai().optional(),ranking:eV.Ik({ranker:eV.k5(["auto","default-2024-08-21"]).optional()}).optional(),filters:eG.optional()}),e0=eN({id:"openai.file_search",name:"file_search",inputSchema:eV.Ik({query:eV.Yj()})}),e1=eV.Ik({searchContextSize:eV.k5(["low","medium","high"]).optional(),userLocation:eV.Ik({type:eV.eu("approximate"),country:eV.Yj().optional(),city:eV.Yj().optional(),region:eV.Yj().optional(),timezone:eV.Yj().optional()}).optional()}),e2=eN({id:"openai.web_search_preview",name:"web_search_preview",inputSchema:eV.Ik({})}),e4=class{constructor(e,t){this.specificationVersion="v2",this.supportedUrls={"image/*":[/^https?:\/\/.*$/]},this.modelId=e,this.config=t}get provider(){return this.config.provider}async getArgs({prompt:e,maxOutputTokens:t,temperature:n,topP:r,topK:i,frequencyPenalty:o,presencePenalty:l,stopSequences:a,responseFormat:s,seed:u,tools:c,toolChoice:p,providerOptions:d}){var f,h,m,g,y,v,k,x,b;let w=[],_=null!=(f=await eA({provider:"openai",providerOptions:d,schema:eJ}))?f:{},I=null==(h=_.structuredOutputs)||h;null!=i&&w.push({type:"unsupported-setting",setting:"topK"}),(null==s?void 0:s.type)!=="json"||null==s.schema||I||w.push({type:"unsupported-setting",setting:"responseFormat",details:"JSON response format schema is only supported with structuredOutputs"});let{messages:S,warnings:C}=function({prompt:e,systemMessageMode:t="system"}){let n=[],r=[];
11for(let{role:i,content:o}of e)switch(i){case"system":switch(t){case"system":n.push({role:"system",content:o});break;case"developer":n.push({role:"developer",content:o});break;case"remove":r.push({type:"other",message:"system messages are removed for this model"});break;default:throw Error(`Unsupported system message mode: ${t}`)}break;case"user":if(1===o.length&&"text"===o[0].type){n.push({role:"user",content:o[0].text});break}n.push({role:"user",content:o.map((e,t)=>{var n,r,i;switch(e.type){case"text":return{type:"text",text:e.text};case"file":if(e.mediaType.startsWith("image/")){let t="image/*"===e.mediaType?"image/jpeg":e.mediaType;return{type:"image_url",image_url:{url:e.data instanceof URL?e.data.toString():`data:${t};base64,${e$(e.data)}`,detail:null==(r=null==(n=e.providerOptions)?void 0:n.openai)?void 0:r.imageDetail}}}if(e.mediaType.startsWith("audio/")){if(e.data instanceof URL)throw new es({functionality:"audio file parts with URLs"});switch(e.mediaType){case"audio/wav":return{type:"input_audio",input_audio:{data:e$(e.data),format:"wav"}};case"audio/mp3":case"audio/mpeg":return{type:"input_audio",input_audio:{data:e$(e.data),format:"mp3"}};default:throw new es({functionality:`audio content parts with media type ${e.mediaType}`})}}else if("application/pdf"===e.mediaType){if(e.data instanceof URL)throw new es({functionality:"PDF file parts with URLs"});return{type:"file",file:"string"==typeof e.data&&e.data.startsWith("file-")?{file_id:e.data}:{filename:null!=(i=e.filename)?i:`part-${t}.pdf`,file_data:`data:application/pdf;base64,${e$(e.data)}`}}}else throw new es({functionality:`file part media type ${e.mediaType}`})}})});break;case"assistant":{let e="",t=[];for(let n of o)switch(n.type){case"text":e+=n.text;break;case"tool-call":t.push({id:n.toolCallId,type:"function",function:{name:n.toolName,arguments:JSON.stringify(n.input)}})}n.push({role:"assistant",content:e,tool_calls:t.length>0?t:void 0});break}case"tool":for(let e of o){let t,r=e.output;switch(r.type){case"text":case"error-text":t=r.value;break;case"content":case"json":case"error-json":t=JSON.stringify(r.value)}n.push({role:"tool",tool_call_id:e.toolCallId,content:t})}break;default:throw Error(`Unsupported role: ${i}`)}return{messages:n,warnings:r}}({prompt:e,systemMessageMode:e9(y=this.modelId)?null!=(k=null==(v=e7[y])?void 0:v.systemMessageMode)?k:"developer":"system"});w.push(...C);let T=null!=(m=_.strictJsonSchema)&&m,j={model:this.modelId,logit_bias:_.logitBias,logprobs:!0===_.logprobs||"number"==typeof _.logprobs||void 0,top_logprobs:"number"==typeof _.logprobs?_.logprobs:"boolean"==typeof _.logprobs&&_.logprobs?0:void 0,user:_.user,parallel_tool_calls:_.parallelToolCalls,max_tokens:t,temperature:n,top_p:r,frequency_penalty:o,presence_penalty:l,response_format:(null==s?void 0:s.type)==="json"?I&&null!=s.schema?{type:"json_schema",json_schema:{schema:s.schema,strict:T,name:null!=(g=s.name)?g:"response",description:s.description}}:{type:"json_object"}:void 0,stop:a,seed:u,verbosity:_.textVerbosity,max_completion_tokens:_.maxCompletionTokens,store:_.store,metadata:_.metadata,prediction:_.prediction,reasoning_effort:_.reasoningEffort,service_tier:_.serviceTier,prompt_cache_key:_.promptCacheKey,safety_identifier:_.safetyIdentifier,messages:S};e9(this.modelId)?(null!=j.temperature&&(j.temperature=void 0,w.push({type:"unsupported-setting",setting:"temperature",details:"temperature is not supported for reasoning models"})),null!=j.top_p&&(j.top_p=void 0,w.push({type:"unsupported-setting",setting:"topP",details:"topP is not supported for reasoning models"})),null!=j.frequency_penalty&&(j.frequency_penalty=void 0,w.push({type:"unsupported-setting",setting:"frequencyPenalty",details:"frequencyPenalty is not supported for reasoning models"})),null!=j.presence_penalty&&(j.presence_penalty=void 0,w.push({type:"unsupported-setting",setting:"presencePenalty",details:"presencePenalty is not supported for reasoning models"})),null!=j.logit_bias&&(j.logit_bias=void 0,w.push({type:"other",message:"logitBias is not supported for reasoning models"})),null!=j.logprobs&&(j.logprobs=void 0,w.push({type:"other",message:"logprobs is not supported for reasoning models"})),null!=j.top_logprobs&&(j.top_logprobs=void 0,w.push({type:"other",message:"topLogprobs is not supported for reasoning models"})),null!=j.max_tokens&&(null==j.max_completion_tokens&&(j.max_completion_tokens=j.max_tokens),j.max_tokens=void 0)):(this.modelId.startsWith("gpt-4o-search-preview")||this.modelId.startsWith("gpt-4o-mini-search-preview"))&&null!=j.temperature&&(j.temperature=void 0,w.push({type:"unsupported-setting",setting:"temperature",details:"temperature is not supported for the search preview models and has been removed."})),"flex"!==_.serviceTier||(x=this.modelId).startsWith("o3")||x.startsWith("o4-mini")||x.startsWith("gpt-5")&&!x.startsWith("gpt-5-chat")||(w.push({type:"unsupported-setting",setting:"serviceTier",details:"flex processing is only available for o3, o4-mini, and gpt-5 models"}),j.service_tier=void 0),"priority"!==_.serviceTier||(b=this.modelId).startsWith("gpt-4")||b.startsWith("gpt-5-mini")||b.startsWith("gpt-5")&&!b.startsWith("gpt-5-nano")&&!b.startsWith("gpt-5-chat")||b.startsWith("o3")||b.startsWith("o4-mini")||(w.push({type:"unsupported-setting",setting:"serviceTier",details:"priority processing is only available for supported models (gpt-4, gpt-5, gpt-5-mini, o3, o4-mini) and requires Enterprise access. gpt-5-nano is not supported"}),j.service_tier=void 0);let{tools:E,toolChoice:A,toolWarnings:P}=function({tools:e,toolChoice:t,structuredOutputs:n,strictJsonSchema:r}){e=(null==e?void 0:e.length)?e:void 0;let i=[];if(null==e)return{tools:void 0,toolChoice:void 0,toolWarnings:i};let o=[];for(let t of e)switch(t.type){case"function":o.push({type:"function",function:{name:t.name,description:t.description,parameters:t.inputSchema,strict:n?r:void 0}});break;case"provider-defined":switch(t.id){case"openai.file_search":{let e=eX.parse(t.args);o.push({type:"file_search",vector_store_ids:e.vectorStoreIds,max_num_results:e.maxNumResults,ranking_options:e.ranking?{ranker:e.ranking.ranker}:void 0,filters:e.filters});break}case"openai.web_search_preview":{let e=e1.parse(t.args);o.push({type:"web_search_preview",search_context_size:e.searchContextSize,user_location:e.userLocation});break}default:i.push({type:"unsupported-tool",tool:t})}break;default:i.push({type:"unsupported-tool",tool:t})}if(null==t)return{tools:o,toolChoice:void 0,toolWarnings:i};let l=t.type;switch(l){case"auto":case"none":case"required":return{tools:o,toolChoice:l,toolWarnings:i};case"tool":return{tools:o,toolChoice:{type:"function",function:{name:t.toolName}},toolWarnings:i};default:throw new es({functionality:`tool choice type: ${l}`})}}({tools:c,toolChoice:p,structuredOutputs:I,strictJsonSchema:T});return{args:{...j,tools:E,tool_choice:A},warnings:[...w,...P]}}async doGenerate(e){var t,n,r,i,o,l,a,s,u,c,p,d,f,h;let{args:m,warnings:g}=await this.getArgs(e),{responseHeaders:y,value:v,rawValue:k}=await eO({url:this.config.url({path:"/chat/completions",modelId:this.modelId}),headers:eg(this.config.headers(),e.headers),body:m,failedResponseHandler:eH,successfulResponseHandler:eL(e3),abort
11Signal:e.abortSignal,fetch:this.config.fetch}),x=v.choices[0],b=[],w=x.message.content;for(let e of(null!=w&&w.length>0&&b.push({type:"text",text:w}),null!=(t=x.message.tool_calls)?t:[]))b.push({type:"tool-call",toolCallId:null!=(n=e.id)?n:ev(),toolName:e.function.name,input:e.function.arguments});for(let e of null!=(r=x.message.annotations)?r:[])b.push({type:"source",sourceType:"url",id:ev(),url:e.url,title:e.title});let _=null==(i=v.usage)?void 0:i.completion_tokens_details,I=null==(o=v.usage)?void 0:o.prompt_tokens_details,S={openai:{}};return(null==_?void 0:_.accepted_prediction_tokens)!=null&&(S.openai.acceptedPredictionTokens=null==_?void 0:_.accepted_prediction_tokens),(null==_?void 0:_.rejected_prediction_tokens)!=null&&(S.openai.rejectedPredictionTokens=null==_?void 0:_.rejected_prediction_tokens),(null==(l=x.logprobs)?void 0:l.content)!=null&&(S.openai.logprobs=x.logprobs.content),{content:b,finishReason:eK(x.finish_reason),usage:{inputTokens:null!=(s=null==(a=v.usage)?void 0:a.prompt_tokens)?s:void 0,outputTokens:null!=(c=null==(u=v.usage)?void 0:u.completion_tokens)?c:void 0,totalTokens:null!=(d=null==(p=v.usage)?void 0:p.total_tokens)?d:void 0,reasoningTokens:null!=(f=null==_?void 0:_.reasoning_tokens)?f:void 0,cachedInputTokens:null!=(h=null==I?void 0:I.cached_tokens)?h:void 0},request:{body:m},response:{...eW(v),headers:y,body:k},warnings:g,providerMetadata:S}}async doStream(e){let{args:t,warnings:n}=await this.getArgs(e),r={...t,stream:!0,stream_options:{include_usage:!0}},{responseHeaders:i,value:o}=await eO({url:this.config.url({path:"/chat/completions",modelId:this.modelId}),headers:eg(this.config.headers(),e.headers),body:r,failedResponseHandler:eH,successfulResponseHandler:eD(e6),abortSignal:e.abortSignal,fetch:this.config.fetch}),l=[],a="unknown",s={inputTokens:void 0,outputTokens:void 0,totalTokens:void 0},u=!0,c=!1,p={openai:{}};return{stream:o.pipeThrough(new TransformStream({start(e){e.enqueue({type:"stream-start",warnings:n})},transform(t,n){var r,i,o,d,f,h,m,g,y,v,k,x,b,w,_,I,S,C,T,j,E,A,P,O;if(e.includeRawChunks&&n.enqueue({type:"raw",rawValue:t.rawValue}),!t.success){a="error",n.enqueue({type:"error",error:t.error});return}let M=t.value;if("error"in M){a="error",n.enqueue({type:"error",error:M.error});return}u&&(u=!1,n.enqueue({type:"response-metadata",...eW(M)})),null!=M.usage&&(s.inputTokens=null!=(r=M.usage.prompt_tokens)?r:void 0,s.outputTokens=null!=(i=M.usage.completion_tokens)?i:void 0,s.totalTokens=null!=(o=M.usage.total_tokens)?o:void 0,s.reasoningTokens=null!=(f=null==(d=M.usage.completion_tokens_details)?void 0:d.reasoning_tokens)?f:void 0,s.cachedInputTokens=null!=(m=null==(h=M.usage.prompt_tokens_details)?void 0:h.cached_tokens)?m:void 0,(null==(g=M.usage.completion_tokens_details)?void 0:g.accepted_prediction_tokens)!=null&&(p.openai.acceptedPredictionTokens=null==(y=M.usage.completion_tokens_details)?void 0:y.accepted_prediction_tokens),(null==(v=M.usage.completion_tokens_details)?void 0:v.rejected_prediction_tokens)!=null&&(p.openai.rejectedPredictionTokens=null==(k=M.usage.completion_tokens_details)?void 0:k.rejected_prediction_tokens));let Y=M.choices[0];if((null==Y?void 0:Y.finish_reason)!=null&&(a=eK(Y.finish_reason)),(null==(x=null==Y?void 0:Y.logprobs)?void 0:x.content)!=null&&(p.openai.logprobs=Y.logprobs.content),(null==Y?void 0:Y.delta)==null)return;let N=Y.delta;if(null!=N.content&&(c||(n.enqueue({type:"text-start",id:"0"}),c=!0),n.enqueue({type:"text-delta",id:"0",delta:N.content})),null!=N.tool_calls)for(let e of N.tool_calls){let t=e.index;if(null==l[t]){if("function"!==e.type)throw new z({data:e,message:"Expected 'function' type."});if(null==e.id)throw new z({data:e,message:"Expected 'id' to be a string."});if((null==(b=e.function)?void 0:b.name)==null)throw new z({data:e,message:"Expected 'function.name' to be a string."});n.enqueue({type:"tool-input-start",id:e.id,toolName:e.function.name}),l[t]={id:e.id,type:"function",function:{name:e.function.name,arguments:null!=(w=e.function.arguments)?w:""},hasFinished:!1};let r=l[t];(null==(_=r.function)?void 0:_.name)!=null&&(null==(I=r.function)?void 0:I.arguments)!=null&&(r.function.arguments.length>0&&n.enqueue({type:"tool-input-delta",id:r.id,delta:r.function.arguments}),eE(r.function.arguments)&&(n.enqueue({type:"tool-input-end",id:r.id}),n.enqueue({type:"tool-call",toolCallId:null!=(S=r.id)?S:ev(),toolName:r.function.name,input:r.function.arguments}),r.hasFinished=!0));continue}let r=l[t];!r.hasFinished&&((null==(C=e.function)?void 0:C.arguments)!=null&&(r.function.arguments+=null!=(j=null==(T=e.function)?void 0:T.arguments)?j:""),n.enqueue({type:"tool-input-delta",id:r.id,delta:null!=(E=e.function.arguments)?E:""}),(null==(A=r.function)?void 0:A.name)!=null&&(null==(P=r.function)?void 0:P.arguments)!=null&&eE(r.function.arguments)&&(n.enqueue({type:"tool-input-end",id:r.id}),n.enqueue({type:"tool-call",toolCallId:null!=(O=r.id)?O:ev(),toolName:r.function.name,input:r.function.arguments}),r.hasFinished=!0))}if(null!=N.annotations)for(let e of N.annotations)n.enqueue({type:"source",sourceType:"url",id:ev(),url:e.url,title:e.title})}
11,flush(e){c&&e.enqueue({type:"text-end",id:"0"}),e.enqueue({type:"finish",finishReason:a,usage:s,...null!=p?{providerMetadata:p}:{}})}})),request:{body:r},response:{headers:i}}}},e5=eV.Ik({prompt_tokens:eV.ai().nullish(),completion_tokens:eV.ai().nullish(),total_tokens:eV.ai().nullish(),prompt_tokens_details:eV.Ik({cached_tokens:eV.ai().nullish()}).nullish(),completion_tokens_details:eV.Ik({reasoning_tokens:eV.ai().nullish(),accepted_prediction_tokens:eV.ai().nullish(),rejected_prediction_tokens:eV.ai().nullish()}).nullish()}).nullish(),e3=eV.Ik({id:eV.Yj().nullish(),created:eV.ai().nullish(),model:eV.Yj().nullish(),choices:eV.YO(eV.Ik({message:eV.Ik({role:eV.eu("assistant").nullish(),content:eV.Yj().nullish(),tool_calls:eV.YO(eV.Ik({id:eV.Yj().nullish(),type:eV.eu("function"),function:eV.Ik({name:eV.Yj(),arguments:eV.Yj()})})).nullish(),annotations:eV.YO(eV.Ik({type:eV.eu("url_citation"),start_index:eV.ai(),end_index:eV.ai(),url:eV.Yj(),title:eV.Yj()})).nullish()}),index:eV.ai(),logprobs:eV.Ik({content:eV.YO(eV.Ik({token:eV.Yj(),logprob:eV.ai(),top_logprobs:eV.YO(eV.Ik({token:eV.Yj(),logprob:eV.ai()}))})).nullish()}).nullish(),finish_reason:eV.Yj().nullish()})),usage:e5}),e6=eV.KC([eV.Ik({id:eV.Yj().nullish(),created:eV.ai().nullish(),model:eV.Yj().nullish(),choices:eV.YO(eV.Ik({delta:eV.Ik({role:eV.k5(["assistant"]).nullish(),content:eV.Yj().nullish(),tool_calls:eV.YO(eV.Ik({index:eV.ai(),id:eV.Yj().nullish(),type:eV.eu("function").nullish(),function:eV.Ik({name:eV.Yj().nullish(),arguments:eV.Yj().nullish()})})).nullish(),annotations:eV.YO(eV.Ik({type:eV.eu("url_citation"),start_index:eV.ai(),end_index:eV.ai(),url:eV.Yj(),title:eV.Yj()})).nullish()}).nullish(),logprobs:eV.Ik({content:eV.YO(eV.Ik({token:eV.Yj(),logprob:eV.ai(),top_logprobs:eV.YO(eV.Ik({token:eV.Yj(),logprob:eV.ai()}))})).nullish()}).nullish(),finish_reason:eV.Yj().nullish(),index:eV.ai()})),usage:e5}),eU]);function e9(e){return(e.startsWith("o")||e.startsWith("gpt-5"))&&!e.startsWith("gpt-5-chat")}var e7={"o1-mini":{systemMessageMode:"remove"},"o1-mini-2024-09-12":{systemMessageMode:"remove"},"o1-preview":{systemMessageMode:"remove"},"o1-preview-2024-09-12":{systemMessageMode:"remove"},o3:{systemMessageMode:"developer"},"o3-2025-04-16":{systemMessageMode:"developer"},"o3-mini":{systemMessageMode:"developer"},"o3-mini-2025-01-31":{systemMessageMode:"developer"},"o4-mini":{systemMessageMode:"developer"},"o4-mini-2025-04-16":{systemMessageMode:"developer"}};function e8({id:e,model:t,created:n}){return{id:null!=e?e:void 0,modelId:null!=t?t:void 0,timestamp:null!=n?new Date(1e3*n):void 0}}function te(e){switch(e){case"stop":return"stop";case"length":return"length";case"content_filter":return"content-filter";case"function_call":case"tool_calls":return"tool-calls";default:return"unknown"}}var tt=eV.Ik({echo:eV.zM().optional(),logitBias:eV.g1(eV.Yj(),eV.ai()).optional(),suffix:eV.Yj().optional(),user:eV.Yj().optional(),logprobs:eV.KC([eV.zM(),eV.ai()]).optional()}),tn=class{constructor(e,t){this.specificationVersion="v2",this.supportedUrls={},this.modelId=e,this.config=t}get providerOptionsName(){return this.config.provider.split(".")[0].trim()}get provider(){return this.config.provider}async getArgs({prompt:e,maxOutputTokens:t,temperature:n,topP:r,topK:i,frequencyPenalty:o,presencePenalty:l,stopSequences:a,responseFormat:s,tools:u,toolChoice:c,seed:p,providerOptions:d}){let f=[],h={...await eA({provider:"openai",providerOptions:d,schema:tt}),...await eA({provider:this.providerOptionsName,providerOptions:d,schema:tt})};null!=i&&f.push({type:"unsupported-setting",setting:"topK"}),(null==u?void 0:u.length)&&f.push({type:"unsupported-setting",setting:"tools"}),null!=c&&f.push({type:"unsupported-setting",setting:"toolChoice"}),null!=s&&"text"!==s.type&&f.push({type:"unsupported-setting",setting:"responseFormat",details:"JSON response format is not supported."});let{prompt:m,stopSequences:g}=function({prompt:e,user:t="user",assistant:n="assistant"}){let r="";for(let{role:i,content:o}of("system"===e[0].role&&(r+=`${e[0].content}
12
13`,e=e.slice(1)),e))switch(i){case"system":throw new N({message:"Unexpected system message in prompt: ${content}",prompt:e});case"user":{let e=o.map(e=>{if("text"===e.type)return e.text}
13).filter(Boolean).join("");r+=`${t}:
14${e}
15
16`;break}case"assistant":{let e=o.map(e=>{switch(e.type){case"text":return e.text;case"tool-call":throw new es({functionality:"tool-call messages"})}}).join("");r+=`${n}:
17${e}
18
19`;break}case"tool":throw new es({functionality:"tool messages"});default:throw Error(`Unsupported role: ${i}`)}return{prompt:r+=`${n}:
20`,stopSequences:[`
21${t}:`]}}({prompt:e}),y=[...null!=g?g:[],...null!=a?a:[]];return{args:{model:this.modelId,echo:h.echo,logit_bias:h.logitBias,logprobs:(null==h?void 0:h.logprobs)===!0?0:(null==h?void 0:h.logprobs)===!1?void 0:null==h?void 0:h.logprobs,suffix:h.suffix,user:h.user,max_tokens:t,temperature:n,top_p:r,frequency_penalty:o,presence_penalty:l,seed:p,prompt:m,stop:y.length>0?y:void 0},warnings:f}}async doGenerate(e){var t,n,r;let{args:i,warnings:o}=await this.getArgs(e),{responseHeaders:l,value:a,rawValue:s}=await eO({url:this.config.url({path:"/completions",modelId:this.modelId}),headers:eg(this.config.headers(),e.headers),body:i,failedResponseHandler:eH,successfulResponseHandler:eL(ti),abortSignal:e.abortSignal,fetch:this.config.fetch}),u=a.choices[0],c={openai:{}};return null!=u.logprobs&&(c.openai.logprobs=u.logprobs),{content:[{type:"text",text:u.text}],usage:{inputTokens:null==(t=a.usage)?void 0:t.prompt_tokens,outputTokens:null==(n=a.usage)?void 0:n.completion_tokens,totalTokens:null==(r=a.usage)?void 0:r.total_tokens},finishReason:te(u.finish_reason),request:{body:i},response:{...e8(a),headers:l,body:s},providerMetadata:c,warnings:o}}async doStream(e){let{args:t,warnings:n}=await this.getArgs(e),r={...t,stream:!0,stream_options:{include_usage:!0}},{responseHeaders:i,value:o}=await eO({url:this.config.url({path:"/completions",modelId:this.modelId}),headers:eg(this.config.headers(),e.headers),body:r,failedResponseHandler:eH,successfulResponseHandler:eD(to),abortSignal:e.abortSignal,fetch:this.config.fetch}),l="unknown",a={openai:{}},s={inputTokens:void 0,outputTokens:void 0,totalTokens:void 0},u=!0;return{stream:o.pipeThrough(new TransformStream({start(e){e.enqueue({type:"stream-start",warnings:n})},transform(t,n){if(e.includeRawChunks&&n.enqueue({type:"raw",rawValue:t.rawValue}),!t.success){l="error",n.enqueue({type:"error",error:t.error});return}let r=t.value;if("error"in r){l="error",n.enqueue({type:"error",error:r.error});return}u&&(u=!1,n.enqueue({type:"response-metadata",...e8(r)}),n.enqueue({type:"text-start",id:"0"})),null!=r.usage&&(s.inputTokens=r.usage.prompt_tokens,s.outputTokens=r.usage.completion_tokens,s.totalTokens=r.usage.total_tokens);let i=r.choices[0];(null==i?void 0:i.finish_reason)!=null&&(l=te(i.finish_reason)),(null==i?void 0:i.logprobs)!=null&&(a.openai.logprobs=i.logprobs),(null==i?void 0:i.text)!=null&&i.text.length>0&&n.enqueue({type:"text-delta",id:"0",delta:i.text})},flush(e){u||e.enqueue({type:"text-end",id:"0"}),e.enqueue({type:"finish",finishReason:l,providerMetadata:a,usage:s})}})),request:{body:r},response:{headers:i}}}},tr=eV.Ik({prompt_tokens:eV.ai(),completion_tokens:eV.ai(),total_tokens:eV.ai()}),ti=eV.Ik({id:eV.Yj().nullish(),created:eV.ai().nullish(),model:eV.Yj().nullish(),choices:eV.YO(eV.Ik({text:eV.Yj(),finish_reason:eV.Yj(),logprobs:eV.Ik({tokens:eV.YO(eV.Yj()),token_logprobs:eV.YO(eV.ai()),top_logprobs:eV.YO(eV.g1(eV.Yj(),eV.ai())).nullish()}).nullish()})),usage:tr.nullish()}),to=eV.KC([eV.Ik({id:eV.Yj().nullish(),created:eV.ai().nullish(),model:eV.Yj().nullish(),choices:eV.YO(eV.Ik({text:eV.Yj(),finish_reason:eV.Yj().nullish(),index:eV.ai(),logprobs:eV.Ik({tokens:eV.YO(eV.Yj()),token_logprobs:eV.YO(eV.ai()),top_logprobs:eV.YO(eV.g1(eV.Yj(),eV.ai())).nullish()}).nullish()})),usage:tr.nullish()}),eU]),tl=eV.Ik({dimensions:eV.ai().optional(),user:eV.Yj().optional()}),ta=class{constructor(e,t){this.specificationVersion="v2",this.maxEmbeddingsPerCall=2048,this.supportsParallelCalls=!0,this.modelId=e,this.config=t}get provider(){return this.config.provider}async doEmbed({values:e,headers:t,abortSignal:n,providerOptions:r}){var i;if(e.length>this.maxEmbeddingsPerCall)throw new ee({provider:this.provider,modelId:this.modelId,maxEmbeddingsPerCall:this.maxEmbeddingsPerCall,values:e});let o=null!=(i=await eA({provider:"openai",providerOptions:r,schema:tl}))?i:{},{responseHeaders:l,value:a,rawValue:s}=await eO({url:this.config.url({path:"/embeddings",modelId:this.modelId}),headers:eg(this.config.headers(),t),body:{model:this.modelId,input:e,encoding_format:"float",dimensions:o.dimensions,user:o.user},failedResponseHandler:eH,successfulResponseHandler:eL(ts),abortSignal:n,fetch:this.config.fetch});return{embeddings:a.data.map(e=>e.embedding),usage:a.usage?{tokens:a.usage.prompt_tokens}:void 0,response:{headers:l,body:s}}}},ts=eV.Ik({data:eV.YO(eV.Ik({embedding:eV.YO(eV.ai())})),usage:eV.Ik({prompt_tokens:eV.ai()}).nullish()}),tu={"dall-e-3":1,"dall-e-2":10,"gpt-image-1":10},tc=new Set(["gpt-image-1"]),tp=class{constructor(e,t){this.modelId=e,this.config=t,this.specificationVersion="v2"}get maxImagesPerCall(){var e;return null!=(e=tu[this.modelId])?e:1}get provider(){return this.config.provider}async doGenerate({prompt:e,n:t,size:n,aspectRatio:r,seed:i,providerOptions:o,headers:l,abortSignal:a}){var s,u,c,p;let d=[];null!=r&&d.push({type:"unsupported-setting",setting:"aspectRatio",details:"This model does not support aspect ratio. Use `size` instead."}),null!=i&&d.push({type:"unsupported-setting",setting:"seed"});let f=null!=(c=null==(u=null==(s=this.config._internal)?void 0:s.currentDate)?void 0:u.call(s))?c:new Date,{value:h,responseHeaders:m}=await eO({url:this.config.url({path:"/images/generations",modelId:this.modelId}),headers:eg(this.config.headers(),l),body:{model:this.modelId,prompt:e,n:t,size:n,...null!=(p=o.openai)?p:{},...tc.has(this.modelId)?{}:{response_format:"b64_json"}},failedResponseHandler:eH,successfulResponseHandler:eL(td),abortSignal:a,fetch:this.config.fetch});return{images:h.data.map(e=>e.b64_json),warnings:d,response:{timestamp:f,modelId:this.modelId,headers:m},providerMetadata:{openai:{images:h.data.map(e=>e.revised_prompt?{revisedPrompt:e.revised_prompt}:null)}}}}},td=eV.Ik({data:eV.YO(eV.Ik({b64_json:eV.Yj(),revised_prompt:eV.Yj().optional()}))}),tf=eV.Ik({container:eV.KC([eV.Yj(),eV.Ik({fileIds:eV.YO(eV.Yj()).optional()})]).optional()}),th={codeInterpreter:eN({id:"openai.code_interpreter",name:"code_interpreter",inputSchema:eV.Ik({})}),fileSearch:e0,webSearchPreview:e2};function tm(e,t){return!!t&&t.some(t=>e.startsWith(t))}async function tg({prompt:e,systemMessageMode:t,fileIdPrefixes:n}){var r,i,o,l,a,s;let u=[],c=[];for(let{role:p,content:d}of e)switch(p){case"system":switch(t){case"system":u.push({role:"system",content:d});break;
21case"developer":u.push({role:"developer",content:d});break;case"remove":c.push({type:"other",message:"system messages are removed for this model"});break;default:throw Error(`Unsupported system message mode: ${t}`)}break;case"user":u.push({role:"user",content:d.map((e,t)=>{var r,i,o;switch(e.type){case"text":return{type:"input_text",text:e.text};case"file":if(e.mediaType.startsWith("image/")){let t="image/*"===e.mediaType?"image/jpeg":e.mediaType;return{type:"input_image",...e.data instanceof URL?{image_url:e.data.toString()}:"string"==typeof e.data&&tm(e.data,n)?{file_id:e.data}:{image_url:`data:${t};base64,${e$(e.data)}`},detail:null==(i=null==(r=e.providerOptions)?void 0:r.openai)?void 0:i.imageDetail}}if("application/pdf"===e.mediaType){if(e.data instanceof URL)throw new es({functionality:"PDF file parts with URLs"});return{type:"input_file",..."string"==typeof e.data&&tm(e.data,n)?{file_id:e.data}:{filename:null!=(o=e.filename)?o:`part-${t}.pdf`,file_data:`data:application/pdf;base64,${e$(e.data)}`}}}throw new es({functionality:`file part media type ${e.mediaType}`})}})});break;case"assistant":{let e={};for(let t of d)switch(t.type){case"text":u.push({role:"assistant",content:[{type:"output_text",text:t.text}],id:null!=(o=null==(i=null==(r=t.providerOptions)?void 0:r.openai)?void 0:i.itemId)?o:void 0});break;case"tool-call":if(t.providerExecuted)break;u.push({type:"function_call",call_id:t.toolCallId,name:t.toolName,arguments:JSON.stringify(t.input),id:null!=(s=null==(a=null==(l=t.providerOptions)?void 0:l.openai)?void 0:a.itemId)?s:void 0});break;case"tool-result":c.push({type:"other",message:"tool result parts in assistant messages are not supported for OpenAI responses"});break;case"reasoning":{let n=await eA({provider:"openai",providerOptions:t.providerOptions,schema:ty}),r=null==n?void 0:n.itemId;if(null!=r){let i=e[r],o=[];t.text.length>0?o.push({type:"summary_text",text:t.text}):void 0!==i&&c.push({type:"other",message:`Cannot append empty reasoning part to existing reasoning sequence. Skipping reasoning part: ${JSON.stringify(t)}.`}),void 0===i?(e[r]={type:"reasoning",id:r,encrypted_content:null==n?void 0:n.reasoningEncryptedContent,summary:o},u.push(e[r])):i.summary.push(...o)}else c.push({type:"other",message:`Non-OpenAI reasoning parts are not supported. Skipping reasoning part: ${JSON.stringify(t)}.`})}}break}case"tool":for(let e of d){let t,n=e.output;switch(n.type){case"text":case"error-text":t=n.value;break;case"content":case"json":case"error-json":t=JSON.stringify(n.value)}u.push({type:"function_call_output",call_id:e.toolCallId,output:t})}break;default:throw Error(`Unsupported role: ${p}`)}return{messages:u,warnings:c}}var ty=eV.Ik({itemId:eV.Yj().nullish(),reasoningEncryptedContent:eV.Yj().nullish()});function tv({finishReason:e,hasToolCalls:t}){switch(e){case void 0:case null:return t?"tool-calls":"stop";case"max_output_tokens":return"length";case"content_filter":return"content-filter";default:return t?"tool-calls":"unknown"}}var tk=eV.YO(eV.Ik({token:eV.Yj(),logprob:eV.ai(),top_logprobs:eV.YO(eV.Ik({token:eV.Yj(),logprob:eV.ai()}))})),tx=class{constructor(e,t){this.specificationVersion="v2",this.supportedUrls={"image/*":[/^https?:\/\/.*$/]},this.modelId=e,this.config=t}get provider(){return this.config.provider}async getArgs({maxOutputTokens:e,temperature:t,stopSequences:n,topP:r,topK:i,presencePenalty:o,frequencyPenalty:l,seed:a,prompt:s,providerOptions:u,tools:c,toolChoice:p,responseFormat:d}){var f,h;let m=[],g=function(e){let t={requiredAutoTruncation:!1,systemMessageMode:"system",supportsFlexProcessing:e.startsWith("o3")||e.startsWith("o4-mini")||e.startsWith("gpt-5")&&!e.startsWith("gpt-5-chat"),supportsPriorityProcessing:e.startsWith("gpt-4")||e.startsWith("gpt-5-mini")||e.startsWith("gpt-5")&&!e.startsWith("gpt-5-nano")&&!e.startsWith("gpt-5-chat")||e.startsWith("o3")||e.startsWith("o4-mini")};return e.startsWith("gpt-5-chat")?{...t,isReasoningModel:!1}:e.startsWith("o")||e.startsWith("gpt-5")||e.startsWith("codex-")||e.startsWith("computer-use")?e.startsWith("o1-mini")||e.startsWith("o1-preview")?{...t,isReasoningModel:!0,systemMessageMode:"remove"}:{...t,isReasoningModel:!0,systemMessageMode:"developer"}:{...t,isReasoningModel:!1}}(this.modelId);null!=i&&m.push({type:"unsupported-setting",setting:"topK"}),null!=a&&m.push({type:"unsupported-setting",setting:"seed"}),null!=o&&m.push({type:"unsupported-setting",setting:"presencePenalty"}),null!=l&&m.push({type:"unsupported-setting",setting:"frequencyPenalty"}),null!=n&&m.push({type:"unsupported-setting",setting:"stopSequences"});let{messages:y,warnings:v}=await tg({prompt:s,systemMessageMode:g.systemMessageMode,fileIdPrefixes:this.config.fileIdPrefixes});m.push(...v);let k=await eA({provider:"openai",providerOptions:u,schema:tN}),x=null!=(f=null==k?void 0:k.strictJsonSchema)&&f,b="number"==typeof(null==k?void 0:k.logprobs)?null==k?void 0:k.logprobs:(null==k?void 0:k.logprobs)===!0?20:void 0,w=b?Array.isArray(null==k?void 0:k.include)?[...null==k?void 0:k.include,"message.output_text.logprobs"]:["message.output_text.logprobs"]:null==k?void 0:k.include,_={model:this.modelId,input:y,temperature:t,top_p:r,max_output_tokens:e,...((null==d?void 0:d.type)==="json"||(null==k?void 0:k.textVerbosity))&&{text:{...(null==d?void 0:d.type)==="json"&&{format:null!=d.schema?{type:"json_schema",strict:x,name:null!=(h=d.name)?h:"response",description:d.description,schema:d.schema}:{type:"json_object"}},...(null==k?void 0:k.textVerbosity)&&{verbosity:k.textVerbosity}}},metadata:null==k?void 0:k.metadata,parallel_tool_calls:null==k?void 0:k.parallelToolCalls,previous_response_id:null==k?void 0:k.previousResponseId,store:null==k?void 0:k.store,user:null==k?void 0:k.user,instructions:null==k?void 0:k.instructions,service_tier:null==k?void 0:k.serviceTier,include:w,prompt_cache_key:null==k?void 0:k.promptCacheKey,safety_identifier:null==k?void 0:k.safetyIdentifier,top_logprobs:b,...g.isReasoningModel&&((null==k?void 0:k.reasoningEffort)!=null||(null==k?void 0:k.reasoningSummary)!=null)&&{reasoning:{...(null==k?void 0:k.reasoningEffort)!=null&&{effort:k.reasoningEffort},...(null==k?void 0:k.reasoningSummary)!=null&&{summary:k.reasoningSummary}}},...g.requiredAutoTruncation&&{truncation:"auto"}};g.isReasoningModel?(null!=_.temperature&&(_.temperature=void 0,m.push({type:"unsupported-setting",setting:"temperature",details:"temperature is not supported for reasoning models"})),null!=_.top_p&&(_.top_p=void 0,m.push({type:"unsupported-setting",setting:"topP",details:"topP is not supported for reasoning models"}))):((null==k?void 0:k.reasoningEffort)!=null&&m.push({type:"unsupported-setting",setting:"reasoningEffort",details:"reasoningEffort is not supported for non-reasoning models"}),(null==k?void 0:k.reasoningSummary)!=null&&m.push({type:"unsupported-setting",setting:"reasoningSummary",details:"reasoningSummary is not supported for non-reasoning models"})),(null==k?void 0:k.serviceTier)!=="flex"||g.supportsFlexProcessing||(m.push({type:"unsupported-setting",setting:"serviceTier",details:"flex processing is only available for o3, o4-mini, and gpt-5 models"}
21),delete _.service_tier),(null==k?void 0:k.serviceTier)!=="priority"||g.supportsPriorityProcessing||(m.push({type:"unsupported-setting",setting:"serviceTier",details:"priority processing is only available for supported models (gpt-4, gpt-5, gpt-5-mini, o3, o4-mini) and requires Enterprise access. gpt-5-nano is not supported"}),delete _.service_tier);let{tools:I,toolChoice:S,toolWarnings:C}=function({tools:e,toolChoice:t,strictJsonSchema:n}){e=(null==e?void 0:e.length)?e:void 0;let r=[];if(null==e)return{tools:void 0,toolChoice:void 0,toolWarnings:r};let i=[];for(let t of e)switch(t.type){case"function":i.push({type:"function",name:t.name,description:t.description,parameters:t.inputSchema,strict:n});break;case"provider-defined":switch(t.id){case"openai.file_search":{let e=eX.parse(t.args);i.push({type:"file_search",vector_store_ids:e.vectorStoreIds,max_num_results:e.maxNumResults,ranking_options:e.ranking?{ranker:e.ranking.ranker}:void 0,filters:e.filters});break}case"openai.web_search_preview":{let e=e1.parse(t.args);i.push({type:"web_search_preview",search_context_size:e.searchContextSize,user_location:e.userLocation});break}case"openai.code_interpreter":{let e=tf.parse(t.args);i.push({type:"code_interpreter",container:null==e.container?{type:"auto",file_ids:void 0}:"string"==typeof e.container?e.container:{type:"auto",file_ids:e.container.fileIds}});break}default:r.push({type:"unsupported-tool",tool:t})}break;default:r.push({type:"unsupported-tool",tool:t})}if(null==t)return{tools:i,toolChoice:void 0,toolWarnings:r};let o=t.type;switch(o){case"auto":case"none":case"required":return{tools:i,toolChoice:o,toolWarnings:r};case"tool":return{tools:i,toolChoice:"code_interpreter"===t.toolName||"file_search"===t.toolName||"web_search_preview"===t.toolName?{type:t.toolName}:{type:"function",name:t.toolName},toolWarnings:r};default:throw new es({functionality:`tool choice type: ${o}`})}}({tools:c,toolChoice:p,strictJsonSchema:x});return{args:{..._,tools:I,tool_choice:S},warnings:[...m,...C]}}async doGenerate(e){var t,n,r,i,o,l,a,s,u,c,p,d,f,h,m,g,y;let{args:v,warnings:k}=await this.getArgs(e),x=this.config.url({path:"/responses",modelId:this.modelId}),{responseHeaders:b,value:_,rawValue:I}=await eO({url:x,headers:eg(this.config.headers(),e.headers),body:v,failedResponseHandler:eH,successfulResponseHandler:eL(eV.Ik({id:eV.Yj(),created_at:eV.ai(),error:eV.Ik({code:eV.Yj(),message:eV.Yj()}).nullish(),model:eV.Yj(),output:eV.YO(eV.gM("type",[eV.Ik({type:eV.eu("message"),role:eV.eu("assistant"),id:eV.Yj(),content:eV.YO(eV.Ik({type:eV.eu("output_text"),text:eV.Yj(),logprobs:tk.nullish(),annotations:eV.YO(eV.gM("type",[eV.Ik({type:eV.eu("url_citation"),start_index:eV.ai(),end_index:eV.ai(),url:eV.Yj(),title:eV.Yj()}),eV.Ik({type:eV.eu("file_citation"),start_index:eV.ai(),end_index:eV.ai(),file_id:eV.Yj(),quote:eV.Yj()})]))}))}),eV.Ik({type:eV.eu("function_call"),call_id:eV.Yj(),name:eV.Yj(),arguments:eV.Yj(),id:eV.Yj()}),eV.Ik({type:eV.eu("web_search_call"),id:eV.Yj(),status:eV.Yj().optional(),action:eV.Ik({type:eV.eu("search"),query:eV.Yj().optional()}).nullish()}),eV.Ik({type:eV.eu("computer_call"),id:eV.Yj(),status:eV.Yj().optional()}),eV.Ik({type:eV.eu("file_search_call"),id:eV.Yj(),status:eV.Yj().optional(),queries:eV.YO(eV.Yj()).nullish(),results:eV.YO(eV.Ik({attributes:eV.Ik({file_id:eV.Yj(),filename:eV.Yj(),score:eV.ai(),text:eV.Yj()})})).nullish()}),eV.Ik({type:eV.eu("reasoning"),id:eV.Yj(),encrypted_content:eV.Yj().nullish(),summary:eV.YO(eV.Ik({type:eV.eu("summary_text"),text:eV.Yj()}))})])),incomplete_details:eV.Ik({reason:eV.Yj()}).nullable(),usage:tb})),abortSignal:e.abortSignal,fetch:this.config.fetch});if(_.error)throw new w({message:_.error.message,url:x,requestBodyValues:v,statusCode:400,responseHeaders:b,responseBody:I,isRetryable:!1});let S=[],C=[];for(let f of _.output)switch(f.type){case"reasoning":for(let e of(0===f.summary.length&&f.summary.push({type:"summary_text",text:""}),f.summary))S.push({type:"reasoning",text:e.text,providerMetadata:{openai:{itemId:f.id,reasoningEncryptedContent:null!=(t=f.encrypted_content)?t:null}}});break;case"message":for(let t of f.content)for(let c of((null==(r=null==(n=e.providerOptions)?void 0:n.openai)?void 0:r.logprobs)&&t.logprobs&&C.push(t.logprobs),S.push({type:"text",text:t.text,providerMetadata:{openai:{itemId:f.id}}}),t.annotations))"url_citation"===c.type?S.push({type:"source",sourceType:"url",id:null!=(l=null==(o=(i=this.config).generateId)?void 0:o.call(i))?l:ev(),url:c.url,title:c.title}):"file_citation"===c.type&&S.push({type:"source",sourceType:"document",id:null!=(u=null==(s=(a=this.config).generateId)?void 0:s.call(a))?u:ev(),mediaType:"text/plain",title:c.quote,filename:c.file_id});break;case"function_call":S.push({type:"tool-call",toolCallId:f.call_id,toolName:f.name,input:f.arguments,providerMetadata:{openai:{itemId:f.id}}});break;case"web_search_call":S.push({type:"tool-call",toolCallId:f.id,toolName:"web_search_preview",input:null!=(p=null==(c=f.action)?void 0:c.query)?p:"",providerExecuted:!0}),S.push({type:"tool-result",toolCallId:f.id,toolName:"web_search_preview",result:{status:f.status||"completed",...(null==(d=f.action)?void 0:d.query)&&{query:f.action.query}},providerExecuted:!0});break;case"computer_call":S.push({type:"tool-call",toolCallId:f.id,toolName:"computer_use",input:"",providerExecuted:!0}),S.push({type:"tool-result",toolCallId:f.id,toolName:"computer_use",result:{type:"computer_use_tool_result",status:f.status||"completed"},providerExecuted:!0});break;case"file_search_call":S.push({type:"tool-call",toolCallId:f.id,toolName:"file_search",input:"",providerExecuted:!0}),S.push({type:"tool-result",toolCallId:f.id,toolName:"file_search",result:{type:"file_search_tool_result",status:f.status||"completed",...f.queries&&{queries:f.queries},...f.results&&{results:f.results}},providerExecuted:!0})}let T={openai:{responseId:_.id}};return C.length>0&&(T.openai.logprobs=C),{content:S,finishReason:tv({finishReason:null==(f=_.incomplete_details)?void 0:f.reason,hasToolCalls:S.some(e=>"tool-call"===e.type)}),usage:{inputTokens:_.usage.input_tokens,outputTokens:_.usage.output_tokens,totalTokens:_.usage.input_tokens+_.usage.output_tokens,reasoningTokens:null!=(m=null==(h=_.usage.output_tokens_details)?void 0:h.reasoning_tokens)?m:void 0,cachedInputTokens:null!=(y=null==(g=_.usage.input_tokens_details)?void 0:g.cached_tokens)?y:void 0},request:{body:v},response:{id:_.id,timestamp:new Date(1e3*_.created_at),modelId:_.model,headers:b,body:I},providerMetadata:T,warnings:k}}async doStream(e){let{args:t,warnings:n}=await this.getArgs(e),{responseHeaders:r,value:i}=await eO({url:this.config.url({path:"/responses",modelId:this.modelId}),headers:eg(this.config.headers(),e.headers),body:{...t,stream:!0},failedResponseHandler:eH,successfulResponseHandler:eD(tO),abortSignal:e.abortSignal,fetch:this.config.fetch}),o=this,l="unknown",a={inputTokens:void 0,outputTokens:void 0,totalTokens:void 0},s=[],u=null,c={},p=!1,d={};
21return{stream:i.pipeThrough(new TransformStream({start(e){e.enqueue({type:"stream-start",warnings:n})},transform(t,n){var r,i,f,h,m,g,y,v,k,x,b,w,_,I,S,C,T,j,E,A,P,O;if(e.includeRawChunks&&n.enqueue({type:"raw",rawValue:t.rawValue}),!t.success){l="error",n.enqueue({type:"error",error:t.error});return}let M=t.value;if(tY(M)){"function_call"===M.item.type?(c[M.output_index]={toolName:M.item.name,toolCallId:M.item.call_id},n.enqueue({type:"tool-input-start",id:M.item.call_id,toolName:M.item.name})):"web_search_call"===M.item.type?(c[M.output_index]={toolName:"web_search_preview",toolCallId:M.item.id},n.enqueue({type:"tool-input-start",id:M.item.id,toolName:"web_search_preview"})):"computer_call"===M.item.type?(c[M.output_index]={toolName:"computer_use",toolCallId:M.item.id},n.enqueue({type:"tool-input-start",id:M.item.id,toolName:"computer_use"})):"file_search_call"===M.item.type?(c[M.output_index]={toolName:"file_search",toolCallId:M.item.id},n.enqueue({type:"tool-input-start",id:M.item.id,toolName:"file_search"})):"message"===M.item.type?n.enqueue({type:"text-start",id:M.item.id,providerMetadata:{openai:{itemId:M.item.id}}}):tY(A=M)&&"reasoning"===A.item.type&&(d[M.item.id]={encryptedContent:M.item.encrypted_content,summaryParts:[0]},n.enqueue({type:"reasoning-start",id:`${M.item.id}:0`,providerMetadata:{openai:{itemId:M.item.id,reasoningEncryptedContent:null!=(r=M.item.encrypted_content)?r:null}}}))}else if(tM(M))if("function_call"===M.item.type)c[M.output_index]=void 0,p=!0,n.enqueue({type:"tool-input-end",id:M.item.call_id}),n.enqueue({type:"tool-call",toolCallId:M.item.call_id,toolName:M.item.name,input:M.item.arguments,providerMetadata:{openai:{itemId:M.item.id}}});else if("web_search_call"===M.item.type)c[M.output_index]=void 0,p=!0,n.enqueue({type:"tool-input-end",id:M.item.id}),n.enqueue({type:"tool-call",toolCallId:M.item.id,toolName:"web_search_preview",input:null!=(f=null==(i=M.item.action)?void 0:i.query)?f:"",providerExecuted:!0}),n.enqueue({type:"tool-result",toolCallId:M.item.id,toolName:"web_search_preview",result:{type:"web_search_tool_result",status:M.item.status||"completed",...(null==(h=M.item.action)?void 0:h.query)&&{query:M.item.action.query}},providerExecuted:!0});else if("computer_call"===M.item.type)c[M.output_index]=void 0,p=!0,n.enqueue({type:"tool-input-end",id:M.item.id}),n.enqueue({type:"tool-call",toolCallId:M.item.id,toolName:"computer_use",input:"",providerExecuted:!0}),n.enqueue({type:"tool-result",toolCallId:M.item.id,toolName:"computer_use",result:{type:"computer_use_tool_result",status:M.item.status||"completed"},providerExecuted:!0});else if("file_search_call"===M.item.type)c[M.output_index]=void 0,p=!0,n.enqueue({type:"tool-input-end",id:M.item.id}),n.enqueue({type:"tool-call",toolCallId:M.item.id,toolName:"file_search",input:"",providerExecuted:!0}),n.enqueue({type:"tool-result",toolCallId:M.item.id,toolName:"file_search",result:{type:"file_search_tool_result",status:M.item.status||"completed",...M.item.queries&&{queries:M.item.queries},...M.item.results&&{results:M.item.results}},providerExecuted:!0});else if("message"===M.item.type)n.enqueue({type:"text-end",id:M.item.id});else{if(tM(P=M)&&"reasoning"===P.item.type){for(let e of d[M.item.id].summaryParts)n.enqueue({type:"reasoning-end",id:`${M.item.id}:${e}`,providerMetadata:{openai:{itemId:M.item.id,reasoningEncryptedContent:null!=(m=M.item.encrypted_content)?m:null}}});delete d[M.item.id]}}else if("response.function_call_arguments.delta"===M.type){let e=c[M.output_index];null!=e&&n.enqueue({type:"tool-input-delta",id:e.toolCallId,delta:M.delta})}else{"response.created"===M.type?(u=M.response.id,n.enqueue({type:"response-metadata",id:M.response.id,timestamp:new Date(1e3*M.response.created_at),modelId:M.response.model})):"response.output_text.delta"===M.type?(n.enqueue({type:"text-delta",id:M.item_id,delta:M.delta}),M.logprobs&&s.push(M.logprobs)):"response.reasoning_summary_part.added"===M.type?M.summary_index>0&&(null==(g=d[M.item_id])||g.summaryParts.push(M.summary_index),n.enqueue({type:"reasoning-start",id:`${M.item_id}:${M.summary_index}`,providerMetadata:{openai:{itemId:M.item_id,reasoningEncryptedContent:null!=(v=null==(y=d[M.item_id])?void 0:y.encryptedContent)?v:null}}})):"response.reasoning_summary_text.delta"===M.type?n.enqueue({type:"reasoning-delta",id:`${M.item_id}:${M.summary_index}`,delta:M.delta,providerMetadata:{openai:{itemId:M.item_id}}}):"response.completed"===(O=M).type||"response.incomplete"===O.type?(l=tv({finishReason:null==(k=M.response.incomplete_details)?void 0:k.reason,hasToolCalls:p}),a.inputTokens=M.response.usage.input_tokens,a.outputTokens=M.response.usage.output_tokens,a.totalTokens=M.response.usage.input_tokens+M.response.usage.output_tokens,a.reasoningTokens=null!=(b=null==(x=M.response.usage.output_tokens_details)?void 0:x.reasoning_tokens)?b:void 0,a.cachedInputTokens=null!=(_=null==(w=M.response.usage.input_tokens_details)?void 0:w.cached_tokens)?_:void 0):"response.output_text.annotation.added"===M.type?"url_citation"===M.annotation.type?n.enqueue({type:"source",sourceType:"url",id:null!=(C=null==(S=(I=o.config).generateId)?void 0:S.call(I))?C:ev(),url:M.annotation.url,title:M.annotation.title}):"file_citation"===M.annotation.type&&n.enqueue({type:"source",sourceType:"document",id:null!=(E=null==(j=(T=o.config).generateId)?void 0:j.call(T))?E:ev(),mediaType:"text/plain",title:M.annotation.quote,filename:M.annotation.file_id}):"error"===M.type&&n.enqueue({type:"error",error:M})}},flush(e){let t={openai:{responseId:u}};s.length>0&&(t.openai.logprobs=s),e.enqueue({type:"finish",finishReason:l,usage:a,providerMetadata:t})}})),request:{body:t},response:{headers:r}}}},tb=eV.Ik({input_tokens:eV.ai(),input_tokens_details:eV.Ik({cached_tokens:eV.ai().nullish()}).nullish(),output_tokens:eV.ai(),output_tokens_details:eV.Ik({reasoning_tokens:eV.ai().nullish()}).nullish()}),tw=eV.Ik({type:eV.eu("response.output_text.delta"),item_id:eV.Yj(),delta:eV.Yj(),logprobs:tk.nullish()}),t_=eV.Ik({type:eV.eu("error"),code:eV.Yj(),message:eV.Yj(),param:eV.Yj().nullish(),sequence_number:eV.ai()}),tI=eV.Ik({type:eV.k5(["response.completed","response.incomplete"]),response:eV.Ik({incomplete_details:eV.Ik({reason:eV.Yj()}).nullish(),usage:tb})}),tS=eV.Ik({type:eV.eu("response.created"),response:eV.Ik({id:eV.Yj(),created_at:eV.ai(),model:eV.Yj()})}),tC=eV.Ik({type:eV.eu("response.output_item.added"),output_index:eV.ai(),item:eV.gM("type",[eV.Ik({type:eV.eu("message"),id:eV.Yj()}),eV.Ik({type:eV.eu("reasoning"),id:eV.Yj(),encrypted_content:eV.Yj().nullish()}),eV.Ik({type:eV.eu("function_call"),id:eV.Yj(),call_id:eV.Yj(),name:eV.Yj(),arguments:eV.Yj()}),eV.Ik({type:eV.eu("web_search_call"),id:eV.Yj(),status:eV.Yj(),action:eV.Ik({type:eV.eu("search"),query:eV.Yj().optional()}).nullish()}),eV.Ik({type:eV.eu("computer_call"),id:eV.Yj(),status:eV.Yj()}),eV.Ik({type:eV.eu("file_search_call"),id:eV.Yj(),status:eV.Yj(),queries:eV.YO(eV.Yj()).nullish(),results:eV.YO(eV.Ik({attributes:eV.Ik({file_id:eV.Yj(),filename:eV.Yj(),score:eV.ai(),text:eV.Yj()})})).optional()})])}),tT=eV.Ik({type:eV.eu("response.output_item.done"),output_index:eV.ai(),item:eV.gM("type",[eV.Ik({type:eV.eu("message"),id:eV.Yj()}),eV.Ik({type:eV.eu("reasoning"),id:eV.Yj(),encrypted_content:eV.Yj().nullish()}),eV.Ik({type:eV.eu("function_call"),id:eV.Yj(),call_id:eV.Yj(),name:eV.Yj(),arguments:eV.Yj(),status:eV.eu("completed")}),eV.Ik({type:eV.eu("web_search_call"),id:eV.Yj(),status:eV.eu("completed"),action:eV.Ik({type:eV.eu("search"),query:eV.Yj().optional()}).nullish()}),eV.Ik({type:eV.eu("computer_call"),id:eV.Yj(),status:eV.eu("completed")}),eV.Ik({type:eV.eu("file_search_call"),id:eV.Yj(),status:eV.eu("completed"),queries:eV.YO(eV.Yj()).nullish(),results:eV.YO(eV.Ik({attributes:eV.Ik({file_id:eV.Yj(),filename:eV.Yj(),score:eV.ai(),text:eV.Yj()})})).nullish()})])}),tj=eV.Ik({type:eV.eu("response.function_call_arguments.delta"),item_id:eV.Yj(),output_index:eV.ai(),delta:eV.Yj()}),tE=eV.Ik({type:eV.eu("response.output_text.annotation.added"),annotation:eV.gM("type",[eV.Ik({type:eV.eu("url_citation"),url:eV.Yj(),title:eV.Yj()}),eV.Ik({type:eV.eu("file_citation"),file_id:eV.Yj(),quote:eV.Yj()})])}),tA=eV.Ik({type:eV.eu("response.reasoning_summary_part.added"),item_id:eV.Yj(),summary_index:eV.ai()}),tP=eV.Ik({type:eV.eu("response.reasoning_summary_text.delta"),item_id:eV.Yj(),summary_index:eV.ai(),delta:eV.Yj()}),tO=eV.KC([tw,tI,tS,tC,tT,tj,tE,tA,tP,t_,eV.Ik({type:eV.Yj()}).loose()]);function tM(e){return"response.output_item.done"===e.type}function tY(e){return"response.output_item.added"===e.type}
21var tN=eV.Ik({metadata:eV.bz().nullish(),parallelToolCalls:eV.zM().nullish(),previousResponseId:eV.Yj().nullish(),store:eV.zM().nullish(),user:eV.Yj().nullish(),reasoningEffort:eV.Yj().nullish(),strictJsonSchema:eV.zM().nullish(),instructions:eV.Yj().nullish(),reasoningSummary:eV.Yj().nullish(),serviceTier:eV.k5(["auto","flex","priority"]).nullish(),include:eV.YO(eV.k5(["reasoning.encrypted_content","file_search_call.results","message.output_text.logprobs"])).nullish(),textVerbosity:eV.k5(["low","medium","high"]).nullish(),promptCacheKey:eV.Yj().nullish(),safetyIdentifier:eV.Yj().nullish(),logprobs:eV.KC([eV.zM(),eV.ai().min(1).max(20)]).optional()}),tD=eV.Ik({instructions:eV.Yj().nullish(),speed:eV.ai().min(.25).max(4).default(1).nullish()}),tL=class{constructor(e,t){this.modelId=e,this.config=t,this.specificationVersion="v2"}get provider(){return this.config.provider}async getArgs({text:e,voice:t="alloy",outputFormat:n="mp3",speed:r,instructions:i,language:o,providerOptions:l}){let a=[],s=await eA({provider:"openai",providerOptions:l,schema:tD}),u={model:this.modelId,input:e,voice:t,response_format:"mp3",speed:r,instructions:i};if(n&&(["mp3","opus","aac","flac","wav","pcm"].includes(n)?u.response_format=n:a.push({type:"unsupported-setting",setting:"outputFormat",details:`Unsupported output format: ${n}. Using mp3 instead.`})),s){let e={};for(let t in e){let n=e[t];void 0!==n&&(u[t]=n)}}return o&&a.push({type:"unsupported-setting",setting:"language",details:`OpenAI speech models do not support language selection. Language parameter "${o}" was ignored.`}),{requestBody:u,warnings:a}}async doGenerate(e){var t,n,r;let i=null!=(r=null==(n=null==(t=this.config._internal)?void 0:t.currentDate)?void 0:n.call(t))?r:new Date,{requestBody:o,warnings:l}=await this.getArgs(e),{value:a,responseHeaders:s,rawValue:u}=await eO({url:this.config.url({path:"/audio/speech",modelId:this.modelId}),headers:eg(this.config.headers(),e.headers),body:o,failedResponseHandler:eH,successfulResponseHandler:eR(),abortSignal:e.abortSignal,fetch:this.config.fetch});return{audio:a,warnings:l,request:{body:JSON.stringify(o)},response:{timestamp:i,modelId:this.modelId,headers:s,body:u}}}},tR=eV.Ik({include:eV.YO(eV.Yj()).optional(),language:eV.Yj().optional(),prompt:eV.Yj().optional(),temperature:eV.ai().min(0).max(1).default(0).optional(),timestampGranularities:eV.YO(eV.k5(["word","segment"])).default(["segment"]).optional()}),tz={afrikaans:"af",arabic:"ar",armenian:"hy",azerbaijani:"az",belarusian:"be",bosnian:"bs",bulgarian:"bg",catalan:"ca",chinese:"zh",croatian:"hr",czech:"cs",danish:"da",dutch:"nl",english:"en",estonian:"et",finnish:"fi",french:"fr",galician:"gl",german:"de",greek:"el",hebrew:"he",hindi:"hi",hungarian:"hu",icelandic:"is",indonesian:"id",italian:"it",japanese:"ja",kannada:"kn",kazakh:"kk",korean:"ko",latvian:"lv",lithuanian:"lt",macedonian:"mk",malay:"ms",marathi:"mr",maori:"mi",nepali:"ne",norwegian:"no",persian:"fa",polish:"pl",portuguese:"pt",romanian:"ro",russian:"ru",serbian:"sr",slovak:"sk",slovenian:"sl",spanish:"es",swahili:"sw",swedish:"sv",tagalog:"tl",tamil:"ta",thai:"th",turkish:"tr",ukrainian:"uk",urdu:"ur",vietnamese:"vi",welsh:"cy"},tq=class{constructor(e,t){this.modelId=e,this.config=t,this.specificationVersion="v2"}get provider(){return this.config.provider}async getArgs({audio:e,mediaType:t,providerOptions:n}){let r=await eA({provider:"openai",providerOptions:n,schema:tR}),i=new FormData,o=e instanceof Uint8Array?new Blob([e]):new Blob([function(e){let t=eF(e.replace(/-/g,"+").replace(/_/g,"/"));return Uint8Array.from(t,e=>e.codePointAt(0))}(e)]);if(i.append("model",this.modelId),i.append("file",new File([o],"audio",{type:t})),r)for(let[e,t]of Object.entries({include:r.include,language:r.language,prompt:r.prompt,response_format:"verbose_json",temperature:r.temperature,timestamp_granularities:r.timestampGranularities}))null!=t&&i.append(e,String(t));return{formData:i,warnings:[]}}async doGenerate(e){var t,n,r,i,o,l,a,s;let u=null!=(r=null==(n=null==(t=this.config._internal)?void 0:t.currentDate)?void 0:n.call(t))?r:new Date,{formData:c,warnings:p}=await this.getArgs(e),{value:d,responseHeaders:f,rawValue:h}=await eM({url:this.config.url({path:"/audio/transcriptions",modelId:this.modelId}),headers:eg(this.config.headers(),e.headers),formData:c,failedResponseHandler:eH,successfulResponseHandler:eL(tF),abortSignal:e.abortSignal,fetch:this.config.fetch}),m=null!=d.language&&d.language in tz?tz[d.language]:void 0;return{text:d.text,segments:null!=(a=null!=(l=null==(i=d.segments)?void 0:i.map(e=>({text:e.text,startSecond:e.start,endSecond:e.end})))?l:null==(o=d.words)?void 0:o.map(e=>({text:e.word,startSecond:e.start,endSecond:e.end})))?a:[],language:m,durationInSeconds:null!=(s=d.duration)?s:void 0,warnings:p,response:{timestamp:u,modelId:this.modelId,headers:f,body:h}}}},tF=eV.Ik({text:eV.Yj(),language:eV.Yj().nullish(),duration:eV.ai().nullish(),words:eV.YO(eV.Ik({word:eV.Yj(),start:eV.ai(),end:eV.ai()})).nullish(),segments:eV.YO(eV.Ik({id:eV.ai(),seek:eV.ai(),start:eV.ai(),end:eV.ai(),text:eV.Yj(),tokens:eV.YO(eV.ai()),temperature:eV.ai(),avg_logprob:eV.ai(),compression_ratio:eV.ai(),no_speech_prob:eV.ai()})).nullish()}),t$=function(e={}){var t,n,r;let i=null!=(t=null==(r=e.baseURL)?void 0:r.replace(/\/$/,""))?t:"https://api.openai.com/v1",o=null!=(n=e.name)?n:"openai",l=()=>({Authorization:`Bearer ${function({apiKey:e,environmentVariableName:t,apiKeyParameterName:n="apiKey",description:r}){if("string"==typeof e)return e;if(null!=e)throw new W({message:`${r} API key must be a string.`});if(void 0===em)throw new W({message:`${r} API key is missing. Pass it using the '${n}' parameter. Environment variables is not supported in this environment.`});if(null==(e=em.env[t]))throw new W({message:`${r} API key is missing. Pass it using the '${n}' parameter or the ${t} environment variable.`});if("string"!=typeof e)throw new W({message:`${r} API key must be a string. The value of the ${t} environment variable is not a string.`});return e}({apiKey:e.apiKey,environmentVariableName:"OPENAI_API_KEY",description:"OpenAI"})}`,"OpenAI-Organization":e.organization,"OpenAI-Project":e.project,...e.headers}),a=t=>new ta(t,{provider:`${o}.embedding`,url:({path:e})=>`${i}${e}`,headers:l,fetch:e.fetch}),s=t=>new tp(t,{provider:`${o}.image`,url:({path:e})=>`${i}${e}`,headers:l,fetch:e.fetch}),u=t=>new tq(t,{provider:`${o}.transcription`,url:({path:e})=>`${i}${e}`,headers:l,fetch:e.fetch}),c=t=>new tL(t,{provider:`${o}.speech`,url:({path:e})=>`${i}${e}`,headers:l,fetch:e.fetch}),p=e=>{if(new.target)throw Error("The OpenAI model function cannot be called with the new keyword.");return d(e)},d=t=>new tx(t,{provider:`${o}.responses`,url:({path:e})=>`${i}${e}`,headers:l,fetch:e.fetch,fileIdPrefixes:["file-"]}),f=function(e){return p(e)};return f.languageModel=p,f.chat=t=>new e4(t,{provider:`${o}.chat`,url:({path:e})=>`${i}${e}`,headers:l,fetch:e.fetch}),f.completion=t=>new tn(t,{provider:`${o}.completion`,url:({path:e})=>`${i}${e}`,headers:l,fetch:e.fetch}),f.responses=d,f.embedding=a,f.textEmbedding=a,f.textEmbeddingModel=a,f.image=s,f.imageModel=s,f.transcription=u,f.transcriptionModel=u,f.speech=c,f.speechModel=c,f.tools=th,f}()}
21,6462:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(40157).A)("Footprints",[["path",{d:"M4 16v-2.38C4 11.5 2.97 10.5 3 8c.03-2.72 1.49-6 4.5-6C9.37 2 10 3.8 10 5.5c0 3.11-2 5.66-2 8.68V16a2 2 0 1 1-4 0Z",key:"1dudjm"}],["path",{d:"M20 20v-2.38c0-2.12 1.03-3.12 1-5.62-.03-2.72-1.49-6-4.5-6C14.63 6 14 7.8 14 9.5c0 3.11 2 5.66 2 8.68V20a2 2 0 1 0 4 0Z",key:"l2t8xc"}],["path",{d:"M16 17h4",key:"1dejxt"}],["path",{d:"M4 13h4",key:"1bwh8b"}]])},11308:e=>{var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,r=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,l=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,a=/^[;\s]*/,s=/^\s+|\s+$/g;function u(e){return e?e.replace(s,""):""}e.exports=function(e,s){if("string"!=typeof e)throw TypeError("First argument must be a string");if(!e)return[];s=s||{};var c=1,p=1;function d(e){var t=e.match(n);t&&(c+=t.length);var r=e.lastIndexOf("\n");p=~r?e.length-r:p+e.length}function f(){var e={line:c,column:p};return function(t){return t.position=new h(e),g(r),t}}function h(e){this.start=e,this.end={line:c,column:p},this.source=s.source}function m(t){var n=Error(s.source+":"+c+":"+p+": "+t);if(n.reason=t,n.filename=s.source,n.line=c,n.column=p,n.source=e,s.silent);else throw n}function g(t){var n=t.exec(e);if(n){var r=n[0];return d(r),e=e.slice(r.length),n}}function y(e){var t;for(e=e||[];t=v();)!1!==t&&e.push(t);return e}function v(){var t=f();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 p+=2,d(r),e=e.slice(n),p+=2,t({type:"comment",comment:r})}}h.prototype.content=e,g(r);var k,x=[];for(y(x);k=function(){var e=f(),n=g(i);if(n){if(v(),!g(o))return m("property missing ':'");var r=g(l),s=e({type:"declaration",property:u(n[0].replace(t,"")),value:r?u(r[0].replace(t,"")):""});return g(a),s}}();)!1!==k&&(x.push(k),y(x));return x}},17104:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(40157).A)("LogIn",[["path",{d:"M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4",key:"u53s6r"}],["polyline",{points:"10 17 15 12 10 7",key:"1ail0h"}],["line",{x1:"15",x2:"3",y1:"12",y2:"12",key:"v6grx8"}]])},17649:(e,t,n)=>{n.d(t,{UC:()=>N,VY:()=>z,ZD:()=>L,ZL:()=>M,bL:()=>P,hE:()=>R,hJ:()=>Y,l9:()=>O,rc:()=>D});var r=n(12115),i=n(46081),o=n(6101),l=n(15452),a=n(85185),s=n(99708),u=n(95155),c="AlertDialog",[p,d]=(0,i.A)(c,[l.Hs]),f=(0,l.Hs)(),h=e=>{let{__scopeAlertDialog:t,...n}=e,r=f(t);return(0,u.jsx)(l.bL,{...r,...n,modal:!0})};h.displayName=c;var m=r.forwardRef((e,t)=>{let{__scopeAlertDialog:n,...r}=e,i=f(n);return(0,u.jsx)(l.l9,{...i,...r,ref:t})});m.displayName="AlertDialogTrigger";var g=e=>{let{__scopeAlertDialog:t,...n}=e,r=f(t);return(0,u.jsx)(l.ZL,{...r,...n})};g.displayName="AlertDialogPortal";var y=r.forwardRef((e,t)=>{let{__scopeAlertDialog:n,...r}=e,i=f(n);return(0,u.jsx)(l.hJ,{...i,...r,ref:t})});y.displayName="AlertDialogOverlay";var v="AlertDialogContent",[k,x]=p(v),b=(0,s.Dc)("AlertDialogContent"),w=r.forwardRef((e,t)=>{let{__scopeAlertDialog:n,children:i,...s}=e,c=f(n),p=r.useRef(null),d=(0,o.s)(t,p),h=r.useRef(null);return(0,u.jsx)(l.G$,{contentName:v,titleName:_,docsSlug:"alert-dialog",children:(0,u.jsx)(k,{scope:n,cancelRef:h,children:(0,u.jsxs)(l.UC,{role:"alertdialog",...c,...s,ref:d,onOpenAutoFocus:(0,a.mK)(s.onOpenAutoFocus,e=>{var t;e.preventDefault(),null===(t=h.current)||void 0===t||t.focus({preventScroll:!0})}),onPointerDownOutside:e=>e.preventDefault(),onInteractOutside:e=>e.preventDefault(),children:[(0,u.jsx)(b,{children:i}),(0,u.jsx)(A,{contentRef:p})]})})})});w.displayName=v;var _="AlertDialogTitle",I=r.forwardRef((e,t)=>{let{__scopeAlertDialog:n,...r}=e,i=f(n);return(0,u.jsx)(l.hE,{...i,...r,ref:t})});I.displayName=_;var S="AlertDialogDescription",C=r.forwardRef((e,t)=>{let{__scopeAlertDialog:n,...r}=e,i=f(n);return(0,u.jsx)(l.VY,{...i,...r,ref:t})});C.displayName=S;var T=r.forwardRef((e,t)=>{let{__scopeAlertDialog:n,...r}=e,i=f(n);return(0,u.jsx)(l.bm,{...i,...r,ref:t})});T.displayName="AlertDialogAction";var j="AlertDialogCancel",E=r.forwardRef((e,t)=>
21{let{__scopeAlertDialog:n,...r}=e,{cancelRef:i}=x(j,n),a=f(n),s=(0,o.s)(t,i);return(0,u.jsx)(l.bm,{...a,...r,ref:s})});E.displayName=j;var A=e=>{let{contentRef:t}=e,n="`".concat(v,"` requires a description for the component to be accessible for screen reader users.\n\nYou can add a description to the `").concat(v,"` by passing a `").concat(S,"` component as a child, which also benefits sighted users by adding visible context to the dialog.\n\nAlternatively, you can use your own component as a description by assigning it an `id` and passing the same value to the `aria-describedby` prop in `").concat(v,"`. If the description is confusing or duplicative for sighted users, you can use the `@radix-ui/react-visually-hidden` primitive as a wrapper around your description component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/alert-dialog");return r.useEffect(()=>{var e;document.getElementById(null===(e=t.current)||void 0===e?void 0:e.getAttribute("aria-describedby"))},[n,t]),null},P=h,O=m,M=g,Y=y,N=w,D=T,L=E,R=I,z=C},18186:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(40157).A)("House",[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"1d0kgt"}]])},19689:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(40157).A)("UtensilsCrossed",[["path",{d:"m16 2-2.3 2.3a3 3 0 0 0 0 4.2l1.8 1.8a3 3 0 0 0 4.2 0L22 8",key:"n7qcjb"}],["path",{d:"M15 15 3.3 3.3a4.2 4.2 0 0 0 0 6l7.3 7.3c.7.7 2 .7 2.8 0L15 15Zm0 0 7 7",key:"d0u48b"}],["path",{d:"m2.1 21.8 6.4-6.3",key:"yn04lh"}],["path",{d:"m19 5-7 7",key:"194lzd"}]])},31300:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.camelCase=void 0;var n=/^--[a-zA-Z0-9_-]+$/,r=/-([a-z])/g,i=/^[^-]+$/,o=/^-(webkit|moz|ms|o|khtml)-/,l=/^-(ms)-/,a=function(e,t){return t.toUpperCase()},s=function(e,t){return"".concat(t,"-")};t.camelCase=function(e,t){var u;return(void 0===t&&(t={}),!(u=e)||i.test(u)||n.test(u))?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(l,s):e.replace(o,s)).replace(r,a))}},33134:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(40157).A)("MessageSquarePlus",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}],["path",{d:"M12 7v6",key:"lw1j43"}],["path",{d:"M9 10h6",key:"9gxzsh"}]])},42625:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(40157).A)("ShoppingBag",[["path",{d:"M6 2 3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4Z",key:"hou9p0"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M16 10a4 4 0 0 1-8 0",key:"1ltviw"}]])},53360:e=>{var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},l=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,i=t.call(e,"constructor"),o=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!i&&!o)return!1;for(r in e);return void 0===r||t.call(e,r)},a=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;else if(i)return i(e,n).value}return e[n]};e.exports=function e(){var t,n,r,i,u,c,p=arguments[0],d=1,f=arguments.length,h=!1;for("boolean"==typeof p&&(h=p,p=arguments[1]||{},d=2),(null==p||"object"!=typeof p&&"function"!=typeof p)&&(p={});d<f;++d)if(t=arguments[d],null!=t)for(n in t)r=s(p,n),p!==(i=s(t,n))&&(h&&i&&(l(i)||(u=o(i)))?(u?(u=!1,c=r&&o(r)?r:[]):c=r&&l(r)?r:{},a(p,{name:n,newValue:e(h,c,i)})):void 0!==i&&a(p,{name:n,newValue:i}));return p}},53724:function(e,t,n){var r=(this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(n(87924)),i=n(31300);function o(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}o.default=o,e.exports=o},60794:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(40157).A)("Laptop",[["path",{d:"M20 16V7a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v9m16 0H4m16 0 1.28 2.55a1 1 0 0 1-.9 1.45H3.62a1 1 0 0 1-.9-1.45L4 16",key:"tarvll"}]])},73926:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(40157).A)("ArrowDown",[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]])},76030:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(40157).A)("Shirt",[["path",{d:"M20.38 3.46 16 2a4 4 0 0 1-8 0L3.62 3.46a2 2 0 0 0-1.34 2.23l.58 3.47a1 1 0 0 0 .99.84H6v10c0 1.1.9 2 2 2h8a2 2 0 0 0 2-2V10h2.15a1 1 0 0 0 .99-.84l.58-3.47a2 2 0 0 0-1.34-2.23z",key:"1wgbhj"}]])},87924:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esMo
21dule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){let n=null;if(!e||"string"!=typeof e)return n;let r=(0,i.default)(e),o="function"==typeof t;return r.forEach(e=>{if("declaration"!==e.type)return;let{property:r,value:i}=e;o?t(r,i,e):i&&((n=n||{})[r]=i)}),n};let i=r(n(11308))},90792:(e,t,n)=>{n.d(t,{oz:()=>nA});var r={};n.r(r),n.d(r,{boolean:()=>g,booleanish:()=>y,commaOrSpaceSeparated:()=>w,commaSeparated:()=>b,number:()=>k,overloadedBoolean:()=>v,spaceSeparated:()=>x});var i={};n.r(i),n.d(i,{attentionMarkers:()=>tT,contentInitial:()=>tb,disable:()=>tj,document:()=>tx,flow:()=>t_,flowInitial:()=>tw,insideSpan:()=>tC,string:()=>tI,text:()=>tS});let o=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,l=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,a={};function s(e,t){return((t||a).jsx?l:o).test(e)}let u=/[ \t\n\f\r]/g;function c(e){return""===e.replace(u,"")}class p{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}}function d(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new p(n,r,t)}function f(e){return e.toLowerCase()}p.prototype.normal={},p.prototype.property={},p.prototype.space=void 0;class h{constructor(e,t){this.attribute=t,this.property=e}}h.prototype.attribute="",h.prototype.booleanish=!1,h.prototype.boolean=!1,h.prototype.commaOrSpaceSeparated=!1,h.prototype.commaSeparated=!1,h.prototype.defined=!1,h.prototype.mustUseProperty=!1,h.prototype.number=!1,h.prototype.overloadedBoolean=!1,h.prototype.property="",h.prototype.spaceSeparated=!1,h.prototype.space=void 0;let m=0,g=_(),y=_(),v=_(),k=_(),x=_(),b=_(),w=_();function _(){return 2**++m}let I=Object.keys(r);class S extends h{constructor(e,t,n,i){let o=-1;if(super(e,t),function(e,t,n){n&&(e[t]=n)}(this,"space",i),"number"==typeof n)for(;++o<I.length;){let e=I[o];!function(e,t,n){n&&(e[t]=n)}(this,I[o],(n&r[e])===r[e])}}}function C(e){let t={},n={};for(let[r,i]of Object.entries(e.properties)){let o=new S(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[f(r)]=r,n[f(o.attribute)]=r}return new p(t,n,e.space)}S.prototype.defined=!0;let T=C({properties:{ariaActiveDescendant:null,ariaAtomic:y,ariaAutoComplete:null,ariaBusy:y,ariaChecked:y,ariaColCount:k,ariaColIndex:k,ariaColSpan:k,ariaControls:x,ariaCurrent:null,ariaDescribedBy:x,ariaDetails:null,ariaDisabled:y,ariaDropEffect:x,ariaErrorMessage:null,ariaExpanded:y,ariaFlowTo:x,ariaGrabbed:y,ariaHasPopup:null,ariaHidden:y,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:x,ariaLevel:k,ariaLive:null,ariaModal:y,ariaMultiLine:y,ariaMultiSelectable:y,ariaOrientation:null,ariaOwns:x,ariaPlaceholder:null,ariaPosInSet:k,ariaPressed:y,ariaReadOnly:y,ariaRelevant:null,ariaRequired:y,ariaRoleDescription:x,ariaRowCount:k,ariaRowIndex:k,ariaRowSpan:k,ariaSelected:y,ariaSetSize:k,ariaSort:null,ariaValueMax:k,ariaValueMin:k,ariaValueNow:k,ariaValueText:null,role:null},transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase()});function j(e,t){return t in e?e[t]:t}function E(e,t){return j(e,t.toLowerCase())}let A=C({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:b,acceptCharset:x,accessKey:x,action:null,allow:null,allowFullScreen:g,allowPaymentRequest:g,allowUserMedia:g,alt:null,as:null,async:g,autoCapitalize:null,autoComplete:x,autoFocus:g,autoPlay:g,blocking:x,capture:null,charSet:null,checked:g,cite:null,className:x,cols:k,colSpan:null,content:null,contentEditable:y,controls:g,controlsList:x,coords:k|b,crossOrigin:null,data:null,dateTime:null,decoding:null,default:g,defer:g,dir:null,dirName:null,disabled:g,download:v,draggable:y,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:g,formTarget:null,headers:x,height:k,hidden:v,high:k,href:null,hrefLang:null,htmlFor:x,httpEquiv:x,id:null,imageSizes:null,imageSrcSet:null,inert:g,inputMode:null,integrity:null,is:null,isMap:g,itemId:null,itemProp:x,itemRef:x,itemScope:g,itemType:x,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:g,low:k,manifest:null,max:null,maxLength:k,media:null,method:null,min:null,minLength:k,multiple:g,muted:g,name:null,nonce:null,noModule:g,noValidate:g,onAbort:null,onAfterPrint:null,onAuxCl
21ick: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:g,optimum:k,pattern:null,ping:x,placeholder:null,playsInline:g,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:g,referrerPolicy:null,rel:x,required:g,reversed:g,rows:k,rowSpan:k,sandbox:x,scope:null,scoped:g,seamless:g,selected:g,shadowRootClonable:g,shadowRootDelegatesFocus:g,shadowRootMode:null,shape:null,size:k,sizes:null,slot:null,span:k,spellCheck:y,src:null,srcDoc:null,srcLang:null,srcSet:null,start:k,step:null,style:null,tabIndex:k,target:null,title:null,translate:null,type:null,typeMustMatch:g,useMap:null,value:y,width:k,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:x,axis:null,background:null,bgColor:null,border:k,borderColor:null,bottomMargin:k,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:g,declare:g,event:null,face:null,frame:null,frameBorder:null,hSpace:k,leftMargin:k,link:null,longDesc:null,lowSrc:null,marginHeight:k,marginWidth:k,noResize:g,noHref:g,noShade:g,noWrap:g,object:null,profile:null,prompt:null,rev:null,rightMargin:k,rules:null,scheme:null,scrolling:y,standby:null,summary:null,text:null,topMargin:k,valueType:null,version:null,vAlign:null,vLink:null,vSpace:k,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:g,disableRemotePlayback:g,prefix:null,property:null,results:k,security:null,unselectable:null},space:"html",transform:E}),P=C({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav
21-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:w,accentHeight:k,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:k,amplitude:k,arabicForm:null,ascent:k,attributeName:null,attributeType:null,azimuth:k,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:k,by:null,calcMode:null,capHeight:k,className:x,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:k,diffuseConstant:k,direction:null,display:null,dur:null,divisor:k,dominantBaseline:null,download:g,dx:null,dy:null,edgeMode:null,editable:null,elevation:k,enableBackground:null,end:null,event:null,exponent:k,externalResourcesRequired:null,fill:null,fillOpacity:k,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:b,g2:b,glyphName:b,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:k,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:k,horizOriginX:k,horizOriginY:k,id:null,ideographic:k,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:k,k:k,k1:k,k2:k,k3:k,k4:k,kernelMatrix:w,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:k,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:k,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
21Zoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:k,overlineThickness:k,paintOrder:null,panose1:null,path:null,pathLength:k,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:x,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:k,pointsAtY:k,pointsAtZ:k,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:w,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:w,rev:w,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:w,requiredFeatures:w,requiredFonts:w,requiredFormats:w,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:k,specularExponent:k,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:k,strikethroughThickness:k,string:null,stroke:null,strokeDashArray:w,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:k,strokeOpacity:k,strokeWidth:null,style:null,surfaceScale:k,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:w,tabIndex:k,tableValues:null,target:null,targetX:k,targetY:k,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:w,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:k,underlineThickness:k,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:k,values:null,vAlphabetic:k,vMathematical:k,vectorEffect:null,vHanging:k,vIdeographic:k,version:null,vertAdvY:k,vertOriginX:k,vertOriginY:k,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:k,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:j}),O=C({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()}),M=C({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:E}),Y=C({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase()}),N=d([T,A,O,M,Y],"html"),D=d([T,P,O,M,Y],"svg"),L=/[A-Z]/g,R=/-[a-z]/g,z=/^data[-\w.:]+$/i;function q(e){return"-"+e.toLowerCase()}function F(e){return e.charAt(1).toUpperCase()}let $={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"};var V=n(53724);let B=H("end"),U=H("start");function H(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 W(e){return e&&"object"==typeof e?"position"in e||"type"in e?J(e.position):"start"in e||"end"in e?J(e):"line"in e||"column"in e?K(e):"":""}function K(e){return Z(e&&e.line)+":"+Z(e&&e.column)}function J(e){return K(e&&e.start)+"-"+K(e&&e.end)}function Z(e){return e&&"number"==typeof e?e:1}class Q extends Error{constructor(e,t,n){super(),"string"==typeof t&&(n=t,t=void 0);let r="",i={},o=!1;if(t&&(i="line"in t&&"column"in t?{place: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&&(o=!0,r=e.message,i.cause=e),!i.ruleId&&!i.source&&"string"==typeof n){let e=n.indexOf(":");-1===e?i.ruleId=n:(i.source=n.slice(0,e),i.ruleId=n.slice(e+1))}if(!i.place&&i.ancestors&&i.ancestors){let e=i.ancestors[i.ancestors.length-1];e&&(i.place=e.position)}let l=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=l?l.column:void 0,this.fatal=void 0,this.file="",this.message=r,this.line=l?l.line:void 0,this.name=W(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=o&&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}}Q.prototype.file="",Q.prototype.name="",Q.prototype.reason="",Q.prototype.message="",Q.prototype.stack="",Q.prototype.column=void 0,Q.prototype.line=void 0,Q.prototype.ancestors=void 0,Q.prototype.cause=void 0,Q.prototype.fatal=void 0,Q.prototype.place=void 0,Q.prototype.ruleId=void 0,Q.prototype.source=void 0;let G={}.hasOwnProperty,X=new Map,ee=/[A-Z]/g,et=new Set(["table","tbody","thead","tfoot","tr"]),en=new Set(["td","th"]),er="https://github.com/syntax-tree/hast-util-to-jsx-runtime";
21function ei(e,t,n){var r;return"element"===t.type?function(e,t,n){let r=e.schema,i=r;"svg"===t.tagName.toLowerCase()&&"html"===r.space&&(e.schema=D),e.ancestors.push(t);let o=es(e,t.tagName,!1),l=function(e,t){let n,r,i={};for(r in t.properties)if("children"!==r&&G.call(t.properties,r)){let o=function(e,t,n){let r=function(e,t){let n=f(t),r=t,i=h;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&z.test(t)){if("-"===t.charAt(4)){let e=t.slice(5).replace(R,F);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!R.test(e)){let n=e.replace(L,q);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}i=S}return new i(r,t)}(e.schema,t);if(!(null==n||"number"==typeof n&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?function(e,t){let n={};return(""===e[e.length-1]?[...e,""]:e).join((n.padRight?" ":"")+","+(!1===n.padLeft?"":" ")).trim()}(n):n.join(" ").trim()),"style"===r.property){let t="object"==typeof n?n:function(e,t){try{return V(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};let t=new Q("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:n,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw t.file=e.filePath||void 0,t.url=er+"#cannot-parse-style-attribute",t}}(e,String(n));return"css"===e.stylePropertyNameCase&&(t=function(e){let t,n={};for(t in e)G.call(e,t)&&(n[function(e){let t=e.replace(ee,ec);return"ms-"===t.slice(0,3)&&(t="-"+t),t}(t)]=e[t]);return n}(t)),["style",t]}return["react"===e.elementAttributeNameCase&&r.space?$[r.property]||r.property:r.attribute,n]}}(e,r,t.properties[r]);if(o){let[r,l]=o;e.tableCellAlignToStyle&&"align"===r&&"string"==typeof l&&en.has(t.tagName)?n=l:i[r]=l}}return n&&((i.style||(i.style={}))["css"===e.stylePropertyNameCase?"text-align":"textAlign"]=n),i}(e,t),a=ea(e,t);return et.has(t.tagName)&&(a=a.filter(function(e){return"string"!=typeof e||!("object"==typeof e?"text"===e.type&&c(e.value):c(e))})),eo(e,l,o,t),el(l,a),e.ancestors.pop(),e.schema=r,e.create(t,o,l,n)}(e,t,n):"mdxFlowExpression"===t.type||"mdxTextExpression"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater){let n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}eu(e,t.position)}(e,t):"mdxJsxFlowElement"===t.type||"mdxJsxTextElement"===t.type?function(e,t,n){let r=e.schema,i=r;"svg"===t.name&&"html"===r.space&&(e.schema=D),e.ancestors.push(t);let o=null===t.name?e.Fragment:es(e,t.name,!0),l=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];t.type;let i=t.expression;i.type;let o=i.properties[0];o.type,Object.assign(n,e.evaluater.evaluateExpression(o.argument))}else eu(e,t.position);else{let i,o=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];t.type,i=e.evaluater.evaluateExpression(t.expression)}else eu(e,t.position);else i=null===r.value||r.value;n[o]=i}return n}(e,t),a=ea(e,t);return eo(e,l,o,t),el(l,a),e.ancestors.pop(),e.schema=r,e.create(t,o,l,n)}(e,t,n):"mdxjsEsm"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);eu(e,t.position)}(e,t):"root"===t.type?function(e,t,n){let r={};return el(r,ea(e,t)),e.create(t,e.Fragment,r,n)}(e,t,n):"text"===t.type?(r=0,t.value):void 0}function eo(e,t,n,r){"string"!=typeof n&&n!==e.Fragment&&e.passNode&&(t.node=r)}function el(e,t){if(t.length>0){let n=t.length>1?t:t[0];n&&(e.children=n)}}function ea(e,t){let n=[],r=-1,i=e.passKeys?new Map:X;for(;++r<t.children.length;){let o,l=t.children[r];if(e.passKeys){let e="element"===l.type?l.tagName:"mdxJsxFlowElement"===l.type||"mdxJsxTextElement"===l.type?l.name:void 0;if(e){let t=i.get(e)||0;o=e+"-"+t,i.set(e,t+1)}}let a=ei(e,l,o);void 0!==a&&n.push(a)}return n}
21function es(e,t,n){let r;if(n)if(t.includes(".")){let e,n=t.split("."),i=-1;for(;++i<n.length;){let t=s(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}r=e}else r=s(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 G.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);eu(e)}function eu(e,t){let n=new Q("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=er+"#cannot-handle-mdx-estrees-without-createevaluater",n}function ec(e){return"-"+e.toLowerCase()}let ep={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"]};var ed=n(95155);n(12115);let ef={};function eh(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 em(e.children,t,n)}return Array.isArray(e)?em(e,t,n):""}function em(e,t,n){let r=[],i=-1;for(;++i<e.length;)r[i]=eh(e[i],t,n);return r.join("")}function eg(e,t,n,r){let i,o=e.length,l=0;if(t=t<0?-t>o?0:o+t:t>o?o: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);l<r.length;)(i=r.slice(l,l+1e4)).unshift(t,0),e.splice(...i),l+=1e4,t+=1e4}function ey(e,t){return e.length>0?(eg(e,e.length,0,t),e):t}class ev{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?Number.POSITIVE_INFINITY: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),Number.POSITIVE_INFINITY);return n&&ek(this.left,n),r.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(e){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(e)}pushMany(e){this.setCursor(Number.POSITIVE_INFINITY),ek(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),ek(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,Number.POSITIVE_INFINITY);ek(this.right,t.reverse())}else{let t=this.right.splice(this.left.length+this.right.length-e,Number.POSITIVE_INFINITY);ek(this.left,t.reverse())}}}function ek(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 ex(e){let t,n,r,i,o,l,a,s={},u=-1,c=new ev(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)<(l=t[1]._tokenizer.events).length&&"lineEndingBlank"===l[r][1].type&&(r+=2),r<l.length&&"content"===l[r][1].type))for(;++r<l.length&&"content"!==l[r][1].type;)"chunkText"===l[r][1].type&&(l[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],o=e.get(t)[2],l=t-1,a=[],s=i._tokenizer;!s&&(s=o.parser[i.contentType](i.start),i._contentTypeTextTrailing&&(s._c
21ontentTypeTextTrailing=!0));let u=s.events,c=[],p={},d=-1,f=i,h=0,m=0,g=[0];for(;f;){for(;e.get(++l)[1]!==f;);a.push(l),!f._tokenizer&&(n=o.sliceStream(f),f.next||n.push(null),r&&s.defineSkip(f.start),f._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(n),f._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),r=f,f=f.next}for(f=i;++d<u.length;)"exit"===u[d][0]&&"enter"===u[d-1][0]&&u[d][1].type===u[d-1][1].type&&u[d][1].start.line!==u[d][1].end.line&&(m=d+1,g.push(m),f._tokenizer=void 0,f.previous=void 0,f=f.next);for(s.events=[],f?(f._tokenizer=void 0,f.previous=void 0):g.pop(),d=g.length;d--;){let t=u.slice(g[d],g[d+1]),n=a.pop();c.push([n,n+t.length-1]),e.splice(n,2,t)}for(c.reverse(),d=-1;++d<c.length;)p[h+c[d][0]]=h+c[d][1],h+=c[d][1]-c[d][0]-1;return p}(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},(o=c.slice(n,u)).unshift(t),c.splice(n,u-n+1,o))}}return eg(e,0,Number.POSITIVE_INFINITY,c.slice(0)),!a}let eb={}.hasOwnProperty,ew=eY(/[A-Za-z]/),e_=eY(/[\dA-Za-z]/),eI=eY(/[#-'*+\--9=?A-Z^-~]/);function eS(e){return null!==e&&(e<32||127===e)}let eC=eY(/\d/),eT=eY(/[\dA-Fa-f]/),ej=eY(/[!-/:-@[-`{-~]/);function eE(e){return null!==e&&e<-2}function eA(e){return null!==e&&(e<0||32===e)}function eP(e){return -2===e||-1===e||32===e}let eO=eY(/\p{P}|\p{S}/u),eM=eY(/\s/);function eY(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}function eN(e,t,n,r){let i=r?r-1:Number.POSITIVE_INFINITY,o=0;return function(r){return eP(r)?(e.enter(n),function r(l){return eP(l)&&o++<i?(e.consume(l),r):(e.exit(n),t(l))}(r)):t(r)}}let eD={tokenize:function(e){let t,n=e.attempt(this.parser.constructs.contentInitial,function(t){if(null===t){e.consume(t);return}return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),eN(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 eE(r)?(e.consume(r),e.exit("chunkText"),n):(e.consume(r),t)}(r)}(n)});return n}},eL={tokenize:function(e){let t,n,r,i=this,o=[],l=0;return a;function a(t){if(l<o.length){let n=o[l];return i.containerState=n[1],e.attempt(n[0].continuation,s,u)(t)}return u(t)}function s(e){if(l++,i.containerState._closeFlow){let n;i.containerState._closeFlow=void 0,t&&y();let r=i.events.length,o=r;for(;o--;)if("exit"===i.events[o][0]&&"chunkFlow"===i.events[o][1].type){n=i.events[o][1].end;break}g(l);let a=r;for(;a<i.events.length;)i.events[a][1].end={...n},a++;return eg(i.events,o+1,0,i.events.slice(r)),i.events.length=a,u(e)}return a(e)}function u(n){if(l===o.length){if(!t)return d(n);if(t.currentConstruct&&t.currentConstruct.concrete)return h(n);i.interrupt=!!(t.currentConstruct&&!t._gfmTableDynamicInterruptHack)}return i.containerState={},e.check(eR,c,p)(n)}function c(e){return t&&y(),g(l),d(e)}function p(e){return i.parser.lazy[i.now().line]=l!==o.length,r=i.now().offset,h(e)}function d(t){return i.containerState={},e.attempt(eR,f,h)(t)}function f(e){return l++,o.push([i.currentConstruct,i.containerState]),d(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 eE(n)?(e.consume(n),m(e.exit("chunkFlow")),l=0,i.interrupt=void 0,a):(e.consume(n),t)}(r)}function m(e,o){let a=i.sliceStream(e);if(o&&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,o=t.events.length;for(;o--;)if(t.events[o][1].start.offset<r&&(!t.events[o][1].end||t.events[o][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(l),o=a;o<i.events.length;)i.events[o][1].end={...n},o++;eg(i.events,s+1,0,i.events.slice(a)),i.events.length=o}}function g(t){let n=o.length;for(;n-- >t;){let t=o[n];i.containerState=t[1],t[0].exit.call(i,e)}o.length=t}function y(){t.write([null]),n=void 0,t=void 0,i.containerState._closeFlow=void 0}}},eR={tokenize:function(e,t,n){return eN(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}},ez={partial:!0,tokenize:function(e,t,n){return function(t){return eP(t)?eN(e,r,"linePrefix")(t):r(t)};function r(e){return null===e||eE(e)?t(e):n(e)}}},eq={resolve:function(e){return ex(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):eE(t)?e.check(eF,o,i)(t):(e.consume(t),r)}function i(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function o(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}}},eF={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"),eN(e,i,"linePrefix")};function i(i){if(null===i||eE(i))return n(i);let o=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}}},e$={tokenize:function(e){let t=this,n=e.attempt(ez,function(r){if(null===r){e.consume(r);return}return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n},e.attempt(this.parser.constructs.flowInitial,r,eN(e,e.attempt(this.parser.constructs.flow,r,e.attempt(eq,r)),"linePrefix")));return n;function r(r){if(null===r){e.consume(r);return}return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n}}},eV={resolveAll:eW()},eB=eH("string"),eU=eH("text");function eH(e){return{resolveAll:eW("text"===e?eK:void 0),tokenize:function(t){let n=this,r=this.parser.constructs[e],i=t.attempt(r,o,l);return o;function o(e){return s(e)?i(e):l(e)}function l(e){if(null===e){t.consume(e);return}return 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 eW(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 eK(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],o=t.sliceStream(i),l=o.length,a=-1,s=0;for(;l--;){let e=o[l];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{l++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(s=0),s){let o={type:n===e.length||r||s<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:l?a:i.start._bufferIndex+a,_index:i.start._index+l,line:i.end.line,column:i.end.column-s,offset:i.end.offset-s},end:{...i.end}};i.end={...o.start},i.start.offset===i.end.offset?Object.assign(i,o):(e.splice(n,0,["enter",o,t],["exit",o,t]),n+=2)}n++}return e}let eJ={name:"thematicBreak",tokenize:function(e,t,n){let r,i=0;return function(o){var l;return e.enter("thematicBreak"),r=l=o,function o(l){return l===r?(e.enter("thematicBreakSequence"),function t(n){return n===r?(e.consume(n),i++,t):(e.exit("thematicBreakSequence"),eP(n)?eN(e,o,"whitespace")(n):o(n))}(l)):i>=3&&(null===l||eE(l))?(e.exit("thematicBreak"),t(l)):n(l)}(l)}}},eZ={continuation:{tokenize:function(e,t,n){let r=this;return r.containerState._closeFlow=void 0,e.check(ez,function(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,eN(e,t,"listItemIndent",r.containerState.size+1)(n)},function(n){return r.containerState.furtherBlankLines||!eP(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine
21=void 0,i(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(eG,t,i)(n))});function i(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,eN(e,e.attempt(eZ,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],o=i&&"linePrefix"===i[1].type?i[2].sliceSerialize(i[1],!0).length:0,l=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:eC(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(eJ,n,a)(t):a(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),function t(i){return eC(i)&&++l<10?(e.consume(i),t):(!r.interrupt||l<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(ez,r.interrupt?n:s,e.attempt(eQ,c,u))}
21function s(e){return r.containerState.initialBlankLine=!0,o++,c(e)}function u(t){return eP(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),c):n(t)}function c(n){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}}},eQ={partial:!0,tokenize:function(e,t,n){let r=this;return eN(e,function(e){let i=r.events[r.events.length-1];return!eP(e)&&i&&"listItemPrefixWhitespace"===i[1].type?t(e):n(e)},"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)}},eG={partial:!0,tokenize:function(e,t,n){let r=this;return eN(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)}},eX={continuation:{tokenize:function(e,t,n){let r=this;return function(t){return eP(t)?eN(e,i,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):i(t)};function i(r){return e.attempt(eX,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 eP(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}}};function e0(e,t,n,r,i,o,l,a,s){let u=s||Number.POSITIVE_INFINITY,c=0;return function(t){return 60===t?(e.enter(r),e.enter(i),e.enter(o),e.consume(t),e.exit(o),p):null===t||32===t||41===t||eS(t)?n(t):(e.enter(r),e.enter(l),e.enter(a),e.enter("chunkString",{contentType:"string"}),h(t))};function p(n){return 62===n?(e.enter(o),e.consume(n),e.exit(o),e.exit(i),e.exit(r),t):(e.enter(a),e.enter("chunkString",{contentType:"string"}),d(n))}function d(t){return 62===t?(e.exit("chunkString"),e.exit(a),p(t)):null===t||60===t||eE(t)?n(t):(e.consume(t),92===t?f:d)}function f(t){return 60===t||62===t||92===t?(e.consume(t),d):d(t)}function h(i){return!c&&(null===i||41===i||eA(i))?(e.exit("chunkString"),e.exit(a),e.exit(l),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||eS(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 e1(e,t,n,r,i,o){let l,a=this,s=0;return function(t){return e.enter(r),e.enter(i),e.consume(t),e.exit(i),e.enter(o),u};function u(p){return s>999||null===p||91===p||93===p&&!l||94===p&&!s&&"_hiddenFootnoteSupport"in a.parser.constructs?n(p):93===p?(e.exit(o),e.enter(i),e.consume(p),e.exit(i),e.exit(r),t):eE(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),u):(e.enter("chunkString",{contentType:"string"}),c(p))}function c(t){return null===t||91===t||93===t||eE(t)||s++>999?(e.exit("chunkString"),u(t)):(e.consume(t),l||(l=!eP(t)),92===t?p:c)}function p(t){return 91===t||92===t||93===t?(e.consume(t),s++,c):c(t)}}function e2(e,t,n,r,i,o){let l;return function(t){return 34===t||39===t||40===t?(e.enter(r),e.enter(i),e.consume(t),e.exit(i),l=40===t?41:t,a):n(t)};function a(n){return n===l?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(o),s(n))}function s(t){return t===l?(e.exit(o),a(l)):null===t?n(t):eE(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),eN(e,s,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),u(t))}function u(t){return t===l||null===t||eE(t)?(e.exit("chunkString"),s(t)):(e.consume(t),92===t?c:u)}function c(t){return t===l||92===t?(e.consume(t),u):u(t)}}function e4(e,t){let n;return function r(i){return eE(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):eP(i)?eN(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}function e5(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}let e3={partial:!0,tokenize:function(e,t,n){return function(t){return eA(t)?e4(e,r)(t):n(t)};function r(t){return e2(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function i(t){return eP(t)?eN(e,o,"whitespace")(t):o(t)}function o(e){return null===e||eE(e)?t(e):n(e)}}},e6={name:"codeIndented",tokenize:function(e,t,n){let r=this;
21return function(t){return e.enter("codeIndented"),eN(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?o(n):eE(n)?e.attempt(e9,t,o)(n):(e.enter("codeFlowValue"),function n(r){return null===r||eE(r)?(e.exit("codeFlowValue"),t(r)):(e.consume(r),n)}(n))}(t):n(t)}function o(n){return e.exit("codeIndented"),t(n)}}},e9={partial:!0,tokenize:function(e,t,n){let r=this;return i;function i(t){return r.parser.lazy[r.now().line]?n(t):eE(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):eN(e,o,"linePrefix",5)(t)}function o(e){let o=r.events[r.events.length-1];return o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?t(e):eE(e)?i(e):n(e)}}},e7={name:"setextUnderline",resolveTo:function(e,t){let n,r,i,o=e.length;for(;o--;)if("enter"===e[o][0]){if("content"===e[o][1].type){n=o;break}"paragraph"===e[o][1].type&&(r=o)}else"content"===e[o][1].type&&e.splice(o,1),i||"definition"!==e[o][1].type||(i=o);let l={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",l,t]),e.splice(i+1,0,["exit",e[n][1],t]),e[n][1].end={...e[i][1].end}):e[n][1]=l,e.push(["exit",l,t]),e},tokenize:function(e,t,n){let r,i=this;return function(t){var l;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,l=t,e.enter("setextHeadingLineSequence"),function t(n){return n===r?(e.consume(n),t):(e.exit("setextHeadingLineSequence"),eP(n)?eN(e,o,"lineSuffix")(n):o(n))}(l)):n(t)};function o(r){return null===r||eE(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}}},e8=["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"],te=["pre","script","style","textarea"],tt={partial:!0,tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(ez,t,n)}}},tn={partial:!0,tokenize:function(e,t,n){let r=this;return function(t){return eE(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)}}},tr={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)}}},ti={concrete:!0,name:"codeFenced",tokenize:function(e,t,n){let r,i=this,o={partial:!0,tokenize:function(e,t,n){let o=0;return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),l};function l(t){return e.enter("codeFencedFence"),eP(t)?eN(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?(o++,e.consume(i),t):o>=a?(e.exit("codeFencedFenceSequence"),eP(i)?eN(e,u,"whitespace")(i):u(i)):n(i)}(t)):n(t)}function u(r){return null===r||eE(r)?(e.exit("codeFencedFence"),t(r)):n(r)}}},l=0,a=0;return function(t){var o=t;let u=i.events[i.events.length-1];return l=u&&"linePrefix"===u[1].type?u[2].sliceSerialize(u[1],!0).length:0,r=o,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"),eP(i)?eN(e,s,"whitespace")(i):s(i))}(o)};function s(o){return null===o||eE(o)?(e.exit("codeFencedFence"),i.interrupt?t(o):e.check(tr,c,h)(o)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),function t(i){return null===i||eE(i)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),s(i)):eP(i)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),eN(e,u,"whitespace")(i)):96===i&&i===r?n(i):(e.consume(i),t)}(o))}
21function u(t){return null===t||eE(t)?s(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),function t(i){return null===i||eE(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(o,h,p)(t)}function p(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),d}function d(t){return l>0&&eP(t)?eN(e,f,"linePrefix",l+1)(t):f(t)}function f(t){return null===t||eE(t)?e.check(tr,c,h)(t):(e.enter("codeFlowValue"),function t(n){return null===n||eE(n)?(e.exit("codeFlowValue"),f(n)):(e.consume(n),t)}(t))}function h(n){return e.exit("codeFenced"),t(n)}}},to=document.createElement("i");function tl(e){let t="&"+e+";";to.innerHTML=t;let n=to.textContent;return(59!==n.charCodeAt(n.length-1)||"semi"===e)&&n!==t&&n}let ta={name:"characterReference",tokenize:function(e,t,n){let r,i,o=this,l=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=e_,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=eT,u):(e.enter("characterReferenceValue"),r=7,i=eC,u(t))}function u(a){if(59===a&&l){let r=e.exit("characterReferenceValue");return i!==e_||tl(o.sliceSerialize(r))?(e.enter("characterReferenceMarker"),e.consume(a),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(a)}return i(a)&&l++<r?(e.consume(a),u):n(a)}}},ts={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 ej(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(r)}}},tu={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),eN(e,t,"linePrefix")}}};function tc(e,t,n){let r=[],i=-1;for(;++i<e.length;){let o=e[i].resolveAll;o&&!r.includes(o)&&(t=o(t,n),r.push(o))}return t}let tp={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&&eg(e,0,e.length,n),e},resolveTo:function(e,t){let n,r,i,o,l=e.length,a=0;for(;l--;)if(n=e[l][1],r){if("link"===n.type||"labelLink"===n.type&&n._inactive)break;"enter"===e[l][0]&&"labelLink"===n.type&&(n._inactive=!0)}else if(i){if("enter"===e[l][0]&&("labelImage"===n.type||"labelLink"===n.type)&&!n._balanced&&(r=l,"labelLink"!==n.type)){a=2;break}}else"labelEnd"===n.type&&(i=l);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 o=ey(o=[["enter",s,t],["enter",u,t]],e.slice(r+1,r+a+3)),o=ey(o,[["enter",c,t]]),o=ey(o,tc(t.parser.constructs.insideSpan.null,e.slice(r+a+4,i-3),t)),o=ey(o,[["exit",c,t],e[i-2],e[i-1],["exit",u,t]]),o=ey(o,e.slice(i+1)),o=ey(o,[["exit",s,t]]),eg(e,r,e.length,o),e},tokenize:function(e,t,n){let r,i,o=this,l=o.events.length;for(;l--;)if(("labelImage"===o.events[l][1].type||"labelLink"===o.events[l][1].type)&&!o.events[l][1]._balanced){r=o.events[l][1];break}return function(t){return r?r._inactive?c(t):(i=o.parser.defined.includes(e5(o.sliceSerialize({start:r.end,end:o.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(td,u,i?u:c)(t):91===t?e.attempt(tf,u,i?s:c)(t):i?u(t):c(t)}function s(t){return e.attempt(th,u,c)(t)}function u(e){return t(e)}function c(e){return r._balanced=!0,n(e)}}},td={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 eA(t)?e4(e,i)(t):i(t)}function i(t){return 41===t?u(t):e0(e,o,l,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function o(t){return eA(t)?e4(e,a)(t):u(t)}function l(e){return n(e)}function a(t){return 34===t||39===t||40===t?e2(e,s,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):u(t)}function s(t){return eA(t)?e4(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)}}},tf={tokenize:function(e,t,n){let r=this;return function(t){return e1.call(r,e,i,o,"reference","referenceMarker","referenceString")(t)};function i(e){return r.parser.defined.includes(e5(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function o(e){return n(e)}}},th={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)}}},tm={name:"labelStartImage",resolveAll:tp.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"),o):n(t)}function o(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}};function tg(e){return null===e||eA(e)||eM(e)?1:eO(e)?2:void 0}let ty={name:"attention",resolveAll:function(e,t){let n,r,i,o,l,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[
21n][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 p={...e[n][1].end},d={...e[c][1].start};tv(p,-a),tv(d,a),o={type:a>1?"strongSequence":"emphasisSequence",start:p,end:{...e[n][1].end}},l={type:a>1?"strongSequence":"emphasisSequence",start:{...e[c][1].start},end:d},i={type:a>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[c][1].start}},r={type:a>1?"strong":"emphasis",start:{...o.start},end:{...l.end}},e[n][1].end={...o.start},e[c][1].start={...l.end},s=[],e[n][1].end.offset-e[n][1].start.offset&&(s=ey(s,[["enter",e[n][1],t],["exit",e[n][1],t]])),s=ey(s,[["enter",r,t],["enter",o,t],["exit",o,t],["enter",i,t]]),s=ey(s,tc(t.parser.constructs.insideSpan.null,e.slice(n+1,c),t)),s=ey(s,[["exit",i,t],["enter",l,t],["exit",l,t],["exit",r,t]]),e[c][1].end.offset-e[c][1].start.offset?(u=2,s=ey(s,[["enter",e[c][1],t],["exit",e[c][1],t]])):u=0,eg(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,o=tg(i);return function(l){return n=l,e.enter("attentionSequence"),function l(a){if(a===n)return e.consume(a),l;let s=e.exit("attentionSequence"),u=tg(a),c=!u||2===u&&o||r.includes(a),p=!o||2===o&&u||r.includes(i);return s._open=!!(42===n?c:c&&(o||!p)),s._close=!!(42===n?p:p&&(u||!c)),t(a)}(l)}}};function tv(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}let tk={name:"labelStartLink",resolveAll:tp.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)}}},tx={42:eZ,43:eZ,45:eZ,48:eZ,49:eZ,50:eZ,51:eZ,52:eZ,53:eZ,54:eZ,55:eZ,56:eZ,57:eZ,62:eX},tb={91:{name:"definition",tokenize:function(e,t,n){let r,i=this;return function(t){var r;return e.enter("definition"),r=t,e1.call(i,e,o,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(r)};function o(t){return(r=e5(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),58===t)?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),l):n(t)}function l(t){return eA(t)?e4(e,a)(t):a(t)}function a(t){return e0(e,s,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function s(t){return e.attempt(e3,u,u)(t)}function u(t){return eP(t)?eN(e,c,"whitespace")(t):c(t)}function c(o){return null===o||eE(o)?(e.exit("definition"),i.parser.defined.push(r),t(o)):n(o)}}}},tw={[-2]:e6,[-1]:e6,32:e6},t_={35:{name:"headingAtx",resolve:function(e,t){let n,r,i=e.length-2,o=3;return"whitespace"===e[3][1].type&&(o+=2),i-2>o&&"whitespace"===e[i][1].type&&(i-=2),"atxHeadingSequence"===e[i][1].type&&(o===i-1||i-4>o&&"whitespace"===e[i-2][1].type)&&(i-=o+1===i?2:4),i>o&&(n={type:"atxHeadingText",start:e[o][1].start,end:e[i][1].end},r={type:"chunkText",start:e[o][1].start,end:e[i][1].end,contentType:"text"},eg(e,o,i-o+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 o;return e.enter("atxHeading"),o=i,e.enter("atxHeadingSequence"),function i(o){return 35===o&&r++<6?(e.consume(o),i):null===o||eA(o)?(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||eE(r)?(e.exit("atxHeading"),t(r)):eP(r)?eN(e,n,"whitespace")(r):(e.enter("atxHeadingText"),function t(r){return null===r||35===r||eA(r)?(e.exit("atxHeadingText"),n(r)):(e.consume(r),t)}(r))}(o)):n(o)}(o)}}},42:eJ,45:[e7,eJ],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,o,l,a,s=this;return function(t){var n;return n=t,e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(n),u};function u(l){return 33===l?(e.consume(l),c):47===l?(e.consume(l),i=!0,f):63===l?(e.consume(l),r=3,s.interrupt?t:O):ew(l)?(e.consume(l),o=String.fromCharCode(l),h):n(l)}function c(i){return 45===i?(e.consume(i),r=2,p):91===i?(e.consume(i),r=5,l=0,d):ew(i)?(e.consume(i),r=4,s.interrupt?t:O):n(i)}function p(r){return 45===r?(e.consume(r),s.interrupt?t:O):n(r)}function d(r){let i="CDATA[";return r===i.charCodeAt(l++)?(e.consume(r),l===i.length)?s.interrupt?t:I:d:n(r)}function f(t){return ew(t)?(e.consume(t),o=String.fromCharCode(t),h):n(t)}function h(l){if(null===l||47===l||62===l||eA(l)){let a=47===l,u=o.toLowerCase();return!a&&!i&&te.includes(u)?(r=1,s.interrupt?t(l):I(l)):e8.includes(o.toLowerCase())?(r=6,a)?(e.consume(l),m):s.interrupt?t(l):I(l):(r=7,s.interrupt&&!s.parser.lazy[s.now().line]?n(l):i?function t(n){return eP(n)?(e.consume(n),t):w(n)}(l):g(l))}return 45===l||e_(l)?(e.consume(l),o+=String.fromCharCode(l),h):n(l)}function m(r){return 62===r?(e.consume(r),s.interrupt?t:I):n(r)}function g(t){return 47===t?(e.consume(t),w):58===t||95===t||ew(t)?(e.consume(t),y):eP(t)?(e.consume(t),g):w(t)}function y(t){return 45===t||46===t||58===t||95===t||e_(t)?(e.consume(t),y):v(t)}function v(t){return 61===t?(e.consume(t),k):eP(t)?(e.consume(t),v):g(t)}function k(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),a=t,x):eP(t)?(e.consume(t),k):function t(n){return null===n||34===n||39===n||47===n||60===n||61===n||62===n||96===n||eA(n)?v(n):(e.consume(n),t)}(t)}function x(t){return t===a?(e.consume(t),a=null,b):null===t||eE(t)?n(t):(e.consume(t),x)}function b(e){return 47===e||62===e||eP(e)?g(e):n(e)}function w(t){return 62===t?(e.consume(t),_):n(t)}function _(t){return null===t||eE(t)?I(t):eP(t)?(e.consume(t),_):n(t)}function I(t){return 45===t&&2===r?(e.consume(t),j):60===t&&1===r?(e.consume(t),E):62===t&&4===r?(e.consume(t),M):63===t&&3===r?(e.consume(t),O):93===t&&5===r?(e.consume(t),P):eE(t)&&(6===r||7===r)?(e.exit("htmlFlowData"),e.check(tt,Y,S
21)(t)):null===t||eE(t)?(e.exit("htmlFlowData"),S(t)):(e.consume(t),I)}function S(t){return e.check(tn,C,Y)(t)}function C(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),T}function T(t){return null===t||eE(t)?S(t):(e.enter("htmlFlowData"),I(t))}function j(t){return 45===t?(e.consume(t),O):I(t)}function E(t){return 47===t?(e.consume(t),o="",A):I(t)}function A(t){if(62===t){let n=o.toLowerCase();return te.includes(n)?(e.consume(t),M):I(t)}return ew(t)&&o.length<8?(e.consume(t),o+=String.fromCharCode(t),A):I(t)}function P(t){return 93===t?(e.consume(t),O):I(t)}function O(t){return 62===t?(e.consume(t),M):45===t&&2===r?(e.consume(t),O):I(t)}function M(t){return null===t||eE(t)?(e.exit("htmlFlowData"),Y(t)):(e.consume(t),M)}function Y(n){return e.exit("htmlFlow"),t(n)}}},61:e7,95:eJ,96:ti,126:ti},tI={38:ta,92:ts},tS={[-5]:tu,[-4]:tu,[-3]:tu,33:tm,38:ta,42:ty,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 ew(t)?(e.consume(t),o):64===t?n(t):a(t)}function o(t){return 43===t||45===t||46===t||e_(t)?(r=1,function t(n){return 58===n?(e.consume(n),r=0,l):(43===n||45===n||46===n||e_(n))&&r++<32?(e.consume(n),t):(r=0,a(n))}(t)):a(t)}function l(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||eS(r)?n(r):(e.consume(r),l)}function a(t){return 64===t?(e.consume(t),s):eI(t)?(e.consume(t),a):n(t)}function s(i){return e_(i)?function i(o){return 46===o?(e.consume(o),r=0,s):62===o?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(o),e.exit("autolinkMarker"),e.exit("autolink"),t):function t(o){if((45===o||e_(o))&&r++<63){let n=45===o?t:i;return e.consume(o),n}return n(o)}(o)}(i):n(i)}}},{name:"htmlText",tokenize:function(e,t,n){let r,i,o,l=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),x):63===t?(e.consume(t),v):ew(t)?(e.consume(t),w):n(t)}function s(t){return 45===t?(e.consume(t),u):91===t?(e.consume(t),i=0,f):ew(t)?(e.consume(t),y):n(t)}function u(t){return 45===t?(e.consume(t),d):n(t)}function c(t){return null===t?n(t):45===t?(e.consume(t),p):eE(t)?(o=c,A(t)):(e.consume(t),c)}function p(t){return 45===t?(e.consume(t),d):c(t)}function d(e){return 62===e?E(e):45===e?p(e):c(e)}function f(t){let r="CDATA[";return t===r.charCodeAt(i++)?(e.consume(t),i===r.length?h:f):n(t)}function h(t){return null===t?n(t):93===t?(e.consume(t),m):eE(t)?(o=h,A(t)):(e.consume(t),h)}function m(t){return 93===t?(e.consume(t),g):h(t)}function g(t){return 62===t?E(t):93===t?(e.consume(t),g):h(t)}function y(t){return null===t||62===t?E(t):eE(t)?(o=y,A(t)):(e.consume(t),y)}function v(t){return null===t?n(t):63===t?(e.consume(t),k):eE(t)?(o=v,A(t)):(e.consume(t),v)}function k(e){return 62===e?E(e):v(e)}function x(t){return ew(t)?(e.consume(t),b):n(t)}function b(t){return 45===t||e_(t)?(e.consume(t),b):function t(n){return eE(n)?(o=t,A(n)):eP(n)?(e.consume(n),t):E(n)}(t)}function w(t){return 45===t||e_(t)?(e.consume(t),w):47===t||62===t||eA(t)?_(t):n(t)}function _(t){return 47===t?(e.consume(t),E):58===t||95===t||ew(t)?(e.consume(t),I):eE(t)?(o=_,A(t)):eP(t)?(e.consume(t),_):E(t)}function I(t){return 45===t||46===t||58===t||95===t||e_(t)?(e.consume(t),I):function t(n){return 61===n?(e.consume(n),S):eE(n)?(o=t,A(n)):eP(n)?(e.consume(n),t):_(n)}(t)}function S(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),r=t,C):eE(t)?(o=S,A(t)):eP(t)?(e.consume(t),S):(e.consume(t),T)}function C(t){return t===r?(e.consume(t),r=void 0,j):null===t?n(t):eE(t)?(o=C,A(t)):(e.consume(t),C)}function T(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||eA(t)?_(t):(e.consume(t),T)}function j(e){return 47===e||62===e||eA(e)?_(e):n(e)}function E(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}function A(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),P}function P(t){return eP(t)?eN(e,O,"linePrefix",l.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):O(t)}function O(t){return e.enter("htmlTextData"),o(t)}}}],91:tk,92:[{name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return eE(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}},ts],93:tp,95:ty,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,o=0;
21return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),function t(n){return 96===n?(e.consume(n),o++,t):(e.exit("codeTextSequence"),l(n))}(t)};function l(s){return null===s?n(s):32===s?(e.enter("space"),e.consume(s),e.exit("space"),l):96===s?(i=e.enter("codeTextSequence"),r=0,function n(l){return 96===l?(e.consume(l),r++,n):r===o?(e.exit("codeTextSequence"),e.exit("codeText"),t(l)):(i.type="codeTextData",a(l))}(s)):eE(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),l):(e.enter("codeTextData"),a(s))}function a(t){return null===t||32===t||96===t||eE(t)?(e.exit("codeTextData"),l(t)):(e.consume(t),a)}}}},tC={null:[ty,eV]},tT={null:[42,95]},tj={null:[]},tE=/[\0\t\n\r]/g;function tA(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 tP=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function tO(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){let e=n.charCodeAt(1),t=120===e||88===e;return tA(n.slice(t?2:1),t?16:10)}return tl(n)||e}let tM={}.hasOwnProperty;function tY(e){return{line:e.line,column:e.column,offset:e.offset}}function tN(e,t){if(e)throw Error("Cannot close `"+e.type+"` ("+W({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+W({start:t.start,end:t.end})+") is open");throw Error("Cannot close document, a token (`"+t.type+"`, "+W({start:t.start,end:t.end})+") is still open")}function tD(e){let t=this;t.parser=function(n){var r,o;let l,a,s,u;return"object"==typeof(r={...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})&&(o=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(f),codeFencedFenceInfo:i,codeFencedFenceMeta:i,codeIndented:r(f,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(v,function(){this.data.expectingFirstListItemValue=!0}),listUnordered:r(v),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:l(),atxHeadingSequence:function(e){let t=this.stack[this.stack.length-1];t.depth||(t.depth=this.sliceSerialize(e).length)},autolink:l(),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:l(),characterEscapeValue:c,characterReferenceMarkerHexadecimal:d,characterReferenceMarkerNumeric:d,characterReferenceValue:function(e){let t,n=this.sliceSerialize(e),r=this.data.characterReferenceType;r?(t=tA(n,"characterReferenceMarkerNumeric"===r?10:16),this.data.characterReferenceType=void 0):t=tl(n);let i=this.stack[this.stack.length-1];i.value+=t},characterReference:function(e){this.stack.pop().position.end=tY(e.end)},codeFenced:l(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:l(function(){let e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}),codeText:l(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),codeTextData:c,data:c,definition:l(),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=e5(this.sliceSerialize(e)).toLowerCase()},definitionTitleString:function(){let e=this.resume();this.stack[this.stack.length-1].title=e},emphasis:l(),hardBreakEscape:l(p),hardBreakTrailing:l(p),htmlFlow:l(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),htmlFlowData:c,htmlText:l(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),htmlTextData:c,image:l(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(tP,tO),n.identifier=e5(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=tY(e.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.t
21ype)&&(u.call(this,e),c.call(this,e))},link:l(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:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:function(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=e5(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:l(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:l(),thematicBreak:l()}};(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(tM.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:[]},l={stack:[r],tokenStack:[],config:t,enter:o,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,o,l,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--,l=void 0;break;case"lineEndingBlank":"enter"===t[0]&&(!r||l||s||o||(o=a),l=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:l=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 l=a;for(i=void 0;l--;){let t=e[l];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=l}else if("linePrefix"===t[1].type||"blockQuotePrefix"===t[1].type||"blockQuotePrefixWhitespace"===t[1].type||"blockQuoteMarker"===t[1].type||"listItemIndent"===t[1].type);else break}o&&(!i||o<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++,o=void 0,l=!0}}}return e[t][1]._spread=u,n}(e,u.pop(),c));for(c=-1;++c<e.length;){let n=t[e[c][0]];tM.call(n,e[c][1].type)&&n[e[c][1].type].call(Object.assign({sliceSerialize:e[c][2].sliceSerialize},l),e[c][1])}if(l.tokenStack.length>0){let e=l.tokenStack[l.tokenStack.length-1];(e[1]||tN).call(l,void 0,e[0])}for(r.position={start:tY(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:tY(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){o.call(this,e(n),n),t&&t.call(this,n)}}function i(){this.stack.push({type:"fragment",children:[]})}function o(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:tY(t.start),end:void 0}}function l(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]||tN).call(this,e,r[0]));else throw Error("Cannot close `"+e.type+"` ("+W({start:e.start,end:e.end})+"): it’s not open");n.position.end=tY(e.end)}function s(){var e;return eh(this.stack.pop(),"boolean"!=typeof ef.includeImageAlt||ef.includeImageAlt,"boolean"!=typeof ef.includeHtml||ef.includeHtml)}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:tY(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=tY(e.end)}function p(){this.data.atHardBreak=!0}function d(e){this.data.characterReferenceType=e.type}function f(){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 v(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}})(o)(function(e){for(;!ex(e););return e}((function(e){let t={constructs:function(e){let t={},n=-1;for(;++n<e.length;)(function(e,t){let n;for(n in t){let r,i=(eb.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];if(o)for(r in o){eb.call(i,r)||(i[r]=[]);let e=o[r];(function(e,t){let n=-1,r=[];for(;++n<t.length;)("after"===t[n].add?e:r).push(t[n]);eg(e,0,0,r)})(i[r],Array.isArray(e)?e:e?[e]:[])}}})(t,e[n]);return t}([i,...(e||{}).extensions||[]]),content:n(eD),defined:[],document:n(eL),flow:n(e$),lazy:{},string:n(eB),text:n(eU)};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
21olumn:n&&n.column||1,offset:n&&n.offset||0},i={},o=[],l=[],a=[],s={attempt:h(function(e,t){m(e,t.from)}),check:h(f),consume:function(e){eE(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===l[r._index].length&&(r._bufferIndex=-1,r._index++)),u.previous=e},enter:function(e,t){let n=t||{};return n.type=e,n.start=d(),u.events.push(["enter",n,u]),a.push(n),n},exit:function(e){let t=a.pop();return t.end=d(),u.events.push(["exit",t,u]),t},interrupt:h(f,{interrupt:!0})},u={code:null,containerState:{},defineSkip:function(e){i[e.line]=e.column,g()},events:[],now:d,parser:e,previous:null,sliceSerialize:function(e,t){return function(e,t){let n,r=-1,i=[];for(;++r<e.length;){let o,l=e[r];if("string"==typeof l)o=l;else switch(l){case -5:o="\r";break;case -4:o="\n";break;case -3:o="\r\n";break;case -2:o=t?" ":"	";break;case -1:if(!t&&n)continue;o=" ";break;default:o=String.fromCharCode(l)}n=-2===l,i.push(o)}return i.join("")}(p(e),t)},sliceStream:p,write:function(e){return(l=ey(l,e),function(){let e;for(;r._index<l.length;){let n=l[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!==l[l.length-1])?[]:(m(t,0),u.events=tc(o,u.events,u),u.events)}},c=t.tokenize.call(u,s);return t.resolveAll&&o.push(t),u;function p(e){return function(e,t){let n,r=t.start._index,i=t.start._bufferIndex,o=t.end._index,l=t.end._bufferIndex;if(r===o)n=[e[r].slice(i,l)];else{if(n=e.slice(r,o),i>-1){let e=n[0];"string"==typeof e?n[0]=e.slice(i):n.shift()}l>0&&n.push(e[o].slice(0,l))}return n}(l,e)}function d(){let{_bufferIndex:e,_index:t,line:n,column:i,offset:o}=r;return{_bufferIndex:e,_index:t,line:n,column:i,offset:o}}function f(e,t){t.restore()}function h(e,t){return function(n,i,o){var l;let c,p,f,h;return Array.isArray(n)?m(n):"tokenize"in n?m([n]):(l=n,function(e){let t=null!==e&&l[e],n=null!==e&&l.null;return m([...Array.isArray(t)?t:t?[t]:[],...Array.isArray(n)?n:n?[n]:[]])(e)});function m(e){return(c=e,p=0,0===e.length)?o:y(e[p])}function y(e){return function(n){return(h=function(){let e=d(),t=u.previous,n=u.currentConstruct,i=u.events.length,o=Array.from(a);return{from:i,restore:function(){r=e,u.previous=t,u.currentConstruct=n,u.events.length=i,a=o,g()}}}(),f=e,e.partial||(u.currentConstruct=e),e.name&&u.parser.constructs.disable.null.includes(e.name))?k(n):e.tokenize.call(t?Object.assign(Object.create(u),t):u,s,v,k)(n)}}function v(t){return e(f,h),i}function k(e){return(h.restore(),++p<c.length)?y(c[p]):o}}}function m(e,t){e.resolveAll&&!o.includes(e)&&o.push(e),e.resolve&&eg(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)}}})(o).document().write((a=1,s="",u=!0,function(e,t,n){let r,i,o,c,p,d=[];for(e=s+("string"==typeof e?e.toString():new TextDecoder(t||void 0).decode(e)),o=0,s="",u&&(65279===e.charCodeAt(0)&&o++,u=void 0);o<e.length;){if(tE.lastIndex=o,c=(r=tE.exec(e))&&void 0!==r.index?r.index:e.length,p=e.charCodeAt(c),!r){s=e.slice(o);break}if(10===p&&o===c&&l)d.push(-3),l=void 0;else switch(l&&(d.push(-5),l=void 0),o<c&&(d.push(e.slice(o,c)),a+=c-o),p){case 0:d.push(65533),a++;break;case 9:for(i=4*Math.ceil(a/4),d.push(-2);a++<i;)d.push(-1);break;case 10:d.push(-4),a=1;break;default:l=!0,a=1}o=c+1}return n&&(l&&d.push(-5),s&&d.push(s),d.push(null)),d})(n,r,!0))))}}let tL="object"==typeof self?self:globalThis,tR=(e,t)=>{let n=(t,n)=>(e.set(n,t),t),r=i=>{if(e.has(i))return e.get(i);let[o,l]=t[i];switch(o){case 0:case -1:return n(l,i);case 1:{let e=n([],i);for(let t of l)e.push(r(t));return e}case 2:{let e=n({},i);for(let[t,n]of l)e[r(t)]=r(n);return e}case 3:return n(new Date(l),i);case 4:{let{source:e,flags:t}=l;return n(new RegExp(e,t),i)}case 5:{let e=n(new Map,i);for(let[t,n]of l)e.set(r(t),r(n));return e}case 6:{let e=n(new Set,i);for(let t of l)e.add(r(t));return e}case 7:{let{name:e,message:t}=l;return n(new tL[e](t),i)}case 8:return n(BigInt(l),i);case"BigInt":return n(Object(BigInt(l)),i);case"ArrayBuffer":return n(new Uint8Array(l).buffer,l);case"DataView":{let{buffer:e}=new Uint8Array(l);return n(new DataView(e),l)}}return n(new tL[o](l),i)};return r},tz=e=>tR(new Map,e)(0),{toString:tq}={},{keys:tF}=Object,t$=e=>{let t=typeof e;if("object"!==t||!e)return[0,t];let n=tq.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]},tV=([e,t])=>0===e&&("function"===t||"symbol"===t),tB=(e,t,n,r)=>{let i=(e,t)=>{let i=r.push(e)-1;return n.set(t,i),i},o=r=>{if(n.has(r))return n.get(r);let[l,a]=t$(r);switch(l){case 0:{let t=r;switch(a){case"bigint":l=8,t=r.toString();break;case"function":case"symbol":if(e)throw TypeError("unable to serialize "+a);t=null;break;case"undefined":return i([-1],r)}return i([l,t],r)}case 1:{if(a){let e=r;return"DataView"===a?e=new Uint8Array(r.buffer):"ArrayBuffer"===a&&(e=new Uint8Array(r)),i([a,[...e]],r)}let e=[],t=i([l,e],r);for(let t of r)e.push(o(t));return t}case 2:{if(a)switch(a){case"BigInt":return i([a,r.toString()],r);case"Boolean":case"Number":case"String":return i([a,r.valueOf()],r)}if(t&&"toJSON"in r)return o(r.toJSON());let n=[],s=i([l,n],r);for(let t of tF(r))(e||!tV(t$(r[t])))&&n.push([o(t),o(r[t])]);return s}case 3:return i([l,r.toISOString()],r);case 4:{let{source:e,flags:t}=r;return i([l,{source:e,flags:t}],r)}case 5:{let t=[],n=i([l,t],r);
21for(let[n,i]of r)(e||!(tV(t$(n))||tV(t$(i))))&&t.push([o(n),o(i)]);return n}case 6:{let t=[],n=i([l,t],r);for(let n of r)(e||!tV(t$(n)))&&t.push(o(n));return n}}let{message:s}=r;return i([l,{name:a,message:s}],r)};return o},tU=(e,{json:t,lossy:n}={})=>{let r=[];return tB(!(t||n),!!t,new Map,r)(e),r},tH="function"==typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?tz(tU(e,t)):structuredClone(e):(e,t)=>tz(tU(e,t));function tW(e){let t=[],n=-1,r=0,i=0;for(;++n<e.length;){let o=e.charCodeAt(n),l="";if(37===o&&e_(e.charCodeAt(n+1))&&e_(e.charCodeAt(n+2)))i=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(l=String.fromCharCode(o));else if(o>55295&&o<57344){let t=e.charCodeAt(n+1);o<56320&&t>56319&&t<57344?(l=String.fromCharCode(o,t),i=1):l="�"}else l=String.fromCharCode(o);l&&(t.push(e.slice(r,n),encodeURIComponent(l)),r=n+i+1,l=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function tK(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 tJ(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}let tZ=function(e){var t,n;if(null==e)return tG;if("function"==typeof e)return tQ(e);if("object"==typeof e){return Array.isArray(e)?function(e){let t=[],n=-1;for(;++n<e.length;)t[n]=tZ(e[n]);return tQ(function(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1})}(e):(t=e,tQ(function(e){let n;for(n in t)if(e[n]!==t[n])return!1;return!0}))}if("string"==typeof e){return n=e,tQ(function(e){return e&&e.type===n})}throw Error("Expected function, string, or object as test")};function tQ(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 tG(){return!0}let tX=[];function t0(e,t,n,r){let i,o,l;"function"==typeof t&&"function"!=typeof n?(o=void 0,l=t,i=n):(o=t,l=n,i=r),function(e,t,n,r){let i;"function"==typeof t&&"function"!=typeof n?(r=n,n=t):i=t;let o=tZ(i),l=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;let c,p,d,f=tX;if((!t||o(i,a,s[s.length-1]||void 0))&&!1===(f=Array.isArray(u=n(i,s))?u:"number"==typeof u?[!0,u]:null==u?tX:[u])[0])return f;if("children"in i&&i.children&&i.children&&"skip"!==f[0])for(p=(r?i.children.length:-1)+l,d=s.concat(i);p>-1&&p<i.children.length;){if(!1===(c=e(i.children[p],p,d)())[0])return c;p="number"==typeof c[1]?c[1]:p+l}return f}})(e,void 0,[])()}(e,o,function(e,t){let n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return l(e,r,n)},i)}function t1(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),o=i[0];o&&"text"===o.type?o.value="["+o.value:i.unshift({type:"text",value:"["});let l=i[i.length-1];return l&&"text"===l.type?l.value+=r:i.push({type:"text",value:r}),i}function t2(e){let t=e.spread;return null==t?e.children.length>1:t}function t4(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 t5={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 o={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(o.data={meta:t.meta}),e.patch(t,o),o={type:"element",tagName:"pre",properties:{},children:[o=e.applyData(t,o)]},e.patch(t,o),o},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)}
21,footnoteReference:function(e,t){let n,r="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",i=String(t.identifier).toUpperCase(),o=tW(i.toLowerCase()),l=e.footnoteOrder.indexOf(i),a=e.footnoteCounts.get(i);void 0===a?(a=0,e.footnoteOrder.push(i),n=e.footnoteOrder.length):n=l+1,a+=1,e.footnoteCounts.set(i,a);let s={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+o,id:r+"fnref-"+o+(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 t1(e,t);let i={src:tW(r.url||""),alt:t.alt};null!==r.title&&void 0!==r.title&&(i.title=r.title);let o={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,o),e.applyData(t,o)},image:function(e,t){let n={src:tW(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 t1(e,t);let i={href:tW(r.url||"")};null!==r.title&&void 0!==r.title&&(i.title=r.title);let o={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)},link:function(e,t){let n={href:tW(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=t2(n[r])}return t}(n):t2(t),o={},l=[];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:[]}),o.className=["task-list-item"]}let a=-1;for(;++a<r.length;){let e=r[a];(i||0!==a||"element"!==e.type||"p"!==e.tagName)&&l.push({type:"text",value:"\n"}),"element"!==e.type||"p"!==e.tagName||i?l.push(e):l.push(...e.children)}let s=r[r.length-1];s&&(i||"element"!==s.type||"p"!==s.tagName)&&l.push({type:"text",value:"\n"});let u={type:"element",tagName:"li",properties:o,children:l};return 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 o={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,o),e.applyData(t,o)},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)},o=U(t.children[1]),l=B(t.children[t.children.length-1]);o&&l&&(r.position={start:o,end:l}),i.push(r)}let o={type:"element",tagName:"table",properties:{}
21,children:e.wrap(i,!0)};return e.patch(t,o),e.applyData(t,o)},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",o=n&&"table"===n.type?n.align:void 0,l=o?o.length:t.children.length,a=-1,s=[];for(;++a<l;){let n=t.children[a],r={},l=o?o[a]:void 0;l&&(r.align=l);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,o=[];for(;r;)o.push(t4(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return o.push(t4(t.slice(i),i>0,!1)),o.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:t3,yaml:t3,definition:t3,footnoteDefinition:t3};function t3(){}let t6={}.hasOwnProperty,t9={};function t7(e,t){e.position&&(t.position=function(e){let t=U(e),n=B(e);if(t&&n)return{start:t,end:n}}(e))}function t8(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,tH(i)),"children"in n&&n.children&&null!=r&&(n.children=r)}return n}function ne(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 nt(e){let t=0,n=e.charCodeAt(t);for(;9===n||32===n;)t++,n=e.charCodeAt(t);return e.slice(t)}function nn(e,t){let n=function(e,t){let n=t||t9,r=new Map,i=new Map,o={all:function(e){let t=[];if("children"in e){let n=e.children,r=-1;for(;++r<n.length;){let i=o.one(n[r],e);if(i){if(r&&"break"===n[r-1].type&&(Array.isArray(i)||"text"!==i.type||(i.value=nt(i.value)),!Array.isArray(i)&&"element"===i.type)){let e=i.children[0];e&&"text"===e.type&&(e.value=nt(e.value))}Array.isArray(i)?t.push(...i):t.push(i)}}}return t},applyData:t8,definitionById:r,footnoteById:i,footnoteCounts:new Map,footnoteOrder:[],handlers:{...t5,...n.handlers},one:function(e,t){let n=e.type,r=o.handlers[n];if(t6.call(o.handlers,n)&&r)return r(o,e,t);if(o.options.passThrough&&o.options.passThrough.includes(n)){if("children"in e){let{children:t,...n}=e,r=tH(n);return r.children=o.all(e),r}return tH(e)}return(o.options.unknownHandler||function(e,t){let n=t.data||{},r="value"in t&&!(t6.call(n,"hProperties")||t6.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)})(o,e,t)},options:n,patch:t7,wrap:ne};return t0(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)}}),o}(e,t),r=n.one(e,void 0),i=function(e){let t="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||tK,r=e.options.footnoteBackLabel||tJ,i=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",l=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 o=e.all(i),l=String(i.identifier).toUpperCase(),u=tW(l.toLowerCase()),c=0,p=[],d=e.footnoteCounts.get(l);for(;void 0!==d&&++c<=d;){p.length>0&&p.push({type:"text",value:" "});let e="string"==typeof n?n:n(s,c);"string"==typeof e&&(e={type:"text",value:e}),p.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 f=o[o.length-1];if(f&&"element"===f.type&&"p"===f.tagName){let e=f.children[f.children.length-1];e&&"text"===e.type?e.value+=" ":f.children.push({type:"text",value:" "}),f.children.push(...p)}else o.push(...p);let h={type:"element",tagName:"li",properties:{id:t+"fn-"+u},children:e.wrap(o,!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:o,properties:{...tH(l),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(a,!0)}
21,{type:"text",value:"\n"}]}}(n),o=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&o.children.push({type:"text",value:"\n"},i),o}function nr(e,t){return e&&"run"in e?async function(n,r){let i=nn(n,{file:r,...t});await e.run(i,r)}:function(n,r){return nn(n,{file:r,...e||t})}}function ni(e){if(e)throw e}var no=n(53360);function nl(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 na={basename:function(e,t){let n;if(void 0!==t&&"string"!=typeof t)throw TypeError('"ext" argument must be a string');ns(e);let r=0,i=-1,o=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;o--;)if(47===e.codePointAt(o)){if(n){r=o+1;break}}else i<0&&(n=!0,i=o+1);return i<0?"":e.slice(r,i)}if(t===e)return"";let l=-1,a=t.length-1;for(;o--;)if(47===e.codePointAt(o)){if(n){r=o+1;break}}else l<0&&(n=!0,l=o+1),a>-1&&(e.codePointAt(o)===t.codePointAt(a--)?a<0&&(i=o):(a=-1,i=l));return r===i?i=l:i<0&&(i=e.length),e.slice(r,i)},dirname:function(e){let t;if(ns(e),0===e.length)return".";let n=-1,r=e.length;for(;--r;)if(47===e.codePointAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.codePointAt(0)?"/":".":1===n&&47===e.codePointAt(0)?"//":e.slice(0,n)},extname:function(e){let t;ns(e);let n=e.length,r=-1,i=0,o=-1,l=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?o<0?o=n:1!==l&&(l=1):o>-1&&(l=-1)}return o<0||r<0||0===l||1===l&&o===r-1&&o===i+1?"":e.slice(o,r)},join:function(...e){let t,n=-1;for(;++n<e.length;)ns(e[n]),e[n]&&(t=void 0===t?e[n]:t+"/"+e[n]);return void 0===t?".":function(e){ns(e);let t=47===e.codePointAt(0),n=function(e,t){let n,r,i="",o=0,l=-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(l===s-1||1===a);else if(l!==s-1&&2===a){if(i.length<2||2!==o||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="",o=0):o=(i=i.slice(0,r)).length-1-i.lastIndexOf("/"),l=s,a=0;continue}}else if(i.length>0){i="",o=0,l=s,a=0;continue}}t&&(i=i.length>0?i+"/..":"..",o=2)}else i.length>0?i+="/"+e.slice(l+1,s):i=e.slice(l+1,s),o=s-l-1;l=s,a=0}else 46===n&&a>-1?a++:a=-1}return i}(e,!t);return 0!==n.length||t||(n="."),n.length>0&&47===e.codePointAt(e.length-1)&&(n+="/"),t?"/"+n:n}(t)},sep:"/"};function ns(e){if("string"!=typeof e)throw TypeError("Path must be a string. Received "+JSON.stringify(e))}let nu={cwd:function(){return"/"}};function nc(e){return!!(null!==e&&"object"==typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}let np=["history","path","basename","stem","extname","dirname"];class nd{constructor(e){let t,n;t=e?nc(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?"":nu.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<np.length;){let e=np[r];e in t&&void 0!==t[e]&&null!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(n in t)np.includes(n)||(this[n]=t[n])}get basename(){return"string"==typeof this.path?na.basename(this.path):void 0}set basename(e){nh(e,"basename"),nf(e,"basename"),this.path=na.join(this.dirname||"",e)}get dirname(){return"string"==typeof this.path?na.dirname(this.path):void 0}set dirname(e){nm(this.basename,"dirname"),this.path=na.join(e||"",this.basename)}get extname(){return"string"==typeof this.path?na.extname(this.path):void 0}set extname(e){if(nf(e,"extname"),nm(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=na.join(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){nc(e)&&(e=function(e){if("string"==typeof e)e=new URL(e);else if(!nc(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)),nh(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return"string"==typeof this.path?na.basename(this.path,this.extname):void 0}set stem(e){nh(e,"stem"),nf(e,"stem"),this.path=na.join(this.dirname||"",e+(this.extname||""))}fail(e,t,n){let r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){let r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){let r=new Q(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 nf(e,t){if(e&&e.includes(na.sep))throw Error("`"+t+"` cannot be a path: did not expect `"+na.sep+"`")}function nh(e,t){if(!e)throw Error("`"+t+"` cannot be empty")}function nm(e,t){if(!e)throw Error("Setting `"+t+"` requires `path` to be set too")}let ng=function(e){let t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r},ny={}.hasOwnProperty;
21class nv extends ng{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(o,...l){let a=e[++n],s=-1;if(o){r(o);return}for(;++s<t.length;)(null===l[s]||void 0===l[s])&&(l[s]=t[s]);t=l,a?(function(e,t){let n;return function(...t){let o,l=e.length>t.length;l&&t.push(r);try{o=e.apply(this,t)}catch(e){if(l&&n)throw e;return r(e)}l||(o&&o.then&&"function"==typeof o.then?o.then(i,r):o instanceof Error?r(o):i(o))};function r(e,...i){n||(n=!0,t(e,...i))}function i(e){r(null,e)}})(a,i)(...l):r(null,...l)})(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 nv,t=-1;for(;++t<this.attachers.length;){let n=this.attachers[t];e.use(...n)}return e.data(no(!0,{},this.namespace)),e}data(e,t){return"string"==typeof e?2==arguments.length?(nw("data",this.frozen),this.namespace[e]=t,this):ny.call(this.namespace,e)&&this.namespace[e]||void 0:e?(nw("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=Number.POSITIVE_INFINITY,this}parse(e){this.freeze();let t=nS(e),n=this.parser||this.Parser;return nx("parse",n),n(String(t),t)}process(e,t){let n=this;return this.freeze(),nx("process",this.parser||this.Parser),nb("process",this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,i){let o=nS(e),l=n.parse(o);function a(e,n){e||!n?i(e):r?r(n):t(void 0,n)}n.run(l,o,function(e,t,r){var i,o;if(e||!t||!r)return a(e);let l=n.stringify(t,r);"string"==typeof(i=l)||(o=i)&&"object"==typeof o&&"byteLength"in o&&"byteOffset"in o?r.value=l:r.result=l,a(e,r)})}}processSync(e){let t,n=!1;return this.freeze(),nx("processSync",this.parser||this.Parser),nb("processSync",this.compiler||this.Compiler),this.process(e,function(e,r){n=!0,ni(e),t=r}),nI("processSync","process",n),t}run(e,t,n){n_(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,o){let l=nS(t);r.run(e,l,function(t,r,l){let a=r||e;t?o(t):i?i(a):n(void 0,a,l)})}}runSync(e,t){let n,r=!1;return this.run(e,t,function(e,t){ni(e),n=t,r=!0}),nI("runSync","run",r),n}stringify(e,t){this.freeze();let n=nS(t),r=this.compiler||this.Compiler;return nb("stringify",r),n_(e),r(e,n)}use(e,...t){let n=this.attachers,r=this.namespace;if(nw("use",this.frozen),null==e);else if("function"==typeof e)l(e,t);else if("object"==typeof e)Array.isArray(e)?o(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");o(e.plugins),e.settings&&(r.settings=no(!0,r.settings,e.settings))}function o(e){let t=-1;if(null==e);else if(Array.isArray(e))for(;++t<e.length;){var n=e[t];if("function"==typeof n)l(n,[]);else if("object"==typeof n)if(Array.isArray(n)){let[e,...t]=n;l(e,t)}else i(n);else throw TypeError("Expected usable value, not `"+n+"`")}else throw TypeError("Expected a list of plugins, not `"+e+"`")}function l(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,...o]=t,l=n[i][1];nl(l)&&nl(r)&&(r=no(!0,l,r)),n[i]=[e,r,...o]}}}}let nk=new nv().freeze();function nx(e,t){if("function"!=typeof t)throw TypeError("Cannot `"+e+"` without `parser`")}function nb(e,t){if("function"!=typeof t)throw TypeError("Cannot `"+e+"` without `compiler`")}function nw(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 n_(e){if(!nl(e)||"string"!=typeof e.type)throw TypeError("Expected node, got `"+e+"`")}function nI(e,t,n){if(!n)throw Error("`"+e+"` finished async. Use `"+t+"` instead")}function nS(e){var t;return(t=e)&&"object"==typeof t&&"message"in t&&"messages"in t?e:new nd(e)}let nC=[],nT={allowDangerousHtml:!0},nj=/^(https?|ircs?|mailto|xmpp)$/i,nE=[{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 nA(e){let t=function(e){let t=e.rehypePlugins||nC,n=e.remarkPlugins||nC,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...nT}:nT;return nk().use(tD).use(n).use(nr,r).use(t)}(e),n=function(e){let t=e.children||"",n=new nd;return"string"==typeof t&&(n.value=t),n}(e);return function(e,t){let n=t.allowedElements,r=t.allowElement,i=t.components,o=t.disallowedElements,l=t.skipHtml,a=t.unwrapDisallowed,s=t.urlTransform||nP;for(let e of nE)Object.hasOwn(t,e.from)&&(e.from,e.to&&e.to,e.id);return t0(e,function(e,t,i){if("raw"===e.type&&i&&"number"==typeof t)return l?i.children.splice(t,1):i.children[t]={type:"text",value:e.value},t;if("element"===e.type){let t;for(t in ep)if(Object.hasOwn(ep,t)&&Object.hasOwn(e.properties,t)){let n=e.properties[t],r=ep[t];(null===r||r.includes(e.tagName))&&(e.properties[t]=s(String(n||""),t,e))}}if("element"===e.type){let l=n?!n.includes(e.tagName):!!o&&o.includes(e.tagName);if(!l&&r&&"number"==typeof t&&(l=!r(e,t,i)),l&&i&&"number"==typeof t)return a&&e.children?i.children.splice(t,1,...e.children):i.children.splice(t,1),t}}),function(e,t){var n,r,i,o,l;let a;if(!t||void 0===t.Fragment)throw TypeError("Expected `Fragment` in options");let s=t.filePath||void 0;if(t.development){if("function"!=typeof t.jsxDEV)throw TypeError("Expected `jsxDEV` in options when `development: true`");n=s,r=t.jsxDEV,a=function(e,t,i,o){let l=Array.isArray(i.children),a=U(e);return r(t,i,o,l,{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");
21if("function"!=typeof t.jsxs)throw TypeError("Expected `jsxs` in production options");i=0,o=t.jsx,l=t.jsxs,a=function(e,t,n,r){let i=Array.isArray(n.children)?l:o;return r?i(t,n,r):i(t,n)}}let u={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:a,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:s,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:!1!==t.passKeys,passNode:t.passNode||!1,schema:"svg"===t.space?D:N,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==t.tableCellAlignToStyle},c=ei(u,e,void 0);return c&&"string"!=typeof c?c:u.create(e,u.Fragment,{children:c||void 0},void 0)}(e,{Fragment:ed.Fragment,components:i,ignoreInvalidStyle:!0,jsx:ed.jsx,jsxs:ed.jsxs,passKeys:!0,passNode:!0})}(t.runSync(t.parse(n),n),e)}function nP(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||nj.test(e.slice(0,t))?e:""}},90848:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(40157).A)("Blocks",[["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["path",{d:"M10 21V8a1 1 0 0 0-1-1H4a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-5a1 1 0 0 0-1-1H3",key:"1fpvtg"}]])}}]);

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.