@townco/gui-template 0.1.112 → 0.1.113
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{acp-sdk-C2gyHhUs.js → acp-sdk-D4VsTV6L.js} +1 -1
- package/dist/assets/{framer-motion-DNsiqoUk.js → framer-motion-DEDjTHcO.js} +1 -1
- package/dist/assets/{icons-C7QEqI8s.js → icons-B0Ax5AoZ.js} +1 -1
- package/dist/assets/index-BdODQrJ1.js +11 -0
- package/dist/assets/index-DBhdpdtD.css +1 -0
- package/dist/assets/{katex-Dnem94XJ.js → katex-C5cjGaLm.js} +8 -8
- package/dist/assets/{markdown-D50x6v1C.js → markdown-jcH7_RT5.js} +1 -1
- package/dist/assets/radix-BaZ_UeJz.js +5 -0
- package/dist/assets/{react-BxR0bfXp.js → react-DiSrVJhY.js} +1 -1
- package/dist/assets/{vendor-B9CCG_zb.js → vendor-Dm9xAZV8.js} +302 -302
- package/dist/index.html +10 -10
- package/package.json +4 -4
- package/dist/assets/index-C5_d66MY.js +0 -11
- package/dist/assets/index-CFRsCXKX.css +0 -1
- package/dist/assets/radix-BAvNMSqp.js +0 -5
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a5 as pe,a6 as qe,a7 as g,a8 as hn,a9 as jt,aa as Ke,ab as Ht,ac as $t,ad as Ni,ae as Fi,af as xe,ag as Vt,ah as Mi,ai as lt,aj as Wt,ak as Pi,al as _e,am as ve,an as Di,ao as Li,ap as yt,aq as mn,ar as Pt,as as Dt,at as rr,au as ir,av as Bi,aw as pt,ax as ar,ay as _i,az as vi,aA as rt,aB as Lt,aC as dn,aD as gn,aE as xn,aF as ze,aG as Oi,aH as qi,aI as Ri,aJ as Ui,aK as kn,aL as Qt,aM as yn,aN as Ee,aO as Ze,aP as or,aQ as sr,aR as ji,aS as Le}from"./vendor-B9CCG_zb.js";import{k as bn}from"./katex-Dnem94XJ.js";const Hi=/[ \t\n\f\r]/g;function dt(e){return typeof e=="object"?e.type==="text"?Sn(e.value):!1:Sn(e)}function Sn(e){return e.replace(Hi,"")===""}const Gt={}.hasOwnProperty,$i=new Map,Vi=/[A-Z]/g,Wi=new Set(["table","tbody","thead","tfoot","tr"]),Qi=new Set(["td","th"]),lr="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function If(e,n){if(!n||n.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const t=n.filePath||void 0;let r;if(n.development){if(typeof n.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=ta(t,n.jsxDEV)}else{if(typeof n.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof n.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=ea(t,n.jsx,n.jsxs)}const a={Fragment:n.Fragment,ancestors:[],components:n.components||{},create:r,elementAttributeNameCase:n.elementAttributeNameCase||"react",evaluater:n.createEvaluater?n.createEvaluater():void 0,filePath:t,ignoreInvalidStyle:n.ignoreInvalidStyle||!1,passKeys:n.passKeys!==!1,passNode:n.passNode||!1,schema:n.space==="svg"?pe:qe,stylePropertyNameCase:n.stylePropertyNameCase||"dom",tableCellAlignToStyle:n.tableCellAlignToStyle!==!1},o=ur(a,e,void 0);return o&&typeof o!="string"?o:a.create(e,a.Fragment,{children:o||void 0},void 0)}function ur(e,n,t){if(n.type==="element")return Gi(e,n,t);if(n.type==="mdxFlowExpression"||n.type==="mdxTextExpression")return Xi(e,n);if(n.type==="mdxJsxFlowElement"||n.type==="mdxJsxTextElement")return Yi(e,n,t);if(n.type==="mdxjsEsm")return Ji(e,n);if(n.type==="root")return Ki(e,n,t);if(n.type==="text")return Zi(e,n)}function Gi(e,n,t){const r=e.schema;let a=r;n.tagName.toLowerCase()==="svg"&&r.space==="html"&&(a=pe,e.schema=a),e.ancestors.push(n);const o=pr(e,n.tagName,!1),i=na(e,n);let s=Jt(e,n);return Wi.has(n.tagName)&&(s=s.filter(function(l){return typeof l=="string"?!dt(l):!0})),cr(e,i,o,n),Xt(i,s),e.ancestors.pop(),e.schema=r,e.create(n,o,i,t)}function Xi(e,n){if(n.data&&n.data.estree&&e.evaluater){const r=n.data.estree.body[0];return g(r.type==="ExpressionStatement"),e.evaluater.evaluateExpression(r.expression)}Xe(e,n.position)}function Ji(e,n){if(n.data&&n.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(n.data.estree);Xe(e,n.position)}function Yi(e,n,t){const r=e.schema;let a=r;n.name==="svg"&&r.space==="html"&&(a=pe,e.schema=a),e.ancestors.push(n);const o=n.name===null?e.Fragment:pr(e,n.name,!0),i=ra(e,n),s=Jt(e,n);return cr(e,i,o,n),Xt(i,s),e.ancestors.pop(),e.schema=r,e.create(n,o,i,t)}function Ki(e,n,t){const r={};return Xt(r,Jt(e,n)),e.create(n,e.Fragment,r,t)}function Zi(e,n){return n.value}function cr(e,n,t,r){typeof t!="string"&&t!==e.Fragment&&e.passNode&&(n.node=r)}function Xt(e,n){if(n.length>0){const t=n.length>1?n:n[0];t&&(e.children=t)}}function ea(e,n,t){return r;function r(a,o,i,s){const c=Array.isArray(i.children)?t:n;return s?c(o,i,s):c(o,i)}}function ta(e,n){return t;function t(r,a,o,i){const s=Array.isArray(o.children),l=xe(r);return n(a,o,i,s,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}function na(e,n){const t={};let r,a;for(a in n.properties)if(a!=="children"&&Gt.call(n.properties,a)){const o=ia(e,a,n.properties[a]);if(o){const[i,s]=o;e.tableCellAlignToStyle&&i==="align"&&typeof s=="string"&&Qi.has(n.tagName)?r=s:t[i]=s}}if(r){const o=t.style||(t.style={});o[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return t}function ra(e,n){const t={};for(const r of n.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const o=r.data.estree.body[0];g(o.type==="ExpressionStatement");const i=o.expression;g(i.type==="ObjectExpression");const s=i.properties[0];g(s.type==="SpreadElement"),Object.assign(t,e.evaluater.evaluateExpression(s.argument))}else Xe(e,n.position);else{const a=r.name;let o;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const s=r.value.data.estree.body[0];g(s.type==="ExpressionStatement"),o=e.evaluater.evaluateExpression(s.expression)}else Xe(e,n.position);else o=r.value===null?!0:r.value;t[a]=o}return t}function Jt(e,n){const t=[];let r=-1;const a=e.passKeys?new Map:$i;for(;++r<n.children.length;){const o=n.children[r];let i;if(e.passKeys){const l=o.type==="element"?o.tagName:o.type==="mdxJsxFlowElement"||o.type==="mdxJsxTextElement"?o.name:void 0;if(l){const c=a.get(l)||0;i=l+"-"+c,a.set(l,c+1)}}const s=ur(e,o,i);s!==void 0&&t.push(s)}return t}function ia(e,n,t){const r=Ke(e.schema,n);if(!(t==null||typeof t=="number"&&Number.isNaN(t))){if(Array.isArray(t)&&(t=r.commaSeparated?Ht(t):$t(t)),r.property==="style"){let a=typeof t=="object"?t:aa(e,String(t));return e.stylePropertyNameCase==="css"&&(a=oa(a)),["style",a]}return[e.elementAttributeNameCase==="react"&&r.space?Ni[r.property]||r.property:r.attribute,t]}}function aa(e,n){try{return Fi(n,{reactCompat:!0})}catch(t){if(e.ignoreInvalidStyle)return{};const r=t,a=new jt("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw a.file=e.filePath||void 0,a.url=lr+"#cannot-parse-style-attribute",a}}function pr(e,n,t){let r;if(!t)r={type:"Literal",value:n};else if(n.includes(".")){const a=n.split(".");let o=-1,i;for(;++o<a.length;){const s=hn(a[o])?{type:"Identifier",name:a[o]}:{type:"Literal",value:a[o]};i=i?{type:"MemberExpression",object:i,property:s,computed:!!(o&&s.type==="Literal"),optional:!1}:s}g(i,"always a result"),r=i}else r=hn(n)&&!/^[a-z]/.test(n)?{type:"Identifier",name:n}:{type:"Literal",value:n};if(r.type==="Literal"){const a=r.value;return Gt.call(e.components,a)?e.components[a]:a}if(e.evaluater)return e.evaluater.evaluateExpression(r);Xe(e)}function Xe(e,n){const t=new jt("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:n,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw t.file=e.filePath||void 0,t.url=lr+"#cannot-handle-mdx-estrees-without-createevaluater",t}function oa(e){const n={};let t;for(t in e)Gt.call(e,t)&&(n[sa(t)]=e[t]);return n}function sa(e){let n=e.replace(Vi,la);return n.slice(0,3)==="ms-"&&(n="-"+n),n}function la(e){return"-"+e.toLowerCase()}const ua={};function Yt(e,n){const t=ua,r=typeof t.includeImageAlt=="boolean"?t.includeImageAlt:!0,a=typeof t.includeHtml=="boolean"?t.includeHtml:!0;return fr(e,r,a)}function fr(e,n,t){if(ca(e)){if("value"in e)return e.type==="html"&&!t?"":e.value;if(n&&"alt"in e&&e.alt)return e.alt;if("children"in e)return wn(e.children,n,t)}return Array.isArray(e)?wn(e,n,t):""}function wn(e,n,t){const r=[];let a=-1;for(;++a<e.length;)r[a]=fr(e[a],n,t);return r.join("")}function ca(e){return!!(e&&typeof e=="object")}const u={carriageReturn:-5,lineFeed:-4,carriageReturnLineFeed:-3,horizontalTab:-2,virtualSpace:-1,eof:null,nul:0,ht:9,lf:10,vt:11,cr:13,space:32,exclamationMark:33,quotationMark:34,numberSign:35,dollarSign:36,percentSign:37,ampersand:38,apostrophe:39,leftParenthesis:40,rightParenthesis:41,asterisk:42,plusSign:43,comma:44,dash:45,dot:46,slash:47,digit0:48,digit1:49,digit2:50,digit3:51,digit4:52,digit5:53,digit6:54,digit7:55,digit8:56,digit9:57,colon:58,semicolon:59,lessThan:60,equalsTo:61,greaterThan:62,questionMark:63,atSign:64,uppercaseA:65,uppercaseH:72,uppercaseW:87,uppercaseX:88,leftSquareBracket:91,backslash:92,rightSquareBracket:93,caret:94,underscore:95,graveAccent:96,lowercaseA:97,lowercaseH:104,lowercaseW:119,lowercaseX:120,leftCurlyBrace:123,verticalBar:124,tilde:126,del:127,byteOrderMarker:65279,replacementCharacter:65533},A={attentionSideAfter:2,atxHeadingOpeningFenceSizeMax:6,autolinkDomainSizeMax:63,autolinkSchemeSizeMax:32,cdataOpeningString:"CDATA[",characterGroupPunctuation:2,characterGroupWhitespace:1,characterReferenceDecimalSizeMax:7,characterReferenceHexadecimalSizeMax:6,characterReferenceNamedSizeMax:31,codeFencedSequenceSizeMin:3,contentTypeContent:"content",contentTypeFlow:"flow",contentTypeString:"string",contentTypeText:"text",hardBreakPrefixSizeMin:2,htmlBasic:6,htmlCdata:5,htmlComment:2,htmlComplete:7,htmlDeclaration:4,htmlInstruction:3,htmlRawSizeMax:8,htmlRaw:1,linkResourceDestinationBalanceMax:32,linkReferenceSizeMax:999,listItemValueSizeMax:10,numericBaseDecimal:10,numericBaseHexadecimal:16,tabSize:4,thematicBreakMarkerCountMin:3,v8MaxSafeChunkSize:1e4},p={data:"data",whitespace:"whitespace",lineEnding:"lineEnding",lineEndingBlank:"lineEndingBlank",linePrefix:"linePrefix",lineSuffix:"lineSuffix",atxHeading:"atxHeading",atxHeadingSequence:"atxHeadingSequence",atxHeadingText:"atxHeadingText",autolink:"autolink",autolinkEmail:"autolinkEmail",autolinkMarker:"autolinkMarker",autolinkProtocol:"autolinkProtocol",characterEscape:"characterEscape",characterEscapeValue:"characterEscapeValue",characterReference:"characterReference",characterReferenceMarker:"characterReferenceMarker",characterReferenceMarkerNumeric:"characterReferenceMarkerNumeric",characterReferenceMarkerHexadecimal:"characterReferenceMarkerHexadecimal",characterReferenceValue:"characterReferenceValue",codeFenced:"codeFenced",codeFencedFence:"codeFencedFence",codeFencedFenceSequence:"codeFencedFenceSequence",codeFencedFenceInfo:"codeFencedFenceInfo",codeFencedFenceMeta:"codeFencedFenceMeta",codeFlowValue:"codeFlowValue",codeIndented:"codeIndented",codeText:"codeText",codeTextData:"codeTextData",codeTextPadding:"codeTextPadding",codeTextSequence:"codeTextSequence",content:"content",definition:"definition",definitionDestination:"definitionDestination",definitionDestinationLiteral:"definitionDestinationLiteral",definitionDestinationLiteralMarker:"definitionDestinationLiteralMarker",definitionDestinationRaw:"definitionDestinationRaw",definitionDestinationString:"definitionDestinationString",definitionLabel:"definitionLabel",definitionLabelMarker:"definitionLabelMarker",definitionLabelString:"definitionLabelString",definitionMarker:"definitionMarker",definitionTitle:"definitionTitle",definitionTitleMarker:"definitionTitleMarker",definitionTitleString:"definitionTitleString",emphasis:"emphasis",emphasisSequence:"emphasisSequence",emphasisText:"emphasisText",escapeMarker:"escapeMarker",hardBreakEscape:"hardBreakEscape",hardBreakTrailing:"hardBreakTrailing",htmlFlow:"htmlFlow",htmlFlowData:"htmlFlowData",htmlText:"htmlText",htmlTextData:"htmlTextData",image:"image",label:"label",labelText:"labelText",labelLink:"labelLink",labelImage:"labelImage",labelMarker:"labelMarker",labelImageMarker:"labelImageMarker",labelEnd:"labelEnd",link:"link",paragraph:"paragraph",reference:"reference",referenceMarker:"referenceMarker",referenceString:"referenceString",resource:"resource",resourceDestination:"resourceDestination",resourceDestinationLiteral:"resourceDestinationLiteral",resourceDestinationLiteralMarker:"resourceDestinationLiteralMarker",resourceDestinationRaw:"resourceDestinationRaw",resourceDestinationString:"resourceDestinationString",resourceMarker:"resourceMarker",resourceTitle:"resourceTitle",resourceTitleMarker:"resourceTitleMarker",resourceTitleString:"resourceTitleString",setextHeading:"setextHeading",setextHeadingText:"setextHeadingText",setextHeadingLine:"setextHeadingLine",setextHeadingLineSequence:"setextHeadingLineSequence",strong:"strong",strongSequence:"strongSequence",strongText:"strongText",thematicBreak:"thematicBreak",thematicBreakSequence:"thematicBreakSequence",blockQuote:"blockQuote",blockQuotePrefix:"blockQuotePrefix",blockQuoteMarker:"blockQuoteMarker",blockQuotePrefixWhitespace:"blockQuotePrefixWhitespace",listOrdered:"listOrdered",listUnordered:"listUnordered",listItemIndent:"listItemIndent",listItemMarker:"listItemMarker",listItemPrefix:"listItemPrefix",listItemPrefixWhitespace:"listItemPrefixWhitespace",listItemValue:"listItemValue",chunkContent:"chunkContent",chunkFlow:"chunkFlow",chunkText:"chunkText",chunkString:"chunkString"},ce={ht:" ",lf:`
|
|
1
|
+
import{a5 as pe,a6 as qe,a7 as g,a8 as hn,a9 as jt,aa as Ke,ab as Ht,ac as $t,ad as Ni,ae as Fi,af as xe,ag as Vt,ah as Mi,ai as lt,aj as Wt,ak as Pi,al as _e,am as ve,an as Di,ao as Li,ap as yt,aq as mn,ar as Pt,as as Dt,at as rr,au as ir,av as Bi,aw as pt,ax as ar,ay as _i,az as vi,aA as rt,aB as Lt,aC as dn,aD as gn,aE as xn,aF as ze,aG as Oi,aH as qi,aI as Ri,aJ as Ui,aK as kn,aL as Qt,aM as yn,aN as Ee,aO as Ze,aP as or,aQ as sr,aR as ji,aS as Le}from"./vendor-Dm9xAZV8.js";import{k as bn}from"./katex-C5cjGaLm.js";const Hi=/[ \t\n\f\r]/g;function dt(e){return typeof e=="object"?e.type==="text"?Sn(e.value):!1:Sn(e)}function Sn(e){return e.replace(Hi,"")===""}const Gt={}.hasOwnProperty,$i=new Map,Vi=/[A-Z]/g,Wi=new Set(["table","tbody","thead","tfoot","tr"]),Qi=new Set(["td","th"]),lr="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function If(e,n){if(!n||n.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const t=n.filePath||void 0;let r;if(n.development){if(typeof n.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=ta(t,n.jsxDEV)}else{if(typeof n.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof n.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=ea(t,n.jsx,n.jsxs)}const a={Fragment:n.Fragment,ancestors:[],components:n.components||{},create:r,elementAttributeNameCase:n.elementAttributeNameCase||"react",evaluater:n.createEvaluater?n.createEvaluater():void 0,filePath:t,ignoreInvalidStyle:n.ignoreInvalidStyle||!1,passKeys:n.passKeys!==!1,passNode:n.passNode||!1,schema:n.space==="svg"?pe:qe,stylePropertyNameCase:n.stylePropertyNameCase||"dom",tableCellAlignToStyle:n.tableCellAlignToStyle!==!1},o=ur(a,e,void 0);return o&&typeof o!="string"?o:a.create(e,a.Fragment,{children:o||void 0},void 0)}function ur(e,n,t){if(n.type==="element")return Gi(e,n,t);if(n.type==="mdxFlowExpression"||n.type==="mdxTextExpression")return Xi(e,n);if(n.type==="mdxJsxFlowElement"||n.type==="mdxJsxTextElement")return Yi(e,n,t);if(n.type==="mdxjsEsm")return Ji(e,n);if(n.type==="root")return Ki(e,n,t);if(n.type==="text")return Zi(e,n)}function Gi(e,n,t){const r=e.schema;let a=r;n.tagName.toLowerCase()==="svg"&&r.space==="html"&&(a=pe,e.schema=a),e.ancestors.push(n);const o=pr(e,n.tagName,!1),i=na(e,n);let s=Jt(e,n);return Wi.has(n.tagName)&&(s=s.filter(function(l){return typeof l=="string"?!dt(l):!0})),cr(e,i,o,n),Xt(i,s),e.ancestors.pop(),e.schema=r,e.create(n,o,i,t)}function Xi(e,n){if(n.data&&n.data.estree&&e.evaluater){const r=n.data.estree.body[0];return g(r.type==="ExpressionStatement"),e.evaluater.evaluateExpression(r.expression)}Xe(e,n.position)}function Ji(e,n){if(n.data&&n.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(n.data.estree);Xe(e,n.position)}function Yi(e,n,t){const r=e.schema;let a=r;n.name==="svg"&&r.space==="html"&&(a=pe,e.schema=a),e.ancestors.push(n);const o=n.name===null?e.Fragment:pr(e,n.name,!0),i=ra(e,n),s=Jt(e,n);return cr(e,i,o,n),Xt(i,s),e.ancestors.pop(),e.schema=r,e.create(n,o,i,t)}function Ki(e,n,t){const r={};return Xt(r,Jt(e,n)),e.create(n,e.Fragment,r,t)}function Zi(e,n){return n.value}function cr(e,n,t,r){typeof t!="string"&&t!==e.Fragment&&e.passNode&&(n.node=r)}function Xt(e,n){if(n.length>0){const t=n.length>1?n:n[0];t&&(e.children=t)}}function ea(e,n,t){return r;function r(a,o,i,s){const c=Array.isArray(i.children)?t:n;return s?c(o,i,s):c(o,i)}}function ta(e,n){return t;function t(r,a,o,i){const s=Array.isArray(o.children),l=xe(r);return n(a,o,i,s,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}function na(e,n){const t={};let r,a;for(a in n.properties)if(a!=="children"&&Gt.call(n.properties,a)){const o=ia(e,a,n.properties[a]);if(o){const[i,s]=o;e.tableCellAlignToStyle&&i==="align"&&typeof s=="string"&&Qi.has(n.tagName)?r=s:t[i]=s}}if(r){const o=t.style||(t.style={});o[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return t}function ra(e,n){const t={};for(const r of n.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const o=r.data.estree.body[0];g(o.type==="ExpressionStatement");const i=o.expression;g(i.type==="ObjectExpression");const s=i.properties[0];g(s.type==="SpreadElement"),Object.assign(t,e.evaluater.evaluateExpression(s.argument))}else Xe(e,n.position);else{const a=r.name;let o;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const s=r.value.data.estree.body[0];g(s.type==="ExpressionStatement"),o=e.evaluater.evaluateExpression(s.expression)}else Xe(e,n.position);else o=r.value===null?!0:r.value;t[a]=o}return t}function Jt(e,n){const t=[];let r=-1;const a=e.passKeys?new Map:$i;for(;++r<n.children.length;){const o=n.children[r];let i;if(e.passKeys){const l=o.type==="element"?o.tagName:o.type==="mdxJsxFlowElement"||o.type==="mdxJsxTextElement"?o.name:void 0;if(l){const c=a.get(l)||0;i=l+"-"+c,a.set(l,c+1)}}const s=ur(e,o,i);s!==void 0&&t.push(s)}return t}function ia(e,n,t){const r=Ke(e.schema,n);if(!(t==null||typeof t=="number"&&Number.isNaN(t))){if(Array.isArray(t)&&(t=r.commaSeparated?Ht(t):$t(t)),r.property==="style"){let a=typeof t=="object"?t:aa(e,String(t));return e.stylePropertyNameCase==="css"&&(a=oa(a)),["style",a]}return[e.elementAttributeNameCase==="react"&&r.space?Ni[r.property]||r.property:r.attribute,t]}}function aa(e,n){try{return Fi(n,{reactCompat:!0})}catch(t){if(e.ignoreInvalidStyle)return{};const r=t,a=new jt("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw a.file=e.filePath||void 0,a.url=lr+"#cannot-parse-style-attribute",a}}function pr(e,n,t){let r;if(!t)r={type:"Literal",value:n};else if(n.includes(".")){const a=n.split(".");let o=-1,i;for(;++o<a.length;){const s=hn(a[o])?{type:"Identifier",name:a[o]}:{type:"Literal",value:a[o]};i=i?{type:"MemberExpression",object:i,property:s,computed:!!(o&&s.type==="Literal"),optional:!1}:s}g(i,"always a result"),r=i}else r=hn(n)&&!/^[a-z]/.test(n)?{type:"Identifier",name:n}:{type:"Literal",value:n};if(r.type==="Literal"){const a=r.value;return Gt.call(e.components,a)?e.components[a]:a}if(e.evaluater)return e.evaluater.evaluateExpression(r);Xe(e)}function Xe(e,n){const t=new jt("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:n,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw t.file=e.filePath||void 0,t.url=lr+"#cannot-handle-mdx-estrees-without-createevaluater",t}function oa(e){const n={};let t;for(t in e)Gt.call(e,t)&&(n[sa(t)]=e[t]);return n}function sa(e){let n=e.replace(Vi,la);return n.slice(0,3)==="ms-"&&(n="-"+n),n}function la(e){return"-"+e.toLowerCase()}const ua={};function Yt(e,n){const t=ua,r=typeof t.includeImageAlt=="boolean"?t.includeImageAlt:!0,a=typeof t.includeHtml=="boolean"?t.includeHtml:!0;return fr(e,r,a)}function fr(e,n,t){if(ca(e)){if("value"in e)return e.type==="html"&&!t?"":e.value;if(n&&"alt"in e&&e.alt)return e.alt;if("children"in e)return wn(e.children,n,t)}return Array.isArray(e)?wn(e,n,t):""}function wn(e,n,t){const r=[];let a=-1;for(;++a<e.length;)r[a]=fr(e[a],n,t);return r.join("")}function ca(e){return!!(e&&typeof e=="object")}const u={carriageReturn:-5,lineFeed:-4,carriageReturnLineFeed:-3,horizontalTab:-2,virtualSpace:-1,eof:null,nul:0,ht:9,lf:10,vt:11,cr:13,space:32,exclamationMark:33,quotationMark:34,numberSign:35,dollarSign:36,percentSign:37,ampersand:38,apostrophe:39,leftParenthesis:40,rightParenthesis:41,asterisk:42,plusSign:43,comma:44,dash:45,dot:46,slash:47,digit0:48,digit1:49,digit2:50,digit3:51,digit4:52,digit5:53,digit6:54,digit7:55,digit8:56,digit9:57,colon:58,semicolon:59,lessThan:60,equalsTo:61,greaterThan:62,questionMark:63,atSign:64,uppercaseA:65,uppercaseH:72,uppercaseW:87,uppercaseX:88,leftSquareBracket:91,backslash:92,rightSquareBracket:93,caret:94,underscore:95,graveAccent:96,lowercaseA:97,lowercaseH:104,lowercaseW:119,lowercaseX:120,leftCurlyBrace:123,verticalBar:124,tilde:126,del:127,byteOrderMarker:65279,replacementCharacter:65533},A={attentionSideAfter:2,atxHeadingOpeningFenceSizeMax:6,autolinkDomainSizeMax:63,autolinkSchemeSizeMax:32,cdataOpeningString:"CDATA[",characterGroupPunctuation:2,characterGroupWhitespace:1,characterReferenceDecimalSizeMax:7,characterReferenceHexadecimalSizeMax:6,characterReferenceNamedSizeMax:31,codeFencedSequenceSizeMin:3,contentTypeContent:"content",contentTypeFlow:"flow",contentTypeString:"string",contentTypeText:"text",hardBreakPrefixSizeMin:2,htmlBasic:6,htmlCdata:5,htmlComment:2,htmlComplete:7,htmlDeclaration:4,htmlInstruction:3,htmlRawSizeMax:8,htmlRaw:1,linkResourceDestinationBalanceMax:32,linkReferenceSizeMax:999,listItemValueSizeMax:10,numericBaseDecimal:10,numericBaseHexadecimal:16,tabSize:4,thematicBreakMarkerCountMin:3,v8MaxSafeChunkSize:1e4},p={data:"data",whitespace:"whitespace",lineEnding:"lineEnding",lineEndingBlank:"lineEndingBlank",linePrefix:"linePrefix",lineSuffix:"lineSuffix",atxHeading:"atxHeading",atxHeadingSequence:"atxHeadingSequence",atxHeadingText:"atxHeadingText",autolink:"autolink",autolinkEmail:"autolinkEmail",autolinkMarker:"autolinkMarker",autolinkProtocol:"autolinkProtocol",characterEscape:"characterEscape",characterEscapeValue:"characterEscapeValue",characterReference:"characterReference",characterReferenceMarker:"characterReferenceMarker",characterReferenceMarkerNumeric:"characterReferenceMarkerNumeric",characterReferenceMarkerHexadecimal:"characterReferenceMarkerHexadecimal",characterReferenceValue:"characterReferenceValue",codeFenced:"codeFenced",codeFencedFence:"codeFencedFence",codeFencedFenceSequence:"codeFencedFenceSequence",codeFencedFenceInfo:"codeFencedFenceInfo",codeFencedFenceMeta:"codeFencedFenceMeta",codeFlowValue:"codeFlowValue",codeIndented:"codeIndented",codeText:"codeText",codeTextData:"codeTextData",codeTextPadding:"codeTextPadding",codeTextSequence:"codeTextSequence",content:"content",definition:"definition",definitionDestination:"definitionDestination",definitionDestinationLiteral:"definitionDestinationLiteral",definitionDestinationLiteralMarker:"definitionDestinationLiteralMarker",definitionDestinationRaw:"definitionDestinationRaw",definitionDestinationString:"definitionDestinationString",definitionLabel:"definitionLabel",definitionLabelMarker:"definitionLabelMarker",definitionLabelString:"definitionLabelString",definitionMarker:"definitionMarker",definitionTitle:"definitionTitle",definitionTitleMarker:"definitionTitleMarker",definitionTitleString:"definitionTitleString",emphasis:"emphasis",emphasisSequence:"emphasisSequence",emphasisText:"emphasisText",escapeMarker:"escapeMarker",hardBreakEscape:"hardBreakEscape",hardBreakTrailing:"hardBreakTrailing",htmlFlow:"htmlFlow",htmlFlowData:"htmlFlowData",htmlText:"htmlText",htmlTextData:"htmlTextData",image:"image",label:"label",labelText:"labelText",labelLink:"labelLink",labelImage:"labelImage",labelMarker:"labelMarker",labelImageMarker:"labelImageMarker",labelEnd:"labelEnd",link:"link",paragraph:"paragraph",reference:"reference",referenceMarker:"referenceMarker",referenceString:"referenceString",resource:"resource",resourceDestination:"resourceDestination",resourceDestinationLiteral:"resourceDestinationLiteral",resourceDestinationLiteralMarker:"resourceDestinationLiteralMarker",resourceDestinationRaw:"resourceDestinationRaw",resourceDestinationString:"resourceDestinationString",resourceMarker:"resourceMarker",resourceTitle:"resourceTitle",resourceTitleMarker:"resourceTitleMarker",resourceTitleString:"resourceTitleString",setextHeading:"setextHeading",setextHeadingText:"setextHeadingText",setextHeadingLine:"setextHeadingLine",setextHeadingLineSequence:"setextHeadingLineSequence",strong:"strong",strongSequence:"strongSequence",strongText:"strongText",thematicBreak:"thematicBreak",thematicBreakSequence:"thematicBreakSequence",blockQuote:"blockQuote",blockQuotePrefix:"blockQuotePrefix",blockQuoteMarker:"blockQuoteMarker",blockQuotePrefixWhitespace:"blockQuotePrefixWhitespace",listOrdered:"listOrdered",listUnordered:"listUnordered",listItemIndent:"listItemIndent",listItemMarker:"listItemMarker",listItemPrefix:"listItemPrefix",listItemPrefixWhitespace:"listItemPrefixWhitespace",listItemValue:"listItemValue",chunkContent:"chunkContent",chunkFlow:"chunkFlow",chunkText:"chunkText",chunkString:"chunkString"},ce={ht:" ",lf:`
|
|
2
2
|
`,cr:"\r",space:" ",replacementCharacter:"�"};function K(e,n,t,r){const a=e.length;let o=0,i;if(n<0?n=-n>a?0:a+n:n=n>a?a:n,t=t>0?t:0,r.length<A.v8MaxSafeChunkSize)i=Array.from(r),i.unshift(n,t),e.splice(...i);else for(t&&e.splice(n,t);o<r.length;)i=r.slice(o,o+A.v8MaxSafeChunkSize),i.unshift(n,0),e.splice(...i),o+=A.v8MaxSafeChunkSize,n+=A.v8MaxSafeChunkSize}function Y(e,n){return e.length>0?(K(e,e.length,0,n),e):n}const Cn={}.hasOwnProperty;function hr(e){const n={};let t=-1;for(;++t<e.length;)pa(n,e[t]);return n}function pa(e,n){let t;for(t in n){const a=(Cn.call(e,t)?e[t]:void 0)||(e[t]={}),o=n[t];let i;if(o)for(i in o){Cn.call(a,i)||(a[i]=[]);const s=o[i];fa(a[i],Array.isArray(s)?s:s?[s]:[])}}}function fa(e,n){let t=-1;const r=[];for(;++t<n.length;)(n[t].add==="after"?e:r).push(n[t]);K(e,0,0,r)}function mr(e,n){const t=Number.parseInt(e,n);return t<u.ht||t===u.vt||t>u.cr&&t<u.space||t>u.tilde&&t<160||t>55295&&t<57344||t>64975&&t<65008||(t&65535)===65535||(t&65535)===65534||t>1114111?ce.replacementCharacter:String.fromCodePoint(t)}function le(e){return e.replace(/[\t\n\r ]+/g,ce.space).replace(/^ | $/g,"").toLowerCase().toUpperCase()}const ee=be(/[A-Za-z]/),Z=be(/[\dA-Za-z]/),ha=be(/[#-'*+\--9=?A-Z^-~]/);function ft(e){return e!==null&&(e<u.space||e===u.del)}const Bt=be(/\d/),ma=be(/[\dA-Fa-f]/),da=be(/[!-/:-@[-`{-~]/);function F(e){return e!==null&&e<u.horizontalTab}function V(e){return e!==null&&(e<u.nul||e===u.space)}function R(e){return e===u.horizontalTab||e===u.virtualSpace||e===u.space}const gt=be(new RegExp("\\p{P}|\\p{S}","u")),Ae=be(/\s/);function be(e){return n;function n(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}function Re(e){const n=[];let t=-1,r=0,a=0;for(;++t<e.length;){const o=e.charCodeAt(t);let i="";if(o===u.percentSign&&Z(e.charCodeAt(t+1))&&Z(e.charCodeAt(t+2)))a=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(i=String.fromCharCode(o));else if(o>55295&&o<57344){const s=e.charCodeAt(t+1);o<56320&&s>56319&&s<57344?(i=String.fromCharCode(o,s),a=1):i=ce.replacementCharacter}else i=String.fromCharCode(o);i&&(n.push(e.slice(r,t),encodeURIComponent(i)),r=t+a+1,i=""),a&&(t+=a,a=0)}return n.join("")+e.slice(r)}function U(e,n,t,r){const a=r?r-1:Number.POSITIVE_INFINITY;let o=0;return i;function i(l){return R(l)?(e.enter(t),s(l)):n(l)}function s(l){return R(l)&&o++<a?(e.consume(l),s):(e.exit(t),n(l))}}const ga={tokenize:xa};function xa(e){const n=e.attempt(this.parser.constructs.contentInitial,r,a);let t;return n;function r(s){if(g(s===u.eof||F(s),"expected eol or eof"),s===u.eof){e.consume(s);return}return e.enter(p.lineEnding),e.consume(s),e.exit(p.lineEnding),U(e,n,p.linePrefix)}function a(s){return g(s!==u.eof&&!F(s),"expected anything other than a line ending or EOF"),e.enter(p.paragraph),o(s)}function o(s){const l=e.enter(p.chunkText,{contentType:A.contentTypeText,previous:t});return t&&(t.next=l),t=l,i(s)}function i(s){if(s===u.eof){e.exit(p.chunkText),e.exit(p.paragraph),e.consume(s);return}return F(s)?(e.consume(s),e.exit(p.chunkText),o):(e.consume(s),i)}}const ka={tokenize:ya},Tn={tokenize:ba};function ya(e){const n=this,t=[];let r=0,a,o,i;return s;function s(N){if(r<t.length){const D=t[r];return n.containerState=D[1],g(D[0].continuation,"expected `continuation` to be defined on container construct"),e.attempt(D[0].continuation,l,c)(N)}return c(N)}function l(N){if(g(n.containerState,"expected `containerState` to be defined after continuation"),r++,n.containerState._closeFlow){n.containerState._closeFlow=void 0,a&&E();const D=n.events.length;let _=D,w;for(;_--;)if(n.events[_][0]==="exit"&&n.events[_][1].type===p.chunkFlow){w=n.events[_][1].end;break}g(w,"could not find previous flow chunk"),T(r);let v=D;for(;v<n.events.length;)n.events[v][1].end={...w},v++;return K(n.events,_+1,0,n.events.slice(D)),n.events.length=v,c(N)}return s(N)}function c(N){if(r===t.length){if(!a)return d(N);if(a.currentConstruct&&a.currentConstruct.concrete)return y(N);n.interrupt=!!(a.currentConstruct&&!a._gfmTableDynamicInterruptHack)}return n.containerState={},e.check(Tn,f,h)(N)}function f(N){return a&&E(),T(r),d(N)}function h(N){return n.parser.lazy[n.now().line]=r!==t.length,i=n.now().offset,y(N)}function d(N){return n.containerState={},e.attempt(Tn,m,y)(N)}function m(N){return g(n.currentConstruct,"expected `currentConstruct` to be defined on tokenizer"),g(n.containerState,"expected `containerState` to be defined on tokenizer"),r++,t.push([n.currentConstruct,n.containerState]),d(N)}function y(N){if(N===u.eof){a&&E(),T(0),e.consume(N);return}return a=a||n.parser.flow(n.now()),e.enter(p.chunkFlow,{_tokenizer:a,contentType:A.contentTypeFlow,previous:o}),z(N)}function z(N){if(N===u.eof){I(e.exit(p.chunkFlow),!0),T(0),e.consume(N);return}return F(N)?(e.consume(N),I(e.exit(p.chunkFlow)),r=0,n.interrupt=void 0,s):(e.consume(N),z)}function I(N,D){g(a,"expected `childFlow` to be defined when continuing");const _=n.sliceStream(N);if(D&&_.push(null),N.previous=o,o&&(o.next=N),o=N,a.defineSkip(N.start),a.write(_),n.parser.lazy[N.start.line]){let w=a.events.length;for(;w--;)if(a.events[w][1].start.offset<i&&(!a.events[w][1].end||a.events[w][1].end.offset>i))return;const v=n.events.length;let H=v,B,b;for(;H--;)if(n.events[H][0]==="exit"&&n.events[H][1].type===p.chunkFlow){if(B){b=n.events[H][1].end;break}B=!0}for(g(b,"could not find previous flow chunk"),T(r),w=v;w<n.events.length;)n.events[w][1].end={...b},w++;K(n.events,H+1,0,n.events.slice(v)),n.events.length=w}}function T(N){let D=t.length;for(;D-- >N;){const _=t[D];n.containerState=_[1],g(_[0].exit,"expected `exit` to be defined on container construct"),_[0].exit.call(n,e)}t.length=N}function E(){g(n.containerState,"expected `containerState` to be defined when closing flow"),g(a,"expected `childFlow` to be defined when closing it"),a.write([u.eof]),o=void 0,a=void 0,n.containerState._closeFlow=void 0}}function ba(e,n,t){return g(this.parser.constructs.disable.null,"expected `disable.null` to be populated"),U(e,e.attempt(this.parser.constructs.document,n,t),p.linePrefix,this.parser.constructs.disable.null.includes("codeIndented")?void 0:A.tabSize)}function Oe(e){if(e===u.eof||V(e)||Ae(e))return A.characterGroupWhitespace;if(gt(e))return A.characterGroupPunctuation}function Ue(e,n,t){const r=[];let a=-1;for(;++a<e.length;){const o=e[a].resolveAll;o&&!r.includes(o)&&(n=o(n,t),r.push(o))}return n}const _t={name:"attention",resolveAll:Sa,tokenize:wa};function Sa(e,n){let t=-1,r,a,o,i,s,l,c,f;for(;++t<e.length;)if(e[t][0]==="enter"&&e[t][1].type==="attentionSequence"&&e[t][1]._close){for(r=t;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&n.sliceSerialize(e[r][1]).charCodeAt(0)===n.sliceSerialize(e[t][1]).charCodeAt(0)){if((e[r][1]._close||e[t][1]._open)&&(e[t][1].end.offset-e[t][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[t][1].end.offset-e[t][1].start.offset)%3))continue;l=e[r][1].end.offset-e[r][1].start.offset>1&&e[t][1].end.offset-e[t][1].start.offset>1?2:1;const h={...e[r][1].end},d={...e[t][1].start};In(h,-l),In(d,l),i={type:l>1?p.strongSequence:p.emphasisSequence,start:h,end:{...e[r][1].end}},s={type:l>1?p.strongSequence:p.emphasisSequence,start:{...e[t][1].start},end:d},o={type:l>1?p.strongText:p.emphasisText,start:{...e[r][1].end},end:{...e[t][1].start}},a={type:l>1?p.strong:p.emphasis,start:{...i.start},end:{...s.end}},e[r][1].end={...i.start},e[t][1].start={...s.end},c=[],e[r][1].end.offset-e[r][1].start.offset&&(c=Y(c,[["enter",e[r][1],n],["exit",e[r][1],n]])),c=Y(c,[["enter",a,n],["enter",i,n],["exit",i,n],["enter",o,n]]),g(n.parser.constructs.insideSpan.null,"expected `insideSpan` to be populated"),c=Y(c,Ue(n.parser.constructs.insideSpan.null,e.slice(r+1,t),n)),c=Y(c,[["exit",o,n],["enter",s,n],["exit",s,n],["exit",a,n]]),e[t][1].end.offset-e[t][1].start.offset?(f=2,c=Y(c,[["enter",e[t][1],n],["exit",e[t][1],n]])):f=0,K(e,r-1,t-r+3,c),t=r+c.length-f-2;break}}for(t=-1;++t<e.length;)e[t][1].type==="attentionSequence"&&(e[t][1].type="data");return e}function wa(e,n){const t=this.parser.constructs.attentionMarkers.null,r=this.previous,a=Oe(r);let o;return i;function i(l){return g(l===u.asterisk||l===u.underscore,"expected asterisk or underscore"),o=l,e.enter("attentionSequence"),s(l)}function s(l){if(l===o)return e.consume(l),s;const c=e.exit("attentionSequence"),f=Oe(l);g(t,"expected `attentionMarkers` to be populated");const h=!f||f===A.characterGroupPunctuation&&a||t.includes(l),d=!a||a===A.characterGroupPunctuation&&f||t.includes(r);return c._open=!!(o===u.asterisk?h:h&&(a||!d)),c._close=!!(o===u.asterisk?d:d&&(f||!h)),n(l)}}function In(e,n){e.column+=n,e.offset+=n,e._bufferIndex+=n}const Ca={name:"autolink",tokenize:Ta};function Ta(e,n,t){let r=0;return a;function a(m){return g(m===u.lessThan,"expected `<`"),e.enter(p.autolink),e.enter(p.autolinkMarker),e.consume(m),e.exit(p.autolinkMarker),e.enter(p.autolinkProtocol),o}function o(m){return ee(m)?(e.consume(m),i):m===u.atSign?t(m):c(m)}function i(m){return m===u.plusSign||m===u.dash||m===u.dot||Z(m)?(r=1,s(m)):c(m)}function s(m){return m===u.colon?(e.consume(m),r=0,l):(m===u.plusSign||m===u.dash||m===u.dot||Z(m))&&r++<A.autolinkSchemeSizeMax?(e.consume(m),s):(r=0,c(m))}function l(m){return m===u.greaterThan?(e.exit(p.autolinkProtocol),e.enter(p.autolinkMarker),e.consume(m),e.exit(p.autolinkMarker),e.exit(p.autolink),n):m===u.eof||m===u.space||m===u.lessThan||ft(m)?t(m):(e.consume(m),l)}function c(m){return m===u.atSign?(e.consume(m),f):ha(m)?(e.consume(m),c):t(m)}function f(m){return Z(m)?h(m):t(m)}function h(m){return m===u.dot?(e.consume(m),r=0,f):m===u.greaterThan?(e.exit(p.autolinkProtocol).type=p.autolinkEmail,e.enter(p.autolinkMarker),e.consume(m),e.exit(p.autolinkMarker),e.exit(p.autolink),n):d(m)}function d(m){if((m===u.dash||Z(m))&&r++<A.autolinkDomainSizeMax){const y=m===u.dash?d:h;return e.consume(m),y}return t(m)}}const et={partial:!0,tokenize:Ia};function Ia(e,n,t){return r;function r(o){return R(o)?U(e,a,p.linePrefix)(o):a(o)}function a(o){return o===u.eof||F(o)?n(o):t(o)}}const dr={continuation:{tokenize:za},exit:Aa,name:"blockQuote",tokenize:Ea};function Ea(e,n,t){const r=this;return a;function a(i){if(i===u.greaterThan){const s=r.containerState;return g(s,"expected `containerState` to be defined in container"),s.open||(e.enter(p.blockQuote,{_container:!0}),s.open=!0),e.enter(p.blockQuotePrefix),e.enter(p.blockQuoteMarker),e.consume(i),e.exit(p.blockQuoteMarker),o}return t(i)}function o(i){return R(i)?(e.enter(p.blockQuotePrefixWhitespace),e.consume(i),e.exit(p.blockQuotePrefixWhitespace),e.exit(p.blockQuotePrefix),n):(e.exit(p.blockQuotePrefix),n(i))}}function za(e,n,t){const r=this;return a;function a(i){return R(i)?(g(r.parser.constructs.disable.null,"expected `disable.null` to be populated"),U(e,o,p.linePrefix,r.parser.constructs.disable.null.includes("codeIndented")?void 0:A.tabSize)(i)):o(i)}function o(i){return e.attempt(dr,n,t)(i)}}function Aa(e){e.exit(p.blockQuote)}const gr={name:"characterEscape",tokenize:Na};function Na(e,n,t){return r;function r(o){return g(o===u.backslash,"expected `\\`"),e.enter(p.characterEscape),e.enter(p.escapeMarker),e.consume(o),e.exit(p.escapeMarker),a}function a(o){return da(o)?(e.enter(p.characterEscapeValue),e.consume(o),e.exit(p.characterEscapeValue),e.exit(p.characterEscape),n):t(o)}}const xr={name:"characterReference",tokenize:Fa};function Fa(e,n,t){const r=this;let a=0,o,i;return s;function s(h){return g(h===u.ampersand,"expected `&`"),e.enter(p.characterReference),e.enter(p.characterReferenceMarker),e.consume(h),e.exit(p.characterReferenceMarker),l}function l(h){return h===u.numberSign?(e.enter(p.characterReferenceMarkerNumeric),e.consume(h),e.exit(p.characterReferenceMarkerNumeric),c):(e.enter(p.characterReferenceValue),o=A.characterReferenceNamedSizeMax,i=Z,f(h))}function c(h){return h===u.uppercaseX||h===u.lowercaseX?(e.enter(p.characterReferenceMarkerHexadecimal),e.consume(h),e.exit(p.characterReferenceMarkerHexadecimal),e.enter(p.characterReferenceValue),o=A.characterReferenceHexadecimalSizeMax,i=ma,f):(e.enter(p.characterReferenceValue),o=A.characterReferenceDecimalSizeMax,i=Bt,f(h))}function f(h){if(h===u.semicolon&&a){const d=e.exit(p.characterReferenceValue);return i===Z&&!Vt(r.sliceSerialize(d))?t(h):(e.enter(p.characterReferenceMarker),e.consume(h),e.exit(p.characterReferenceMarker),e.exit(p.characterReference),n)}return i(h)&&a++<o?(e.consume(h),f):t(h)}}const En={partial:!0,tokenize:Pa},zn={concrete:!0,name:"codeFenced",tokenize:Ma};function Ma(e,n,t){const r=this,a={partial:!0,tokenize:_};let o=0,i=0,s;return l;function l(w){return c(w)}function c(w){g(w===u.graveAccent||w===u.tilde,"expected `` ` `` or `~`");const v=r.events[r.events.length-1];return o=v&&v[1].type===p.linePrefix?v[2].sliceSerialize(v[1],!0).length:0,s=w,e.enter(p.codeFenced),e.enter(p.codeFencedFence),e.enter(p.codeFencedFenceSequence),f(w)}function f(w){return w===s?(i++,e.consume(w),f):i<A.codeFencedSequenceSizeMin?t(w):(e.exit(p.codeFencedFenceSequence),R(w)?U(e,h,p.whitespace)(w):h(w))}function h(w){return w===u.eof||F(w)?(e.exit(p.codeFencedFence),r.interrupt?n(w):e.check(En,z,D)(w)):(e.enter(p.codeFencedFenceInfo),e.enter(p.chunkString,{contentType:A.contentTypeString}),d(w))}function d(w){return w===u.eof||F(w)?(e.exit(p.chunkString),e.exit(p.codeFencedFenceInfo),h(w)):R(w)?(e.exit(p.chunkString),e.exit(p.codeFencedFenceInfo),U(e,m,p.whitespace)(w)):w===u.graveAccent&&w===s?t(w):(e.consume(w),d)}function m(w){return w===u.eof||F(w)?h(w):(e.enter(p.codeFencedFenceMeta),e.enter(p.chunkString,{contentType:A.contentTypeString}),y(w))}function y(w){return w===u.eof||F(w)?(e.exit(p.chunkString),e.exit(p.codeFencedFenceMeta),h(w)):w===u.graveAccent&&w===s?t(w):(e.consume(w),y)}function z(w){return g(F(w),"expected eol"),e.attempt(a,D,I)(w)}function I(w){return g(F(w),"expected eol"),e.enter(p.lineEnding),e.consume(w),e.exit(p.lineEnding),T}function T(w){return o>0&&R(w)?U(e,E,p.linePrefix,o+1)(w):E(w)}function E(w){return w===u.eof||F(w)?e.check(En,z,D)(w):(e.enter(p.codeFlowValue),N(w))}function N(w){return w===u.eof||F(w)?(e.exit(p.codeFlowValue),E(w)):(e.consume(w),N)}function D(w){return e.exit(p.codeFenced),n(w)}function _(w,v,H){let B=0;return b;function b(O){return g(F(O),"expected eol"),w.enter(p.lineEnding),w.consume(O),w.exit(p.lineEnding),Q}function Q(O){return g(r.parser.constructs.disable.null,"expected `disable.null` to be populated"),w.enter(p.codeFencedFence),R(O)?U(w,j,p.linePrefix,r.parser.constructs.disable.null.includes("codeIndented")?void 0:A.tabSize)(O):j(O)}function j(O){return O===s?(w.enter(p.codeFencedFenceSequence),M(O)):H(O)}function M(O){return O===s?(B++,w.consume(O),M):B>=i?(w.exit(p.codeFencedFenceSequence),R(O)?U(w,L,p.whitespace)(O):L(O)):H(O)}function L(O){return O===u.eof||F(O)?(w.exit(p.codeFencedFence),v(O)):H(O)}}}function Pa(e,n,t){const r=this;return a;function a(i){return i===u.eof?t(i):(g(F(i),"expected eol"),e.enter(p.lineEnding),e.consume(i),e.exit(p.lineEnding),o)}function o(i){return r.parser.lazy[r.now().line]?t(i):n(i)}}const bt={name:"codeIndented",tokenize:La},Da={partial:!0,tokenize:Ba};function La(e,n,t){const r=this;return a;function a(c){return g(R(c)),e.enter(p.codeIndented),U(e,o,p.linePrefix,A.tabSize+1)(c)}function o(c){const f=r.events[r.events.length-1];return f&&f[1].type===p.linePrefix&&f[2].sliceSerialize(f[1],!0).length>=A.tabSize?i(c):t(c)}function i(c){return c===u.eof?l(c):F(c)?e.attempt(Da,i,l)(c):(e.enter(p.codeFlowValue),s(c))}function s(c){return c===u.eof||F(c)?(e.exit(p.codeFlowValue),i(c)):(e.consume(c),s)}function l(c){return e.exit(p.codeIndented),n(c)}}function Ba(e,n,t){const r=this;return a;function a(i){return r.parser.lazy[r.now().line]?t(i):F(i)?(e.enter(p.lineEnding),e.consume(i),e.exit(p.lineEnding),a):U(e,o,p.linePrefix,A.tabSize+1)(i)}function o(i){const s=r.events[r.events.length-1];return s&&s[1].type===p.linePrefix&&s[2].sliceSerialize(s[1],!0).length>=A.tabSize?n(i):F(i)?a(i):t(i)}}const _a={name:"codeText",previous:kr,resolve:va,tokenize:Oa};function va(e){let n=e.length-4,t=3,r,a;if((e[t][1].type===p.lineEnding||e[t][1].type==="space")&&(e[n][1].type===p.lineEnding||e[n][1].type==="space")){for(r=t;++r<n;)if(e[r][1].type===p.codeTextData){e[t][1].type=p.codeTextPadding,e[n][1].type=p.codeTextPadding,t+=2,n-=2;break}}for(r=t-1,n++;++r<=n;)a===void 0?r!==n&&e[r][1].type!==p.lineEnding&&(a=r):(r===n||e[r][1].type===p.lineEnding)&&(e[a][1].type=p.codeTextData,r!==a+2&&(e[a][1].end=e[r-1][1].end,e.splice(a+2,r-a-2),n-=r-a-2,r=a+2),a=void 0);return e}function kr(e){return e!==u.graveAccent||this.events[this.events.length-1][1].type===p.characterEscape}function Oa(e,n,t){const r=this;let a=0,o,i;return s;function s(d){return g(d===u.graveAccent,"expected `` ` ``"),g(kr.call(r,r.previous),"expected correct previous"),e.enter(p.codeText),e.enter(p.codeTextSequence),l(d)}function l(d){return d===u.graveAccent?(e.consume(d),a++,l):(e.exit(p.codeTextSequence),c(d))}function c(d){return d===u.eof?t(d):d===u.space?(e.enter("space"),e.consume(d),e.exit("space"),c):d===u.graveAccent?(i=e.enter(p.codeTextSequence),o=0,h(d)):F(d)?(e.enter(p.lineEnding),e.consume(d),e.exit(p.lineEnding),c):(e.enter(p.codeTextData),f(d))}function f(d){return d===u.eof||d===u.space||d===u.graveAccent||F(d)?(e.exit(p.codeTextData),c(d)):(e.consume(d),f)}function h(d){return d===u.graveAccent?(e.consume(d),o++,h):o===a?(e.exit(p.codeTextSequence),e.exit(p.codeText),n(d)):(i.type=p.codeTextData,f(d))}}class qa{constructor(n){this.left=n?[...n]:[],this.right=[]}get(n){if(n<0||n>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+n+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return n<this.left.length?this.left[n]:this.right[this.right.length-n+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(n,t){const r=t??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(n,r):n>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-n+this.left.length).reverse():this.left.slice(n).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(n,t,r){const a=t||0;this.setCursor(Math.trunc(n));const o=this.right.splice(this.right.length-a,Number.POSITIVE_INFINITY);return r&&Qe(this.left,r),o.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(n){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(n)}pushMany(n){this.setCursor(Number.POSITIVE_INFINITY),Qe(this.left,n)}unshift(n){this.setCursor(0),this.right.push(n)}unshiftMany(n){this.setCursor(0),Qe(this.right,n.reverse())}setCursor(n){if(!(n===this.left.length||n>this.left.length&&this.right.length===0||n<0&&this.left.length===0))if(n<this.left.length){const t=this.left.splice(n,Number.POSITIVE_INFINITY);Qe(this.right,t.reverse())}else{const t=this.right.splice(this.left.length+this.right.length-n,Number.POSITIVE_INFINITY);Qe(this.left,t.reverse())}}}function Qe(e,n){let t=0;if(n.length<A.v8MaxSafeChunkSize)e.push(...n);else for(;t<n.length;)e.push(...n.slice(t,t+A.v8MaxSafeChunkSize)),t+=A.v8MaxSafeChunkSize}function yr(e){const n={};let t=-1,r,a,o,i,s,l,c;const f=new qa(e);for(;++t<f.length;){for(;t in n;)t=n[t];if(r=f.get(t),t&&r[1].type===p.chunkFlow&&f.get(t-1)[1].type===p.listItemPrefix&&(g(r[1]._tokenizer,"expected `_tokenizer` on subtokens"),l=r[1]._tokenizer.events,o=0,o<l.length&&l[o][1].type===p.lineEndingBlank&&(o+=2),o<l.length&&l[o][1].type===p.content))for(;++o<l.length&&l[o][1].type!==p.content;)l[o][1].type===p.chunkText&&(l[o][1]._isInFirstContentOfListItem=!0,o++);if(r[0]==="enter")r[1].contentType&&(Object.assign(n,Ra(f,t)),t=n[t],c=!0);else if(r[1]._container){for(o=t,a=void 0;o--;)if(i=f.get(o),i[1].type===p.lineEnding||i[1].type===p.lineEndingBlank)i[0]==="enter"&&(a&&(f.get(a)[1].type=p.lineEndingBlank),i[1].type=p.lineEnding,a=o);else if(!(i[1].type===p.linePrefix||i[1].type===p.listItemIndent))break;a&&(r[1].end={...f.get(a)[1].start},s=f.slice(a,t),s.unshift(r),f.splice(a,t-a+1,s))}}return K(e,0,Number.POSITIVE_INFINITY,f.slice(0)),!c}function Ra(e,n){const t=e.get(n)[1],r=e.get(n)[2];let a=n-1;const o=[];g(t.contentType,"expected `contentType` on subtokens");let i=t._tokenizer;i||(i=r.parser[t.contentType](t.start),t._contentTypeTextTrailing&&(i._contentTypeTextTrailing=!0));const s=i.events,l=[],c={};let f,h,d=-1,m=t,y=0,z=0;const I=[z];for(;m;){for(;e.get(++a)[1]!==m;);g(!h||m.previous===h,"expected previous to match"),g(!h||h.next===m,"expected next to match"),o.push(a),m._tokenizer||(f=r.sliceStream(m),m.next||f.push(u.eof),h&&i.defineSkip(m.start),m._isInFirstContentOfListItem&&(i._gfmTasklistFirstContentOfListItem=!0),i.write(f),m._isInFirstContentOfListItem&&(i._gfmTasklistFirstContentOfListItem=void 0)),h=m,m=m.next}for(m=t;++d<s.length;)s[d][0]==="exit"&&s[d-1][0]==="enter"&&s[d][1].type===s[d-1][1].type&&s[d][1].start.line!==s[d][1].end.line&&(g(m,"expected a current token"),z=d+1,I.push(z),m._tokenizer=void 0,m.previous=void 0,m=m.next);for(i.events=[],m?(m._tokenizer=void 0,m.previous=void 0,g(!m.next,"expected no next token")):I.pop(),d=I.length;d--;){const T=s.slice(I[d],I[d+1]),E=o.pop();g(E!==void 0,"expected a start position when splicing"),l.push([E,E+T.length-1]),e.splice(E,2,T)}for(l.reverse(),d=-1;++d<l.length;)c[y+l[d][0]]=y+l[d][1],y+=l[d][1]-l[d][0]-1;return c}const Ua={resolve:Ha,tokenize:$a},ja={partial:!0,tokenize:Va};function Ha(e){return yr(e),e}function $a(e,n){let t;return r;function r(s){return g(s!==u.eof&&!F(s),"expected no eof or eol"),e.enter(p.content),t=e.enter(p.chunkContent,{contentType:A.contentTypeContent}),a(s)}function a(s){return s===u.eof?o(s):F(s)?e.check(ja,i,o)(s):(e.consume(s),a)}function o(s){return e.exit(p.chunkContent),e.exit(p.content),n(s)}function i(s){return g(F(s),"expected eol"),e.consume(s),e.exit(p.chunkContent),g(t,"expected previous token"),t.next=e.enter(p.chunkContent,{contentType:A.contentTypeContent,previous:t}),t=t.next,a}}function Va(e,n,t){const r=this;return a;function a(i){return g(F(i),"expected a line ending"),e.exit(p.chunkContent),e.enter(p.lineEnding),e.consume(i),e.exit(p.lineEnding),U(e,o,p.linePrefix)}function o(i){if(i===u.eof||F(i))return t(i);g(r.parser.constructs.disable.null,"expected `disable.null` to be populated");const s=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&s&&s[1].type===p.linePrefix&&s[2].sliceSerialize(s[1],!0).length>=A.tabSize?n(i):e.interrupt(r.parser.constructs.flow,t,n)(i)}}function br(e,n,t,r,a,o,i,s,l){const c=l||Number.POSITIVE_INFINITY;let f=0;return h;function h(T){return T===u.lessThan?(e.enter(r),e.enter(a),e.enter(o),e.consume(T),e.exit(o),d):T===u.eof||T===u.space||T===u.rightParenthesis||ft(T)?t(T):(e.enter(r),e.enter(i),e.enter(s),e.enter(p.chunkString,{contentType:A.contentTypeString}),z(T))}function d(T){return T===u.greaterThan?(e.enter(o),e.consume(T),e.exit(o),e.exit(a),e.exit(r),n):(e.enter(s),e.enter(p.chunkString,{contentType:A.contentTypeString}),m(T))}function m(T){return T===u.greaterThan?(e.exit(p.chunkString),e.exit(s),d(T)):T===u.eof||T===u.lessThan||F(T)?t(T):(e.consume(T),T===u.backslash?y:m)}function y(T){return T===u.lessThan||T===u.greaterThan||T===u.backslash?(e.consume(T),m):m(T)}function z(T){return!f&&(T===u.eof||T===u.rightParenthesis||V(T))?(e.exit(p.chunkString),e.exit(s),e.exit(i),e.exit(r),n(T)):f<c&&T===u.leftParenthesis?(e.consume(T),f++,z):T===u.rightParenthesis?(e.consume(T),f--,z):T===u.eof||T===u.space||T===u.leftParenthesis||ft(T)?t(T):(e.consume(T),T===u.backslash?I:z)}function I(T){return T===u.leftParenthesis||T===u.rightParenthesis||T===u.backslash?(e.consume(T),z):z(T)}}function Sr(e,n,t,r,a,o){const i=this;let s=0,l;return c;function c(m){return g(m===u.leftSquareBracket,"expected `[`"),e.enter(r),e.enter(a),e.consume(m),e.exit(a),e.enter(o),f}function f(m){return s>A.linkReferenceSizeMax||m===u.eof||m===u.leftSquareBracket||m===u.rightSquareBracket&&!l||m===u.caret&&!s&&"_hiddenFootnoteSupport"in i.parser.constructs?t(m):m===u.rightSquareBracket?(e.exit(o),e.enter(a),e.consume(m),e.exit(a),e.exit(r),n):F(m)?(e.enter(p.lineEnding),e.consume(m),e.exit(p.lineEnding),f):(e.enter(p.chunkString,{contentType:A.contentTypeString}),h(m))}function h(m){return m===u.eof||m===u.leftSquareBracket||m===u.rightSquareBracket||F(m)||s++>A.linkReferenceSizeMax?(e.exit(p.chunkString),f(m)):(e.consume(m),l||(l=!R(m)),m===u.backslash?d:h)}function d(m){return m===u.leftSquareBracket||m===u.backslash||m===u.rightSquareBracket?(e.consume(m),s++,h):h(m)}}function wr(e,n,t,r,a,o){let i;return s;function s(d){return d===u.quotationMark||d===u.apostrophe||d===u.leftParenthesis?(e.enter(r),e.enter(a),e.consume(d),e.exit(a),i=d===u.leftParenthesis?u.rightParenthesis:d,l):t(d)}function l(d){return d===i?(e.enter(a),e.consume(d),e.exit(a),e.exit(r),n):(e.enter(o),c(d))}function c(d){return d===i?(e.exit(o),l(i)):d===u.eof?t(d):F(d)?(e.enter(p.lineEnding),e.consume(d),e.exit(p.lineEnding),U(e,c,p.linePrefix)):(e.enter(p.chunkString,{contentType:A.contentTypeString}),f(d))}function f(d){return d===i||d===u.eof||F(d)?(e.exit(p.chunkString),c(d)):(e.consume(d),d===u.backslash?h:f)}function h(d){return d===i||d===u.backslash?(e.consume(d),f):f(d)}}function Ge(e,n){let t;return r;function r(a){return F(a)?(e.enter(p.lineEnding),e.consume(a),e.exit(p.lineEnding),t=!0,r):R(a)?U(e,r,t?p.linePrefix:p.lineSuffix)(a):n(a)}}const Wa={name:"definition",tokenize:Ga},Qa={partial:!0,tokenize:Xa};function Ga(e,n,t){const r=this;let a;return o;function o(m){return e.enter(p.definition),i(m)}function i(m){return g(m===u.leftSquareBracket,"expected `[`"),Sr.call(r,e,s,t,p.definitionLabel,p.definitionLabelMarker,p.definitionLabelString)(m)}function s(m){return a=le(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),m===u.colon?(e.enter(p.definitionMarker),e.consume(m),e.exit(p.definitionMarker),l):t(m)}function l(m){return V(m)?Ge(e,c)(m):c(m)}function c(m){return br(e,f,t,p.definitionDestination,p.definitionDestinationLiteral,p.definitionDestinationLiteralMarker,p.definitionDestinationRaw,p.definitionDestinationString)(m)}function f(m){return e.attempt(Qa,h,h)(m)}function h(m){return R(m)?U(e,d,p.whitespace)(m):d(m)}function d(m){return m===u.eof||F(m)?(e.exit(p.definition),r.parser.defined.push(a),n(m)):t(m)}}function Xa(e,n,t){return r;function r(s){return V(s)?Ge(e,a)(s):t(s)}function a(s){return wr(e,o,t,p.definitionTitle,p.definitionTitleMarker,p.definitionTitleString)(s)}function o(s){return R(s)?U(e,i,p.whitespace)(s):i(s)}function i(s){return s===u.eof||F(s)?n(s):t(s)}}const Ja={name:"hardBreakEscape",tokenize:Ya};function Ya(e,n,t){return r;function r(o){return g(o===u.backslash,"expected `\\`"),e.enter(p.hardBreakEscape),e.consume(o),a}function a(o){return F(o)?(e.exit(p.hardBreakEscape),n(o)):t(o)}}const Ka={name:"headingAtx",resolve:Za,tokenize:eo};function Za(e,n){let t=e.length-2,r=3,a,o;return e[r][1].type===p.whitespace&&(r+=2),t-2>r&&e[t][1].type===p.whitespace&&(t-=2),e[t][1].type===p.atxHeadingSequence&&(r===t-1||t-4>r&&e[t-2][1].type===p.whitespace)&&(t-=r+1===t?2:4),t>r&&(a={type:p.atxHeadingText,start:e[r][1].start,end:e[t][1].end},o={type:p.chunkText,start:e[r][1].start,end:e[t][1].end,contentType:A.contentTypeText},K(e,r,t-r+1,[["enter",a,n],["enter",o,n],["exit",o,n],["exit",a,n]])),e}function eo(e,n,t){let r=0;return a;function a(f){return e.enter(p.atxHeading),o(f)}function o(f){return g(f===u.numberSign,"expected `#`"),e.enter(p.atxHeadingSequence),i(f)}function i(f){return f===u.numberSign&&r++<A.atxHeadingOpeningFenceSizeMax?(e.consume(f),i):f===u.eof||V(f)?(e.exit(p.atxHeadingSequence),s(f)):t(f)}function s(f){return f===u.numberSign?(e.enter(p.atxHeadingSequence),l(f)):f===u.eof||F(f)?(e.exit(p.atxHeading),n(f)):R(f)?U(e,s,p.whitespace)(f):(e.enter(p.atxHeadingText),c(f))}function l(f){return f===u.numberSign?(e.consume(f),l):(e.exit(p.atxHeadingSequence),s(f))}function c(f){return f===u.eof||f===u.numberSign||V(f)?(e.exit(p.atxHeadingText),s(f)):(e.consume(f),c)}}const to=["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"],An=["pre","script","style","textarea"],no={concrete:!0,name:"htmlFlow",resolveTo:ao,tokenize:oo},ro={partial:!0,tokenize:lo},io={partial:!0,tokenize:so};function ao(e){let n=e.length;for(;n--&&!(e[n][0]==="enter"&&e[n][1].type===p.htmlFlow););return n>1&&e[n-2][1].type===p.linePrefix&&(e[n][1].start=e[n-2][1].start,e[n+1][1].start=e[n-2][1].start,e.splice(n-2,2)),e}function oo(e,n,t){const r=this;let a,o,i,s,l;return c;function c(k){return f(k)}function f(k){return g(k===u.lessThan,"expected `<`"),e.enter(p.htmlFlow),e.enter(p.htmlFlowData),e.consume(k),h}function h(k){return k===u.exclamationMark?(e.consume(k),d):k===u.slash?(e.consume(k),o=!0,z):k===u.questionMark?(e.consume(k),a=A.htmlInstruction,r.interrupt?n:x):ee(k)?(g(k!==null),e.consume(k),i=String.fromCharCode(k),I):t(k)}function d(k){return k===u.dash?(e.consume(k),a=A.htmlComment,m):k===u.leftSquareBracket?(e.consume(k),a=A.htmlCdata,s=0,y):ee(k)?(e.consume(k),a=A.htmlDeclaration,r.interrupt?n:x):t(k)}function m(k){return k===u.dash?(e.consume(k),r.interrupt?n:x):t(k)}function y(k){const re=A.cdataOpeningString;return k===re.charCodeAt(s++)?(e.consume(k),s===re.length?r.interrupt?n:j:y):t(k)}function z(k){return ee(k)?(g(k!==null),e.consume(k),i=String.fromCharCode(k),I):t(k)}function I(k){if(k===u.eof||k===u.slash||k===u.greaterThan||V(k)){const re=k===u.slash,Se=i.toLowerCase();return!re&&!o&&An.includes(Se)?(a=A.htmlRaw,r.interrupt?n(k):j(k)):to.includes(i.toLowerCase())?(a=A.htmlBasic,re?(e.consume(k),T):r.interrupt?n(k):j(k)):(a=A.htmlComplete,r.interrupt&&!r.parser.lazy[r.now().line]?t(k):o?E(k):N(k))}return k===u.dash||Z(k)?(e.consume(k),i+=String.fromCharCode(k),I):t(k)}function T(k){return k===u.greaterThan?(e.consume(k),r.interrupt?n:j):t(k)}function E(k){return R(k)?(e.consume(k),E):b(k)}function N(k){return k===u.slash?(e.consume(k),b):k===u.colon||k===u.underscore||ee(k)?(e.consume(k),D):R(k)?(e.consume(k),N):b(k)}function D(k){return k===u.dash||k===u.dot||k===u.colon||k===u.underscore||Z(k)?(e.consume(k),D):_(k)}function _(k){return k===u.equalsTo?(e.consume(k),w):R(k)?(e.consume(k),_):N(k)}function w(k){return k===u.eof||k===u.lessThan||k===u.equalsTo||k===u.greaterThan||k===u.graveAccent?t(k):k===u.quotationMark||k===u.apostrophe?(e.consume(k),l=k,v):R(k)?(e.consume(k),w):H(k)}function v(k){return k===l?(e.consume(k),l=null,B):k===u.eof||F(k)?t(k):(e.consume(k),v)}function H(k){return k===u.eof||k===u.quotationMark||k===u.apostrophe||k===u.slash||k===u.lessThan||k===u.equalsTo||k===u.greaterThan||k===u.graveAccent||V(k)?_(k):(e.consume(k),H)}function B(k){return k===u.slash||k===u.greaterThan||R(k)?N(k):t(k)}function b(k){return k===u.greaterThan?(e.consume(k),Q):t(k)}function Q(k){return k===u.eof||F(k)?j(k):R(k)?(e.consume(k),Q):t(k)}function j(k){return k===u.dash&&a===A.htmlComment?(e.consume(k),W):k===u.lessThan&&a===A.htmlRaw?(e.consume(k),G):k===u.greaterThan&&a===A.htmlDeclaration?(e.consume(k),se):k===u.questionMark&&a===A.htmlInstruction?(e.consume(k),x):k===u.rightSquareBracket&&a===A.htmlCdata?(e.consume(k),ue):F(k)&&(a===A.htmlBasic||a===A.htmlComplete)?(e.exit(p.htmlFlowData),e.check(ro,he,M)(k)):k===u.eof||F(k)?(e.exit(p.htmlFlowData),M(k)):(e.consume(k),j)}function M(k){return e.check(io,L,he)(k)}function L(k){return g(F(k)),e.enter(p.lineEnding),e.consume(k),e.exit(p.lineEnding),O}function O(k){return k===u.eof||F(k)?M(k):(e.enter(p.htmlFlowData),j(k))}function W(k){return k===u.dash?(e.consume(k),x):j(k)}function G(k){return k===u.slash?(e.consume(k),i="",oe):j(k)}function oe(k){if(k===u.greaterThan){const re=i.toLowerCase();return An.includes(re)?(e.consume(k),se):j(k)}return ee(k)&&i.length<A.htmlRawSizeMax?(g(k!==null),e.consume(k),i+=String.fromCharCode(k),oe):j(k)}function ue(k){return k===u.rightSquareBracket?(e.consume(k),x):j(k)}function x(k){return k===u.greaterThan?(e.consume(k),se):k===u.dash&&a===A.htmlComment?(e.consume(k),x):j(k)}function se(k){return k===u.eof||F(k)?(e.exit(p.htmlFlowData),he(k)):(e.consume(k),se)}function he(k){return e.exit(p.htmlFlow),n(k)}}function so(e,n,t){const r=this;return a;function a(i){return F(i)?(e.enter(p.lineEnding),e.consume(i),e.exit(p.lineEnding),o):t(i)}function o(i){return r.parser.lazy[r.now().line]?t(i):n(i)}}function lo(e,n,t){return r;function r(a){return g(F(a),"expected a line ending"),e.enter(p.lineEnding),e.consume(a),e.exit(p.lineEnding),e.attempt(et,n,t)}}const uo={name:"htmlText",tokenize:co};function co(e,n,t){const r=this;let a,o,i;return s;function s(x){return g(x===u.lessThan,"expected `<`"),e.enter(p.htmlText),e.enter(p.htmlTextData),e.consume(x),l}function l(x){return x===u.exclamationMark?(e.consume(x),c):x===u.slash?(e.consume(x),_):x===u.questionMark?(e.consume(x),N):ee(x)?(e.consume(x),H):t(x)}function c(x){return x===u.dash?(e.consume(x),f):x===u.leftSquareBracket?(e.consume(x),o=0,y):ee(x)?(e.consume(x),E):t(x)}function f(x){return x===u.dash?(e.consume(x),m):t(x)}function h(x){return x===u.eof?t(x):x===u.dash?(e.consume(x),d):F(x)?(i=h,G(x)):(e.consume(x),h)}function d(x){return x===u.dash?(e.consume(x),m):h(x)}function m(x){return x===u.greaterThan?W(x):x===u.dash?d(x):h(x)}function y(x){const se=A.cdataOpeningString;return x===se.charCodeAt(o++)?(e.consume(x),o===se.length?z:y):t(x)}function z(x){return x===u.eof?t(x):x===u.rightSquareBracket?(e.consume(x),I):F(x)?(i=z,G(x)):(e.consume(x),z)}function I(x){return x===u.rightSquareBracket?(e.consume(x),T):z(x)}function T(x){return x===u.greaterThan?W(x):x===u.rightSquareBracket?(e.consume(x),T):z(x)}function E(x){return x===u.eof||x===u.greaterThan?W(x):F(x)?(i=E,G(x)):(e.consume(x),E)}function N(x){return x===u.eof?t(x):x===u.questionMark?(e.consume(x),D):F(x)?(i=N,G(x)):(e.consume(x),N)}function D(x){return x===u.greaterThan?W(x):N(x)}function _(x){return ee(x)?(e.consume(x),w):t(x)}function w(x){return x===u.dash||Z(x)?(e.consume(x),w):v(x)}function v(x){return F(x)?(i=v,G(x)):R(x)?(e.consume(x),v):W(x)}function H(x){return x===u.dash||Z(x)?(e.consume(x),H):x===u.slash||x===u.greaterThan||V(x)?B(x):t(x)}function B(x){return x===u.slash?(e.consume(x),W):x===u.colon||x===u.underscore||ee(x)?(e.consume(x),b):F(x)?(i=B,G(x)):R(x)?(e.consume(x),B):W(x)}function b(x){return x===u.dash||x===u.dot||x===u.colon||x===u.underscore||Z(x)?(e.consume(x),b):Q(x)}function Q(x){return x===u.equalsTo?(e.consume(x),j):F(x)?(i=Q,G(x)):R(x)?(e.consume(x),Q):B(x)}function j(x){return x===u.eof||x===u.lessThan||x===u.equalsTo||x===u.greaterThan||x===u.graveAccent?t(x):x===u.quotationMark||x===u.apostrophe?(e.consume(x),a=x,M):F(x)?(i=j,G(x)):R(x)?(e.consume(x),j):(e.consume(x),L)}function M(x){return x===a?(e.consume(x),a=void 0,O):x===u.eof?t(x):F(x)?(i=M,G(x)):(e.consume(x),M)}function L(x){return x===u.eof||x===u.quotationMark||x===u.apostrophe||x===u.lessThan||x===u.equalsTo||x===u.graveAccent?t(x):x===u.slash||x===u.greaterThan||V(x)?B(x):(e.consume(x),L)}function O(x){return x===u.slash||x===u.greaterThan||V(x)?B(x):t(x)}function W(x){return x===u.greaterThan?(e.consume(x),e.exit(p.htmlTextData),e.exit(p.htmlText),n):t(x)}function G(x){return g(i,"expected return state"),g(F(x),"expected eol"),e.exit(p.htmlTextData),e.enter(p.lineEnding),e.consume(x),e.exit(p.lineEnding),oe}function oe(x){return g(r.parser.constructs.disable.null,"expected `disable.null` to be populated"),R(x)?U(e,ue,p.linePrefix,r.parser.constructs.disable.null.includes("codeIndented")?void 0:A.tabSize)(x):ue(x)}function ue(x){return e.enter(p.htmlTextData),i(x)}}const Kt={name:"labelEnd",resolveAll:mo,resolveTo:go,tokenize:xo},po={tokenize:ko},fo={tokenize:yo},ho={tokenize:bo};function mo(e){let n=-1;const t=[];for(;++n<e.length;){const r=e[n][1];if(t.push(e[n]),r.type===p.labelImage||r.type===p.labelLink||r.type===p.labelEnd){const a=r.type===p.labelImage?4:2;r.type=p.data,n+=a}}return e.length!==t.length&&K(e,0,e.length,t),e}function go(e,n){let t=e.length,r=0,a,o,i,s;for(;t--;)if(a=e[t][1],o){if(a.type===p.link||a.type===p.labelLink&&a._inactive)break;e[t][0]==="enter"&&a.type===p.labelLink&&(a._inactive=!0)}else if(i){if(e[t][0]==="enter"&&(a.type===p.labelImage||a.type===p.labelLink)&&!a._balanced&&(o=t,a.type!==p.labelLink)){r=2;break}}else a.type===p.labelEnd&&(i=t);g(o!==void 0,"`open` is supposed to be found"),g(i!==void 0,"`close` is supposed to be found");const l={type:e[o][1].type===p.labelLink?p.link:p.image,start:{...e[o][1].start},end:{...e[e.length-1][1].end}},c={type:p.label,start:{...e[o][1].start},end:{...e[i][1].end}},f={type:p.labelText,start:{...e[o+r+2][1].end},end:{...e[i-2][1].start}};return s=[["enter",l,n],["enter",c,n]],s=Y(s,e.slice(o+1,o+r+3)),s=Y(s,[["enter",f,n]]),g(n.parser.constructs.insideSpan.null,"expected `insideSpan.null` to be populated"),s=Y(s,Ue(n.parser.constructs.insideSpan.null,e.slice(o+r+4,i-3),n)),s=Y(s,[["exit",f,n],e[i-2],e[i-1],["exit",c,n]]),s=Y(s,e.slice(i+1)),s=Y(s,[["exit",l,n]]),K(e,o,e.length,s),e}function xo(e,n,t){const r=this;let a=r.events.length,o,i;for(;a--;)if((r.events[a][1].type===p.labelImage||r.events[a][1].type===p.labelLink)&&!r.events[a][1]._balanced){o=r.events[a][1];break}return s;function s(d){return g(d===u.rightSquareBracket,"expected `]`"),o?o._inactive?h(d):(i=r.parser.defined.includes(le(r.sliceSerialize({start:o.end,end:r.now()}))),e.enter(p.labelEnd),e.enter(p.labelMarker),e.consume(d),e.exit(p.labelMarker),e.exit(p.labelEnd),l):t(d)}function l(d){return d===u.leftParenthesis?e.attempt(po,f,i?f:h)(d):d===u.leftSquareBracket?e.attempt(fo,f,i?c:h)(d):i?f(d):h(d)}function c(d){return e.attempt(ho,f,h)(d)}function f(d){return n(d)}function h(d){return o._balanced=!0,t(d)}}function ko(e,n,t){return r;function r(h){return g(h===u.leftParenthesis,"expected left paren"),e.enter(p.resource),e.enter(p.resourceMarker),e.consume(h),e.exit(p.resourceMarker),a}function a(h){return V(h)?Ge(e,o)(h):o(h)}function o(h){return h===u.rightParenthesis?f(h):br(e,i,s,p.resourceDestination,p.resourceDestinationLiteral,p.resourceDestinationLiteralMarker,p.resourceDestinationRaw,p.resourceDestinationString,A.linkResourceDestinationBalanceMax)(h)}function i(h){return V(h)?Ge(e,l)(h):f(h)}function s(h){return t(h)}function l(h){return h===u.quotationMark||h===u.apostrophe||h===u.leftParenthesis?wr(e,c,t,p.resourceTitle,p.resourceTitleMarker,p.resourceTitleString)(h):f(h)}function c(h){return V(h)?Ge(e,f)(h):f(h)}function f(h){return h===u.rightParenthesis?(e.enter(p.resourceMarker),e.consume(h),e.exit(p.resourceMarker),e.exit(p.resource),n):t(h)}}function yo(e,n,t){const r=this;return a;function a(s){return g(s===u.leftSquareBracket,"expected left bracket"),Sr.call(r,e,o,i,p.reference,p.referenceMarker,p.referenceString)(s)}function o(s){return r.parser.defined.includes(le(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?n(s):t(s)}function i(s){return t(s)}}function bo(e,n,t){return r;function r(o){return g(o===u.leftSquareBracket,"expected left bracket"),e.enter(p.reference),e.enter(p.referenceMarker),e.consume(o),e.exit(p.referenceMarker),a}function a(o){return o===u.rightSquareBracket?(e.enter(p.referenceMarker),e.consume(o),e.exit(p.referenceMarker),e.exit(p.reference),n):t(o)}}const So={name:"labelStartImage",resolveAll:Kt.resolveAll,tokenize:wo};function wo(e,n,t){const r=this;return a;function a(s){return g(s===u.exclamationMark,"expected `!`"),e.enter(p.labelImage),e.enter(p.labelImageMarker),e.consume(s),e.exit(p.labelImageMarker),o}function o(s){return s===u.leftSquareBracket?(e.enter(p.labelMarker),e.consume(s),e.exit(p.labelMarker),e.exit(p.labelImage),i):t(s)}function i(s){return s===u.caret&&"_hiddenFootnoteSupport"in r.parser.constructs?t(s):n(s)}}const Co={name:"labelStartLink",resolveAll:Kt.resolveAll,tokenize:To};function To(e,n,t){const r=this;return a;function a(i){return g(i===u.leftSquareBracket,"expected `[`"),e.enter(p.labelLink),e.enter(p.labelMarker),e.consume(i),e.exit(p.labelMarker),e.exit(p.labelLink),o}function o(i){return i===u.caret&&"_hiddenFootnoteSupport"in r.parser.constructs?t(i):n(i)}}const St={name:"lineEnding",tokenize:Io};function Io(e,n){return t;function t(r){return g(F(r),"expected eol"),e.enter(p.lineEnding),e.consume(r),e.exit(p.lineEnding),U(e,n,p.linePrefix)}}const ut={name:"thematicBreak",tokenize:Eo};function Eo(e,n,t){let r=0,a;return o;function o(c){return e.enter(p.thematicBreak),i(c)}function i(c){return g(c===u.asterisk||c===u.dash||c===u.underscore,"expected `*`, `-`, or `_`"),a=c,s(c)}function s(c){return c===a?(e.enter(p.thematicBreakSequence),l(c)):r>=A.thematicBreakMarkerCountMin&&(c===u.eof||F(c))?(e.exit(p.thematicBreak),n(c)):t(c)}function l(c){return c===a?(e.consume(c),r++,l):(e.exit(p.thematicBreakSequence),R(c)?U(e,s,p.whitespace)(c):s(c))}}const ne={continuation:{tokenize:Fo},exit:Po,name:"list",tokenize:No},zo={partial:!0,tokenize:Do},Ao={partial:!0,tokenize:Mo};function No(e,n,t){const r=this,a=r.events[r.events.length-1];let o=a&&a[1].type===p.linePrefix?a[2].sliceSerialize(a[1],!0).length:0,i=0;return s;function s(m){g(r.containerState,"expected state");const y=r.containerState.type||(m===u.asterisk||m===u.plusSign||m===u.dash?p.listUnordered:p.listOrdered);if(y===p.listUnordered?!r.containerState.marker||m===r.containerState.marker:Bt(m)){if(r.containerState.type||(r.containerState.type=y,e.enter(y,{_container:!0})),y===p.listUnordered)return e.enter(p.listItemPrefix),m===u.asterisk||m===u.dash?e.check(ut,t,c)(m):c(m);if(!r.interrupt||m===u.digit1)return e.enter(p.listItemPrefix),e.enter(p.listItemValue),l(m)}return t(m)}function l(m){return g(r.containerState,"expected state"),Bt(m)&&++i<A.listItemValueSizeMax?(e.consume(m),l):(!r.interrupt||i<2)&&(r.containerState.marker?m===r.containerState.marker:m===u.rightParenthesis||m===u.dot)?(e.exit(p.listItemValue),c(m)):t(m)}function c(m){return g(r.containerState,"expected state"),g(m!==u.eof,"eof (`null`) is not a marker"),e.enter(p.listItemMarker),e.consume(m),e.exit(p.listItemMarker),r.containerState.marker=r.containerState.marker||m,e.check(et,r.interrupt?t:f,e.attempt(zo,d,h))}function f(m){return g(r.containerState,"expected state"),r.containerState.initialBlankLine=!0,o++,d(m)}function h(m){return R(m)?(e.enter(p.listItemPrefixWhitespace),e.consume(m),e.exit(p.listItemPrefixWhitespace),d):t(m)}function d(m){return g(r.containerState,"expected state"),r.containerState.size=o+r.sliceSerialize(e.exit(p.listItemPrefix),!0).length,n(m)}}function Fo(e,n,t){const r=this;return g(r.containerState,"expected state"),r.containerState._closeFlow=void 0,e.check(et,a,o);function a(s){return g(r.containerState,"expected state"),g(typeof r.containerState.size=="number","expected size"),r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,U(e,n,p.listItemIndent,r.containerState.size+1)(s)}function o(s){return g(r.containerState,"expected state"),r.containerState.furtherBlankLines||!R(s)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,i(s)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(Ao,n,i)(s))}function i(s){return g(r.containerState,"expected state"),r.containerState._closeFlow=!0,r.interrupt=void 0,g(r.parser.constructs.disable.null,"expected `disable.null` to be populated"),U(e,e.attempt(ne,n,t),p.linePrefix,r.parser.constructs.disable.null.includes("codeIndented")?void 0:A.tabSize)(s)}}function Mo(e,n,t){const r=this;return g(r.containerState,"expected state"),g(typeof r.containerState.size=="number","expected size"),U(e,a,p.listItemIndent,r.containerState.size+1);function a(o){g(r.containerState,"expected state");const i=r.events[r.events.length-1];return i&&i[1].type===p.listItemIndent&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?n(o):t(o)}}function Po(e){g(this.containerState,"expected state"),g(typeof this.containerState.type=="string","expected type"),e.exit(this.containerState.type)}function Do(e,n,t){const r=this;return g(r.parser.constructs.disable.null,"expected `disable.null` to be populated"),U(e,a,p.listItemPrefixWhitespace,r.parser.constructs.disable.null.includes("codeIndented")?void 0:A.tabSize+1);function a(o){const i=r.events[r.events.length-1];return!R(o)&&i&&i[1].type===p.listItemPrefixWhitespace?n(o):t(o)}}const Nn={name:"setextUnderline",resolveTo:Lo,tokenize:Bo};function Lo(e,n){let t=e.length,r,a,o;for(;t--;)if(e[t][0]==="enter"){if(e[t][1].type===p.content){r=t;break}e[t][1].type===p.paragraph&&(a=t)}else e[t][1].type===p.content&&e.splice(t,1),!o&&e[t][1].type===p.definition&&(o=t);g(a!==void 0,"expected a `text` index to be found"),g(r!==void 0,"expected a `text` index to be found"),g(e[r][2]===n,"enter context should be same"),g(e[e.length-1][2]===n,"enter context should be same");const i={type:p.setextHeading,start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[a][1].type=p.setextHeadingText,o?(e.splice(a,0,["enter",i,n]),e.splice(o+1,0,["exit",e[r][1],n]),e[r][1].end={...e[o][1].end}):e[r][1]=i,e.push(["exit",i,n]),e}function Bo(e,n,t){const r=this;let a;return o;function o(c){let f=r.events.length,h;for(g(c===u.dash||c===u.equalsTo,"expected `=` or `-`");f--;)if(r.events[f][1].type!==p.lineEnding&&r.events[f][1].type!==p.linePrefix&&r.events[f][1].type!==p.content){h=r.events[f][1].type===p.paragraph;break}return!r.parser.lazy[r.now().line]&&(r.interrupt||h)?(e.enter(p.setextHeadingLine),a=c,i(c)):t(c)}function i(c){return e.enter(p.setextHeadingLineSequence),s(c)}function s(c){return c===a?(e.consume(c),s):(e.exit(p.setextHeadingLineSequence),R(c)?U(e,l,p.lineSuffix)(c):l(c))}function l(c){return c===u.eof||F(c)?(e.exit(p.setextHeadingLine),n(c)):t(c)}}const _o={tokenize:vo};function vo(e){const n=this,t=e.attempt(et,r,e.attempt(this.parser.constructs.flowInitial,a,U(e,e.attempt(this.parser.constructs.flow,a,e.attempt(Ua,a)),p.linePrefix)));return t;function r(o){if(g(o===u.eof||F(o),"expected eol or eof"),o===u.eof){e.consume(o);return}return e.enter(p.lineEndingBlank),e.consume(o),e.exit(p.lineEndingBlank),n.currentConstruct=void 0,t}function a(o){if(g(o===u.eof||F(o),"expected eol or eof"),o===u.eof){e.consume(o);return}return e.enter(p.lineEnding),e.consume(o),e.exit(p.lineEnding),n.currentConstruct=void 0,t}}const Oo={resolveAll:Tr()},qo=Cr("string"),Ro=Cr("text");function Cr(e){return{resolveAll:Tr(e==="text"?Uo:void 0),tokenize:n};function n(t){const r=this,a=this.parser.constructs[e],o=t.attempt(a,i,s);return i;function i(f){return c(f)?o(f):s(f)}function s(f){if(f===u.eof){t.consume(f);return}return t.enter(p.data),t.consume(f),l}function l(f){return c(f)?(t.exit(p.data),o(f)):(t.consume(f),l)}function c(f){if(f===u.eof)return!0;const h=a[f];let d=-1;if(h)for(g(Array.isArray(h),"expected `disable.null` to be populated");++d<h.length;){const m=h[d];if(!m.previous||m.previous.call(r,r.previous))return!0}return!1}}}function Tr(e){return n;function n(t,r){let a=-1,o;for(;++a<=t.length;)o===void 0?t[a]&&t[a][1].type===p.data&&(o=a,a++):(!t[a]||t[a][1].type!==p.data)&&(a!==o+2&&(t[o][1].end=t[a-1][1].end,t.splice(o+2,a-o-2),a=o+2),o=void 0);return e?e(t,r):t}}function Uo(e,n){let t=0;for(;++t<=e.length;)if((t===e.length||e[t][1].type===p.lineEnding)&&e[t-1][1].type===p.data){const r=e[t-1][1],a=n.sliceStream(r);let o=a.length,i=-1,s=0,l;for(;o--;){const c=a[o];if(typeof c=="string"){for(i=c.length;c.charCodeAt(i-1)===u.space;)s++,i--;if(i)break;i=-1}else if(c===u.horizontalTab)l=!0,s++;else if(c!==u.virtualSpace){o++;break}}if(n._contentTypeTextTrailing&&t===e.length&&(s=0),s){const c={type:t===e.length||l||s<A.hardBreakPrefixSizeMin?p.lineSuffix:p.hardBreakTrailing,start:{_bufferIndex:o?i:r.start._bufferIndex+i,_index:r.start._index+o,line:r.end.line,column:r.end.column-s,offset:r.end.offset-s},end:{...r.end}};r.end={...c.start},r.start.offset===r.end.offset?Object.assign(r,c):(e.splice(t,0,["enter",c,n],["exit",c,n]),t+=2)}t++}return e}const jo={[u.asterisk]:ne,[u.plusSign]:ne,[u.dash]:ne,[u.digit0]:ne,[u.digit1]:ne,[u.digit2]:ne,[u.digit3]:ne,[u.digit4]:ne,[u.digit5]:ne,[u.digit6]:ne,[u.digit7]:ne,[u.digit8]:ne,[u.digit9]:ne,[u.greaterThan]:dr},Ho={[u.leftSquareBracket]:Wa},$o={[u.horizontalTab]:bt,[u.virtualSpace]:bt,[u.space]:bt},Vo={[u.numberSign]:Ka,[u.asterisk]:ut,[u.dash]:[Nn,ut],[u.lessThan]:no,[u.equalsTo]:Nn,[u.underscore]:ut,[u.graveAccent]:zn,[u.tilde]:zn},Wo={[u.ampersand]:xr,[u.backslash]:gr},Qo={[u.carriageReturn]:St,[u.lineFeed]:St,[u.carriageReturnLineFeed]:St,[u.exclamationMark]:So,[u.ampersand]:xr,[u.asterisk]:_t,[u.lessThan]:[Ca,uo],[u.leftSquareBracket]:Co,[u.backslash]:[Ja,gr],[u.rightSquareBracket]:Kt,[u.underscore]:_t,[u.graveAccent]:_a},Go={null:[_t,Oo]},Xo={null:[u.asterisk,u.underscore]},Jo={null:[]},Yo=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:Xo,contentInitial:Ho,disable:Jo,document:jo,flow:Vo,flowInitial:$o,insideSpan:Go,string:Wo,text:Qo},Symbol.toStringTag,{value:"Module"})),Te=Mi("micromark");function Ko(e,n,t){let r={_bufferIndex:-1,_index:0,line:t&&t.line||1,column:t&&t.column||1,offset:t&&t.offset||0};const a={},o=[];let i=[],s=[],l=!0;const c={attempt:B(v),check:B(H),consume:D,enter:_,exit:w,interrupt:B(H,{interrupt:!0})},f={code:u.eof,containerState:{},defineSkip:T,events:[],now:I,parser:e,previous:u.eof,sliceSerialize:y,sliceStream:z,write:m};let h=n.tokenize.call(f,c),d;return n.resolveAll&&o.push(n),f;function m(M){return i=Y(i,M),E(),i[i.length-1]!==u.eof?[]:(b(n,0),f.events=Ue(o,f.events,f),f.events)}function y(M,L){return es(z(M),L)}function z(M){return Zo(i,M)}function I(){const{_bufferIndex:M,_index:L,line:O,column:W,offset:G}=r;return{_bufferIndex:M,_index:L,line:O,column:W,offset:G}}function T(M){a[M.line]=M.column,j(),Te("position: define skip: `%j`",r)}function E(){let M;for(;r._index<i.length;){const L=i[r._index];if(typeof L=="string")for(M=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===M&&r._bufferIndex<L.length;)N(L.charCodeAt(r._bufferIndex));else N(L)}}function N(M){g(l===!0,"expected character to be consumed"),l=void 0,Te("main: passing `%s` to %s",M,h&&h.name),d=M,g(typeof h=="function","expected state"),h=h(M)}function D(M){g(M===d,"expected given code to equal expected code"),Te("consume: `%s`",M),g(l===void 0,"expected code to not have been consumed: this might be because `return x(code)` instead of `return x` was used"),g(M===null?f.events.length===0||f.events[f.events.length-1][0]==="exit":f.events[f.events.length-1][0]==="enter","expected last token to be open"),F(M)?(r.line++,r.column=1,r.offset+=M===u.carriageReturnLineFeed?2:1,j(),Te("position: after eol: `%j`",r)):M!==u.virtualSpace&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===i[r._index].length&&(r._bufferIndex=-1,r._index++)),f.previous=M,l=!0}function _(M,L){const O=L||{};return O.type=M,O.start=I(),g(typeof M=="string","expected string type"),g(M.length>0,"expected non-empty string"),Te("enter: `%s`",M),f.events.push(["enter",O,f]),s.push(O),O}function w(M){g(typeof M=="string","expected string type"),g(M.length>0,"expected non-empty string");const L=s.pop();return g(L,"cannot close w/o open tokens"),L.end=I(),g(M===L.type,"expected exit token to match current token"),g(!(L.start._index===L.end._index&&L.start._bufferIndex===L.end._bufferIndex),"expected non-empty token (`"+M+"`)"),Te("exit: `%s`",L.type),f.events.push(["exit",L,f]),L}function v(M,L){b(M,L.from)}function H(M,L){L.restore()}function B(M,L){return O;function O(W,G,oe){let ue,x,se,he;return Array.isArray(W)?re(W):"tokenize"in W?re([W]):k(W);function k(X){return $e;function $e(me){const we=me!==null&&X[me],Fe=me!==null&&X.null,kt=[...Array.isArray(we)?we:we?[we]:[],...Array.isArray(Fe)?Fe:Fe?[Fe]:[]];return re(kt)(me)}}function re(X){return ue=X,x=0,X.length===0?(g(oe,"expected `bogusState` to be given"),oe):Se(X[x])}function Se(X){return $e;function $e(me){return he=Q(),se=X,X.partial||(f.currentConstruct=X),g(f.parser.constructs.disable.null,"expected `disable.null` to be populated"),X.name&&f.parser.constructs.disable.null.includes(X.name)?nt(me):X.tokenize.call(L?Object.assign(Object.create(f),L):f,c,xt,nt)(me)}}function xt(X){return g(X===d,"expected code"),l=!0,M(se,he),G}function nt(X){return g(X===d,"expected code"),l=!0,he.restore(),++x<ue.length?Se(ue[x]):oe}}}function b(M,L){M.resolveAll&&!o.includes(M)&&o.push(M),M.resolve&&K(f.events,L,f.events.length-L,M.resolve(f.events.slice(L),f)),M.resolveTo&&(f.events=M.resolveTo(f.events,f)),g(M.partial||f.events.length===0||f.events[f.events.length-1][0]==="exit","expected last token to end")}function Q(){const M=I(),L=f.previous,O=f.currentConstruct,W=f.events.length,G=Array.from(s);return{from:W,restore:oe};function oe(){r=M,f.previous=L,f.currentConstruct=O,f.events.length=W,s=G,j(),Te("position: restore: `%j`",r)}}function j(){r.line in a&&r.column<2&&(r.column=a[r.line],r.offset+=a[r.line]-1)}}function Zo(e,n){const t=n.start._index,r=n.start._bufferIndex,a=n.end._index,o=n.end._bufferIndex;let i;if(t===a)g(o>-1,"expected non-negative end buffer index"),g(r>-1,"expected non-negative start buffer index"),i=[e[t].slice(r,o)];else{if(i=e.slice(t,a),r>-1){const s=i[0];typeof s=="string"?i[0]=s.slice(r):(g(r===0,"expected `startBufferIndex` to be `0`"),i.shift())}o>0&&i.push(e[a].slice(0,o))}return i}function es(e,n){let t=-1;const r=[];let a;for(;++t<e.length;){const o=e[t];let i;if(typeof o=="string")i=o;else switch(o){case u.carriageReturn:{i=ce.cr;break}case u.lineFeed:{i=ce.lf;break}case u.carriageReturnLineFeed:{i=ce.cr+ce.lf;break}case u.horizontalTab:{i=n?ce.space:ce.ht;break}case u.virtualSpace:{if(!n&&a)continue;i=ce.space;break}default:g(typeof o=="number","expected number"),i=String.fromCharCode(o)}a=o===u.horizontalTab,r.push(i)}return r.join("")}function ts(e){const r={constructs:hr([Yo,...(e||{}).extensions||[]]),content:a(ga),defined:[],document:a(ka),flow:a(_o),lazy:{},string:a(qo),text:a(Ro)};return r;function a(o){return i;function i(s){return Ko(r,o,s)}}}function ns(e){for(;!yr(e););return e}const Fn=/[\0\t\n\r]/g;function rs(){let e=1,n="",t=!0,r;return a;function a(o,i,s){const l=[];let c,f,h,d,m;for(o=n+(typeof o=="string"?o.toString():new TextDecoder(i||void 0).decode(o)),h=0,n="",t&&(o.charCodeAt(0)===u.byteOrderMarker&&h++,t=void 0);h<o.length;){if(Fn.lastIndex=h,c=Fn.exec(o),d=c&&c.index!==void 0?c.index:o.length,m=o.charCodeAt(d),!c){n=o.slice(h);break}if(m===u.lf&&h===d&&r)l.push(u.carriageReturnLineFeed),r=void 0;else switch(r&&(l.push(u.carriageReturn),r=void 0),h<d&&(l.push(o.slice(h,d)),e+=d-h),m){case u.nul:{l.push(u.replacementCharacter),e++;break}case u.ht:{for(f=Math.ceil(e/A.tabSize)*A.tabSize,l.push(u.horizontalTab);e++<f;)l.push(u.virtualSpace);break}case u.lf:{l.push(u.lineFeed),e=1;break}default:r=!0,e=1}h=d+1}return s&&(r&&l.push(u.carriageReturn),n&&l.push(n),l.push(u.eof)),l}}const is=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function as(e){return e.replace(is,os)}function os(e,n,t){if(n)return n;if(t.charCodeAt(0)===u.numberSign){const a=t.charCodeAt(1),o=a===u.lowercaseX||a===u.uppercaseX;return mr(t.slice(o?2:1),o?A.numericBaseHexadecimal:A.numericBaseDecimal)}return Vt(t)||e}const Ir={}.hasOwnProperty;function ss(e,n,t){return typeof n!="string"&&(t=n,n=void 0),ls(t)(ns(ts(t).document().write(rs()(e,n,!0))))}function ls(e){const n={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(pn),autolinkProtocol:B,autolinkEmail:B,atxHeading:o(ln),blockQuote:o(me),characterEscape:B,characterReference:B,codeFenced:o(we),codeFencedFenceInfo:i,codeFencedFenceMeta:i,codeIndented:o(we,i),codeText:o(Fe,i),codeTextData:B,data:B,codeFlowValue:B,definition:o(kt),definitionDestinationString:i,definitionLabelString:i,definitionTitleString:i,emphasis:o(wi),hardBreakEscape:o(un),hardBreakTrailing:o(un),htmlFlow:o(cn,i),htmlFlowData:B,htmlText:o(cn,i),htmlTextData:B,image:o(Ci),label:i,link:o(pn),listItem:o(Ti),listItemValue:d,listOrdered:o(fn,h),listUnordered:o(fn),paragraph:o(Ii),reference:k,referenceString:i,resourceDestinationString:i,resourceTitleString:i,setextHeading:o(ln),strong:o(Ei),thematicBreak:o(Ai)},exit:{atxHeading:l(),atxHeadingSequence:_,autolink:l(),autolinkEmail:$e,autolinkProtocol:X,blockQuote:l(),characterEscapeValue:b,characterReferenceMarkerHexadecimal:Se,characterReferenceMarkerNumeric:Se,characterReferenceValue:xt,characterReference:nt,codeFenced:l(I),codeFencedFence:z,codeFencedFenceInfo:m,codeFencedFenceMeta:y,codeFlowValue:b,codeIndented:l(T),codeText:l(O),codeTextData:b,data:b,definition:l(),definitionDestinationString:D,definitionLabelString:E,definitionTitleString:N,emphasis:l(),hardBreakEscape:l(j),hardBreakTrailing:l(j),htmlFlow:l(M),htmlFlowData:b,htmlText:l(L),htmlTextData:b,image:l(G),label:ue,labelText:oe,lineEnding:Q,link:l(W),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:re,resourceDestinationString:x,resourceTitleString:se,resource:he,setextHeading:l(H),setextHeadingLineSequence:v,setextHeadingText:w,strong:l(),thematicBreak:l()}};Er(n,(e||{}).mdastExtensions||[]);const t={};return r;function r(S){let C={type:"root",children:[]};const P={stack:[C],tokenStack:[],config:n,enter:s,exit:c,buffer:i,resume:f,data:t},q=[];let $=-1;for(;++$<S.length;)if(S[$][1].type===p.listOrdered||S[$][1].type===p.listUnordered)if(S[$][0]==="enter")q.push($);else{const te=q.pop();g(typeof te=="number","expected list ot be open"),$=a(S,te,$)}for($=-1;++$<S.length;){const te=n[S[$][0]];Ir.call(te,S[$][1].type)&&te[S[$][1].type].call(Object.assign({sliceSerialize:S[$][2].sliceSerialize},P),S[$][1])}if(P.tokenStack.length>0){const te=P.tokenStack[P.tokenStack.length-1];(te[1]||Mn).call(P,void 0,te[0])}for(C.position={start:ye(S.length>0?S[0][1].start:{line:1,column:1,offset:0}),end:ye(S.length>0?S[S.length-2][1].end:{line:1,column:1,offset:0})},$=-1;++$<n.transforms.length;)C=n.transforms[$](C)||C;return C}function a(S,C,P){let q=C-1,$=-1,te=!1,Ce,de,Ve,We;for(;++q<=P;){const ie=S[q];switch(ie[1].type){case p.listUnordered:case p.listOrdered:case p.blockQuote:{ie[0]==="enter"?$++:$--,We=void 0;break}case p.lineEndingBlank:{ie[0]==="enter"&&(Ce&&!We&&!$&&!Ve&&(Ve=q),We=void 0);break}case p.linePrefix:case p.listItemValue:case p.listItemMarker:case p.listItemPrefix:case p.listItemPrefixWhitespace:break;default:We=void 0}if(!$&&ie[0]==="enter"&&ie[1].type===p.listItemPrefix||$===-1&&ie[0]==="exit"&&(ie[1].type===p.listUnordered||ie[1].type===p.listOrdered)){if(Ce){let Me=q;for(de=void 0;Me--;){const ge=S[Me];if(ge[1].type===p.lineEnding||ge[1].type===p.lineEndingBlank){if(ge[0]==="exit")continue;de&&(S[de][1].type=p.lineEndingBlank,te=!0),ge[1].type=p.lineEnding,de=Me}else if(!(ge[1].type===p.linePrefix||ge[1].type===p.blockQuotePrefix||ge[1].type===p.blockQuotePrefixWhitespace||ge[1].type===p.blockQuoteMarker||ge[1].type===p.listItemIndent))break}Ve&&(!de||Ve<de)&&(Ce._spread=!0),Ce.end=Object.assign({},de?S[de][1].start:ie[1].end),S.splice(de||q,0,["exit",Ce,ie[2]]),q++,P++}if(ie[1].type===p.listItemPrefix){const Me={type:"listItem",_spread:!1,start:Object.assign({},ie[1].start),end:void 0};Ce=Me,S.splice(q,0,["enter",Me,ie[2]]),q++,P++,Ve=void 0,We=!0}}}return S[C][1]._spread=te,P}function o(S,C){return P;function P(q){s.call(this,S(q),q),C&&C.call(this,q)}}function i(){this.stack.push({type:"fragment",children:[]})}function s(S,C,P){const q=this.stack[this.stack.length-1];g(q,"expected `parent`"),g("children"in q,"expected `parent`"),q.children.push(S),this.stack.push(S),this.tokenStack.push([C,P||void 0]),S.position={start:ye(C.start),end:void 0}}function l(S){return C;function C(P){S&&S.call(this,P),c.call(this,P)}}function c(S,C){const P=this.stack.pop();g(P,"expected `node`");const q=this.tokenStack.pop();if(q)q[0].type!==S.type&&(C?C.call(this,S,q[0]):(q[1]||Mn).call(this,S,q[0]));else throw new Error("Cannot close `"+S.type+"` ("+lt({start:S.start,end:S.end})+"): it’s not open");g(P.type!=="fragment","unexpected fragment `exit`ed"),g(P.position,"expected `position` to be defined"),P.position.end=ye(S.end)}function f(){return Yt(this.stack.pop())}function h(){this.data.expectingFirstListItemValue=!0}function d(S){if(this.data.expectingFirstListItemValue){const C=this.stack[this.stack.length-2];g(C,"expected nodes on stack"),g(C.type==="list","expected list on stack"),C.start=Number.parseInt(this.sliceSerialize(S),A.numericBaseDecimal),this.data.expectingFirstListItemValue=void 0}}function m(){const S=this.resume(),C=this.stack[this.stack.length-1];g(C,"expected node on stack"),g(C.type==="code","expected code on stack"),C.lang=S}function y(){const S=this.resume(),C=this.stack[this.stack.length-1];g(C,"expected node on stack"),g(C.type==="code","expected code on stack"),C.meta=S}function z(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function I(){const S=this.resume(),C=this.stack[this.stack.length-1];g(C,"expected node on stack"),g(C.type==="code","expected code on stack"),C.value=S.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function T(){const S=this.resume(),C=this.stack[this.stack.length-1];g(C,"expected node on stack"),g(C.type==="code","expected code on stack"),C.value=S.replace(/(\r?\n|\r)$/g,"")}function E(S){const C=this.resume(),P=this.stack[this.stack.length-1];g(P,"expected node on stack"),g(P.type==="definition","expected definition on stack"),P.label=C,P.identifier=le(this.sliceSerialize(S)).toLowerCase()}function N(){const S=this.resume(),C=this.stack[this.stack.length-1];g(C,"expected node on stack"),g(C.type==="definition","expected definition on stack"),C.title=S}function D(){const S=this.resume(),C=this.stack[this.stack.length-1];g(C,"expected node on stack"),g(C.type==="definition","expected definition on stack"),C.url=S}function _(S){const C=this.stack[this.stack.length-1];if(g(C,"expected node on stack"),g(C.type==="heading","expected heading on stack"),!C.depth){const P=this.sliceSerialize(S).length;g(P===1||P===2||P===3||P===4||P===5||P===6,"expected `depth` between `1` and `6`"),C.depth=P}}function w(){this.data.setextHeadingSlurpLineEnding=!0}function v(S){const C=this.stack[this.stack.length-1];g(C,"expected node on stack"),g(C.type==="heading","expected heading on stack"),C.depth=this.sliceSerialize(S).codePointAt(0)===u.equalsTo?1:2}function H(){this.data.setextHeadingSlurpLineEnding=void 0}function B(S){const C=this.stack[this.stack.length-1];g(C,"expected node on stack"),g("children"in C,"expected parent on stack");const P=C.children;let q=P[P.length-1];(!q||q.type!=="text")&&(q=zi(),q.position={start:ye(S.start),end:void 0},P.push(q)),this.stack.push(q)}function b(S){const C=this.stack.pop();g(C,"expected a `node` to be on the stack"),g("value"in C,"expected a `literal` to be on the stack"),g(C.position,"expected `node` to have an open position"),C.value+=this.sliceSerialize(S),C.position.end=ye(S.end)}function Q(S){const C=this.stack[this.stack.length-1];if(g(C,"expected `node`"),this.data.atHardBreak){g("children"in C,"expected `parent`");const P=C.children[C.children.length-1];g(P.position,"expected tail to have a starting position"),P.position.end=ye(S.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&n.canContainEols.includes(C.type)&&(B.call(this,S),b.call(this,S))}function j(){this.data.atHardBreak=!0}function M(){const S=this.resume(),C=this.stack[this.stack.length-1];g(C,"expected node on stack"),g(C.type==="html","expected html on stack"),C.value=S}function L(){const S=this.resume(),C=this.stack[this.stack.length-1];g(C,"expected node on stack"),g(C.type==="html","expected html on stack"),C.value=S}function O(){const S=this.resume(),C=this.stack[this.stack.length-1];g(C,"expected node on stack"),g(C.type==="inlineCode","expected inline code on stack"),C.value=S}function W(){const S=this.stack[this.stack.length-1];if(g(S,"expected node on stack"),g(S.type==="link","expected link on stack"),this.data.inReference){const C=this.data.referenceType||"shortcut";S.type+="Reference",S.referenceType=C,delete S.url,delete S.title}else delete S.identifier,delete S.label;this.data.referenceType=void 0}function G(){const S=this.stack[this.stack.length-1];if(g(S,"expected node on stack"),g(S.type==="image","expected image on stack"),this.data.inReference){const C=this.data.referenceType||"shortcut";S.type+="Reference",S.referenceType=C,delete S.url,delete S.title}else delete S.identifier,delete S.label;this.data.referenceType=void 0}function oe(S){const C=this.sliceSerialize(S),P=this.stack[this.stack.length-2];g(P,"expected ancestor on stack"),g(P.type==="image"||P.type==="link","expected image or link on stack"),P.label=as(C),P.identifier=le(C).toLowerCase()}function ue(){const S=this.stack[this.stack.length-1];g(S,"expected node on stack"),g(S.type==="fragment","expected fragment on stack");const C=this.resume(),P=this.stack[this.stack.length-1];if(g(P,"expected node on stack"),g(P.type==="image"||P.type==="link","expected image or link on stack"),this.data.inReference=!0,P.type==="link"){const q=S.children;P.children=q}else P.alt=C}function x(){const S=this.resume(),C=this.stack[this.stack.length-1];g(C,"expected node on stack"),g(C.type==="image"||C.type==="link","expected image or link on stack"),C.url=S}function se(){const S=this.resume(),C=this.stack[this.stack.length-1];g(C,"expected node on stack"),g(C.type==="image"||C.type==="link","expected image or link on stack"),C.title=S}function he(){this.data.inReference=void 0}function k(){this.data.referenceType="collapsed"}function re(S){const C=this.resume(),P=this.stack[this.stack.length-1];g(P,"expected node on stack"),g(P.type==="image"||P.type==="link","expected image reference or link reference on stack"),P.label=C,P.identifier=le(this.sliceSerialize(S)).toLowerCase(),this.data.referenceType="full"}function Se(S){g(S.type==="characterReferenceMarkerNumeric"||S.type==="characterReferenceMarkerHexadecimal"),this.data.characterReferenceType=S.type}function xt(S){const C=this.sliceSerialize(S),P=this.data.characterReferenceType;let q;if(P)q=mr(C,P===p.characterReferenceMarkerNumeric?A.numericBaseDecimal:A.numericBaseHexadecimal),this.data.characterReferenceType=void 0;else{const te=Vt(C);g(te!==!1,"expected reference to decode"),q=te}const $=this.stack[this.stack.length-1];g($,"expected `node`"),g("value"in $,"expected `node.value`"),$.value+=q}function nt(S){const C=this.stack.pop();g(C,"expected `node`"),g(C.position,"expected `node.position`"),C.position.end=ye(S.end)}function X(S){b.call(this,S);const C=this.stack[this.stack.length-1];g(C,"expected node on stack"),g(C.type==="link","expected link on stack"),C.url=this.sliceSerialize(S)}function $e(S){b.call(this,S);const C=this.stack[this.stack.length-1];g(C,"expected node on stack"),g(C.type==="link","expected link on stack"),C.url="mailto:"+this.sliceSerialize(S)}function me(){return{type:"blockquote",children:[]}}function we(){return{type:"code",lang:null,meta:null,value:""}}function Fe(){return{type:"inlineCode",value:""}}function kt(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function wi(){return{type:"emphasis",children:[]}}function ln(){return{type:"heading",depth:0,children:[]}}function un(){return{type:"break"}}function cn(){return{type:"html",value:""}}function Ci(){return{type:"image",title:null,url:"",alt:null}}function pn(){return{type:"link",title:null,url:"",children:[]}}function fn(S){return{type:"list",ordered:S.type==="listOrdered",start:null,spread:S._spread,children:[]}}function Ti(S){return{type:"listItem",spread:S._spread,checked:null,children:[]}}function Ii(){return{type:"paragraph",children:[]}}function Ei(){return{type:"strong",children:[]}}function zi(){return{type:"text",value:""}}function Ai(){return{type:"thematicBreak"}}}function ye(e){return{line:e.line,column:e.column,offset:e.offset}}function Er(e,n){let t=-1;for(;++t<n.length;){const r=n[t];Array.isArray(r)?Er(e,r):us(e,r)}}function us(e,n){let t;for(t in n)if(Ir.call(n,t))switch(t){case"canContainEols":{const r=n[t];r&&e[t].push(...r);break}case"transforms":{const r=n[t];r&&e[t].push(...r);break}case"enter":case"exit":{const r=n[t];r&&Object.assign(e[t],r);break}}}function Mn(e,n){throw e?new Error("Cannot close `"+e.type+"` ("+lt({start:e.start,end:e.end})+"): a different token (`"+n.type+"`, "+lt({start:n.start,end:n.end})+") is open"):new Error("Cannot close document, a token (`"+n.type+"`, "+lt({start:n.start,end:n.end})+") is still open")}function Ef(e){const n=this;n.parser=t;function t(r){return ss(r,{...n.data("settings"),...e,extensions:n.data("micromarkExtensions")||[],mdastExtensions:n.data("fromMarkdownExtensions")||[]})}}function cs(e,n){const t={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(n),!0)};return e.patch(n,t),e.applyData(n,t)}function ps(e,n){const t={type:"element",tagName:"br",properties:{},children:[]};return e.patch(n,t),[e.applyData(n,t),{type:"text",value:`
|
|
3
3
|
`}]}function fs(e,n){const t=n.value?n.value+`
|
|
4
4
|
`:"",r={},a=n.lang?n.lang.split(/\s+/):[];a.length>0&&(r.className=["language-"+a[0]]);let o={type:"element",tagName:"code",properties:r,children:[{type:"text",value:t}]};return n.meta&&(o.data={meta:n.meta}),e.patch(n,o),o=e.applyData(n,o),o={type:"element",tagName:"pre",properties:{},children:[o]},e.patch(n,o),o}function hs(e,n){const t={type:"element",tagName:"del",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function ms(e,n){const t={type:"element",tagName:"em",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function ds(e,n){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(n.identifier).toUpperCase(),a=Re(r.toLowerCase()),o=e.footnoteOrder.indexOf(r);let i,s=e.footnoteCounts.get(r);s===void 0?(s=0,e.footnoteOrder.push(r),i=e.footnoteOrder.length):i=o+1,s+=1,e.footnoteCounts.set(r,s);const l={type:"element",tagName:"a",properties:{href:"#"+t+"fn-"+a,id:t+"fnref-"+a+(s>1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(i)}]};e.patch(n,l);const c={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(n,c),e.applyData(n,c)}function gs(e,n){const t={type:"element",tagName:"h"+n.depth,properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function xs(e,n){if(e.options.allowDangerousHtml){const t={type:"raw",value:n.value};return e.patch(n,t),e.applyData(n,t)}}function zr(e,n){const t=n.referenceType;let r="]";if(t==="collapsed"?r+="[]":t==="full"&&(r+="["+(n.label||n.identifier)+"]"),n.type==="imageReference")return[{type:"text",value:"!["+n.alt+r}];const a=e.all(n),o=a[0];o&&o.type==="text"?o.value="["+o.value:a.unshift({type:"text",value:"["});const i=a[a.length-1];return i&&i.type==="text"?i.value+=r:a.push({type:"text",value:r}),a}function ks(e,n){const t=String(n.identifier).toUpperCase(),r=e.definitionById.get(t);if(!r)return zr(e,n);const a={src:Re(r.url||""),alt:n.alt};r.title!==null&&r.title!==void 0&&(a.title=r.title);const o={type:"element",tagName:"img",properties:a,children:[]};return e.patch(n,o),e.applyData(n,o)}function ys(e,n){const t={src:Re(n.url)};n.alt!==null&&n.alt!==void 0&&(t.alt=n.alt),n.title!==null&&n.title!==void 0&&(t.title=n.title);const r={type:"element",tagName:"img",properties:t,children:[]};return e.patch(n,r),e.applyData(n,r)}function bs(e,n){const t={type:"text",value:n.value.replace(/\r?\n|\r/g," ")};e.patch(n,t);const r={type:"element",tagName:"code",properties:{},children:[t]};return e.patch(n,r),e.applyData(n,r)}function Ss(e,n){const t=String(n.identifier).toUpperCase(),r=e.definitionById.get(t);if(!r)return zr(e,n);const a={href:Re(r.url||"")};r.title!==null&&r.title!==void 0&&(a.title=r.title);const o={type:"element",tagName:"a",properties:a,children:e.all(n)};return e.patch(n,o),e.applyData(n,o)}function ws(e,n){const t={href:Re(n.url)};n.title!==null&&n.title!==void 0&&(t.title=n.title);const r={type:"element",tagName:"a",properties:t,children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}function Cs(e,n,t){const r=e.all(n),a=t?Ts(t):Ar(n),o={},i=[];if(typeof n.checked=="boolean"){const f=r[0];let h;f&&f.type==="element"&&f.tagName==="p"?h=f:(h={type:"element",tagName:"p",properties:{},children:[]},r.unshift(h)),h.children.length>0&&h.children.unshift({type:"text",value:" "}),h.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:n.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let s=-1;for(;++s<r.length;){const f=r[s];(a||s!==0||f.type!=="element"||f.tagName!=="p")&&i.push({type:"text",value:`
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import{r as s,R as vt,j as u,a as ht,b as gr,c as pe,d as gt}from"./react-DiSrVJhY.js";import{aT as xr,aU as wr,aV as yr,aW as Cr,aX as Er,aY as Sr,aZ as br,a_ as Rr,a$ as Pr,b0 as xt}from"./vendor-Dm9xAZV8.js";function Ht(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Ie(...e){return t=>{let n=!1;const o=e.map(r=>{const a=Ht(r,t);return!n&&typeof a=="function"&&(n=!0),a});if(n)return()=>{for(let r=0;r<o.length;r++){const a=o[r];typeof a=="function"?a():Ht(e[r],null)}}}}function M(...e){return s.useCallback(Ie(...e),e)}var Tr=Symbol.for("react.lazy"),Le=vt[" use ".trim().toString()];function Ir(e){return typeof e=="object"&&e!==null&&"then"in e}function Qt(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===Tr&&"_payload"in e&&Ir(e._payload)}function en(e){const t=_r(e),n=s.forwardRef((o,r)=>{let{children:a,...i}=o;Qt(a)&&typeof Le=="function"&&(a=Le(a._payload));const c=s.Children.toArray(a),l=c.find(Nr);if(l){const d=l.props.children,f=c.map(p=>p===l?s.Children.count(d)>1?s.Children.only(null):s.isValidElement(d)?d.props.children:null:p);return u.jsx(t,{...i,ref:r,children:s.isValidElement(d)?s.cloneElement(d,void 0,f):null})}return u.jsx(t,{...i,ref:r,children:a})});return n.displayName=`${e}.Slot`,n}var Bi=en("Slot");function _r(e){const t=s.forwardRef((n,o)=>{let{children:r,...a}=n;if(Qt(r)&&typeof Le=="function"&&(r=Le(r._payload)),s.isValidElement(r)){const i=Dr(r),c=Ar(a,r.props);return r.type!==s.Fragment&&(c.ref=o?Ie(o,i):i),s.cloneElement(r,c)}return s.Children.count(r)>1?s.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Mr=Symbol("radix.slottable");function Nr(e){return s.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Mr}function Ar(e,t){const n={...t};for(const o in t){const r=e[o],a=t[o];/^on[A-Z]/.test(o)?r&&a?n[o]=(...c)=>{const l=a(...c);return r(...c),l}:r&&(n[o]=r):o==="style"?n[o]={...r,...a}:o==="className"&&(n[o]=[r,a].filter(Boolean).join(" "))}return{...e,...n}}function Dr(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function E(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),n===!1||!r.defaultPrevented)return t?.(r)}}function Or(e,t){const n=s.createContext(t),o=a=>{const{children:i,...c}=a,l=s.useMemo(()=>c,Object.values(c));return u.jsx(n.Provider,{value:l,children:i})};o.displayName=e+"Provider";function r(a){const i=s.useContext(n);if(i)return i;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[o,r]}function ce(e,t=[]){let n=[];function o(a,i){const c=s.createContext(i),l=n.length;n=[...n,i];const d=p=>{const{scope:v,children:g,...x}=p,m=v?.[e]?.[l]||c,h=s.useMemo(()=>x,Object.values(x));return u.jsx(m.Provider,{value:h,children:g})};d.displayName=a+"Provider";function f(p,v){const g=v?.[e]?.[l]||c,x=s.useContext(g);if(x)return x;if(i!==void 0)return i;throw new Error(`\`${p}\` must be used within \`${a}\``)}return[d,f]}const r=()=>{const a=n.map(i=>s.createContext(i));return function(c){const l=c?.[e]||a;return s.useMemo(()=>({[`__scope${e}`]:{...c,[e]:l}}),[c,l])}};return r.scopeName=e,[o,jr(r,...t)]}function jr(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const o=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(a){const i=o.reduce((c,{useScope:l,scopeName:d})=>{const p=l(a)[`__scope${d}`];return{...c,...p}},{});return s.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function we(e){const t=Lr(e),n=s.forwardRef((o,r)=>{const{children:a,...i}=o,c=s.Children.toArray(a),l=c.find(kr);if(l){const d=l.props.children,f=c.map(p=>p===l?s.Children.count(d)>1?s.Children.only(null):s.isValidElement(d)?d.props.children:null:p);return u.jsx(t,{...i,ref:r,children:s.isValidElement(d)?s.cloneElement(d,void 0,f):null})}return u.jsx(t,{...i,ref:r,children:a})});return n.displayName=`${e}.Slot`,n}function Lr(e){const t=s.forwardRef((n,o)=>{const{children:r,...a}=n;if(s.isValidElement(r)){const i=Br(r),c=$r(a,r.props);return r.type!==s.Fragment&&(c.ref=o?Ie(o,i):i),s.cloneElement(r,c)}return s.Children.count(r)>1?s.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var tn=Symbol("radix.slottable");function Fr(e){const t=({children:n})=>u.jsx(u.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=tn,t}function kr(e){return s.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===tn}function $r(e,t){const n={...t};for(const o in t){const r=e[o],a=t[o];/^on[A-Z]/.test(o)?r&&a?n[o]=(...c)=>{const l=a(...c);return r(...c),l}:r&&(n[o]=r):o==="style"?n[o]={...r,...a}:o==="className"&&(n[o]=[r,a].filter(Boolean).join(" "))}return{...e,...n}}function Br(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Ur=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],T=Ur.reduce((e,t)=>{const n=we(`Primitive.${t}`),o=s.forwardRef((r,a)=>{const{asChild:i,...c}=r,l=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),u.jsx(l,{...c,ref:a})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{});function nn(e,t){e&&ht.flushSync(()=>e.dispatchEvent(t))}function se(e){const t=s.useRef(e);return s.useEffect(()=>{t.current=e}),s.useMemo(()=>(...n)=>t.current?.(...n),[])}function Gr(e,t=globalThis?.document){const n=se(e);s.useEffect(()=>{const o=r=>{r.key==="Escape"&&n(r)};return t.addEventListener("keydown",o,{capture:!0}),()=>t.removeEventListener("keydown",o,{capture:!0})},[n,t])}var Hr="DismissableLayer",st="dismissableLayer.update",Kr="dismissableLayer.pointerDownOutside",Wr="dismissableLayer.focusOutside",Kt,on=s.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),_e=s.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:o,onPointerDownOutside:r,onFocusOutside:a,onInteractOutside:i,onDismiss:c,...l}=e,d=s.useContext(on),[f,p]=s.useState(null),v=f?.ownerDocument??globalThis?.document,[,g]=s.useState({}),x=M(t,P=>p(P)),m=Array.from(d.layers),[h]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),y=m.indexOf(h),w=f?m.indexOf(f):-1,C=d.layersWithOutsidePointerEventsDisabled.size>0,R=w>=y,_=Yr(P=>{const I=P.target,$=[...d.branches].some(F=>F.contains(I));!R||$||(r?.(P),i?.(P),P.defaultPrevented||c?.())},v),O=Xr(P=>{const I=P.target;[...d.branches].some(F=>F.contains(I))||(a?.(P),i?.(P),P.defaultPrevented||c?.())},v);return Gr(P=>{w===d.layers.size-1&&(o?.(P),!P.defaultPrevented&&c&&(P.preventDefault(),c()))},v),s.useEffect(()=>{if(f)return n&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(Kt=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),Wt(),()=>{n&&d.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=Kt)}},[f,v,n,d]),s.useEffect(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),Wt())},[f,d]),s.useEffect(()=>{const P=()=>g({});return document.addEventListener(st,P),()=>document.removeEventListener(st,P)},[]),u.jsx(T.div,{...l,ref:x,style:{pointerEvents:C?R?"auto":"none":void 0,...e.style},onFocusCapture:E(e.onFocusCapture,O.onFocusCapture),onBlurCapture:E(e.onBlurCapture,O.onBlurCapture),onPointerDownCapture:E(e.onPointerDownCapture,_.onPointerDownCapture)})});_e.displayName=Hr;var Vr="DismissableLayerBranch",zr=s.forwardRef((e,t)=>{const n=s.useContext(on),o=s.useRef(null),r=M(t,o);return s.useEffect(()=>{const a=o.current;if(a)return n.branches.add(a),()=>{n.branches.delete(a)}},[n.branches]),u.jsx(T.div,{...e,ref:r})});zr.displayName=Vr;function Yr(e,t=globalThis?.document){const n=se(e),o=s.useRef(!1),r=s.useRef(()=>{});return s.useEffect(()=>{const a=c=>{if(c.target&&!o.current){let l=function(){rn(Kr,n,d,{discrete:!0})};const d={originalEvent:c};c.pointerType==="touch"?(t.removeEventListener("click",r.current),r.current=l,t.addEventListener("click",r.current,{once:!0})):l()}else t.removeEventListener("click",r.current);o.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",a),t.removeEventListener("click",r.current)}},[t,n]),{onPointerDownCapture:()=>o.current=!0}}function Xr(e,t=globalThis?.document){const n=se(e),o=s.useRef(!1);return s.useEffect(()=>{const r=a=>{a.target&&!o.current&&rn(Wr,n,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",r),()=>t.removeEventListener("focusin",r)},[t,n]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}function Wt(){const e=new CustomEvent(st);document.dispatchEvent(e)}function rn(e,t,n,{discrete:o}){const r=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),o?nn(r,a):r.dispatchEvent(a)}var U=globalThis?.document?s.useLayoutEffect:()=>{},qr=vt[" useId ".trim().toString()]||(()=>{}),Zr=0;function me(e){const[t,n]=s.useState(qr());return U(()=>{n(o=>o??String(Zr++))},[e]),t?`radix-${t}`:""}var Jr="Arrow",sn=s.forwardRef((e,t)=>{const{children:n,width:o=10,height:r=5,...a}=e;return u.jsx(T.svg,{...a,ref:t,width:o,height:r,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:u.jsx("polygon",{points:"0,0 30,0 15,10"})})});sn.displayName=Jr;var Qr=sn;function es(e){const[t,n]=s.useState(void 0);return U(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const o=new ResizeObserver(r=>{if(!Array.isArray(r)||!r.length)return;const a=r[0];let i,c;if("borderBoxSize"in a){const l=a.borderBoxSize,d=Array.isArray(l)?l[0]:l;i=d.inlineSize,c=d.blockSize}else i=e.offsetWidth,c=e.offsetHeight;n({width:i,height:c})});return o.observe(e,{box:"border-box"}),()=>o.unobserve(e)}else n(void 0)},[e]),t}var wt="Popper",[an,Ce]=ce(wt),[ts,cn]=an(wt),ln=e=>{const{__scopePopper:t,children:n}=e,[o,r]=s.useState(null);return u.jsx(ts,{scope:t,anchor:o,onAnchorChange:r,children:n})};ln.displayName=wt;var un="PopperAnchor",dn=s.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:o,...r}=e,a=cn(un,n),i=s.useRef(null),c=M(t,i),l=s.useRef(null);return s.useEffect(()=>{const d=l.current;l.current=o?.current||i.current,d!==l.current&&a.onAnchorChange(l.current)}),o?null:u.jsx(T.div,{...r,ref:c})});dn.displayName=un;var yt="PopperContent",[ns,os]=an(yt),fn=s.forwardRef((e,t)=>{const{__scopePopper:n,side:o="bottom",sideOffset:r=0,align:a="center",alignOffset:i=0,arrowPadding:c=0,avoidCollisions:l=!0,collisionBoundary:d=[],collisionPadding:f=0,sticky:p="partial",hideWhenDetached:v=!1,updatePositionStrategy:g="optimized",onPlaced:x,...m}=e,h=cn(yt,n),[y,w]=s.useState(null),C=M(t,S=>w(S)),[R,_]=s.useState(null),O=es(R),P=O?.width??0,I=O?.height??0,$=o+(a!=="center"?"-"+a:""),F=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},B=Array.isArray(d)?d:[d],G=B.length>0,H={padding:F,boundary:B.filter(ss),altBoundary:G},{refs:Y,floatingStyles:z,placement:k,isPositioned:X,middlewareData:j}=xr({strategy:"fixed",placement:$,whileElementsMounted:(...S)=>Pr(...S,{animationFrame:g==="always"}),elements:{reference:h.anchor},middleware:[wr({mainAxis:r+I,alignmentAxis:i}),l&&yr({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?Rr():void 0,...H}),l&&Cr({...H}),Er({...H,apply:({elements:S,rects:N,availableWidth:W,availableHeight:A})=>{const{width:D,height:L}=N.reference,Q=S.floating.style;Q.setProperty("--radix-popper-available-width",`${W}px`),Q.setProperty("--radix-popper-available-height",`${A}px`),Q.setProperty("--radix-popper-anchor-width",`${D}px`),Q.setProperty("--radix-popper-anchor-height",`${L}px`)}}),R&&Sr({element:R,padding:c}),as({arrowWidth:P,arrowHeight:I}),v&&br({strategy:"referenceHidden",...H})]}),[b,Z]=vn(k),K=se(x);U(()=>{X&&K?.()},[X,K]);const te=j.arrow?.x,ae=j.arrow?.y,J=j.arrow?.centerOffset!==0,[ie,q]=s.useState();return U(()=>{y&&q(window.getComputedStyle(y).zIndex)},[y]),u.jsx("div",{ref:Y.setFloating,"data-radix-popper-content-wrapper":"",style:{...z,transform:X?z.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ie,"--radix-popper-transform-origin":[j.transformOrigin?.x,j.transformOrigin?.y].join(" "),...j.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:u.jsx(ns,{scope:n,placedSide:b,onArrowChange:_,arrowX:te,arrowY:ae,shouldHideArrow:J,children:u.jsx(T.div,{"data-side":b,"data-align":Z,...m,ref:C,style:{...m.style,animation:X?void 0:"none"}})})})});fn.displayName=yt;var pn="PopperArrow",rs={top:"bottom",right:"left",bottom:"top",left:"right"},mn=s.forwardRef(function(t,n){const{__scopePopper:o,...r}=t,a=os(pn,o),i=rs[a.placedSide];return u.jsx("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:u.jsx(Qr,{...r,ref:n,style:{...r.style,display:"block"}})})});mn.displayName=pn;function ss(e){return e!==null}var as=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:o,middlewareData:r}=t,i=r.arrow?.centerOffset!==0,c=i?0:e.arrowWidth,l=i?0:e.arrowHeight,[d,f]=vn(n),p={start:"0%",center:"50%",end:"100%"}[f],v=(r.arrow?.x??0)+c/2,g=(r.arrow?.y??0)+l/2;let x="",m="";return d==="bottom"?(x=i?p:`${v}px`,m=`${-l}px`):d==="top"?(x=i?p:`${v}px`,m=`${o.floating.height+l}px`):d==="right"?(x=`${-l}px`,m=i?p:`${g}px`):d==="left"&&(x=`${o.floating.width+l}px`,m=i?p:`${g}px`),{data:{x,y:m}}}});function vn(e){const[t,n="center"]=e.split("-");return[t,n]}var hn=ln,Ct=dn,Et=fn,St=mn,is="Portal",Me=s.forwardRef((e,t)=>{const{container:n,...o}=e,[r,a]=s.useState(!1);U(()=>a(!0),[]);const i=n||r&&globalThis?.document?.body;return i?gr.createPortal(u.jsx(T.div,{...o,ref:t}),i):null});Me.displayName=is;function cs(e,t){return s.useReducer((n,o)=>t[n][o]??n,e)}var oe=e=>{const{present:t,children:n}=e,o=ls(t),r=typeof n=="function"?n({present:o.isPresent}):s.Children.only(n),a=M(o.ref,us(r));return typeof n=="function"||o.isPresent?s.cloneElement(r,{ref:a}):null};oe.displayName="Presence";function ls(e){const[t,n]=s.useState(),o=s.useRef(null),r=s.useRef(e),a=s.useRef("none"),i=e?"mounted":"unmounted",[c,l]=cs(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return s.useEffect(()=>{const d=je(o.current);a.current=c==="mounted"?d:"none"},[c]),U(()=>{const d=o.current,f=r.current;if(f!==e){const v=a.current,g=je(d);e?l("MOUNT"):g==="none"||d?.display==="none"?l("UNMOUNT"):l(f&&v!==g?"ANIMATION_OUT":"UNMOUNT"),r.current=e}},[e,l]),U(()=>{if(t){let d;const f=t.ownerDocument.defaultView??window,p=g=>{const m=je(o.current).includes(CSS.escape(g.animationName));if(g.target===t&&m&&(l("ANIMATION_END"),!r.current)){const h=t.style.animationFillMode;t.style.animationFillMode="forwards",d=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=h)})}},v=g=>{g.target===t&&(a.current=je(o.current))};return t.addEventListener("animationstart",v),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{f.clearTimeout(d),t.removeEventListener("animationstart",v),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:s.useCallback(d=>{o.current=d?getComputedStyle(d):null,n(d)},[])}}function je(e){return e?.animationName||"none"}function us(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var ds=vt[" useInsertionEffect ".trim().toString()]||U;function Ue({prop:e,defaultProp:t,onChange:n=()=>{},caller:o}){const[r,a,i]=fs({defaultProp:t,onChange:n}),c=e!==void 0,l=c?e:r;{const f=s.useRef(e!==void 0);s.useEffect(()=>{const p=f.current;p!==c&&console.warn(`${o} is changing from ${p?"controlled":"uncontrolled"} to ${c?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),f.current=c},[c,o])}const d=s.useCallback(f=>{if(c){const p=ps(f)?f(e):f;p!==e&&i.current?.(p)}else a(f)},[c,e,a,i]);return[l,d]}function fs({defaultProp:e,onChange:t}){const[n,o]=s.useState(e),r=s.useRef(n),a=s.useRef(t);return ds(()=>{a.current=t},[t]),s.useEffect(()=>{r.current!==n&&(a.current?.(n),r.current=n)},[n,r]),[n,o,a]}function ps(e){return typeof e=="function"}var gn=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),ms="VisuallyHidden",xn=s.forwardRef((e,t)=>u.jsx(T.span,{...e,ref:t,style:{...gn,...e.style}}));xn.displayName=ms;var vs=xn,[Ge]=ce("Tooltip",[Ce]),He=Ce(),wn="TooltipProvider",hs=700,at="tooltip.open",[gs,bt]=Ge(wn),yn=e=>{const{__scopeTooltip:t,delayDuration:n=hs,skipDelayDuration:o=300,disableHoverableContent:r=!1,children:a}=e,i=s.useRef(!0),c=s.useRef(!1),l=s.useRef(0);return s.useEffect(()=>{const d=l.current;return()=>window.clearTimeout(d)},[]),u.jsx(gs,{scope:t,isOpenDelayedRef:i,delayDuration:n,onOpen:s.useCallback(()=>{window.clearTimeout(l.current),i.current=!1},[]),onClose:s.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>i.current=!0,o)},[o]),isPointerInTransitRef:c,onPointerInTransitChange:s.useCallback(d=>{c.current=d},[]),disableHoverableContent:r,children:a})};yn.displayName=wn;var Re="Tooltip",[xs,Ne]=Ge(Re),Cn=e=>{const{__scopeTooltip:t,children:n,open:o,defaultOpen:r,onOpenChange:a,disableHoverableContent:i,delayDuration:c}=e,l=bt(Re,e.__scopeTooltip),d=He(t),[f,p]=s.useState(null),v=me(),g=s.useRef(0),x=i??l.disableHoverableContent,m=c??l.delayDuration,h=s.useRef(!1),[y,w]=Ue({prop:o,defaultProp:r??!1,onChange:P=>{P?(l.onOpen(),document.dispatchEvent(new CustomEvent(at))):l.onClose(),a?.(P)},caller:Re}),C=s.useMemo(()=>y?h.current?"delayed-open":"instant-open":"closed",[y]),R=s.useCallback(()=>{window.clearTimeout(g.current),g.current=0,h.current=!1,w(!0)},[w]),_=s.useCallback(()=>{window.clearTimeout(g.current),g.current=0,w(!1)},[w]),O=s.useCallback(()=>{window.clearTimeout(g.current),g.current=window.setTimeout(()=>{h.current=!0,w(!0),g.current=0},m)},[m,w]);return s.useEffect(()=>()=>{g.current&&(window.clearTimeout(g.current),g.current=0)},[]),u.jsx(hn,{...d,children:u.jsx(xs,{scope:t,contentId:v,open:y,stateAttribute:C,trigger:f,onTriggerChange:p,onTriggerEnter:s.useCallback(()=>{l.isOpenDelayedRef.current?O():R()},[l.isOpenDelayedRef,O,R]),onTriggerLeave:s.useCallback(()=>{x?_():(window.clearTimeout(g.current),g.current=0)},[_,x]),onOpen:R,onClose:_,disableHoverableContent:x,children:n})})};Cn.displayName=Re;var it="TooltipTrigger",En=s.forwardRef((e,t)=>{const{__scopeTooltip:n,...o}=e,r=Ne(it,n),a=bt(it,n),i=He(n),c=s.useRef(null),l=M(t,c,r.onTriggerChange),d=s.useRef(!1),f=s.useRef(!1),p=s.useCallback(()=>d.current=!1,[]);return s.useEffect(()=>()=>document.removeEventListener("pointerup",p),[p]),u.jsx(Ct,{asChild:!0,...i,children:u.jsx(T.button,{"aria-describedby":r.open?r.contentId:void 0,"data-state":r.stateAttribute,...o,ref:l,onPointerMove:E(e.onPointerMove,v=>{v.pointerType!=="touch"&&!f.current&&!a.isPointerInTransitRef.current&&(r.onTriggerEnter(),f.current=!0)}),onPointerLeave:E(e.onPointerLeave,()=>{r.onTriggerLeave(),f.current=!1}),onPointerDown:E(e.onPointerDown,()=>{r.open&&r.onClose(),d.current=!0,document.addEventListener("pointerup",p,{once:!0})}),onFocus:E(e.onFocus,()=>{d.current||r.onOpen()}),onBlur:E(e.onBlur,r.onClose),onClick:E(e.onClick,r.onClose)})})});En.displayName=it;var Rt="TooltipPortal",[ws,ys]=Ge(Rt,{forceMount:void 0}),Sn=e=>{const{__scopeTooltip:t,forceMount:n,children:o,container:r}=e,a=Ne(Rt,t);return u.jsx(ws,{scope:t,forceMount:n,children:u.jsx(oe,{present:n||a.open,children:u.jsx(Me,{asChild:!0,container:r,children:o})})})};Sn.displayName=Rt;var ye="TooltipContent",bn=s.forwardRef((e,t)=>{const n=ys(ye,e.__scopeTooltip),{forceMount:o=n.forceMount,side:r="top",...a}=e,i=Ne(ye,e.__scopeTooltip);return u.jsx(oe,{present:o||i.open,children:i.disableHoverableContent?u.jsx(Rn,{side:r,...a,ref:t}):u.jsx(Cs,{side:r,...a,ref:t})})}),Cs=s.forwardRef((e,t)=>{const n=Ne(ye,e.__scopeTooltip),o=bt(ye,e.__scopeTooltip),r=s.useRef(null),a=M(t,r),[i,c]=s.useState(null),{trigger:l,onClose:d}=n,f=r.current,{onPointerInTransitChange:p}=o,v=s.useCallback(()=>{c(null),p(!1)},[p]),g=s.useCallback((x,m)=>{const h=x.currentTarget,y={x:x.clientX,y:x.clientY},w=Ps(y,h.getBoundingClientRect()),C=Ts(y,w),R=Is(m.getBoundingClientRect()),_=Ms([...C,...R]);c(_),p(!0)},[p]);return s.useEffect(()=>()=>v(),[v]),s.useEffect(()=>{if(l&&f){const x=h=>g(h,f),m=h=>g(h,l);return l.addEventListener("pointerleave",x),f.addEventListener("pointerleave",m),()=>{l.removeEventListener("pointerleave",x),f.removeEventListener("pointerleave",m)}}},[l,f,g,v]),s.useEffect(()=>{if(i){const x=m=>{const h=m.target,y={x:m.clientX,y:m.clientY},w=l?.contains(h)||f?.contains(h),C=!_s(y,i);w?v():C&&(v(),d())};return document.addEventListener("pointermove",x),()=>document.removeEventListener("pointermove",x)}},[l,f,i,d,v]),u.jsx(Rn,{...e,ref:a})}),[Es,Ss]=Ge(Re,{isInside:!1}),bs=Fr("TooltipContent"),Rn=s.forwardRef((e,t)=>{const{__scopeTooltip:n,children:o,"aria-label":r,onEscapeKeyDown:a,onPointerDownOutside:i,...c}=e,l=Ne(ye,n),d=He(n),{onClose:f}=l;return s.useEffect(()=>(document.addEventListener(at,f),()=>document.removeEventListener(at,f)),[f]),s.useEffect(()=>{if(l.trigger){const p=v=>{v.target?.contains(l.trigger)&&f()};return window.addEventListener("scroll",p,{capture:!0}),()=>window.removeEventListener("scroll",p,{capture:!0})}},[l.trigger,f]),u.jsx(_e,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:i,onFocusOutside:p=>p.preventDefault(),onDismiss:f,children:u.jsxs(Et,{"data-state":l.stateAttribute,...d,...c,ref:t,style:{...c.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[u.jsx(bs,{children:o}),u.jsx(Es,{scope:n,isInside:!0,children:u.jsx(vs,{id:l.contentId,role:"tooltip",children:r||o})})]})})});bn.displayName=ye;var Pn="TooltipArrow",Rs=s.forwardRef((e,t)=>{const{__scopeTooltip:n,...o}=e,r=He(n);return Ss(Pn,n).isInside?null:u.jsx(St,{...r,...o,ref:t})});Rs.displayName=Pn;function Ps(e,t){const n=Math.abs(t.top-e.y),o=Math.abs(t.bottom-e.y),r=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,o,r,a)){case a:return"left";case r:return"right";case n:return"top";case o:return"bottom";default:throw new Error("unreachable")}}function Ts(e,t,n=5){const o=[];switch(t){case"top":o.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":o.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":o.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":o.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return o}function Is(e){const{top:t,right:n,bottom:o,left:r}=e;return[{x:r,y:t},{x:n,y:t},{x:n,y:o},{x:r,y:o}]}function _s(e,t){const{x:n,y:o}=e;let r=!1;for(let a=0,i=t.length-1;a<t.length;i=a++){const c=t[a],l=t[i],d=c.x,f=c.y,p=l.x,v=l.y;f>o!=v>o&&n<(p-d)*(o-f)/(v-f)+d&&(r=!r)}return r}function Ms(e){const t=e.slice();return t.sort((n,o)=>n.x<o.x?-1:n.x>o.x?1:n.y<o.y?-1:n.y>o.y?1:0),Ns(t)}function Ns(e){if(e.length<=1)return e.slice();const t=[];for(let o=0;o<e.length;o++){const r=e[o];for(;t.length>=2;){const a=t[t.length-1],i=t[t.length-2];if((a.x-i.x)*(r.y-i.y)>=(a.y-i.y)*(r.x-i.x))t.pop();else break}t.push(r)}t.pop();const n=[];for(let o=e.length-1;o>=0;o--){const r=e[o];for(;n.length>=2;){const a=n[n.length-1],i=n[n.length-2];if((a.x-i.x)*(r.y-i.y)>=(a.y-i.y)*(r.x-i.x))n.pop();else break}n.push(r)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var Ui=yn,Gi=Cn,Hi=En,Ki=Sn,Wi=bn;function Pt(e){const t=e+"CollectionProvider",[n,o]=ce(t),[r,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=m=>{const{scope:h,children:y}=m,w=pe.useRef(null),C=pe.useRef(new Map).current;return u.jsx(r,{scope:h,itemMap:C,collectionRef:w,children:y})};i.displayName=t;const c=e+"CollectionSlot",l=we(c),d=pe.forwardRef((m,h)=>{const{scope:y,children:w}=m,C=a(c,y),R=M(h,C.collectionRef);return u.jsx(l,{ref:R,children:w})});d.displayName=c;const f=e+"CollectionItemSlot",p="data-radix-collection-item",v=we(f),g=pe.forwardRef((m,h)=>{const{scope:y,children:w,...C}=m,R=pe.useRef(null),_=M(h,R),O=a(f,y);return pe.useEffect(()=>(O.itemMap.set(R,{ref:R,...C}),()=>{O.itemMap.delete(R)})),u.jsx(v,{[p]:"",ref:_,children:w})});g.displayName=f;function x(m){const h=a(e+"CollectionConsumer",m);return pe.useCallback(()=>{const w=h.collectionRef.current;if(!w)return[];const C=Array.from(w.querySelectorAll(`[${p}]`));return Array.from(h.itemMap.values()).sort((O,P)=>C.indexOf(O.ref.current)-C.indexOf(P.ref.current))},[h.collectionRef,h.itemMap])}return[{Provider:i,Slot:d,ItemSlot:g},x,o]}var As=s.createContext(void 0);function Tt(e){const t=s.useContext(As);return e||t||"ltr"}var tt=0;function It(){s.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Vt()),document.body.insertAdjacentElement("beforeend",e[1]??Vt()),tt++,()=>{tt===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),tt--}},[])}function Vt(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var nt="focusScope.autoFocusOnMount",ot="focusScope.autoFocusOnUnmount",zt={bubbles:!1,cancelable:!0},Ds="FocusScope",Ke=s.forwardRef((e,t)=>{const{loop:n=!1,trapped:o=!1,onMountAutoFocus:r,onUnmountAutoFocus:a,...i}=e,[c,l]=s.useState(null),d=se(r),f=se(a),p=s.useRef(null),v=M(t,m=>l(m)),g=s.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;s.useEffect(()=>{if(o){let m=function(C){if(g.paused||!c)return;const R=C.target;c.contains(R)?p.current=R:le(p.current,{select:!0})},h=function(C){if(g.paused||!c)return;const R=C.relatedTarget;R!==null&&(c.contains(R)||le(p.current,{select:!0}))},y=function(C){if(document.activeElement===document.body)for(const _ of C)_.removedNodes.length>0&&le(c)};document.addEventListener("focusin",m),document.addEventListener("focusout",h);const w=new MutationObserver(y);return c&&w.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",m),document.removeEventListener("focusout",h),w.disconnect()}}},[o,c,g.paused]),s.useEffect(()=>{if(c){Xt.add(g);const m=document.activeElement;if(!c.contains(m)){const y=new CustomEvent(nt,zt);c.addEventListener(nt,d),c.dispatchEvent(y),y.defaultPrevented||(Os($s(Tn(c)),{select:!0}),document.activeElement===m&&le(c))}return()=>{c.removeEventListener(nt,d),setTimeout(()=>{const y=new CustomEvent(ot,zt);c.addEventListener(ot,f),c.dispatchEvent(y),y.defaultPrevented||le(m??document.body,{select:!0}),c.removeEventListener(ot,f),Xt.remove(g)},0)}}},[c,d,f,g]);const x=s.useCallback(m=>{if(!n&&!o||g.paused)return;const h=m.key==="Tab"&&!m.altKey&&!m.ctrlKey&&!m.metaKey,y=document.activeElement;if(h&&y){const w=m.currentTarget,[C,R]=js(w);C&&R?!m.shiftKey&&y===R?(m.preventDefault(),n&&le(C,{select:!0})):m.shiftKey&&y===C&&(m.preventDefault(),n&&le(R,{select:!0})):y===w&&m.preventDefault()}},[n,o,g.paused]);return u.jsx(T.div,{tabIndex:-1,...i,ref:v,onKeyDown:x})});Ke.displayName=Ds;function Os(e,{select:t=!1}={}){const n=document.activeElement;for(const o of e)if(le(o,{select:t}),document.activeElement!==n)return}function js(e){const t=Tn(e),n=Yt(t,e),o=Yt(t.reverse(),e);return[n,o]}function Tn(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const r=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||r?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Yt(e,t){for(const n of e)if(!Ls(n,{upTo:t}))return n}function Ls(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function Fs(e){return e instanceof HTMLInputElement&&"select"in e}function le(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Fs(e)&&t&&e.select()}}var Xt=ks();function ks(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=qt(e,t),e.unshift(t)},remove(t){e=qt(e,t),e[0]?.resume()}}}function qt(e,t){const n=[...e],o=n.indexOf(t);return o!==-1&&n.splice(o,1),n}function $s(e){return e.filter(t=>t.tagName!=="A")}var rt="rovingFocusGroup.onEntryFocus",Bs={bubbles:!1,cancelable:!0},Ae="RovingFocusGroup",[ct,In,Us]=Pt(Ae),[Gs,We]=ce(Ae,[Us]),[Hs,Ks]=Gs(Ae),_n=s.forwardRef((e,t)=>u.jsx(ct.Provider,{scope:e.__scopeRovingFocusGroup,children:u.jsx(ct.Slot,{scope:e.__scopeRovingFocusGroup,children:u.jsx(Ws,{...e,ref:t})})}));_n.displayName=Ae;var Ws=s.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:o,loop:r=!1,dir:a,currentTabStopId:i,defaultCurrentTabStopId:c,onCurrentTabStopIdChange:l,onEntryFocus:d,preventScrollOnEntryFocus:f=!1,...p}=e,v=s.useRef(null),g=M(t,v),x=Tt(a),[m,h]=Ue({prop:i,defaultProp:c??null,onChange:l,caller:Ae}),[y,w]=s.useState(!1),C=se(d),R=In(n),_=s.useRef(!1),[O,P]=s.useState(0);return s.useEffect(()=>{const I=v.current;if(I)return I.addEventListener(rt,C),()=>I.removeEventListener(rt,C)},[C]),u.jsx(Hs,{scope:n,orientation:o,dir:x,loop:r,currentTabStopId:m,onItemFocus:s.useCallback(I=>h(I),[h]),onItemShiftTab:s.useCallback(()=>w(!0),[]),onFocusableItemAdd:s.useCallback(()=>P(I=>I+1),[]),onFocusableItemRemove:s.useCallback(()=>P(I=>I-1),[]),children:u.jsx(T.div,{tabIndex:y||O===0?-1:0,"data-orientation":o,...p,ref:g,style:{outline:"none",...e.style},onMouseDown:E(e.onMouseDown,()=>{_.current=!0}),onFocus:E(e.onFocus,I=>{const $=!_.current;if(I.target===I.currentTarget&&$&&!y){const F=new CustomEvent(rt,Bs);if(I.currentTarget.dispatchEvent(F),!F.defaultPrevented){const B=R().filter(k=>k.focusable),G=B.find(k=>k.active),H=B.find(k=>k.id===m),z=[G,H,...B].filter(Boolean).map(k=>k.ref.current);An(z,f)}}_.current=!1}),onBlur:E(e.onBlur,()=>w(!1))})})}),Mn="RovingFocusGroupItem",Nn=s.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:o=!0,active:r=!1,tabStopId:a,children:i,...c}=e,l=me(),d=a||l,f=Ks(Mn,n),p=f.currentTabStopId===d,v=In(n),{onFocusableItemAdd:g,onFocusableItemRemove:x,currentTabStopId:m}=f;return s.useEffect(()=>{if(o)return g(),()=>x()},[o,g,x]),u.jsx(ct.ItemSlot,{scope:n,id:d,focusable:o,active:r,children:u.jsx(T.span,{tabIndex:p?0:-1,"data-orientation":f.orientation,...c,ref:t,onMouseDown:E(e.onMouseDown,h=>{o?f.onItemFocus(d):h.preventDefault()}),onFocus:E(e.onFocus,()=>f.onItemFocus(d)),onKeyDown:E(e.onKeyDown,h=>{if(h.key==="Tab"&&h.shiftKey){f.onItemShiftTab();return}if(h.target!==h.currentTarget)return;const y=Ys(h,f.orientation,f.dir);if(y!==void 0){if(h.metaKey||h.ctrlKey||h.altKey||h.shiftKey)return;h.preventDefault();let C=v().filter(R=>R.focusable).map(R=>R.ref.current);if(y==="last")C.reverse();else if(y==="prev"||y==="next"){y==="prev"&&C.reverse();const R=C.indexOf(h.currentTarget);C=f.loop?Xs(C,R+1):C.slice(R+1)}setTimeout(()=>An(C))}}),children:typeof i=="function"?i({isCurrentTabStop:p,hasTabStop:m!=null}):i})})});Nn.displayName=Mn;var Vs={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function zs(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function Ys(e,t,n){const o=zs(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(o))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(o)))return Vs[o]}function An(e,t=!1){const n=document.activeElement;for(const o of e)if(o===n||(o.focus({preventScroll:t}),document.activeElement!==n))return}function Xs(e,t){return e.map((n,o)=>e[(t+o)%e.length])}var Dn=_n,On=Nn,lt=["Enter"," "],qs=["ArrowDown","PageUp","Home"],jn=["ArrowUp","PageDown","End"],Zs=[...qs,...jn],Js={ltr:[...lt,"ArrowRight"],rtl:[...lt,"ArrowLeft"]},Qs={ltr:["ArrowLeft"],rtl:["ArrowRight"]},De="Menu",[Pe,ea,ta]=Pt(De),[ge,Ln]=ce(De,[ta,Ce,We]),Ve=Ce(),Fn=We(),[na,xe]=ge(De),[oa,Oe]=ge(De),kn=e=>{const{__scopeMenu:t,open:n=!1,children:o,dir:r,onOpenChange:a,modal:i=!0}=e,c=Ve(t),[l,d]=s.useState(null),f=s.useRef(!1),p=se(a),v=Tt(r);return s.useEffect(()=>{const g=()=>{f.current=!0,document.addEventListener("pointerdown",x,{capture:!0,once:!0}),document.addEventListener("pointermove",x,{capture:!0,once:!0})},x=()=>f.current=!1;return document.addEventListener("keydown",g,{capture:!0}),()=>{document.removeEventListener("keydown",g,{capture:!0}),document.removeEventListener("pointerdown",x,{capture:!0}),document.removeEventListener("pointermove",x,{capture:!0})}},[]),u.jsx(hn,{...c,children:u.jsx(na,{scope:t,open:n,onOpenChange:p,content:l,onContentChange:d,children:u.jsx(oa,{scope:t,onClose:s.useCallback(()=>p(!1),[p]),isUsingKeyboardRef:f,dir:v,modal:i,children:o})})})};kn.displayName=De;var ra="MenuAnchor",_t=s.forwardRef((e,t)=>{const{__scopeMenu:n,...o}=e,r=Ve(n);return u.jsx(Ct,{...r,...o,ref:t})});_t.displayName=ra;var Mt="MenuPortal",[sa,$n]=ge(Mt,{forceMount:void 0}),Bn=e=>{const{__scopeMenu:t,forceMount:n,children:o,container:r}=e,a=xe(Mt,t);return u.jsx(sa,{scope:t,forceMount:n,children:u.jsx(oe,{present:n||a.open,children:u.jsx(Me,{asChild:!0,container:r,children:o})})})};Bn.displayName=Mt;var ee="MenuContent",[aa,Nt]=ge(ee),Un=s.forwardRef((e,t)=>{const n=$n(ee,e.__scopeMenu),{forceMount:o=n.forceMount,...r}=e,a=xe(ee,e.__scopeMenu),i=Oe(ee,e.__scopeMenu);return u.jsx(Pe.Provider,{scope:e.__scopeMenu,children:u.jsx(oe,{present:o||a.open,children:u.jsx(Pe.Slot,{scope:e.__scopeMenu,children:i.modal?u.jsx(ia,{...r,ref:t}):u.jsx(ca,{...r,ref:t})})})})}),ia=s.forwardRef((e,t)=>{const n=xe(ee,e.__scopeMenu),o=s.useRef(null),r=M(t,o);return s.useEffect(()=>{const a=o.current;if(a)return xt(a)},[]),u.jsx(At,{...e,ref:r,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:E(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),ca=s.forwardRef((e,t)=>{const n=xe(ee,e.__scopeMenu);return u.jsx(At,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),la=we("MenuContent.ScrollLock"),At=s.forwardRef((e,t)=>{const{__scopeMenu:n,loop:o=!1,trapFocus:r,onOpenAutoFocus:a,onCloseAutoFocus:i,disableOutsidePointerEvents:c,onEntryFocus:l,onEscapeKeyDown:d,onPointerDownOutside:f,onFocusOutside:p,onInteractOutside:v,onDismiss:g,disableOutsideScroll:x,...m}=e,h=xe(ee,n),y=Oe(ee,n),w=Ve(n),C=Fn(n),R=ea(n),[_,O]=s.useState(null),P=s.useRef(null),I=M(t,P,h.onContentChange),$=s.useRef(0),F=s.useRef(""),B=s.useRef(0),G=s.useRef(null),H=s.useRef("right"),Y=s.useRef(0),z=x?gt:s.Fragment,k=x?{as:la,allowPinchZoom:!0}:void 0,X=b=>{const Z=F.current+b,K=R().filter(S=>!S.disabled),te=document.activeElement,ae=K.find(S=>S.ref.current===te)?.textValue,J=K.map(S=>S.textValue),ie=Ca(J,Z,ae),q=K.find(S=>S.textValue===ie)?.ref.current;(function S(N){F.current=N,window.clearTimeout($.current),N!==""&&($.current=window.setTimeout(()=>S(""),1e3))})(Z),q&&setTimeout(()=>q.focus())};s.useEffect(()=>()=>window.clearTimeout($.current),[]),It();const j=s.useCallback(b=>H.current===G.current?.side&&Sa(b,G.current?.area),[]);return u.jsx(aa,{scope:n,searchRef:F,onItemEnter:s.useCallback(b=>{j(b)&&b.preventDefault()},[j]),onItemLeave:s.useCallback(b=>{j(b)||(P.current?.focus(),O(null))},[j]),onTriggerLeave:s.useCallback(b=>{j(b)&&b.preventDefault()},[j]),pointerGraceTimerRef:B,onPointerGraceIntentChange:s.useCallback(b=>{G.current=b},[]),children:u.jsx(z,{...k,children:u.jsx(Ke,{asChild:!0,trapped:r,onMountAutoFocus:E(a,b=>{b.preventDefault(),P.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:i,children:u.jsx(_e,{asChild:!0,disableOutsidePointerEvents:c,onEscapeKeyDown:d,onPointerDownOutside:f,onFocusOutside:p,onInteractOutside:v,onDismiss:g,children:u.jsx(Dn,{asChild:!0,...C,dir:y.dir,orientation:"vertical",loop:o,currentTabStopId:_,onCurrentTabStopIdChange:O,onEntryFocus:E(l,b=>{y.isUsingKeyboardRef.current||b.preventDefault()}),preventScrollOnEntryFocus:!0,children:u.jsx(Et,{role:"menu","aria-orientation":"vertical","data-state":oo(h.open),"data-radix-menu-content":"",dir:y.dir,...w,...m,ref:I,style:{outline:"none",...m.style},onKeyDown:E(m.onKeyDown,b=>{const K=b.target.closest("[data-radix-menu-content]")===b.currentTarget,te=b.ctrlKey||b.altKey||b.metaKey,ae=b.key.length===1;K&&(b.key==="Tab"&&b.preventDefault(),!te&&ae&&X(b.key));const J=P.current;if(b.target!==J||!Zs.includes(b.key))return;b.preventDefault();const q=R().filter(S=>!S.disabled).map(S=>S.ref.current);jn.includes(b.key)&&q.reverse(),wa(q)}),onBlur:E(e.onBlur,b=>{b.currentTarget.contains(b.target)||(window.clearTimeout($.current),F.current="")}),onPointerMove:E(e.onPointerMove,Te(b=>{const Z=b.target,K=Y.current!==b.clientX;if(b.currentTarget.contains(Z)&&K){const te=b.clientX>Y.current?"right":"left";H.current=te,Y.current=b.clientX}}))})})})})})})});Un.displayName=ee;var ua="MenuGroup",Dt=s.forwardRef((e,t)=>{const{__scopeMenu:n,...o}=e;return u.jsx(T.div,{role:"group",...o,ref:t})});Dt.displayName=ua;var da="MenuLabel",Gn=s.forwardRef((e,t)=>{const{__scopeMenu:n,...o}=e;return u.jsx(T.div,{...o,ref:t})});Gn.displayName=da;var Fe="MenuItem",Zt="menu.itemSelect",ze=s.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:o,...r}=e,a=s.useRef(null),i=Oe(Fe,e.__scopeMenu),c=Nt(Fe,e.__scopeMenu),l=M(t,a),d=s.useRef(!1),f=()=>{const p=a.current;if(!n&&p){const v=new CustomEvent(Zt,{bubbles:!0,cancelable:!0});p.addEventListener(Zt,g=>o?.(g),{once:!0}),nn(p,v),v.defaultPrevented?d.current=!1:i.onClose()}};return u.jsx(Hn,{...r,ref:l,disabled:n,onClick:E(e.onClick,f),onPointerDown:p=>{e.onPointerDown?.(p),d.current=!0},onPointerUp:E(e.onPointerUp,p=>{d.current||p.currentTarget?.click()}),onKeyDown:E(e.onKeyDown,p=>{const v=c.searchRef.current!=="";n||v&&p.key===" "||lt.includes(p.key)&&(p.currentTarget.click(),p.preventDefault())})})});ze.displayName=Fe;var Hn=s.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:o=!1,textValue:r,...a}=e,i=Nt(Fe,n),c=Fn(n),l=s.useRef(null),d=M(t,l),[f,p]=s.useState(!1),[v,g]=s.useState("");return s.useEffect(()=>{const x=l.current;x&&g((x.textContent??"").trim())},[a.children]),u.jsx(Pe.ItemSlot,{scope:n,disabled:o,textValue:r??v,children:u.jsx(On,{asChild:!0,...c,focusable:!o,children:u.jsx(T.div,{role:"menuitem","data-highlighted":f?"":void 0,"aria-disabled":o||void 0,"data-disabled":o?"":void 0,...a,ref:d,onPointerMove:E(e.onPointerMove,Te(x=>{o?i.onItemLeave(x):(i.onItemEnter(x),x.defaultPrevented||x.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:E(e.onPointerLeave,Te(x=>i.onItemLeave(x))),onFocus:E(e.onFocus,()=>p(!0)),onBlur:E(e.onBlur,()=>p(!1))})})})}),fa="MenuCheckboxItem",Kn=s.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:o,...r}=e;return u.jsx(Xn,{scope:e.__scopeMenu,checked:n,children:u.jsx(ze,{role:"menuitemcheckbox","aria-checked":ke(n)?"mixed":n,...r,ref:t,"data-state":jt(n),onSelect:E(r.onSelect,()=>o?.(ke(n)?!0:!n),{checkForDefaultPrevented:!1})})})});Kn.displayName=fa;var Wn="MenuRadioGroup",[pa,ma]=ge(Wn,{value:void 0,onValueChange:()=>{}}),Vn=s.forwardRef((e,t)=>{const{value:n,onValueChange:o,...r}=e,a=se(o);return u.jsx(pa,{scope:e.__scopeMenu,value:n,onValueChange:a,children:u.jsx(Dt,{...r,ref:t})})});Vn.displayName=Wn;var zn="MenuRadioItem",Yn=s.forwardRef((e,t)=>{const{value:n,...o}=e,r=ma(zn,e.__scopeMenu),a=n===r.value;return u.jsx(Xn,{scope:e.__scopeMenu,checked:a,children:u.jsx(ze,{role:"menuitemradio","aria-checked":a,...o,ref:t,"data-state":jt(a),onSelect:E(o.onSelect,()=>r.onValueChange?.(n),{checkForDefaultPrevented:!1})})})});Yn.displayName=zn;var Ot="MenuItemIndicator",[Xn,va]=ge(Ot,{checked:!1}),qn=s.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:o,...r}=e,a=va(Ot,n);return u.jsx(oe,{present:o||ke(a.checked)||a.checked===!0,children:u.jsx(T.span,{...r,ref:t,"data-state":jt(a.checked)})})});qn.displayName=Ot;var ha="MenuSeparator",Zn=s.forwardRef((e,t)=>{const{__scopeMenu:n,...o}=e;return u.jsx(T.div,{role:"separator","aria-orientation":"horizontal",...o,ref:t})});Zn.displayName=ha;var ga="MenuArrow",Jn=s.forwardRef((e,t)=>{const{__scopeMenu:n,...o}=e,r=Ve(n);return u.jsx(St,{...r,...o,ref:t})});Jn.displayName=ga;var xa="MenuSub",[Vi,Qn]=ge(xa),Se="MenuSubTrigger",eo=s.forwardRef((e,t)=>{const n=xe(Se,e.__scopeMenu),o=Oe(Se,e.__scopeMenu),r=Qn(Se,e.__scopeMenu),a=Nt(Se,e.__scopeMenu),i=s.useRef(null),{pointerGraceTimerRef:c,onPointerGraceIntentChange:l}=a,d={__scopeMenu:e.__scopeMenu},f=s.useCallback(()=>{i.current&&window.clearTimeout(i.current),i.current=null},[]);return s.useEffect(()=>f,[f]),s.useEffect(()=>{const p=c.current;return()=>{window.clearTimeout(p),l(null)}},[c,l]),u.jsx(_t,{asChild:!0,...d,children:u.jsx(Hn,{id:r.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":r.contentId,"data-state":oo(n.open),...e,ref:Ie(t,r.onTriggerChange),onClick:p=>{e.onClick?.(p),!(e.disabled||p.defaultPrevented)&&(p.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:E(e.onPointerMove,Te(p=>{a.onItemEnter(p),!p.defaultPrevented&&!e.disabled&&!n.open&&!i.current&&(a.onPointerGraceIntentChange(null),i.current=window.setTimeout(()=>{n.onOpenChange(!0),f()},100))})),onPointerLeave:E(e.onPointerLeave,Te(p=>{f();const v=n.content?.getBoundingClientRect();if(v){const g=n.content?.dataset.side,x=g==="right",m=x?-5:5,h=v[x?"left":"right"],y=v[x?"right":"left"];a.onPointerGraceIntentChange({area:[{x:p.clientX+m,y:p.clientY},{x:h,y:v.top},{x:y,y:v.top},{x:y,y:v.bottom},{x:h,y:v.bottom}],side:g}),window.clearTimeout(c.current),c.current=window.setTimeout(()=>a.onPointerGraceIntentChange(null),300)}else{if(a.onTriggerLeave(p),p.defaultPrevented)return;a.onPointerGraceIntentChange(null)}})),onKeyDown:E(e.onKeyDown,p=>{const v=a.searchRef.current!=="";e.disabled||v&&p.key===" "||Js[o.dir].includes(p.key)&&(n.onOpenChange(!0),n.content?.focus(),p.preventDefault())})})})});eo.displayName=Se;var to="MenuSubContent",no=s.forwardRef((e,t)=>{const n=$n(ee,e.__scopeMenu),{forceMount:o=n.forceMount,...r}=e,a=xe(ee,e.__scopeMenu),i=Oe(ee,e.__scopeMenu),c=Qn(to,e.__scopeMenu),l=s.useRef(null),d=M(t,l);return u.jsx(Pe.Provider,{scope:e.__scopeMenu,children:u.jsx(oe,{present:o||a.open,children:u.jsx(Pe.Slot,{scope:e.__scopeMenu,children:u.jsx(At,{id:c.contentId,"aria-labelledby":c.triggerId,...r,ref:d,align:"start",side:i.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:f=>{i.isUsingKeyboardRef.current&&l.current?.focus(),f.preventDefault()},onCloseAutoFocus:f=>f.preventDefault(),onFocusOutside:E(e.onFocusOutside,f=>{f.target!==c.trigger&&a.onOpenChange(!1)}),onEscapeKeyDown:E(e.onEscapeKeyDown,f=>{i.onClose(),f.preventDefault()}),onKeyDown:E(e.onKeyDown,f=>{const p=f.currentTarget.contains(f.target),v=Qs[i.dir].includes(f.key);p&&v&&(a.onOpenChange(!1),c.trigger?.focus(),f.preventDefault())})})})})})});no.displayName=to;function oo(e){return e?"open":"closed"}function ke(e){return e==="indeterminate"}function jt(e){return ke(e)?"indeterminate":e?"checked":"unchecked"}function wa(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function ya(e,t){return e.map((n,o)=>e[(t+o)%e.length])}function Ca(e,t,n){const r=t.length>1&&Array.from(t).every(d=>d===t[0])?t[0]:t,a=n?e.indexOf(n):-1;let i=ya(e,Math.max(a,0));r.length===1&&(i=i.filter(d=>d!==n));const l=i.find(d=>d.toLowerCase().startsWith(r.toLowerCase()));return l!==n?l:void 0}function Ea(e,t){const{x:n,y:o}=e;let r=!1;for(let a=0,i=t.length-1;a<t.length;i=a++){const c=t[a],l=t[i],d=c.x,f=c.y,p=l.x,v=l.y;f>o!=v>o&&n<(p-d)*(o-f)/(v-f)+d&&(r=!r)}return r}function Sa(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return Ea(n,t)}function Te(e){return t=>t.pointerType==="mouse"?e(t):void 0}var ba=kn,Ra=_t,Pa=Bn,Ta=Un,Ia=Dt,_a=Gn,Ma=ze,Na=Kn,Aa=Vn,Da=Yn,Oa=qn,ja=Zn,La=Jn,Fa=eo,ka=no,Ye="DropdownMenu",[$a]=ce(Ye,[Ln]),V=Ln(),[Ba,ro]=$a(Ye),so=e=>{const{__scopeDropdownMenu:t,children:n,dir:o,open:r,defaultOpen:a,onOpenChange:i,modal:c=!0}=e,l=V(t),d=s.useRef(null),[f,p]=Ue({prop:r,defaultProp:a??!1,onChange:i,caller:Ye});return u.jsx(Ba,{scope:t,triggerId:me(),triggerRef:d,contentId:me(),open:f,onOpenChange:p,onOpenToggle:s.useCallback(()=>p(v=>!v),[p]),modal:c,children:u.jsx(ba,{...l,open:f,onOpenChange:p,dir:o,modal:c,children:n})})};so.displayName=Ye;var ao="DropdownMenuTrigger",io=s.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:o=!1,...r}=e,a=ro(ao,n),i=V(n);return u.jsx(Ra,{asChild:!0,...i,children:u.jsx(T.button,{type:"button",id:a.triggerId,"aria-haspopup":"menu","aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?"open":"closed","data-disabled":o?"":void 0,disabled:o,...r,ref:Ie(t,a.triggerRef),onPointerDown:E(e.onPointerDown,c=>{!o&&c.button===0&&c.ctrlKey===!1&&(a.onOpenToggle(),a.open||c.preventDefault())}),onKeyDown:E(e.onKeyDown,c=>{o||(["Enter"," "].includes(c.key)&&a.onOpenToggle(),c.key==="ArrowDown"&&a.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(c.key)&&c.preventDefault())})})})});io.displayName=ao;var Ua="DropdownMenuPortal",co=e=>{const{__scopeDropdownMenu:t,...n}=e,o=V(t);return u.jsx(Pa,{...o,...n})};co.displayName=Ua;var lo="DropdownMenuContent",uo=s.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=ro(lo,n),a=V(n),i=s.useRef(!1);return u.jsx(Ta,{id:r.contentId,"aria-labelledby":r.triggerId,...a,...o,ref:t,onCloseAutoFocus:E(e.onCloseAutoFocus,c=>{i.current||r.triggerRef.current?.focus(),i.current=!1,c.preventDefault()}),onInteractOutside:E(e.onInteractOutside,c=>{const l=c.detail.originalEvent,d=l.button===0&&l.ctrlKey===!0,f=l.button===2||d;(!r.modal||f)&&(i.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});uo.displayName=lo;var Ga="DropdownMenuGroup",Ha=s.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=V(n);return u.jsx(Ia,{...r,...o,ref:t})});Ha.displayName=Ga;var Ka="DropdownMenuLabel",fo=s.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=V(n);return u.jsx(_a,{...r,...o,ref:t})});fo.displayName=Ka;var Wa="DropdownMenuItem",po=s.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=V(n);return u.jsx(Ma,{...r,...o,ref:t})});po.displayName=Wa;var Va="DropdownMenuCheckboxItem",mo=s.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=V(n);return u.jsx(Na,{...r,...o,ref:t})});mo.displayName=Va;var za="DropdownMenuRadioGroup",Ya=s.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=V(n);return u.jsx(Aa,{...r,...o,ref:t})});Ya.displayName=za;var Xa="DropdownMenuRadioItem",vo=s.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=V(n);return u.jsx(Da,{...r,...o,ref:t})});vo.displayName=Xa;var qa="DropdownMenuItemIndicator",ho=s.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=V(n);return u.jsx(Oa,{...r,...o,ref:t})});ho.displayName=qa;var Za="DropdownMenuSeparator",go=s.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=V(n);return u.jsx(ja,{...r,...o,ref:t})});go.displayName=Za;var Ja="DropdownMenuArrow",Qa=s.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=V(n);return u.jsx(La,{...r,...o,ref:t})});Qa.displayName=Ja;var ei="DropdownMenuSubTrigger",xo=s.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=V(n);return u.jsx(Fa,{...r,...o,ref:t})});xo.displayName=ei;var ti="DropdownMenuSubContent",wo=s.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=V(n);return u.jsx(ka,{...r,...o,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});wo.displayName=ti;var zi=so,Yi=io,Xi=co,qi=uo,Zi=fo,Ji=po,Qi=mo,ec=vo,tc=ho,nc=go,oc=xo,rc=wo,Xe="Tabs",[ni]=ce(Xe,[We]),yo=We(),[oi,Lt]=ni(Xe),Co=s.forwardRef((e,t)=>{const{__scopeTabs:n,value:o,onValueChange:r,defaultValue:a,orientation:i="horizontal",dir:c,activationMode:l="automatic",...d}=e,f=Tt(c),[p,v]=Ue({prop:o,onChange:r,defaultProp:a??"",caller:Xe});return u.jsx(oi,{scope:n,baseId:me(),value:p,onValueChange:v,orientation:i,dir:f,activationMode:l,children:u.jsx(T.div,{dir:f,"data-orientation":i,...d,ref:t})})});Co.displayName=Xe;var Eo="TabsList",So=s.forwardRef((e,t)=>{const{__scopeTabs:n,loop:o=!0,...r}=e,a=Lt(Eo,n),i=yo(n);return u.jsx(Dn,{asChild:!0,...i,orientation:a.orientation,dir:a.dir,loop:o,children:u.jsx(T.div,{role:"tablist","aria-orientation":a.orientation,...r,ref:t})})});So.displayName=Eo;var bo="TabsTrigger",Ro=s.forwardRef((e,t)=>{const{__scopeTabs:n,value:o,disabled:r=!1,...a}=e,i=Lt(bo,n),c=yo(n),l=Io(i.baseId,o),d=_o(i.baseId,o),f=o===i.value;return u.jsx(On,{asChild:!0,...c,focusable:!r,active:f,children:u.jsx(T.button,{type:"button",role:"tab","aria-selected":f,"aria-controls":d,"data-state":f?"active":"inactive","data-disabled":r?"":void 0,disabled:r,id:l,...a,ref:t,onMouseDown:E(e.onMouseDown,p=>{!r&&p.button===0&&p.ctrlKey===!1?i.onValueChange(o):p.preventDefault()}),onKeyDown:E(e.onKeyDown,p=>{[" ","Enter"].includes(p.key)&&i.onValueChange(o)}),onFocus:E(e.onFocus,()=>{const p=i.activationMode!=="manual";!f&&!r&&p&&i.onValueChange(o)})})})});Ro.displayName=bo;var Po="TabsContent",To=s.forwardRef((e,t)=>{const{__scopeTabs:n,value:o,forceMount:r,children:a,...i}=e,c=Lt(Po,n),l=Io(c.baseId,o),d=_o(c.baseId,o),f=o===c.value,p=s.useRef(f);return s.useEffect(()=>{const v=requestAnimationFrame(()=>p.current=!1);return()=>cancelAnimationFrame(v)},[]),u.jsx(oe,{present:r||f,children:({present:v})=>u.jsx(T.div,{"data-state":f?"active":"inactive","data-orientation":c.orientation,role:"tabpanel","aria-labelledby":l,hidden:!v,id:d,tabIndex:0,...i,ref:t,style:{...e.style,animationDuration:p.current?"0s":void 0},children:v&&a})})});To.displayName=Po;function Io(e,t){return`${e}-trigger-${t}`}function _o(e,t){return`${e}-content-${t}`}var sc=Co,ac=So,ic=Ro,cc=To,Mo="Dialog",[No]=ce(Mo),[lc,re]=No(Mo),Ao="DialogTrigger",ri=s.forwardRef((e,t)=>{const{__scopeDialog:n,...o}=e,r=re(Ao,n),a=M(t,r.triggerRef);return u.jsx(T.button,{type:"button","aria-haspopup":"dialog","aria-expanded":r.open,"aria-controls":r.contentId,"data-state":$t(r.open),...o,ref:a,onClick:E(e.onClick,r.onOpenToggle)})});ri.displayName=Ao;var Ft="DialogPortal",[si,Do]=No(Ft,{forceMount:void 0}),Oo=e=>{const{__scopeDialog:t,forceMount:n,children:o,container:r}=e,a=re(Ft,t);return u.jsx(si,{scope:t,forceMount:n,children:s.Children.map(o,i=>u.jsx(oe,{present:n||a.open,children:u.jsx(Me,{asChild:!0,container:r,children:i})}))})};Oo.displayName=Ft;var $e="DialogOverlay",jo=s.forwardRef((e,t)=>{const n=Do($e,e.__scopeDialog),{forceMount:o=n.forceMount,...r}=e,a=re($e,e.__scopeDialog);return a.modal?u.jsx(oe,{present:o||a.open,children:u.jsx(ii,{...r,ref:t})}):null});jo.displayName=$e;var ai=we("DialogOverlay.RemoveScroll"),ii=s.forwardRef((e,t)=>{const{__scopeDialog:n,...o}=e,r=re($e,n);return u.jsx(gt,{as:ai,allowPinchZoom:!0,shards:[r.contentRef],children:u.jsx(T.div,{"data-state":$t(r.open),...o,ref:t,style:{pointerEvents:"auto",...o.style}})})}),ve="DialogContent",Lo=s.forwardRef((e,t)=>{const n=Do(ve,e.__scopeDialog),{forceMount:o=n.forceMount,...r}=e,a=re(ve,e.__scopeDialog);return u.jsx(oe,{present:o||a.open,children:a.modal?u.jsx(ci,{...r,ref:t}):u.jsx(li,{...r,ref:t})})});Lo.displayName=ve;var ci=s.forwardRef((e,t)=>{const n=re(ve,e.__scopeDialog),o=s.useRef(null),r=M(t,n.contentRef,o);return s.useEffect(()=>{const a=o.current;if(a)return xt(a)},[]),u.jsx(Fo,{...e,ref:r,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:E(e.onCloseAutoFocus,a=>{a.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:E(e.onPointerDownOutside,a=>{const i=a.detail.originalEvent,c=i.button===0&&i.ctrlKey===!0;(i.button===2||c)&&a.preventDefault()}),onFocusOutside:E(e.onFocusOutside,a=>a.preventDefault())})}),li=s.forwardRef((e,t)=>{const n=re(ve,e.__scopeDialog),o=s.useRef(!1),r=s.useRef(!1);return u.jsx(Fo,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{e.onCloseAutoFocus?.(a),a.defaultPrevented||(o.current||n.triggerRef.current?.focus(),a.preventDefault()),o.current=!1,r.current=!1},onInteractOutside:a=>{e.onInteractOutside?.(a),a.defaultPrevented||(o.current=!0,a.detail.originalEvent.type==="pointerdown"&&(r.current=!0));const i=a.target;n.triggerRef.current?.contains(i)&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&r.current&&a.preventDefault()}})}),Fo=s.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:o,onOpenAutoFocus:r,onCloseAutoFocus:a,...i}=e,c=re(ve,n),l=s.useRef(null),d=M(t,l);return It(),u.jsxs(u.Fragment,{children:[u.jsx(Ke,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:r,onUnmountAutoFocus:a,children:u.jsx(_e,{role:"dialog",id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":$t(c.open),...i,ref:d,onDismiss:()=>c.onOpenChange(!1)})}),u.jsxs(u.Fragment,{children:[u.jsx(ui,{titleId:c.titleId}),u.jsx(fi,{contentRef:l,descriptionId:c.descriptionId})]})]})}),kt="DialogTitle",ko=s.forwardRef((e,t)=>{const{__scopeDialog:n,...o}=e,r=re(kt,n);return u.jsx(T.h2,{id:r.titleId,...o,ref:t})});ko.displayName=kt;var $o="DialogDescription",Bo=s.forwardRef((e,t)=>{const{__scopeDialog:n,...o}=e,r=re($o,n);return u.jsx(T.p,{id:r.descriptionId,...o,ref:t})});Bo.displayName=$o;var Uo="DialogClose",Go=s.forwardRef((e,t)=>{const{__scopeDialog:n,...o}=e,r=re(Uo,n);return u.jsx(T.button,{type:"button",...o,ref:t,onClick:E(e.onClick,()=>r.onOpenChange(!1))})});Go.displayName=Uo;function $t(e){return e?"open":"closed"}var Ho="DialogTitleWarning",[uc,Ko]=Or(Ho,{contentName:ve,titleName:kt,docsSlug:"dialog"}),ui=({titleId:e})=>{const t=Ko(Ho),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
2
|
+
|
|
3
|
+
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
4
|
+
|
|
5
|
+
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return s.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},di="DialogDescriptionWarning",fi=({contentRef:e,descriptionId:t})=>{const o=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Ko(di).contentName}}.`;return s.useEffect(()=>{const r=e.current?.getAttribute("aria-describedby");t&&r&&(document.getElementById(t)||console.warn(o))},[o,e,t]),null},dc=Oo,fc=jo,pc=Lo,mc=ko,vc=Bo,hc=Go,pi=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],mi=pi.reduce((e,t)=>{const n=en(`Primitive.${t}`),o=s.forwardRef((r,a)=>{const{asChild:i,...c}=r,l=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),u.jsx(l,{...c,ref:a})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{}),vi="Label",Wo=s.forwardRef((e,t)=>u.jsx(mi.label,{...e,ref:t,onMouseDown:n=>{n.target.closest("button, input, select, textarea")||(e.onMouseDown?.(n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));Wo.displayName=vi;var gc=Wo;function Jt(e,[t,n]){return Math.min(n,Math.max(t,e))}function hi(e){const t=s.useRef({value:e,previous:e});return s.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var gi=[" ","Enter","ArrowUp","ArrowDown"],xi=[" ","Enter"],qe="Select",[Bt,Ze,wi]=Pt(qe),[Ee]=ce(qe,[wi,Ce]),Ut=Ce(),[xc,ue]=Ee(qe),[wc,yi]=Ee(qe),Vo="SelectTrigger",zo=s.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:o=!1,...r}=e,a=Ut(n),i=ue(Vo,n),c=i.disabled||o,l=M(t,i.onTriggerChange),d=Ze(n),f=s.useRef("touch"),[p,v,g]=vr(m=>{const h=d().filter(C=>!C.disabled),y=h.find(C=>C.value===i.value),w=hr(h,m,y);w!==void 0&&i.onValueChange(w.value)}),x=m=>{c||(i.onOpenChange(!0),g()),m&&(i.triggerPointerDownPosRef.current={x:Math.round(m.pageX),y:Math.round(m.pageY)})};return u.jsx(Ct,{asChild:!0,...a,children:u.jsx(T.button,{type:"button",role:"combobox","aria-controls":i.contentId,"aria-expanded":i.open,"aria-required":i.required,"aria-autocomplete":"none",dir:i.dir,"data-state":i.open?"open":"closed",disabled:c,"data-disabled":c?"":void 0,"data-placeholder":mr(i.value)?"":void 0,...r,ref:l,onClick:E(r.onClick,m=>{m.currentTarget.focus(),f.current!=="mouse"&&x(m)}),onPointerDown:E(r.onPointerDown,m=>{f.current=m.pointerType;const h=m.target;h.hasPointerCapture(m.pointerId)&&h.releasePointerCapture(m.pointerId),m.button===0&&m.ctrlKey===!1&&m.pointerType==="mouse"&&(x(m),m.preventDefault())}),onKeyDown:E(r.onKeyDown,m=>{const h=p.current!=="";!(m.ctrlKey||m.altKey||m.metaKey)&&m.key.length===1&&v(m.key),!(h&&m.key===" ")&&gi.includes(m.key)&&(x(),m.preventDefault())})})})});zo.displayName=Vo;var Yo="SelectValue",Ci=s.forwardRef((e,t)=>{const{__scopeSelect:n,className:o,style:r,children:a,placeholder:i="",...c}=e,l=ue(Yo,n),{onValueNodeHasChildrenChange:d}=l,f=a!==void 0,p=M(t,l.onValueNodeChange);return U(()=>{d(f)},[d,f]),u.jsx(T.span,{...c,ref:p,style:{pointerEvents:"none"},children:mr(l.value)?u.jsx(u.Fragment,{children:i}):a})});Ci.displayName=Yo;var Ei="SelectIcon",Xo=s.forwardRef((e,t)=>{const{__scopeSelect:n,children:o,...r}=e;return u.jsx(T.span,{"aria-hidden":!0,...r,ref:t,children:o||"▼"})});Xo.displayName=Ei;var Si="SelectPortal",qo=e=>u.jsx(Me,{asChild:!0,...e});qo.displayName=Si;var he="SelectContent",Zo=s.forwardRef((e,t)=>{const n=ue(he,e.__scopeSelect),[o,r]=s.useState();if(U(()=>{r(new DocumentFragment)},[]),!n.open){const a=o;return a?ht.createPortal(u.jsx(Jo,{scope:e.__scopeSelect,children:u.jsx(Bt.Slot,{scope:e.__scopeSelect,children:u.jsx("div",{children:e.children})})}),a):null}return u.jsx(Qo,{...e,ref:t})});Zo.displayName=he;var ne=10,[Jo,de]=Ee(he),bi="SelectContentImpl",Ri=we("SelectContent.RemoveScroll"),Qo=s.forwardRef((e,t)=>{const{__scopeSelect:n,position:o="item-aligned",onCloseAutoFocus:r,onEscapeKeyDown:a,onPointerDownOutside:i,side:c,sideOffset:l,align:d,alignOffset:f,arrowPadding:p,collisionBoundary:v,collisionPadding:g,sticky:x,hideWhenDetached:m,avoidCollisions:h,...y}=e,w=ue(he,n),[C,R]=s.useState(null),[_,O]=s.useState(null),P=M(t,S=>R(S)),[I,$]=s.useState(null),[F,B]=s.useState(null),G=Ze(n),[H,Y]=s.useState(!1),z=s.useRef(!1);s.useEffect(()=>{if(C)return xt(C)},[C]),It();const k=s.useCallback(S=>{const[N,...W]=G().map(L=>L.ref.current),[A]=W.slice(-1),D=document.activeElement;for(const L of S)if(L===D||(L?.scrollIntoView({block:"nearest"}),L===N&&_&&(_.scrollTop=0),L===A&&_&&(_.scrollTop=_.scrollHeight),L?.focus(),document.activeElement!==D))return},[G,_]),X=s.useCallback(()=>k([I,C]),[k,I,C]);s.useEffect(()=>{H&&X()},[H,X]);const{onOpenChange:j,triggerPointerDownPosRef:b}=w;s.useEffect(()=>{if(C){let S={x:0,y:0};const N=A=>{S={x:Math.abs(Math.round(A.pageX)-(b.current?.x??0)),y:Math.abs(Math.round(A.pageY)-(b.current?.y??0))}},W=A=>{S.x<=10&&S.y<=10?A.preventDefault():C.contains(A.target)||j(!1),document.removeEventListener("pointermove",N),b.current=null};return b.current!==null&&(document.addEventListener("pointermove",N),document.addEventListener("pointerup",W,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",N),document.removeEventListener("pointerup",W,{capture:!0})}}},[C,j,b]),s.useEffect(()=>{const S=()=>j(!1);return window.addEventListener("blur",S),window.addEventListener("resize",S),()=>{window.removeEventListener("blur",S),window.removeEventListener("resize",S)}},[j]);const[Z,K]=vr(S=>{const N=G().filter(D=>!D.disabled),W=N.find(D=>D.ref.current===document.activeElement),A=hr(N,S,W);A&&setTimeout(()=>A.ref.current.focus())}),te=s.useCallback((S,N,W)=>{const A=!z.current&&!W;(w.value!==void 0&&w.value===N||A)&&($(S),A&&(z.current=!0))},[w.value]),ae=s.useCallback(()=>C?.focus(),[C]),J=s.useCallback((S,N,W)=>{const A=!z.current&&!W;(w.value!==void 0&&w.value===N||A)&&B(S)},[w.value]),ie=o==="popper"?ut:er,q=ie===ut?{side:c,sideOffset:l,align:d,alignOffset:f,arrowPadding:p,collisionBoundary:v,collisionPadding:g,sticky:x,hideWhenDetached:m,avoidCollisions:h}:{};return u.jsx(Jo,{scope:n,content:C,viewport:_,onViewportChange:O,itemRefCallback:te,selectedItem:I,onItemLeave:ae,itemTextRefCallback:J,focusSelectedItem:X,selectedItemText:F,position:o,isPositioned:H,searchRef:Z,children:u.jsx(gt,{as:Ri,allowPinchZoom:!0,children:u.jsx(Ke,{asChild:!0,trapped:w.open,onMountAutoFocus:S=>{S.preventDefault()},onUnmountAutoFocus:E(r,S=>{w.trigger?.focus({preventScroll:!0}),S.preventDefault()}),children:u.jsx(_e,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:i,onFocusOutside:S=>S.preventDefault(),onDismiss:()=>w.onOpenChange(!1),children:u.jsx(ie,{role:"listbox",id:w.contentId,"data-state":w.open?"open":"closed",dir:w.dir,onContextMenu:S=>S.preventDefault(),...y,...q,onPlaced:()=>Y(!0),ref:P,style:{display:"flex",flexDirection:"column",outline:"none",...y.style},onKeyDown:E(y.onKeyDown,S=>{const N=S.ctrlKey||S.altKey||S.metaKey;if(S.key==="Tab"&&S.preventDefault(),!N&&S.key.length===1&&K(S.key),["ArrowUp","ArrowDown","Home","End"].includes(S.key)){let A=G().filter(D=>!D.disabled).map(D=>D.ref.current);if(["ArrowUp","End"].includes(S.key)&&(A=A.slice().reverse()),["ArrowUp","ArrowDown"].includes(S.key)){const D=S.target,L=A.indexOf(D);A=A.slice(L+1)}setTimeout(()=>k(A)),S.preventDefault()}})})})})})})});Qo.displayName=bi;var Pi="SelectItemAlignedPosition",er=s.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:o,...r}=e,a=ue(he,n),i=de(he,n),[c,l]=s.useState(null),[d,f]=s.useState(null),p=M(t,P=>f(P)),v=Ze(n),g=s.useRef(!1),x=s.useRef(!0),{viewport:m,selectedItem:h,selectedItemText:y,focusSelectedItem:w}=i,C=s.useCallback(()=>{if(a.trigger&&a.valueNode&&c&&d&&m&&h&&y){const P=a.trigger.getBoundingClientRect(),I=d.getBoundingClientRect(),$=a.valueNode.getBoundingClientRect(),F=y.getBoundingClientRect();if(a.dir!=="rtl"){const D=F.left-I.left,L=$.left-D,Q=P.left-L,fe=P.width+Q,Je=Math.max(fe,I.width),Qe=window.innerWidth-ne,et=Jt(L,[ne,Math.max(ne,Qe-Je)]);c.style.minWidth=fe+"px",c.style.left=et+"px"}else{const D=I.right-F.right,L=window.innerWidth-$.right-D,Q=window.innerWidth-P.right-L,fe=P.width+Q,Je=Math.max(fe,I.width),Qe=window.innerWidth-ne,et=Jt(L,[ne,Math.max(ne,Qe-Je)]);c.style.minWidth=fe+"px",c.style.right=et+"px"}const B=v(),G=window.innerHeight-ne*2,H=m.scrollHeight,Y=window.getComputedStyle(d),z=parseInt(Y.borderTopWidth,10),k=parseInt(Y.paddingTop,10),X=parseInt(Y.borderBottomWidth,10),j=parseInt(Y.paddingBottom,10),b=z+k+H+j+X,Z=Math.min(h.offsetHeight*5,b),K=window.getComputedStyle(m),te=parseInt(K.paddingTop,10),ae=parseInt(K.paddingBottom,10),J=P.top+P.height/2-ne,ie=G-J,q=h.offsetHeight/2,S=h.offsetTop+q,N=z+k+S,W=b-N;if(N<=J){const D=B.length>0&&h===B[B.length-1].ref.current;c.style.bottom="0px";const L=d.clientHeight-m.offsetTop-m.offsetHeight,Q=Math.max(ie,q+(D?ae:0)+L+X),fe=N+Q;c.style.height=fe+"px"}else{const D=B.length>0&&h===B[0].ref.current;c.style.top="0px";const Q=Math.max(J,z+m.offsetTop+(D?te:0)+q)+W;c.style.height=Q+"px",m.scrollTop=N-J+m.offsetTop}c.style.margin=`${ne}px 0`,c.style.minHeight=Z+"px",c.style.maxHeight=G+"px",o?.(),requestAnimationFrame(()=>g.current=!0)}},[v,a.trigger,a.valueNode,c,d,m,h,y,a.dir,o]);U(()=>C(),[C]);const[R,_]=s.useState();U(()=>{d&&_(window.getComputedStyle(d).zIndex)},[d]);const O=s.useCallback(P=>{P&&x.current===!0&&(C(),w?.(),x.current=!1)},[C,w]);return u.jsx(Ii,{scope:n,contentWrapper:c,shouldExpandOnScrollRef:g,onScrollButtonChange:O,children:u.jsx("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:R},children:u.jsx(T.div,{...r,ref:p,style:{boxSizing:"border-box",maxHeight:"100%",...r.style}})})})});er.displayName=Pi;var Ti="SelectPopperPosition",ut=s.forwardRef((e,t)=>{const{__scopeSelect:n,align:o="start",collisionPadding:r=ne,...a}=e,i=Ut(n);return u.jsx(Et,{...i,...a,ref:t,align:o,collisionPadding:r,style:{boxSizing:"border-box",...a.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});ut.displayName=Ti;var[Ii,Gt]=Ee(he,{}),dt="SelectViewport",tr=s.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:o,...r}=e,a=de(dt,n),i=Gt(dt,n),c=M(t,a.onViewportChange),l=s.useRef(0);return u.jsxs(u.Fragment,{children:[u.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:o}),u.jsx(Bt.Slot,{scope:n,children:u.jsx(T.div,{"data-radix-select-viewport":"",role:"presentation",...r,ref:c,style:{position:"relative",flex:1,overflow:"hidden auto",...r.style},onScroll:E(r.onScroll,d=>{const f=d.currentTarget,{contentWrapper:p,shouldExpandOnScrollRef:v}=i;if(v?.current&&p){const g=Math.abs(l.current-f.scrollTop);if(g>0){const x=window.innerHeight-ne*2,m=parseFloat(p.style.minHeight),h=parseFloat(p.style.height),y=Math.max(m,h);if(y<x){const w=y+g,C=Math.min(x,w),R=w-C;p.style.height=C+"px",p.style.bottom==="0px"&&(f.scrollTop=R>0?R:0,p.style.justifyContent="flex-end")}}}l.current=f.scrollTop})})})]})});tr.displayName=dt;var nr="SelectGroup",[_i,Mi]=Ee(nr),Ni=s.forwardRef((e,t)=>{const{__scopeSelect:n,...o}=e,r=me();return u.jsx(_i,{scope:n,id:r,children:u.jsx(T.div,{role:"group","aria-labelledby":r,...o,ref:t})})});Ni.displayName=nr;var or="SelectLabel",rr=s.forwardRef((e,t)=>{const{__scopeSelect:n,...o}=e,r=Mi(or,n);return u.jsx(T.div,{id:r.id,...o,ref:t})});rr.displayName=or;var Be="SelectItem",[Ai,sr]=Ee(Be),ar=s.forwardRef((e,t)=>{const{__scopeSelect:n,value:o,disabled:r=!1,textValue:a,...i}=e,c=ue(Be,n),l=de(Be,n),d=c.value===o,[f,p]=s.useState(a??""),[v,g]=s.useState(!1),x=M(t,w=>l.itemRefCallback?.(w,o,r)),m=me(),h=s.useRef("touch"),y=()=>{r||(c.onValueChange(o),c.onOpenChange(!1))};if(o==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return u.jsx(Ai,{scope:n,value:o,disabled:r,textId:m,isSelected:d,onItemTextChange:s.useCallback(w=>{p(C=>C||(w?.textContent??"").trim())},[]),children:u.jsx(Bt.ItemSlot,{scope:n,value:o,disabled:r,textValue:f,children:u.jsx(T.div,{role:"option","aria-labelledby":m,"data-highlighted":v?"":void 0,"aria-selected":d&&v,"data-state":d?"checked":"unchecked","aria-disabled":r||void 0,"data-disabled":r?"":void 0,tabIndex:r?void 0:-1,...i,ref:x,onFocus:E(i.onFocus,()=>g(!0)),onBlur:E(i.onBlur,()=>g(!1)),onClick:E(i.onClick,()=>{h.current!=="mouse"&&y()}),onPointerUp:E(i.onPointerUp,()=>{h.current==="mouse"&&y()}),onPointerDown:E(i.onPointerDown,w=>{h.current=w.pointerType}),onPointerMove:E(i.onPointerMove,w=>{h.current=w.pointerType,r?l.onItemLeave?.():h.current==="mouse"&&w.currentTarget.focus({preventScroll:!0})}),onPointerLeave:E(i.onPointerLeave,w=>{w.currentTarget===document.activeElement&&l.onItemLeave?.()}),onKeyDown:E(i.onKeyDown,w=>{l.searchRef?.current!==""&&w.key===" "||(xi.includes(w.key)&&y(),w.key===" "&&w.preventDefault())})})})})});ar.displayName=Be;var be="SelectItemText",ir=s.forwardRef((e,t)=>{const{__scopeSelect:n,className:o,style:r,...a}=e,i=ue(be,n),c=de(be,n),l=sr(be,n),d=yi(be,n),[f,p]=s.useState(null),v=M(t,y=>p(y),l.onItemTextChange,y=>c.itemTextRefCallback?.(y,l.value,l.disabled)),g=f?.textContent,x=s.useMemo(()=>u.jsx("option",{value:l.value,disabled:l.disabled,children:g},l.value),[l.disabled,l.value,g]),{onNativeOptionAdd:m,onNativeOptionRemove:h}=d;return U(()=>(m(x),()=>h(x)),[m,h,x]),u.jsxs(u.Fragment,{children:[u.jsx(T.span,{id:l.textId,...a,ref:v}),l.isSelected&&i.valueNode&&!i.valueNodeHasChildren?ht.createPortal(a.children,i.valueNode):null]})});ir.displayName=be;var cr="SelectItemIndicator",lr=s.forwardRef((e,t)=>{const{__scopeSelect:n,...o}=e;return sr(cr,n).isSelected?u.jsx(T.span,{"aria-hidden":!0,...o,ref:t}):null});lr.displayName=cr;var ft="SelectScrollUpButton",ur=s.forwardRef((e,t)=>{const n=de(ft,e.__scopeSelect),o=Gt(ft,e.__scopeSelect),[r,a]=s.useState(!1),i=M(t,o.onScrollButtonChange);return U(()=>{if(n.viewport&&n.isPositioned){let c=function(){const d=l.scrollTop>0;a(d)};const l=n.viewport;return c(),l.addEventListener("scroll",c),()=>l.removeEventListener("scroll",c)}},[n.viewport,n.isPositioned]),r?u.jsx(fr,{...e,ref:i,onAutoScroll:()=>{const{viewport:c,selectedItem:l}=n;c&&l&&(c.scrollTop=c.scrollTop-l.offsetHeight)}}):null});ur.displayName=ft;var pt="SelectScrollDownButton",dr=s.forwardRef((e,t)=>{const n=de(pt,e.__scopeSelect),o=Gt(pt,e.__scopeSelect),[r,a]=s.useState(!1),i=M(t,o.onScrollButtonChange);return U(()=>{if(n.viewport&&n.isPositioned){let c=function(){const d=l.scrollHeight-l.clientHeight,f=Math.ceil(l.scrollTop)<d;a(f)};const l=n.viewport;return c(),l.addEventListener("scroll",c),()=>l.removeEventListener("scroll",c)}},[n.viewport,n.isPositioned]),r?u.jsx(fr,{...e,ref:i,onAutoScroll:()=>{const{viewport:c,selectedItem:l}=n;c&&l&&(c.scrollTop=c.scrollTop+l.offsetHeight)}}):null});dr.displayName=pt;var fr=s.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:o,...r}=e,a=de("SelectScrollButton",n),i=s.useRef(null),c=Ze(n),l=s.useCallback(()=>{i.current!==null&&(window.clearInterval(i.current),i.current=null)},[]);return s.useEffect(()=>()=>l(),[l]),U(()=>{c().find(f=>f.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[c]),u.jsx(T.div,{"aria-hidden":!0,...r,ref:t,style:{flexShrink:0,...r.style},onPointerDown:E(r.onPointerDown,()=>{i.current===null&&(i.current=window.setInterval(o,50))}),onPointerMove:E(r.onPointerMove,()=>{a.onItemLeave?.(),i.current===null&&(i.current=window.setInterval(o,50))}),onPointerLeave:E(r.onPointerLeave,()=>{l()})})}),Di="SelectSeparator",pr=s.forwardRef((e,t)=>{const{__scopeSelect:n,...o}=e;return u.jsx(T.div,{"aria-hidden":!0,...o,ref:t})});pr.displayName=Di;var mt="SelectArrow",Oi=s.forwardRef((e,t)=>{const{__scopeSelect:n,...o}=e,r=Ut(n),a=ue(mt,n),i=de(mt,n);return a.open&&i.position==="popper"?u.jsx(St,{...r,...o,ref:t}):null});Oi.displayName=mt;var ji="SelectBubbleInput",Li=s.forwardRef(({__scopeSelect:e,value:t,...n},o)=>{const r=s.useRef(null),a=M(o,r),i=hi(t);return s.useEffect(()=>{const c=r.current;if(!c)return;const l=window.HTMLSelectElement.prototype,f=Object.getOwnPropertyDescriptor(l,"value").set;if(i!==t&&f){const p=new Event("change",{bubbles:!0});f.call(c,t),c.dispatchEvent(p)}},[i,t]),u.jsx(T.select,{...n,style:{...gn,...n.style},ref:a,defaultValue:t})});Li.displayName=ji;function mr(e){return e===""||e===void 0}function vr(e){const t=se(e),n=s.useRef(""),o=s.useRef(0),r=s.useCallback(i=>{const c=n.current+i;t(c),(function l(d){n.current=d,window.clearTimeout(o.current),d!==""&&(o.current=window.setTimeout(()=>l(""),1e3))})(c)},[t]),a=s.useCallback(()=>{n.current="",window.clearTimeout(o.current)},[]);return s.useEffect(()=>()=>window.clearTimeout(o.current),[]),[n,r,a]}function hr(e,t,n){const r=t.length>1&&Array.from(t).every(d=>d===t[0])?t[0]:t,a=n?e.indexOf(n):-1;let i=Fi(e,Math.max(a,0));r.length===1&&(i=i.filter(d=>d!==n));const l=i.find(d=>d.textValue.toLowerCase().startsWith(r.toLowerCase()));return l!==n?l:void 0}function Fi(e,t){return e.map((n,o)=>e[(t+o)%e.length])}var yc=zo,Cc=Xo,Ec=qo,Sc=Zo,bc=tr,Rc=rr,Pc=ar,Tc=ir,Ic=lr,_c=ur,Mc=dr,Nc=pr;export{Rc as A,Pc as B,Wi as C,vc as D,Ic as E,Tc as F,Nc as G,Ji as I,Zi as L,fc as O,Ki as P,Gi as R,Bi as S,Hi as T,bc as V,Ui as a,oc as b,rc as c,Xi as d,qi as e,Qi as f,tc as g,ec as h,nc as i,zi as j,Yi as k,ac as l,ic as m,cc as n,sc as o,dc as p,pc as q,hc as r,mc as s,gc as t,yc as u,Cc as v,_c as w,Mc as x,Ec as y,Sc as z};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{b1 as ry,b2 as gy,b3 as Sy,b4 as by,b5 as pu,b6 as zy,b7 as Ey,b8 as Ty,as as Ay,b9 as Ei,am as Oy,ba as mi}from"./vendor-B9CCG_zb.js";import{u as py,r as My,a as _y,t as Dy}from"./markdown-D50x6v1C.js";function Uy(o,b){for(var O=0;O<b.length;O++){const v=b[O];if(typeof v!="string"&&!Array.isArray(v)){for(const U in v)if(U!=="default"&&!(U in o)){const X=Object.getOwnPropertyDescriptor(v,U);X&&Object.defineProperty(o,U,X.get?X:{enumerable:!0,get:()=>v[U]})}}}return Object.freeze(Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}))}var Th=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ai(o){return o&&o.__esModule&&Object.prototype.hasOwnProperty.call(o,"default")?o.default:o}function Ah(o){if(Object.prototype.hasOwnProperty.call(o,"__esModule"))return o;var b=o.default;if(typeof b=="function"){var O=function v(){var U=!1;try{U=this instanceof v}catch{}return U?Reflect.construct(b,arguments,this.constructor):b.apply(this,arguments)};O.prototype=b.prototype}else O={};return Object.defineProperty(O,"__esModule",{value:!0}),Object.keys(o).forEach(function(v){var U=Object.getOwnPropertyDescriptor(o,v);Object.defineProperty(O,v,U.get?U:{enumerable:!0,get:function(){return o[v]}})}),O}var yi={exports:{}},Ee={};var _d;function Ry(){if(_d)return Ee;_d=1;var o=Symbol.for("react.transitional.element"),b=Symbol.for("react.fragment");function O(v,U,X){var ul=null;if(X!==void 0&&(ul=""+X),U.key!==void 0&&(ul=""+U.key),"key"in U){X={};for(var Q in U)Q!=="key"&&(X[Q]=U[Q])}else X=U;return U=X.ref,{$$typeof:o,type:v,key:ul,ref:U!==void 0?U:null,props:X}}return Ee.Fragment=b,Ee.jsx=O,Ee.jsxs=O,Ee}var Dd;function Ny(){return Dd||(Dd=1,yi.exports=Ry()),yi.exports}var hi=Ny(),ri={exports:{}},j={};var Ud;function Hy(){if(Ud)return j;Ud=1;var o=Symbol.for("react.transitional.element"),b=Symbol.for("react.portal"),O=Symbol.for("react.fragment"),v=Symbol.for("react.strict_mode"),U=Symbol.for("react.profiler"),X=Symbol.for("react.consumer"),ul=Symbol.for("react.context"),Q=Symbol.for("react.forward_ref"),R=Symbol.for("react.suspense"),A=Symbol.for("react.memo"),D=Symbol.for("react.lazy"),C=Symbol.for("react.activity"),rl=Symbol.iterator;function el(d){return d===null||typeof d!="object"?null:(d=rl&&d[rl]||d["@@iterator"],typeof d=="function"?d:null)}var Ul={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Y=Object.assign,tl={};function yl(d,T,p){this.props=d,this.context=T,this.refs=tl,this.updater=p||Ul}yl.prototype.isReactComponent={},yl.prototype.setState=function(d,T){if(typeof d!="object"&&typeof d!="function"&&d!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,d,T,"setState")},yl.prototype.forceUpdate=function(d){this.updater.enqueueForceUpdate(this,d,"forceUpdate")};function bl(){}bl.prototype=yl.prototype;function vl(d,T,p){this.props=d,this.context=T,this.refs=tl,this.updater=p||Ul}var Hl=vl.prototype=new bl;Hl.constructor=vl,Y(Hl,yl.prototype),Hl.isPureReactComponent=!0;var zl=Array.isArray;function Xl(){}var Z={H:null,A:null,T:null,S:null},Zl=Object.prototype.hasOwnProperty;function rt(d,T,p){var B=p.ref;return{$$typeof:o,type:d,key:T,ref:B!==void 0?B:null,props:p}}function _u(d,T){return rt(d.type,T,d.props)}function gt(d){return typeof d=="object"&&d!==null&&d.$$typeof===o}function Et(d){var T={"=":"=0",":":"=2"};return"$"+d.replace(/[=:]/g,function(p){return T[p]})}var Ae=/\/+/g;function ga(d,T){return typeof d=="object"&&d!==null&&d.key!=null?Et(""+d.key):T.toString(36)}function Sa(d){switch(d.status){case"fulfilled":return d.value;case"rejected":throw d.reason;default:switch(typeof d.status=="string"?d.then(Xl,Xl):(d.status="pending",d.then(function(T){d.status==="pending"&&(d.status="fulfilled",d.value=T)},function(T){d.status==="pending"&&(d.status="rejected",d.reason=T)})),d.status){case"fulfilled":return d.value;case"rejected":throw d.reason}}throw d}function N(d,T,p,B,V){var L=typeof d;(L==="undefined"||L==="boolean")&&(d=null);var al=!1;if(d===null)al=!0;else switch(L){case"bigint":case"string":case"number":al=!0;break;case"object":switch(d.$$typeof){case o:case b:al=!0;break;case D:return al=d._init,N(al(d._payload),T,p,B,V)}}if(al)return V=V(d),al=B===""?"."+ga(d,0):B,zl(V)?(p="",al!=null&&(p=al.replace(Ae,"$&/")+"/"),N(V,T,p,"",function(Du){return Du})):V!=null&&(gt(V)&&(V=_u(V,p+(V.key==null||d&&d.key===V.key?"":(""+V.key).replace(Ae,"$&/")+"/")+al)),T.push(V)),1;al=0;var Ql=B===""?".":B+":";if(zl(d))for(var El=0;El<d.length;El++)B=d[El],L=Ql+ga(B,El),al+=N(B,T,p,L,V);else if(El=el(d),typeof El=="function")for(d=El.call(d),El=0;!(B=d.next()).done;)B=B.value,L=Ql+ga(B,El++),al+=N(B,T,p,L,V);else if(L==="object"){if(typeof d.then=="function")return N(Sa(d),T,p,B,V);throw T=String(d),Error("Objects are not valid as a React child (found: "+(T==="[object Object]"?"object with keys {"+Object.keys(d).join(", ")+"}":T)+"). If you meant to render a collection of children, use an array instead.")}return al}function w(d,T,p){if(d==null)return d;var B=[],V=0;return N(d,B,"","",function(L){return T.call(p,L,V++)}),B}function Mt(d){if(d._status===-1){var T=d._result;T=T(),T.then(function(p){(d._status===0||d._status===-1)&&(d._status=1,d._result=p)},function(p){(d._status===0||d._status===-1)&&(d._status=2,d._result=p)}),d._status===-1&&(d._status=0,d._result=T)}if(d._status===1)return d._result.default;throw d._result}var Xa=typeof reportError=="function"?reportError:function(d){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var T=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof d=="object"&&d!==null&&typeof d.message=="string"?String(d.message):String(d),error:d});if(!window.dispatchEvent(T))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",d);return}console.error(d)},Kt={map:w,forEach:function(d,T,p){w(d,function(){T.apply(this,arguments)},p)},count:function(d){var T=0;return w(d,function(){T++}),T},toArray:function(d){return w(d,function(T){return T})||[]},only:function(d){if(!gt(d))throw Error("React.Children.only expected to receive a single React element child.");return d}};return j.Activity=C,j.Children=Kt,j.Component=yl,j.Fragment=O,j.Profiler=U,j.PureComponent=vl,j.StrictMode=v,j.Suspense=R,j.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Z,j.__COMPILER_RUNTIME={__proto__:null,c:function(d){return Z.H.useMemoCache(d)}},j.cache=function(d){return function(){return d.apply(null,arguments)}},j.cacheSignal=function(){return null},j.cloneElement=function(d,T,p){if(d==null)throw Error("The argument must be a React element, but you passed "+d+".");var B=Y({},d.props),V=d.key;if(T!=null)for(L in T.key!==void 0&&(V=""+T.key),T)!Zl.call(T,L)||L==="key"||L==="__self"||L==="__source"||L==="ref"&&T.ref===void 0||(B[L]=T[L]);var L=arguments.length-2;if(L===1)B.children=p;else if(1<L){for(var al=Array(L),Ql=0;Ql<L;Ql++)al[Ql]=arguments[Ql+2];B.children=al}return rt(d.type,V,B)},j.createContext=function(d){return d={$$typeof:ul,_currentValue:d,_currentValue2:d,_threadCount:0,Provider:null,Consumer:null},d.Provider=d,d.Consumer={$$typeof:X,_context:d},d},j.createElement=function(d,T,p){var B,V={},L=null;if(T!=null)for(B in T.key!==void 0&&(L=""+T.key),T)Zl.call(T,B)&&B!=="key"&&B!=="__self"&&B!=="__source"&&(V[B]=T[B]);var al=arguments.length-2;if(al===1)V.children=p;else if(1<al){for(var Ql=Array(al),El=0;El<al;El++)Ql[El]=arguments[El+2];V.children=Ql}if(d&&d.defaultProps)for(B in al=d.defaultProps,al)V[B]===void 0&&(V[B]=al[B]);return rt(d,L,V)},j.createRef=function(){return{current:null}},j.forwardRef=function(d){return{$$typeof:Q,render:d}},j.isValidElement=gt,j.lazy=function(d){return{$$typeof:D,_payload:{_status:-1,_result:d},_init:Mt}},j.memo=function(d,T){return{$$typeof:A,type:d,compare:T===void 0?null:T}},j.startTransition=function(d){var T=Z.T,p={};Z.T=p;try{var B=d(),V=Z.S;V!==null&&V(p,B),typeof B=="object"&&B!==null&&typeof B.then=="function"&&B.then(Xl,Xa)}catch(L){Xa(L)}finally{T!==null&&p.types!==null&&(T.types=p.types),Z.T=T}},j.unstable_useCacheRefresh=function(){return Z.H.useCacheRefresh()},j.use=function(d){return Z.H.use(d)},j.useActionState=function(d,T,p){return Z.H.useActionState(d,T,p)},j.useCallback=function(d,T){return Z.H.useCallback(d,T)},j.useContext=function(d){return Z.H.useContext(d)},j.useDebugValue=function(){},j.useDeferredValue=function(d,T){return Z.H.useDeferredValue(d,T)},j.useEffect=function(d,T){return Z.H.useEffect(d,T)},j.useEffectEvent=function(d){return Z.H.useEffectEvent(d)},j.useId=function(){return Z.H.useId()},j.useImperativeHandle=function(d,T,p){return Z.H.useImperativeHandle(d,T,p)},j.useInsertionEffect=function(d,T){return Z.H.useInsertionEffect(d,T)},j.useLayoutEffect=function(d,T){return Z.H.useLayoutEffect(d,T)},j.useMemo=function(d,T){return Z.H.useMemo(d,T)},j.useOptimistic=function(d,T){return Z.H.useOptimistic(d,T)},j.useReducer=function(d,T,p){return Z.H.useReducer(d,T,p)},j.useRef=function(d){return Z.H.useRef(d)},j.useState=function(d){return Z.H.useState(d)},j.useSyncExternalStore=function(d,T,p){return Z.H.useSyncExternalStore(d,T,p)},j.useTransition=function(){return Z.H.useTransition()},j.version="19.2.3",j}var Rd;function Oi(){return Rd||(Rd=1,ri.exports=Hy()),ri.exports}var F=Oi();const Cy=Ai(F),Oh=Uy({__proto__:null,default:Cy},[F]);var gi={exports:{}},Te={},Si={exports:{}},Gl={};var Nd;function By(){if(Nd)return Gl;Nd=1;var o=Oi();function b(R){var A="https://react.dev/errors/"+R;if(1<arguments.length){A+="?args[]="+encodeURIComponent(arguments[1]);for(var D=2;D<arguments.length;D++)A+="&args[]="+encodeURIComponent(arguments[D])}return"Minified React error #"+R+"; visit "+A+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function O(){}var v={d:{f:O,r:function(){throw Error(b(522))},D:O,C:O,L:O,m:O,X:O,S:O,M:O},p:0,findDOMNode:null},U=Symbol.for("react.portal");function X(R,A,D){var C=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:U,key:C==null?null:""+C,children:R,containerInfo:A,implementation:D}}var ul=o.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function Q(R,A){if(R==="font")return"";if(typeof A=="string")return A==="use-credentials"?A:""}return Gl.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=v,Gl.createPortal=function(R,A){var D=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!A||A.nodeType!==1&&A.nodeType!==9&&A.nodeType!==11)throw Error(b(299));return X(R,A,null,D)},Gl.flushSync=function(R){var A=ul.T,D=v.p;try{if(ul.T=null,v.p=2,R)return R()}finally{ul.T=A,v.p=D,v.d.f()}},Gl.preconnect=function(R,A){typeof R=="string"&&(A?(A=A.crossOrigin,A=typeof A=="string"?A==="use-credentials"?A:"":void 0):A=null,v.d.C(R,A))},Gl.prefetchDNS=function(R){typeof R=="string"&&v.d.D(R)},Gl.preinit=function(R,A){if(typeof R=="string"&&A&&typeof A.as=="string"){var D=A.as,C=Q(D,A.crossOrigin),rl=typeof A.integrity=="string"?A.integrity:void 0,el=typeof A.fetchPriority=="string"?A.fetchPriority:void 0;D==="style"?v.d.S(R,typeof A.precedence=="string"?A.precedence:void 0,{crossOrigin:C,integrity:rl,fetchPriority:el}):D==="script"&&v.d.X(R,{crossOrigin:C,integrity:rl,fetchPriority:el,nonce:typeof A.nonce=="string"?A.nonce:void 0})}},Gl.preinitModule=function(R,A){if(typeof R=="string")if(typeof A=="object"&&A!==null){if(A.as==null||A.as==="script"){var D=Q(A.as,A.crossOrigin);v.d.M(R,{crossOrigin:D,integrity:typeof A.integrity=="string"?A.integrity:void 0,nonce:typeof A.nonce=="string"?A.nonce:void 0})}}else A==null&&v.d.M(R)},Gl.preload=function(R,A){if(typeof R=="string"&&typeof A=="object"&&A!==null&&typeof A.as=="string"){var D=A.as,C=Q(D,A.crossOrigin);v.d.L(R,D,{crossOrigin:C,integrity:typeof A.integrity=="string"?A.integrity:void 0,nonce:typeof A.nonce=="string"?A.nonce:void 0,type:typeof A.type=="string"?A.type:void 0,fetchPriority:typeof A.fetchPriority=="string"?A.fetchPriority:void 0,referrerPolicy:typeof A.referrerPolicy=="string"?A.referrerPolicy:void 0,imageSrcSet:typeof A.imageSrcSet=="string"?A.imageSrcSet:void 0,imageSizes:typeof A.imageSizes=="string"?A.imageSizes:void 0,media:typeof A.media=="string"?A.media:void 0})}},Gl.preloadModule=function(R,A){if(typeof R=="string")if(A){var D=Q(A.as,A.crossOrigin);v.d.m(R,{as:typeof A.as=="string"&&A.as!=="script"?A.as:void 0,crossOrigin:D,integrity:typeof A.integrity=="string"?A.integrity:void 0})}else v.d.m(R)},Gl.requestFormReset=function(R){v.d.r(R)},Gl.unstable_batchedUpdates=function(R,A){return R(A)},Gl.useFormState=function(R,A,D){return ul.H.useFormState(R,A,D)},Gl.useFormStatus=function(){return ul.H.useHostTransitionStatus()},Gl.version="19.2.3",Gl}var Hd;function xd(){if(Hd)return Si.exports;Hd=1;function o(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(o)}catch(b){console.error(b)}}return o(),Si.exports=By(),Si.exports}var Cd;function Yy(){if(Cd)return Te;Cd=1;var o=ry(),b=Oi(),O=xd();function v(l){var t="https://react.dev/errors/"+l;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+l+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function U(l){return!(!l||l.nodeType!==1&&l.nodeType!==9&&l.nodeType!==11)}function X(l){var t=l,a=l;if(l.alternate)for(;t.return;)t=t.return;else{l=t;do t=l,(t.flags&4098)!==0&&(a=t.return),l=t.return;while(l)}return t.tag===3?a:null}function ul(l){if(l.tag===13){var t=l.memoizedState;if(t===null&&(l=l.alternate,l!==null&&(t=l.memoizedState)),t!==null)return t.dehydrated}return null}function Q(l){if(l.tag===31){var t=l.memoizedState;if(t===null&&(l=l.alternate,l!==null&&(t=l.memoizedState)),t!==null)return t.dehydrated}return null}function R(l){if(X(l)!==l)throw Error(v(188))}function A(l){var t=l.alternate;if(!t){if(t=X(l),t===null)throw Error(v(188));return t!==l?null:l}for(var a=l,u=t;;){var e=a.return;if(e===null)break;var n=e.alternate;if(n===null){if(u=e.return,u!==null){a=u;continue}break}if(e.child===n.child){for(n=e.child;n;){if(n===a)return R(e),l;if(n===u)return R(e),t;n=n.sibling}throw Error(v(188))}if(a.return!==u.return)a=e,u=n;else{for(var c=!1,f=e.child;f;){if(f===a){c=!0,a=e,u=n;break}if(f===u){c=!0,u=e,a=n;break}f=f.sibling}if(!c){for(f=n.child;f;){if(f===a){c=!0,a=n,u=e;break}if(f===u){c=!0,u=n,a=e;break}f=f.sibling}if(!c)throw Error(v(189))}}if(a.alternate!==u)throw Error(v(190))}if(a.tag!==3)throw Error(v(188));return a.stateNode.current===a?l:t}function D(l){var t=l.tag;if(t===5||t===26||t===27||t===6)return l;for(l=l.child;l!==null;){if(t=D(l),t!==null)return t;l=l.sibling}return null}var C=Object.assign,rl=Symbol.for("react.element"),el=Symbol.for("react.transitional.element"),Ul=Symbol.for("react.portal"),Y=Symbol.for("react.fragment"),tl=Symbol.for("react.strict_mode"),yl=Symbol.for("react.profiler"),bl=Symbol.for("react.consumer"),vl=Symbol.for("react.context"),Hl=Symbol.for("react.forward_ref"),zl=Symbol.for("react.suspense"),Xl=Symbol.for("react.suspense_list"),Z=Symbol.for("react.memo"),Zl=Symbol.for("react.lazy"),rt=Symbol.for("react.activity"),_u=Symbol.for("react.memo_cache_sentinel"),gt=Symbol.iterator;function Et(l){return l===null||typeof l!="object"?null:(l=gt&&l[gt]||l["@@iterator"],typeof l=="function"?l:null)}var Ae=Symbol.for("react.client.reference");function ga(l){if(l==null)return null;if(typeof l=="function")return l.$$typeof===Ae?null:l.displayName||l.name||null;if(typeof l=="string")return l;switch(l){case Y:return"Fragment";case yl:return"Profiler";case tl:return"StrictMode";case zl:return"Suspense";case Xl:return"SuspenseList";case rt:return"Activity"}if(typeof l=="object")switch(l.$$typeof){case Ul:return"Portal";case vl:return l.displayName||"Context";case bl:return(l._context.displayName||"Context")+".Consumer";case Hl:var t=l.render;return l=l.displayName,l||(l=t.displayName||t.name||"",l=l!==""?"ForwardRef("+l+")":"ForwardRef"),l;case Z:return t=l.displayName||null,t!==null?t:ga(l.type)||"Memo";case Zl:t=l._payload,l=l._init;try{return ga(l(t))}catch{}}return null}var Sa=Array.isArray,N=b.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,w=O.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Mt={pending:!1,data:null,method:null,action:null},Xa=[],Kt=-1;function d(l){return{current:l}}function T(l){0>Kt||(l.current=Xa[Kt],Xa[Kt]=null,Kt--)}function p(l,t){Kt++,Xa[Kt]=l.current,l.current=t}var B=d(null),V=d(null),L=d(null),al=d(null);function Ql(l,t){switch(p(L,t),p(V,l),p(B,null),t.nodeType){case 9:case 11:l=(l=t.documentElement)&&(l=l.namespaceURI)?Fv(l):0;break;default:if(l=t.tagName,t=t.namespaceURI)t=Fv(t),l=kv(t,l);else switch(l){case"svg":l=1;break;case"math":l=2;break;default:l=0}}T(B),p(B,l)}function El(){T(B),T(V),T(L)}function Du(l){l.memoizedState!==null&&p(al,l);var t=B.current,a=kv(t,l.type);t!==a&&(p(V,l),p(B,a))}function Oe(l){V.current===l&&(T(B),T(V)),al.current===l&&(T(al),ge._currentValue=Mt)}var Wn,pi;function ba(l){if(Wn===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);Wn=t&&t[1]||"",pi=-1<a.stack.indexOf(`
|
|
1
|
+
import{b1 as ry,b2 as gy,b3 as Sy,b4 as by,b5 as pu,b6 as zy,b7 as Ey,b8 as Ty,as as Ay,b9 as Ei,am as Oy,ba as mi}from"./vendor-Dm9xAZV8.js";import{u as py,r as My,a as _y,t as Dy}from"./markdown-jcH7_RT5.js";function Uy(o,b){for(var O=0;O<b.length;O++){const v=b[O];if(typeof v!="string"&&!Array.isArray(v)){for(const U in v)if(U!=="default"&&!(U in o)){const X=Object.getOwnPropertyDescriptor(v,U);X&&Object.defineProperty(o,U,X.get?X:{enumerable:!0,get:()=>v[U]})}}}return Object.freeze(Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}))}var Th=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ai(o){return o&&o.__esModule&&Object.prototype.hasOwnProperty.call(o,"default")?o.default:o}function Ah(o){if(Object.prototype.hasOwnProperty.call(o,"__esModule"))return o;var b=o.default;if(typeof b=="function"){var O=function v(){var U=!1;try{U=this instanceof v}catch{}return U?Reflect.construct(b,arguments,this.constructor):b.apply(this,arguments)};O.prototype=b.prototype}else O={};return Object.defineProperty(O,"__esModule",{value:!0}),Object.keys(o).forEach(function(v){var U=Object.getOwnPropertyDescriptor(o,v);Object.defineProperty(O,v,U.get?U:{enumerable:!0,get:function(){return o[v]}})}),O}var yi={exports:{}},Ee={};var _d;function Ry(){if(_d)return Ee;_d=1;var o=Symbol.for("react.transitional.element"),b=Symbol.for("react.fragment");function O(v,U,X){var ul=null;if(X!==void 0&&(ul=""+X),U.key!==void 0&&(ul=""+U.key),"key"in U){X={};for(var Q in U)Q!=="key"&&(X[Q]=U[Q])}else X=U;return U=X.ref,{$$typeof:o,type:v,key:ul,ref:U!==void 0?U:null,props:X}}return Ee.Fragment=b,Ee.jsx=O,Ee.jsxs=O,Ee}var Dd;function Ny(){return Dd||(Dd=1,yi.exports=Ry()),yi.exports}var hi=Ny(),ri={exports:{}},j={};var Ud;function Hy(){if(Ud)return j;Ud=1;var o=Symbol.for("react.transitional.element"),b=Symbol.for("react.portal"),O=Symbol.for("react.fragment"),v=Symbol.for("react.strict_mode"),U=Symbol.for("react.profiler"),X=Symbol.for("react.consumer"),ul=Symbol.for("react.context"),Q=Symbol.for("react.forward_ref"),R=Symbol.for("react.suspense"),A=Symbol.for("react.memo"),D=Symbol.for("react.lazy"),C=Symbol.for("react.activity"),rl=Symbol.iterator;function el(d){return d===null||typeof d!="object"?null:(d=rl&&d[rl]||d["@@iterator"],typeof d=="function"?d:null)}var Ul={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Y=Object.assign,tl={};function yl(d,T,p){this.props=d,this.context=T,this.refs=tl,this.updater=p||Ul}yl.prototype.isReactComponent={},yl.prototype.setState=function(d,T){if(typeof d!="object"&&typeof d!="function"&&d!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,d,T,"setState")},yl.prototype.forceUpdate=function(d){this.updater.enqueueForceUpdate(this,d,"forceUpdate")};function bl(){}bl.prototype=yl.prototype;function vl(d,T,p){this.props=d,this.context=T,this.refs=tl,this.updater=p||Ul}var Hl=vl.prototype=new bl;Hl.constructor=vl,Y(Hl,yl.prototype),Hl.isPureReactComponent=!0;var zl=Array.isArray;function Xl(){}var Z={H:null,A:null,T:null,S:null},Zl=Object.prototype.hasOwnProperty;function rt(d,T,p){var B=p.ref;return{$$typeof:o,type:d,key:T,ref:B!==void 0?B:null,props:p}}function _u(d,T){return rt(d.type,T,d.props)}function gt(d){return typeof d=="object"&&d!==null&&d.$$typeof===o}function Et(d){var T={"=":"=0",":":"=2"};return"$"+d.replace(/[=:]/g,function(p){return T[p]})}var Ae=/\/+/g;function ga(d,T){return typeof d=="object"&&d!==null&&d.key!=null?Et(""+d.key):T.toString(36)}function Sa(d){switch(d.status){case"fulfilled":return d.value;case"rejected":throw d.reason;default:switch(typeof d.status=="string"?d.then(Xl,Xl):(d.status="pending",d.then(function(T){d.status==="pending"&&(d.status="fulfilled",d.value=T)},function(T){d.status==="pending"&&(d.status="rejected",d.reason=T)})),d.status){case"fulfilled":return d.value;case"rejected":throw d.reason}}throw d}function N(d,T,p,B,V){var L=typeof d;(L==="undefined"||L==="boolean")&&(d=null);var al=!1;if(d===null)al=!0;else switch(L){case"bigint":case"string":case"number":al=!0;break;case"object":switch(d.$$typeof){case o:case b:al=!0;break;case D:return al=d._init,N(al(d._payload),T,p,B,V)}}if(al)return V=V(d),al=B===""?"."+ga(d,0):B,zl(V)?(p="",al!=null&&(p=al.replace(Ae,"$&/")+"/"),N(V,T,p,"",function(Du){return Du})):V!=null&&(gt(V)&&(V=_u(V,p+(V.key==null||d&&d.key===V.key?"":(""+V.key).replace(Ae,"$&/")+"/")+al)),T.push(V)),1;al=0;var Ql=B===""?".":B+":";if(zl(d))for(var El=0;El<d.length;El++)B=d[El],L=Ql+ga(B,El),al+=N(B,T,p,L,V);else if(El=el(d),typeof El=="function")for(d=El.call(d),El=0;!(B=d.next()).done;)B=B.value,L=Ql+ga(B,El++),al+=N(B,T,p,L,V);else if(L==="object"){if(typeof d.then=="function")return N(Sa(d),T,p,B,V);throw T=String(d),Error("Objects are not valid as a React child (found: "+(T==="[object Object]"?"object with keys {"+Object.keys(d).join(", ")+"}":T)+"). If you meant to render a collection of children, use an array instead.")}return al}function w(d,T,p){if(d==null)return d;var B=[],V=0;return N(d,B,"","",function(L){return T.call(p,L,V++)}),B}function Mt(d){if(d._status===-1){var T=d._result;T=T(),T.then(function(p){(d._status===0||d._status===-1)&&(d._status=1,d._result=p)},function(p){(d._status===0||d._status===-1)&&(d._status=2,d._result=p)}),d._status===-1&&(d._status=0,d._result=T)}if(d._status===1)return d._result.default;throw d._result}var Xa=typeof reportError=="function"?reportError:function(d){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var T=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof d=="object"&&d!==null&&typeof d.message=="string"?String(d.message):String(d),error:d});if(!window.dispatchEvent(T))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",d);return}console.error(d)},Kt={map:w,forEach:function(d,T,p){w(d,function(){T.apply(this,arguments)},p)},count:function(d){var T=0;return w(d,function(){T++}),T},toArray:function(d){return w(d,function(T){return T})||[]},only:function(d){if(!gt(d))throw Error("React.Children.only expected to receive a single React element child.");return d}};return j.Activity=C,j.Children=Kt,j.Component=yl,j.Fragment=O,j.Profiler=U,j.PureComponent=vl,j.StrictMode=v,j.Suspense=R,j.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Z,j.__COMPILER_RUNTIME={__proto__:null,c:function(d){return Z.H.useMemoCache(d)}},j.cache=function(d){return function(){return d.apply(null,arguments)}},j.cacheSignal=function(){return null},j.cloneElement=function(d,T,p){if(d==null)throw Error("The argument must be a React element, but you passed "+d+".");var B=Y({},d.props),V=d.key;if(T!=null)for(L in T.key!==void 0&&(V=""+T.key),T)!Zl.call(T,L)||L==="key"||L==="__self"||L==="__source"||L==="ref"&&T.ref===void 0||(B[L]=T[L]);var L=arguments.length-2;if(L===1)B.children=p;else if(1<L){for(var al=Array(L),Ql=0;Ql<L;Ql++)al[Ql]=arguments[Ql+2];B.children=al}return rt(d.type,V,B)},j.createContext=function(d){return d={$$typeof:ul,_currentValue:d,_currentValue2:d,_threadCount:0,Provider:null,Consumer:null},d.Provider=d,d.Consumer={$$typeof:X,_context:d},d},j.createElement=function(d,T,p){var B,V={},L=null;if(T!=null)for(B in T.key!==void 0&&(L=""+T.key),T)Zl.call(T,B)&&B!=="key"&&B!=="__self"&&B!=="__source"&&(V[B]=T[B]);var al=arguments.length-2;if(al===1)V.children=p;else if(1<al){for(var Ql=Array(al),El=0;El<al;El++)Ql[El]=arguments[El+2];V.children=Ql}if(d&&d.defaultProps)for(B in al=d.defaultProps,al)V[B]===void 0&&(V[B]=al[B]);return rt(d,L,V)},j.createRef=function(){return{current:null}},j.forwardRef=function(d){return{$$typeof:Q,render:d}},j.isValidElement=gt,j.lazy=function(d){return{$$typeof:D,_payload:{_status:-1,_result:d},_init:Mt}},j.memo=function(d,T){return{$$typeof:A,type:d,compare:T===void 0?null:T}},j.startTransition=function(d){var T=Z.T,p={};Z.T=p;try{var B=d(),V=Z.S;V!==null&&V(p,B),typeof B=="object"&&B!==null&&typeof B.then=="function"&&B.then(Xl,Xa)}catch(L){Xa(L)}finally{T!==null&&p.types!==null&&(T.types=p.types),Z.T=T}},j.unstable_useCacheRefresh=function(){return Z.H.useCacheRefresh()},j.use=function(d){return Z.H.use(d)},j.useActionState=function(d,T,p){return Z.H.useActionState(d,T,p)},j.useCallback=function(d,T){return Z.H.useCallback(d,T)},j.useContext=function(d){return Z.H.useContext(d)},j.useDebugValue=function(){},j.useDeferredValue=function(d,T){return Z.H.useDeferredValue(d,T)},j.useEffect=function(d,T){return Z.H.useEffect(d,T)},j.useEffectEvent=function(d){return Z.H.useEffectEvent(d)},j.useId=function(){return Z.H.useId()},j.useImperativeHandle=function(d,T,p){return Z.H.useImperativeHandle(d,T,p)},j.useInsertionEffect=function(d,T){return Z.H.useInsertionEffect(d,T)},j.useLayoutEffect=function(d,T){return Z.H.useLayoutEffect(d,T)},j.useMemo=function(d,T){return Z.H.useMemo(d,T)},j.useOptimistic=function(d,T){return Z.H.useOptimistic(d,T)},j.useReducer=function(d,T,p){return Z.H.useReducer(d,T,p)},j.useRef=function(d){return Z.H.useRef(d)},j.useState=function(d){return Z.H.useState(d)},j.useSyncExternalStore=function(d,T,p){return Z.H.useSyncExternalStore(d,T,p)},j.useTransition=function(){return Z.H.useTransition()},j.version="19.2.3",j}var Rd;function Oi(){return Rd||(Rd=1,ri.exports=Hy()),ri.exports}var F=Oi();const Cy=Ai(F),Oh=Uy({__proto__:null,default:Cy},[F]);var gi={exports:{}},Te={},Si={exports:{}},Gl={};var Nd;function By(){if(Nd)return Gl;Nd=1;var o=Oi();function b(R){var A="https://react.dev/errors/"+R;if(1<arguments.length){A+="?args[]="+encodeURIComponent(arguments[1]);for(var D=2;D<arguments.length;D++)A+="&args[]="+encodeURIComponent(arguments[D])}return"Minified React error #"+R+"; visit "+A+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function O(){}var v={d:{f:O,r:function(){throw Error(b(522))},D:O,C:O,L:O,m:O,X:O,S:O,M:O},p:0,findDOMNode:null},U=Symbol.for("react.portal");function X(R,A,D){var C=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:U,key:C==null?null:""+C,children:R,containerInfo:A,implementation:D}}var ul=o.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function Q(R,A){if(R==="font")return"";if(typeof A=="string")return A==="use-credentials"?A:""}return Gl.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=v,Gl.createPortal=function(R,A){var D=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!A||A.nodeType!==1&&A.nodeType!==9&&A.nodeType!==11)throw Error(b(299));return X(R,A,null,D)},Gl.flushSync=function(R){var A=ul.T,D=v.p;try{if(ul.T=null,v.p=2,R)return R()}finally{ul.T=A,v.p=D,v.d.f()}},Gl.preconnect=function(R,A){typeof R=="string"&&(A?(A=A.crossOrigin,A=typeof A=="string"?A==="use-credentials"?A:"":void 0):A=null,v.d.C(R,A))},Gl.prefetchDNS=function(R){typeof R=="string"&&v.d.D(R)},Gl.preinit=function(R,A){if(typeof R=="string"&&A&&typeof A.as=="string"){var D=A.as,C=Q(D,A.crossOrigin),rl=typeof A.integrity=="string"?A.integrity:void 0,el=typeof A.fetchPriority=="string"?A.fetchPriority:void 0;D==="style"?v.d.S(R,typeof A.precedence=="string"?A.precedence:void 0,{crossOrigin:C,integrity:rl,fetchPriority:el}):D==="script"&&v.d.X(R,{crossOrigin:C,integrity:rl,fetchPriority:el,nonce:typeof A.nonce=="string"?A.nonce:void 0})}},Gl.preinitModule=function(R,A){if(typeof R=="string")if(typeof A=="object"&&A!==null){if(A.as==null||A.as==="script"){var D=Q(A.as,A.crossOrigin);v.d.M(R,{crossOrigin:D,integrity:typeof A.integrity=="string"?A.integrity:void 0,nonce:typeof A.nonce=="string"?A.nonce:void 0})}}else A==null&&v.d.M(R)},Gl.preload=function(R,A){if(typeof R=="string"&&typeof A=="object"&&A!==null&&typeof A.as=="string"){var D=A.as,C=Q(D,A.crossOrigin);v.d.L(R,D,{crossOrigin:C,integrity:typeof A.integrity=="string"?A.integrity:void 0,nonce:typeof A.nonce=="string"?A.nonce:void 0,type:typeof A.type=="string"?A.type:void 0,fetchPriority:typeof A.fetchPriority=="string"?A.fetchPriority:void 0,referrerPolicy:typeof A.referrerPolicy=="string"?A.referrerPolicy:void 0,imageSrcSet:typeof A.imageSrcSet=="string"?A.imageSrcSet:void 0,imageSizes:typeof A.imageSizes=="string"?A.imageSizes:void 0,media:typeof A.media=="string"?A.media:void 0})}},Gl.preloadModule=function(R,A){if(typeof R=="string")if(A){var D=Q(A.as,A.crossOrigin);v.d.m(R,{as:typeof A.as=="string"&&A.as!=="script"?A.as:void 0,crossOrigin:D,integrity:typeof A.integrity=="string"?A.integrity:void 0})}else v.d.m(R)},Gl.requestFormReset=function(R){v.d.r(R)},Gl.unstable_batchedUpdates=function(R,A){return R(A)},Gl.useFormState=function(R,A,D){return ul.H.useFormState(R,A,D)},Gl.useFormStatus=function(){return ul.H.useHostTransitionStatus()},Gl.version="19.2.3",Gl}var Hd;function xd(){if(Hd)return Si.exports;Hd=1;function o(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(o)}catch(b){console.error(b)}}return o(),Si.exports=By(),Si.exports}var Cd;function Yy(){if(Cd)return Te;Cd=1;var o=ry(),b=Oi(),O=xd();function v(l){var t="https://react.dev/errors/"+l;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+l+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function U(l){return!(!l||l.nodeType!==1&&l.nodeType!==9&&l.nodeType!==11)}function X(l){var t=l,a=l;if(l.alternate)for(;t.return;)t=t.return;else{l=t;do t=l,(t.flags&4098)!==0&&(a=t.return),l=t.return;while(l)}return t.tag===3?a:null}function ul(l){if(l.tag===13){var t=l.memoizedState;if(t===null&&(l=l.alternate,l!==null&&(t=l.memoizedState)),t!==null)return t.dehydrated}return null}function Q(l){if(l.tag===31){var t=l.memoizedState;if(t===null&&(l=l.alternate,l!==null&&(t=l.memoizedState)),t!==null)return t.dehydrated}return null}function R(l){if(X(l)!==l)throw Error(v(188))}function A(l){var t=l.alternate;if(!t){if(t=X(l),t===null)throw Error(v(188));return t!==l?null:l}for(var a=l,u=t;;){var e=a.return;if(e===null)break;var n=e.alternate;if(n===null){if(u=e.return,u!==null){a=u;continue}break}if(e.child===n.child){for(n=e.child;n;){if(n===a)return R(e),l;if(n===u)return R(e),t;n=n.sibling}throw Error(v(188))}if(a.return!==u.return)a=e,u=n;else{for(var c=!1,f=e.child;f;){if(f===a){c=!0,a=e,u=n;break}if(f===u){c=!0,u=e,a=n;break}f=f.sibling}if(!c){for(f=n.child;f;){if(f===a){c=!0,a=n,u=e;break}if(f===u){c=!0,u=n,a=e;break}f=f.sibling}if(!c)throw Error(v(189))}}if(a.alternate!==u)throw Error(v(190))}if(a.tag!==3)throw Error(v(188));return a.stateNode.current===a?l:t}function D(l){var t=l.tag;if(t===5||t===26||t===27||t===6)return l;for(l=l.child;l!==null;){if(t=D(l),t!==null)return t;l=l.sibling}return null}var C=Object.assign,rl=Symbol.for("react.element"),el=Symbol.for("react.transitional.element"),Ul=Symbol.for("react.portal"),Y=Symbol.for("react.fragment"),tl=Symbol.for("react.strict_mode"),yl=Symbol.for("react.profiler"),bl=Symbol.for("react.consumer"),vl=Symbol.for("react.context"),Hl=Symbol.for("react.forward_ref"),zl=Symbol.for("react.suspense"),Xl=Symbol.for("react.suspense_list"),Z=Symbol.for("react.memo"),Zl=Symbol.for("react.lazy"),rt=Symbol.for("react.activity"),_u=Symbol.for("react.memo_cache_sentinel"),gt=Symbol.iterator;function Et(l){return l===null||typeof l!="object"?null:(l=gt&&l[gt]||l["@@iterator"],typeof l=="function"?l:null)}var Ae=Symbol.for("react.client.reference");function ga(l){if(l==null)return null;if(typeof l=="function")return l.$$typeof===Ae?null:l.displayName||l.name||null;if(typeof l=="string")return l;switch(l){case Y:return"Fragment";case yl:return"Profiler";case tl:return"StrictMode";case zl:return"Suspense";case Xl:return"SuspenseList";case rt:return"Activity"}if(typeof l=="object")switch(l.$$typeof){case Ul:return"Portal";case vl:return l.displayName||"Context";case bl:return(l._context.displayName||"Context")+".Consumer";case Hl:var t=l.render;return l=l.displayName,l||(l=t.displayName||t.name||"",l=l!==""?"ForwardRef("+l+")":"ForwardRef"),l;case Z:return t=l.displayName||null,t!==null?t:ga(l.type)||"Memo";case Zl:t=l._payload,l=l._init;try{return ga(l(t))}catch{}}return null}var Sa=Array.isArray,N=b.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,w=O.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Mt={pending:!1,data:null,method:null,action:null},Xa=[],Kt=-1;function d(l){return{current:l}}function T(l){0>Kt||(l.current=Xa[Kt],Xa[Kt]=null,Kt--)}function p(l,t){Kt++,Xa[Kt]=l.current,l.current=t}var B=d(null),V=d(null),L=d(null),al=d(null);function Ql(l,t){switch(p(L,t),p(V,l),p(B,null),t.nodeType){case 9:case 11:l=(l=t.documentElement)&&(l=l.namespaceURI)?Fv(l):0;break;default:if(l=t.tagName,t=t.namespaceURI)t=Fv(t),l=kv(t,l);else switch(l){case"svg":l=1;break;case"math":l=2;break;default:l=0}}T(B),p(B,l)}function El(){T(B),T(V),T(L)}function Du(l){l.memoizedState!==null&&p(al,l);var t=B.current,a=kv(t,l.type);t!==a&&(p(V,l),p(B,a))}function Oe(l){V.current===l&&(T(B),T(V)),al.current===l&&(T(al),ge._currentValue=Mt)}var Wn,pi;function ba(l){if(Wn===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);Wn=t&&t[1]||"",pi=-1<a.stack.indexOf(`
|
|
2
2
|
at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
3
3
|
`+Wn+l+pi}var $n=!1;function Fn(l,t){if(!l||$n)return"";$n=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var u={DetermineComponentFrameRoot:function(){try{if(t){var E=function(){throw Error()};if(Object.defineProperty(E.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(E,[])}catch(g){var r=g}Reflect.construct(l,[],E)}else{try{E.call()}catch(g){r=g}l.call(E.prototype)}}else{try{throw Error()}catch(g){r=g}(E=l())&&typeof E.catch=="function"&&E.catch(function(){})}}catch(g){if(g&&r&&typeof g.stack=="string")return[g.stack,r.stack]}return[null,null]}};u.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var e=Object.getOwnPropertyDescriptor(u.DetermineComponentFrameRoot,"name");e&&e.configurable&&Object.defineProperty(u.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var n=u.DetermineComponentFrameRoot(),c=n[0],f=n[1];if(c&&f){var i=c.split(`
|
|
4
4
|
`),h=f.split(`
|