From 62054cb4f13adae3622a8d7251bb991e358d0360 Mon Sep 17 00:00:00 2001 From: Meng Zhang Date: Wed, 25 Oct 2023 17:48:18 -0700 Subject: [PATCH] feat: add new version notice in tabby-ui (#640) * refactor: extract useHealth hook * feat: add new version notice --- clients/tabby-ui/app/page.tsx | 86 +++++++------------ clients/tabby-ui/components/header.tsx | 34 ++++---- clients/tabby-ui/components/ui/icons.tsx | 23 ++++- clients/tabby-ui/lib/hooks/use-health.tsx | 30 +++++++ .../tabby-ui/lib/hooks/use-latest-release.tsx | 14 +++ clients/tabby-ui/package.json | 4 +- clients/tabby-ui/yarn.lock | 15 +++- crates/tabby/ui/404.html | 2 +- .../_buildManifest.js | 0 .../_ssgManifest.js | 0 ...c629d09f4ba9.js => 28-27d0fe8a88c4cbfb.js} | 14 +-- .../static/chunks/358-dc819165169f937b.js | 9 -- .../static/chunks/362-ae0994d279f3f3bb.js | 1 + .../static/chunks/400-bab9e88e0219f9f5.js | 17 ++++ .../static/chunks/563-52218f82bb9eb225.js | 1 + .../static/chunks/832-06362e8382d18069.js | 1 - .../static/chunks/894-06b613a845aedd59.js | 1 + .../static/chunks/894-25d9916957b869f3.js | 1 - .../chunks/app/layout-3e48d1573c0ecb11.js | 1 + .../chunks/app/layout-ac85f503669d9498.js | 1 - .../chunks/app/page-31b02197d46dcfe5.js | 1 - .../chunks/app/page-e7141b56a55588af.js | 1 + ...1453d0a823.js => page-e2c85638af29803a.js} | 2 +- .../static/chunks/webpack-425a00248a63a7de.js | 1 - .../static/chunks/webpack-8526d963d32b72d9.js | 1 + ...b1d8d470f862f.css => ea73550058928240.css} | 2 +- crates/tabby/ui/index.html | 2 +- crates/tabby/ui/index.txt | 18 ++-- crates/tabby/ui/playground.html | 2 +- crates/tabby/ui/playground.txt | 18 ++-- 30 files changed, 180 insertions(+), 123 deletions(-) create mode 100644 clients/tabby-ui/lib/hooks/use-health.tsx create mode 100644 clients/tabby-ui/lib/hooks/use-latest-release.tsx rename crates/tabby/ui/_next/static/{5Ardx8NLn9MFJ4mWUnSbO => Ij3G3VZs37tE5vfE2Vg4Q}/_buildManifest.js (100%) rename crates/tabby/ui/_next/static/{5Ardx8NLn9MFJ4mWUnSbO => Ij3G3VZs37tE5vfE2Vg4Q}/_ssgManifest.js (100%) rename crates/tabby/ui/_next/static/chunks/{978-6768c629d09f4ba9.js => 28-27d0fe8a88c4cbfb.js} (98%) delete mode 100644 crates/tabby/ui/_next/static/chunks/358-dc819165169f937b.js create mode 100644 crates/tabby/ui/_next/static/chunks/362-ae0994d279f3f3bb.js create mode 100644 crates/tabby/ui/_next/static/chunks/400-bab9e88e0219f9f5.js create mode 100644 crates/tabby/ui/_next/static/chunks/563-52218f82bb9eb225.js delete mode 100644 crates/tabby/ui/_next/static/chunks/832-06362e8382d18069.js create mode 100644 crates/tabby/ui/_next/static/chunks/894-06b613a845aedd59.js delete mode 100644 crates/tabby/ui/_next/static/chunks/894-25d9916957b869f3.js create mode 100644 crates/tabby/ui/_next/static/chunks/app/layout-3e48d1573c0ecb11.js delete mode 100644 crates/tabby/ui/_next/static/chunks/app/layout-ac85f503669d9498.js delete mode 100644 crates/tabby/ui/_next/static/chunks/app/page-31b02197d46dcfe5.js create mode 100644 crates/tabby/ui/_next/static/chunks/app/page-e7141b56a55588af.js rename crates/tabby/ui/_next/static/chunks/app/playground/{page-5dcb481453d0a823.js => page-e2c85638af29803a.js} (98%) delete mode 100644 crates/tabby/ui/_next/static/chunks/webpack-425a00248a63a7de.js create mode 100644 crates/tabby/ui/_next/static/chunks/webpack-8526d963d32b72d9.js rename crates/tabby/ui/_next/static/css/{616b1d8d470f862f.css => ea73550058928240.css} (58%) diff --git a/clients/tabby-ui/app/page.tsx b/clients/tabby-ui/app/page.tsx index 8507f23..8c9449f 100644 --- a/clients/tabby-ui/app/page.tsx +++ b/clients/tabby-ui/app/page.tsx @@ -1,19 +1,15 @@ -"use client"; +"use client" import { buttonVariants } from "@/components/ui/button" import { Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger } from "@/components/ui/dialog"; import { IconSlack } from "@/components/ui/icons" import { Separator } from "@/components/ui/separator"; +import { useHealth } from "@/lib/hooks/use-health"; import { PropsWithChildren, useEffect, useState } from "react"; const COMMUNITY_DIALOG_SHOWN_KEY = "community-dialog-shown"; export default function IndexPage() { - const [healthInfo, setHealthInfo] = useState(); - useEffect(() => { - fetchHealth().then(setHealthInfo); - }, []); - const [open, setOpen] = useState(false); useEffect(() => { if (!localStorage.getItem(COMMUNITY_DIALOG_SHOWN_KEY)) { @@ -22,31 +18,8 @@ export default function IndexPage() { } }, []); - const gettingStartedMarkDown = ` - You can find our documentation [here](https://tabby.tabbyml.com/docs/getting-started). - - 💻 [IDE/Editor Extensions](https://tabby.tabbyml.com/docs/extensions/) - - ⚙️ [Configuration](https://tabby.tabbyml.com/docs/configuration)`; - return
-
- {healthInfo && <> -

Congratulations, your tabby instance is running!

- - - - - - - -

- You can find our documentation here. -

    -
  • 💻 IDE/Editor Extensions
  • -
  • ⚙️ Configuration
  • -
-

- - } -
+ return
+ @@ -63,32 +36,6 @@ export default function IndexPage() {
} -interface HealthInfo { - device: string, - model: string, - version: { - build_date: string, - git_describe: string, - } -} - -async function fetchHealth(): Promise { - if (process.env.NODE_ENV === "production") { - const resp = await fetch("/v1/health"); - return await resp.json() as HealthInfo; - } else { - return { - "device": "metal", - "model": "TabbyML/StarCoder-1B", - "version": { - "build_date": "2023-10-21", - "git_describe": "v0.3.1", - "git_sha": "d5fdcf3a2cbe0f6b45d6e8ef3255e6a18f840132" - } - } as HealthInfo - } -} - interface LinkProps { href: string } @@ -99,4 +46,29 @@ function Link({ href, children }: PropsWithChildren) { function toBadgeString(str: string) { return encodeURIComponent(str.replaceAll("-", "--")); +} + +function MainPanel() { + const { data: healthInfo } = useHealth(); + + if (!healthInfo) return + + return
+

Congratulations, your tabby instance is running!

+ + + + + + + + + + You can find our documentation here. +
    +
  • 💻 IDE/Editor Extensions
  • +
  • ⚙️ Configuration
  • +
+
+
} \ No newline at end of file diff --git a/clients/tabby-ui/components/header.tsx b/clients/tabby-ui/components/header.tsx index 227ad9a..800e8a8 100644 --- a/clients/tabby-ui/components/header.tsx +++ b/clients/tabby-ui/components/header.tsx @@ -4,9 +4,12 @@ import * as React from 'react' import { cn } from '@/lib/utils' import { buttonVariants } from '@/components/ui/button' -import { IconGitHub, IconExternalLink } from '@/components/ui/icons' +import { IconGitHub, IconExternalLink, IconNotice } from '@/components/ui/icons' import dynamic from 'next/dynamic' import Link from 'next/link' +import { useHealth } from '@/lib/hooks/use-health' +import { useLatestRelease } from '@/lib/hooks/use-latest-release' +import { compare } from 'compare-versions' const ThemeToggle = dynamic( () => import('@/components/theme-toggle').then(x => x.ThemeToggle), @@ -14,10 +17,12 @@ const ThemeToggle = dynamic( ) export function Header() { - const [isChatEnabled, setIsChatEnabled] = React.useState(false); - React.useEffect(() => { - fetchIsChatEnabled().then(setIsChatEnabled); - }, []); + const { data } = useHealth(); + const isChatEnabled = !!data?.chat_model; + const version = data?.version?.git_describe; + const { data: latestRelease } = useLatestRelease(); + const newVersionAvailable = version && latestRelease && compare(latestRelease.name, version, '>'); + return (
@@ -30,6 +35,15 @@ export function Header() { }
) -} - -async function fetchIsChatEnabled() { - if (process.env.NODE_ENV === "production") { - const resp = await fetch("/v1/health"); - const json = await resp.json(); - return !!json.chat_model; - } else { - return true; - } } \ No newline at end of file diff --git a/clients/tabby-ui/components/ui/icons.tsx b/clients/tabby-ui/components/ui/icons.tsx index a2485fb..2e10d31 100644 --- a/clients/tabby-ui/components/ui/icons.tsx +++ b/clients/tabby-ui/components/ui/icons.tsx @@ -513,6 +513,26 @@ function IconSlack({ ) } +function IconNotice({ + className, + ...props +}: React.ComponentProps<'svg'>) { + return ( + + ) +} + + export { IconEdit, @@ -542,5 +562,6 @@ export { IconUsers, IconExternalLink, IconChevronUpDown, - IconSlack + IconSlack, + IconNotice } diff --git a/clients/tabby-ui/lib/hooks/use-health.tsx b/clients/tabby-ui/lib/hooks/use-health.tsx new file mode 100644 index 0000000..d8dc34b --- /dev/null +++ b/clients/tabby-ui/lib/hooks/use-health.tsx @@ -0,0 +1,30 @@ +"use client" + +import useSWRImmutable from 'swr/immutable'; +import { SWRResponse } from 'swr' + +export interface HealthInfo { + device: string, + model: string, + chat_model?: string, + version: { + build_date: string, + git_describe: string, + } +} + +export function useHealth(): SWRResponse { + let fetcher = (url: string) => fetch(url).then(x => x.json()); + if (process.env.NODE_ENV !== "production") { + fetcher = async (url: string) => ({ + "device": "metal", + "model": "TabbyML/StarCoder-1B", + "version": { + "build_date": "2023-10-21", + "git_describe": "v0.3.1", + "git_sha": "d5fdcf3a2cbe0f6b45d6e8ef3255e6a18f840132" + } + }); + } + return useSWRImmutable('/v1/health', fetcher); +} \ No newline at end of file diff --git a/clients/tabby-ui/lib/hooks/use-latest-release.tsx b/clients/tabby-ui/lib/hooks/use-latest-release.tsx new file mode 100644 index 0000000..3fbbe18 --- /dev/null +++ b/clients/tabby-ui/lib/hooks/use-latest-release.tsx @@ -0,0 +1,14 @@ + +"use client" + +import useSWRImmutable from 'swr/immutable'; +import { SWRResponse } from 'swr' + +interface ReleaseInfo { + name: string +} + +export function useLatestRelease(): SWRResponse { + const fetcher = (url: string) => fetch(url).then(x => x.json()); + return useSWRImmutable('https://api.github.com/repos/TabbyML/tabby/releases/latest', fetcher) +} diff --git a/clients/tabby-ui/package.json b/clients/tabby-ui/package.json index aaa43ca..c9744c7 100644 --- a/clients/tabby-ui/package.json +++ b/clients/tabby-ui/package.json @@ -29,6 +29,7 @@ "ai": "^2.1.6", "class-variance-authority": "^0.4.0", "clsx": "^1.2.1", + "compare-versions": "^6.1.0", "focus-trap-react": "^10.1.1", "nanoid": "^4.0.2", "next": "^13.4.7", @@ -43,7 +44,8 @@ "react-syntax-highlighter": "^15.5.0", "react-textarea-autosize": "^8.4.1", "remark-gfm": "^3.0.1", - "remark-math": "^5.1.1" + "remark-math": "^5.1.1", + "swr": "^2.2.4" }, "devDependencies": { "@tailwindcss/typography": "^0.5.9", diff --git a/clients/tabby-ui/yarn.lock b/clients/tabby-ui/yarn.lock index f3488ee..8224e43 100644 --- a/clients/tabby-ui/yarn.lock +++ b/clients/tabby-ui/yarn.lock @@ -1215,7 +1215,7 @@ class-variance-authority@^0.4.0: resolved "https://registry.yarnpkg.com/class-variance-authority/-/class-variance-authority-0.4.0.tgz#2ff1b5a836a68ce7a2dac0cc12f6fdc50e47f666" integrity sha512-74enNN8O9ZNieycac/y8FxqgyzZhZbxmCitAtAeUrLPlxjSd5zA7LfpprmxEcOmQBnaGs5hYhiSGnJ0mqrtBLQ== -client-only@0.0.1: +client-only@0.0.1, client-only@^0.0.1: version "0.0.1" resolved "https://registry.yarnpkg.com/client-only/-/client-only-0.0.1.tgz#38bba5d403c41ab150bff64a95c85013cf73bca1" integrity sha512-IV3Ou0jSMzZrd3pZ48nLkT9DA7Ag1pnPzaiQhpW7c3RbcqqzvzzVu+L8gfqMp/8IM2MQtSiqaCxrrcfu8I8rMA== @@ -1264,6 +1264,11 @@ commander@^8.3.0: resolved "https://registry.yarnpkg.com/commander/-/commander-8.3.0.tgz#4837ea1b2da67b9c616a67afbb0fafee567bca66" integrity sha512-OkTL9umf+He2DZkUq8f8J9of7yL6RJKI24dVITBmNfZBmri9zYZQrKkuXiKhyfPSu8tUhnVBB1iKXevvnlR4Ww== +compare-versions@^6.1.0: + version "6.1.0" + resolved "https://registry.yarnpkg.com/compare-versions/-/compare-versions-6.1.0.tgz#3f2131e3ae93577df111dba133e6db876ffe127a" + integrity sha512-LNZQXhqUvqUTotpZ00qLSaify3b4VFD588aRr8MKFw4CMUr98ytzCW5wDH5qx/DEY5kCDXcbcRuCqL0szEf2tg== + concat-map@0.0.1: version "0.0.1" resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b" @@ -4042,6 +4047,14 @@ swr@2.2.0: dependencies: use-sync-external-store "^1.2.0" +swr@^2.2.4: + version "2.2.4" + resolved "https://registry.yarnpkg.com/swr/-/swr-2.2.4.tgz#03ec4c56019902fbdc904d78544bd7a9a6fa3f07" + integrity sha512-njiZ/4RiIhoOlAaLYDqwz5qH/KZXVilRLvomrx83HjzCWTfa+InyfAjv05PSFxnmLzZkNO9ZfvgoqzAaEI4sGQ== + dependencies: + client-only "^0.0.1" + use-sync-external-store "^1.2.0" + swrev@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/swrev/-/swrev-4.0.0.tgz#83da6983c7ef9d71ac984a9b169fc197cbf18ff8" diff --git a/crates/tabby/ui/404.html b/crates/tabby/ui/404.html index 456a234..0f0393b 100644 --- a/crates/tabby/ui/404.html +++ b/crates/tabby/ui/404.html @@ -1 +1 @@ -404: This page could not be found.Tabby - Home

404

This page could not be found.

\ No newline at end of file +404: This page could not be found.Tabby - Home

404

This page could not be found.

\ No newline at end of file diff --git a/crates/tabby/ui/_next/static/5Ardx8NLn9MFJ4mWUnSbO/_buildManifest.js b/crates/tabby/ui/_next/static/Ij3G3VZs37tE5vfE2Vg4Q/_buildManifest.js similarity index 100% rename from crates/tabby/ui/_next/static/5Ardx8NLn9MFJ4mWUnSbO/_buildManifest.js rename to crates/tabby/ui/_next/static/Ij3G3VZs37tE5vfE2Vg4Q/_buildManifest.js diff --git a/crates/tabby/ui/_next/static/5Ardx8NLn9MFJ4mWUnSbO/_ssgManifest.js b/crates/tabby/ui/_next/static/Ij3G3VZs37tE5vfE2Vg4Q/_ssgManifest.js similarity index 100% rename from crates/tabby/ui/_next/static/5Ardx8NLn9MFJ4mWUnSbO/_ssgManifest.js rename to crates/tabby/ui/_next/static/Ij3G3VZs37tE5vfE2Vg4Q/_ssgManifest.js diff --git a/crates/tabby/ui/_next/static/chunks/978-6768c629d09f4ba9.js b/crates/tabby/ui/_next/static/chunks/28-27d0fe8a88c4cbfb.js similarity index 98% rename from crates/tabby/ui/_next/static/chunks/978-6768c629d09f4ba9.js rename to crates/tabby/ui/_next/static/chunks/28-27d0fe8a88c4cbfb.js index 6df6545..6e9b989 100644 --- a/crates/tabby/ui/_next/static/chunks/978-6768c629d09f4ba9.js +++ b/crates/tabby/ui/_next/static/chunks/28-27d0fe8a88c4cbfb.js @@ -1,4 +1,4 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[978],{55379:function(e){"use strict";var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,o=Object.getOwnPropertyDescriptor,a=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},i=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,o=t.call(e,"constructor"),a=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!a)return!1;for(r in e);return void 0===r||t.call(e,r)},l=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(o)return o(e,n).value}return e[n]};e.exports=function e(){var t,n,r,o,c,u,d=arguments[0],p=1,g=arguments.length,f=!1;for("boolean"==typeof d&&(f=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p4&&f.slice(0,4)===i&&l.test(t)&&("-"===t.charAt(4)?m=i+(n=t.slice(5).replace(s,d)).charAt(0).toUpperCase()+n.slice(1):(g=(p=t).slice(4),t=s.test(g)?p:("-"!==(g=g.replace(c,u)).charAt(0)&&(g="-"+g),i+g)),b=o),new b(m,t))};var l=/^data[-\w.:]+$/i,s=/-[a-z]/g,c=/[A-Z]/g;function u(e){return"-"+e.toLowerCase()}function d(e){return e.charAt(1).toUpperCase()}},62378:function(e,t,n){"use strict";var r=n(73680),o=n(82861),a=n(90798),i=n(50085),l=n(71642),s=n(94345);e.exports=r([a,o,i,l,s])},71642:function(e,t,n){"use strict";var r=n(73856),o=n(70034),a=r.booleanish,i=r.number,l=r.spaceSeparated;e.exports=o({transform:function(e,t){return"role"===t?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:a,ariaAutoComplete:null,ariaBusy:a,ariaChecked:a,ariaColCount:i,ariaColIndex:i,ariaColSpan:i,ariaControls:l,ariaCurrent:null,ariaDescribedBy:l,ariaDetails:null,ariaDisabled:a,ariaDropEffect:l,ariaErrorMessage:null,ariaExpanded:a,ariaFlowTo:l,ariaGrabbed:a,ariaHasPopup:null,ariaHidden:a,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:l,ariaLevel:i,ariaLive:null,ariaModal:a,ariaMultiLine:a,ariaMultiSelectable:a,ariaOrientation:null,ariaOwns:l,ariaPlaceholder:null,ariaPosInSet:i,ariaPressed:a,ariaReadOnly:a,ariaRelevant:null,ariaRequired:a,ariaRoleDescription:l,ariaRowCount:i,ariaRowIndex:i,ariaRowSpan:i,ariaSelected:a,ariaSetSize:i,ariaSort:null,ariaValueMax:i,ariaValueMin:i,ariaValueNow:i,ariaValueText:null,role:null}})},94345:function(e,t,n){"use strict";var r=n(73856),o=n(70034),a=n(76729),i=r.boolean,l=r.overloadedBoolean,s=r.booleanish,c=r.number,u=r.spaceSeparated,d=r.commaSeparated;e.exports=o({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:a,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:d,acceptCharset:u,accessKey:u,action:null,allow:null,allowFullScreen:i,allowPaymentRequest:i,allowUserMedia:i,alt:null,as:null,async:i,autoCapitalize:null,autoComplete:u,autoFocus:i,autoPlay:i,capture:i,charSet:null,checked:i,cite:null,className:u,cols:c,colSpan:null,content:null,contentEditable:s,controls:i,controlsList:u,coords:c|d,crossOrigin:null,data:null,dateTime:null,decoding:null,default:i,defer:i,dir:null,dirName:null,disabled:i,download:l,draggable:s,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:i,formTarget:null,headers:u,height:c,hidden:i,high:c,href:null,hrefLang:null,htmlFor:u,httpEquiv:u,id:null,imageSizes:null,imageSrcSet:d,inputMode:null,integrity:null,is:null,isMap:i,itemId:null,itemProp:u,itemRef:u,itemScope:i,itemType:u,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:i,low:c,manifest:null,max:null,maxLength:c,media:null,method:null,min:null,minLength:c,multiple:i,muted:i,name:null,nonce:null,noModule:i,noValidate:i,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextMenu: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,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:i,optimum:c,pattern:null,ping:u,placeholder:null,playsInline:i,poster:null,preload:null,readOnly:i,referrerPolicy:null,rel:u,required:i,reversed:i,rows:c,rowSpan:c,sandbox:u,scope:null,scoped:i,seamless:i,selected:i,shape:null,size:c,sizes:null,slot:null,span:c,spellCheck:s,src:null,srcDoc:null,srcLang:null,srcSet:d,start:c,step:null,style:null,tabIndex:c,target:null,title:null,translate:null,type:null,typeMustMatch:i,useMap:null,value:s,width:c,wrap:null,align:null,aLink:null,archive:u,axis:null,background:null,bgColor:null,border:c,borderColor:null,bottomMargin:c,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:i,declare:i,event:null,face:null,frame:null,frameBorder:null,hSpace:c,leftMargin:c,link:null,longDesc:null,lowSrc:null,marginHeight:c,marginWidth:c,noResize:i,noHref:i,noShade:i,noWrap:i,object:null,profile:null,prompt:null,rev:null,rightMargin:c,rules:null,scheme:null,scrolling:s,standby:null,summary:null,text:null,topMargin:c,valueType:null,version:null,vAlign:null,vLink:null,vSpace:c,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:i,disableRemotePlayback:i,prefix:null,property:null,results:c,security:null,unselectable:null}})},76729:function(e,t,n){"use strict";var r=n(27665);e.exports=function(e,t){return r(e,t.toLowerCase())}},27665:function(e){"use strict";e.exports=function(e,t){return t in e?e[t]:t}},70034:function(e,t,n){"use strict";var r=n(17695),o=n(11382),a=n(80766);e.exports=function(e){var t,n,i=e.space,l=e.mustUseProperty||[],s=e.attributes||{},c=e.properties,u=e.transform,d={},p={};for(t in c)n=new a(t,u(s,t),c[t],i),-1!==l.indexOf(t)&&(n.mustUseProperty=!0),d[t]=n,p[r(t)]=t,p[r(n.attribute)]=t;return new o(d,p,i)}},80766:function(e,t,n){"use strict";var r=n(70076),o=n(73856);e.exports=l,l.prototype=new r,l.prototype.defined=!0;var a=["boolean","booleanish","overloadedBoolean","number","commaSeparated","spaceSeparated","commaOrSpaceSeparated"],i=a.length;function l(e,t,n,l){var s,c,u,d=-1;for(l&&(this.space=l),r.call(this,e,t);++d=97&&t<=122||t>=65&&t<=90}},50688:function(e,t,n){"use strict";var r=n(24025),o=n(32797);e.exports=function(e){return r(e)||o(e)}},69934:function(e){/*! +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[28],{55379:function(e){"use strict";var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,o=Object.getOwnPropertyDescriptor,a=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},i=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,o=t.call(e,"constructor"),a=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!a)return!1;for(r in e);return void 0===r||t.call(e,r)},l=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(o)return o(e,n).value}return e[n]};e.exports=function e(){var t,n,r,o,c,u,d=arguments[0],p=1,g=arguments.length,f=!1;for("boolean"==typeof d&&(f=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p4&&f.slice(0,4)===i&&l.test(t)&&("-"===t.charAt(4)?m=i+(n=t.slice(5).replace(s,d)).charAt(0).toUpperCase()+n.slice(1):(g=(p=t).slice(4),t=s.test(g)?p:("-"!==(g=g.replace(c,u)).charAt(0)&&(g="-"+g),i+g)),b=o),new b(m,t))};var l=/^data[-\w.:]+$/i,s=/-[a-z]/g,c=/[A-Z]/g;function u(e){return"-"+e.toLowerCase()}function d(e){return e.charAt(1).toUpperCase()}},62378:function(e,t,n){"use strict";var r=n(73680),o=n(82861),a=n(90798),i=n(50085),l=n(71642),s=n(94345);e.exports=r([a,o,i,l,s])},71642:function(e,t,n){"use strict";var r=n(73856),o=n(70034),a=r.booleanish,i=r.number,l=r.spaceSeparated;e.exports=o({transform:function(e,t){return"role"===t?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:a,ariaAutoComplete:null,ariaBusy:a,ariaChecked:a,ariaColCount:i,ariaColIndex:i,ariaColSpan:i,ariaControls:l,ariaCurrent:null,ariaDescribedBy:l,ariaDetails:null,ariaDisabled:a,ariaDropEffect:l,ariaErrorMessage:null,ariaExpanded:a,ariaFlowTo:l,ariaGrabbed:a,ariaHasPopup:null,ariaHidden:a,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:l,ariaLevel:i,ariaLive:null,ariaModal:a,ariaMultiLine:a,ariaMultiSelectable:a,ariaOrientation:null,ariaOwns:l,ariaPlaceholder:null,ariaPosInSet:i,ariaPressed:a,ariaReadOnly:a,ariaRelevant:null,ariaRequired:a,ariaRoleDescription:l,ariaRowCount:i,ariaRowIndex:i,ariaRowSpan:i,ariaSelected:a,ariaSetSize:i,ariaSort:null,ariaValueMax:i,ariaValueMin:i,ariaValueNow:i,ariaValueText:null,role:null}})},94345:function(e,t,n){"use strict";var r=n(73856),o=n(70034),a=n(76729),i=r.boolean,l=r.overloadedBoolean,s=r.booleanish,c=r.number,u=r.spaceSeparated,d=r.commaSeparated;e.exports=o({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:a,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:d,acceptCharset:u,accessKey:u,action:null,allow:null,allowFullScreen:i,allowPaymentRequest:i,allowUserMedia:i,alt:null,as:null,async:i,autoCapitalize:null,autoComplete:u,autoFocus:i,autoPlay:i,capture:i,charSet:null,checked:i,cite:null,className:u,cols:c,colSpan:null,content:null,contentEditable:s,controls:i,controlsList:u,coords:c|d,crossOrigin:null,data:null,dateTime:null,decoding:null,default:i,defer:i,dir:null,dirName:null,disabled:i,download:l,draggable:s,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:i,formTarget:null,headers:u,height:c,hidden:i,high:c,href:null,hrefLang:null,htmlFor:u,httpEquiv:u,id:null,imageSizes:null,imageSrcSet:d,inputMode:null,integrity:null,is:null,isMap:i,itemId:null,itemProp:u,itemRef:u,itemScope:i,itemType:u,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:i,low:c,manifest:null,max:null,maxLength:c,media:null,method:null,min:null,minLength:c,multiple:i,muted:i,name:null,nonce:null,noModule:i,noValidate:i,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextMenu: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,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:i,optimum:c,pattern:null,ping:u,placeholder:null,playsInline:i,poster:null,preload:null,readOnly:i,referrerPolicy:null,rel:u,required:i,reversed:i,rows:c,rowSpan:c,sandbox:u,scope:null,scoped:i,seamless:i,selected:i,shape:null,size:c,sizes:null,slot:null,span:c,spellCheck:s,src:null,srcDoc:null,srcLang:null,srcSet:d,start:c,step:null,style:null,tabIndex:c,target:null,title:null,translate:null,type:null,typeMustMatch:i,useMap:null,value:s,width:c,wrap:null,align:null,aLink:null,archive:u,axis:null,background:null,bgColor:null,border:c,borderColor:null,bottomMargin:c,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:i,declare:i,event:null,face:null,frame:null,frameBorder:null,hSpace:c,leftMargin:c,link:null,longDesc:null,lowSrc:null,marginHeight:c,marginWidth:c,noResize:i,noHref:i,noShade:i,noWrap:i,object:null,profile:null,prompt:null,rev:null,rightMargin:c,rules:null,scheme:null,scrolling:s,standby:null,summary:null,text:null,topMargin:c,valueType:null,version:null,vAlign:null,vLink:null,vSpace:c,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:i,disableRemotePlayback:i,prefix:null,property:null,results:c,security:null,unselectable:null}})},76729:function(e,t,n){"use strict";var r=n(27665);e.exports=function(e,t){return r(e,t.toLowerCase())}},27665:function(e){"use strict";e.exports=function(e,t){return t in e?e[t]:t}},70034:function(e,t,n){"use strict";var r=n(17695),o=n(11382),a=n(80766);e.exports=function(e){var t,n,i=e.space,l=e.mustUseProperty||[],s=e.attributes||{},c=e.properties,u=e.transform,d={},p={};for(t in c)n=new a(t,u(s,t),c[t],i),-1!==l.indexOf(t)&&(n.mustUseProperty=!0),d[t]=n,p[r(t)]=t,p[r(n.attribute)]=t;return new o(d,p,i)}},80766:function(e,t,n){"use strict";var r=n(70076),o=n(73856);e.exports=l,l.prototype=new r,l.prototype.defined=!0;var a=["boolean","booleanish","overloadedBoolean","number","commaSeparated","spaceSeparated","commaOrSpaceSeparated"],i=a.length;function l(e,t,n,l){var s,c,u,d=-1;for(l&&(this.space=l),r.call(this,e,t);++d=97&&t<=122||t>=65&&t<=90}},50688:function(e,t,n){"use strict";var r=n(24025),o=n(32797);e.exports=function(e){return r(e)||o(e)}},69934:function(e){/*! * Determine if an object is a Buffer * * @author Feross Aboukhadijeh @@ -18,17 +18,9 @@ * @author Lea Verou * @namespace * @public - */var r=function(e){var t=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,n=0,r={},o={manual:e.Prism&&e.Prism.manual,disableWorkerMessageHandler:e.Prism&&e.Prism.disableWorkerMessageHandler,util:{encode:function e(t){return t instanceof a?new a(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&").replace(/=u.reach));A+=k.value.length,k=k.next){var w,T=k.value;if(n.length>t.length)return;if(!(T instanceof a)){var v=1;if(h){if(!(w=i(E,A,t,b))||w.index>=t.length)break;var x=w.index,R=w.index+w[0].length,C=A;for(C+=k.value.length;x>=C;)C+=(k=k.next).value.length;if(C-=k.value.length,A=C,k.value instanceof a)continue;for(var _=k;_!==n.tail&&(Cu.reach&&(u.reach=L);var D=k.prev;if(N&&(D=s(n,D,N),A+=N.length),function(e,t,n){for(var r=t.next,o=0;o1){var M={cause:d+","+g,reach:L};e(t,n,r,k.prev,A,M),u&&M.reach>u.reach&&(u.reach=M.reach)}}}}}}(e,c,t,c.head,0),function(e){for(var t=[],n=e.head.next;n!==e.tail;)t.push(n.value),n=n.next;return t}(c)},hooks:{all:{},add:function(e,t){var n=o.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=o.hooks.all[e];if(n&&n.length)for(var r,a=0;r=n[a++];)r(t)}},Token:a};function a(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=0|(r||"").length}function i(e,t,n,r){e.lastIndex=t;var o=e.exec(n);if(o&&r&&o[1]){var a=o[1].length;o.index+=a,o[0]=o[0].slice(a)}return o}function l(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function s(e,t,n){var r=t.next,o={value:n,prev:t,next:r};return t.next=o,r.prev=o,e.length++,o}if(e.Prism=o,a.stringify=function e(t,n){if("string"==typeof t)return t;if(Array.isArray(t)){var r="";return t.forEach(function(t){r+=e(t,n)}),r}var a={type:t.type,content:e(t.content,n),tag:"span",classes:["token",t.type],attributes:{},language:n},i=t.alias;i&&(Array.isArray(i)?Array.prototype.push.apply(a.classes,i):a.classes.push(i)),o.hooks.run("wrap",a);var l="";for(var s in a.attributes)l+=" "+s+'="'+(a.attributes[s]||"").replace(/"/g,""")+'"';return"<"+a.tag+' class="'+a.classes.join(" ")+'"'+l+">"+a.content+""},!e.document)return e.addEventListener&&(o.disableWorkerMessageHandler||e.addEventListener("message",function(t){var n=JSON.parse(t.data),r=n.language,a=n.code,i=n.immediateClose;e.postMessage(o.highlight(a,o.languages[r],r)),i&&e.close()},!1)),o;var c=o.util.currentScript();function u(){o.manual||o.highlightAll()}if(c&&(o.filename=c.src,c.hasAttribute("data-manual")&&(o.manual=!0)),!o.manual){var d=document.readyState;"loading"===d||"interactive"===d&&c&&c.defer?document.addEventListener("DOMContentLoaded",u):window.requestAnimationFrame?window.requestAnimationFrame(u):window.setTimeout(u,16)}return o}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{});e.exports&&(e.exports=r),void 0!==n.g&&(n.g.Prism=r)},48699:function(e,t,n){var r=n(47412);function o(e,t){var n,o,a,i=null;if(!e||"string"!=typeof e)return i;for(var l=r(e),s="function"==typeof t,c=0,u=l.length;c=0||(o[n]=e[n]);return o}n.d(t,{Z:function(){return r}})},26823:function(e,t,n){"use strict";n.d(t,{f:function(){return u}});var r=n(13428),o=n(2265),a=n(9381);let i="horizontal",l=["horizontal","vertical"],s=(0,o.forwardRef)((e,t)=>{let{decorative:n,orientation:l=i,...s}=e,u=c(l)?l:i;return(0,o.createElement)(a.WV.div,(0,r.Z)({"data-orientation":u},n?{role:"none"}:{"aria-orientation":"vertical"===u?u:void 0,role:"separator"},s,{ref:t}))});function c(e){return l.includes(e)}s.propTypes={orientation(e,t,n){let r=e[t],o=String(r);return r&&!c(r)?Error(`Invalid prop \`orientation\` of value \`${o}\` supplied to \`${n}\`, expected one of: + */var r=function(e){var t=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,n=0,r={},o={manual:e.Prism&&e.Prism.manual,disableWorkerMessageHandler:e.Prism&&e.Prism.disableWorkerMessageHandler,util:{encode:function e(t){return t instanceof a?new a(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&").replace(/=u.reach));A+=k.value.length,k=k.next){var w,T=k.value;if(n.length>t.length)return;if(!(T instanceof a)){var v=1;if(h){if(!(w=i(E,A,t,b))||w.index>=t.length)break;var x=w.index,R=w.index+w[0].length,C=A;for(C+=k.value.length;x>=C;)C+=(k=k.next).value.length;if(C-=k.value.length,A=C,k.value instanceof a)continue;for(var _=k;_!==n.tail&&(Cu.reach&&(u.reach=L);var D=k.prev;if(N&&(D=s(n,D,N),A+=N.length),function(e,t,n){for(var r=t.next,o=0;o1){var M={cause:d+","+g,reach:L};e(t,n,r,k.prev,A,M),u&&M.reach>u.reach&&(u.reach=M.reach)}}}}}}(e,c,t,c.head,0),function(e){for(var t=[],n=e.head.next;n!==e.tail;)t.push(n.value),n=n.next;return t}(c)},hooks:{all:{},add:function(e,t){var n=o.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=o.hooks.all[e];if(n&&n.length)for(var r,a=0;r=n[a++];)r(t)}},Token:a};function a(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=0|(r||"").length}function i(e,t,n,r){e.lastIndex=t;var o=e.exec(n);if(o&&r&&o[1]){var a=o[1].length;o.index+=a,o[0]=o[0].slice(a)}return o}function l(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function s(e,t,n){var r=t.next,o={value:n,prev:t,next:r};return t.next=o,r.prev=o,e.length++,o}if(e.Prism=o,a.stringify=function e(t,n){if("string"==typeof t)return t;if(Array.isArray(t)){var r="";return t.forEach(function(t){r+=e(t,n)}),r}var a={type:t.type,content:e(t.content,n),tag:"span",classes:["token",t.type],attributes:{},language:n},i=t.alias;i&&(Array.isArray(i)?Array.prototype.push.apply(a.classes,i):a.classes.push(i)),o.hooks.run("wrap",a);var l="";for(var s in a.attributes)l+=" "+s+'="'+(a.attributes[s]||"").replace(/"/g,""")+'"';return"<"+a.tag+' class="'+a.classes.join(" ")+'"'+l+">"+a.content+""},!e.document)return e.addEventListener&&(o.disableWorkerMessageHandler||e.addEventListener("message",function(t){var n=JSON.parse(t.data),r=n.language,a=n.code,i=n.immediateClose;e.postMessage(o.highlight(a,o.languages[r],r)),i&&e.close()},!1)),o;var c=o.util.currentScript();function u(){o.manual||o.highlightAll()}if(c&&(o.filename=c.src,c.hasAttribute("data-manual")&&(o.manual=!0)),!o.manual){var d=document.readyState;"loading"===d||"interactive"===d&&c&&c.defer?document.addEventListener("DOMContentLoaded",u):window.requestAnimationFrame?window.requestAnimationFrame(u):window.setTimeout(u,16)}return o}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{});e.exports&&(e.exports=r),void 0!==n.g&&(n.g.Prism=r)},48699:function(e,t,n){var r=n(47412);function o(e,t){var n,o,a,i=null;if(!e||"string"!=typeof e)return i;for(var l=r(e),s="function"==typeof t,c=0,u=l.length;c=0||(o[n]=e[n]);return o}n.d(t,{Z:function(){return r}})},26823:function(e,t,n){"use strict";n.d(t,{f:function(){return u}});var r=n(13428),o=n(2265),a=n(9381);let i="horizontal",l=["horizontal","vertical"],s=(0,o.forwardRef)((e,t)=>{let{decorative:n,orientation:l=i,...s}=e,u=c(l)?l:i;return(0,o.createElement)(a.WV.div,(0,r.Z)({"data-orientation":u},n?{role:"none"}:{"aria-orientation":"vertical"===u?u:void 0,role:"separator"},s,{ref:t}))});function c(e){return l.includes(e)}s.propTypes={orientation(e,t,n){let r=e[t],o=String(r);return r&&!c(r)?Error(`Invalid prop \`orientation\` of value \`${o}\` supplied to \`${n}\`, expected one of: - horizontal - vertical Defaulting to \`${i}\`.`):null}};let u=s},4913:function(e,t,n){"use strict";function r(e){let t=new TextEncoder,n="",r=e||{};return new TransformStream({async start(){r.onStart&&await r.onStart()},async transform(e,o){o.enqueue(t.encode(e)),r.onToken&&await r.onToken(e),r.onCompletion&&(n+=e)},async flush(){r.onCompletion&&await r.onCompletion(n),!r.onFinal||"experimental_onFunctionCall"in r||await r.onFinal(n)}})}n.d(t,{T_:function(){return r},h6:function(){return i},wn:function(){return l}}),(0,n(22776).k)("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",7);var o={text:0,function_call:1,data:2},a=(e,t)=>`${o[e]}:${JSON.stringify(t)} -`;function i(e){if(!e)return new TransformStream({transform:async(e,t)=>{t.enqueue(e)}});let t=new TextEncoder,n=new TextDecoder;return new TransformStream({transform:async(e,r)=>{let o=n.decode(e);r.enqueue(t.encode(a("text",o)))}})}Symbol("internal_openai_fn_messages");var l=class extends Response{constructor(e,t,n){let r=e;n&&(r=e.pipeThrough(n.stream)),super(r,{...t,status:200,headers:{"Content-Type":"text/plain; charset=utf-8","X-Experimental-Stream-Data":n?"true":"false",...null==t?void 0:t.headers}})}};new TextDecoder("utf-8")},22776:function(e,t,n){"use strict";n.d(t,{k:function(){return r}});let r=(e,t=21)=>(n=t)=>{let r="",o=n;for(;o--;)r+=e[Math.random()*e.length|0];return r}},57139:function(e,t,n){"use strict";n.d(t,{R:function(){return ea}});var r,o=n(2265),a=n(26272);let i=()=>{},l=i(),s=Object,c=e=>e===l,u=e=>"function"==typeof e,d=(e,t)=>({...e,...t}),p=e=>u(e.then),g=new WeakMap,f=0,m=e=>{let t,n;let r=typeof e,o=e&&e.constructor,a=o==Date;if(s(e)!==e||a||o==RegExp)t=a?e.toJSON():"symbol"==r?e.toString():"string"==r?JSON.stringify(e):""+e;else{if(t=g.get(e))return t;if(t=++f+"~",g.set(e,t),o==Array){for(n=0,t="@";nE&&typeof window.requestAnimationFrame!=S,w=(e,t)=>{let n=b.get(e);return[()=>!c(t)&&e.get(t)||h,r=>{if(!c(t)){let o=e.get(t);t in y||(y[t]=o),n[5](t,d(o,r),o||h)}},n[6],()=>!c(t)&&t in y?y[t]:!c(t)&&e.get(t)||h]},T=!0,[v,x]=E&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[i,i],R={initFocus:e=>(k&&document.addEventListener("visibilitychange",e),v("focus",e),()=>{k&&document.removeEventListener("visibilitychange",e),x("focus",e)}),initReconnect:e=>{let t=()=>{T=!0,e()},n=()=>{T=!1};return v("online",t),v("offline",n),()=>{x("online",t),x("offline",n)}}},C=!o.useId,_=!E||"Deno"in window,I=e=>A()?window.requestAnimationFrame(e):setTimeout(e,1),N=_?o.useEffect:o.useLayoutEffect,O="undefined"!=typeof navigator&&navigator.connection,L=!_&&O&&(["slow-2g","2g"].includes(O.effectiveType)||O.saveData),D=e=>{if(u(e))try{e=e()}catch(t){e=""}let t=e;return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?m(e):"",t]},M=0,P=()=>++M;var F={ERROR_REVALIDATE_EVENT:3,FOCUS_EVENT:0,MUTATE_EVENT:2,RECONNECT_EVENT:1};async function B(...e){let[t,n,r,o]=e,a=d({populateCache:!0,throwOnError:!0},"boolean"==typeof o?{revalidate:o}:o||{}),i=a.populateCache,s=a.rollbackOnError,g=a.optimisticData,f=!1!==a.revalidate,m=e=>"function"==typeof s?s(e):!1!==s,h=a.throwOnError;if(u(n)){let e=[],r=t.keys();for(let o of r)!/^\$(inf|sub)\$/.test(o)&&n(t.get(o)._k)&&e.push(o);return Promise.all(e.map(y))}return y(n);async function y(n){let o;let[a]=D(n);if(!a)return;let[s,d]=w(t,a),[y,S,E,k]=b.get(t),A=y[a],T=()=>f&&(delete E[a],delete k[a],A&&A[0])?A[0](2).then(()=>s().data):s().data;if(e.length<3)return T();let v=r,x=P();S[a]=[x,0];let R=!c(g),C=s(),_=C.data,I=C._c,N=c(I)?_:I;if(R&&d({data:g=u(g)?g(N,_):g,_c:N}),u(v))try{v=v(N)}catch(e){o=e}if(v&&p(v)){if(v=await v.catch(e=>{o=e}),x!==S[a][0]){if(o)throw o;return v}o&&R&&m(o)&&(i=!0,d({data:v=N,_c:l}))}i&&!o&&(u(i)&&(v=i(v,N)),d({data:v,error:l,_c:l})),S[a][1]=P();let O=await T();if(d({_c:l}),o){if(h)throw o;return}return i?O:v}}let U=(e,t)=>{for(let n in e)e[n][0]&&e[n][0](t)},z=(e,t)=>{if(!b.has(e)){let n=d(R,t),r={},o=B.bind(l,e),a=i,s={},c=(e,t)=>{let n=s[e]||[];return s[e]=n,n.push(t),()=>n.splice(n.indexOf(t),1)},u=(t,n,r)=>{e.set(t,n);let o=s[t];if(o)for(let e of o)e(n,r)},p=()=>{if(!b.has(e)&&(b.set(e,[r,{},{},{},o,u,c]),!_)){let t=n.initFocus(setTimeout.bind(l,U.bind(l,r,0))),o=n.initReconnect(setTimeout.bind(l,U.bind(l,r,1)));a=()=>{t&&t(),o&&o(),b.delete(e)}}};return p(),[e,o,p,a]}return[e,b.get(e)[4]]},[H,G]=z(new Map),$=d({onLoadingSlow:i,onSuccess:i,onError:i,onErrorRetry:(e,t,n,r,o)=>{let a=n.errorRetryCount,i=o.retryCount,l=~~((Math.random()+.5)*(1<<(i<8?i:8)))*n.errorRetryInterval;(c(a)||!(i>a))&&setTimeout(r,l,o)},onDiscarded:i,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:L?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:L?5e3:3e3,compare:(e,t)=>m(e)==m(t),isPaused:()=>!1,cache:H,mutate:G,fallback:{}},{isOnline:()=>T,isVisible:()=>{let e=k&&document.visibilityState;return c(e)||"hidden"!==e}}),j=(e,t)=>{let n=d(e,t);if(t){let{use:r,fallback:o}=e,{use:a,fallback:i}=t;r&&a&&(n.use=r.concat(a)),o&&i&&(n.fallback=d(o,i))}return n},W=(0,o.createContext)({}),V=E&&window.__SWR_DEVTOOLS_USE__,q=V?window.__SWR_DEVTOOLS_USE__:[],Y=e=>u(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}],K=()=>d($,(0,o.useContext)(W)),Z=q.concat(e=>(t,n,r)=>{let o=n&&((...e)=>{let[r]=D(t),[,,,o]=b.get(H),a=o[r];return c(a)?n(...e):(delete o[r],a)});return e(t,o,r)}),X=(e,t,n)=>{let r=t[e]||(t[e]=[]);return r.push(n),()=>{let e=r.indexOf(n);e>=0&&(r[e]=r[r.length-1],r.pop())}};V&&(window.__SWR_DEVTOOLS_REACT__=o);let Q=o.use||(e=>{if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;if("rejected"===e.status)throw e.reason;throw e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e}),J={dedupe:!0};s.defineProperty(e=>{let{value:t}=e,n=(0,o.useContext)(W),r=u(t),a=(0,o.useMemo)(()=>r?t(n):t,[r,n,t]),i=(0,o.useMemo)(()=>r?a:j(n,a),[r,n,a]),s=a&&a.provider,c=(0,o.useRef)(l);s&&!c.current&&(c.current=z(s(i.cache||H),a));let p=c.current;return p&&(i.cache=p[0],i.mutate=p[1]),N(()=>{if(p)return p[2]&&p[2](),p[3]},[]),(0,o.createElement)(W.Provider,d(e,{value:i}))},"defaultValue",{value:$});let ee=(r=(e,t,n)=>{let{cache:r,compare:i,suspense:s,fallbackData:p,revalidateOnMount:g,revalidateIfStale:f,refreshInterval:m,refreshWhenHidden:h,refreshWhenOffline:y,keepPreviousData:S}=n,[E,k,A,T]=b.get(r),[v,x]=D(e),R=(0,o.useRef)(!1),O=(0,o.useRef)(!1),L=(0,o.useRef)(v),M=(0,o.useRef)(t),U=(0,o.useRef)(n),z=()=>U.current,H=()=>z().isVisible()&&z().isOnline(),[G,$,j,W]=w(r,v),V=(0,o.useRef)({}).current,q=c(p)?n.fallback[v]:p,Y=(e,t)=>{for(let n in V)if("data"===n){if(!i(e[n],t[n])&&(!c(e[n])||!i(ei,t[n])))return!1}else if(t[n]!==e[n])return!1;return!0},K=(0,o.useMemo)(()=>{let e=!!v&&!!t&&(c(g)?!z().isPaused()&&!s&&(!!c(f)||f):g),n=t=>{let n=d(t);return(delete n._k,e)?{isValidating:!0,isLoading:!0,...n}:n},r=G(),o=W(),a=n(r),i=r===o?a:n(o),l=a;return[()=>{let e=n(G()),t=Y(e,l);return t?(l.data=e.data,l.isLoading=e.isLoading,l.isValidating=e.isValidating,l.error=e.error,l):(l=e,e)},()=>i]},[r,v]),Z=(0,a.useSyncExternalStore)((0,o.useCallback)(e=>j(v,(t,n)=>{Y(n,t)||e()}),[r,v]),K[0],K[1]),ee=!R.current,et=E[v]&&E[v].length>0,en=Z.data,er=c(en)?q:en,eo=Z.error,ea=(0,o.useRef)(er),ei=S?c(en)?ea.current:en:er,el=(!et||!!c(eo))&&(ee&&!c(g)?g:!z().isPaused()&&(s?!c(er)&&f:c(er)||f)),es=!!(v&&t&&ee&&el),ec=c(Z.isValidating)?es:Z.isValidating,eu=c(Z.isLoading)?es:Z.isLoading,ed=(0,o.useCallback)(async e=>{let t,r;let o=M.current;if(!v||!o||O.current||z().isPaused())return!1;let a=!0,s=e||{},d=!A[v]||!s.dedupe,p=()=>C?!O.current&&v===L.current&&R.current:v===L.current,g={isValidating:!1,isLoading:!1},f=()=>{$(g)},m=()=>{let e=A[v];e&&e[1]===r&&delete A[v]},b={isValidating:!0};c(G().data)&&(b.isLoading=!0);try{if(d&&($(b),n.loadingTimeout&&c(G().data)&&setTimeout(()=>{a&&p()&&z().onLoadingSlow(v,n)},n.loadingTimeout),A[v]=[o(x),P()]),[t,r]=A[v],t=await t,d&&setTimeout(m,n.dedupingInterval),!A[v]||A[v][1]!==r)return d&&p()&&z().onDiscarded(v),!1;g.error=l;let e=k[v];if(!c(e)&&(r<=e[0]||r<=e[1]||0===e[1]))return f(),d&&p()&&z().onDiscarded(v),!1;let s=G().data;g.data=i(s,t)?s:t,d&&p()&&z().onSuccess(t,v,n)}catch(n){m();let e=z(),{shouldRetryOnError:t}=e;!e.isPaused()&&(g.error=n,d&&p()&&(e.onError(n,v,e),(!0===t||u(t)&&t(n))&&H()&&e.onErrorRetry(n,v,e,e=>{let t=E[v];t&&t[0]&&t[0](F.ERROR_REVALIDATE_EVENT,e)},{retryCount:(s.retryCount||0)+1,dedupe:!0})))}return a=!1,f(),!0},[v,r]),ep=(0,o.useCallback)((...e)=>B(r,L.current,...e),[]);if(N(()=>{M.current=t,U.current=n,c(en)||(ea.current=en)}),N(()=>{if(!v)return;let e=ed.bind(l,J),t=0,n=X(v,E,(n,r={})=>{if(n==F.FOCUS_EVENT){let n=Date.now();z().revalidateOnFocus&&n>t&&H()&&(t=n+z().focusThrottleInterval,e())}else if(n==F.RECONNECT_EVENT)z().revalidateOnReconnect&&H()&&e();else if(n==F.MUTATE_EVENT)return ed();else if(n==F.ERROR_REVALIDATE_EVENT)return ed(r)});return O.current=!1,L.current=v,R.current=!0,$({_k:x}),el&&(c(er)||_?e():I(e)),()=>{O.current=!0,n()}},[v]),N(()=>{let e;function t(){let t=u(m)?m(G().data):m;t&&-1!==e&&(e=setTimeout(n,t))}function n(){!G().error&&(h||z().isVisible())&&(y||z().isOnline())?ed(J).then(t):t()}return t(),()=>{e&&(clearTimeout(e),e=-1)}},[m,h,y,v]),(0,o.useDebugValue)(ei),s&&c(er)&&v){if(!C&&_)throw Error("Fallback data is required when using suspense in SSR.");M.current=t,U.current=n,O.current=!1;let e=T[v];if(!c(e)){let t=ep(e);Q(t)}if(c(eo)){let e=ed(J);c(ei)||(e.status="fulfilled",e.value=!0),Q(e)}else throw eo}return{mutate:ep,get data(){return V.data=!0,ei},get error(){return V.error=!0,eo},get isValidating(){return V.isValidating=!0,ec},get isLoading(){return V.isLoading=!0,eu}}},function(...e){let t=K(),[n,o,a]=Y(e),i=j(t,a),l=r,{use:s}=i,c=(s||[]).concat(Z);for(let e=c.length;e--;)l=c[e](l);return l(n,o||i.fetcher||null,i)});var et=(0,n(22776).k)("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",7),en={text:0,function_call:1,data:2},er=e=>{let t=e.indexOf(":"),n=e.slice(0,t),r=Object.keys(en).find(e=>en[e]===Number(n)),o=e.slice(t+1),a=o;if(!o)return{type:r,value:""};try{a=JSON.parse(o)}catch(e){console.error("Failed to parse JSON value:",o)}return{type:r,value:a}},eo=async(e,t,n,r,o,a,i,l,s,c,u)=>{var d,p;let g=i.current;n(t.messages,!1);let f=await fetch(e,{method:"POST",body:JSON.stringify({messages:u?t.messages:t.messages.map(({role:e,content:t,name:n,function_call:r})=>({role:e,content:t,...void 0!==n&&{name:n},...void 0!==r&&{function_call:r}})),...a.current.body,...null==(d=t.options)?void 0:d.body,...void 0!==t.functions&&{functions:t.functions},...void 0!==t.function_call&&{function_call:t.function_call}}),credentials:a.current.credentials,headers:{...a.current.headers,...null==(p=t.options)?void 0:p.headers},...null!==l.current&&{signal:l.current.signal}}).catch(e=>{throw n(g,!1),e});if(c)try{await c(f)}catch(e){throw e}if(!f.ok)throw n(g,!1),Error(await f.text()||"Failed to fetch the chat response.");if(!f.body)throw Error("The response body is empty.");let m="true"===f.headers.get("X-Experimental-Stream-Data"),b=new Date,h=f.body.getReader(),y=function(e){let t=new TextDecoder;return e?function(e){let n=t.decode(e,{stream:!0}).split("\n");return n.map(er).filter(Boolean)}:function(e){return e?t.decode(e,{stream:!0}):""}}(m),S=[],E=[],k={},A=[],w=0;if(m){for(;;){let{value:e}=await h.read();if(e&&(A.push(e),w+=e.length,10!==e[e.length-1]))continue;if(0===A.length)break;let a=new Uint8Array(w),i=0;for(let e of A)a.set(e,i),i+=e.length;A.length=0,w=0;let s=y(a);if("string"==typeof s)throw Error("Invalid response format. Complex mode was set but the response is a string. This should never happen.");for(let{type:e,value:a}of s){"text"===e&&(k.text?k.text={...k.text,content:(k.text.content||"")+a}:k.text={id:et(),role:"assistant",content:a,createdAt:b});let i=null;if("function_call"===e){k.function_call=a;let e=k.function_call;if(e&&"string"==typeof e){let t=JSON.parse(e).function_call;i={id:et(),role:"assistant",content:"",function_call:t,name:t.name,createdAt:b},k.function_call=i}}if("data"===e){let e=JSON.parse(a);k.data?k.data=[...k.data,...e]:k.data=e}let s=k.data,c=k.text,u=[i,c].filter(Boolean);if(n([...t.messages,...u],!1),r([...o||[],...s||[]],!1),null===l.current){h.cancel();break}}}for(let[e,t]of Object.entries(k))s&&"text"===e&&s(t),"data"===e?E.push(t):S.push(t);return{messages:S,data:E}}{let e="",r=et(),o={id:r,createdAt:b,content:"",role:"assistant"};for(;;){let{done:r,value:a}=await h.read();if(r)break;if((e+=y(a)).startsWith('{"function_call":')?o.function_call=e:o.content=e,n([...t.messages,{...o}],!1),null===l.current){h.cancel();break}}if(e.startsWith('{"function_call":')){let r=JSON.parse(e).function_call;o.function_call=r,n([...t.messages,{...o}])}return s&&s(o),o}};function ea({api:e="/api/chat",id:t,initialMessages:n=[],initialInput:r="",sendExtraMessageFields:a,experimental_onFunctionCall:i,onResponse:l,onFinish:s,onError:c,credentials:u,headers:d,body:p}={}){let g=(0,o.useId)(),f=t||g,{data:m,mutate:b}=ee([e,f],null,{fallbackData:n}),{data:h=!1,mutate:y}=ee([f,"loading"],null),{data:S,mutate:E}=ee([f,"streamData"],null),k=(0,o.useRef)(m||[]);(0,o.useEffect)(()=>{k.current=m||[]},[m]);let A=(0,o.useRef)(null),w=(0,o.useRef)({credentials:u,headers:d,body:p});(0,o.useEffect)(()=>{w.current={credentials:u,headers:d,body:p}},[u,d,p]);let[T,v]=(0,o.useState)(),x=(0,o.useCallback)(async t=>{try{y(!0),v(void 0);let n=new AbortController;for(A.current=n;;){let n=await eo(e,t,b,E,S,w,k,A,s,l,a);if("messages"in n){let e=!1;for(let r of n.messages)if(void 0!==r.function_call&&"string"!=typeof r.function_call&&(e=!0,i)){let e=r.function_call,n=await i(k.current,e);if(void 0===n)break;t=n}if(!e)break}else{if(void 0===n.function_call||"string"==typeof n.function_call)break;if(i){let e=n.function_call,r=await i(k.current,e);if(void 0===r)break;t=r}}}A.current=null}catch(e){if("AbortError"===e.name)return A.current=null,null;c&&e instanceof Error&&c(e),v(e)}finally{y(!1)}},[b,y,e,w,l,s,c,v,E,S,a,i,k.current,A.current]),R=(0,o.useCallback)(async(e,{options:t,functions:n,function_call:r}={})=>{e.id||(e.id=et());let o={messages:k.current.concat(e),options:t,...void 0!==n&&{functions:n},...void 0!==r&&{function_call:r}};return x(o)},[x]),C=(0,o.useCallback)(async({options:e,functions:t,function_call:n}={})=>{if(0===k.current.length)return null;let r=k.current[k.current.length-1];if("assistant"===r.role){let r={messages:k.current.slice(0,-1),options:e,...void 0!==t&&{functions:t},...void 0!==n&&{function_call:n}};return x(r)}let o={messages:k.current,options:e,...void 0!==t&&{functions:t},...void 0!==n&&{function_call:n}};return x(o)},[x]),_=(0,o.useCallback)(()=>{A.current&&(A.current.abort(),A.current=null)},[]),I=(0,o.useCallback)(e=>{b(e,!1),k.current=e},[b]),[N,O]=(0,o.useState)(r),L=(0,o.useCallback)((e,{options:t,functions:n,function_call:r}={},o)=>{o&&(w.current={...w.current,...o}),e.preventDefault(),N&&(R({content:N,role:"user",createdAt:new Date},{options:t,functions:n,function_call:r}),O(""))},[N,R]);return{messages:m||[],error:T,append:R,reload:C,stop:_,setMessages:I,input:N,setInput:O,handleInputChange:e=>{O(e.target.value)},handleSubmit:L,isLoading:h,data:S}}},63034:function(e,t,n){"use strict";n.d(t,{T:function(){return o}});let r=document.createElement("i");function o(e){let t="&"+e+";";r.innerHTML=t;let n=r.textContent;return(59!==n.charCodeAt(n.length-1)||"semi"===e)&&n!==t&&n}},57785:function(e,t,n){"use strict";function r(e){if(!e._compiled){let t=(e.atBreak?"[\\r\\n][\\t ]*":"")+(e.before?"(?:"+e.before+")":"");e._compiled=RegExp((t?"("+t+")":"")+(/[|\\{}()[\]^$+*?.-]/.test(e.character)?"\\":"")+e.character+(e.after?"(?:"+e.after+")":""),"g")}return e._compiled}n.d(t,{T:function(){return r}})},62848:function(e,t,n){"use strict";n.d(t,{T:function(){return a}});var r=n(57785);function o(e,t,n){if("string"==typeof t&&(t=[t]),!t||0===t.length)return n;let r=-1;for(;++r=f)&&(!(e+1a?0:a+t:t>a?a:t,n=n>0?n:0,r.length<1e4)(o=Array.from(r)).unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);i0?(r(e,e.length,0,t),e):t}n.d(t,{V:function(){return o},d:function(){return r}})},75786:function(e,t,n){"use strict";n.d(t,{r:function(){return o}});var r=n(82659);function o(e){return null===e||(0,r.z3)(e)||(0,r.B8)(e)?1:(0,r.Xh)(e)?2:void 0}},6361:function(e,t,n){"use strict";n.d(t,{W:function(){return a}});var r=n(58180);let o={}.hasOwnProperty;function a(e){let t={},n=-1;for(;++n13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(65535&n)==65535||(65535&n)==65534||n>1114111?"�":String.fromCharCode(n)}n.d(t,{o:function(){return r}})},11559:function(e,t,n){"use strict";n.d(t,{v:function(){return i}});var r=n(63034),o=n(43012);let a=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function i(e){return e.replace(a,l)}function l(e,t,n){if(t)return t;let a=n.charCodeAt(0);if(35===a){let e=n.charCodeAt(1),t=120===e||88===e;return(0,o.o)(n.slice(t?2:1),t?16:10)}return(0,r.T)(n)||e}},93575:function(e,t,n){"use strict";function r(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}n.d(t,{d:function(){return r}})},80594:function(e,t,n){"use strict";function r(e,t,n){let r=[],o=-1;for(;++o{let r;if(!d&&b)return r=function(e,t,n={},r=s){if(void 0===window.IntersectionObserver&&void 0!==r){let o=e.getBoundingClientRect();return t(r,{isIntersecting:r,target:e,intersectionRatio:"number"==typeof n.threshold?n.threshold:0,time:0,boundingClientRect:o,intersectionRect:o,rootBounds:o}),()=>{}}let{id:o,observer:c,elements:u}=function(e){let t=Object.keys(e).sort().filter(t=>void 0!==e[t]).map(t=>{var n;return`${t}_${"root"===t?(n=e.root)?(i.has(n)||(l+=1,i.set(n,l.toString())),i.get(n)):"0":e[t]}`}).toString(),n=a.get(t);if(!n){let r;let o=new Map,i=new IntersectionObserver(t=>{t.forEach(t=>{var n;let a=t.isIntersecting&&r.some(e=>t.intersectionRatio>=e);e.trackVisibility&&void 0===t.isVisible&&(t.isVisible=a),null==(n=o.get(t.target))||n.forEach(e=>{e(a,t)})})},e);r=i.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),n={id:t,observer:i,elements:o},a.set(t,n)}return n}(n),d=u.get(e)||[];return u.has(e)||u.set(e,d),d.push(t),c.observe(e),function(){d.splice(d.indexOf(t),1),0===d.length&&(u.delete(e),c.unobserve(e)),0===u.size&&(c.disconnect(),a.delete(o))}}(b,(e,t)=>{E({inView:e,entry:t}),y.current&&y.current(e,t),t.isIntersecting&&u&&r&&(r(),r=void 0)},{root:c,rootMargin:o,threshold:e,trackVisibility:n,delay:t},g),()=>{r&&r()}},[Array.isArray(e)?e.toString():e,b,c,o,u,d,n,g,t]);let k=null==(m=S.entry)?void 0:m.target,A=r.useRef();b||!k||u||d||A.current===k||(A.current=k,E({inView:!!p,entry:void 0}));let w=[h,S.inView,S.entry];return w.ref=w[0],w.inView=w[1],w.entry=w[2],w}r.Component},19349:function(e,t,n){"use strict";n.d(t,{D:function(){return tJ}});var r={};n.r(r),n.d(r,{attentionMarkers:function(){return ez},contentInitial:function(){return eD},disable:function(){return eH},document:function(){return eL},flow:function(){return eP},flowInitial:function(){return eM},insideSpan:function(){return eU},string:function(){return eF},text:function(){return eB}});var o={};n.r(o),n.d(o,{boolean:function(){return tf},booleanish:function(){return tm},commaOrSpaceSeparated:function(){return tE},commaSeparated:function(){return tS},number:function(){return th},overloadedBoolean:function(){return tb},spaceSeparated:function(){return ty}});var a=n(2265),i=n(69934);function l(e){return e&&"object"==typeof e?"position"in e||"type"in e?c(e.position):"start"in e||"end"in e?c(e):"line"in e||"column"in e?s(e):"":""}function s(e){return u(e&&e.line)+":"+u(e&&e.column)}function c(e){return s(e&&e.start)+"-"+s(e&&e.end)}function u(e){return e&&"number"==typeof e?e:1}class d extends Error{constructor(e,t,n){let r=[null,null],o={start:{line:null,column:null},end:{line:null,column:null}};if(super(),"string"==typeof t&&(n=t,t=void 0),"string"==typeof n){let e=n.indexOf(":");-1===e?r[1]=n:(r[0]=n.slice(0,e),r[1]=n.slice(e+1))}t&&("type"in t||"position"in t?t.position&&(o=t.position):"start"in t||"end"in t?o=t:("line"in t||"column"in t)&&(o.start=t)),this.name=l(t)||"1:1",this.message="object"==typeof e?e.message:e,this.stack="","object"==typeof e&&e.stack&&(this.stack=e.stack),this.reason=this.message,this.fatal,this.line=o.start.line,this.column=o.start.column,this.position=o,this.source=r[0],this.ruleId=r[1],this.file,this.actual,this.expected,this.url,this.note}}d.prototype.file="",d.prototype.name="",d.prototype.reason="",d.prototype.message="",d.prototype.stack="",d.prototype.fatal=null,d.prototype.column=null,d.prototype.line=null,d.prototype.source=null,d.prototype.ruleId=null,d.prototype.position=null;let p={basename:function(e,t){let n;if(void 0!==t&&"string"!=typeof t)throw TypeError('"ext" argument must be a string');g(e);let r=0,o=-1,a=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;a--;)if(47===e.charCodeAt(a)){if(n){r=a+1;break}}else o<0&&(n=!0,o=a+1);return o<0?"":e.slice(r,o)}if(t===e)return"";let i=-1,l=t.length-1;for(;a--;)if(47===e.charCodeAt(a)){if(n){r=a+1;break}}else i<0&&(n=!0,i=a+1),l>-1&&(e.charCodeAt(a)===t.charCodeAt(l--)?l<0&&(o=a):(l=-1,o=i));return r===o?o=i:o<0&&(o=e.length),e.slice(r,o)},dirname:function(e){let t;if(g(e),0===e.length)return".";let n=-1,r=e.length;for(;--r;)if(47===e.charCodeAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.charCodeAt(0)?"/":".":1===n&&47===e.charCodeAt(0)?"//":e.slice(0,n)},extname:function(e){let t;g(e);let n=e.length,r=-1,o=0,a=-1,i=0;for(;n--;){let l=e.charCodeAt(n);if(47===l){if(t){o=n+1;break}continue}r<0&&(t=!0,r=n+1),46===l?a<0?a=n:1!==i&&(i=1):a>-1&&(i=-1)}return a<0||r<0||0===i||1===i&&a===r-1&&a===o+1?"":e.slice(a,r)},join:function(...e){let t,n=-1;for(;++n2){if((r=o.lastIndexOf("/"))!==o.length-1){r<0?(o="",a=0):a=(o=o.slice(0,r)).length-1-o.lastIndexOf("/"),i=s,l=0;continue}}else if(o.length>0){o="",a=0,i=s,l=0;continue}}t&&(o=o.length>0?o+"/..":"..",a=2)}else o.length>0?o+="/"+e.slice(i+1,s):o=e.slice(i+1,s),a=s-i-1;i=s,l=0}else 46===n&&l>-1?l++:l=-1}return o}(e,!t);return 0!==n.length||t||(n="."),n.length>0&&47===e.charCodeAt(e.length-1)&&(n+="/"),t?"/"+n:n}(t)},sep:"/"};function g(e){if("string"!=typeof e)throw TypeError("Path must be a string. Received "+JSON.stringify(e))}function f(e){return null!==e&&"object"==typeof e&&e.href&&e.origin}let m=["history","path","basename","stem","extname","dirname"];class b{constructor(e){let t,n;t=e?"string"==typeof e||i(e)?{value:e}:f(e)?{path:e}:e:{},this.data={},this.messages=[],this.history=[],this.cwd="/",this.value,this.stored,this.result,this.map;let r=-1;for(;++rt.length;i&&t.push(r);try{a=e.apply(this,t)}catch(e){if(i&&n)throw e;return r(e)}i||(a instanceof Promise?a.then(o,r):a instanceof Error?r(a):o(a))};function r(e,...o){n||(n=!0,t(e,...o))}function o(e){r(null,e)}})(l,o)(...i):r(null,...i)}(null,...t)},use:function(n){if("function"!=typeof n)throw TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}(),r=[],o={},a=-1;return l.data=function(e,n){return"string"==typeof e?2==arguments.length?(C("data",t),o[e]=n,l):T.call(o,e)&&o[e]||null:e?(C("data",t),o=e,l):o},l.Parser=void 0,l.Compiler=void 0,l.freeze=function(){if(t)return l;for(;++a{if(!e&&t&&n){let r=l.stringify(t,n);null==r||("string"==typeof r||i(r)?n.value=r:n.result=r),a(e,n)}else a(e)})}n(null,t)},l.processSync=function(e){let t;l.freeze(),x("processSync",l.Parser),R("processSync",l.Compiler);let n=N(e);return l.process(n,function(e){t=!0,E(e)}),I("processSync","process",t),n},l;function l(){let t=e(),n=-1;for(;++nr))return;let l=o.events.length,s=l;for(;s--;)if("exit"===o.events[s][0]&&"chunkFlow"===o.events[s][1].type){if(e){n=o.events[s][1].end;break}e=!0}for(b(i),a=l;at;){let t=a[n];o.containerState=t[1],t[0].exit.call(o,e)}a.length=t}function h(){t.write([null]),n=void 0,t=void 0,o.containerState._closeFlow=void 0}}},H={tokenize:function(e,t,n){return(0,P.f)(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};var G=n(56833);function $(e){let t,n,r,o,a,i,l;let s={},c=-1;for(;++c=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}},partial:!0},V={tokenize:function(e){let t=this,n=e.attempt(G.w,function(r){if(null===r){e.consume(r);return}return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n},e.attempt(this.parser.constructs.flowInitial,r,(0,P.f)(e,e.attempt(this.parser.constructs.flow,r,e.attempt(j,r)),"linePrefix")));return n;function r(r){if(null===r){e.consume(r);return}return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n}}},q={resolveAll:X()},Y=Z("string"),K=Z("text");function Z(e){return{tokenize:function(t){let n=this,r=this.parser.constructs[e],o=t.attempt(r,a,i);return a;function a(e){return s(e)?o(e):i(e)}function i(e){if(null===e){t.consume(e);return}return t.enter("data"),t.consume(e),l}function l(e){return s(e)?(t.exit("data"),o(e)):(t.consume(e),l)}function s(e){if(null===e)return!0;let t=r[e],o=-1;if(t)for(;++o=3&&(null===i||(0,F.Ch)(i))?(e.exit("thematicBreak"),t(i)):n(i)}(a)}}},et={name:"list",tokenize:function(e,t,n){let r=this,o=r.events[r.events.length-1],a=o&&"linePrefix"===o[1].type?o[2].sliceSerialize(o[1],!0).length:0,i=0;return function(t){let o=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===o?!r.containerState.marker||t===r.containerState.marker:(0,F.pY)(t)){if(r.containerState.type||(r.containerState.type=o,e.enter(o,{_container:!0})),"listUnordered"===o)return e.enter("listItemPrefix"),42===t||45===t?e.check(ee,n,l)(t):l(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),function t(o){return(0,F.pY)(o)&&++i<10?(e.consume(o),t):(!r.interrupt||i<2)&&(r.containerState.marker?o===r.containerState.marker:41===o||46===o)?(e.exit("listItemValue"),l(o)):n(o)}(t)}return n(t)};function l(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(G.w,r.interrupt?n:s,e.attempt(en,u,c))}function s(e){return r.containerState.initialBlankLine=!0,a++,u(e)}function c(t){return(0,F.xz)(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),u):n(t)}function u(n){return r.containerState.size=a+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}},continuation:{tokenize:function(e,t,n){let r=this;return r.containerState._closeFlow=void 0,e.check(G.w,function(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,(0,P.f)(e,t,"listItemIndent",r.containerState.size+1)(n)},function(n){return r.containerState.furtherBlankLines||!(0,F.xz)(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(er,t,o)(n))});function o(o){return r.containerState._closeFlow=!0,r.interrupt=void 0,(0,P.f)(e,e.attempt(et,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}},exit:function(e){e.exit(this.containerState.type)}},en={tokenize:function(e,t,n){let r=this;return(0,P.f)(e,function(e){let o=r.events[r.events.length-1];return!(0,F.xz)(e)&&o&&"listItemPrefixWhitespace"===o[1].type?t(e):n(e)},"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)},partial:!0},er={tokenize:function(e,t,n){let r=this;return(0,P.f)(e,function(e){let o=r.events[r.events.length-1];return o&&"listItemIndent"===o[1].type&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(e):n(e)},"listItemIndent",r.containerState.size+1)},partial:!0},eo={name:"blockQuote",tokenize:function(e,t,n){let r=this;return function(t){if(62===t){let n=r.containerState;return n.open||(e.enter("blockQuote",{_container:!0}),n.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),o}return n(t)};function o(n){return(0,F.xz)(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}},continuation:{tokenize:function(e,t,n){let r=this;return function(t){return(0,F.xz)(t)?(0,P.f)(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):o(t)};function o(r){return e.attempt(eo,t,n)(r)}}},exit:function(e){e.exit("blockQuote")}};function ea(e,t,n,r,o,a,i,l,s){let c=s||Number.POSITIVE_INFINITY,u=0;return function(t){return 60===t?(e.enter(r),e.enter(o),e.enter(a),e.consume(t),e.exit(a),d):null===t||32===t||41===t||(0,F.Av)(t)?n(t):(e.enter(r),e.enter(i),e.enter(l),e.enter("chunkString",{contentType:"string"}),f(t))};function d(n){return 62===n?(e.enter(a),e.consume(n),e.exit(a),e.exit(o),e.exit(r),t):(e.enter(l),e.enter("chunkString",{contentType:"string"}),p(n))}function p(t){return 62===t?(e.exit("chunkString"),e.exit(l),d(t)):null===t||60===t||(0,F.Ch)(t)?n(t):(e.consume(t),92===t?g:p)}function g(t){return 60===t||62===t||92===t?(e.consume(t),p):p(t)}function f(o){return!u&&(null===o||41===o||(0,F.z3)(o))?(e.exit("chunkString"),e.exit(l),e.exit(i),e.exit(r),t(o)):u999||null===d||91===d||93===d&&!i||94===d&&!s&&"_hiddenFootnoteSupport"in l.parser.constructs?n(d):93===d?(e.exit(a),e.enter(o),e.consume(d),e.exit(o),e.exit(r),t):(0,F.Ch)(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),u(d))}function u(t){return null===t||91===t||93===t||(0,F.Ch)(t)||s++>999?(e.exit("chunkString"),c(t)):(e.consume(t),i||(i=!(0,F.xz)(t)),92===t?d:u)}function d(t){return 91===t||92===t||93===t?(e.consume(t),s++,u):u(t)}}function el(e,t,n,r,o,a){let i;return function(t){return 34===t||39===t||40===t?(e.enter(r),e.enter(o),e.consume(t),e.exit(o),i=40===t?41:t,l):n(t)};function l(n){return n===i?(e.enter(o),e.consume(n),e.exit(o),e.exit(r),t):(e.enter(a),s(n))}function s(t){return t===i?(e.exit(a),l(i)):null===t?n(t):(0,F.Ch)(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),(0,P.f)(e,s,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(t))}function c(t){return t===i||null===t||(0,F.Ch)(t)?(e.exit("chunkString"),s(t)):(e.consume(t),92===t?u:c)}function u(t){return t===i||92===t?(e.consume(t),c):c(t)}}function es(e,t){let n;return function r(o){return(0,F.Ch)(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),n=!0,r):(0,F.xz)(o)?(0,P.f)(e,r,n?"linePrefix":"lineSuffix")(o):t(o)}}var ec=n(93575);let eu={tokenize:function(e,t,n){return function(t){return(0,F.z3)(t)?es(e,r)(t):n(t)};function r(t){return el(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function o(t){return(0,F.xz)(t)?(0,P.f)(e,a,"whitespace")(t):a(t)}function a(e){return null===e||(0,F.Ch)(e)?t(e):n(e)}},partial:!0},ed={name:"codeIndented",tokenize:function(e,t,n){let r=this;return function(t){return e.enter("codeIndented"),(0,P.f)(e,o,"linePrefix",5)(t)};function o(t){let o=r.events[r.events.length-1];return o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?function t(n){return null===n?a(n):(0,F.Ch)(n)?e.attempt(ep,t,a)(n):(e.enter("codeFlowValue"),function n(r){return null===r||(0,F.Ch)(r)?(e.exit("codeFlowValue"),t(r)):(e.consume(r),n)}(n))}(t):n(t)}function a(n){return e.exit("codeIndented"),t(n)}}},ep={tokenize:function(e,t,n){let r=this;return o;function o(t){return r.parser.lazy[r.now().line]?n(t):(0,F.Ch)(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o):(0,P.f)(e,a,"linePrefix",5)(t)}function a(e){let a=r.events[r.events.length-1];return a&&"linePrefix"===a[1].type&&a[2].sliceSerialize(a[1],!0).length>=4?t(e):(0,F.Ch)(e)?o(e):n(e)}},partial:!0},eg={name:"setextUnderline",tokenize:function(e,t,n){let r;let o=this;return function(t){let i,l=o.events.length;for(;l--;)if("lineEnding"!==o.events[l][1].type&&"linePrefix"!==o.events[l][1].type&&"content"!==o.events[l][1].type){i="paragraph"===o.events[l][1].type;break}return!o.parser.lazy[o.now().line]&&(o.interrupt||i)?(e.enter("setextHeadingLine"),r=t,e.enter("setextHeadingLineSequence"),function t(n){return n===r?(e.consume(n),t):(e.exit("setextHeadingLineSequence"),(0,F.xz)(n)?(0,P.f)(e,a,"lineSuffix")(n):a(n))}(t)):n(t)};function a(r){return null===r||(0,F.Ch)(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}},resolveTo:function(e,t){let n,r,o,a=e.length;for(;a--;)if("enter"===e[a][0]){if("content"===e[a][1].type){n=a;break}"paragraph"===e[a][1].type&&(r=a)}else"content"===e[a][1].type&&e.splice(a,1),o||"definition"!==e[a][1].type||(o=a);let i={type:"setextHeading",start:Object.assign({},e[r][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[r][1].type="setextHeadingText",o?(e.splice(r,0,["enter",i,t]),e.splice(o+1,0,["exit",e[n][1],t]),e[n][1].end=Object.assign({},e[o][1].end)):e[n][1]=i,e.push(["exit",i,t]),e}},ef=["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"],em=["pre","script","style","textarea"],eb={tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(G.w,t,n)}},partial:!0},eh={tokenize:function(e,t,n){let r=this;return function(t){return(0,F.Ch)(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o):n(t)};function o(e){return r.parser.lazy[r.now().line]?n(e):t(e)}},partial:!0},ey={tokenize:function(e,t,n){let r=this;return function(t){return null===t?n(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o)};function o(e){return r.parser.lazy[r.now().line]?n(e):t(e)}},partial:!0},eS={name:"codeFenced",tokenize:function(e,t,n){let r;let o=this,a={tokenize:function(e,t,n){let a=0;return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i};function i(t){return e.enter("codeFencedFence"),(0,F.xz)(t)?(0,P.f)(e,s,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):s(t)}function s(t){return t===r?(e.enter("codeFencedFenceSequence"),function t(o){return o===r?(a++,e.consume(o),t):a>=l?(e.exit("codeFencedFenceSequence"),(0,F.xz)(o)?(0,P.f)(e,c,"whitespace")(o):c(o)):n(o)}(t)):n(t)}function c(r){return null===r||(0,F.Ch)(r)?(e.exit("codeFencedFence"),t(r)):n(r)}},partial:!0},i=0,l=0;return function(t){return function(t){let a=o.events[o.events.length-1];return i=a&&"linePrefix"===a[1].type?a[2].sliceSerialize(a[1],!0).length:0,r=t,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),function t(o){return o===r?(l++,e.consume(o),t):l<3?n(o):(e.exit("codeFencedFenceSequence"),(0,F.xz)(o)?(0,P.f)(e,s,"whitespace")(o):s(o))}(t)}(t)};function s(a){return null===a||(0,F.Ch)(a)?(e.exit("codeFencedFence"),o.interrupt?t(a):e.check(ey,u,f)(a)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),function t(o){return null===o||(0,F.Ch)(o)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),s(o)):(0,F.xz)(o)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),(0,P.f)(e,c,"whitespace")(o)):96===o&&o===r?n(o):(e.consume(o),t)}(a))}function c(t){return null===t||(0,F.Ch)(t)?s(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),function t(o){return null===o||(0,F.Ch)(o)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),s(o)):96===o&&o===r?n(o):(e.consume(o),t)}(t))}function u(t){return e.attempt(a,f,d)(t)}function d(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),p}function p(t){return i>0&&(0,F.xz)(t)?(0,P.f)(e,g,"linePrefix",i+1)(t):g(t)}function g(t){return null===t||(0,F.Ch)(t)?e.check(ey,u,f)(t):(e.enter("codeFlowValue"),function t(n){return null===n||(0,F.Ch)(n)?(e.exit("codeFlowValue"),g(n)):(e.consume(n),t)}(t))}function f(n){return e.exit("codeFenced"),t(n)}},concrete:!0};var eE=n(63034);let ek={name:"characterReference",tokenize:function(e,t,n){let r,o;let a=this,i=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),l};function l(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),s):(e.enter("characterReferenceValue"),r=31,o=F.H$,c(t))}function s(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),r=6,o=F.AF,c):(e.enter("characterReferenceValue"),r=7,o=F.pY,c(t))}function c(l){if(59===l&&i){let r=e.exit("characterReferenceValue");return o!==F.H$||(0,eE.T)(a.sliceSerialize(r))?(e.enter("characterReferenceMarker"),e.consume(l),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(l)}return o(l)&&i++1&&e[u][1].end.offset-e[u][1].start.offset>1?2:1;let d=Object.assign({},e[n][1].end),p=Object.assign({},e[u][1].start);eN(d,-l),eN(p,l),a={type:l>1?"strongSequence":"emphasisSequence",start:d,end:Object.assign({},e[n][1].end)},i={type:l>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[u][1].start),end:p},o={type:l>1?"strongText":"emphasisText",start:Object.assign({},e[n][1].end),end:Object.assign({},e[u][1].start)},r={type:l>1?"strong":"emphasis",start:Object.assign({},a.start),end:Object.assign({},i.end)},e[n][1].end=Object.assign({},a.start),e[u][1].start=Object.assign({},i.end),s=[],e[n][1].end.offset-e[n][1].start.offset&&(s=(0,U.V)(s,[["enter",e[n][1],t],["exit",e[n][1],t]])),s=(0,U.V)(s,[["enter",r,t],["enter",a,t],["exit",a,t],["enter",o,t]]),s=(0,U.V)(s,(0,J.C)(t.parser.constructs.insideSpan.null,e.slice(n+1,u),t)),s=(0,U.V)(s,[["exit",o,t],["enter",i,t],["exit",i,t],["exit",r,t]]),e[u][1].end.offset-e[u][1].start.offset?(c=2,s=(0,U.V)(s,[["enter",e[u][1],t],["exit",e[u][1],t]])):c=0,(0,U.d)(e,n-1,u-n+3,s),u=n+s.length-c-2;break}}for(u=-1;++ua&&"whitespace"===e[o][1].type&&(o-=2),"atxHeadingSequence"===e[o][1].type&&(a===o-1||o-4>a&&"whitespace"===e[o-2][1].type)&&(o-=a+1===o?2:4),o>a&&(n={type:"atxHeadingText",start:e[a][1].start,end:e[o][1].end},r={type:"chunkText",start:e[a][1].start,end:e[o][1].end,contentType:"text"},(0,U.d)(e,a,o-a+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]])),e}},42:ee,45:[eg,ee],60:{name:"htmlFlow",tokenize:function(e,t,n){let r,o,a,i,l;let s=this;return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),c};function c(i){return 33===i?(e.consume(i),u):47===i?(e.consume(i),o=!0,g):63===i?(e.consume(i),r=3,s.interrupt?t:O):(0,F.jv)(i)?(e.consume(i),a=String.fromCharCode(i),f):n(i)}function u(o){return 45===o?(e.consume(o),r=2,d):91===o?(e.consume(o),r=5,i=0,p):(0,F.jv)(o)?(e.consume(o),r=4,s.interrupt?t:O):n(o)}function d(r){return 45===r?(e.consume(r),s.interrupt?t:O):n(r)}function p(r){let o="CDATA[";return r===o.charCodeAt(i++)?(e.consume(r),i===o.length)?s.interrupt?t:T:p:n(r)}function g(t){return(0,F.jv)(t)?(e.consume(t),a=String.fromCharCode(t),f):n(t)}function f(i){if(null===i||47===i||62===i||(0,F.z3)(i)){let l=47===i,c=a.toLowerCase();return!l&&!o&&em.includes(c)?(r=1,s.interrupt?t(i):T(i)):ef.includes(a.toLowerCase())?(r=6,l)?(e.consume(i),m):s.interrupt?t(i):T(i):(r=7,s.interrupt&&!s.parser.lazy[s.now().line]?n(i):o?function t(n){return(0,F.xz)(n)?(e.consume(n),t):A(n)}(i):b(i))}return 45===i||(0,F.H$)(i)?(e.consume(i),a+=String.fromCharCode(i),f):n(i)}function m(r){return 62===r?(e.consume(r),s.interrupt?t:T):n(r)}function b(t){return 47===t?(e.consume(t),A):58===t||95===t||(0,F.jv)(t)?(e.consume(t),h):(0,F.xz)(t)?(e.consume(t),b):A(t)}function h(t){return 45===t||46===t||58===t||95===t||(0,F.H$)(t)?(e.consume(t),h):y(t)}function y(t){return 61===t?(e.consume(t),S):(0,F.xz)(t)?(e.consume(t),y):b(t)}function S(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),l=t,E):(0,F.xz)(t)?(e.consume(t),S):function t(n){return null===n||34===n||39===n||47===n||60===n||61===n||62===n||96===n||(0,F.z3)(n)?y(n):(e.consume(n),t)}(t)}function E(t){return t===l?(e.consume(t),l=null,k):null===t||(0,F.Ch)(t)?n(t):(e.consume(t),E)}function k(e){return 47===e||62===e||(0,F.xz)(e)?b(e):n(e)}function A(t){return 62===t?(e.consume(t),w):n(t)}function w(t){return null===t||(0,F.Ch)(t)?T(t):(0,F.xz)(t)?(e.consume(t),w):n(t)}function T(t){return 45===t&&2===r?(e.consume(t),C):60===t&&1===r?(e.consume(t),_):62===t&&4===r?(e.consume(t),L):63===t&&3===r?(e.consume(t),O):93===t&&5===r?(e.consume(t),N):(0,F.Ch)(t)&&(6===r||7===r)?(e.exit("htmlFlowData"),e.check(eb,D,v)(t)):null===t||(0,F.Ch)(t)?(e.exit("htmlFlowData"),v(t)):(e.consume(t),T)}function v(t){return e.check(eh,x,D)(t)}function x(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),R}function R(t){return null===t||(0,F.Ch)(t)?v(t):(e.enter("htmlFlowData"),T(t))}function C(t){return 45===t?(e.consume(t),O):T(t)}function _(t){return 47===t?(e.consume(t),a="",I):T(t)}function I(t){if(62===t){let n=a.toLowerCase();return em.includes(n)?(e.consume(t),L):T(t)}return(0,F.jv)(t)&&a.length<8?(e.consume(t),a+=String.fromCharCode(t),I):T(t)}function N(t){return 93===t?(e.consume(t),O):T(t)}function O(t){return 62===t?(e.consume(t),L):45===t&&2===r?(e.consume(t),O):T(t)}function L(t){return null===t||(0,F.Ch)(t)?(e.exit("htmlFlowData"),D(t)):(e.consume(t),L)}function D(n){return e.exit("htmlFlow"),t(n)}},resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););return t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e},concrete:!0},61:eg,95:ee,96:eS,126:eS},eF={38:ek,92:eA},eB={[-5]:ew,[-4]:ew,[-3]:ew,33:eC,38:ek,42:eI,60:[{name:"autolink",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o};function o(t){return(0,F.jv)(t)?(e.consume(t),a):l(t)}function a(t){return 43===t||45===t||46===t||(0,F.H$)(t)?(r=1,function t(n){return 58===n?(e.consume(n),r=0,i):(43===n||45===n||46===n||(0,F.H$)(n))&&r++<32?(e.consume(n),t):(r=0,l(n))}(t)):l(t)}function i(r){return 62===r?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t):null===r||32===r||60===r||(0,F.Av)(r)?n(r):(e.consume(r),i)}function l(t){return 64===t?(e.consume(t),s):(0,F.n9)(t)?(e.consume(t),l):n(t)}function s(o){return(0,F.H$)(o)?function o(a){return 46===a?(e.consume(a),r=0,s):62===a?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(a),e.exit("autolinkMarker"),e.exit("autolink"),t):function t(a){if((45===a||(0,F.H$)(a))&&r++<63){let n=45===a?t:o;return e.consume(a),n}return n(a)}(a)}(o):n(o)}}},{name:"htmlText",tokenize:function(e,t,n){let r,o,a;let i=this;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),l};function l(t){return 33===t?(e.consume(t),s):47===t?(e.consume(t),E):63===t?(e.consume(t),y):(0,F.jv)(t)?(e.consume(t),A):n(t)}function s(t){return 45===t?(e.consume(t),c):91===t?(e.consume(t),o=0,g):(0,F.jv)(t)?(e.consume(t),h):n(t)}function c(t){return 45===t?(e.consume(t),p):n(t)}function u(t){return null===t?n(t):45===t?(e.consume(t),d):(0,F.Ch)(t)?(a=u,I(t)):(e.consume(t),u)}function d(t){return 45===t?(e.consume(t),p):u(t)}function p(e){return 62===e?_(e):45===e?d(e):u(e)}function g(t){let r="CDATA[";return t===r.charCodeAt(o++)?(e.consume(t),o===r.length?f:g):n(t)}function f(t){return null===t?n(t):93===t?(e.consume(t),m):(0,F.Ch)(t)?(a=f,I(t)):(e.consume(t),f)}function m(t){return 93===t?(e.consume(t),b):f(t)}function b(t){return 62===t?_(t):93===t?(e.consume(t),b):f(t)}function h(t){return null===t||62===t?_(t):(0,F.Ch)(t)?(a=h,I(t)):(e.consume(t),h)}function y(t){return null===t?n(t):63===t?(e.consume(t),S):(0,F.Ch)(t)?(a=y,I(t)):(e.consume(t),y)}function S(e){return 62===e?_(e):y(e)}function E(t){return(0,F.jv)(t)?(e.consume(t),k):n(t)}function k(t){return 45===t||(0,F.H$)(t)?(e.consume(t),k):function t(n){return(0,F.Ch)(n)?(a=t,I(n)):(0,F.xz)(n)?(e.consume(n),t):_(n)}(t)}function A(t){return 45===t||(0,F.H$)(t)?(e.consume(t),A):47===t||62===t||(0,F.z3)(t)?w(t):n(t)}function w(t){return 47===t?(e.consume(t),_):58===t||95===t||(0,F.jv)(t)?(e.consume(t),T):(0,F.Ch)(t)?(a=w,I(t)):(0,F.xz)(t)?(e.consume(t),w):_(t)}function T(t){return 45===t||46===t||58===t||95===t||(0,F.H$)(t)?(e.consume(t),T):function t(n){return 61===n?(e.consume(n),v):(0,F.Ch)(n)?(a=t,I(n)):(0,F.xz)(n)?(e.consume(n),t):w(n)}(t)}function v(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),r=t,x):(0,F.Ch)(t)?(a=v,I(t)):(0,F.xz)(t)?(e.consume(t),v):(e.consume(t),R)}function x(t){return t===r?(e.consume(t),r=void 0,C):null===t?n(t):(0,F.Ch)(t)?(a=x,I(t)):(e.consume(t),x)}function R(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||(0,F.z3)(t)?w(t):(e.consume(t),R)}function C(e){return 47===e||62===e||(0,F.z3)(e)?w(e):n(e)}function _(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}function I(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),N}function N(t){return(0,F.xz)(t)?(0,P.f)(e,O,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):O(t)}function O(t){return e.enter("htmlTextData"),a(t)}}}],91:eO,92:[{name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return(0,F.Ch)(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}},eA],93:eT,95:eI,96:{name:"codeText",tokenize:function(e,t,n){let r,o,a=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),function t(n){return 96===n?(e.consume(n),a++,t):(e.exit("codeTextSequence"),i(n))}(t)};function i(s){return null===s?n(s):32===s?(e.enter("space"),e.consume(s),e.exit("space"),i):96===s?(o=e.enter("codeTextSequence"),r=0,function n(i){return 96===i?(e.consume(i),r++,n):r===a?(e.exit("codeTextSequence"),e.exit("codeText"),t(i)):(o.type="codeTextData",l(i))}(s)):(0,F.Ch)(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),i):(e.enter("codeTextData"),l(s))}function l(t){return null===t||32===t||96===t||(0,F.Ch)(t)?(e.exit("codeTextData"),i(t)):(e.consume(t),l)}},resolve:function(e){let t,n,r=e.length-4,o=3;if(("lineEnding"===e[3][1].type||"space"===e[o][1].type)&&("lineEnding"===e[r][1].type||"space"===e[r][1].type)){for(t=o;++t0){let e=a.tokenStack[a.tokenStack.length-1],t=e[1]||eY;t.call(a,void 0,e[0])}for(n.position={start:eq(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:eq(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},c=-1;++c-1){let e=n[0];"string"==typeof e?n[0]=e.slice(o):n.shift()}i>0&&n.push(e[a].slice(0,i))}return n}(i,e)}function p(){let{line:e,column:t,offset:n,_index:o,_bufferIndex:a}=r;return{line:e,column:t,offset:n,_index:o,_bufferIndex:a}}function g(e,t){t.restore()}function f(e,t){return function(n,o,a){let i,u,d,g;return Array.isArray(n)?f(n):"tokenize"in n?f([n]):function(e){let t=null!==e&&n[e],r=null!==e&&n.null,o=[...Array.isArray(t)?t:t?[t]:[],...Array.isArray(r)?r:r?[r]:[]];return f(o)(e)};function f(e){return(i=e,u=0,0===e.length)?a:m(e[u])}function m(e){return function(n){return(g=function(){let e=p(),t=c.previous,n=c.currentConstruct,o=c.events.length,a=Array.from(l);return{restore:function(){r=e,c.previous=t,c.currentConstruct=n,c.events.length=o,l=a,b()},from:o}}(),d=e,e.partial||(c.currentConstruct=e),e.name&&c.parser.constructs.disable.null.includes(e.name))?y(n):e.tokenize.call(t?Object.assign(Object.create(c),t):c,s,h,y)(n)}}function h(t){return e(d,g),o}function y(e){return(g.restore(),++u{let n=this.data("settings");return eV(t,Object.assign({},n,e,{extensions:this.data("micromarkExtensions")||[],mdastExtensions:this.data("fromMarkdownExtensions")||[]}))}})}function eZ(e){let t=[],n=-1,r=0,o=0;for(;++n55295&&a<57344){let t=e.charCodeAt(n+1);a<56320&&t>56319&&t<57344?(i=String.fromCharCode(a,t),o=1):i="�"}else i=String.fromCharCode(a);i&&(t.push(e.slice(r,n),encodeURIComponent(i)),r=n+o+1,i=""),o&&(n+=o,o=0)}return t.join("")+e.slice(r)}var eX=n(37462);let eQ=function(e,t,n,r){"function"==typeof t&&"function"!=typeof n&&(r=n,n=t,t=null),(0,eX.S4)(e,t,function(e,t){let r=t[t.length-1];return n(e,r?r.children.indexOf(e):null,r)},r)},eJ=e1("start"),e0=e1("end");function e1(e){return function(t){let n=t&&t.position&&t.position[e]||{};return{line:n.line||null,column:n.column||null,offset:n.offset>-1?n.offset:null}}}let e2={}.hasOwnProperty;function e3(e){return String(e||"").toUpperCase()}function e4(e,t){let n;let r=String(t.identifier).toUpperCase(),o=eZ(r.toLowerCase()),a=e.footnoteOrder.indexOf(r);-1===a?(e.footnoteOrder.push(r),e.footnoteCounts[r]=1,n=e.footnoteOrder.length):(e.footnoteCounts[r]++,n=a+1);let i=e.footnoteCounts[r],l={type:"element",tagName:"a",properties:{href:"#"+e.clobberPrefix+"fn-"+o,id:e.clobberPrefix+"fnref-"+o+(i>1?"-"+i:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(n)}]};e.patch(t,l);let s={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,s),e.applyData(t,s)}function e5(e,t){let n=t.referenceType,r="]";if("collapsed"===n?r+="[]":"full"===n&&(r+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return{type:"text",value:"!["+t.alt+r};let o=e.all(t),a=o[0];a&&"text"===a.type?a.value="["+a.value:o.unshift({type:"text",value:"["});let i=o[o.length-1];return i&&"text"===i.type?i.value+=r:o.push({type:"text",value:r}),o}function e9(e){let t=e.spread;return null==t?e.children.length>1:t}function e6(e,t,n){let r=0,o=e.length;if(t){let t=e.codePointAt(r);for(;9===t||32===t;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(o-1);for(;9===t||32===t;)o--,t=e.codePointAt(o-1)}return o>r?e.slice(r,o):""}let e8={blockquote:function(e,t){let n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)},break:function(e,t){let n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]},code:function(e,t){let n=t.value?t.value+"\n":"",r=t.lang?t.lang.match(/^[^ \t]+(?=[ \t]|$)/):null,o={};r&&(o.className=["language-"+r]);let a={type:"element",tagName:"code",properties:o,children:[{type:"text",value:n}]};return t.meta&&(a.data={meta:t.meta}),e.patch(t,a),a={type:"element",tagName:"pre",properties:{},children:[a=e.applyData(t,a)]},e.patch(t,a),a},delete:function(e,t){let n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){let n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},footnoteReference:e4,footnote:function(e,t){let n=e.footnoteById,r=1;for(;(r in n);)r++;let o=String(r);return n[o]={type:"footnoteDefinition",identifier:o,children:[{type:"paragraph",children:t.children}],position:t.position},e4(e,{type:"footnoteReference",identifier:o,position:t.position})},heading:function(e,t){let n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},html:function(e,t){if(e.dangerous){let n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}return null},imageReference:function(e,t){let n=e.definition(t.identifier);if(!n)return e5(e,t);let r={src:eZ(n.url||""),alt:t.alt};null!==n.title&&void 0!==n.title&&(r.title=n.title);let o={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,o),e.applyData(t,o)},image:function(e,t){let n={src:eZ(t.url)};null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt),null!==t.title&&void 0!==t.title&&(n.title=t.title);let r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)},inlineCode:function(e,t){let n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);let r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)},linkReference:function(e,t){let n=e.definition(t.identifier);if(!n)return e5(e,t);let r={href:eZ(n.url||"")};null!==n.title&&void 0!==n.title&&(r.title=n.title);let o={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)},link:function(e,t){let n={href:eZ(t.url)};null!==t.title&&void 0!==t.title&&(n.title=t.title);let r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},listItem:function(e,t,n){let r=e.all(t),o=n?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;let n=e.children,r=-1;for(;!t&&++r0&&e.children.unshift({type:"text",value:" "}),e.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),a.className=["task-list-item"]}let l=-1;for(;++l0){let r={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},a=eJ(t.children[1]),i=e0(t.children[t.children.length-1]);a.line&&i.line&&(r.position={start:a,end:i}),o.push(r)}let a={type:"element",tagName:"table",properties:{},children:e.wrap(o,!0)};return e.patch(t,a),e.applyData(t,a)},tableCell:function(e,t){let n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){let r=n?n.children:void 0,o=r?r.indexOf(t):1,a=0===o?"th":"td",i=n&&"table"===n.type?n.align:void 0,l=i?i.length:t.children.length,s=-1,c=[];for(;++s0,!0),r[0]),o=r.index+r[0].length,r=n.exec(t);return a.push(e6(t.slice(o),o>0,!1)),a.join("")}(String(t.value))};return e.patch(t,n),e.applyData(t,n)},thematicBreak:function(e,t){let n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)},toml:e7,yaml:e7,definition:e7,footnoteDefinition:e7};function e7(){return null}let te={}.hasOwnProperty;function tt(e,t){e.position&&(t.position={start:eJ(e),end:e0(e)})}function tn(e,t){let n=t;if(e&&e.data){let t=e.data.hName,r=e.data.hChildren,o=e.data.hProperties;"string"==typeof t&&("element"===n.type?n.tagName=t:n={type:"element",tagName:t,properties:{},children:[]}),"element"===n.type&&o&&(n.properties={...n.properties,...o}),"children"in n&&n.children&&null!=r&&(n.children=r)}return n}function tr(e,t,n){let r=t&&t.type;if(!r)throw Error("Expected node, got `"+t+"`");return te.call(e.handlers,r)?e.handlers[r](e,t,n):e.passThrough&&e.passThrough.includes(r)?"children"in t?{...t,children:to(e,t)}:t:e.unknownHandler?e.unknownHandler(e,t,n):function(e,t){let n=t.data||{},r="value"in t&&!(te.call(n,"hProperties")||te.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:to(e,t)};return e.patch(t,r),e.applyData(t,r)}(e,t)}function to(e,t){let n=[];if("children"in t){let r=t.children,o=-1;for(;++o0&&n.push({type:"text",value:"\n"}),n}function ti(e,t){let n=function(e,t){let n=t||{},r=n.allowDangerousHtml||!1,o={};return i.dangerous=r,i.clobberPrefix=void 0===n.clobberPrefix||null===n.clobberPrefix?"user-content-":n.clobberPrefix,i.footnoteLabel=n.footnoteLabel||"Footnotes",i.footnoteLabelTagName=n.footnoteLabelTagName||"h2",i.footnoteLabelProperties=n.footnoteLabelProperties||{className:["sr-only"]},i.footnoteBackLabel=n.footnoteBackLabel||"Back to content",i.unknownHandler=n.unknownHandler,i.passThrough=n.passThrough,i.handlers={...e8,...n.handlers},i.definition=function(e){let t=Object.create(null);if(!e||!e.type)throw Error("mdast-util-definitions expected node");return eQ(e,"definition",e=>{let n=e3(e.identifier);n&&!e2.call(t,n)&&(t[n]=e)}),function(e){let n=e3(e);return n&&e2.call(t,n)?t[n]:null}}(e),i.footnoteById=o,i.footnoteOrder=[],i.footnoteCounts={},i.patch=tt,i.applyData=tn,i.one=function(e,t){return tr(i,e,t)},i.all=function(e){return to(i,e)},i.wrap=ta,i.augment=a,eQ(e,"footnoteDefinition",e=>{let t=String(e.identifier).toUpperCase();te.call(o,t)||(o[t]=e)}),i;function a(e,t){if(e&&"data"in e&&e.data){let n=e.data;n.hName&&("element"!==t.type&&(t={type:"element",tagName:"",properties:{},children:[]}),t.tagName=n.hName),"element"===t.type&&n.hProperties&&(t.properties={...t.properties,...n.hProperties}),"children"in t&&t.children&&n.hChildren&&(t.children=n.hChildren)}if(e){let n="type"in e?e:{position:e};!n||!n.position||!n.position.start||!n.position.start.line||!n.position.start.column||!n.position.end||!n.position.end.line||!n.position.end.column||(t.position={start:eJ(n),end:e0(n)})}return t}function i(e,t,n,r){return Array.isArray(n)&&(r=n,n={}),a(e,{type:"element",tagName:t,properties:n||{},children:r||[]})}}(e,t),r=n.one(e,null),o=function(e){let t=[],n=-1;for(;++n1?"-"+l:""),dataFootnoteBackref:!0,className:["data-footnote-backref"],ariaLabel:e.footnoteBackLabel},children:[{type:"text",value:"↩"}]};l>1&&t.children.push({type:"element",tagName:"sup",children:[{type:"text",value:String(l)}]}),s.length>0&&s.push({type:"text",value:" "}),s.push(t)}let c=o[o.length-1];if(c&&"element"===c.type&&"p"===c.tagName){let e=c.children[c.children.length-1];e&&"text"===e.type?e.value+=" ":c.children.push({type:"text",value:" "}),c.children.push(...s)}else o.push(...s);let u={type:"element",tagName:"li",properties:{id:e.clobberPrefix+"fn-"+i},children:e.wrap(o,!0)};e.patch(r,u),t.push(u)}if(0!==t.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:e.footnoteLabelTagName,properties:{...JSON.parse(JSON.stringify(e.footnoteLabelProperties)),id:"footnote-label"},children:[{type:"text",value:e.footnoteLabel}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(t,!0)},{type:"text",value:"\n"}]}}(n);return o&&r.children.push({type:"text",value:"\n"},o),Array.isArray(r)?{type:"root",children:r}:r}var tl=function(e,t){var n;return e&&"run"in e?(n,r,o)=>{e.run(ti(n,t),r,e=>{o(e)})}:(n=e||t,e=>ti(e,n))},ts=n(74275);class tc{constructor(e,t,n){this.property=e,this.normal=t,n&&(this.space=n)}}function tu(e,t){let n={},r={},o=-1;for(;++o"xlink:"+t.slice(5).toLowerCase(),properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),tR=tv({space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase(),properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function tC(e,t){return t in e?e[t]:t}function t_(e,t){return tC(e,t.toLowerCase())}let tI=tv({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:t_,properties:{xmlns:null,xmlnsXLink:null}}),tN=tv({transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase(),properties:{ariaActiveDescendant:null,ariaAtomic:tm,ariaAutoComplete:null,ariaBusy:tm,ariaChecked:tm,ariaColCount:th,ariaColIndex:th,ariaColSpan:th,ariaControls:ty,ariaCurrent:null,ariaDescribedBy:ty,ariaDetails:null,ariaDisabled:tm,ariaDropEffect:ty,ariaErrorMessage:null,ariaExpanded:tm,ariaFlowTo:ty,ariaGrabbed:tm,ariaHasPopup:null,ariaHidden:tm,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:ty,ariaLevel:th,ariaLive:null,ariaModal:tm,ariaMultiLine:tm,ariaMultiSelectable:tm,ariaOrientation:null,ariaOwns:ty,ariaPlaceholder:null,ariaPosInSet:th,ariaPressed:tm,ariaReadOnly:tm,ariaRelevant:null,ariaRequired:tm,ariaRoleDescription:ty,ariaRowCount:th,ariaRowIndex:th,ariaRowSpan:th,ariaSelected:tm,ariaSetSize:th,ariaSort:null,ariaValueMax:th,ariaValueMin:th,ariaValueNow:th,ariaValueText:null,role:null}}),tO=tv({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:t_,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:tS,acceptCharset:ty,accessKey:ty,action:null,allow:null,allowFullScreen:tf,allowPaymentRequest:tf,allowUserMedia:tf,alt:null,as:null,async:tf,autoCapitalize:null,autoComplete:ty,autoFocus:tf,autoPlay:tf,blocking:ty,capture:tf,charSet:null,checked:tf,cite:null,className:ty,cols:th,colSpan:null,content:null,contentEditable:tm,controls:tf,controlsList:ty,coords:th|tS,crossOrigin:null,data:null,dateTime:null,decoding:null,default:tf,defer:tf,dir:null,dirName:null,disabled:tf,download:tb,draggable:tm,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:tf,formTarget:null,headers:ty,height:th,hidden:tf,high:th,href:null,hrefLang:null,htmlFor:ty,httpEquiv:ty,id:null,imageSizes:null,imageSrcSet:null,inert:tf,inputMode:null,integrity:null,is:null,isMap:tf,itemId:null,itemProp:ty,itemRef:ty,itemScope:tf,itemType:ty,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:tf,low:th,manifest:null,max:null,maxLength:th,media:null,method:null,min:null,minLength:th,multiple:tf,muted:tf,name:null,nonce:null,noModule:tf,noValidate:tf,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint: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:tf,optimum:th,pattern:null,ping:ty,placeholder:null,playsInline:tf,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:tf,referrerPolicy:null,rel:ty,required:tf,reversed:tf,rows:th,rowSpan:th,sandbox:ty,scope:null,scoped:tf,seamless:tf,selected:tf,shape:null,size:th,sizes:null,slot:null,span:th,spellCheck:tm,src:null,srcDoc:null,srcLang:null,srcSet:null,start:th,step:null,style:null,tabIndex:th,target:null,title:null,translate:null,type:null,typeMustMatch:tf,useMap:null,value:tm,width:th,wrap:null,align:null,aLink:null,archive:ty,axis:null,background:null,bgColor:null,border:th,borderColor:null,bottomMargin:th,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:tf,declare:tf,event:null,face:null,frame:null,frameBorder:null,hSpace:th,leftMargin:th,link:null,longDesc:null,lowSrc:null,marginHeight:th,marginWidth:th,noResize:tf,noHref:tf,noShade:tf,noWrap:tf,object:null,profile:null,prompt:null,rev:null,rightMargin:th,rules:null,scheme:null,scrolling:tm,standby:null,summary:null,text:null,topMargin:th,valueType:null,version:null,vAlign:null,vLink:null,vSpace:th,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:tf,disableRemotePlayback:tf,prefix:null,property:null,results:th,security:null,unselectable:null}}),tL=tv({space:"svg",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"},transform:tC,properties:{about:tE,accentHeight:th,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:th,amplitude:th,arabicForm:null,ascent:th,attributeName:null,attributeType:null,azimuth:th,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:th,by:null,calcMode:null,capHeight:th,className:ty,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:th,diffuseConstant:th,direction:null,display:null,dur:null,divisor:th,dominantBaseline:null,download:tf,dx:null,dy:null,edgeMode:null,editable:null,elevation:th,enableBackground:null,end:null,event:null,exponent:th,externalResourcesRequired:null,fill:null,fillOpacity:th,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:tS,g2:tS,glyphName:tS,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:th,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:th,horizOriginX:th,horizOriginY:th,id:null,ideographic:th,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:th,k:th,k1:th,k2:th,k3:th,k4:th,kernelMatrix:tE,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:th,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:th,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:th,overlineThickness:th,paintOrder:null,panose1:null,path:null,pathLength:th,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:ty,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:th,pointsAtY:th,pointsAtZ:th,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:tE,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:tE,rev:tE,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:tE,requiredFeatures:tE,requiredFonts:tE,requiredFormats:tE,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:th,specularExponent:th,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:th,strikethroughThickness:th,string:null,stroke:null,strokeDashArray:tE,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:th,strokeOpacity:th,strokeWidth:null,style:null,surfaceScale:th,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:tE,tabIndex:th,tableValues:null,target:null,targetX:th,targetY:th,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:tE,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:th,underlineThickness:th,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:th,values:null,vAlphabetic:th,vMathematical:th,vectorEffect:null,vHanging:th,vIdeographic:th,version:null,vertAdvY:th,vertOriginX:th,vertOriginY:th,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:th,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),tD=tu([tR,tx,tI,tN,tO],"html"),tM=tu([tR,tx,tI,tN,tL],"svg");function tP(e){if(e.allowedElements&&e.disallowedElements)throw TypeError("Only one of `allowedElements` and `disallowedElements` should be defined");if(e.allowedElements||e.disallowedElements||e.allowElement)return t=>{eQ(t,"element",(t,n,r)=>{let o;if(e.allowedElements?o=!e.allowedElements.includes(t.tagName):e.disallowedElements&&(o=e.disallowedElements.includes(t.tagName)),!o&&e.allowElement&&"number"==typeof n&&(o=!e.allowElement(t,n,r)),o&&"number"==typeof n)return e.unwrapDisallowed&&t.children?r.children.splice(n,1,...t.children):r.children.splice(n,1),n})}}var tF=n(9176);let tB=/^data[-\w.:]+$/i,tU=/-[a-z]/g,tz=/[A-Z]/g;function tH(e){return"-"+e.toLowerCase()}function tG(e){return e.charAt(1).toUpperCase()}let t$={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 tj=n(48699);let tW=["http","https","mailto","tel"];function tV(e){let t=(e||"").trim(),n=t.charAt(0);if("#"===n||"/"===n)return t;let r=t.indexOf(":");if(-1===r)return t;let o=-1;for(;++oo||-1!==(o=t.indexOf("#"))&&r>o?t:"javascript:void(0)"}let tq={}.hasOwnProperty,tY=new Set(["table","thead","tbody","tfoot","tr"]);function tK(e,t){let n=-1,r=0;for(;++n for more info)`),delete tQ[t]}let t=w().use(eK).use(e.remarkPlugins||[]).use(tl,{...e.remarkRehypeOptions,allowDangerousHtml:!0}).use(e.rehypePlugins||[]).use(tP,e),n=new b;"string"==typeof e.children?n.value=e.children:void 0!==e.children&&null!==e.children&&console.warn(`[react-markdown] Warning: please pass a string as \`children\` (not: \`${e.children}\`)`);let r=t.runSync(t.parse(n),n);if("root"!==r.type)throw TypeError("Expected a `root` node");let o=a.createElement(a.Fragment,{},function e(t,n){let r;let o=[],i=-1;for(;++i4&&"data"===n.slice(0,4)&&tB.test(t)){if("-"===t.charAt(4)){let e=t.slice(5).replace(tU,tG);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!tU.test(e)){let n=e.replace(tz,tH);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}o=tw}return new o(r,t)}(r.schema,t),a=n;null!=a&&a==a&&(Array.isArray(a)&&(a=o.commaSeparated?function(e,t){let n={},r=""===e[e.length-1]?[...e,""]:e;return r.join((n.padRight?" ":"")+","+(!1===n.padLeft?"":" ")).trim()}(a):a.join(" ").trim()),"style"===o.property&&"string"==typeof a&&(a=function(e){let t={};try{tj(e,function(e,n){let r="-ms-"===e.slice(0,4)?`ms-${e.slice(4)}`:e;t[r.replace(/-([a-z])/g,tZ)]=n})}catch{}return t}(a)),o.space&&o.property?e[tq.call(t$,o.property)?t$[o.property]:o.property]=a:o.attribute&&(e[o.attribute]=a))}(d,i,n.properties[i],t);("ol"===u||"ul"===u)&&t.listDepth++;let g=e(t,n);("ol"===u||"ul"===u)&&t.listDepth--,t.schema=c;let f=n.position||{start:{line:null,column:null,offset:null},end:{line:null,column:null,offset:null}},m=l.components&&tq.call(l.components,u)?l.components[u]:u,b="string"==typeof m||m===a.Fragment;if(!tF.isValidElementType(m))throw TypeError(`Component for name \`${u}\` not defined or is not renderable`);if(d.key=r,"a"===u&&l.linkTarget&&(d.target="function"==typeof l.linkTarget?l.linkTarget(String(d.href||""),n.children,"string"==typeof d.title?d.title:null):l.linkTarget),"a"===u&&s&&(d.href=s(String(d.href||""),n.children,"string"==typeof d.title?d.title:null)),b||"code"!==u||"element"!==o.type||"pre"===o.tagName||(d.inline=!0),b||"h1"!==u&&"h2"!==u&&"h3"!==u&&"h4"!==u&&"h5"!==u&&"h6"!==u||(d.level=Number.parseInt(u.charAt(1),10)),"img"===u&&l.transformImageUri&&(d.src=l.transformImageUri(String(d.src||""),String(d.alt||""),"string"==typeof d.title?d.title:null)),!b&&"li"===u&&"element"===o.type){let e=function(e){let t=-1;for(;++t0?a.createElement(m,d,g):a.createElement(m,d)}(t,r,i,n)):"text"===r.type?"element"===n.type&&tY.has(n.tagName)&&function(e){let t=e&&"object"==typeof e&&"text"===e.type?e.value||"":e;return"string"==typeof t&&""===t.replace(/[ \t\n\f\r]/g,"")}(r)||o.push(r.value):"raw"!==r.type||t.options.skipHtml||o.push(r.value);return o}({options:e,schema:tD,listDepth:0},r));return e.className&&(o=a.createElement("div",{className:e.className},o)),o}tJ.propTypes={children:ts.string,className:ts.string,allowElement:ts.func,allowedElements:ts.arrayOf(ts.string),disallowedElements:ts.arrayOf(ts.string),unwrapDisallowed:ts.bool,remarkPlugins:ts.arrayOf(ts.oneOfType([ts.object,ts.func,ts.arrayOf(ts.oneOfType([ts.bool,ts.string,ts.object,ts.func,ts.arrayOf(ts.any)]))])),rehypePlugins:ts.arrayOf(ts.oneOfType([ts.object,ts.func,ts.arrayOf(ts.oneOfType([ts.bool,ts.string,ts.object,ts.func,ts.arrayOf(ts.any)]))])),sourcePos:ts.bool,rawSourcePos:ts.bool,skipHtml:ts.bool,includeElementIndex:ts.bool,transformLinkUri:ts.oneOfType([ts.func,ts.bool]),linkTarget:ts.oneOfType([ts.func,ts.string]),transformImageUri:ts.func,components:ts.object}},48975:function(e,t,n){"use strict";n.d(t,{Z:function(){return eL}});var r=n(6361),o=n(82659);let a={tokenize:function(e,t,n){let r=0;return function t(a){return(87===a||119===a)&&r<3?(r++,e.consume(a),t):46===a&&3===r?(e.consume(a),o):n(a)};function o(e){return null===e?n(e):t(e)}},partial:!0},i={tokenize:function(e,t,n){let r,a,i;return l;function l(t){return 46===t||95===t?e.check(s,u,c)(t):null===t||(0,o.z3)(t)||(0,o.B8)(t)||45!==t&&(0,o.Xh)(t)?u(t):(i=!0,e.consume(t),l)}function c(t){return 95===t?r=!0:(a=r,r=void 0),e.consume(t),l}function u(e){return a||r||!i?n(e):t(e)}},partial:!0},l={tokenize:function(e,t){let n=0,r=0;return a;function a(l){return 40===l?(n++,e.consume(l),a):41===l&&r0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}g[43]=p,g[45]=p,g[46]=p,g[95]=p,g[72]=[p,d],g[104]=[p,d],g[87]=[p,u],g[119]=[p,u];var k=n(56833),A=n(9471),w=n(93575);let T={tokenize:function(e,t,n){let r=this;return(0,A.f)(e,function(e){let o=r.events[r.events.length-1];return o&&"gfmFootnoteDefinitionIndent"===o[1].type&&4===o[2].sliceSerialize(o[1],!0).length?t(e):n(e)},"gfmFootnoteDefinitionIndent",5)},partial:!0};function v(e,t,n){let r;let o=this,a=o.events.length,i=o.parser.gfmFootnotes||(o.parser.gfmFootnotes=[]);for(;a--;){let e=o.events[a][1];if("labelImage"===e.type){r=e;break}if("gfmFootnoteCall"===e.type||"labelLink"===e.type||"label"===e.type||"image"===e.type||"link"===e.type)break}return function(a){if(!r||!r._balanced)return n(a);let l=(0,w.d)(o.sliceSerialize({start:r.end,end:o.now()}));return 94===l.codePointAt(0)&&i.includes(l.slice(1))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(a),e.exit("gfmFootnoteCallLabelMarker"),t(a)):n(a)}}function x(e,t){let n=e.length;for(;n--;)if("labelImage"===e[n][1].type&&"enter"===e[n][0]){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";let r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},o={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};o.end.column++,o.end.offset++,o.end._bufferIndex++;let a={type:"gfmFootnoteCallString",start:Object.assign({},o.end),end:Object.assign({},e[e.length-1][1].start)},i={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},l=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",o,t],["exit",o,t],["enter",a,t],["enter",i,t],["exit",i,t],["exit",a,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...l),e}function R(e,t,n){let r;let a=this,i=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]),l=0;return function(t){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(t),e.exit("gfmFootnoteCallLabelMarker"),s};function s(t){return 94!==t?n(t):(e.enter("gfmFootnoteCallMarker"),e.consume(t),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",c)}function c(s){if(l>999||93===s&&!r||null===s||91===s||(0,o.z3)(s))return n(s);if(93===s){e.exit("chunkString");let r=e.exit("gfmFootnoteCallString");return i.includes((0,w.d)(a.sliceSerialize(r)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(s),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(s)}return(0,o.z3)(s)||(r=!0),l++,e.consume(s),92===s?u:c}function u(t){return 91===t||92===t||93===t?(e.consume(t),l++,c):c(t)}}function C(e,t,n){let r,a;let i=this,l=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]),s=0;return function(t){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),c};function c(t){return 94===t?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",u):n(t)}function u(t){if(s>999||93===t&&!a||null===t||91===t||(0,o.z3)(t))return n(t);if(93===t){e.exit("chunkString");let n=e.exit("gfmFootnoteDefinitionLabelString");return r=(0,w.d)(i.sliceSerialize(n)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),p}return(0,o.z3)(t)||(a=!0),s++,e.consume(t),92===t?d:u}function d(t){return 91===t||92===t||93===t?(e.consume(t),s++,u):u(t)}function p(t){return 58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),l.includes(r)||l.push(r),(0,A.f)(e,g,"gfmFootnoteDefinitionWhitespace")):n(t)}function g(e){return t(e)}}function _(e,t,n){return e.check(k.w,t,e.attempt(T,t,n))}function I(e){e.exit("gfmFootnoteDefinition")}var N=n(58180),O=n(75786),L=n(80594);class D{constructor(){this.map=[]}add(e,t,n){!function(e,t,n,r){let o=0;if(0!==n||0!==r.length){for(;oe[0]-t[0]),0===this.map.length)return;let t=this.map.length,n=[];for(;t>0;)t-=1,n.push(e.slice(this.map[t][0]+this.map[t][1])),n.push(this.map[t][2]),e.length=this.map[t][0];n.push([...e]),e.length=0;let r=n.pop();for(;r;)e.push(...r),r=n.pop();this.map.length=0}}let M={flow:{null:{tokenize:function(e,t,n){let r;let a=this,i=0,l=0;return function(e){let t=a.events.length-1;for(;t>-1;){let e=a.events[t][1].type;if("lineEnding"===e||"linePrefix"===e)t--;else break}let r=t>-1?a.events[t][1].type:null,o="tableHead"===r||"tableRow"===r?S:s;return o===S&&a.parser.lazy[a.now().line]?n(e):o(e)};function s(t){return e.enter("tableHead"),e.enter("tableRow"),124===t||(r=!0,l+=1),c(t)}function c(t){return null===t?n(t):(0,o.Ch)(t)?l>1?(l=0,a.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),p):n(t):(0,o.xz)(t)?(0,A.f)(e,c,"whitespace")(t):(l+=1,r&&(r=!1,i+=1),124===t)?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),r=!0,c):(e.enter("data"),u(t))}function u(t){return null===t||124===t||(0,o.z3)(t)?(e.exit("data"),c(t)):(e.consume(t),92===t?d:u)}function d(t){return 92===t||124===t?(e.consume(t),u):u(t)}function p(t){return(a.interrupt=!1,a.parser.lazy[a.now().line])?n(t):(e.enter("tableDelimiterRow"),r=!1,(0,o.xz)(t))?(0,A.f)(e,g,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):g(t)}function g(t){return 45===t||58===t?m(t):124===t?(r=!0,e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),f):n(t)}function f(t){return(0,o.xz)(t)?(0,A.f)(e,m,"whitespace")(t):m(t)}function m(t){return 58===t?(l+=1,r=!0,e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),b):45===t?(l+=1,b(t)):null===t||(0,o.Ch)(t)?y(t):n(t)}function b(t){return 45===t?(e.enter("tableDelimiterFiller"),function t(n){return 45===n?(e.consume(n),t):58===n?(r=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(n),e.exit("tableDelimiterMarker"),h):(e.exit("tableDelimiterFiller"),h(n))}(t)):n(t)}function h(t){return(0,o.xz)(t)?(0,A.f)(e,y,"whitespace")(t):y(t)}function y(a){return 124===a?g(a):null===a||(0,o.Ch)(a)?r&&i===l?(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(a)):n(a):n(a)}function S(t){return e.enter("tableRow"),E(t)}function E(n){return 124===n?(e.enter("tableCellDivider"),e.consume(n),e.exit("tableCellDivider"),E):null===n||(0,o.Ch)(n)?(e.exit("tableRow"),t(n)):(0,o.xz)(n)?(0,A.f)(e,E,"whitespace")(n):(e.enter("data"),k(n))}function k(t){return null===t||124===t||(0,o.z3)(t)?(e.exit("data"),E(t)):(e.consume(t),92===t?w:k)}function w(t){return 92===t||124===t?(e.consume(t),k):k(t)}},resolveAll:function(e,t){let n,r,o,a=-1,i=!0,l=0,s=[0,0,0,0],c=[0,0,0,0],u=!1,d=0,p=new D;for(;++an[2]+1){let t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[["exit",i,t]])}return void 0!==o&&(a.end=Object.assign({},B(t.events,o)),e.add(o,0,[["exit",a,t]]),a=void 0),a}function F(e,t,n,r,o){let a=[],i=B(t.events,n);o&&(o.end=Object.assign({},i),a.push(["exit",o,t])),r.end=Object.assign({},i),a.push(["exit",r,t]),e.add(n+1,0,a)}function B(e,t){let n=e[t],r="enter"===n[0]?"start":"end";return n[1][r]}let U={text:{91:{tokenize:function(e,t,n){let r=this;return function(t){return null===r.previous&&r._gfmTasklistFirstContentOfListItem?(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),a):n(t)};function a(t){return(0,o.z3)(t)?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),i):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),i):n(t)}function i(t){return 93===t?(e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),l):n(t)}function l(r){return(0,o.Ch)(r)?t(r):(0,o.xz)(r)?e.check({tokenize:z},t,n)(r):n(r)}}}}};function z(e,t,n){return(0,A.f)(e,function(e){return null===e?n(e):t(e)},"whitespace")}function H(e,t){let n=String(e);if("string"!=typeof t)throw TypeError("Expected character");let r=0,o=n.indexOf(t);for(;-1!==o;)r++,o=n.indexOf(t,o+t.length);return r}var G=n(37462),$=n(54e3);let j={}.hasOwnProperty,W=function(e,t,n,r){let o,a;"string"==typeof t||t instanceof RegExp?(a=[[t,n]],o=r):(a=t,o=n),o||(o={});let i=(0,$.O)(o.ignore||[]),l=function(e){let t=[];if("object"!=typeof e)throw TypeError("Expected array or object as schema");if(Array.isArray(e)){let n=-1;for(;++n0?{type:"text",value:l}:void 0),!1!==l&&(a!==n&&u.push({type:"text",value:e.value.slice(a,n)}),Array.isArray(l)?u.push(...l):l&&u.push(l),a=n+d[0].length,c=!0),!r.global)break;d=r.exec(e.value)}return c?(ae}let Y="phrasing",K=["autolink","link","image","label"],Z={transforms:[function(e){W(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,J],[/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/g,ee]],{ignore:["link","linkReference"]})}],enter:{literalAutolink:function(e){this.enter({type:"link",title:null,url:"",children:[]},e)},literalAutolinkEmail:Q,literalAutolinkHttp:Q,literalAutolinkWww:Q},exit:{literalAutolink:function(e){this.exit(e)},literalAutolinkEmail:function(e){this.config.exit.autolinkEmail.call(this,e)},literalAutolinkHttp:function(e){this.config.exit.autolinkProtocol.call(this,e)},literalAutolinkWww:function(e){this.config.exit.data.call(this,e);let t=this.stack[this.stack.length-1];t.url="http://"+this.sliceSerialize(e)}}},X={unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Y,notInConstruct:K},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Y,notInConstruct:K},{character:":",before:"[ps]",after:"\\/",inConstruct:Y,notInConstruct:K}]};function Q(e){this.config.enter.autolinkProtocol.call(this,e)}function J(e,t,n,r,o){let a="";if(!et(o)||(/^w/i.test(t)&&(n=t+n,t="",a="http://"),!function(e){let t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}(n)))return!1;let i=function(e){let t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")"),o=H(e,"("),a=H(e,")");for(;-1!==r&&o>a;)e+=n.slice(0,r+1),r=(n=n.slice(r+1)).indexOf(")"),a++;return[e,n]}(n+r);if(!i[0])return!1;let l={type:"link",title:null,url:a+t+i[0],children:[{type:"text",value:t+i[0]}]};return i[1]?[l,{type:"text",value:i[1]}]:l}function ee(e,t,n,r){return!(!et(r,!0)||/[-\d_]$/.test(n))&&{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function et(e,t){let n=e.input.charCodeAt(e.index-1);return(0===e.index||(0,o.B8)(n)||(0,o.Xh)(n))&&(!t||47!==n)}var en=n(11559);function er(e){return e.label||!e.identifier?e.label||"":(0,en.v)(e.identifier)}let eo=/\r?\n|\r/g;var ea=n(62848),ei=n(12101);function el(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function es(){this.buffer()}function ec(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=(0,w.d)(this.sliceSerialize(e)).toLowerCase()}function eu(e){this.exit(e)}function ed(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function ep(){this.buffer()}function eg(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=(0,w.d)(this.sliceSerialize(e)).toLowerCase()}function ef(e){this.exit(e)}function em(e,t,n,r){let o=(0,ei.j)(r),a=o.move("[^"),i=n.enter("footnoteReference"),l=n.enter("reference");return a+=o.move((0,ea.T)(n,er(e),{...o.current(),before:a,after:"]"})),l(),i(),a+=o.move("]")}function eb(e,t,n,r){let o=(0,ei.j)(r),a=o.move("[^"),i=n.enter("footnoteDefinition"),l=n.enter("label");return a+=o.move((0,ea.T)(n,er(e),{...o.current(),before:a,after:"]"})),l(),a+=o.move("]:"+(e.children&&e.children.length>0?" ":"")),o.shift(4),a+=o.move(function(e,t){let n;let r=[],o=0,a=0;for(;n=eo.exec(e);)i(e.slice(o,n.index)),r.push(n[0]),o=n.index+n[0].length,a++;return i(e.slice(o)),r.join("");function i(e){r.push(t(e,a,!e))}}(function(e,t,n){let r=t.indexStack,o=e.children||[],a=t.createTracker(n),i=[],l=-1;for(r.push(-1);++l\n\n"}return"\n\n"}(n,o[l+1],e,t)))}return r.pop(),i.join("")}(e,n,o.current()),eh)),i(),a}function eh(e,t,n){return 0===t?e:(n?"":" ")+e}function ey(e,t,n){let r=t.indexStack,o=e.children||[],a=[],i=-1,l=n.before;r.push(-1);let s=t.createTracker(n);for(;++i0&&("\r"===l||"\n"===l)&&"html"===u.type&&(a[a.length-1]=a[a.length-1].replace(/(\r?\n|\r)$/," "),l=" ",(s=t.createTracker(n)).move(a.join(""))),a.push(s.move(t.handle(u,e,t,{...s.current(),before:l,after:c}))),l=a[a.length-1].slice(-1)}return r.pop(),a.join("")}em.peek=function(){return"["},ek.peek=function(){return"~"};let eS={canContainEols:["delete"],enter:{strikethrough:function(e){this.enter({type:"delete",children:[]},e)}},exit:{strikethrough:function(e){this.exit(e)}}},eE={unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"]}],handlers:{delete:ek}};function ek(e,t,n,r){let o=(0,ei.j)(r),a=n.enter("strikethrough"),i=o.move("~~");return i+=ey(e,n,{...o.current(),before:i,after:"~"})+o.move("~~"),a(),i}var eA=n(57785);function ew(e,t,n){let r=e.value||"",o="`",a=-1;for(;RegExp("(^|[^`])"+o+"([^`]|$)").test(r);)o+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++a"none"===e?null:e),children:[]},e),this.setData("inTable",!0)},tableData:eC,tableHeader:eC,tableRow:function(e){this.enter({type:"tableRow",children:[]},e)}},exit:{codeText:function(e){let t=this.resume();this.getData("inTable")&&(t=t.replace(/\\([\\|])/g,e_));let n=this.stack[this.stack.length-1];n.value=t,this.exit(e)},table:function(e){this.exit(e),this.setData("inTable")},tableData:eR,tableHeader:eR,tableRow:eR}};function eR(e){this.exit(e)}function eC(e){this.enter({type:"tableCell",children:[]},e)}function e_(e,t){return"|"===t?t:e}let eI={exit:{taskListCheckValueChecked:eO,taskListCheckValueUnchecked:eO,paragraph:function(e){let t=this.stack[this.stack.length-2];if(t&&"listItem"===t.type&&"boolean"==typeof t.checked){let e=this.stack[this.stack.length-1],n=e.children[0];if(n&&"text"===n.type){let r;let o=t.children,a=-1;for(;++a-1?t.start:1)+(!1===n.options.incrementListMarker?0:t.children.indexOf(e))+a);let i=a.length+1;("tab"===o||"mixed"===o&&(t&&"list"===t.type&&t.spread||e.spread))&&(i=4*Math.ceil(i/4));let l=n.createTracker(r);l.move(a+" ".repeat(i-a.length)),l.shift(i);let s=n.enter("listItem"),c=n.indentLines(n.containerFlow(e,l.current()),function(e,t,n){return t?(n?"":" ".repeat(i))+e:(n?a:a+" ".repeat(i-a.length))+e});return s(),c}(e,t,n,{...r,...l.current()});return a&&(s=s.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,function(e){return e+i})),s}}};function eO(e){let t=this.stack[this.stack.length-2];t.checked="taskListCheckValueChecked"===e.type}function eL(e={}){let t=this.data();function n(e,n){let r=t[e]?t[e]:t[e]=[];r.push(n)}n("micromarkExtensions",(0,r.W)([f,{document:{91:{tokenize:C,continuation:{tokenize:_},exit:I}},text:{91:{tokenize:R},93:{add:"after",tokenize:v,resolveTo:x}}},function(e){let t=(e||{}).singleTilde,n={tokenize:function(e,n,r){let o=this.previous,a=this.events,i=0;return function(l){return 126===o&&"characterEscape"!==a[a.length-1][1].type?r(l):(e.enter("strikethroughSequenceTemporary"),function a(l){let s=(0,O.r)(o);if(126===l)return i>1?r(l):(e.consume(l),i++,a);if(i<2&&!t)return r(l);let c=e.exit("strikethroughSequenceTemporary"),u=(0,O.r)(l);return c._open=!u||2===u&&!!s,c._close=!s||2===s&&!!u,n(l)}(l))}},resolveAll:function(e,t){let n=-1;for(;++ns&&(s=e[c].length);++dl[d])&&(l[d]=e)}n.push(a)}a[c]=n,i[c]=o}let d=-1;if("object"==typeof n&&"length"in n)for(;++dl[d]&&(l[d]=a),g[d]=a),p[d]=i}a.splice(1,0,p),i.splice(1,0,g),c=-1;let f=[];for(;++ci&&(i=a):a=1,o=r+t.length,r=n.indexOf(t,o);return i}(o,"$")+1,2)),l=n.enter("mathFlow"),s=a.move(i);if(e.meta){let t=n.enter("mathFlowMeta");s+=a.move((0,c.T)(n,e.meta,{before:s,after:"\n",encode:["$"],...a.current()})),t()}return s+=a.move("\n"),o&&(s+=a.move(o+"\n")),s+=a.move(i),l(),s},inlineMath:n}};function n(e,n,r){let o=e.value||"",a=1;for(!t&&a++;RegExp("(^|[^$])"+"\\$".repeat(a)+"([^$]|$)").test(o);)a++;let i="$".repeat(a);/[^ \r\n]/.test(o)&&(/^[ \r\n]/.test(o)&&/[ \r\n]$/.test(o)||/^\$|\$$/.test(o))&&(o=" "+o+" ");let l=-1;for(;++l":"")+")"})}return u;function u(){var c;let u,d,p,g=[];if((!t||a(r,l,s[s.length-1]||null))&&!1===(g=Array.isArray(c=n(r,s))?c:"number"==typeof c?[!0,c]:[c])[0])return g;if(r.children&&"skip"!==g[0])for(d=(o?r.children.length:-1)+i,p=s.concat(r);d>-1&&d","Iacute":"\xcd","Icirc":"\xce","Igrave":"\xcc","Iuml":"\xcf","LT":"<","Ntilde":"\xd1","Oacute":"\xd3","Ocirc":"\xd4","Ograve":"\xd2","Oslash":"\xd8","Otilde":"\xd5","Ouml":"\xd6","QUOT":"\\"","REG":"\xae","THORN":"\xde","Uacute":"\xda","Ucirc":"\xdb","Ugrave":"\xd9","Uuml":"\xdc","Yacute":"\xdd","aacute":"\xe1","acirc":"\xe2","acute":"\xb4","aelig":"\xe6","agrave":"\xe0","amp":"&","aring":"\xe5","atilde":"\xe3","auml":"\xe4","brvbar":"\xa6","ccedil":"\xe7","cedil":"\xb8","cent":"\xa2","copy":"\xa9","curren":"\xa4","deg":"\xb0","divide":"\xf7","eacute":"\xe9","ecirc":"\xea","egrave":"\xe8","eth":"\xf0","euml":"\xeb","frac12":"\xbd","frac14":"\xbc","frac34":"\xbe","gt":">","iacute":"\xed","icirc":"\xee","iexcl":"\xa1","igrave":"\xec","iquest":"\xbf","iuml":"\xef","laquo":"\xab","lt":"<","macr":"\xaf","micro":"\xb5","middot":"\xb7","nbsp":"\xa0","not":"\xac","ntilde":"\xf1","oacute":"\xf3","ocirc":"\xf4","ograve":"\xf2","ordf":"\xaa","ordm":"\xba","oslash":"\xf8","otilde":"\xf5","ouml":"\xf6","para":"\xb6","plusmn":"\xb1","pound":"\xa3","quot":"\\"","raquo":"\xbb","reg":"\xae","sect":"\xa7","shy":"\xad","sup1":"\xb9","sup2":"\xb2","sup3":"\xb3","szlig":"\xdf","thorn":"\xfe","times":"\xd7","uacute":"\xfa","ucirc":"\xfb","ugrave":"\xf9","uml":"\xa8","uuml":"\xfc","yacute":"\xfd","yen":"\xa5","yuml":"\xff"}')},46561:function(e){"use strict";e.exports=JSON.parse('{"0":"�","128":"€","130":"‚","131":"ƒ","132":"„","133":"…","134":"†","135":"‡","136":"ˆ","137":"‰","138":"Š","139":"‹","140":"Œ","142":"Ž","145":"‘","146":"’","147":"“","148":"”","149":"•","150":"–","151":"—","152":"˜","153":"™","154":"š","155":"›","156":"œ","158":"ž","159":"Ÿ"}')}}]); \ No newline at end of file +`;function i(e){if(!e)return new TransformStream({transform:async(e,t)=>{t.enqueue(e)}});let t=new TextEncoder,n=new TextDecoder;return new TransformStream({transform:async(e,r)=>{let o=n.decode(e);r.enqueue(t.encode(a("text",o)))}})}Symbol("internal_openai_fn_messages");var l=class extends Response{constructor(e,t,n){let r=e;n&&(r=e.pipeThrough(n.stream)),super(r,{...t,status:200,headers:{"Content-Type":"text/plain; charset=utf-8","X-Experimental-Stream-Data":n?"true":"false",...null==t?void 0:t.headers}})}};new TextDecoder("utf-8")},22776:function(e,t,n){"use strict";n.d(t,{k:function(){return r}});let r=(e,t=21)=>(n=t)=>{let r="",o=n;for(;o--;)r+=e[Math.random()*e.length|0];return r}},82504:function(e,t,n){"use strict";n.d(t,{R:function(){return ea}});var r,o=n(2265),a=n(26272);let i=()=>{},l=i(),s=Object,c=e=>e===l,u=e=>"function"==typeof e,d=(e,t)=>({...e,...t}),p=e=>u(e.then),g=new WeakMap,f=0,m=e=>{let t,n;let r=typeof e,o=e&&e.constructor,a=o==Date;if(s(e)!==e||a||o==RegExp)t=a?e.toJSON():"symbol"==r?e.toString():"string"==r?JSON.stringify(e):""+e;else{if(t=g.get(e))return t;if(t=++f+"~",g.set(e,t),o==Array){for(n=0,t="@";nE&&typeof window.requestAnimationFrame!=S,w=(e,t)=>{let n=b.get(e);return[()=>!c(t)&&e.get(t)||h,r=>{if(!c(t)){let o=e.get(t);t in y||(y[t]=o),n[5](t,d(o,r),o||h)}},n[6],()=>!c(t)&&t in y?y[t]:!c(t)&&e.get(t)||h]},T=!0,[v,x]=E&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[i,i],R={initFocus:e=>(k&&document.addEventListener("visibilitychange",e),v("focus",e),()=>{k&&document.removeEventListener("visibilitychange",e),x("focus",e)}),initReconnect:e=>{let t=()=>{T=!0,e()},n=()=>{T=!1};return v("online",t),v("offline",n),()=>{x("online",t),x("offline",n)}}},C=!o.useId,_=!E||"Deno"in window,I=e=>A()?window.requestAnimationFrame(e):setTimeout(e,1),N=_?o.useEffect:o.useLayoutEffect,O="undefined"!=typeof navigator&&navigator.connection,L=!_&&O&&(["slow-2g","2g"].includes(O.effectiveType)||O.saveData),D=e=>{if(u(e))try{e=e()}catch(t){e=""}let t=e;return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?m(e):"",t]},M=0,P=()=>++M;var F={ERROR_REVALIDATE_EVENT:3,FOCUS_EVENT:0,MUTATE_EVENT:2,RECONNECT_EVENT:1};async function B(...e){let[t,n,r,o]=e,a=d({populateCache:!0,throwOnError:!0},"boolean"==typeof o?{revalidate:o}:o||{}),i=a.populateCache,s=a.rollbackOnError,g=a.optimisticData,f=!1!==a.revalidate,m=e=>"function"==typeof s?s(e):!1!==s,h=a.throwOnError;if(u(n)){let e=[],r=t.keys();for(let o of r)!/^\$(inf|sub)\$/.test(o)&&n(t.get(o)._k)&&e.push(o);return Promise.all(e.map(y))}return y(n);async function y(n){let o;let[a]=D(n);if(!a)return;let[s,d]=w(t,a),[y,S,E,k]=b.get(t),A=y[a],T=()=>f&&(delete E[a],delete k[a],A&&A[0])?A[0](2).then(()=>s().data):s().data;if(e.length<3)return T();let v=r,x=P();S[a]=[x,0];let R=!c(g),C=s(),_=C.data,I=C._c,N=c(I)?_:I;if(R&&d({data:g=u(g)?g(N,_):g,_c:N}),u(v))try{v=v(N)}catch(e){o=e}if(v&&p(v)){if(v=await v.catch(e=>{o=e}),x!==S[a][0]){if(o)throw o;return v}o&&R&&m(o)&&(i=!0,d({data:v=N,_c:l}))}i&&!o&&(u(i)&&(v=i(v,N)),d({data:v,error:l,_c:l})),S[a][1]=P();let O=await T();if(d({_c:l}),o){if(h)throw o;return}return i?O:v}}let U=(e,t)=>{for(let n in e)e[n][0]&&e[n][0](t)},z=(e,t)=>{if(!b.has(e)){let n=d(R,t),r={},o=B.bind(l,e),a=i,s={},c=(e,t)=>{let n=s[e]||[];return s[e]=n,n.push(t),()=>n.splice(n.indexOf(t),1)},u=(t,n,r)=>{e.set(t,n);let o=s[t];if(o)for(let e of o)e(n,r)},p=()=>{if(!b.has(e)&&(b.set(e,[r,{},{},{},o,u,c]),!_)){let t=n.initFocus(setTimeout.bind(l,U.bind(l,r,0))),o=n.initReconnect(setTimeout.bind(l,U.bind(l,r,1)));a=()=>{t&&t(),o&&o(),b.delete(e)}}};return p(),[e,o,p,a]}return[e,b.get(e)[4]]},[H,G]=z(new Map),$=d({onLoadingSlow:i,onSuccess:i,onError:i,onErrorRetry:(e,t,n,r,o)=>{let a=n.errorRetryCount,i=o.retryCount,l=~~((Math.random()+.5)*(1<<(i<8?i:8)))*n.errorRetryInterval;(c(a)||!(i>a))&&setTimeout(r,l,o)},onDiscarded:i,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:L?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:L?5e3:3e3,compare:(e,t)=>m(e)==m(t),isPaused:()=>!1,cache:H,mutate:G,fallback:{}},{isOnline:()=>T,isVisible:()=>{let e=k&&document.visibilityState;return c(e)||"hidden"!==e}}),j=(e,t)=>{let n=d(e,t);if(t){let{use:r,fallback:o}=e,{use:a,fallback:i}=t;r&&a&&(n.use=r.concat(a)),o&&i&&(n.fallback=d(o,i))}return n},W=(0,o.createContext)({}),V=E&&window.__SWR_DEVTOOLS_USE__,q=V?window.__SWR_DEVTOOLS_USE__:[],Y=e=>u(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}],K=()=>d($,(0,o.useContext)(W)),Z=q.concat(e=>(t,n,r)=>{let o=n&&((...e)=>{let[r]=D(t),[,,,o]=b.get(H),a=o[r];return c(a)?n(...e):(delete o[r],a)});return e(t,o,r)}),X=(e,t,n)=>{let r=t[e]||(t[e]=[]);return r.push(n),()=>{let e=r.indexOf(n);e>=0&&(r[e]=r[r.length-1],r.pop())}};V&&(window.__SWR_DEVTOOLS_REACT__=o);let Q=o.use||(e=>{if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;if("rejected"===e.status)throw e.reason;throw e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e}),J={dedupe:!0};s.defineProperty(e=>{let{value:t}=e,n=(0,o.useContext)(W),r=u(t),a=(0,o.useMemo)(()=>r?t(n):t,[r,n,t]),i=(0,o.useMemo)(()=>r?a:j(n,a),[r,n,a]),s=a&&a.provider,c=(0,o.useRef)(l);s&&!c.current&&(c.current=z(s(i.cache||H),a));let p=c.current;return p&&(i.cache=p[0],i.mutate=p[1]),N(()=>{if(p)return p[2]&&p[2](),p[3]},[]),(0,o.createElement)(W.Provider,d(e,{value:i}))},"defaultValue",{value:$});let ee=(r=(e,t,n)=>{let{cache:r,compare:i,suspense:s,fallbackData:p,revalidateOnMount:g,revalidateIfStale:f,refreshInterval:m,refreshWhenHidden:h,refreshWhenOffline:y,keepPreviousData:S}=n,[E,k,A,T]=b.get(r),[v,x]=D(e),R=(0,o.useRef)(!1),O=(0,o.useRef)(!1),L=(0,o.useRef)(v),M=(0,o.useRef)(t),U=(0,o.useRef)(n),z=()=>U.current,H=()=>z().isVisible()&&z().isOnline(),[G,$,j,W]=w(r,v),V=(0,o.useRef)({}).current,q=c(p)?n.fallback[v]:p,Y=(e,t)=>{for(let n in V)if("data"===n){if(!i(e[n],t[n])&&(!c(e[n])||!i(ei,t[n])))return!1}else if(t[n]!==e[n])return!1;return!0},K=(0,o.useMemo)(()=>{let e=!!v&&!!t&&(c(g)?!z().isPaused()&&!s&&(!!c(f)||f):g),n=t=>{let n=d(t);return(delete n._k,e)?{isValidating:!0,isLoading:!0,...n}:n},r=G(),o=W(),a=n(r),i=r===o?a:n(o),l=a;return[()=>{let e=n(G()),t=Y(e,l);return t?(l.data=e.data,l.isLoading=e.isLoading,l.isValidating=e.isValidating,l.error=e.error,l):(l=e,e)},()=>i]},[r,v]),Z=(0,a.useSyncExternalStore)((0,o.useCallback)(e=>j(v,(t,n)=>{Y(n,t)||e()}),[r,v]),K[0],K[1]),ee=!R.current,et=E[v]&&E[v].length>0,en=Z.data,er=c(en)?q:en,eo=Z.error,ea=(0,o.useRef)(er),ei=S?c(en)?ea.current:en:er,el=(!et||!!c(eo))&&(ee&&!c(g)?g:!z().isPaused()&&(s?!c(er)&&f:c(er)||f)),es=!!(v&&t&&ee&&el),ec=c(Z.isValidating)?es:Z.isValidating,eu=c(Z.isLoading)?es:Z.isLoading,ed=(0,o.useCallback)(async e=>{let t,r;let o=M.current;if(!v||!o||O.current||z().isPaused())return!1;let a=!0,s=e||{},d=!A[v]||!s.dedupe,p=()=>C?!O.current&&v===L.current&&R.current:v===L.current,g={isValidating:!1,isLoading:!1},f=()=>{$(g)},m=()=>{let e=A[v];e&&e[1]===r&&delete A[v]},b={isValidating:!0};c(G().data)&&(b.isLoading=!0);try{if(d&&($(b),n.loadingTimeout&&c(G().data)&&setTimeout(()=>{a&&p()&&z().onLoadingSlow(v,n)},n.loadingTimeout),A[v]=[o(x),P()]),[t,r]=A[v],t=await t,d&&setTimeout(m,n.dedupingInterval),!A[v]||A[v][1]!==r)return d&&p()&&z().onDiscarded(v),!1;g.error=l;let e=k[v];if(!c(e)&&(r<=e[0]||r<=e[1]||0===e[1]))return f(),d&&p()&&z().onDiscarded(v),!1;let s=G().data;g.data=i(s,t)?s:t,d&&p()&&z().onSuccess(t,v,n)}catch(n){m();let e=z(),{shouldRetryOnError:t}=e;!e.isPaused()&&(g.error=n,d&&p()&&(e.onError(n,v,e),(!0===t||u(t)&&t(n))&&H()&&e.onErrorRetry(n,v,e,e=>{let t=E[v];t&&t[0]&&t[0](F.ERROR_REVALIDATE_EVENT,e)},{retryCount:(s.retryCount||0)+1,dedupe:!0})))}return a=!1,f(),!0},[v,r]),ep=(0,o.useCallback)((...e)=>B(r,L.current,...e),[]);if(N(()=>{M.current=t,U.current=n,c(en)||(ea.current=en)}),N(()=>{if(!v)return;let e=ed.bind(l,J),t=0,n=X(v,E,(n,r={})=>{if(n==F.FOCUS_EVENT){let n=Date.now();z().revalidateOnFocus&&n>t&&H()&&(t=n+z().focusThrottleInterval,e())}else if(n==F.RECONNECT_EVENT)z().revalidateOnReconnect&&H()&&e();else if(n==F.MUTATE_EVENT)return ed();else if(n==F.ERROR_REVALIDATE_EVENT)return ed(r)});return O.current=!1,L.current=v,R.current=!0,$({_k:x}),el&&(c(er)||_?e():I(e)),()=>{O.current=!0,n()}},[v]),N(()=>{let e;function t(){let t=u(m)?m(G().data):m;t&&-1!==e&&(e=setTimeout(n,t))}function n(){!G().error&&(h||z().isVisible())&&(y||z().isOnline())?ed(J).then(t):t()}return t(),()=>{e&&(clearTimeout(e),e=-1)}},[m,h,y,v]),(0,o.useDebugValue)(ei),s&&c(er)&&v){if(!C&&_)throw Error("Fallback data is required when using suspense in SSR.");M.current=t,U.current=n,O.current=!1;let e=T[v];if(!c(e)){let t=ep(e);Q(t)}if(c(eo)){let e=ed(J);c(ei)||(e.status="fulfilled",e.value=!0),Q(e)}else throw eo}return{mutate:ep,get data(){return V.data=!0,ei},get error(){return V.error=!0,eo},get isValidating(){return V.isValidating=!0,ec},get isLoading(){return V.isLoading=!0,eu}}},function(...e){let t=K(),[n,o,a]=Y(e),i=j(t,a),l=r,{use:s}=i,c=(s||[]).concat(Z);for(let e=c.length;e--;)l=c[e](l);return l(n,o||i.fetcher||null,i)});var et=(0,n(22776).k)("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",7),en={text:0,function_call:1,data:2},er=e=>{let t=e.indexOf(":"),n=e.slice(0,t),r=Object.keys(en).find(e=>en[e]===Number(n)),o=e.slice(t+1),a=o;if(!o)return{type:r,value:""};try{a=JSON.parse(o)}catch(e){console.error("Failed to parse JSON value:",o)}return{type:r,value:a}},eo=async(e,t,n,r,o,a,i,l,s,c,u)=>{var d,p;let g=i.current;n(t.messages,!1);let f=await fetch(e,{method:"POST",body:JSON.stringify({messages:u?t.messages:t.messages.map(({role:e,content:t,name:n,function_call:r})=>({role:e,content:t,...void 0!==n&&{name:n},...void 0!==r&&{function_call:r}})),...a.current.body,...null==(d=t.options)?void 0:d.body,...void 0!==t.functions&&{functions:t.functions},...void 0!==t.function_call&&{function_call:t.function_call}}),credentials:a.current.credentials,headers:{...a.current.headers,...null==(p=t.options)?void 0:p.headers},...null!==l.current&&{signal:l.current.signal}}).catch(e=>{throw n(g,!1),e});if(c)try{await c(f)}catch(e){throw e}if(!f.ok)throw n(g,!1),Error(await f.text()||"Failed to fetch the chat response.");if(!f.body)throw Error("The response body is empty.");let m="true"===f.headers.get("X-Experimental-Stream-Data"),b=new Date,h=f.body.getReader(),y=function(e){let t=new TextDecoder;return e?function(e){let n=t.decode(e,{stream:!0}).split("\n");return n.map(er).filter(Boolean)}:function(e){return e?t.decode(e,{stream:!0}):""}}(m),S=[],E=[],k={},A=[],w=0;if(m){for(;;){let{value:e}=await h.read();if(e&&(A.push(e),w+=e.length,10!==e[e.length-1]))continue;if(0===A.length)break;let a=new Uint8Array(w),i=0;for(let e of A)a.set(e,i),i+=e.length;A.length=0,w=0;let s=y(a);if("string"==typeof s)throw Error("Invalid response format. Complex mode was set but the response is a string. This should never happen.");for(let{type:e,value:a}of s){"text"===e&&(k.text?k.text={...k.text,content:(k.text.content||"")+a}:k.text={id:et(),role:"assistant",content:a,createdAt:b});let i=null;if("function_call"===e){k.function_call=a;let e=k.function_call;if(e&&"string"==typeof e){let t=JSON.parse(e).function_call;i={id:et(),role:"assistant",content:"",function_call:t,name:t.name,createdAt:b},k.function_call=i}}if("data"===e){let e=JSON.parse(a);k.data?k.data=[...k.data,...e]:k.data=e}let s=k.data,c=k.text,u=[i,c].filter(Boolean);if(n([...t.messages,...u],!1),r([...o||[],...s||[]],!1),null===l.current){h.cancel();break}}}for(let[e,t]of Object.entries(k))s&&"text"===e&&s(t),"data"===e?E.push(t):S.push(t);return{messages:S,data:E}}{let e="",r=et(),o={id:r,createdAt:b,content:"",role:"assistant"};for(;;){let{done:r,value:a}=await h.read();if(r)break;if((e+=y(a)).startsWith('{"function_call":')?o.function_call=e:o.content=e,n([...t.messages,{...o}],!1),null===l.current){h.cancel();break}}if(e.startsWith('{"function_call":')){let r=JSON.parse(e).function_call;o.function_call=r,n([...t.messages,{...o}])}return s&&s(o),o}};function ea({api:e="/api/chat",id:t,initialMessages:n=[],initialInput:r="",sendExtraMessageFields:a,experimental_onFunctionCall:i,onResponse:l,onFinish:s,onError:c,credentials:u,headers:d,body:p}={}){let g=(0,o.useId)(),f=t||g,{data:m,mutate:b}=ee([e,f],null,{fallbackData:n}),{data:h=!1,mutate:y}=ee([f,"loading"],null),{data:S,mutate:E}=ee([f,"streamData"],null),k=(0,o.useRef)(m||[]);(0,o.useEffect)(()=>{k.current=m||[]},[m]);let A=(0,o.useRef)(null),w=(0,o.useRef)({credentials:u,headers:d,body:p});(0,o.useEffect)(()=>{w.current={credentials:u,headers:d,body:p}},[u,d,p]);let[T,v]=(0,o.useState)(),x=(0,o.useCallback)(async t=>{try{y(!0),v(void 0);let n=new AbortController;for(A.current=n;;){let n=await eo(e,t,b,E,S,w,k,A,s,l,a);if("messages"in n){let e=!1;for(let r of n.messages)if(void 0!==r.function_call&&"string"!=typeof r.function_call&&(e=!0,i)){let e=r.function_call,n=await i(k.current,e);if(void 0===n)break;t=n}if(!e)break}else{if(void 0===n.function_call||"string"==typeof n.function_call)break;if(i){let e=n.function_call,r=await i(k.current,e);if(void 0===r)break;t=r}}}A.current=null}catch(e){if("AbortError"===e.name)return A.current=null,null;c&&e instanceof Error&&c(e),v(e)}finally{y(!1)}},[b,y,e,w,l,s,c,v,E,S,a,i,k.current,A.current]),R=(0,o.useCallback)(async(e,{options:t,functions:n,function_call:r}={})=>{e.id||(e.id=et());let o={messages:k.current.concat(e),options:t,...void 0!==n&&{functions:n},...void 0!==r&&{function_call:r}};return x(o)},[x]),C=(0,o.useCallback)(async({options:e,functions:t,function_call:n}={})=>{if(0===k.current.length)return null;let r=k.current[k.current.length-1];if("assistant"===r.role){let r={messages:k.current.slice(0,-1),options:e,...void 0!==t&&{functions:t},...void 0!==n&&{function_call:n}};return x(r)}let o={messages:k.current,options:e,...void 0!==t&&{functions:t},...void 0!==n&&{function_call:n}};return x(o)},[x]),_=(0,o.useCallback)(()=>{A.current&&(A.current.abort(),A.current=null)},[]),I=(0,o.useCallback)(e=>{b(e,!1),k.current=e},[b]),[N,O]=(0,o.useState)(r),L=(0,o.useCallback)((e,{options:t,functions:n,function_call:r}={},o)=>{o&&(w.current={...w.current,...o}),e.preventDefault(),N&&(R({content:N,role:"user",createdAt:new Date},{options:t,functions:n,function_call:r}),O(""))},[N,R]);return{messages:m||[],error:T,append:R,reload:C,stop:_,setMessages:I,input:N,setInput:O,handleInputChange:e=>{O(e.target.value)},handleSubmit:L,isLoading:h,data:S}}},63034:function(e,t,n){"use strict";n.d(t,{T:function(){return o}});let r=document.createElement("i");function o(e){let t="&"+e+";";r.innerHTML=t;let n=r.textContent;return(59!==n.charCodeAt(n.length-1)||"semi"===e)&&n!==t&&n}},57785:function(e,t,n){"use strict";function r(e){if(!e._compiled){let t=(e.atBreak?"[\\r\\n][\\t ]*":"")+(e.before?"(?:"+e.before+")":"");e._compiled=RegExp((t?"("+t+")":"")+(/[|\\{}()[\]^$+*?.-]/.test(e.character)?"\\":"")+e.character+(e.after?"(?:"+e.after+")":""),"g")}return e._compiled}n.d(t,{T:function(){return r}})},62848:function(e,t,n){"use strict";n.d(t,{T:function(){return a}});var r=n(57785);function o(e,t,n){if("string"==typeof t&&(t=[t]),!t||0===t.length)return n;let r=-1;for(;++r=f)&&(!(e+1a?0:a+t:t>a?a:t,n=n>0?n:0,r.length<1e4)(o=Array.from(r)).unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);i0?(r(e,e.length,0,t),e):t}n.d(t,{V:function(){return o},d:function(){return r}})},75786:function(e,t,n){"use strict";n.d(t,{r:function(){return o}});var r=n(82659);function o(e){return null===e||(0,r.z3)(e)||(0,r.B8)(e)?1:(0,r.Xh)(e)?2:void 0}},6361:function(e,t,n){"use strict";n.d(t,{W:function(){return a}});var r=n(58180);let o={}.hasOwnProperty;function a(e){let t={},n=-1;for(;++n13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(65535&n)==65535||(65535&n)==65534||n>1114111?"�":String.fromCharCode(n)}n.d(t,{o:function(){return r}})},11559:function(e,t,n){"use strict";n.d(t,{v:function(){return i}});var r=n(63034),o=n(43012);let a=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function i(e){return e.replace(a,l)}function l(e,t,n){if(t)return t;let a=n.charCodeAt(0);if(35===a){let e=n.charCodeAt(1),t=120===e||88===e;return(0,o.o)(n.slice(t?2:1),t?16:10)}return(0,r.T)(n)||e}},93575:function(e,t,n){"use strict";function r(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}n.d(t,{d:function(){return r}})},80594:function(e,t,n){"use strict";function r(e,t,n){let r=[],o=-1;for(;++o{let r;if(!d&&b)return r=function(e,t,n={},r=s){if(void 0===window.IntersectionObserver&&void 0!==r){let o=e.getBoundingClientRect();return t(r,{isIntersecting:r,target:e,intersectionRatio:"number"==typeof n.threshold?n.threshold:0,time:0,boundingClientRect:o,intersectionRect:o,rootBounds:o}),()=>{}}let{id:o,observer:c,elements:u}=function(e){let t=Object.keys(e).sort().filter(t=>void 0!==e[t]).map(t=>{var n;return`${t}_${"root"===t?(n=e.root)?(i.has(n)||(l+=1,i.set(n,l.toString())),i.get(n)):"0":e[t]}`}).toString(),n=a.get(t);if(!n){let r;let o=new Map,i=new IntersectionObserver(t=>{t.forEach(t=>{var n;let a=t.isIntersecting&&r.some(e=>t.intersectionRatio>=e);e.trackVisibility&&void 0===t.isVisible&&(t.isVisible=a),null==(n=o.get(t.target))||n.forEach(e=>{e(a,t)})})},e);r=i.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),n={id:t,observer:i,elements:o},a.set(t,n)}return n}(n),d=u.get(e)||[];return u.has(e)||u.set(e,d),d.push(t),c.observe(e),function(){d.splice(d.indexOf(t),1),0===d.length&&(u.delete(e),c.unobserve(e)),0===u.size&&(c.disconnect(),a.delete(o))}}(b,(e,t)=>{E({inView:e,entry:t}),y.current&&y.current(e,t),t.isIntersecting&&u&&r&&(r(),r=void 0)},{root:c,rootMargin:o,threshold:e,trackVisibility:n,delay:t},g),()=>{r&&r()}},[Array.isArray(e)?e.toString():e,b,c,o,u,d,n,g,t]);let k=null==(m=S.entry)?void 0:m.target,A=r.useRef();b||!k||u||d||A.current===k||(A.current=k,E({inView:!!p,entry:void 0}));let w=[h,S.inView,S.entry];return w.ref=w[0],w.inView=w[1],w.entry=w[2],w}r.Component},19349:function(e,t,n){"use strict";n.d(t,{D:function(){return tJ}});var r={};n.r(r),n.d(r,{attentionMarkers:function(){return ez},contentInitial:function(){return eD},disable:function(){return eH},document:function(){return eL},flow:function(){return eP},flowInitial:function(){return eM},insideSpan:function(){return eU},string:function(){return eF},text:function(){return eB}});var o={};n.r(o),n.d(o,{boolean:function(){return tf},booleanish:function(){return tm},commaOrSpaceSeparated:function(){return tE},commaSeparated:function(){return tS},number:function(){return th},overloadedBoolean:function(){return tb},spaceSeparated:function(){return ty}});var a=n(2265),i=n(69934);function l(e){return e&&"object"==typeof e?"position"in e||"type"in e?c(e.position):"start"in e||"end"in e?c(e):"line"in e||"column"in e?s(e):"":""}function s(e){return u(e&&e.line)+":"+u(e&&e.column)}function c(e){return s(e&&e.start)+"-"+s(e&&e.end)}function u(e){return e&&"number"==typeof e?e:1}class d extends Error{constructor(e,t,n){let r=[null,null],o={start:{line:null,column:null},end:{line:null,column:null}};if(super(),"string"==typeof t&&(n=t,t=void 0),"string"==typeof n){let e=n.indexOf(":");-1===e?r[1]=n:(r[0]=n.slice(0,e),r[1]=n.slice(e+1))}t&&("type"in t||"position"in t?t.position&&(o=t.position):"start"in t||"end"in t?o=t:("line"in t||"column"in t)&&(o.start=t)),this.name=l(t)||"1:1",this.message="object"==typeof e?e.message:e,this.stack="","object"==typeof e&&e.stack&&(this.stack=e.stack),this.reason=this.message,this.fatal,this.line=o.start.line,this.column=o.start.column,this.position=o,this.source=r[0],this.ruleId=r[1],this.file,this.actual,this.expected,this.url,this.note}}d.prototype.file="",d.prototype.name="",d.prototype.reason="",d.prototype.message="",d.prototype.stack="",d.prototype.fatal=null,d.prototype.column=null,d.prototype.line=null,d.prototype.source=null,d.prototype.ruleId=null,d.prototype.position=null;let p={basename:function(e,t){let n;if(void 0!==t&&"string"!=typeof t)throw TypeError('"ext" argument must be a string');g(e);let r=0,o=-1,a=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;a--;)if(47===e.charCodeAt(a)){if(n){r=a+1;break}}else o<0&&(n=!0,o=a+1);return o<0?"":e.slice(r,o)}if(t===e)return"";let i=-1,l=t.length-1;for(;a--;)if(47===e.charCodeAt(a)){if(n){r=a+1;break}}else i<0&&(n=!0,i=a+1),l>-1&&(e.charCodeAt(a)===t.charCodeAt(l--)?l<0&&(o=a):(l=-1,o=i));return r===o?o=i:o<0&&(o=e.length),e.slice(r,o)},dirname:function(e){let t;if(g(e),0===e.length)return".";let n=-1,r=e.length;for(;--r;)if(47===e.charCodeAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.charCodeAt(0)?"/":".":1===n&&47===e.charCodeAt(0)?"//":e.slice(0,n)},extname:function(e){let t;g(e);let n=e.length,r=-1,o=0,a=-1,i=0;for(;n--;){let l=e.charCodeAt(n);if(47===l){if(t){o=n+1;break}continue}r<0&&(t=!0,r=n+1),46===l?a<0?a=n:1!==i&&(i=1):a>-1&&(i=-1)}return a<0||r<0||0===i||1===i&&a===r-1&&a===o+1?"":e.slice(a,r)},join:function(...e){let t,n=-1;for(;++n2){if((r=o.lastIndexOf("/"))!==o.length-1){r<0?(o="",a=0):a=(o=o.slice(0,r)).length-1-o.lastIndexOf("/"),i=s,l=0;continue}}else if(o.length>0){o="",a=0,i=s,l=0;continue}}t&&(o=o.length>0?o+"/..":"..",a=2)}else o.length>0?o+="/"+e.slice(i+1,s):o=e.slice(i+1,s),a=s-i-1;i=s,l=0}else 46===n&&l>-1?l++:l=-1}return o}(e,!t);return 0!==n.length||t||(n="."),n.length>0&&47===e.charCodeAt(e.length-1)&&(n+="/"),t?"/"+n:n}(t)},sep:"/"};function g(e){if("string"!=typeof e)throw TypeError("Path must be a string. Received "+JSON.stringify(e))}function f(e){return null!==e&&"object"==typeof e&&e.href&&e.origin}let m=["history","path","basename","stem","extname","dirname"];class b{constructor(e){let t,n;t=e?"string"==typeof e||i(e)?{value:e}:f(e)?{path:e}:e:{},this.data={},this.messages=[],this.history=[],this.cwd="/",this.value,this.stored,this.result,this.map;let r=-1;for(;++rt.length;i&&t.push(r);try{a=e.apply(this,t)}catch(e){if(i&&n)throw e;return r(e)}i||(a instanceof Promise?a.then(o,r):a instanceof Error?r(a):o(a))};function r(e,...o){n||(n=!0,t(e,...o))}function o(e){r(null,e)}})(l,o)(...i):r(null,...i)}(null,...t)},use:function(n){if("function"!=typeof n)throw TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}(),r=[],o={},a=-1;return l.data=function(e,n){return"string"==typeof e?2==arguments.length?(C("data",t),o[e]=n,l):T.call(o,e)&&o[e]||null:e?(C("data",t),o=e,l):o},l.Parser=void 0,l.Compiler=void 0,l.freeze=function(){if(t)return l;for(;++a{if(!e&&t&&n){let r=l.stringify(t,n);null==r||("string"==typeof r||i(r)?n.value=r:n.result=r),a(e,n)}else a(e)})}n(null,t)},l.processSync=function(e){let t;l.freeze(),x("processSync",l.Parser),R("processSync",l.Compiler);let n=N(e);return l.process(n,function(e){t=!0,E(e)}),I("processSync","process",t),n},l;function l(){let t=e(),n=-1;for(;++nr))return;let l=o.events.length,s=l;for(;s--;)if("exit"===o.events[s][0]&&"chunkFlow"===o.events[s][1].type){if(e){n=o.events[s][1].end;break}e=!0}for(b(i),a=l;at;){let t=a[n];o.containerState=t[1],t[0].exit.call(o,e)}a.length=t}function h(){t.write([null]),n=void 0,t=void 0,o.containerState._closeFlow=void 0}}},H={tokenize:function(e,t,n){return(0,P.f)(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};var G=n(56833);function $(e){let t,n,r,o,a,i,l;let s={},c=-1;for(;++c=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}},partial:!0},V={tokenize:function(e){let t=this,n=e.attempt(G.w,function(r){if(null===r){e.consume(r);return}return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n},e.attempt(this.parser.constructs.flowInitial,r,(0,P.f)(e,e.attempt(this.parser.constructs.flow,r,e.attempt(j,r)),"linePrefix")));return n;function r(r){if(null===r){e.consume(r);return}return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n}}},q={resolveAll:X()},Y=Z("string"),K=Z("text");function Z(e){return{tokenize:function(t){let n=this,r=this.parser.constructs[e],o=t.attempt(r,a,i);return a;function a(e){return s(e)?o(e):i(e)}function i(e){if(null===e){t.consume(e);return}return t.enter("data"),t.consume(e),l}function l(e){return s(e)?(t.exit("data"),o(e)):(t.consume(e),l)}function s(e){if(null===e)return!0;let t=r[e],o=-1;if(t)for(;++o=3&&(null===i||(0,F.Ch)(i))?(e.exit("thematicBreak"),t(i)):n(i)}(a)}}},et={name:"list",tokenize:function(e,t,n){let r=this,o=r.events[r.events.length-1],a=o&&"linePrefix"===o[1].type?o[2].sliceSerialize(o[1],!0).length:0,i=0;return function(t){let o=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===o?!r.containerState.marker||t===r.containerState.marker:(0,F.pY)(t)){if(r.containerState.type||(r.containerState.type=o,e.enter(o,{_container:!0})),"listUnordered"===o)return e.enter("listItemPrefix"),42===t||45===t?e.check(ee,n,l)(t):l(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),function t(o){return(0,F.pY)(o)&&++i<10?(e.consume(o),t):(!r.interrupt||i<2)&&(r.containerState.marker?o===r.containerState.marker:41===o||46===o)?(e.exit("listItemValue"),l(o)):n(o)}(t)}return n(t)};function l(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(G.w,r.interrupt?n:s,e.attempt(en,u,c))}function s(e){return r.containerState.initialBlankLine=!0,a++,u(e)}function c(t){return(0,F.xz)(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),u):n(t)}function u(n){return r.containerState.size=a+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}},continuation:{tokenize:function(e,t,n){let r=this;return r.containerState._closeFlow=void 0,e.check(G.w,function(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,(0,P.f)(e,t,"listItemIndent",r.containerState.size+1)(n)},function(n){return r.containerState.furtherBlankLines||!(0,F.xz)(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(er,t,o)(n))});function o(o){return r.containerState._closeFlow=!0,r.interrupt=void 0,(0,P.f)(e,e.attempt(et,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}},exit:function(e){e.exit(this.containerState.type)}},en={tokenize:function(e,t,n){let r=this;return(0,P.f)(e,function(e){let o=r.events[r.events.length-1];return!(0,F.xz)(e)&&o&&"listItemPrefixWhitespace"===o[1].type?t(e):n(e)},"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)},partial:!0},er={tokenize:function(e,t,n){let r=this;return(0,P.f)(e,function(e){let o=r.events[r.events.length-1];return o&&"listItemIndent"===o[1].type&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(e):n(e)},"listItemIndent",r.containerState.size+1)},partial:!0},eo={name:"blockQuote",tokenize:function(e,t,n){let r=this;return function(t){if(62===t){let n=r.containerState;return n.open||(e.enter("blockQuote",{_container:!0}),n.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),o}return n(t)};function o(n){return(0,F.xz)(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}},continuation:{tokenize:function(e,t,n){let r=this;return function(t){return(0,F.xz)(t)?(0,P.f)(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):o(t)};function o(r){return e.attempt(eo,t,n)(r)}}},exit:function(e){e.exit("blockQuote")}};function ea(e,t,n,r,o,a,i,l,s){let c=s||Number.POSITIVE_INFINITY,u=0;return function(t){return 60===t?(e.enter(r),e.enter(o),e.enter(a),e.consume(t),e.exit(a),d):null===t||32===t||41===t||(0,F.Av)(t)?n(t):(e.enter(r),e.enter(i),e.enter(l),e.enter("chunkString",{contentType:"string"}),f(t))};function d(n){return 62===n?(e.enter(a),e.consume(n),e.exit(a),e.exit(o),e.exit(r),t):(e.enter(l),e.enter("chunkString",{contentType:"string"}),p(n))}function p(t){return 62===t?(e.exit("chunkString"),e.exit(l),d(t)):null===t||60===t||(0,F.Ch)(t)?n(t):(e.consume(t),92===t?g:p)}function g(t){return 60===t||62===t||92===t?(e.consume(t),p):p(t)}function f(o){return!u&&(null===o||41===o||(0,F.z3)(o))?(e.exit("chunkString"),e.exit(l),e.exit(i),e.exit(r),t(o)):u999||null===d||91===d||93===d&&!i||94===d&&!s&&"_hiddenFootnoteSupport"in l.parser.constructs?n(d):93===d?(e.exit(a),e.enter(o),e.consume(d),e.exit(o),e.exit(r),t):(0,F.Ch)(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),u(d))}function u(t){return null===t||91===t||93===t||(0,F.Ch)(t)||s++>999?(e.exit("chunkString"),c(t)):(e.consume(t),i||(i=!(0,F.xz)(t)),92===t?d:u)}function d(t){return 91===t||92===t||93===t?(e.consume(t),s++,u):u(t)}}function el(e,t,n,r,o,a){let i;return function(t){return 34===t||39===t||40===t?(e.enter(r),e.enter(o),e.consume(t),e.exit(o),i=40===t?41:t,l):n(t)};function l(n){return n===i?(e.enter(o),e.consume(n),e.exit(o),e.exit(r),t):(e.enter(a),s(n))}function s(t){return t===i?(e.exit(a),l(i)):null===t?n(t):(0,F.Ch)(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),(0,P.f)(e,s,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(t))}function c(t){return t===i||null===t||(0,F.Ch)(t)?(e.exit("chunkString"),s(t)):(e.consume(t),92===t?u:c)}function u(t){return t===i||92===t?(e.consume(t),c):c(t)}}function es(e,t){let n;return function r(o){return(0,F.Ch)(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),n=!0,r):(0,F.xz)(o)?(0,P.f)(e,r,n?"linePrefix":"lineSuffix")(o):t(o)}}var ec=n(93575);let eu={tokenize:function(e,t,n){return function(t){return(0,F.z3)(t)?es(e,r)(t):n(t)};function r(t){return el(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function o(t){return(0,F.xz)(t)?(0,P.f)(e,a,"whitespace")(t):a(t)}function a(e){return null===e||(0,F.Ch)(e)?t(e):n(e)}},partial:!0},ed={name:"codeIndented",tokenize:function(e,t,n){let r=this;return function(t){return e.enter("codeIndented"),(0,P.f)(e,o,"linePrefix",5)(t)};function o(t){let o=r.events[r.events.length-1];return o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?function t(n){return null===n?a(n):(0,F.Ch)(n)?e.attempt(ep,t,a)(n):(e.enter("codeFlowValue"),function n(r){return null===r||(0,F.Ch)(r)?(e.exit("codeFlowValue"),t(r)):(e.consume(r),n)}(n))}(t):n(t)}function a(n){return e.exit("codeIndented"),t(n)}}},ep={tokenize:function(e,t,n){let r=this;return o;function o(t){return r.parser.lazy[r.now().line]?n(t):(0,F.Ch)(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o):(0,P.f)(e,a,"linePrefix",5)(t)}function a(e){let a=r.events[r.events.length-1];return a&&"linePrefix"===a[1].type&&a[2].sliceSerialize(a[1],!0).length>=4?t(e):(0,F.Ch)(e)?o(e):n(e)}},partial:!0},eg={name:"setextUnderline",tokenize:function(e,t,n){let r;let o=this;return function(t){let i,l=o.events.length;for(;l--;)if("lineEnding"!==o.events[l][1].type&&"linePrefix"!==o.events[l][1].type&&"content"!==o.events[l][1].type){i="paragraph"===o.events[l][1].type;break}return!o.parser.lazy[o.now().line]&&(o.interrupt||i)?(e.enter("setextHeadingLine"),r=t,e.enter("setextHeadingLineSequence"),function t(n){return n===r?(e.consume(n),t):(e.exit("setextHeadingLineSequence"),(0,F.xz)(n)?(0,P.f)(e,a,"lineSuffix")(n):a(n))}(t)):n(t)};function a(r){return null===r||(0,F.Ch)(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}},resolveTo:function(e,t){let n,r,o,a=e.length;for(;a--;)if("enter"===e[a][0]){if("content"===e[a][1].type){n=a;break}"paragraph"===e[a][1].type&&(r=a)}else"content"===e[a][1].type&&e.splice(a,1),o||"definition"!==e[a][1].type||(o=a);let i={type:"setextHeading",start:Object.assign({},e[r][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[r][1].type="setextHeadingText",o?(e.splice(r,0,["enter",i,t]),e.splice(o+1,0,["exit",e[n][1],t]),e[n][1].end=Object.assign({},e[o][1].end)):e[n][1]=i,e.push(["exit",i,t]),e}},ef=["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"],em=["pre","script","style","textarea"],eb={tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(G.w,t,n)}},partial:!0},eh={tokenize:function(e,t,n){let r=this;return function(t){return(0,F.Ch)(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o):n(t)};function o(e){return r.parser.lazy[r.now().line]?n(e):t(e)}},partial:!0},ey={tokenize:function(e,t,n){let r=this;return function(t){return null===t?n(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o)};function o(e){return r.parser.lazy[r.now().line]?n(e):t(e)}},partial:!0},eS={name:"codeFenced",tokenize:function(e,t,n){let r;let o=this,a={tokenize:function(e,t,n){let a=0;return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i};function i(t){return e.enter("codeFencedFence"),(0,F.xz)(t)?(0,P.f)(e,s,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):s(t)}function s(t){return t===r?(e.enter("codeFencedFenceSequence"),function t(o){return o===r?(a++,e.consume(o),t):a>=l?(e.exit("codeFencedFenceSequence"),(0,F.xz)(o)?(0,P.f)(e,c,"whitespace")(o):c(o)):n(o)}(t)):n(t)}function c(r){return null===r||(0,F.Ch)(r)?(e.exit("codeFencedFence"),t(r)):n(r)}},partial:!0},i=0,l=0;return function(t){return function(t){let a=o.events[o.events.length-1];return i=a&&"linePrefix"===a[1].type?a[2].sliceSerialize(a[1],!0).length:0,r=t,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),function t(o){return o===r?(l++,e.consume(o),t):l<3?n(o):(e.exit("codeFencedFenceSequence"),(0,F.xz)(o)?(0,P.f)(e,s,"whitespace")(o):s(o))}(t)}(t)};function s(a){return null===a||(0,F.Ch)(a)?(e.exit("codeFencedFence"),o.interrupt?t(a):e.check(ey,u,f)(a)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),function t(o){return null===o||(0,F.Ch)(o)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),s(o)):(0,F.xz)(o)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),(0,P.f)(e,c,"whitespace")(o)):96===o&&o===r?n(o):(e.consume(o),t)}(a))}function c(t){return null===t||(0,F.Ch)(t)?s(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),function t(o){return null===o||(0,F.Ch)(o)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),s(o)):96===o&&o===r?n(o):(e.consume(o),t)}(t))}function u(t){return e.attempt(a,f,d)(t)}function d(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),p}function p(t){return i>0&&(0,F.xz)(t)?(0,P.f)(e,g,"linePrefix",i+1)(t):g(t)}function g(t){return null===t||(0,F.Ch)(t)?e.check(ey,u,f)(t):(e.enter("codeFlowValue"),function t(n){return null===n||(0,F.Ch)(n)?(e.exit("codeFlowValue"),g(n)):(e.consume(n),t)}(t))}function f(n){return e.exit("codeFenced"),t(n)}},concrete:!0};var eE=n(63034);let ek={name:"characterReference",tokenize:function(e,t,n){let r,o;let a=this,i=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),l};function l(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),s):(e.enter("characterReferenceValue"),r=31,o=F.H$,c(t))}function s(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),r=6,o=F.AF,c):(e.enter("characterReferenceValue"),r=7,o=F.pY,c(t))}function c(l){if(59===l&&i){let r=e.exit("characterReferenceValue");return o!==F.H$||(0,eE.T)(a.sliceSerialize(r))?(e.enter("characterReferenceMarker"),e.consume(l),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(l)}return o(l)&&i++1&&e[u][1].end.offset-e[u][1].start.offset>1?2:1;let d=Object.assign({},e[n][1].end),p=Object.assign({},e[u][1].start);eN(d,-l),eN(p,l),a={type:l>1?"strongSequence":"emphasisSequence",start:d,end:Object.assign({},e[n][1].end)},i={type:l>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[u][1].start),end:p},o={type:l>1?"strongText":"emphasisText",start:Object.assign({},e[n][1].end),end:Object.assign({},e[u][1].start)},r={type:l>1?"strong":"emphasis",start:Object.assign({},a.start),end:Object.assign({},i.end)},e[n][1].end=Object.assign({},a.start),e[u][1].start=Object.assign({},i.end),s=[],e[n][1].end.offset-e[n][1].start.offset&&(s=(0,U.V)(s,[["enter",e[n][1],t],["exit",e[n][1],t]])),s=(0,U.V)(s,[["enter",r,t],["enter",a,t],["exit",a,t],["enter",o,t]]),s=(0,U.V)(s,(0,J.C)(t.parser.constructs.insideSpan.null,e.slice(n+1,u),t)),s=(0,U.V)(s,[["exit",o,t],["enter",i,t],["exit",i,t],["exit",r,t]]),e[u][1].end.offset-e[u][1].start.offset?(c=2,s=(0,U.V)(s,[["enter",e[u][1],t],["exit",e[u][1],t]])):c=0,(0,U.d)(e,n-1,u-n+3,s),u=n+s.length-c-2;break}}for(u=-1;++ua&&"whitespace"===e[o][1].type&&(o-=2),"atxHeadingSequence"===e[o][1].type&&(a===o-1||o-4>a&&"whitespace"===e[o-2][1].type)&&(o-=a+1===o?2:4),o>a&&(n={type:"atxHeadingText",start:e[a][1].start,end:e[o][1].end},r={type:"chunkText",start:e[a][1].start,end:e[o][1].end,contentType:"text"},(0,U.d)(e,a,o-a+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]])),e}},42:ee,45:[eg,ee],60:{name:"htmlFlow",tokenize:function(e,t,n){let r,o,a,i,l;let s=this;return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),c};function c(i){return 33===i?(e.consume(i),u):47===i?(e.consume(i),o=!0,g):63===i?(e.consume(i),r=3,s.interrupt?t:O):(0,F.jv)(i)?(e.consume(i),a=String.fromCharCode(i),f):n(i)}function u(o){return 45===o?(e.consume(o),r=2,d):91===o?(e.consume(o),r=5,i=0,p):(0,F.jv)(o)?(e.consume(o),r=4,s.interrupt?t:O):n(o)}function d(r){return 45===r?(e.consume(r),s.interrupt?t:O):n(r)}function p(r){let o="CDATA[";return r===o.charCodeAt(i++)?(e.consume(r),i===o.length)?s.interrupt?t:T:p:n(r)}function g(t){return(0,F.jv)(t)?(e.consume(t),a=String.fromCharCode(t),f):n(t)}function f(i){if(null===i||47===i||62===i||(0,F.z3)(i)){let l=47===i,c=a.toLowerCase();return!l&&!o&&em.includes(c)?(r=1,s.interrupt?t(i):T(i)):ef.includes(a.toLowerCase())?(r=6,l)?(e.consume(i),m):s.interrupt?t(i):T(i):(r=7,s.interrupt&&!s.parser.lazy[s.now().line]?n(i):o?function t(n){return(0,F.xz)(n)?(e.consume(n),t):A(n)}(i):b(i))}return 45===i||(0,F.H$)(i)?(e.consume(i),a+=String.fromCharCode(i),f):n(i)}function m(r){return 62===r?(e.consume(r),s.interrupt?t:T):n(r)}function b(t){return 47===t?(e.consume(t),A):58===t||95===t||(0,F.jv)(t)?(e.consume(t),h):(0,F.xz)(t)?(e.consume(t),b):A(t)}function h(t){return 45===t||46===t||58===t||95===t||(0,F.H$)(t)?(e.consume(t),h):y(t)}function y(t){return 61===t?(e.consume(t),S):(0,F.xz)(t)?(e.consume(t),y):b(t)}function S(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),l=t,E):(0,F.xz)(t)?(e.consume(t),S):function t(n){return null===n||34===n||39===n||47===n||60===n||61===n||62===n||96===n||(0,F.z3)(n)?y(n):(e.consume(n),t)}(t)}function E(t){return t===l?(e.consume(t),l=null,k):null===t||(0,F.Ch)(t)?n(t):(e.consume(t),E)}function k(e){return 47===e||62===e||(0,F.xz)(e)?b(e):n(e)}function A(t){return 62===t?(e.consume(t),w):n(t)}function w(t){return null===t||(0,F.Ch)(t)?T(t):(0,F.xz)(t)?(e.consume(t),w):n(t)}function T(t){return 45===t&&2===r?(e.consume(t),C):60===t&&1===r?(e.consume(t),_):62===t&&4===r?(e.consume(t),L):63===t&&3===r?(e.consume(t),O):93===t&&5===r?(e.consume(t),N):(0,F.Ch)(t)&&(6===r||7===r)?(e.exit("htmlFlowData"),e.check(eb,D,v)(t)):null===t||(0,F.Ch)(t)?(e.exit("htmlFlowData"),v(t)):(e.consume(t),T)}function v(t){return e.check(eh,x,D)(t)}function x(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),R}function R(t){return null===t||(0,F.Ch)(t)?v(t):(e.enter("htmlFlowData"),T(t))}function C(t){return 45===t?(e.consume(t),O):T(t)}function _(t){return 47===t?(e.consume(t),a="",I):T(t)}function I(t){if(62===t){let n=a.toLowerCase();return em.includes(n)?(e.consume(t),L):T(t)}return(0,F.jv)(t)&&a.length<8?(e.consume(t),a+=String.fromCharCode(t),I):T(t)}function N(t){return 93===t?(e.consume(t),O):T(t)}function O(t){return 62===t?(e.consume(t),L):45===t&&2===r?(e.consume(t),O):T(t)}function L(t){return null===t||(0,F.Ch)(t)?(e.exit("htmlFlowData"),D(t)):(e.consume(t),L)}function D(n){return e.exit("htmlFlow"),t(n)}},resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););return t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e},concrete:!0},61:eg,95:ee,96:eS,126:eS},eF={38:ek,92:eA},eB={[-5]:ew,[-4]:ew,[-3]:ew,33:eC,38:ek,42:eI,60:[{name:"autolink",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o};function o(t){return(0,F.jv)(t)?(e.consume(t),a):l(t)}function a(t){return 43===t||45===t||46===t||(0,F.H$)(t)?(r=1,function t(n){return 58===n?(e.consume(n),r=0,i):(43===n||45===n||46===n||(0,F.H$)(n))&&r++<32?(e.consume(n),t):(r=0,l(n))}(t)):l(t)}function i(r){return 62===r?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t):null===r||32===r||60===r||(0,F.Av)(r)?n(r):(e.consume(r),i)}function l(t){return 64===t?(e.consume(t),s):(0,F.n9)(t)?(e.consume(t),l):n(t)}function s(o){return(0,F.H$)(o)?function o(a){return 46===a?(e.consume(a),r=0,s):62===a?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(a),e.exit("autolinkMarker"),e.exit("autolink"),t):function t(a){if((45===a||(0,F.H$)(a))&&r++<63){let n=45===a?t:o;return e.consume(a),n}return n(a)}(a)}(o):n(o)}}},{name:"htmlText",tokenize:function(e,t,n){let r,o,a;let i=this;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),l};function l(t){return 33===t?(e.consume(t),s):47===t?(e.consume(t),E):63===t?(e.consume(t),y):(0,F.jv)(t)?(e.consume(t),A):n(t)}function s(t){return 45===t?(e.consume(t),c):91===t?(e.consume(t),o=0,g):(0,F.jv)(t)?(e.consume(t),h):n(t)}function c(t){return 45===t?(e.consume(t),p):n(t)}function u(t){return null===t?n(t):45===t?(e.consume(t),d):(0,F.Ch)(t)?(a=u,I(t)):(e.consume(t),u)}function d(t){return 45===t?(e.consume(t),p):u(t)}function p(e){return 62===e?_(e):45===e?d(e):u(e)}function g(t){let r="CDATA[";return t===r.charCodeAt(o++)?(e.consume(t),o===r.length?f:g):n(t)}function f(t){return null===t?n(t):93===t?(e.consume(t),m):(0,F.Ch)(t)?(a=f,I(t)):(e.consume(t),f)}function m(t){return 93===t?(e.consume(t),b):f(t)}function b(t){return 62===t?_(t):93===t?(e.consume(t),b):f(t)}function h(t){return null===t||62===t?_(t):(0,F.Ch)(t)?(a=h,I(t)):(e.consume(t),h)}function y(t){return null===t?n(t):63===t?(e.consume(t),S):(0,F.Ch)(t)?(a=y,I(t)):(e.consume(t),y)}function S(e){return 62===e?_(e):y(e)}function E(t){return(0,F.jv)(t)?(e.consume(t),k):n(t)}function k(t){return 45===t||(0,F.H$)(t)?(e.consume(t),k):function t(n){return(0,F.Ch)(n)?(a=t,I(n)):(0,F.xz)(n)?(e.consume(n),t):_(n)}(t)}function A(t){return 45===t||(0,F.H$)(t)?(e.consume(t),A):47===t||62===t||(0,F.z3)(t)?w(t):n(t)}function w(t){return 47===t?(e.consume(t),_):58===t||95===t||(0,F.jv)(t)?(e.consume(t),T):(0,F.Ch)(t)?(a=w,I(t)):(0,F.xz)(t)?(e.consume(t),w):_(t)}function T(t){return 45===t||46===t||58===t||95===t||(0,F.H$)(t)?(e.consume(t),T):function t(n){return 61===n?(e.consume(n),v):(0,F.Ch)(n)?(a=t,I(n)):(0,F.xz)(n)?(e.consume(n),t):w(n)}(t)}function v(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),r=t,x):(0,F.Ch)(t)?(a=v,I(t)):(0,F.xz)(t)?(e.consume(t),v):(e.consume(t),R)}function x(t){return t===r?(e.consume(t),r=void 0,C):null===t?n(t):(0,F.Ch)(t)?(a=x,I(t)):(e.consume(t),x)}function R(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||(0,F.z3)(t)?w(t):(e.consume(t),R)}function C(e){return 47===e||62===e||(0,F.z3)(e)?w(e):n(e)}function _(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}function I(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),N}function N(t){return(0,F.xz)(t)?(0,P.f)(e,O,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):O(t)}function O(t){return e.enter("htmlTextData"),a(t)}}}],91:eO,92:[{name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return(0,F.Ch)(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}},eA],93:eT,95:eI,96:{name:"codeText",tokenize:function(e,t,n){let r,o,a=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),function t(n){return 96===n?(e.consume(n),a++,t):(e.exit("codeTextSequence"),i(n))}(t)};function i(s){return null===s?n(s):32===s?(e.enter("space"),e.consume(s),e.exit("space"),i):96===s?(o=e.enter("codeTextSequence"),r=0,function n(i){return 96===i?(e.consume(i),r++,n):r===a?(e.exit("codeTextSequence"),e.exit("codeText"),t(i)):(o.type="codeTextData",l(i))}(s)):(0,F.Ch)(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),i):(e.enter("codeTextData"),l(s))}function l(t){return null===t||32===t||96===t||(0,F.Ch)(t)?(e.exit("codeTextData"),i(t)):(e.consume(t),l)}},resolve:function(e){let t,n,r=e.length-4,o=3;if(("lineEnding"===e[3][1].type||"space"===e[o][1].type)&&("lineEnding"===e[r][1].type||"space"===e[r][1].type)){for(t=o;++t0){let e=a.tokenStack[a.tokenStack.length-1],t=e[1]||eY;t.call(a,void 0,e[0])}for(n.position={start:eq(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:eq(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},c=-1;++c-1){let e=n[0];"string"==typeof e?n[0]=e.slice(o):n.shift()}i>0&&n.push(e[a].slice(0,i))}return n}(i,e)}function p(){let{line:e,column:t,offset:n,_index:o,_bufferIndex:a}=r;return{line:e,column:t,offset:n,_index:o,_bufferIndex:a}}function g(e,t){t.restore()}function f(e,t){return function(n,o,a){let i,u,d,g;return Array.isArray(n)?f(n):"tokenize"in n?f([n]):function(e){let t=null!==e&&n[e],r=null!==e&&n.null,o=[...Array.isArray(t)?t:t?[t]:[],...Array.isArray(r)?r:r?[r]:[]];return f(o)(e)};function f(e){return(i=e,u=0,0===e.length)?a:m(e[u])}function m(e){return function(n){return(g=function(){let e=p(),t=c.previous,n=c.currentConstruct,o=c.events.length,a=Array.from(l);return{restore:function(){r=e,c.previous=t,c.currentConstruct=n,c.events.length=o,l=a,b()},from:o}}(),d=e,e.partial||(c.currentConstruct=e),e.name&&c.parser.constructs.disable.null.includes(e.name))?y(n):e.tokenize.call(t?Object.assign(Object.create(c),t):c,s,h,y)(n)}}function h(t){return e(d,g),o}function y(e){return(g.restore(),++u{let n=this.data("settings");return eV(t,Object.assign({},n,e,{extensions:this.data("micromarkExtensions")||[],mdastExtensions:this.data("fromMarkdownExtensions")||[]}))}})}function eZ(e){let t=[],n=-1,r=0,o=0;for(;++n55295&&a<57344){let t=e.charCodeAt(n+1);a<56320&&t>56319&&t<57344?(i=String.fromCharCode(a,t),o=1):i="�"}else i=String.fromCharCode(a);i&&(t.push(e.slice(r,n),encodeURIComponent(i)),r=n+o+1,i=""),o&&(n+=o,o=0)}return t.join("")+e.slice(r)}var eX=n(37462);let eQ=function(e,t,n,r){"function"==typeof t&&"function"!=typeof n&&(r=n,n=t,t=null),(0,eX.S4)(e,t,function(e,t){let r=t[t.length-1];return n(e,r?r.children.indexOf(e):null,r)},r)},eJ=e1("start"),e0=e1("end");function e1(e){return function(t){let n=t&&t.position&&t.position[e]||{};return{line:n.line||null,column:n.column||null,offset:n.offset>-1?n.offset:null}}}let e2={}.hasOwnProperty;function e3(e){return String(e||"").toUpperCase()}function e4(e,t){let n;let r=String(t.identifier).toUpperCase(),o=eZ(r.toLowerCase()),a=e.footnoteOrder.indexOf(r);-1===a?(e.footnoteOrder.push(r),e.footnoteCounts[r]=1,n=e.footnoteOrder.length):(e.footnoteCounts[r]++,n=a+1);let i=e.footnoteCounts[r],l={type:"element",tagName:"a",properties:{href:"#"+e.clobberPrefix+"fn-"+o,id:e.clobberPrefix+"fnref-"+o+(i>1?"-"+i:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(n)}]};e.patch(t,l);let s={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,s),e.applyData(t,s)}function e5(e,t){let n=t.referenceType,r="]";if("collapsed"===n?r+="[]":"full"===n&&(r+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return{type:"text",value:"!["+t.alt+r};let o=e.all(t),a=o[0];a&&"text"===a.type?a.value="["+a.value:o.unshift({type:"text",value:"["});let i=o[o.length-1];return i&&"text"===i.type?i.value+=r:o.push({type:"text",value:r}),o}function e9(e){let t=e.spread;return null==t?e.children.length>1:t}function e6(e,t,n){let r=0,o=e.length;if(t){let t=e.codePointAt(r);for(;9===t||32===t;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(o-1);for(;9===t||32===t;)o--,t=e.codePointAt(o-1)}return o>r?e.slice(r,o):""}let e8={blockquote:function(e,t){let n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)},break:function(e,t){let n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]},code:function(e,t){let n=t.value?t.value+"\n":"",r=t.lang?t.lang.match(/^[^ \t]+(?=[ \t]|$)/):null,o={};r&&(o.className=["language-"+r]);let a={type:"element",tagName:"code",properties:o,children:[{type:"text",value:n}]};return t.meta&&(a.data={meta:t.meta}),e.patch(t,a),a={type:"element",tagName:"pre",properties:{},children:[a=e.applyData(t,a)]},e.patch(t,a),a},delete:function(e,t){let n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){let n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},footnoteReference:e4,footnote:function(e,t){let n=e.footnoteById,r=1;for(;(r in n);)r++;let o=String(r);return n[o]={type:"footnoteDefinition",identifier:o,children:[{type:"paragraph",children:t.children}],position:t.position},e4(e,{type:"footnoteReference",identifier:o,position:t.position})},heading:function(e,t){let n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},html:function(e,t){if(e.dangerous){let n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}return null},imageReference:function(e,t){let n=e.definition(t.identifier);if(!n)return e5(e,t);let r={src:eZ(n.url||""),alt:t.alt};null!==n.title&&void 0!==n.title&&(r.title=n.title);let o={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,o),e.applyData(t,o)},image:function(e,t){let n={src:eZ(t.url)};null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt),null!==t.title&&void 0!==t.title&&(n.title=t.title);let r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)},inlineCode:function(e,t){let n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);let r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)},linkReference:function(e,t){let n=e.definition(t.identifier);if(!n)return e5(e,t);let r={href:eZ(n.url||"")};null!==n.title&&void 0!==n.title&&(r.title=n.title);let o={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)},link:function(e,t){let n={href:eZ(t.url)};null!==t.title&&void 0!==t.title&&(n.title=t.title);let r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},listItem:function(e,t,n){let r=e.all(t),o=n?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;let n=e.children,r=-1;for(;!t&&++r0&&e.children.unshift({type:"text",value:" "}),e.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),a.className=["task-list-item"]}let l=-1;for(;++l0){let r={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},a=eJ(t.children[1]),i=e0(t.children[t.children.length-1]);a.line&&i.line&&(r.position={start:a,end:i}),o.push(r)}let a={type:"element",tagName:"table",properties:{},children:e.wrap(o,!0)};return e.patch(t,a),e.applyData(t,a)},tableCell:function(e,t){let n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){let r=n?n.children:void 0,o=r?r.indexOf(t):1,a=0===o?"th":"td",i=n&&"table"===n.type?n.align:void 0,l=i?i.length:t.children.length,s=-1,c=[];for(;++s0,!0),r[0]),o=r.index+r[0].length,r=n.exec(t);return a.push(e6(t.slice(o),o>0,!1)),a.join("")}(String(t.value))};return e.patch(t,n),e.applyData(t,n)},thematicBreak:function(e,t){let n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)},toml:e7,yaml:e7,definition:e7,footnoteDefinition:e7};function e7(){return null}let te={}.hasOwnProperty;function tt(e,t){e.position&&(t.position={start:eJ(e),end:e0(e)})}function tn(e,t){let n=t;if(e&&e.data){let t=e.data.hName,r=e.data.hChildren,o=e.data.hProperties;"string"==typeof t&&("element"===n.type?n.tagName=t:n={type:"element",tagName:t,properties:{},children:[]}),"element"===n.type&&o&&(n.properties={...n.properties,...o}),"children"in n&&n.children&&null!=r&&(n.children=r)}return n}function tr(e,t,n){let r=t&&t.type;if(!r)throw Error("Expected node, got `"+t+"`");return te.call(e.handlers,r)?e.handlers[r](e,t,n):e.passThrough&&e.passThrough.includes(r)?"children"in t?{...t,children:to(e,t)}:t:e.unknownHandler?e.unknownHandler(e,t,n):function(e,t){let n=t.data||{},r="value"in t&&!(te.call(n,"hProperties")||te.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:to(e,t)};return e.patch(t,r),e.applyData(t,r)}(e,t)}function to(e,t){let n=[];if("children"in t){let r=t.children,o=-1;for(;++o0&&n.push({type:"text",value:"\n"}),n}function ti(e,t){let n=function(e,t){let n=t||{},r=n.allowDangerousHtml||!1,o={};return i.dangerous=r,i.clobberPrefix=void 0===n.clobberPrefix||null===n.clobberPrefix?"user-content-":n.clobberPrefix,i.footnoteLabel=n.footnoteLabel||"Footnotes",i.footnoteLabelTagName=n.footnoteLabelTagName||"h2",i.footnoteLabelProperties=n.footnoteLabelProperties||{className:["sr-only"]},i.footnoteBackLabel=n.footnoteBackLabel||"Back to content",i.unknownHandler=n.unknownHandler,i.passThrough=n.passThrough,i.handlers={...e8,...n.handlers},i.definition=function(e){let t=Object.create(null);if(!e||!e.type)throw Error("mdast-util-definitions expected node");return eQ(e,"definition",e=>{let n=e3(e.identifier);n&&!e2.call(t,n)&&(t[n]=e)}),function(e){let n=e3(e);return n&&e2.call(t,n)?t[n]:null}}(e),i.footnoteById=o,i.footnoteOrder=[],i.footnoteCounts={},i.patch=tt,i.applyData=tn,i.one=function(e,t){return tr(i,e,t)},i.all=function(e){return to(i,e)},i.wrap=ta,i.augment=a,eQ(e,"footnoteDefinition",e=>{let t=String(e.identifier).toUpperCase();te.call(o,t)||(o[t]=e)}),i;function a(e,t){if(e&&"data"in e&&e.data){let n=e.data;n.hName&&("element"!==t.type&&(t={type:"element",tagName:"",properties:{},children:[]}),t.tagName=n.hName),"element"===t.type&&n.hProperties&&(t.properties={...t.properties,...n.hProperties}),"children"in t&&t.children&&n.hChildren&&(t.children=n.hChildren)}if(e){let n="type"in e?e:{position:e};!n||!n.position||!n.position.start||!n.position.start.line||!n.position.start.column||!n.position.end||!n.position.end.line||!n.position.end.column||(t.position={start:eJ(n),end:e0(n)})}return t}function i(e,t,n,r){return Array.isArray(n)&&(r=n,n={}),a(e,{type:"element",tagName:t,properties:n||{},children:r||[]})}}(e,t),r=n.one(e,null),o=function(e){let t=[],n=-1;for(;++n1?"-"+l:""),dataFootnoteBackref:!0,className:["data-footnote-backref"],ariaLabel:e.footnoteBackLabel},children:[{type:"text",value:"↩"}]};l>1&&t.children.push({type:"element",tagName:"sup",children:[{type:"text",value:String(l)}]}),s.length>0&&s.push({type:"text",value:" "}),s.push(t)}let c=o[o.length-1];if(c&&"element"===c.type&&"p"===c.tagName){let e=c.children[c.children.length-1];e&&"text"===e.type?e.value+=" ":c.children.push({type:"text",value:" "}),c.children.push(...s)}else o.push(...s);let u={type:"element",tagName:"li",properties:{id:e.clobberPrefix+"fn-"+i},children:e.wrap(o,!0)};e.patch(r,u),t.push(u)}if(0!==t.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:e.footnoteLabelTagName,properties:{...JSON.parse(JSON.stringify(e.footnoteLabelProperties)),id:"footnote-label"},children:[{type:"text",value:e.footnoteLabel}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(t,!0)},{type:"text",value:"\n"}]}}(n);return o&&r.children.push({type:"text",value:"\n"},o),Array.isArray(r)?{type:"root",children:r}:r}var tl=function(e,t){var n;return e&&"run"in e?(n,r,o)=>{e.run(ti(n,t),r,e=>{o(e)})}:(n=e||t,e=>ti(e,n))},ts=n(74275);class tc{constructor(e,t,n){this.property=e,this.normal=t,n&&(this.space=n)}}function tu(e,t){let n={},r={},o=-1;for(;++o"xlink:"+t.slice(5).toLowerCase(),properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),tR=tv({space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase(),properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function tC(e,t){return t in e?e[t]:t}function t_(e,t){return tC(e,t.toLowerCase())}let tI=tv({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:t_,properties:{xmlns:null,xmlnsXLink:null}}),tN=tv({transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase(),properties:{ariaActiveDescendant:null,ariaAtomic:tm,ariaAutoComplete:null,ariaBusy:tm,ariaChecked:tm,ariaColCount:th,ariaColIndex:th,ariaColSpan:th,ariaControls:ty,ariaCurrent:null,ariaDescribedBy:ty,ariaDetails:null,ariaDisabled:tm,ariaDropEffect:ty,ariaErrorMessage:null,ariaExpanded:tm,ariaFlowTo:ty,ariaGrabbed:tm,ariaHasPopup:null,ariaHidden:tm,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:ty,ariaLevel:th,ariaLive:null,ariaModal:tm,ariaMultiLine:tm,ariaMultiSelectable:tm,ariaOrientation:null,ariaOwns:ty,ariaPlaceholder:null,ariaPosInSet:th,ariaPressed:tm,ariaReadOnly:tm,ariaRelevant:null,ariaRequired:tm,ariaRoleDescription:ty,ariaRowCount:th,ariaRowIndex:th,ariaRowSpan:th,ariaSelected:tm,ariaSetSize:th,ariaSort:null,ariaValueMax:th,ariaValueMin:th,ariaValueNow:th,ariaValueText:null,role:null}}),tO=tv({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:t_,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:tS,acceptCharset:ty,accessKey:ty,action:null,allow:null,allowFullScreen:tf,allowPaymentRequest:tf,allowUserMedia:tf,alt:null,as:null,async:tf,autoCapitalize:null,autoComplete:ty,autoFocus:tf,autoPlay:tf,blocking:ty,capture:tf,charSet:null,checked:tf,cite:null,className:ty,cols:th,colSpan:null,content:null,contentEditable:tm,controls:tf,controlsList:ty,coords:th|tS,crossOrigin:null,data:null,dateTime:null,decoding:null,default:tf,defer:tf,dir:null,dirName:null,disabled:tf,download:tb,draggable:tm,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:tf,formTarget:null,headers:ty,height:th,hidden:tf,high:th,href:null,hrefLang:null,htmlFor:ty,httpEquiv:ty,id:null,imageSizes:null,imageSrcSet:null,inert:tf,inputMode:null,integrity:null,is:null,isMap:tf,itemId:null,itemProp:ty,itemRef:ty,itemScope:tf,itemType:ty,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:tf,low:th,manifest:null,max:null,maxLength:th,media:null,method:null,min:null,minLength:th,multiple:tf,muted:tf,name:null,nonce:null,noModule:tf,noValidate:tf,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint: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:tf,optimum:th,pattern:null,ping:ty,placeholder:null,playsInline:tf,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:tf,referrerPolicy:null,rel:ty,required:tf,reversed:tf,rows:th,rowSpan:th,sandbox:ty,scope:null,scoped:tf,seamless:tf,selected:tf,shape:null,size:th,sizes:null,slot:null,span:th,spellCheck:tm,src:null,srcDoc:null,srcLang:null,srcSet:null,start:th,step:null,style:null,tabIndex:th,target:null,title:null,translate:null,type:null,typeMustMatch:tf,useMap:null,value:tm,width:th,wrap:null,align:null,aLink:null,archive:ty,axis:null,background:null,bgColor:null,border:th,borderColor:null,bottomMargin:th,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:tf,declare:tf,event:null,face:null,frame:null,frameBorder:null,hSpace:th,leftMargin:th,link:null,longDesc:null,lowSrc:null,marginHeight:th,marginWidth:th,noResize:tf,noHref:tf,noShade:tf,noWrap:tf,object:null,profile:null,prompt:null,rev:null,rightMargin:th,rules:null,scheme:null,scrolling:tm,standby:null,summary:null,text:null,topMargin:th,valueType:null,version:null,vAlign:null,vLink:null,vSpace:th,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:tf,disableRemotePlayback:tf,prefix:null,property:null,results:th,security:null,unselectable:null}}),tL=tv({space:"svg",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"},transform:tC,properties:{about:tE,accentHeight:th,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:th,amplitude:th,arabicForm:null,ascent:th,attributeName:null,attributeType:null,azimuth:th,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:th,by:null,calcMode:null,capHeight:th,className:ty,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:th,diffuseConstant:th,direction:null,display:null,dur:null,divisor:th,dominantBaseline:null,download:tf,dx:null,dy:null,edgeMode:null,editable:null,elevation:th,enableBackground:null,end:null,event:null,exponent:th,externalResourcesRequired:null,fill:null,fillOpacity:th,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:tS,g2:tS,glyphName:tS,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:th,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:th,horizOriginX:th,horizOriginY:th,id:null,ideographic:th,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:th,k:th,k1:th,k2:th,k3:th,k4:th,kernelMatrix:tE,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:th,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:th,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:th,overlineThickness:th,paintOrder:null,panose1:null,path:null,pathLength:th,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:ty,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:th,pointsAtY:th,pointsAtZ:th,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:tE,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:tE,rev:tE,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:tE,requiredFeatures:tE,requiredFonts:tE,requiredFormats:tE,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:th,specularExponent:th,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:th,strikethroughThickness:th,string:null,stroke:null,strokeDashArray:tE,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:th,strokeOpacity:th,strokeWidth:null,style:null,surfaceScale:th,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:tE,tabIndex:th,tableValues:null,target:null,targetX:th,targetY:th,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:tE,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:th,underlineThickness:th,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:th,values:null,vAlphabetic:th,vMathematical:th,vectorEffect:null,vHanging:th,vIdeographic:th,version:null,vertAdvY:th,vertOriginX:th,vertOriginY:th,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:th,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),tD=tu([tR,tx,tI,tN,tO],"html"),tM=tu([tR,tx,tI,tN,tL],"svg");function tP(e){if(e.allowedElements&&e.disallowedElements)throw TypeError("Only one of `allowedElements` and `disallowedElements` should be defined");if(e.allowedElements||e.disallowedElements||e.allowElement)return t=>{eQ(t,"element",(t,n,r)=>{let o;if(e.allowedElements?o=!e.allowedElements.includes(t.tagName):e.disallowedElements&&(o=e.disallowedElements.includes(t.tagName)),!o&&e.allowElement&&"number"==typeof n&&(o=!e.allowElement(t,n,r)),o&&"number"==typeof n)return e.unwrapDisallowed&&t.children?r.children.splice(n,1,...t.children):r.children.splice(n,1),n})}}var tF=n(9176);let tB=/^data[-\w.:]+$/i,tU=/-[a-z]/g,tz=/[A-Z]/g;function tH(e){return"-"+e.toLowerCase()}function tG(e){return e.charAt(1).toUpperCase()}let t$={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 tj=n(48699);let tW=["http","https","mailto","tel"];function tV(e){let t=(e||"").trim(),n=t.charAt(0);if("#"===n||"/"===n)return t;let r=t.indexOf(":");if(-1===r)return t;let o=-1;for(;++oo||-1!==(o=t.indexOf("#"))&&r>o?t:"javascript:void(0)"}let tq={}.hasOwnProperty,tY=new Set(["table","thead","tbody","tfoot","tr"]);function tK(e,t){let n=-1,r=0;for(;++n for more info)`),delete tQ[t]}let t=w().use(eK).use(e.remarkPlugins||[]).use(tl,{...e.remarkRehypeOptions,allowDangerousHtml:!0}).use(e.rehypePlugins||[]).use(tP,e),n=new b;"string"==typeof e.children?n.value=e.children:void 0!==e.children&&null!==e.children&&console.warn(`[react-markdown] Warning: please pass a string as \`children\` (not: \`${e.children}\`)`);let r=t.runSync(t.parse(n),n);if("root"!==r.type)throw TypeError("Expected a `root` node");let o=a.createElement(a.Fragment,{},function e(t,n){let r;let o=[],i=-1;for(;++i4&&"data"===n.slice(0,4)&&tB.test(t)){if("-"===t.charAt(4)){let e=t.slice(5).replace(tU,tG);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!tU.test(e)){let n=e.replace(tz,tH);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}o=tw}return new o(r,t)}(r.schema,t),a=n;null!=a&&a==a&&(Array.isArray(a)&&(a=o.commaSeparated?function(e,t){let n={},r=""===e[e.length-1]?[...e,""]:e;return r.join((n.padRight?" ":"")+","+(!1===n.padLeft?"":" ")).trim()}(a):a.join(" ").trim()),"style"===o.property&&"string"==typeof a&&(a=function(e){let t={};try{tj(e,function(e,n){let r="-ms-"===e.slice(0,4)?`ms-${e.slice(4)}`:e;t[r.replace(/-([a-z])/g,tZ)]=n})}catch{}return t}(a)),o.space&&o.property?e[tq.call(t$,o.property)?t$[o.property]:o.property]=a:o.attribute&&(e[o.attribute]=a))}(d,i,n.properties[i],t);("ol"===u||"ul"===u)&&t.listDepth++;let g=e(t,n);("ol"===u||"ul"===u)&&t.listDepth--,t.schema=c;let f=n.position||{start:{line:null,column:null,offset:null},end:{line:null,column:null,offset:null}},m=l.components&&tq.call(l.components,u)?l.components[u]:u,b="string"==typeof m||m===a.Fragment;if(!tF.isValidElementType(m))throw TypeError(`Component for name \`${u}\` not defined or is not renderable`);if(d.key=r,"a"===u&&l.linkTarget&&(d.target="function"==typeof l.linkTarget?l.linkTarget(String(d.href||""),n.children,"string"==typeof d.title?d.title:null):l.linkTarget),"a"===u&&s&&(d.href=s(String(d.href||""),n.children,"string"==typeof d.title?d.title:null)),b||"code"!==u||"element"!==o.type||"pre"===o.tagName||(d.inline=!0),b||"h1"!==u&&"h2"!==u&&"h3"!==u&&"h4"!==u&&"h5"!==u&&"h6"!==u||(d.level=Number.parseInt(u.charAt(1),10)),"img"===u&&l.transformImageUri&&(d.src=l.transformImageUri(String(d.src||""),String(d.alt||""),"string"==typeof d.title?d.title:null)),!b&&"li"===u&&"element"===o.type){let e=function(e){let t=-1;for(;++t0?a.createElement(m,d,g):a.createElement(m,d)}(t,r,i,n)):"text"===r.type?"element"===n.type&&tY.has(n.tagName)&&function(e){let t=e&&"object"==typeof e&&"text"===e.type?e.value||"":e;return"string"==typeof t&&""===t.replace(/[ \t\n\f\r]/g,"")}(r)||o.push(r.value):"raw"!==r.type||t.options.skipHtml||o.push(r.value);return o}({options:e,schema:tD,listDepth:0},r));return e.className&&(o=a.createElement("div",{className:e.className},o)),o}tJ.propTypes={children:ts.string,className:ts.string,allowElement:ts.func,allowedElements:ts.arrayOf(ts.string),disallowedElements:ts.arrayOf(ts.string),unwrapDisallowed:ts.bool,remarkPlugins:ts.arrayOf(ts.oneOfType([ts.object,ts.func,ts.arrayOf(ts.oneOfType([ts.bool,ts.string,ts.object,ts.func,ts.arrayOf(ts.any)]))])),rehypePlugins:ts.arrayOf(ts.oneOfType([ts.object,ts.func,ts.arrayOf(ts.oneOfType([ts.bool,ts.string,ts.object,ts.func,ts.arrayOf(ts.any)]))])),sourcePos:ts.bool,rawSourcePos:ts.bool,skipHtml:ts.bool,includeElementIndex:ts.bool,transformLinkUri:ts.oneOfType([ts.func,ts.bool]),linkTarget:ts.oneOfType([ts.func,ts.string]),transformImageUri:ts.func,components:ts.object}},48975:function(e,t,n){"use strict";n.d(t,{Z:function(){return eL}});var r=n(6361),o=n(82659);let a={tokenize:function(e,t,n){let r=0;return function t(a){return(87===a||119===a)&&r<3?(r++,e.consume(a),t):46===a&&3===r?(e.consume(a),o):n(a)};function o(e){return null===e?n(e):t(e)}},partial:!0},i={tokenize:function(e,t,n){let r,a,i;return l;function l(t){return 46===t||95===t?e.check(s,u,c)(t):null===t||(0,o.z3)(t)||(0,o.B8)(t)||45!==t&&(0,o.Xh)(t)?u(t):(i=!0,e.consume(t),l)}function c(t){return 95===t?r=!0:(a=r,r=void 0),e.consume(t),l}function u(e){return a||r||!i?n(e):t(e)}},partial:!0},l={tokenize:function(e,t){let n=0,r=0;return a;function a(l){return 40===l?(n++,e.consume(l),a):41===l&&r0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}g[43]=p,g[45]=p,g[46]=p,g[95]=p,g[72]=[p,d],g[104]=[p,d],g[87]=[p,u],g[119]=[p,u];var k=n(56833),A=n(9471),w=n(93575);let T={tokenize:function(e,t,n){let r=this;return(0,A.f)(e,function(e){let o=r.events[r.events.length-1];return o&&"gfmFootnoteDefinitionIndent"===o[1].type&&4===o[2].sliceSerialize(o[1],!0).length?t(e):n(e)},"gfmFootnoteDefinitionIndent",5)},partial:!0};function v(e,t,n){let r;let o=this,a=o.events.length,i=o.parser.gfmFootnotes||(o.parser.gfmFootnotes=[]);for(;a--;){let e=o.events[a][1];if("labelImage"===e.type){r=e;break}if("gfmFootnoteCall"===e.type||"labelLink"===e.type||"label"===e.type||"image"===e.type||"link"===e.type)break}return function(a){if(!r||!r._balanced)return n(a);let l=(0,w.d)(o.sliceSerialize({start:r.end,end:o.now()}));return 94===l.codePointAt(0)&&i.includes(l.slice(1))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(a),e.exit("gfmFootnoteCallLabelMarker"),t(a)):n(a)}}function x(e,t){let n=e.length;for(;n--;)if("labelImage"===e[n][1].type&&"enter"===e[n][0]){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";let r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},o={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};o.end.column++,o.end.offset++,o.end._bufferIndex++;let a={type:"gfmFootnoteCallString",start:Object.assign({},o.end),end:Object.assign({},e[e.length-1][1].start)},i={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},l=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",o,t],["exit",o,t],["enter",a,t],["enter",i,t],["exit",i,t],["exit",a,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...l),e}function R(e,t,n){let r;let a=this,i=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]),l=0;return function(t){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(t),e.exit("gfmFootnoteCallLabelMarker"),s};function s(t){return 94!==t?n(t):(e.enter("gfmFootnoteCallMarker"),e.consume(t),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",c)}function c(s){if(l>999||93===s&&!r||null===s||91===s||(0,o.z3)(s))return n(s);if(93===s){e.exit("chunkString");let r=e.exit("gfmFootnoteCallString");return i.includes((0,w.d)(a.sliceSerialize(r)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(s),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(s)}return(0,o.z3)(s)||(r=!0),l++,e.consume(s),92===s?u:c}function u(t){return 91===t||92===t||93===t?(e.consume(t),l++,c):c(t)}}function C(e,t,n){let r,a;let i=this,l=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]),s=0;return function(t){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),c};function c(t){return 94===t?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",u):n(t)}function u(t){if(s>999||93===t&&!a||null===t||91===t||(0,o.z3)(t))return n(t);if(93===t){e.exit("chunkString");let n=e.exit("gfmFootnoteDefinitionLabelString");return r=(0,w.d)(i.sliceSerialize(n)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),p}return(0,o.z3)(t)||(a=!0),s++,e.consume(t),92===t?d:u}function d(t){return 91===t||92===t||93===t?(e.consume(t),s++,u):u(t)}function p(t){return 58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),l.includes(r)||l.push(r),(0,A.f)(e,g,"gfmFootnoteDefinitionWhitespace")):n(t)}function g(e){return t(e)}}function _(e,t,n){return e.check(k.w,t,e.attempt(T,t,n))}function I(e){e.exit("gfmFootnoteDefinition")}var N=n(58180),O=n(75786),L=n(80594);class D{constructor(){this.map=[]}add(e,t,n){!function(e,t,n,r){let o=0;if(0!==n||0!==r.length){for(;oe[0]-t[0]),0===this.map.length)return;let t=this.map.length,n=[];for(;t>0;)t-=1,n.push(e.slice(this.map[t][0]+this.map[t][1])),n.push(this.map[t][2]),e.length=this.map[t][0];n.push([...e]),e.length=0;let r=n.pop();for(;r;)e.push(...r),r=n.pop();this.map.length=0}}let M={flow:{null:{tokenize:function(e,t,n){let r;let a=this,i=0,l=0;return function(e){let t=a.events.length-1;for(;t>-1;){let e=a.events[t][1].type;if("lineEnding"===e||"linePrefix"===e)t--;else break}let r=t>-1?a.events[t][1].type:null,o="tableHead"===r||"tableRow"===r?S:s;return o===S&&a.parser.lazy[a.now().line]?n(e):o(e)};function s(t){return e.enter("tableHead"),e.enter("tableRow"),124===t||(r=!0,l+=1),c(t)}function c(t){return null===t?n(t):(0,o.Ch)(t)?l>1?(l=0,a.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),p):n(t):(0,o.xz)(t)?(0,A.f)(e,c,"whitespace")(t):(l+=1,r&&(r=!1,i+=1),124===t)?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),r=!0,c):(e.enter("data"),u(t))}function u(t){return null===t||124===t||(0,o.z3)(t)?(e.exit("data"),c(t)):(e.consume(t),92===t?d:u)}function d(t){return 92===t||124===t?(e.consume(t),u):u(t)}function p(t){return(a.interrupt=!1,a.parser.lazy[a.now().line])?n(t):(e.enter("tableDelimiterRow"),r=!1,(0,o.xz)(t))?(0,A.f)(e,g,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):g(t)}function g(t){return 45===t||58===t?m(t):124===t?(r=!0,e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),f):n(t)}function f(t){return(0,o.xz)(t)?(0,A.f)(e,m,"whitespace")(t):m(t)}function m(t){return 58===t?(l+=1,r=!0,e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),b):45===t?(l+=1,b(t)):null===t||(0,o.Ch)(t)?y(t):n(t)}function b(t){return 45===t?(e.enter("tableDelimiterFiller"),function t(n){return 45===n?(e.consume(n),t):58===n?(r=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(n),e.exit("tableDelimiterMarker"),h):(e.exit("tableDelimiterFiller"),h(n))}(t)):n(t)}function h(t){return(0,o.xz)(t)?(0,A.f)(e,y,"whitespace")(t):y(t)}function y(a){return 124===a?g(a):null===a||(0,o.Ch)(a)?r&&i===l?(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(a)):n(a):n(a)}function S(t){return e.enter("tableRow"),E(t)}function E(n){return 124===n?(e.enter("tableCellDivider"),e.consume(n),e.exit("tableCellDivider"),E):null===n||(0,o.Ch)(n)?(e.exit("tableRow"),t(n)):(0,o.xz)(n)?(0,A.f)(e,E,"whitespace")(n):(e.enter("data"),k(n))}function k(t){return null===t||124===t||(0,o.z3)(t)?(e.exit("data"),E(t)):(e.consume(t),92===t?w:k)}function w(t){return 92===t||124===t?(e.consume(t),k):k(t)}},resolveAll:function(e,t){let n,r,o,a=-1,i=!0,l=0,s=[0,0,0,0],c=[0,0,0,0],u=!1,d=0,p=new D;for(;++an[2]+1){let t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[["exit",i,t]])}return void 0!==o&&(a.end=Object.assign({},B(t.events,o)),e.add(o,0,[["exit",a,t]]),a=void 0),a}function F(e,t,n,r,o){let a=[],i=B(t.events,n);o&&(o.end=Object.assign({},i),a.push(["exit",o,t])),r.end=Object.assign({},i),a.push(["exit",r,t]),e.add(n+1,0,a)}function B(e,t){let n=e[t],r="enter"===n[0]?"start":"end";return n[1][r]}let U={text:{91:{tokenize:function(e,t,n){let r=this;return function(t){return null===r.previous&&r._gfmTasklistFirstContentOfListItem?(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),a):n(t)};function a(t){return(0,o.z3)(t)?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),i):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),i):n(t)}function i(t){return 93===t?(e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),l):n(t)}function l(r){return(0,o.Ch)(r)?t(r):(0,o.xz)(r)?e.check({tokenize:z},t,n)(r):n(r)}}}}};function z(e,t,n){return(0,A.f)(e,function(e){return null===e?n(e):t(e)},"whitespace")}function H(e,t){let n=String(e);if("string"!=typeof t)throw TypeError("Expected character");let r=0,o=n.indexOf(t);for(;-1!==o;)r++,o=n.indexOf(t,o+t.length);return r}var G=n(37462),$=n(54e3);let j={}.hasOwnProperty,W=function(e,t,n,r){let o,a;"string"==typeof t||t instanceof RegExp?(a=[[t,n]],o=r):(a=t,o=n),o||(o={});let i=(0,$.O)(o.ignore||[]),l=function(e){let t=[];if("object"!=typeof e)throw TypeError("Expected array or object as schema");if(Array.isArray(e)){let n=-1;for(;++n0?{type:"text",value:l}:void 0),!1!==l&&(a!==n&&u.push({type:"text",value:e.value.slice(a,n)}),Array.isArray(l)?u.push(...l):l&&u.push(l),a=n+d[0].length,c=!0),!r.global)break;d=r.exec(e.value)}return c?(ae}let Y="phrasing",K=["autolink","link","image","label"],Z={transforms:[function(e){W(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,J],[/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/g,ee]],{ignore:["link","linkReference"]})}],enter:{literalAutolink:function(e){this.enter({type:"link",title:null,url:"",children:[]},e)},literalAutolinkEmail:Q,literalAutolinkHttp:Q,literalAutolinkWww:Q},exit:{literalAutolink:function(e){this.exit(e)},literalAutolinkEmail:function(e){this.config.exit.autolinkEmail.call(this,e)},literalAutolinkHttp:function(e){this.config.exit.autolinkProtocol.call(this,e)},literalAutolinkWww:function(e){this.config.exit.data.call(this,e);let t=this.stack[this.stack.length-1];t.url="http://"+this.sliceSerialize(e)}}},X={unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Y,notInConstruct:K},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Y,notInConstruct:K},{character:":",before:"[ps]",after:"\\/",inConstruct:Y,notInConstruct:K}]};function Q(e){this.config.enter.autolinkProtocol.call(this,e)}function J(e,t,n,r,o){let a="";if(!et(o)||(/^w/i.test(t)&&(n=t+n,t="",a="http://"),!function(e){let t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}(n)))return!1;let i=function(e){let t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")"),o=H(e,"("),a=H(e,")");for(;-1!==r&&o>a;)e+=n.slice(0,r+1),r=(n=n.slice(r+1)).indexOf(")"),a++;return[e,n]}(n+r);if(!i[0])return!1;let l={type:"link",title:null,url:a+t+i[0],children:[{type:"text",value:t+i[0]}]};return i[1]?[l,{type:"text",value:i[1]}]:l}function ee(e,t,n,r){return!(!et(r,!0)||/[-\d_]$/.test(n))&&{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function et(e,t){let n=e.input.charCodeAt(e.index-1);return(0===e.index||(0,o.B8)(n)||(0,o.Xh)(n))&&(!t||47!==n)}var en=n(11559);function er(e){return e.label||!e.identifier?e.label||"":(0,en.v)(e.identifier)}let eo=/\r?\n|\r/g;var ea=n(62848),ei=n(12101);function el(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function es(){this.buffer()}function ec(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=(0,w.d)(this.sliceSerialize(e)).toLowerCase()}function eu(e){this.exit(e)}function ed(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function ep(){this.buffer()}function eg(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=(0,w.d)(this.sliceSerialize(e)).toLowerCase()}function ef(e){this.exit(e)}function em(e,t,n,r){let o=(0,ei.j)(r),a=o.move("[^"),i=n.enter("footnoteReference"),l=n.enter("reference");return a+=o.move((0,ea.T)(n,er(e),{...o.current(),before:a,after:"]"})),l(),i(),a+=o.move("]")}function eb(e,t,n,r){let o=(0,ei.j)(r),a=o.move("[^"),i=n.enter("footnoteDefinition"),l=n.enter("label");return a+=o.move((0,ea.T)(n,er(e),{...o.current(),before:a,after:"]"})),l(),a+=o.move("]:"+(e.children&&e.children.length>0?" ":"")),o.shift(4),a+=o.move(function(e,t){let n;let r=[],o=0,a=0;for(;n=eo.exec(e);)i(e.slice(o,n.index)),r.push(n[0]),o=n.index+n[0].length,a++;return i(e.slice(o)),r.join("");function i(e){r.push(t(e,a,!e))}}(function(e,t,n){let r=t.indexStack,o=e.children||[],a=t.createTracker(n),i=[],l=-1;for(r.push(-1);++l\n\n"}return"\n\n"}(n,o[l+1],e,t)))}return r.pop(),i.join("")}(e,n,o.current()),eh)),i(),a}function eh(e,t,n){return 0===t?e:(n?"":" ")+e}function ey(e,t,n){let r=t.indexStack,o=e.children||[],a=[],i=-1,l=n.before;r.push(-1);let s=t.createTracker(n);for(;++i0&&("\r"===l||"\n"===l)&&"html"===u.type&&(a[a.length-1]=a[a.length-1].replace(/(\r?\n|\r)$/," "),l=" ",(s=t.createTracker(n)).move(a.join(""))),a.push(s.move(t.handle(u,e,t,{...s.current(),before:l,after:c}))),l=a[a.length-1].slice(-1)}return r.pop(),a.join("")}em.peek=function(){return"["},ek.peek=function(){return"~"};let eS={canContainEols:["delete"],enter:{strikethrough:function(e){this.enter({type:"delete",children:[]},e)}},exit:{strikethrough:function(e){this.exit(e)}}},eE={unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"]}],handlers:{delete:ek}};function ek(e,t,n,r){let o=(0,ei.j)(r),a=n.enter("strikethrough"),i=o.move("~~");return i+=ey(e,n,{...o.current(),before:i,after:"~"})+o.move("~~"),a(),i}var eA=n(57785);function ew(e,t,n){let r=e.value||"",o="`",a=-1;for(;RegExp("(^|[^`])"+o+"([^`]|$)").test(r);)o+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++a"none"===e?null:e),children:[]},e),this.setData("inTable",!0)},tableData:eC,tableHeader:eC,tableRow:function(e){this.enter({type:"tableRow",children:[]},e)}},exit:{codeText:function(e){let t=this.resume();this.getData("inTable")&&(t=t.replace(/\\([\\|])/g,e_));let n=this.stack[this.stack.length-1];n.value=t,this.exit(e)},table:function(e){this.exit(e),this.setData("inTable")},tableData:eR,tableHeader:eR,tableRow:eR}};function eR(e){this.exit(e)}function eC(e){this.enter({type:"tableCell",children:[]},e)}function e_(e,t){return"|"===t?t:e}let eI={exit:{taskListCheckValueChecked:eO,taskListCheckValueUnchecked:eO,paragraph:function(e){let t=this.stack[this.stack.length-2];if(t&&"listItem"===t.type&&"boolean"==typeof t.checked){let e=this.stack[this.stack.length-1],n=e.children[0];if(n&&"text"===n.type){let r;let o=t.children,a=-1;for(;++a-1?t.start:1)+(!1===n.options.incrementListMarker?0:t.children.indexOf(e))+a);let i=a.length+1;("tab"===o||"mixed"===o&&(t&&"list"===t.type&&t.spread||e.spread))&&(i=4*Math.ceil(i/4));let l=n.createTracker(r);l.move(a+" ".repeat(i-a.length)),l.shift(i);let s=n.enter("listItem"),c=n.indentLines(n.containerFlow(e,l.current()),function(e,t,n){return t?(n?"":" ".repeat(i))+e:(n?a:a+" ".repeat(i-a.length))+e});return s(),c}(e,t,n,{...r,...l.current()});return a&&(s=s.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,function(e){return e+i})),s}}};function eO(e){let t=this.stack[this.stack.length-2];t.checked="taskListCheckValueChecked"===e.type}function eL(e={}){let t=this.data();function n(e,n){let r=t[e]?t[e]:t[e]=[];r.push(n)}n("micromarkExtensions",(0,r.W)([f,{document:{91:{tokenize:C,continuation:{tokenize:_},exit:I}},text:{91:{tokenize:R},93:{add:"after",tokenize:v,resolveTo:x}}},function(e){let t=(e||{}).singleTilde,n={tokenize:function(e,n,r){let o=this.previous,a=this.events,i=0;return function(l){return 126===o&&"characterEscape"!==a[a.length-1][1].type?r(l):(e.enter("strikethroughSequenceTemporary"),function a(l){let s=(0,O.r)(o);if(126===l)return i>1?r(l):(e.consume(l),i++,a);if(i<2&&!t)return r(l);let c=e.exit("strikethroughSequenceTemporary"),u=(0,O.r)(l);return c._open=!u||2===u&&!!s,c._close=!s||2===s&&!!u,n(l)}(l))}},resolveAll:function(e,t){let n=-1;for(;++ns&&(s=e[c].length);++dl[d])&&(l[d]=e)}n.push(a)}a[c]=n,i[c]=o}let d=-1;if("object"==typeof n&&"length"in n)for(;++dl[d]&&(l[d]=a),g[d]=a),p[d]=i}a.splice(1,0,p),i.splice(1,0,g),c=-1;let f=[];for(;++ci&&(i=a):a=1,o=r+t.length,r=n.indexOf(t,o);return i}(o,"$")+1,2)),l=n.enter("mathFlow"),s=a.move(i);if(e.meta){let t=n.enter("mathFlowMeta");s+=a.move((0,c.T)(n,e.meta,{before:s,after:"\n",encode:["$"],...a.current()})),t()}return s+=a.move("\n"),o&&(s+=a.move(o+"\n")),s+=a.move(i),l(),s},inlineMath:n}};function n(e,n,r){let o=e.value||"",a=1;for(!t&&a++;RegExp("(^|[^$])"+"\\$".repeat(a)+"([^$]|$)").test(o);)a++;let i="$".repeat(a);/[^ \r\n]/.test(o)&&(/^[ \r\n]/.test(o)&&/[ \r\n]$/.test(o)||/^\$|\$$/.test(o))&&(o=" "+o+" ");let l=-1;for(;++l":"")+")"})}return u;function u(){var c;let u,d,p,g=[];if((!t||a(r,l,s[s.length-1]||null))&&!1===(g=Array.isArray(c=n(r,s))?c:"number"==typeof c?[!0,c]:[c])[0])return g;if(r.children&&"skip"!==g[0])for(d=(o?r.children.length:-1)+i,p=s.concat(r);d>-1&&d","Iacute":"\xcd","Icirc":"\xce","Igrave":"\xcc","Iuml":"\xcf","LT":"<","Ntilde":"\xd1","Oacute":"\xd3","Ocirc":"\xd4","Ograve":"\xd2","Oslash":"\xd8","Otilde":"\xd5","Ouml":"\xd6","QUOT":"\\"","REG":"\xae","THORN":"\xde","Uacute":"\xda","Ucirc":"\xdb","Ugrave":"\xd9","Uuml":"\xdc","Yacute":"\xdd","aacute":"\xe1","acirc":"\xe2","acute":"\xb4","aelig":"\xe6","agrave":"\xe0","amp":"&","aring":"\xe5","atilde":"\xe3","auml":"\xe4","brvbar":"\xa6","ccedil":"\xe7","cedil":"\xb8","cent":"\xa2","copy":"\xa9","curren":"\xa4","deg":"\xb0","divide":"\xf7","eacute":"\xe9","ecirc":"\xea","egrave":"\xe8","eth":"\xf0","euml":"\xeb","frac12":"\xbd","frac14":"\xbc","frac34":"\xbe","gt":">","iacute":"\xed","icirc":"\xee","iexcl":"\xa1","igrave":"\xec","iquest":"\xbf","iuml":"\xef","laquo":"\xab","lt":"<","macr":"\xaf","micro":"\xb5","middot":"\xb7","nbsp":"\xa0","not":"\xac","ntilde":"\xf1","oacute":"\xf3","ocirc":"\xf4","ograve":"\xf2","ordf":"\xaa","ordm":"\xba","oslash":"\xf8","otilde":"\xf5","ouml":"\xf6","para":"\xb6","plusmn":"\xb1","pound":"\xa3","quot":"\\"","raquo":"\xbb","reg":"\xae","sect":"\xa7","shy":"\xad","sup1":"\xb9","sup2":"\xb2","sup3":"\xb3","szlig":"\xdf","thorn":"\xfe","times":"\xd7","uacute":"\xfa","ucirc":"\xfb","ugrave":"\xf9","uml":"\xa8","uuml":"\xfc","yacute":"\xfd","yen":"\xa5","yuml":"\xff"}')},46561:function(e){"use strict";e.exports=JSON.parse('{"0":"�","128":"€","130":"‚","131":"ƒ","132":"„","133":"…","134":"†","135":"‡","136":"ˆ","137":"‰","138":"Š","139":"‹","140":"Œ","142":"Ž","145":"‘","146":"’","147":"“","148":"”","149":"•","150":"–","151":"—","152":"˜","153":"™","154":"š","155":"›","156":"œ","158":"ž","159":"Ÿ"}')}}]); \ No newline at end of file diff --git a/crates/tabby/ui/_next/static/chunks/358-dc819165169f937b.js b/crates/tabby/ui/_next/static/chunks/358-dc819165169f937b.js deleted file mode 100644 index e4b1ae9..0000000 --- a/crates/tabby/ui/_next/static/chunks/358-dc819165169f937b.js +++ /dev/null @@ -1,9 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[358],{7404:function(e,r,t){t.d(r,{j:function(){return i}});let n=e=>"boolean"==typeof e?"".concat(e):0===e?"0":e,o=function(){for(var e=arguments.length,r=Array(e),t=0;tt=>{var i;if((null==r?void 0:r.variants)==null)return o(e,null==t?void 0:t.class,null==t?void 0:t.className);let{variants:l,defaultVariants:a}=r,s=Object.keys(l).map(e=>{let r=null==t?void 0:t[e],o=null==a?void 0:a[e];if(null===r)return null;let i=n(r)||n(o);return l[e][i]}),c=t&&Object.entries(t).reduce((e,r)=>{let[t,n]=r;return void 0===n||(e[t]=n),e},{}),u=null==r?void 0:null===(i=r.compoundVariants)||void 0===i?void 0:i.reduce((e,r)=>{let{class:t,className:n,...o}=r;return Object.entries(o).every(e=>{let[r,t]=e;return Array.isArray(t)?t.includes({...a,...c}[r]):({...a,...c})[r]===t})?[...e,t,n]:e},[]);return o(e,s,u,null==t?void 0:t.class,null==t?void 0:t.className)}},50348:function(e,r,t){t.d(r,{W:function(){return n}});function n(){for(var e,r,t=0,n="";te.forEach(e=>{"function"==typeof e?e(r):null!=e&&(e.current=r)})}function i(...e){return(0,n.useCallback)(o(...e),e)}},56989:function(e,r,t){t.d(r,{b:function(){return i},k:function(){return o}});var n=t(2265);function o(e,r){let t=(0,n.createContext)(r);function o(e){let{children:r,...o}=e,i=(0,n.useMemo)(()=>o,Object.values(o));return(0,n.createElement)(t.Provider,{value:i},r)}return o.displayName=e+"Provider",[o,function(o){let i=(0,n.useContext)(t);if(i)return i;if(void 0!==r)return r;throw Error(`\`${o}\` must be used within \`${e}\``)}]}function i(e,r=[]){let t=[],o=()=>{let r=t.map(e=>(0,n.createContext)(e));return function(t){let o=(null==t?void 0:t[e])||r;return(0,n.useMemo)(()=>({[`__scope${e}`]:{...t,[e]:o}}),[t,o])}};return o.scopeName=e,[function(r,o){let i=(0,n.createContext)(o),l=t.length;function a(r){let{scope:t,children:o,...a}=r,s=(null==t?void 0:t[e][l])||i,c=(0,n.useMemo)(()=>a,Object.values(a));return(0,n.createElement)(s.Provider,{value:c},o)}return t=[...t,o],a.displayName=r+"Provider",[a,function(t,a){let s=(null==a?void 0:a[e][l])||i,c=(0,n.useContext)(s);if(c)return c;if(void 0!==o)return o;throw Error(`\`${t}\` must be used within \`${r}\``)}]},function(...e){let r=e[0];if(1===e.length)return r;let t=()=>{let t=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let o=t.reduce((r,{useScope:t,scopeName:n})=>{let o=t(e),i=o[`__scope${n}`];return{...r,...i}},{});return(0,n.useMemo)(()=>({[`__scope${r.scopeName}`]:o}),[o])}};return t.scopeName=r.scopeName,t}(o,...r)]}},20966:function(e,r,t){t.d(r,{M:function(){return s}});var n,o=t(2265),i=t(51030);let l=(n||(n=t.t(o,2)))["useId".toString()]||(()=>void 0),a=0;function s(e){let[r,t]=o.useState(l());return(0,i.b)(()=>{e||t(e=>null!=e?e:String(a++))},[e]),e||(r?`radix-${r}`:"")}},85606:function(e,r,t){t.d(r,{z:function(){return a}});var n=t(2265),o=t(54887),i=t(42210),l=t(51030);let a=e=>{let{present:r,children:t}=e,a=function(e){var r;let[t,i]=(0,n.useState)(),a=(0,n.useRef)({}),c=(0,n.useRef)(e),u=(0,n.useRef)("none"),d=e?"mounted":"unmounted",[f,p]=(r={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},(0,n.useReducer)((e,t)=>{let n=r[e][t];return null!=n?n:e},d));return(0,n.useEffect)(()=>{let e=s(a.current);u.current="mounted"===f?e:"none"},[f]),(0,l.b)(()=>{let r=a.current,t=c.current,n=t!==e;if(n){let n=u.current,o=s(r);e?p("MOUNT"):"none"===o||(null==r?void 0:r.display)==="none"?p("UNMOUNT"):t&&n!==o?p("ANIMATION_OUT"):p("UNMOUNT"),c.current=e}},[e,p]),(0,l.b)(()=>{if(t){let e=e=>{let r=s(a.current),n=r.includes(e.animationName);e.target===t&&n&&(0,o.flushSync)(()=>p("ANIMATION_END"))},r=e=>{e.target===t&&(u.current=s(a.current))};return t.addEventListener("animationstart",r),t.addEventListener("animationcancel",e),t.addEventListener("animationend",e),()=>{t.removeEventListener("animationstart",r),t.removeEventListener("animationcancel",e),t.removeEventListener("animationend",e)}}p("ANIMATION_END")},[t,p]),{isPresent:["mounted","unmountSuspended"].includes(f),ref:(0,n.useCallback)(e=>{e&&(a.current=getComputedStyle(e)),i(e)},[])}}(r),c="function"==typeof t?t({present:a.isPresent}):n.Children.only(t),u=(0,i.e)(a.ref,c.ref),d="function"==typeof t;return d||a.isPresent?(0,n.cloneElement)(c,{ref:u}):null};function s(e){return(null==e?void 0:e.animationName)||"none"}a.displayName="Presence"},9381:function(e,r,t){t.d(r,{WV:function(){return a},jH:function(){return s}});var n=t(13428),o=t(2265),i=t(54887),l=t(67256);let a=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,r)=>{let t=(0,o.forwardRef)((e,t)=>{let{asChild:i,...a}=e,s=i?l.g7:r;return(0,o.useEffect)(()=>{window[Symbol.for("radix-ui")]=!0},[]),(0,o.createElement)(s,(0,n.Z)({},a,{ref:t}))});return t.displayName=`Primitive.${r}`,{...e,[r]:t}},{});function s(e,r){e&&(0,i.flushSync)(()=>e.dispatchEvent(r))}},67256:function(e,r,t){t.d(r,{A4:function(){return s},g7:function(){return l}});var n=t(13428),o=t(2265),i=t(42210);let l=(0,o.forwardRef)((e,r)=>{let{children:t,...i}=e,l=o.Children.toArray(t),s=l.find(c);if(s){let e=s.props.children,t=l.map(r=>r!==s?r:o.Children.count(e)>1?o.Children.only(null):(0,o.isValidElement)(e)?e.props.children:null);return(0,o.createElement)(a,(0,n.Z)({},i,{ref:r}),(0,o.isValidElement)(e)?(0,o.cloneElement)(e,void 0,t):null)}return(0,o.createElement)(a,(0,n.Z)({},i,{ref:r}),t)});l.displayName="Slot";let a=(0,o.forwardRef)((e,r)=>{let{children:t,...n}=e;return(0,o.isValidElement)(t)?(0,o.cloneElement)(t,{...function(e,r){let t={...r};for(let n in r){let o=e[n],i=r[n],l=/^on[A-Z]/.test(n);l?o&&i?t[n]=(...e)=>{i(...e),o(...e)}:o&&(t[n]=o):"style"===n?t[n]={...o,...i}:"className"===n&&(t[n]=[o,i].filter(Boolean).join(" "))}return{...e,...t}}(n,t.props),ref:r?(0,i.F)(r,t.ref):t.ref}):o.Children.count(t)>1?o.Children.only(null):null});a.displayName="SlotClone";let s=({children:e})=>(0,o.createElement)(o.Fragment,null,e);function c(e){return(0,o.isValidElement)(e)&&e.type===s}},16459:function(e,r,t){t.d(r,{W:function(){return o}});var n=t(2265);function o(e){let r=(0,n.useRef)(e);return(0,n.useEffect)(()=>{r.current=e}),(0,n.useMemo)(()=>(...e)=>{var t;return null===(t=r.current)||void 0===t?void 0:t.call(r,...e)},[])}},73763:function(e,r,t){t.d(r,{T:function(){return i}});var n=t(2265),o=t(16459);function i({prop:e,defaultProp:r,onChange:t=()=>{}}){let[i,l]=function({defaultProp:e,onChange:r}){let t=(0,n.useState)(e),[i]=t,l=(0,n.useRef)(i),a=(0,o.W)(r);return(0,n.useEffect)(()=>{l.current!==i&&(a(i),l.current=i)},[i,l,a]),t}({defaultProp:r,onChange:t}),a=void 0!==e,s=a?e:i,c=(0,o.W)(t),u=(0,n.useCallback)(r=>{if(a){let t="function"==typeof r?r(e):r;t!==e&&c(t)}else l(r)},[a,e,l,c]);return[s,u]}},12488:function(e,r,t){t.d(r,{e:function(){return i}});var n=t(2265),o=t(16459);function i(e,r=null==globalThis?void 0:globalThis.document){let t=(0,o.W)(e);(0,n.useEffect)(()=>{let e=e=>{"Escape"===e.key&&t(e)};return r.addEventListener("keydown",e),()=>r.removeEventListener("keydown",e)},[t,r])}},51030:function(e,r,t){t.d(r,{b:function(){return o}});var n=t(2265);let o=(null==globalThis?void 0:globalThis.document)?n.useLayoutEffect:()=>{}},28481:function(e,r,t){t.d(r,{kP:function(){return i}});let n=e=>crypto.getRandomValues(new Uint8Array(e)),o=(e,r,t)=>{let n=(2<{let l="";for(;;){let r=t(o),a=o;for(;a--;)if((l+=e[r[a]&n]||"").length===i)return l}}},i=(e,r=21)=>o(e,r,n)},23986:function(e,r,t){t.d(r,{m:function(){return I}});var n=/^\[(.+)\]$/;function o(e,r){var t=e;return r.split("-").forEach(function(e){t.nextPart.has(e)||t.nextPart.set(e,{nextPart:new Map,validators:[]}),t=t.nextPart.get(e)}),t}var i=/\s+/;function l(){for(var e,r,t=0,n="";te&&(r=0,n=t,t=new Map)}return{get:function(e){var r=t.get(e);return void 0!==r?r:void 0!==(r=n.get(e))?(o(e,r),r):void 0},set:function(e,r){t.has(e)?t.set(e,r):o(e,r)}}}(e.cacheSize),splitModifiers:(t=1===(r=e.separator||":").length,i=r[0],l=r.length,function(e){for(var n,o=[],a=0,s=0,c=0;cs?n-s:void 0}}),...(u=e.theme,d=e.prefix,f={nextPart:new Map,validators:[]},(p=Object.entries(e.classGroups),d?p.map(function(e){return[e[0],e[1].map(function(e){return"string"==typeof e?d+e:"object"==typeof e?Object.fromEntries(Object.entries(e).map(function(e){return[d+e[0],e[1]]})):e})]}):p).forEach(function(e){var r=e[0];(function e(r,t,n,i){r.forEach(function(r){if("string"==typeof r){(""===r?t:o(t,r)).classGroupId=n;return}if("function"==typeof r){if(r.isThemeGetter){e(r(i),t,n,i);return}t.validators.push({validator:r,classGroupId:n});return}Object.entries(r).forEach(function(r){var l=r[0];e(r[1],o(t,l),n,i)})})})(e[1],f,r,u)}),a=e.conflictingClassGroups,c=void 0===(s=e.conflictingClassGroupModifiers)?{}:s,{getClassGroupId:function(e){var r=e.split("-");return""===r[0]&&1!==r.length&&r.shift(),function e(r,t){if(0===r.length)return t.classGroupId;var n=r[0],o=t.nextPart.get(n),i=o?e(r.slice(1),o):void 0;if(i)return i;if(0!==t.validators.length){var l=r.join("-");return t.validators.find(function(e){return(0,e.validator)(l)})?.classGroupId}}(r,f)||function(e){if(n.test(e)){var r=n.exec(e)[1],t=r?.substring(0,r.indexOf(":"));if(t)return"arbitrary.."+t}}(e)},getConflictingClassGroupIds:function(e,r){var t=a[e]||[];return r&&c[e]?[].concat(t,c[e]):t}})}}(s.slice(1).reduce(function(e,r){return r(e)},l()))).cache.get,t=e.cache.set,u=d,d(i)};function d(n){var o,l,a,s,c,u=r(n);if(u)return u;var d=(l=(o=e).splitModifiers,a=o.getClassGroupId,s=o.getConflictingClassGroupIds,c=new Set,n.trim().split(i).map(function(e){var r=l(e),t=r.modifiers,n=r.hasImportantModifier,o=r.baseClassName,i=r.maybePostfixModifierPosition,s=a(i?o.substring(0,i):o),c=!!i;if(!s){if(!i||!(s=a(o)))return{isTailwindClass:!1,originalClassName:e};c=!1}var u=(function(e){if(e.length<=1)return e;var r=[],t=[];return e.forEach(function(e){"["===e[0]?(r.push.apply(r,t.sort().concat([e])),t=[]):t.push(e)}),r.push.apply(r,t.sort()),r})(t).join(":");return{isTailwindClass:!0,modifierId:n?u+"!":u,classGroupId:s,originalClassName:e,hasPostfixModifier:c}}).reverse().filter(function(e){if(!e.isTailwindClass)return!0;var r=e.modifierId,t=e.classGroupId,n=e.hasPostfixModifier,o=r+t;return!c.has(o)&&(c.add(o),s(t,n).forEach(function(e){return c.add(r+e)}),!0)}).reverse().map(function(e){return e.originalClassName}).join(" "));return t(n,d),d}return function(){return u(l.apply(null,arguments))}}(function(){var e=a("colors"),r=a("spacing"),t=a("blur"),n=a("brightness"),o=a("borderColor"),i=a("borderRadius"),l=a("borderSpacing"),s=a("borderWidth"),c=a("contrast"),u=a("grayscale"),d=a("hueRotate"),f=a("invert"),p=a("gap"),j=a("gradientColorStops"),M=a("gradientColorStopPositions"),O=a("inset"),P=a("margin"),_=a("opacity"),S=a("padding"),I=a("saturate"),T=a("scale"),A=a("sepia"),R=a("skew"),G=a("space"),$=a("translate"),U=function(){return["auto","contain","none"]},L=function(){return["auto","hidden","clip","visible","scroll"]},W=function(){return["auto",N,r]},V=function(){return[N,r]},D=function(){return["",b]},F=function(){return["auto",x,N]},Z=function(){return["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"]},B=function(){return["solid","dashed","dotted","double","none"]},q=function(){return["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"]},H=function(){return["start","end","center","between","around","evenly","stretch"]},Y=function(){return["","0",N]},J=function(){return["auto","avoid","all","avoid-page","page","left","right","column"]},K=function(){return[x,y]},Q=function(){return[x,N]};return{cacheSize:500,theme:{colors:[E],spacing:[b],blur:["none","",C,N],brightness:K(),borderColor:[e],borderRadius:["none","","full",C,N],borderSpacing:V(),borderWidth:D(),contrast:K(),grayscale:Y(),hueRotate:Q(),invert:Y(),gap:V(),gradientColorStops:[e],gradientColorStopPositions:[w,m],inset:W(),margin:W(),opacity:K(),padding:V(),saturate:K(),scale:K(),sepia:Y(),skew:Q(),space:V(),translate:V()},classGroups:{aspect:[{aspect:["auto","square","video",N]}],container:["container"],columns:[{columns:[C]}],"break-after":[{"break-after":J()}],"break-before":[{"break-before":J()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none"]}],clear:[{clear:["left","right","both","none"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[].concat(Z(),[N])}],overflow:[{overflow:L()}],"overflow-x":[{"overflow-x":L()}],"overflow-y":[{"overflow-y":L()}],overscroll:[{overscroll:U()}],"overscroll-x":[{"overscroll-x":U()}],"overscroll-y":[{"overscroll-y":U()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[O]}],"inset-x":[{"inset-x":[O]}],"inset-y":[{"inset-y":[O]}],start:[{start:[O]}],end:[{end:[O]}],top:[{top:[O]}],right:[{right:[O]}],bottom:[{bottom:[O]}],left:[{left:[O]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",k]}],basis:[{basis:W()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",N]}],grow:[{grow:Y()}],shrink:[{shrink:Y()}],order:[{order:["first","last","none",k]}],"grid-cols":[{"grid-cols":[E]}],"col-start-end":[{col:["auto",{span:["full",k]},N]}],"col-start":[{"col-start":F()}],"col-end":[{"col-end":F()}],"grid-rows":[{"grid-rows":[E]}],"row-start-end":[{row:["auto",{span:[k]},N]}],"row-start":[{"row-start":F()}],"row-end":[{"row-end":F()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",N]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",N]}],gap:[{gap:[p]}],"gap-x":[{"gap-x":[p]}],"gap-y":[{"gap-y":[p]}],"justify-content":[{justify:["normal"].concat(H())}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal"].concat(H(),["baseline"])}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[].concat(H(),["baseline"])}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[S]}],px:[{px:[S]}],py:[{py:[S]}],ps:[{ps:[S]}],pe:[{pe:[S]}],pt:[{pt:[S]}],pr:[{pr:[S]}],pb:[{pb:[S]}],pl:[{pl:[S]}],m:[{m:[P]}],mx:[{mx:[P]}],my:[{my:[P]}],ms:[{ms:[P]}],me:[{me:[P]}],mt:[{mt:[P]}],mr:[{mr:[P]}],mb:[{mb:[P]}],ml:[{ml:[P]}],"space-x":[{"space-x":[G]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[G]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit",N,r]}],"min-w":[{"min-w":["min","max","fit",N,b]}],"max-w":[{"max-w":["0","none","full","min","max","fit","prose",{screen:[C]},C,N]}],h:[{h:[N,r,"auto","min","max","fit"]}],"min-h":[{"min-h":["min","max","fit",N,b]}],"max-h":[{"max-h":[N,r,"min","max","fit"]}],"font-size":[{text:["base",C,m]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",y]}],"font-family":[{font:[E]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",N]}],"line-clamp":[{"line-clamp":["none",x,y]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",N,b]}],"list-image":[{"list-image":["none",N]}],"list-style-type":[{list:["none","disc","decimal",N]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[_]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[_]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[].concat(B(),["wavy"])}],"text-decoration-thickness":[{decoration:["auto","from-font",b]}],"underline-offset":[{"underline-offset":["auto",N,b]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],indent:[{indent:V()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",N]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",N]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[_]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[].concat(Z(),[v])}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",g]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},h]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[M]}],"gradient-via-pos":[{via:[M]}],"gradient-to-pos":[{to:[M]}],"gradient-from":[{from:[j]}],"gradient-via":[{via:[j]}],"gradient-to":[{to:[j]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[_]}],"border-style":[{border:[].concat(B(),["hidden"])}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[_]}],"divide-style":[{divide:B()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:[""].concat(B())}],"outline-offset":[{"outline-offset":[N,b]}],"outline-w":[{outline:[b]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:D()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[_]}],"ring-offset-w":[{"ring-offset":[b]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",C,z]}],"shadow-color":[{shadow:[E]}],opacity:[{opacity:[_]}],"mix-blend":[{"mix-blend":q()}],"bg-blend":[{"bg-blend":q()}],filter:[{filter:["","none"]}],blur:[{blur:[t]}],brightness:[{brightness:[n]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",C,N]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[f]}],saturate:[{saturate:[I]}],sepia:[{sepia:[A]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[t]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[_]}],"backdrop-saturate":[{"backdrop-saturate":[I]}],"backdrop-sepia":[{"backdrop-sepia":[A]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[l]}],"border-spacing-x":[{"border-spacing-x":[l]}],"border-spacing-y":[{"border-spacing-y":[l]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",N]}],duration:[{duration:Q()}],ease:[{ease:["linear","in","out","in-out",N]}],delay:[{delay:Q()}],animate:[{animate:["none","spin","ping","pulse","bounce",N]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[T]}],"scale-x":[{"scale-x":[T]}],"scale-y":[{"scale-y":[T]}],rotate:[{rotate:[k,N]}],"translate-x":[{"translate-x":[$]}],"translate-y":[{"translate-y":[$]}],"skew-x":[{"skew-x":[R]}],"skew-y":[{"skew-y":[R]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",N]}],accent:[{accent:["auto",e]}],appearance:["appearance-none"],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",N]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":V()}],"scroll-mx":[{"scroll-mx":V()}],"scroll-my":[{"scroll-my":V()}],"scroll-ms":[{"scroll-ms":V()}],"scroll-me":[{"scroll-me":V()}],"scroll-mt":[{"scroll-mt":V()}],"scroll-mr":[{"scroll-mr":V()}],"scroll-mb":[{"scroll-mb":V()}],"scroll-ml":[{"scroll-ml":V()}],"scroll-p":[{"scroll-p":V()}],"scroll-px":[{"scroll-px":V()}],"scroll-py":[{"scroll-py":V()}],"scroll-ps":[{"scroll-ps":V()}],"scroll-pe":[{"scroll-pe":V()}],"scroll-pt":[{"scroll-pt":V()}],"scroll-pr":[{"scroll-pr":V()}],"scroll-pb":[{"scroll-pb":V()}],"scroll-pl":[{"scroll-pl":V()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","pinch-zoom","manipulation",{pan:["x","left","right","y","up","down"]}]}],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",N]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[b,y]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}})}}]); \ No newline at end of file diff --git a/crates/tabby/ui/_next/static/chunks/362-ae0994d279f3f3bb.js b/crates/tabby/ui/_next/static/chunks/362-ae0994d279f3f3bb.js new file mode 100644 index 0000000..7d58ace --- /dev/null +++ b/crates/tabby/ui/_next/static/chunks/362-ae0994d279f3f3bb.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[362],{45362:function(e,t,r){r.d(t,{Z:function(){return er}});var n,i,a=r(2265),u=r(26272);let l=()=>{},o=l(),s=Object,d=e=>e===o,c=e=>"function"==typeof e,f=(e,t)=>({...e,...t}),g=e=>c(e.then),E=new WeakMap,h=0,w=e=>{let t,r;let n=typeof e,i=e&&e.constructor,a=i==Date;if(s(e)!==e||a||i==RegExp)t=a?e.toJSON():"symbol"==n?e.toString():"string"==n?JSON.stringify(e):""+e;else{if(t=E.get(e))return t;if(t=++h+"~",E.set(e,t),i==Array){for(r=0,t="@";ry&&typeof window.requestAnimationFrame!=R,b=(e,t)=>{let r=_.get(e);return[()=>!d(t)&&e.get(t)||p,n=>{if(!d(t)){let i=e.get(t);t in v||(v[t]=i),r[5](t,f(i,n),i||p)}},r[6],()=>!d(t)&&t in v?v[t]:!d(t)&&e.get(t)||p]},O=!0,[V,S]=y&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[l,l],L={initFocus:e=>(T&&document.addEventListener("visibilitychange",e),V("focus",e),()=>{T&&document.removeEventListener("visibilitychange",e),S("focus",e)}),initReconnect:e=>{let t=()=>{O=!0,e()},r=()=>{O=!1};return V("online",t),V("offline",r),()=>{S("online",t),S("offline",r)}}},k=!a.useId,C=!y||"Deno"in window,N=e=>m()?window.requestAnimationFrame(e):setTimeout(e,1),D=C?a.useEffect:a.useLayoutEffect,A="undefined"!=typeof navigator&&navigator.connection,I=!C&&A&&(["slow-2g","2g"].includes(A.effectiveType)||A.saveData),F=e=>{if(c(e))try{e=e()}catch(t){e=""}let t=e;return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?w(e):"",t]},M=0,P=()=>++M;var x={ERROR_REVALIDATE_EVENT:3,FOCUS_EVENT:0,MUTATE_EVENT:2,RECONNECT_EVENT:1};async function U(...e){let[t,r,n,i]=e,a=f({populateCache:!0,throwOnError:!0},"boolean"==typeof i?{revalidate:i}:i||{}),u=a.populateCache,l=a.rollbackOnError,s=a.optimisticData,E=!1!==a.revalidate,h=e=>"function"==typeof l?l(e):!1!==l,w=a.throwOnError;if(c(r)){let e=[],n=t.keys();for(let i of n)!/^\$(inf|sub)\$/.test(i)&&r(t.get(i)._k)&&e.push(i);return Promise.all(e.map(p))}return p(r);async function p(r){let i;let[a]=F(r);if(!a)return;let[l,f]=b(t,a),[p,v,R,y]=_.get(t),T=()=>{let e=p[a];return E&&(delete R[a],delete y[a],e&&e[0])?e[0](2).then(()=>l().data):l().data};if(e.length<3)return T();let m=n,O=P();v[a]=[O,0];let V=!d(s),S=l(),L=S.data,k=S._c,C=d(k)?L:k;if(V&&f({data:s=c(s)?s(C,L):s,_c:C}),c(m))try{m=m(C)}catch(e){i=e}if(m&&g(m)){if(m=await m.catch(e=>{i=e}),O!==v[a][0]){if(i)throw i;return m}i&&V&&h(i)&&(u=!0,f({data:C,_c:o}))}if(u&&!i){if(c(u)){let e=u(m,C);f({data:e,error:o,_c:o})}else f({data:m,error:o,_c:o})}if(v[a][1]=P(),Promise.resolve(T()).then(()=>{f({_c:o})}),i){if(w)throw i;return}return m}}let W=(e,t)=>{for(let r in e)e[r][0]&&e[r][0](t)},$=(e,t)=>{if(!_.has(e)){let r=f(L,t),n={},i=U.bind(o,e),a=l,u={},s=(e,t)=>{let r=u[e]||[];return u[e]=r,r.push(t),()=>r.splice(r.indexOf(t),1)},d=(t,r,n)=>{e.set(t,r);let i=u[t];if(i)for(let e of i)e(r,n)},c=()=>{if(!_.has(e)&&(_.set(e,[n,{},{},{},i,d,s]),!C)){let t=r.initFocus(setTimeout.bind(o,W.bind(o,n,0))),i=r.initReconnect(setTimeout.bind(o,W.bind(o,n,1)));a=()=>{t&&t(),i&&i(),_.delete(e)}}};return c(),[e,i,c,a]}return[e,_.get(e)[4]]},[j,q]=$(new Map),J=f({onLoadingSlow:l,onSuccess:l,onError:l,onErrorRetry:(e,t,r,n,i)=>{let a=r.errorRetryCount,u=i.retryCount,l=~~((Math.random()+.5)*(1<<(u<8?u:8)))*r.errorRetryInterval;(d(a)||!(u>a))&&setTimeout(n,l,i)},onDiscarded:l,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:I?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:I?5e3:3e3,compare:(e,t)=>w(e)==w(t),isPaused:()=>!1,cache:j,mutate:q,fallback:{}},{isOnline:()=>O,isVisible:()=>{let e=T&&document.visibilityState;return d(e)||"hidden"!==e}}),Z=(e,t)=>{let r=f(e,t);if(t){let{use:n,fallback:i}=e,{use:a,fallback:u}=t;n&&a&&(r.use=n.concat(a)),i&&u&&(r.fallback=f(i,u))}return r},z=(0,a.createContext)({}),B=y&&window.__SWR_DEVTOOLS_USE__,G=B?window.__SWR_DEVTOOLS_USE__:[],H=e=>c(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}],K=()=>f(J,(0,a.useContext)(z)),Q=G.concat(e=>(t,r,n)=>{let i=r&&((...e)=>{let[n]=F(t),[,,,i]=_.get(j);if(n.startsWith("$inf$"))return r(...e);let a=i[n];return d(a)?r(...e):(delete i[n],a)});return e(t,i,n)}),X=(e,t,r)=>{let n=t[e]||(t[e]=[]);return n.push(r),()=>{let e=n.indexOf(r);e>=0&&(n[e]=n[n.length-1],n.pop())}};B&&(window.__SWR_DEVTOOLS_REACT__=a);let Y=a.use||(e=>{if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;if("rejected"===e.status)throw e.reason;throw e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e}),ee={dedupe:!0};s.defineProperty(e=>{let{value:t}=e,r=(0,a.useContext)(z),n=c(t),i=(0,a.useMemo)(()=>n?t(r):t,[n,r,t]),u=(0,a.useMemo)(()=>n?i:Z(r,i),[n,r,i]),l=i&&i.provider,s=(0,a.useRef)(o);l&&!s.current&&(s.current=$(l(u.cache||j),i));let d=s.current;return d&&(u.cache=d[0],u.mutate=d[1]),D(()=>{if(d)return d[2]&&d[2](),d[3]},[]),(0,a.createElement)(z.Provider,f(e,{value:u}))},"defaultValue",{value:J});let et=(n=(e,t,r)=>{let{cache:n,compare:i,suspense:l,fallbackData:s,revalidateOnMount:g,revalidateIfStale:E,refreshInterval:h,refreshWhenHidden:w,refreshWhenOffline:p,keepPreviousData:v}=r,[R,y,T,m]=_.get(n),[O,V]=F(e),S=(0,a.useRef)(!1),L=(0,a.useRef)(!1),A=(0,a.useRef)(O),I=(0,a.useRef)(t),M=(0,a.useRef)(r),W=()=>M.current,$=()=>W().isVisible()&&W().isOnline(),[j,q,J,Z]=b(n,O),z=(0,a.useRef)({}).current,B=d(s)?r.fallback[O]:s,G=(e,t)=>{for(let r in z)if("data"===r){if(!i(e[r],t[r])&&(!d(e[r])||!i(eu,t[r])))return!1}else if(t[r]!==e[r])return!1;return!0},H=(0,a.useMemo)(()=>{let e=!!O&&!!t&&(d(g)?!W().isPaused()&&!l&&(!!d(E)||E):g),r=t=>{let r=f(t);return(delete r._k,e)?{isValidating:!0,isLoading:!0,...r}:r},n=j(),i=Z(),a=r(n),u=n===i?a:r(i),o=a;return[()=>{let e=r(j()),t=G(e,o);return t?(o.data=e.data,o.isLoading=e.isLoading,o.isValidating=e.isValidating,o.error=e.error,o):(o=e,e)},()=>u]},[n,O]),K=(0,u.useSyncExternalStore)((0,a.useCallback)(e=>J(O,(t,r)=>{G(r,t)||e()}),[n,O]),H[0],H[1]),Q=!S.current,et=R[O]&&R[O].length>0,er=K.data,en=d(er)?B:er,ei=K.error,ea=(0,a.useRef)(en),eu=v?d(er)?ea.current:er:en,el=(!et||!!d(ei))&&(Q&&!d(g)?g:!W().isPaused()&&(l?!d(en)&&E:d(en)||E)),eo=!!(O&&t&&Q&&el),es=d(K.isValidating)?eo:K.isValidating,ed=d(K.isLoading)?eo:K.isLoading,ec=(0,a.useCallback)(async e=>{let t,n;let a=I.current;if(!O||!a||L.current||W().isPaused())return!1;let u=!0,l=e||{},s=!T[O]||!l.dedupe,f=()=>k?!L.current&&O===A.current&&S.current:O===A.current,g={isValidating:!1,isLoading:!1},E=()=>{q(g)},h=()=>{let e=T[O];e&&e[1]===n&&delete T[O]},w={isValidating:!0};d(j().data)&&(w.isLoading=!0);try{if(s&&(q(w),r.loadingTimeout&&d(j().data)&&setTimeout(()=>{u&&f()&&W().onLoadingSlow(O,r)},r.loadingTimeout),T[O]=[a(V),P()]),[t,n]=T[O],t=await t,s&&setTimeout(h,r.dedupingInterval),!T[O]||T[O][1]!==n)return s&&f()&&W().onDiscarded(O),!1;g.error=o;let e=y[O];if(!d(e)&&(n<=e[0]||n<=e[1]||0===e[1]))return E(),s&&f()&&W().onDiscarded(O),!1;let l=j().data;g.data=i(l,t)?l:t,s&&f()&&W().onSuccess(t,O,r)}catch(r){h();let e=W(),{shouldRetryOnError:t}=e;!e.isPaused()&&(g.error=r,s&&f()&&(e.onError(r,O,e),(!0===t||c(t)&&t(r))&&$()&&e.onErrorRetry(r,O,e,e=>{let t=R[O];t&&t[0]&&t[0](x.ERROR_REVALIDATE_EVENT,e)},{retryCount:(l.retryCount||0)+1,dedupe:!0})))}return u=!1,E(),!0},[O,n]),ef=(0,a.useCallback)((...e)=>U(n,A.current,...e),[]);if(D(()=>{I.current=t,M.current=r,d(er)||(ea.current=er)}),D(()=>{if(!O)return;let e=ec.bind(o,ee),t=0,r=X(O,R,(r,n={})=>{if(r==x.FOCUS_EVENT){let r=Date.now();W().revalidateOnFocus&&r>t&&$()&&(t=r+W().focusThrottleInterval,e())}else if(r==x.RECONNECT_EVENT)W().revalidateOnReconnect&&$()&&e();else if(r==x.MUTATE_EVENT)return ec();else if(r==x.ERROR_REVALIDATE_EVENT)return ec(n)});return L.current=!1,A.current=O,S.current=!0,q({_k:V}),el&&(d(en)||C?e():N(e)),()=>{L.current=!0,r()}},[O]),D(()=>{let e;function t(){let t=c(h)?h(j().data):h;t&&-1!==e&&(e=setTimeout(r,t))}function r(){!j().error&&(w||W().isVisible())&&(p||W().isOnline())?ec(ee).then(t):t()}return t(),()=>{e&&(clearTimeout(e),e=-1)}},[h,w,p,O]),(0,a.useDebugValue)(eu),l&&d(en)&&O){if(!k&&C)throw Error("Fallback data is required when using suspense in SSR.");I.current=t,M.current=r,L.current=!1;let e=m[O];if(!d(e)){let t=ef(e);Y(t)}if(d(ei)){let e=ec(ee);d(eu)||(e.status="fulfilled",e.value=!0),Y(e)}else throw ei}return{mutate:ef,get data(){return z.data=!0,eu},get error(){return z.error=!0,ei},get isValidating(){return z.isValidating=!0,es},get isLoading(){return z.isLoading=!0,ed}}},function(...e){let t=K(),[r,i,a]=H(e),u=Z(t,a),l=n,{use:o}=u,s=(o||[]).concat(Q);for(let e=s.length;e--;)l=s[e](l);return l(r,i||u.fetcher||null,u)}),er=(i=e=>(t,r,n)=>(n.revalidateOnFocus=!1,n.revalidateIfStale=!1,n.revalidateOnReconnect=!1,e(t,r,n)),(...e)=>{let[t,r,n]=H(e),a=(n.use||[]).concat(i);return et(t,r,{...n,use:a})})}}]); \ No newline at end of file diff --git a/crates/tabby/ui/_next/static/chunks/400-bab9e88e0219f9f5.js b/crates/tabby/ui/_next/static/chunks/400-bab9e88e0219f9f5.js new file mode 100644 index 0000000..38aa0b0 --- /dev/null +++ b/crates/tabby/ui/_next/static/chunks/400-bab9e88e0219f9f5.js @@ -0,0 +1,17 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[400],{7404:function(e,r,t){t.d(r,{j:function(){return i}});let n=e=>"boolean"==typeof e?"".concat(e):0===e?"0":e,o=function(){for(var e=arguments.length,r=Array(e),t=0;tt=>{var i;if((null==r?void 0:r.variants)==null)return o(e,null==t?void 0:t.class,null==t?void 0:t.className);let{variants:l,defaultVariants:a}=r,s=Object.keys(l).map(e=>{let r=null==t?void 0:t[e],o=null==a?void 0:a[e];if(null===r)return null;let i=n(r)||n(o);return l[e][i]}),c=t&&Object.entries(t).reduce((e,r)=>{let[t,n]=r;return void 0===n||(e[t]=n),e},{}),u=null==r?void 0:null===(i=r.compoundVariants)||void 0===i?void 0:i.reduce((e,r)=>{let{class:t,className:n,...o}=r;return Object.entries(o).every(e=>{let[r,t]=e;return Array.isArray(t)?t.includes({...a,...c}[r]):({...a,...c})[r]===t})?[...e,t,n]:e},[]);return o(e,s,u,null==t?void 0:t.class,null==t?void 0:t.className)}},50348:function(e,r,t){t.d(r,{W:function(){return n}});function n(){for(var e,r,t=0,n="";te.forEach(e=>{"function"==typeof e?e(r):null!=e&&(e.current=r)})}function i(...e){return(0,n.useCallback)(o(...e),e)}},56989:function(e,r,t){t.d(r,{b:function(){return i},k:function(){return o}});var n=t(2265);function o(e,r){let t=(0,n.createContext)(r);function o(e){let{children:r,...o}=e,i=(0,n.useMemo)(()=>o,Object.values(o));return(0,n.createElement)(t.Provider,{value:i},r)}return o.displayName=e+"Provider",[o,function(o){let i=(0,n.useContext)(t);if(i)return i;if(void 0!==r)return r;throw Error(`\`${o}\` must be used within \`${e}\``)}]}function i(e,r=[]){let t=[],o=()=>{let r=t.map(e=>(0,n.createContext)(e));return function(t){let o=(null==t?void 0:t[e])||r;return(0,n.useMemo)(()=>({[`__scope${e}`]:{...t,[e]:o}}),[t,o])}};return o.scopeName=e,[function(r,o){let i=(0,n.createContext)(o),l=t.length;function a(r){let{scope:t,children:o,...a}=r,s=(null==t?void 0:t[e][l])||i,c=(0,n.useMemo)(()=>a,Object.values(a));return(0,n.createElement)(s.Provider,{value:c},o)}return t=[...t,o],a.displayName=r+"Provider",[a,function(t,a){let s=(null==a?void 0:a[e][l])||i,c=(0,n.useContext)(s);if(c)return c;if(void 0!==o)return o;throw Error(`\`${t}\` must be used within \`${r}\``)}]},function(...e){let r=e[0];if(1===e.length)return r;let t=()=>{let t=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let o=t.reduce((r,{useScope:t,scopeName:n})=>{let o=t(e),i=o[`__scope${n}`];return{...r,...i}},{});return(0,n.useMemo)(()=>({[`__scope${r.scopeName}`]:o}),[o])}};return t.scopeName=r.scopeName,t}(o,...r)]}},20966:function(e,r,t){t.d(r,{M:function(){return s}});var n,o=t(2265),i=t(51030);let l=(n||(n=t.t(o,2)))["useId".toString()]||(()=>void 0),a=0;function s(e){let[r,t]=o.useState(l());return(0,i.b)(()=>{e||t(e=>null!=e?e:String(a++))},[e]),e||(r?`radix-${r}`:"")}},85606:function(e,r,t){t.d(r,{z:function(){return a}});var n=t(2265),o=t(54887),i=t(42210),l=t(51030);let a=e=>{let{present:r,children:t}=e,a=function(e){var r;let[t,i]=(0,n.useState)(),a=(0,n.useRef)({}),c=(0,n.useRef)(e),u=(0,n.useRef)("none"),d=e?"mounted":"unmounted",[f,p]=(r={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},(0,n.useReducer)((e,t)=>{let n=r[e][t];return null!=n?n:e},d));return(0,n.useEffect)(()=>{let e=s(a.current);u.current="mounted"===f?e:"none"},[f]),(0,l.b)(()=>{let r=a.current,t=c.current,n=t!==e;if(n){let n=u.current,o=s(r);e?p("MOUNT"):"none"===o||(null==r?void 0:r.display)==="none"?p("UNMOUNT"):t&&n!==o?p("ANIMATION_OUT"):p("UNMOUNT"),c.current=e}},[e,p]),(0,l.b)(()=>{if(t){let e=e=>{let r=s(a.current),n=r.includes(e.animationName);e.target===t&&n&&(0,o.flushSync)(()=>p("ANIMATION_END"))},r=e=>{e.target===t&&(u.current=s(a.current))};return t.addEventListener("animationstart",r),t.addEventListener("animationcancel",e),t.addEventListener("animationend",e),()=>{t.removeEventListener("animationstart",r),t.removeEventListener("animationcancel",e),t.removeEventListener("animationend",e)}}p("ANIMATION_END")},[t,p]),{isPresent:["mounted","unmountSuspended"].includes(f),ref:(0,n.useCallback)(e=>{e&&(a.current=getComputedStyle(e)),i(e)},[])}}(r),c="function"==typeof t?t({present:a.isPresent}):n.Children.only(t),u=(0,i.e)(a.ref,c.ref),d="function"==typeof t;return d||a.isPresent?(0,n.cloneElement)(c,{ref:u}):null};function s(e){return(null==e?void 0:e.animationName)||"none"}a.displayName="Presence"},9381:function(e,r,t){t.d(r,{WV:function(){return a},jH:function(){return s}});var n=t(13428),o=t(2265),i=t(54887),l=t(67256);let a=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,r)=>{let t=(0,o.forwardRef)((e,t)=>{let{asChild:i,...a}=e,s=i?l.g7:r;return(0,o.useEffect)(()=>{window[Symbol.for("radix-ui")]=!0},[]),(0,o.createElement)(s,(0,n.Z)({},a,{ref:t}))});return t.displayName=`Primitive.${r}`,{...e,[r]:t}},{});function s(e,r){e&&(0,i.flushSync)(()=>e.dispatchEvent(r))}},67256:function(e,r,t){t.d(r,{A4:function(){return s},g7:function(){return l}});var n=t(13428),o=t(2265),i=t(42210);let l=(0,o.forwardRef)((e,r)=>{let{children:t,...i}=e,l=o.Children.toArray(t),s=l.find(c);if(s){let e=s.props.children,t=l.map(r=>r!==s?r:o.Children.count(e)>1?o.Children.only(null):(0,o.isValidElement)(e)?e.props.children:null);return(0,o.createElement)(a,(0,n.Z)({},i,{ref:r}),(0,o.isValidElement)(e)?(0,o.cloneElement)(e,void 0,t):null)}return(0,o.createElement)(a,(0,n.Z)({},i,{ref:r}),t)});l.displayName="Slot";let a=(0,o.forwardRef)((e,r)=>{let{children:t,...n}=e;return(0,o.isValidElement)(t)?(0,o.cloneElement)(t,{...function(e,r){let t={...r};for(let n in r){let o=e[n],i=r[n],l=/^on[A-Z]/.test(n);l?o&&i?t[n]=(...e)=>{i(...e),o(...e)}:o&&(t[n]=o):"style"===n?t[n]={...o,...i}:"className"===n&&(t[n]=[o,i].filter(Boolean).join(" "))}return{...e,...t}}(n,t.props),ref:r?(0,i.F)(r,t.ref):t.ref}):o.Children.count(t)>1?o.Children.only(null):null});a.displayName="SlotClone";let s=({children:e})=>(0,o.createElement)(o.Fragment,null,e);function c(e){return(0,o.isValidElement)(e)&&e.type===s}},16459:function(e,r,t){t.d(r,{W:function(){return o}});var n=t(2265);function o(e){let r=(0,n.useRef)(e);return(0,n.useEffect)(()=>{r.current=e}),(0,n.useMemo)(()=>(...e)=>{var t;return null===(t=r.current)||void 0===t?void 0:t.call(r,...e)},[])}},73763:function(e,r,t){t.d(r,{T:function(){return i}});var n=t(2265),o=t(16459);function i({prop:e,defaultProp:r,onChange:t=()=>{}}){let[i,l]=function({defaultProp:e,onChange:r}){let t=(0,n.useState)(e),[i]=t,l=(0,n.useRef)(i),a=(0,o.W)(r);return(0,n.useEffect)(()=>{l.current!==i&&(a(i),l.current=i)},[i,l,a]),t}({defaultProp:r,onChange:t}),a=void 0!==e,s=a?e:i,c=(0,o.W)(t),u=(0,n.useCallback)(r=>{if(a){let t="function"==typeof r?r(e):r;t!==e&&c(t)}else l(r)},[a,e,l,c]);return[s,u]}},12488:function(e,r,t){t.d(r,{e:function(){return i}});var n=t(2265),o=t(16459);function i(e,r=null==globalThis?void 0:globalThis.document){let t=(0,o.W)(e);(0,n.useEffect)(()=>{let e=e=>{"Escape"===e.key&&t(e)};return r.addEventListener("keydown",e),()=>r.removeEventListener("keydown",e)},[t,r])}},51030:function(e,r,t){t.d(r,{b:function(){return o}});var n=t(2265);let o=(null==globalThis?void 0:globalThis.document)?n.useLayoutEffect:()=>{}},28481:function(e,r,t){t.d(r,{kP:function(){return i}});let n=e=>crypto.getRandomValues(new Uint8Array(e)),o=(e,r,t)=>{let n=(2<{let l="";for(;;){let r=t(o),a=o;for(;a--;)if((l+=e[r[a]&n]||"").length===i)return l}}},i=(e,r=21)=>o(e,r,n)},23986:function(e,r,t){t.d(r,{m:function(){return I}});var n=/^\[(.+)\]$/;function o(e,r){var t=e;return r.split("-").forEach(function(e){t.nextPart.has(e)||t.nextPart.set(e,{nextPart:new Map,validators:[]}),t=t.nextPart.get(e)}),t}var i=/\s+/;function l(){for(var e,r,t=0,n="";te&&(r=0,n=t,t=new Map)}return{get:function(e){var r=t.get(e);return void 0!==r?r:void 0!==(r=n.get(e))?(o(e,r),r):void 0},set:function(e,r){t.has(e)?t.set(e,r):o(e,r)}}}(e.cacheSize),splitModifiers:(t=1===(r=e.separator||":").length,i=r[0],l=r.length,function(e){for(var n,o=[],a=0,s=0,c=0;cs?n-s:void 0}}),...(u=e.theme,d=e.prefix,f={nextPart:new Map,validators:[]},(p=Object.entries(e.classGroups),d?p.map(function(e){return[e[0],e[1].map(function(e){return"string"==typeof e?d+e:"object"==typeof e?Object.fromEntries(Object.entries(e).map(function(e){return[d+e[0],e[1]]})):e})]}):p).forEach(function(e){var r=e[0];(function e(r,t,n,i){r.forEach(function(r){if("string"==typeof r){(""===r?t:o(t,r)).classGroupId=n;return}if("function"==typeof r){if(r.isThemeGetter){e(r(i),t,n,i);return}t.validators.push({validator:r,classGroupId:n});return}Object.entries(r).forEach(function(r){var l=r[0];e(r[1],o(t,l),n,i)})})})(e[1],f,r,u)}),a=e.conflictingClassGroups,c=void 0===(s=e.conflictingClassGroupModifiers)?{}:s,{getClassGroupId:function(e){var r=e.split("-");return""===r[0]&&1!==r.length&&r.shift(),function e(r,t){if(0===r.length)return t.classGroupId;var n=r[0],o=t.nextPart.get(n),i=o?e(r.slice(1),o):void 0;if(i)return i;if(0!==t.validators.length){var l=r.join("-");return t.validators.find(function(e){return(0,e.validator)(l)})?.classGroupId}}(r,f)||function(e){if(n.test(e)){var r=n.exec(e)[1],t=r?.substring(0,r.indexOf(":"));if(t)return"arbitrary.."+t}}(e)},getConflictingClassGroupIds:function(e,r){var t=a[e]||[];return r&&c[e]?[].concat(t,c[e]):t}})}}(s.slice(1).reduce(function(e,r){return r(e)},l()))).cache.get,t=e.cache.set,u=d,d(i)};function d(n){var o,l,a,s,c,u=r(n);if(u)return u;var d=(l=(o=e).splitModifiers,a=o.getClassGroupId,s=o.getConflictingClassGroupIds,c=new Set,n.trim().split(i).map(function(e){var r=l(e),t=r.modifiers,n=r.hasImportantModifier,o=r.baseClassName,i=r.maybePostfixModifierPosition,s=a(i?o.substring(0,i):o),c=!!i;if(!s){if(!i||!(s=a(o)))return{isTailwindClass:!1,originalClassName:e};c=!1}var u=(function(e){if(e.length<=1)return e;var r=[],t=[];return e.forEach(function(e){"["===e[0]?(r.push.apply(r,t.sort().concat([e])),t=[]):t.push(e)}),r.push.apply(r,t.sort()),r})(t).join(":");return{isTailwindClass:!0,modifierId:n?u+"!":u,classGroupId:s,originalClassName:e,hasPostfixModifier:c}}).reverse().filter(function(e){if(!e.isTailwindClass)return!0;var r=e.modifierId,t=e.classGroupId,n=e.hasPostfixModifier,o=r+t;return!c.has(o)&&(c.add(o),s(t,n).forEach(function(e){return c.add(r+e)}),!0)}).reverse().map(function(e){return e.originalClassName}).join(" "));return t(n,d),d}return function(){return u(l.apply(null,arguments))}}(function(){var e=a("colors"),r=a("spacing"),t=a("blur"),n=a("brightness"),o=a("borderColor"),i=a("borderRadius"),l=a("borderSpacing"),s=a("borderWidth"),c=a("contrast"),u=a("grayscale"),d=a("hueRotate"),f=a("invert"),p=a("gap"),j=a("gradientColorStops"),z=a("gradientColorStopPositions"),O=a("inset"),M=a("margin"),P=a("opacity"),_=a("padding"),I=a("saturate"),T=a("scale"),A=a("sepia"),R=a("skew"),G=a("space"),$=a("translate"),L=function(){return["auto","contain","none"]},U=function(){return["auto","hidden","clip","visible","scroll"]},W=function(){return["auto",N,r]},V=function(){return[N,r]},D=function(){return["",b]},F=function(){return["auto",x,N]},Z=function(){return["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"]},B=function(){return["solid","dashed","dotted","double","none"]},q=function(){return["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"]},H=function(){return["start","end","center","between","around","evenly","stretch"]},Y=function(){return["","0",N]},J=function(){return["auto","avoid","all","avoid-page","page","left","right","column"]},K=function(){return[x,y]},Q=function(){return[x,N]};return{cacheSize:500,theme:{colors:[E],spacing:[b],blur:["none","",C,N],brightness:K(),borderColor:[e],borderRadius:["none","","full",C,N],borderSpacing:V(),borderWidth:D(),contrast:K(),grayscale:Y(),hueRotate:Q(),invert:Y(),gap:V(),gradientColorStops:[e],gradientColorStopPositions:[w,m],inset:W(),margin:W(),opacity:K(),padding:V(),saturate:K(),scale:K(),sepia:Y(),skew:Q(),space:V(),translate:V()},classGroups:{aspect:[{aspect:["auto","square","video",N]}],container:["container"],columns:[{columns:[C]}],"break-after":[{"break-after":J()}],"break-before":[{"break-before":J()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none"]}],clear:[{clear:["left","right","both","none"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[].concat(Z(),[N])}],overflow:[{overflow:U()}],"overflow-x":[{"overflow-x":U()}],"overflow-y":[{"overflow-y":U()}],overscroll:[{overscroll:L()}],"overscroll-x":[{"overscroll-x":L()}],"overscroll-y":[{"overscroll-y":L()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[O]}],"inset-x":[{"inset-x":[O]}],"inset-y":[{"inset-y":[O]}],start:[{start:[O]}],end:[{end:[O]}],top:[{top:[O]}],right:[{right:[O]}],bottom:[{bottom:[O]}],left:[{left:[O]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",k]}],basis:[{basis:W()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",N]}],grow:[{grow:Y()}],shrink:[{shrink:Y()}],order:[{order:["first","last","none",k]}],"grid-cols":[{"grid-cols":[E]}],"col-start-end":[{col:["auto",{span:["full",k]},N]}],"col-start":[{"col-start":F()}],"col-end":[{"col-end":F()}],"grid-rows":[{"grid-rows":[E]}],"row-start-end":[{row:["auto",{span:[k]},N]}],"row-start":[{"row-start":F()}],"row-end":[{"row-end":F()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",N]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",N]}],gap:[{gap:[p]}],"gap-x":[{"gap-x":[p]}],"gap-y":[{"gap-y":[p]}],"justify-content":[{justify:["normal"].concat(H())}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal"].concat(H(),["baseline"])}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[].concat(H(),["baseline"])}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[_]}],px:[{px:[_]}],py:[{py:[_]}],ps:[{ps:[_]}],pe:[{pe:[_]}],pt:[{pt:[_]}],pr:[{pr:[_]}],pb:[{pb:[_]}],pl:[{pl:[_]}],m:[{m:[M]}],mx:[{mx:[M]}],my:[{my:[M]}],ms:[{ms:[M]}],me:[{me:[M]}],mt:[{mt:[M]}],mr:[{mr:[M]}],mb:[{mb:[M]}],ml:[{ml:[M]}],"space-x":[{"space-x":[G]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[G]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit",N,r]}],"min-w":[{"min-w":["min","max","fit",N,b]}],"max-w":[{"max-w":["0","none","full","min","max","fit","prose",{screen:[C]},C,N]}],h:[{h:[N,r,"auto","min","max","fit"]}],"min-h":[{"min-h":["min","max","fit",N,b]}],"max-h":[{"max-h":[N,r,"min","max","fit"]}],"font-size":[{text:["base",C,m]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",y]}],"font-family":[{font:[E]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",N]}],"line-clamp":[{"line-clamp":["none",x,y]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",N,b]}],"list-image":[{"list-image":["none",N]}],"list-style-type":[{list:["none","disc","decimal",N]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[P]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[P]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[].concat(B(),["wavy"])}],"text-decoration-thickness":[{decoration:["auto","from-font",b]}],"underline-offset":[{"underline-offset":["auto",N,b]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],indent:[{indent:V()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",N]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",N]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[P]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[].concat(Z(),[v])}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",g]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},h]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[z]}],"gradient-via-pos":[{via:[z]}],"gradient-to-pos":[{to:[z]}],"gradient-from":[{from:[j]}],"gradient-via":[{via:[j]}],"gradient-to":[{to:[j]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[P]}],"border-style":[{border:[].concat(B(),["hidden"])}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[P]}],"divide-style":[{divide:B()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:[""].concat(B())}],"outline-offset":[{"outline-offset":[N,b]}],"outline-w":[{outline:[b]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:D()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[P]}],"ring-offset-w":[{"ring-offset":[b]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",C,S]}],"shadow-color":[{shadow:[E]}],opacity:[{opacity:[P]}],"mix-blend":[{"mix-blend":q()}],"bg-blend":[{"bg-blend":q()}],filter:[{filter:["","none"]}],blur:[{blur:[t]}],brightness:[{brightness:[n]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",C,N]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[f]}],saturate:[{saturate:[I]}],sepia:[{sepia:[A]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[t]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[P]}],"backdrop-saturate":[{"backdrop-saturate":[I]}],"backdrop-sepia":[{"backdrop-sepia":[A]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[l]}],"border-spacing-x":[{"border-spacing-x":[l]}],"border-spacing-y":[{"border-spacing-y":[l]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",N]}],duration:[{duration:Q()}],ease:[{ease:["linear","in","out","in-out",N]}],delay:[{delay:Q()}],animate:[{animate:["none","spin","ping","pulse","bounce",N]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[T]}],"scale-x":[{"scale-x":[T]}],"scale-y":[{"scale-y":[T]}],rotate:[{rotate:[k,N]}],"translate-x":[{"translate-x":[$]}],"translate-y":[{"translate-y":[$]}],"skew-x":[{"skew-x":[R]}],"skew-y":[{"skew-y":[R]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",N]}],accent:[{accent:["auto",e]}],appearance:["appearance-none"],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",N]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":V()}],"scroll-mx":[{"scroll-mx":V()}],"scroll-my":[{"scroll-my":V()}],"scroll-ms":[{"scroll-ms":V()}],"scroll-me":[{"scroll-me":V()}],"scroll-mt":[{"scroll-mt":V()}],"scroll-mr":[{"scroll-mr":V()}],"scroll-mb":[{"scroll-mb":V()}],"scroll-ml":[{"scroll-ml":V()}],"scroll-p":[{"scroll-p":V()}],"scroll-px":[{"scroll-px":V()}],"scroll-py":[{"scroll-py":V()}],"scroll-ps":[{"scroll-ps":V()}],"scroll-pe":[{"scroll-pe":V()}],"scroll-pt":[{"scroll-pt":V()}],"scroll-pr":[{"scroll-pr":V()}],"scroll-pb":[{"scroll-pb":V()}],"scroll-pl":[{"scroll-pl":V()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","pinch-zoom","manipulation",{pan:["x","left","right","y","up","down"]}]}],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",N]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[b,y]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}})}}]); \ No newline at end of file diff --git a/crates/tabby/ui/_next/static/chunks/563-52218f82bb9eb225.js b/crates/tabby/ui/_next/static/chunks/563-52218f82bb9eb225.js new file mode 100644 index 0000000..c09d965 --- /dev/null +++ b/crates/tabby/ui/_next/static/chunks/563-52218f82bb9eb225.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[563],{73737:function(e,t,n){"use strict";n.d(t,{q:function(){return f}});let r=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,o=e=>{if("string"!=typeof e)throw TypeError("Invalid argument expected string");let t=e.match(r);if(!t)throw Error(`Invalid argument not valid semver ('${e}' received)`);return t.shift(),t},l=e=>"*"===e||"x"===e||"X"===e,a=e=>{let t=parseInt(e,10);return isNaN(t)?e:t},i=(e,t)=>typeof e!=typeof t?[String(e),String(t)]:[e,t],u=(e,t)=>{if(l(e)||l(t))return 0;let[n,r]=i(a(e),a(t));return n>r?1:n{for(let n=0;n{let n=o(e),r=o(t),l=n.pop(),a=r.pop(),i=s(n,r);return 0!==i?i:l&&a?s(l.split("."),a.split(".")):l||a?l?-1:1:0},f=(e,t,n)=>{p(n);let r=c(e,t);return d[n].includes(r)},d={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1],"!=":[-1,1]},h=Object.keys(d),p=e=>{if("string"!=typeof e)throw TypeError(`Invalid operator type, expected string but got ${typeof e}`);if(-1===h.indexOf(e))throw Error(`Invalid operator, expected one of ${h.join("|")}`)}},6435:function(e,t,n){"use strict";n.d(t,{F:function(){return s},f:function(){return c}});var r=n(2265);let o=["light","dark"],l="(prefers-color-scheme: dark)",a="undefined"==typeof window,i=(0,r.createContext)(void 0),u={setTheme:e=>{},themes:[]},s=()=>{var e;return null!==(e=(0,r.useContext)(i))&&void 0!==e?e:u},c=e=>(0,r.useContext)(i)?r.createElement(r.Fragment,null,e.children):r.createElement(d,e),f=["light","dark"],d=({forcedTheme:e,disableTransitionOnChange:t=!1,enableSystem:n=!0,enableColorScheme:a=!0,storageKey:u="theme",themes:s=f,defaultTheme:c=n?"system":"light",attribute:d="data-theme",value:y,children:b,nonce:_})=>{let[v,O]=(0,r.useState)(()=>p(u,c)),[E,P]=(0,r.useState)(()=>p(u)),S=y?Object.values(y):s,j=(0,r.useCallback)(e=>{let r=e;if(!r)return;"system"===e&&n&&(r=g());let l=y?y[r]:r,i=t?m():null,u=document.documentElement;if("class"===d?(u.classList.remove(...S),l&&u.classList.add(l)):l?u.setAttribute(d,l):u.removeAttribute(d),a){let e=o.includes(c)?c:null,t=o.includes(r)?r:e;u.style.colorScheme=t}null==i||i()},[]),R=(0,r.useCallback)(e=>{O(e);try{localStorage.setItem(u,e)}catch(e){}},[e]),w=(0,r.useCallback)(t=>{let r=g(t);P(r),"system"===v&&n&&!e&&j("system")},[v,e]);(0,r.useEffect)(()=>{let e=window.matchMedia(l);return e.addListener(w),w(e),()=>e.removeListener(w)},[w]),(0,r.useEffect)(()=>{let e=e=>{e.key===u&&R(e.newValue||c)};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)},[R]),(0,r.useEffect)(()=>{j(null!=e?e:v)},[e,v]);let N=(0,r.useMemo)(()=>({theme:v,setTheme:R,forcedTheme:e,resolvedTheme:"system"===v?E:v,themes:n?[...s,"system"]:s,systemTheme:n?E:void 0}),[v,R,e,E,n,s]);return r.createElement(i.Provider,{value:N},r.createElement(h,{forcedTheme:e,disableTransitionOnChange:t,enableSystem:n,enableColorScheme:a,storageKey:u,themes:s,defaultTheme:c,attribute:d,value:y,children:b,attrs:S,nonce:_}),b)},h=(0,r.memo)(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:a,enableColorScheme:i,defaultTheme:u,value:s,attrs:c,nonce:f})=>{let d="system"===u,h="class"===n?`var d=document.documentElement,c=d.classList;c.remove(${c.map(e=>`'${e}'`).join(",")});`:`var d=document.documentElement,n='${n}',s='setAttribute';`,p=i?o.includes(u)&&u?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${u}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",m=(e,t=!1,r=!0)=>{let l=s?s[e]:e,a=t?e+"|| ''":`'${l}'`,u="";return i&&r&&!t&&o.includes(e)&&(u+=`d.style.colorScheme = '${e}';`),"class"===n?u+=t||l?`c.add(${a})`:"null":l&&(u+=`d[s](n,${a})`),u},g=e?`!function(){${h}${m(e)}}()`:a?`!function(){try{${h}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${d})){var t='${l}',m=window.matchMedia(t);if(m.media!==t||m.matches){${m("dark")}}else{${m("light")}}}else if(e){${s?`var x=${JSON.stringify(s)};`:""}${m(s?"x[e]":"e",!0)}}${d?"":"else{"+m(u,!1,!1)+"}"}${p}}catch(e){}}()`:`!function(){try{${h}var e=localStorage.getItem('${t}');if(e){${s?`var x=${JSON.stringify(s)};`:""}${m(s?"x[e]":"e",!0)}}else{${m(u,!1,!1)};}${p}}catch(t){}}();`;return r.createElement("script",{nonce:f,dangerouslySetInnerHTML:{__html:g}})},()=>!0),p=(e,t)=>{let n;if(!a){try{n=localStorage.getItem(e)||void 0}catch(e){}return n||t}},m=()=>{let e=document.createElement("style");return e.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(e),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(e)},1)}},g=e=>(e||(e=window.matchMedia(l)),e.matches?"dark":"light")},95277:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return r}}),n(70474);let r=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r{})}function b(e){return"string"==typeof e?e:(0,i.formatUrl)(e)}let _=o.default.forwardRef(function(e,t){let n,r;let{href:i,as:g,children:_,prefetch:v=null,passHref:O,replace:E,shallow:P,scroll:S,locale:j,onClick:R,onMouseEnter:w,onTouchStart:N,legacyBehavior:x=!1,...M}=e;n=_,x&&("string"==typeof n||"number"==typeof n)&&(n=o.default.createElement("a",null,n));let C=o.default.useContext(c.RouterContext),k=o.default.useContext(f.AppRouterContext),T=null!=C?C:k,I=!C,$=!1!==v,L=null===v?m.PrefetchKind.AUTO:m.PrefetchKind.FULL,{href:A,as:U}=o.default.useMemo(()=>{if(!C){let e=b(i);return{href:e,as:g?b(g):e}}let[e,t]=(0,l.resolveHref)(C,i,!0);return{href:e,as:g?(0,l.resolveHref)(C,g):t||e}},[C,i,g]),W=o.default.useRef(A),z=o.default.useRef(U);x&&(r=o.default.Children.only(n));let D=x?r&&"object"==typeof r&&r.ref:t,[F,K,q]=(0,d.useIntersection)({rootMargin:"200px"}),B=o.default.useCallback(e=>{(z.current!==U||W.current!==A)&&(q(),z.current=U,W.current=A),F(e),D&&("function"==typeof D?D(e):"object"==typeof D&&(D.current=e))},[U,D,A,q,F]);o.default.useEffect(()=>{T&&K&&$&&y(T,A,U,{locale:j},{kind:L},I)},[U,A,K,j,$,null==C?void 0:C.locale,T,I,L]);let Y={ref:B,onClick(e){x||"function"!=typeof R||R(e),x&&r.props&&"function"==typeof r.props.onClick&&r.props.onClick(e),T&&!e.defaultPrevented&&function(e,t,n,r,l,i,u,s,c,f){let{nodeName:d}=e.currentTarget,h="A"===d.toUpperCase();if(h&&(function(e){let t=e.currentTarget,n=t.getAttribute("target");return n&&"_self"!==n||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||!c&&!(0,a.isLocalURL)(n)))return;e.preventDefault();let p=()=>{let e=null==u||u;"beforePopState"in t?t[l?"replace":"push"](n,r,{shallow:i,locale:s,scroll:e}):t[l?"replace":"push"](r||n,{forceOptimisticNavigation:!f,scroll:e})};c?o.default.startTransition(p):p()}(e,T,A,U,E,P,S,j,I,$)},onMouseEnter(e){x||"function"!=typeof w||w(e),x&&r.props&&"function"==typeof r.props.onMouseEnter&&r.props.onMouseEnter(e),T&&($||!I)&&y(T,A,U,{locale:j,priority:!0,bypassPrefetchedCheck:!0},{kind:L},I)},onTouchStart(e){x||"function"!=typeof N||N(e),x&&r.props&&"function"==typeof r.props.onTouchStart&&r.props.onTouchStart(e),T&&($||!I)&&y(T,A,U,{locale:j,priority:!0,bypassPrefetchedCheck:!0},{kind:L},I)}};if((0,u.isAbsoluteUrl)(U))Y.href=U;else if(!x||O||"a"===r.type&&!("href"in r.props)){let e=void 0!==j?j:null==C?void 0:C.locale,t=(null==C?void 0:C.isLocaleDomain)&&(0,h.getDomainLocale)(U,e,null==C?void 0:C.locales,null==C?void 0:C.domainLocales);Y.href=t||(0,p.addBasePath)((0,s.addLocale)(U,e,null==C?void 0:C.defaultLocale))}return x?o.default.cloneElement(r,Y):o.default.createElement("a",{...M,...Y},n)}),v=_;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},64913:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{requestIdleCallback:function(){return n},cancelIdleCallback:function(){return r}});let n="undefined"!=typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(e){let t=Date.now();return self.setTimeout(function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})},1)},r="undefined"!=typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(e){return clearTimeout(e)};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},47896:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"resolveHref",{enumerable:!0,get:function(){return f}});let r=n(38888),o=n(7746),l=n(69946),a=n(22337),i=n(70474),u=n(49357),s=n(31956),c=n(25125);function f(e,t,n){let f;let d="string"==typeof t?t:(0,o.formatWithValidation)(t),h=d.match(/^[a-zA-Z]{1,}:\/\//),p=h?d.slice(h[0].length):d,m=p.split("?");if((m[0]||"").match(/(\/\/|\\)/)){console.error("Invalid href '"+d+"' passed to next/router in page: '"+e.pathname+"'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.");let t=(0,a.normalizeRepeatedSlashes)(p);d=(h?h[0]:"")+t}if(!(0,u.isLocalURL)(d))return n?[d]:d;try{f=new URL(d.startsWith("#")?e.asPath:e.pathname,"http://n")}catch(e){f=new URL("/","http://n")}try{let e=new URL(d,f);e.pathname=(0,i.normalizePathTrailingSlash)(e.pathname);let t="";if((0,s.isDynamicRoute)(e.pathname)&&e.searchParams&&n){let n=(0,r.searchParamsToUrlQuery)(e.searchParams),{result:a,params:i}=(0,c.interpolateAs)(e.pathname,e.pathname,n);a&&(t=(0,o.formatWithValidation)({pathname:a,hash:e.hash,query:(0,l.omit)(n,i)}))}let a=e.origin===f.origin?e.href.slice(e.origin.length):e.href;return n?[a,t||a]:a}catch(e){return n?[d]:d}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},91013:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return u}});let r=n(2265),o=n(64913),l="function"==typeof IntersectionObserver,a=new Map,i=[];function u(e){let{rootRef:t,rootMargin:n,disabled:u}=e,s=u||!l,[c,f]=(0,r.useState)(!1),d=(0,r.useRef)(null),h=(0,r.useCallback)(e=>{d.current=e},[]);(0,r.useEffect)(()=>{if(l){if(s||c)return;let e=d.current;if(e&&e.tagName){let r=function(e,t,n){let{id:r,observer:o,elements:l}=function(e){let t;let n={root:e.root||null,margin:e.rootMargin||""},r=i.find(e=>e.root===n.root&&e.margin===n.margin);if(r&&(t=a.get(r)))return t;let o=new Map,l=new IntersectionObserver(e=>{e.forEach(e=>{let t=o.get(e.target),n=e.isIntersecting||e.intersectionRatio>0;t&&n&&t(n)})},e);return t={id:n,observer:l,elements:o},i.push(n),a.set(n,t),t}(n);return l.set(e,t),o.observe(e),function(){if(l.delete(e),o.unobserve(e),0===l.size){o.disconnect(),a.delete(r);let e=i.findIndex(e=>e.root===r.root&&e.margin===r.margin);e>-1&&i.splice(e,1)}}}(e,e=>e&&f(e),{root:null==t?void 0:t.current,rootMargin:n});return r}}else if(!c){let e=(0,o.requestIdleCallback)(()=>f(!0));return()=>(0,o.cancelIdleCallback)(e)}},[s,n,t,c,d.current]);let p=(0,r.useCallback)(()=>{f(!1)},[]);return[h,c,p]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},30415:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}});let r=n(21024);n(2265);let o=r._(n(54));function l(e){return{default:(null==e?void 0:e.default)||e}}function a(e,t){let n=o.default,r={loading:e=>{let{error:t,isLoading:n,pastDelay:r}=e;return null}};"function"==typeof e&&(r.loader=e),Object.assign(r,t);let a=r.loader;return n({...r,loader:()=>null!=a?a().then(l):Promise.resolve(l(()=>null))})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},62361:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"escapeStringRegexp",{enumerable:!0,get:function(){return o}});let n=/[|\\{}()[\]^$+*?.-]/,r=/[|\\{}()[\]^$+*?.-]/g;function o(e){return n.test(e)?e.replace(r,"\\$&"):e}},63388:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{suspense:function(){return o},NoSSR:function(){return l}}),n(21024),n(2265);let r=n(54922);function o(){let e=Error(r.NEXT_DYNAMIC_NO_SSR_CODE);throw e.digest=r.NEXT_DYNAMIC_NO_SSR_CODE,e}function l(e){let{children:t}=e;return t}},54:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}});let r=n(21024),o=r._(n(2265)),l=n(63388),a=function(e){let t=Object.assign({loader:null,loading:null,ssr:!0},e);function n(e){let n=t.loading,r=o.default.createElement(n,{isLoading:!0,pastDelay:!0,error:null}),a=t.ssr?o.default.Fragment:l.NoSSR,i=t.lazy;return o.default.createElement(o.default.Suspense,{fallback:r},o.default.createElement(a,null,o.default.createElement(i,e)))}return t.lazy=o.default.lazy(t.loader),n.displayName="LoadableComponent",n}},7746:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{formatUrl:function(){return a},urlObjectKeys:function(){return i},formatWithValidation:function(){return u}});let r=n(68533),o=r._(n(38888)),l=/https?|ftp|gopher|file/;function a(e){let{auth:t,hostname:n}=e,r=e.protocol||"",a=e.pathname||"",i=e.hash||"",u=e.query||"",s=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?s=t+e.host:n&&(s=t+(~n.indexOf(":")?"["+n+"]":n),e.port&&(s+=":"+e.port)),u&&"object"==typeof u&&(u=String(o.urlQueryToSearchParams(u)));let c=e.search||u&&"?"+u||"";return r&&!r.endsWith(":")&&(r+=":"),e.slashes||(!r||l.test(r))&&!1!==s?(s="//"+(s||""),a&&"/"!==a[0]&&(a="/"+a)):s||(s=""),i&&"#"!==i[0]&&(i="#"+i),c&&"?"!==c[0]&&(c="?"+c),""+r+s+(a=a.replace(/[?#]/g,encodeURIComponent))+(c=c.replace("#","%23"))+i}let i=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function u(e){return a(e)}},31956:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{getSortedRoutes:function(){return r.getSortedRoutes},isDynamicRoute:function(){return o.isDynamicRoute}});let r=n(83799),o=n(79731)},25125:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"interpolateAs",{enumerable:!0,get:function(){return l}});let r=n(35366),o=n(95319);function l(e,t,n){let l="",a=(0,o.getRouteRegex)(e),i=a.groups,u=(t!==e?(0,r.getRouteMatcher)(a)(t):"")||n;l=e;let s=Object.keys(i);return s.every(e=>{let t=u[e]||"",{repeat:n,optional:r}=i[e],o="["+(n?"...":"")+e+"]";return r&&(o=(t?"":"/")+"["+o+"]"),n&&!Array.isArray(t)&&(t=[t]),(r||e in u)&&(l=l.replace(o,n?t.map(e=>encodeURIComponent(e)).join("/"):encodeURIComponent(t))||"/")})||(l=""),{params:s,result:l}}},79731:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isDynamicRoute",{enumerable:!0,get:function(){return r}});let n=/\/\[[^/]+?\](?=\/|$)/;function r(e){return n.test(e)}},49357:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isLocalURL",{enumerable:!0,get:function(){return l}});let r=n(22337),o=n(44561);function l(e){if(!(0,r.isAbsoluteUrl)(e))return!0;try{let t=(0,r.getLocationOrigin)(),n=new URL(e,t);return n.origin===t&&(0,o.hasBasePath)(n.pathname)}catch(e){return!1}}},69946:function(e,t){"use strict";function n(e,t){let n={};return Object.keys(e).forEach(r=>{t.includes(r)||(n[r]=e[r])}),n}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"omit",{enumerable:!0,get:function(){return n}})},38888:function(e,t){"use strict";function n(e){let t={};return e.forEach((e,n)=>{void 0===t[n]?t[n]=e:Array.isArray(t[n])?t[n].push(e):t[n]=[t[n],e]}),t}function r(e){return"string"!=typeof e&&("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function o(e){let t=new URLSearchParams;return Object.entries(e).forEach(e=>{let[n,o]=e;Array.isArray(o)?o.forEach(e=>t.append(n,r(e))):t.set(n,r(o))}),t}function l(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r{Array.from(t.keys()).forEach(t=>e.delete(t)),t.forEach((t,n)=>e.append(n,t))}),e}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{searchParamsToUrlQuery:function(){return n},urlQueryToSearchParams:function(){return o},assign:function(){return l}})},35366:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getRouteMatcher",{enumerable:!0,get:function(){return o}});let r=n(22337);function o(e){let{re:t,groups:n}=e;return e=>{let o=t.exec(e);if(!o)return!1;let l=e=>{try{return decodeURIComponent(e)}catch(e){throw new r.DecodeError("failed to decode param")}},a={};return Object.keys(n).forEach(e=>{let t=n[e],r=o[t.pos];void 0!==r&&(a[e]=~r.indexOf("/")?r.split("/").map(e=>l(e)):t.repeat?[l(r)]:l(r))}),a}}},95319:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{getRouteRegex:function(){return u},getNamedRouteRegex:function(){return f},getNamedMiddlewareRegex:function(){return d}});let r=n(84507),o=n(62361),l=n(993);function a(e){let t=e.startsWith("[")&&e.endsWith("]");t&&(e=e.slice(1,-1));let n=e.startsWith("...");return n&&(e=e.slice(3)),{key:e,repeat:n,optional:t}}function i(e){let t=(0,l.removeTrailingSlash)(e).slice(1).split("/"),n={},i=1;return{parameterizedRoute:t.map(e=>{let t=r.INTERCEPTION_ROUTE_MARKERS.find(t=>e.startsWith(t)),l=e.match(/\[((?:\[.*\])|.+)\]/);if(t&&l){let{key:e,optional:r,repeat:u}=a(l[1]);return n[e]={pos:i++,repeat:u,optional:r},"/"+(0,o.escapeStringRegexp)(t)+"([^/]+?)"}if(!l)return"/"+(0,o.escapeStringRegexp)(e);{let{key:e,repeat:t,optional:r}=a(l[1]);return n[e]={pos:i++,repeat:t,optional:r},t?r?"(?:/(.+?))?":"/(.+?)":"/([^/]+?)"}}).join(""),groups:n}}function u(e){let{parameterizedRoute:t,groups:n}=i(e);return{re:RegExp("^"+t+"(?:/)?$"),groups:n}}function s(e){let{getSafeRouteKey:t,segment:n,routeKeys:r,keyPrefix:o}=e,{key:l,optional:i,repeat:u}=a(n),s=l.replace(/\W/g,"");o&&(s=""+o+s);let c=!1;return(0===s.length||s.length>30)&&(c=!0),isNaN(parseInt(s.slice(0,1)))||(c=!0),c&&(s=t()),o?r[s]=""+o+l:r[s]=""+l,u?i?"(?:/(?<"+s+">.+?))?":"/(?<"+s+">.+?)":"/(?<"+s+">[^/]+?)"}function c(e,t){let n;let a=(0,l.removeTrailingSlash)(e).slice(1).split("/"),i=(n=0,()=>{let e="",t=++n;for(;t>0;)e+=String.fromCharCode(97+(t-1)%26),t=Math.floor((t-1)/26);return e}),u={};return{namedParameterizedRoute:a.map(e=>{let n=r.INTERCEPTION_ROUTE_MARKERS.some(t=>e.startsWith(t)),l=e.match(/\[((?:\[.*\])|.+)\]/);return n&&l?s({getSafeRouteKey:i,segment:l[1],routeKeys:u,keyPrefix:t?"nxtI":void 0}):l?s({getSafeRouteKey:i,segment:l[1],routeKeys:u,keyPrefix:t?"nxtP":void 0}):"/"+(0,o.escapeStringRegexp)(e)}).join(""),routeKeys:u}}function f(e,t){let n=c(e,t);return{...u(e),namedRegex:"^"+n.namedParameterizedRoute+"(?:/)?$",routeKeys:n.routeKeys}}function d(e,t){let{parameterizedRoute:n}=i(e),{catchAll:r=!0}=t;if("/"===n)return{namedRegex:"^/"+(r?".*":"")+"$"};let{namedParameterizedRoute:o}=c(e,!1);return{namedRegex:"^"+o+(r?"(?:(/.*)?)":"")+"$"}}},83799:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getSortedRoutes",{enumerable:!0,get:function(){return r}});class n{insert(e){this._insert(e.split("/").filter(Boolean),[],!1)}smoosh(){return this._smoosh()}_smoosh(e){void 0===e&&(e="/");let t=[...this.children.keys()].sort();null!==this.slugName&&t.splice(t.indexOf("[]"),1),null!==this.restSlugName&&t.splice(t.indexOf("[...]"),1),null!==this.optionalRestSlugName&&t.splice(t.indexOf("[[...]]"),1);let n=t.map(t=>this.children.get(t)._smoosh(""+e+t+"/")).reduce((e,t)=>[...e,...t],[]);if(null!==this.slugName&&n.push(...this.children.get("[]")._smoosh(e+"["+this.slugName+"]/")),!this.placeholder){let t="/"===e?"/":e.slice(0,-1);if(null!=this.optionalRestSlugName)throw Error('You cannot define a route with the same specificity as a optional catch-all route ("'+t+'" and "'+t+"[[..."+this.optionalRestSlugName+']]").');n.unshift(t)}return null!==this.restSlugName&&n.push(...this.children.get("[...]")._smoosh(e+"[..."+this.restSlugName+"]/")),null!==this.optionalRestSlugName&&n.push(...this.children.get("[[...]]")._smoosh(e+"[[..."+this.optionalRestSlugName+"]]/")),n}_insert(e,t,r){if(0===e.length){this.placeholder=!1;return}if(r)throw Error("Catch-all must be the last part of the URL.");let o=e[0];if(o.startsWith("[")&&o.endsWith("]")){let n=o.slice(1,-1),a=!1;if(n.startsWith("[")&&n.endsWith("]")&&(n=n.slice(1,-1),a=!0),n.startsWith("...")&&(n=n.substring(3),r=!0),n.startsWith("[")||n.endsWith("]"))throw Error("Segment names may not start or end with extra brackets ('"+n+"').");if(n.startsWith("."))throw Error("Segment names may not start with erroneous periods ('"+n+"').");function l(e,n){if(null!==e&&e!==n)throw Error("You cannot use different slug names for the same dynamic path ('"+e+"' !== '"+n+"').");t.forEach(e=>{if(e===n)throw Error('You cannot have the same slug name "'+n+'" repeat within a single dynamic path');if(e.replace(/\W/g,"")===o.replace(/\W/g,""))throw Error('You cannot have the slug names "'+e+'" and "'+n+'" differ only by non-word symbols within a single dynamic path')}),t.push(n)}if(r){if(a){if(null!=this.restSlugName)throw Error('You cannot use both an required and optional catch-all route at the same level ("[...'+this.restSlugName+']" and "'+e[0]+'" ).');l(this.optionalRestSlugName,n),this.optionalRestSlugName=n,o="[[...]]"}else{if(null!=this.optionalRestSlugName)throw Error('You cannot use both an optional and required catch-all route at the same level ("[[...'+this.optionalRestSlugName+']]" and "'+e[0]+'").');l(this.restSlugName,n),this.restSlugName=n,o="[...]"}}else{if(a)throw Error('Optional route parameters are not yet supported ("'+e[0]+'").');l(this.slugName,n),this.slugName=n,o="[]"}}this.children.has(o)||this.children.set(o,new n),this.children.get(o)._insert(e.slice(1),t,r)}constructor(){this.placeholder=!0,this.children=new Map,this.slugName=null,this.restSlugName=null,this.optionalRestSlugName=null}}function r(e){let t=new n;return e.forEach(e=>t.insert(e)),t.smoosh()}},22337:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{WEB_VITALS:function(){return n},execOnce:function(){return r},isAbsoluteUrl:function(){return l},getLocationOrigin:function(){return a},getURL:function(){return i},getDisplayName:function(){return u},isResSent:function(){return s},normalizeRepeatedSlashes:function(){return c},loadGetInitialProps:function(){return f},SP:function(){return d},ST:function(){return h},DecodeError:function(){return p},NormalizeError:function(){return m},PageNotFoundError:function(){return g},MissingStaticPage:function(){return y},MiddlewareNotFoundError:function(){return b},stringifyError:function(){return _}});let n=["CLS","FCP","FID","INP","LCP","TTFB"];function r(e){let t,n=!1;return function(){for(var r=arguments.length,o=Array(r),l=0;lo.test(e);function a(){let{protocol:e,hostname:t,port:n}=window.location;return e+"//"+t+(n?":"+n:"")}function i(){let{href:e}=window.location,t=a();return e.substring(t.length)}function u(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function s(e){return e.finished||e.headersSent}function c(e){let t=e.split("?"),n=t[0];return n.replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?"?"+t.slice(1).join("?"):"")}async function f(e,t){let n=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await f(t.Component,t.ctx)}:{};let r=await e.getInitialProps(t);if(n&&s(n))return r;if(!r){let t='"'+u(e)+'.getInitialProps()" should resolve to an object. But found "'+r+'" instead.';throw Error(t)}return r}let d="undefined"!=typeof performance,h=d&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class p extends Error{}class m extends Error{}class g extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message="Cannot find module for page: "+e}}class y extends Error{constructor(e,t){super(),this.message="Failed to load static file for page: "+e+" "+t}}class b extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function _(e){return JSON.stringify({message:e.message,stack:e.stack})}},6928:function(e){e.exports={style:{fontFamily:"'__Inter_e66fe9', '__Inter_Fallback_e66fe9'",fontStyle:"normal"},className:"__className_e66fe9",variable:"__variable_e66fe9"}},33195:function(e){e.exports={style:{fontFamily:"'__JetBrains_Mono_bd9c35', '__JetBrains_Mono_Fallback_bd9c35'",fontStyle:"normal"},className:"__className_bd9c35",variable:"__variable_bd9c35"}},61396:function(e,t,n){e.exports=n(34724)}}]); \ No newline at end of file diff --git a/crates/tabby/ui/_next/static/chunks/832-06362e8382d18069.js b/crates/tabby/ui/_next/static/chunks/832-06362e8382d18069.js deleted file mode 100644 index bf9ed57..0000000 --- a/crates/tabby/ui/_next/static/chunks/832-06362e8382d18069.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[832],{6435:function(e,t,n){"use strict";n.d(t,{F:function(){return s},f:function(){return c}});var r=n(2265);let o=["light","dark"],l="(prefers-color-scheme: dark)",a="undefined"==typeof window,i=(0,r.createContext)(void 0),u={setTheme:e=>{},themes:[]},s=()=>{var e;return null!==(e=(0,r.useContext)(i))&&void 0!==e?e:u},c=e=>(0,r.useContext)(i)?r.createElement(r.Fragment,null,e.children):r.createElement(d,e),f=["light","dark"],d=({forcedTheme:e,disableTransitionOnChange:t=!1,enableSystem:n=!0,enableColorScheme:a=!0,storageKey:u="theme",themes:s=f,defaultTheme:c=n?"system":"light",attribute:d="data-theme",value:y,children:b,nonce:_})=>{let[v,O]=(0,r.useState)(()=>p(u,c)),[P,S]=(0,r.useState)(()=>p(u)),E=y?Object.values(y):s,j=(0,r.useCallback)(e=>{let r=e;if(!r)return;"system"===e&&n&&(r=g());let l=y?y[r]:r,i=t?m():null,u=document.documentElement;if("class"===d?(u.classList.remove(...E),l&&u.classList.add(l)):l?u.setAttribute(d,l):u.removeAttribute(d),a){let e=o.includes(c)?c:null,t=o.includes(r)?r:e;u.style.colorScheme=t}null==i||i()},[]),R=(0,r.useCallback)(e=>{O(e);try{localStorage.setItem(u,e)}catch(e){}},[e]),w=(0,r.useCallback)(t=>{let r=g(t);S(r),"system"===v&&n&&!e&&j("system")},[v,e]);(0,r.useEffect)(()=>{let e=window.matchMedia(l);return e.addListener(w),w(e),()=>e.removeListener(w)},[w]),(0,r.useEffect)(()=>{let e=e=>{e.key===u&&R(e.newValue||c)};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)},[R]),(0,r.useEffect)(()=>{j(null!=e?e:v)},[e,v]);let N=(0,r.useMemo)(()=>({theme:v,setTheme:R,forcedTheme:e,resolvedTheme:"system"===v?P:v,themes:n?[...s,"system"]:s,systemTheme:n?P:void 0}),[v,R,e,P,n,s]);return r.createElement(i.Provider,{value:N},r.createElement(h,{forcedTheme:e,disableTransitionOnChange:t,enableSystem:n,enableColorScheme:a,storageKey:u,themes:s,defaultTheme:c,attribute:d,value:y,children:b,attrs:E,nonce:_}),b)},h=(0,r.memo)(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:a,enableColorScheme:i,defaultTheme:u,value:s,attrs:c,nonce:f})=>{let d="system"===u,h="class"===n?`var d=document.documentElement,c=d.classList;c.remove(${c.map(e=>`'${e}'`).join(",")});`:`var d=document.documentElement,n='${n}',s='setAttribute';`,p=i?o.includes(u)&&u?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${u}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",m=(e,t=!1,r=!0)=>{let l=s?s[e]:e,a=t?e+"|| ''":`'${l}'`,u="";return i&&r&&!t&&o.includes(e)&&(u+=`d.style.colorScheme = '${e}';`),"class"===n?u+=t||l?`c.add(${a})`:"null":l&&(u+=`d[s](n,${a})`),u},g=e?`!function(){${h}${m(e)}}()`:a?`!function(){try{${h}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${d})){var t='${l}',m=window.matchMedia(t);if(m.media!==t||m.matches){${m("dark")}}else{${m("light")}}}else if(e){${s?`var x=${JSON.stringify(s)};`:""}${m(s?"x[e]":"e",!0)}}${d?"":"else{"+m(u,!1,!1)+"}"}${p}}catch(e){}}()`:`!function(){try{${h}var e=localStorage.getItem('${t}');if(e){${s?`var x=${JSON.stringify(s)};`:""}${m(s?"x[e]":"e",!0)}}else{${m(u,!1,!1)};}${p}}catch(t){}}();`;return r.createElement("script",{nonce:f,dangerouslySetInnerHTML:{__html:g}})},()=>!0),p=(e,t)=>{let n;if(!a){try{n=localStorage.getItem(e)||void 0}catch(e){}return n||t}},m=()=>{let e=document.createElement("style");return e.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(e),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(e)},1)}},g=e=>(e||(e=window.matchMedia(l)),e.matches?"dark":"light")},95277:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return r}}),n(70474);let r=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r{})}function b(e){return"string"==typeof e?e:(0,i.formatUrl)(e)}let _=o.default.forwardRef(function(e,t){let n,r;let{href:i,as:g,children:_,prefetch:v=null,passHref:O,replace:P,shallow:S,scroll:E,locale:j,onClick:R,onMouseEnter:w,onTouchStart:N,legacyBehavior:M=!1,...C}=e;n=_,M&&("string"==typeof n||"number"==typeof n)&&(n=o.default.createElement("a",null,n));let x=o.default.useContext(c.RouterContext),k=o.default.useContext(f.AppRouterContext),T=null!=x?x:k,I=!x,L=!1!==v,$=null===v?m.PrefetchKind.AUTO:m.PrefetchKind.FULL,{href:A,as:U}=o.default.useMemo(()=>{if(!x){let e=b(i);return{href:e,as:g?b(g):e}}let[e,t]=(0,l.resolveHref)(x,i,!0);return{href:e,as:g?(0,l.resolveHref)(x,g):t||e}},[x,i,g]),W=o.default.useRef(A),D=o.default.useRef(U);M&&(r=o.default.Children.only(n));let z=M?r&&"object"==typeof r&&r.ref:t,[F,K,q]=(0,d.useIntersection)({rootMargin:"200px"}),B=o.default.useCallback(e=>{(D.current!==U||W.current!==A)&&(q(),D.current=U,W.current=A),F(e),z&&("function"==typeof z?z(e):"object"==typeof z&&(z.current=e))},[U,z,A,q,F]);o.default.useEffect(()=>{T&&K&&L&&y(T,A,U,{locale:j},{kind:$},I)},[U,A,K,j,L,null==x?void 0:x.locale,T,I,$]);let Y={ref:B,onClick(e){M||"function"!=typeof R||R(e),M&&r.props&&"function"==typeof r.props.onClick&&r.props.onClick(e),T&&!e.defaultPrevented&&function(e,t,n,r,l,i,u,s,c,f){let{nodeName:d}=e.currentTarget,h="A"===d.toUpperCase();if(h&&(function(e){let t=e.currentTarget,n=t.getAttribute("target");return n&&"_self"!==n||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||!c&&!(0,a.isLocalURL)(n)))return;e.preventDefault();let p=()=>{let e=null==u||u;"beforePopState"in t?t[l?"replace":"push"](n,r,{shallow:i,locale:s,scroll:e}):t[l?"replace":"push"](r||n,{forceOptimisticNavigation:!f,scroll:e})};c?o.default.startTransition(p):p()}(e,T,A,U,P,S,E,j,I,L)},onMouseEnter(e){M||"function"!=typeof w||w(e),M&&r.props&&"function"==typeof r.props.onMouseEnter&&r.props.onMouseEnter(e),T&&(L||!I)&&y(T,A,U,{locale:j,priority:!0,bypassPrefetchedCheck:!0},{kind:$},I)},onTouchStart(e){M||"function"!=typeof N||N(e),M&&r.props&&"function"==typeof r.props.onTouchStart&&r.props.onTouchStart(e),T&&(L||!I)&&y(T,A,U,{locale:j,priority:!0,bypassPrefetchedCheck:!0},{kind:$},I)}};if((0,u.isAbsoluteUrl)(U))Y.href=U;else if(!M||O||"a"===r.type&&!("href"in r.props)){let e=void 0!==j?j:null==x?void 0:x.locale,t=(null==x?void 0:x.isLocaleDomain)&&(0,h.getDomainLocale)(U,e,null==x?void 0:x.locales,null==x?void 0:x.domainLocales);Y.href=t||(0,p.addBasePath)((0,s.addLocale)(U,e,null==x?void 0:x.defaultLocale))}return M?o.default.cloneElement(r,Y):o.default.createElement("a",{...C,...Y},n)}),v=_;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},64913:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{requestIdleCallback:function(){return n},cancelIdleCallback:function(){return r}});let n="undefined"!=typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(e){let t=Date.now();return self.setTimeout(function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})},1)},r="undefined"!=typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(e){return clearTimeout(e)};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},47896:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"resolveHref",{enumerable:!0,get:function(){return f}});let r=n(38888),o=n(7746),l=n(69946),a=n(22337),i=n(70474),u=n(49357),s=n(31956),c=n(25125);function f(e,t,n){let f;let d="string"==typeof t?t:(0,o.formatWithValidation)(t),h=d.match(/^[a-zA-Z]{1,}:\/\//),p=h?d.slice(h[0].length):d,m=p.split("?");if((m[0]||"").match(/(\/\/|\\)/)){console.error("Invalid href '"+d+"' passed to next/router in page: '"+e.pathname+"'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.");let t=(0,a.normalizeRepeatedSlashes)(p);d=(h?h[0]:"")+t}if(!(0,u.isLocalURL)(d))return n?[d]:d;try{f=new URL(d.startsWith("#")?e.asPath:e.pathname,"http://n")}catch(e){f=new URL("/","http://n")}try{let e=new URL(d,f);e.pathname=(0,i.normalizePathTrailingSlash)(e.pathname);let t="";if((0,s.isDynamicRoute)(e.pathname)&&e.searchParams&&n){let n=(0,r.searchParamsToUrlQuery)(e.searchParams),{result:a,params:i}=(0,c.interpolateAs)(e.pathname,e.pathname,n);a&&(t=(0,o.formatWithValidation)({pathname:a,hash:e.hash,query:(0,l.omit)(n,i)}))}let a=e.origin===f.origin?e.href.slice(e.origin.length):e.href;return n?[a,t||a]:a}catch(e){return n?[d]:d}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},91013:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return u}});let r=n(2265),o=n(64913),l="function"==typeof IntersectionObserver,a=new Map,i=[];function u(e){let{rootRef:t,rootMargin:n,disabled:u}=e,s=u||!l,[c,f]=(0,r.useState)(!1),d=(0,r.useRef)(null),h=(0,r.useCallback)(e=>{d.current=e},[]);(0,r.useEffect)(()=>{if(l){if(s||c)return;let e=d.current;if(e&&e.tagName){let r=function(e,t,n){let{id:r,observer:o,elements:l}=function(e){let t;let n={root:e.root||null,margin:e.rootMargin||""},r=i.find(e=>e.root===n.root&&e.margin===n.margin);if(r&&(t=a.get(r)))return t;let o=new Map,l=new IntersectionObserver(e=>{e.forEach(e=>{let t=o.get(e.target),n=e.isIntersecting||e.intersectionRatio>0;t&&n&&t(n)})},e);return t={id:n,observer:l,elements:o},i.push(n),a.set(n,t),t}(n);return l.set(e,t),o.observe(e),function(){if(l.delete(e),o.unobserve(e),0===l.size){o.disconnect(),a.delete(r);let e=i.findIndex(e=>e.root===r.root&&e.margin===r.margin);e>-1&&i.splice(e,1)}}}(e,e=>e&&f(e),{root:null==t?void 0:t.current,rootMargin:n});return r}}else if(!c){let e=(0,o.requestIdleCallback)(()=>f(!0));return()=>(0,o.cancelIdleCallback)(e)}},[s,n,t,c,d.current]);let p=(0,r.useCallback)(()=>{f(!1)},[]);return[h,c,p]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},30415:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}});let r=n(21024);n(2265);let o=r._(n(54));function l(e){return{default:(null==e?void 0:e.default)||e}}function a(e,t){let n=o.default,r={loading:e=>{let{error:t,isLoading:n,pastDelay:r}=e;return null}};"function"==typeof e&&(r.loader=e),Object.assign(r,t);let a=r.loader;return n({...r,loader:()=>null!=a?a().then(l):Promise.resolve(l(()=>null))})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},62361:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"escapeStringRegexp",{enumerable:!0,get:function(){return o}});let n=/[|\\{}()[\]^$+*?.-]/,r=/[|\\{}()[\]^$+*?.-]/g;function o(e){return n.test(e)?e.replace(r,"\\$&"):e}},63388:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{suspense:function(){return o},NoSSR:function(){return l}}),n(21024),n(2265);let r=n(54922);function o(){let e=Error(r.NEXT_DYNAMIC_NO_SSR_CODE);throw e.digest=r.NEXT_DYNAMIC_NO_SSR_CODE,e}function l(e){let{children:t}=e;return t}},54:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}});let r=n(21024),o=r._(n(2265)),l=n(63388),a=function(e){let t=Object.assign({loader:null,loading:null,ssr:!0},e);function n(e){let n=t.loading,r=o.default.createElement(n,{isLoading:!0,pastDelay:!0,error:null}),a=t.ssr?o.default.Fragment:l.NoSSR,i=t.lazy;return o.default.createElement(o.default.Suspense,{fallback:r},o.default.createElement(a,null,o.default.createElement(i,e)))}return t.lazy=o.default.lazy(t.loader),n.displayName="LoadableComponent",n}},7746:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{formatUrl:function(){return a},urlObjectKeys:function(){return i},formatWithValidation:function(){return u}});let r=n(68533),o=r._(n(38888)),l=/https?|ftp|gopher|file/;function a(e){let{auth:t,hostname:n}=e,r=e.protocol||"",a=e.pathname||"",i=e.hash||"",u=e.query||"",s=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?s=t+e.host:n&&(s=t+(~n.indexOf(":")?"["+n+"]":n),e.port&&(s+=":"+e.port)),u&&"object"==typeof u&&(u=String(o.urlQueryToSearchParams(u)));let c=e.search||u&&"?"+u||"";return r&&!r.endsWith(":")&&(r+=":"),e.slashes||(!r||l.test(r))&&!1!==s?(s="//"+(s||""),a&&"/"!==a[0]&&(a="/"+a)):s||(s=""),i&&"#"!==i[0]&&(i="#"+i),c&&"?"!==c[0]&&(c="?"+c),""+r+s+(a=a.replace(/[?#]/g,encodeURIComponent))+(c=c.replace("#","%23"))+i}let i=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function u(e){return a(e)}},31956:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{getSortedRoutes:function(){return r.getSortedRoutes},isDynamicRoute:function(){return o.isDynamicRoute}});let r=n(83799),o=n(79731)},25125:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"interpolateAs",{enumerable:!0,get:function(){return l}});let r=n(35366),o=n(95319);function l(e,t,n){let l="",a=(0,o.getRouteRegex)(e),i=a.groups,u=(t!==e?(0,r.getRouteMatcher)(a)(t):"")||n;l=e;let s=Object.keys(i);return s.every(e=>{let t=u[e]||"",{repeat:n,optional:r}=i[e],o="["+(n?"...":"")+e+"]";return r&&(o=(t?"":"/")+"["+o+"]"),n&&!Array.isArray(t)&&(t=[t]),(r||e in u)&&(l=l.replace(o,n?t.map(e=>encodeURIComponent(e)).join("/"):encodeURIComponent(t))||"/")})||(l=""),{params:s,result:l}}},79731:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isDynamicRoute",{enumerable:!0,get:function(){return r}});let n=/\/\[[^/]+?\](?=\/|$)/;function r(e){return n.test(e)}},49357:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isLocalURL",{enumerable:!0,get:function(){return l}});let r=n(22337),o=n(44561);function l(e){if(!(0,r.isAbsoluteUrl)(e))return!0;try{let t=(0,r.getLocationOrigin)(),n=new URL(e,t);return n.origin===t&&(0,o.hasBasePath)(n.pathname)}catch(e){return!1}}},69946:function(e,t){"use strict";function n(e,t){let n={};return Object.keys(e).forEach(r=>{t.includes(r)||(n[r]=e[r])}),n}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"omit",{enumerable:!0,get:function(){return n}})},38888:function(e,t){"use strict";function n(e){let t={};return e.forEach((e,n)=>{void 0===t[n]?t[n]=e:Array.isArray(t[n])?t[n].push(e):t[n]=[t[n],e]}),t}function r(e){return"string"!=typeof e&&("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function o(e){let t=new URLSearchParams;return Object.entries(e).forEach(e=>{let[n,o]=e;Array.isArray(o)?o.forEach(e=>t.append(n,r(e))):t.set(n,r(o))}),t}function l(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r{Array.from(t.keys()).forEach(t=>e.delete(t)),t.forEach((t,n)=>e.append(n,t))}),e}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{searchParamsToUrlQuery:function(){return n},urlQueryToSearchParams:function(){return o},assign:function(){return l}})},35366:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getRouteMatcher",{enumerable:!0,get:function(){return o}});let r=n(22337);function o(e){let{re:t,groups:n}=e;return e=>{let o=t.exec(e);if(!o)return!1;let l=e=>{try{return decodeURIComponent(e)}catch(e){throw new r.DecodeError("failed to decode param")}},a={};return Object.keys(n).forEach(e=>{let t=n[e],r=o[t.pos];void 0!==r&&(a[e]=~r.indexOf("/")?r.split("/").map(e=>l(e)):t.repeat?[l(r)]:l(r))}),a}}},95319:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{getRouteRegex:function(){return u},getNamedRouteRegex:function(){return f},getNamedMiddlewareRegex:function(){return d}});let r=n(84507),o=n(62361),l=n(993);function a(e){let t=e.startsWith("[")&&e.endsWith("]");t&&(e=e.slice(1,-1));let n=e.startsWith("...");return n&&(e=e.slice(3)),{key:e,repeat:n,optional:t}}function i(e){let t=(0,l.removeTrailingSlash)(e).slice(1).split("/"),n={},i=1;return{parameterizedRoute:t.map(e=>{let t=r.INTERCEPTION_ROUTE_MARKERS.find(t=>e.startsWith(t)),l=e.match(/\[((?:\[.*\])|.+)\]/);if(t&&l){let{key:e,optional:r,repeat:u}=a(l[1]);return n[e]={pos:i++,repeat:u,optional:r},"/"+(0,o.escapeStringRegexp)(t)+"([^/]+?)"}if(!l)return"/"+(0,o.escapeStringRegexp)(e);{let{key:e,repeat:t,optional:r}=a(l[1]);return n[e]={pos:i++,repeat:t,optional:r},t?r?"(?:/(.+?))?":"/(.+?)":"/([^/]+?)"}}).join(""),groups:n}}function u(e){let{parameterizedRoute:t,groups:n}=i(e);return{re:RegExp("^"+t+"(?:/)?$"),groups:n}}function s(e){let{getSafeRouteKey:t,segment:n,routeKeys:r,keyPrefix:o}=e,{key:l,optional:i,repeat:u}=a(n),s=l.replace(/\W/g,"");o&&(s=""+o+s);let c=!1;return(0===s.length||s.length>30)&&(c=!0),isNaN(parseInt(s.slice(0,1)))||(c=!0),c&&(s=t()),o?r[s]=""+o+l:r[s]=""+l,u?i?"(?:/(?<"+s+">.+?))?":"/(?<"+s+">.+?)":"/(?<"+s+">[^/]+?)"}function c(e,t){let n;let a=(0,l.removeTrailingSlash)(e).slice(1).split("/"),i=(n=0,()=>{let e="",t=++n;for(;t>0;)e+=String.fromCharCode(97+(t-1)%26),t=Math.floor((t-1)/26);return e}),u={};return{namedParameterizedRoute:a.map(e=>{let n=r.INTERCEPTION_ROUTE_MARKERS.some(t=>e.startsWith(t)),l=e.match(/\[((?:\[.*\])|.+)\]/);return n&&l?s({getSafeRouteKey:i,segment:l[1],routeKeys:u,keyPrefix:t?"nxtI":void 0}):l?s({getSafeRouteKey:i,segment:l[1],routeKeys:u,keyPrefix:t?"nxtP":void 0}):"/"+(0,o.escapeStringRegexp)(e)}).join(""),routeKeys:u}}function f(e,t){let n=c(e,t);return{...u(e),namedRegex:"^"+n.namedParameterizedRoute+"(?:/)?$",routeKeys:n.routeKeys}}function d(e,t){let{parameterizedRoute:n}=i(e),{catchAll:r=!0}=t;if("/"===n)return{namedRegex:"^/"+(r?".*":"")+"$"};let{namedParameterizedRoute:o}=c(e,!1);return{namedRegex:"^"+o+(r?"(?:(/.*)?)":"")+"$"}}},83799:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getSortedRoutes",{enumerable:!0,get:function(){return r}});class n{insert(e){this._insert(e.split("/").filter(Boolean),[],!1)}smoosh(){return this._smoosh()}_smoosh(e){void 0===e&&(e="/");let t=[...this.children.keys()].sort();null!==this.slugName&&t.splice(t.indexOf("[]"),1),null!==this.restSlugName&&t.splice(t.indexOf("[...]"),1),null!==this.optionalRestSlugName&&t.splice(t.indexOf("[[...]]"),1);let n=t.map(t=>this.children.get(t)._smoosh(""+e+t+"/")).reduce((e,t)=>[...e,...t],[]);if(null!==this.slugName&&n.push(...this.children.get("[]")._smoosh(e+"["+this.slugName+"]/")),!this.placeholder){let t="/"===e?"/":e.slice(0,-1);if(null!=this.optionalRestSlugName)throw Error('You cannot define a route with the same specificity as a optional catch-all route ("'+t+'" and "'+t+"[[..."+this.optionalRestSlugName+']]").');n.unshift(t)}return null!==this.restSlugName&&n.push(...this.children.get("[...]")._smoosh(e+"[..."+this.restSlugName+"]/")),null!==this.optionalRestSlugName&&n.push(...this.children.get("[[...]]")._smoosh(e+"[[..."+this.optionalRestSlugName+"]]/")),n}_insert(e,t,r){if(0===e.length){this.placeholder=!1;return}if(r)throw Error("Catch-all must be the last part of the URL.");let o=e[0];if(o.startsWith("[")&&o.endsWith("]")){let n=o.slice(1,-1),a=!1;if(n.startsWith("[")&&n.endsWith("]")&&(n=n.slice(1,-1),a=!0),n.startsWith("...")&&(n=n.substring(3),r=!0),n.startsWith("[")||n.endsWith("]"))throw Error("Segment names may not start or end with extra brackets ('"+n+"').");if(n.startsWith("."))throw Error("Segment names may not start with erroneous periods ('"+n+"').");function l(e,n){if(null!==e&&e!==n)throw Error("You cannot use different slug names for the same dynamic path ('"+e+"' !== '"+n+"').");t.forEach(e=>{if(e===n)throw Error('You cannot have the same slug name "'+n+'" repeat within a single dynamic path');if(e.replace(/\W/g,"")===o.replace(/\W/g,""))throw Error('You cannot have the slug names "'+e+'" and "'+n+'" differ only by non-word symbols within a single dynamic path')}),t.push(n)}if(r){if(a){if(null!=this.restSlugName)throw Error('You cannot use both an required and optional catch-all route at the same level ("[...'+this.restSlugName+']" and "'+e[0]+'" ).');l(this.optionalRestSlugName,n),this.optionalRestSlugName=n,o="[[...]]"}else{if(null!=this.optionalRestSlugName)throw Error('You cannot use both an optional and required catch-all route at the same level ("[[...'+this.optionalRestSlugName+']]" and "'+e[0]+'").');l(this.restSlugName,n),this.restSlugName=n,o="[...]"}}else{if(a)throw Error('Optional route parameters are not yet supported ("'+e[0]+'").');l(this.slugName,n),this.slugName=n,o="[]"}}this.children.has(o)||this.children.set(o,new n),this.children.get(o)._insert(e.slice(1),t,r)}constructor(){this.placeholder=!0,this.children=new Map,this.slugName=null,this.restSlugName=null,this.optionalRestSlugName=null}}function r(e){let t=new n;return e.forEach(e=>t.insert(e)),t.smoosh()}},22337:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{WEB_VITALS:function(){return n},execOnce:function(){return r},isAbsoluteUrl:function(){return l},getLocationOrigin:function(){return a},getURL:function(){return i},getDisplayName:function(){return u},isResSent:function(){return s},normalizeRepeatedSlashes:function(){return c},loadGetInitialProps:function(){return f},SP:function(){return d},ST:function(){return h},DecodeError:function(){return p},NormalizeError:function(){return m},PageNotFoundError:function(){return g},MissingStaticPage:function(){return y},MiddlewareNotFoundError:function(){return b},stringifyError:function(){return _}});let n=["CLS","FCP","FID","INP","LCP","TTFB"];function r(e){let t,n=!1;return function(){for(var r=arguments.length,o=Array(r),l=0;lo.test(e);function a(){let{protocol:e,hostname:t,port:n}=window.location;return e+"//"+t+(n?":"+n:"")}function i(){let{href:e}=window.location,t=a();return e.substring(t.length)}function u(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function s(e){return e.finished||e.headersSent}function c(e){let t=e.split("?"),n=t[0];return n.replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?"?"+t.slice(1).join("?"):"")}async function f(e,t){let n=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await f(t.Component,t.ctx)}:{};let r=await e.getInitialProps(t);if(n&&s(n))return r;if(!r){let t='"'+u(e)+'.getInitialProps()" should resolve to an object. But found "'+r+'" instead.';throw Error(t)}return r}let d="undefined"!=typeof performance,h=d&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class p extends Error{}class m extends Error{}class g extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message="Cannot find module for page: "+e}}class y extends Error{constructor(e,t){super(),this.message="Failed to load static file for page: "+e+" "+t}}class b extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function _(e){return JSON.stringify({message:e.message,stack:e.stack})}},6928:function(e){e.exports={style:{fontFamily:"'__Inter_e66fe9', '__Inter_Fallback_e66fe9'",fontStyle:"normal"},className:"__className_e66fe9",variable:"__variable_e66fe9"}},33195:function(e){e.exports={style:{fontFamily:"'__JetBrains_Mono_bd9c35', '__JetBrains_Mono_Fallback_bd9c35'",fontStyle:"normal"},className:"__className_bd9c35",variable:"__variable_bd9c35"}},61396:function(e,t,n){e.exports=n(34724)}}]); \ No newline at end of file diff --git a/crates/tabby/ui/_next/static/chunks/894-06b613a845aedd59.js b/crates/tabby/ui/_next/static/chunks/894-06b613a845aedd59.js new file mode 100644 index 0000000..bb4f98d --- /dev/null +++ b/crates/tabby/ui/_next/static/chunks/894-06b613a845aedd59.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[894],{93023:function(n,t,r){r.d(t,{d:function(){return c},z:function(){return i}});var e=r(57437),s=r(2265),a=r(67256),l=r(7404),o=r(39311);let c=(0,l.j)("inline-flex items-center justify-center rounded-md text-sm font-medium shadow ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-md hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"shadow-none hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 shadow-none hover:underline"},size:{default:"h-8 px-4 py-2",sm:"h-8 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-8 w-8 p-0"}},defaultVariants:{variant:"default",size:"default"}}),i=s.forwardRef((n,t)=>{let{className:r,variant:s,size:l,asChild:i=!1,...u}=n,h=i?a.g7:"button";return(0,e.jsx)(h,{className:(0,o.cn)(c({variant:s,size:l,className:r})),ref:t,...u})});i.displayName="Button"},84168:function(n,t,r){r.d(t,{BD:function(){return l},C9:function(){return w},Dj:function(){return x},Ec:function(){return o},Mr:function(){return a},NO:function(){return f},O3:function(){return v},Qs:function(){return Z},Tq:function(){return p},bM:function(){return g},f7:function(){return c},gx:function(){return j},tr:function(){return u},vU:function(){return d},vq:function(){return i},yl:function(){return m},zu:function(){return h}});var e=r(57437);r(2265);var s=r(39311);function a(n){let{className:t,...r}=n;return(0,e.jsxs)("svg",{role:"img",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",className:(0,s.cn)("h-4 w-4",t),...r,children:[(0,e.jsx)("title",{children:"GitHub"}),(0,e.jsx)("path",{d:"M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"})]})}function l(n){let{className:t,...r}=n;return(0,e.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",fill:"currentColor",className:(0,s.cn)("h-4 w-4",t),...r,children:(0,e.jsx)("path",{d:"m205.66 149.66-72 72a8 8 0 0 1-11.32 0l-72-72a8 8 0 0 1 11.32-11.32L120 196.69V40a8 8 0 0 1 16 0v156.69l58.34-58.35a8 8 0 0 1 11.32 11.32Z"})})}function o(n){let{className:t,...r}=n;return(0,e.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",fill:"currentColor",className:(0,s.cn)("h-4 w-4",t),...r,children:(0,e.jsx)("path",{d:"m221.66 133.66-72 72a8 8 0 0 1-11.32-11.32L196.69 136H40a8 8 0 0 1 0-16h156.69l-58.35-58.34a8 8 0 0 1 11.32-11.32l72 72a8 8 0 0 1 0 11.32Z"})})}function c(n){let{className:t,...r}=n;return(0,e.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",fill:"currentColor",className:(0,s.cn)("h-4 w-4",t),...r,children:(0,e.jsx)("path",{d:"M230.92 212c-15.23-26.33-38.7-45.21-66.09-54.16a72 72 0 1 0-73.66 0c-27.39 8.94-50.86 27.82-66.09 54.16a8 8 0 1 0 13.85 8c18.84-32.56 52.14-52 89.07-52s70.23 19.44 89.07 52a8 8 0 1 0 13.85-8ZM72 96a56 56 0 1 1 56 56 56.06 56.06 0 0 1-56-56Z"})})}function i(n){let{className:t,...r}=n;return(0,e.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",fill:"currentColor",className:(0,s.cn)("h-4 w-4",t),...r,children:(0,e.jsx)("path",{d:"M200 32v144a8 8 0 0 1-8 8H67.31l34.35 34.34a8 8 0 0 1-11.32 11.32l-48-48a8 8 0 0 1 0-11.32l48-48a8 8 0 0 1 11.32 11.32L67.31 168H184V32a8 8 0 0 1 16 0Z"})})}function u(n){let{className:t,...r}=n;return(0,e.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",fill:"currentColor",className:(0,s.cn)("h-4 w-4",t),...r,children:(0,e.jsx)("path",{d:"M197.67 186.37a8 8 0 0 1 0 11.29C196.58 198.73 170.82 224 128 224c-37.39 0-64.53-22.4-80-39.85V208a8 8 0 0 1-16 0v-48a8 8 0 0 1 8-8h48a8 8 0 0 1 0 16H55.44C67.76 183.35 93 208 128 208c36 0 58.14-21.46 58.36-21.68a8 8 0 0 1 11.31.05ZM216 40a8 8 0 0 0-8 8v23.85C192.53 54.4 165.39 32 128 32c-42.82 0-68.58 25.27-69.66 26.34a8 8 0 0 0 11.3 11.34C69.86 69.46 92 48 128 48c35 0 60.24 24.65 72.56 40H168a8 8 0 0 0 0 16h48a8 8 0 0 0 8-8V48a8 8 0 0 0-8-8Z"})})}function h(n){let{className:t,...r}=n;return(0,e.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",fill:"currentColor",className:(0,s.cn)("h-4 w-4",t),...r,children:(0,e.jsx)("path",{d:"M128 24a104 104 0 1 0 104 104A104.11 104.11 0 0 0 128 24Zm0 192a88 88 0 1 1 88-88 88.1 88.1 0 0 1-88 88Zm24-120h-48a8 8 0 0 0-8 8v48a8 8 0 0 0 8 8h48a8 8 0 0 0 8-8v-48a8 8 0 0 0-8-8Zm-8 48h-32v-32h32Z"})})}function w(n){let{className:t,...r}=n;return(0,e.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",fill:"currentColor",className:(0,s.cn)("h-4 w-4",t),...r,children:(0,e.jsx)("path",{d:"M233.54 142.23a8 8 0 0 0-8-2 88.08 88.08 0 0 1-109.8-109.8 8 8 0 0 0-10-10 104.84 104.84 0 0 0-52.91 37A104 104 0 0 0 136 224a103.09 103.09 0 0 0 62.52-20.88 104.84 104.84 0 0 0 37-52.91 8 8 0 0 0-1.98-7.98Zm-44.64 48.11A88 88 0 0 1 65.66 67.11a89 89 0 0 1 31.4-26A106 106 0 0 0 96 56a104.11 104.11 0 0 0 104 104 106 106 0 0 0 14.92-1.06 89 89 0 0 1-26.02 31.4Z"})})}function v(n){let{className:t,...r}=n;return(0,e.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",fill:"currentColor",className:(0,s.cn)("h-4 w-4",t),...r,children:(0,e.jsx)("path",{d:"M120 40V16a8 8 0 0 1 16 0v24a8 8 0 0 1-16 0Zm72 88a64 64 0 1 1-64-64 64.07 64.07 0 0 1 64 64Zm-16 0a48 48 0 1 0-48 48 48.05 48.05 0 0 0 48-48ZM58.34 69.66a8 8 0 0 0 11.32-11.32l-16-16a8 8 0 0 0-11.32 11.32Zm0 116.68-16 16a8 8 0 0 0 11.32 11.32l16-16a8 8 0 0 0-11.32-11.32ZM192 72a8 8 0 0 0 5.66-2.34l16-16a8 8 0 0 0-11.32-11.32l-16 16A8 8 0 0 0 192 72Zm5.66 114.34a8 8 0 0 0-11.32 11.32l16 16a8 8 0 0 0 11.32-11.32ZM48 128a8 8 0 0 0-8-8H16a8 8 0 0 0 0 16h24a8 8 0 0 0 8-8Zm80 80a8 8 0 0 0-8 8v24a8 8 0 0 0 16 0v-24a8 8 0 0 0-8-8Zm112-88h-24a8 8 0 0 0 0 16h24a8 8 0 0 0 0-16Z"})})}function d(n){let{className:t,...r}=n;return(0,e.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",fill:"currentColor",className:(0,s.cn)("h-4 w-4",t),...r,children:(0,e.jsx)("path",{d:"M216 32H88a8 8 0 0 0-8 8v40H40a8 8 0 0 0-8 8v128a8 8 0 0 0 8 8h128a8 8 0 0 0 8-8v-40h40a8 8 0 0 0 8-8V40a8 8 0 0 0-8-8Zm-56 176H48V96h112Zm48-48h-32V88a8 8 0 0 0-8-8H96V48h112Z"})})}function f(n){let{className:t,...r}=n;return(0,e.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",fill:"currentColor",className:(0,s.cn)("h-4 w-4",t),...r,children:(0,e.jsx)("path",{d:"m229.66 77.66-128 128a8 8 0 0 1-11.32 0l-56-56a8 8 0 0 1 11.32-11.32L96 188.69 218.34 66.34a8 8 0 0 1 11.32 11.32Z"})})}function x(n){let{className:t,...r}=n;return(0,e.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",fill:"currentColor",className:(0,s.cn)("h-4 w-4",t),...r,children:(0,e.jsx)("path",{d:"M224 152v56a16 16 0 0 1-16 16H48a16 16 0 0 1-16-16v-56a8 8 0 0 1 16 0v56h160v-56a8 8 0 0 1 16 0Zm-101.66 5.66a8 8 0 0 0 11.32 0l40-40a8 8 0 0 0-11.32-11.32L136 132.69V40a8 8 0 0 0-16 0v92.69l-26.34-26.35a8 8 0 0 0-11.32 11.32Z"})})}function g(n){let{className:t,...r}=n;return(0,e.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",fill:"currentColor",className:(0,s.cn)("h-4 w-4",t),...r,children:(0,e.jsx)("path",{d:"M205.66 194.34a8 8 0 0 1-11.32 11.32L128 139.31l-66.34 66.35a8 8 0 0 1-11.32-11.32L116.69 128 50.34 61.66a8 8 0 0 1 11.32-11.32L128 116.69l66.34-66.35a8 8 0 0 1 11.32 11.32L139.31 128Z"})})}function m(n){let{className:t,...r}=n;return(0,e.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:(0,s.cn)("h-4 w-4",t),...r,children:(0,e.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.862 4.487l1.687-1.688a1.875 1.875 0 112.652 2.652L10.582 16.07a4.5 4.5 0 01-1.897 1.13L6 18l.8-2.685a4.5 4.5 0 011.13-1.897l8.932-8.931zm0 0L19.5 7.125M18 14v4.75A2.25 2.25 0 0115.75 21H5.25A2.25 2.25 0 013 18.75V8.25A2.25 2.25 0 015.25 6H10"})})}function p(n){let{className:t,...r}=n;return(0,e.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",className:(0,s.cn)("h-4 w-4",t),viewBox:"0 0 256 256",...r,children:(0,e.jsx)("path",{d:"M224 104a8 8 0 0 1-16 0V59.32l-66.33 66.34a8 8 0 0 1-11.32-11.32L196.68 48H152a8 8 0 0 1 0-16h64a8 8 0 0 1 8 8Zm-40 24a8 8 0 0 0-8 8v72H48V80h72a8 8 0 0 0 0-16H48a16 16 0 0 0-16 16v128a16 16 0 0 0 16 16h128a16 16 0 0 0 16-16v-72a8 8 0 0 0-8-8Z"})})}function j(n){let{className:t,...r}=n;return(0,e.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",className:(0,s.cn)("h-4 w-4",t),viewBox:"0 0 270 270",...r,children:(0,e.jsxs)("g",{children:[(0,e.jsxs)("g",{children:[(0,e.jsx)("path",{style:{fill:"#E01E5A"},d:"M99.4,151.2c0,7.1-5.8,12.9-12.9,12.9c-7.1,0-12.9-5.8-12.9-12.9c0-7.1,5.8-12.9,12.9-12.9h12.9V151.2z"}),(0,e.jsx)("path",{style:{fill:"#E01E5A"},d:"M105.9,151.2c0-7.1,5.8-12.9,12.9-12.9s12.9,5.8,12.9,12.9v32.3c0,7.1-5.8,12.9-12.9,12.9 s-12.9-5.8-12.9-12.9V151.2z"})]}),(0,e.jsxs)("g",{children:[(0,e.jsx)("path",{style:{fill:"#36C5F0"},d:"M118.8,99.4c-7.1,0-12.9-5.8-12.9-12.9c0-7.1,5.8-12.9,12.9-12.9s12.9,5.8,12.9,12.9v12.9H118.8z"}),(0,e.jsx)("path",{style:{fill:"#36C5F0"},d:"M118.8,105.9c7.1,0,12.9,5.8,12.9,12.9s-5.8,12.9-12.9,12.9H86.5c-7.1,0-12.9-5.8-12.9-12.9 s5.8-12.9,12.9-12.9H118.8z"})]}),(0,e.jsxs)("g",{children:[(0,e.jsx)("path",{style:{fill:"#2EB67D"},d:"M170.6,118.8c0-7.1,5.8-12.9,12.9-12.9c7.1,0,12.9,5.8,12.9,12.9s-5.8,12.9-12.9,12.9h-12.9V118.8z"}),(0,e.jsx)("path",{style:{fill:"#2EB67D"},d:"M164.1,118.8c0,7.1-5.8,12.9-12.9,12.9c-7.1,0-12.9-5.8-12.9-12.9V86.5c0-7.1,5.8-12.9,12.9-12.9 c7.1,0,12.9,5.8,12.9,12.9V118.8z"})]}),(0,e.jsxs)("g",{children:[(0,e.jsx)("path",{style:{fill:"#ECB22E"},d:"M151.2,170.6c7.1,0,12.9,5.8,12.9,12.9c0,7.1-5.8,12.9-12.9,12.9c-7.1,0-12.9-5.8-12.9-12.9v-12.9H151.2z"}),(0,e.jsx)("path",{style:{fill:"#ECB22E"},d:"M151.2,164.1c-7.1,0-12.9-5.8-12.9-12.9c0-7.1,5.8-12.9,12.9-12.9h32.3c7.1,0,12.9,5.8,12.9,12.9 c0,7.1-5.8,12.9-12.9,12.9H151.2z"})]})]})})}function Z(n){let{className:t,...r}=n;return(0,e.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:(0,s.cn)("h-4 w-4",t),viewBox:"0 0 24 24",...r,children:[(0,e.jsx)("path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z"}),(0,e.jsx)("path",{d:"M12 9v4"}),(0,e.jsx)("path",{d:"M12 17h.01"})]})}},39311:function(n,t,r){r.d(t,{cn:function(){return l}});var e=r(50348),s=r(28481),a=r(23986);function l(){for(var n=arguments.length,t=Array(n),r=0;r{let{className:r,variant:s,size:l,asChild:i=!1,...u}=n,h=i?a.g7:"button";return(0,e.jsx)(h,{className:(0,c.cn)(o({variant:s,size:l,className:r})),ref:t,...u})});i.displayName="Button"},84168:function(n,t,r){r.d(t,{BD:function(){return l},C9:function(){return w},Dj:function(){return x},Ec:function(){return c},Mr:function(){return a},NO:function(){return f},O3:function(){return v},Tq:function(){return p},bM:function(){return g},f7:function(){return o},gx:function(){return j},tr:function(){return u},vU:function(){return d},vq:function(){return i},yl:function(){return m},zu:function(){return h}});var e=r(57437);r(2265);var s=r(39311);function a(n){let{className:t,...r}=n;return(0,e.jsxs)("svg",{role:"img",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",className:(0,s.cn)("h-4 w-4",t),...r,children:[(0,e.jsx)("title",{children:"GitHub"}),(0,e.jsx)("path",{d:"M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"})]})}function l(n){let{className:t,...r}=n;return(0,e.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",fill:"currentColor",className:(0,s.cn)("h-4 w-4",t),...r,children:(0,e.jsx)("path",{d:"m205.66 149.66-72 72a8 8 0 0 1-11.32 0l-72-72a8 8 0 0 1 11.32-11.32L120 196.69V40a8 8 0 0 1 16 0v156.69l58.34-58.35a8 8 0 0 1 11.32 11.32Z"})})}function c(n){let{className:t,...r}=n;return(0,e.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",fill:"currentColor",className:(0,s.cn)("h-4 w-4",t),...r,children:(0,e.jsx)("path",{d:"m221.66 133.66-72 72a8 8 0 0 1-11.32-11.32L196.69 136H40a8 8 0 0 1 0-16h156.69l-58.35-58.34a8 8 0 0 1 11.32-11.32l72 72a8 8 0 0 1 0 11.32Z"})})}function o(n){let{className:t,...r}=n;return(0,e.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",fill:"currentColor",className:(0,s.cn)("h-4 w-4",t),...r,children:(0,e.jsx)("path",{d:"M230.92 212c-15.23-26.33-38.7-45.21-66.09-54.16a72 72 0 1 0-73.66 0c-27.39 8.94-50.86 27.82-66.09 54.16a8 8 0 1 0 13.85 8c18.84-32.56 52.14-52 89.07-52s70.23 19.44 89.07 52a8 8 0 1 0 13.85-8ZM72 96a56 56 0 1 1 56 56 56.06 56.06 0 0 1-56-56Z"})})}function i(n){let{className:t,...r}=n;return(0,e.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",fill:"currentColor",className:(0,s.cn)("h-4 w-4",t),...r,children:(0,e.jsx)("path",{d:"M200 32v144a8 8 0 0 1-8 8H67.31l34.35 34.34a8 8 0 0 1-11.32 11.32l-48-48a8 8 0 0 1 0-11.32l48-48a8 8 0 0 1 11.32 11.32L67.31 168H184V32a8 8 0 0 1 16 0Z"})})}function u(n){let{className:t,...r}=n;return(0,e.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",fill:"currentColor",className:(0,s.cn)("h-4 w-4",t),...r,children:(0,e.jsx)("path",{d:"M197.67 186.37a8 8 0 0 1 0 11.29C196.58 198.73 170.82 224 128 224c-37.39 0-64.53-22.4-80-39.85V208a8 8 0 0 1-16 0v-48a8 8 0 0 1 8-8h48a8 8 0 0 1 0 16H55.44C67.76 183.35 93 208 128 208c36 0 58.14-21.46 58.36-21.68a8 8 0 0 1 11.31.05ZM216 40a8 8 0 0 0-8 8v23.85C192.53 54.4 165.39 32 128 32c-42.82 0-68.58 25.27-69.66 26.34a8 8 0 0 0 11.3 11.34C69.86 69.46 92 48 128 48c35 0 60.24 24.65 72.56 40H168a8 8 0 0 0 0 16h48a8 8 0 0 0 8-8V48a8 8 0 0 0-8-8Z"})})}function h(n){let{className:t,...r}=n;return(0,e.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",fill:"currentColor",className:(0,s.cn)("h-4 w-4",t),...r,children:(0,e.jsx)("path",{d:"M128 24a104 104 0 1 0 104 104A104.11 104.11 0 0 0 128 24Zm0 192a88 88 0 1 1 88-88 88.1 88.1 0 0 1-88 88Zm24-120h-48a8 8 0 0 0-8 8v48a8 8 0 0 0 8 8h48a8 8 0 0 0 8-8v-48a8 8 0 0 0-8-8Zm-8 48h-32v-32h32Z"})})}function w(n){let{className:t,...r}=n;return(0,e.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",fill:"currentColor",className:(0,s.cn)("h-4 w-4",t),...r,children:(0,e.jsx)("path",{d:"M233.54 142.23a8 8 0 0 0-8-2 88.08 88.08 0 0 1-109.8-109.8 8 8 0 0 0-10-10 104.84 104.84 0 0 0-52.91 37A104 104 0 0 0 136 224a103.09 103.09 0 0 0 62.52-20.88 104.84 104.84 0 0 0 37-52.91 8 8 0 0 0-1.98-7.98Zm-44.64 48.11A88 88 0 0 1 65.66 67.11a89 89 0 0 1 31.4-26A106 106 0 0 0 96 56a104.11 104.11 0 0 0 104 104 106 106 0 0 0 14.92-1.06 89 89 0 0 1-26.02 31.4Z"})})}function v(n){let{className:t,...r}=n;return(0,e.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",fill:"currentColor",className:(0,s.cn)("h-4 w-4",t),...r,children:(0,e.jsx)("path",{d:"M120 40V16a8 8 0 0 1 16 0v24a8 8 0 0 1-16 0Zm72 88a64 64 0 1 1-64-64 64.07 64.07 0 0 1 64 64Zm-16 0a48 48 0 1 0-48 48 48.05 48.05 0 0 0 48-48ZM58.34 69.66a8 8 0 0 0 11.32-11.32l-16-16a8 8 0 0 0-11.32 11.32Zm0 116.68-16 16a8 8 0 0 0 11.32 11.32l16-16a8 8 0 0 0-11.32-11.32ZM192 72a8 8 0 0 0 5.66-2.34l16-16a8 8 0 0 0-11.32-11.32l-16 16A8 8 0 0 0 192 72Zm5.66 114.34a8 8 0 0 0-11.32 11.32l16 16a8 8 0 0 0 11.32-11.32ZM48 128a8 8 0 0 0-8-8H16a8 8 0 0 0 0 16h24a8 8 0 0 0 8-8Zm80 80a8 8 0 0 0-8 8v24a8 8 0 0 0 16 0v-24a8 8 0 0 0-8-8Zm112-88h-24a8 8 0 0 0 0 16h24a8 8 0 0 0 0-16Z"})})}function d(n){let{className:t,...r}=n;return(0,e.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",fill:"currentColor",className:(0,s.cn)("h-4 w-4",t),...r,children:(0,e.jsx)("path",{d:"M216 32H88a8 8 0 0 0-8 8v40H40a8 8 0 0 0-8 8v128a8 8 0 0 0 8 8h128a8 8 0 0 0 8-8v-40h40a8 8 0 0 0 8-8V40a8 8 0 0 0-8-8Zm-56 176H48V96h112Zm48-48h-32V88a8 8 0 0 0-8-8H96V48h112Z"})})}function f(n){let{className:t,...r}=n;return(0,e.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",fill:"currentColor",className:(0,s.cn)("h-4 w-4",t),...r,children:(0,e.jsx)("path",{d:"m229.66 77.66-128 128a8 8 0 0 1-11.32 0l-56-56a8 8 0 0 1 11.32-11.32L96 188.69 218.34 66.34a8 8 0 0 1 11.32 11.32Z"})})}function x(n){let{className:t,...r}=n;return(0,e.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",fill:"currentColor",className:(0,s.cn)("h-4 w-4",t),...r,children:(0,e.jsx)("path",{d:"M224 152v56a16 16 0 0 1-16 16H48a16 16 0 0 1-16-16v-56a8 8 0 0 1 16 0v56h160v-56a8 8 0 0 1 16 0Zm-101.66 5.66a8 8 0 0 0 11.32 0l40-40a8 8 0 0 0-11.32-11.32L136 132.69V40a8 8 0 0 0-16 0v92.69l-26.34-26.35a8 8 0 0 0-11.32 11.32Z"})})}function g(n){let{className:t,...r}=n;return(0,e.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",fill:"currentColor",className:(0,s.cn)("h-4 w-4",t),...r,children:(0,e.jsx)("path",{d:"M205.66 194.34a8 8 0 0 1-11.32 11.32L128 139.31l-66.34 66.35a8 8 0 0 1-11.32-11.32L116.69 128 50.34 61.66a8 8 0 0 1 11.32-11.32L128 116.69l66.34-66.35a8 8 0 0 1 11.32 11.32L139.31 128Z"})})}function m(n){let{className:t,...r}=n;return(0,e.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:(0,s.cn)("h-4 w-4",t),...r,children:(0,e.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.862 4.487l1.687-1.688a1.875 1.875 0 112.652 2.652L10.582 16.07a4.5 4.5 0 01-1.897 1.13L6 18l.8-2.685a4.5 4.5 0 011.13-1.897l8.932-8.931zm0 0L19.5 7.125M18 14v4.75A2.25 2.25 0 0115.75 21H5.25A2.25 2.25 0 013 18.75V8.25A2.25 2.25 0 015.25 6H10"})})}function p(n){let{className:t,...r}=n;return(0,e.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",className:(0,s.cn)("h-4 w-4",t),viewBox:"0 0 256 256",...r,children:(0,e.jsx)("path",{d:"M224 104a8 8 0 0 1-16 0V59.32l-66.33 66.34a8 8 0 0 1-11.32-11.32L196.68 48H152a8 8 0 0 1 0-16h64a8 8 0 0 1 8 8Zm-40 24a8 8 0 0 0-8 8v72H48V80h72a8 8 0 0 0 0-16H48a16 16 0 0 0-16 16v128a16 16 0 0 0 16 16h128a16 16 0 0 0 16-16v-72a8 8 0 0 0-8-8Z"})})}function j(n){let{className:t,...r}=n;return(0,e.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",className:(0,s.cn)("h-4 w-4",t),viewBox:"0 0 270 270",...r,children:(0,e.jsxs)("g",{children:[(0,e.jsxs)("g",{children:[(0,e.jsx)("path",{style:{fill:"#E01E5A"},d:"M99.4,151.2c0,7.1-5.8,12.9-12.9,12.9c-7.1,0-12.9-5.8-12.9-12.9c0-7.1,5.8-12.9,12.9-12.9h12.9V151.2z"}),(0,e.jsx)("path",{style:{fill:"#E01E5A"},d:"M105.9,151.2c0-7.1,5.8-12.9,12.9-12.9s12.9,5.8,12.9,12.9v32.3c0,7.1-5.8,12.9-12.9,12.9 s-12.9-5.8-12.9-12.9V151.2z"})]}),(0,e.jsxs)("g",{children:[(0,e.jsx)("path",{style:{fill:"#36C5F0"},d:"M118.8,99.4c-7.1,0-12.9-5.8-12.9-12.9c0-7.1,5.8-12.9,12.9-12.9s12.9,5.8,12.9,12.9v12.9H118.8z"}),(0,e.jsx)("path",{style:{fill:"#36C5F0"},d:"M118.8,105.9c7.1,0,12.9,5.8,12.9,12.9s-5.8,12.9-12.9,12.9H86.5c-7.1,0-12.9-5.8-12.9-12.9 s5.8-12.9,12.9-12.9H118.8z"})]}),(0,e.jsxs)("g",{children:[(0,e.jsx)("path",{style:{fill:"#2EB67D"},d:"M170.6,118.8c0-7.1,5.8-12.9,12.9-12.9c7.1,0,12.9,5.8,12.9,12.9s-5.8,12.9-12.9,12.9h-12.9V118.8z"}),(0,e.jsx)("path",{style:{fill:"#2EB67D"},d:"M164.1,118.8c0,7.1-5.8,12.9-12.9,12.9c-7.1,0-12.9-5.8-12.9-12.9V86.5c0-7.1,5.8-12.9,12.9-12.9 c7.1,0,12.9,5.8,12.9,12.9V118.8z"})]}),(0,e.jsxs)("g",{children:[(0,e.jsx)("path",{style:{fill:"#ECB22E"},d:"M151.2,170.6c7.1,0,12.9,5.8,12.9,12.9c0,7.1-5.8,12.9-12.9,12.9c-7.1,0-12.9-5.8-12.9-12.9v-12.9H151.2z"}),(0,e.jsx)("path",{style:{fill:"#ECB22E"},d:"M151.2,164.1c-7.1,0-12.9-5.8-12.9-12.9c0-7.1,5.8-12.9,12.9-12.9h32.3c7.1,0,12.9,5.8,12.9,12.9 c0,7.1-5.8,12.9-12.9,12.9H151.2z"})]})]})})}},39311:function(n,t,r){r.d(t,{cn:function(){return l}});var e=r(50348),s=r(28481),a=r(23986);function l(){for(var n=arguments.length,t=Array(n),r=0;rr.e(376).then(r.bind(r,15376)).then(e=>e.ThemeToggle),{loadableGenerated:{webpack:()=>[15376]},ssr:!1});function b(){var e;let{data:n}=(0,u.Q)(),r=!!(null==n?void 0:n.chat_model),l=null==n?void 0:null===(e=n.version)||void 0===e?void 0:e.git_describe,{data:o}=(0,f.Z)("https://api.github.com/repos/TabbyML/tabby/releases/latest",e=>fetch(e).then(e=>e.json())),d=l&&o&&(0,h.q)(o.name,l,">");return(0,t.jsxs)("header",{className:"sticky top-0 z-50 flex items-center justify-between w-full h-16 px-4 border-b shrink-0 bg-gradient-to-b from-background/10 via-background/50 to-background/80 backdrop-blur-xl",children:[(0,t.jsxs)("div",{className:"flex items-center",children:[(0,t.jsx)(m,{}),(0,t.jsx)(c(),{href:"/",className:(0,s.cn)((0,a.d)({variant:"link"})),children:"Home"}),r&&(0,t.jsx)(c(),{href:"/playground",className:(0,s.cn)((0,a.d)({variant:"link"})),children:"Playground"})]}),(0,t.jsxs)("div",{className:"flex items-center justify-end space-x-2",children:[d&&(0,t.jsxs)("a",{target:"_blank",href:"https://github.com/TabbyML/tabby/releases/latest",rel:"noopener noreferrer",className:(0,a.d)({variant:"ghost"}),children:[(0,t.jsx)(i.Qs,{className:"text-yellow-600 dark:text-yellow-400"}),(0,t.jsxs)("span",{className:"hidden ml-2 md:flex",children:["New version (",o.name,") available"]})]}),(0,t.jsxs)("a",{target:"_blank",href:"https://github.com/TabbyML/tabby",rel:"noopener noreferrer",className:(0,s.cn)((0,a.d)({variant:"outline"})),children:[(0,t.jsx)(i.Mr,{}),(0,t.jsx)("span",{className:"hidden ml-2 md:flex",children:"GitHub"})]}),(0,t.jsxs)("a",{target:"_blank",href:"/swagger-ui",rel:"noopener noreferrer",className:(0,s.cn)((0,a.d)({variant:"outline"})),children:[(0,t.jsx)(i.Tq,{}),(0,t.jsx)("span",{className:"hidden ml-2 md:flex",children:"OpenAPI"})]})]})]})}},78495:function(e,n,r){"use strict";r.r(n),r.d(n,{Providers:function(){return i}});var t=r(57437);r(2265);var s=r(6435),a=r(95482);function i(e){let{children:n,...r}=e;return(0,t.jsx)(s.f,{...r,children:(0,t.jsx)(a.pn,{children:n})})}},95482:function(e,n,r){"use strict";r.d(n,{_v:function(){return c},aJ:function(){return d},pn:function(){return l},u:function(){return o}});var t=r(57437),s=r(2265),a=r(43212),i=r(39311);let l=a.zt,o=a.fC,d=a.xz,c=s.forwardRef((e,n)=>{let{className:r,sideOffset:s=4,...l}=e;return(0,t.jsx)(a.VY,{ref:n,sideOffset:s,className:(0,i.cn)("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-xs font-medium text-popover-foreground shadow-md animate-in fade-in-50 data-[side=bottom]:slide-in-from-top-1 data-[side=left]:slide-in-from-right-1 data-[side=right]:slide-in-from-left-1 data-[side=top]:slide-in-from-bottom-1",r),...l})});c.displayName=a.VY.displayName},13287:function(e,n,r){"use strict";r.d(n,{Q:function(){return s}});var t=r(45362);function s(){return(0,t.Z)("/v1/health",e=>fetch(e).then(e=>e.json()),{fallbackData:void 0})}},58877:function(){}},function(e){e.O(0,[400,406,362,563,894,971,864,744],function(){return e(e.s=21050)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/crates/tabby/ui/_next/static/chunks/app/layout-ac85f503669d9498.js b/crates/tabby/ui/_next/static/chunks/app/layout-ac85f503669d9498.js deleted file mode 100644 index 6d1b6ce..0000000 --- a/crates/tabby/ui/_next/static/chunks/app/layout-ac85f503669d9498.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[185],{21050:function(e,n,r){Promise.resolve().then(r.t.bind(r,58877,23)),Promise.resolve().then(r.bind(r,78963)),Promise.resolve().then(r.bind(r,78495)),Promise.resolve().then(r.t.bind(r,6928,23)),Promise.resolve().then(r.t.bind(r,33195,23)),Promise.resolve().then(r.bind(r,5925))},78963:function(e,n,r){"use strict";r.r(n),r.d(n,{Header:function(){return h}});var t=r(57437),s=r(2265),i=r(39311),a=r(93023),o=r(84168),d=r(30415),l=r.n(d),c=r(61396),f=r.n(c);let u=l()(()=>r.e(376).then(r.bind(r,15376)).then(e=>e.ThemeToggle),{loadableGenerated:{webpack:()=>[15376]},ssr:!1});function h(){let[e,n]=s.useState(!1);return s.useEffect(()=>{m().then(n)},[]),(0,t.jsxs)("header",{className:"sticky top-0 z-50 flex items-center justify-between w-full h-16 px-4 border-b shrink-0 bg-gradient-to-b from-background/10 via-background/50 to-background/80 backdrop-blur-xl",children:[(0,t.jsxs)("div",{className:"flex items-center",children:[(0,t.jsx)(u,{}),(0,t.jsx)(f(),{href:"/",className:(0,i.cn)((0,a.d)({variant:"link"})),children:"Home"}),e&&(0,t.jsx)(f(),{href:"/playground",className:(0,i.cn)((0,a.d)({variant:"link"})),children:"Playground"})]}),(0,t.jsxs)("div",{className:"flex items-center justify-end space-x-2",children:[(0,t.jsxs)("a",{target:"_blank",href:"https://github.com/TabbyML/tabby",rel:"noopener noreferrer",className:(0,i.cn)((0,a.d)({variant:"outline"})),children:[(0,t.jsx)(o.Mr,{}),(0,t.jsx)("span",{className:"hidden ml-2 md:flex",children:"GitHub"})]}),(0,t.jsxs)("a",{target:"_blank",href:"/swagger-ui",rel:"noopener noreferrer",className:(0,i.cn)((0,a.d)({variant:"outline"})),children:[(0,t.jsx)(o.Tq,{}),(0,t.jsx)("span",{className:"hidden ml-2 md:flex",children:"OpenAPI"})]})]})]})}async function m(){{let e=await fetch("/v1/health"),n=await e.json();return!!n.chat_model}}},78495:function(e,n,r){"use strict";r.r(n),r.d(n,{Providers:function(){return a}});var t=r(57437);r(2265);var s=r(6435),i=r(95482);function a(e){let{children:n,...r}=e;return(0,t.jsx)(s.f,{...r,children:(0,t.jsx)(i.pn,{children:n})})}},95482:function(e,n,r){"use strict";r.d(n,{_v:function(){return c},aJ:function(){return l},pn:function(){return o},u:function(){return d}});var t=r(57437),s=r(2265),i=r(43212),a=r(39311);let o=i.zt,d=i.fC,l=i.xz,c=s.forwardRef((e,n)=>{let{className:r,sideOffset:s=4,...o}=e;return(0,t.jsx)(i.VY,{ref:n,sideOffset:s,className:(0,a.cn)("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-xs font-medium text-popover-foreground shadow-md animate-in fade-in-50 data-[side=bottom]:slide-in-from-top-1 data-[side=left]:slide-in-from-right-1 data-[side=right]:slide-in-from-left-1 data-[side=top]:slide-in-from-bottom-1",r),...o})});c.displayName=i.VY.displayName},58877:function(){}},function(e){e.O(0,[358,406,832,894,971,864,744],function(){return e(e.s=21050)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/crates/tabby/ui/_next/static/chunks/app/page-31b02197d46dcfe5.js b/crates/tabby/ui/_next/static/chunks/app/page-31b02197d46dcfe5.js deleted file mode 100644 index e2b7f3b..0000000 --- a/crates/tabby/ui/_next/static/chunks/app/page-31b02197d46dcfe5.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[931],{48458:function(e,t,s){Promise.resolve().then(s.bind(s,25454))},25454:function(e,t,s){"use strict";s.r(t),s.d(t,{default:function(){return j}});var a=s(57437),n=s(93023),r=s(2265),i=s(27775),l=s(39311),o=s(84168);let c=i.fC;i.xz;let d=e=>{let{className:t,children:s,...n}=e;return(0,a.jsx)(i.h_,{className:(0,l.cn)(t),...n,children:(0,a.jsx)("div",{className:"fixed inset-0 z-50 flex items-start justify-center sm:items-center",children:s})})};d.displayName=i.h_.displayName;let m=r.forwardRef((e,t)=>{let{className:s,...n}=e;return(0,a.jsx)(i.aV,{ref:t,className:(0,l.cn)("fixed inset-0 z-50 bg-background/80 backdrop-blur-sm transition-all duration-100 data-[state=closed]:animate-out data-[state=closed]:fade-out data-[state=open]:fade-in",s),...n})});m.displayName=i.aV.displayName;let u=r.forwardRef((e,t)=>{let{className:s,children:n,...r}=e;return(0,a.jsxs)(d,{children:[(0,a.jsx)(m,{}),(0,a.jsxs)(i.VY,{ref:t,className:(0,l.cn)("fixed z-50 grid w-full gap-4 rounded-b-lg border bg-background p-6 shadow-sm animate-in data-[state=open]:fade-in-90 data-[state=open]:slide-in-from-bottom-10 sm:max-w-lg sm:rounded-lg sm:zoom-in-90 data-[state=open]:sm:slide-in-from-bottom-0",s),...r,children:[n,(0,a.jsxs)(i.x8,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[(0,a.jsx)(o.bM,{}),(0,a.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})});u.displayName=i.VY.displayName;let f=e=>{let{className:t,...s}=e;return(0,a.jsx)("div",{className:(0,l.cn)("flex flex-col space-y-1.5 text-center sm:text-left",t),...s})};f.displayName="DialogHeader";let h=e=>{let{className:t,...s}=e;return(0,a.jsx)("div",{className:(0,l.cn)("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t),...s})};h.displayName="DialogFooter";let x=r.forwardRef((e,t)=>{let{className:s,...n}=e;return(0,a.jsx)(i.Dx,{ref:t,className:(0,l.cn)("text-lg font-semibold leading-none tracking-tight",s),...n})});x.displayName=i.Dx.displayName;let g=r.forwardRef((e,t)=>{let{className:s,...n}=e;return(0,a.jsx)(i.dk,{ref:t,className:(0,l.cn)("text-sm text-muted-foreground",s),...n})});g.displayName=i.dk.displayName;var b=s(16775);let p="community-dialog-shown";function j(){let[e,t]=(0,r.useState)();(0,r.useEffect)(()=>{y().then(t)},[]);let[s,i]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{localStorage.getItem(p)||(i(!0),localStorage.setItem(p,"true"))},[]),(0,a.jsxs)("div",{className:"grow flex justify-center items-center",children:[(0,a.jsx)("div",{className:"w-2/3 lg:w-1/3 flex flex-col gap-3",children:e&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("h1",{children:[(0,a.jsx)("span",{className:"font-bold",children:"Congratulations"}),", your tabby instance is running!"]}),(0,a.jsxs)("span",{className:"flex gap-1",children:[(0,a.jsx)("a",{target:"_blank",href:"https://github.com/TabbyML/tabby/releases/tag/".concat(e.version.git_describe),children:(0,a.jsx)("img",{src:"https://img.shields.io/badge/version-".concat(w(e.version.git_describe),"-green")})}),(0,a.jsx)("img",{src:"https://img.shields.io/badge/device-".concat(e.device,"-blue")}),(0,a.jsx)("img",{src:"https://img.shields.io/badge/model-".concat(w(e.model),"-red")})]}),(0,a.jsx)(b.Z,{}),(0,a.jsxs)("p",{children:["You can find our documentation ",(0,a.jsx)(N,{href:"https://tabby.tabbyml.com/docs/getting-started",children:"here"}),".",(0,a.jsxs)("ul",{className:"mt-2",children:[(0,a.jsxs)("li",{children:["\uD83D\uDCBB ",(0,a.jsx)(N,{href:"https://tabby.tabbyml.com/docs/extensions/",children:"IDE/Editor Extensions"})]}),(0,a.jsxs)("li",{children:["⚙️ ",(0,a.jsx)(N,{href:"https://tabby.tabbyml.com/docs/configuration",children:"Configuration"})]})]})]})]})}),(0,a.jsx)(c,{open:s,onOpenChange:i,children:(0,a.jsxs)(u,{children:[(0,a.jsxs)(f,{className:"gap-3",children:[(0,a.jsx)(x,{children:"Join the Tabby community"}),(0,a.jsx)(g,{children:"Connect with other contributors building Tabby. Share knowledge, get help, and contribute to the open-source project."})]}),(0,a.jsx)(h,{className:"sm:justify-start",children:(0,a.jsxs)("a",{target:"_blank",href:"https://join.slack.com/t/tabbycommunity/shared_invite/zt-1xeiddizp-bciR2RtFTaJ37RBxr8VxpA",className:(0,n.d)(),children:[(0,a.jsx)(o.gx,{className:"-ml-2 h-8 w-8"}),"Join us on Slack"]})})]})})]})}async function y(){{let e=await fetch("/v1/health");return await e.json()}}function N(e){let{href:t,children:s}=e;return(0,a.jsx)("a",{target:"_blank",href:t,className:"underline",children:s})}function w(e){return encodeURIComponent(e.replaceAll("-","--"))}},16775:function(e,t,s){"use strict";s.d(t,{Z:function(){return l}});var a=s(57437),n=s(2265),r=s(26823),i=s(39311);let l=n.forwardRef((e,t)=>{let{className:s,orientation:n="horizontal",decorative:l=!0,...o}=e;return(0,a.jsx)(r.f,{ref:t,decorative:l,orientation:n,className:(0,i.cn)("shrink-0 bg-border","horizontal"===n?"h-[1px] w-full":"h-full w-[1px]",s),...o})});l.displayName=r.f.displayName}},function(e){e.O(0,[358,703,894,971,864,744],function(){return e(e.s=48458)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/crates/tabby/ui/_next/static/chunks/app/page-e7141b56a55588af.js b/crates/tabby/ui/_next/static/chunks/app/page-e7141b56a55588af.js new file mode 100644 index 0000000..6cc5b34 --- /dev/null +++ b/crates/tabby/ui/_next/static/chunks/app/page-e7141b56a55588af.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[931],{48458:function(e,t,s){Promise.resolve().then(s.bind(s,25454))},25454:function(e,t,s){"use strict";s.r(t),s.d(t,{default:function(){return y}});var a=s(57437),n=s(93023),r=s(2265),i=s(27775),l=s(39311),o=s(84168);let c=i.fC;i.xz;let d=e=>{let{className:t,children:s,...n}=e;return(0,a.jsx)(i.h_,{className:(0,l.cn)(t),...n,children:(0,a.jsx)("div",{className:"fixed inset-0 z-50 flex items-start justify-center sm:items-center",children:s})})};d.displayName=i.h_.displayName;let m=r.forwardRef((e,t)=>{let{className:s,...n}=e;return(0,a.jsx)(i.aV,{ref:t,className:(0,l.cn)("fixed inset-0 z-50 bg-background/80 backdrop-blur-sm transition-all duration-100 data-[state=closed]:animate-out data-[state=closed]:fade-out data-[state=open]:fade-in",s),...n})});m.displayName=i.aV.displayName;let u=r.forwardRef((e,t)=>{let{className:s,children:n,...r}=e;return(0,a.jsxs)(d,{children:[(0,a.jsx)(m,{}),(0,a.jsxs)(i.VY,{ref:t,className:(0,l.cn)("fixed z-50 grid w-full gap-4 rounded-b-lg border bg-background p-6 shadow-sm animate-in data-[state=open]:fade-in-90 data-[state=open]:slide-in-from-bottom-10 sm:max-w-lg sm:rounded-lg sm:zoom-in-90 data-[state=open]:sm:slide-in-from-bottom-0",s),...r,children:[n,(0,a.jsxs)(i.x8,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[(0,a.jsx)(o.bM,{}),(0,a.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})});u.displayName=i.VY.displayName;let f=e=>{let{className:t,...s}=e;return(0,a.jsx)("div",{className:(0,l.cn)("flex flex-col space-y-1.5 text-center sm:text-left",t),...s})};f.displayName="DialogHeader";let h=e=>{let{className:t,...s}=e;return(0,a.jsx)("div",{className:(0,l.cn)("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t),...s})};h.displayName="DialogFooter";let x=r.forwardRef((e,t)=>{let{className:s,...n}=e;return(0,a.jsx)(i.Dx,{ref:t,className:(0,l.cn)("text-lg font-semibold leading-none tracking-tight",s),...n})});x.displayName=i.Dx.displayName;let g=r.forwardRef((e,t)=>{let{className:s,...n}=e;return(0,a.jsx)(i.dk,{ref:t,className:(0,l.cn)("text-sm text-muted-foreground",s),...n})});g.displayName=i.dk.displayName;var b=s(16775),p=s(13287);let j="community-dialog-shown";function y(){let[e,t]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{localStorage.getItem(j)||(t(!0),localStorage.setItem(j,"true"))},[]),(0,a.jsxs)("div",{className:"grow flex justify-center items-center",children:[(0,a.jsx)(w,{}),(0,a.jsx)(c,{open:e,onOpenChange:t,children:(0,a.jsxs)(u,{children:[(0,a.jsxs)(f,{className:"gap-3",children:[(0,a.jsx)(x,{children:"Join the Tabby community"}),(0,a.jsx)(g,{children:"Connect with other contributors building Tabby. Share knowledge, get help, and contribute to the open-source project."})]}),(0,a.jsx)(h,{className:"sm:justify-start",children:(0,a.jsxs)("a",{target:"_blank",href:"https://join.slack.com/t/tabbycommunity/shared_invite/zt-1xeiddizp-bciR2RtFTaJ37RBxr8VxpA",className:(0,n.d)(),children:[(0,a.jsx)(o.gx,{className:"-ml-2 h-8 w-8"}),"Join us on Slack"]})})]})})]})}function N(e){let{href:t,children:s}=e;return(0,a.jsx)("a",{target:"_blank",href:t,className:"underline",children:s})}function v(e){return encodeURIComponent(e.replaceAll("-","--"))}function w(){let{data:e}=(0,p.Q)();if(e)return(0,a.jsxs)("div",{className:"w-2/3 lg:w-1/3 flex flex-col gap-3",children:[(0,a.jsxs)("h1",{children:[(0,a.jsx)("span",{className:"font-bold",children:"Congratulations"}),", your tabby instance is running!"]}),(0,a.jsxs)("span",{className:"flex gap-1",children:[(0,a.jsx)("a",{target:"_blank",href:"https://github.com/TabbyML/tabby/releases/tag/".concat(e.version.git_describe),children:(0,a.jsx)("img",{src:"https://img.shields.io/badge/version-".concat(v(e.version.git_describe),"-green")})}),(0,a.jsx)("img",{src:"https://img.shields.io/badge/device-".concat(e.device,"-blue")}),(0,a.jsx)("img",{src:"https://img.shields.io/badge/model-".concat(v(e.model),"-red")})]}),(0,a.jsx)(b.Z,{}),(0,a.jsxs)("span",{children:["You can find our documentation ",(0,a.jsx)(N,{href:"https://tabby.tabbyml.com/docs/getting-started",children:"here"}),".",(0,a.jsxs)("ul",{className:"mt-2",children:[(0,a.jsxs)("li",{children:["\uD83D\uDCBB ",(0,a.jsx)(N,{href:"https://tabby.tabbyml.com/docs/extensions/",children:"IDE/Editor Extensions"})]}),(0,a.jsxs)("li",{children:["⚙️ ",(0,a.jsx)(N,{href:"https://tabby.tabbyml.com/docs/configuration",children:"Configuration"})]})]})]})]})}},16775:function(e,t,s){"use strict";s.d(t,{Z:function(){return l}});var a=s(57437),n=s(2265),r=s(26823),i=s(39311);let l=n.forwardRef((e,t)=>{let{className:s,orientation:n="horizontal",decorative:l=!0,...o}=e;return(0,a.jsx)(r.f,{ref:t,decorative:l,orientation:n,className:(0,i.cn)("shrink-0 bg-border","horizontal"===n?"h-[1px] w-full":"h-full w-[1px]",s),...o})});l.displayName=r.f.displayName},13287:function(e,t,s){"use strict";s.d(t,{Q:function(){return n}});var a=s(45362);function n(){return(0,a.Z)("/v1/health",e=>fetch(e).then(e=>e.json()),{fallbackData:void 0})}}},function(e){e.O(0,[400,362,703,894,971,864,744],function(){return e(e.s=48458)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/crates/tabby/ui/_next/static/chunks/app/playground/page-5dcb481453d0a823.js b/crates/tabby/ui/_next/static/chunks/app/playground/page-e2c85638af29803a.js similarity index 98% rename from crates/tabby/ui/_next/static/chunks/app/playground/page-5dcb481453d0a823.js rename to crates/tabby/ui/_next/static/chunks/app/playground/page-e2c85638af29803a.js index 31cb33b..5777a4a 100644 --- a/crates/tabby/ui/_next/static/chunks/app/playground/page-5dcb481453d0a823.js +++ b/crates/tabby/ui/_next/static/chunks/app/playground/page-e2c85638af29803a.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[383],{85722:function(e,t,s){Promise.resolve().then(s.bind(s,12202))},12202:function(e,t,s){"use strict";s.r(t),s.d(t,{Chat:function(){return J}});var n=s(57437),r=s(57139),a=s(39311),i=s(16775),l=s(48975),o=s(82180),c=s(2265),d=s(30513),u=s(4523);function m(e){let{timeout:t=2e3}=e,[s,n]=c.useState(!1);return{isCopied:s,copyToClipboard:e=>{var s;(null===(s=navigator.clipboard)||void 0===s?void 0:s.writeText)&&e&&navigator.clipboard.writeText(e).then(()=>{n(!0),setTimeout(()=>{n(!1)},t)})}}}var p=s(84168),h=s(93023);let f={javascript:".js",python:".py",java:".java",c:".c",cpp:".cpp","c++":".cpp","c#":".cs",ruby:".rb",php:".php",swift:".swift","objective-c":".m",kotlin:".kt",typescript:".ts",go:".go",perl:".pl",rust:".rs",scala:".scala",haskell:".hs",lua:".lua",shell:".sh",sql:".sql",html:".html",css:".css"},x=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],s="ABCDEFGHJKLMNPQRSTUVWXY3456789",n="";for(let t=0;t{let{language:t,value:s}=e,{isCopied:r,copyToClipboard:a}=m({timeout:2e3});return(0,n.jsxs)("div",{className:"relative w-full font-sans codeblock bg-zinc-950",children:[(0,n.jsxs)("div",{className:"flex items-center justify-between w-full px-6 py-2 pr-4 bg-zinc-800 text-zinc-100",children:[(0,n.jsx)("span",{className:"text-xs lowercase",children:t}),(0,n.jsxs)("div",{className:"flex items-center space-x-1",children:[(0,n.jsxs)(h.z,{variant:"ghost",className:"hover:bg-zinc-800 focus-visible:ring-1 focus-visible:ring-slate-700 focus-visible:ring-offset-0",onClick:()=>{let e=f[t]||".file",n="file-".concat(x(3,!0)).concat(e),r=window.prompt("Enter file name",n);if(!r)return;let a=new Blob([s],{type:"text/plain"}),i=URL.createObjectURL(a),l=document.createElement("a");l.download=r,l.href=i,l.style.display="none",document.body.appendChild(l),l.click(),document.body.removeChild(l),URL.revokeObjectURL(i)},size:"icon",children:[(0,n.jsx)(p.Dj,{}),(0,n.jsx)("span",{className:"sr-only",children:"Download"})]}),(0,n.jsxs)(h.z,{variant:"ghost",size:"icon",className:"text-xs hover:bg-zinc-800 focus-visible:ring-1 focus-visible:ring-slate-700 focus-visible:ring-offset-0",onClick:()=>{r||a(s)},children:[r?(0,n.jsx)(p.NO,{}):(0,n.jsx)(p.vU,{}),(0,n.jsx)("span",{className:"sr-only",children:"Copy code"})]})]})]}),(0,n.jsx)(d.Z,{language:t,style:u.RY,PreTag:"div",showLineNumbers:!0,customStyle:{margin:0,width:"100%",background:"transparent",padding:"1.5rem 1rem"},codeTagProps:{style:{fontSize:"0.9rem",fontFamily:"var(--font-mono)"}},children:s})]})});g.displayName="CodeBlock";var v=s(19349);let b=(0,c.memo)(v.D,(e,t)=>e.children===t.children&&e.className===t.className);var j=s(16691),y=s.n(j);function w(e){let{message:t,className:s,...r}=e,{isCopied:i,copyToClipboard:l}=m({timeout:2e3});return(0,n.jsx)("div",{className:(0,a.cn)("flex items-center justify-end transition-opacity group-hover:opacity-100 md:absolute md:-right-10 md:-top-2 md:opacity-0",s),...r,children:(0,n.jsxs)(h.z,{variant:"ghost",size:"icon",onClick:()=>{i||l(t.content)},children:[i?(0,n.jsx)(p.NO,{}):(0,n.jsx)(p.vU,{}),(0,n.jsx)("span",{className:"sr-only",children:"Copy message"})]})})}function N(e){let{message:t,...s}=e;return(0,n.jsxs)("div",{className:(0,a.cn)("group relative mb-4 flex items-start md:-ml-12"),...s,children:[(0,n.jsx)("div",{className:(0,a.cn)("flex h-8 w-8 shrink-0 select-none items-center justify-center rounded-md border shadow","user"===t.role?"bg-background":"bg-primary text-primary-foreground"),children:"user"===t.role?(0,n.jsx)(p.f7,{}):(0,n.jsx)(k,{})}),(0,n.jsxs)("div",{className:"flex-1 px-1 ml-4 space-y-2 overflow-hidden",children:[(0,n.jsx)(b,{className:"prose break-words dark:prose-invert prose-p:leading-relaxed prose-pre:p-0",remarkPlugins:[l.Z,o.Z],components:{p(e){let{children:t}=e;return(0,n.jsx)("p",{className:"mb-2 last:mb-0",children:t})},code(e){let{node:t,inline:s,className:r,children:a,...i}=e;if(a.length){if("▍"==a[0])return(0,n.jsx)("span",{className:"mt-1 cursor-default animate-pulse",children:"▍"});a[0]=a[0].replace("`▍`","▍")}let l=/language-(\w+)/.exec(r||"");return s?(0,n.jsx)("code",{className:r,...i,children:a}):(0,n.jsx)(g,{language:l&&l[1]||"",value:String(a).replace(/\n$/,""),...i},Math.random())}},children:t.content}),(0,n.jsx)(w,{message:t})]})]})}function k(){return(0,n.jsx)(y(),{style:{borderRadius:4},src:"https://avatars.githubusercontent.com/u/125617854?s=128&v=4",alt:"tabby",width:"128",height:"128"})}function z(e){let{messages:t}=e;return t.length?(0,n.jsx)("div",{className:"relative mx-auto max-w-2xl px-4",children:t.map((e,s)=>(0,n.jsxs)("div",{children:[(0,n.jsx)(N,{message:e}),s{if("Enter"===t.key&&!t.shiftKey&&!t.nativeEvent.isComposing){var s;null===(s=e.current)||void 0===s||s.requestSubmit(),t.preventDefault()}}}}(),d=c.useRef(null);return(0,E.useRouter)(),c.useEffect(()=>{d.current&&d.current.focus()},[]),(0,n.jsx)("form",{onSubmit:async e=>{e.preventDefault(),(null==s?void 0:s.trim())&&(r(""),await t(s))},ref:l,children:(0,n.jsxs)("div",{className:"relative flex max-h-60 w-full grow flex-col overflow-hidden bg-background px-8 sm:rounded-md sm:border sm:px-12",children:[(0,n.jsx)("span",{className:(0,a.cn)((0,h.d)({size:"sm",variant:"ghost"}),"absolute left-0 top-4 h-8 w-8 rounded-full bg-background p-0 sm:left-4 hover:bg-background"),children:(0,n.jsx)(p.yl,{})}),(0,n.jsx)(C.Z,{ref:d,tabIndex:0,onKeyDown:o,rows:1,value:s,onChange:e=>r(e.target.value),placeholder:"Ask a question.",spellCheck:!1,className:"min-h-[60px] w-full resize-none bg-transparent px-4 py-[1.3rem] focus-within:outline-none sm:text-sm"}),(0,n.jsx)("div",{className:"absolute right-0 top-4 sm:right-4",children:(0,n.jsxs)(R.u,{children:[(0,n.jsx)(R.aJ,{asChild:!0,children:(0,n.jsxs)(h.z,{type:"submit",size:"icon",disabled:i||""===s,children:[(0,n.jsx)(p.vq,{}),(0,n.jsx)("span",{className:"sr-only",children:"Send message"})]})}),(0,n.jsx)(R._v,{children:"Send message"})]})})]})})}function S(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,[t,s]=c.useState(!1);return c.useEffect(()=>{let t=()=>{s(window.innerHeight+window.scrollY>=document.body.offsetHeight-e)};return window.addEventListener("scroll",t,{passive:!0}),t(),()=>{window.removeEventListener("scroll",t)}},[e]),t}function T(e){let{className:t,...s}=e,r=S();return(0,n.jsxs)(h.z,{variant:"outline",size:"icon",className:(0,a.cn)("absolute right-4 top-1 z-10 bg-background transition-opacity duration-300 sm:right-8 md:top-2",r?"opacity-0":"opacity-100",t),onClick:()=>window.scrollTo({top:document.body.offsetHeight,behavior:"smooth"}),...s,children:[(0,n.jsx)(p.BD,{}),(0,n.jsx)("span",{className:"sr-only",children:"Scroll to bottom"})]})}function _(e){let{href:t,children:s}=e;return(0,n.jsxs)("a",{href:t,target:"_blank",className:"inline-flex flex-1 justify-center gap-1 leading-4 hover:underline",children:[(0,n.jsx)("span",{children:s}),(0,n.jsx)("svg",{"aria-hidden":"true",height:"7",viewBox:"0 0 6 6",width:"7",className:"opacity-70",children:(0,n.jsx)("path",{d:"M1.25215 5.54731L0.622742 4.9179L3.78169 1.75597H1.3834L1.38936 0.890915H5.27615V4.78069H4.40513L4.41109 2.38538L1.25215 5.54731Z",fill:"currentColor"})})]})}function D(e){let{className:t,...s}=e;return(0,n.jsxs)("p",{className:(0,a.cn)("px-2 text-center text-xs leading-normal text-muted-foreground",t),...s,children:[(0,n.jsx)(_,{href:"https://tabby.tabbyml.com",children:"Tabby"}),", an opensource, self-hosted AI coding assistant ."]})}function H(e){let{id:t,isLoading:s,stop:r,append:a,reload:i,input:l,setInput:o,messages:c}=e;return(0,n.jsxs)("div",{className:"fixed inset-x-0 bottom-0 bg-gradient-to-b from-muted/10 from-10% to-muted/30 to-50%",children:[(0,n.jsx)(T,{}),(0,n.jsxs)("div",{className:"mx-auto sm:max-w-2xl sm:px-4",children:[(0,n.jsx)("div",{className:"flex h-10 items-center justify-center",children:s?(0,n.jsxs)(h.z,{variant:"outline",onClick:()=>r(),className:"bg-background",children:[(0,n.jsx)(p.zu,{className:"mr-2"}),"Stop generating"]}):(null==c?void 0:c.length)>0&&(0,n.jsxs)(h.z,{variant:"outline",onClick:()=>i(),className:"bg-background",children:[(0,n.jsx)(p.tr,{className:"mr-2"}),"Regenerate response"]})}),(0,n.jsxs)("div",{className:"space-y-4 border-t bg-background px-4 py-2 shadow-lg sm:rounded-t-xl sm:border md:py-4",children:[(0,n.jsx)(L,{onSubmit:async e=>{await a({id:t,content:e,role:"user"})},input:l,setInput:o,isLoading:s}),(0,n.jsx)(D,{className:"hidden sm:block"})]})]})]})}let O=[{heading:"Convert list of string to numbers",message:"How to convert a list of string to numbers in python"},{heading:"How to parse email address",message:"How to parse email address with regex"}];function U(e){let{setInput:t}=e;return(0,n.jsx)("div",{className:"mx-auto max-w-2xl px-4",children:(0,n.jsxs)("div",{className:"rounded-lg border bg-background p-8",children:[(0,n.jsx)("h1",{className:"mb-2 text-lg font-semibold",children:"Welcome to Playground!"}),(0,n.jsx)("p",{className:"leading-normal text-muted-foreground",children:"You can start a conversation here or try the following examples:"}),(0,n.jsx)("div",{className:"mt-4 flex flex-col items-start space-y-2",children:O.map((e,s)=>(0,n.jsxs)(h.z,{variant:"link",className:"h-auto p-0 text-base",onClick:()=>t(e.message),children:[(0,n.jsx)(p.Ec,{className:"mr-2 text-muted-foreground"}),e.heading]},s))})]})})}var B=s(4327);function P(e){let{trackVisibility:t}=e,s=S(),{ref:r,entry:a,inView:i}=(0,B.YD)({trackVisibility:t,delay:100,rootMargin:"0px 0px -150px 0px"});return c.useEffect(()=>{s&&t&&!i&&(null==a||a.target.scrollIntoView({block:"start"}))},[i,a,s,t]),(0,n.jsx)("div",{ref:r,className:"h-px w-full"})}var Y=s(5925),I=s(4913);let V=new TextDecoder("utf-8");async function Z(e,t){for(let s of e){let{content:e}=JSON.parse(s);t.enqueue(e)}}async function q(e,t){let s="";for(;;){let{value:n,done:r}=await e.read();if(r)break;s+=V.decode(n,{stream:!0});let a=s.split(/\r\n|\n|\r/g);s=a.pop()||"",await Z(a,t)}if(s){let e=[s];await Z(e,t)}t.close()}var M=s(62601);let A=M.env.NEXT_PUBLIC_TABBY_SERVER_URL||"";function J(e){let{id:t,initialMessages:s,className:i}=e;(0,c.useEffect)(()=>{let e=window.fetch;window.fetch=async function(t,s){var n;if("/api/chat"!==t)return e(t,s);let{messages:r}=JSON.parse(s.body),a=await e("".concat(A,"/v1beta/chat/completions"),{...s,method:"POST",headers:{"Content-Type":"application/json"}}),i=(n=void 0,(function(e){var t;let s=null===(t=e.body)||void 0===t?void 0:t.getReader();return new ReadableStream({async start(e){if(!s){e.close();return}await q(s,e)}})})(a).pipeThrough((0,I.T_)(n)).pipeThrough((0,I.h6)(null==n?void 0:n.experimental_streamData)));return new I.wn(i)}},[]);let{messages:l,append:o,reload:d,stop:u,isLoading:m,input:p,setInput:h,setMessages:f}=(0,r.R)({initialMessages:s,id:t,body:{id:t},onResponse(e){401===e.status&&Y.toast.error(e.statusText)}});return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:(0,a.cn)("pb-[200px] pt-4 md:pt-10",i),children:l.length?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(z,{messages:l}),(0,n.jsx)(P,{trackVisibility:m})]}):(0,n.jsx)(U,{setInput:h})}),(0,n.jsx)(H,{id:t,isLoading:m,stop:u,append:o,reload:d,messages:l,input:p,setInput:h})]})}},16775:function(e,t,s){"use strict";s.d(t,{Z:function(){return l}});var n=s(57437),r=s(2265),a=s(26823),i=s(39311);let l=r.forwardRef((e,t)=>{let{className:s,orientation:r="horizontal",decorative:l=!0,...o}=e;return(0,n.jsx)(a.f,{ref:t,decorative:l,orientation:r,className:(0,i.cn)("shrink-0 bg-border","horizontal"===r?"h-[1px] w-full":"h-full w-[1px]",s),...o})});l.displayName=a.f.displayName},95482:function(e,t,s){"use strict";s.d(t,{_v:function(){return d},aJ:function(){return c},pn:function(){return l},u:function(){return o}});var n=s(57437),r=s(2265),a=s(43212),i=s(39311);let l=a.zt,o=a.fC,c=a.xz,d=r.forwardRef((e,t)=>{let{className:s,sideOffset:r=4,...l}=e;return(0,n.jsx)(a.VY,{ref:t,sideOffset:r,className:(0,i.cn)("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-xs font-medium text-popover-foreground shadow-md animate-in fade-in-50 data-[side=bottom]:slide-in-from-top-1 data-[side=left]:slide-in-from-right-1 data-[side=right]:slide-in-from-left-1 data-[side=top]:slide-in-from-bottom-1",s),...l})});d.displayName=a.VY.displayName}},function(e){e.O(0,[358,406,978,894,971,864,744],function(){return e(e.s=85722)}),_N_E=e.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[383],{85722:function(e,t,s){Promise.resolve().then(s.bind(s,12202))},12202:function(e,t,s){"use strict";s.r(t),s.d(t,{Chat:function(){return J}});var n=s(57437),r=s(82504),a=s(39311),i=s(16775),l=s(48975),o=s(82180),c=s(2265),d=s(30513),u=s(4523);function m(e){let{timeout:t=2e3}=e,[s,n]=c.useState(!1);return{isCopied:s,copyToClipboard:e=>{var s;(null===(s=navigator.clipboard)||void 0===s?void 0:s.writeText)&&e&&navigator.clipboard.writeText(e).then(()=>{n(!0),setTimeout(()=>{n(!1)},t)})}}}var p=s(84168),h=s(93023);let f={javascript:".js",python:".py",java:".java",c:".c",cpp:".cpp","c++":".cpp","c#":".cs",ruby:".rb",php:".php",swift:".swift","objective-c":".m",kotlin:".kt",typescript:".ts",go:".go",perl:".pl",rust:".rs",scala:".scala",haskell:".hs",lua:".lua",shell:".sh",sql:".sql",html:".html",css:".css"},x=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],s="ABCDEFGHJKLMNPQRSTUVWXY3456789",n="";for(let t=0;t{let{language:t,value:s}=e,{isCopied:r,copyToClipboard:a}=m({timeout:2e3});return(0,n.jsxs)("div",{className:"relative w-full font-sans codeblock bg-zinc-950",children:[(0,n.jsxs)("div",{className:"flex items-center justify-between w-full px-6 py-2 pr-4 bg-zinc-800 text-zinc-100",children:[(0,n.jsx)("span",{className:"text-xs lowercase",children:t}),(0,n.jsxs)("div",{className:"flex items-center space-x-1",children:[(0,n.jsxs)(h.z,{variant:"ghost",className:"hover:bg-zinc-800 focus-visible:ring-1 focus-visible:ring-slate-700 focus-visible:ring-offset-0",onClick:()=>{let e=f[t]||".file",n="file-".concat(x(3,!0)).concat(e),r=window.prompt("Enter file name",n);if(!r)return;let a=new Blob([s],{type:"text/plain"}),i=URL.createObjectURL(a),l=document.createElement("a");l.download=r,l.href=i,l.style.display="none",document.body.appendChild(l),l.click(),document.body.removeChild(l),URL.revokeObjectURL(i)},size:"icon",children:[(0,n.jsx)(p.Dj,{}),(0,n.jsx)("span",{className:"sr-only",children:"Download"})]}),(0,n.jsxs)(h.z,{variant:"ghost",size:"icon",className:"text-xs hover:bg-zinc-800 focus-visible:ring-1 focus-visible:ring-slate-700 focus-visible:ring-offset-0",onClick:()=>{r||a(s)},children:[r?(0,n.jsx)(p.NO,{}):(0,n.jsx)(p.vU,{}),(0,n.jsx)("span",{className:"sr-only",children:"Copy code"})]})]})]}),(0,n.jsx)(d.Z,{language:t,style:u.RY,PreTag:"div",showLineNumbers:!0,customStyle:{margin:0,width:"100%",background:"transparent",padding:"1.5rem 1rem"},codeTagProps:{style:{fontSize:"0.9rem",fontFamily:"var(--font-mono)"}},children:s})]})});g.displayName="CodeBlock";var v=s(19349);let b=(0,c.memo)(v.D,(e,t)=>e.children===t.children&&e.className===t.className);var j=s(16691),y=s.n(j);function w(e){let{message:t,className:s,...r}=e,{isCopied:i,copyToClipboard:l}=m({timeout:2e3});return(0,n.jsx)("div",{className:(0,a.cn)("flex items-center justify-end transition-opacity group-hover:opacity-100 md:absolute md:-right-10 md:-top-2 md:opacity-0",s),...r,children:(0,n.jsxs)(h.z,{variant:"ghost",size:"icon",onClick:()=>{i||l(t.content)},children:[i?(0,n.jsx)(p.NO,{}):(0,n.jsx)(p.vU,{}),(0,n.jsx)("span",{className:"sr-only",children:"Copy message"})]})})}function N(e){let{message:t,...s}=e;return(0,n.jsxs)("div",{className:(0,a.cn)("group relative mb-4 flex items-start md:-ml-12"),...s,children:[(0,n.jsx)("div",{className:(0,a.cn)("flex h-8 w-8 shrink-0 select-none items-center justify-center rounded-md border shadow","user"===t.role?"bg-background":"bg-primary text-primary-foreground"),children:"user"===t.role?(0,n.jsx)(p.f7,{}):(0,n.jsx)(k,{})}),(0,n.jsxs)("div",{className:"flex-1 px-1 ml-4 space-y-2 overflow-hidden",children:[(0,n.jsx)(b,{className:"prose break-words dark:prose-invert prose-p:leading-relaxed prose-pre:p-0",remarkPlugins:[l.Z,o.Z],components:{p(e){let{children:t}=e;return(0,n.jsx)("p",{className:"mb-2 last:mb-0",children:t})},code(e){let{node:t,inline:s,className:r,children:a,...i}=e;if(a.length){if("▍"==a[0])return(0,n.jsx)("span",{className:"mt-1 cursor-default animate-pulse",children:"▍"});a[0]=a[0].replace("`▍`","▍")}let l=/language-(\w+)/.exec(r||"");return s?(0,n.jsx)("code",{className:r,...i,children:a}):(0,n.jsx)(g,{language:l&&l[1]||"",value:String(a).replace(/\n$/,""),...i},Math.random())}},children:t.content}),(0,n.jsx)(w,{message:t})]})]})}function k(){return(0,n.jsx)(y(),{style:{borderRadius:4},src:"https://avatars.githubusercontent.com/u/125617854?s=128&v=4",alt:"tabby",width:"128",height:"128"})}function z(e){let{messages:t}=e;return t.length?(0,n.jsx)("div",{className:"relative mx-auto max-w-2xl px-4",children:t.map((e,s)=>(0,n.jsxs)("div",{children:[(0,n.jsx)(N,{message:e}),s{if("Enter"===t.key&&!t.shiftKey&&!t.nativeEvent.isComposing){var s;null===(s=e.current)||void 0===s||s.requestSubmit(),t.preventDefault()}}}}(),d=c.useRef(null);return(0,E.useRouter)(),c.useEffect(()=>{d.current&&d.current.focus()},[]),(0,n.jsx)("form",{onSubmit:async e=>{e.preventDefault(),(null==s?void 0:s.trim())&&(r(""),await t(s))},ref:l,children:(0,n.jsxs)("div",{className:"relative flex max-h-60 w-full grow flex-col overflow-hidden bg-background px-8 sm:rounded-md sm:border sm:px-12",children:[(0,n.jsx)("span",{className:(0,a.cn)((0,h.d)({size:"sm",variant:"ghost"}),"absolute left-0 top-4 h-8 w-8 rounded-full bg-background p-0 sm:left-4 hover:bg-background"),children:(0,n.jsx)(p.yl,{})}),(0,n.jsx)(C.Z,{ref:d,tabIndex:0,onKeyDown:o,rows:1,value:s,onChange:e=>r(e.target.value),placeholder:"Ask a question.",spellCheck:!1,className:"min-h-[60px] w-full resize-none bg-transparent px-4 py-[1.3rem] focus-within:outline-none sm:text-sm"}),(0,n.jsx)("div",{className:"absolute right-0 top-4 sm:right-4",children:(0,n.jsxs)(R.u,{children:[(0,n.jsx)(R.aJ,{asChild:!0,children:(0,n.jsxs)(h.z,{type:"submit",size:"icon",disabled:i||""===s,children:[(0,n.jsx)(p.vq,{}),(0,n.jsx)("span",{className:"sr-only",children:"Send message"})]})}),(0,n.jsx)(R._v,{children:"Send message"})]})})]})})}function S(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,[t,s]=c.useState(!1);return c.useEffect(()=>{let t=()=>{s(window.innerHeight+window.scrollY>=document.body.offsetHeight-e)};return window.addEventListener("scroll",t,{passive:!0}),t(),()=>{window.removeEventListener("scroll",t)}},[e]),t}function T(e){let{className:t,...s}=e,r=S();return(0,n.jsxs)(h.z,{variant:"outline",size:"icon",className:(0,a.cn)("absolute right-4 top-1 z-10 bg-background transition-opacity duration-300 sm:right-8 md:top-2",r?"opacity-0":"opacity-100",t),onClick:()=>window.scrollTo({top:document.body.offsetHeight,behavior:"smooth"}),...s,children:[(0,n.jsx)(p.BD,{}),(0,n.jsx)("span",{className:"sr-only",children:"Scroll to bottom"})]})}function _(e){let{href:t,children:s}=e;return(0,n.jsxs)("a",{href:t,target:"_blank",className:"inline-flex flex-1 justify-center gap-1 leading-4 hover:underline",children:[(0,n.jsx)("span",{children:s}),(0,n.jsx)("svg",{"aria-hidden":"true",height:"7",viewBox:"0 0 6 6",width:"7",className:"opacity-70",children:(0,n.jsx)("path",{d:"M1.25215 5.54731L0.622742 4.9179L3.78169 1.75597H1.3834L1.38936 0.890915H5.27615V4.78069H4.40513L4.41109 2.38538L1.25215 5.54731Z",fill:"currentColor"})})]})}function D(e){let{className:t,...s}=e;return(0,n.jsxs)("p",{className:(0,a.cn)("px-2 text-center text-xs leading-normal text-muted-foreground",t),...s,children:[(0,n.jsx)(_,{href:"https://tabby.tabbyml.com",children:"Tabby"}),", an opensource, self-hosted AI coding assistant ."]})}function H(e){let{id:t,isLoading:s,stop:r,append:a,reload:i,input:l,setInput:o,messages:c}=e;return(0,n.jsxs)("div",{className:"fixed inset-x-0 bottom-0 bg-gradient-to-b from-muted/10 from-10% to-muted/30 to-50%",children:[(0,n.jsx)(T,{}),(0,n.jsxs)("div",{className:"mx-auto sm:max-w-2xl sm:px-4",children:[(0,n.jsx)("div",{className:"flex h-10 items-center justify-center",children:s?(0,n.jsxs)(h.z,{variant:"outline",onClick:()=>r(),className:"bg-background",children:[(0,n.jsx)(p.zu,{className:"mr-2"}),"Stop generating"]}):(null==c?void 0:c.length)>0&&(0,n.jsxs)(h.z,{variant:"outline",onClick:()=>i(),className:"bg-background",children:[(0,n.jsx)(p.tr,{className:"mr-2"}),"Regenerate response"]})}),(0,n.jsxs)("div",{className:"space-y-4 border-t bg-background px-4 py-2 shadow-lg sm:rounded-t-xl sm:border md:py-4",children:[(0,n.jsx)(L,{onSubmit:async e=>{await a({id:t,content:e,role:"user"})},input:l,setInput:o,isLoading:s}),(0,n.jsx)(D,{className:"hidden sm:block"})]})]})]})}let O=[{heading:"Convert list of string to numbers",message:"How to convert a list of string to numbers in python"},{heading:"How to parse email address",message:"How to parse email address with regex"}];function U(e){let{setInput:t}=e;return(0,n.jsx)("div",{className:"mx-auto max-w-2xl px-4",children:(0,n.jsxs)("div",{className:"rounded-lg border bg-background p-8",children:[(0,n.jsx)("h1",{className:"mb-2 text-lg font-semibold",children:"Welcome to Playground!"}),(0,n.jsx)("p",{className:"leading-normal text-muted-foreground",children:"You can start a conversation here or try the following examples:"}),(0,n.jsx)("div",{className:"mt-4 flex flex-col items-start space-y-2",children:O.map((e,s)=>(0,n.jsxs)(h.z,{variant:"link",className:"h-auto p-0 text-base",onClick:()=>t(e.message),children:[(0,n.jsx)(p.Ec,{className:"mr-2 text-muted-foreground"}),e.heading]},s))})]})})}var B=s(4327);function P(e){let{trackVisibility:t}=e,s=S(),{ref:r,entry:a,inView:i}=(0,B.YD)({trackVisibility:t,delay:100,rootMargin:"0px 0px -150px 0px"});return c.useEffect(()=>{s&&t&&!i&&(null==a||a.target.scrollIntoView({block:"start"}))},[i,a,s,t]),(0,n.jsx)("div",{ref:r,className:"h-px w-full"})}var Y=s(5925),I=s(4913);let V=new TextDecoder("utf-8");async function Z(e,t){for(let s of e){let{content:e}=JSON.parse(s);t.enqueue(e)}}async function q(e,t){let s="";for(;;){let{value:n,done:r}=await e.read();if(r)break;s+=V.decode(n,{stream:!0});let a=s.split(/\r\n|\n|\r/g);s=a.pop()||"",await Z(a,t)}if(s){let e=[s];await Z(e,t)}t.close()}var M=s(62601);let A=M.env.NEXT_PUBLIC_TABBY_SERVER_URL||"";function J(e){let{id:t,initialMessages:s,className:i}=e;(0,c.useEffect)(()=>{let e=window.fetch;window.fetch=async function(t,s){var n;if("/api/chat"!==t)return e(t,s);let{messages:r}=JSON.parse(s.body),a=await e("".concat(A,"/v1beta/chat/completions"),{...s,method:"POST",headers:{"Content-Type":"application/json"}}),i=(n=void 0,(function(e){var t;let s=null===(t=e.body)||void 0===t?void 0:t.getReader();return new ReadableStream({async start(e){if(!s){e.close();return}await q(s,e)}})})(a).pipeThrough((0,I.T_)(n)).pipeThrough((0,I.h6)(null==n?void 0:n.experimental_streamData)));return new I.wn(i)}},[]);let{messages:l,append:o,reload:d,stop:u,isLoading:m,input:p,setInput:h,setMessages:f}=(0,r.R)({initialMessages:s,id:t,body:{id:t},onResponse(e){401===e.status&&Y.toast.error(e.statusText)}});return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:(0,a.cn)("pb-[200px] pt-4 md:pt-10",i),children:l.length?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(z,{messages:l}),(0,n.jsx)(P,{trackVisibility:m})]}):(0,n.jsx)(U,{setInput:h})}),(0,n.jsx)(H,{id:t,isLoading:m,stop:u,append:o,reload:d,messages:l,input:p,setInput:h})]})}},16775:function(e,t,s){"use strict";s.d(t,{Z:function(){return l}});var n=s(57437),r=s(2265),a=s(26823),i=s(39311);let l=r.forwardRef((e,t)=>{let{className:s,orientation:r="horizontal",decorative:l=!0,...o}=e;return(0,n.jsx)(a.f,{ref:t,decorative:l,orientation:r,className:(0,i.cn)("shrink-0 bg-border","horizontal"===r?"h-[1px] w-full":"h-full w-[1px]",s),...o})});l.displayName=a.f.displayName},95482:function(e,t,s){"use strict";s.d(t,{_v:function(){return d},aJ:function(){return c},pn:function(){return l},u:function(){return o}});var n=s(57437),r=s(2265),a=s(43212),i=s(39311);let l=a.zt,o=a.fC,c=a.xz,d=r.forwardRef((e,t)=>{let{className:s,sideOffset:r=4,...l}=e;return(0,n.jsx)(a.VY,{ref:t,sideOffset:r,className:(0,i.cn)("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-xs font-medium text-popover-foreground shadow-md animate-in fade-in-50 data-[side=bottom]:slide-in-from-top-1 data-[side=left]:slide-in-from-right-1 data-[side=right]:slide-in-from-left-1 data-[side=top]:slide-in-from-bottom-1",s),...l})});d.displayName=a.VY.displayName}},function(e){e.O(0,[400,406,28,894,971,864,744],function(){return e(e.s=85722)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/crates/tabby/ui/_next/static/chunks/webpack-425a00248a63a7de.js b/crates/tabby/ui/_next/static/chunks/webpack-425a00248a63a7de.js deleted file mode 100644 index 815ee15..0000000 --- a/crates/tabby/ui/_next/static/chunks/webpack-425a00248a63a7de.js +++ /dev/null @@ -1 +0,0 @@ -!function(){"use strict";var t,e,n,r,o,u,i,c,f,a={},l={};function s(t){var e=l[t];if(void 0!==e)return e.exports;var n=l[t]={exports:{}},r=!0;try{a[t](n,n.exports,s),r=!1}finally{r&&delete l[t]}return n.exports}s.m=a,t=[],s.O=function(e,n,r,o){if(n){o=o||0;for(var u=t.length;u>0&&t[u-1][2]>o;u--)t[u]=t[u-1];t[u]=[n,r,o];return}for(var i=1/0,u=0;u=o&&Object.keys(s.O).every(function(t){return s.O[t](n[f])})?n.splice(f--,1):(c=!1,o0&&e[u-1][2]>o;u--)e[u]=e[u-1];e[u]=[n,r,o];return}for(var i=1/0,u=0;u=o&&Object.keys(s.O).every(function(e){return s.O[e](n[f])})?n.splice(f--,1):(c=!1,oli):not(:where([class~=not-prose],[class~=not-prose] *))::marker{font-weight:400;color:var(--tw-prose-counters)}.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{color:var(--tw-prose-bullets)}.prose :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;margin-top:1.25em}.prose :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){border-color:var(--tw-prose-hr);border-top-width:1px;margin-top:3em;margin-bottom:3em}.prose :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:500;font-style:italic;color:var(--tw-prose-quotes);border-left-width:.25rem;border-left-color:var(--tw-prose-quote-borders);quotes:"\201C""\201D""\2018""\2019";margin-top:1.6em;margin-bottom:1.6em;padding-left:1em}.prose :where(blockquote p:first-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:open-quote}.prose :where(blockquote p:last-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:close-quote}.prose :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:800;font-size:2.25em;margin-top:0;margin-bottom:.8888889em;line-height:1.1111111}.prose :where(h1 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:900;color:inherit}.prose :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:700;font-size:1.5em;margin-top:2em;margin-bottom:1em;line-height:1.3333333}.prose :where(h2 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:800;color:inherit}.prose :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;font-size:1.25em;margin-top:1.6em;margin-bottom:.6em;line-height:1.6}.prose :where(h3 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:700;color:inherit}.prose :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;margin-top:1.5em;margin-bottom:.5em;line-height:1.5}.prose :where(h4 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:700;color:inherit}.prose :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){display:block;margin-top:2em;margin-bottom:2em}.prose :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:500;font-family:inherit;color:var(--tw-prose-kbd);box-shadow:0 0 0 1px rgb(var(--tw-prose-kbd-shadows)/10%),0 3px 0 rgb(var(--tw-prose-kbd-shadows)/10%);font-size:.875em;border-radius:.3125rem;padding:.1875em .375em}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-code);font-weight:600;font-size:.875em}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:"`"}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:"`"}.prose :where(a code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(h1 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.875em}.prose :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.9em}.prose :where(h4 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(blockquote code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(thead th code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-pre-code);background-color:var(--tw-prose-pre-bg);overflow-x:auto;font-weight:400;font-size:.875em;line-height:1.7142857;margin-top:1.7142857em;margin-bottom:1.7142857em;border-radius:.375rem;padding:.8571429em 1.1428571em}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)){background-color:transparent;border-width:0;border-radius:0;padding:0;font-weight:inherit;color:inherit;font-size:inherit;font-family:inherit;line-height:inherit}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:none}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:none}.prose :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){width:100%;table-layout:auto;text-align:left;margin-top:2em;margin-bottom:2em;font-size:.875em;line-height:1.7142857}.prose :where(thead):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-th-borders)}.prose :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;vertical-align:bottom;padding-right:.5714286em;padding-bottom:.5714286em;padding-left:.5714286em}.prose :where(tbody tr):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-td-borders)}.prose :where(tbody tr:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:0}.prose :where(tbody td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:baseline}.prose :where(tfoot):not(:where([class~=not-prose],[class~=not-prose] *)){border-top-width:1px;border-top-color:var(--tw-prose-th-borders)}.prose :where(tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:top}.prose :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-captions);font-size:.875em;line-height:1.4285714;margin-top:.8571429em}.prose{--tw-prose-body:#374151;--tw-prose-headings:#111827;--tw-prose-lead:#4b5563;--tw-prose-links:#111827;--tw-prose-bold:#111827;--tw-prose-counters:#6b7280;--tw-prose-bullets:#d1d5db;--tw-prose-hr:#e5e7eb;--tw-prose-quotes:#111827;--tw-prose-quote-borders:#e5e7eb;--tw-prose-captions:#6b7280;--tw-prose-kbd:#111827;--tw-prose-kbd-shadows:17 24 39;--tw-prose-code:#111827;--tw-prose-pre-code:#e5e7eb;--tw-prose-pre-bg:#1f2937;--tw-prose-th-borders:#d1d5db;--tw-prose-td-borders:#e5e7eb;--tw-prose-invert-body:#d1d5db;--tw-prose-invert-headings:#fff;--tw-prose-invert-lead:#9ca3af;--tw-prose-invert-links:#fff;--tw-prose-invert-bold:#fff;--tw-prose-invert-counters:#9ca3af;--tw-prose-invert-bullets:#4b5563;--tw-prose-invert-hr:#374151;--tw-prose-invert-quotes:#f3f4f6;--tw-prose-invert-quote-borders:#374151;--tw-prose-invert-captions:#9ca3af;--tw-prose-invert-kbd:#fff;--tw-prose-invert-kbd-shadows:255 255 255;--tw-prose-invert-code:#fff;--tw-prose-invert-pre-code:#d1d5db;--tw-prose-invert-pre-bg:rgba(0,0,0,.5);--tw-prose-invert-th-borders:#4b5563;--tw-prose-invert-td-borders:#374151;font-size:1rem;line-height:1.75}.prose :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;margin-bottom:.5em}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-left:.375em}.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-left:.375em}.prose :where(.prose>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(.prose>ul>li>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ul>li>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(.prose>ol>li>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ol>li>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;padding-left:1.625em}.prose :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-left:0}.prose :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-right:0}.prose :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding:.5714286em}.prose :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-left:0}.prose :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-right:0}.prose :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(.prose>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(.prose>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{inset:0}.inset-x-0{left:0;right:0}.inset-y-0{top:0;bottom:0}.bottom-0{bottom:0}.bottom-1{bottom:.25rem}.left-0{left:0}.left-1{left:.25rem}.left-2{left:.5rem}.right-0{right:0}.right-4{right:1rem}.top-0{top:0}.top-1{top:.25rem}.top-4{top:1rem}.z-10{z-index:10}.z-50{z-index:50}.-mx-1{margin-left:-.25rem;margin-right:-.25rem}.mx-auto{margin-left:auto;margin-right:auto}.my-1{margin-top:.25rem;margin-bottom:.25rem}.my-4{margin-top:1rem;margin-bottom:1rem}.-ml-2{margin-left:-.5rem}.mb-2{margin-bottom:.5rem}.mb-4{margin-bottom:1rem}.ml-2{margin-left:.5rem}.ml-4{margin-left:1rem}.ml-auto{margin-left:auto}.mr-2{margin-right:.5rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-4{margin-top:1rem}.block{display:block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.hidden{display:none}.h-10{height:2.5rem}.h-11{height:2.75rem}.h-16{height:4rem}.h-3{height:.75rem}.h-3\.5{height:.875rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-7{height:1.75rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-\[1px\]{height:1px}.h-\[24px\]{height:24px}.h-\[var\(--radix-select-trigger-height\)\]{height:var(--radix-select-trigger-height)}.h-auto{height:auto}.h-full{height:100%}.h-px{height:1px}.max-h-60{max-height:15rem}.min-h-\[60px\]{min-height:60px}.min-h-\[80px\]{min-height:80px}.min-h-screen{min-height:100vh}.w-2\/3{width:66.666667%}.w-3{width:.75rem}.w-3\.5{width:.875rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-7{width:1.75rem}.w-8{width:2rem}.w-\[180px\]{width:180px}.w-\[1px\]{width:1px}.w-\[44px\]{width:44px}.w-full{width:100%}.min-w-\[8rem\]{min-width:8rem}.min-w-\[var\(--radix-select-trigger-width\)\]{min-width:var(--radix-select-trigger-width)}.max-w-2xl{max-width:42rem}.max-w-lg{max-width:32rem}.flex-1{flex:1 1 0%}.shrink-0{flex-shrink:0}.grow{flex-grow:1}.translate-y-1{--tw-translate-y:0.25rem}.scale-100,.translate-y-1{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-100{--tw-scale-x:1;--tw-scale-y:1}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(1turn)}}.animate-spin{animation:spin 1s linear infinite}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize-none{resize:none}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-1\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(.375rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.375rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.overflow-hidden{overflow:hidden}.break-words{overflow-wrap:break-word}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:var(--radius)}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-sm{border-radius:calc(var(--radius) - 4px)}.rounded-b-lg{border-bottom-right-radius:var(--radius);border-bottom-left-radius:var(--radius)}.border{border-width:1px}.border-2{border-width:2px}.border-b{border-bottom-width:1px}.border-r{border-right-width:1px}.border-t{border-top-width:1px}.border-input{border-color:hsl(var(--input))}.border-transparent{border-color:transparent}.bg-background{background-color:hsl(var(--background))}.bg-background\/80{background-color:hsl(var(--background)/.8)}.bg-border{background-color:hsl(var(--border))}.bg-destructive{background-color:hsl(var(--destructive))}.bg-gray-800{--tw-bg-opacity:1;background-color:rgb(31 41 55/var(--tw-bg-opacity))}.bg-muted{background-color:hsl(var(--muted))}.bg-muted\/50{background-color:hsl(var(--muted)/.5)}.bg-popover{background-color:hsl(var(--popover))}.bg-primary{background-color:hsl(var(--primary))}.bg-secondary{background-color:hsl(var(--secondary))}.bg-transparent{background-color:transparent}.bg-zinc-800{--tw-bg-opacity:1;background-color:rgb(39 39 42/var(--tw-bg-opacity))}.bg-zinc-950{--tw-bg-opacity:1;background-color:rgb(9 9 11/var(--tw-bg-opacity))}.bg-gradient-to-b{background-image:linear-gradient(to bottom,var(--tw-gradient-stops))}.from-background\/10{--tw-gradient-from:hsl(var(--background)/0.1) var(--tw-gradient-from-position);--tw-gradient-to:hsl(var(--background)/0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-muted\/10{--tw-gradient-from:hsl(var(--muted)/0.1) var(--tw-gradient-from-position);--tw-gradient-to:hsl(var(--muted)/0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-10\%{--tw-gradient-from-position:10%}.via-background\/50{--tw-gradient-to:hsl(var(--background)/0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),hsl(var(--background)/0.5) var(--tw-gradient-via-position),var(--tw-gradient-to)}.to-background\/80{--tw-gradient-to:hsl(var(--background)/0.8) var(--tw-gradient-to-position)}.to-muted\/30{--tw-gradient-to:hsl(var(--muted)/0.3) var(--tw-gradient-to-position)}.to-50\%{--tw-gradient-to-position:50%}.p-0{padding:0}.p-1{padding:.25rem}.p-3{padding:.75rem}.p-6{padding:1.5rem}.p-8{padding:2rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-2\.5{padding-left:.625rem;padding-right:.625rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-8{padding-left:2rem;padding-right:2rem}.py-0{padding-top:0;padding-bottom:0}.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-\[1\.3rem\]{padding-top:1.3rem;padding-bottom:1.3rem}.pb-\[200px\]{padding-bottom:200px}.pl-0{padding-left:0}.pl-8{padding-left:2rem}.pr-2{padding-right:.5rem}.pr-4{padding-right:1rem}.pt-4{padding-top:1rem}.text-center{text-align:center}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.font-sans{font-family:var(--font-sans),ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.lowercase{text-transform:lowercase}.leading-4{line-height:1rem}.leading-none{line-height:1}.leading-normal{line-height:1.5}.tracking-tight{letter-spacing:-.025em}.tracking-widest{letter-spacing:.1em}.text-destructive-foreground{color:hsl(var(--destructive-foreground))}.text-foreground{color:hsl(var(--foreground))}.text-muted-foreground{color:hsl(var(--muted-foreground))}.text-popover-foreground{color:hsl(var(--popover-foreground))}.text-primary{color:hsl(var(--primary))}.text-primary-foreground{color:hsl(var(--primary-foreground))}.text-secondary-foreground{color:hsl(var(--secondary-foreground))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.text-zinc-100{--tw-text-opacity:1;color:rgb(244 244 245/var(--tw-text-opacity))}.text-zinc-500{--tw-text-opacity:1;color:rgb(113 113 122/var(--tw-text-opacity))}.underline{text-decoration-line:underline}.underline-offset-4{text-underline-offset:4px}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-70{opacity:.7}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color)}.shadow,.shadow-lg{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color)}.shadow-md{--tw-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color)}.shadow-md,.shadow-none{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-none{--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000}.shadow-sm{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.ring-0{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color)}.ring-0,.ring-1{box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.ring-1{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color)}.ring-zinc-100\/10{--tw-ring-color:hsla(240,5%,96%,.1)}.ring-offset-background{--tw-ring-offset-color:hsl(var(--background))}.backdrop-blur-sm{--tw-backdrop-blur:blur(4px)}.backdrop-blur-sm,.backdrop-blur-xl{-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.backdrop-blur-xl{--tw-backdrop-blur:blur(24px)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-100{transition-duration:.1s}.duration-300{transition-duration:.3s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}@keyframes enter{0%{opacity:var(--tw-enter-opacity,1);transform:translate3d(var(--tw-enter-translate-x,0),var(--tw-enter-translate-y,0),0) scale3d(var(--tw-enter-scale,1),var(--tw-enter-scale,1),var(--tw-enter-scale,1)) rotate(var(--tw-enter-rotate,0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity,1);transform:translate3d(var(--tw-exit-translate-x,0),var(--tw-exit-translate-y,0),0) scale3d(var(--tw-exit-scale,1),var(--tw-exit-scale,1),var(--tw-exit-scale,1)) rotate(var(--tw-exit-rotate,0))}}.animate-in{animation-name:enter;animation-duration:.15s;--tw-enter-opacity:initial;--tw-enter-scale:initial;--tw-enter-rotate:initial;--tw-enter-translate-x:initial;--tw-enter-translate-y:initial}.fade-in{--tw-enter-opacity:0}.fade-in-50{--tw-enter-opacity:0.5}.fade-in-80{--tw-enter-opacity:0.8}.fade-in-90{--tw-enter-opacity:0.9}.slide-in-from-bottom-10{--tw-enter-translate-y:2.5rem}.duration-100{animation-duration:.1s}.duration-300{animation-duration:.3s}.ease-in-out{animation-timing-function:cubic-bezier(.4,0,.2,1)}.running{animation-play-state:running}:is(.dark .dark\:prose-invert){--tw-prose-body:var(--tw-prose-invert-body);--tw-prose-headings:var(--tw-prose-invert-headings);--tw-prose-lead:var(--tw-prose-invert-lead);--tw-prose-links:var(--tw-prose-invert-links);--tw-prose-bold:var(--tw-prose-invert-bold);--tw-prose-counters:var(--tw-prose-invert-counters);--tw-prose-bullets:var(--tw-prose-invert-bullets);--tw-prose-hr:var(--tw-prose-invert-hr);--tw-prose-quotes:var(--tw-prose-invert-quotes);--tw-prose-quote-borders:var(--tw-prose-invert-quote-borders);--tw-prose-captions:var(--tw-prose-invert-captions);--tw-prose-kbd:var(--tw-prose-invert-kbd);--tw-prose-kbd-shadows:var(--tw-prose-invert-kbd-shadows);--tw-prose-code:var(--tw-prose-invert-code);--tw-prose-pre-code:var(--tw-prose-invert-pre-code);--tw-prose-pre-bg:var(--tw-prose-invert-pre-bg);--tw-prose-th-borders:var(--tw-prose-invert-th-borders);--tw-prose-td-borders:var(--tw-prose-invert-td-borders)}.file\:border-0::file-selector-button{border-width:0}.file\:bg-transparent::file-selector-button{background-color:transparent}.file\:text-sm::file-selector-button{font-size:.875rem;line-height:1.25rem}.file\:font-medium::file-selector-button{font-weight:500}.placeholder\:text-muted-foreground::-moz-placeholder{color:hsl(var(--muted-foreground))}.placeholder\:text-muted-foreground::placeholder{color:hsl(var(--muted-foreground))}.last\:mb-0:last-child{margin-bottom:0}.focus-within\:outline-none:focus-within{outline:2px solid transparent;outline-offset:2px}.hover\:bg-accent:hover{background-color:hsl(var(--accent))}.hover\:bg-background:hover{background-color:hsl(var(--background))}.hover\:bg-destructive\/80:hover{background-color:hsl(var(--destructive)/.8)}.hover\:bg-destructive\/90:hover{background-color:hsl(var(--destructive)/.9)}.hover\:bg-primary\/80:hover{background-color:hsl(var(--primary)/.8)}.hover\:bg-primary\/90:hover{background-color:hsl(var(--primary)/.9)}.hover\:bg-secondary\/80:hover{background-color:hsl(var(--secondary)/.8)}.hover\:bg-zinc-800:hover{--tw-bg-opacity:1;background-color:rgb(39 39 42/var(--tw-bg-opacity))}.hover\:text-accent-foreground:hover{color:hsl(var(--accent-foreground))}.hover\:underline:hover{text-decoration-line:underline}.hover\:opacity-100:hover{opacity:1}.hover\:opacity-80:hover{opacity:.8}.focus\:bg-accent:focus{background-color:hsl(var(--accent))}.focus\:text-accent-foreground:focus{color:hsl(var(--accent-foreground))}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring-2:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus\:ring-ring:focus{--tw-ring-color:hsl(var(--ring))}.focus\:ring-offset-2:focus{--tw-ring-offset-width:2px}.focus-visible\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\:ring-1:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus-visible\:ring-2:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus-visible\:ring-ring:focus-visible{--tw-ring-color:hsl(var(--ring))}.focus-visible\:ring-slate-700:focus-visible{--tw-ring-opacity:1;--tw-ring-color:rgb(51 65 85/var(--tw-ring-opacity))}.focus-visible\:ring-offset-0:focus-visible{--tw-ring-offset-width:0px}.focus-visible\:ring-offset-2:focus-visible{--tw-ring-offset-width:2px}.focus-visible\:ring-offset-background:focus-visible{--tw-ring-offset-color:hsl(var(--background))}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-50:disabled{opacity:.5}.group:hover .group-hover\:opacity-100{opacity:1}.peer:disabled~.peer-disabled\:cursor-not-allowed{cursor:not-allowed}.peer:disabled~.peer-disabled\:opacity-70{opacity:.7}.data-\[disabled\]\:pointer-events-none[data-disabled]{pointer-events:none}.data-\[state\=checked\]\:translate-x-5[data-state=checked]{--tw-translate-x:1.25rem}.data-\[state\=checked\]\:translate-x-5[data-state=checked],.data-\[state\=unchecked\]\:translate-x-0[data-state=unchecked]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[state\=unchecked\]\:translate-x-0[data-state=unchecked]{--tw-translate-x:0px}.data-\[state\=checked\]\:bg-primary[data-state=checked]{background-color:hsl(var(--primary))}.data-\[state\=open\]\:bg-accent[data-state=open]{background-color:hsl(var(--accent))}.data-\[state\=open\]\:bg-secondary[data-state=open]{background-color:hsl(var(--secondary))}.data-\[state\=unchecked\]\:bg-input[data-state=unchecked]{background-color:hsl(var(--input))}.data-\[state\=open\]\:text-muted-foreground[data-state=open]{color:hsl(var(--muted-foreground))}.data-\[disabled\]\:opacity-50[data-disabled]{opacity:.5}.data-\[state\=closed\]\:duration-300[data-state=closed]{transition-duration:.3s}.data-\[state\=open\]\:duration-500[data-state=open]{transition-duration:.5s}.data-\[state\=open\]\:animate-in[data-state=open]{animation-name:enter;animation-duration:.15s;--tw-enter-opacity:initial;--tw-enter-scale:initial;--tw-enter-rotate:initial;--tw-enter-translate-x:initial;--tw-enter-translate-y:initial}.data-\[state\=closed\]\:animate-out[data-state=closed]{animation-name:exit;animation-duration:.15s;--tw-exit-opacity:initial;--tw-exit-scale:initial;--tw-exit-rotate:initial;--tw-exit-translate-x:initial;--tw-exit-translate-y:initial}.data-\[state\=closed\]\:fade-out[data-state=closed]{--tw-exit-opacity:0}.data-\[state\=open\]\:fade-in[data-state=open]{--tw-enter-opacity:0}.data-\[state\=open\]\:fade-in-90[data-state=open]{--tw-enter-opacity:0.9}.data-\[side\=bottom\]\:slide-in-from-top-1[data-side=bottom]{--tw-enter-translate-y:-0.25rem}.data-\[side\=bottom\]\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y:-0.5rem}.data-\[side\=left\]\:slide-in-from-right-1[data-side=left]{--tw-enter-translate-x:0.25rem}.data-\[side\=left\]\:slide-in-from-right-2[data-side=left]{--tw-enter-translate-x:0.5rem}.data-\[side\=right\]\:slide-in-from-left-1[data-side=right]{--tw-enter-translate-x:-0.25rem}.data-\[side\=right\]\:slide-in-from-left-2[data-side=right]{--tw-enter-translate-x:-0.5rem}.data-\[side\=top\]\:slide-in-from-bottom-1[data-side=top]{--tw-enter-translate-y:0.25rem}.data-\[side\=top\]\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y:0.5rem}.data-\[state\=closed\]\:slide-out-to-left[data-state=closed]{--tw-exit-translate-x:-100%}.data-\[state\=open\]\:slide-in-from-bottom-10[data-state=open]{--tw-enter-translate-y:2.5rem}.data-\[state\=open\]\:slide-in-from-left[data-state=open]{--tw-enter-translate-x:-100%}.data-\[state\=closed\]\:duration-300[data-state=closed]{animation-duration:.3s}.data-\[state\=open\]\:duration-500[data-state=open]{animation-duration:.5s}.prose-p\:leading-relaxed :is(:where(p):not(:where([class~=not-prose],[class~=not-prose] *))){line-height:1.625}.prose-pre\:p-0 :is(:where(pre):not(:where([class~=not-prose],[class~=not-prose] *))){padding:0}@media (min-width:640px){.sm\:left-4{left:1rem}.sm\:right-4{right:1rem}.sm\:right-8{right:2rem}.sm\:mt-0{margin-top:0}.sm\:block{display:block}.sm\:hidden{display:none}.sm\:max-w-2xl{max-width:42rem}.sm\:max-w-lg{max-width:32rem}.sm\:max-w-sm{max-width:24rem}.sm\:flex-row{flex-direction:row}.sm\:items-center{align-items:center}.sm\:justify-start{justify-content:flex-start}.sm\:justify-end{justify-content:flex-end}.sm\:space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.sm\:rounded-lg{border-radius:var(--radius)}.sm\:rounded-md{border-radius:calc(var(--radius) - 2px)}.sm\:rounded-t-xl{border-top-left-radius:.75rem;border-top-right-radius:.75rem}.sm\:border{border-width:1px}.sm\:px-12{padding-left:3rem;padding-right:3rem}.sm\:px-4{padding-left:1rem;padding-right:1rem}.sm\:text-left{text-align:left}.sm\:text-sm{font-size:.875rem;line-height:1.25rem}.sm\:zoom-in-90{--tw-enter-scale:.9}.data-\[state\=open\]\:sm\:slide-in-from-bottom-0[data-state=open],.sm\:slide-in-from-bottom-0{--tw-enter-translate-y:0px}}@media (min-width:768px){.md\:absolute{position:absolute}.md\:-right-10{right:-2.5rem}.md\:-top-2{top:-.5rem}.md\:top-2{top:.5rem}.md\:my-8{margin-top:2rem;margin-bottom:2rem}.md\:-ml-12{margin-left:-3rem}.md\:block{display:block}.md\:flex{display:flex}.md\:hidden{display:none}.md\:w-full{width:100%}.md\:py-4{padding-top:1rem;padding-bottom:1rem}.md\:pt-10{padding-top:2.5rem}.md\:opacity-0{opacity:0}}@media (min-width:1024px){.lg\:block{display:block}.lg\:hidden{display:none}.lg\:w-1\/3{width:33.333333%}}@media (min-width:1280px){.xl\:block{display:block}.xl\:hidden{display:none}}@media (min-width:1536px){.\32xl\:block{display:block}.\32xl\:hidden{display:none}}@font-face{font-family:__Inter_e66fe9;font-style:normal;font-weight:100 900;font-display:swap;src:url(/_next/static/media/ec159349637c90ad-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__Inter_e66fe9;font-style:normal;font-weight:100 900;font-display:swap;src:url(/_next/static/media/513657b02c5c193f-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__Inter_e66fe9;font-style:normal;font-weight:100 900;font-display:swap;src:url(/_next/static/media/fd4db3eb5472fc27-s.woff2) format("woff2");unicode-range:U+1f??}@font-face{font-family:__Inter_e66fe9;font-style:normal;font-weight:100 900;font-display:swap;src:url(/_next/static/media/51ed15f9841b9f9d-s.woff2) format("woff2");unicode-range:U+0370-03ff}@font-face{font-family:__Inter_e66fe9;font-style:normal;font-weight:100 900;font-display:swap;src:url(/_next/static/media/05a31a2ca4975f99-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__Inter_e66fe9;font-style:normal;font-weight:100 900;font-display:swap;src:url(/_next/static/media/d6b16ce4a6175f26-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__Inter_e66fe9;font-style:normal;font-weight:100 900;font-display:swap;src:url(/_next/static/media/c9a5bc6a7c948fb0-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__Inter_Fallback_e66fe9;src:local("Arial");ascent-override:90.20%;descent-override:22.48%;line-gap-override:0.00%;size-adjust:107.40%}.__className_e66fe9{font-family:__Inter_e66fe9,__Inter_Fallback_e66fe9;font-style:normal}.__variable_e66fe9{--font-sans:"__Inter_e66fe9","__Inter_Fallback_e66fe9"}@font-face{font-family:__JetBrains_Mono_bd9c35;font-style:normal;font-weight:100 800;font-display:swap;src:url(/_next/static/media/de2ba2ebf355004e-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__JetBrains_Mono_bd9c35;font-style:normal;font-weight:100 800;font-display:swap;src:url(/_next/static/media/9e58c89b9633dcad-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__JetBrains_Mono_bd9c35;font-style:normal;font-weight:100 800;font-display:swap;src:url(/_next/static/media/c4a41ea065a0023c-s.woff2) format("woff2");unicode-range:U+0370-03ff}@font-face{font-family:__JetBrains_Mono_bd9c35;font-style:normal;font-weight:100 800;font-display:swap;src:url(/_next/static/media/34dd45dcdd6d47ee-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__JetBrains_Mono_bd9c35;font-style:normal;font-weight:100 800;font-display:swap;src:url(/_next/static/media/a1ab2e69d2f53384-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__JetBrains_Mono_bd9c35;font-style:normal;font-weight:100 800;font-display:swap;src:url(/_next/static/media/86fdec36ddd9097e-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__JetBrains_Mono_Fallback_bd9c35;src:local("Arial");ascent-override:75.04%;descent-override:22.07%;line-gap-override:0.00%;size-adjust:135.93%}.__className_bd9c35{font-family:__JetBrains_Mono_bd9c35,__JetBrains_Mono_Fallback_bd9c35;font-style:normal}.__variable_bd9c35{--font-mono:"__JetBrains_Mono_bd9c35","__JetBrains_Mono_Fallback_bd9c35"} \ No newline at end of file +*/*,:after,:before{box-sizing:border-box;border:0 solid #e5e7eb}:after,:before{--tw-content:""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:var(--font-sans),ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}:root{--background:0 0% 100%;--foreground:240 10% 3.9%;--muted:240 4.8% 95.9%;--muted-foreground:240 3.8% 46.1%;--popover:0 0% 100%;--popover-foreground:240 10% 3.9%;--card:0 0% 100%;--card-foreground:240 10% 3.9%;--border:240 5.9% 90%;--input:240 5.9% 90%;--primary:240 5.9% 10%;--primary-foreground:0 0% 98%;--secondary:240 4.8% 95.9%;--secondary-foreground:240 5.9% 10%;--accent:240 4.8% 95.9%;--accent-foreground: ;--destructive:0 84.2% 60.2%;--destructive-foreground:0 0% 98%;--ring:240 5% 64.9%;--radius:0.5rem}.dark{--background:240 10% 3.9%;--foreground:0 0% 98%;--muted:240 3.7% 15.9%;--muted-foreground:240 5% 64.9%;--popover:240 10% 3.9%;--popover-foreground:0 0% 98%;--card:240 10% 3.9%;--card-foreground:0 0% 98%;--border:240 3.7% 15.9%;--input:240 3.7% 15.9%;--primary:0 0% 98%;--primary-foreground:240 5.9% 10%;--secondary:240 3.7% 15.9%;--secondary-foreground:0 0% 98%;--accent:240 3.7% 15.9%;--accent-foreground: ;--destructive:0 62.8% 30.6%;--destructive-foreground:0 85.7% 97.3%;--ring:240 3.7% 15.9%}*{border-color:hsl(var(--border))}body{background-color:hsl(var(--background));color:hsl(var(--foreground))}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.prose{color:var(--tw-prose-body);max-width:65ch}.prose :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-lead);font-size:1.25em;line-height:1.6;margin-top:1.2em;margin-bottom:1.2em}.prose :where(a):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-links);text-decoration:underline;font-weight:500}.prose :where(strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-bold);font-weight:600}.prose :where(a strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(blockquote strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(thead th strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:decimal;margin-top:1.25em;margin-bottom:1.25em;padding-left:1.625em}.prose :where(ol[type=A]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=A s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=I]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type=I s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type="1"]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:decimal}.prose :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:disc;margin-top:1.25em;margin-bottom:1.25em;padding-left:1.625em}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{font-weight:400;color:var(--tw-prose-counters)}.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{color:var(--tw-prose-bullets)}.prose :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;margin-top:1.25em}.prose :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){border-color:var(--tw-prose-hr);border-top-width:1px;margin-top:3em;margin-bottom:3em}.prose :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:500;font-style:italic;color:var(--tw-prose-quotes);border-left-width:.25rem;border-left-color:var(--tw-prose-quote-borders);quotes:"\201C""\201D""\2018""\2019";margin-top:1.6em;margin-bottom:1.6em;padding-left:1em}.prose :where(blockquote p:first-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:open-quote}.prose :where(blockquote p:last-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:close-quote}.prose :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:800;font-size:2.25em;margin-top:0;margin-bottom:.8888889em;line-height:1.1111111}.prose :where(h1 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:900;color:inherit}.prose :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:700;font-size:1.5em;margin-top:2em;margin-bottom:1em;line-height:1.3333333}.prose :where(h2 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:800;color:inherit}.prose :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;font-size:1.25em;margin-top:1.6em;margin-bottom:.6em;line-height:1.6}.prose :where(h3 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:700;color:inherit}.prose :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;margin-top:1.5em;margin-bottom:.5em;line-height:1.5}.prose :where(h4 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:700;color:inherit}.prose :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){display:block;margin-top:2em;margin-bottom:2em}.prose :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:500;font-family:inherit;color:var(--tw-prose-kbd);box-shadow:0 0 0 1px rgb(var(--tw-prose-kbd-shadows)/10%),0 3px 0 rgb(var(--tw-prose-kbd-shadows)/10%);font-size:.875em;border-radius:.3125rem;padding:.1875em .375em}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-code);font-weight:600;font-size:.875em}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:"`"}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:"`"}.prose :where(a code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(h1 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.875em}.prose :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.9em}.prose :where(h4 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(blockquote code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(thead th code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-pre-code);background-color:var(--tw-prose-pre-bg);overflow-x:auto;font-weight:400;font-size:.875em;line-height:1.7142857;margin-top:1.7142857em;margin-bottom:1.7142857em;border-radius:.375rem;padding:.8571429em 1.1428571em}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)){background-color:transparent;border-width:0;border-radius:0;padding:0;font-weight:inherit;color:inherit;font-size:inherit;font-family:inherit;line-height:inherit}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:none}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:none}.prose :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){width:100%;table-layout:auto;text-align:left;margin-top:2em;margin-bottom:2em;font-size:.875em;line-height:1.7142857}.prose :where(thead):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-th-borders)}.prose :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;vertical-align:bottom;padding-right:.5714286em;padding-bottom:.5714286em;padding-left:.5714286em}.prose :where(tbody tr):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-td-borders)}.prose :where(tbody tr:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:0}.prose :where(tbody td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:baseline}.prose :where(tfoot):not(:where([class~=not-prose],[class~=not-prose] *)){border-top-width:1px;border-top-color:var(--tw-prose-th-borders)}.prose :where(tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:top}.prose :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-captions);font-size:.875em;line-height:1.4285714;margin-top:.8571429em}.prose{--tw-prose-body:#374151;--tw-prose-headings:#111827;--tw-prose-lead:#4b5563;--tw-prose-links:#111827;--tw-prose-bold:#111827;--tw-prose-counters:#6b7280;--tw-prose-bullets:#d1d5db;--tw-prose-hr:#e5e7eb;--tw-prose-quotes:#111827;--tw-prose-quote-borders:#e5e7eb;--tw-prose-captions:#6b7280;--tw-prose-kbd:#111827;--tw-prose-kbd-shadows:17 24 39;--tw-prose-code:#111827;--tw-prose-pre-code:#e5e7eb;--tw-prose-pre-bg:#1f2937;--tw-prose-th-borders:#d1d5db;--tw-prose-td-borders:#e5e7eb;--tw-prose-invert-body:#d1d5db;--tw-prose-invert-headings:#fff;--tw-prose-invert-lead:#9ca3af;--tw-prose-invert-links:#fff;--tw-prose-invert-bold:#fff;--tw-prose-invert-counters:#9ca3af;--tw-prose-invert-bullets:#4b5563;--tw-prose-invert-hr:#374151;--tw-prose-invert-quotes:#f3f4f6;--tw-prose-invert-quote-borders:#374151;--tw-prose-invert-captions:#9ca3af;--tw-prose-invert-kbd:#fff;--tw-prose-invert-kbd-shadows:255 255 255;--tw-prose-invert-code:#fff;--tw-prose-invert-pre-code:#d1d5db;--tw-prose-invert-pre-bg:rgba(0,0,0,.5);--tw-prose-invert-th-borders:#4b5563;--tw-prose-invert-td-borders:#374151;font-size:1rem;line-height:1.75}.prose :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;margin-bottom:.5em}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-left:.375em}.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-left:.375em}.prose :where(.prose>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(.prose>ul>li>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ul>li>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(.prose>ol>li>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ol>li>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;padding-left:1.625em}.prose :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-left:0}.prose :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-right:0}.prose :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding:.5714286em}.prose :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-left:0}.prose :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-right:0}.prose :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(.prose>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(.prose>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{inset:0}.inset-x-0{left:0;right:0}.inset-y-0{top:0;bottom:0}.bottom-0{bottom:0}.bottom-1{bottom:.25rem}.left-0{left:0}.left-1{left:.25rem}.left-2{left:.5rem}.right-0{right:0}.right-4{right:1rem}.top-0{top:0}.top-1{top:.25rem}.top-4{top:1rem}.z-10{z-index:10}.z-50{z-index:50}.-mx-1{margin-left:-.25rem;margin-right:-.25rem}.mx-auto{margin-left:auto;margin-right:auto}.my-1{margin-top:.25rem;margin-bottom:.25rem}.my-4{margin-top:1rem;margin-bottom:1rem}.-ml-2{margin-left:-.5rem}.mb-2{margin-bottom:.5rem}.mb-4{margin-bottom:1rem}.ml-2{margin-left:.5rem}.ml-4{margin-left:1rem}.ml-auto{margin-left:auto}.mr-2{margin-right:.5rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-4{margin-top:1rem}.block{display:block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.hidden{display:none}.h-10{height:2.5rem}.h-11{height:2.75rem}.h-16{height:4rem}.h-3{height:.75rem}.h-3\.5{height:.875rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-7{height:1.75rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-\[1px\]{height:1px}.h-\[24px\]{height:24px}.h-\[var\(--radix-select-trigger-height\)\]{height:var(--radix-select-trigger-height)}.h-auto{height:auto}.h-full{height:100%}.h-px{height:1px}.max-h-60{max-height:15rem}.min-h-\[60px\]{min-height:60px}.min-h-\[80px\]{min-height:80px}.min-h-screen{min-height:100vh}.w-2\/3{width:66.666667%}.w-3{width:.75rem}.w-3\.5{width:.875rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-7{width:1.75rem}.w-8{width:2rem}.w-\[180px\]{width:180px}.w-\[1px\]{width:1px}.w-\[44px\]{width:44px}.w-full{width:100%}.min-w-\[8rem\]{min-width:8rem}.min-w-\[var\(--radix-select-trigger-width\)\]{min-width:var(--radix-select-trigger-width)}.max-w-2xl{max-width:42rem}.max-w-lg{max-width:32rem}.flex-1{flex:1 1 0%}.shrink-0{flex-shrink:0}.grow{flex-grow:1}.translate-y-1{--tw-translate-y:0.25rem}.scale-100,.translate-y-1{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-100{--tw-scale-x:1;--tw-scale-y:1}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(1turn)}}.animate-spin{animation:spin 1s linear infinite}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize-none{resize:none}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-1\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(.375rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.375rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.overflow-hidden{overflow:hidden}.break-words{overflow-wrap:break-word}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:var(--radius)}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-sm{border-radius:calc(var(--radius) - 4px)}.rounded-b-lg{border-bottom-right-radius:var(--radius);border-bottom-left-radius:var(--radius)}.border{border-width:1px}.border-2{border-width:2px}.border-b{border-bottom-width:1px}.border-r{border-right-width:1px}.border-t{border-top-width:1px}.border-input{border-color:hsl(var(--input))}.border-transparent{border-color:transparent}.bg-background{background-color:hsl(var(--background))}.bg-background\/80{background-color:hsl(var(--background)/.8)}.bg-border{background-color:hsl(var(--border))}.bg-destructive{background-color:hsl(var(--destructive))}.bg-gray-800{--tw-bg-opacity:1;background-color:rgb(31 41 55/var(--tw-bg-opacity))}.bg-muted{background-color:hsl(var(--muted))}.bg-muted\/50{background-color:hsl(var(--muted)/.5)}.bg-popover{background-color:hsl(var(--popover))}.bg-primary{background-color:hsl(var(--primary))}.bg-secondary{background-color:hsl(var(--secondary))}.bg-transparent{background-color:transparent}.bg-zinc-800{--tw-bg-opacity:1;background-color:rgb(39 39 42/var(--tw-bg-opacity))}.bg-zinc-950{--tw-bg-opacity:1;background-color:rgb(9 9 11/var(--tw-bg-opacity))}.bg-gradient-to-b{background-image:linear-gradient(to bottom,var(--tw-gradient-stops))}.from-background\/10{--tw-gradient-from:hsl(var(--background)/0.1) var(--tw-gradient-from-position);--tw-gradient-to:hsl(var(--background)/0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-muted\/10{--tw-gradient-from:hsl(var(--muted)/0.1) var(--tw-gradient-from-position);--tw-gradient-to:hsl(var(--muted)/0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-10\%{--tw-gradient-from-position:10%}.via-background\/50{--tw-gradient-to:hsl(var(--background)/0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),hsl(var(--background)/0.5) var(--tw-gradient-via-position),var(--tw-gradient-to)}.to-background\/80{--tw-gradient-to:hsl(var(--background)/0.8) var(--tw-gradient-to-position)}.to-muted\/30{--tw-gradient-to:hsl(var(--muted)/0.3) var(--tw-gradient-to-position)}.to-50\%{--tw-gradient-to-position:50%}.p-0{padding:0}.p-1{padding:.25rem}.p-3{padding:.75rem}.p-6{padding:1.5rem}.p-8{padding:2rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-2\.5{padding-left:.625rem;padding-right:.625rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-8{padding-left:2rem;padding-right:2rem}.py-0{padding-top:0;padding-bottom:0}.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-\[1\.3rem\]{padding-top:1.3rem;padding-bottom:1.3rem}.pb-\[200px\]{padding-bottom:200px}.pl-0{padding-left:0}.pl-8{padding-left:2rem}.pr-2{padding-right:.5rem}.pr-4{padding-right:1rem}.pt-4{padding-top:1rem}.text-center{text-align:center}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.font-sans{font-family:var(--font-sans),ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.lowercase{text-transform:lowercase}.leading-4{line-height:1rem}.leading-none{line-height:1}.leading-normal{line-height:1.5}.tracking-tight{letter-spacing:-.025em}.tracking-widest{letter-spacing:.1em}.text-destructive-foreground{color:hsl(var(--destructive-foreground))}.text-foreground{color:hsl(var(--foreground))}.text-muted-foreground{color:hsl(var(--muted-foreground))}.text-popover-foreground{color:hsl(var(--popover-foreground))}.text-primary{color:hsl(var(--primary))}.text-primary-foreground{color:hsl(var(--primary-foreground))}.text-secondary-foreground{color:hsl(var(--secondary-foreground))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.text-yellow-600{--tw-text-opacity:1;color:rgb(202 138 4/var(--tw-text-opacity))}.text-zinc-100{--tw-text-opacity:1;color:rgb(244 244 245/var(--tw-text-opacity))}.text-zinc-500{--tw-text-opacity:1;color:rgb(113 113 122/var(--tw-text-opacity))}.underline{text-decoration-line:underline}.underline-offset-4{text-underline-offset:4px}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-70{opacity:.7}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color)}.shadow,.shadow-lg{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color)}.shadow-md{--tw-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color)}.shadow-md,.shadow-none{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-none{--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000}.shadow-sm{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.ring-0{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color)}.ring-0,.ring-1{box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.ring-1{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color)}.ring-zinc-100\/10{--tw-ring-color:hsla(240,5%,96%,.1)}.ring-offset-background{--tw-ring-offset-color:hsl(var(--background))}.backdrop-blur-sm{--tw-backdrop-blur:blur(4px)}.backdrop-blur-sm,.backdrop-blur-xl{-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.backdrop-blur-xl{--tw-backdrop-blur:blur(24px)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-100{transition-duration:.1s}.duration-300{transition-duration:.3s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}@keyframes enter{0%{opacity:var(--tw-enter-opacity,1);transform:translate3d(var(--tw-enter-translate-x,0),var(--tw-enter-translate-y,0),0) scale3d(var(--tw-enter-scale,1),var(--tw-enter-scale,1),var(--tw-enter-scale,1)) rotate(var(--tw-enter-rotate,0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity,1);transform:translate3d(var(--tw-exit-translate-x,0),var(--tw-exit-translate-y,0),0) scale3d(var(--tw-exit-scale,1),var(--tw-exit-scale,1),var(--tw-exit-scale,1)) rotate(var(--tw-exit-rotate,0))}}.animate-in{animation-name:enter;animation-duration:.15s;--tw-enter-opacity:initial;--tw-enter-scale:initial;--tw-enter-rotate:initial;--tw-enter-translate-x:initial;--tw-enter-translate-y:initial}.fade-in{--tw-enter-opacity:0}.fade-in-50{--tw-enter-opacity:0.5}.fade-in-80{--tw-enter-opacity:0.8}.fade-in-90{--tw-enter-opacity:0.9}.slide-in-from-bottom-10{--tw-enter-translate-y:2.5rem}.duration-100{animation-duration:.1s}.duration-300{animation-duration:.3s}.ease-in-out{animation-timing-function:cubic-bezier(.4,0,.2,1)}.running{animation-play-state:running}:is(.dark .dark\:prose-invert){--tw-prose-body:var(--tw-prose-invert-body);--tw-prose-headings:var(--tw-prose-invert-headings);--tw-prose-lead:var(--tw-prose-invert-lead);--tw-prose-links:var(--tw-prose-invert-links);--tw-prose-bold:var(--tw-prose-invert-bold);--tw-prose-counters:var(--tw-prose-invert-counters);--tw-prose-bullets:var(--tw-prose-invert-bullets);--tw-prose-hr:var(--tw-prose-invert-hr);--tw-prose-quotes:var(--tw-prose-invert-quotes);--tw-prose-quote-borders:var(--tw-prose-invert-quote-borders);--tw-prose-captions:var(--tw-prose-invert-captions);--tw-prose-kbd:var(--tw-prose-invert-kbd);--tw-prose-kbd-shadows:var(--tw-prose-invert-kbd-shadows);--tw-prose-code:var(--tw-prose-invert-code);--tw-prose-pre-code:var(--tw-prose-invert-pre-code);--tw-prose-pre-bg:var(--tw-prose-invert-pre-bg);--tw-prose-th-borders:var(--tw-prose-invert-th-borders);--tw-prose-td-borders:var(--tw-prose-invert-td-borders)}.file\:border-0::file-selector-button{border-width:0}.file\:bg-transparent::file-selector-button{background-color:transparent}.file\:text-sm::file-selector-button{font-size:.875rem;line-height:1.25rem}.file\:font-medium::file-selector-button{font-weight:500}.placeholder\:text-muted-foreground::-moz-placeholder{color:hsl(var(--muted-foreground))}.placeholder\:text-muted-foreground::placeholder{color:hsl(var(--muted-foreground))}.last\:mb-0:last-child{margin-bottom:0}.focus-within\:outline-none:focus-within{outline:2px solid transparent;outline-offset:2px}.hover\:bg-accent:hover{background-color:hsl(var(--accent))}.hover\:bg-background:hover{background-color:hsl(var(--background))}.hover\:bg-destructive\/80:hover{background-color:hsl(var(--destructive)/.8)}.hover\:bg-destructive\/90:hover{background-color:hsl(var(--destructive)/.9)}.hover\:bg-primary\/80:hover{background-color:hsl(var(--primary)/.8)}.hover\:bg-primary\/90:hover{background-color:hsl(var(--primary)/.9)}.hover\:bg-secondary\/80:hover{background-color:hsl(var(--secondary)/.8)}.hover\:bg-zinc-800:hover{--tw-bg-opacity:1;background-color:rgb(39 39 42/var(--tw-bg-opacity))}.hover\:text-accent-foreground:hover{color:hsl(var(--accent-foreground))}.hover\:underline:hover{text-decoration-line:underline}.hover\:opacity-100:hover{opacity:1}.hover\:opacity-80:hover{opacity:.8}.focus\:bg-accent:focus{background-color:hsl(var(--accent))}.focus\:text-accent-foreground:focus{color:hsl(var(--accent-foreground))}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring-2:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus\:ring-ring:focus{--tw-ring-color:hsl(var(--ring))}.focus\:ring-offset-2:focus{--tw-ring-offset-width:2px}.focus-visible\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\:ring-1:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus-visible\:ring-2:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus-visible\:ring-ring:focus-visible{--tw-ring-color:hsl(var(--ring))}.focus-visible\:ring-slate-700:focus-visible{--tw-ring-opacity:1;--tw-ring-color:rgb(51 65 85/var(--tw-ring-opacity))}.focus-visible\:ring-offset-0:focus-visible{--tw-ring-offset-width:0px}.focus-visible\:ring-offset-2:focus-visible{--tw-ring-offset-width:2px}.focus-visible\:ring-offset-background:focus-visible{--tw-ring-offset-color:hsl(var(--background))}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-50:disabled{opacity:.5}.group:hover .group-hover\:opacity-100{opacity:1}.peer:disabled~.peer-disabled\:cursor-not-allowed{cursor:not-allowed}.peer:disabled~.peer-disabled\:opacity-70{opacity:.7}.data-\[disabled\]\:pointer-events-none[data-disabled]{pointer-events:none}.data-\[state\=checked\]\:translate-x-5[data-state=checked]{--tw-translate-x:1.25rem}.data-\[state\=checked\]\:translate-x-5[data-state=checked],.data-\[state\=unchecked\]\:translate-x-0[data-state=unchecked]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[state\=unchecked\]\:translate-x-0[data-state=unchecked]{--tw-translate-x:0px}.data-\[state\=checked\]\:bg-primary[data-state=checked]{background-color:hsl(var(--primary))}.data-\[state\=open\]\:bg-accent[data-state=open]{background-color:hsl(var(--accent))}.data-\[state\=open\]\:bg-secondary[data-state=open]{background-color:hsl(var(--secondary))}.data-\[state\=unchecked\]\:bg-input[data-state=unchecked]{background-color:hsl(var(--input))}.data-\[state\=open\]\:text-muted-foreground[data-state=open]{color:hsl(var(--muted-foreground))}.data-\[disabled\]\:opacity-50[data-disabled]{opacity:.5}.data-\[state\=closed\]\:duration-300[data-state=closed]{transition-duration:.3s}.data-\[state\=open\]\:duration-500[data-state=open]{transition-duration:.5s}.data-\[state\=open\]\:animate-in[data-state=open]{animation-name:enter;animation-duration:.15s;--tw-enter-opacity:initial;--tw-enter-scale:initial;--tw-enter-rotate:initial;--tw-enter-translate-x:initial;--tw-enter-translate-y:initial}.data-\[state\=closed\]\:animate-out[data-state=closed]{animation-name:exit;animation-duration:.15s;--tw-exit-opacity:initial;--tw-exit-scale:initial;--tw-exit-rotate:initial;--tw-exit-translate-x:initial;--tw-exit-translate-y:initial}.data-\[state\=closed\]\:fade-out[data-state=closed]{--tw-exit-opacity:0}.data-\[state\=open\]\:fade-in[data-state=open]{--tw-enter-opacity:0}.data-\[state\=open\]\:fade-in-90[data-state=open]{--tw-enter-opacity:0.9}.data-\[side\=bottom\]\:slide-in-from-top-1[data-side=bottom]{--tw-enter-translate-y:-0.25rem}.data-\[side\=bottom\]\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y:-0.5rem}.data-\[side\=left\]\:slide-in-from-right-1[data-side=left]{--tw-enter-translate-x:0.25rem}.data-\[side\=left\]\:slide-in-from-right-2[data-side=left]{--tw-enter-translate-x:0.5rem}.data-\[side\=right\]\:slide-in-from-left-1[data-side=right]{--tw-enter-translate-x:-0.25rem}.data-\[side\=right\]\:slide-in-from-left-2[data-side=right]{--tw-enter-translate-x:-0.5rem}.data-\[side\=top\]\:slide-in-from-bottom-1[data-side=top]{--tw-enter-translate-y:0.25rem}.data-\[side\=top\]\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y:0.5rem}.data-\[state\=closed\]\:slide-out-to-left[data-state=closed]{--tw-exit-translate-x:-100%}.data-\[state\=open\]\:slide-in-from-bottom-10[data-state=open]{--tw-enter-translate-y:2.5rem}.data-\[state\=open\]\:slide-in-from-left[data-state=open]{--tw-enter-translate-x:-100%}.data-\[state\=closed\]\:duration-300[data-state=closed]{animation-duration:.3s}.data-\[state\=open\]\:duration-500[data-state=open]{animation-duration:.5s}.prose-p\:leading-relaxed :is(:where(p):not(:where([class~=not-prose],[class~=not-prose] *))){line-height:1.625}.prose-pre\:p-0 :is(:where(pre):not(:where([class~=not-prose],[class~=not-prose] *))){padding:0}:is(.dark .dark\:text-yellow-400){--tw-text-opacity:1;color:rgb(250 204 21/var(--tw-text-opacity))}@media (min-width:640px){.sm\:left-4{left:1rem}.sm\:right-4{right:1rem}.sm\:right-8{right:2rem}.sm\:mt-0{margin-top:0}.sm\:block{display:block}.sm\:hidden{display:none}.sm\:max-w-2xl{max-width:42rem}.sm\:max-w-lg{max-width:32rem}.sm\:max-w-sm{max-width:24rem}.sm\:flex-row{flex-direction:row}.sm\:items-center{align-items:center}.sm\:justify-start{justify-content:flex-start}.sm\:justify-end{justify-content:flex-end}.sm\:space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.sm\:rounded-lg{border-radius:var(--radius)}.sm\:rounded-md{border-radius:calc(var(--radius) - 2px)}.sm\:rounded-t-xl{border-top-left-radius:.75rem;border-top-right-radius:.75rem}.sm\:border{border-width:1px}.sm\:px-12{padding-left:3rem;padding-right:3rem}.sm\:px-4{padding-left:1rem;padding-right:1rem}.sm\:text-left{text-align:left}.sm\:text-sm{font-size:.875rem;line-height:1.25rem}.sm\:zoom-in-90{--tw-enter-scale:.9}.data-\[state\=open\]\:sm\:slide-in-from-bottom-0[data-state=open],.sm\:slide-in-from-bottom-0{--tw-enter-translate-y:0px}}@media (min-width:768px){.md\:absolute{position:absolute}.md\:-right-10{right:-2.5rem}.md\:-top-2{top:-.5rem}.md\:top-2{top:.5rem}.md\:my-8{margin-top:2rem;margin-bottom:2rem}.md\:-ml-12{margin-left:-3rem}.md\:block{display:block}.md\:flex{display:flex}.md\:hidden{display:none}.md\:w-full{width:100%}.md\:py-4{padding-top:1rem;padding-bottom:1rem}.md\:pt-10{padding-top:2.5rem}.md\:opacity-0{opacity:0}}@media (min-width:1024px){.lg\:block{display:block}.lg\:hidden{display:none}.lg\:w-1\/3{width:33.333333%}}@media (min-width:1280px){.xl\:block{display:block}.xl\:hidden{display:none}}@media (min-width:1536px){.\32xl\:block{display:block}.\32xl\:hidden{display:none}}@font-face{font-family:__Inter_e66fe9;font-style:normal;font-weight:100 900;font-display:swap;src:url(/_next/static/media/ec159349637c90ad-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__Inter_e66fe9;font-style:normal;font-weight:100 900;font-display:swap;src:url(/_next/static/media/513657b02c5c193f-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__Inter_e66fe9;font-style:normal;font-weight:100 900;font-display:swap;src:url(/_next/static/media/fd4db3eb5472fc27-s.woff2) format("woff2");unicode-range:U+1f??}@font-face{font-family:__Inter_e66fe9;font-style:normal;font-weight:100 900;font-display:swap;src:url(/_next/static/media/51ed15f9841b9f9d-s.woff2) format("woff2");unicode-range:U+0370-03ff}@font-face{font-family:__Inter_e66fe9;font-style:normal;font-weight:100 900;font-display:swap;src:url(/_next/static/media/05a31a2ca4975f99-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__Inter_e66fe9;font-style:normal;font-weight:100 900;font-display:swap;src:url(/_next/static/media/d6b16ce4a6175f26-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__Inter_e66fe9;font-style:normal;font-weight:100 900;font-display:swap;src:url(/_next/static/media/c9a5bc6a7c948fb0-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__Inter_Fallback_e66fe9;src:local("Arial");ascent-override:90.20%;descent-override:22.48%;line-gap-override:0.00%;size-adjust:107.40%}.__className_e66fe9{font-family:__Inter_e66fe9,__Inter_Fallback_e66fe9;font-style:normal}.__variable_e66fe9{--font-sans:"__Inter_e66fe9","__Inter_Fallback_e66fe9"}@font-face{font-family:__JetBrains_Mono_bd9c35;font-style:normal;font-weight:100 800;font-display:swap;src:url(/_next/static/media/de2ba2ebf355004e-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__JetBrains_Mono_bd9c35;font-style:normal;font-weight:100 800;font-display:swap;src:url(/_next/static/media/9e58c89b9633dcad-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__JetBrains_Mono_bd9c35;font-style:normal;font-weight:100 800;font-display:swap;src:url(/_next/static/media/c4a41ea065a0023c-s.woff2) format("woff2");unicode-range:U+0370-03ff}@font-face{font-family:__JetBrains_Mono_bd9c35;font-style:normal;font-weight:100 800;font-display:swap;src:url(/_next/static/media/34dd45dcdd6d47ee-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__JetBrains_Mono_bd9c35;font-style:normal;font-weight:100 800;font-display:swap;src:url(/_next/static/media/a1ab2e69d2f53384-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__JetBrains_Mono_bd9c35;font-style:normal;font-weight:100 800;font-display:swap;src:url(/_next/static/media/86fdec36ddd9097e-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__JetBrains_Mono_Fallback_bd9c35;src:local("Arial");ascent-override:75.04%;descent-override:22.07%;line-gap-override:0.00%;size-adjust:135.93%}.__className_bd9c35{font-family:__JetBrains_Mono_bd9c35,__JetBrains_Mono_Fallback_bd9c35;font-style:normal}.__variable_bd9c35{--font-mono:"__JetBrains_Mono_bd9c35","__JetBrains_Mono_Fallback_bd9c35"} \ No newline at end of file diff --git a/crates/tabby/ui/index.html b/crates/tabby/ui/index.html index b503ffb..a32497f 100644 --- a/crates/tabby/ui/index.html +++ b/crates/tabby/ui/index.html @@ -1 +1 @@ -Tabby - Home
\ No newline at end of file +Tabby - Home
\ No newline at end of file diff --git a/crates/tabby/ui/index.txt b/crates/tabby/ui/index.txt index 6672c95..e494651 100644 --- a/crates/tabby/ui/index.txt +++ b/crates/tabby/ui/index.txt @@ -1,14 +1,14 @@ 1:HL["/_next/static/media/86fdec36ddd9097e-s.p.woff2","font",{"crossOrigin":"","type":"font/woff2"}] 2:HL["/_next/static/media/c9a5bc6a7c948fb0-s.p.woff2","font",{"crossOrigin":"","type":"font/woff2"}] -3:HL["/_next/static/css/616b1d8d470f862f.css","style"] -0:["5Ardx8NLn9MFJ4mWUnSbO",[[["",{"children":["__PAGE__",{}]},"$undefined","$undefined",true],"$L4",[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/616b1d8d470f862f.css","precedence":"next"}]],"$L5"]]]] -6:I{"id":5925,"chunks":["358:static/chunks/358-dc819165169f937b.js","406:static/chunks/406-35481e1b86c5b377.js","832:static/chunks/832-06362e8382d18069.js","894:static/chunks/894-25d9916957b869f3.js","185:static/chunks/app/layout-ac85f503669d9498.js"],"name":"Toaster","async":false} -7:I{"id":78495,"chunks":["358:static/chunks/358-dc819165169f937b.js","406:static/chunks/406-35481e1b86c5b377.js","832:static/chunks/832-06362e8382d18069.js","894:static/chunks/894-25d9916957b869f3.js","185:static/chunks/app/layout-ac85f503669d9498.js"],"name":"Providers","async":false} -8:I{"id":78963,"chunks":["358:static/chunks/358-dc819165169f937b.js","406:static/chunks/406-35481e1b86c5b377.js","832:static/chunks/832-06362e8382d18069.js","894:static/chunks/894-25d9916957b869f3.js","185:static/chunks/app/layout-ac85f503669d9498.js"],"name":"Header","async":false} -9:I{"id":81443,"chunks":["272:static/chunks/webpack-425a00248a63a7de.js","971:static/chunks/fd9d1056-5dfc77aa37d8c76f.js","864:static/chunks/864-bf315a5307aba1d7.js"],"name":"","async":false} -a:I{"id":18639,"chunks":["272:static/chunks/webpack-425a00248a63a7de.js","971:static/chunks/fd9d1056-5dfc77aa37d8c76f.js","864:static/chunks/864-bf315a5307aba1d7.js"],"name":"","async":false} -c:I{"id":65146,"chunks":["272:static/chunks/webpack-425a00248a63a7de.js","971:static/chunks/fd9d1056-5dfc77aa37d8c76f.js","864:static/chunks/864-bf315a5307aba1d7.js"],"name":"","async":false} -d:I{"id":25454,"chunks":["358:static/chunks/358-dc819165169f937b.js","703:static/chunks/703-35aa8c1eaf8df6ef.js","894:static/chunks/894-25d9916957b869f3.js","931:static/chunks/app/page-31b02197d46dcfe5.js"],"name":"","async":false} +3:HL["/_next/static/css/ea73550058928240.css","style"] +0:["Ij3G3VZs37tE5vfE2Vg4Q",[[["",{"children":["__PAGE__",{}]},"$undefined","$undefined",true],"$L4",[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/ea73550058928240.css","precedence":"next"}]],"$L5"]]]] +6:I{"id":5925,"chunks":["400:static/chunks/400-bab9e88e0219f9f5.js","406:static/chunks/406-35481e1b86c5b377.js","362:static/chunks/362-ae0994d279f3f3bb.js","563:static/chunks/563-52218f82bb9eb225.js","894:static/chunks/894-06b613a845aedd59.js","185:static/chunks/app/layout-3e48d1573c0ecb11.js"],"name":"Toaster","async":false} +7:I{"id":78495,"chunks":["400:static/chunks/400-bab9e88e0219f9f5.js","406:static/chunks/406-35481e1b86c5b377.js","362:static/chunks/362-ae0994d279f3f3bb.js","563:static/chunks/563-52218f82bb9eb225.js","894:static/chunks/894-06b613a845aedd59.js","185:static/chunks/app/layout-3e48d1573c0ecb11.js"],"name":"Providers","async":false} +8:I{"id":79446,"chunks":["400:static/chunks/400-bab9e88e0219f9f5.js","406:static/chunks/406-35481e1b86c5b377.js","362:static/chunks/362-ae0994d279f3f3bb.js","563:static/chunks/563-52218f82bb9eb225.js","894:static/chunks/894-06b613a845aedd59.js","185:static/chunks/app/layout-3e48d1573c0ecb11.js"],"name":"Header","async":false} +9:I{"id":81443,"chunks":["272:static/chunks/webpack-8526d963d32b72d9.js","971:static/chunks/fd9d1056-5dfc77aa37d8c76f.js","864:static/chunks/864-bf315a5307aba1d7.js"],"name":"","async":false} +a:I{"id":18639,"chunks":["272:static/chunks/webpack-8526d963d32b72d9.js","971:static/chunks/fd9d1056-5dfc77aa37d8c76f.js","864:static/chunks/864-bf315a5307aba1d7.js"],"name":"","async":false} +c:I{"id":65146,"chunks":["272:static/chunks/webpack-8526d963d32b72d9.js","971:static/chunks/fd9d1056-5dfc77aa37d8c76f.js","864:static/chunks/864-bf315a5307aba1d7.js"],"name":"","async":false} +d:I{"id":25454,"chunks":["400:static/chunks/400-bab9e88e0219f9f5.js","362:static/chunks/362-ae0994d279f3f3bb.js","703:static/chunks/703-35aa8c1eaf8df6ef.js","894:static/chunks/894-06b613a845aedd59.js","931:static/chunks/app/page-e7141b56a55588af.js"],"name":"","async":false} 4:[null,["$","html",null,{"lang":"en","suppressHydrationWarning":true,"children":[["$","head",null,{}],["$","body",null,{"className":"font-sans antialiased __variable_e66fe9 __variable_bd9c35","children":[["$","$L6",null,{}],["$","$L7",null,{"attribute":"class","defaultTheme":"system","enableSystem":true,"children":[["$","div",null,{"className":"flex flex-col min-h-screen","children":[["$","$L8",null,{}],["$","main",null,{"className":"flex flex-col flex-1 bg-muted/50","children":["$","$L9",null,{"parallelRouterKey":"children","segmentPath":["children"],"loading":"$undefined","loadingStyles":"$undefined","hasLoading":false,"error":"$undefined","errorStyles":"$undefined","template":["$","$La",null,{}],"templateStyles":"$undefined","notFound":[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":"404"}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],"notFoundStyles":[],"childProp":{"current":["$Lb",["$","$Lc",null,{"propsForComponent":{"params":{}},"Component":"$d"}],null],"segment":"__PAGE__"},"styles":[]}]}]]}],null]}]]}]]}],null] 5:[["$","meta","0",{"charSet":"utf-8"}],["$","title","1",{"children":"Tabby - Home"}],["$","meta","2",{"name":"description","content":"Tabby, an opensource, self-hosted AI coding assistant."}],["$","meta","3",{"name":"theme-color","media":"(prefers-color-scheme: light)","content":"white"}],["$","meta","4",{"name":"theme-color","media":"(prefers-color-scheme: dark)","content":"black"}],["$","meta","5",{"name":"viewport","content":"width=device-width, initial-scale=1"}],["$","meta","6",{"name":"next-size-adjust"}]] b:null diff --git a/crates/tabby/ui/playground.html b/crates/tabby/ui/playground.html index d618fc0..c2d0e21 100644 --- a/crates/tabby/ui/playground.html +++ b/crates/tabby/ui/playground.html @@ -1 +1 @@ -Tabby - Playground

Welcome to Playground!

You can start a conversation here or try the following examples:

\ No newline at end of file +Tabby - Playground

Welcome to Playground!

You can start a conversation here or try the following examples:

\ No newline at end of file diff --git a/crates/tabby/ui/playground.txt b/crates/tabby/ui/playground.txt index 6aae93c..e483da3 100644 --- a/crates/tabby/ui/playground.txt +++ b/crates/tabby/ui/playground.txt @@ -1,13 +1,13 @@ 1:HL["/_next/static/media/86fdec36ddd9097e-s.p.woff2","font",{"crossOrigin":"","type":"font/woff2"}] 2:HL["/_next/static/media/c9a5bc6a7c948fb0-s.p.woff2","font",{"crossOrigin":"","type":"font/woff2"}] -3:HL["/_next/static/css/616b1d8d470f862f.css","style"] -0:["5Ardx8NLn9MFJ4mWUnSbO",[[["",{"children":["playground",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],"$L4",[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/616b1d8d470f862f.css","precedence":"next"}]],"$L5"]]]] -6:I{"id":5925,"chunks":["358:static/chunks/358-dc819165169f937b.js","406:static/chunks/406-35481e1b86c5b377.js","832:static/chunks/832-06362e8382d18069.js","894:static/chunks/894-25d9916957b869f3.js","185:static/chunks/app/layout-ac85f503669d9498.js"],"name":"Toaster","async":false} -7:I{"id":78495,"chunks":["358:static/chunks/358-dc819165169f937b.js","406:static/chunks/406-35481e1b86c5b377.js","832:static/chunks/832-06362e8382d18069.js","894:static/chunks/894-25d9916957b869f3.js","185:static/chunks/app/layout-ac85f503669d9498.js"],"name":"Providers","async":false} -8:I{"id":78963,"chunks":["358:static/chunks/358-dc819165169f937b.js","406:static/chunks/406-35481e1b86c5b377.js","832:static/chunks/832-06362e8382d18069.js","894:static/chunks/894-25d9916957b869f3.js","185:static/chunks/app/layout-ac85f503669d9498.js"],"name":"Header","async":false} -9:I{"id":81443,"chunks":["272:static/chunks/webpack-425a00248a63a7de.js","971:static/chunks/fd9d1056-5dfc77aa37d8c76f.js","864:static/chunks/864-bf315a5307aba1d7.js"],"name":"","async":false} -a:I{"id":18639,"chunks":["272:static/chunks/webpack-425a00248a63a7de.js","971:static/chunks/fd9d1056-5dfc77aa37d8c76f.js","864:static/chunks/864-bf315a5307aba1d7.js"],"name":"","async":false} -c:I{"id":12202,"chunks":["358:static/chunks/358-dc819165169f937b.js","406:static/chunks/406-35481e1b86c5b377.js","978:static/chunks/978-6768c629d09f4ba9.js","894:static/chunks/894-25d9916957b869f3.js","383:static/chunks/app/playground/page-5dcb481453d0a823.js"],"name":"Chat","async":false} +3:HL["/_next/static/css/ea73550058928240.css","style"] +0:["Ij3G3VZs37tE5vfE2Vg4Q",[[["",{"children":["playground",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],"$L4",[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/ea73550058928240.css","precedence":"next"}]],"$L5"]]]] +6:I{"id":5925,"chunks":["400:static/chunks/400-bab9e88e0219f9f5.js","406:static/chunks/406-35481e1b86c5b377.js","362:static/chunks/362-ae0994d279f3f3bb.js","563:static/chunks/563-52218f82bb9eb225.js","894:static/chunks/894-06b613a845aedd59.js","185:static/chunks/app/layout-3e48d1573c0ecb11.js"],"name":"Toaster","async":false} +7:I{"id":78495,"chunks":["400:static/chunks/400-bab9e88e0219f9f5.js","406:static/chunks/406-35481e1b86c5b377.js","362:static/chunks/362-ae0994d279f3f3bb.js","563:static/chunks/563-52218f82bb9eb225.js","894:static/chunks/894-06b613a845aedd59.js","185:static/chunks/app/layout-3e48d1573c0ecb11.js"],"name":"Providers","async":false} +8:I{"id":79446,"chunks":["400:static/chunks/400-bab9e88e0219f9f5.js","406:static/chunks/406-35481e1b86c5b377.js","362:static/chunks/362-ae0994d279f3f3bb.js","563:static/chunks/563-52218f82bb9eb225.js","894:static/chunks/894-06b613a845aedd59.js","185:static/chunks/app/layout-3e48d1573c0ecb11.js"],"name":"Header","async":false} +9:I{"id":81443,"chunks":["272:static/chunks/webpack-8526d963d32b72d9.js","971:static/chunks/fd9d1056-5dfc77aa37d8c76f.js","864:static/chunks/864-bf315a5307aba1d7.js"],"name":"","async":false} +a:I{"id":18639,"chunks":["272:static/chunks/webpack-8526d963d32b72d9.js","971:static/chunks/fd9d1056-5dfc77aa37d8c76f.js","864:static/chunks/864-bf315a5307aba1d7.js"],"name":"","async":false} +c:I{"id":12202,"chunks":["400:static/chunks/400-bab9e88e0219f9f5.js","406:static/chunks/406-35481e1b86c5b377.js","28:static/chunks/28-27d0fe8a88c4cbfb.js","894:static/chunks/894-06b613a845aedd59.js","383:static/chunks/app/playground/page-e2c85638af29803a.js"],"name":"Chat","async":false} 5:[["$","meta","0",{"charSet":"utf-8"}],["$","title","1",{"children":"Tabby - Playground"}],["$","meta","2",{"name":"description","content":"Tabby, an opensource, self-hosted AI coding assistant."}],["$","meta","3",{"name":"theme-color","media":"(prefers-color-scheme: light)","content":"white"}],["$","meta","4",{"name":"theme-color","media":"(prefers-color-scheme: dark)","content":"black"}],["$","meta","5",{"name":"viewport","content":"width=device-width, initial-scale=1"}],["$","meta","6",{"name":"next-size-adjust"}]] -4:[null,["$","html",null,{"lang":"en","suppressHydrationWarning":true,"children":[["$","head",null,{}],["$","body",null,{"className":"font-sans antialiased __variable_e66fe9 __variable_bd9c35","children":[["$","$L6",null,{}],["$","$L7",null,{"attribute":"class","defaultTheme":"system","enableSystem":true,"children":[["$","div",null,{"className":"flex flex-col min-h-screen","children":[["$","$L8",null,{}],["$","main",null,{"className":"flex flex-col flex-1 bg-muted/50","children":["$","$L9",null,{"parallelRouterKey":"children","segmentPath":["children"],"loading":"$undefined","loadingStyles":"$undefined","hasLoading":false,"error":"$undefined","errorStyles":"$undefined","template":["$","$La",null,{}],"templateStyles":"$undefined","notFound":[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":"404"}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],"notFoundStyles":[],"childProp":{"current":["$","$L9",null,{"parallelRouterKey":"children","segmentPath":["children","playground","children"],"loading":"$undefined","loadingStyles":"$undefined","hasLoading":false,"error":"$undefined","errorStyles":"$undefined","template":["$","$La",null,{}],"templateStyles":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","childProp":{"current":["$Lb",["$","$Lc",null,{"id":"AGsp3Mj"}],null],"segment":"__PAGE__"},"styles":[]}],"segment":"playground"},"styles":[]}]}]]}],null]}]]}]]}],null] +4:[null,["$","html",null,{"lang":"en","suppressHydrationWarning":true,"children":[["$","head",null,{}],["$","body",null,{"className":"font-sans antialiased __variable_e66fe9 __variable_bd9c35","children":[["$","$L6",null,{}],["$","$L7",null,{"attribute":"class","defaultTheme":"system","enableSystem":true,"children":[["$","div",null,{"className":"flex flex-col min-h-screen","children":[["$","$L8",null,{}],["$","main",null,{"className":"flex flex-col flex-1 bg-muted/50","children":["$","$L9",null,{"parallelRouterKey":"children","segmentPath":["children"],"loading":"$undefined","loadingStyles":"$undefined","hasLoading":false,"error":"$undefined","errorStyles":"$undefined","template":["$","$La",null,{}],"templateStyles":"$undefined","notFound":[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":"404"}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],"notFoundStyles":[],"childProp":{"current":["$","$L9",null,{"parallelRouterKey":"children","segmentPath":["children","playground","children"],"loading":"$undefined","loadingStyles":"$undefined","hasLoading":false,"error":"$undefined","errorStyles":"$undefined","template":["$","$La",null,{}],"templateStyles":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","childProp":{"current":["$Lb",["$","$Lc",null,{"id":"hiHurcM"}],null],"segment":"__PAGE__"},"styles":[]}],"segment":"playground"},"styles":[]}]}]]}],null]}]]}]]}],null] b:null