moi-computer 0.6.1-next.0 → 0.8.0

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.
Files changed (54) hide show
  1. package/README.md +2 -2
  2. package/client/components/shared/BottomPanel.tsx +2 -1
  3. package/client/components/shared/PanelHeader.tsx +1 -1
  4. package/client/features/applets/AppletMount.tsx +9 -22
  5. package/client/features/applets/applet-cache.ts +7 -0
  6. package/client/features/applets/applet-styles.ts +21 -1
  7. package/client/features/applets/useApplet.ts +1 -1
  8. package/client/features/chat/ChatComposer.tsx +18 -4
  9. package/client/features/chat/ChatSelector.tsx +1 -1
  10. package/client/features/chat/TurnView.tsx +1 -1
  11. package/client/features/home/api.ts +0 -10
  12. package/client/features/home/workspace-setup/CreateWorkspaceDialog.tsx +21 -64
  13. package/client/features/home/workspace-setup/ImportWorkspaceDialog.tsx +1 -1
  14. package/client/features/scratchpad/Scratchpad.tsx +1 -3
  15. package/client/features/views/ViewManager.tsx +258 -0
  16. package/client/features/views/view-residency.ts +77 -0
  17. package/client/features/widgets/WidgetFrame.tsx +6 -2
  18. package/client/features/workspace/CustomizePanel.tsx +40 -24
  19. package/client/features/workspace/WorkspaceLayoutContext.tsx +8 -0
  20. package/client/features/workspace/WorkspaceScreen.tsx +51 -103
  21. package/client/features/workspace/WorkspaceTabs.tsx +1 -1
  22. package/client/index.css +4 -1
  23. package/client/runtime/workspace-theme.ts +29 -10
  24. package/client/theme.css +96 -6
  25. package/dist/chunk-0k7brsms.js +9 -0
  26. package/dist/{chunk-m11ckkxd.js → chunk-dtwxpxbg.js} +1 -1
  27. package/dist/{chunk-55sh4dty.js → chunk-ga7t9qsk.js} +1 -1
  28. package/dist/{chunk-w3tnv51j.js → chunk-h9h8f176.js} +1 -1
  29. package/dist/{chunk-rxvx4ta9.js → chunk-r5ce5cdg.js} +2 -2
  30. package/dist/chunk-tey2nq7c.js +31 -0
  31. package/dist/{chunk-afgbg75t.js → chunk-z73xpsa0.js} +1 -1
  32. package/dist/chunk-zzgredta.css +1 -0
  33. package/dist/index.html +1 -1
  34. package/lib/format.ts +18 -4
  35. package/lib/system-messages.ts +241 -0
  36. package/lib/themes.ts +123 -51
  37. package/lib/types.ts +2 -5
  38. package/package.json +5 -4
  39. package/server/api.ts +2 -73
  40. package/server/bundler/build-applet.ts +7 -4
  41. package/server/cli.ts +46 -15
  42. package/server/control.ts +13 -6
  43. package/server/harness/README.md +11 -0
  44. package/server/harness/claude-code/NOTES.md +22 -7
  45. package/server/harness/claude-code/adapter.ts +39 -5
  46. package/server/moi-scaffold.ts +1 -1
  47. package/server/registry.ts +0 -20
  48. package/server/scratchpad-executor.ts +23 -1
  49. package/server/theme.ts +24 -27
  50. package/workspace/.claude/skills/moi-workspace/DESIGN.md +94 -57
  51. package/workspace/.claude/skills/moi-workspace/SKILL.md +10 -12
  52. package/dist/chunk-175bm057.js +0 -27
  53. package/dist/chunk-agtetn7n.css +0 -1
  54. package/dist/chunk-exj6hr30.js +0 -9
@@ -1,4 +1,4 @@
1
- import{Da as D0,Ga as s3,Ha as mJ,O as i0,Oc as nZ,P as W0,Pb as S4,Qc as sZ,Sc as T4,bb as vJ,cc as _J,dc as m3,eb as QJ,ec as AJ,kb as xJ}from"/chunk-exj6hr30.js";import{Uc as o,Vc as V8,Wc as b7}from"/chunk-9y2zbzqz.js";var e3=V8((sJ)=>{var f0=o(i0());function pJ($,Z){return $===Z&&($!==0||1/$===1/Z)||$!==$&&Z!==Z}var uJ=typeof Object.is==="function"?Object.is:pJ,fJ=f0.useState,lJ=f0.useEffect,iJ=f0.useLayoutEffect,rJ=f0.useDebugValue;function dJ($,Z){var J=Z(),F=fJ({inst:{value:J,getSnapshot:Z}}),Q=F[0].inst,H=F[1];return iJ(function(){Q.value=J,Q.getSnapshot=Z,v4(Q)&&H({inst:Q})},[$,J,Z]),lJ(function(){return v4(Q)&&H({inst:Q}),$(function(){v4(Q)&&H({inst:Q})})},[$]),rJ(J),J}function v4($){var Z=$.getSnapshot;$=$.value;try{var J=Z();return!uJ($,J)}catch(F){return!0}}function cJ($,Z){return Z()}var aJ=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?cJ:dJ;sJ.useSyncExternalStore=f0.useSyncExternalStore!==void 0?f0.useSyncExternalStore:aJ});var x7=V8((eW,v7)=>{var T7=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,SF=/\n/g,EF=/^\s*/,kF=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,vF=/^:\s*/,xF=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,hF=/^[;\s]*/,mF=/^\s+|\s+$/g,pF=`
1
+ import{Da as D0,Ga as s3,Ha as mJ,O as i0,Oc as nZ,P as W0,Pb as S4,Qc as sZ,Sc as T4,bb as vJ,cc as _J,dc as m3,eb as QJ,ec as AJ,kb as xJ}from"/chunk-0k7brsms.js";import{Uc as o,Vc as V8,Wc as b7}from"/chunk-9y2zbzqz.js";var e3=V8((sJ)=>{var f0=o(i0());function pJ($,Z){return $===Z&&($!==0||1/$===1/Z)||$!==$&&Z!==Z}var uJ=typeof Object.is==="function"?Object.is:pJ,fJ=f0.useState,lJ=f0.useEffect,iJ=f0.useLayoutEffect,rJ=f0.useDebugValue;function dJ($,Z){var J=Z(),F=fJ({inst:{value:J,getSnapshot:Z}}),Q=F[0].inst,H=F[1];return iJ(function(){Q.value=J,Q.getSnapshot=Z,v4(Q)&&H({inst:Q})},[$,J,Z]),lJ(function(){return v4(Q)&&H({inst:Q}),$(function(){v4(Q)&&H({inst:Q})})},[$]),rJ(J),J}function v4($){var Z=$.getSnapshot;$=$.value;try{var J=Z();return!uJ($,J)}catch(F){return!0}}function cJ($,Z){return Z()}var aJ=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?cJ:dJ;sJ.useSyncExternalStore=f0.useSyncExternalStore!==void 0?f0.useSyncExternalStore:aJ});var x7=V8((eW,v7)=>{var T7=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,SF=/\n/g,EF=/^\s*/,kF=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,vF=/^:\s*/,xF=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,hF=/^[;\s]*/,mF=/^\s+|\s+$/g,pF=`
2
2
  `,S7="/",E7="*",M8="",uF="comment",fF="declaration";function lF($,Z){if(typeof $!=="string")throw TypeError("First argument must be a string");if(!$)return[];Z=Z||{};var J=1,F=1;function Q(V){var U=V.match(SF);if(U)J+=U.length;var _=V.lastIndexOf(pF);F=~_?V.length-_:F+V.length}function H(){var V={line:J,column:F};return function(U){return U.position=new q(V),K(),U}}function q(V){this.start=V,this.end={line:J,column:F},this.source=Z.source}q.prototype.content=$;function X(V){var U=Error(Z.source+":"+J+":"+F+": "+V);if(U.reason=V,U.filename=Z.source,U.line=J,U.column=F,U.source=$,Z.silent);else throw U}function G(V){var U=V.exec($);if(!U)return;var _=U[0];return Q(_),$=$.slice(_.length),U}function K(){G(EF)}function D(V){var U;V=V||[];while(U=z())if(U!==!1)V.push(U);return V}function z(){var V=H();if(S7!=$.charAt(0)||E7!=$.charAt(1))return;var U=2;while(M8!=$.charAt(U)&&(E7!=$.charAt(U)||S7!=$.charAt(U+1)))++U;if(U+=2,M8===$.charAt(U-1))return X("End of comment missing");var _=$.slice(2,U-2);return F+=2,Q(_),$=$.slice(U),F+=2,V({type:uF,comment:_})}function W(){var V=H(),U=G(kF);if(!U)return;if(z(),!G(vF))return X("property missing ':'");var _=G(xF),P=V({type:fF,property:k7(U[0].replace(T7,M8)),value:_?k7(_[0].replace(T7,M8)):M8});return G(hF),P}function B(){var V=[];D(V);var U;while(U=W())if(U!==!1)V.push(U),D(V);return V}return K(),B()}function k7($){return $?$.replace(mF,M8):M8}v7.exports=lF});var h7=V8((X5)=>{var iF=X5&&X5.__importDefault||function($){return $&&$.__esModule?$:{default:$}};Object.defineProperty(X5,"__esModule",{value:!0});X5.default=dF;var rF=iF(x7());function dF($,Z){let J=null;if(!$||typeof $!=="string")return J;let F=(0,rF.default)($),Q=typeof Z==="function";return F.forEach((H)=>{if(H.type!=="declaration")return;let{property:q,value:X}=H;if(Q)Z(q,X,H);else if(X)J=J||{},J[q]=X}),J}});var f7=V8((p7)=>{Object.defineProperty(p7,"__esModule",{value:!0});p7.camelCase=void 0;var cF=/^--[a-zA-Z0-9_-]+$/,aF=/-([a-z])/g,sF=/^[^-]+$/,nF=/^-(webkit|moz|ms|o|khtml)-/,oF=/^-(ms)-/,tF=function($){return!$||sF.test($)||cF.test($)},eF=function($,Z){return Z.toUpperCase()},m7=function($,Z){return"".concat(Z,"-")},$Q=function($,Z){if(Z===void 0)Z={};if(tF($))return $;if($=$.toLowerCase(),Z.reactCompat)$=$.replace(oF,m7);else $=$.replace(nF,m7);return $.replace(aF,eF)};p7.camelCase=$Q});var i7=V8((t4,l7)=>{var ZQ=t4&&t4.__importDefault||function($){return $&&$.__esModule?$:{default:$}},JQ=ZQ(h7()),FQ=f7();function o4($,Z){var J={};if(!$||typeof $!=="string")return J;return(0,JQ.default)($,function(F,Q){if(F&&Q)J[(0,FQ.camelCase)(F,Z)]=Q}),J}o4.default=o4;l7.exports=o4});var z6=V8((iP,D6)=>{var B4=Object.prototype.hasOwnProperty,K6=Object.prototype.toString,F6=Object.defineProperty,Q6=Object.getOwnPropertyDescriptor,q6=function(Z){if(typeof Array.isArray==="function")return Array.isArray(Z);return K6.call(Z)==="[object Array]"},H6=function(Z){if(!Z||K6.call(Z)!=="[object Object]")return!1;var J=B4.call(Z,"constructor"),F=Z.constructor&&Z.constructor.prototype&&B4.call(Z.constructor.prototype,"isPrototypeOf");if(Z.constructor&&!J&&!F)return!1;var Q;for(Q in Z);return typeof Q>"u"||B4.call(Z,Q)},X6=function(Z,J){if(F6&&J.name==="__proto__")F6(Z,J.name,{enumerable:!0,configurable:!0,value:J.newValue,writable:!0});else Z[J.name]=J.newValue},G6=function(Z,J){if(J==="__proto__"){if(!B4.call(Z,J))return;else if(Q6)return Q6(Z,J).value}return Z[J]};D6.exports=function $(){var Z,J,F,Q,H,q,X=arguments[0],G=1,K=arguments.length,D=!1;if(typeof X==="boolean")D=X,X=arguments[1]||{},G=2;if(X==null||typeof X!=="object"&&typeof X!=="function")X={};for(;G<K;++G)if(Z=arguments[G],Z!=null){for(J in Z)if(F=G6(X,J),Q=G6(Z,J),X!==Q){if(D&&Q&&(H6(Q)||(H=q6(Q)))){if(H)H=!1,q=F&&q6(F)?F:[];else q=F&&H6(F)?F:{};X6(X,{name:J,newValue:$(D,q,Q)})}else if(typeof Q<"u")X6(X,{name:J,newValue:Q})}}return X}});var F2=V8((z_,J2)=>{function u$($){if($ instanceof Map)$.clear=$.delete=$.set=function(){throw Error("map is read-only")};else if($ instanceof Set)$.add=$.clear=$.delete=function(){throw Error("set is read-only")};return Object.freeze($),Object.getOwnPropertyNames($).forEach((Z)=>{let J=$[Z],F=typeof J;if((F==="object"||F==="function")&&!Object.isFrozen(J))u$(J)}),$}class l1{constructor($){if($.data===void 0)$.data={};this.data=$.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function f$($){return $.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function D8($,...Z){let J=Object.create(null);for(let F in $)J[F]=$[F];return Z.forEach(function(F){for(let Q in F)J[Q]=F[Q]}),J}var jX="</span>",k$=($)=>{return!!$.scope},RX=($,{prefix:Z})=>{if($.startsWith("language:"))return $.replace("language:","language-");if($.includes(".")){let J=$.split(".");return[`${Z}${J.shift()}`,...J.map((F,Q)=>`${F}${"_".repeat(Q+1)}`)].join(" ")}return`${Z}${$}`};class l${constructor($,Z){this.buffer="",this.classPrefix=Z.classPrefix,$.walk(this)}addText($){this.buffer+=f$($)}openNode($){if(!k$($))return;let Z=RX($.scope,{prefix:this.classPrefix});this.span(Z)}closeNode($){if(!k$($))return;this.buffer+=jX}value(){return this.buffer}span($){this.buffer+=`<span class="${$}">`}}var v$=($={})=>{let Z={children:[]};return Object.assign(Z,$),Z};class i1{constructor(){this.rootNode=v$(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add($){this.top.children.push($)}openNode($){let Z=v$({scope:$});this.add(Z),this.stack.push(Z)}closeNode(){if(this.stack.length>1)return this.stack.pop();return}closeAllNodes(){while(this.closeNode());}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk($){return this.constructor._walk($,this.rootNode)}static _walk($,Z){if(typeof Z==="string")$.addText(Z);else if(Z.children)$.openNode(Z),Z.children.forEach((J)=>this._walk($,J)),$.closeNode(Z);return $}static _collapse($){if(typeof $==="string")return;if(!$.children)return;if($.children.every((Z)=>typeof Z==="string"))$.children=[$.children.join("")];else $.children.forEach((Z)=>{i1._collapse(Z)})}}class i$ extends i1{constructor($){super();this.options=$}addText($){if($==="")return;this.add($)}startScope($){this.openNode($)}endScope(){this.closeNode()}__addSublanguage($,Z){let J=$.root;if(Z)J.scope=`language:${Z}`;this.add(J)}toHTML(){return new l$(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function C5($){if(!$)return null;if(typeof $==="string")return $;return $.source}function r$($){return y8("(?=",$,")")}function IX($){return y8("(?:",$,")*")}function gX($){return y8("(?:",$,")?")}function y8(...$){return $.map((J)=>C5(J)).join("")}function TX($){let Z=$[$.length-1];if(typeof Z==="object"&&Z.constructor===Object)return $.splice($.length-1,1),Z;else return{}}function r1(...$){return"("+(TX($).capture?"":"?:")+$.map((F)=>C5(F)).join("|")+")"}function d$($){return new RegExp($.toString()+"|").exec("").length-1}function SX($,Z){let J=$&&$.exec(Z);return J&&J.index===0}var EX=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function d1($,{joinWith:Z}){let J=0;return $.map((F)=>{J+=1;let Q=J,H=C5(F),q="";while(H.length>0){let X=EX.exec(H);if(!X){q+=H;break}if(q+=H.substring(0,X.index),H=H.substring(X.index+X[0].length),X[0][0]==="\\"&&X[1])q+="\\"+String(Number(X[1])+Q);else if(q+=X[0],X[0]==="(")J++}return q}).map((F)=>`(${F})`).join(Z)}var kX=/\b\B/,c$="[a-zA-Z]\\w*",c1="[a-zA-Z_]\\w*",a$="\\b\\d+(\\.\\d+)?",s$="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",n$="\\b(0b[01]+)",vX="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",xX=($={})=>{let Z=/^#![ ]*\//;if($.binary)$.begin=y8(Z,/.*\b/,$.binary,/\b.*/);return D8({scope:"meta",begin:Z,end:/$/,relevance:0,"on:begin":(J,F)=>{if(J.index!==0)F.ignoreMatch()}},$)},b5={begin:"\\\\[\\s\\S]",relevance:0},hX={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[b5]},mX={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[b5]},pX={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},O4=function($,Z,J={}){let F=D8({scope:"comment",begin:$,end:Z,contains:[]},J);F.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});let Q=r1("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return F.contains.push({begin:y8(/[ ]+/,"(",Q,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),F},uX=O4("//","$"),fX=O4("/\\*","\\*/"),lX=O4("#","$"),iX={scope:"number",begin:a$,relevance:0},rX={scope:"number",begin:s$,relevance:0},dX={scope:"number",begin:n$,relevance:0},cX={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[b5,{begin:/\[/,end:/\]/,relevance:0,contains:[b5]}]},aX={scope:"title",begin:c$,relevance:0},sX={scope:"title",begin:c1,relevance:0},nX={begin:"\\.\\s*"+c1,relevance:0},oX=function($){return Object.assign($,{"on:begin":(Z,J)=>{J.data._beginMatch=Z[1]},"on:end":(Z,J)=>{if(J.data._beginMatch!==Z[1])J.ignoreMatch()}})},C4=Object.freeze({__proto__:null,APOS_STRING_MODE:hX,BACKSLASH_ESCAPE:b5,BINARY_NUMBER_MODE:dX,BINARY_NUMBER_RE:n$,COMMENT:O4,C_BLOCK_COMMENT_MODE:fX,C_LINE_COMMENT_MODE:uX,C_NUMBER_MODE:rX,C_NUMBER_RE:s$,END_SAME_AS_BEGIN:oX,HASH_COMMENT_MODE:lX,IDENT_RE:c$,MATCH_NOTHING_RE:kX,METHOD_GUARD:nX,NUMBER_MODE:iX,NUMBER_RE:a$,PHRASAL_WORDS_MODE:pX,QUOTE_STRING_MODE:mX,REGEXP_MODE:cX,RE_STARTERS_RE:vX,SHEBANG:xX,TITLE_MODE:aX,UNDERSCORE_IDENT_RE:c1,UNDERSCORE_TITLE_MODE:sX});function tX($,Z){if($.input[$.index-1]===".")Z.ignoreMatch()}function eX($,Z){if($.className!==void 0)$.scope=$.className,delete $.className}function $G($,Z){if(!Z)return;if(!$.beginKeywords)return;if($.begin="\\b("+$.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",$.__beforeBegin=tX,$.keywords=$.keywords||$.beginKeywords,delete $.beginKeywords,$.relevance===void 0)$.relevance=0}function ZG($,Z){if(!Array.isArray($.illegal))return;$.illegal=r1(...$.illegal)}function JG($,Z){if(!$.match)return;if($.begin||$.end)throw Error("begin & end are not supported with match");$.begin=$.match,delete $.match}function FG($,Z){if($.relevance===void 0)$.relevance=1}var QG=($,Z)=>{if(!$.beforeMatch)return;if($.starts)throw Error("beforeMatch cannot be used with starts");let J=Object.assign({},$);Object.keys($).forEach((F)=>{delete $[F]}),$.keywords=J.keywords,$.begin=y8(J.beforeMatch,r$(J.begin)),$.starts={relevance:0,contains:[Object.assign(J,{endsParent:!0})]},$.relevance=0,delete J.beforeMatch},qG=["of","and","for","in","not","or","if","then","parent","list","value"],HG="keyword";function o$($,Z,J=HG){let F=Object.create(null);if(typeof $==="string")Q(J,$.split(" "));else if(Array.isArray($))Q(J,$);else Object.keys($).forEach(function(H){Object.assign(F,o$($[H],Z,H))});return F;function Q(H,q){if(Z)q=q.map((X)=>X.toLowerCase());q.forEach(function(X){let G=X.split("|");F[G[0]]=[H,XG(G[0],G[1])]})}}function XG($,Z){if(Z)return Number(Z);return GG($)?0:1}function GG($){return qG.includes($.toLowerCase())}var x$={},O8=($)=>{console.error($)},h$=($,...Z)=>{console.log(`WARN: ${$}`,...Z)},d8=($,Z)=>{if(x$[`${$}/${Z}`])return;console.log(`Deprecated as of ${$}. ${Z}`),x$[`${$}/${Z}`]=!0},b4=Error();function t$($,Z,{key:J}){let F=0,Q=$[J],H={},q={};for(let X=1;X<=Z.length;X++)q[X+F]=Q[X],H[X+F]=!0,F+=d$(Z[X-1]);$[J]=q,$[J]._emit=H,$[J]._multi=!0}function KG($){if(!Array.isArray($.begin))return;if($.skip||$.excludeBegin||$.returnBegin)throw O8("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),b4;if(typeof $.beginScope!=="object"||$.beginScope===null)throw O8("beginScope must be object"),b4;t$($,$.begin,{key:"beginScope"}),$.begin=d1($.begin,{joinWith:""})}function DG($){if(!Array.isArray($.end))return;if($.skip||$.excludeEnd||$.returnEnd)throw O8("skip, excludeEnd, returnEnd not compatible with endScope: {}"),b4;if(typeof $.endScope!=="object"||$.endScope===null)throw O8("endScope must be object"),b4;t$($,$.end,{key:"endScope"}),$.end=d1($.end,{joinWith:""})}function zG($){if($.scope&&typeof $.scope==="object"&&$.scope!==null)$.beginScope=$.scope,delete $.scope}function WG($){if(zG($),typeof $.beginScope==="string")$.beginScope={_wrap:$.beginScope};if(typeof $.endScope==="string")$.endScope={_wrap:$.endScope};KG($),DG($)}function BG($){function Z(q,X){return new RegExp(C5(q),"m"+($.case_insensitive?"i":"")+($.unicodeRegex?"u":"")+(X?"g":""))}class J{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(q,X){X.position=this.position++,this.matchIndexes[this.matchAt]=X,this.regexes.push([X,q]),this.matchAt+=d$(q)+1}compile(){if(this.regexes.length===0)this.exec=()=>null;let q=this.regexes.map((X)=>X[1]);this.matcherRe=Z(d1(q,{joinWith:"|"}),!0),this.lastIndex=0}exec(q){this.matcherRe.lastIndex=this.lastIndex;let X=this.matcherRe.exec(q);if(!X)return null;let G=X.findIndex((D,z)=>z>0&&D!==void 0),K=this.matchIndexes[G];return X.splice(0,G),Object.assign(X,K)}}class F{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(q){if(this.multiRegexes[q])return this.multiRegexes[q];let X=new J;return this.rules.slice(q).forEach(([G,K])=>X.addRule(G,K)),X.compile(),this.multiRegexes[q]=X,X}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(q,X){if(this.rules.push([q,X]),X.type==="begin")this.count++}exec(q){let X=this.getMatcher(this.regexIndex);X.lastIndex=this.lastIndex;let G=X.exec(q);if(this.resumingScanAtSamePosition())if(G&&G.index===this.lastIndex);else{let K=this.getMatcher(0);K.lastIndex=this.lastIndex+1,G=K.exec(q)}if(G){if(this.regexIndex+=G.position+1,this.regexIndex===this.count)this.considerAll()}return G}}function Q(q){let X=new F;if(q.contains.forEach((G)=>X.addRule(G.begin,{rule:G,type:"begin"})),q.terminatorEnd)X.addRule(q.terminatorEnd,{type:"end"});if(q.illegal)X.addRule(q.illegal,{type:"illegal"});return X}function H(q,X){let G=q;if(q.isCompiled)return G;[eX,JG,WG,QG].forEach((D)=>D(q,X)),$.compilerExtensions.forEach((D)=>D(q,X)),q.__beforeBegin=null,[$G,ZG,FG].forEach((D)=>D(q,X)),q.isCompiled=!0;let K=null;if(typeof q.keywords==="object"&&q.keywords.$pattern)q.keywords=Object.assign({},q.keywords),K=q.keywords.$pattern,delete q.keywords.$pattern;if(K=K||/\w+/,q.keywords)q.keywords=o$(q.keywords,$.case_insensitive);if(G.keywordPatternRe=Z(K,!0),X){if(!q.begin)q.begin=/\B|\b/;if(G.beginRe=Z(G.begin),!q.end&&!q.endsWithParent)q.end=/\B|\b/;if(q.end)G.endRe=Z(G.end);if(G.terminatorEnd=C5(G.end)||"",q.endsWithParent&&X.terminatorEnd)G.terminatorEnd+=(q.end?"|":"")+X.terminatorEnd}if(q.illegal)G.illegalRe=Z(q.illegal);if(!q.contains)q.contains=[];if(q.contains=[].concat(...q.contains.map(function(D){return VG(D==="self"?q:D)})),q.contains.forEach(function(D){H(D,G)}),q.starts)H(q.starts,X);return G.matcher=Q(G),G}if(!$.compilerExtensions)$.compilerExtensions=[];if($.contains&&$.contains.includes("self"))throw Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return $.classNameAliases=D8($.classNameAliases||{}),H($)}function e$($){if(!$)return!1;return $.endsWithParent||e$($.starts)}function VG($){if($.variants&&!$.cachedVariants)$.cachedVariants=$.variants.map(function(Z){return D8($,{variants:null},Z)});if($.cachedVariants)return $.cachedVariants;if(e$($))return D8($,{starts:$.starts?D8($.starts):null});if(Object.isFrozen($))return D8($);return $}var YG="11.11.1";class $2 extends Error{constructor($,Z){super($);this.name="HTMLInjectionError",this.html=Z}}var f1=f$,m$=D8,p$=Symbol("nomatch"),UG=7,Z2=function($){let Z=Object.create(null),J=Object.create(null),F=[],Q=!0,H="Could not find the language '{}', did you forget to load/include a language module?",q={disableAutodetect:!0,name:"Plain text",contains:[]},X={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:i$};function G(w){return X.noHighlightRe.test(w)}function K(w){let b=w.className+" ";b+=w.parentNode?w.parentNode.className:"";let g=X.languageDetectRe.exec(b);if(g){let v=x(g[1]);if(!v)h$(H.replace("{}",g[1])),h$("Falling back to no-highlight mode for this block.",w);return v?g[1]:"no-highlight"}return b.split(/\s+/).find((v)=>G(v)||x(v))}function D(w,b,g){let v="",Y="";if(typeof b==="object")v=w,g=b.ignoreIllegals,Y=b.language;else d8("10.7.0","highlight(lang, code, ...args) has been deprecated."),d8("10.7.0",`Please use highlight(code, options) instead.
3
3
  https://github.com/highlightjs/highlight.js/issues/2277`),Y=w,v=b;if(g===void 0)g=!0;let r={code:v,language:Y};m("before:highlight",r);let e=r.result?r.result:z(r.language,r.code,g);return e.code=r.code,m("after:highlight",e),e}function z(w,b,g,v){let Y=Object.create(null);function r(L,C){return L.keywords[C]}function e(){if(!i.keywords){L0.addText(G0);return}let L=0;i.keywordPatternRe.lastIndex=0;let C=i.keywordPatternRe.exec(G0),T="";while(C){T+=G0.substring(L,C.index);let h=g0.case_insensitive?C[0].toLowerCase():C[0],c=r(i,h);if(c){let[Y0,t0]=c;if(L0.addText(T),T="",Y[h]=(Y[h]||0)+1,Y[h]<=UG)g8+=t0;if(Y0.startsWith("_"))T+=C[0];else{let u0=g0.classNameAliases[Y0]||Y0;z0(C[0],u0)}}else T+=C[0];L=i.keywordPatternRe.lastIndex,C=i.keywordPatternRe.exec(G0)}T+=G0.substring(L),L0.addText(T)}function M(){if(G0==="")return;let L=null;if(typeof i.subLanguage==="string"){if(!Z[i.subLanguage]){L0.addText(G0);return}L=z(i.subLanguage,G0,!0,B8[i.subLanguage]),B8[i.subLanguage]=L._top}else L=B(G0,i.subLanguage.length?i.subLanguage:null);if(i.relevance>0)g8+=L.relevance;L0.__addSublanguage(L._emitter,L.language)}function q0(){if(i.subLanguage!=null)M();else e();G0=""}function z0(L,C){if(L==="")return;L0.startScope(C),L0.addText(L),L0.endScope()}function H0(L,C){let T=1,h=C.length-1;while(T<=h){if(!L._emit[T]){T++;continue}let c=g0.classNameAliases[L[T]]||L[T],Y0=C[T];if(c)z0(Y0,c);else G0=Y0,e(),G0="";T++}}function N0(L,C){if(L.scope&&typeof L.scope==="string")L0.openNode(g0.classNameAliases[L.scope]||L.scope);if(L.beginScope){if(L.beginScope._wrap)z0(G0,g0.classNameAliases[L.beginScope._wrap]||L.beginScope._wrap),G0="";else if(L.beginScope._multi)H0(L.beginScope,C),G0=""}return i=Object.create(L,{parent:{value:i}}),i}function $0(L,C,T){let h=SX(L.endRe,T);if(h){if(L["on:end"]){let c=new l1(L);if(L["on:end"](C,c),c.isMatchIgnored)h=!1}if(h){while(L.endsParent&&L.parent)L=L.parent;return L}}if(L.endsWithParent)return $0(L.parent,C,T)}function k0(L){if(i.matcher.regexIndex===0)return G0+=L[0],1;else return J5=!0,0}function P0(L){let C=L[0],T=L.rule,h=new l1(T),c=[T.__beforeBegin,T["on:begin"]];for(let Y0 of c){if(!Y0)continue;if(Y0(L,h),h.isMatchIgnored)return k0(C)}if(T.skip)G0+=C;else{if(T.excludeBegin)G0+=C;if(q0(),!T.returnBegin&&!T.excludeBegin)G0=C}return N0(T,L),T.returnBegin?0:C.length}function C0(L){let C=L[0],T=b.substring(L.index),h=$0(i,L,T);if(!h)return p$;let c=i;if(i.endScope&&i.endScope._wrap)q0(),z0(C,i.endScope._wrap);else if(i.endScope&&i.endScope._multi)q0(),H0(i.endScope,L);else if(c.skip)G0+=C;else{if(!(c.returnEnd||c.excludeEnd))G0+=C;if(q0(),c.excludeEnd)G0=C}do{if(i.scope)L0.closeNode();if(!i.skip&&!i.subLanguage)g8+=i.relevance;i=i.parent}while(i!==h.parent);if(h.starts)N0(h.starts,L);return c.returnEnd?0:C.length}function b0(){let L=[];for(let C=i;C!==g0;C=C.parent)if(C.scope)L.unshift(C.scope);L.forEach((C)=>L0.openNode(C))}let O0={};function y0(L,C){let T=C&&C[0];if(G0+=L,T==null)return q0(),0;if(O0.type==="begin"&&C.type==="end"&&O0.index===C.index&&T===""){if(G0+=b.slice(C.index,C.index+1),!Q){let h=Error(`0 width match regex (${w})`);throw h.languageName=w,h.badRule=O0.rule,h}return 1}if(O0=C,C.type==="begin")return P0(C);else if(C.type==="illegal"&&!g){let h=Error('Illegal lexeme "'+T+'" for mode "'+(i.scope||"<unnamed>")+'"');throw h.mode=i,h}else if(C.type==="end"){let h=C0(C);if(h!==p$)return h}if(C.type==="illegal"&&T==="")return G0+=`
4
4
  `,1;if(Z5>1e5&&Z5>C.index*3)throw Error("potential infinite loop, way more iterations than matches");return G0+=T,T.length}let g0=x(w);if(!g0)throw O8(H.replace("{}",w)),Error('Unknown language: "'+w+'"');let Q0=BG(g0),p0="",i=v||Q0,B8={},L0=new X.__emitter(X);b0();let G0="",g8=0,o0=0,Z5=0,J5=!1;try{if(!g0.__emitTokens){i.matcher.considerAll();for(;;){if(Z5++,J5)J5=!1;else i.matcher.considerAll();i.matcher.lastIndex=o0;let L=i.matcher.exec(b);if(!L)break;let C=b.substring(o0,L.index),T=y0(C,L);o0=L.index+T}y0(b.substring(o0))}else g0.__emitTokens(b,L0);return L0.finalize(),p0=L0.toHTML(),{language:w,value:p0,relevance:g8,illegal:!1,_emitter:L0,_top:i}}catch(L){if(L.message&&L.message.includes("Illegal"))return{language:w,value:f1(b),illegal:!0,relevance:0,_illegalBy:{message:L.message,index:o0,context:b.slice(o0-100,o0+100),mode:L.mode,resultSoFar:p0},_emitter:L0};else if(Q)return{language:w,value:f1(b),illegal:!1,relevance:0,errorRaised:L,_emitter:L0,_top:i};else throw L}}function W(w){let b={value:f1(w),illegal:!1,relevance:0,_top:q,_emitter:new X.__emitter(X)};return b._emitter.addText(w),b}function B(w,b){b=b||X.languages||Object.keys(Z);let g=W(w),v=b.filter(x).filter(N).map((q0)=>z(q0,w,!1));v.unshift(g);let Y=v.sort((q0,z0)=>{if(q0.relevance!==z0.relevance)return z0.relevance-q0.relevance;if(q0.language&&z0.language){if(x(q0.language).supersetOf===z0.language)return 1;else if(x(z0.language).supersetOf===q0.language)return-1}return 0}),[r,e]=Y,M=r;return M.secondBest=e,M}function V(w,b,g){let v=b&&J[b]||g;w.classList.add("hljs"),w.classList.add(`language-${v}`)}function U(w){let b=null,g=K(w);if(G(g))return;if(m("before:highlightElement",{el:w,language:g}),w.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",w);return}if(w.children.length>0){if(!X.ignoreUnescapedHTML)console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(w);if(X.throwUnescapedHTML)throw new $2("One of your code blocks includes unescaped HTML.",w.innerHTML)}b=w;let v=b.textContent,Y=g?D(v,{language:g,ignoreIllegals:!0}):B(v);if(w.innerHTML=Y.value,w.dataset.highlighted="yes",V(w,g,Y.language),w.result={language:Y.language,re:Y.relevance,relevance:Y.relevance},Y.secondBest)w.secondBest={language:Y.secondBest.language,relevance:Y.secondBest.relevance};m("after:highlightElement",{el:w,result:Y,text:v})}function _(w){X=m$(X,w)}let P=()=>{R(),d8("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function y(){R(),d8("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let O=!1;function R(){function w(){R()}if(document.readyState==="loading"){if(!O)window.addEventListener("DOMContentLoaded",w,!1);O=!0;return}document.querySelectorAll(X.cssSelector).forEach(U)}function S(w,b){let g=null;try{g=b($)}catch(v){if(O8("Language definition for '{}' could not be registered.".replace("{}",w)),!Q)throw v;else O8(v);g=q}if(!g.name)g.name=w;if(Z[w]=g,g.rawDefinition=b.bind(null,$),g.aliases)p(g.aliases,{languageName:w})}function A(w){delete Z[w];for(let b of Object.keys(J))if(J[b]===w)delete J[b]}function u(){return Object.keys(Z)}function x(w){return w=(w||"").toLowerCase(),Z[w]||Z[J[w]]}function p(w,{languageName:b}){if(typeof w==="string")w=[w];w.forEach((g)=>{J[g.toLowerCase()]=b})}function N(w){let b=x(w);return b&&!b.disableAutodetect}function s(w){if(w["before:highlightBlock"]&&!w["before:highlightElement"])w["before:highlightElement"]=(b)=>{w["before:highlightBlock"](Object.assign({block:b.el},b))};if(w["after:highlightBlock"]&&!w["after:highlightElement"])w["after:highlightElement"]=(b)=>{w["after:highlightBlock"](Object.assign({block:b.el},b))}}function d(w){s(w),F.push(w)}function k(w){let b=F.indexOf(w);if(b!==-1)F.splice(b,1)}function m(w,b){let g=w;F.forEach(function(v){if(v[g])v[g](b)})}function j(w){return d8("10.7.0","highlightBlock will be removed entirely in v12.0"),d8("10.7.0","Please use highlightElement now."),U(w)}Object.assign($,{highlight:D,highlightAuto:B,highlightAll:R,highlightElement:U,highlightBlock:j,configure:_,initHighlighting:P,initHighlightingOnLoad:y,registerLanguage:S,unregisterLanguage:A,listLanguages:u,getLanguage:x,registerAliases:p,autoDetection:N,inherit:m$,addPlugin:d,removePlugin:k}),$.debugMode=function(){Q=!1},$.safeMode=function(){Q=!0},$.versionString=YG,$.regex={concat:y8,lookahead:r$,either:r1,optional:gX,anyNumberOfTimes:IX};for(let w in C4)if(typeof C4[w]==="object")u$(C4[w]);return Object.assign($,C4),$},c8=Z2({});c8.newInstance=()=>Z2({});J2.exports=c8;c8.HighlightJS=c8;c8.default=c8});function t3($,Z){if($ instanceof RegExp)return{keys:!1,pattern:$};var J,F,Q,H,q=[],X="",G=$.split("/");G[0]||G.shift();while(Q=G.shift())if(J=Q[0],J==="*")q.push(J),X+=Q[1]==="?"?"(?:/(.*))?":"/(.*)";else if(J===":"){if(F=Q.indexOf("?",1),H=Q.indexOf(".",1),q.push(Q.substring(1,~F?F:~H?H:Q.length)),X+=!!~F&&!~H?"(?:/([^/]+?))?":"/([^/]+?)",~H)X+=(~F?"?":"")+"\\"+Q.substring(H)}else X+="/"+Q;return{keys:q,pattern:new RegExp("^"+X+(Z?"(?=$|/)":"/?$"),"i")}}var Y8=o(i0(),1),t=o(i0(),1);var S5=o(e3(),1);var oJ=Y8.useInsertionEffect,tJ=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",$7=tJ?Y8.useLayoutEffect:Y8.useEffect,eJ=oJ||$7,E5=($)=>{let Z=Y8.useRef([$,(...J)=>Z[0](...J)]).current;return eJ(()=>{Z[0]=$}),Z[1]};var $F="popstate",x4="pushState",h4="replaceState",ZF="hashchange",Z7=[$F,x4,h4,ZF],JF=($)=>{for(let Z of Z7)addEventListener(Z,$);return()=>{for(let Z of Z7)removeEventListener(Z,$)}},m4=($,Z)=>S5.useSyncExternalStore(JF,$,Z),J7=()=>location.search,q7=({ssrSearch:$}={})=>m4(J7,$!=null?()=>$:J7),F7=()=>location.pathname,FF=({ssrPath:$}={})=>m4(F7,$!=null?()=>$:F7),QF=()=>history.state,Ez=()=>m4(QF,()=>null),qF=($,{replace:Z=!1,state:J=null}={})=>history[Z?h4:x4](J,"",$),H7=($={})=>[FF($),qF],Q7=Symbol.for("wouter_v3");if(typeof history<"u"&&typeof window[Q7]>"u"){for(let $ of[x4,h4]){let Z=history[$];history[$]=function(){let J=Z.apply(this,arguments),F=new Event($);return F.arguments=arguments,dispatchEvent(F),J}}Object.defineProperty(window,Q7,{value:!0})}var HF=($,Z)=>!Z.toLowerCase().indexOf($.toLowerCase())?Z.slice($.length)||"/":"~"+Z,X7=($="")=>$==="/"?"":$,G7=($,Z)=>$[0]==="~"?$.slice(1):X7(Z)+$,K7=($="",Z)=>HF(p4(X7($)),p4(Z)),XF=($)=>$[0]==="?"?$.slice(1):$,p4=($)=>{try{return decodeURI($)}catch(Z){return $}},D7=($)=>p4(XF($));var W7={hook:H7,searchHook:q7,parser:t3,base:"",ssrPath:void 0,ssrSearch:void 0,ssrContext:void 0,hrefs:($)=>$,aroundNav:($,Z,J)=>$(Z,J)},B7=t.createContext(W7),S8=()=>t.useContext(B7),V7={},Y7=t.createContext(V7),GF=()=>t.useContext(Y7),k5=($)=>{let[Z,J]=$.hook($);return[K7($.base,Z),E5((F,Q)=>$.aroundNav(J,G7(F,$.base),Q))]},KF=()=>k5(S8()),DF=()=>{let $=S8();return D7($.searchHook($))},U7=($,Z,J,F)=>{let{pattern:Q,keys:H}=Z instanceof RegExp?{keys:!1,pattern:Z}:$(Z||"*",F),q=Q.exec(J)||[],[X,...G]=q;return X!==void 0?[!0,(()=>{let K=H!==!1?Object.fromEntries(H.map((z,W)=>[z,G[W]])):q.groups,D={...G};return K&&Object.assign(D,K),D})(),...F?[X]:[]]:[!1,null]};var zF=({children:$,...Z})=>{let J=S8(),F=Z.hook?W7:J,Q=F,[H,q=Z.ssrSearch??""]=Z.ssrPath?.split("?")??[];if(H)Z.ssrSearch=q,Z.ssrPath=H;Z.hrefs=Z.hrefs??Z.hook?.hrefs,Z.searchHook=Z.searchHook??Z.hook?.searchHook;let X=t.useRef({}),G=X.current,K=G;for(let D in F){let z=D==="base"?F[D]+(Z[D]??""):Z[D]??F[D];if(G===K&&z!==K[D])X.current=K={...K};if(K[D]=z,z!==F[D]||z!==Q[D])Q=K}return t.createElement(B7.Provider,{value:Q,children:$})},z7=({children:$,component:Z},J)=>{if(Z)return t.createElement(Z,{params:J});return typeof $==="function"?$(J):$},WF=($)=>{let Z=t.useRef(V7),J=Z.current;return Z.current=Object.keys($).length!==Object.keys(J).length||Object.entries($).some(([F,Q])=>Q!==J[F])?$:J};function uz(){let[$,Z]=KF(),J=DF(),F=t.useMemo(()=>new URLSearchParams(J),[J]),Q=F,H=E5((q,X)=>{Q=new URLSearchParams(typeof q==="function"?q(Q):q),Z($+"?"+Q,X)});return[F,H]}var fz=({path:$,nest:Z,match:J,...F})=>{let Q=S8(),[H]=k5(Q),[q,X,G]=J??U7(Q.parser,$,H,Z),K=WF({...GF(),...X});if(!q)return null;let D=G?t.createElement(zF,{base:G},z7(F,K)):z7(F,K);return t.createElement(Y7.Provider,{value:K,children:D})},lz=t.forwardRef(($,Z)=>{let J=S8(),[F,Q]=k5(J),{to:H="",href:q=H,onClick:X,asChild:G,children:K,className:D,replace:z,state:W,transition:B,...V}=$,U=E5((P)=>{if(P.ctrlKey||P.metaKey||P.altKey||P.shiftKey||P.button!==0)return;if(X?.(P),!P.defaultPrevented)P.preventDefault(),Q(q,$)}),_=J.hrefs(q[0]==="~"?q.slice(1):J.base+q,J);return G&&t.isValidElement(K)?t.cloneElement(K,{onClick:U,href:_}):t.createElement("a",{...V,onClick:U,href:_,className:D?.call?D(F===q):D,children:K,ref:Z})}),M7=($)=>Array.isArray($)?$.flatMap((Z)=>M7(Z&&Z.type===t.Fragment?Z.props.children:Z)):[$],iz=({children:$,location:Z})=>{let J=S8(),[F]=k5(J);for(let Q of M7($)){let H=0;if(t.isValidElement(Q)&&(H=U7(J.parser,Q.props.path,Z||F,Q.props.nest))[0])return t.cloneElement(Q,{match:H})}return null};var v5=o(i0(),1);var u4=o(W0(),1),w7=($)=>$.map((Z)=>[...Z].map((J)=>J==="#"?1:0)),BF=["####.","#.#.#","#.#.#","#.#.#","#.#.#"],VF=["###.#","#.#.#","#.#.#","#.#.#","###.#"],YF=w7([".....","####.","#.#.#","#.#.#","#.#.#"]),UF=w7(BF.map(($,Z)=>`${$}.${VF[Z]}`)),MF={moi:YF,"moi-full":UF};function _7($,Z,J){let F=[];for(let Q=0;Q<Z;Q++){let H=[];for(let q=0;q<$;q++)H.push(J(q,Q));F.push(H)}return F}function P7($,Z,J){let F=Math.sin($*12.9898+Z*78.233+J*37.719)*43758.5453;return F-Math.floor(F)}function PF($,Z,J){return _7(Z,J,(F,Q)=>{let H=P7(F,Q,0)*Math.PI*2,q=5+P7(F,Q,1)*6,X=0.5+0.5*Math.sin($*q+H);return X*X})}function LF($,Z,J){return _7(Z,J,(Q,H)=>0.5+0.5*Math.sin(Q*0.5+H*0.32-$*6.5))}var A7=0.55;function wF($,Z){let J=$.length,F=$.reduce((G,K)=>Math.max(G,K.length),0),Q=Math.min(Z/A7,1),H=1-Math.pow(1-Q,3),q=Math.round((1-H)*J),X=[];for(let G=0;G<J;G++){let K=[];for(let D=0;D<F;D++)K.push($[G-q]?.[D]??0);X.push(K)}return X}function L7($,Z,J){let F=MF[$];if(Z===void 0)return wF(F,J);let Q=F.length,H=F[0]?.length??0;return Z==="wave"?LF(J,H,Q):PF(J,H,Q)}var _F=24;function AF($,Z,J){let[F,Q]=v5.useState(()=>L7($,Z,0));return v5.useEffect(()=>{let H=0,q=null,X=0,G=1000/J,K=(D)=>{if(q===null)q=D;let z=(D-q)/1000;if(D-X>=G){if(X=D,Q(L7($,Z,z)),Z===void 0&&z>=A7)return}H=requestAnimationFrame(K)};return H=requestAnimationFrame(K),()=>cancelAnimationFrame(H)},[$,Z,J]),F}function NF($){return`rgba(23, 23, 23, ${(0.1+Math.max(0,Math.min(1,$))*0.9).toFixed(3)})`}function cz({sprite:$="moi",effect:Z,fps:J=_F,pixelSize:F=3,gap:Q=1,className:H}){let q=AF($,Z,J),X=q[0]?.length??0,G=Z!==void 0;return u4.jsx("div",{className:D0("grid",H),style:{gridTemplateColumns:`repeat(${X}, ${F}px)`,gap:`${Q}px`},children:q.flatMap((K,D)=>K.map((z,W)=>u4.jsx("div",{className:"rounded-[2px]",style:{width:F,height:F,background:NF(z),boxShadow:G?`0 0 ${(F*(0.4+z)).toFixed(1)}px rgba(23, 23, 23, ${(z*0.35).toFixed(3)})`:void 0}},`${D}-${W}`)))})}var o3=o(i0(),1);function F0(){}function x5(){}function N7($,Z){let J=Z||{};return($[$.length-1]===""?[...$,""]:$).join((J.padRight?" ":"")+","+(J.padLeft===!1?"":" ")).trim()}var CF=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,bF=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,OF={};function h5($,Z){return((Z||OF).jsx?bF:CF).test($)}var yF=/[ \t\n\f\r]/g;function f4($){return typeof $==="object"?$.type==="text"?C7($.value):!1:C7($)}function C7($){return $.replace(yF,"")===""}class Q8{constructor($,Z,J){if(this.normal=Z,this.property=$,J)this.space=J}}Q8.prototype.normal={};Q8.prototype.property={};Q8.prototype.space=void 0;function l4($,Z){let J={},F={};for(let Q of $)Object.assign(J,Q.property),Object.assign(F,Q.normal);return new Q8(J,F,Z)}function q5($){return $.toLowerCase()}class j0{constructor($,Z){this.attribute=Z,this.property=$}}j0.prototype.attribute="";j0.prototype.booleanish=!1;j0.prototype.boolean=!1;j0.prototype.commaOrSpaceSeparated=!1;j0.prototype.commaSeparated=!1;j0.prototype.defined=!1;j0.prototype.mustUseProperty=!1;j0.prototype.number=!1;j0.prototype.overloadedBoolean=!1;j0.prototype.property="";j0.prototype.spaceSeparated=!1;j0.prototype.space=void 0;var H5={};b7(H5,{spaceSeparated:()=>X0,overloadedBoolean:()=>m5,number:()=>I,commaSeparated:()=>q8,commaOrSpaceSeparated:()=>v0,booleanish:()=>B0,boolean:()=>a});var jF=0,a=U8(),B0=U8(),m5=U8(),I=U8(),X0=U8(),q8=U8(),v0=U8();function U8(){return 2**++jF}var i4=Object.keys(H5);class E8 extends j0{constructor($,Z,J,F){let Q=-1;super($,Z);if(O7(this,"space",F),typeof J==="number")while(++Q<i4.length){let H=i4[Q];O7(this,i4[Q],(J&H5[H])===H5[H])}}}E8.prototype.defined=!0;function O7($,Z,J){if(J)$[Z]=J}function h0($){let Z={},J={};for(let[F,Q]of Object.entries($.properties)){let H=new E8(F,$.transform($.attributes||{},F),Q,$.space);if($.mustUseProperty&&$.mustUseProperty.includes(F))H.mustUseProperty=!0;Z[F]=H,J[q5(F)]=F,J[q5(H.attribute)]=F}return new Q8(Z,J,$.space)}var r4=h0({properties:{ariaActiveDescendant:null,ariaAtomic:B0,ariaAutoComplete:null,ariaBusy:B0,ariaChecked:B0,ariaColCount:I,ariaColIndex:I,ariaColSpan:I,ariaControls:X0,ariaCurrent:null,ariaDescribedBy:X0,ariaDetails:null,ariaDisabled:B0,ariaDropEffect:X0,ariaErrorMessage:null,ariaExpanded:B0,ariaFlowTo:X0,ariaGrabbed:B0,ariaHasPopup:null,ariaHidden:B0,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:X0,ariaLevel:I,ariaLive:null,ariaModal:B0,ariaMultiLine:B0,ariaMultiSelectable:B0,ariaOrientation:null,ariaOwns:X0,ariaPlaceholder:null,ariaPosInSet:I,ariaPressed:B0,ariaReadOnly:B0,ariaRelevant:null,ariaRequired:B0,ariaRoleDescription:X0,ariaRowCount:I,ariaRowIndex:I,ariaRowSpan:I,ariaSelected:B0,ariaSetSize:I,ariaSort:null,ariaValueMax:I,ariaValueMin:I,ariaValueNow:I,ariaValueText:null,role:null},transform($,Z){return Z==="role"?Z:"aria-"+Z.slice(4).toLowerCase()}});function p5($,Z){return Z in $?$[Z]:Z}function u5($,Z){return p5($,Z.toLowerCase())}var y7=h0({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:q8,acceptCharset:X0,accessKey:X0,action:null,allow:null,allowFullScreen:a,allowPaymentRequest:a,allowUserMedia:a,alt:null,as:null,async:a,autoCapitalize:null,autoComplete:X0,autoFocus:a,autoPlay:a,blocking:X0,capture:null,charSet:null,checked:a,cite:null,className:X0,cols:I,colSpan:null,content:null,contentEditable:B0,controls:a,controlsList:X0,coords:I|q8,crossOrigin:null,data:null,dateTime:null,decoding:null,default:a,defer:a,dir:null,dirName:null,disabled:a,download:m5,draggable:B0,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:a,formTarget:null,headers:X0,height:I,hidden:m5,high:I,href:null,hrefLang:null,htmlFor:X0,httpEquiv:X0,id:null,imageSizes:null,imageSrcSet:null,inert:a,inputMode:null,integrity:null,is:null,isMap:a,itemId:null,itemProp:X0,itemRef:X0,itemScope:a,itemType:X0,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:a,low:I,manifest:null,max:null,maxLength:I,media:null,method:null,min:null,minLength:I,multiple:a,muted:a,name:null,nonce:null,noModule:a,noValidate:a,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:a,optimum:I,pattern:null,ping:X0,placeholder:null,playsInline:a,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:a,referrerPolicy:null,rel:X0,required:a,reversed:a,rows:I,rowSpan:I,sandbox:X0,scope:null,scoped:a,seamless:a,selected:a,shadowRootClonable:a,shadowRootDelegatesFocus:a,shadowRootMode:null,shape:null,size:I,sizes:null,slot:null,span:I,spellCheck:B0,src:null,srcDoc:null,srcLang:null,srcSet:null,start:I,step:null,style:null,tabIndex:I,target:null,title:null,translate:null,type:null,typeMustMatch:a,useMap:null,value:B0,width:I,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:X0,axis:null,background:null,bgColor:null,border:I,borderColor:null,bottomMargin:I,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:a,declare:a,event:null,face:null,frame:null,frameBorder:null,hSpace:I,leftMargin:I,link:null,longDesc:null,lowSrc:null,marginHeight:I,marginWidth:I,noResize:a,noHref:a,noShade:a,noWrap:a,object:null,profile:null,prompt:null,rev:null,rightMargin:I,rules:null,scheme:null,scrolling:B0,standby:null,summary:null,text:null,topMargin:I,valueType:null,version:null,vAlign:null,vLink:null,vSpace:I,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:a,disableRemotePlayback:a,prefix:null,property:null,results:I,security:null,unselectable:null},space:"html",transform:u5});var j7=h0({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:v0,accentHeight:I,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:I,amplitude:I,arabicForm:null,ascent:I,attributeName:null,attributeType:null,azimuth:I,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:I,by:null,calcMode:null,capHeight:I,className:X0,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:I,diffuseConstant:I,direction:null,display:null,dur:null,divisor:I,dominantBaseline:null,download:a,dx:null,dy:null,edgeMode:null,editable:null,elevation:I,enableBackground:null,end:null,event:null,exponent:I,externalResourcesRequired:null,fill:null,fillOpacity:I,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:q8,g2:q8,glyphName:q8,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:I,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:I,horizOriginX:I,horizOriginY:I,id:null,ideographic:I,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:I,k:I,k1:I,k2:I,k3:I,k4:I,kernelMatrix:v0,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:I,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:I,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:I,overlineThickness:I,paintOrder:null,panose1:null,path:null,pathLength:I,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:X0,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:I,pointsAtY:I,pointsAtZ:I,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:v0,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:v0,rev:v0,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:v0,requiredFeatures:v0,requiredFonts:v0,requiredFormats:v0,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:I,specularExponent:I,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:I,strikethroughThickness:I,string:null,stroke:null,strokeDashArray:v0,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:I,strokeOpacity:I,strokeWidth:null,style:null,surfaceScale:I,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:v0,tabIndex:I,tableValues:null,target:null,targetX:I,targetY:I,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:v0,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:I,underlineThickness:I,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:I,values:null,vAlphabetic:I,vMathematical:I,vectorEffect:null,vHanging:I,vIdeographic:I,version:null,vertAdvY:I,vertOriginX:I,vertOriginY:I,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:I,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:p5});var d4=h0({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform($,Z){return"xlink:"+Z.slice(5).toLowerCase()}});var c4=h0({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:u5});var a4=h0({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform($,Z){return"xml:"+Z.slice(3).toLowerCase()}});var s4={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"};var RF=/[A-Z]/g,R7=/-[a-z]/g,IF=/^data[-\w.:]+$/i;function n4($,Z){let J=q5(Z),F=Z,Q=j0;if(J in $.normal)return $.property[$.normal[J]];if(J.length>4&&J.slice(0,4)==="data"&&IF.test(Z)){if(Z.charAt(4)==="-"){let H=Z.slice(5).replace(R7,TF);F="data"+H.charAt(0).toUpperCase()+H.slice(1)}else{let H=Z.slice(4);if(!R7.test(H)){let q=H.replace(RF,gF);if(q.charAt(0)!=="-")q="-"+q;Z="data"+q}}Q=E8}return new Q(F,Z)}function gF($){return"-"+$.toLowerCase()}function TF($){return $.charAt(1).toUpperCase()}var I7=l4([r4,y7,d4,c4,a4],"html"),f5=l4([r4,j7,d4,c4,a4],"svg");function g7($){return $.join(" ").trim()}var a7=o(i7(),1);var l5=r7("end"),k8=r7("start");function r7($){return Z;function Z(J){let F=J&&J.position&&J.position[$]||{};if(typeof F.line==="number"&&F.line>0&&typeof F.column==="number"&&F.column>0)return{line:F.line,column:F.column,offset:typeof F.offset==="number"&&F.offset>-1?F.offset:void 0}}}function e4($){let Z=k8($),J=l5($);if(Z&&J)return{start:Z,end:J}}function H8($){if(!$||typeof $!=="object")return"";if("position"in $||"type"in $)return d7($.position);if("start"in $||"end"in $)return d7($);if("line"in $||"column"in $)return $1($);return""}function $1($){return c7($&&$.line)+":"+c7($&&$.column)}function d7($){return $1($&&$.start)+"-"+$1($&&$.end)}function c7($){return $&&typeof $==="number"?$:1}class w0 extends Error{constructor($,Z,J){super();if(typeof Z==="string")J=Z,Z=void 0;let F="",Q={},H=!1;if(Z)if("line"in Z&&"column"in Z)Q={place:Z};else if("start"in Z&&"end"in Z)Q={place:Z};else if("type"in Z)Q={ancestors:[Z],place:Z.position};else Q={...Z};if(typeof $==="string")F=$;else if(!Q.cause&&$)H=!0,F=$.message,Q.cause=$;if(!Q.ruleId&&!Q.source&&typeof J==="string"){let X=J.indexOf(":");if(X===-1)Q.ruleId=J;else Q.source=J.slice(0,X),Q.ruleId=J.slice(X+1)}if(!Q.place&&Q.ancestors&&Q.ancestors){let X=Q.ancestors[Q.ancestors.length-1];if(X)Q.place=X.position}let q=Q.place&&"start"in Q.place?Q.place.start:Q.place;this.ancestors=Q.ancestors||void 0,this.cause=Q.cause||void 0,this.column=q?q.column:void 0,this.fatal=void 0,this.file="",this.message=F,this.line=q?q.line:void 0,this.name=H8(Q.place)||"1:1",this.place=Q.place||void 0,this.reason=this.message,this.ruleId=Q.ruleId||void 0,this.source=Q.source||void 0,this.stack=H&&Q.cause&&typeof Q.cause.stack==="string"?Q.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}w0.prototype.file="";w0.prototype.name="";w0.prototype.reason="";w0.prototype.message="";w0.prototype.stack="";w0.prototype.column=void 0;w0.prototype.line=void 0;w0.prototype.ancestors=void 0;w0.prototype.cause=void 0;w0.prototype.fatal=void 0;w0.prototype.place=void 0;w0.prototype.ruleId=void 0;w0.prototype.source=void 0;var Z1={}.hasOwnProperty,QQ=new Map,qQ=/[A-Z]/g,HQ=new Set(["table","tbody","thead","tfoot","tr"]),XQ=new Set(["td","th"]),s7="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function J1($,Z){if(!Z||Z.Fragment===void 0)throw TypeError("Expected `Fragment` in options");let J=Z.filePath||void 0,F;if(Z.development){if(typeof Z.jsxDEV!=="function")throw TypeError("Expected `jsxDEV` in options when `development: true`");F=YQ(J,Z.jsxDEV)}else{if(typeof Z.jsx!=="function")throw TypeError("Expected `jsx` in production options");if(typeof Z.jsxs!=="function")throw TypeError("Expected `jsxs` in production options");F=VQ(J,Z.jsx,Z.jsxs)}let Q={Fragment:Z.Fragment,ancestors:[],components:Z.components||{},create:F,elementAttributeNameCase:Z.elementAttributeNameCase||"react",evaluater:Z.createEvaluater?Z.createEvaluater():void 0,filePath:J,ignoreInvalidStyle:Z.ignoreInvalidStyle||!1,passKeys:Z.passKeys!==!1,passNode:Z.passNode||!1,schema:Z.space==="svg"?f5:I7,stylePropertyNameCase:Z.stylePropertyNameCase||"dom",tableCellAlignToStyle:Z.tableCellAlignToStyle!==!1},H=n7(Q,$,void 0);if(H&&typeof H!=="string")return H;return Q.create($,Q.Fragment,{children:H||void 0},void 0)}function n7($,Z,J){if(Z.type==="element")return GQ($,Z,J);if(Z.type==="mdxFlowExpression"||Z.type==="mdxTextExpression")return KQ($,Z);if(Z.type==="mdxJsxFlowElement"||Z.type==="mdxJsxTextElement")return zQ($,Z,J);if(Z.type==="mdxjsEsm")return DQ($,Z);if(Z.type==="root")return WQ($,Z,J);if(Z.type==="text")return BQ($,Z)}function GQ($,Z,J){let F=$.schema,Q=F;if(Z.tagName.toLowerCase()==="svg"&&F.space==="html")Q=f5,$.schema=Q;$.ancestors.push(Z);let H=t7($,Z.tagName,!1),q=UQ($,Z),X=Q1($,Z);if(HQ.has(Z.tagName))X=X.filter(function(G){return typeof G==="string"?!f4(G):!0});return o7($,q,H,Z),F1(q,X),$.ancestors.pop(),$.schema=F,$.create(Z,H,q,J)}function KQ($,Z){if(Z.data&&Z.data.estree&&$.evaluater){let F=Z.data.estree.body[0];return F0(F.type==="ExpressionStatement"),$.evaluater.evaluateExpression(F.expression)}G5($,Z.position)}function DQ($,Z){if(Z.data&&Z.data.estree&&$.evaluater)return $.evaluater.evaluateProgram(Z.data.estree);G5($,Z.position)}function zQ($,Z,J){let F=$.schema,Q=F;if(Z.name==="svg"&&F.space==="html")Q=f5,$.schema=Q;$.ancestors.push(Z);let H=Z.name===null?$.Fragment:t7($,Z.name,!0),q=MQ($,Z),X=Q1($,Z);return o7($,q,H,Z),F1(q,X),$.ancestors.pop(),$.schema=F,$.create(Z,H,q,J)}function WQ($,Z,J){let F={};return F1(F,Q1($,Z)),$.create(Z,$.Fragment,F,J)}function BQ($,Z){return Z.value}function o7($,Z,J,F){if(typeof J!=="string"&&J!==$.Fragment&&$.passNode)Z.node=F}function F1($,Z){if(Z.length>0){let J=Z.length>1?Z:Z[0];if(J)$.children=J}}function VQ($,Z,J){return F;function F(Q,H,q,X){let K=Array.isArray(q.children)?J:Z;return X?K(H,q,X):K(H,q)}}function YQ($,Z){return J;function J(F,Q,H,q){let X=Array.isArray(H.children),G=k8(F);return Z(Q,H,q,X,{columnNumber:G?G.column-1:void 0,fileName:$,lineNumber:G?G.line:void 0},void 0)}}function UQ($,Z){let J={},F,Q;for(Q in Z.properties)if(Q!=="children"&&Z1.call(Z.properties,Q)){let H=PQ($,Q,Z.properties[Q]);if(H){let[q,X]=H;if($.tableCellAlignToStyle&&q==="align"&&typeof X==="string"&&XQ.has(Z.tagName))F=X;else J[q]=X}}if(F){let H=J.style||(J.style={});H[$.stylePropertyNameCase==="css"?"text-align":"textAlign"]=F}return J}function MQ($,Z){let J={};for(let F of Z.attributes)if(F.type==="mdxJsxExpressionAttribute")if(F.data&&F.data.estree&&$.evaluater){let H=F.data.estree.body[0];F0(H.type==="ExpressionStatement");let q=H.expression;F0(q.type==="ObjectExpression");let X=q.properties[0];F0(X.type==="SpreadElement"),Object.assign(J,$.evaluater.evaluateExpression(X.argument))}else G5($,Z.position);else{let Q=F.name,H;if(F.value&&typeof F.value==="object")if(F.value.data&&F.value.data.estree&&$.evaluater){let X=F.value.data.estree.body[0];F0(X.type==="ExpressionStatement"),H=$.evaluater.evaluateExpression(X.expression)}else G5($,Z.position);else H=F.value===null?!0:F.value;J[Q]=H}return J}function Q1($,Z){let J=[],F=-1,Q=$.passKeys?new Map:QQ;while(++F<Z.children.length){let H=Z.children[F],q;if($.passKeys){let G=H.type==="element"?H.tagName:H.type==="mdxJsxFlowElement"||H.type==="mdxJsxTextElement"?H.name:void 0;if(G){let K=Q.get(G)||0;q=G+"-"+K,Q.set(G,K+1)}}let X=n7($,H,q);if(X!==void 0)J.push(X)}return J}function PQ($,Z,J){let F=n4($.schema,Z);if(J===null||J===void 0||typeof J==="number"&&Number.isNaN(J))return;if(Array.isArray(J))J=F.commaSeparated?N7(J):g7(J);if(F.property==="style"){let Q=typeof J==="object"?J:LQ($,String(J));if($.stylePropertyNameCase==="css")Q=wQ(Q);return["style",Q]}return[$.elementAttributeNameCase==="react"&&F.space?s4[F.property]||F.property:F.attribute,J]}function LQ($,Z){try{return a7.default(Z,{reactCompat:!0})}catch(J){if($.ignoreInvalidStyle)return{};let F=J,Q=new w0("Cannot parse `style` attribute",{ancestors:$.ancestors,cause:F,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw Q.file=$.filePath||void 0,Q.url=s7+"#cannot-parse-style-attribute",Q}}function t7($,Z,J){let F;if(!J)F={type:"Literal",value:Z};else if(Z.includes(".")){let Q=Z.split("."),H=-1,q;while(++H<Q.length){let X=h5(Q[H])?{type:"Identifier",name:Q[H]}:{type:"Literal",value:Q[H]};q=q?{type:"MemberExpression",object:q,property:X,computed:Boolean(H&&X.type==="Literal"),optional:!1}:X}F0(q,"always a result"),F=q}else F=h5(Z)&&!/^[a-z]/.test(Z)?{type:"Identifier",name:Z}:{type:"Literal",value:Z};if(F.type==="Literal"){let Q=F.value;return Z1.call($.components,Q)?$.components[Q]:Q}if($.evaluater)return $.evaluater.evaluateExpression(F);G5($)}function G5($,Z){let J=new w0("Cannot handle MDX estrees without `createEvaluater`",{ancestors:$.ancestors,place:Z,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw J.file=$.filePath||void 0,J.url=s7+"#cannot-handle-mdx-estrees-without-createevaluater",J}function wQ($){let Z={},J;for(J in $)if(Z1.call($,J))Z[_Q(J)]=$[J];return Z}function _Q($){let Z=$.replace(qQ,AQ);if(Z.slice(0,3)==="ms-")Z="-"+Z;return Z}function AQ($){return"-"+$.toLowerCase()}var K5={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]};var l8=o(W0(),1),_6=o(i0(),1);var NQ={};function P8($,Z){let J=Z||NQ,F=typeof J.includeImageAlt==="boolean"?J.includeImageAlt:!0,Q=typeof J.includeHtml==="boolean"?J.includeHtml:!0;return $9($,F,Q)}function $9($,Z,J){if(CQ($)){if("value"in $)return $.type==="html"&&!J?"":$.value;if(Z&&"alt"in $&&$.alt)return $.alt;if("children"in $)return e7($.children,Z,J)}if(Array.isArray($))return e7($,Z,J);return""}function e7($,Z,J){let F=[],Q=-1;while(++Q<$.length)F[Q]=$9($[Q],Z,J);return F.join("")}function CQ($){return Boolean($&&typeof $==="object")}var Z9=document.createElement("i");function v8($){let Z="&"+$+";";Z9.innerHTML=Z;let J=Z9.textContent;if(J.charCodeAt(J.length-1)===59&&$!=="semi")return!1;return J===Z?!1:J}function U0($,Z,J,F){let Q=$.length,H=0,q;if(Z<0)Z=-Z>Q?0:Q+Z;else Z=Z>Q?Q:Z;if(J=J>0?J:0,F.length<1e4)q=Array.from(F),q.unshift(Z,J),$.splice(...q);else{if(J)$.splice(Z,J);while(H<F.length)q=F.slice(H,H+1e4),q.unshift(Z,0),$.splice(...q),H+=1e4,Z+=1e4}}function T0($,Z){if($.length>0)return U0($,$.length,0,Z),$;return Z}var J9={}.hasOwnProperty;function i5($){let Z={},J=-1;while(++J<$.length)bQ(Z,$[J]);return Z}function bQ($,Z){let J;for(J in Z){let Q=(J9.call($,J)?$[J]:void 0)||($[J]={}),H=Z[J],q;if(H)for(q in H){if(!J9.call(Q,q))Q[q]=[];let X=H[q];OQ(Q[q],Array.isArray(X)?X:X?[X]:[])}}}function OQ($,Z){let J=-1,F=[];while(++J<Z.length)(Z[J].add==="after"?$:F).push(Z[J]);U0($,0,0,F)}function r5($,Z){let J=Number.parseInt($,Z);if(J<9||J===11||J>13&&J<32||J>126&&J<160||J>55295&&J<57344||J>64975&&J<65008||(J&65535)===65535||(J&65535)===65534||J>1114111)return"�";return String.fromCodePoint(J)}function R0($){return $.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}var _0=X8(/[A-Za-z]/),V0=X8(/[\dA-Za-z]/),F9=X8(/[#-'*+\--9=?A-Z^-~]/);function L8($){return $!==null&&($<32||$===127)}var D5=X8(/\d/),Q9=X8(/[\dA-Fa-f]/),q9=X8(/[!-/:-@[-`{-~]/);function E($){return $!==null&&$<-2}function n($){return $!==null&&($<0||$===32)}function l($){return $===-2||$===-1||$===32}var w8=X8(/\p{P}|\p{S}/u),r0=X8(/\s/);function X8($){return Z;function Z(J){return J!==null&&J>-1&&$.test(String.fromCharCode(J))}}function m0($){let Z=[],J=-1,F=0,Q=0;while(++J<$.length){let H=$.charCodeAt(J),q="";if(H===37&&V0($.charCodeAt(J+1))&&V0($.charCodeAt(J+2)))Q=2;else if(H<128){if(!/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(H)))q=String.fromCharCode(H)}else if(H>55295&&H<57344){let X=$.charCodeAt(J+1);if(H<56320&&X>56319&&X<57344)q=String.fromCharCode(H,X),Q=1;else q="�"}else q=String.fromCharCode(H);if(q)Z.push($.slice(F,J),encodeURIComponent(q)),F=J+Q+1,q="";if(Q)J+=Q,Q=0}return Z.join("")+$.slice(F)}function f($,Z,J,F){let Q=F?F-1:Number.POSITIVE_INFINITY,H=0;return q;function q(G){if(l(G))return $.enter(J),X(G);return Z(G)}function X(G){if(l(G)&&H++<Q)return $.consume(G),X;return $.exit(J),Z(G)}}var H9={tokenize:yQ};function yQ($){let Z=$.attempt(this.parser.constructs.contentInitial,F,Q),J;return Z;function F(X){if(X===null){$.consume(X);return}return $.enter("lineEnding"),$.consume(X),$.exit("lineEnding"),f($,Z,"linePrefix")}function Q(X){return $.enter("paragraph"),H(X)}function H(X){let G=$.enter("chunkText",{contentType:"text",previous:J});if(J)J.next=G;return J=G,q(X)}function q(X){if(X===null){$.exit("chunkText"),$.exit("paragraph"),$.consume(X);return}if(E(X))return $.consume(X),$.exit("chunkText"),H;return $.consume(X),q}}var G9={tokenize:jQ},X9={tokenize:RQ};function jQ($){let Z=this,J=[],F=0,Q,H,q;return X;function X(O){if(F<J.length){let R=J[F];return Z.containerState=R[1],$.attempt(R[0].continuation,G,K)(O)}return K(O)}function G(O){if(F++,Z.containerState._closeFlow){if(Z.containerState._closeFlow=void 0,Q)y();let R=Z.events.length,S=R,A;while(S--)if(Z.events[S][0]==="exit"&&Z.events[S][1].type==="chunkFlow"){A=Z.events[S][1].end;break}P(F);let u=R;while(u<Z.events.length)Z.events[u][1].end={...A},u++;return U0(Z.events,S+1,0,Z.events.slice(R)),Z.events.length=u,K(O)}return X(O)}function K(O){if(F===J.length){if(!Q)return W(O);if(Q.currentConstruct&&Q.currentConstruct.concrete)return V(O);Z.interrupt=Boolean(Q.currentConstruct&&!Q._gfmTableDynamicInterruptHack)}return Z.containerState={},$.check(X9,D,z)(O)}function D(O){if(Q)y();return P(F),W(O)}function z(O){return Z.parser.lazy[Z.now().line]=F!==J.length,q=Z.now().offset,V(O)}function W(O){return Z.containerState={},$.attempt(X9,B,V)(O)}function B(O){return F++,J.push([Z.currentConstruct,Z.containerState]),W(O)}function V(O){if(O===null){if(Q)y();P(0),$.consume(O);return}return Q=Q||Z.parser.flow(Z.now()),$.enter("chunkFlow",{_tokenizer:Q,contentType:"flow",previous:H}),U(O)}function U(O){if(O===null){_($.exit("chunkFlow"),!0),P(0),$.consume(O);return}if(E(O))return $.consume(O),_($.exit("chunkFlow")),F=0,Z.interrupt=void 0,X;return $.consume(O),U}function _(O,R){let S=Z.sliceStream(O);if(R)S.push(null);if(O.previous=H,H)H.next=O;if(H=O,Q.defineSkip(O.start),Q.write(S),Z.parser.lazy[O.start.line]){let A=Q.events.length;while(A--)if(Q.events[A][1].start.offset<q&&(!Q.events[A][1].end||Q.events[A][1].end.offset>q))return;let u=Z.events.length,x=u,p,N;while(x--)if(Z.events[x][0]==="exit"&&Z.events[x][1].type==="chunkFlow"){if(p){N=Z.events[x][1].end;break}p=!0}P(F),A=u;while(A<Z.events.length)Z.events[A][1].end={...N},A++;U0(Z.events,x+1,0,Z.events.slice(u)),Z.events.length=A}}function P(O){let R=J.length;while(R-- >O){let S=J[R];Z.containerState=S[1],S[0].exit.call(Z,$)}J.length=O}function y(){Q.write([null]),H=void 0,Q=void 0,Z.containerState._closeFlow=void 0}}function RQ($,Z,J){return f($,$.attempt(this.parser.constructs.document,Z,J),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function $8($){if($===null||n($)||r0($))return 1;if(w8($))return 2}function G8($,Z,J){let F=[],Q=-1;while(++Q<$.length){let H=$[Q].resolveAll;if(H&&!F.includes(H))Z=H(Z,J),F.push(H)}return Z}var z5={name:"attention",resolveAll:IQ,tokenize:gQ};function IQ($,Z){let J=-1,F,Q,H,q,X,G,K,D;while(++J<$.length)if($[J][0]==="enter"&&$[J][1].type==="attentionSequence"&&$[J][1]._close){F=J;while(F--)if($[F][0]==="exit"&&$[F][1].type==="attentionSequence"&&$[F][1]._open&&Z.sliceSerialize($[F][1]).charCodeAt(0)===Z.sliceSerialize($[J][1]).charCodeAt(0)){if(($[F][1]._close||$[J][1]._open)&&($[J][1].end.offset-$[J][1].start.offset)%3&&!(($[F][1].end.offset-$[F][1].start.offset+$[J][1].end.offset-$[J][1].start.offset)%3))continue;G=$[F][1].end.offset-$[F][1].start.offset>1&&$[J][1].end.offset-$[J][1].start.offset>1?2:1;let z={...$[F][1].end},W={...$[J][1].start};if(K9(z,-G),K9(W,G),q={type:G>1?"strongSequence":"emphasisSequence",start:z,end:{...$[F][1].end}},X={type:G>1?"strongSequence":"emphasisSequence",start:{...$[J][1].start},end:W},H={type:G>1?"strongText":"emphasisText",start:{...$[F][1].end},end:{...$[J][1].start}},Q={type:G>1?"strong":"emphasis",start:{...q.start},end:{...X.end}},$[F][1].end={...q.start},$[J][1].start={...X.end},K=[],$[F][1].end.offset-$[F][1].start.offset)K=T0(K,[["enter",$[F][1],Z],["exit",$[F][1],Z]]);if(K=T0(K,[["enter",Q,Z],["enter",q,Z],["exit",q,Z],["enter",H,Z]]),K=T0(K,G8(Z.parser.constructs.insideSpan.null,$.slice(F+1,J),Z)),K=T0(K,[["exit",H,Z],["enter",X,Z],["exit",X,Z],["exit",Q,Z]]),$[J][1].end.offset-$[J][1].start.offset)D=2,K=T0(K,[["enter",$[J][1],Z],["exit",$[J][1],Z]]);else D=0;U0($,F-1,J-F+3,K),J=F+K.length-D-2;break}}J=-1;while(++J<$.length)if($[J][1].type==="attentionSequence")$[J][1].type="data";return $}function gQ($,Z){let J=this.parser.constructs.attentionMarkers.null,F=this.previous,Q=$8(F),H;return q;function q(G){return H=G,$.enter("attentionSequence"),X(G)}function X(G){if(G===H)return $.consume(G),X;let K=$.exit("attentionSequence"),D=$8(G),z=!D||D===2&&Q||J.includes(G),W=!Q||Q===2&&D||J.includes(F);return K._open=Boolean(H===42?z:z&&(Q||!W)),K._close=Boolean(H===42?W:W&&(D||!z)),Z(G)}}function K9($,Z){$.column+=Z,$.offset+=Z,$._bufferIndex+=Z}var q1={name:"autolink",tokenize:TQ};function TQ($,Z,J){let F=0;return Q;function Q(B){return $.enter("autolink"),$.enter("autolinkMarker"),$.consume(B),$.exit("autolinkMarker"),$.enter("autolinkProtocol"),H}function H(B){if(_0(B))return $.consume(B),q;if(B===64)return J(B);return K(B)}function q(B){if(B===43||B===45||B===46||V0(B))return F=1,X(B);return K(B)}function X(B){if(B===58)return $.consume(B),F=0,G;if((B===43||B===45||B===46||V0(B))&&F++<32)return $.consume(B),X;return F=0,K(B)}function G(B){if(B===62)return $.exit("autolinkProtocol"),$.enter("autolinkMarker"),$.consume(B),$.exit("autolinkMarker"),$.exit("autolink"),Z;if(B===null||B===32||B===60||L8(B))return J(B);return $.consume(B),G}function K(B){if(B===64)return $.consume(B),D;if(F9(B))return $.consume(B),K;return J(B)}function D(B){return V0(B)?z(B):J(B)}function z(B){if(B===46)return $.consume(B),F=0,D;if(B===62)return $.exit("autolinkProtocol").type="autolinkEmail",$.enter("autolinkMarker"),$.consume(B),$.exit("autolinkMarker"),$.exit("autolink"),Z;return W(B)}function W(B){if((B===45||V0(B))&&F++<63){let V=B===45?W:z;return $.consume(B),V}return J(B)}}var d0={partial:!0,tokenize:SQ};function SQ($,Z,J){return F;function F(H){return l(H)?f($,Q,"linePrefix")(H):Q(H)}function Q(H){return H===null||E(H)?Z(H):J(H)}}var d5={continuation:{tokenize:kQ},exit:vQ,name:"blockQuote",tokenize:EQ};function EQ($,Z,J){let F=this;return Q;function Q(q){if(q===62){let X=F.containerState;if(!X.open)$.enter("blockQuote",{_container:!0}),X.open=!0;return $.enter("blockQuotePrefix"),$.enter("blockQuoteMarker"),$.consume(q),$.exit("blockQuoteMarker"),H}return J(q)}function H(q){if(l(q))return $.enter("blockQuotePrefixWhitespace"),$.consume(q),$.exit("blockQuotePrefixWhitespace"),$.exit("blockQuotePrefix"),Z;return $.exit("blockQuotePrefix"),Z(q)}}function kQ($,Z,J){let F=this;return Q;function Q(q){if(l(q))return f($,H,"linePrefix",F.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(q);return H(q)}function H(q){return $.attempt(d5,Z,J)(q)}}function vQ($){$.exit("blockQuote")}var c5={name:"characterEscape",tokenize:xQ};function xQ($,Z,J){return F;function F(H){return $.enter("characterEscape"),$.enter("escapeMarker"),$.consume(H),$.exit("escapeMarker"),Q}function Q(H){if(q9(H))return $.enter("characterEscapeValue"),$.consume(H),$.exit("characterEscapeValue"),$.exit("characterEscape"),Z;return J(H)}}var a5={name:"characterReference",tokenize:hQ};function hQ($,Z,J){let F=this,Q=0,H,q;return X;function X(z){return $.enter("characterReference"),$.enter("characterReferenceMarker"),$.consume(z),$.exit("characterReferenceMarker"),G}function G(z){if(z===35)return $.enter("characterReferenceMarkerNumeric"),$.consume(z),$.exit("characterReferenceMarkerNumeric"),K;return $.enter("characterReferenceValue"),H=31,q=V0,D(z)}function K(z){if(z===88||z===120)return $.enter("characterReferenceMarkerHexadecimal"),$.consume(z),$.exit("characterReferenceMarkerHexadecimal"),$.enter("characterReferenceValue"),H=6,q=Q9,D;return $.enter("characterReferenceValue"),H=7,q=D5,D(z)}function D(z){if(z===59&&Q){let W=$.exit("characterReferenceValue");if(q===V0&&!v8(F.sliceSerialize(W)))return J(z);return $.enter("characterReferenceMarker"),$.consume(z),$.exit("characterReferenceMarker"),$.exit("characterReference"),Z}if(q(z)&&Q++<H)return $.consume(z),D;return J(z)}}var D9={partial:!0,tokenize:pQ},s5={concrete:!0,name:"codeFenced",tokenize:mQ};function mQ($,Z,J){let F=this,Q={partial:!0,tokenize:S},H=0,q=0,X;return G;function G(A){return K(A)}function K(A){let u=F.events[F.events.length-1];return H=u&&u[1].type==="linePrefix"?u[2].sliceSerialize(u[1],!0).length:0,X=A,$.enter("codeFenced"),$.enter("codeFencedFence"),$.enter("codeFencedFenceSequence"),D(A)}function D(A){if(A===X)return q++,$.consume(A),D;if(q<3)return J(A);return $.exit("codeFencedFenceSequence"),l(A)?f($,z,"whitespace")(A):z(A)}function z(A){if(A===null||E(A))return $.exit("codeFencedFence"),F.interrupt?Z(A):$.check(D9,U,R)(A);return $.enter("codeFencedFenceInfo"),$.enter("chunkString",{contentType:"string"}),W(A)}function W(A){if(A===null||E(A))return $.exit("chunkString"),$.exit("codeFencedFenceInfo"),z(A);if(l(A))return $.exit("chunkString"),$.exit("codeFencedFenceInfo"),f($,B,"whitespace")(A);if(A===96&&A===X)return J(A);return $.consume(A),W}function B(A){if(A===null||E(A))return z(A);return $.enter("codeFencedFenceMeta"),$.enter("chunkString",{contentType:"string"}),V(A)}function V(A){if(A===null||E(A))return $.exit("chunkString"),$.exit("codeFencedFenceMeta"),z(A);if(A===96&&A===X)return J(A);return $.consume(A),V}function U(A){return $.attempt(Q,R,_)(A)}function _(A){return $.enter("lineEnding"),$.consume(A),$.exit("lineEnding"),P}function P(A){return H>0&&l(A)?f($,y,"linePrefix",H+1)(A):y(A)}function y(A){if(A===null||E(A))return $.check(D9,U,R)(A);return $.enter("codeFlowValue"),O(A)}function O(A){if(A===null||E(A))return $.exit("codeFlowValue"),y(A);return $.consume(A),O}function R(A){return $.exit("codeFenced"),Z(A)}function S(A,u,x){let p=0;return N;function N(j){return A.enter("lineEnding"),A.consume(j),A.exit("lineEnding"),s}function s(j){return A.enter("codeFencedFence"),l(j)?f(A,d,"linePrefix",F.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(j):d(j)}function d(j){if(j===X)return A.enter("codeFencedFenceSequence"),k(j);return x(j)}function k(j){if(j===X)return p++,A.consume(j),k;if(p>=q)return A.exit("codeFencedFenceSequence"),l(j)?f(A,m,"whitespace")(j):m(j);return x(j)}function m(j){if(j===null||E(j))return A.exit("codeFencedFence"),u(j);return x(j)}}}function pQ($,Z,J){let F=this;return Q;function Q(q){if(q===null)return J(q);return $.enter("lineEnding"),$.consume(q),$.exit("lineEnding"),H}function H(q){return F.parser.lazy[F.now().line]?J(q):Z(q)}}var W5={name:"codeIndented",tokenize:fQ},uQ={partial:!0,tokenize:lQ};function fQ($,Z,J){let F=this;return Q;function Q(K){return $.enter("codeIndented"),f($,H,"linePrefix",5)(K)}function H(K){let D=F.events[F.events.length-1];return D&&D[1].type==="linePrefix"&&D[2].sliceSerialize(D[1],!0).length>=4?q(K):J(K)}function q(K){if(K===null)return G(K);if(E(K))return $.attempt(uQ,q,G)(K);return $.enter("codeFlowValue"),X(K)}function X(K){if(K===null||E(K))return $.exit("codeFlowValue"),q(K);return $.consume(K),X}function G(K){return $.exit("codeIndented"),Z(K)}}function lQ($,Z,J){let F=this;return Q;function Q(q){if(F.parser.lazy[F.now().line])return J(q);if(E(q))return $.enter("lineEnding"),$.consume(q),$.exit("lineEnding"),Q;return f($,H,"linePrefix",5)(q)}function H(q){let X=F.events[F.events.length-1];return X&&X[1].type==="linePrefix"&&X[2].sliceSerialize(X[1],!0).length>=4?Z(q):E(q)?Q(q):J(q)}}var H1={name:"codeText",previous:rQ,resolve:iQ,tokenize:dQ};function iQ($){let Z=$.length-4,J=3,F,Q;if(($[J][1].type==="lineEnding"||$[J][1].type==="space")&&($[Z][1].type==="lineEnding"||$[Z][1].type==="space")){F=J;while(++F<Z)if($[F][1].type==="codeTextData"){$[J][1].type="codeTextPadding",$[Z][1].type="codeTextPadding",J+=2,Z-=2;break}}F=J-1,Z++;while(++F<=Z)if(Q===void 0){if(F!==Z&&$[F][1].type!=="lineEnding")Q=F}else if(F===Z||$[F][1].type==="lineEnding"){if($[Q][1].type="codeTextData",F!==Q+2)$[Q][1].end=$[F-1][1].end,$.splice(Q+2,F-Q-2),Z-=F-Q-2,F=Q+2;Q=void 0}return $}function rQ($){return $!==96||this.events[this.events.length-1][1].type==="characterEscape"}function dQ($,Z,J){let F=this,Q=0,H,q;return X;function X(W){return $.enter("codeText"),$.enter("codeTextSequence"),G(W)}function G(W){if(W===96)return $.consume(W),Q++,G;return $.exit("codeTextSequence"),K(W)}function K(W){if(W===null)return J(W);if(W===32)return $.enter("space"),$.consume(W),$.exit("space"),K;if(W===96)return q=$.enter("codeTextSequence"),H=0,z(W);if(E(W))return $.enter("lineEnding"),$.consume(W),$.exit("lineEnding"),K;return $.enter("codeTextData"),D(W)}function D(W){if(W===null||W===32||W===96||E(W))return $.exit("codeTextData"),K(W);return $.consume(W),D}function z(W){if(W===96)return $.consume(W),H++,z;if(H===Q)return $.exit("codeTextSequence"),$.exit("codeText"),Z(W);return q.type="codeTextData",D(W)}}class X1{constructor($){this.left=$?[...$]:[],this.right=[]}get($){if($<0||$>=this.left.length+this.right.length)throw RangeError("Cannot access index `"+$+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");if($<this.left.length)return this.left[$];return this.right[this.right.length-$+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice($,Z){let J=Z===null||Z===void 0?Number.POSITIVE_INFINITY:Z;if(J<this.left.length)return this.left.slice($,J);if($>this.left.length)return this.right.slice(this.right.length-J+this.left.length,this.right.length-$+this.left.length).reverse();return this.left.slice($).concat(this.right.slice(this.right.length-J+this.left.length).reverse())}splice($,Z,J){let F=Z||0;this.setCursor(Math.trunc($));let Q=this.right.splice(this.right.length-F,Number.POSITIVE_INFINITY);if(J)B5(this.left,J);return Q.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push($){this.setCursor(Number.POSITIVE_INFINITY),this.left.push($)}pushMany($){this.setCursor(Number.POSITIVE_INFINITY),B5(this.left,$)}unshift($){this.setCursor(0),this.right.push($)}unshiftMany($){this.setCursor(0),B5(this.right,$.reverse())}setCursor($){if($===this.left.length||$>this.left.length&&this.right.length===0||$<0&&this.left.length===0)return;if($<this.left.length){let Z=this.left.splice($,Number.POSITIVE_INFINITY);B5(this.right,Z.reverse())}else{let Z=this.right.splice(this.left.length+this.right.length-$,Number.POSITIVE_INFINITY);B5(this.left,Z.reverse())}}}function B5($,Z){let J=0;if(Z.length<1e4)$.push(...Z);else while(J<Z.length)$.push(...Z.slice(J,J+1e4)),J+=1e4}function n5($){let Z={},J=-1,F,Q,H,q,X,G,K,D=new X1($);while(++J<D.length){while(J in Z)J=Z[J];if(F=D.get(J),J&&F[1].type==="chunkFlow"&&D.get(J-1)[1].type==="listItemPrefix"){if(G=F[1]._tokenizer.events,H=0,H<G.length&&G[H][1].type==="lineEndingBlank")H+=2;if(H<G.length&&G[H][1].type==="content")while(++H<G.length){if(G[H][1].type==="content")break;if(G[H][1].type==="chunkText")G[H][1]._isInFirstContentOfListItem=!0,H++}}if(F[0]==="enter"){if(F[1].contentType)Object.assign(Z,cQ(D,J)),J=Z[J],K=!0}else if(F[1]._container){H=J,Q=void 0;while(H--)if(q=D.get(H),q[1].type==="lineEnding"||q[1].type==="lineEndingBlank"){if(q[0]==="enter"){if(Q)D.get(Q)[1].type="lineEndingBlank";q[1].type="lineEnding",Q=H}}else if(q[1].type==="linePrefix"||q[1].type==="listItemIndent");else break;if(Q)F[1].end={...D.get(Q)[1].start},X=D.slice(Q,J),X.unshift(F),D.splice(Q,J-Q+1,X)}}return U0($,0,Number.POSITIVE_INFINITY,D.slice(0)),!K}function cQ($,Z){let J=$.get(Z)[1],F=$.get(Z)[2],Q=Z-1,H=[],q=J._tokenizer;if(!q){if(q=F.parser[J.contentType](J.start),J._contentTypeTextTrailing)q._contentTypeTextTrailing=!0}let X=q.events,G=[],K={},D,z,W=-1,B=J,V=0,U=0,_=[U];while(B){while($.get(++Q)[1]!==B);if(H.push(Q),!B._tokenizer){if(D=F.sliceStream(B),!B.next)D.push(null);if(z)q.defineSkip(B.start);if(B._isInFirstContentOfListItem)q._gfmTasklistFirstContentOfListItem=!0;if(q.write(D),B._isInFirstContentOfListItem)q._gfmTasklistFirstContentOfListItem=void 0}z=B,B=B.next}B=J;while(++W<X.length)if(X[W][0]==="exit"&&X[W-1][0]==="enter"&&X[W][1].type===X[W-1][1].type&&X[W][1].start.line!==X[W][1].end.line)U=W+1,_.push(U),B._tokenizer=void 0,B.previous=void 0,B=B.next;if(q.events=[],B)B._tokenizer=void 0,B.previous=void 0;else _.pop();W=_.length;while(W--){let P=X.slice(_[W],_[W+1]),y=H.pop();G.push([y,y+P.length-1]),$.splice(y,2,P)}G.reverse(),W=-1;while(++W<G.length)K[V+G[W][0]]=V+G[W][1],V+=G[W][1]-G[W][0]-1;return K}var G1={resolve:sQ,tokenize:nQ},aQ={partial:!0,tokenize:oQ};function sQ($){return n5($),$}function nQ($,Z){let J;return F;function F(X){return $.enter("content"),J=$.enter("chunkContent",{contentType:"content"}),Q(X)}function Q(X){if(X===null)return H(X);if(E(X))return $.check(aQ,q,H)(X);return $.consume(X),Q}function H(X){return $.exit("chunkContent"),$.exit("content"),Z(X)}function q(X){return $.consume(X),$.exit("chunkContent"),J.next=$.enter("chunkContent",{contentType:"content",previous:J}),J=J.next,Q}}function oQ($,Z,J){let F=this;return Q;function Q(q){return $.exit("chunkContent"),$.enter("lineEnding"),$.consume(q),$.exit("lineEnding"),f($,H,"linePrefix")}function H(q){if(q===null||E(q))return J(q);let X=F.events[F.events.length-1];if(!F.parser.constructs.disable.null.includes("codeIndented")&&X&&X[1].type==="linePrefix"&&X[2].sliceSerialize(X[1],!0).length>=4)return Z(q);return $.interrupt(F.parser.constructs.flow,J,Z)(q)}}function o5($,Z,J,F,Q,H,q,X,G){let K=G||Number.POSITIVE_INFINITY,D=0;return z;function z(P){if(P===60)return $.enter(F),$.enter(Q),$.enter(H),$.consume(P),$.exit(H),W;if(P===null||P===32||P===41||L8(P))return J(P);return $.enter(F),$.enter(q),$.enter(X),$.enter("chunkString",{contentType:"string"}),U(P)}function W(P){if(P===62)return $.enter(H),$.consume(P),$.exit(H),$.exit(Q),$.exit(F),Z;return $.enter(X),$.enter("chunkString",{contentType:"string"}),B(P)}function B(P){if(P===62)return $.exit("chunkString"),$.exit(X),W(P);if(P===null||P===60||E(P))return J(P);return $.consume(P),P===92?V:B}function V(P){if(P===60||P===62||P===92)return $.consume(P),B;return B(P)}function U(P){if(!D&&(P===null||P===41||n(P)))return $.exit("chunkString"),$.exit(X),$.exit(q),$.exit(F),Z(P);if(D<K&&P===40)return $.consume(P),D++,U;if(P===41)return $.consume(P),D--,U;if(P===null||P===32||P===40||L8(P))return J(P);return $.consume(P),P===92?_:U}function _(P){if(P===40||P===41||P===92)return $.consume(P),U;return U(P)}}function t5($,Z,J,F,Q,H){let q=this,X=0,G;return K;function K(B){return $.enter(F),$.enter(Q),$.consume(B),$.exit(Q),$.enter(H),D}function D(B){if(X>999||B===null||B===91||B===93&&!G||B===94&&!X&&"_hiddenFootnoteSupport"in q.parser.constructs)return J(B);if(B===93)return $.exit(H),$.enter(Q),$.consume(B),$.exit(Q),$.exit(F),Z;if(E(B))return $.enter("lineEnding"),$.consume(B),$.exit("lineEnding"),D;return $.enter("chunkString",{contentType:"string"}),z(B)}function z(B){if(B===null||B===91||B===93||E(B)||X++>999)return $.exit("chunkString"),D(B);if($.consume(B),!G)G=!l(B);return B===92?W:z}function W(B){if(B===91||B===92||B===93)return $.consume(B),X++,z;return z(B)}}function e5($,Z,J,F,Q,H){let q;return X;function X(W){if(W===34||W===39||W===40)return $.enter(F),$.enter(Q),$.consume(W),$.exit(Q),q=W===40?41:W,G;return J(W)}function G(W){if(W===q)return $.enter(Q),$.consume(W),$.exit(Q),$.exit(F),Z;return $.enter(H),K(W)}function K(W){if(W===q)return $.exit(H),G(q);if(W===null)return J(W);if(E(W))return $.enter("lineEnding"),$.consume(W),$.exit("lineEnding"),f($,K,"linePrefix");return $.enter("chunkString",{contentType:"string"}),D(W)}function D(W){if(W===q||W===null||E(W))return $.exit("chunkString"),K(W);return $.consume(W),W===92?z:D}function z(W){if(W===q||W===92)return $.consume(W),D;return D(W)}}function _8($,Z){let J;return F;function F(Q){if(E(Q))return $.enter("lineEnding"),$.consume(Q),$.exit("lineEnding"),J=!0,F;if(l(Q))return f($,F,J?"linePrefix":"lineSuffix")(Q);return Z(Q)}}var K1={name:"definition",tokenize:eQ},tQ={partial:!0,tokenize:$q};function eQ($,Z,J){let F=this,Q;return H;function H(B){return $.enter("definition"),q(B)}function q(B){return t5.call(F,$,X,J,"definitionLabel","definitionLabelMarker","definitionLabelString")(B)}function X(B){if(Q=R0(F.sliceSerialize(F.events[F.events.length-1][1]).slice(1,-1)),B===58)return $.enter("definitionMarker"),$.consume(B),$.exit("definitionMarker"),G;return J(B)}function G(B){return n(B)?_8($,K)(B):K(B)}function K(B){return o5($,D,J,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(B)}function D(B){return $.attempt(tQ,z,z)(B)}function z(B){return l(B)?f($,W,"whitespace")(B):W(B)}function W(B){if(B===null||E(B))return $.exit("definition"),F.parser.defined.push(Q),Z(B);return J(B)}}function $q($,Z,J){return F;function F(X){return n(X)?_8($,Q)(X):J(X)}function Q(X){return e5($,H,J,"definitionTitle","definitionTitleMarker","definitionTitleString")(X)}function H(X){return l(X)?f($,q,"whitespace")(X):q(X)}function q(X){return X===null||E(X)?Z(X):J(X)}}var D1={name:"hardBreakEscape",tokenize:Zq};function Zq($,Z,J){return F;function F(H){return $.enter("hardBreakEscape"),$.consume(H),Q}function Q(H){if(E(H))return $.exit("hardBreakEscape"),Z(H);return J(H)}}var z1={name:"headingAtx",resolve:Jq,tokenize:Fq};function Jq($,Z){let J=$.length-2,F=3,Q,H;if($[F][1].type==="whitespace")F+=2;if(J-2>F&&$[J][1].type==="whitespace")J-=2;if($[J][1].type==="atxHeadingSequence"&&(F===J-1||J-4>F&&$[J-2][1].type==="whitespace"))J-=F+1===J?2:4;if(J>F)Q={type:"atxHeadingText",start:$[F][1].start,end:$[J][1].end},H={type:"chunkText",start:$[F][1].start,end:$[J][1].end,contentType:"text"},U0($,F,J-F+1,[["enter",Q,Z],["enter",H,Z],["exit",H,Z],["exit",Q,Z]]);return $}function Fq($,Z,J){let F=0;return Q;function Q(D){return $.enter("atxHeading"),H(D)}function H(D){return $.enter("atxHeadingSequence"),q(D)}function q(D){if(D===35&&F++<6)return $.consume(D),q;if(D===null||n(D))return $.exit("atxHeadingSequence"),X(D);return J(D)}function X(D){if(D===35)return $.enter("atxHeadingSequence"),G(D);if(D===null||E(D))return $.exit("atxHeading"),Z(D);if(l(D))return f($,X,"whitespace")(D);return $.enter("atxHeadingText"),K(D)}function G(D){if(D===35)return $.consume(D),G;return $.exit("atxHeadingSequence"),X(D)}function K(D){if(D===null||D===35||n(D))return $.exit("atxHeadingText"),X(D);return $.consume(D),K}}var z9=["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"],W1=["pre","script","style","textarea"];var B1={concrete:!0,name:"htmlFlow",resolveTo:Hq,tokenize:Xq},Qq={partial:!0,tokenize:Kq},qq={partial:!0,tokenize:Gq};function Hq($){let Z=$.length;while(Z--)if($[Z][0]==="enter"&&$[Z][1].type==="htmlFlow")break;if(Z>1&&$[Z-2][1].type==="linePrefix")$[Z][1].start=$[Z-2][1].start,$[Z+1][1].start=$[Z-2][1].start,$.splice(Z-2,2);return $}function Xq($,Z,J){let F=this,Q,H,q,X,G;return K;function K(M){return D(M)}function D(M){return $.enter("htmlFlow"),$.enter("htmlFlowData"),$.consume(M),z}function z(M){if(M===33)return $.consume(M),W;if(M===47)return $.consume(M),H=!0,U;if(M===63)return $.consume(M),Q=3,F.interrupt?Z:Y;if(_0(M))return $.consume(M),q=String.fromCharCode(M),_;return J(M)}function W(M){if(M===45)return $.consume(M),Q=2,B;if(M===91)return $.consume(M),Q=5,X=0,V;if(_0(M))return $.consume(M),Q=4,F.interrupt?Z:Y;return J(M)}function B(M){if(M===45)return $.consume(M),F.interrupt?Z:Y;return J(M)}function V(M){if(M==="CDATA[".charCodeAt(X++)){if($.consume(M),X===6)return F.interrupt?Z:d;return V}return J(M)}function U(M){if(_0(M))return $.consume(M),q=String.fromCharCode(M),_;return J(M)}function _(M){if(M===null||M===47||M===62||n(M)){let q0=M===47,z0=q.toLowerCase();if(!q0&&!H&&W1.includes(z0))return Q=1,F.interrupt?Z(M):d(M);if(z9.includes(q.toLowerCase())){if(Q=6,q0)return $.consume(M),P;return F.interrupt?Z(M):d(M)}return Q=7,F.interrupt&&!F.parser.lazy[F.now().line]?J(M):H?y(M):O(M)}if(M===45||V0(M))return $.consume(M),q+=String.fromCharCode(M),_;return J(M)}function P(M){if(M===62)return $.consume(M),F.interrupt?Z:d;return J(M)}function y(M){if(l(M))return $.consume(M),y;return N(M)}function O(M){if(M===47)return $.consume(M),N;if(M===58||M===95||_0(M))return $.consume(M),R;if(l(M))return $.consume(M),O;return N(M)}function R(M){if(M===45||M===46||M===58||M===95||V0(M))return $.consume(M),R;return S(M)}function S(M){if(M===61)return $.consume(M),A;if(l(M))return $.consume(M),S;return O(M)}function A(M){if(M===null||M===60||M===61||M===62||M===96)return J(M);if(M===34||M===39)return $.consume(M),G=M,u;if(l(M))return $.consume(M),A;return x(M)}function u(M){if(M===G)return $.consume(M),G=null,p;if(M===null||E(M))return J(M);return $.consume(M),u}function x(M){if(M===null||M===34||M===39||M===47||M===60||M===61||M===62||M===96||n(M))return S(M);return $.consume(M),x}function p(M){if(M===47||M===62||l(M))return O(M);return J(M)}function N(M){if(M===62)return $.consume(M),s;return J(M)}function s(M){if(M===null||E(M))return d(M);if(l(M))return $.consume(M),s;return J(M)}function d(M){if(M===45&&Q===2)return $.consume(M),w;if(M===60&&Q===1)return $.consume(M),b;if(M===62&&Q===4)return $.consume(M),r;if(M===63&&Q===3)return $.consume(M),Y;if(M===93&&Q===5)return $.consume(M),v;if(E(M)&&(Q===6||Q===7))return $.exit("htmlFlowData"),$.check(Qq,e,k)(M);if(M===null||E(M))return $.exit("htmlFlowData"),k(M);return $.consume(M),d}function k(M){return $.check(qq,m,e)(M)}function m(M){return $.enter("lineEnding"),$.consume(M),$.exit("lineEnding"),j}function j(M){if(M===null||E(M))return k(M);return $.enter("htmlFlowData"),d(M)}function w(M){if(M===45)return $.consume(M),Y;return d(M)}function b(M){if(M===47)return $.consume(M),q="",g;return d(M)}function g(M){if(M===62){let q0=q.toLowerCase();if(W1.includes(q0))return $.consume(M),r;return d(M)}if(_0(M)&&q.length<8)return $.consume(M),q+=String.fromCharCode(M),g;return d(M)}function v(M){if(M===93)return $.consume(M),Y;return d(M)}function Y(M){if(M===62)return $.consume(M),r;if(M===45&&Q===2)return $.consume(M),Y;return d(M)}function r(M){if(M===null||E(M))return $.exit("htmlFlowData"),e(M);return $.consume(M),r}function e(M){return $.exit("htmlFlow"),Z(M)}}function Gq($,Z,J){let F=this;return Q;function Q(q){if(E(q))return $.enter("lineEnding"),$.consume(q),$.exit("lineEnding"),H;return J(q)}function H(q){return F.parser.lazy[F.now().line]?J(q):Z(q)}}function Kq($,Z,J){return F;function F(Q){return $.enter("lineEnding"),$.consume(Q),$.exit("lineEnding"),$.attempt(d0,Z,J)}}var V1={name:"htmlText",tokenize:Dq};function Dq($,Z,J){let F=this,Q,H,q;return X;function X(Y){return $.enter("htmlText"),$.enter("htmlTextData"),$.consume(Y),G}function G(Y){if(Y===33)return $.consume(Y),K;if(Y===47)return $.consume(Y),S;if(Y===63)return $.consume(Y),O;if(_0(Y))return $.consume(Y),x;return J(Y)}function K(Y){if(Y===45)return $.consume(Y),D;if(Y===91)return $.consume(Y),H=0,V;if(_0(Y))return $.consume(Y),y;return J(Y)}function D(Y){if(Y===45)return $.consume(Y),B;return J(Y)}function z(Y){if(Y===null)return J(Y);if(Y===45)return $.consume(Y),W;if(E(Y))return q=z,b(Y);return $.consume(Y),z}function W(Y){if(Y===45)return $.consume(Y),B;return z(Y)}function B(Y){return Y===62?w(Y):Y===45?W(Y):z(Y)}function V(Y){if(Y==="CDATA[".charCodeAt(H++))return $.consume(Y),H===6?U:V;return J(Y)}function U(Y){if(Y===null)return J(Y);if(Y===93)return $.consume(Y),_;if(E(Y))return q=U,b(Y);return $.consume(Y),U}function _(Y){if(Y===93)return $.consume(Y),P;return U(Y)}function P(Y){if(Y===62)return w(Y);if(Y===93)return $.consume(Y),P;return U(Y)}function y(Y){if(Y===null||Y===62)return w(Y);if(E(Y))return q=y,b(Y);return $.consume(Y),y}function O(Y){if(Y===null)return J(Y);if(Y===63)return $.consume(Y),R;if(E(Y))return q=O,b(Y);return $.consume(Y),O}function R(Y){return Y===62?w(Y):O(Y)}function S(Y){if(_0(Y))return $.consume(Y),A;return J(Y)}function A(Y){if(Y===45||V0(Y))return $.consume(Y),A;return u(Y)}function u(Y){if(E(Y))return q=u,b(Y);if(l(Y))return $.consume(Y),u;return w(Y)}function x(Y){if(Y===45||V0(Y))return $.consume(Y),x;if(Y===47||Y===62||n(Y))return p(Y);return J(Y)}function p(Y){if(Y===47)return $.consume(Y),w;if(Y===58||Y===95||_0(Y))return $.consume(Y),N;if(E(Y))return q=p,b(Y);if(l(Y))return $.consume(Y),p;return w(Y)}function N(Y){if(Y===45||Y===46||Y===58||Y===95||V0(Y))return $.consume(Y),N;return s(Y)}function s(Y){if(Y===61)return $.consume(Y),d;if(E(Y))return q=s,b(Y);if(l(Y))return $.consume(Y),s;return p(Y)}function d(Y){if(Y===null||Y===60||Y===61||Y===62||Y===96)return J(Y);if(Y===34||Y===39)return $.consume(Y),Q=Y,k;if(E(Y))return q=d,b(Y);if(l(Y))return $.consume(Y),d;return $.consume(Y),m}function k(Y){if(Y===Q)return $.consume(Y),Q=void 0,j;if(Y===null)return J(Y);if(E(Y))return q=k,b(Y);return $.consume(Y),k}function m(Y){if(Y===null||Y===34||Y===39||Y===60||Y===61||Y===96)return J(Y);if(Y===47||Y===62||n(Y))return p(Y);return $.consume(Y),m}function j(Y){if(Y===47||Y===62||n(Y))return p(Y);return J(Y)}function w(Y){if(Y===62)return $.consume(Y),$.exit("htmlTextData"),$.exit("htmlText"),Z;return J(Y)}function b(Y){return $.exit("htmlTextData"),$.enter("lineEnding"),$.consume(Y),$.exit("lineEnding"),g}function g(Y){return l(Y)?f($,v,"linePrefix",F.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(Y):v(Y)}function v(Y){return $.enter("htmlTextData"),q(Y)}}var A8={name:"labelEnd",resolveAll:Vq,resolveTo:Yq,tokenize:Uq},zq={tokenize:Mq},Wq={tokenize:Pq},Bq={tokenize:Lq};function Vq($){let Z=-1,J=[];while(++Z<$.length){let F=$[Z][1];if(J.push($[Z]),F.type==="labelImage"||F.type==="labelLink"||F.type==="labelEnd"){let Q=F.type==="labelImage"?4:2;F.type="data",Z+=Q}}if($.length!==J.length)U0($,0,$.length,J);return $}function Yq($,Z){let J=$.length,F=0,Q,H,q,X;while(J--)if(Q=$[J][1],H){if(Q.type==="link"||Q.type==="labelLink"&&Q._inactive)break;if($[J][0]==="enter"&&Q.type==="labelLink")Q._inactive=!0}else if(q){if($[J][0]==="enter"&&(Q.type==="labelImage"||Q.type==="labelLink")&&!Q._balanced){if(H=J,Q.type!=="labelLink"){F=2;break}}}else if(Q.type==="labelEnd")q=J;let G={type:$[H][1].type==="labelLink"?"link":"image",start:{...$[H][1].start},end:{...$[$.length-1][1].end}},K={type:"label",start:{...$[H][1].start},end:{...$[q][1].end}},D={type:"labelText",start:{...$[H+F+2][1].end},end:{...$[q-2][1].start}};return X=[["enter",G,Z],["enter",K,Z]],X=T0(X,$.slice(H+1,H+F+3)),X=T0(X,[["enter",D,Z]]),X=T0(X,G8(Z.parser.constructs.insideSpan.null,$.slice(H+F+4,q-3),Z)),X=T0(X,[["exit",D,Z],$[q-2],$[q-1],["exit",K,Z]]),X=T0(X,$.slice(q+1)),X=T0(X,[["exit",G,Z]]),U0($,H,$.length,X),$}function Uq($,Z,J){let F=this,Q=F.events.length,H,q;while(Q--)if((F.events[Q][1].type==="labelImage"||F.events[Q][1].type==="labelLink")&&!F.events[Q][1]._balanced){H=F.events[Q][1];break}return X;function X(W){if(!H)return J(W);if(H._inactive)return z(W);return q=F.parser.defined.includes(R0(F.sliceSerialize({start:H.end,end:F.now()}))),$.enter("labelEnd"),$.enter("labelMarker"),$.consume(W),$.exit("labelMarker"),$.exit("labelEnd"),G}function G(W){if(W===40)return $.attempt(zq,D,q?D:z)(W);if(W===91)return $.attempt(Wq,D,q?K:z)(W);return q?D(W):z(W)}function K(W){return $.attempt(Bq,D,z)(W)}function D(W){return Z(W)}function z(W){return H._balanced=!0,J(W)}}function Mq($,Z,J){return F;function F(z){return $.enter("resource"),$.enter("resourceMarker"),$.consume(z),$.exit("resourceMarker"),Q}function Q(z){return n(z)?_8($,H)(z):H(z)}function H(z){if(z===41)return D(z);return o5($,q,X,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(z)}function q(z){return n(z)?_8($,G)(z):D(z)}function X(z){return J(z)}function G(z){if(z===34||z===39||z===40)return e5($,K,J,"resourceTitle","resourceTitleMarker","resourceTitleString")(z);return D(z)}function K(z){return n(z)?_8($,D)(z):D(z)}function D(z){if(z===41)return $.enter("resourceMarker"),$.consume(z),$.exit("resourceMarker"),$.exit("resource"),Z;return J(z)}}function Pq($,Z,J){let F=this;return Q;function Q(X){return t5.call(F,$,H,q,"reference","referenceMarker","referenceString")(X)}function H(X){return F.parser.defined.includes(R0(F.sliceSerialize(F.events[F.events.length-1][1]).slice(1,-1)))?Z(X):J(X)}function q(X){return J(X)}}function Lq($,Z,J){return F;function F(H){return $.enter("reference"),$.enter("referenceMarker"),$.consume(H),$.exit("referenceMarker"),Q}function Q(H){if(H===93)return $.enter("referenceMarker"),$.consume(H),$.exit("referenceMarker"),$.exit("reference"),Z;return J(H)}}var Y1={name:"labelStartImage",resolveAll:A8.resolveAll,tokenize:wq};function wq($,Z,J){let F=this;return Q;function Q(X){return $.enter("labelImage"),$.enter("labelImageMarker"),$.consume(X),$.exit("labelImageMarker"),H}function H(X){if(X===91)return $.enter("labelMarker"),$.consume(X),$.exit("labelMarker"),$.exit("labelImage"),q;return J(X)}function q(X){return X===94&&"_hiddenFootnoteSupport"in F.parser.constructs?J(X):Z(X)}}var U1={name:"labelStartLink",resolveAll:A8.resolveAll,tokenize:_q};function _q($,Z,J){let F=this;return Q;function Q(q){return $.enter("labelLink"),$.enter("labelMarker"),$.consume(q),$.exit("labelMarker"),$.exit("labelLink"),H}function H(q){return q===94&&"_hiddenFootnoteSupport"in F.parser.constructs?J(q):Z(q)}}var V5={name:"lineEnding",tokenize:Aq};function Aq($,Z){return J;function J(F){return $.enter("lineEnding"),$.consume(F),$.exit("lineEnding"),f($,Z,"linePrefix")}}var N8={name:"thematicBreak",tokenize:Nq};function Nq($,Z,J){let F=0,Q;return H;function H(K){return $.enter("thematicBreak"),q(K)}function q(K){return Q=K,X(K)}function X(K){if(K===Q)return $.enter("thematicBreakSequence"),G(K);if(F>=3&&(K===null||E(K)))return $.exit("thematicBreak"),Z(K);return J(K)}function G(K){if(K===Q)return $.consume(K),F++,G;return $.exit("thematicBreakSequence"),l(K)?f($,X,"whitespace")(K):X(K)}}var I0={continuation:{tokenize:yq},exit:Rq,name:"list",tokenize:Oq},Cq={partial:!0,tokenize:Iq},bq={partial:!0,tokenize:jq};function Oq($,Z,J){let F=this,Q=F.events[F.events.length-1],H=Q&&Q[1].type==="linePrefix"?Q[2].sliceSerialize(Q[1],!0).length:0,q=0;return X;function X(B){let V=F.containerState.type||(B===42||B===43||B===45?"listUnordered":"listOrdered");if(V==="listUnordered"?!F.containerState.marker||B===F.containerState.marker:D5(B)){if(!F.containerState.type)F.containerState.type=V,$.enter(V,{_container:!0});if(V==="listUnordered")return $.enter("listItemPrefix"),B===42||B===45?$.check(N8,J,K)(B):K(B);if(!F.interrupt||B===49)return $.enter("listItemPrefix"),$.enter("listItemValue"),G(B)}return J(B)}function G(B){if(D5(B)&&++q<10)return $.consume(B),G;if((!F.interrupt||q<2)&&(F.containerState.marker?B===F.containerState.marker:B===41||B===46))return $.exit("listItemValue"),K(B);return J(B)}function K(B){return $.enter("listItemMarker"),$.consume(B),$.exit("listItemMarker"),F.containerState.marker=F.containerState.marker||B,$.check(d0,F.interrupt?J:D,$.attempt(Cq,W,z))}function D(B){return F.containerState.initialBlankLine=!0,H++,W(B)}function z(B){if(l(B))return $.enter("listItemPrefixWhitespace"),$.consume(B),$.exit("listItemPrefixWhitespace"),W;return J(B)}function W(B){return F.containerState.size=H+F.sliceSerialize($.exit("listItemPrefix"),!0).length,Z(B)}}function yq($,Z,J){let F=this;return F.containerState._closeFlow=void 0,$.check(d0,Q,H);function Q(X){return F.containerState.furtherBlankLines=F.containerState.furtherBlankLines||F.containerState.initialBlankLine,f($,Z,"listItemIndent",F.containerState.size+1)(X)}function H(X){if(F.containerState.furtherBlankLines||!l(X))return F.containerState.furtherBlankLines=void 0,F.containerState.initialBlankLine=void 0,q(X);return F.containerState.furtherBlankLines=void 0,F.containerState.initialBlankLine=void 0,$.attempt(bq,Z,q)(X)}function q(X){return F.containerState._closeFlow=!0,F.interrupt=void 0,f($,$.attempt(I0,Z,J),"linePrefix",F.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(X)}}function jq($,Z,J){let F=this;return f($,Q,"listItemIndent",F.containerState.size+1);function Q(H){let q=F.events[F.events.length-1];return q&&q[1].type==="listItemIndent"&&q[2].sliceSerialize(q[1],!0).length===F.containerState.size?Z(H):J(H)}}function Rq($){$.exit(this.containerState.type)}function Iq($,Z,J){let F=this;return f($,Q,"listItemPrefixWhitespace",F.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function Q(H){let q=F.events[F.events.length-1];return!l(H)&&q&&q[1].type==="listItemPrefixWhitespace"?Z(H):J(H)}}var $4={name:"setextUnderline",resolveTo:gq,tokenize:Tq};function gq($,Z){let J=$.length,F,Q,H;while(J--)if($[J][0]==="enter"){if($[J][1].type==="content"){F=J;break}if($[J][1].type==="paragraph")Q=J}else{if($[J][1].type==="content")$.splice(J,1);if(!H&&$[J][1].type==="definition")H=J}let q={type:"setextHeading",start:{...$[F][1].start},end:{...$[$.length-1][1].end}};if($[Q][1].type="setextHeadingText",H)$.splice(Q,0,["enter",q,Z]),$.splice(H+1,0,["exit",$[F][1],Z]),$[F][1].end={...$[H][1].end};else $[F][1]=q;return $.push(["exit",q,Z]),$}function Tq($,Z,J){let F=this,Q;return H;function H(K){let D=F.events.length,z;while(D--)if(F.events[D][1].type!=="lineEnding"&&F.events[D][1].type!=="linePrefix"&&F.events[D][1].type!=="content"){z=F.events[D][1].type==="paragraph";break}if(!F.parser.lazy[F.now().line]&&(F.interrupt||z))return $.enter("setextHeadingLine"),Q=K,q(K);return J(K)}function q(K){return $.enter("setextHeadingLineSequence"),X(K)}function X(K){if(K===Q)return $.consume(K),X;return $.exit("setextHeadingLineSequence"),l(K)?f($,G,"lineSuffix")(K):G(K)}function G(K){if(K===null||E(K))return $.exit("setextHeadingLine"),Z(K);return J(K)}}var W9={tokenize:Sq};function Sq($){let Z=this,J=$.attempt(d0,F,$.attempt(this.parser.constructs.flowInitial,Q,f($,$.attempt(this.parser.constructs.flow,Q,$.attempt(G1,Q)),"linePrefix")));return J;function F(H){if(H===null){$.consume(H);return}return $.enter("lineEndingBlank"),$.consume(H),$.exit("lineEndingBlank"),Z.currentConstruct=void 0,J}function Q(H){if(H===null){$.consume(H);return}return $.enter("lineEnding"),$.consume(H),$.exit("lineEnding"),Z.currentConstruct=void 0,J}}var B9={resolveAll:M9()},V9=U9("string"),Y9=U9("text");function U9($){return{resolveAll:M9($==="text"?Eq:void 0),tokenize:Z};function Z(J){let F=this,Q=this.parser.constructs[$],H=J.attempt(Q,q,X);return q;function q(D){return K(D)?H(D):X(D)}function X(D){if(D===null){J.consume(D);return}return J.enter("data"),J.consume(D),G}function G(D){if(K(D))return J.exit("data"),H(D);return J.consume(D),G}function K(D){if(D===null)return!0;let z=Q[D],W=-1;if(z)while(++W<z.length){let B=z[W];if(!B.previous||B.previous.call(F,F.previous))return!0}return!1}}}function M9($){return Z;function Z(J,F){let Q=-1,H;while(++Q<=J.length)if(H===void 0){if(J[Q]&&J[Q][1].type==="data")H=Q,Q++}else if(!J[Q]||J[Q][1].type!=="data"){if(Q!==H+2)J[H][1].end=J[Q-1][1].end,J.splice(H+2,Q-H-2),Q=H+2;H=void 0}return $?$(J,F):J}}function Eq($,Z){let J=0;while(++J<=$.length)if((J===$.length||$[J][1].type==="lineEnding")&&$[J-1][1].type==="data"){let F=$[J-1][1],Q=Z.sliceStream(F),H=Q.length,q=-1,X=0,G;while(H--){let K=Q[H];if(typeof K==="string"){q=K.length;while(K.charCodeAt(q-1)===32)X++,q--;if(q)break;q=-1}else if(K===-2)G=!0,X++;else if(K===-1);else{H++;break}}if(Z._contentTypeTextTrailing&&J===$.length)X=0;if(X){let K={type:J===$.length||G||X<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:H?q:F.start._bufferIndex+q,_index:F.start._index+H,line:F.end.line,column:F.end.column-X,offset:F.end.offset-X},end:{...F.end}};if(F.end={...K.start},F.start.offset===F.end.offset)Object.assign(F,K);else $.splice(J,0,["enter",K,Z],["exit",K,Z]),J+=2}J++}return $}var M1={};b7(M1,{text:()=>pq,string:()=>mq,insideSpan:()=>uq,flowInitial:()=>xq,flow:()=>hq,document:()=>kq,disable:()=>lq,contentInitial:()=>vq,attentionMarkers:()=>fq});var kq={[42]:I0,[43]:I0,[45]:I0,[48]:I0,[49]:I0,[50]:I0,[51]:I0,[52]:I0,[53]:I0,[54]:I0,[55]:I0,[56]:I0,[57]:I0,[62]:d5},vq={[91]:K1},xq={[-2]:W5,[-1]:W5,[32]:W5},hq={[35]:z1,[42]:N8,[45]:[$4,N8],[60]:B1,[61]:$4,[95]:N8,[96]:s5,[126]:s5},mq={[38]:a5,[92]:c5},pq={[-5]:V5,[-4]:V5,[-3]:V5,[33]:Y1,[38]:a5,[42]:z5,[60]:[q1,V1],[91]:U1,[92]:[D1,c5],[93]:A8,[95]:z5,[96]:H1},uq={null:[z5,B9]},fq={null:[42,95]},lq={null:[]};function P9($,Z,J){let F={_bufferIndex:-1,_index:0,line:J&&J.line||1,column:J&&J.column||1,offset:J&&J.offset||0},Q={},H=[],q=[],X=[],G=!0,K={attempt:p(u),check:p(x),consume:R,enter:S,exit:A,interrupt:p(x,{interrupt:!0})},D={code:null,containerState:{},defineSkip:P,events:[],now:_,parser:$,previous:null,sliceSerialize:V,sliceStream:U,write:B},z=Z.tokenize.call(D,K),W;if(Z.resolveAll)H.push(Z);return D;function B(k){if(q=T0(q,k),y(),q[q.length-1]!==null)return[];return N(Z,0),D.events=G8(H,D.events,D),D.events}function V(k,m){return rq(U(k),m)}function U(k){return iq(q,k)}function _(){let{_bufferIndex:k,_index:m,line:j,column:w,offset:b}=F;return{_bufferIndex:k,_index:m,line:j,column:w,offset:b}}function P(k){Q[k.line]=k.column,d()}function y(){let k;while(F._index<q.length){let m=q[F._index];if(typeof m==="string"){if(k=F._index,F._bufferIndex<0)F._bufferIndex=0;while(F._index===k&&F._bufferIndex<m.length)O(m.charCodeAt(F._bufferIndex))}else O(m)}}function O(k){G=void 0,W=k,z=z(k)}function R(k){if(E(k))F.line++,F.column=1,F.offset+=k===-3?2:1,d();else if(k!==-1)F.column++,F.offset++;if(F._bufferIndex<0)F._index++;else if(F._bufferIndex++,F._bufferIndex===q[F._index].length)F._bufferIndex=-1,F._index++;D.previous=k,G=!0}function S(k,m){let j=m||{};return j.type=k,j.start=_(),D.events.push(["enter",j,D]),X.push(j),j}function A(k){let m=X.pop();return m.end=_(),D.events.push(["exit",m,D]),m}function u(k,m){N(k,m.from)}function x(k,m){m.restore()}function p(k,m){return j;function j(w,b,g){let v,Y,r,e;return Array.isArray(w)?q0(w):("tokenize"in w)?q0([w]):M(w);function M($0){return k0;function k0(P0){let C0=P0!==null&&$0[P0],b0=P0!==null&&$0.null,O0=[...Array.isArray(C0)?C0:C0?[C0]:[],...Array.isArray(b0)?b0:b0?[b0]:[]];return q0(O0)(P0)}}function q0($0){if(v=$0,Y=0,$0.length===0)return g;return z0($0[Y])}function z0($0){return k0;function k0(P0){if(e=s(),r=$0,!$0.partial)D.currentConstruct=$0;if($0.name&&D.parser.constructs.disable.null.includes($0.name))return N0(P0);return $0.tokenize.call(m?Object.assign(Object.create(D),m):D,K,H0,N0)(P0)}}function H0($0){return G=!0,k(r,e),b}function N0($0){if(G=!0,e.restore(),++Y<v.length)return z0(v[Y]);return g}}}function N(k,m){if(k.resolveAll&&!H.includes(k))H.push(k);if(k.resolve)U0(D.events,m,D.events.length-m,k.resolve(D.events.slice(m),D));if(k.resolveTo)D.events=k.resolveTo(D.events,D)}function s(){let k=_(),m=D.previous,j=D.currentConstruct,w=D.events.length,b=Array.from(X);return{from:w,restore:g};function g(){F=k,D.previous=m,D.currentConstruct=j,D.events.length=w,X=b,d()}}function d(){if(F.line in Q&&F.column<2)F.column=Q[F.line],F.offset+=Q[F.line]-1}}function iq($,Z){let J=Z.start._index,F=Z.start._bufferIndex,Q=Z.end._index,H=Z.end._bufferIndex,q;if(J===Q)q=[$[J].slice(F,H)];else{if(q=$.slice(J,Q),F>-1){let X=q[0];if(typeof X==="string")q[0]=X.slice(F);else q.shift()}if(H>0)q.push($[Q].slice(0,H))}return q}function rq($,Z){let J=-1,F=[],Q;while(++J<$.length){let H=$[J],q;if(typeof H==="string")q=H;else switch(H){case-5:{q="\r";break}case-4:{q=`
@@ -1,2 +1,2 @@
1
- import{Nc as v0,O as _0,Y as L0,Z as o,_ as r,aa as c,ba as n,da as I0,ea as N1,fa as z0,ga as b0,ha as H1,ia as y0,ja as U0,ka as f,la as N0,ma as G0,na as J0,oa as D0}from"/chunk-exj6hr30.js";import{Uc as X0,Vc as A0}from"/chunk-9y2zbzqz.js";var D1=A0((t1,h0)=>{h0.exports=globalThis.__esm["react-dom/client"]});var w0=A0((qG,x0)=>{x0.exports=globalThis.__esm["react-dom"]});var E0=new Map;function e1(G,J){if(J)E0.set(G,J);else E0.delete(G)}function GG(G){return E0.get(G)}var V0=X0(_0(),1);var K0=new Set,t=null,H0=!1;function u0(){if(t||H0)return;H0=!0;let G=new WebSocket(v0("/api/workspaces/ws"));G.onopen=()=>{t=G,H0=!1},G.onmessage=(J)=>{try{let K=JSON.parse(J.data);for(let Q of K0)Q(K)}catch{}},G.onclose=()=>{if(t=null,H0=!1,K0.size>0)setTimeout(u0,2000)},G.onerror=()=>{G.close()}}function QG(G){let J=V0.useRef(G);J.current=G,V0.useEffect(()=>{let K=(Q)=>J.current(Q);return K0.add(K),u0(),()=>{if(K0.delete(K),K0.size===0&&t)t.close(),t=null}},[])}var m0=["top","right","bottom","left"];var{min:p,max:S,round:Z0,floor:q0}=Math,x=(G)=>({x:G,y:G}),b1={left:"right",right:"left",bottom:"top",top:"bottom"};function j0(G,J,K){return S(G,p(J,K))}function m(G,J){return typeof G==="function"?G(J):G}function d(G){return G.split("-")[0]}function i(G){return G.split("-")[1]}function Y0(G){return G==="x"?"y":"x"}function T0(G){return G==="y"?"height":"width"}function w(G){let J=G[0];return J==="t"||J==="b"?"y":"x"}function B0(G){return Y0(w(G))}function d0(G,J,K){if(K===void 0)K=!1;let Q=i(G),Z=B0(G),q=T0(Z),U=Z==="x"?Q===(K?"end":"start")?"right":"left":Q==="start"?"bottom":"top";if(J.reference[q]>J.floating[q])U=Q0(U);return[U,Q0(U)]}function c0(G){let J=Q0(G);return[W0(G),J,W0(J)]}function W0(G){return G.includes("start")?G.replace("start","end"):G.replace("end","start")}var g0=["left","right"],p0=["right","left"],y1=["top","bottom"],S1=["bottom","top"];function O1(G,J,K){switch(G){case"top":case"bottom":if(K)return J?p0:g0;return J?g0:p0;case"left":case"right":return J?y1:S1;default:return[]}}function f0(G,J,K,Q){let Z=i(G),q=O1(d(G),K==="start",Q);if(Z){if(q=q.map((U)=>U+"-"+Z),J)q=q.concat(q.map(W0))}return q}function Q0(G){let J=d(G);return b1[J]+G.slice(J.length)}function P1(G){return{top:0,right:0,bottom:0,left:0,...G}}function $0(G){return typeof G!=="number"?P1(G):{top:G,right:G,bottom:G,left:G}}function s(G){let{x:J,y:K,width:Q,height:Z}=G;return{width:Q,height:Z,top:K,left:J,right:J+Q,bottom:K+Z,x:J,y:K}}function r0(G,J,K){let{reference:Q,floating:Z}=G,q=w(J),U=B0(J),N=T0(U),V=d(J),j=q==="y",H=Q.x+Q.width/2-Z.width/2,W=Q.y+Q.height/2-Z.height/2,Y=Q[N]/2-Z[N]/2,X;switch(V){case"top":X={x:H,y:Q.y-Z.height};break;case"bottom":X={x:H,y:Q.y+Q.height};break;case"right":X={x:Q.x+Q.width,y:W};break;case"left":X={x:Q.x-Z.width,y:W};break;default:X={x:Q.x,y:Q.y}}switch(i(J)){case"start":X[U]-=Y*(K&&j?-1:1);break;case"end":X[U]+=Y*(K&&j?-1:1);break}return X}async function n0(G,J){var K;if(J===void 0)J={};let{x:Q,y:Z,platform:q,rects:U,elements:N,strategy:V}=G,{boundary:j="clippingAncestors",rootBoundary:H="viewport",elementContext:W="floating",altBoundary:Y=!1,padding:X=0}=m(J,G),T=$0(X),I=N[Y?W==="floating"?"reference":"floating":W],L=s(await q.getClippingRect({element:((K=await(q.isElement==null?void 0:q.isElement(I)))!=null?K:!0)?I:I.contextElement||await(q.getDocumentElement==null?void 0:q.getDocumentElement(N.floating)),boundary:j,rootBoundary:H,strategy:V})),M=W==="floating"?{x:Q,y:Z,width:U.floating.width,height:U.floating.height}:U.reference,F=await(q.getOffsetParent==null?void 0:q.getOffsetParent(N.floating)),z=await(q.isElement==null?void 0:q.isElement(F))?await(q.getScale==null?void 0:q.getScale(F))||{x:1,y:1}:{x:1,y:1},k=s(q.convertOffsetParentRelativeRectToViewportRelativeRect?await q.convertOffsetParentRelativeRectToViewportRelativeRect({elements:N,rect:M,offsetParent:F,strategy:V}):M);return{top:(L.top-k.top+T.top)/z.y,bottom:(k.bottom-L.bottom+T.bottom)/z.y,left:(L.left-k.left+T.left)/z.x,right:(k.right-L.right+T.right)/z.x}}var R1=50,i0=async(G,J,K)=>{let{placement:Q="bottom",strategy:Z="absolute",middleware:q=[],platform:U}=K,N=U.detectOverflow?U:{...U,detectOverflow:n0},V=await(U.isRTL==null?void 0:U.isRTL(J)),j=await U.getElementRects({reference:G,floating:J,strategy:Z}),{x:H,y:W}=r0(j,Q,V),Y=Q,X=0,T={};for(let B=0;B<q.length;B++){let I=q[B];if(!I)continue;let{name:L,fn:M}=I,{x:F,y:z,data:k,reset:E}=await M({x:H,y:W,initialPlacement:Q,placement:Y,strategy:Z,middlewareData:T,rects:j,platform:N,elements:{reference:G,floating:J}});if(H=F!=null?F:H,W=z!=null?z:W,T[L]={...T[L],...k},E&&X<R1){if(X++,typeof E==="object"){if(E.placement)Y=E.placement;if(E.rects)j=E.rects===!0?await U.getElementRects({reference:G,floating:J,strategy:Z}):E.rects;({x:H,y:W}=r0(j,Y,V))}B=-1}}return{x:H,y:W,placement:Y,strategy:Z,middlewareData:T}},s0=(G)=>({name:"arrow",options:G,async fn(J){let{x:K,y:Q,placement:Z,rects:q,platform:U,elements:N,middlewareData:V}=J,{element:j,padding:H=0}=m(G,J)||{};if(j==null)return{};let W=$0(H),Y={x:K,y:Q},X=B0(Z),T=T0(X),B=await U.getDimensions(j),I=X==="y",L=I?"top":"left",M=I?"bottom":"right",F=I?"clientHeight":"clientWidth",z=q.reference[T]+q.reference[X]-Y[X]-q.floating[T],k=Y[X]-q.reference[X],E=await(U.getOffsetParent==null?void 0:U.getOffsetParent(j)),$=E?E[F]:0;if(!$||!await(U.isElement==null?void 0:U.isElement(E)))$=N.floating[F]||q.floating[T];let O=z/2-k/2,v=$/2-B[T]/2-1,y=p(W[L],v),u=p(W[M],v),A=y,P=$-B[T]-u,D=$/2-B[T]/2+O,g=j0(A,D,P),b=!V.arrow&&i(Z)!=null&&D!==g&&q.reference[T]/2-(D<A?y:u)-B[T]/2<0,R=b?D<A?D-A:D-P:0;return{[X]:Y[X]+R,data:{[X]:g,centerOffset:D-g-R,...b&&{alignmentOffset:R}},reset:b}}});var a0=function(G){if(G===void 0)G={};return{name:"flip",options:G,async fn(J){var K,Q;let{placement:Z,middlewareData:q,rects:U,initialPlacement:N,platform:V,elements:j}=J,{mainAxis:H=!0,crossAxis:W=!0,fallbackPlacements:Y,fallbackStrategy:X="bestFit",fallbackAxisSideDirection:T="none",flipAlignment:B=!0,...I}=m(G,J);if((K=q.arrow)!=null&&K.alignmentOffset)return{};let L=d(Z),M=w(N),F=d(N)===N,z=await(V.isRTL==null?void 0:V.isRTL(j.floating)),k=Y||(F||!B?[Q0(N)]:c0(N)),E=T!=="none";if(!Y&&E)k.push(...f0(N,B,T,z));let $=[N,...k],O=await V.detectOverflow(J,I),v=[],y=((Q=q.flip)==null?void 0:Q.overflows)||[];if(H)v.push(O[L]);if(W){let D=d0(Z,U,z);v.push(O[D[0]],O[D[1]])}if(y=[...y,{placement:Z,overflows:v}],!v.every((D)=>D<=0)){var u,A;let D=(((u=q.flip)==null?void 0:u.index)||0)+1,g=$[D];if(g){if(!(W==="alignment"?M!==w(g):!1)||y.every((_)=>w(_.placement)===M?_.overflows[0]>0:!0))return{data:{index:D,overflows:y},reset:{placement:g}}}let b=(A=y.filter((R)=>R.overflows[0]<=0).sort((R,_)=>R.overflows[1]-_.overflows[1])[0])==null?void 0:A.placement;if(!b)switch(X){case"bestFit":{var P;let R=(P=y.filter((_)=>{if(E){let h=w(_.placement);return h===M||h==="y"}return!0}).map((_)=>[_.placement,_.overflows.filter((h)=>h>0).reduce((h,l)=>h+l,0)]).sort((_,h)=>_[1]-h[1])[0])==null?void 0:P[0];if(R)b=R;break}case"initialPlacement":b=N;break}if(Z!==b)return{reset:{placement:b}}}return{}}}};function l0(G,J){return{top:G.top-J.height,right:G.right-J.width,bottom:G.bottom-J.height,left:G.left-J.width}}function o0(G){return m0.some((J)=>G[J]>=0)}var t0=function(G){if(G===void 0)G={};return{name:"hide",options:G,async fn(J){let{rects:K,platform:Q}=J,{strategy:Z="referenceHidden",...q}=m(G,J);switch(Z){case"referenceHidden":{let U=await Q.detectOverflow(J,{...q,elementContext:"reference"}),N=l0(U,K.reference);return{data:{referenceHiddenOffsets:N,referenceHidden:o0(N)}}}case"escaped":{let U=await Q.detectOverflow(J,{...q,altBoundary:!0}),N=l0(U,K.floating);return{data:{escapedOffsets:N,escaped:o0(N)}}}default:return{}}}}};var e0=new Set(["left","top"]);async function A1(G,J){let{placement:K,platform:Q,elements:Z}=G,q=await(Q.isRTL==null?void 0:Q.isRTL(Z.floating)),U=d(K),N=i(K),V=w(K)==="y",j=e0.has(U)?-1:1,H=q&&V?-1:1,W=m(J,G),{mainAxis:Y,crossAxis:X,alignmentAxis:T}=typeof W==="number"?{mainAxis:W,crossAxis:0,alignmentAxis:null}:{mainAxis:W.mainAxis||0,crossAxis:W.crossAxis||0,alignmentAxis:W.alignmentAxis};if(N&&typeof T==="number")X=N==="end"?T*-1:T;return V?{x:X*H,y:Y*j}:{x:Y*j,y:X*H}}var G1=function(G){if(G===void 0)G=0;return{name:"offset",options:G,async fn(J){var K,Q;let{x:Z,y:q,placement:U,middlewareData:N}=J,V=await A1(J,G);if(U===((K=N.offset)==null?void 0:K.placement)&&(Q=N.arrow)!=null&&Q.alignmentOffset)return{};return{x:Z+V.x,y:q+V.y,data:{...V,placement:U}}}}},J1=function(G){if(G===void 0)G={};return{name:"shift",options:G,async fn(J){let{x:K,y:Q,placement:Z,platform:q}=J,{mainAxis:U=!0,crossAxis:N=!1,limiter:V={fn:(L)=>{let{x:M,y:F}=L;return{x:M,y:F}}},...j}=m(G,J),H={x:K,y:Q},W=await q.detectOverflow(J,j),Y=w(d(Z)),X=Y0(Y),T=H[X],B=H[Y];if(U){let L=X==="y"?"top":"left",M=X==="y"?"bottom":"right",F=T+W[L],z=T-W[M];T=j0(F,T,z)}if(N){let L=Y==="y"?"top":"left",M=Y==="y"?"bottom":"right",F=B+W[L],z=B-W[M];B=j0(F,B,z)}let I=V.fn({...J,[X]:T,[Y]:B});return{...I,data:{x:I.x-K,y:I.y-Q,enabled:{[X]:U,[Y]:N}}}}}},K1=function(G){if(G===void 0)G={};return{options:G,fn(J){let{x:K,y:Q,placement:Z,rects:q,middlewareData:U}=J,{offset:N=0,mainAxis:V=!0,crossAxis:j=!0}=m(G,J),H={x:K,y:Q},W=w(Z),Y=Y0(W),X=H[Y],T=H[W],B=m(N,J),I=typeof B==="number"?{mainAxis:B,crossAxis:0}:{mainAxis:0,crossAxis:0,...B};if(V){let F=Y==="y"?"height":"width",z=q.reference[Y]-q.floating[F]+I.mainAxis,k=q.reference[Y]+q.reference[F]-I.mainAxis;if(X<z)X=z;else if(X>k)X=k}if(j){var L,M;let F=Y==="y"?"width":"height",z=e0.has(d(Z)),k=q.reference[W]-q.floating[F]+(z?((L=U.offset)==null?void 0:L[W])||0:0)+(z?0:I.crossAxis),E=q.reference[W]+q.reference[F]+(z?0:((M=U.offset)==null?void 0:M[W])||0)-(z?I.crossAxis:0);if(T<k)T=k;else if(T>E)T=E}return{[Y]:X,[W]:T}}}},Q1=function(G){if(G===void 0)G={};return{name:"size",options:G,async fn(J){var K,Q;let{placement:Z,rects:q,platform:U,elements:N}=J,{apply:V=()=>{},...j}=m(G,J),H=await U.detectOverflow(J,j),W=d(Z),Y=i(Z),X=w(Z)==="y",{width:T,height:B}=q.floating,I,L;if(W==="top"||W==="bottom")I=W,L=Y===(await(U.isRTL==null?void 0:U.isRTL(N.floating))?"start":"end")?"left":"right";else L=W,I=Y==="end"?"top":"bottom";let M=B-H.top-H.bottom,F=T-H.left-H.right,z=p(B-H[I],M),k=p(T-H[L],F),E=!J.middlewareData.shift,$=z,O=k;if((K=J.middlewareData.shift)!=null&&K.enabled.x)O=F;if((Q=J.middlewareData.shift)!=null&&Q.enabled.y)$=M;if(E&&!Y){let y=S(H.left,0),u=S(H.right,0),A=S(H.top,0),P=S(H.bottom,0);if(X)O=T-2*(y!==0||u!==0?y+u:S(H.left,H.right));else $=B-2*(A!==0||P!==0?A+P:S(H.top,H.bottom))}await V({...J,availableWidth:O,availableHeight:$});let v=await U.getDimensions(N.floating);if(T!==v.width||B!==v.height)return{reset:{rects:!0}};return{}}}};function X1(G){let J=f(G),K=parseFloat(J.width)||0,Q=parseFloat(J.height)||0,Z=n(G),q=Z?G.offsetWidth:K,U=Z?G.offsetHeight:Q,N=Z0(K)!==q||Z0(Q)!==U;if(N)K=q,Q=U;return{width:K,height:Q,$:N}}function S0(G){return!c(G)?G.contextElement:G}function e(G){let J=S0(G);if(!n(J))return x(1);let K=J.getBoundingClientRect(),{width:Q,height:Z,$:q}=X1(J),U=(q?Z0(K.width):K.width)/Q,N=(q?Z0(K.height):K.height)/Z;if(!U||!Number.isFinite(U))U=1;if(!N||!Number.isFinite(N))N=1;return{x:U,y:N}}var h1=x(0);function V1(G){let J=o(G);if(!y0()||!J.visualViewport)return h1;return{x:J.visualViewport.offsetLeft,y:J.visualViewport.offsetTop}}function v1(G,J,K){if(J===void 0)J=!1;if(!K||J&&K!==o(G))return!1;return J}function a(G,J,K,Q){if(J===void 0)J=!1;if(K===void 0)K=!1;let Z=G.getBoundingClientRect(),q=S0(G),U=x(1);if(J)if(Q){if(c(Q))U=e(Q)}else U=e(G);let N=v1(q,K,Q)?V1(q):x(0),V=(Z.left+N.x)/U.x,j=(Z.top+N.y)/U.y,H=Z.width/U.x,W=Z.height/U.y;if(q){let Y=o(q),X=Q&&c(Q)?o(Q):Q,T=Y,B=D0(T);while(B&&Q&&X!==T){let I=e(B),L=B.getBoundingClientRect(),M=f(B),F=L.left+(B.clientLeft+parseFloat(M.paddingLeft))*I.x,z=L.top+(B.clientTop+parseFloat(M.paddingTop))*I.y;V*=I.x,j*=I.y,H*=I.x,W*=I.y,V+=F,j+=z,T=o(B),B=D0(T)}}return s({width:H,height:W,x:V,y:j})}function F0(G,J){let K=N0(G).scrollLeft;if(!J)return a(r(G)).left+K;return J.left+K}function W1(G,J){let K=G.getBoundingClientRect(),Q=K.left+J.scrollLeft-F0(G,K),Z=K.top+J.scrollTop;return{x:Q,y:Z}}function u1(G){let{elements:J,rect:K,offsetParent:Q,strategy:Z}=G,q=Z==="fixed",U=r(Q),N=J?z0(J.floating):!1;if(Q===U||N&&q)return K;let V={scrollLeft:0,scrollTop:0},j=x(1),H=x(0),W=n(Q);if(W||!W&&!q){if(L0(Q)!=="body"||I0(U))V=N0(Q);if(W){let X=a(Q);j=e(Q),H.x=X.x+Q.clientLeft,H.y=X.y+Q.clientTop}}let Y=U&&!W&&!q?W1(U,V):x(0);return{width:K.width*j.x,height:K.height*j.y,x:K.x*j.x-V.scrollLeft*j.x+H.x+Y.x,y:K.y*j.y-V.scrollTop*j.y+H.y+Y.y}}function x1(G){return Array.from(G.getClientRects())}function w1(G){let J=r(G),K=N0(G),Q=G.ownerDocument.body,Z=S(J.scrollWidth,J.clientWidth,Q.scrollWidth,Q.clientWidth),q=S(J.scrollHeight,J.clientHeight,Q.scrollHeight,Q.clientHeight),U=-K.scrollLeft+F0(G),N=-K.scrollTop;if(f(Q).direction==="rtl")U+=S(J.clientWidth,Q.clientWidth)-Z;return{width:Z,height:q,x:U,y:N}}var Z1=25;function g1(G,J){let K=o(G),Q=r(G),Z=K.visualViewport,q=Q.clientWidth,U=Q.clientHeight,N=0,V=0;if(Z){q=Z.width,U=Z.height;let H=y0();if(!H||H&&J==="fixed")N=Z.offsetLeft,V=Z.offsetTop}let j=F0(Q);if(j<=0){let H=Q.ownerDocument,W=H.body,Y=getComputedStyle(W),X=H.compatMode==="CSS1Compat"?parseFloat(Y.marginLeft)+parseFloat(Y.marginRight)||0:0,T=Math.abs(Q.clientWidth-W.clientWidth-X);if(T<=Z1)q-=T}else if(j<=Z1)q+=j;return{width:q,height:U,x:N,y:V}}function p1(G,J){let K=a(G,!0,J==="fixed"),Q=K.top+G.clientTop,Z=K.left+G.clientLeft,q=n(G)?e(G):x(1),U=G.clientWidth*q.x,N=G.clientHeight*q.y,V=Z*q.x,j=Q*q.y;return{width:U,height:N,x:V,y:j}}function q1(G,J,K){let Q;if(J==="viewport")Q=g1(G,K);else if(J==="document")Q=w1(r(G));else if(c(J))Q=p1(J,K);else{let Z=V1(G);Q={x:J.x-Z.x,y:J.y-Z.y,width:J.width,height:J.height}}return s(Q)}function j1(G,J){let K=G0(G);if(K===J||!c(K)||U0(K))return!1;return f(K).position==="fixed"||j1(K,J)}function m1(G,J){let K=J.get(G);if(K)return K;let Q=J0(G,[],!1).filter((N)=>c(N)&&L0(N)!=="body"),Z=null,q=f(G).position==="fixed",U=q?G0(G):G;while(c(U)&&!U0(U)){let N=f(U),V=b0(U);if(!V&&N.position==="fixed")Z=null;if(q?!V&&!Z:!V&&N.position==="static"&&!!Z&&(Z.position==="absolute"||Z.position==="fixed")||I0(U)&&!V&&j1(G,U))Q=Q.filter((H)=>H!==U);else Z=N;U=G0(U)}return J.set(G,Q),Q}function d1(G){let{element:J,boundary:K,rootBoundary:Q,strategy:Z}=G,U=[...K==="clippingAncestors"?z0(J)?[]:m1(J,this._c):[].concat(K),Q],N=q1(J,U[0],Z),V=N.top,j=N.right,H=N.bottom,W=N.left;for(let Y=1;Y<U.length;Y++){let X=q1(J,U[Y],Z);V=S(X.top,V),j=p(X.right,j),H=p(X.bottom,H),W=S(X.left,W)}return{width:j-W,height:H-V,x:W,y:V}}function c1(G){let{width:J,height:K}=X1(G);return{width:J,height:K}}function f1(G,J,K){let Q=n(J),Z=r(J),q=K==="fixed",U=a(G,!0,q,J),N={scrollLeft:0,scrollTop:0},V=x(0);function j(){V.x=F0(Z)}if(Q||!Q&&!q){if(L0(J)!=="body"||I0(Z))N=N0(J);if(Q){let X=a(J,!0,q,J);V.x=X.x+J.clientLeft,V.y=X.y+J.clientTop}else if(Z)j()}if(q&&!Q&&Z)j();let H=Z&&!Q&&!q?W1(Z,N):x(0),W=U.left+N.scrollLeft-V.x-H.x,Y=U.top+N.scrollTop-V.y-H.y;return{x:W,y:Y,width:U.width,height:U.height}}function C0(G){return f(G).position==="static"}function U1(G,J){if(!n(G)||f(G).position==="fixed")return null;if(J)return J(G);let K=G.offsetParent;if(r(G)===K)K=K.ownerDocument.body;return K}function Y1(G,J){let K=o(G);if(z0(G))return K;if(!n(G)){let Z=G0(G);while(Z&&!U0(Z)){if(c(Z)&&!C0(Z))return Z;Z=G0(Z)}return K}let Q=U1(G,J);while(Q&&N1(Q)&&C0(Q))Q=U1(Q,J);if(Q&&U0(Q)&&C0(Q)&&!b0(Q))return K;return Q||H1(G)||K}var r1=async function(G){let J=this.getOffsetParent||Y1,K=this.getDimensions,Q=await K(G.floating);return{reference:f1(G.reference,await J(G.floating),G.strategy),floating:{x:0,y:0,width:Q.width,height:Q.height}}};function l1(G){return f(G).direction==="rtl"}var T1={convertOffsetParentRelativeRectToViewportRelativeRect:u1,getDocumentElement:r,getClippingRect:d1,getOffsetParent:Y1,getElementRects:r1,getClientRects:x1,getDimensions:c1,getScale:e,isElement:c,isRTL:l1};function B1(G,J){return G.x===J.x&&G.y===J.y&&G.width===J.width&&G.height===J.height}function o1(G,J){let K=null,Q,Z=r(G);function q(){var N;clearTimeout(Q),(N=K)==null||N.disconnect(),K=null}function U(N,V){if(N===void 0)N=!1;if(V===void 0)V=1;q();let j=G.getBoundingClientRect(),{left:H,top:W,width:Y,height:X}=j;if(!N)J();if(!Y||!X)return;let T=q0(W),B=q0(Z.clientWidth-(H+Y)),I=q0(Z.clientHeight-(W+X)),L=q0(H),F={rootMargin:-T+"px "+-B+"px "+-I+"px "+-L+"px",threshold:S(0,p(1,V))||1},z=!0;function k(E){let $=E[0].intersectionRatio;if($!==V){if(!z)return U();if(!$)Q=setTimeout(()=>{U(!1,0.0000001)},1000);else U(!1,$)}if($===1&&!B1(j,G.getBoundingClientRect()))U();z=!1}try{K=new IntersectionObserver(k,{...F,root:Z.ownerDocument})}catch(E){K=new IntersectionObserver(k,F)}K.observe(G)}return U(!0),q}function n1(G,J,K,Q){if(Q===void 0)Q={};let{ancestorScroll:Z=!0,ancestorResize:q=!0,elementResize:U=typeof ResizeObserver==="function",layoutShift:N=typeof IntersectionObserver==="function",animationFrame:V=!1}=Q,j=S0(G),H=Z||q?[...j?J0(j):[],...J?J0(J):[]]:[];H.forEach((L)=>{Z&&L.addEventListener("scroll",K,{passive:!0}),q&&L.addEventListener("resize",K)});let W=j&&N?o1(j,K):null,Y=-1,X=null;if(U){if(X=new ResizeObserver((L)=>{let[M]=L;if(M&&M.target===j&&X&&J)X.unobserve(J),cancelAnimationFrame(Y),Y=requestAnimationFrame(()=>{var F;(F=X)==null||F.observe(J)});K()}),j&&!V)X.observe(j);if(J)X.observe(J)}let T,B=V?a(G):null;if(V)I();function I(){let L=a(G);if(B&&!B1(B,L))K();B=L,T=requestAnimationFrame(I)}return K(),()=>{var L;if(H.forEach((M)=>{Z&&M.removeEventListener("scroll",K),q&&M.removeEventListener("resize",K)}),W==null||W(),(L=X)==null||L.disconnect(),X=null,V)cancelAnimationFrame(T)}}var L1=G1;var I1=J1,z1=a0,F1=Q1,M1=t0,O0=s0;var k1=K1,P0=(G,J,K)=>{let Q=new Map,Z={platform:T1,...K},q={...Z.platform,_c:Q};return i0(G,J,{...Z,platform:q})};var C=X0(_0(),1),_1=X0(_0(),1),$1=X0(w0(),1),i1=typeof document<"u",s1=function(){},M0=i1?_1.useLayoutEffect:s1;function k0(G,J){if(G===J)return!0;if(typeof G!==typeof J)return!1;if(typeof G==="function"&&G.toString()===J.toString())return!0;let K,Q,Z;if(G&&J&&typeof G==="object"){if(Array.isArray(G)){if(K=G.length,K!==J.length)return!1;for(Q=K;Q--!==0;)if(!k0(G[Q],J[Q]))return!1;return!0}if(Z=Object.keys(G),K=Z.length,K!==Object.keys(J).length)return!1;for(Q=K;Q--!==0;)if(!{}.hasOwnProperty.call(J,Z[Q]))return!1;for(Q=K;Q--!==0;){let q=Z[Q];if(q==="_owner"&&G.$$typeof)continue;if(!k0(G[q],J[q]))return!1}return!0}return G!==G&&J!==J}function C1(G){if(typeof window>"u")return 1;return(G.ownerDocument.defaultView||window).devicePixelRatio||1}function E1(G,J){let K=C1(G);return Math.round(J*K)/K}function R0(G){let J=C.useRef(G);return M0(()=>{J.current=G}),J}function EG(G){if(G===void 0)G={};let{placement:J="bottom",strategy:K="absolute",middleware:Q=[],platform:Z,elements:{reference:q,floating:U}={},transform:N=!0,whileElementsMounted:V,open:j}=G,[H,W]=C.useState({x:0,y:0,strategy:K,placement:J,middlewareData:{},isPositioned:!1}),[Y,X]=C.useState(Q);if(!k0(Y,Q))X(Q);let[T,B]=C.useState(null),[I,L]=C.useState(null),M=C.useCallback((_)=>{if(_!==E.current)E.current=_,B(_)},[]),F=C.useCallback((_)=>{if(_!==$.current)$.current=_,L(_)},[]),z=q||T,k=U||I,E=C.useRef(null),$=C.useRef(null),O=C.useRef(H),v=V!=null,y=R0(V),u=R0(Z),A=R0(j),P=C.useCallback(()=>{if(!E.current||!$.current)return;let _={placement:J,strategy:K,middleware:Y};if(u.current)_.platform=u.current;P0(E.current,$.current,_).then((h)=>{let l={...h,isPositioned:A.current!==!1};if(D.current&&!k0(O.current,l))O.current=l,$1.flushSync(()=>{W(l)})})},[Y,J,K,u,A]);M0(()=>{if(j===!1&&O.current.isPositioned)O.current.isPositioned=!1,W((_)=>({..._,isPositioned:!1}))},[j]);let D=C.useRef(!1);M0(()=>{return D.current=!0,()=>{D.current=!1}},[]),M0(()=>{if(z)E.current=z;if(k)$.current=k;if(z&&k){if(y.current)return y.current(z,k,P);P()}},[z,k,P,y,v]);let g=C.useMemo(()=>({reference:E,floating:$,setReference:M,setFloating:F}),[M,F]),b=C.useMemo(()=>({reference:z,floating:k}),[z,k]),R=C.useMemo(()=>{let _={position:K,left:0,top:0};if(!b.floating)return _;let h=E1(b.floating,H.x),l=E1(b.floating,H.y);if(N)return{..._,transform:"translate("+h+"px, "+l+"px)",...C1(b.floating)>=1.5&&{willChange:"transform"}};return{position:K,left:h,top:l}},[K,N,b.floating,H.x,H.y]);return C.useMemo(()=>({...H,update:P,refs:g,elements:b,floatingStyles:R}),[H,P,g,b,R])}var a1=(G)=>{function J(K){return{}.hasOwnProperty.call(K,"current")}return{name:"arrow",options:G,fn(K){let{element:Q,padding:Z}=typeof G==="function"?G(K):G;if(Q&&J(Q)){if(Q.current!=null)return O0({element:Q.current,padding:Z}).fn(K);return{}}if(Q)return O0({element:Q,padding:Z}).fn(K);return{}}}},_G=(G,J)=>{let K=L1(G);return{name:K.name,fn:K.fn,options:[G,J]}},$G=(G,J)=>{let K=I1(G);return{name:K.name,fn:K.fn,options:[G,J]}},CG=(G,J)=>{return{fn:k1(G).fn,options:[G,J]}},DG=(G,J)=>{let K=z1(G);return{name:K.name,fn:K.fn,options:[G,J]}},bG=(G,J)=>{let K=F1(G);return{name:K.name,fn:K.fn,options:[G,J]}};var yG=(G,J)=>{let K=M1(G);return{name:K.name,fn:K.fn,options:[G,J]}};var SG=(G,J)=>{let K=a1(G);return{name:K.name,fn:K.fn,options:[G,J]}};
1
+ import{Nc as v0,O as _0,Y as L0,Z as o,_ as r,aa as c,ba as n,da as I0,ea as N1,fa as z0,ga as b0,ha as H1,ia as y0,ja as U0,ka as f,la as N0,ma as G0,na as J0,oa as D0}from"/chunk-0k7brsms.js";import{Uc as X0,Vc as A0}from"/chunk-9y2zbzqz.js";var D1=A0((t1,h0)=>{h0.exports=globalThis.__esm["react-dom/client"]});var w0=A0((qG,x0)=>{x0.exports=globalThis.__esm["react-dom"]});var E0=new Map;function e1(G,J){if(J)E0.set(G,J);else E0.delete(G)}function GG(G){return E0.get(G)}var V0=X0(_0(),1);var K0=new Set,t=null,H0=!1;function u0(){if(t||H0)return;H0=!0;let G=new WebSocket(v0("/api/workspaces/ws"));G.onopen=()=>{t=G,H0=!1},G.onmessage=(J)=>{try{let K=JSON.parse(J.data);for(let Q of K0)Q(K)}catch{}},G.onclose=()=>{if(t=null,H0=!1,K0.size>0)setTimeout(u0,2000)},G.onerror=()=>{G.close()}}function QG(G){let J=V0.useRef(G);J.current=G,V0.useEffect(()=>{let K=(Q)=>J.current(Q);return K0.add(K),u0(),()=>{if(K0.delete(K),K0.size===0&&t)t.close(),t=null}},[])}var m0=["top","right","bottom","left"];var{min:p,max:S,round:Z0,floor:q0}=Math,x=(G)=>({x:G,y:G}),b1={left:"right",right:"left",bottom:"top",top:"bottom"};function j0(G,J,K){return S(G,p(J,K))}function m(G,J){return typeof G==="function"?G(J):G}function d(G){return G.split("-")[0]}function i(G){return G.split("-")[1]}function Y0(G){return G==="x"?"y":"x"}function T0(G){return G==="y"?"height":"width"}function w(G){let J=G[0];return J==="t"||J==="b"?"y":"x"}function B0(G){return Y0(w(G))}function d0(G,J,K){if(K===void 0)K=!1;let Q=i(G),Z=B0(G),q=T0(Z),U=Z==="x"?Q===(K?"end":"start")?"right":"left":Q==="start"?"bottom":"top";if(J.reference[q]>J.floating[q])U=Q0(U);return[U,Q0(U)]}function c0(G){let J=Q0(G);return[W0(G),J,W0(J)]}function W0(G){return G.includes("start")?G.replace("start","end"):G.replace("end","start")}var g0=["left","right"],p0=["right","left"],y1=["top","bottom"],S1=["bottom","top"];function O1(G,J,K){switch(G){case"top":case"bottom":if(K)return J?p0:g0;return J?g0:p0;case"left":case"right":return J?y1:S1;default:return[]}}function f0(G,J,K,Q){let Z=i(G),q=O1(d(G),K==="start",Q);if(Z){if(q=q.map((U)=>U+"-"+Z),J)q=q.concat(q.map(W0))}return q}function Q0(G){let J=d(G);return b1[J]+G.slice(J.length)}function P1(G){return{top:0,right:0,bottom:0,left:0,...G}}function $0(G){return typeof G!=="number"?P1(G):{top:G,right:G,bottom:G,left:G}}function s(G){let{x:J,y:K,width:Q,height:Z}=G;return{width:Q,height:Z,top:K,left:J,right:J+Q,bottom:K+Z,x:J,y:K}}function r0(G,J,K){let{reference:Q,floating:Z}=G,q=w(J),U=B0(J),N=T0(U),V=d(J),j=q==="y",H=Q.x+Q.width/2-Z.width/2,W=Q.y+Q.height/2-Z.height/2,Y=Q[N]/2-Z[N]/2,X;switch(V){case"top":X={x:H,y:Q.y-Z.height};break;case"bottom":X={x:H,y:Q.y+Q.height};break;case"right":X={x:Q.x+Q.width,y:W};break;case"left":X={x:Q.x-Z.width,y:W};break;default:X={x:Q.x,y:Q.y}}switch(i(J)){case"start":X[U]-=Y*(K&&j?-1:1);break;case"end":X[U]+=Y*(K&&j?-1:1);break}return X}async function n0(G,J){var K;if(J===void 0)J={};let{x:Q,y:Z,platform:q,rects:U,elements:N,strategy:V}=G,{boundary:j="clippingAncestors",rootBoundary:H="viewport",elementContext:W="floating",altBoundary:Y=!1,padding:X=0}=m(J,G),T=$0(X),I=N[Y?W==="floating"?"reference":"floating":W],L=s(await q.getClippingRect({element:((K=await(q.isElement==null?void 0:q.isElement(I)))!=null?K:!0)?I:I.contextElement||await(q.getDocumentElement==null?void 0:q.getDocumentElement(N.floating)),boundary:j,rootBoundary:H,strategy:V})),M=W==="floating"?{x:Q,y:Z,width:U.floating.width,height:U.floating.height}:U.reference,F=await(q.getOffsetParent==null?void 0:q.getOffsetParent(N.floating)),z=await(q.isElement==null?void 0:q.isElement(F))?await(q.getScale==null?void 0:q.getScale(F))||{x:1,y:1}:{x:1,y:1},k=s(q.convertOffsetParentRelativeRectToViewportRelativeRect?await q.convertOffsetParentRelativeRectToViewportRelativeRect({elements:N,rect:M,offsetParent:F,strategy:V}):M);return{top:(L.top-k.top+T.top)/z.y,bottom:(k.bottom-L.bottom+T.bottom)/z.y,left:(L.left-k.left+T.left)/z.x,right:(k.right-L.right+T.right)/z.x}}var R1=50,i0=async(G,J,K)=>{let{placement:Q="bottom",strategy:Z="absolute",middleware:q=[],platform:U}=K,N=U.detectOverflow?U:{...U,detectOverflow:n0},V=await(U.isRTL==null?void 0:U.isRTL(J)),j=await U.getElementRects({reference:G,floating:J,strategy:Z}),{x:H,y:W}=r0(j,Q,V),Y=Q,X=0,T={};for(let B=0;B<q.length;B++){let I=q[B];if(!I)continue;let{name:L,fn:M}=I,{x:F,y:z,data:k,reset:E}=await M({x:H,y:W,initialPlacement:Q,placement:Y,strategy:Z,middlewareData:T,rects:j,platform:N,elements:{reference:G,floating:J}});if(H=F!=null?F:H,W=z!=null?z:W,T[L]={...T[L],...k},E&&X<R1){if(X++,typeof E==="object"){if(E.placement)Y=E.placement;if(E.rects)j=E.rects===!0?await U.getElementRects({reference:G,floating:J,strategy:Z}):E.rects;({x:H,y:W}=r0(j,Y,V))}B=-1}}return{x:H,y:W,placement:Y,strategy:Z,middlewareData:T}},s0=(G)=>({name:"arrow",options:G,async fn(J){let{x:K,y:Q,placement:Z,rects:q,platform:U,elements:N,middlewareData:V}=J,{element:j,padding:H=0}=m(G,J)||{};if(j==null)return{};let W=$0(H),Y={x:K,y:Q},X=B0(Z),T=T0(X),B=await U.getDimensions(j),I=X==="y",L=I?"top":"left",M=I?"bottom":"right",F=I?"clientHeight":"clientWidth",z=q.reference[T]+q.reference[X]-Y[X]-q.floating[T],k=Y[X]-q.reference[X],E=await(U.getOffsetParent==null?void 0:U.getOffsetParent(j)),$=E?E[F]:0;if(!$||!await(U.isElement==null?void 0:U.isElement(E)))$=N.floating[F]||q.floating[T];let O=z/2-k/2,v=$/2-B[T]/2-1,y=p(W[L],v),u=p(W[M],v),A=y,P=$-B[T]-u,D=$/2-B[T]/2+O,g=j0(A,D,P),b=!V.arrow&&i(Z)!=null&&D!==g&&q.reference[T]/2-(D<A?y:u)-B[T]/2<0,R=b?D<A?D-A:D-P:0;return{[X]:Y[X]+R,data:{[X]:g,centerOffset:D-g-R,...b&&{alignmentOffset:R}},reset:b}}});var a0=function(G){if(G===void 0)G={};return{name:"flip",options:G,async fn(J){var K,Q;let{placement:Z,middlewareData:q,rects:U,initialPlacement:N,platform:V,elements:j}=J,{mainAxis:H=!0,crossAxis:W=!0,fallbackPlacements:Y,fallbackStrategy:X="bestFit",fallbackAxisSideDirection:T="none",flipAlignment:B=!0,...I}=m(G,J);if((K=q.arrow)!=null&&K.alignmentOffset)return{};let L=d(Z),M=w(N),F=d(N)===N,z=await(V.isRTL==null?void 0:V.isRTL(j.floating)),k=Y||(F||!B?[Q0(N)]:c0(N)),E=T!=="none";if(!Y&&E)k.push(...f0(N,B,T,z));let $=[N,...k],O=await V.detectOverflow(J,I),v=[],y=((Q=q.flip)==null?void 0:Q.overflows)||[];if(H)v.push(O[L]);if(W){let D=d0(Z,U,z);v.push(O[D[0]],O[D[1]])}if(y=[...y,{placement:Z,overflows:v}],!v.every((D)=>D<=0)){var u,A;let D=(((u=q.flip)==null?void 0:u.index)||0)+1,g=$[D];if(g){if(!(W==="alignment"?M!==w(g):!1)||y.every((_)=>w(_.placement)===M?_.overflows[0]>0:!0))return{data:{index:D,overflows:y},reset:{placement:g}}}let b=(A=y.filter((R)=>R.overflows[0]<=0).sort((R,_)=>R.overflows[1]-_.overflows[1])[0])==null?void 0:A.placement;if(!b)switch(X){case"bestFit":{var P;let R=(P=y.filter((_)=>{if(E){let h=w(_.placement);return h===M||h==="y"}return!0}).map((_)=>[_.placement,_.overflows.filter((h)=>h>0).reduce((h,l)=>h+l,0)]).sort((_,h)=>_[1]-h[1])[0])==null?void 0:P[0];if(R)b=R;break}case"initialPlacement":b=N;break}if(Z!==b)return{reset:{placement:b}}}return{}}}};function l0(G,J){return{top:G.top-J.height,right:G.right-J.width,bottom:G.bottom-J.height,left:G.left-J.width}}function o0(G){return m0.some((J)=>G[J]>=0)}var t0=function(G){if(G===void 0)G={};return{name:"hide",options:G,async fn(J){let{rects:K,platform:Q}=J,{strategy:Z="referenceHidden",...q}=m(G,J);switch(Z){case"referenceHidden":{let U=await Q.detectOverflow(J,{...q,elementContext:"reference"}),N=l0(U,K.reference);return{data:{referenceHiddenOffsets:N,referenceHidden:o0(N)}}}case"escaped":{let U=await Q.detectOverflow(J,{...q,altBoundary:!0}),N=l0(U,K.floating);return{data:{escapedOffsets:N,escaped:o0(N)}}}default:return{}}}}};var e0=new Set(["left","top"]);async function A1(G,J){let{placement:K,platform:Q,elements:Z}=G,q=await(Q.isRTL==null?void 0:Q.isRTL(Z.floating)),U=d(K),N=i(K),V=w(K)==="y",j=e0.has(U)?-1:1,H=q&&V?-1:1,W=m(J,G),{mainAxis:Y,crossAxis:X,alignmentAxis:T}=typeof W==="number"?{mainAxis:W,crossAxis:0,alignmentAxis:null}:{mainAxis:W.mainAxis||0,crossAxis:W.crossAxis||0,alignmentAxis:W.alignmentAxis};if(N&&typeof T==="number")X=N==="end"?T*-1:T;return V?{x:X*H,y:Y*j}:{x:Y*j,y:X*H}}var G1=function(G){if(G===void 0)G=0;return{name:"offset",options:G,async fn(J){var K,Q;let{x:Z,y:q,placement:U,middlewareData:N}=J,V=await A1(J,G);if(U===((K=N.offset)==null?void 0:K.placement)&&(Q=N.arrow)!=null&&Q.alignmentOffset)return{};return{x:Z+V.x,y:q+V.y,data:{...V,placement:U}}}}},J1=function(G){if(G===void 0)G={};return{name:"shift",options:G,async fn(J){let{x:K,y:Q,placement:Z,platform:q}=J,{mainAxis:U=!0,crossAxis:N=!1,limiter:V={fn:(L)=>{let{x:M,y:F}=L;return{x:M,y:F}}},...j}=m(G,J),H={x:K,y:Q},W=await q.detectOverflow(J,j),Y=w(d(Z)),X=Y0(Y),T=H[X],B=H[Y];if(U){let L=X==="y"?"top":"left",M=X==="y"?"bottom":"right",F=T+W[L],z=T-W[M];T=j0(F,T,z)}if(N){let L=Y==="y"?"top":"left",M=Y==="y"?"bottom":"right",F=B+W[L],z=B-W[M];B=j0(F,B,z)}let I=V.fn({...J,[X]:T,[Y]:B});return{...I,data:{x:I.x-K,y:I.y-Q,enabled:{[X]:U,[Y]:N}}}}}},K1=function(G){if(G===void 0)G={};return{options:G,fn(J){let{x:K,y:Q,placement:Z,rects:q,middlewareData:U}=J,{offset:N=0,mainAxis:V=!0,crossAxis:j=!0}=m(G,J),H={x:K,y:Q},W=w(Z),Y=Y0(W),X=H[Y],T=H[W],B=m(N,J),I=typeof B==="number"?{mainAxis:B,crossAxis:0}:{mainAxis:0,crossAxis:0,...B};if(V){let F=Y==="y"?"height":"width",z=q.reference[Y]-q.floating[F]+I.mainAxis,k=q.reference[Y]+q.reference[F]-I.mainAxis;if(X<z)X=z;else if(X>k)X=k}if(j){var L,M;let F=Y==="y"?"width":"height",z=e0.has(d(Z)),k=q.reference[W]-q.floating[F]+(z?((L=U.offset)==null?void 0:L[W])||0:0)+(z?0:I.crossAxis),E=q.reference[W]+q.reference[F]+(z?0:((M=U.offset)==null?void 0:M[W])||0)-(z?I.crossAxis:0);if(T<k)T=k;else if(T>E)T=E}return{[Y]:X,[W]:T}}}},Q1=function(G){if(G===void 0)G={};return{name:"size",options:G,async fn(J){var K,Q;let{placement:Z,rects:q,platform:U,elements:N}=J,{apply:V=()=>{},...j}=m(G,J),H=await U.detectOverflow(J,j),W=d(Z),Y=i(Z),X=w(Z)==="y",{width:T,height:B}=q.floating,I,L;if(W==="top"||W==="bottom")I=W,L=Y===(await(U.isRTL==null?void 0:U.isRTL(N.floating))?"start":"end")?"left":"right";else L=W,I=Y==="end"?"top":"bottom";let M=B-H.top-H.bottom,F=T-H.left-H.right,z=p(B-H[I],M),k=p(T-H[L],F),E=!J.middlewareData.shift,$=z,O=k;if((K=J.middlewareData.shift)!=null&&K.enabled.x)O=F;if((Q=J.middlewareData.shift)!=null&&Q.enabled.y)$=M;if(E&&!Y){let y=S(H.left,0),u=S(H.right,0),A=S(H.top,0),P=S(H.bottom,0);if(X)O=T-2*(y!==0||u!==0?y+u:S(H.left,H.right));else $=B-2*(A!==0||P!==0?A+P:S(H.top,H.bottom))}await V({...J,availableWidth:O,availableHeight:$});let v=await U.getDimensions(N.floating);if(T!==v.width||B!==v.height)return{reset:{rects:!0}};return{}}}};function X1(G){let J=f(G),K=parseFloat(J.width)||0,Q=parseFloat(J.height)||0,Z=n(G),q=Z?G.offsetWidth:K,U=Z?G.offsetHeight:Q,N=Z0(K)!==q||Z0(Q)!==U;if(N)K=q,Q=U;return{width:K,height:Q,$:N}}function S0(G){return!c(G)?G.contextElement:G}function e(G){let J=S0(G);if(!n(J))return x(1);let K=J.getBoundingClientRect(),{width:Q,height:Z,$:q}=X1(J),U=(q?Z0(K.width):K.width)/Q,N=(q?Z0(K.height):K.height)/Z;if(!U||!Number.isFinite(U))U=1;if(!N||!Number.isFinite(N))N=1;return{x:U,y:N}}var h1=x(0);function V1(G){let J=o(G);if(!y0()||!J.visualViewport)return h1;return{x:J.visualViewport.offsetLeft,y:J.visualViewport.offsetTop}}function v1(G,J,K){if(J===void 0)J=!1;if(!K||J&&K!==o(G))return!1;return J}function a(G,J,K,Q){if(J===void 0)J=!1;if(K===void 0)K=!1;let Z=G.getBoundingClientRect(),q=S0(G),U=x(1);if(J)if(Q){if(c(Q))U=e(Q)}else U=e(G);let N=v1(q,K,Q)?V1(q):x(0),V=(Z.left+N.x)/U.x,j=(Z.top+N.y)/U.y,H=Z.width/U.x,W=Z.height/U.y;if(q){let Y=o(q),X=Q&&c(Q)?o(Q):Q,T=Y,B=D0(T);while(B&&Q&&X!==T){let I=e(B),L=B.getBoundingClientRect(),M=f(B),F=L.left+(B.clientLeft+parseFloat(M.paddingLeft))*I.x,z=L.top+(B.clientTop+parseFloat(M.paddingTop))*I.y;V*=I.x,j*=I.y,H*=I.x,W*=I.y,V+=F,j+=z,T=o(B),B=D0(T)}}return s({width:H,height:W,x:V,y:j})}function F0(G,J){let K=N0(G).scrollLeft;if(!J)return a(r(G)).left+K;return J.left+K}function W1(G,J){let K=G.getBoundingClientRect(),Q=K.left+J.scrollLeft-F0(G,K),Z=K.top+J.scrollTop;return{x:Q,y:Z}}function u1(G){let{elements:J,rect:K,offsetParent:Q,strategy:Z}=G,q=Z==="fixed",U=r(Q),N=J?z0(J.floating):!1;if(Q===U||N&&q)return K;let V={scrollLeft:0,scrollTop:0},j=x(1),H=x(0),W=n(Q);if(W||!W&&!q){if(L0(Q)!=="body"||I0(U))V=N0(Q);if(W){let X=a(Q);j=e(Q),H.x=X.x+Q.clientLeft,H.y=X.y+Q.clientTop}}let Y=U&&!W&&!q?W1(U,V):x(0);return{width:K.width*j.x,height:K.height*j.y,x:K.x*j.x-V.scrollLeft*j.x+H.x+Y.x,y:K.y*j.y-V.scrollTop*j.y+H.y+Y.y}}function x1(G){return Array.from(G.getClientRects())}function w1(G){let J=r(G),K=N0(G),Q=G.ownerDocument.body,Z=S(J.scrollWidth,J.clientWidth,Q.scrollWidth,Q.clientWidth),q=S(J.scrollHeight,J.clientHeight,Q.scrollHeight,Q.clientHeight),U=-K.scrollLeft+F0(G),N=-K.scrollTop;if(f(Q).direction==="rtl")U+=S(J.clientWidth,Q.clientWidth)-Z;return{width:Z,height:q,x:U,y:N}}var Z1=25;function g1(G,J){let K=o(G),Q=r(G),Z=K.visualViewport,q=Q.clientWidth,U=Q.clientHeight,N=0,V=0;if(Z){q=Z.width,U=Z.height;let H=y0();if(!H||H&&J==="fixed")N=Z.offsetLeft,V=Z.offsetTop}let j=F0(Q);if(j<=0){let H=Q.ownerDocument,W=H.body,Y=getComputedStyle(W),X=H.compatMode==="CSS1Compat"?parseFloat(Y.marginLeft)+parseFloat(Y.marginRight)||0:0,T=Math.abs(Q.clientWidth-W.clientWidth-X);if(T<=Z1)q-=T}else if(j<=Z1)q+=j;return{width:q,height:U,x:N,y:V}}function p1(G,J){let K=a(G,!0,J==="fixed"),Q=K.top+G.clientTop,Z=K.left+G.clientLeft,q=n(G)?e(G):x(1),U=G.clientWidth*q.x,N=G.clientHeight*q.y,V=Z*q.x,j=Q*q.y;return{width:U,height:N,x:V,y:j}}function q1(G,J,K){let Q;if(J==="viewport")Q=g1(G,K);else if(J==="document")Q=w1(r(G));else if(c(J))Q=p1(J,K);else{let Z=V1(G);Q={x:J.x-Z.x,y:J.y-Z.y,width:J.width,height:J.height}}return s(Q)}function j1(G,J){let K=G0(G);if(K===J||!c(K)||U0(K))return!1;return f(K).position==="fixed"||j1(K,J)}function m1(G,J){let K=J.get(G);if(K)return K;let Q=J0(G,[],!1).filter((N)=>c(N)&&L0(N)!=="body"),Z=null,q=f(G).position==="fixed",U=q?G0(G):G;while(c(U)&&!U0(U)){let N=f(U),V=b0(U);if(!V&&N.position==="fixed")Z=null;if(q?!V&&!Z:!V&&N.position==="static"&&!!Z&&(Z.position==="absolute"||Z.position==="fixed")||I0(U)&&!V&&j1(G,U))Q=Q.filter((H)=>H!==U);else Z=N;U=G0(U)}return J.set(G,Q),Q}function d1(G){let{element:J,boundary:K,rootBoundary:Q,strategy:Z}=G,U=[...K==="clippingAncestors"?z0(J)?[]:m1(J,this._c):[].concat(K),Q],N=q1(J,U[0],Z),V=N.top,j=N.right,H=N.bottom,W=N.left;for(let Y=1;Y<U.length;Y++){let X=q1(J,U[Y],Z);V=S(X.top,V),j=p(X.right,j),H=p(X.bottom,H),W=S(X.left,W)}return{width:j-W,height:H-V,x:W,y:V}}function c1(G){let{width:J,height:K}=X1(G);return{width:J,height:K}}function f1(G,J,K){let Q=n(J),Z=r(J),q=K==="fixed",U=a(G,!0,q,J),N={scrollLeft:0,scrollTop:0},V=x(0);function j(){V.x=F0(Z)}if(Q||!Q&&!q){if(L0(J)!=="body"||I0(Z))N=N0(J);if(Q){let X=a(J,!0,q,J);V.x=X.x+J.clientLeft,V.y=X.y+J.clientTop}else if(Z)j()}if(q&&!Q&&Z)j();let H=Z&&!Q&&!q?W1(Z,N):x(0),W=U.left+N.scrollLeft-V.x-H.x,Y=U.top+N.scrollTop-V.y-H.y;return{x:W,y:Y,width:U.width,height:U.height}}function C0(G){return f(G).position==="static"}function U1(G,J){if(!n(G)||f(G).position==="fixed")return null;if(J)return J(G);let K=G.offsetParent;if(r(G)===K)K=K.ownerDocument.body;return K}function Y1(G,J){let K=o(G);if(z0(G))return K;if(!n(G)){let Z=G0(G);while(Z&&!U0(Z)){if(c(Z)&&!C0(Z))return Z;Z=G0(Z)}return K}let Q=U1(G,J);while(Q&&N1(Q)&&C0(Q))Q=U1(Q,J);if(Q&&U0(Q)&&C0(Q)&&!b0(Q))return K;return Q||H1(G)||K}var r1=async function(G){let J=this.getOffsetParent||Y1,K=this.getDimensions,Q=await K(G.floating);return{reference:f1(G.reference,await J(G.floating),G.strategy),floating:{x:0,y:0,width:Q.width,height:Q.height}}};function l1(G){return f(G).direction==="rtl"}var T1={convertOffsetParentRelativeRectToViewportRelativeRect:u1,getDocumentElement:r,getClippingRect:d1,getOffsetParent:Y1,getElementRects:r1,getClientRects:x1,getDimensions:c1,getScale:e,isElement:c,isRTL:l1};function B1(G,J){return G.x===J.x&&G.y===J.y&&G.width===J.width&&G.height===J.height}function o1(G,J){let K=null,Q,Z=r(G);function q(){var N;clearTimeout(Q),(N=K)==null||N.disconnect(),K=null}function U(N,V){if(N===void 0)N=!1;if(V===void 0)V=1;q();let j=G.getBoundingClientRect(),{left:H,top:W,width:Y,height:X}=j;if(!N)J();if(!Y||!X)return;let T=q0(W),B=q0(Z.clientWidth-(H+Y)),I=q0(Z.clientHeight-(W+X)),L=q0(H),F={rootMargin:-T+"px "+-B+"px "+-I+"px "+-L+"px",threshold:S(0,p(1,V))||1},z=!0;function k(E){let $=E[0].intersectionRatio;if($!==V){if(!z)return U();if(!$)Q=setTimeout(()=>{U(!1,0.0000001)},1000);else U(!1,$)}if($===1&&!B1(j,G.getBoundingClientRect()))U();z=!1}try{K=new IntersectionObserver(k,{...F,root:Z.ownerDocument})}catch(E){K=new IntersectionObserver(k,F)}K.observe(G)}return U(!0),q}function n1(G,J,K,Q){if(Q===void 0)Q={};let{ancestorScroll:Z=!0,ancestorResize:q=!0,elementResize:U=typeof ResizeObserver==="function",layoutShift:N=typeof IntersectionObserver==="function",animationFrame:V=!1}=Q,j=S0(G),H=Z||q?[...j?J0(j):[],...J?J0(J):[]]:[];H.forEach((L)=>{Z&&L.addEventListener("scroll",K,{passive:!0}),q&&L.addEventListener("resize",K)});let W=j&&N?o1(j,K):null,Y=-1,X=null;if(U){if(X=new ResizeObserver((L)=>{let[M]=L;if(M&&M.target===j&&X&&J)X.unobserve(J),cancelAnimationFrame(Y),Y=requestAnimationFrame(()=>{var F;(F=X)==null||F.observe(J)});K()}),j&&!V)X.observe(j);if(J)X.observe(J)}let T,B=V?a(G):null;if(V)I();function I(){let L=a(G);if(B&&!B1(B,L))K();B=L,T=requestAnimationFrame(I)}return K(),()=>{var L;if(H.forEach((M)=>{Z&&M.removeEventListener("scroll",K),q&&M.removeEventListener("resize",K)}),W==null||W(),(L=X)==null||L.disconnect(),X=null,V)cancelAnimationFrame(T)}}var L1=G1;var I1=J1,z1=a0,F1=Q1,M1=t0,O0=s0;var k1=K1,P0=(G,J,K)=>{let Q=new Map,Z={platform:T1,...K},q={...Z.platform,_c:Q};return i0(G,J,{...Z,platform:q})};var C=X0(_0(),1),_1=X0(_0(),1),$1=X0(w0(),1),i1=typeof document<"u",s1=function(){},M0=i1?_1.useLayoutEffect:s1;function k0(G,J){if(G===J)return!0;if(typeof G!==typeof J)return!1;if(typeof G==="function"&&G.toString()===J.toString())return!0;let K,Q,Z;if(G&&J&&typeof G==="object"){if(Array.isArray(G)){if(K=G.length,K!==J.length)return!1;for(Q=K;Q--!==0;)if(!k0(G[Q],J[Q]))return!1;return!0}if(Z=Object.keys(G),K=Z.length,K!==Object.keys(J).length)return!1;for(Q=K;Q--!==0;)if(!{}.hasOwnProperty.call(J,Z[Q]))return!1;for(Q=K;Q--!==0;){let q=Z[Q];if(q==="_owner"&&G.$$typeof)continue;if(!k0(G[q],J[q]))return!1}return!0}return G!==G&&J!==J}function C1(G){if(typeof window>"u")return 1;return(G.ownerDocument.defaultView||window).devicePixelRatio||1}function E1(G,J){let K=C1(G);return Math.round(J*K)/K}function R0(G){let J=C.useRef(G);return M0(()=>{J.current=G}),J}function EG(G){if(G===void 0)G={};let{placement:J="bottom",strategy:K="absolute",middleware:Q=[],platform:Z,elements:{reference:q,floating:U}={},transform:N=!0,whileElementsMounted:V,open:j}=G,[H,W]=C.useState({x:0,y:0,strategy:K,placement:J,middlewareData:{},isPositioned:!1}),[Y,X]=C.useState(Q);if(!k0(Y,Q))X(Q);let[T,B]=C.useState(null),[I,L]=C.useState(null),M=C.useCallback((_)=>{if(_!==E.current)E.current=_,B(_)},[]),F=C.useCallback((_)=>{if(_!==$.current)$.current=_,L(_)},[]),z=q||T,k=U||I,E=C.useRef(null),$=C.useRef(null),O=C.useRef(H),v=V!=null,y=R0(V),u=R0(Z),A=R0(j),P=C.useCallback(()=>{if(!E.current||!$.current)return;let _={placement:J,strategy:K,middleware:Y};if(u.current)_.platform=u.current;P0(E.current,$.current,_).then((h)=>{let l={...h,isPositioned:A.current!==!1};if(D.current&&!k0(O.current,l))O.current=l,$1.flushSync(()=>{W(l)})})},[Y,J,K,u,A]);M0(()=>{if(j===!1&&O.current.isPositioned)O.current.isPositioned=!1,W((_)=>({..._,isPositioned:!1}))},[j]);let D=C.useRef(!1);M0(()=>{return D.current=!0,()=>{D.current=!1}},[]),M0(()=>{if(z)E.current=z;if(k)$.current=k;if(z&&k){if(y.current)return y.current(z,k,P);P()}},[z,k,P,y,v]);let g=C.useMemo(()=>({reference:E,floating:$,setReference:M,setFloating:F}),[M,F]),b=C.useMemo(()=>({reference:z,floating:k}),[z,k]),R=C.useMemo(()=>{let _={position:K,left:0,top:0};if(!b.floating)return _;let h=E1(b.floating,H.x),l=E1(b.floating,H.y);if(N)return{..._,transform:"translate("+h+"px, "+l+"px)",...C1(b.floating)>=1.5&&{willChange:"transform"}};return{position:K,left:h,top:l}},[K,N,b.floating,H.x,H.y]);return C.useMemo(()=>({...H,update:P,refs:g,elements:b,floatingStyles:R}),[H,P,g,b,R])}var a1=(G)=>{function J(K){return{}.hasOwnProperty.call(K,"current")}return{name:"arrow",options:G,fn(K){let{element:Q,padding:Z}=typeof G==="function"?G(K):G;if(Q&&J(Q)){if(Q.current!=null)return O0({element:Q.current,padding:Z}).fn(K);return{}}if(Q)return O0({element:Q,padding:Z}).fn(K);return{}}}},_G=(G,J)=>{let K=L1(G);return{name:K.name,fn:K.fn,options:[G,J]}},$G=(G,J)=>{let K=I1(G);return{name:K.name,fn:K.fn,options:[G,J]}},CG=(G,J)=>{return{fn:k1(G).fn,options:[G,J]}},DG=(G,J)=>{let K=z1(G);return{name:K.name,fn:K.fn,options:[G,J]}},bG=(G,J)=>{let K=F1(G);return{name:K.name,fn:K.fn,options:[G,J]}};var yG=(G,J)=>{let K=M1(G);return{name:K.name,fn:K.fn,options:[G,J]}};var SG=(G,J)=>{let K=a1(G);return{name:K.name,fn:K.fn,options:[G,J]}};
2
2
  export{w0 as b,D1 as c,Z0 as d,q0 as e,j0 as f,m as g,d as h,i,T0 as j,w as k,B0 as l,$0 as m,n1 as n,EG as o,_G as p,$G as q,CG as r,DG as s,bG as t,yG as u,SG as v,e1 as w,GG as x,QG as y};
@@ -1 +1 @@
1
- import{Xc as t}from"/chunk-9y2zbzqz.js";if(typeof globalThis.structuredClone==="function")globalThis.structuredClone=globalThis.structuredClone.bind(globalThis);async function e(r){let{mount:a}=await import("/chunk-175bm057.js");a(r)}globalThis.__init=e;
1
+ import{Xc as t}from"/chunk-9y2zbzqz.js";if(typeof globalThis.structuredClone==="function")globalThis.structuredClone=globalThis.structuredClone.bind(globalThis);async function e(r){let{mount:a}=await import("/chunk-tey2nq7c.js");a(r)}globalThis.__init=e;