diff --git a/404.html b/404.html index 4ce533c85a..5f2da745ed 100644 --- a/404.html +++ b/404.html @@ -7,13 +7,13 @@ - - + +
Skip to main content

Page Not Found

We could not find what you were looking for.

Please contact the owner of the site that linked you to the original URL and let them know their link is broken.

- - + + \ No newline at end of file diff --git a/assets/js/00cf5318.7f764142.js b/assets/js/00cf5318.7f764142.js new file mode 100644 index 0000000000..f87caafabe --- /dev/null +++ b/assets/js/00cf5318.7f764142.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[2216],{7522:(e,n,t)=>{t.d(n,{Zo:()=>l,kt:()=>f});var r=t(9901);function o(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function a(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function i(e){for(var n=1;n=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var p=r.createContext({}),c=function(e){var n=r.useContext(p),t=n;return e&&(t="function"==typeof e?e(n):i(i({},n),e)),t},l=function(e){var n=c(e.components);return r.createElement(p.Provider,{value:n},e.children)},d="mdxType",m={inlineCode:"code",wrapper:function(e){var n=e.children;return r.createElement(r.Fragment,{},n)}},u=r.forwardRef((function(e,n){var t=e.components,o=e.mdxType,a=e.originalType,p=e.parentName,l=s(e,["components","mdxType","originalType","parentName"]),d=c(t),u=o,f=d["".concat(p,".").concat(u)]||d[u]||m[u]||a;return t?r.createElement(f,i(i({ref:n},l),{},{components:t})):r.createElement(f,i({ref:n},l))}));function f(e,n){var t=arguments,o=n&&n.mdxType;if("string"==typeof e||o){var a=t.length,i=new Array(a);i[0]=u;var s={};for(var p in n)hasOwnProperty.call(n,p)&&(s[p]=n[p]);s.originalType=e,s[d]="string"==typeof e?e:o,i[1]=s;for(var c=2;c{t.d(n,{g:()=>y});var r=t(6632),o=t(2786),a=t(3800),i=t(966),s=t(9901),p=t(3346);var c=function(e){var n=l[e];return'import {populateDemo} from "./populateDemo"\n(async () => {\n try {\n '+n[0]+"\n populateDemo("+n[1]+')\n } catch(e) {\n populateDemo({ \n type: {\n definition: ""\n },\n data: "",\n problems: "ParseError: " + e.originalErr.message\n } as any)\n }\n})()'},l={type:['const { user, data, problems } = await import("./type")',"{ type: user, data, problems }"],scope:['const { types, data, problems } = await import("./scope")',"{ type: types.package, data, problems }"],demo:['const { pkg, data, problems } = await import("./demo")',"{ type: pkg, data, problems }"]};var d={"index.html":'\n \n\n
\n
\n
\n

Definition

\n
\n
\n
\n
\n
\n

Output

\n
\n
\n
\n
\n',"demo.css":'body {\n font-family: "Cascadia Code", sans-serif;\n background-color: hsl(220 18% 10%);\n}\n\n#demo {\n display: flex;\n flex-direction: column;\n gap: 1rem;\n margin: -0.5rem;\n padding: 0.5rem;\n}\n\n#input {\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n gap: 0.5rem;\n}\n\n.section {\n display: flex;\n flex-direction: column;\n flex-grow: 1;\n gap: 0.5rem;\n}\n\np {\n white-space: pre-wrap;\n}\n\npre {\n white-space: pre-wrap;\n}\n\nh3 {\n margin: 0px;\n color: #fffff0;\n}\n\n.key {\n color: #80cff8;\n}\n.val {\n color: #f5cf8f;\n}\n.operator {\n color: #eb9f2e;\n}\n.bracket {\n color: #009eff;\n}\n.card {\n padding: 1rem;\n background-color: rgb(18, 18, 18);\n color: rgb(255, 255, 255);\n /* transition: box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms; */\n border-radius: 1rem;\n box-shadow: rgba(0, 0, 0, 0.2) 0px 2px 1px -1px,\n rgba(0, 0, 0, 0.14) 0px 1px 1px 0px, rgba(0, 0, 0, 0.12) 0px 1px 3px 0px;\n background-image: linear-gradient(\n rgba(255, 255, 255, 0.05),\n rgba(255, 255, 255, 0.05)\n );\n height: 100%;\n}\n',"populateDemo.ts":'import "./demo.css"\nimport type { Problems, Type } from "arktype"\nimport { stringify } from "arktype/internal/utils/serialize.js"\n\ntype PopulateDemoArgs = {\n type: Type\n data: unknown\n problems: Problems\n}\nexport const populateDemo = ({ data, type, problems }: PopulateDemoArgs) => {\n const defElement = document.querySelector("#definition")!\n defElement.textContent = stringify(type.definition, 2)\n defElement.innerHTML = recolor(defElement.innerHTML)\n\n const resultElement = document.querySelector("#output")!\n if (problems) {\n resultElement.textContent = `\u274c problems:\n\n${problems}`\n } else {\n resultElement.textContent = `\u2705 data:\n\n${stringify(data, 2)}`\n resultElement.innerHTML = recolor(resultElement.innerHTML)\n }\n}\n\nconst recolor = (input: string) => {\n const lines = input.split("\\n")\n const fixedInput: string[] = [""]\n for (const line of lines) {\n if (line.includes(":")) {\n const parts = line.split(":")\n fixedInput.push(`${buildKey(parts[0])}: ${buildVal(parts[1])}`)\n } else {\n fixedInput.push(addArkdarkStyles(line))\n }\n }\n fixedInput.push("")\n return fixedInput.join("\\n")\n}\n\nconst buildKey = (key: string) => {\n return `${key}`\n}\nconst buildVal = (val: string) => {\n const formatted = addArkdarkStyles(val.trim())\n if (formatted[formatted.length - 1] === ",") {\n return `${formatted.replace(",", "")},`\n } else if (formatted[formatted.length - 1] === "{") {\n return "{"\n }\n return `${formatted}`\n}\nconst addArkdarkStyles = (line: string) => {\n const brackets = ["[", "]", "(", ")"]\n const operators = [">", "<", ">e;", "<e;", "|"]\n let modifiedLine = line\n for (const bracket of brackets) {\n modifiedLine = modifiedLine.replaceAll(\n bracket,\n `${bracket}`\n )\n }\n for (const operator of operators) {\n modifiedLine = modifiedLine.replaceAll(\n operator,\n `${operator}`\n )\n }\n return modifiedLine\n}\n',"tsconfig.json":JSON.stringify({compilerOptions:{module:"esnext",target:"esnext",strict:!0}},null,4)},m={type:'import { type } from "arktype"\n\n// Definitions are statically parsed and inferred as TS.\nexport const user = type({\n name: "string",\n device: {\n platform: "\'android\'|\'ios\'",\n "version?": "number"\n }\n})\n\n// Validators return typed data or clear, customizable errors.\nexport const { data, problems } = user({\n name: "Alan Turing",\n device: {\n // problems.summary: "device/platform must be \'android\' or \'ios\' (was \'enigma\')"\n platform: "enigma"\n }\n})\n',scope:'import { scope } from "arktype"\n\n// Scopes are collections of types that can reference each other.\nexport const types = scope({\n package: {\n name: "string",\n "dependencies?": "package[]",\n "contributors?": "contributor[]"\n },\n contributor: {\n // Subtypes like \'email\' are inferred like \'string\' but provide additional validation at runtime.\n email: "email",\n "packages?": "package[]"\n }\n}).compile()\n\n// Cyclic types are inferred to arbitrary depth...\nexport type Package = typeof types.package.infer\n\n// And can validate cyclic data.\nconst packageData: Package = {\n name: "arktype",\n dependencies: [{ name: "typescript" }],\n contributors: [{ email: "david@sharktypeio" }]\n}\npackageData.dependencies![0].dependencies = [packageData]\n\nexport const { data, problems } = types.package(packageData)\n',demo:'import { type } from "arktype"\n\n// Define your type...\nexport const pkg = type({\n name: "string",\n version: "semver",\n "contributors?": "1{t.r(n),t.d(n,{assets:()=>d,contentTitle:()=>c,default:()=>y,frontMatter:()=>p,metadata:()=>l,toc:()=>m});var r=t(4805),o=t(8),a=(t(9901),t(7522)),i=t(962),s=["components"],p={hide_table_of_contents:!0},c="Scopes",l={unversionedId:"scopes",id:"scopes",title:"Scopes",description:"",source:"@site/docs/scopes.mdx",sourceDirName:".",slug:"/scopes",permalink:"/docs/next/scopes",draft:!1,tags:[],version:"current",frontMatter:{hide_table_of_contents:!0},sidebar:"sidebar",previous:{title:"Intro",permalink:"/docs/next/"},next:{title:"Keywords",permalink:"/docs/next/api/keywords"}},d={},m=[],u={toc:m},f="wrapper";function y(e){var n=e.components,t=(0,o.Z)(e,s);return(0,a.kt)(f,(0,r.Z)({},u,t,{components:n,mdxType:"MDXLayout"}),(0,a.kt)("h1",{id:"scopes"},"Scopes"),(0,a.kt)(i.g,{embedId:"scope",mdxType:"StackBlitzDemo"}))}y.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/02c148a9.a18d44e3.js b/assets/js/02c148a9.b44abc85.js similarity index 71% rename from assets/js/02c148a9.a18d44e3.js rename to assets/js/02c148a9.b44abc85.js index 7942b66213..b69c00b166 100644 --- a/assets/js/02c148a9.a18d44e3.js +++ b/assets/js/02c148a9.b44abc85.js @@ -1 +1 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[1531],{7522:(e,t,r)=>{r.d(t,{Zo:()=>u,kt:()=>y});var n=r(9901);function a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function c(e){for(var t=1;t=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}var p=n.createContext({}),l=function(e){var t=n.useContext(p),r=t;return e&&(r="function"==typeof e?e(t):c(c({},t),e)),r},u=function(e){var t=l(e.components);return n.createElement(p.Provider,{value:t},e.children)},s="mdxType",f={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},m=n.forwardRef((function(e,t){var r=e.components,a=e.mdxType,o=e.originalType,p=e.parentName,u=i(e,["components","mdxType","originalType","parentName"]),s=l(r),m=a,y=s["".concat(p,".").concat(m)]||s[m]||f[m]||o;return r?n.createElement(y,c(c({ref:t},u),{},{components:r})):n.createElement(y,c({ref:t},u))}));function y(e,t){var r=arguments,a=t&&t.mdxType;if("string"==typeof e||a){var o=r.length,c=new Array(o);c[0]=m;var i={};for(var p in t)hasOwnProperty.call(t,p)&&(i[p]=t[p]);i.originalType=e,i[s]="string"==typeof e?e:a,c[1]=i;for(var l=2;l{r.r(t),r.d(t,{assets:()=>u,contentTitle:()=>p,default:()=>y,frontMatter:()=>i,metadata:()=>l,toc:()=>s});var n=r(3341),a=r(1792),o=(r(9901),r(7522)),c=["components"],i={hide_table_of_contents:!0},p="ark",l={unversionedId:"api/ark",id:"version-1.0.20-alpha/api/ark",title:"ark",description:"text",source:"@site/versioned_docs/version-1.0.20-alpha/api/ark.md",sourceDirName:"api",slug:"/api/ark",permalink:"/docs/1.0.20-alpha/api/ark",draft:!1,tags:[],version:"1.0.20-alpha",frontMatter:{hide_table_of_contents:!0}},u={},s=[{value:"text",id:"text",level:2}],f={toc:s},m="wrapper";function y(e){var t=e.components,r=(0,a.Z)(e,c);return(0,o.kt)(m,(0,n.Z)({},f,r,{components:t,mdxType:"MDXLayout"}),(0,o.kt)("h1",{id:"ark"},"ark"),(0,o.kt)("h2",{id:"text"},"text"),(0,o.kt)("pre",null,(0,o.kt)("code",{parentName:"pre",className:"language-ts"},"ark: Space\n")))}y.isMDXComponent=!0}}]); \ No newline at end of file +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[1531],{7522:(e,t,r)=>{r.d(t,{Zo:()=>u,kt:()=>y});var n=r(9901);function a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function c(e){for(var t=1;t=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}var p=n.createContext({}),l=function(e){var t=n.useContext(p),r=t;return e&&(r="function"==typeof e?e(t):c(c({},t),e)),r},u=function(e){var t=l(e.components);return n.createElement(p.Provider,{value:t},e.children)},s="mdxType",f={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},m=n.forwardRef((function(e,t){var r=e.components,a=e.mdxType,o=e.originalType,p=e.parentName,u=i(e,["components","mdxType","originalType","parentName"]),s=l(r),m=a,y=s["".concat(p,".").concat(m)]||s[m]||f[m]||o;return r?n.createElement(y,c(c({ref:t},u),{},{components:r})):n.createElement(y,c({ref:t},u))}));function y(e,t){var r=arguments,a=t&&t.mdxType;if("string"==typeof e||a){var o=r.length,c=new Array(o);c[0]=m;var i={};for(var p in t)hasOwnProperty.call(t,p)&&(i[p]=t[p]);i.originalType=e,i[s]="string"==typeof e?e:a,c[1]=i;for(var l=2;l{r.r(t),r.d(t,{assets:()=>u,contentTitle:()=>p,default:()=>y,frontMatter:()=>i,metadata:()=>l,toc:()=>s});var n=r(4805),a=r(8),o=(r(9901),r(7522)),c=["components"],i={hide_table_of_contents:!0},p="ark",l={unversionedId:"api/ark",id:"version-1.0.20-alpha/api/ark",title:"ark",description:"text",source:"@site/versioned_docs/version-1.0.20-alpha/api/ark.md",sourceDirName:"api",slug:"/api/ark",permalink:"/docs/1.0.20-alpha/api/ark",draft:!1,tags:[],version:"1.0.20-alpha",frontMatter:{hide_table_of_contents:!0}},u={},s=[{value:"text",id:"text",level:2}],f={toc:s},m="wrapper";function y(e){var t=e.components,r=(0,a.Z)(e,c);return(0,o.kt)(m,(0,n.Z)({},f,r,{components:t,mdxType:"MDXLayout"}),(0,o.kt)("h1",{id:"ark"},"ark"),(0,o.kt)("h2",{id:"text"},"text"),(0,o.kt)("pre",null,(0,o.kt)("code",{parentName:"pre",className:"language-ts"},"ark: Space\n")))}y.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/0493d4c1.5dc16254.js b/assets/js/0493d4c1.2bc17559.js similarity index 57% rename from assets/js/0493d4c1.5dc16254.js rename to assets/js/0493d4c1.2bc17559.js index 18540783b0..706855aa7f 100644 --- a/assets/js/0493d4c1.5dc16254.js +++ b/assets/js/0493d4c1.2bc17559.js @@ -1 +1 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[4665],{7522:(e,r,t)=>{t.d(r,{Zo:()=>c,kt:()=>m});var n=t(9901);function a(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function l(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function o(e){for(var r=1;r=0||(a[t]=e[t]);return a}(e,r);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}var p=n.createContext({}),u=function(e){var r=n.useContext(p),t=r;return e&&(t="function"==typeof e?e(r):o(o({},r),e)),t},c=function(e){var r=u(e.components);return n.createElement(p.Provider,{value:r},e.children)},f="mdxType",s={inlineCode:"code",wrapper:function(e){var r=e.children;return n.createElement(n.Fragment,{},r)}},y=n.forwardRef((function(e,r){var t=e.components,a=e.mdxType,l=e.originalType,p=e.parentName,c=i(e,["components","mdxType","originalType","parentName"]),f=u(t),y=a,m=f["".concat(p,".").concat(y)]||f[y]||s[y]||l;return t?n.createElement(m,o(o({ref:r},c),{},{components:t})):n.createElement(m,o({ref:r},c))}));function m(e,r){var t=arguments,a=r&&r.mdxType;if("string"==typeof e||a){var l=t.length,o=new Array(l);o[0]=y;var i={};for(var p in r)hasOwnProperty.call(r,p)&&(i[p]=r[p]);i.originalType=e,i[f]="string"==typeof e?e:a,o[1]=i;for(var u=2;u{t.r(r),t.d(r,{assets:()=>c,contentTitle:()=>p,default:()=>m,frontMatter:()=>i,metadata:()=>u,toc:()=>f});var n=t(3341),a=t(1792),l=(t(9901),t(7522)),o=["components"],i={hide_table_of_contents:!0},p="arrayOf",u={unversionedId:"api/arrayof",id:"api/arrayof",title:"arrayOf",description:"operator",source:"@site/docs/api/arrayof.md",sourceDirName:"api",slug:"/api/arrayof",permalink:"/docs/next/api/arrayof",draft:!1,tags:[],version:"current",frontMatter:{hide_table_of_contents:!0}},c={},f=[{value:"operator",id:"operator",level:2},{value:"string",id:"string",level:2},{value:"tuple",id:"tuple",level:2},{value:"helper",id:"helper",level:2}],s={toc:f},y="wrapper";function m(e){var r=e.components,t=(0,a.Z)(e,o);return(0,l.kt)(y,(0,n.Z)({},s,t,{components:r,mdxType:"MDXLayout"}),(0,l.kt)("h1",{id:"arrayof"},"arrayOf"),(0,l.kt)("h2",{id:"operator"},"operator"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},(0,l.kt)("a",{parentName:"li",href:"/docs/next/api/arrayof"},"arrayOf"))),(0,l.kt)("h2",{id:"string"},"string"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},'"T[]" ',(0,l.kt)("br",null)),(0,l.kt)("li",{parentName:"ul"},'const numberArray = type("number[]")',(0,l.kt)("br",null))),(0,l.kt)("h2",{id:"tuple"},"tuple"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},'[T, "[]"] ',(0,l.kt)("br",null)),(0,l.kt)("li",{parentName:"ul"},'const tupleArray = type(["number", "[]"])',(0,l.kt)("br",null))),(0,l.kt)("h2",{id:"helper"},"helper"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},"arrayOf(T) ",(0,l.kt)("br",null)),(0,l.kt)("li",{parentName:"ul"},'const helperArray = arrayOf("number")',(0,l.kt)("br",null))))}m.isMDXComponent=!0}}]); \ No newline at end of file +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[4665],{7522:(e,r,t)=>{t.d(r,{Zo:()=>c,kt:()=>m});var n=t(9901);function a(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function l(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function o(e){for(var r=1;r=0||(a[t]=e[t]);return a}(e,r);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}var p=n.createContext({}),u=function(e){var r=n.useContext(p),t=r;return e&&(t="function"==typeof e?e(r):o(o({},r),e)),t},c=function(e){var r=u(e.components);return n.createElement(p.Provider,{value:r},e.children)},f="mdxType",s={inlineCode:"code",wrapper:function(e){var r=e.children;return n.createElement(n.Fragment,{},r)}},y=n.forwardRef((function(e,r){var t=e.components,a=e.mdxType,l=e.originalType,p=e.parentName,c=i(e,["components","mdxType","originalType","parentName"]),f=u(t),y=a,m=f["".concat(p,".").concat(y)]||f[y]||s[y]||l;return t?n.createElement(m,o(o({ref:r},c),{},{components:t})):n.createElement(m,o({ref:r},c))}));function m(e,r){var t=arguments,a=r&&r.mdxType;if("string"==typeof e||a){var l=t.length,o=new Array(l);o[0]=y;var i={};for(var p in r)hasOwnProperty.call(r,p)&&(i[p]=r[p]);i.originalType=e,i[f]="string"==typeof e?e:a,o[1]=i;for(var u=2;u{t.r(r),t.d(r,{assets:()=>c,contentTitle:()=>p,default:()=>m,frontMatter:()=>i,metadata:()=>u,toc:()=>f});var n=t(4805),a=t(8),l=(t(9901),t(7522)),o=["components"],i={hide_table_of_contents:!0},p="arrayOf",u={unversionedId:"api/arrayof",id:"api/arrayof",title:"arrayOf",description:"operator",source:"@site/docs/api/arrayof.md",sourceDirName:"api",slug:"/api/arrayof",permalink:"/docs/next/api/arrayof",draft:!1,tags:[],version:"current",frontMatter:{hide_table_of_contents:!0}},c={},f=[{value:"operator",id:"operator",level:2},{value:"string",id:"string",level:2},{value:"tuple",id:"tuple",level:2},{value:"helper",id:"helper",level:2}],s={toc:f},y="wrapper";function m(e){var r=e.components,t=(0,a.Z)(e,o);return(0,l.kt)(y,(0,n.Z)({},s,t,{components:r,mdxType:"MDXLayout"}),(0,l.kt)("h1",{id:"arrayof"},"arrayOf"),(0,l.kt)("h2",{id:"operator"},"operator"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},(0,l.kt)("a",{parentName:"li",href:"/docs/next/api/arrayof"},"arrayOf"))),(0,l.kt)("h2",{id:"string"},"string"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},'"T[]" ',(0,l.kt)("br",null)),(0,l.kt)("li",{parentName:"ul"},'const numberArray = type("number[]")',(0,l.kt)("br",null))),(0,l.kt)("h2",{id:"tuple"},"tuple"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},'[T, "[]"] ',(0,l.kt)("br",null)),(0,l.kt)("li",{parentName:"ul"},'const tupleArray = type(["number", "[]"])',(0,l.kt)("br",null))),(0,l.kt)("h2",{id:"helper"},"helper"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},"arrayOf(T) ",(0,l.kt)("br",null)),(0,l.kt)("li",{parentName:"ul"},'const helperArray = arrayOf("number")',(0,l.kt)("br",null))))}m.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/04ca6b23.49aef346.js b/assets/js/04ca6b23.176f9cb1.js similarity index 60% rename from assets/js/04ca6b23.49aef346.js rename to assets/js/04ca6b23.176f9cb1.js index 5533117d5b..2c4acae4ca 100644 --- a/assets/js/04ca6b23.49aef346.js +++ b/assets/js/04ca6b23.176f9cb1.js @@ -1 +1 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[2154],{7522:(e,t,r)=>{r.d(t,{Zo:()=>u,kt:()=>k});var n=r(9901);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function l(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var i=n.createContext({}),c=function(e){var t=n.useContext(i),r=t;return e&&(r="function"==typeof e?e(t):l(l({},t),e)),r},u=function(e){var t=c(e.components);return n.createElement(i.Provider,{value:t},e.children)},f="mdxType",s={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},y=n.forwardRef((function(e,t){var r=e.components,o=e.mdxType,a=e.originalType,i=e.parentName,u=p(e,["components","mdxType","originalType","parentName"]),f=c(r),y=o,k=f["".concat(i,".").concat(y)]||f[y]||s[y]||a;return r?n.createElement(k,l(l({ref:t},u),{},{components:r})):n.createElement(k,l({ref:t},u))}));function k(e,t){var r=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var a=r.length,l=new Array(a);l[0]=y;var p={};for(var i in t)hasOwnProperty.call(t,i)&&(p[i]=t[i]);p.originalType=e,p[f]="string"==typeof e?e:o,l[1]=p;for(var c=2;c{r.r(t),r.d(t,{assets:()=>u,contentTitle:()=>i,default:()=>k,frontMatter:()=>p,metadata:()=>c,toc:()=>f});var n=r(3341),o=r(1792),a=(r(9901),r(7522)),l=["components"],p={hide_table_of_contents:!0},i="keyOf",c={unversionedId:"api/keyof",id:"version-1.0.20-alpha/api/keyof",title:"keyOf",description:"operator",source:"@site/versioned_docs/version-1.0.20-alpha/api/keyof.md",sourceDirName:"api",slug:"/api/keyof",permalink:"/docs/1.0.20-alpha/api/keyof",draft:!1,tags:[],version:"1.0.20-alpha",frontMatter:{hide_table_of_contents:!0}},u={},f=[{value:"operator",id:"operator",level:2},{value:"tuple",id:"tuple",level:2},{value:"helper",id:"helper",level:2}],s={toc:f},y="wrapper";function k(e){var t=e.components,r=(0,o.Z)(e,l);return(0,a.kt)(y,(0,n.Z)({},s,r,{components:t,mdxType:"MDXLayout"}),(0,a.kt)("h1",{id:"keyof"},"keyOf"),(0,a.kt)("h2",{id:"operator"},"operator"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},(0,a.kt)("a",{parentName:"li",href:"/docs/1.0.20-alpha/api/keyof"},"keyOf"))),(0,a.kt)("h2",{id:"tuple"},"tuple"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},'"','["keyOf", T]','" ',(0,a.kt)("br",null)),(0,a.kt)("li",{parentName:"ul"},"const tupleKeyOf = type(",'["keyOf", {a:"string"}]',")",(0,a.kt)("br",null))),(0,a.kt)("h2",{id:"helper"},"helper"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},"keyOf(T) ",(0,a.kt)("br",null)),(0,a.kt)("li",{parentName:"ul"},'const helperKeyOf = keyOf({a:"string"})',(0,a.kt)("br",null))))}k.isMDXComponent=!0}}]); \ No newline at end of file +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[2154],{7522:(e,t,r)=>{r.d(t,{Zo:()=>u,kt:()=>k});var n=r(9901);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function l(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var i=n.createContext({}),c=function(e){var t=n.useContext(i),r=t;return e&&(r="function"==typeof e?e(t):l(l({},t),e)),r},u=function(e){var t=c(e.components);return n.createElement(i.Provider,{value:t},e.children)},f="mdxType",s={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},y=n.forwardRef((function(e,t){var r=e.components,o=e.mdxType,a=e.originalType,i=e.parentName,u=p(e,["components","mdxType","originalType","parentName"]),f=c(r),y=o,k=f["".concat(i,".").concat(y)]||f[y]||s[y]||a;return r?n.createElement(k,l(l({ref:t},u),{},{components:r})):n.createElement(k,l({ref:t},u))}));function k(e,t){var r=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var a=r.length,l=new Array(a);l[0]=y;var p={};for(var i in t)hasOwnProperty.call(t,i)&&(p[i]=t[i]);p.originalType=e,p[f]="string"==typeof e?e:o,l[1]=p;for(var c=2;c{r.r(t),r.d(t,{assets:()=>u,contentTitle:()=>i,default:()=>k,frontMatter:()=>p,metadata:()=>c,toc:()=>f});var n=r(4805),o=r(8),a=(r(9901),r(7522)),l=["components"],p={hide_table_of_contents:!0},i="keyOf",c={unversionedId:"api/keyof",id:"version-1.0.20-alpha/api/keyof",title:"keyOf",description:"operator",source:"@site/versioned_docs/version-1.0.20-alpha/api/keyof.md",sourceDirName:"api",slug:"/api/keyof",permalink:"/docs/1.0.20-alpha/api/keyof",draft:!1,tags:[],version:"1.0.20-alpha",frontMatter:{hide_table_of_contents:!0}},u={},f=[{value:"operator",id:"operator",level:2},{value:"tuple",id:"tuple",level:2},{value:"helper",id:"helper",level:2}],s={toc:f},y="wrapper";function k(e){var t=e.components,r=(0,o.Z)(e,l);return(0,a.kt)(y,(0,n.Z)({},s,r,{components:t,mdxType:"MDXLayout"}),(0,a.kt)("h1",{id:"keyof"},"keyOf"),(0,a.kt)("h2",{id:"operator"},"operator"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},(0,a.kt)("a",{parentName:"li",href:"/docs/1.0.20-alpha/api/keyof"},"keyOf"))),(0,a.kt)("h2",{id:"tuple"},"tuple"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},'"','["keyOf", T]','" ',(0,a.kt)("br",null)),(0,a.kt)("li",{parentName:"ul"},"const tupleKeyOf = type(",'["keyOf", {a:"string"}]',")",(0,a.kt)("br",null))),(0,a.kt)("h2",{id:"helper"},"helper"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},"keyOf(T) ",(0,a.kt)("br",null)),(0,a.kt)("li",{parentName:"ul"},'const helperKeyOf = keyOf({a:"string"})',(0,a.kt)("br",null))))}k.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/05dfa499.caf8e177.js b/assets/js/05dfa499.c782746f.js similarity index 59% rename from assets/js/05dfa499.caf8e177.js rename to assets/js/05dfa499.c782746f.js index 8a121e85e2..3e1d86ed9b 100644 --- a/assets/js/05dfa499.caf8e177.js +++ b/assets/js/05dfa499.c782746f.js @@ -1 +1 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[6418],{7522:(e,t,n)=>{n.d(t,{Zo:()=>u,kt:()=>d});var r=n(9901);function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var c=r.createContext({}),p=function(e){var t=r.useContext(c),n=t;return e&&(n="function"==typeof e?e(t):l(l({},t),e)),n},u=function(e){var t=p(e.components);return r.createElement(c.Provider,{value:t},e.children)},s="mdxType",f={inlineCode:"code",wrapper:function(e){var t=e.children;return r.createElement(r.Fragment,{},t)}},m=r.forwardRef((function(e,t){var n=e.components,a=e.mdxType,o=e.originalType,c=e.parentName,u=i(e,["components","mdxType","originalType","parentName"]),s=p(n),m=a,d=s["".concat(c,".").concat(m)]||s[m]||f[m]||o;return n?r.createElement(d,l(l({ref:t},u),{},{components:n})):r.createElement(d,l({ref:t},u))}));function d(e,t){var n=arguments,a=t&&t.mdxType;if("string"==typeof e||a){var o=n.length,l=new Array(o);l[0]=m;var i={};for(var c in t)hasOwnProperty.call(t,c)&&(i[c]=t[c]);i.originalType=e,i[s]="string"==typeof e?e:a,l[1]=i;for(var p=2;p{n.r(t),n.d(t,{assets:()=>u,contentTitle:()=>c,default:()=>d,frontMatter:()=>i,metadata:()=>p,toc:()=>s});var r=n(3341),a=n(1792),o=(n(9901),n(7522)),l=["components"],i={hide_table_of_contents:!0},c="instanceOf",p={unversionedId:"api/instanceof",id:"version-1.0.21-alpha/api/instanceof",title:"instanceOf",description:"operator",source:"@site/versioned_docs/version-1.0.21-alpha/api/instanceof.md",sourceDirName:"api",slug:"/api/instanceof",permalink:"/docs/1.0.21-alpha/api/instanceof",draft:!1,tags:[],version:"1.0.21-alpha",frontMatter:{hide_table_of_contents:!0}},u={},s=[{value:"operator",id:"operator",level:2},{value:"tuple",id:"tuple",level:2},{value:"helper",id:"helper",level:2}],f={toc:s},m="wrapper";function d(e){var t=e.components,n=(0,a.Z)(e,l);return(0,o.kt)(m,(0,r.Z)({},f,n,{components:t,mdxType:"MDXLayout"}),(0,o.kt)("h1",{id:"instanceof"},"instanceOf"),(0,o.kt)("h2",{id:"operator"},"operator"),(0,o.kt)("ul",null,(0,o.kt)("li",{parentName:"ul"},(0,o.kt)("a",{parentName:"li",href:"/docs/1.0.21-alpha/api/instanceof"},"instanceOf"))),(0,o.kt)("h2",{id:"tuple"},"tuple"),(0,o.kt)("ul",null,(0,o.kt)("li",{parentName:"ul"},'["instanceOf", T]'," ",(0,o.kt)("br",null)),(0,o.kt)("li",{parentName:"ul"},"const tupleInstanceOf = type(",'["instanceOf", Date]',")",(0,o.kt)("br",null))),(0,o.kt)("h2",{id:"helper"},"helper"),(0,o.kt)("ul",null,(0,o.kt)("li",{parentName:"ul"},"instanceOf(T) ",(0,o.kt)("br",null)),(0,o.kt)("li",{parentName:"ul"},"const helperInstanceOf = instanceOf(Date)",(0,o.kt)("br",null))))}d.isMDXComponent=!0}}]); \ No newline at end of file +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[6418],{7522:(e,t,n)=>{n.d(t,{Zo:()=>u,kt:()=>d});var r=n(9901);function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var c=r.createContext({}),p=function(e){var t=r.useContext(c),n=t;return e&&(n="function"==typeof e?e(t):l(l({},t),e)),n},u=function(e){var t=p(e.components);return r.createElement(c.Provider,{value:t},e.children)},s="mdxType",f={inlineCode:"code",wrapper:function(e){var t=e.children;return r.createElement(r.Fragment,{},t)}},m=r.forwardRef((function(e,t){var n=e.components,a=e.mdxType,o=e.originalType,c=e.parentName,u=i(e,["components","mdxType","originalType","parentName"]),s=p(n),m=a,d=s["".concat(c,".").concat(m)]||s[m]||f[m]||o;return n?r.createElement(d,l(l({ref:t},u),{},{components:n})):r.createElement(d,l({ref:t},u))}));function d(e,t){var n=arguments,a=t&&t.mdxType;if("string"==typeof e||a){var o=n.length,l=new Array(o);l[0]=m;var i={};for(var c in t)hasOwnProperty.call(t,c)&&(i[c]=t[c]);i.originalType=e,i[s]="string"==typeof e?e:a,l[1]=i;for(var p=2;p{n.r(t),n.d(t,{assets:()=>u,contentTitle:()=>c,default:()=>d,frontMatter:()=>i,metadata:()=>p,toc:()=>s});var r=n(4805),a=n(8),o=(n(9901),n(7522)),l=["components"],i={hide_table_of_contents:!0},c="instanceOf",p={unversionedId:"api/instanceof",id:"version-1.0.21-alpha/api/instanceof",title:"instanceOf",description:"operator",source:"@site/versioned_docs/version-1.0.21-alpha/api/instanceof.md",sourceDirName:"api",slug:"/api/instanceof",permalink:"/docs/1.0.21-alpha/api/instanceof",draft:!1,tags:[],version:"1.0.21-alpha",frontMatter:{hide_table_of_contents:!0}},u={},s=[{value:"operator",id:"operator",level:2},{value:"tuple",id:"tuple",level:2},{value:"helper",id:"helper",level:2}],f={toc:s},m="wrapper";function d(e){var t=e.components,n=(0,a.Z)(e,l);return(0,o.kt)(m,(0,r.Z)({},f,n,{components:t,mdxType:"MDXLayout"}),(0,o.kt)("h1",{id:"instanceof"},"instanceOf"),(0,o.kt)("h2",{id:"operator"},"operator"),(0,o.kt)("ul",null,(0,o.kt)("li",{parentName:"ul"},(0,o.kt)("a",{parentName:"li",href:"/docs/1.0.21-alpha/api/instanceof"},"instanceOf"))),(0,o.kt)("h2",{id:"tuple"},"tuple"),(0,o.kt)("ul",null,(0,o.kt)("li",{parentName:"ul"},'["instanceOf", T]'," ",(0,o.kt)("br",null)),(0,o.kt)("li",{parentName:"ul"},"const tupleInstanceOf = type(",'["instanceOf", Date]',")",(0,o.kt)("br",null))),(0,o.kt)("h2",{id:"helper"},"helper"),(0,o.kt)("ul",null,(0,o.kt)("li",{parentName:"ul"},"instanceOf(T) ",(0,o.kt)("br",null)),(0,o.kt)("li",{parentName:"ul"},"const helperInstanceOf = instanceOf(Date)",(0,o.kt)("br",null))))}d.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/094d205f.68748bb8.js b/assets/js/094d205f.88c59630.js similarity index 59% rename from assets/js/094d205f.68748bb8.js rename to assets/js/094d205f.88c59630.js index 21c8359436..eece6b1889 100644 --- a/assets/js/094d205f.68748bb8.js +++ b/assets/js/094d205f.88c59630.js @@ -1 +1 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[9751],{7522:(e,t,n)=>{n.d(t,{Zo:()=>u,kt:()=>d});var r=n(9901);function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var c=r.createContext({}),p=function(e){var t=r.useContext(c),n=t;return e&&(n="function"==typeof e?e(t):l(l({},t),e)),n},u=function(e){var t=p(e.components);return r.createElement(c.Provider,{value:t},e.children)},s="mdxType",f={inlineCode:"code",wrapper:function(e){var t=e.children;return r.createElement(r.Fragment,{},t)}},m=r.forwardRef((function(e,t){var n=e.components,a=e.mdxType,o=e.originalType,c=e.parentName,u=i(e,["components","mdxType","originalType","parentName"]),s=p(n),m=a,d=s["".concat(c,".").concat(m)]||s[m]||f[m]||o;return n?r.createElement(d,l(l({ref:t},u),{},{components:n})):r.createElement(d,l({ref:t},u))}));function d(e,t){var n=arguments,a=t&&t.mdxType;if("string"==typeof e||a){var o=n.length,l=new Array(o);l[0]=m;var i={};for(var c in t)hasOwnProperty.call(t,c)&&(i[c]=t[c]);i.originalType=e,i[s]="string"==typeof e?e:a,l[1]=i;for(var p=2;p{n.r(t),n.d(t,{assets:()=>u,contentTitle:()=>c,default:()=>d,frontMatter:()=>i,metadata:()=>p,toc:()=>s});var r=n(3341),a=n(1792),o=(n(9901),n(7522)),l=["components"],i={hide_table_of_contents:!0},c="instanceOf",p={unversionedId:"api/instanceof",id:"version-1.0.22-alpha/api/instanceof",title:"instanceOf",description:"operator",source:"@site/versioned_docs/version-1.0.22-alpha/api/instanceof.md",sourceDirName:"api",slug:"/api/instanceof",permalink:"/docs/api/instanceof",draft:!1,tags:[],version:"1.0.22-alpha",frontMatter:{hide_table_of_contents:!0}},u={},s=[{value:"operator",id:"operator",level:2},{value:"tuple",id:"tuple",level:2},{value:"helper",id:"helper",level:2}],f={toc:s},m="wrapper";function d(e){var t=e.components,n=(0,a.Z)(e,l);return(0,o.kt)(m,(0,r.Z)({},f,n,{components:t,mdxType:"MDXLayout"}),(0,o.kt)("h1",{id:"instanceof"},"instanceOf"),(0,o.kt)("h2",{id:"operator"},"operator"),(0,o.kt)("ul",null,(0,o.kt)("li",{parentName:"ul"},(0,o.kt)("a",{parentName:"li",href:"/docs/api/instanceof"},"instanceOf"))),(0,o.kt)("h2",{id:"tuple"},"tuple"),(0,o.kt)("ul",null,(0,o.kt)("li",{parentName:"ul"},'["instanceOf", T]'," ",(0,o.kt)("br",null)),(0,o.kt)("li",{parentName:"ul"},"const tupleInstanceOf = type(",'["instanceOf", Date]',")",(0,o.kt)("br",null))),(0,o.kt)("h2",{id:"helper"},"helper"),(0,o.kt)("ul",null,(0,o.kt)("li",{parentName:"ul"},"instanceOf(T) ",(0,o.kt)("br",null)),(0,o.kt)("li",{parentName:"ul"},"const helperInstanceOf = instanceOf(Date)",(0,o.kt)("br",null))))}d.isMDXComponent=!0}}]); \ No newline at end of file +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[9751],{7522:(e,t,n)=>{n.d(t,{Zo:()=>u,kt:()=>d});var r=n(9901);function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var c=r.createContext({}),p=function(e){var t=r.useContext(c),n=t;return e&&(n="function"==typeof e?e(t):l(l({},t),e)),n},u=function(e){var t=p(e.components);return r.createElement(c.Provider,{value:t},e.children)},s="mdxType",f={inlineCode:"code",wrapper:function(e){var t=e.children;return r.createElement(r.Fragment,{},t)}},m=r.forwardRef((function(e,t){var n=e.components,a=e.mdxType,o=e.originalType,c=e.parentName,u=i(e,["components","mdxType","originalType","parentName"]),s=p(n),m=a,d=s["".concat(c,".").concat(m)]||s[m]||f[m]||o;return n?r.createElement(d,l(l({ref:t},u),{},{components:n})):r.createElement(d,l({ref:t},u))}));function d(e,t){var n=arguments,a=t&&t.mdxType;if("string"==typeof e||a){var o=n.length,l=new Array(o);l[0]=m;var i={};for(var c in t)hasOwnProperty.call(t,c)&&(i[c]=t[c]);i.originalType=e,i[s]="string"==typeof e?e:a,l[1]=i;for(var p=2;p{n.r(t),n.d(t,{assets:()=>u,contentTitle:()=>c,default:()=>d,frontMatter:()=>i,metadata:()=>p,toc:()=>s});var r=n(4805),a=n(8),o=(n(9901),n(7522)),l=["components"],i={hide_table_of_contents:!0},c="instanceOf",p={unversionedId:"api/instanceof",id:"version-1.0.22-alpha/api/instanceof",title:"instanceOf",description:"operator",source:"@site/versioned_docs/version-1.0.22-alpha/api/instanceof.md",sourceDirName:"api",slug:"/api/instanceof",permalink:"/docs/api/instanceof",draft:!1,tags:[],version:"1.0.22-alpha",frontMatter:{hide_table_of_contents:!0}},u={},s=[{value:"operator",id:"operator",level:2},{value:"tuple",id:"tuple",level:2},{value:"helper",id:"helper",level:2}],f={toc:s},m="wrapper";function d(e){var t=e.components,n=(0,a.Z)(e,l);return(0,o.kt)(m,(0,r.Z)({},f,n,{components:t,mdxType:"MDXLayout"}),(0,o.kt)("h1",{id:"instanceof"},"instanceOf"),(0,o.kt)("h2",{id:"operator"},"operator"),(0,o.kt)("ul",null,(0,o.kt)("li",{parentName:"ul"},(0,o.kt)("a",{parentName:"li",href:"/docs/api/instanceof"},"instanceOf"))),(0,o.kt)("h2",{id:"tuple"},"tuple"),(0,o.kt)("ul",null,(0,o.kt)("li",{parentName:"ul"},'["instanceOf", T]'," ",(0,o.kt)("br",null)),(0,o.kt)("li",{parentName:"ul"},"const tupleInstanceOf = type(",'["instanceOf", Date]',")",(0,o.kt)("br",null))),(0,o.kt)("h2",{id:"helper"},"helper"),(0,o.kt)("ul",null,(0,o.kt)("li",{parentName:"ul"},"instanceOf(T) ",(0,o.kt)("br",null)),(0,o.kt)("li",{parentName:"ul"},"const helperInstanceOf = instanceOf(Date)",(0,o.kt)("br",null))))}d.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/0a1349f1.3f69fa36.js b/assets/js/0a1349f1.00f4e152.js similarity index 50% rename from assets/js/0a1349f1.3f69fa36.js rename to assets/js/0a1349f1.00f4e152.js index 1cd17ae199..0e8a54e646 100644 --- a/assets/js/0a1349f1.3f69fa36.js +++ b/assets/js/0a1349f1.00f4e152.js @@ -1 +1 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[3345],{7522:(e,n,r)=>{r.d(n,{Zo:()=>l,kt:()=>d});var t=r(9901);function o(e,n,r){return n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function a(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),r.push.apply(r,t)}return r}function i(e){for(var n=1;n=0||(o[r]=e[r]);return o}(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var c=t.createContext({}),s=function(e){var n=t.useContext(c),r=n;return e&&(r="function"==typeof e?e(n):i(i({},n),e)),r},l=function(e){var n=s(e.components);return t.createElement(c.Provider,{value:n},e.children)},u="mdxType",f={inlineCode:"code",wrapper:function(e){var n=e.children;return t.createElement(t.Fragment,{},n)}},m=t.forwardRef((function(e,n){var r=e.components,o=e.mdxType,a=e.originalType,c=e.parentName,l=p(e,["components","mdxType","originalType","parentName"]),u=s(r),m=o,d=u["".concat(c,".").concat(m)]||u[m]||f[m]||a;return r?t.createElement(d,i(i({ref:n},l),{},{components:r})):t.createElement(d,i({ref:n},l))}));function d(e,n){var r=arguments,o=n&&n.mdxType;if("string"==typeof e||o){var a=r.length,i=new Array(a);i[0]=m;var p={};for(var c in n)hasOwnProperty.call(n,c)&&(p[c]=n[c]);p.originalType=e,p[u]="string"==typeof e?e:o,i[1]=p;for(var s=2;s{r.r(n),r.d(n,{assets:()=>l,contentTitle:()=>c,default:()=>d,frontMatter:()=>p,metadata:()=>s,toc:()=>u});var t=r(3341),o=r(1792),a=(r(9901),r(7522)),i=["components"],p={hide_table_of_contents:!0},c="arkScope",s={unversionedId:"api/arkscope",id:"version-1.0.20-alpha/api/arkscope",title:"arkScope",description:"text",source:"@site/versioned_docs/version-1.0.20-alpha/api/arkscope.md",sourceDirName:"api",slug:"/api/arkscope",permalink:"/docs/1.0.20-alpha/api/arkscope",draft:!1,tags:[],version:"1.0.20-alpha",frontMatter:{hide_table_of_contents:!0}},l={},u=[{value:"text",id:"text",level:2}],f={toc:u},m="wrapper";function d(e){var n=e.components,r=(0,o.Z)(e,i);return(0,a.kt)(m,(0,t.Z)({},f,r,{components:n,mdxType:"MDXLayout"}),(0,a.kt)("h1",{id:"arkscope"},"arkScope"),(0,a.kt)("h2",{id:"text"},"text"),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-ts"},'arkScope: import("./scope.js").Scope<\n [\n {\n any: any\n bigint: bigint\n boolean: boolean\n false: false\n never: never\n null: null\n number: number\n object: object\n string: string\n symbol: symbol\n true: true\n unknown: unknown\n void: void\n undefined: undefined\n Function: (...args: any[]) => unknown\n Date: Date\n Error: Error\n Map: Map\n RegExp: RegExp\n Set: Set\n WeakMap: WeakMap\n WeakSet: WeakSet\n Promise: Promise\n alpha: string\n alphanumeric: string\n lowercase: string\n uppercase: string\n creditCard: string\n email: string\n uuid: string\n parsedNumber: (In: string) => number\n parsedInteger: (In: string) => number\n parsedDate: (In: string) => Date\n semver: string\n json: (In: string) => unknown\n integer: number\n },\n {},\n false\n ]\n>\n')))}d.isMDXComponent=!0}}]); \ No newline at end of file +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[3345],{7522:(e,n,r)=>{r.d(n,{Zo:()=>l,kt:()=>d});var t=r(9901);function o(e,n,r){return n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function a(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),r.push.apply(r,t)}return r}function i(e){for(var n=1;n=0||(o[r]=e[r]);return o}(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var c=t.createContext({}),s=function(e){var n=t.useContext(c),r=n;return e&&(r="function"==typeof e?e(n):i(i({},n),e)),r},l=function(e){var n=s(e.components);return t.createElement(c.Provider,{value:n},e.children)},u="mdxType",f={inlineCode:"code",wrapper:function(e){var n=e.children;return t.createElement(t.Fragment,{},n)}},m=t.forwardRef((function(e,n){var r=e.components,o=e.mdxType,a=e.originalType,c=e.parentName,l=p(e,["components","mdxType","originalType","parentName"]),u=s(r),m=o,d=u["".concat(c,".").concat(m)]||u[m]||f[m]||a;return r?t.createElement(d,i(i({ref:n},l),{},{components:r})):t.createElement(d,i({ref:n},l))}));function d(e,n){var r=arguments,o=n&&n.mdxType;if("string"==typeof e||o){var a=r.length,i=new Array(a);i[0]=m;var p={};for(var c in n)hasOwnProperty.call(n,c)&&(p[c]=n[c]);p.originalType=e,p[u]="string"==typeof e?e:o,i[1]=p;for(var s=2;s{r.r(n),r.d(n,{assets:()=>l,contentTitle:()=>c,default:()=>d,frontMatter:()=>p,metadata:()=>s,toc:()=>u});var t=r(4805),o=r(8),a=(r(9901),r(7522)),i=["components"],p={hide_table_of_contents:!0},c="arkScope",s={unversionedId:"api/arkscope",id:"version-1.0.20-alpha/api/arkscope",title:"arkScope",description:"text",source:"@site/versioned_docs/version-1.0.20-alpha/api/arkscope.md",sourceDirName:"api",slug:"/api/arkscope",permalink:"/docs/1.0.20-alpha/api/arkscope",draft:!1,tags:[],version:"1.0.20-alpha",frontMatter:{hide_table_of_contents:!0}},l={},u=[{value:"text",id:"text",level:2}],f={toc:u},m="wrapper";function d(e){var n=e.components,r=(0,o.Z)(e,i);return(0,a.kt)(m,(0,t.Z)({},f,r,{components:n,mdxType:"MDXLayout"}),(0,a.kt)("h1",{id:"arkscope"},"arkScope"),(0,a.kt)("h2",{id:"text"},"text"),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-ts"},'arkScope: import("./scope.js").Scope<\n [\n {\n any: any\n bigint: bigint\n boolean: boolean\n false: false\n never: never\n null: null\n number: number\n object: object\n string: string\n symbol: symbol\n true: true\n unknown: unknown\n void: void\n undefined: undefined\n Function: (...args: any[]) => unknown\n Date: Date\n Error: Error\n Map: Map\n RegExp: RegExp\n Set: Set\n WeakMap: WeakMap\n WeakSet: WeakSet\n Promise: Promise\n alpha: string\n alphanumeric: string\n lowercase: string\n uppercase: string\n creditCard: string\n email: string\n uuid: string\n parsedNumber: (In: string) => number\n parsedInteger: (In: string) => number\n parsedDate: (In: string) => Date\n semver: string\n json: (In: string) => unknown\n integer: number\n },\n {},\n false\n ]\n>\n')))}d.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/0a39420a.da285ec3.js b/assets/js/0a39420a.195cd219.js similarity index 50% rename from assets/js/0a39420a.da285ec3.js rename to assets/js/0a39420a.195cd219.js index 6e30177cef..73d5df500a 100644 --- a/assets/js/0a39420a.da285ec3.js +++ b/assets/js/0a39420a.195cd219.js @@ -1 +1 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[4990],{7522:(e,n,r)=>{r.d(n,{Zo:()=>l,kt:()=>d});var t=r(9901);function o(e,n,r){return n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function a(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),r.push.apply(r,t)}return r}function i(e){for(var n=1;n=0||(o[r]=e[r]);return o}(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var c=t.createContext({}),s=function(e){var n=t.useContext(c),r=n;return e&&(r="function"==typeof e?e(n):i(i({},n),e)),r},l=function(e){var n=s(e.components);return t.createElement(c.Provider,{value:n},e.children)},u="mdxType",f={inlineCode:"code",wrapper:function(e){var n=e.children;return t.createElement(t.Fragment,{},n)}},m=t.forwardRef((function(e,n){var r=e.components,o=e.mdxType,a=e.originalType,c=e.parentName,l=p(e,["components","mdxType","originalType","parentName"]),u=s(r),m=o,d=u["".concat(c,".").concat(m)]||u[m]||f[m]||a;return r?t.createElement(d,i(i({ref:n},l),{},{components:r})):t.createElement(d,i({ref:n},l))}));function d(e,n){var r=arguments,o=n&&n.mdxType;if("string"==typeof e||o){var a=r.length,i=new Array(a);i[0]=m;var p={};for(var c in n)hasOwnProperty.call(n,c)&&(p[c]=n[c]);p.originalType=e,p[u]="string"==typeof e?e:o,i[1]=p;for(var s=2;s{r.r(n),r.d(n,{assets:()=>l,contentTitle:()=>c,default:()=>d,frontMatter:()=>p,metadata:()=>s,toc:()=>u});var t=r(3341),o=r(1792),a=(r(9901),r(7522)),i=["components"],p={hide_table_of_contents:!0},c="arkScope",s={unversionedId:"api/arkscope",id:"version-1.0.21-alpha/api/arkscope",title:"arkScope",description:"text",source:"@site/versioned_docs/version-1.0.21-alpha/api/arkscope.md",sourceDirName:"api",slug:"/api/arkscope",permalink:"/docs/1.0.21-alpha/api/arkscope",draft:!1,tags:[],version:"1.0.21-alpha",frontMatter:{hide_table_of_contents:!0}},l={},u=[{value:"text",id:"text",level:2}],f={toc:u},m="wrapper";function d(e){var n=e.components,r=(0,o.Z)(e,i);return(0,a.kt)(m,(0,t.Z)({},f,r,{components:n,mdxType:"MDXLayout"}),(0,a.kt)("h1",{id:"arkscope"},"arkScope"),(0,a.kt)("h2",{id:"text"},"text"),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-ts"},'arkScope: import("./scope.js").Scope<\n [\n {\n any: any\n bigint: bigint\n boolean: boolean\n false: false\n never: never\n null: null\n number: number\n object: object\n string: string\n symbol: symbol\n true: true\n unknown: unknown\n void: void\n undefined: undefined\n Function: (...args: any[]) => unknown\n Date: Date\n Error: Error\n Map: Map\n RegExp: RegExp\n Set: Set\n WeakMap: WeakMap\n WeakSet: WeakSet\n Promise: Promise\n alpha: string\n alphanumeric: string\n lowercase: string\n uppercase: string\n creditCard: string\n email: string\n uuid: string\n parsedNumber: (In: string) => number\n parsedInteger: (In: string) => number\n parsedDate: (In: string) => Date\n semver: string\n json: (In: string) => unknown\n integer: number\n },\n {},\n false\n ]\n>\n')))}d.isMDXComponent=!0}}]); \ No newline at end of file +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[4990],{7522:(e,n,r)=>{r.d(n,{Zo:()=>l,kt:()=>d});var t=r(9901);function o(e,n,r){return n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function a(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),r.push.apply(r,t)}return r}function i(e){for(var n=1;n=0||(o[r]=e[r]);return o}(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var c=t.createContext({}),s=function(e){var n=t.useContext(c),r=n;return e&&(r="function"==typeof e?e(n):i(i({},n),e)),r},l=function(e){var n=s(e.components);return t.createElement(c.Provider,{value:n},e.children)},u="mdxType",f={inlineCode:"code",wrapper:function(e){var n=e.children;return t.createElement(t.Fragment,{},n)}},m=t.forwardRef((function(e,n){var r=e.components,o=e.mdxType,a=e.originalType,c=e.parentName,l=p(e,["components","mdxType","originalType","parentName"]),u=s(r),m=o,d=u["".concat(c,".").concat(m)]||u[m]||f[m]||a;return r?t.createElement(d,i(i({ref:n},l),{},{components:r})):t.createElement(d,i({ref:n},l))}));function d(e,n){var r=arguments,o=n&&n.mdxType;if("string"==typeof e||o){var a=r.length,i=new Array(a);i[0]=m;var p={};for(var c in n)hasOwnProperty.call(n,c)&&(p[c]=n[c]);p.originalType=e,p[u]="string"==typeof e?e:o,i[1]=p;for(var s=2;s{r.r(n),r.d(n,{assets:()=>l,contentTitle:()=>c,default:()=>d,frontMatter:()=>p,metadata:()=>s,toc:()=>u});var t=r(4805),o=r(8),a=(r(9901),r(7522)),i=["components"],p={hide_table_of_contents:!0},c="arkScope",s={unversionedId:"api/arkscope",id:"version-1.0.21-alpha/api/arkscope",title:"arkScope",description:"text",source:"@site/versioned_docs/version-1.0.21-alpha/api/arkscope.md",sourceDirName:"api",slug:"/api/arkscope",permalink:"/docs/1.0.21-alpha/api/arkscope",draft:!1,tags:[],version:"1.0.21-alpha",frontMatter:{hide_table_of_contents:!0}},l={},u=[{value:"text",id:"text",level:2}],f={toc:u},m="wrapper";function d(e){var n=e.components,r=(0,o.Z)(e,i);return(0,a.kt)(m,(0,t.Z)({},f,r,{components:n,mdxType:"MDXLayout"}),(0,a.kt)("h1",{id:"arkscope"},"arkScope"),(0,a.kt)("h2",{id:"text"},"text"),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-ts"},'arkScope: import("./scope.js").Scope<\n [\n {\n any: any\n bigint: bigint\n boolean: boolean\n false: false\n never: never\n null: null\n number: number\n object: object\n string: string\n symbol: symbol\n true: true\n unknown: unknown\n void: void\n undefined: undefined\n Function: (...args: any[]) => unknown\n Date: Date\n Error: Error\n Map: Map\n RegExp: RegExp\n Set: Set\n WeakMap: WeakMap\n WeakSet: WeakSet\n Promise: Promise\n alpha: string\n alphanumeric: string\n lowercase: string\n uppercase: string\n creditCard: string\n email: string\n uuid: string\n parsedNumber: (In: string) => number\n parsedInteger: (In: string) => number\n parsedDate: (In: string) => Date\n semver: string\n json: (In: string) => unknown\n integer: number\n },\n {},\n false\n ]\n>\n')))}d.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/0a61f398.3a937a08.js b/assets/js/0a61f398.b86b7d5b.js similarity index 62% rename from assets/js/0a61f398.3a937a08.js rename to assets/js/0a61f398.b86b7d5b.js index 456b254910..804643f54e 100644 --- a/assets/js/0a61f398.3a937a08.js +++ b/assets/js/0a61f398.b86b7d5b.js @@ -1 +1 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[4643],{7522:(e,t,r)=>{r.d(t,{Zo:()=>s,kt:()=>f});var n=r(9901);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function c(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var p=n.createContext({}),l=function(e){var t=n.useContext(p),r=t;return e&&(r="function"==typeof e?e(t):c(c({},t),e)),r},s=function(e){var t=l(e.components);return n.createElement(p.Provider,{value:t},e.children)},u="mdxType",m={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},d=n.forwardRef((function(e,t){var r=e.components,o=e.mdxType,a=e.originalType,p=e.parentName,s=i(e,["components","mdxType","originalType","parentName"]),u=l(r),d=o,f=u["".concat(p,".").concat(d)]||u[d]||m[d]||a;return r?n.createElement(f,c(c({ref:t},s),{},{components:r})):n.createElement(f,c({ref:t},s))}));function f(e,t){var r=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var a=r.length,c=new Array(a);c[0]=d;var i={};for(var p in t)hasOwnProperty.call(t,p)&&(i[p]=t[p]);i.originalType=e,i[u]="string"==typeof e?e:o,c[1]=i;for(var l=2;l{r.r(t),r.d(t,{assets:()=>s,contentTitle:()=>p,default:()=>f,frontMatter:()=>i,metadata:()=>l,toc:()=>u});var n=r(3341),o=r(1792),a=(r(9901),r(7522)),c=["components"],i={hide_table_of_contents:!0},p="Problem",l={unversionedId:"api/problem",id:"version-1.0.21-alpha/api/problem",title:"Problem",description:"text",source:"@site/versioned_docs/version-1.0.21-alpha/api/problem.md",sourceDirName:"api",slug:"/api/problem",permalink:"/docs/1.0.21-alpha/api/problem",draft:!1,tags:[],version:"1.0.21-alpha",frontMatter:{hide_table_of_contents:!0}},s={},u=[{value:"text",id:"text",level:2}],m={toc:u},d="wrapper";function f(e){var t=e.components,r=(0,o.Z)(e,c);return(0,a.kt)(d,(0,n.Z)({},m,r,{components:t,mdxType:"MDXLayout"}),(0,a.kt)("h1",{id:"problem"},"Problem"),(0,a.kt)("h2",{id:"text"},"text"),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-ts"},"export declare class Problem {\n code: code\n path: Path\n private data\n private source\n private writers\n parts?: Problem[]\n constructor(\n code: code,\n path: Path,\n data: ProblemData,\n source: ProblemSource,\n writers: ProblemWriters\n )\n toString(): string\n get message(): string\n get reason(): string\n get mustBe(): string\n}\n")))}f.isMDXComponent=!0}}]); \ No newline at end of file +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[4643],{7522:(e,t,r)=>{r.d(t,{Zo:()=>s,kt:()=>f});var n=r(9901);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function c(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var p=n.createContext({}),l=function(e){var t=n.useContext(p),r=t;return e&&(r="function"==typeof e?e(t):c(c({},t),e)),r},s=function(e){var t=l(e.components);return n.createElement(p.Provider,{value:t},e.children)},u="mdxType",m={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},d=n.forwardRef((function(e,t){var r=e.components,o=e.mdxType,a=e.originalType,p=e.parentName,s=i(e,["components","mdxType","originalType","parentName"]),u=l(r),d=o,f=u["".concat(p,".").concat(d)]||u[d]||m[d]||a;return r?n.createElement(f,c(c({ref:t},s),{},{components:r})):n.createElement(f,c({ref:t},s))}));function f(e,t){var r=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var a=r.length,c=new Array(a);c[0]=d;var i={};for(var p in t)hasOwnProperty.call(t,p)&&(i[p]=t[p]);i.originalType=e,i[u]="string"==typeof e?e:o,c[1]=i;for(var l=2;l{r.r(t),r.d(t,{assets:()=>s,contentTitle:()=>p,default:()=>f,frontMatter:()=>i,metadata:()=>l,toc:()=>u});var n=r(4805),o=r(8),a=(r(9901),r(7522)),c=["components"],i={hide_table_of_contents:!0},p="Problem",l={unversionedId:"api/problem",id:"version-1.0.21-alpha/api/problem",title:"Problem",description:"text",source:"@site/versioned_docs/version-1.0.21-alpha/api/problem.md",sourceDirName:"api",slug:"/api/problem",permalink:"/docs/1.0.21-alpha/api/problem",draft:!1,tags:[],version:"1.0.21-alpha",frontMatter:{hide_table_of_contents:!0}},s={},u=[{value:"text",id:"text",level:2}],m={toc:u},d="wrapper";function f(e){var t=e.components,r=(0,o.Z)(e,c);return(0,a.kt)(d,(0,n.Z)({},m,r,{components:t,mdxType:"MDXLayout"}),(0,a.kt)("h1",{id:"problem"},"Problem"),(0,a.kt)("h2",{id:"text"},"text"),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-ts"},"export declare class Problem {\n code: code\n path: Path\n private data\n private source\n private writers\n parts?: Problem[]\n constructor(\n code: code,\n path: Path,\n data: ProblemData,\n source: ProblemSource,\n writers: ProblemWriters\n )\n toString(): string\n get message(): string\n get reason(): string\n get mustBe(): string\n}\n")))}f.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/4edc808e.948a20dd.js b/assets/js/0bd12973.0f5e75bd.js similarity index 79% rename from assets/js/4edc808e.948a20dd.js rename to assets/js/0bd12973.0f5e75bd.js index 67607fa53e..83a957a730 100644 --- a/assets/js/4edc808e.948a20dd.js +++ b/assets/js/0bd12973.0f5e75bd.js @@ -1 +1 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[4173],{7522:(e,n,t)=>{t.d(n,{Zo:()=>c,kt:()=>f});var r=t(9901);function a(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function o(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function i(e){for(var n=1;n=0||(a[t]=e[t]);return a}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}var p=r.createContext({}),l=function(e){var n=r.useContext(p),t=n;return e&&(t="function"==typeof e?e(n):i(i({},n),e)),t},c=function(e){var n=l(e.components);return r.createElement(p.Provider,{value:n},e.children)},d="mdxType",m={inlineCode:"code",wrapper:function(e){var n=e.children;return r.createElement(r.Fragment,{},n)}},u=r.forwardRef((function(e,n){var t=e.components,a=e.mdxType,o=e.originalType,p=e.parentName,c=s(e,["components","mdxType","originalType","parentName"]),d=l(t),u=a,f=d["".concat(p,".").concat(u)]||d[u]||m[u]||o;return t?r.createElement(f,i(i({ref:n},c),{},{components:t})):r.createElement(f,i({ref:n},c))}));function f(e,n){var t=arguments,a=n&&n.mdxType;if("string"==typeof e||a){var o=t.length,i=new Array(o);i[0]=u;var s={};for(var p in n)hasOwnProperty.call(n,p)&&(s[p]=n[p]);s.originalType=e,s[d]="string"==typeof e?e:a,i[1]=s;for(var l=2;l{t.d(n,{g:()=>y});var r=t(2378),a=t(3223),o=t(3800),i=t(966),s=t(9901),p=t(3346);var l=function(e){var n=c[e];return'import {populateDemo} from "./populateDemo"\n(async () => {\n try {\n '+n[0]+"\n populateDemo("+n[1]+')\n } catch(e) {\n populateDemo({ \n type: {\n definition: ""\n },\n data: "",\n problems: "ParseError: " + e.originalErr.message\n } as any)\n }\n})()'},c={type:['const { user, data, problems } = await import("./type")',"{ type: user, data, problems }"],scope:['const { types, data, problems } = await import("./scope")',"{ type: types.package, data, problems }"],demo:['const { pkg, data, problems } = await import("./demo")',"{ type: pkg, data, problems }"]};var d={"index.html":'\n \n\n
\n
\n
\n

Definition

\n
\n
\n
\n
\n
\n

Output

\n
\n
\n
\n
\n',"demo.css":'body {\n font-family: "Cascadia Code", sans-serif;\n background-color: hsl(220 18% 10%);\n}\n\n#demo {\n display: flex;\n flex-direction: column;\n gap: 1rem;\n margin: -0.5rem;\n padding: 0.5rem;\n}\n\n#input {\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n gap: 0.5rem;\n}\n\n.section {\n display: flex;\n flex-direction: column;\n flex-grow: 1;\n gap: 0.5rem;\n}\n\np {\n white-space: pre-wrap;\n}\n\npre {\n white-space: pre-wrap;\n}\n\nh3 {\n margin: 0px;\n color: #fffff0;\n}\n\n.key {\n color: #80cff8;\n}\n.val {\n color: #f5cf8f;\n}\n.operator {\n color: #eb9f2e;\n}\n.bracket {\n color: #009eff;\n}\n.card {\n padding: 1rem;\n background-color: rgb(18, 18, 18);\n color: rgb(255, 255, 255);\n /* transition: box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms; */\n border-radius: 1rem;\n box-shadow: rgba(0, 0, 0, 0.2) 0px 2px 1px -1px,\n rgba(0, 0, 0, 0.14) 0px 1px 1px 0px, rgba(0, 0, 0, 0.12) 0px 1px 3px 0px;\n background-image: linear-gradient(\n rgba(255, 255, 255, 0.05),\n rgba(255, 255, 255, 0.05)\n );\n height: 100%;\n}\n',"populateDemo.ts":'import "./demo.css"\nimport type { Problems, Type } from "arktype"\nimport { stringify } from "arktype/internal/utils/serialize.js"\n\ntype PopulateDemoArgs = {\n type: Type\n data: unknown\n problems: Problems\n}\nexport const populateDemo = ({ data, type, problems }: PopulateDemoArgs) => {\n const defElement = document.querySelector("#definition")!\n defElement.textContent = stringify(type.definition, 2)\n defElement.innerHTML = recolor(defElement.innerHTML)\n\n const resultElement = document.querySelector("#output")!\n if (problems) {\n resultElement.textContent = `\u274c problems:\n\n${problems}`\n } else {\n resultElement.textContent = `\u2705 data:\n\n${stringify(data, 2)}`\n resultElement.innerHTML = recolor(resultElement.innerHTML)\n }\n}\n\nconst recolor = (input: string) => {\n const lines = input.split("\\n")\n const fixedInput: string[] = [""]\n for (const line of lines) {\n if (line.includes(":")) {\n const parts = line.split(":")\n fixedInput.push(`${buildKey(parts[0])}: ${buildVal(parts[1])}`)\n } else {\n fixedInput.push(addArkdarkStyles(line))\n }\n }\n fixedInput.push("")\n return fixedInput.join("\\n")\n}\n\nconst buildKey = (key: string) => {\n return `${key}`\n}\nconst buildVal = (val: string) => {\n const formatted = addArkdarkStyles(val.trim())\n if (formatted[formatted.length - 1] === ",") {\n return `${formatted.replace(",", "")},`\n } else if (formatted[formatted.length - 1] === "{") {\n return "{"\n }\n return `${formatted}`\n}\nconst addArkdarkStyles = (line: string) => {\n const brackets = ["[", "]", "(", ")"]\n const operators = [">", "<", ">e;", "<e;", "|"]\n let modifiedLine = line\n for (const bracket of brackets) {\n modifiedLine = modifiedLine.replaceAll(\n bracket,\n `${bracket}`\n )\n }\n for (const operator of operators) {\n modifiedLine = modifiedLine.replaceAll(\n operator,\n `${operator}`\n )\n }\n return modifiedLine\n}\n',"tsconfig.json":JSON.stringify({compilerOptions:{module:"esnext",target:"esnext",strict:!0}},null,4)},m={type:'import { type } from "arktype"\n\n// Definitions are statically parsed and inferred as TS.\nexport const user = type({\n name: "string",\n device: {\n platform: "\'android\'|\'ios\'",\n "version?": "number"\n }\n})\n\n// Validators return typed data or clear, customizable errors.\nexport const { data, problems } = user({\n name: "Alan Turing",\n device: {\n // problems.summary: "device/platform must be \'android\' or \'ios\' (was \'enigma\')"\n platform: "enigma"\n }\n})\n',scope:'import { scope } from "arktype"\n\n// Scopes are collections of types that can reference each other.\nexport const types = scope({\n package: {\n name: "string",\n "dependencies?": "package[]",\n "contributors?": "contributor[]"\n },\n contributor: {\n // Subtypes like \'email\' are inferred like \'string\' but provide additional validation at runtime.\n email: "email",\n "packages?": "package[]"\n }\n}).compile()\n\n// Cyclic types are inferred to arbitrary depth...\nexport type Package = typeof types.package.infer\n\n// And can validate cyclic data.\nconst packageData: Package = {\n name: "arktype",\n dependencies: [{ name: "typescript" }],\n contributors: [{ email: "david@sharktypeio" }]\n}\npackageData.dependencies![0].dependencies = [packageData]\n\nexport const { data, problems } = types.package(packageData)\n',demo:'import { type } from "arktype"\n\n// Define your type...\nexport const pkg = type({\n name: "string",\n version: "semver",\n "contributors?": "1{t.r(n),t.d(n,{assets:()=>d,contentTitle:()=>l,default:()=>y,frontMatter:()=>p,metadata:()=>c,toc:()=>m});var r=t(3341),a=t(1792),o=(t(9901),t(7522)),i=t(4213),s=["components"],p={id:"intro",hide_table_of_contents:!0,title:"Intro"},l="Getting Started",c={unversionedId:"intro",id:"intro",title:"Intro",description:'replace(./dev/arktype.io/static,) |> replace({ type },{"{"} type {"}"}) --\x3e',source:"@site/docs/index.mdx",sourceDirName:".",slug:"/",permalink:"/docs/next/",draft:!1,tags:[],version:"current",frontMatter:{id:"intro",hide_table_of_contents:!0,title:"Intro"},sidebar:"sidebar",next:{title:"Scopes",permalink:"/docs/next/scopes"}},d={},m=[{value:"Install \ud83d\udce612KB gzipped, 0 dependencies",id:"install-12kb-gzipped-0-dependencies",level:2},{value:"Your first type",id:"your-first-type",level:2}],u={toc:m},f="wrapper";function y(e){var n=e.components,t=(0,a.Z)(e,s);return(0,o.kt)(f,(0,r.Z)({},u,t,{components:n,mdxType:"MDXLayout"}),(0,o.kt)("h1",{id:"getting-started"},"Getting Started"),(0,o.kt)("h2",{id:"install-12kb-gzipped-0-dependencies"},"Install ",(0,o.kt)("sub",null,(0,o.kt)("sub",null,"\ud83d\udce6",(0,o.kt)("inlineCode",{parentName:"h2"},"12KB")," gzipped, ",(0,o.kt)("inlineCode",{parentName:"h2"},"0")," dependencies"))),(0,o.kt)("img",{src:"/img/npm.svg",alt:"Npm Icon",height:"16px"})," ",(0,o.kt)("code",null,"npm install arktype"),(0,o.kt)("sub",null,"(or whatever package manager you prefer)"),(0,o.kt)("br",null),(0,o.kt)("p",null,"Our types are tested in ",(0,o.kt)("a",{parentName:"p",href:"https://www.typescriptlang.org/tsconfig#strict"},"strict-mode")," with TypeScript versions ",(0,o.kt)("inlineCode",{parentName:"p"},"4.8"),", ",(0,o.kt)("inlineCode",{parentName:"p"},"4.9"),", and ",(0,o.kt)("inlineCode",{parentName:"p"},"5.0"),"."),(0,o.kt)("p",null,(0,o.kt)("em",{parentName:"p"},"Our APIs have mostly stabilized, but details may still change during the alpha/beta stages of our 1.0 release. If you have suggestions that may require a breaking change, now is the time to let us know!")," \u26f5"),(0,o.kt)("h2",{id:"your-first-type"},"Your first type"),(0,o.kt)(i.g,{embedId:"type",mdxType:"StackBlitzDemo"}))}y.isMDXComponent=!0}}]); \ No newline at end of file +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[8709],{7522:(e,n,t)=>{t.d(n,{Zo:()=>c,kt:()=>f});var r=t(9901);function a(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function o(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function i(e){for(var n=1;n=0||(a[t]=e[t]);return a}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}var p=r.createContext({}),l=function(e){var n=r.useContext(p),t=n;return e&&(t="function"==typeof e?e(n):i(i({},n),e)),t},c=function(e){var n=l(e.components);return r.createElement(p.Provider,{value:n},e.children)},d="mdxType",m={inlineCode:"code",wrapper:function(e){var n=e.children;return r.createElement(r.Fragment,{},n)}},u=r.forwardRef((function(e,n){var t=e.components,a=e.mdxType,o=e.originalType,p=e.parentName,c=s(e,["components","mdxType","originalType","parentName"]),d=l(t),u=a,f=d["".concat(p,".").concat(u)]||d[u]||m[u]||o;return t?r.createElement(f,i(i({ref:n},c),{},{components:t})):r.createElement(f,i({ref:n},c))}));function f(e,n){var t=arguments,a=n&&n.mdxType;if("string"==typeof e||a){var o=t.length,i=new Array(o);i[0]=u;var s={};for(var p in n)hasOwnProperty.call(n,p)&&(s[p]=n[p]);s.originalType=e,s[d]="string"==typeof e?e:a,i[1]=s;for(var l=2;l{t.d(n,{g:()=>y});var r=t(6632),a=t(2786),o=t(3800),i=t(966),s=t(9901),p=t(3346);var l=function(e){var n=c[e];return'import {populateDemo} from "./populateDemo"\n(async () => {\n try {\n '+n[0]+"\n populateDemo("+n[1]+')\n } catch(e) {\n populateDemo({ \n type: {\n definition: ""\n },\n data: "",\n problems: "ParseError: " + e.originalErr.message\n } as any)\n }\n})()'},c={type:['const { user, data, problems } = await import("./type")',"{ type: user, data, problems }"],scope:['const { types, data, problems } = await import("./scope")',"{ type: types.package, data, problems }"],demo:['const { pkg, data, problems } = await import("./demo")',"{ type: pkg, data, problems }"]};var d={"index.html":'\n \n\n
\n
\n
\n

Definition

\n
\n
\n
\n
\n
\n

Output

\n
\n
\n
\n
\n',"demo.css":'body {\n font-family: "Cascadia Code", sans-serif;\n background-color: hsl(220 18% 10%);\n}\n\n#demo {\n display: flex;\n flex-direction: column;\n gap: 1rem;\n margin: -0.5rem;\n padding: 0.5rem;\n}\n\n#input {\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n gap: 0.5rem;\n}\n\n.section {\n display: flex;\n flex-direction: column;\n flex-grow: 1;\n gap: 0.5rem;\n}\n\np {\n white-space: pre-wrap;\n}\n\npre {\n white-space: pre-wrap;\n}\n\nh3 {\n margin: 0px;\n color: #fffff0;\n}\n\n.key {\n color: #80cff8;\n}\n.val {\n color: #f5cf8f;\n}\n.operator {\n color: #eb9f2e;\n}\n.bracket {\n color: #009eff;\n}\n.card {\n padding: 1rem;\n background-color: rgb(18, 18, 18);\n color: rgb(255, 255, 255);\n /* transition: box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms; */\n border-radius: 1rem;\n box-shadow: rgba(0, 0, 0, 0.2) 0px 2px 1px -1px,\n rgba(0, 0, 0, 0.14) 0px 1px 1px 0px, rgba(0, 0, 0, 0.12) 0px 1px 3px 0px;\n background-image: linear-gradient(\n rgba(255, 255, 255, 0.05),\n rgba(255, 255, 255, 0.05)\n );\n height: 100%;\n}\n',"populateDemo.ts":'import "./demo.css"\nimport type { Problems, Type } from "arktype"\nimport { stringify } from "arktype/internal/utils/serialize.js"\n\ntype PopulateDemoArgs = {\n type: Type\n data: unknown\n problems: Problems\n}\nexport const populateDemo = ({ data, type, problems }: PopulateDemoArgs) => {\n const defElement = document.querySelector("#definition")!\n defElement.textContent = stringify(type.definition, 2)\n defElement.innerHTML = recolor(defElement.innerHTML)\n\n const resultElement = document.querySelector("#output")!\n if (problems) {\n resultElement.textContent = `\u274c problems:\n\n${problems}`\n } else {\n resultElement.textContent = `\u2705 data:\n\n${stringify(data, 2)}`\n resultElement.innerHTML = recolor(resultElement.innerHTML)\n }\n}\n\nconst recolor = (input: string) => {\n const lines = input.split("\\n")\n const fixedInput: string[] = [""]\n for (const line of lines) {\n if (line.includes(":")) {\n const parts = line.split(":")\n fixedInput.push(`${buildKey(parts[0])}: ${buildVal(parts[1])}`)\n } else {\n fixedInput.push(addArkdarkStyles(line))\n }\n }\n fixedInput.push("")\n return fixedInput.join("\\n")\n}\n\nconst buildKey = (key: string) => {\n return `${key}`\n}\nconst buildVal = (val: string) => {\n const formatted = addArkdarkStyles(val.trim())\n if (formatted[formatted.length - 1] === ",") {\n return `${formatted.replace(",", "")},`\n } else if (formatted[formatted.length - 1] === "{") {\n return "{"\n }\n return `${formatted}`\n}\nconst addArkdarkStyles = (line: string) => {\n const brackets = ["[", "]", "(", ")"]\n const operators = [">", "<", ">e;", "<e;", "|"]\n let modifiedLine = line\n for (const bracket of brackets) {\n modifiedLine = modifiedLine.replaceAll(\n bracket,\n `${bracket}`\n )\n }\n for (const operator of operators) {\n modifiedLine = modifiedLine.replaceAll(\n operator,\n `${operator}`\n )\n }\n return modifiedLine\n}\n',"tsconfig.json":JSON.stringify({compilerOptions:{module:"esnext",target:"esnext",strict:!0}},null,4)},m={type:'import { type } from "arktype"\n\n// Definitions are statically parsed and inferred as TS.\nexport const user = type({\n name: "string",\n device: {\n platform: "\'android\'|\'ios\'",\n "version?": "number"\n }\n})\n\n// Validators return typed data or clear, customizable errors.\nexport const { data, problems } = user({\n name: "Alan Turing",\n device: {\n // problems.summary: "device/platform must be \'android\' or \'ios\' (was \'enigma\')"\n platform: "enigma"\n }\n})\n',scope:'import { scope } from "arktype"\n\n// Scopes are collections of types that can reference each other.\nexport const types = scope({\n package: {\n name: "string",\n "dependencies?": "package[]",\n "contributors?": "contributor[]"\n },\n contributor: {\n // Subtypes like \'email\' are inferred like \'string\' but provide additional validation at runtime.\n email: "email",\n "packages?": "package[]"\n }\n}).compile()\n\n// Cyclic types are inferred to arbitrary depth...\nexport type Package = typeof types.package.infer\n\n// And can validate cyclic data.\nconst packageData: Package = {\n name: "arktype",\n dependencies: [{ name: "typescript" }],\n contributors: [{ email: "david@sharktypeio" }]\n}\npackageData.dependencies![0].dependencies = [packageData]\n\nexport const { data, problems } = types.package(packageData)\n',demo:'import { type } from "arktype"\n\n// Define your type...\nexport const pkg = type({\n name: "string",\n version: "semver",\n "contributors?": "1{t.r(n),t.d(n,{assets:()=>d,contentTitle:()=>l,default:()=>y,frontMatter:()=>p,metadata:()=>c,toc:()=>m});var r=t(4805),a=t(8),o=(t(9901),t(7522)),i=t(4534),s=["components"],p={id:"intro",hide_table_of_contents:!0,title:"Intro"},l="Getting Started",c={unversionedId:"intro",id:"version-1.0.20-alpha/intro",title:"Intro",description:'replace(./dev/arktype.io/static,) |> replace({ type },{"{"} type {"}"}) --\x3e',source:"@site/versioned_docs/version-1.0.20-alpha/index.mdx",sourceDirName:".",slug:"/",permalink:"/docs/1.0.20-alpha/",draft:!1,tags:[],version:"1.0.20-alpha",frontMatter:{id:"intro",hide_table_of_contents:!0,title:"Intro"},sidebar:"sidebar",next:{title:"Scopes",permalink:"/docs/1.0.20-alpha/scopes"}},d={},m=[{value:"Install \ud83d\udce612KB gzipped, 0 dependencies",id:"install-12kb-gzipped-0-dependencies",level:2},{value:"Your first type",id:"your-first-type",level:2}],u={toc:m},f="wrapper";function y(e){var n=e.components,t=(0,a.Z)(e,s);return(0,o.kt)(f,(0,r.Z)({},u,t,{components:n,mdxType:"MDXLayout"}),(0,o.kt)("h1",{id:"getting-started"},"Getting Started"),(0,o.kt)("h2",{id:"install-12kb-gzipped-0-dependencies"},"Install ",(0,o.kt)("sub",null,(0,o.kt)("sub",null,"\ud83d\udce6",(0,o.kt)("inlineCode",{parentName:"h2"},"12KB")," gzipped, ",(0,o.kt)("inlineCode",{parentName:"h2"},"0")," dependencies"))),(0,o.kt)("img",{src:"/img/npm.svg",alt:"Npm Icon",height:"16px"})," ",(0,o.kt)("code",null,"npm install arktype"),(0,o.kt)("sub",null,"(or whatever package manager you prefer)"),(0,o.kt)("br",null),(0,o.kt)("p",null,"Our types are tested in ",(0,o.kt)("a",{parentName:"p",href:"https://www.typescriptlang.org/tsconfig#strict"},"strict-mode")," with TypeScript versions ",(0,o.kt)("inlineCode",{parentName:"p"},"4.8"),", ",(0,o.kt)("inlineCode",{parentName:"p"},"4.9"),", and ",(0,o.kt)("inlineCode",{parentName:"p"},"5.0"),"."),(0,o.kt)("p",null,(0,o.kt)("em",{parentName:"p"},"Our APIs have mostly stabilized, but details may still change during the alpha/beta stages of our 1.0 release. If you have suggestions that may require a breaking change, now is the time to let us know!")," \u26f5"),(0,o.kt)("h2",{id:"your-first-type"},"Your first type"),(0,o.kt)(i.g,{embedId:"type",mdxType:"StackBlitzDemo"}))}y.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/0bd12973.261fe27e.js b/assets/js/0bd12973.261fe27e.js deleted file mode 100644 index 8dd22ed948..0000000000 --- a/assets/js/0bd12973.261fe27e.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[8709],{7522:(e,n,t)=>{t.d(n,{Zo:()=>c,kt:()=>f});var r=t(9901);function a(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function o(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function i(e){for(var n=1;n=0||(a[t]=e[t]);return a}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}var p=r.createContext({}),l=function(e){var n=r.useContext(p),t=n;return e&&(t="function"==typeof e?e(n):i(i({},n),e)),t},c=function(e){var n=l(e.components);return r.createElement(p.Provider,{value:n},e.children)},d="mdxType",m={inlineCode:"code",wrapper:function(e){var n=e.children;return r.createElement(r.Fragment,{},n)}},u=r.forwardRef((function(e,n){var t=e.components,a=e.mdxType,o=e.originalType,p=e.parentName,c=s(e,["components","mdxType","originalType","parentName"]),d=l(t),u=a,f=d["".concat(p,".").concat(u)]||d[u]||m[u]||o;return t?r.createElement(f,i(i({ref:n},c),{},{components:t})):r.createElement(f,i({ref:n},c))}));function f(e,n){var t=arguments,a=n&&n.mdxType;if("string"==typeof e||a){var o=t.length,i=new Array(o);i[0]=u;var s={};for(var p in n)hasOwnProperty.call(n,p)&&(s[p]=n[p]);s.originalType=e,s[d]="string"==typeof e?e:a,i[1]=s;for(var l=2;l{t.d(n,{g:()=>y});var r=t(2378),a=t(3223),o=t(3800),i=t(966),s=t(9901),p=t(3346);var l=function(e){var n=c[e];return'import {populateDemo} from "./populateDemo"\n(async () => {\n try {\n '+n[0]+"\n populateDemo("+n[1]+')\n } catch(e) {\n populateDemo({ \n type: {\n definition: ""\n },\n data: "",\n problems: "ParseError: " + e.originalErr.message\n } as any)\n }\n})()'},c={type:['const { user, data, problems } = await import("./type")',"{ type: user, data, problems }"],scope:['const { types, data, problems } = await import("./scope")',"{ type: types.package, data, problems }"],demo:['const { pkg, data, problems } = await import("./demo")',"{ type: pkg, data, problems }"]};var d={"index.html":'\n \n\n
\n
\n
\n

Definition

\n
\n
\n
\n
\n
\n

Output

\n
\n
\n
\n
\n',"demo.css":'body {\n font-family: "Cascadia Code", sans-serif;\n background-color: hsl(220 18% 10%);\n}\n\n#demo {\n display: flex;\n flex-direction: column;\n gap: 1rem;\n margin: -0.5rem;\n padding: 0.5rem;\n}\n\n#input {\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n gap: 0.5rem;\n}\n\n.section {\n display: flex;\n flex-direction: column;\n flex-grow: 1;\n gap: 0.5rem;\n}\n\np {\n white-space: pre-wrap;\n}\n\npre {\n white-space: pre-wrap;\n}\n\nh3 {\n margin: 0px;\n color: #fffff0;\n}\n\n.key {\n color: #80cff8;\n}\n.val {\n color: #f5cf8f;\n}\n.operator {\n color: #eb9f2e;\n}\n.bracket {\n color: #009eff;\n}\n.card {\n padding: 1rem;\n background-color: rgb(18, 18, 18);\n color: rgb(255, 255, 255);\n /* transition: box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms; */\n border-radius: 1rem;\n box-shadow: rgba(0, 0, 0, 0.2) 0px 2px 1px -1px,\n rgba(0, 0, 0, 0.14) 0px 1px 1px 0px, rgba(0, 0, 0, 0.12) 0px 1px 3px 0px;\n background-image: linear-gradient(\n rgba(255, 255, 255, 0.05),\n rgba(255, 255, 255, 0.05)\n );\n height: 100%;\n}\n',"populateDemo.ts":'import "./demo.css"\nimport type { Problems, Type } from "arktype"\nimport { stringify } from "arktype/internal/utils/serialize.js"\n\ntype PopulateDemoArgs = {\n type: Type\n data: unknown\n problems: Problems\n}\nexport const populateDemo = ({ data, type, problems }: PopulateDemoArgs) => {\n const defElement = document.querySelector("#definition")!\n defElement.textContent = stringify(type.definition, 2)\n defElement.innerHTML = recolor(defElement.innerHTML)\n\n const resultElement = document.querySelector("#output")!\n if (problems) {\n resultElement.textContent = `\u274c problems:\n\n${problems}`\n } else {\n resultElement.textContent = `\u2705 data:\n\n${stringify(data, 2)}`\n resultElement.innerHTML = recolor(resultElement.innerHTML)\n }\n}\n\nconst recolor = (input: string) => {\n const lines = input.split("\\n")\n const fixedInput: string[] = [""]\n for (const line of lines) {\n if (line.includes(":")) {\n const parts = line.split(":")\n fixedInput.push(`${buildKey(parts[0])}: ${buildVal(parts[1])}`)\n } else {\n fixedInput.push(addArkdarkStyles(line))\n }\n }\n fixedInput.push("")\n return fixedInput.join("\\n")\n}\n\nconst buildKey = (key: string) => {\n return `${key}`\n}\nconst buildVal = (val: string) => {\n const formatted = addArkdarkStyles(val.trim())\n if (formatted[formatted.length - 1] === ",") {\n return `${formatted.replace(",", "")},`\n } else if (formatted[formatted.length - 1] === "{") {\n return "{"\n }\n return `${formatted}`\n}\nconst addArkdarkStyles = (line: string) => {\n const brackets = ["[", "]", "(", ")"]\n const operators = [">", "<", ">e;", "<e;", "|"]\n let modifiedLine = line\n for (const bracket of brackets) {\n modifiedLine = modifiedLine.replaceAll(\n bracket,\n `${bracket}`\n )\n }\n for (const operator of operators) {\n modifiedLine = modifiedLine.replaceAll(\n operator,\n `${operator}`\n )\n }\n return modifiedLine\n}\n',"tsconfig.json":JSON.stringify({compilerOptions:{module:"esnext",target:"esnext",strict:!0}},null,4)},m={type:'import { type } from "arktype"\n\n// Definitions are statically parsed and inferred as TS.\nexport const user = type({\n name: "string",\n device: {\n platform: "\'android\'|\'ios\'",\n "version?": "number"\n }\n})\n\n// Validators return typed data or clear, customizable errors.\nexport const { data, problems } = user({\n name: "Alan Turing",\n device: {\n // problems.summary: "device/platform must be \'android\' or \'ios\' (was \'enigma\')"\n platform: "enigma"\n }\n})\n',scope:'import { scope } from "arktype"\n\n// Scopes are collections of types that can reference each other.\nexport const types = scope({\n package: {\n name: "string",\n "dependencies?": "package[]",\n "contributors?": "contributor[]"\n },\n contributor: {\n // Subtypes like \'email\' are inferred like \'string\' but provide additional validation at runtime.\n email: "email",\n "packages?": "package[]"\n }\n}).compile()\n\n// Cyclic types are inferred to arbitrary depth...\nexport type Package = typeof types.package.infer\n\n// And can validate cyclic data.\nconst packageData: Package = {\n name: "arktype",\n dependencies: [{ name: "typescript" }],\n contributors: [{ email: "david@sharktypeio" }]\n}\npackageData.dependencies![0].dependencies = [packageData]\n\nexport const { data, problems } = types.package(packageData)\n',demo:'import { type } from "arktype"\n\n// Define your type...\nexport const pkg = type({\n name: "string",\n version: "semver",\n "contributors?": "1{t.r(n),t.d(n,{assets:()=>d,contentTitle:()=>l,default:()=>y,frontMatter:()=>p,metadata:()=>c,toc:()=>m});var r=t(3341),a=t(1792),o=(t(9901),t(7522)),i=t(96),s=["components"],p={id:"intro",hide_table_of_contents:!0,title:"Intro"},l="Getting Started",c={unversionedId:"intro",id:"version-1.0.20-alpha/intro",title:"Intro",description:'replace(./dev/arktype.io/static,) |> replace({ type },{"{"} type {"}"}) --\x3e',source:"@site/versioned_docs/version-1.0.20-alpha/index.mdx",sourceDirName:".",slug:"/",permalink:"/docs/1.0.20-alpha/",draft:!1,tags:[],version:"1.0.20-alpha",frontMatter:{id:"intro",hide_table_of_contents:!0,title:"Intro"},sidebar:"sidebar",next:{title:"Scopes",permalink:"/docs/1.0.20-alpha/scopes"}},d={},m=[{value:"Install \ud83d\udce612KB gzipped, 0 dependencies",id:"install-12kb-gzipped-0-dependencies",level:2},{value:"Your first type",id:"your-first-type",level:2}],u={toc:m},f="wrapper";function y(e){var n=e.components,t=(0,a.Z)(e,s);return(0,o.kt)(f,(0,r.Z)({},u,t,{components:n,mdxType:"MDXLayout"}),(0,o.kt)("h1",{id:"getting-started"},"Getting Started"),(0,o.kt)("h2",{id:"install-12kb-gzipped-0-dependencies"},"Install ",(0,o.kt)("sub",null,(0,o.kt)("sub",null,"\ud83d\udce6",(0,o.kt)("inlineCode",{parentName:"h2"},"12KB")," gzipped, ",(0,o.kt)("inlineCode",{parentName:"h2"},"0")," dependencies"))),(0,o.kt)("img",{src:"/img/npm.svg",alt:"Npm Icon",height:"16px"})," ",(0,o.kt)("code",null,"npm install arktype"),(0,o.kt)("sub",null,"(or whatever package manager you prefer)"),(0,o.kt)("br",null),(0,o.kt)("p",null,"Our types are tested in ",(0,o.kt)("a",{parentName:"p",href:"https://www.typescriptlang.org/tsconfig#strict"},"strict-mode")," with TypeScript versions ",(0,o.kt)("inlineCode",{parentName:"p"},"4.8"),", ",(0,o.kt)("inlineCode",{parentName:"p"},"4.9"),", and ",(0,o.kt)("inlineCode",{parentName:"p"},"5.0"),"."),(0,o.kt)("p",null,(0,o.kt)("em",{parentName:"p"},"Our APIs have mostly stabilized, but details may still change during the alpha/beta stages of our 1.0 release. If you have suggestions that may require a breaking change, now is the time to let us know!")," \u26f5"),(0,o.kt)("h2",{id:"your-first-type"},"Your first type"),(0,o.kt)(i.g,{embedId:"type",mdxType:"StackBlitzDemo"}))}y.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/0be3f0b3.2ad6cdda.js b/assets/js/0be3f0b3.2ad6cdda.js new file mode 100644 index 0000000000..f532fbfc50 --- /dev/null +++ b/assets/js/0be3f0b3.2ad6cdda.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[2651],{7522:(t,e,n)=>{n.d(e,{Zo:()=>u,kt:()=>c});var a=n(9901);function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function l(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,a)}return n}function o(t){for(var e=1;e=0||(r[n]=t[n]);return r}(t,e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(t);for(a=0;a=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}var p=a.createContext({}),d=function(t){var e=a.useContext(p),n=e;return t&&(n="function"==typeof t?t(e):o(o({},e),t)),n},u=function(t){var e=d(t.components);return a.createElement(p.Provider,{value:e},t.children)},m="mdxType",k={inlineCode:"code",wrapper:function(t){var e=t.children;return a.createElement(a.Fragment,{},e)}},s=a.forwardRef((function(t,e){var n=t.components,r=t.mdxType,l=t.originalType,p=t.parentName,u=i(t,["components","mdxType","originalType","parentName"]),m=d(n),s=r,c=m["".concat(p,".").concat(s)]||m[s]||k[s]||l;return n?a.createElement(c,o(o({ref:e},u),{},{components:n})):a.createElement(c,o({ref:e},u))}));function c(t,e){var n=arguments,r=e&&e.mdxType;if("string"==typeof t||r){var l=n.length,o=new Array(l);o[0]=s;var i={};for(var p in e)hasOwnProperty.call(e,p)&&(i[p]=e[p]);i.originalType=t,i[m]="string"==typeof t?t:r,o[1]=i;for(var d=2;d{n.r(e),n.d(e,{assets:()=>u,contentTitle:()=>p,default:()=>c,frontMatter:()=>i,metadata:()=>d,toc:()=>m});var a=n(4805),r=n(8),l=(n(9901),n(7522)),o=["components"],i={hide_table_of_contents:!0},p="tsKeywordsScope",d={unversionedId:"api/tskeywordsscope",id:"version-1.0.21-alpha/api/tskeywordsscope",title:"tsKeywordsScope",description:"keywords",source:"@site/versioned_docs/version-1.0.21-alpha/api/tskeywordsscope.md",sourceDirName:"api",slug:"/api/tskeywordsscope",permalink:"/docs/1.0.21-alpha/api/tskeywordsscope",draft:!1,tags:[],version:"1.0.21-alpha",frontMatter:{hide_table_of_contents:!0}},u={},m=[{value:"keywords",id:"keywords",level:2},{value:"text",id:"text",level:2}],k={toc:m},s="wrapper";function c(t){var e=t.components,n=(0,r.Z)(t,o);return(0,l.kt)(s,(0,a.Z)({},k,n,{components:e,mdxType:"MDXLayout"}),(0,l.kt)("h1",{id:"tskeywordsscope"},"tsKeywordsScope"),(0,l.kt)("h2",{id:"keywords"},"keywords"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},'keywords: {"any": "any", "bigint": "a bigint", "boolean": "a boolean", "false": "false", "never": "never", "null": "null", "number": "a number", "object": "an object", "string": "a string", "symbol": "a symbol", "true": "true", "unknown": "unknown", "void": "void", "undefined": "undefined"}')),(0,l.kt)("h2",{id:"text"},"text"),(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:null},"Name"),(0,l.kt)("th",{parentName:"tr",align:null},"Type"),(0,l.kt)("th",{parentName:"tr",align:null},"Description"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"any"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," any")),(0,l.kt)("td",{parentName:"tr",align:null},"any")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"bigint"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," bigint")),(0,l.kt)("td",{parentName:"tr",align:null},"a bigint")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"boolean"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," boolean")),(0,l.kt)("td",{parentName:"tr",align:null},"a boolean")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"false"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," false")),(0,l.kt)("td",{parentName:"tr",align:null},"false")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"never"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," never")),(0,l.kt)("td",{parentName:"tr",align:null},"never")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"null"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," null")),(0,l.kt)("td",{parentName:"tr",align:null},"null")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"number"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," number")),(0,l.kt)("td",{parentName:"tr",align:null},"a number")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"object"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," object")),(0,l.kt)("td",{parentName:"tr",align:null},"an object")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"string"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"a string")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"symbol"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," symbol")),(0,l.kt)("td",{parentName:"tr",align:null},"a symbol")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"true"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," true")),(0,l.kt)("td",{parentName:"tr",align:null},"true")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"unknown"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," unknown")),(0,l.kt)("td",{parentName:"tr",align:null},"unknown")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"void"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," void")),(0,l.kt)("td",{parentName:"tr",align:null},"void")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"undefined"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," undefined")),(0,l.kt)("td",{parentName:"tr",align:null},"undefined")))))}c.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/0be3f0b3.de128f64.js b/assets/js/0be3f0b3.de128f64.js deleted file mode 100644 index 50a5b3b113..0000000000 --- a/assets/js/0be3f0b3.de128f64.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[2651],{7522:(t,e,n)=>{n.d(e,{Zo:()=>u,kt:()=>c});var a=n(9901);function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function l(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,a)}return n}function o(t){for(var e=1;e=0||(r[n]=t[n]);return r}(t,e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(t);for(a=0;a=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}var p=a.createContext({}),d=function(t){var e=a.useContext(p),n=e;return t&&(n="function"==typeof t?t(e):o(o({},e),t)),n},u=function(t){var e=d(t.components);return a.createElement(p.Provider,{value:e},t.children)},m="mdxType",k={inlineCode:"code",wrapper:function(t){var e=t.children;return a.createElement(a.Fragment,{},e)}},s=a.forwardRef((function(t,e){var n=t.components,r=t.mdxType,l=t.originalType,p=t.parentName,u=i(t,["components","mdxType","originalType","parentName"]),m=d(n),s=r,c=m["".concat(p,".").concat(s)]||m[s]||k[s]||l;return n?a.createElement(c,o(o({ref:e},u),{},{components:n})):a.createElement(c,o({ref:e},u))}));function c(t,e){var n=arguments,r=e&&e.mdxType;if("string"==typeof t||r){var l=n.length,o=new Array(l);o[0]=s;var i={};for(var p in e)hasOwnProperty.call(e,p)&&(i[p]=e[p]);i.originalType=t,i[m]="string"==typeof t?t:r,o[1]=i;for(var d=2;d{n.r(e),n.d(e,{assets:()=>u,contentTitle:()=>p,default:()=>c,frontMatter:()=>i,metadata:()=>d,toc:()=>m});var a=n(3341),r=n(1792),l=(n(9901),n(7522)),o=["components"],i={hide_table_of_contents:!0},p="tsKeywordsScope",d={unversionedId:"api/tskeywordsscope",id:"version-1.0.21-alpha/api/tskeywordsscope",title:"tsKeywordsScope",description:"keywords",source:"@site/versioned_docs/version-1.0.21-alpha/api/tskeywordsscope.md",sourceDirName:"api",slug:"/api/tskeywordsscope",permalink:"/docs/1.0.21-alpha/api/tskeywordsscope",draft:!1,tags:[],version:"1.0.21-alpha",frontMatter:{hide_table_of_contents:!0}},u={},m=[{value:"keywords",id:"keywords",level:2},{value:"text",id:"text",level:2}],k={toc:m},s="wrapper";function c(t){var e=t.components,n=(0,r.Z)(t,o);return(0,l.kt)(s,(0,a.Z)({},k,n,{components:e,mdxType:"MDXLayout"}),(0,l.kt)("h1",{id:"tskeywordsscope"},"tsKeywordsScope"),(0,l.kt)("h2",{id:"keywords"},"keywords"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},'keywords: {"any": "any", "bigint": "a bigint", "boolean": "a boolean", "false": "false", "never": "never", "null": "null", "number": "a number", "object": "an object", "string": "a string", "symbol": "a symbol", "true": "true", "unknown": "unknown", "void": "void", "undefined": "undefined"}')),(0,l.kt)("h2",{id:"text"},"text"),(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:null},"Name"),(0,l.kt)("th",{parentName:"tr",align:null},"Type"),(0,l.kt)("th",{parentName:"tr",align:null},"Description"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"any"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," any")),(0,l.kt)("td",{parentName:"tr",align:null},"any")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"bigint"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," bigint")),(0,l.kt)("td",{parentName:"tr",align:null},"a bigint")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"boolean"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," boolean")),(0,l.kt)("td",{parentName:"tr",align:null},"a boolean")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"false"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," false")),(0,l.kt)("td",{parentName:"tr",align:null},"false")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"never"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," never")),(0,l.kt)("td",{parentName:"tr",align:null},"never")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"null"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," null")),(0,l.kt)("td",{parentName:"tr",align:null},"null")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"number"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," number")),(0,l.kt)("td",{parentName:"tr",align:null},"a number")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"object"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," object")),(0,l.kt)("td",{parentName:"tr",align:null},"an object")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"string"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"a string")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"symbol"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," symbol")),(0,l.kt)("td",{parentName:"tr",align:null},"a symbol")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"true"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," true")),(0,l.kt)("td",{parentName:"tr",align:null},"true")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"unknown"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," unknown")),(0,l.kt)("td",{parentName:"tr",align:null},"unknown")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"void"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," void")),(0,l.kt)("td",{parentName:"tr",align:null},"void")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"undefined"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," undefined")),(0,l.kt)("td",{parentName:"tr",align:null},"undefined")))))}c.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/0dbc098c.1c3357a0.js b/assets/js/0dbc098c.6d988b67.js similarity index 61% rename from assets/js/0dbc098c.1c3357a0.js rename to assets/js/0dbc098c.6d988b67.js index fca0fca9b5..19b08d6f4c 100644 --- a/assets/js/0dbc098c.1c3357a0.js +++ b/assets/js/0dbc098c.6d988b67.js @@ -1 +1 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[9780],{7522:(e,t,r)=>{r.d(t,{Zo:()=>u,kt:()=>d});var n=r(9901);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function p(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var c=n.createContext({}),l=function(e){var t=n.useContext(c),r=t;return e&&(r="function"==typeof e?e(t):p(p({},t),e)),r},u=function(e){var t=l(e.components);return n.createElement(c.Provider,{value:t},e.children)},s="mdxType",f={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},y=n.forwardRef((function(e,t){var r=e.components,o=e.mdxType,a=e.originalType,c=e.parentName,u=i(e,["components","mdxType","originalType","parentName"]),s=l(r),y=o,d=s["".concat(c,".").concat(y)]||s[y]||f[y]||a;return r?n.createElement(d,p(p({ref:t},u),{},{components:r})):n.createElement(d,p({ref:t},u))}));function d(e,t){var r=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var a=r.length,p=new Array(a);p[0]=y;var i={};for(var c in t)hasOwnProperty.call(t,c)&&(i[c]=t[c]);i.originalType=e,i[s]="string"==typeof e?e:o,p[1]=i;for(var l=2;l{r.r(t),r.d(t,{assets:()=>u,contentTitle:()=>c,default:()=>d,frontMatter:()=>i,metadata:()=>l,toc:()=>s});var n=r(3341),o=r(1792),a=(r(9901),r(7522)),p=["components"],i={hide_table_of_contents:!0},c="type",l={unversionedId:"api/type",id:"version-1.0.22-alpha/api/type",title:"type",description:"text",source:"@site/versioned_docs/version-1.0.22-alpha/api/type.md",sourceDirName:"api",slug:"/api/type",permalink:"/docs/api/type",draft:!1,tags:[],version:"1.0.22-alpha",frontMatter:{hide_table_of_contents:!0}},u={},s=[{value:"text",id:"text",level:2},{value:"hide_table_of_contents: true",id:"hide_table_of_contents-true",level:2},{value:"text",id:"text-1",level:2}],f={toc:s},y="wrapper";function d(e){var t=e.components,r=(0,o.Z)(e,p);return(0,a.kt)(y,(0,n.Z)({},f,r,{components:t,mdxType:"MDXLayout"}),(0,a.kt)("h1",{id:"type"},"type"),(0,a.kt)("h2",{id:"text"},"text"),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-ts"},"type: TypeParser\n")),(0,a.kt)("hr",null),(0,a.kt)("h2",{id:"hide_table_of_contents-true"},"hide_table_of_contents: true"),(0,a.kt)("h1",{id:"type-1"},"Type"),(0,a.kt)("h2",{id:"text-1"},"text"),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-ts"},"export type Type = defer & TypeRoot>\n")))}d.isMDXComponent=!0}}]); \ No newline at end of file +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[9780],{7522:(e,t,r)=>{r.d(t,{Zo:()=>u,kt:()=>d});var n=r(9901);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function p(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var c=n.createContext({}),l=function(e){var t=n.useContext(c),r=t;return e&&(r="function"==typeof e?e(t):p(p({},t),e)),r},u=function(e){var t=l(e.components);return n.createElement(c.Provider,{value:t},e.children)},s="mdxType",f={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},y=n.forwardRef((function(e,t){var r=e.components,o=e.mdxType,a=e.originalType,c=e.parentName,u=i(e,["components","mdxType","originalType","parentName"]),s=l(r),y=o,d=s["".concat(c,".").concat(y)]||s[y]||f[y]||a;return r?n.createElement(d,p(p({ref:t},u),{},{components:r})):n.createElement(d,p({ref:t},u))}));function d(e,t){var r=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var a=r.length,p=new Array(a);p[0]=y;var i={};for(var c in t)hasOwnProperty.call(t,c)&&(i[c]=t[c]);i.originalType=e,i[s]="string"==typeof e?e:o,p[1]=i;for(var l=2;l{r.r(t),r.d(t,{assets:()=>u,contentTitle:()=>c,default:()=>d,frontMatter:()=>i,metadata:()=>l,toc:()=>s});var n=r(4805),o=r(8),a=(r(9901),r(7522)),p=["components"],i={hide_table_of_contents:!0},c="type",l={unversionedId:"api/type",id:"version-1.0.22-alpha/api/type",title:"type",description:"text",source:"@site/versioned_docs/version-1.0.22-alpha/api/type.md",sourceDirName:"api",slug:"/api/type",permalink:"/docs/api/type",draft:!1,tags:[],version:"1.0.22-alpha",frontMatter:{hide_table_of_contents:!0}},u={},s=[{value:"text",id:"text",level:2},{value:"hide_table_of_contents: true",id:"hide_table_of_contents-true",level:2},{value:"text",id:"text-1",level:2}],f={toc:s},y="wrapper";function d(e){var t=e.components,r=(0,o.Z)(e,p);return(0,a.kt)(y,(0,n.Z)({},f,r,{components:t,mdxType:"MDXLayout"}),(0,a.kt)("h1",{id:"type"},"type"),(0,a.kt)("h2",{id:"text"},"text"),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-ts"},"type: TypeParser\n")),(0,a.kt)("hr",null),(0,a.kt)("h2",{id:"hide_table_of_contents-true"},"hide_table_of_contents: true"),(0,a.kt)("h1",{id:"type-1"},"Type"),(0,a.kt)("h2",{id:"text-1"},"text"),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-ts"},"export type Type = defer & TypeRoot>\n")))}d.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/0efbc173.b8308896.js b/assets/js/0efbc173.22318f6d.js similarity index 71% rename from assets/js/0efbc173.b8308896.js rename to assets/js/0efbc173.22318f6d.js index 69ab9ad0c9..dcb087482a 100644 --- a/assets/js/0efbc173.b8308896.js +++ b/assets/js/0efbc173.22318f6d.js @@ -1 +1 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[4174],{7522:(e,t,r)=>{r.d(t,{Zo:()=>f,kt:()=>m});var n=r(9901);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var p=n.createContext({}),l=function(e){var t=n.useContext(p),r=t;return e&&(r="function"==typeof e?e(t):i(i({},t),e)),r},f=function(e){var t=l(e.components);return n.createElement(p.Provider,{value:t},e.children)},u="mdxType",s={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},y=n.forwardRef((function(e,t){var r=e.components,o=e.mdxType,a=e.originalType,p=e.parentName,f=c(e,["components","mdxType","originalType","parentName"]),u=l(r),y=o,m=u["".concat(p,".").concat(y)]||u[y]||s[y]||a;return r?n.createElement(m,i(i({ref:t},f),{},{components:r})):n.createElement(m,i({ref:t},f))}));function m(e,t){var r=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var a=r.length,i=new Array(a);i[0]=y;var c={};for(var p in t)hasOwnProperty.call(t,p)&&(c[p]=t[p]);c.originalType=e,c[u]="string"==typeof e?e:o,i[1]=c;for(var l=2;l{r.r(t),r.d(t,{assets:()=>f,contentTitle:()=>p,default:()=>m,frontMatter:()=>c,metadata:()=>l,toc:()=>u});var n=r(3341),o=r(1792),a=(r(9901),r(7522)),i=["components"],c={hide_table_of_contents:!0},p="Infer",l={unversionedId:"api/infer",id:"version-1.0.19-alpha/api/infer",title:"Infer",description:"text",source:"@site/versioned_docs/version-1.0.19-alpha/api/infer.md",sourceDirName:"api",slug:"/api/infer",permalink:"/docs/1.0.19-alpha/api/infer",draft:!1,tags:[],version:"1.0.19-alpha",frontMatter:{hide_table_of_contents:!0}},f={},u=[{value:"text",id:"text",level:2}],s={toc:u},y="wrapper";function m(e){var t=e.components,r=(0,o.Z)(e,i);return(0,a.kt)(y,(0,n.Z)({},s,r,{components:t,mdxType:"MDXLayout"}),(0,a.kt)("h1",{id:"infer"},"Infer"),(0,a.kt)("h2",{id:"text"},"text"),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-ts"},"export type Infer = {\n [as]?: t\n}\n")))}m.isMDXComponent=!0}}]); \ No newline at end of file +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[4174],{7522:(e,t,r)=>{r.d(t,{Zo:()=>f,kt:()=>m});var n=r(9901);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var p=n.createContext({}),l=function(e){var t=n.useContext(p),r=t;return e&&(r="function"==typeof e?e(t):i(i({},t),e)),r},f=function(e){var t=l(e.components);return n.createElement(p.Provider,{value:t},e.children)},u="mdxType",s={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},y=n.forwardRef((function(e,t){var r=e.components,o=e.mdxType,a=e.originalType,p=e.parentName,f=c(e,["components","mdxType","originalType","parentName"]),u=l(r),y=o,m=u["".concat(p,".").concat(y)]||u[y]||s[y]||a;return r?n.createElement(m,i(i({ref:t},f),{},{components:r})):n.createElement(m,i({ref:t},f))}));function m(e,t){var r=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var a=r.length,i=new Array(a);i[0]=y;var c={};for(var p in t)hasOwnProperty.call(t,p)&&(c[p]=t[p]);c.originalType=e,c[u]="string"==typeof e?e:o,i[1]=c;for(var l=2;l{r.r(t),r.d(t,{assets:()=>f,contentTitle:()=>p,default:()=>m,frontMatter:()=>c,metadata:()=>l,toc:()=>u});var n=r(4805),o=r(8),a=(r(9901),r(7522)),i=["components"],c={hide_table_of_contents:!0},p="Infer",l={unversionedId:"api/infer",id:"version-1.0.19-alpha/api/infer",title:"Infer",description:"text",source:"@site/versioned_docs/version-1.0.19-alpha/api/infer.md",sourceDirName:"api",slug:"/api/infer",permalink:"/docs/1.0.19-alpha/api/infer",draft:!1,tags:[],version:"1.0.19-alpha",frontMatter:{hide_table_of_contents:!0}},f={},u=[{value:"text",id:"text",level:2}],s={toc:u},y="wrapper";function m(e){var t=e.components,r=(0,o.Z)(e,i);return(0,a.kt)(y,(0,n.Z)({},s,r,{components:t,mdxType:"MDXLayout"}),(0,a.kt)("h1",{id:"infer"},"Infer"),(0,a.kt)("h2",{id:"text"},"text"),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-ts"},"export type Infer = {\n [as]?: t\n}\n")))}m.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/0f59f13c.a890784e.js b/assets/js/0f59f13c.d7f7cded.js similarity index 55% rename from assets/js/0f59f13c.a890784e.js rename to assets/js/0f59f13c.d7f7cded.js index 1f372d202f..86d89a7776 100644 --- a/assets/js/0f59f13c.a890784e.js +++ b/assets/js/0f59f13c.d7f7cded.js @@ -1 +1 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[3718],{7522:(e,r,t)=>{t.d(r,{Zo:()=>c,kt:()=>m});var n=t(9901);function a(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function l(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function o(e){for(var r=1;r=0||(a[t]=e[t]);return a}(e,r);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}var i=n.createContext({}),u=function(e){var r=n.useContext(i),t=r;return e&&(t="function"==typeof e?e(r):o(o({},r),e)),t},c=function(e){var r=u(e.components);return n.createElement(i.Provider,{value:r},e.children)},f="mdxType",s={inlineCode:"code",wrapper:function(e){var r=e.children;return n.createElement(n.Fragment,{},r)}},y=n.forwardRef((function(e,r){var t=e.components,a=e.mdxType,l=e.originalType,i=e.parentName,c=p(e,["components","mdxType","originalType","parentName"]),f=u(t),y=a,m=f["".concat(i,".").concat(y)]||f[y]||s[y]||l;return t?n.createElement(m,o(o({ref:r},c),{},{components:t})):n.createElement(m,o({ref:r},c))}));function m(e,r){var t=arguments,a=r&&r.mdxType;if("string"==typeof e||a){var l=t.length,o=new Array(l);o[0]=y;var p={};for(var i in r)hasOwnProperty.call(r,i)&&(p[i]=r[i]);p.originalType=e,p[f]="string"==typeof e?e:a,o[1]=p;for(var u=2;u{t.r(r),t.d(r,{assets:()=>c,contentTitle:()=>i,default:()=>m,frontMatter:()=>p,metadata:()=>u,toc:()=>f});var n=t(3341),a=t(1792),l=(t(9901),t(7522)),o=["components"],p={hide_table_of_contents:!0},i="arrayOf",u={unversionedId:"api/arrayof",id:"version-1.0.20-alpha/api/arrayof",title:"arrayOf",description:"operator",source:"@site/versioned_docs/version-1.0.20-alpha/api/arrayof.md",sourceDirName:"api",slug:"/api/arrayof",permalink:"/docs/1.0.20-alpha/api/arrayof",draft:!1,tags:[],version:"1.0.20-alpha",frontMatter:{hide_table_of_contents:!0}},c={},f=[{value:"operator",id:"operator",level:2},{value:"string",id:"string",level:2},{value:"tuple",id:"tuple",level:2},{value:"helper",id:"helper",level:2}],s={toc:f},y="wrapper";function m(e){var r=e.components,t=(0,a.Z)(e,o);return(0,l.kt)(y,(0,n.Z)({},s,t,{components:r,mdxType:"MDXLayout"}),(0,l.kt)("h1",{id:"arrayof"},"arrayOf"),(0,l.kt)("h2",{id:"operator"},"operator"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},(0,l.kt)("a",{parentName:"li",href:"/docs/1.0.20-alpha/api/arrayof"},"arrayOf"))),(0,l.kt)("h2",{id:"string"},"string"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},'"T[]" ',(0,l.kt)("br",null)),(0,l.kt)("li",{parentName:"ul"},'const numberArray = type("number[]")',(0,l.kt)("br",null))),(0,l.kt)("h2",{id:"tuple"},"tuple"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},'[T, "[]"] ',(0,l.kt)("br",null)),(0,l.kt)("li",{parentName:"ul"},'const tupleArray = type(["number", "[]"])',(0,l.kt)("br",null))),(0,l.kt)("h2",{id:"helper"},"helper"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},"arrayOf(T) ",(0,l.kt)("br",null)),(0,l.kt)("li",{parentName:"ul"},'const helperArray = arrayOf("number")',(0,l.kt)("br",null))))}m.isMDXComponent=!0}}]); \ No newline at end of file +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[3718],{7522:(e,r,t)=>{t.d(r,{Zo:()=>c,kt:()=>m});var n=t(9901);function a(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function l(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function o(e){for(var r=1;r=0||(a[t]=e[t]);return a}(e,r);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}var i=n.createContext({}),u=function(e){var r=n.useContext(i),t=r;return e&&(t="function"==typeof e?e(r):o(o({},r),e)),t},c=function(e){var r=u(e.components);return n.createElement(i.Provider,{value:r},e.children)},f="mdxType",s={inlineCode:"code",wrapper:function(e){var r=e.children;return n.createElement(n.Fragment,{},r)}},y=n.forwardRef((function(e,r){var t=e.components,a=e.mdxType,l=e.originalType,i=e.parentName,c=p(e,["components","mdxType","originalType","parentName"]),f=u(t),y=a,m=f["".concat(i,".").concat(y)]||f[y]||s[y]||l;return t?n.createElement(m,o(o({ref:r},c),{},{components:t})):n.createElement(m,o({ref:r},c))}));function m(e,r){var t=arguments,a=r&&r.mdxType;if("string"==typeof e||a){var l=t.length,o=new Array(l);o[0]=y;var p={};for(var i in r)hasOwnProperty.call(r,i)&&(p[i]=r[i]);p.originalType=e,p[f]="string"==typeof e?e:a,o[1]=p;for(var u=2;u{t.r(r),t.d(r,{assets:()=>c,contentTitle:()=>i,default:()=>m,frontMatter:()=>p,metadata:()=>u,toc:()=>f});var n=t(4805),a=t(8),l=(t(9901),t(7522)),o=["components"],p={hide_table_of_contents:!0},i="arrayOf",u={unversionedId:"api/arrayof",id:"version-1.0.20-alpha/api/arrayof",title:"arrayOf",description:"operator",source:"@site/versioned_docs/version-1.0.20-alpha/api/arrayof.md",sourceDirName:"api",slug:"/api/arrayof",permalink:"/docs/1.0.20-alpha/api/arrayof",draft:!1,tags:[],version:"1.0.20-alpha",frontMatter:{hide_table_of_contents:!0}},c={},f=[{value:"operator",id:"operator",level:2},{value:"string",id:"string",level:2},{value:"tuple",id:"tuple",level:2},{value:"helper",id:"helper",level:2}],s={toc:f},y="wrapper";function m(e){var r=e.components,t=(0,a.Z)(e,o);return(0,l.kt)(y,(0,n.Z)({},s,t,{components:r,mdxType:"MDXLayout"}),(0,l.kt)("h1",{id:"arrayof"},"arrayOf"),(0,l.kt)("h2",{id:"operator"},"operator"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},(0,l.kt)("a",{parentName:"li",href:"/docs/1.0.20-alpha/api/arrayof"},"arrayOf"))),(0,l.kt)("h2",{id:"string"},"string"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},'"T[]" ',(0,l.kt)("br",null)),(0,l.kt)("li",{parentName:"ul"},'const numberArray = type("number[]")',(0,l.kt)("br",null))),(0,l.kt)("h2",{id:"tuple"},"tuple"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},'[T, "[]"] ',(0,l.kt)("br",null)),(0,l.kt)("li",{parentName:"ul"},'const tupleArray = type(["number", "[]"])',(0,l.kt)("br",null))),(0,l.kt)("h2",{id:"helper"},"helper"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},"arrayOf(T) ",(0,l.kt)("br",null)),(0,l.kt)("li",{parentName:"ul"},'const helperArray = arrayOf("number")',(0,l.kt)("br",null))))}m.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/0f77207c.8660d627.js b/assets/js/0f77207c.02ba7cf5.js similarity index 58% rename from assets/js/0f77207c.8660d627.js rename to assets/js/0f77207c.02ba7cf5.js index 5b25385670..041d2888a5 100644 --- a/assets/js/0f77207c.8660d627.js +++ b/assets/js/0f77207c.02ba7cf5.js @@ -1 +1 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[8253],{7522:(e,t,r)=>{r.d(t,{Zo:()=>c,kt:()=>m});var n=r(9901);function a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function o(e){for(var t=1;t=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}var u=n.createContext({}),i=function(e){var t=n.useContext(u),r=t;return e&&(r="function"==typeof e?e(t):o(o({},t),e)),r},c=function(e){var t=i(e.components);return n.createElement(u.Provider,{value:t},e.children)},f="mdxType",s={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},v=n.forwardRef((function(e,t){var r=e.components,a=e.mdxType,l=e.originalType,u=e.parentName,c=p(e,["components","mdxType","originalType","parentName"]),f=i(r),v=a,m=f["".concat(u,".").concat(v)]||f[v]||s[v]||l;return r?n.createElement(m,o(o({ref:t},c),{},{components:r})):n.createElement(m,o({ref:t},c))}));function m(e,t){var r=arguments,a=t&&t.mdxType;if("string"==typeof e||a){var l=r.length,o=new Array(l);o[0]=v;var p={};for(var u in t)hasOwnProperty.call(t,u)&&(p[u]=t[u]);p.originalType=e,p[f]="string"==typeof e?e:a,o[1]=p;for(var i=2;i{r.r(t),r.d(t,{assets:()=>c,contentTitle:()=>u,default:()=>m,frontMatter:()=>p,metadata:()=>i,toc:()=>f});var n=r(3341),a=r(1792),l=(r(9901),r(7522)),o=["components"],p={hide_table_of_contents:!0},u="valueOf",i={unversionedId:"api/valueof",id:"version-1.0.21-alpha/api/valueof",title:"valueOf",description:"operator",source:"@site/versioned_docs/version-1.0.21-alpha/api/valueof.md",sourceDirName:"api",slug:"/api/valueof",permalink:"/docs/1.0.21-alpha/api/valueof",draft:!1,tags:[],version:"1.0.21-alpha",frontMatter:{hide_table_of_contents:!0}},c={},f=[{value:"operator",id:"operator",level:2},{value:"tuple",id:"tuple",level:2},{value:"helper",id:"helper",level:2}],s={toc:f},v="wrapper";function m(e){var t=e.components,r=(0,a.Z)(e,o);return(0,l.kt)(v,(0,n.Z)({},s,r,{components:t,mdxType:"MDXLayout"}),(0,l.kt)("h1",{id:"valueof"},"valueOf"),(0,l.kt)("h2",{id:"operator"},"operator"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},(0,l.kt)("a",{parentName:"li",href:"/docs/1.0.21-alpha/api/valueof"},"==="))),(0,l.kt)("h2",{id:"tuple"},"tuple"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},'["===", T]'," ",(0,l.kt)("br",null)),(0,l.kt)("li",{parentName:"ul"},"const tupleValueOf = type(",'["valueOf", {a:"string"}]',")",(0,l.kt)("br",null))),(0,l.kt)("h2",{id:"helper"},"helper"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},"valueOf(T) ",(0,l.kt)("br",null)),(0,l.kt)("li",{parentName:"ul"},'const helperValueOf = valueOf({a:"string"})',(0,l.kt)("br",null))))}m.isMDXComponent=!0}}]); \ No newline at end of file +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[8253],{7522:(e,t,r)=>{r.d(t,{Zo:()=>c,kt:()=>m});var n=r(9901);function a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function o(e){for(var t=1;t=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}var u=n.createContext({}),i=function(e){var t=n.useContext(u),r=t;return e&&(r="function"==typeof e?e(t):o(o({},t),e)),r},c=function(e){var t=i(e.components);return n.createElement(u.Provider,{value:t},e.children)},f="mdxType",s={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},v=n.forwardRef((function(e,t){var r=e.components,a=e.mdxType,l=e.originalType,u=e.parentName,c=p(e,["components","mdxType","originalType","parentName"]),f=i(r),v=a,m=f["".concat(u,".").concat(v)]||f[v]||s[v]||l;return r?n.createElement(m,o(o({ref:t},c),{},{components:r})):n.createElement(m,o({ref:t},c))}));function m(e,t){var r=arguments,a=t&&t.mdxType;if("string"==typeof e||a){var l=r.length,o=new Array(l);o[0]=v;var p={};for(var u in t)hasOwnProperty.call(t,u)&&(p[u]=t[u]);p.originalType=e,p[f]="string"==typeof e?e:a,o[1]=p;for(var i=2;i{r.r(t),r.d(t,{assets:()=>c,contentTitle:()=>u,default:()=>m,frontMatter:()=>p,metadata:()=>i,toc:()=>f});var n=r(4805),a=r(8),l=(r(9901),r(7522)),o=["components"],p={hide_table_of_contents:!0},u="valueOf",i={unversionedId:"api/valueof",id:"version-1.0.21-alpha/api/valueof",title:"valueOf",description:"operator",source:"@site/versioned_docs/version-1.0.21-alpha/api/valueof.md",sourceDirName:"api",slug:"/api/valueof",permalink:"/docs/1.0.21-alpha/api/valueof",draft:!1,tags:[],version:"1.0.21-alpha",frontMatter:{hide_table_of_contents:!0}},c={},f=[{value:"operator",id:"operator",level:2},{value:"tuple",id:"tuple",level:2},{value:"helper",id:"helper",level:2}],s={toc:f},v="wrapper";function m(e){var t=e.components,r=(0,a.Z)(e,o);return(0,l.kt)(v,(0,n.Z)({},s,r,{components:t,mdxType:"MDXLayout"}),(0,l.kt)("h1",{id:"valueof"},"valueOf"),(0,l.kt)("h2",{id:"operator"},"operator"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},(0,l.kt)("a",{parentName:"li",href:"/docs/1.0.21-alpha/api/valueof"},"==="))),(0,l.kt)("h2",{id:"tuple"},"tuple"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},'["===", T]'," ",(0,l.kt)("br",null)),(0,l.kt)("li",{parentName:"ul"},"const tupleValueOf = type(",'["valueOf", {a:"string"}]',")",(0,l.kt)("br",null))),(0,l.kt)("h2",{id:"helper"},"helper"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},"valueOf(T) ",(0,l.kt)("br",null)),(0,l.kt)("li",{parentName:"ul"},'const helperValueOf = valueOf({a:"string"})',(0,l.kt)("br",null))))}m.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/10ae884d.ba5df8d0.js b/assets/js/10ae884d.48c83e70.js similarity index 56% rename from assets/js/10ae884d.ba5df8d0.js rename to assets/js/10ae884d.48c83e70.js index cd392eb1cc..88d646ce89 100644 --- a/assets/js/10ae884d.ba5df8d0.js +++ b/assets/js/10ae884d.48c83e70.js @@ -1 +1 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[6956],{7522:(e,r,t)=>{t.d(r,{Zo:()=>c,kt:()=>m});var n=t(9901);function a(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function l(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function o(e){for(var r=1;r=0||(a[t]=e[t]);return a}(e,r);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}var i=n.createContext({}),u=function(e){var r=n.useContext(i),t=r;return e&&(t="function"==typeof e?e(r):o(o({},r),e)),t},c=function(e){var r=u(e.components);return n.createElement(i.Provider,{value:r},e.children)},f="mdxType",s={inlineCode:"code",wrapper:function(e){var r=e.children;return n.createElement(n.Fragment,{},r)}},y=n.forwardRef((function(e,r){var t=e.components,a=e.mdxType,l=e.originalType,i=e.parentName,c=p(e,["components","mdxType","originalType","parentName"]),f=u(t),y=a,m=f["".concat(i,".").concat(y)]||f[y]||s[y]||l;return t?n.createElement(m,o(o({ref:r},c),{},{components:t})):n.createElement(m,o({ref:r},c))}));function m(e,r){var t=arguments,a=r&&r.mdxType;if("string"==typeof e||a){var l=t.length,o=new Array(l);o[0]=y;var p={};for(var i in r)hasOwnProperty.call(r,i)&&(p[i]=r[i]);p.originalType=e,p[f]="string"==typeof e?e:a,o[1]=p;for(var u=2;u{t.r(r),t.d(r,{assets:()=>c,contentTitle:()=>i,default:()=>m,frontMatter:()=>p,metadata:()=>u,toc:()=>f});var n=t(3341),a=t(1792),l=(t(9901),t(7522)),o=["components"],p={hide_table_of_contents:!0},i="arrayOf",u={unversionedId:"api/arrayof",id:"version-1.0.19-alpha/api/arrayof",title:"arrayOf",description:"operator",source:"@site/versioned_docs/version-1.0.19-alpha/api/arrayof.md",sourceDirName:"api",slug:"/api/arrayof",permalink:"/docs/1.0.19-alpha/api/arrayof",draft:!1,tags:[],version:"1.0.19-alpha",frontMatter:{hide_table_of_contents:!0}},c={},f=[{value:"operator",id:"operator",level:2},{value:"string",id:"string",level:2},{value:"tuple",id:"tuple",level:2},{value:"helper",id:"helper",level:2}],s={toc:f},y="wrapper";function m(e){var r=e.components,t=(0,a.Z)(e,o);return(0,l.kt)(y,(0,n.Z)({},s,t,{components:r,mdxType:"MDXLayout"}),(0,l.kt)("h1",{id:"arrayof"},"arrayOf"),(0,l.kt)("h2",{id:"operator"},"operator"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},(0,l.kt)("a",{parentName:"li",href:"/docs/1.0.19-alpha/api/arrayof"},"arrayOf"))),(0,l.kt)("h2",{id:"string"},"string"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},'"T[]" ',(0,l.kt)("br",null)),(0,l.kt)("li",{parentName:"ul"},'const numberArray = type("number[]")',(0,l.kt)("br",null))),(0,l.kt)("h2",{id:"tuple"},"tuple"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},'[T, "[]"] ',(0,l.kt)("br",null)),(0,l.kt)("li",{parentName:"ul"},'const tupleArray = type(["number", "[]"])',(0,l.kt)("br",null))),(0,l.kt)("h2",{id:"helper"},"helper"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},"arrayOf(T) ",(0,l.kt)("br",null)),(0,l.kt)("li",{parentName:"ul"},'const helperArray = arrayOf("number")',(0,l.kt)("br",null))))}m.isMDXComponent=!0}}]); \ No newline at end of file +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[6956],{7522:(e,r,t)=>{t.d(r,{Zo:()=>c,kt:()=>m});var n=t(9901);function a(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function l(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function o(e){for(var r=1;r=0||(a[t]=e[t]);return a}(e,r);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}var i=n.createContext({}),u=function(e){var r=n.useContext(i),t=r;return e&&(t="function"==typeof e?e(r):o(o({},r),e)),t},c=function(e){var r=u(e.components);return n.createElement(i.Provider,{value:r},e.children)},f="mdxType",s={inlineCode:"code",wrapper:function(e){var r=e.children;return n.createElement(n.Fragment,{},r)}},y=n.forwardRef((function(e,r){var t=e.components,a=e.mdxType,l=e.originalType,i=e.parentName,c=p(e,["components","mdxType","originalType","parentName"]),f=u(t),y=a,m=f["".concat(i,".").concat(y)]||f[y]||s[y]||l;return t?n.createElement(m,o(o({ref:r},c),{},{components:t})):n.createElement(m,o({ref:r},c))}));function m(e,r){var t=arguments,a=r&&r.mdxType;if("string"==typeof e||a){var l=t.length,o=new Array(l);o[0]=y;var p={};for(var i in r)hasOwnProperty.call(r,i)&&(p[i]=r[i]);p.originalType=e,p[f]="string"==typeof e?e:a,o[1]=p;for(var u=2;u{t.r(r),t.d(r,{assets:()=>c,contentTitle:()=>i,default:()=>m,frontMatter:()=>p,metadata:()=>u,toc:()=>f});var n=t(4805),a=t(8),l=(t(9901),t(7522)),o=["components"],p={hide_table_of_contents:!0},i="arrayOf",u={unversionedId:"api/arrayof",id:"version-1.0.19-alpha/api/arrayof",title:"arrayOf",description:"operator",source:"@site/versioned_docs/version-1.0.19-alpha/api/arrayof.md",sourceDirName:"api",slug:"/api/arrayof",permalink:"/docs/1.0.19-alpha/api/arrayof",draft:!1,tags:[],version:"1.0.19-alpha",frontMatter:{hide_table_of_contents:!0}},c={},f=[{value:"operator",id:"operator",level:2},{value:"string",id:"string",level:2},{value:"tuple",id:"tuple",level:2},{value:"helper",id:"helper",level:2}],s={toc:f},y="wrapper";function m(e){var r=e.components,t=(0,a.Z)(e,o);return(0,l.kt)(y,(0,n.Z)({},s,t,{components:r,mdxType:"MDXLayout"}),(0,l.kt)("h1",{id:"arrayof"},"arrayOf"),(0,l.kt)("h2",{id:"operator"},"operator"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},(0,l.kt)("a",{parentName:"li",href:"/docs/1.0.19-alpha/api/arrayof"},"arrayOf"))),(0,l.kt)("h2",{id:"string"},"string"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},'"T[]" ',(0,l.kt)("br",null)),(0,l.kt)("li",{parentName:"ul"},'const numberArray = type("number[]")',(0,l.kt)("br",null))),(0,l.kt)("h2",{id:"tuple"},"tuple"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},'[T, "[]"] ',(0,l.kt)("br",null)),(0,l.kt)("li",{parentName:"ul"},'const tupleArray = type(["number", "[]"])',(0,l.kt)("br",null))),(0,l.kt)("h2",{id:"helper"},"helper"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},"arrayOf(T) ",(0,l.kt)("br",null)),(0,l.kt)("li",{parentName:"ul"},'const helperArray = arrayOf("number")',(0,l.kt)("br",null))))}m.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/10bb0f04.07127f7a.js b/assets/js/10bb0f04.a15bd919.js similarity index 67% rename from assets/js/10bb0f04.07127f7a.js rename to assets/js/10bb0f04.a15bd919.js index 3e6ee6cdab..2a2e4f974e 100644 --- a/assets/js/10bb0f04.07127f7a.js +++ b/assets/js/10bb0f04.a15bd919.js @@ -1 +1 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[5124],{7522:(e,t,r)=>{r.d(t,{Zo:()=>s,kt:()=>b});var n=r(9901);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function l(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var c=n.createContext({}),i=function(e){var t=n.useContext(c),r=t;return e&&(r="function"==typeof e?e(t):l(l({},t),e)),r},s=function(e){var t=i(e.components);return n.createElement(c.Provider,{value:t},e.children)},u="mdxType",m={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},f=n.forwardRef((function(e,t){var r=e.components,o=e.mdxType,a=e.originalType,c=e.parentName,s=p(e,["components","mdxType","originalType","parentName"]),u=i(r),f=o,b=u["".concat(c,".").concat(f)]||u[f]||m[f]||a;return r?n.createElement(b,l(l({ref:t},s),{},{components:r})):n.createElement(b,l({ref:t},s))}));function b(e,t){var r=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var a=r.length,l=new Array(a);l[0]=f;var p={};for(var c in t)hasOwnProperty.call(t,c)&&(p[c]=t[c]);p.originalType=e,p[u]="string"==typeof e?e:o,l[1]=p;for(var i=2;i{r.r(t),r.d(t,{assets:()=>s,contentTitle:()=>c,default:()=>b,frontMatter:()=>p,metadata:()=>i,toc:()=>u});var n=r(3341),o=r(1792),a=(r(9901),r(7522)),l=["components"],p={hide_table_of_contents:!0},c="Problems",i={unversionedId:"api/problems",id:"version-1.0.22-alpha/api/problems",title:"Problems",description:"text",source:"@site/versioned_docs/version-1.0.22-alpha/api/problems.md",sourceDirName:"api",slug:"/api/problems",permalink:"/docs/api/problems",draft:!1,tags:[],version:"1.0.22-alpha",frontMatter:{hide_table_of_contents:!0}},s={},u=[{value:"text",id:"text",level:2}],m={toc:u},f="wrapper";function b(e){var t=e.components,r=(0,o.Z)(e,l);return(0,a.kt)(f,(0,n.Z)({},m,r,{components:t,mdxType:"MDXLayout"}),(0,a.kt)("h1",{id:"problems"},"Problems"),(0,a.kt)("h2",{id:"text"},"text"),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-ts"},"Problems: new (state: TraversalState) => Problems\nexport type Problems = arraySubclassToReadonly;\n")))}b.isMDXComponent=!0}}]); \ No newline at end of file +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[5124],{7522:(e,t,r)=>{r.d(t,{Zo:()=>s,kt:()=>b});var n=r(9901);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function l(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var c=n.createContext({}),i=function(e){var t=n.useContext(c),r=t;return e&&(r="function"==typeof e?e(t):l(l({},t),e)),r},s=function(e){var t=i(e.components);return n.createElement(c.Provider,{value:t},e.children)},u="mdxType",m={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},f=n.forwardRef((function(e,t){var r=e.components,o=e.mdxType,a=e.originalType,c=e.parentName,s=p(e,["components","mdxType","originalType","parentName"]),u=i(r),f=o,b=u["".concat(c,".").concat(f)]||u[f]||m[f]||a;return r?n.createElement(b,l(l({ref:t},s),{},{components:r})):n.createElement(b,l({ref:t},s))}));function b(e,t){var r=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var a=r.length,l=new Array(a);l[0]=f;var p={};for(var c in t)hasOwnProperty.call(t,c)&&(p[c]=t[c]);p.originalType=e,p[u]="string"==typeof e?e:o,l[1]=p;for(var i=2;i{r.r(t),r.d(t,{assets:()=>s,contentTitle:()=>c,default:()=>b,frontMatter:()=>p,metadata:()=>i,toc:()=>u});var n=r(4805),o=r(8),a=(r(9901),r(7522)),l=["components"],p={hide_table_of_contents:!0},c="Problems",i={unversionedId:"api/problems",id:"version-1.0.22-alpha/api/problems",title:"Problems",description:"text",source:"@site/versioned_docs/version-1.0.22-alpha/api/problems.md",sourceDirName:"api",slug:"/api/problems",permalink:"/docs/api/problems",draft:!1,tags:[],version:"1.0.22-alpha",frontMatter:{hide_table_of_contents:!0}},s={},u=[{value:"text",id:"text",level:2}],m={toc:u},f="wrapper";function b(e){var t=e.components,r=(0,o.Z)(e,l);return(0,a.kt)(f,(0,n.Z)({},m,r,{components:t,mdxType:"MDXLayout"}),(0,a.kt)("h1",{id:"problems"},"Problems"),(0,a.kt)("h2",{id:"text"},"text"),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-ts"},"Problems: new (state: TraversalState) => Problems\nexport type Problems = arraySubclassToReadonly;\n")))}b.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/114efe75.187eb74d.js b/assets/js/114efe75.f7dc08cf.js similarity index 58% rename from assets/js/114efe75.187eb74d.js rename to assets/js/114efe75.f7dc08cf.js index 80d2039187..7601712c67 100644 --- a/assets/js/114efe75.187eb74d.js +++ b/assets/js/114efe75.f7dc08cf.js @@ -1 +1 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[3559],{7522:(e,t,r)=>{r.d(t,{Zo:()=>c,kt:()=>d});var n=r(9901);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function p(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var i=n.createContext({}),u=function(e){var t=n.useContext(i),r=t;return e&&(r="function"==typeof e?e(t):p(p({},t),e)),r},c=function(e){var t=u(e.components);return n.createElement(i.Provider,{value:t},e.children)},s="mdxType",m={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},f=n.forwardRef((function(e,t){var r=e.components,o=e.mdxType,a=e.originalType,i=e.parentName,c=l(e,["components","mdxType","originalType","parentName"]),s=u(r),f=o,d=s["".concat(i,".").concat(f)]||s[f]||m[f]||a;return r?n.createElement(d,p(p({ref:t},c),{},{components:r})):n.createElement(d,p({ref:t},c))}));function d(e,t){var r=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var a=r.length,p=new Array(a);p[0]=f;var l={};for(var i in t)hasOwnProperty.call(t,i)&&(l[i]=t[i]);l.originalType=e,l[s]="string"==typeof e?e:o,p[1]=l;for(var u=2;u{r.r(t),r.d(t,{assets:()=>c,contentTitle:()=>i,default:()=>d,frontMatter:()=>l,metadata:()=>u,toc:()=>s});var n=r(3341),o=r(1792),a=(r(9901),r(7522)),p=["components"],l={hide_table_of_contents:!0},i="morph",u={unversionedId:"api/morph",id:"version-1.0.21-alpha/api/morph",title:"morph",description:"operator",source:"@site/versioned_docs/version-1.0.21-alpha/api/morph.md",sourceDirName:"api",slug:"/api/morph",permalink:"/docs/1.0.21-alpha/api/morph",draft:!1,tags:[],version:"1.0.21-alpha",frontMatter:{hide_table_of_contents:!0}},c={},s=[{value:"operator",id:"operator",level:2},{value:"tuple",id:"tuple",level:2},{value:"helper",id:"helper",level:2}],m={toc:s},f="wrapper";function d(e){var t=e.components,r=(0,o.Z)(e,p);return(0,a.kt)(f,(0,n.Z)({},m,r,{components:t,mdxType:"MDXLayout"}),(0,a.kt)("h1",{id:"morph"},"morph"),(0,a.kt)("h2",{id:"operator"},"operator"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},(0,a.kt)("a",{parentName:"li",href:"/docs/1.0.21-alpha/api/morph"},"|",">"))),(0,a.kt)("h2",{id:"tuple"},"tuple"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},'[inputType, "',"|",'>", (data) => output]'," ",(0,a.kt)("br",null)),(0,a.kt)("li",{parentName:"ul"},"const tupleMorph = type( ",'["string", "',"|",'>" , (data) => ',"`","morphed ${data}","`]",")",(0,a.kt)("br",null))),(0,a.kt)("h2",{id:"helper"},"helper"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},"morph(inputType, (data) => output) ",(0,a.kt)("br",null)),(0,a.kt)("li",{parentName:"ul"},'const helperMorph = morph("string", (data) => ',"`","morphed ${data}","`",")",(0,a.kt)("br",null))))}d.isMDXComponent=!0}}]); \ No newline at end of file +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[3559],{7522:(e,t,r)=>{r.d(t,{Zo:()=>c,kt:()=>d});var n=r(9901);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function p(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var i=n.createContext({}),u=function(e){var t=n.useContext(i),r=t;return e&&(r="function"==typeof e?e(t):p(p({},t),e)),r},c=function(e){var t=u(e.components);return n.createElement(i.Provider,{value:t},e.children)},s="mdxType",m={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},f=n.forwardRef((function(e,t){var r=e.components,o=e.mdxType,a=e.originalType,i=e.parentName,c=l(e,["components","mdxType","originalType","parentName"]),s=u(r),f=o,d=s["".concat(i,".").concat(f)]||s[f]||m[f]||a;return r?n.createElement(d,p(p({ref:t},c),{},{components:r})):n.createElement(d,p({ref:t},c))}));function d(e,t){var r=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var a=r.length,p=new Array(a);p[0]=f;var l={};for(var i in t)hasOwnProperty.call(t,i)&&(l[i]=t[i]);l.originalType=e,l[s]="string"==typeof e?e:o,p[1]=l;for(var u=2;u{r.r(t),r.d(t,{assets:()=>c,contentTitle:()=>i,default:()=>d,frontMatter:()=>l,metadata:()=>u,toc:()=>s});var n=r(4805),o=r(8),a=(r(9901),r(7522)),p=["components"],l={hide_table_of_contents:!0},i="morph",u={unversionedId:"api/morph",id:"version-1.0.21-alpha/api/morph",title:"morph",description:"operator",source:"@site/versioned_docs/version-1.0.21-alpha/api/morph.md",sourceDirName:"api",slug:"/api/morph",permalink:"/docs/1.0.21-alpha/api/morph",draft:!1,tags:[],version:"1.0.21-alpha",frontMatter:{hide_table_of_contents:!0}},c={},s=[{value:"operator",id:"operator",level:2},{value:"tuple",id:"tuple",level:2},{value:"helper",id:"helper",level:2}],m={toc:s},f="wrapper";function d(e){var t=e.components,r=(0,o.Z)(e,p);return(0,a.kt)(f,(0,n.Z)({},m,r,{components:t,mdxType:"MDXLayout"}),(0,a.kt)("h1",{id:"morph"},"morph"),(0,a.kt)("h2",{id:"operator"},"operator"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},(0,a.kt)("a",{parentName:"li",href:"/docs/1.0.21-alpha/api/morph"},"|",">"))),(0,a.kt)("h2",{id:"tuple"},"tuple"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},'[inputType, "',"|",'>", (data) => output]'," ",(0,a.kt)("br",null)),(0,a.kt)("li",{parentName:"ul"},"const tupleMorph = type( ",'["string", "',"|",'>" , (data) => ',"`","morphed ${data}","`]",")",(0,a.kt)("br",null))),(0,a.kt)("h2",{id:"helper"},"helper"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},"morph(inputType, (data) => output) ",(0,a.kt)("br",null)),(0,a.kt)("li",{parentName:"ul"},'const helperMorph = morph("string", (data) => ',"`","morphed ${data}","`",")",(0,a.kt)("br",null))))}d.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/119c85c3.d3904ea6.js b/assets/js/119c85c3.227b4675.js similarity index 57% rename from assets/js/119c85c3.d3904ea6.js rename to assets/js/119c85c3.227b4675.js index 8009e200a0..ccecb44596 100644 --- a/assets/js/119c85c3.d3904ea6.js +++ b/assets/js/119c85c3.227b4675.js @@ -1 +1 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[6075],{7522:(e,t,n)=>{n.d(t,{Zo:()=>u,kt:()=>d});var r=n(9901);function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var c=r.createContext({}),p=function(e){var t=r.useContext(c),n=t;return e&&(n="function"==typeof e?e(t):l(l({},t),e)),n},u=function(e){var t=p(e.components);return r.createElement(c.Provider,{value:t},e.children)},s="mdxType",f={inlineCode:"code",wrapper:function(e){var t=e.children;return r.createElement(r.Fragment,{},t)}},m=r.forwardRef((function(e,t){var n=e.components,a=e.mdxType,o=e.originalType,c=e.parentName,u=i(e,["components","mdxType","originalType","parentName"]),s=p(n),m=a,d=s["".concat(c,".").concat(m)]||s[m]||f[m]||o;return n?r.createElement(d,l(l({ref:t},u),{},{components:n})):r.createElement(d,l({ref:t},u))}));function d(e,t){var n=arguments,a=t&&t.mdxType;if("string"==typeof e||a){var o=n.length,l=new Array(o);l[0]=m;var i={};for(var c in t)hasOwnProperty.call(t,c)&&(i[c]=t[c]);i.originalType=e,i[s]="string"==typeof e?e:a,l[1]=i;for(var p=2;p{n.r(t),n.d(t,{assets:()=>u,contentTitle:()=>c,default:()=>d,frontMatter:()=>i,metadata:()=>p,toc:()=>s});var r=n(3341),a=n(1792),o=(n(9901),n(7522)),l=["components"],i={hide_table_of_contents:!0},c="instanceOf",p={unversionedId:"api/instanceof",id:"version-1.0.20-alpha/api/instanceof",title:"instanceOf",description:"operator",source:"@site/versioned_docs/version-1.0.20-alpha/api/instanceof.md",sourceDirName:"api",slug:"/api/instanceof",permalink:"/docs/1.0.20-alpha/api/instanceof",draft:!1,tags:[],version:"1.0.20-alpha",frontMatter:{hide_table_of_contents:!0}},u={},s=[{value:"operator",id:"operator",level:2},{value:"tuple",id:"tuple",level:2},{value:"helper",id:"helper",level:2}],f={toc:s},m="wrapper";function d(e){var t=e.components,n=(0,a.Z)(e,l);return(0,o.kt)(m,(0,r.Z)({},f,n,{components:t,mdxType:"MDXLayout"}),(0,o.kt)("h1",{id:"instanceof"},"instanceOf"),(0,o.kt)("h2",{id:"operator"},"operator"),(0,o.kt)("ul",null,(0,o.kt)("li",{parentName:"ul"},(0,o.kt)("a",{parentName:"li",href:"/docs/1.0.20-alpha/api/instanceof"},"instanceOf"))),(0,o.kt)("h2",{id:"tuple"},"tuple"),(0,o.kt)("ul",null,(0,o.kt)("li",{parentName:"ul"},'["instanceOf", T]'," ",(0,o.kt)("br",null)),(0,o.kt)("li",{parentName:"ul"},"const tupleInstanceOf = type(",'["instanceOf", Date]',")",(0,o.kt)("br",null))),(0,o.kt)("h2",{id:"helper"},"helper"),(0,o.kt)("ul",null,(0,o.kt)("li",{parentName:"ul"},"instanceOf(T) ",(0,o.kt)("br",null)),(0,o.kt)("li",{parentName:"ul"},"const helperInstanceOf = instanceOf(Date)",(0,o.kt)("br",null))))}d.isMDXComponent=!0}}]); \ No newline at end of file +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[6075],{7522:(e,t,n)=>{n.d(t,{Zo:()=>u,kt:()=>d});var r=n(9901);function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var c=r.createContext({}),p=function(e){var t=r.useContext(c),n=t;return e&&(n="function"==typeof e?e(t):l(l({},t),e)),n},u=function(e){var t=p(e.components);return r.createElement(c.Provider,{value:t},e.children)},s="mdxType",f={inlineCode:"code",wrapper:function(e){var t=e.children;return r.createElement(r.Fragment,{},t)}},m=r.forwardRef((function(e,t){var n=e.components,a=e.mdxType,o=e.originalType,c=e.parentName,u=i(e,["components","mdxType","originalType","parentName"]),s=p(n),m=a,d=s["".concat(c,".").concat(m)]||s[m]||f[m]||o;return n?r.createElement(d,l(l({ref:t},u),{},{components:n})):r.createElement(d,l({ref:t},u))}));function d(e,t){var n=arguments,a=t&&t.mdxType;if("string"==typeof e||a){var o=n.length,l=new Array(o);l[0]=m;var i={};for(var c in t)hasOwnProperty.call(t,c)&&(i[c]=t[c]);i.originalType=e,i[s]="string"==typeof e?e:a,l[1]=i;for(var p=2;p{n.r(t),n.d(t,{assets:()=>u,contentTitle:()=>c,default:()=>d,frontMatter:()=>i,metadata:()=>p,toc:()=>s});var r=n(4805),a=n(8),o=(n(9901),n(7522)),l=["components"],i={hide_table_of_contents:!0},c="instanceOf",p={unversionedId:"api/instanceof",id:"version-1.0.20-alpha/api/instanceof",title:"instanceOf",description:"operator",source:"@site/versioned_docs/version-1.0.20-alpha/api/instanceof.md",sourceDirName:"api",slug:"/api/instanceof",permalink:"/docs/1.0.20-alpha/api/instanceof",draft:!1,tags:[],version:"1.0.20-alpha",frontMatter:{hide_table_of_contents:!0}},u={},s=[{value:"operator",id:"operator",level:2},{value:"tuple",id:"tuple",level:2},{value:"helper",id:"helper",level:2}],f={toc:s},m="wrapper";function d(e){var t=e.components,n=(0,a.Z)(e,l);return(0,o.kt)(m,(0,r.Z)({},f,n,{components:t,mdxType:"MDXLayout"}),(0,o.kt)("h1",{id:"instanceof"},"instanceOf"),(0,o.kt)("h2",{id:"operator"},"operator"),(0,o.kt)("ul",null,(0,o.kt)("li",{parentName:"ul"},(0,o.kt)("a",{parentName:"li",href:"/docs/1.0.20-alpha/api/instanceof"},"instanceOf"))),(0,o.kt)("h2",{id:"tuple"},"tuple"),(0,o.kt)("ul",null,(0,o.kt)("li",{parentName:"ul"},'["instanceOf", T]'," ",(0,o.kt)("br",null)),(0,o.kt)("li",{parentName:"ul"},"const tupleInstanceOf = type(",'["instanceOf", Date]',")",(0,o.kt)("br",null))),(0,o.kt)("h2",{id:"helper"},"helper"),(0,o.kt)("ul",null,(0,o.kt)("li",{parentName:"ul"},"instanceOf(T) ",(0,o.kt)("br",null)),(0,o.kt)("li",{parentName:"ul"},"const helperInstanceOf = instanceOf(Date)",(0,o.kt)("br",null))))}d.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/1420.050ca45b.js b/assets/js/1420.050ca45b.js new file mode 100644 index 0000000000..c359c99b31 --- /dev/null +++ b/assets/js/1420.050ca45b.js @@ -0,0 +1 @@ +(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[1420],{1420:(e,t,n)=>{"use strict";n.d(t,{Z:()=>G});var o=n(4805),r=n(8),a=n(9901),c=n(9173),s=n(4517),l=n(5636),i=n(7038);function u(){var e=(0,i.L)().prism,t=(0,l.I)().colorMode,n=e.theme,o=e.darkTheme||n;return"dark"===t?o:n}var d=n(9),p=n(1428),m=n(2613),f=n.n(m),g=(0,p.Z)(/title=(["'])(.*?)\1/,{quote:1,title:2}),v=(0,p.Z)(/\{([\d,-]+)\}/,{range:1}),y={js:{start:"\\/\\/",end:""},jsBlock:{start:"\\/\\*",end:"\\*\\/"},jsx:{start:"\\{\\s*\\/\\*",end:"\\*\\/\\s*\\}"},bash:{start:"#",end:""},html:{start:"\x3c!--",end:"--\x3e"}};function h(e,t){var n=e.map((function(e){var n=y[e],o=n.start,r=n.end;return"(?:"+o+"\\s*("+t.flatMap((function(e){var t,n;return[e.line,null==(t=e.block)?void 0:t.start,null==(n=e.block)?void 0:n.end].filter(Boolean)})).join("|")+")\\s*"+r+")"})).join("|");return new RegExp("^\\s*(?:"+n+")\\s*$")}function b(e,t){var n=e.replace(/\n$/,""),o=t.language,r=t.magicComments,a=t.metastring;if(a&&v.test(a)){var c=a.match(v).groups.range;if(0===r.length)throw new Error("A highlight range has been given in code block's metastring (``` "+a+"), but no magic comment config is available. Docusaurus applies the first magic comment entry's className for metastring ranges.");var s=r[0].className,l=f()(c).filter((function(e){return e>0})).map((function(e){return[e-1,[s]]}));return{lineClassNames:Object.fromEntries(l),code:n}}if(void 0===o)return{lineClassNames:{},code:n};for(var i=function(e,t){switch(e){case"js":case"javascript":case"ts":case"typescript":return h(["js","jsBlock"],t);case"jsx":case"tsx":return h(["js","jsBlock","jsx"],t);case"html":return h(["js","jsBlock","html"],t);case"python":case"py":case"bash":return h(["bash"],t);case"markdown":case"md":return h(["html","jsx","bash"],t);default:return h(Object.keys(y),t)}}(o,r),u=n.split("\n"),d=Object.fromEntries(r.map((function(e){return[e.className,{start:0,range:""}]}))),p=Object.fromEntries(r.filter((function(e){return e.line})).map((function(e){var t=e.className;return[e.line,t]}))),m=Object.fromEntries(r.filter((function(e){return e.block})).map((function(e){var t=e.className;return[e.block.start,t]}))),g=Object.fromEntries(r.filter((function(e){return e.block})).map((function(e){var t=e.className;return[e.block.end,t]}))),b=0;b0&&e[n-1]===t?e:e.concat(t)};function A(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&-1===t.indexOf(o)&&(n[o]=e[o]);return n}var P=function(e){function t(){for(var t=this,n=[],o=arguments.length;o--;)n[o]=arguments[o];e.apply(this,n),I(this,"getThemeDict",(function(e){if(void 0!==t.themeDict&&e.theme===t.prevTheme&&e.language===t.prevLanguage)return t.themeDict;t.prevTheme=e.theme,t.prevLanguage=e.language;var n=e.theme?function(e,t){var n=e.plain,o=Object.create(null),r=e.styles.reduce((function(e,n){var o=n.languages,r=n.style;return o&&!o.includes(t)||n.types.forEach((function(t){var n=_({},e[t],r);e[t]=n})),e}),o);return r.root=n,r.plain=_({},n,{backgroundColor:null}),r}(e.theme,e.language):void 0;return t.themeDict=n})),I(this,"getLineProps",(function(e){var n=e.key,o=e.className,r=e.style,a=_({},A(e,["key","className","style","line"]),{className:"token-line",style:void 0,key:void 0}),c=t.getThemeDict(t.props);return void 0!==c&&(a.style=c.plain),void 0!==r&&(a.style=void 0!==a.style?_({},a.style,r):r),void 0!==n&&(a.key=n),o&&(a.className+=" "+o),a})),I(this,"getStyleForToken",(function(e){var n=e.types,o=e.empty,r=n.length,a=t.getThemeDict(t.props);if(void 0!==a){if(1===r&&"plain"===n[0])return o?{display:"inline-block"}:void 0;if(1===r&&!o)return a[n[0]];var c=o?{display:"inline-block"}:{},s=n.map((function(e){return a[e]}));return Object.assign.apply(Object,[c].concat(s))}})),I(this,"getTokenProps",(function(e){var n=e.key,o=e.className,r=e.style,a=e.token,c=_({},A(e,["key","className","style","token"]),{className:"token "+a.types.join(" "),children:a.content,style:t.getStyleForToken(a),key:void 0});return void 0!==r&&(c.style=void 0!==c.style?_({},c.style,r):r),void 0!==n&&(c.key=n),o&&(c.className+=" "+o),c})),I(this,"tokenize",(function(e,t,n,o){var r={code:t,grammar:n,language:o,tokens:[]};e.hooks.run("before-tokenize",r);var a=r.tokens=e.tokenize(r.code,r.grammar,r.language);return e.hooks.run("after-tokenize",r),a}))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.render=function(){var e=this.props,t=e.Prism,n=e.language,o=e.code,r=e.children,a=this.getThemeDict(this.props),c=t.languages[n];return r({tokens:function(e){for(var t=[[]],n=[e],o=[0],r=[e.length],a=0,c=0,s=[],l=[s];c>-1;){for(;(a=o[c]++)0?u:["plain"],i=d):(u=S(u,d.type),d.alias&&(u=S(u,d.alias)),i=d.content),"string"==typeof i){var p=i.split(Z),m=p.length;s.push({types:u,content:p[0]});for(var f=1;f0&&c.getRangeAt(0);o.append(r),r.select(),r.selectionStart=0,r.selectionEnd=e.length;var l=!1;try{l=document.execCommand("copy")}catch(i){}r.remove(),s&&(c.removeAllRanges(),c.addRange(s)),a&&a.focus()}(t),c(!0),l.current=window.setTimeout((function(){c(!1)}),1e3)}),[t]);return(0,a.useEffect)((function(){return function(){return window.clearTimeout(l.current)}}),[]),a.createElement("button",{type:"button","aria-label":r?(0,H.I)({id:"theme.CodeBlock.copied",message:"Copied",description:"The copied button label on code blocks"}):(0,H.I)({id:"theme.CodeBlock.copyButtonAriaLabel",message:"Copy code to clipboard",description:"The ARIA label for copy code blocks button"}),title:(0,H.I)({id:"theme.CodeBlock.copy",message:"Copy",description:"The copy button label on code blocks"}),className:(0,s.Z)("clean-btn",n,R.copyButton,r&&R.copyButtonCopied),onClick:i},a.createElement("span",{className:R.copyButtonIcons,"aria-hidden":"true"},a.createElement("svg",{className:R.copyButtonIcon,viewBox:"0 0 24 24"},a.createElement("path",{d:"M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"})),a.createElement("svg",{className:R.copyButtonSuccessIcon,viewBox:"0 0 24 24"},a.createElement("path",{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"}))))}const V={wordWrapButtonIcon:"wordWrapButtonIcon_TyEO",wordWrapButtonEnabled:"wordWrapButtonEnabled_xdhj"};function F(e){var t=e.className,n=e.onClick,o=e.isEnabled,r=(0,H.I)({id:"theme.CodeBlock.wordWrapToggle",message:"Toggle word wrap",description:"The title attribute for toggle word wrapping button of code block lines"});return a.createElement("button",{type:"button",onClick:n,className:(0,s.Z)("clean-btn",t,o&&V.wordWrapButtonEnabled),"aria-label":r,title:r},a.createElement("svg",{className:V.wordWrapButtonIcon,viewBox:"0 0 24 24","aria-hidden":"true"},a.createElement("path",{fill:"currentColor",d:"M4 19h6v-2H4v2zM20 5H4v2h16V5zm-3 6H4v2h13.25c1.1 0 2 .9 2 2s-.9 2-2 2H15v-2l-3 3l3 3v-2h2c2.21 0 4-1.79 4-4s-1.79-4-4-4z"})))}function $(e){var t,n,r,c,l,d,p,m,f,v,y,h=e.children,k=e.className,E=void 0===k?"":k,C=e.metastring,w=e.title,L=e.showLineNumbers,T=e.language,I=(0,i.L)().prism,_=I.defaultLanguage,Z=I.magicComments,O=null!=(t=null!=T?T:null==(n=E.split(" ").find((function(e){return e.startsWith("language-")})))?void 0:n.replace(/language-/,""))?t:_,S=u(),A=(r=(0,a.useState)(!1),c=r[0],l=r[1],d=(0,a.useState)(!1),p=d[0],m=d[1],f=(0,a.useRef)(null),v=(0,a.useCallback)((function(){var e=f.current.querySelector("code");c?e.removeAttribute("style"):(e.style.whiteSpace="pre-wrap",e.style.overflowWrap="anywhere"),l((function(e){return!e}))}),[f,c]),y=(0,a.useCallback)((function(){var e=f.current,t=e.scrollWidth>e.clientWidth||f.current.querySelector("code").hasAttribute("style");m(t)}),[f]),j(f,y),(0,a.useEffect)((function(){y()}),[c,y]),(0,a.useEffect)((function(){return window.addEventListener("resize",y,{passive:!0}),function(){window.removeEventListener("resize",y)}}),[y]),{codeBlockRef:f,isEnabled:c,isCodeScrollable:p,toggle:v}),P=function(e){var t,n;return null!=(t=null==e||null==(n=e.match(g))?void 0:n.groups.title)?t:""}(C)||w,z=b(h,{metastring:C,language:O,magicComments:Z}),H=z.lineClassNames,R=z.code,V=null!=L?L:function(e){return Boolean(null==e?void 0:e.includes("showLineNumbers"))}(C);return a.createElement(B,{as:"div",className:(0,s.Z)(E,O&&!E.includes("language-"+O)&&"language-"+O)},P&&a.createElement("div",{className:N.codeBlockTitle},P),a.createElement("div",{className:N.codeBlockContent},a.createElement(W,(0,o.Z)({},x,{theme:S,code:R,language:null!=O?O:"text"}),(function(e){var t=e.className,n=e.tokens,o=e.getLineProps,r=e.getTokenProps;return a.createElement("pre",{tabIndex:0,ref:A.codeBlockRef,className:(0,s.Z)(t,N.codeBlock,"thin-scrollbar")},a.createElement("code",{className:(0,s.Z)(N.codeBlockLines,V&&N.codeBlockLinesWithNumbering)},n.map((function(e,t){return a.createElement(D,{key:t,line:e,getLineProps:o,getTokenProps:r,classNames:H[t],showLineNumbers:V})}))))})),a.createElement("div",{className:N.buttonGroup},(A.isEnabled||A.isCodeScrollable)&&a.createElement(F,{className:N.codeButton,onClick:function(){return A.toggle()},isEnabled:A.isEnabled}),a.createElement(M,{className:N.codeButton,code:R}))))}var q=["children"];function G(e){var t=e.children,n=(0,r.Z)(e,q),s=(0,c.Z)(),l=function(e){return a.Children.toArray(e).some((function(e){return(0,a.isValidElement)(e)}))?e:Array.isArray(e)?e.join(""):e}(t),i="string"==typeof l?$:C;return a.createElement(i,(0,o.Z)({key:String(s)},n),l)}},2613:(e,t)=>{function n(e){let t,n=[];for(let o of e.split(",").map((e=>e.trim())))if(/^-?\d+$/.test(o))n.push(parseInt(o,10));else if(t=o.match(/^(-?\d+)(-|\.\.\.?|\u2025|\u2026|\u22EF)(-?\d+)$/)){let[e,o,r,a]=t;if(o&&a){o=parseInt(o),a=parseInt(a);const e=o{n.d(t,{Zo:()=>c,kt:()=>d});var r=n(9901);function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var u=r.createContext({}),p=function(e){var t=r.useContext(u),n=t;return e&&(n="function"==typeof e?e(t):a(a({},t),e)),n},c=function(e){var t=p(e.components);return r.createElement(u.Provider,{value:t},e.children)},s="mdxType",f={inlineCode:"code",wrapper:function(e){var t=e.children;return r.createElement(r.Fragment,{},t)}},m=r.forwardRef((function(e,t){var n=e.components,o=e.mdxType,l=e.originalType,u=e.parentName,c=i(e,["components","mdxType","originalType","parentName"]),s=p(n),m=o,d=s["".concat(u,".").concat(m)]||s[m]||f[m]||l;return n?r.createElement(d,a(a({ref:t},c),{},{components:n})):r.createElement(d,a({ref:t},c))}));function d(e,t){var n=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var l=n.length,a=new Array(l);a[0]=m;var i={};for(var u in t)hasOwnProperty.call(t,u)&&(i[u]=t[u]);i.originalType=e,i[s]="string"==typeof e?e:o,a[1]=i;for(var p=2;p{n.r(t),n.d(t,{assets:()=>c,contentTitle:()=>u,default:()=>d,frontMatter:()=>i,metadata:()=>p,toc:()=>s});var r=n(3341),o=n(1792),l=(n(9901),n(7522)),a=["components"],i={hide_table_of_contents:!0},u="union",p={unversionedId:"api/union",id:"version-1.0.21-alpha/api/union",title:"union",description:"operator",source:"@site/versioned_docs/version-1.0.21-alpha/api/union.md",sourceDirName:"api",slug:"/api/union",permalink:"/docs/1.0.21-alpha/api/union",draft:!1,tags:[],version:"1.0.21-alpha",frontMatter:{hide_table_of_contents:!0}},c={},s=[{value:"operator",id:"operator",level:2},{value:"string",id:"string",level:2},{value:"tuple",id:"tuple",level:2},{value:"helper",id:"helper",level:2}],f={toc:s},m="wrapper";function d(e){var t=e.components,n=(0,o.Z)(e,a);return(0,l.kt)(m,(0,r.Z)({},f,n,{components:t,mdxType:"MDXLayout"}),(0,l.kt)("h1",{id:"union"},"union"),(0,l.kt)("h2",{id:"operator"},"operator"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},(0,l.kt)("a",{parentName:"li",href:"/docs/1.0.21-alpha/api/union"},"|"))),(0,l.kt)("h2",{id:"string"},"string"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},'"L',"|",'R" ',(0,l.kt)("br",null)),(0,l.kt)("li",{parentName:"ul"},'const union = type("string',"|",'number")',(0,l.kt)("br",null))),(0,l.kt)("h2",{id:"tuple"},"tuple"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},'[L, "',"|",'" , R]'," ",(0,l.kt)("br",null)),(0,l.kt)("li",{parentName:"ul"},"const tupleUnion = type(",'["string", "',"|",'", "number"]',")",(0,l.kt)("br",null))),(0,l.kt)("h2",{id:"helper"},"helper"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},"union(L,R) ",(0,l.kt)("br",null)),(0,l.kt)("li",{parentName:"ul"},'const helperUnion = union("string", "number")',(0,l.kt)("br",null))))}d.isMDXComponent=!0}}]); \ No newline at end of file +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[9370],{7522:(e,t,n)=>{n.d(t,{Zo:()=>c,kt:()=>d});var r=n(9901);function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var u=r.createContext({}),p=function(e){var t=r.useContext(u),n=t;return e&&(n="function"==typeof e?e(t):a(a({},t),e)),n},c=function(e){var t=p(e.components);return r.createElement(u.Provider,{value:t},e.children)},s="mdxType",f={inlineCode:"code",wrapper:function(e){var t=e.children;return r.createElement(r.Fragment,{},t)}},m=r.forwardRef((function(e,t){var n=e.components,o=e.mdxType,l=e.originalType,u=e.parentName,c=i(e,["components","mdxType","originalType","parentName"]),s=p(n),m=o,d=s["".concat(u,".").concat(m)]||s[m]||f[m]||l;return n?r.createElement(d,a(a({ref:t},c),{},{components:n})):r.createElement(d,a({ref:t},c))}));function d(e,t){var n=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var l=n.length,a=new Array(l);a[0]=m;var i={};for(var u in t)hasOwnProperty.call(t,u)&&(i[u]=t[u]);i.originalType=e,i[s]="string"==typeof e?e:o,a[1]=i;for(var p=2;p{n.r(t),n.d(t,{assets:()=>c,contentTitle:()=>u,default:()=>d,frontMatter:()=>i,metadata:()=>p,toc:()=>s});var r=n(4805),o=n(8),l=(n(9901),n(7522)),a=["components"],i={hide_table_of_contents:!0},u="union",p={unversionedId:"api/union",id:"version-1.0.21-alpha/api/union",title:"union",description:"operator",source:"@site/versioned_docs/version-1.0.21-alpha/api/union.md",sourceDirName:"api",slug:"/api/union",permalink:"/docs/1.0.21-alpha/api/union",draft:!1,tags:[],version:"1.0.21-alpha",frontMatter:{hide_table_of_contents:!0}},c={},s=[{value:"operator",id:"operator",level:2},{value:"string",id:"string",level:2},{value:"tuple",id:"tuple",level:2},{value:"helper",id:"helper",level:2}],f={toc:s},m="wrapper";function d(e){var t=e.components,n=(0,o.Z)(e,a);return(0,l.kt)(m,(0,r.Z)({},f,n,{components:t,mdxType:"MDXLayout"}),(0,l.kt)("h1",{id:"union"},"union"),(0,l.kt)("h2",{id:"operator"},"operator"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},(0,l.kt)("a",{parentName:"li",href:"/docs/1.0.21-alpha/api/union"},"|"))),(0,l.kt)("h2",{id:"string"},"string"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},'"L',"|",'R" ',(0,l.kt)("br",null)),(0,l.kt)("li",{parentName:"ul"},'const union = type("string',"|",'number")',(0,l.kt)("br",null))),(0,l.kt)("h2",{id:"tuple"},"tuple"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},'[L, "',"|",'" , R]'," ",(0,l.kt)("br",null)),(0,l.kt)("li",{parentName:"ul"},"const tupleUnion = type(",'["string", "',"|",'", "number"]',")",(0,l.kt)("br",null))),(0,l.kt)("h2",{id:"helper"},"helper"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},"union(L,R) ",(0,l.kt)("br",null)),(0,l.kt)("li",{parentName:"ul"},'const helperUnion = union("string", "number")',(0,l.kt)("br",null))))}d.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/17896441.a8454309.js b/assets/js/17896441.a8454309.js deleted file mode 100644 index f8e102c1de..0000000000 --- a/assets/js/17896441.a8454309.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[7918],{7522:(e,t,n)=>{n.d(t,{Zo:()=>d,kt:()=>p});var a=n(9901);function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function i(e){for(var t=1;t=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var c=a.createContext({}),s=function(e){var t=a.useContext(c),n=t;return e&&(n="function"==typeof e?e(t):i(i({},t),e)),n},d=function(e){var t=s(e.components);return a.createElement(c.Provider,{value:t},e.children)},m="mdxType",u={inlineCode:"code",wrapper:function(e){var t=e.children;return a.createElement(a.Fragment,{},t)}},v=a.forwardRef((function(e,t){var n=e.components,r=e.mdxType,l=e.originalType,c=e.parentName,d=o(e,["components","mdxType","originalType","parentName"]),m=s(n),v=r,p=m["".concat(c,".").concat(v)]||m[v]||u[v]||l;return n?a.createElement(p,i(i({ref:t},d),{},{components:n})):a.createElement(p,i({ref:t},d))}));function p(e,t){var n=arguments,r=t&&t.mdxType;if("string"==typeof e||r){var l=n.length,i=new Array(l);i[0]=v;var o={};for(var c in t)hasOwnProperty.call(t,c)&&(o[c]=t[c]);o.originalType=e,o[m]="string"==typeof e?e:r,i[1]=o;for(var s=2;s{n.r(t),n.d(t,{default:()=>rt});var a=n(9901),r=n(6330),l=n(3373),i=a.createContext(null);function o(e){var t=e.children,n=function(e){return(0,a.useMemo)((function(){return{metadata:e.metadata,frontMatter:e.frontMatter,assets:e.assets,contentTitle:e.contentTitle,toc:e.toc}}),[e])}(e.content);return a.createElement(i.Provider,{value:n},t)}function c(){var e=(0,a.useContext)(i);if(null===e)throw new l.i6("DocProvider");return e}function s(){var e,t=c(),n=t.metadata,l=t.frontMatter,i=t.assets;return a.createElement(r.d,{title:n.title,description:n.description,keywords:l.keywords,image:null!=(e=i.image)?e:l.image})}var d=n(4517),m=n(4478),u=n(3341),v=n(6692),p=n(119);function f(e){var t=e.permalink,n=e.title,r=e.subLabel,l=e.isNext;return a.createElement(p.Z,{className:(0,d.Z)("pagination-nav__link",l?"pagination-nav__link--next":"pagination-nav__link--prev"),to:t},r&&a.createElement("div",{className:"pagination-nav__sublabel"},r),a.createElement("div",{className:"pagination-nav__label"},n))}function h(e){var t=e.previous,n=e.next;return a.createElement("nav",{className:"pagination-nav docusaurus-mt-lg","aria-label":(0,v.I)({id:"theme.docs.paginator.navAriaLabel",message:"Docs pages navigation",description:"The ARIA label for the docs pagination"})},t&&a.createElement(f,(0,u.Z)({},t,{subLabel:a.createElement(v.Z,{id:"theme.docs.paginator.previous",description:"The label used to navigate to the previous doc"},"Previous")})),n&&a.createElement(f,(0,u.Z)({},n,{subLabel:a.createElement(v.Z,{id:"theme.docs.paginator.next",description:"The label used to navigate to the next doc"},"Next"),isNext:!0})))}function b(){var e=c().metadata;return a.createElement(h,{previous:e.previous,next:e.next})}var g=n(5145),E=n(357),N=n(5029),y=n(6442),C=n(301);var L={unreleased:function(e){var t=e.siteTitle,n=e.versionMetadata;return a.createElement(v.Z,{id:"theme.docs.versions.unreleasedVersionLabel",description:"The label used to tell the user that he's browsing an unreleased doc version",values:{siteTitle:t,versionLabel:a.createElement("b",null,n.label)}},"This is unreleased documentation for {siteTitle} {versionLabel} version.")},unmaintained:function(e){var t=e.siteTitle,n=e.versionMetadata;return a.createElement(v.Z,{id:"theme.docs.versions.unmaintainedVersionLabel",description:"The label used to tell the user that he's browsing an unmaintained doc version",values:{siteTitle:t,versionLabel:a.createElement("b",null,n.label)}},"This is documentation for {siteTitle} {versionLabel}, which is no longer actively maintained.")}};function Z(e){var t=L[e.versionMetadata.banner];return a.createElement(t,e)}function k(e){var t=e.versionLabel,n=e.to,r=e.onClick;return a.createElement(v.Z,{id:"theme.docs.versions.latestVersionSuggestionLabel",description:"The label used to tell the user to check the latest version",values:{versionLabel:t,latestVersionLink:a.createElement("b",null,a.createElement(p.Z,{to:n,onClick:r},a.createElement(v.Z,{id:"theme.docs.versions.latestVersionLinkLabel",description:"The label used for the latest version suggestion link label"},"latest version")))}},"For up-to-date documentation, see the {latestVersionLink} ({versionLabel}).")}function _(e){var t,n=e.className,r=e.versionMetadata,l=(0,g.Z)().siteConfig.title,i=(0,E.gA)({failfast:!0}).pluginId,o=(0,y.J)(i).savePreferredVersionName,c=(0,E.Jo)(i),s=c.latestDocSuggestion,m=c.latestVersionSuggestion,u=null!=s?s:(t=m).docs.find((function(e){return e.id===t.mainDocId}));return a.createElement("div",{className:(0,d.Z)(n,N.k.docs.docVersionBanner,"alert alert--warning margin-bottom--md"),role:"alert"},a.createElement("div",null,a.createElement(Z,{siteTitle:l,versionMetadata:r})),a.createElement("div",{className:"margin-top--md"},a.createElement(k,{versionLabel:m.label,to:u.path,onClick:function(){return o(m.name)}})))}function T(e){var t=e.className,n=(0,C.E)();return n.banner?a.createElement(_,{className:t,versionMetadata:n}):null}function x(e){var t=e.className,n=(0,C.E)();return n.badge?a.createElement("span",{className:(0,d.Z)(t,N.k.docs.docVersionBadge,"badge badge--secondary")},a.createElement(v.Z,{id:"theme.docs.versionBadge.label",values:{versionLabel:n.label}},"Version: {versionLabel}")):null}function w(e){var t=e.lastUpdatedAt,n=e.formattedLastUpdatedAt;return a.createElement(v.Z,{id:"theme.lastUpdated.atDate",description:"The words used to describe on which date a page has been last updated",values:{date:a.createElement("b",null,a.createElement("time",{dateTime:new Date(1e3*t).toISOString()},n))}}," on {date}")}function O(e){var t=e.lastUpdatedBy;return a.createElement(v.Z,{id:"theme.lastUpdated.byUser",description:"The words used to describe by who the page has been last updated",values:{user:a.createElement("b",null,t)}}," by {user}")}function H(e){var t=e.lastUpdatedAt,n=e.formattedLastUpdatedAt,r=e.lastUpdatedBy;return a.createElement("span",{className:N.k.common.lastUpdated},a.createElement(v.Z,{id:"theme.lastUpdated.lastUpdatedAtBy",description:"The sentence used to display when a page has been last updated, and by who",values:{atDate:t&&n?a.createElement(w,{lastUpdatedAt:t,formattedLastUpdatedAt:n}):"",byUser:r?a.createElement(O,{lastUpdatedBy:r}):""}},"Last updated{atDate}{byUser}"),!1)}var A=n(1792);const M={iconEdit:"iconEdit_wOc2"};var U=["className"];function B(e){var t=e.className,n=(0,A.Z)(e,U);return a.createElement("svg",(0,u.Z)({fill:"currentColor",height:"20",width:"20",viewBox:"0 0 40 40",className:(0,d.Z)(M.iconEdit,t),"aria-hidden":"true"},n),a.createElement("g",null,a.createElement("path",{d:"m34.5 11.7l-3 3.1-6.3-6.3 3.1-3q0.5-0.5 1.2-0.5t1.1 0.5l3.9 3.9q0.5 0.4 0.5 1.1t-0.5 1.2z m-29.5 17.1l18.4-18.5 6.3 6.3-18.4 18.4h-6.3v-6.2z"})))}function I(e){var t=e.editUrl;return a.createElement("a",{href:t,target:"_blank",rel:"noreferrer noopener",className:N.k.common.editThisPage},a.createElement(B,null),a.createElement(v.Z,{id:"theme.common.editThisPage",description:"The link label to edit the current page"},"Edit this page"))}const S={tag:"tag_Rlpt",tagRegular:"tagRegular_AwM7",tagWithCount:"tagWithCount_fDc3"};function P(e){var t=e.permalink,n=e.label,r=e.count;return a.createElement(p.Z,{href:t,className:(0,d.Z)(S.tag,r?S.tagWithCount:S.tagRegular)},n,r&&a.createElement("span",null,r))}const z={tags:"tags_dbEo",tag:"tag_CdAb"};function D(e){var t=e.tags;return a.createElement(a.Fragment,null,a.createElement("b",null,a.createElement(v.Z,{id:"theme.tags.tagsListLabel",description:"The label alongside a tag list"},"Tags:")),a.createElement("ul",{className:(0,d.Z)(z.tags,"padding--none","margin-left--sm")},t.map((function(e){var t=e.label,n=e.permalink;return a.createElement("li",{key:n,className:z.tag},a.createElement(P,{label:t,permalink:n}))}))))}const R={lastUpdated:"lastUpdated_Kmtu"};function j(e){return a.createElement("div",{className:(0,d.Z)(N.k.docs.docFooterTagsRow,"row margin-bottom--sm")},a.createElement("div",{className:"col"},a.createElement(D,e)))}function V(e){var t=e.editUrl,n=e.lastUpdatedAt,r=e.lastUpdatedBy,l=e.formattedLastUpdatedAt;return a.createElement("div",{className:(0,d.Z)(N.k.docs.docFooterEditMetaRow,"row")},a.createElement("div",{className:"col"},t&&a.createElement(I,{editUrl:t})),a.createElement("div",{className:(0,d.Z)("col",R.lastUpdated)},(n||r)&&a.createElement(H,{lastUpdatedAt:n,formattedLastUpdatedAt:l,lastUpdatedBy:r})))}function W(){var e=c().metadata,t=e.editUrl,n=e.lastUpdatedAt,r=e.formattedLastUpdatedAt,l=e.lastUpdatedBy,i=e.tags,o=i.length>0,s=!!(t||n||l);return o||s?a.createElement("footer",{className:(0,d.Z)(N.k.docs.docFooter,"docusaurus-mt-lg")},o&&a.createElement(j,{tags:i}),s&&a.createElement(V,{editUrl:t,lastUpdatedAt:n,lastUpdatedBy:l,formattedLastUpdatedAt:r})):null}var F=n(9658),q=n(3428),X=["parentIndex"];function G(e){var t=e.map((function(e){return Object.assign({},e,{parentIndex:-1,children:[]})})),n=Array(7).fill(-1);t.forEach((function(e,t){var a=n.slice(2,e.level);e.parentIndex=Math.max.apply(Math,a),n[e.level]=t}));var a=[];return t.forEach((function(e){var n=e.parentIndex,r=(0,A.Z)(e,X);n>=0?t[n].children.push(r):a.push(r)})),a}function J(e){var t=e.toc,n=e.minHeadingLevel,a=e.maxHeadingLevel;return t.flatMap((function(e){var t=J({toc:e.children,minHeadingLevel:n,maxHeadingLevel:a});return function(e){return e.level>=n&&e.level<=a}(e)?[Object.assign({},e,{children:t})]:t}))}function K(e){var t=e.getBoundingClientRect();return t.top===t.bottom?K(e.parentNode):t}function Y(e,t){var n,a,r=t.anchorTopOffset,l=e.find((function(e){return K(e).top>=r}));return l?function(e){return e.top>0&&e.bottom1&&e.preventDefault()},onClick:function(e){e.stopPropagation();var t=e.target;Te(t)&&xe(t,i.current)&&(e.preventDefault(),c?(s(!1),p(!0)):s(!0))}}),f,a.createElement(F.z,{lazy:!1,collapsed:c,disableSSRStyle:!0,onCollapseTransitionEnd:function(e){s(e),p(!e)}},a.createElement("div",{className:ke.collapsibleContent},n)))}const Oe={details:"details_uAm8"};var He="alert alert--info";function Ae(e){var t=Object.assign({},(function(e){if(null==e)throw new TypeError("Cannot destructure "+e)}(e),e));return a.createElement(we,(0,u.Z)({},t,{className:(0,d.Z)(He,Oe.details,t.className)}))}function Me(e){return a.createElement(Ee,e)}const Ue={containsTaskList:"containsTaskList_DwMY"};const Be={img:"img_CpET"};const Ie="admonition__AX7",Se="admonitionHeading_wRvQ",Pe="admonitionIcon_XDxU",ze="admonitionContent_Z6WN";var De={note:{infimaClassName:"secondary",iconComponent:function(){return a.createElement("svg",{viewBox:"0 0 14 16"},a.createElement("path",{fillRule:"evenodd",d:"M6.3 5.69a.942.942 0 0 1-.28-.7c0-.28.09-.52.28-.7.19-.18.42-.28.7-.28.28 0 .52.09.7.28.18.19.28.42.28.7 0 .28-.09.52-.28.7a1 1 0 0 1-.7.3c-.28 0-.52-.11-.7-.3zM8 7.99c-.02-.25-.11-.48-.31-.69-.2-.19-.42-.3-.69-.31H6c-.27.02-.48.13-.69.31-.2.2-.3.44-.31.69h1v3c.02.27.11.5.31.69.2.2.42.31.69.31h1c.27 0 .48-.11.69-.31.2-.19.3-.42.31-.69H8V7.98v.01zM7 2.3c-3.14 0-5.7 2.54-5.7 5.68 0 3.14 2.56 5.7 5.7 5.7s5.7-2.55 5.7-5.7c0-3.15-2.56-5.69-5.7-5.69v.01zM7 .98c3.86 0 7 3.14 7 7s-3.14 7-7 7-7-3.12-7-7 3.14-7 7-7z"}))},label:a.createElement(v.Z,{id:"theme.admonition.note",description:"The default label used for the Note admonition (:::note)"},"note")},tip:{infimaClassName:"success",iconComponent:function(){return a.createElement("svg",{viewBox:"0 0 12 16"},a.createElement("path",{fillRule:"evenodd",d:"M6.5 0C3.48 0 1 2.19 1 5c0 .92.55 2.25 1 3 1.34 2.25 1.78 2.78 2 4v1h5v-1c.22-1.22.66-1.75 2-4 .45-.75 1-2.08 1-3 0-2.81-2.48-5-5.5-5zm3.64 7.48c-.25.44-.47.8-.67 1.11-.86 1.41-1.25 2.06-1.45 3.23-.02.05-.02.11-.02.17H5c0-.06 0-.13-.02-.17-.2-1.17-.59-1.83-1.45-3.23-.2-.31-.42-.67-.67-1.11C2.44 6.78 2 5.65 2 5c0-2.2 2.02-4 4.5-4 1.22 0 2.36.42 3.22 1.19C10.55 2.94 11 3.94 11 5c0 .66-.44 1.78-.86 2.48zM4 14h5c-.23 1.14-1.3 2-2.5 2s-2.27-.86-2.5-2z"}))},label:a.createElement(v.Z,{id:"theme.admonition.tip",description:"The default label used for the Tip admonition (:::tip)"},"tip")},danger:{infimaClassName:"danger",iconComponent:function(){return a.createElement("svg",{viewBox:"0 0 12 16"},a.createElement("path",{fillRule:"evenodd",d:"M5.05.31c.81 2.17.41 3.38-.52 4.31C3.55 5.67 1.98 6.45.9 7.98c-1.45 2.05-1.7 6.53 3.53 7.7-2.2-1.16-2.67-4.52-.3-6.61-.61 2.03.53 3.33 1.94 2.86 1.39-.47 2.3.53 2.27 1.67-.02.78-.31 1.44-1.13 1.81 3.42-.59 4.78-3.42 4.78-5.56 0-2.84-2.53-3.22-1.25-5.61-1.52.13-2.03 1.13-1.89 2.75.09 1.08-1.02 1.8-1.86 1.33-.67-.41-.66-1.19-.06-1.78C8.18 5.31 8.68 2.45 5.05.32L5.03.3l.02.01z"}))},label:a.createElement(v.Z,{id:"theme.admonition.danger",description:"The default label used for the Danger admonition (:::danger)"},"danger")},info:{infimaClassName:"info",iconComponent:function(){return a.createElement("svg",{viewBox:"0 0 14 16"},a.createElement("path",{fillRule:"evenodd",d:"M7 2.3c3.14 0 5.7 2.56 5.7 5.7s-2.56 5.7-5.7 5.7A5.71 5.71 0 0 1 1.3 8c0-3.14 2.56-5.7 5.7-5.7zM7 1C3.14 1 0 4.14 0 8s3.14 7 7 7 7-3.14 7-7-3.14-7-7-7zm1 3H6v5h2V4zm0 6H6v2h2v-2z"}))},label:a.createElement(v.Z,{id:"theme.admonition.info",description:"The default label used for the Info admonition (:::info)"},"info")},caution:{infimaClassName:"warning",iconComponent:function(){return a.createElement("svg",{viewBox:"0 0 16 16"},a.createElement("path",{fillRule:"evenodd",d:"M8.893 1.5c-.183-.31-.52-.5-.887-.5s-.703.19-.886.5L.138 13.499a.98.98 0 0 0 0 1.001c.193.31.53.501.886.501h13.964c.367 0 .704-.19.877-.5a1.03 1.03 0 0 0 .01-1.002L8.893 1.5zm.133 11.497H6.987v-2.003h2.039v2.003zm0-3.004H6.987V5.987h2.039v4.006z"}))},label:a.createElement(v.Z,{id:"theme.admonition.caution",description:"The default label used for the Caution admonition (:::caution)"},"caution")}},Re={secondary:"note",important:"info",success:"tip",warning:"danger"};function je(e){var t,n=function(e){var t=a.Children.toArray(e),n=t.find((function(e){var t;return a.isValidElement(e)&&"mdxAdmonitionTitle"===(null==(t=e.props)?void 0:t.mdxType)})),r=a.createElement(a.Fragment,null,t.filter((function(e){return e!==n})));return{mdxAdmonitionTitle:n,rest:r}}(e.children),r=n.mdxAdmonitionTitle,l=n.rest;return Object.assign({},e,{title:null!=(t=e.title)?t:r,children:l})}const Ve={head:function(e){var t=a.Children.map(e.children,(function(e){return a.isValidElement(e)?function(e){var t;if(null!=(t=e.props)&&t.mdxType&&e.props.originalType){var n=e.props,r=(n.mdxType,n.originalType,(0,A.Z)(n,Ce));return a.createElement(e.props.originalType,r)}return e}(e):e}));return a.createElement(ye.Z,e,t)},code:function(e){var t=["a","abbr","b","br","button","cite","code","del","dfn","em","i","img","input","ins","kbd","label","object","output","q","ruby","s","small","span","strong","sub","sup","time","u","var","wbr"];return a.Children.toArray(e.children).every((function(e){var n;return"string"==typeof e&&!e.includes("\n")||(0,a.isValidElement)(e)&&t.includes(null==(n=e.props)?void 0:n.mdxType)}))?a.createElement("code",e):a.createElement(Le.Z,e)},a:function(e){return a.createElement(p.Z,e)},pre:function(e){var t;return a.createElement(Le.Z,(0,a.isValidElement)(e.children)&&"code"===(null==(t=e.children.props)?void 0:t.originalType)?e.children.props:Object.assign({},e))},details:function(e){var t=a.Children.toArray(e.children),n=t.find((function(e){var t;return a.isValidElement(e)&&"summary"===(null==(t=e.props)?void 0:t.mdxType)})),r=a.createElement(a.Fragment,null,t.filter((function(e){return e!==n})));return a.createElement(Ae,(0,u.Z)({},e,{summary:n}),r)},ul:function(e){return a.createElement("ul",(0,u.Z)({},e,{className:(t=e.className,(0,d.Z)(t,(null==t?void 0:t.includes("contains-task-list"))&&Ue.containsTaskList))}));var t},img:function(e){return a.createElement("img",(0,u.Z)({loading:"lazy"},e,{className:(t=e.className,(0,d.Z)(t,Be.img))}));var t},h1:function(e){return a.createElement(Me,(0,u.Z)({as:"h1"},e))},h2:function(e){return a.createElement(Me,(0,u.Z)({as:"h2"},e))},h3:function(e){return a.createElement(Me,(0,u.Z)({as:"h3"},e))},h4:function(e){return a.createElement(Me,(0,u.Z)({as:"h4"},e))},h5:function(e){return a.createElement(Me,(0,u.Z)({as:"h5"},e))},h6:function(e){return a.createElement(Me,(0,u.Z)({as:"h6"},e))},admonition:function(e){var t=je(e),n=t.children,r=t.type,l=t.title,i=t.icon,o=function(e){var t,n=null!=(t=Re[e])?t:e,a=De[n];return a||(console.warn('No admonition config found for admonition type "'+n+'". Using Info as fallback.'),De.info)}(r),c=null!=l?l:o.label,s=o.iconComponent,m=null!=i?i:a.createElement(s,null);return a.createElement("div",{className:(0,d.Z)(N.k.common.admonition,N.k.common.admonitionType(e.type),"alert","alert--"+o.infimaClassName,Ie)},a.createElement("div",{className:Se},a.createElement("span",{className:Pe},m),c),a.createElement("div",{className:ze},n))},mermaid:n(1081).Z};function We(e){var t=e.children;return a.createElement(Ne.Zo,{components:Ve},t)}function Fe(e){var t,n,r,l,i=e.children,o=(t=c(),n=t.metadata,r=t.frontMatter,l=t.contentTitle,r.hide_title||void 0!==l?null:n.title);return a.createElement("div",{className:(0,d.Z)(N.k.docs.docMarkdown,"markdown")},o&&a.createElement("header",null,a.createElement(Ee,{as:"h1"},o)),a.createElement(We,null,i))}var qe=n(3377),Xe=n(8393),Ge=n(5074);function Je(e){return a.createElement("svg",(0,u.Z)({viewBox:"0 0 24 24"},e),a.createElement("path",{d:"M10 19v-5h4v5c0 .55.45 1 1 1h3c.55 0 1-.45 1-1v-7h1.7c.46 0 .68-.57.33-.87L12.67 3.6c-.38-.34-.96-.34-1.34 0l-8.36 7.53c-.34.3-.13.87.33.87H5v7c0 .55.45 1 1 1h3c.55 0 1-.45 1-1z",fill:"currentColor"}))}const Ke={breadcrumbHomeIcon:"breadcrumbHomeIcon_PRsb"};function Ye(){var e=(0,Ge.Z)("/");return a.createElement("li",{className:"breadcrumbs__item"},a.createElement(p.Z,{"aria-label":(0,v.I)({id:"theme.docs.breadcrumbs.home",message:"Home page",description:"The ARIA label for the home page in the breadcrumbs"}),className:"breadcrumbs__link",href:e},a.createElement(Je,{className:Ke.breadcrumbHomeIcon})))}const Qe={breadcrumbsContainer:"breadcrumbsContainer_GNNc"};function $e(e){var t=e.children,n=e.href,r="breadcrumbs__link";return e.isLast?a.createElement("span",{className:r,itemProp:"name"},t):n?a.createElement(p.Z,{className:r,href:n,itemProp:"item"},a.createElement("span",{itemProp:"name"},t)):a.createElement("span",{className:r},t)}function et(e){var t=e.children,n=e.active,r=e.index,l=e.addMicrodata;return a.createElement("li",(0,u.Z)({},l&&{itemScope:!0,itemProp:"itemListElement",itemType:"https://schema.org/ListItem"},{className:(0,d.Z)("breadcrumbs__item",{"breadcrumbs__item--active":n})}),t,a.createElement("meta",{itemProp:"position",content:String(r+1)}))}function tt(){var e=(0,qe.s1)(),t=(0,Xe.Ns)();return e?a.createElement("nav",{className:(0,d.Z)(N.k.docs.docBreadcrumbs,Qe.breadcrumbsContainer),"aria-label":(0,v.I)({id:"theme.docs.breadcrumbs.navAriaLabel",message:"Breadcrumbs",description:"The ARIA label for the breadcrumbs"})},a.createElement("ul",{className:"breadcrumbs",itemScope:!0,itemType:"https://schema.org/BreadcrumbList"},t&&a.createElement(Ye,null),e.map((function(t,n){var r=n===e.length-1;return a.createElement(et,{key:n,active:r,index:n,addMicrodata:!!t.href},a.createElement($e,{href:t.href,isLast:r},t.label))})))):null}const nt={docItemContainer:"docItemContainer_UOBx",docItemCol:"docItemCol_VUf3"};function at(e){var t,n,r,l,i,o,s=e.children,u=(t=c(),n=t.frontMatter,r=t.toc,l=(0,m.i)(),i=n.hide_table_of_contents,o=!i&&r.length>0,{hidden:i,mobile:o?a.createElement(de,null):void 0,desktop:!o||"desktop"!==l&&"ssr"!==l?void 0:a.createElement(he,null)});return a.createElement("div",{className:"row"},a.createElement("div",{className:(0,d.Z)("col",!u.hidden&&nt.docItemCol)},a.createElement(T,null),a.createElement("div",{className:nt.docItemContainer},a.createElement("article",null,a.createElement(tt,null),a.createElement(x,null),u.mobile,a.createElement(Fe,null,s),a.createElement(W,null)),a.createElement(b,null))),u.desktop&&a.createElement("div",{className:"col col--3"},u.desktop))}function rt(e){var t="docs-doc-id-"+e.content.metadata.unversionedId,n=e.content;return a.createElement(o,{content:e.content},a.createElement(r.FG,{className:t},a.createElement(s,null),a.createElement(at,null,a.createElement(n,null))))}},301:(e,t,n)=>{n.d(t,{E:()=>o,q:()=>i});var a=n(9901),r=n(3373),l=a.createContext(null);function i(e){var t=e.children,n=e.version;return a.createElement(l.Provider,{value:n},t)}function o(){var e=(0,a.useContext)(l);if(null===e)throw new r.i6("DocsVersionProvider");return e}}}]); \ No newline at end of file diff --git a/assets/js/17896441.d48eded4.js b/assets/js/17896441.d48eded4.js new file mode 100644 index 0000000000..07e1d2a8c7 --- /dev/null +++ b/assets/js/17896441.d48eded4.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[7918],{7522:(e,t,n)=>{n.d(t,{Zo:()=>d,kt:()=>p});var a=n(9901);function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function i(e){for(var t=1;t=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var c=a.createContext({}),s=function(e){var t=a.useContext(c),n=t;return e&&(n="function"==typeof e?e(t):i(i({},t),e)),n},d=function(e){var t=s(e.components);return a.createElement(c.Provider,{value:t},e.children)},m="mdxType",u={inlineCode:"code",wrapper:function(e){var t=e.children;return a.createElement(a.Fragment,{},t)}},v=a.forwardRef((function(e,t){var n=e.components,r=e.mdxType,l=e.originalType,c=e.parentName,d=o(e,["components","mdxType","originalType","parentName"]),m=s(n),v=r,p=m["".concat(c,".").concat(v)]||m[v]||u[v]||l;return n?a.createElement(p,i(i({ref:t},d),{},{components:n})):a.createElement(p,i({ref:t},d))}));function p(e,t){var n=arguments,r=t&&t.mdxType;if("string"==typeof e||r){var l=n.length,i=new Array(l);i[0]=v;var o={};for(var c in t)hasOwnProperty.call(t,c)&&(o[c]=t[c]);o.originalType=e,o[m]="string"==typeof e?e:r,i[1]=o;for(var s=2;s{n.r(t),n.d(t,{default:()=>rt});var a=n(9901),r=n(4737),l=n(9824),i=a.createContext(null);function o(e){var t=e.children,n=function(e){return(0,a.useMemo)((function(){return{metadata:e.metadata,frontMatter:e.frontMatter,assets:e.assets,contentTitle:e.contentTitle,toc:e.toc}}),[e])}(e.content);return a.createElement(i.Provider,{value:n},t)}function c(){var e=(0,a.useContext)(i);if(null===e)throw new l.i6("DocProvider");return e}function s(){var e,t=c(),n=t.metadata,l=t.frontMatter,i=t.assets;return a.createElement(r.d,{title:n.title,description:n.description,keywords:l.keywords,image:null!=(e=i.image)?e:l.image})}var d=n(4517),m=n(1481),u=n(4805),v=n(1059),p=n(7227);function f(e){var t=e.permalink,n=e.title,r=e.subLabel,l=e.isNext;return a.createElement(p.Z,{className:(0,d.Z)("pagination-nav__link",l?"pagination-nav__link--next":"pagination-nav__link--prev"),to:t},r&&a.createElement("div",{className:"pagination-nav__sublabel"},r),a.createElement("div",{className:"pagination-nav__label"},n))}function h(e){var t=e.previous,n=e.next;return a.createElement("nav",{className:"pagination-nav docusaurus-mt-lg","aria-label":(0,v.I)({id:"theme.docs.paginator.navAriaLabel",message:"Docs pages navigation",description:"The ARIA label for the docs pagination"})},t&&a.createElement(f,(0,u.Z)({},t,{subLabel:a.createElement(v.Z,{id:"theme.docs.paginator.previous",description:"The label used to navigate to the previous doc"},"Previous")})),n&&a.createElement(f,(0,u.Z)({},n,{subLabel:a.createElement(v.Z,{id:"theme.docs.paginator.next",description:"The label used to navigate to the next doc"},"Next"),isNext:!0})))}function b(){var e=c().metadata;return a.createElement(h,{previous:e.previous,next:e.next})}var g=n(2732),E=n(9840),N=n(9),y=n(1571),C=n(7372);var L={unreleased:function(e){var t=e.siteTitle,n=e.versionMetadata;return a.createElement(v.Z,{id:"theme.docs.versions.unreleasedVersionLabel",description:"The label used to tell the user that he's browsing an unreleased doc version",values:{siteTitle:t,versionLabel:a.createElement("b",null,n.label)}},"This is unreleased documentation for {siteTitle} {versionLabel} version.")},unmaintained:function(e){var t=e.siteTitle,n=e.versionMetadata;return a.createElement(v.Z,{id:"theme.docs.versions.unmaintainedVersionLabel",description:"The label used to tell the user that he's browsing an unmaintained doc version",values:{siteTitle:t,versionLabel:a.createElement("b",null,n.label)}},"This is documentation for {siteTitle} {versionLabel}, which is no longer actively maintained.")}};function Z(e){var t=L[e.versionMetadata.banner];return a.createElement(t,e)}function k(e){var t=e.versionLabel,n=e.to,r=e.onClick;return a.createElement(v.Z,{id:"theme.docs.versions.latestVersionSuggestionLabel",description:"The label used to tell the user to check the latest version",values:{versionLabel:t,latestVersionLink:a.createElement("b",null,a.createElement(p.Z,{to:n,onClick:r},a.createElement(v.Z,{id:"theme.docs.versions.latestVersionLinkLabel",description:"The label used for the latest version suggestion link label"},"latest version")))}},"For up-to-date documentation, see the {latestVersionLink} ({versionLabel}).")}function _(e){var t,n=e.className,r=e.versionMetadata,l=(0,g.Z)().siteConfig.title,i=(0,E.gA)({failfast:!0}).pluginId,o=(0,y.J)(i).savePreferredVersionName,c=(0,E.Jo)(i),s=c.latestDocSuggestion,m=c.latestVersionSuggestion,u=null!=s?s:(t=m).docs.find((function(e){return e.id===t.mainDocId}));return a.createElement("div",{className:(0,d.Z)(n,N.k.docs.docVersionBanner,"alert alert--warning margin-bottom--md"),role:"alert"},a.createElement("div",null,a.createElement(Z,{siteTitle:l,versionMetadata:r})),a.createElement("div",{className:"margin-top--md"},a.createElement(k,{versionLabel:m.label,to:u.path,onClick:function(){return o(m.name)}})))}function T(e){var t=e.className,n=(0,C.E)();return n.banner?a.createElement(_,{className:t,versionMetadata:n}):null}function x(e){var t=e.className,n=(0,C.E)();return n.badge?a.createElement("span",{className:(0,d.Z)(t,N.k.docs.docVersionBadge,"badge badge--secondary")},a.createElement(v.Z,{id:"theme.docs.versionBadge.label",values:{versionLabel:n.label}},"Version: {versionLabel}")):null}function w(e){var t=e.lastUpdatedAt,n=e.formattedLastUpdatedAt;return a.createElement(v.Z,{id:"theme.lastUpdated.atDate",description:"The words used to describe on which date a page has been last updated",values:{date:a.createElement("b",null,a.createElement("time",{dateTime:new Date(1e3*t).toISOString()},n))}}," on {date}")}function O(e){var t=e.lastUpdatedBy;return a.createElement(v.Z,{id:"theme.lastUpdated.byUser",description:"The words used to describe by who the page has been last updated",values:{user:a.createElement("b",null,t)}}," by {user}")}function H(e){var t=e.lastUpdatedAt,n=e.formattedLastUpdatedAt,r=e.lastUpdatedBy;return a.createElement("span",{className:N.k.common.lastUpdated},a.createElement(v.Z,{id:"theme.lastUpdated.lastUpdatedAtBy",description:"The sentence used to display when a page has been last updated, and by who",values:{atDate:t&&n?a.createElement(w,{lastUpdatedAt:t,formattedLastUpdatedAt:n}):"",byUser:r?a.createElement(O,{lastUpdatedBy:r}):""}},"Last updated{atDate}{byUser}"),!1)}var A=n(8);const M={iconEdit:"iconEdit_wOc2"};var U=["className"];function B(e){var t=e.className,n=(0,A.Z)(e,U);return a.createElement("svg",(0,u.Z)({fill:"currentColor",height:"20",width:"20",viewBox:"0 0 40 40",className:(0,d.Z)(M.iconEdit,t),"aria-hidden":"true"},n),a.createElement("g",null,a.createElement("path",{d:"m34.5 11.7l-3 3.1-6.3-6.3 3.1-3q0.5-0.5 1.2-0.5t1.1 0.5l3.9 3.9q0.5 0.4 0.5 1.1t-0.5 1.2z m-29.5 17.1l18.4-18.5 6.3 6.3-18.4 18.4h-6.3v-6.2z"})))}function I(e){var t=e.editUrl;return a.createElement("a",{href:t,target:"_blank",rel:"noreferrer noopener",className:N.k.common.editThisPage},a.createElement(B,null),a.createElement(v.Z,{id:"theme.common.editThisPage",description:"The link label to edit the current page"},"Edit this page"))}const S={tag:"tag_Rlpt",tagRegular:"tagRegular_AwM7",tagWithCount:"tagWithCount_fDc3"};function P(e){var t=e.permalink,n=e.label,r=e.count;return a.createElement(p.Z,{href:t,className:(0,d.Z)(S.tag,r?S.tagWithCount:S.tagRegular)},n,r&&a.createElement("span",null,r))}const z={tags:"tags_dbEo",tag:"tag_CdAb"};function D(e){var t=e.tags;return a.createElement(a.Fragment,null,a.createElement("b",null,a.createElement(v.Z,{id:"theme.tags.tagsListLabel",description:"The label alongside a tag list"},"Tags:")),a.createElement("ul",{className:(0,d.Z)(z.tags,"padding--none","margin-left--sm")},t.map((function(e){var t=e.label,n=e.permalink;return a.createElement("li",{key:n,className:z.tag},a.createElement(P,{label:t,permalink:n}))}))))}const R={lastUpdated:"lastUpdated_Kmtu"};function j(e){return a.createElement("div",{className:(0,d.Z)(N.k.docs.docFooterTagsRow,"row margin-bottom--sm")},a.createElement("div",{className:"col"},a.createElement(D,e)))}function V(e){var t=e.editUrl,n=e.lastUpdatedAt,r=e.lastUpdatedBy,l=e.formattedLastUpdatedAt;return a.createElement("div",{className:(0,d.Z)(N.k.docs.docFooterEditMetaRow,"row")},a.createElement("div",{className:"col"},t&&a.createElement(I,{editUrl:t})),a.createElement("div",{className:(0,d.Z)("col",R.lastUpdated)},(n||r)&&a.createElement(H,{lastUpdatedAt:n,formattedLastUpdatedAt:l,lastUpdatedBy:r})))}function W(){var e=c().metadata,t=e.editUrl,n=e.lastUpdatedAt,r=e.formattedLastUpdatedAt,l=e.lastUpdatedBy,i=e.tags,o=i.length>0,s=!!(t||n||l);return o||s?a.createElement("footer",{className:(0,d.Z)(N.k.docs.docFooter,"docusaurus-mt-lg")},o&&a.createElement(j,{tags:i}),s&&a.createElement(V,{editUrl:t,lastUpdatedAt:n,lastUpdatedBy:l,formattedLastUpdatedAt:r})):null}var F=n(8982),q=n(7038),X=["parentIndex"];function G(e){var t=e.map((function(e){return Object.assign({},e,{parentIndex:-1,children:[]})})),n=Array(7).fill(-1);t.forEach((function(e,t){var a=n.slice(2,e.level);e.parentIndex=Math.max.apply(Math,a),n[e.level]=t}));var a=[];return t.forEach((function(e){var n=e.parentIndex,r=(0,A.Z)(e,X);n>=0?t[n].children.push(r):a.push(r)})),a}function J(e){var t=e.toc,n=e.minHeadingLevel,a=e.maxHeadingLevel;return t.flatMap((function(e){var t=J({toc:e.children,minHeadingLevel:n,maxHeadingLevel:a});return function(e){return e.level>=n&&e.level<=a}(e)?[Object.assign({},e,{children:t})]:t}))}function K(e){var t=e.getBoundingClientRect();return t.top===t.bottom?K(e.parentNode):t}function Y(e,t){var n,a,r=t.anchorTopOffset,l=e.find((function(e){return K(e).top>=r}));return l?function(e){return e.top>0&&e.bottom1&&e.preventDefault()},onClick:function(e){e.stopPropagation();var t=e.target;Te(t)&&xe(t,i.current)&&(e.preventDefault(),c?(s(!1),p(!0)):s(!0))}}),f,a.createElement(F.z,{lazy:!1,collapsed:c,disableSSRStyle:!0,onCollapseTransitionEnd:function(e){s(e),p(!e)}},a.createElement("div",{className:ke.collapsibleContent},n)))}const Oe={details:"details_uAm8"};var He="alert alert--info";function Ae(e){var t=Object.assign({},(function(e){if(null==e)throw new TypeError("Cannot destructure "+e)}(e),e));return a.createElement(we,(0,u.Z)({},t,{className:(0,d.Z)(He,Oe.details,t.className)}))}function Me(e){return a.createElement(Ee,e)}const Ue={containsTaskList:"containsTaskList_DwMY"};const Be={img:"img_CpET"};const Ie="admonition__AX7",Se="admonitionHeading_wRvQ",Pe="admonitionIcon_XDxU",ze="admonitionContent_Z6WN";var De={note:{infimaClassName:"secondary",iconComponent:function(){return a.createElement("svg",{viewBox:"0 0 14 16"},a.createElement("path",{fillRule:"evenodd",d:"M6.3 5.69a.942.942 0 0 1-.28-.7c0-.28.09-.52.28-.7.19-.18.42-.28.7-.28.28 0 .52.09.7.28.18.19.28.42.28.7 0 .28-.09.52-.28.7a1 1 0 0 1-.7.3c-.28 0-.52-.11-.7-.3zM8 7.99c-.02-.25-.11-.48-.31-.69-.2-.19-.42-.3-.69-.31H6c-.27.02-.48.13-.69.31-.2.2-.3.44-.31.69h1v3c.02.27.11.5.31.69.2.2.42.31.69.31h1c.27 0 .48-.11.69-.31.2-.19.3-.42.31-.69H8V7.98v.01zM7 2.3c-3.14 0-5.7 2.54-5.7 5.68 0 3.14 2.56 5.7 5.7 5.7s5.7-2.55 5.7-5.7c0-3.15-2.56-5.69-5.7-5.69v.01zM7 .98c3.86 0 7 3.14 7 7s-3.14 7-7 7-7-3.12-7-7 3.14-7 7-7z"}))},label:a.createElement(v.Z,{id:"theme.admonition.note",description:"The default label used for the Note admonition (:::note)"},"note")},tip:{infimaClassName:"success",iconComponent:function(){return a.createElement("svg",{viewBox:"0 0 12 16"},a.createElement("path",{fillRule:"evenodd",d:"M6.5 0C3.48 0 1 2.19 1 5c0 .92.55 2.25 1 3 1.34 2.25 1.78 2.78 2 4v1h5v-1c.22-1.22.66-1.75 2-4 .45-.75 1-2.08 1-3 0-2.81-2.48-5-5.5-5zm3.64 7.48c-.25.44-.47.8-.67 1.11-.86 1.41-1.25 2.06-1.45 3.23-.02.05-.02.11-.02.17H5c0-.06 0-.13-.02-.17-.2-1.17-.59-1.83-1.45-3.23-.2-.31-.42-.67-.67-1.11C2.44 6.78 2 5.65 2 5c0-2.2 2.02-4 4.5-4 1.22 0 2.36.42 3.22 1.19C10.55 2.94 11 3.94 11 5c0 .66-.44 1.78-.86 2.48zM4 14h5c-.23 1.14-1.3 2-2.5 2s-2.27-.86-2.5-2z"}))},label:a.createElement(v.Z,{id:"theme.admonition.tip",description:"The default label used for the Tip admonition (:::tip)"},"tip")},danger:{infimaClassName:"danger",iconComponent:function(){return a.createElement("svg",{viewBox:"0 0 12 16"},a.createElement("path",{fillRule:"evenodd",d:"M5.05.31c.81 2.17.41 3.38-.52 4.31C3.55 5.67 1.98 6.45.9 7.98c-1.45 2.05-1.7 6.53 3.53 7.7-2.2-1.16-2.67-4.52-.3-6.61-.61 2.03.53 3.33 1.94 2.86 1.39-.47 2.3.53 2.27 1.67-.02.78-.31 1.44-1.13 1.81 3.42-.59 4.78-3.42 4.78-5.56 0-2.84-2.53-3.22-1.25-5.61-1.52.13-2.03 1.13-1.89 2.75.09 1.08-1.02 1.8-1.86 1.33-.67-.41-.66-1.19-.06-1.78C8.18 5.31 8.68 2.45 5.05.32L5.03.3l.02.01z"}))},label:a.createElement(v.Z,{id:"theme.admonition.danger",description:"The default label used for the Danger admonition (:::danger)"},"danger")},info:{infimaClassName:"info",iconComponent:function(){return a.createElement("svg",{viewBox:"0 0 14 16"},a.createElement("path",{fillRule:"evenodd",d:"M7 2.3c3.14 0 5.7 2.56 5.7 5.7s-2.56 5.7-5.7 5.7A5.71 5.71 0 0 1 1.3 8c0-3.14 2.56-5.7 5.7-5.7zM7 1C3.14 1 0 4.14 0 8s3.14 7 7 7 7-3.14 7-7-3.14-7-7-7zm1 3H6v5h2V4zm0 6H6v2h2v-2z"}))},label:a.createElement(v.Z,{id:"theme.admonition.info",description:"The default label used for the Info admonition (:::info)"},"info")},caution:{infimaClassName:"warning",iconComponent:function(){return a.createElement("svg",{viewBox:"0 0 16 16"},a.createElement("path",{fillRule:"evenodd",d:"M8.893 1.5c-.183-.31-.52-.5-.887-.5s-.703.19-.886.5L.138 13.499a.98.98 0 0 0 0 1.001c.193.31.53.501.886.501h13.964c.367 0 .704-.19.877-.5a1.03 1.03 0 0 0 .01-1.002L8.893 1.5zm.133 11.497H6.987v-2.003h2.039v2.003zm0-3.004H6.987V5.987h2.039v4.006z"}))},label:a.createElement(v.Z,{id:"theme.admonition.caution",description:"The default label used for the Caution admonition (:::caution)"},"caution")}},Re={secondary:"note",important:"info",success:"tip",warning:"danger"};function je(e){var t,n=function(e){var t=a.Children.toArray(e),n=t.find((function(e){var t;return a.isValidElement(e)&&"mdxAdmonitionTitle"===(null==(t=e.props)?void 0:t.mdxType)})),r=a.createElement(a.Fragment,null,t.filter((function(e){return e!==n})));return{mdxAdmonitionTitle:n,rest:r}}(e.children),r=n.mdxAdmonitionTitle,l=n.rest;return Object.assign({},e,{title:null!=(t=e.title)?t:r,children:l})}const Ve={head:function(e){var t=a.Children.map(e.children,(function(e){return a.isValidElement(e)?function(e){var t;if(null!=(t=e.props)&&t.mdxType&&e.props.originalType){var n=e.props,r=(n.mdxType,n.originalType,(0,A.Z)(n,Ce));return a.createElement(e.props.originalType,r)}return e}(e):e}));return a.createElement(ye.Z,e,t)},code:function(e){var t=["a","abbr","b","br","button","cite","code","del","dfn","em","i","img","input","ins","kbd","label","object","output","q","ruby","s","small","span","strong","sub","sup","time","u","var","wbr"];return a.Children.toArray(e.children).every((function(e){var n;return"string"==typeof e&&!e.includes("\n")||(0,a.isValidElement)(e)&&t.includes(null==(n=e.props)?void 0:n.mdxType)}))?a.createElement("code",e):a.createElement(Le.Z,e)},a:function(e){return a.createElement(p.Z,e)},pre:function(e){var t;return a.createElement(Le.Z,(0,a.isValidElement)(e.children)&&"code"===(null==(t=e.children.props)?void 0:t.originalType)?e.children.props:Object.assign({},e))},details:function(e){var t=a.Children.toArray(e.children),n=t.find((function(e){var t;return a.isValidElement(e)&&"summary"===(null==(t=e.props)?void 0:t.mdxType)})),r=a.createElement(a.Fragment,null,t.filter((function(e){return e!==n})));return a.createElement(Ae,(0,u.Z)({},e,{summary:n}),r)},ul:function(e){return a.createElement("ul",(0,u.Z)({},e,{className:(t=e.className,(0,d.Z)(t,(null==t?void 0:t.includes("contains-task-list"))&&Ue.containsTaskList))}));var t},img:function(e){return a.createElement("img",(0,u.Z)({loading:"lazy"},e,{className:(t=e.className,(0,d.Z)(t,Be.img))}));var t},h1:function(e){return a.createElement(Me,(0,u.Z)({as:"h1"},e))},h2:function(e){return a.createElement(Me,(0,u.Z)({as:"h2"},e))},h3:function(e){return a.createElement(Me,(0,u.Z)({as:"h3"},e))},h4:function(e){return a.createElement(Me,(0,u.Z)({as:"h4"},e))},h5:function(e){return a.createElement(Me,(0,u.Z)({as:"h5"},e))},h6:function(e){return a.createElement(Me,(0,u.Z)({as:"h6"},e))},admonition:function(e){var t=je(e),n=t.children,r=t.type,l=t.title,i=t.icon,o=function(e){var t,n=null!=(t=Re[e])?t:e,a=De[n];return a||(console.warn('No admonition config found for admonition type "'+n+'". Using Info as fallback.'),De.info)}(r),c=null!=l?l:o.label,s=o.iconComponent,m=null!=i?i:a.createElement(s,null);return a.createElement("div",{className:(0,d.Z)(N.k.common.admonition,N.k.common.admonitionType(e.type),"alert","alert--"+o.infimaClassName,Ie)},a.createElement("div",{className:Se},a.createElement("span",{className:Pe},m),c),a.createElement("div",{className:ze},n))},mermaid:n(2114).Z};function We(e){var t=e.children;return a.createElement(Ne.Zo,{components:Ve},t)}function Fe(e){var t,n,r,l,i=e.children,o=(t=c(),n=t.metadata,r=t.frontMatter,l=t.contentTitle,r.hide_title||void 0!==l?null:n.title);return a.createElement("div",{className:(0,d.Z)(N.k.docs.docMarkdown,"markdown")},o&&a.createElement("header",null,a.createElement(Ee,{as:"h1"},o)),a.createElement(We,null,i))}var qe=n(4642),Xe=n(6321),Ge=n(3454);function Je(e){return a.createElement("svg",(0,u.Z)({viewBox:"0 0 24 24"},e),a.createElement("path",{d:"M10 19v-5h4v5c0 .55.45 1 1 1h3c.55 0 1-.45 1-1v-7h1.7c.46 0 .68-.57.33-.87L12.67 3.6c-.38-.34-.96-.34-1.34 0l-8.36 7.53c-.34.3-.13.87.33.87H5v7c0 .55.45 1 1 1h3c.55 0 1-.45 1-1z",fill:"currentColor"}))}const Ke={breadcrumbHomeIcon:"breadcrumbHomeIcon_PRsb"};function Ye(){var e=(0,Ge.Z)("/");return a.createElement("li",{className:"breadcrumbs__item"},a.createElement(p.Z,{"aria-label":(0,v.I)({id:"theme.docs.breadcrumbs.home",message:"Home page",description:"The ARIA label for the home page in the breadcrumbs"}),className:"breadcrumbs__link",href:e},a.createElement(Je,{className:Ke.breadcrumbHomeIcon})))}const Qe={breadcrumbsContainer:"breadcrumbsContainer_GNNc"};function $e(e){var t=e.children,n=e.href,r="breadcrumbs__link";return e.isLast?a.createElement("span",{className:r,itemProp:"name"},t):n?a.createElement(p.Z,{className:r,href:n,itemProp:"item"},a.createElement("span",{itemProp:"name"},t)):a.createElement("span",{className:r},t)}function et(e){var t=e.children,n=e.active,r=e.index,l=e.addMicrodata;return a.createElement("li",(0,u.Z)({},l&&{itemScope:!0,itemProp:"itemListElement",itemType:"https://schema.org/ListItem"},{className:(0,d.Z)("breadcrumbs__item",{"breadcrumbs__item--active":n})}),t,a.createElement("meta",{itemProp:"position",content:String(r+1)}))}function tt(){var e=(0,qe.s1)(),t=(0,Xe.Ns)();return e?a.createElement("nav",{className:(0,d.Z)(N.k.docs.docBreadcrumbs,Qe.breadcrumbsContainer),"aria-label":(0,v.I)({id:"theme.docs.breadcrumbs.navAriaLabel",message:"Breadcrumbs",description:"The ARIA label for the breadcrumbs"})},a.createElement("ul",{className:"breadcrumbs",itemScope:!0,itemType:"https://schema.org/BreadcrumbList"},t&&a.createElement(Ye,null),e.map((function(t,n){var r=n===e.length-1;return a.createElement(et,{key:n,active:r,index:n,addMicrodata:!!t.href},a.createElement($e,{href:t.href,isLast:r},t.label))})))):null}const nt={docItemContainer:"docItemContainer_UOBx",docItemCol:"docItemCol_VUf3"};function at(e){var t,n,r,l,i,o,s=e.children,u=(t=c(),n=t.frontMatter,r=t.toc,l=(0,m.i)(),i=n.hide_table_of_contents,o=!i&&r.length>0,{hidden:i,mobile:o?a.createElement(de,null):void 0,desktop:!o||"desktop"!==l&&"ssr"!==l?void 0:a.createElement(he,null)});return a.createElement("div",{className:"row"},a.createElement("div",{className:(0,d.Z)("col",!u.hidden&&nt.docItemCol)},a.createElement(T,null),a.createElement("div",{className:nt.docItemContainer},a.createElement("article",null,a.createElement(tt,null),a.createElement(x,null),u.mobile,a.createElement(Fe,null,s),a.createElement(W,null)),a.createElement(b,null))),u.desktop&&a.createElement("div",{className:"col col--3"},u.desktop))}function rt(e){var t="docs-doc-id-"+e.content.metadata.unversionedId,n=e.content;return a.createElement(o,{content:e.content},a.createElement(r.FG,{className:t},a.createElement(s,null),a.createElement(at,null,a.createElement(n,null))))}},7372:(e,t,n)=>{n.d(t,{E:()=>o,q:()=>i});var a=n(9901),r=n(9824),l=a.createContext(null);function i(e){var t=e.children,n=e.version;return a.createElement(l.Provider,{value:n},t)}function o(){var e=(0,a.useContext)(l);if(null===e)throw new r.i6("DocsVersionProvider");return e}}}]); \ No newline at end of file diff --git a/assets/js/193ee87b.c5dcf55f.js b/assets/js/193ee87b.29ed253a.js similarity index 56% rename from assets/js/193ee87b.c5dcf55f.js rename to assets/js/193ee87b.29ed253a.js index cba1e0b87a..235719307f 100644 --- a/assets/js/193ee87b.c5dcf55f.js +++ b/assets/js/193ee87b.29ed253a.js @@ -1 +1 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[7198],{7522:(e,t,n)=>{n.d(t,{Zo:()=>c,kt:()=>d});var r=n(9901);function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var u=r.createContext({}),p=function(e){var t=r.useContext(u),n=t;return e&&(n="function"==typeof e?e(t):a(a({},t),e)),n},c=function(e){var t=p(e.components);return r.createElement(u.Provider,{value:t},e.children)},s="mdxType",f={inlineCode:"code",wrapper:function(e){var t=e.children;return r.createElement(r.Fragment,{},t)}},m=r.forwardRef((function(e,t){var n=e.components,o=e.mdxType,l=e.originalType,u=e.parentName,c=i(e,["components","mdxType","originalType","parentName"]),s=p(n),m=o,d=s["".concat(u,".").concat(m)]||s[m]||f[m]||l;return n?r.createElement(d,a(a({ref:t},c),{},{components:n})):r.createElement(d,a({ref:t},c))}));function d(e,t){var n=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var l=n.length,a=new Array(l);a[0]=m;var i={};for(var u in t)hasOwnProperty.call(t,u)&&(i[u]=t[u]);i.originalType=e,i[s]="string"==typeof e?e:o,a[1]=i;for(var p=2;p{n.r(t),n.d(t,{assets:()=>c,contentTitle:()=>u,default:()=>d,frontMatter:()=>i,metadata:()=>p,toc:()=>s});var r=n(3341),o=n(1792),l=(n(9901),n(7522)),a=["components"],i={hide_table_of_contents:!0},u="union",p={unversionedId:"api/union",id:"version-1.0.22-alpha/api/union",title:"union",description:"operator",source:"@site/versioned_docs/version-1.0.22-alpha/api/union.md",sourceDirName:"api",slug:"/api/union",permalink:"/docs/api/union",draft:!1,tags:[],version:"1.0.22-alpha",frontMatter:{hide_table_of_contents:!0}},c={},s=[{value:"operator",id:"operator",level:2},{value:"string",id:"string",level:2},{value:"tuple",id:"tuple",level:2},{value:"helper",id:"helper",level:2}],f={toc:s},m="wrapper";function d(e){var t=e.components,n=(0,o.Z)(e,a);return(0,l.kt)(m,(0,r.Z)({},f,n,{components:t,mdxType:"MDXLayout"}),(0,l.kt)("h1",{id:"union"},"union"),(0,l.kt)("h2",{id:"operator"},"operator"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},(0,l.kt)("a",{parentName:"li",href:"/docs/api/union"},"|"))),(0,l.kt)("h2",{id:"string"},"string"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},'"L',"|",'R" ',(0,l.kt)("br",null)),(0,l.kt)("li",{parentName:"ul"},'const union = type("string',"|",'number")',(0,l.kt)("br",null))),(0,l.kt)("h2",{id:"tuple"},"tuple"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},'[L, "',"|",'" , R]'," ",(0,l.kt)("br",null)),(0,l.kt)("li",{parentName:"ul"},"const tupleUnion = type(",'["string", "',"|",'", "number"]',")",(0,l.kt)("br",null))),(0,l.kt)("h2",{id:"helper"},"helper"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},"union(L,R) ",(0,l.kt)("br",null)),(0,l.kt)("li",{parentName:"ul"},'const helperUnion = union("string", "number")',(0,l.kt)("br",null))))}d.isMDXComponent=!0}}]); \ No newline at end of file +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[7198],{7522:(e,t,n)=>{n.d(t,{Zo:()=>c,kt:()=>d});var r=n(9901);function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var u=r.createContext({}),p=function(e){var t=r.useContext(u),n=t;return e&&(n="function"==typeof e?e(t):a(a({},t),e)),n},c=function(e){var t=p(e.components);return r.createElement(u.Provider,{value:t},e.children)},s="mdxType",f={inlineCode:"code",wrapper:function(e){var t=e.children;return r.createElement(r.Fragment,{},t)}},m=r.forwardRef((function(e,t){var n=e.components,o=e.mdxType,l=e.originalType,u=e.parentName,c=i(e,["components","mdxType","originalType","parentName"]),s=p(n),m=o,d=s["".concat(u,".").concat(m)]||s[m]||f[m]||l;return n?r.createElement(d,a(a({ref:t},c),{},{components:n})):r.createElement(d,a({ref:t},c))}));function d(e,t){var n=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var l=n.length,a=new Array(l);a[0]=m;var i={};for(var u in t)hasOwnProperty.call(t,u)&&(i[u]=t[u]);i.originalType=e,i[s]="string"==typeof e?e:o,a[1]=i;for(var p=2;p{n.r(t),n.d(t,{assets:()=>c,contentTitle:()=>u,default:()=>d,frontMatter:()=>i,metadata:()=>p,toc:()=>s});var r=n(4805),o=n(8),l=(n(9901),n(7522)),a=["components"],i={hide_table_of_contents:!0},u="union",p={unversionedId:"api/union",id:"version-1.0.22-alpha/api/union",title:"union",description:"operator",source:"@site/versioned_docs/version-1.0.22-alpha/api/union.md",sourceDirName:"api",slug:"/api/union",permalink:"/docs/api/union",draft:!1,tags:[],version:"1.0.22-alpha",frontMatter:{hide_table_of_contents:!0}},c={},s=[{value:"operator",id:"operator",level:2},{value:"string",id:"string",level:2},{value:"tuple",id:"tuple",level:2},{value:"helper",id:"helper",level:2}],f={toc:s},m="wrapper";function d(e){var t=e.components,n=(0,o.Z)(e,a);return(0,l.kt)(m,(0,r.Z)({},f,n,{components:t,mdxType:"MDXLayout"}),(0,l.kt)("h1",{id:"union"},"union"),(0,l.kt)("h2",{id:"operator"},"operator"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},(0,l.kt)("a",{parentName:"li",href:"/docs/api/union"},"|"))),(0,l.kt)("h2",{id:"string"},"string"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},'"L',"|",'R" ',(0,l.kt)("br",null)),(0,l.kt)("li",{parentName:"ul"},'const union = type("string',"|",'number")',(0,l.kt)("br",null))),(0,l.kt)("h2",{id:"tuple"},"tuple"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},'[L, "',"|",'" , R]'," ",(0,l.kt)("br",null)),(0,l.kt)("li",{parentName:"ul"},"const tupleUnion = type(",'["string", "',"|",'", "number"]',")",(0,l.kt)("br",null))),(0,l.kt)("h2",{id:"helper"},"helper"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},"union(L,R) ",(0,l.kt)("br",null)),(0,l.kt)("li",{parentName:"ul"},'const helperUnion = union("string", "number")',(0,l.kt)("br",null))))}d.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/1be78505.392aa6c1.js b/assets/js/1be78505.392aa6c1.js deleted file mode 100644 index 39de74a3e0..0000000000 --- a/assets/js/1be78505.392aa6c1.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[9514,5908],{9240:(e,t,n)=>{n.r(t),n.d(t,{default:()=>Ce});var a=n(9901),r=n(4517),o=n(6330),l=n(5029),i=n(5726),c=n(3377),d=n(301),s=n(8144),m=n(6201),u=n(6692),b=n(8807),p=n(5227);const h={backToTopButton:"backToTopButton_q4Aj",backToTopButtonShow:"backToTopButtonShow_zi2D"};function v(){var e=function(e){var t=e.threshold,n=(0,a.useState)(!1),r=n[0],o=n[1],l=(0,a.useRef)(!1),i=(0,b.Ct)(),c=i.startScroll,d=i.cancelScroll;return(0,b.RF)((function(e,n){var a=e.scrollY,r=null==n?void 0:n.scrollY;r&&(l.current?l.current=!1:a>=r?(d(),o(!1)):a{n.r(t),n.d(t,{default:()=>i});var a=n(9901),r=n(6692),o=n(6330),l=n(6201);function i(){return a.createElement(a.Fragment,null,a.createElement(o.d,{title:(0,r.I)({id:"theme.NotFound.title",message:"Page Not Found"})}),a.createElement(l.Z,null,a.createElement("main",{className:"container margin-vert--xl"},a.createElement("div",{className:"row"},a.createElement("div",{className:"col col--6 col--offset-3"},a.createElement("h1",{className:"hero__title"},a.createElement(r.Z,{id:"theme.NotFound.title",description:"The title of the 404 page"},"Page Not Found")),a.createElement("p",null,a.createElement(r.Z,{id:"theme.NotFound.p1",description:"The first paragraph of the 404 page"},"We could not find what you were looking for.")),a.createElement("p",null,a.createElement(r.Z,{id:"theme.NotFound.p2",description:"The 2nd paragraph of the 404 page"},"Please contact the owner of the site that linked you to the original URL and let them know their link is broken.")))))))}},301:(e,t,n)=>{n.d(t,{E:()=>i,q:()=>l});var a=n(9901),r=n(3373),o=a.createContext(null);function l(e){var t=e.children,n=e.version;return a.createElement(o.Provider,{value:n},t)}function i(){var e=(0,a.useContext)(o);if(null===e)throw new r.i6("DocsVersionProvider");return e}}}]); \ No newline at end of file diff --git a/assets/js/1be78505.d468efff.js b/assets/js/1be78505.d468efff.js new file mode 100644 index 0000000000..99355819a1 --- /dev/null +++ b/assets/js/1be78505.d468efff.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[9514,7672],{4849:(e,t,n)=>{n.r(t),n.d(t,{default:()=>Ce});var a=n(9901),r=n(4517),o=n(4737),l=n(9),i=n(7471),c=n(4642),d=n(7372),s=n(492),m=n(4130),u=n(1059),b=n(5061),p=n(9654);const h={backToTopButton:"backToTopButton_q4Aj",backToTopButtonShow:"backToTopButtonShow_zi2D"};function v(){var e=function(e){var t=e.threshold,n=(0,a.useState)(!1),r=n[0],o=n[1],l=(0,a.useRef)(!1),i=(0,b.Ct)(),c=i.startScroll,d=i.cancelScroll;return(0,b.RF)((function(e,n){var a=e.scrollY,r=null==n?void 0:n.scrollY;r&&(l.current?l.current=!1:a>=r?(d(),o(!1)):a{n.r(t),n.d(t,{default:()=>i});var a=n(9901),r=n(1059),o=n(4737),l=n(4130);function i(){return a.createElement(a.Fragment,null,a.createElement(o.d,{title:(0,r.I)({id:"theme.NotFound.title",message:"Page Not Found"})}),a.createElement(l.Z,null,a.createElement("main",{className:"container margin-vert--xl"},a.createElement("div",{className:"row"},a.createElement("div",{className:"col col--6 col--offset-3"},a.createElement("h1",{className:"hero__title"},a.createElement(r.Z,{id:"theme.NotFound.title",description:"The title of the 404 page"},"Page Not Found")),a.createElement("p",null,a.createElement(r.Z,{id:"theme.NotFound.p1",description:"The first paragraph of the 404 page"},"We could not find what you were looking for.")),a.createElement("p",null,a.createElement(r.Z,{id:"theme.NotFound.p2",description:"The 2nd paragraph of the 404 page"},"Please contact the owner of the site that linked you to the original URL and let them know their link is broken.")))))))}},7372:(e,t,n)=>{n.d(t,{E:()=>i,q:()=>l});var a=n(9901),r=n(9824),o=a.createContext(null);function l(e){var t=e.children,n=e.version;return a.createElement(o.Provider,{value:n},t)}function i(){var e=(0,a.useContext)(o);if(null===e)throw new r.i6("DocsVersionProvider");return e}}}]); \ No newline at end of file diff --git a/assets/js/1df93b7f.78f64924.js b/assets/js/1df93b7f.78f64924.js new file mode 100644 index 0000000000..c566ed9c8d --- /dev/null +++ b/assets/js/1df93b7f.78f64924.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[3237],{962:(e,t,n)=>{n.d(t,{g:()=>h});var r=n(6632),a=n(2786),i=n(3800),o=n(966),l=n(9901),c=n(3346);var s=function(e){var t=m[e];return'import {populateDemo} from "./populateDemo"\n(async () => {\n try {\n '+t[0]+"\n populateDemo("+t[1]+')\n } catch(e) {\n populateDemo({ \n type: {\n definition: ""\n },\n data: "",\n problems: "ParseError: " + e.originalErr.message\n } as any)\n }\n})()'},m={type:['const { user, data, problems } = await import("./type")',"{ type: user, data, problems }"],scope:['const { types, data, problems } = await import("./scope")',"{ type: types.package, data, problems }"],demo:['const { pkg, data, problems } = await import("./demo")',"{ type: pkg, data, problems }"]};var p={"index.html":'\n \n\n
\n
\n
\n

Definition

\n
\n
\n
\n
\n
\n

Output

\n
\n
\n
\n
\n',"demo.css":'body {\n font-family: "Cascadia Code", sans-serif;\n background-color: hsl(220 18% 10%);\n}\n\n#demo {\n display: flex;\n flex-direction: column;\n gap: 1rem;\n margin: -0.5rem;\n padding: 0.5rem;\n}\n\n#input {\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n gap: 0.5rem;\n}\n\n.section {\n display: flex;\n flex-direction: column;\n flex-grow: 1;\n gap: 0.5rem;\n}\n\np {\n white-space: pre-wrap;\n}\n\npre {\n white-space: pre-wrap;\n}\n\nh3 {\n margin: 0px;\n color: #fffff0;\n}\n\n.key {\n color: #80cff8;\n}\n.val {\n color: #f5cf8f;\n}\n.operator {\n color: #eb9f2e;\n}\n.bracket {\n color: #009eff;\n}\n.card {\n padding: 1rem;\n background-color: rgb(18, 18, 18);\n color: rgb(255, 255, 255);\n /* transition: box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms; */\n border-radius: 1rem;\n box-shadow: rgba(0, 0, 0, 0.2) 0px 2px 1px -1px,\n rgba(0, 0, 0, 0.14) 0px 1px 1px 0px, rgba(0, 0, 0, 0.12) 0px 1px 3px 0px;\n background-image: linear-gradient(\n rgba(255, 255, 255, 0.05),\n rgba(255, 255, 255, 0.05)\n );\n height: 100%;\n}\n',"populateDemo.ts":'import "./demo.css"\nimport type { Problems, Type } from "arktype"\nimport { stringify } from "arktype/internal/utils/serialize.js"\n\ntype PopulateDemoArgs = {\n type: Type\n data: unknown\n problems: Problems\n}\nexport const populateDemo = ({ data, type, problems }: PopulateDemoArgs) => {\n const defElement = document.querySelector("#definition")!\n defElement.textContent = stringify(type.definition, 2)\n defElement.innerHTML = recolor(defElement.innerHTML)\n\n const resultElement = document.querySelector("#output")!\n if (problems) {\n resultElement.textContent = `\u274c problems:\n\n${problems}`\n } else {\n resultElement.textContent = `\u2705 data:\n\n${stringify(data, 2)}`\n resultElement.innerHTML = recolor(resultElement.innerHTML)\n }\n}\n\nconst recolor = (input: string) => {\n const lines = input.split("\\n")\n const fixedInput: string[] = [""]\n for (const line of lines) {\n if (line.includes(":")) {\n const parts = line.split(":")\n fixedInput.push(`${buildKey(parts[0])}: ${buildVal(parts[1])}`)\n } else {\n fixedInput.push(addArkdarkStyles(line))\n }\n }\n fixedInput.push("")\n return fixedInput.join("\\n")\n}\n\nconst buildKey = (key: string) => {\n return `${key}`\n}\nconst buildVal = (val: string) => {\n const formatted = addArkdarkStyles(val.trim())\n if (formatted[formatted.length - 1] === ",") {\n return `${formatted.replace(",", "")},`\n } else if (formatted[formatted.length - 1] === "{") {\n return "{"\n }\n return `${formatted}`\n}\nconst addArkdarkStyles = (line: string) => {\n const brackets = ["[", "]", "(", ")"]\n const operators = [">", "<", ">e;", "<e;", "|"]\n let modifiedLine = line\n for (const bracket of brackets) {\n modifiedLine = modifiedLine.replaceAll(\n bracket,\n `${bracket}`\n )\n }\n for (const operator of operators) {\n modifiedLine = modifiedLine.replaceAll(\n operator,\n `${operator}`\n )\n }\n return modifiedLine\n}\n',"tsconfig.json":JSON.stringify({compilerOptions:{module:"esnext",target:"esnext",strict:!0}},null,4)},d={type:'import { type } from "arktype"\n\n// Definitions are statically parsed and inferred as TS.\nexport const user = type({\n name: "string",\n device: {\n platform: "\'android\'|\'ios\'",\n "version?": "number"\n }\n})\n\n// Validators return typed data or clear, customizable errors.\nexport const { data, problems } = user({\n name: "Alan Turing",\n device: {\n // problems.summary: "device/platform must be \'android\' or \'ios\' (was \'enigma\')"\n platform: "enigma"\n }\n})\n',scope:'import { scope } from "arktype"\n\n// Scopes are collections of types that can reference each other.\nexport const types = scope({\n package: {\n name: "string",\n "dependencies?": "package[]",\n "contributors?": "contributor[]"\n },\n contributor: {\n // Subtypes like \'email\' are inferred like \'string\' but provide additional validation at runtime.\n email: "email",\n "packages?": "package[]"\n }\n}).compile()\n\n// Cyclic types are inferred to arbitrary depth...\nexport type Package = typeof types.package.infer\n\n// And can validate cyclic data.\nconst packageData: Package = {\n name: "arktype",\n dependencies: [{ name: "typescript" }],\n contributors: [{ email: "david@sharktypeio" }]\n}\npackageData.dependencies![0].dependencies = [packageData]\n\nexport const { data, problems } = types.package(packageData)\n',demo:'import { type } from "arktype"\n\n// Define your type...\nexport const pkg = type({\n name: "string",\n version: "semver",\n "contributors?": "1{n.r(t),n.d(t,{default:()=>se});var r,a,i,o,l,c,s,m,p,d,u,f=n(2732),h=n(1398),g=n(4130),y=n(9901),b=n(5636),v=n(3800),E=n(5569),k=n(4805),x=n(5850),w=n(8584),Z=n(1420),z=function(e){return y.createElement("video",(0,k.Z)({autoPlay:!0,loop:!0,controls:!0,playsInline:!0,muted:!0,disablePictureInPicture:!0},e))},T=n(4043),C=function(){return(0,T.Z)("(max-width:1250px)")},I=y.createElement("div",{className:"inferable-code"},y.createElement(Z.Z,{language:"typescript"},'const user = type({\n name: "string",\n device: {\n platform: "\'android\'|\'ios\'",\n "version?": "number"\n }\n})\n\n\n// Hover to infer...\ntype User = typeof user.infer\n'),y.createElement("img",{height:"50%",src:"/img/isomorphicHover.png"})),S=y.createElement("div",{className:"inferable-code"},y.createElement(Z.Z,{language:"typescript"},"// Hover to infer...\n",'const arkUser = type({\n name: /^ark.*$/ as Infer<`ark${string}`>,\n birthday: morph("string", (s) => new Date(s)),\n "powerLevel?": "1<=number<9000"\n})'),y.createElement("img",{height:"60%",src:"/img/arkUser.png"})),H=y.createElement("div",{className:"inferable-code"},y.createElement(Z.Z,{language:"typescript"},"// Hover to infer...\n",'const zodUser = z.object({\n name: z.custom<`zod${string}`>(\n (val) => typeof val === "string" && /^zod.*$/.test(val)\n ),\n birthday: z.preprocess(\n (arg) => (typeof arg === "string" ? new Date(arg) : undefined),\n z.date()\n ),\n powerLevel: z.number().gte(1).lt(9000).optional()\n})'),y.createElement("img",{height:"80%",src:"/img/zodInfer.png"})),O=y.createElement(y.Fragment,null,S,H),j=y.createElement("div",{className:"inferable-code"},y.createElement(Z.Z,{language:"typescript"},"// Hover to see internal representation...\n","export const deepLeftOrRight = union(\n {\n auto: {\n discriminated: \"'left'\"\n }\n },\n {\n auto: {\n discriminated: \"'right'\"\n }\n }\n)"),y.createElement("img",{src:"/img/optimizedUnion.png"})),D=y.createElement("div",{className:"inferable-code"},y.createElement(Z.Z,{language:"typescript"},"// Hover to see internal representation...\n",'export const numericIntersection = type(\n "(1 <= number%2 < 100) & (0 < number%3 <= 99)"\n)',"\n \n\n\n\n\n"),y.createElement("img",{src:"/img/optimizedNumber.png"})),M=[{title:"Isomorphic",description:"Define types using TS syntax. Infer them 1:1. Use them to validate your data at runtime.",image:I},{title:"Concise",description:"Say more with less",image:O},{title:"Optimized",description:"ArkType is not just a validator\u2014 it's a full type system. Operations are deeply computed and optimized by default",image:y.createElement(y.Fragment,null,j,D)},{title:"Type-safe",description:"String definitions are statically parsed with each character you type and give detailed feedback just like in your editor.",image:y.createElement(v.Z,{width:"100%"},y.createElement(z,{src:"/img/typePerf.mp4"}),y.createElement("caption",{style:{fontSize:".8rem"}},"Worried about performance? Don't be. This is how it feels to interact with a scope of 100 cyclic types (you may want to go fullscreen to see the details!)"))}],P=function(){return y.createElement(x.ZP,{sx:{alignContent:"center"},columns:C()?1:2,spacing:3},M.map((function(e,t){return y.createElement(L,(0,k.Z)({key:t},e))})))},L=function(e){var t,n=(0,w.Z)();return y.createElement(v.Z,{spacing:2,maxWidth:"40em"},y.createElement(E.Z,{component:"h3",variant:"h5",fontWeight:"700",width:"100%",textAlign:"center",color:n.palette.info.main},e.title),y.createElement(E.Z,{component:"p",variant:"body1",fontWeight:"300",minHeight:"3rem"},e.description),y.createElement("div",{style:{padding:"6px",borderRadius:"16px"}},null!=(t=e.image)?t:null))},N=n(6172),$=n(6832),A=n(931),F=n(3760),W=n(5601),U=n(962),q=n(7188),R=n(9069),V=function(){var e=(0,N.TH)().pathname,t=(0,w.Z)().palette,n="dark"===(0,b.I)().colorMode,r=(0,y.useState)(e.includes("try")),a=r[0],i=r[1],o=n?"#ffffff00":"#000000aa";return y.createElement(y.Fragment,null,y.createElement(v.Z,{alignItems:"start",width:"100%"},y.createElement(F.Z,{variant:"contained",sx:{backgroundColor:o,backdropFilter:"blur(4px)",borderRadius:"2rem",fontSize:"1.5rem",fontFamily:'"Cascadia Code", sans-serif',textTransform:"none",color:t.primary.main,"&:hover":{backgroundColor:o,color:t.secondary.main,backdropFilter:"blur(6px)"},zIndex:1},onClick:function(){return i(!a)},endIcon:y.createElement("div",{style:{display:"flex"}},a?y.createElement($.Z,null):y.createElement(A.Z,null))},a?"$ wq!":"$ code demo.ts",y.createElement(W.E.div,{animate:{opacity:0},transition:{duration:.5,repeatType:"mirror",repeat:1/0}},"_"))),y.createElement(v.Z,{width:"100%"},a?y.createElement(U.g,{embedId:"demo"}):y.createElement(z,{src:"/img/arktype.mp4",style:{width:"100%",marginTop:"-2.8rem"}})),y.createElement("sub",{style:{marginLeft:"2.3px",marginTop:"5px"}},y.createElement("code",null,"typescript@4.9.5")," in VS Code\u2014 no extensions or plugins required (",y.createElement("a",{href:"https://github.com/arktypeio/arktype#how",target:"_blank"},"how?"),")"))},_=n(7699),J=n(2894),G=n(1980),K=n(7487),B=n(4123),Y=function(){var e=(0,K.v)().scrollY,t=(0,B._)(),n={position:"absolute",top:60,width:386};return e.onChange((function(e){t.start(e?{position:"fixed",top:"50%",width:340}:n)})),y.createElement(W.E.div,{style:{right:0},initial:n,animate:t},y.createElement(X,null))},Q=function(){return y.createElement("div",{style:{width:"100%"}},y.createElement(X,null))},X=function(){return y.createElement(_.Z,{style:{height:"8rem",margin:".5rem",padding:".7rem 1rem 0rem",backgroundColor:"#ffffff00",backdropFilter:"blur(1px)",borderRadius:"2rem",zIndex:1,fontFamily:'"Cascadia Code", sans-serif'},elevation:8},y.createElement(G.Z,{className:"installationTabs"},y.createElement(J.Z,{value:"node",default:!0},y.createElement(G.Z,{className:"subTabs"},y.createElement(J.Z,{value:"npm",attributes:{className:"npmTab"}},y.createElement(Z.Z,{language:"bash"},"npm install arktype")),y.createElement(J.Z,{value:"pnpm",attributes:{className:"pnpmTab"}},y.createElement(Z.Z,{language:"bash"},"pnpm add arktype")),y.createElement(J.Z,{value:"yarn",attributes:{className:"yarnTab"}},y.createElement(Z.Z,{language:"bash"},"yarn add arktype")))),y.createElement(J.Z,{value:"bun",label:"bun"},y.createElement(Z.Z,{language:"bash"},"bun install arktype")),y.createElement(J.Z,{value:"deno",label:"deno"},y.createElement(Z.Z,{language:"typescript"},'import { type } from "npm:arktype"'))))},ee=function(){var e=(0,b.I)().colorMode;return y.createElement("main",{style:{display:"flex",justifyContent:"center"}},y.createElement(v.Z,{justifyContent:"center",padding:"1rem 0rem 1rem",spacing:1,width:"100%",maxWidth:"60rem"},y.createElement(V,null),(0,T.Z)("(min-width:1420px)")?y.createElement(Y,null):y.createElement(Q,null),y.createElement(E.Z,{color:"dark"===e?"primary.light":"primary.dark",className:"contents",fontSize:"1.3rem"},y.createElement("p",null,"ArkType is a runtime validation library that can infer"," ",y.createElement("b",null,"TypeScript definitions 1:1")," and reuse them as"," ",y.createElement("b",null,"highly-optimized validators")," for your data."),y.createElement("p",null,"With each character you type, you'll get"," ",y.createElement("b",null,"immediate feedback from your editor")," in the form of either a fully-inferred ",y.createElement("code",null,"Type")," or a specific and helpful ",y.createElement("code",null,"ParseError"),"."),y.createElement("p",null,"This result exactly mirrors what you can expect to happen at runtime down to the punctuation of the error message- ",y.createElement("b",null,"no plugins required"),".")),y.createElement(P,null)))},te=["title","titleId"];function ne(){return ne=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}const ae=function(e){var t=e.title,n=e.titleId,f=re(e,te);return y.createElement("svg",ne({viewBox:"0 0 375 375","aria-labelledby":n},f),t?y.createElement("title",{id:n},t):null,r||(r=y.createElement("path",{fill:"#4b3621",d:"M5.314 281.357h27.799l9.62-38.835a5.288 5.337 0 0 1 5.156-4.077h212.609a5.288 5.337 0 0 1 5.156 4.077l9.461 38.3 37.844-4.775c1.754-.268 3.508.43 4.678 1.824 1.169 1.34 1.542 3.218 1.063 4.935l-10.63 37.548a5.295 5.344 0 0 1-5.103 3.916H5.315c-2.923 0-5.316-2.414-5.316-5.364V286.72c0-2.95 2.391-5.364 5.315-5.364Zm127.566-32.184H52.035l-7.972 32.184h88.817zm31.89 0h-21.26v32.184h21.26zm91.582 0h-80.95v32.184h88.923zM10.63 313.542h288.35l7.283-25.855-34.55 4.344c-.212.054-.425.054-.637.054H10.629v21.457z"})),a||(a=y.createElement("path",{fill:"none",d:"M106.994 267.84a5.281 5.33 0 0 0 4.624 2.789c.904 0 1.754-.215 2.604-.697a5.358 5.358 0 0 0 2.073-7.296c-1.435-2.574-4.624-3.54-7.229-2.092-2.55 1.449-3.507 4.72-2.072 7.296zm-43.212-2.575c0 2.95 2.338 5.364 5.262 5.364h.052c2.924 0 5.316-2.414 5.316-5.364 0-2.95-2.392-5.364-5.316-5.364-2.923 0-5.314 2.413-5.314 5.364zm127.671.805c.425 2.628 2.658 4.56 5.262 4.56.266 0 .531 0 .797-.054 2.87-.43 4.943-3.165 4.465-6.115-.426-2.95-3.083-4.989-6.006-4.506h-.053c-2.87.428-4.89 3.165-4.465 6.114zm21.155-.805c0 2.95 2.391 5.364 5.315 5.364 2.924 0 5.369-2.414 5.369-5.364 0-2.95-2.392-5.364-5.316-5.364h-.053c-2.923 0-5.315 2.413-5.315 5.364zm-127.566 0c0 2.95 2.339 5.364 5.262 5.364h.053c2.923 0 5.316-2.414 5.316-5.364 0-2.95-2.392-5.364-5.316-5.364s-5.315 2.413-5.315 5.364zm152.866 5.203a5.232 5.28 0 0 0 1.276.161 5.284 5.284 0 0 0 5.156-4.077c.744-2.843-.957-5.793-3.827-6.49h-.053c-2.87-.698-5.74 1.018-6.432 3.916a5.39 5.39 0 0 0 3.88 6.49z"})),i||(i=y.createElement("path",{fill:"none",d:"M182.736 249.173h73.616l6.644 26.82h-80.26Zm55.172 21.295a5.232 5.28 0 0 0 1.276.161 5.284 5.284 0 0 0 5.156-4.077c.744-2.843-.957-5.793-3.827-6.49h-.053c-2.87-.698-5.74 1.018-6.432 3.916a5.39 5.39 0 0 0 3.88 6.49zm-19.985.161c2.923 0 5.369-2.414 5.369-5.364 0-2.95-2.392-5.364-5.316-5.364h-.053c-2.923 0-5.315 2.413-5.315 5.364 0 2.95 2.392 5.364 5.315 5.364zm-21.208 0c.266 0 .532 0 .798-.053 2.87-.43 4.943-3.165 4.464-6.115-.425-2.95-3.082-4.989-6.006-4.506h-.053c-2.87.43-4.89 3.165-4.464 6.115.424 2.627 2.657 4.56 5.262 4.56z"})),o||(o=y.createElement("path",{fill:"none",d:"M182.736 249.173v26.82h80.26l1.329 5.364H175.4v-32.184zm-17.966 0h-13.925v26.82h13.925z"})),l||(l=y.createElement("path",{fill:"none",d:"M150.845 249.173v26.82h13.925v5.364h-21.26v-32.184zm-92.805 0h74.84v26.82H51.397Zm48.954 18.667a5.281 5.33 0 0 0 4.624 2.789c.904 0 1.754-.215 2.604-.697a5.358 5.358 0 0 0 2.073-7.296c-1.435-2.574-4.624-3.54-7.229-2.092-2.55 1.449-3.507 4.72-2.072 7.296zm-16.69 2.79h.053c2.923 0 5.316-2.415 5.316-5.365s-2.392-5.364-5.316-5.364-5.315 2.413-5.315 5.364c0 2.95 2.34 5.364 5.262 5.364zm-21.26 0h.052c2.924 0 5.316-2.415 5.316-5.365s-2.392-5.364-5.316-5.364c-2.923 0-5.315 2.413-5.315 5.364 0 2.95 2.34 5.364 5.262 5.364z"})),c||(c=y.createElement("path",{fill:"none",d:"M52.035 249.173h6.006l-6.644 26.82h81.483v5.364H44.062Zm-34.071 42.912h253.111c.213 0 .426 0 .638-.053l34.55-4.345-5.773 20.49H17.964Z"})),s||(s=y.createElement("path",{fill:"none",d:"m300.49 308.178-1.51 5.364zM17.964 292.085v16.093H300.49l-1.51 5.364H10.63v-21.457z"})),m||(m=y.createElement("path",{fill:"none",d:"M10.934 302.813v-10.728l131.358.01 131.358.01 15.636-1.955c8.6-1.076 15.786-1.805 15.968-1.621.182.184-1.236 5.887-3.152 12.674l-3.485 12.34H10.934Z"})),p||(p=y.createElement("path",{fill:"#eb9f2e",d:"M11.237 302.813v-10.728l132.573-.01 132.573-.01 12.453-1.519c14.274-1.741 15.793-1.814 15.794-.759 0 .422-1.407 5.939-3.128 12.26l-3.13 11.495H11.238Z"})),d||(d=y.createElement("path",{fill:"none",d:"M44.664 280.591c.009-.253 1.734-7.356 3.834-15.785l3.817-15.326 40.205-.157 40.205-.158v31.886h-44.04c-24.221 0-44.031-.207-44.021-.46zm28.34-11.294c1.408-1.335 1.898-4.63 1.03-6.916-.493-1.295-3.389-2.786-5.41-2.786-2.105 0-5.147 3.07-5.147 5.194 0 1.889 1.463 4.981 2.569 5.43 2.048.832 5.606.36 6.959-.922zm21.261 0c1.407-1.335 1.898-4.63 1.029-6.916-.493-1.295-3.389-2.786-5.41-2.786-2.105 0-5.147 3.07-5.147 5.194 0 1.889 1.463 4.981 2.569 5.43 2.049.832 5.606.36 6.959-.922zm20.992.12c1.898-1.506 2.42-4.01 1.367-6.554-.942-2.274-2.512-3.268-5.167-3.268-2.42 0-5.46 2.891-5.46 5.194 0 1.889 1.463 4.981 2.57 5.43 1.852.752 5.245.346 6.69-.802zm28.401-4.305v-15.938h20.653v31.876h-20.653z"})),u||(u=y.createElement("path",{fill:"#eb9f2e",d:"M175.852 265.112v-15.938h80.135l.6 2.299c.33 1.264 1.993 7.953 3.694 14.865 1.702 6.912 3.237 13.05 3.413 13.64.301 1.015-2.064 1.073-43.761 1.073h-44.08Zm24.73 4.138c1.832-2.02 2.163-3.777 1.165-6.189-1.626-3.926-5.907-4.728-8.933-1.674-1.989 2.007-2.257 4.073-.877 6.765 1.064 2.077 1.647 2.365 4.918 2.429 1.832.036 2.801-.31 3.727-1.33zm21.246 0c1.735-1.934 2.089-3.992 1.098-6.384-1.495-3.61-5.994-4.363-8.852-1.479-1.988 2.007-2.256 4.073-.877 6.765 1.064 2.077 1.647 2.365 4.918 2.429 1.836.036 2.796-.308 3.713-1.33zm21.259.047c1.038-.985 1.406-2.009 1.406-3.917 0-3.434-1.442-5.155-4.685-5.594-2.255-.305-2.757-.131-4.397 1.524-2.067 2.086-2.35 4.117-.954 6.842 1.06 2.067 1.651 2.365 4.833 2.429 1.666.034 2.817-.356 3.797-1.284zm-99.429-4.185v-15.938h20.653v31.876h-20.653zm-78.814 15.479c-10.775-.094-19.59-.408-19.59-.699 0-.797 7.103-29.51 7.366-29.774.125-.127 18.2-.322 40.166-.434l39.939-.204v31.571l-24.146-.145c-13.28-.079-32.961-.22-43.735-.315Zm7.764-10.585c1.609-.87 2.585-4.818 1.772-7.171-1.21-3.501-6.312-4.384-9.2-1.593-1.966 1.902-2.253 4.697-.776 7.579.84 1.64 1.212 1.808 3.988 1.808 1.684 0 3.58-.28 4.216-.623zm21.26 0c1.61-.87 2.585-4.818 1.772-7.171-1.21-3.501-6.312-4.384-9.2-1.593-1.966 1.902-2.253 4.697-.776 7.579.84 1.64 1.212 1.808 3.988 1.808 1.684 0 3.581-.28 4.216-.623zm21.833-.587c1.661-1.676 2.08-3.852 1.24-6.424-.847-2.588-2.125-3.4-5.354-3.4-4.654 0-7.006 4.654-4.663 9.226.855 1.668 1.184 1.808 4.252 1.808 2.501 0 3.623-.3 4.525-1.21z"})))};var ie=function(){for(var e,t,n,r=(e=(0,y.useState)({width:globalThis.innerWidth,height:globalThis.innerHeight}),t=e[0],n=e[1],(0,y.useEffect)((function(){var e=function(){n({width:window.innerWidth,height:window.innerHeight})};return window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}}),[]),t).width/16,a=[],i=0;i{n.d(t,{g:()=>h});var r=n(2378),a=n(3223),i=n(3800),o=n(966),l=n(9901),c=n(3346);var s=function(e){var t=m[e];return'import {populateDemo} from "./populateDemo"\n(async () => {\n try {\n '+t[0]+"\n populateDemo("+t[1]+')\n } catch(e) {\n populateDemo({ \n type: {\n definition: ""\n },\n data: "",\n problems: "ParseError: " + e.originalErr.message\n } as any)\n }\n})()'},m={type:['const { user, data, problems } = await import("./type")',"{ type: user, data, problems }"],scope:['const { types, data, problems } = await import("./scope")',"{ type: types.package, data, problems }"],demo:['const { pkg, data, problems } = await import("./demo")',"{ type: pkg, data, problems }"]};var p={"index.html":'\n \n\n
\n
\n
\n

Definition

\n
\n
\n
\n
\n
\n

Output

\n
\n
\n
\n
\n',"demo.css":'body {\n font-family: "Cascadia Code", sans-serif;\n background-color: hsl(220 18% 10%);\n}\n\n#demo {\n display: flex;\n flex-direction: column;\n gap: 1rem;\n margin: -0.5rem;\n padding: 0.5rem;\n}\n\n#input {\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n gap: 0.5rem;\n}\n\n.section {\n display: flex;\n flex-direction: column;\n flex-grow: 1;\n gap: 0.5rem;\n}\n\np {\n white-space: pre-wrap;\n}\n\npre {\n white-space: pre-wrap;\n}\n\nh3 {\n margin: 0px;\n color: #fffff0;\n}\n\n.key {\n color: #80cff8;\n}\n.val {\n color: #f5cf8f;\n}\n.operator {\n color: #eb9f2e;\n}\n.bracket {\n color: #009eff;\n}\n.card {\n padding: 1rem;\n background-color: rgb(18, 18, 18);\n color: rgb(255, 255, 255);\n /* transition: box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms; */\n border-radius: 1rem;\n box-shadow: rgba(0, 0, 0, 0.2) 0px 2px 1px -1px,\n rgba(0, 0, 0, 0.14) 0px 1px 1px 0px, rgba(0, 0, 0, 0.12) 0px 1px 3px 0px;\n background-image: linear-gradient(\n rgba(255, 255, 255, 0.05),\n rgba(255, 255, 255, 0.05)\n );\n height: 100%;\n}\n',"populateDemo.ts":'import "./demo.css"\nimport type { Problems, Type } from "arktype"\nimport { stringify } from "arktype/internal/utils/serialize.js"\n\ntype PopulateDemoArgs = {\n type: Type\n data: unknown\n problems: Problems\n}\nexport const populateDemo = ({ data, type, problems }: PopulateDemoArgs) => {\n const defElement = document.querySelector("#definition")!\n defElement.textContent = stringify(type.definition, 2)\n defElement.innerHTML = recolor(defElement.innerHTML)\n\n const resultElement = document.querySelector("#output")!\n if (problems) {\n resultElement.textContent = `\u274c problems:\n\n${problems}`\n } else {\n resultElement.textContent = `\u2705 data:\n\n${stringify(data, 2)}`\n resultElement.innerHTML = recolor(resultElement.innerHTML)\n }\n}\n\nconst recolor = (input: string) => {\n const lines = input.split("\\n")\n const fixedInput: string[] = [""]\n for (const line of lines) {\n if (line.includes(":")) {\n const parts = line.split(":")\n fixedInput.push(`${buildKey(parts[0])}: ${buildVal(parts[1])}`)\n } else {\n fixedInput.push(addArkdarkStyles(line))\n }\n }\n fixedInput.push("")\n return fixedInput.join("\\n")\n}\n\nconst buildKey = (key: string) => {\n return `${key}`\n}\nconst buildVal = (val: string) => {\n const formatted = addArkdarkStyles(val.trim())\n if (formatted[formatted.length - 1] === ",") {\n return `${formatted.replace(",", "")},`\n } else if (formatted[formatted.length - 1] === "{") {\n return "{"\n }\n return `${formatted}`\n}\nconst addArkdarkStyles = (line: string) => {\n const brackets = ["[", "]", "(", ")"]\n const operators = [">", "<", ">e;", "<e;", "|"]\n let modifiedLine = line\n for (const bracket of brackets) {\n modifiedLine = modifiedLine.replaceAll(\n bracket,\n `${bracket}`\n )\n }\n for (const operator of operators) {\n modifiedLine = modifiedLine.replaceAll(\n operator,\n `${operator}`\n )\n }\n return modifiedLine\n}\n',"tsconfig.json":JSON.stringify({compilerOptions:{module:"esnext",target:"esnext",strict:!0}},null,4)},d={type:'import { type } from "arktype"\n\n// Definitions are statically parsed and inferred as TS.\nexport const user = type({\n name: "string",\n device: {\n platform: "\'android\'|\'ios\'",\n "version?": "number"\n }\n})\n\n// Validators return typed data or clear, customizable errors.\nexport const { data, problems } = user({\n name: "Alan Turing",\n device: {\n // problems.summary: "device/platform must be \'android\' or \'ios\' (was \'enigma\')"\n platform: "enigma"\n }\n})\n',scope:'import { scope } from "arktype"\n\n// Scopes are collections of types that can reference each other.\nexport const types = scope({\n package: {\n name: "string",\n "dependencies?": "package[]",\n "contributors?": "contributor[]"\n },\n contributor: {\n // Subtypes like \'email\' are inferred like \'string\' but provide additional validation at runtime.\n email: "email",\n "packages?": "package[]"\n }\n}).compile()\n\n// Cyclic types are inferred to arbitrary depth...\nexport type Package = typeof types.package.infer\n\n// And can validate cyclic data.\nconst packageData: Package = {\n name: "arktype",\n dependencies: [{ name: "typescript" }],\n contributors: [{ email: "david@sharktypeio" }]\n}\npackageData.dependencies![0].dependencies = [packageData]\n\nexport const { data, problems } = types.package(packageData)\n',demo:'import { type } from "arktype"\n\n// Define your type...\nexport const pkg = type({\n name: "string",\n version: "semver",\n "contributors?": "1{n.r(t),n.d(t,{default:()=>se});var r,a,i,o,l,c,s,m,p,d,u,f=n(5145),h=n(2830),g=n(6201),y=n(9901),b=n(6210),v=n(3800),E=n(5569),k=n(3341),x=n(5850),w=n(8584),Z=n(7176),z=function(e){return y.createElement("video",(0,k.Z)({autoPlay:!0,loop:!0,controls:!0,playsInline:!0,muted:!0,disablePictureInPicture:!0},e))},T=n(4043),C=function(){return(0,T.Z)("(max-width:1250px)")},I=y.createElement("div",{className:"inferable-code"},y.createElement(Z.Z,{language:"typescript"},'const user = type({\n name: "string",\n device: {\n platform: "\'android\'|\'ios\'",\n "version?": "number"\n }\n})\n\n\n// Hover to infer...\ntype User = typeof user.infer\n'),y.createElement("img",{height:"50%",src:"/img/isomorphicHover.png"})),S=y.createElement("div",{className:"inferable-code"},y.createElement(Z.Z,{language:"typescript"},"// Hover to infer...\n",'const arkUser = type({\n name: /^ark.*$/ as Infer<`ark${string}`>,\n birthday: morph("string", (s) => new Date(s)),\n "powerLevel?": "1<=number<9000"\n})'),y.createElement("img",{height:"60%",src:"/img/arkUser.png"})),H=y.createElement("div",{className:"inferable-code"},y.createElement(Z.Z,{language:"typescript"},"// Hover to infer...\n",'const zodUser = z.object({\n name: z.custom<`zod${string}`>(\n (val) => typeof val === "string" && /^zod.*$/.test(val)\n ),\n birthday: z.preprocess(\n (arg) => (typeof arg === "string" ? new Date(arg) : undefined),\n z.date()\n ),\n powerLevel: z.number().gte(1).lt(9000).optional()\n})'),y.createElement("img",{height:"80%",src:"/img/zodInfer.png"})),O=y.createElement(y.Fragment,null,S,H),j=y.createElement("div",{className:"inferable-code"},y.createElement(Z.Z,{language:"typescript"},"// Hover to see internal representation...\n","export const deepLeftOrRight = union(\n {\n auto: {\n discriminated: \"'left'\"\n }\n },\n {\n auto: {\n discriminated: \"'right'\"\n }\n }\n)"),y.createElement("img",{src:"/img/optimizedUnion.png"})),D=y.createElement("div",{className:"inferable-code"},y.createElement(Z.Z,{language:"typescript"},"// Hover to see internal representation...\n",'export const numericIntersection = type(\n "(1 <= number%2 < 100) & (0 < number%3 <= 99)"\n)',"\n \n\n\n\n\n"),y.createElement("img",{src:"/img/optimizedNumber.png"})),M=[{title:"Isomorphic",description:"Define types using TS syntax. Infer them 1:1. Use them to validate your data at runtime.",image:I},{title:"Concise",description:"Say more with less",image:O},{title:"Optimized",description:"ArkType is not just a validator\u2014 it's a full type system. Operations are deeply computed and optimized by default",image:y.createElement(y.Fragment,null,j,D)},{title:"Type-safe",description:"String definitions are statically parsed with each character you type and give detailed feedback just like in your editor.",image:y.createElement(v.Z,{width:"100%"},y.createElement(z,{src:"/img/typePerf.mp4"}),y.createElement("caption",{style:{fontSize:".8rem"}},"Worried about performance? Don't be. This is how it feels to interact with a scope of 100 cyclic types (you may want to go fullscreen to see the details!)"))}],P=function(){return y.createElement(x.ZP,{sx:{alignContent:"center"},columns:C()?1:2,spacing:3},M.map((function(e,t){return y.createElement(L,(0,k.Z)({key:t},e))})))},L=function(e){var t,n=(0,w.Z)();return y.createElement(v.Z,{spacing:2,maxWidth:"40em"},y.createElement(E.Z,{component:"h3",variant:"h5",fontWeight:"700",width:"100%",textAlign:"center",color:n.palette.info.main},e.title),y.createElement(E.Z,{component:"p",variant:"body1",fontWeight:"300",minHeight:"3rem"},e.description),y.createElement("div",{style:{padding:"6px",borderRadius:"16px"}},null!=(t=e.image)?t:null))},N=n(6172),$=n(6832),A=n(931),F=n(3744),W=n(5601),U=n(4213),q=n(7188),R=n(9069),V=function(){var e=(0,N.TH)().pathname,t=(0,w.Z)().palette,n="dark"===(0,b.I)().colorMode,r=(0,y.useState)(e.includes("try")),a=r[0],i=r[1],o=n?"#ffffff00":"#000000aa";return y.createElement(y.Fragment,null,y.createElement(v.Z,{alignItems:"start",width:"100%"},y.createElement(F.Z,{variant:"contained",sx:{backgroundColor:o,backdropFilter:"blur(4px)",borderRadius:"2rem",fontSize:"1.5rem",fontFamily:'"Cascadia Code", sans-serif',textTransform:"none",color:t.primary.main,"&:hover":{backgroundColor:o,color:t.secondary.main,backdropFilter:"blur(6px)"},zIndex:1},onClick:function(){return i(!a)},endIcon:y.createElement("div",{style:{display:"flex"}},a?y.createElement($.Z,null):y.createElement(A.Z,null))},a?"$ wq!":"$ code demo.ts",y.createElement(W.E.div,{animate:{opacity:0},transition:{duration:.5,repeatType:"mirror",repeat:1/0}},"_"))),y.createElement(v.Z,{width:"100%"},a?y.createElement(U.g,{embedId:"demo"}):y.createElement(z,{src:"/img/arktype.mp4",style:{width:"100%",marginTop:"-2.8rem"}})),y.createElement("sub",{style:{marginLeft:"2.3px",marginTop:"5px"}},y.createElement("code",null,"typescript@4.9.5")," in VS Code\u2014 no extensions or plugins required (",y.createElement("a",{href:"https://github.com/arktypeio/arktype#how",target:"_blank"},"how?"),")"))},_=n(7699),J=n(2478),G=n(2484),K=n(7487),B=n(4123),Y=function(){var e=(0,K.v)().scrollY,t=(0,B._)(),n={position:"absolute",top:60,width:386};return e.onChange((function(e){t.start(e?{position:"fixed",top:"50%",width:340}:n)})),y.createElement(W.E.div,{style:{right:0},initial:n,animate:t},y.createElement(X,null))},Q=function(){return y.createElement("div",{style:{width:"100%"}},y.createElement(X,null))},X=function(){return y.createElement(_.Z,{style:{height:"8rem",margin:".5rem",padding:".7rem 1rem 0rem",backgroundColor:"#ffffff00",backdropFilter:"blur(1px)",borderRadius:"2rem",zIndex:1,fontFamily:'"Cascadia Code", sans-serif'},elevation:8},y.createElement(G.Z,{className:"installationTabs"},y.createElement(J.Z,{value:"node",default:!0},y.createElement(G.Z,{className:"subTabs"},y.createElement(J.Z,{value:"npm",attributes:{className:"npmTab"}},y.createElement(Z.Z,{language:"bash"},"npm install arktype")),y.createElement(J.Z,{value:"pnpm",attributes:{className:"pnpmTab"}},y.createElement(Z.Z,{language:"bash"},"pnpm add arktype")),y.createElement(J.Z,{value:"yarn",attributes:{className:"yarnTab"}},y.createElement(Z.Z,{language:"bash"},"yarn add arktype")))),y.createElement(J.Z,{value:"bun",label:"bun"},y.createElement(Z.Z,{language:"bash"},"bun install arktype")),y.createElement(J.Z,{value:"deno",label:"deno"},y.createElement(Z.Z,{language:"typescript"},'import { type } from "npm:arktype"'))))},ee=function(){var e=(0,b.I)().colorMode;return y.createElement("main",{style:{display:"flex",justifyContent:"center"}},y.createElement(v.Z,{justifyContent:"center",padding:"1rem 0rem 1rem",spacing:1,width:"100%",maxWidth:"60rem"},y.createElement(V,null),(0,T.Z)("(min-width:1420px)")?y.createElement(Y,null):y.createElement(Q,null),y.createElement(E.Z,{color:"dark"===e?"primary.light":"primary.dark",className:"contents",fontSize:"1.3rem"},y.createElement("p",null,"ArkType is a runtime validation library that can infer"," ",y.createElement("b",null,"TypeScript definitions 1:1")," and reuse them as"," ",y.createElement("b",null,"highly-optimized validators")," for your data."),y.createElement("p",null,"With each character you type, you'll get"," ",y.createElement("b",null,"immediate feedback from your editor")," in the form of either a fully-inferred ",y.createElement("code",null,"Type")," or a specific and helpful ",y.createElement("code",null,"ParseError"),"."),y.createElement("p",null,"This result exactly mirrors what you can expect to happen at runtime down to the punctuation of the error message- ",y.createElement("b",null,"no plugins required"),".")),y.createElement(P,null)))},te=["title","titleId"];function ne(){return ne=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}const ae=function(e){var t=e.title,n=e.titleId,f=re(e,te);return y.createElement("svg",ne({viewBox:"0 0 375 375","aria-labelledby":n},f),t?y.createElement("title",{id:n},t):null,r||(r=y.createElement("path",{fill:"#4b3621",d:"M5.314 281.357h27.799l9.62-38.835a5.288 5.337 0 0 1 5.156-4.077h212.609a5.288 5.337 0 0 1 5.156 4.077l9.461 38.3 37.844-4.775c1.754-.268 3.508.43 4.678 1.824 1.169 1.34 1.542 3.218 1.063 4.935l-10.63 37.548a5.295 5.344 0 0 1-5.103 3.916H5.315c-2.923 0-5.316-2.414-5.316-5.364V286.72c0-2.95 2.391-5.364 5.315-5.364Zm127.566-32.184H52.035l-7.972 32.184h88.817zm31.89 0h-21.26v32.184h21.26zm91.582 0h-80.95v32.184h88.923zM10.63 313.542h288.35l7.283-25.855-34.55 4.344c-.212.054-.425.054-.637.054H10.629v21.457z"})),a||(a=y.createElement("path",{fill:"none",d:"M106.994 267.84a5.281 5.33 0 0 0 4.624 2.789c.904 0 1.754-.215 2.604-.697a5.358 5.358 0 0 0 2.073-7.296c-1.435-2.574-4.624-3.54-7.229-2.092-2.55 1.449-3.507 4.72-2.072 7.296zm-43.212-2.575c0 2.95 2.338 5.364 5.262 5.364h.052c2.924 0 5.316-2.414 5.316-5.364 0-2.95-2.392-5.364-5.316-5.364-2.923 0-5.314 2.413-5.314 5.364zm127.671.805c.425 2.628 2.658 4.56 5.262 4.56.266 0 .531 0 .797-.054 2.87-.43 4.943-3.165 4.465-6.115-.426-2.95-3.083-4.989-6.006-4.506h-.053c-2.87.428-4.89 3.165-4.465 6.114zm21.155-.805c0 2.95 2.391 5.364 5.315 5.364 2.924 0 5.369-2.414 5.369-5.364 0-2.95-2.392-5.364-5.316-5.364h-.053c-2.923 0-5.315 2.413-5.315 5.364zm-127.566 0c0 2.95 2.339 5.364 5.262 5.364h.053c2.923 0 5.316-2.414 5.316-5.364 0-2.95-2.392-5.364-5.316-5.364s-5.315 2.413-5.315 5.364zm152.866 5.203a5.232 5.28 0 0 0 1.276.161 5.284 5.284 0 0 0 5.156-4.077c.744-2.843-.957-5.793-3.827-6.49h-.053c-2.87-.698-5.74 1.018-6.432 3.916a5.39 5.39 0 0 0 3.88 6.49z"})),i||(i=y.createElement("path",{fill:"none",d:"M182.736 249.173h73.616l6.644 26.82h-80.26Zm55.172 21.295a5.232 5.28 0 0 0 1.276.161 5.284 5.284 0 0 0 5.156-4.077c.744-2.843-.957-5.793-3.827-6.49h-.053c-2.87-.698-5.74 1.018-6.432 3.916a5.39 5.39 0 0 0 3.88 6.49zm-19.985.161c2.923 0 5.369-2.414 5.369-5.364 0-2.95-2.392-5.364-5.316-5.364h-.053c-2.923 0-5.315 2.413-5.315 5.364 0 2.95 2.392 5.364 5.315 5.364zm-21.208 0c.266 0 .532 0 .798-.053 2.87-.43 4.943-3.165 4.464-6.115-.425-2.95-3.082-4.989-6.006-4.506h-.053c-2.87.43-4.89 3.165-4.464 6.115.424 2.627 2.657 4.56 5.262 4.56z"})),o||(o=y.createElement("path",{fill:"none",d:"M182.736 249.173v26.82h80.26l1.329 5.364H175.4v-32.184zm-17.966 0h-13.925v26.82h13.925z"})),l||(l=y.createElement("path",{fill:"none",d:"M150.845 249.173v26.82h13.925v5.364h-21.26v-32.184zm-92.805 0h74.84v26.82H51.397Zm48.954 18.667a5.281 5.33 0 0 0 4.624 2.789c.904 0 1.754-.215 2.604-.697a5.358 5.358 0 0 0 2.073-7.296c-1.435-2.574-4.624-3.54-7.229-2.092-2.55 1.449-3.507 4.72-2.072 7.296zm-16.69 2.79h.053c2.923 0 5.316-2.415 5.316-5.365s-2.392-5.364-5.316-5.364-5.315 2.413-5.315 5.364c0 2.95 2.34 5.364 5.262 5.364zm-21.26 0h.052c2.924 0 5.316-2.415 5.316-5.365s-2.392-5.364-5.316-5.364c-2.923 0-5.315 2.413-5.315 5.364 0 2.95 2.34 5.364 5.262 5.364z"})),c||(c=y.createElement("path",{fill:"none",d:"M52.035 249.173h6.006l-6.644 26.82h81.483v5.364H44.062Zm-34.071 42.912h253.111c.213 0 .426 0 .638-.053l34.55-4.345-5.773 20.49H17.964Z"})),s||(s=y.createElement("path",{fill:"none",d:"m300.49 308.178-1.51 5.364zM17.964 292.085v16.093H300.49l-1.51 5.364H10.63v-21.457z"})),m||(m=y.createElement("path",{fill:"none",d:"M10.934 302.813v-10.728l131.358.01 131.358.01 15.636-1.955c8.6-1.076 15.786-1.805 15.968-1.621.182.184-1.236 5.887-3.152 12.674l-3.485 12.34H10.934Z"})),p||(p=y.createElement("path",{fill:"#eb9f2e",d:"M11.237 302.813v-10.728l132.573-.01 132.573-.01 12.453-1.519c14.274-1.741 15.793-1.814 15.794-.759 0 .422-1.407 5.939-3.128 12.26l-3.13 11.495H11.238Z"})),d||(d=y.createElement("path",{fill:"none",d:"M44.664 280.591c.009-.253 1.734-7.356 3.834-15.785l3.817-15.326 40.205-.157 40.205-.158v31.886h-44.04c-24.221 0-44.031-.207-44.021-.46zm28.34-11.294c1.408-1.335 1.898-4.63 1.03-6.916-.493-1.295-3.389-2.786-5.41-2.786-2.105 0-5.147 3.07-5.147 5.194 0 1.889 1.463 4.981 2.569 5.43 2.048.832 5.606.36 6.959-.922zm21.261 0c1.407-1.335 1.898-4.63 1.029-6.916-.493-1.295-3.389-2.786-5.41-2.786-2.105 0-5.147 3.07-5.147 5.194 0 1.889 1.463 4.981 2.569 5.43 2.049.832 5.606.36 6.959-.922zm20.992.12c1.898-1.506 2.42-4.01 1.367-6.554-.942-2.274-2.512-3.268-5.167-3.268-2.42 0-5.46 2.891-5.46 5.194 0 1.889 1.463 4.981 2.57 5.43 1.852.752 5.245.346 6.69-.802zm28.401-4.305v-15.938h20.653v31.876h-20.653z"})),u||(u=y.createElement("path",{fill:"#eb9f2e",d:"M175.852 265.112v-15.938h80.135l.6 2.299c.33 1.264 1.993 7.953 3.694 14.865 1.702 6.912 3.237 13.05 3.413 13.64.301 1.015-2.064 1.073-43.761 1.073h-44.08Zm24.73 4.138c1.832-2.02 2.163-3.777 1.165-6.189-1.626-3.926-5.907-4.728-8.933-1.674-1.989 2.007-2.257 4.073-.877 6.765 1.064 2.077 1.647 2.365 4.918 2.429 1.832.036 2.801-.31 3.727-1.33zm21.246 0c1.735-1.934 2.089-3.992 1.098-6.384-1.495-3.61-5.994-4.363-8.852-1.479-1.988 2.007-2.256 4.073-.877 6.765 1.064 2.077 1.647 2.365 4.918 2.429 1.836.036 2.796-.308 3.713-1.33zm21.259.047c1.038-.985 1.406-2.009 1.406-3.917 0-3.434-1.442-5.155-4.685-5.594-2.255-.305-2.757-.131-4.397 1.524-2.067 2.086-2.35 4.117-.954 6.842 1.06 2.067 1.651 2.365 4.833 2.429 1.666.034 2.817-.356 3.797-1.284zm-99.429-4.185v-15.938h20.653v31.876h-20.653zm-78.814 15.479c-10.775-.094-19.59-.408-19.59-.699 0-.797 7.103-29.51 7.366-29.774.125-.127 18.2-.322 40.166-.434l39.939-.204v31.571l-24.146-.145c-13.28-.079-32.961-.22-43.735-.315Zm7.764-10.585c1.609-.87 2.585-4.818 1.772-7.171-1.21-3.501-6.312-4.384-9.2-1.593-1.966 1.902-2.253 4.697-.776 7.579.84 1.64 1.212 1.808 3.988 1.808 1.684 0 3.58-.28 4.216-.623zm21.26 0c1.61-.87 2.585-4.818 1.772-7.171-1.21-3.501-6.312-4.384-9.2-1.593-1.966 1.902-2.253 4.697-.776 7.579.84 1.64 1.212 1.808 3.988 1.808 1.684 0 3.581-.28 4.216-.623zm21.833-.587c1.661-1.676 2.08-3.852 1.24-6.424-.847-2.588-2.125-3.4-5.354-3.4-4.654 0-7.006 4.654-4.663 9.226.855 1.668 1.184 1.808 4.252 1.808 2.501 0 3.623-.3 4.525-1.21z"})))};var ie=function(){for(var e,t,n,r=(e=(0,y.useState)({width:globalThis.innerWidth,height:globalThis.innerHeight}),t=e[0],n=e[1],(0,y.useEffect)((function(){var e=function(){n({width:window.innerWidth,height:window.innerHeight})};return window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}}),[]),t).width/16,a=[],i=0;i{r.d(t,{Zo:()=>c,kt:()=>d});var n=r(9901);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function p(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var i=n.createContext({}),u=function(e){var t=n.useContext(i),r=t;return e&&(r="function"==typeof e?e(t):p(p({},t),e)),r},c=function(e){var t=u(e.components);return n.createElement(i.Provider,{value:t},e.children)},s="mdxType",m={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},f=n.forwardRef((function(e,t){var r=e.components,o=e.mdxType,a=e.originalType,i=e.parentName,c=l(e,["components","mdxType","originalType","parentName"]),s=u(r),f=o,d=s["".concat(i,".").concat(f)]||s[f]||m[f]||a;return r?n.createElement(d,p(p({ref:t},c),{},{components:r})):n.createElement(d,p({ref:t},c))}));function d(e,t){var r=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var a=r.length,p=new Array(a);p[0]=f;var l={};for(var i in t)hasOwnProperty.call(t,i)&&(l[i]=t[i]);l.originalType=e,l[s]="string"==typeof e?e:o,p[1]=l;for(var u=2;u{r.r(t),r.d(t,{assets:()=>c,contentTitle:()=>i,default:()=>d,frontMatter:()=>l,metadata:()=>u,toc:()=>s});var n=r(3341),o=r(1792),a=(r(9901),r(7522)),p=["components"],l={hide_table_of_contents:!0},i="morph",u={unversionedId:"api/morph",id:"version-1.0.20-alpha/api/morph",title:"morph",description:"operator",source:"@site/versioned_docs/version-1.0.20-alpha/api/morph.md",sourceDirName:"api",slug:"/api/morph",permalink:"/docs/1.0.20-alpha/api/morph",draft:!1,tags:[],version:"1.0.20-alpha",frontMatter:{hide_table_of_contents:!0}},c={},s=[{value:"operator",id:"operator",level:2},{value:"tuple",id:"tuple",level:2},{value:"helper",id:"helper",level:2}],m={toc:s},f="wrapper";function d(e){var t=e.components,r=(0,o.Z)(e,p);return(0,a.kt)(f,(0,n.Z)({},m,r,{components:t,mdxType:"MDXLayout"}),(0,a.kt)("h1",{id:"morph"},"morph"),(0,a.kt)("h2",{id:"operator"},"operator"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},(0,a.kt)("a",{parentName:"li",href:"/docs/1.0.20-alpha/api/morph"},"|",">"))),(0,a.kt)("h2",{id:"tuple"},"tuple"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},'[inputType, "',"|",'>", (data) => output]'," ",(0,a.kt)("br",null)),(0,a.kt)("li",{parentName:"ul"},"const tupleMorph = type( ",'["string", "',"|",'>" , (data) => ',"`","morphed ${data}","`]",")",(0,a.kt)("br",null))),(0,a.kt)("h2",{id:"helper"},"helper"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},"morph(inputType, (data) => output) ",(0,a.kt)("br",null)),(0,a.kt)("li",{parentName:"ul"},'const helperMorph = morph("string", (data) => ',"`","morphed ${data}","`",")",(0,a.kt)("br",null))))}d.isMDXComponent=!0}}]); \ No newline at end of file +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[2048],{7522:(e,t,r)=>{r.d(t,{Zo:()=>c,kt:()=>d});var n=r(9901);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function p(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var i=n.createContext({}),u=function(e){var t=n.useContext(i),r=t;return e&&(r="function"==typeof e?e(t):p(p({},t),e)),r},c=function(e){var t=u(e.components);return n.createElement(i.Provider,{value:t},e.children)},s="mdxType",m={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},f=n.forwardRef((function(e,t){var r=e.components,o=e.mdxType,a=e.originalType,i=e.parentName,c=l(e,["components","mdxType","originalType","parentName"]),s=u(r),f=o,d=s["".concat(i,".").concat(f)]||s[f]||m[f]||a;return r?n.createElement(d,p(p({ref:t},c),{},{components:r})):n.createElement(d,p({ref:t},c))}));function d(e,t){var r=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var a=r.length,p=new Array(a);p[0]=f;var l={};for(var i in t)hasOwnProperty.call(t,i)&&(l[i]=t[i]);l.originalType=e,l[s]="string"==typeof e?e:o,p[1]=l;for(var u=2;u{r.r(t),r.d(t,{assets:()=>c,contentTitle:()=>i,default:()=>d,frontMatter:()=>l,metadata:()=>u,toc:()=>s});var n=r(4805),o=r(8),a=(r(9901),r(7522)),p=["components"],l={hide_table_of_contents:!0},i="morph",u={unversionedId:"api/morph",id:"version-1.0.20-alpha/api/morph",title:"morph",description:"operator",source:"@site/versioned_docs/version-1.0.20-alpha/api/morph.md",sourceDirName:"api",slug:"/api/morph",permalink:"/docs/1.0.20-alpha/api/morph",draft:!1,tags:[],version:"1.0.20-alpha",frontMatter:{hide_table_of_contents:!0}},c={},s=[{value:"operator",id:"operator",level:2},{value:"tuple",id:"tuple",level:2},{value:"helper",id:"helper",level:2}],m={toc:s},f="wrapper";function d(e){var t=e.components,r=(0,o.Z)(e,p);return(0,a.kt)(f,(0,n.Z)({},m,r,{components:t,mdxType:"MDXLayout"}),(0,a.kt)("h1",{id:"morph"},"morph"),(0,a.kt)("h2",{id:"operator"},"operator"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},(0,a.kt)("a",{parentName:"li",href:"/docs/1.0.20-alpha/api/morph"},"|",">"))),(0,a.kt)("h2",{id:"tuple"},"tuple"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},'[inputType, "',"|",'>", (data) => output]'," ",(0,a.kt)("br",null)),(0,a.kt)("li",{parentName:"ul"},"const tupleMorph = type( ",'["string", "',"|",'>" , (data) => ',"`","morphed ${data}","`]",")",(0,a.kt)("br",null))),(0,a.kt)("h2",{id:"helper"},"helper"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},"morph(inputType, (data) => output) ",(0,a.kt)("br",null)),(0,a.kt)("li",{parentName:"ul"},'const helperMorph = morph("string", (data) => ',"`","morphed ${data}","`",")",(0,a.kt)("br",null))))}d.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/20bbe3a4.b7261fe3.js b/assets/js/20bbe3a4.b5b666c2.js similarity index 80% rename from assets/js/20bbe3a4.b7261fe3.js rename to assets/js/20bbe3a4.b5b666c2.js index bbfb1fb681..19db130164 100644 --- a/assets/js/20bbe3a4.b7261fe3.js +++ b/assets/js/20bbe3a4.b5b666c2.js @@ -1 +1 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[215],{7522:(e,n,t)=>{t.d(n,{Zo:()=>c,kt:()=>f});var r=t(9901);function a(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function o(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function i(e){for(var n=1;n=0||(a[t]=e[t]);return a}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}var p=r.createContext({}),l=function(e){var n=r.useContext(p),t=n;return e&&(t="function"==typeof e?e(n):i(i({},n),e)),t},c=function(e){var n=l(e.components);return r.createElement(p.Provider,{value:n},e.children)},d="mdxType",m={inlineCode:"code",wrapper:function(e){var n=e.children;return r.createElement(r.Fragment,{},n)}},u=r.forwardRef((function(e,n){var t=e.components,a=e.mdxType,o=e.originalType,p=e.parentName,c=s(e,["components","mdxType","originalType","parentName"]),d=l(t),u=a,f=d["".concat(p,".").concat(u)]||d[u]||m[u]||o;return t?r.createElement(f,i(i({ref:n},c),{},{components:t})):r.createElement(f,i({ref:n},c))}));function f(e,n){var t=arguments,a=n&&n.mdxType;if("string"==typeof e||a){var o=t.length,i=new Array(o);i[0]=u;var s={};for(var p in n)hasOwnProperty.call(n,p)&&(s[p]=n[p]);s.originalType=e,s[d]="string"==typeof e?e:a,i[1]=s;for(var l=2;l{t.d(n,{g:()=>y});var r=t(2378),a=t(3223),o=t(3800),i=t(966),s=t(9901),p=t(3346);var l=function(e){var n=c[e];return'import {populateDemo} from "./populateDemo"\n(async () => {\n try {\n '+n[0]+"\n populateDemo("+n[1]+')\n } catch(e) {\n populateDemo({ \n type: {\n definition: ""\n },\n data: "",\n problems: "ParseError: " + e.originalErr.message\n } as any)\n }\n})()'},c={type:['const { user, data, problems } = await import("./type")',"{ type: user, data, problems }"],scope:['const { types, data, problems } = await import("./scope")',"{ type: types.package, data, problems }"],demo:['const { pkg, data, problems } = await import("./demo")',"{ type: pkg, data, problems }"]};var d={"index.html":'\n \n\n
\n
\n
\n

Definition

\n
\n
\n
\n
\n
\n

Output

\n
\n
\n
\n
\n',"demo.css":'body {\n font-family: "Cascadia Code", sans-serif;\n background-color: hsl(220 18% 10%);\n}\n\n#demo {\n display: flex;\n flex-direction: column;\n gap: 1rem;\n margin: -0.5rem;\n padding: 0.5rem;\n}\n\n#input {\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n gap: 0.5rem;\n}\n\n.section {\n display: flex;\n flex-direction: column;\n flex-grow: 1;\n gap: 0.5rem;\n}\n\np {\n white-space: pre-wrap;\n}\n\npre {\n white-space: pre-wrap;\n}\n\nh3 {\n margin: 0px;\n color: #fffff0;\n}\n\n.key {\n color: #80cff8;\n}\n.val {\n color: #f5cf8f;\n}\n.operator {\n color: #eb9f2e;\n}\n.bracket {\n color: #009eff;\n}\n.card {\n padding: 1rem;\n background-color: rgb(18, 18, 18);\n color: rgb(255, 255, 255);\n /* transition: box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms; */\n border-radius: 1rem;\n box-shadow: rgba(0, 0, 0, 0.2) 0px 2px 1px -1px,\n rgba(0, 0, 0, 0.14) 0px 1px 1px 0px, rgba(0, 0, 0, 0.12) 0px 1px 3px 0px;\n background-image: linear-gradient(\n rgba(255, 255, 255, 0.05),\n rgba(255, 255, 255, 0.05)\n );\n height: 100%;\n}\n',"populateDemo.ts":'import "./demo.css"\nimport type { Problems, Type } from "arktype"\nimport { stringify } from "arktype/internal/utils/serialize.js"\n\ntype PopulateDemoArgs = {\n type: Type\n data: unknown\n problems: Problems\n}\nexport const populateDemo = ({ data, type, problems }: PopulateDemoArgs) => {\n const defElement = document.querySelector("#definition")!\n defElement.textContent = stringify(type.definition, 2)\n defElement.innerHTML = recolor(defElement.innerHTML)\n\n const resultElement = document.querySelector("#output")!\n if (problems) {\n resultElement.textContent = `\u274c problems:\n\n${problems}`\n } else {\n resultElement.textContent = `\u2705 data:\n\n${stringify(data, 2)}`\n resultElement.innerHTML = recolor(resultElement.innerHTML)\n }\n}\n\nconst recolor = (input: string) => {\n const lines = input.split("\\n")\n const fixedInput: string[] = [""]\n for (const line of lines) {\n if (line.includes(":")) {\n const parts = line.split(":")\n fixedInput.push(`${buildKey(parts[0])}: ${buildVal(parts[1])}`)\n } else {\n fixedInput.push(addArkdarkStyles(line))\n }\n }\n fixedInput.push("")\n return fixedInput.join("\\n")\n}\n\nconst buildKey = (key: string) => {\n return `${key}`\n}\nconst buildVal = (val: string) => {\n const formatted = addArkdarkStyles(val.trim())\n if (formatted[formatted.length - 1] === ",") {\n return `${formatted.replace(",", "")},`\n } else if (formatted[formatted.length - 1] === "{") {\n return "{"\n }\n return `${formatted}`\n}\nconst addArkdarkStyles = (line: string) => {\n const brackets = ["[", "]", "(", ")"]\n const operators = [">", "<", ">e;", "<e;", "|"]\n let modifiedLine = line\n for (const bracket of brackets) {\n modifiedLine = modifiedLine.replaceAll(\n bracket,\n `${bracket}`\n )\n }\n for (const operator of operators) {\n modifiedLine = modifiedLine.replaceAll(\n operator,\n `${operator}`\n )\n }\n return modifiedLine\n}\n',"tsconfig.json":JSON.stringify({compilerOptions:{module:"esnext",target:"esnext",strict:!0}},null,4)},m={type:'import { type } from "arktype"\n\n// Definitions are statically parsed and inferred as TS.\nexport const user = type({\n name: "string",\n device: {\n platform: "\'android\'|\'ios\'",\n "version?": "number"\n }\n})\n\n// Validators return typed data or clear, customizable errors.\nexport const { data, problems } = user({\n name: "Alan Turing",\n device: {\n // problems.summary: "device/platform must be \'android\' or \'ios\' (was \'enigma\')"\n platform: "enigma"\n }\n})\n',scope:'import { scope } from "arktype"\n\n// Scopes are collections of types that can reference each other.\nexport const types = scope({\n package: {\n name: "string",\n "dependencies?": "package[]",\n "contributors?": "contributor[]"\n },\n contributor: {\n // Subtypes like \'email\' are inferred like \'string\' but provide additional validation at runtime.\n email: "email",\n "packages?": "package[]"\n }\n}).compile()\n\n// Cyclic types are inferred to arbitrary depth...\nexport type Package = typeof types.package.infer\n\n// And can validate cyclic data.\nconst packageData: Package = {\n name: "arktype",\n dependencies: [{ name: "typescript" }],\n contributors: [{ email: "david@sharktypeio" }]\n}\npackageData.dependencies![0].dependencies = [packageData]\n\nexport const { data, problems } = types.package(packageData)\n',demo:'import { type } from "arktype"\n\n// Define your type...\nexport const pkg = type({\n name: "string",\n version: "semver",\n "contributors?": "1{t.r(n),t.d(n,{assets:()=>d,contentTitle:()=>l,default:()=>y,frontMatter:()=>p,metadata:()=>c,toc:()=>m});var r=t(3341),a=t(1792),o=(t(9901),t(7522)),i=t(8172),s=["components"],p={id:"intro",hide_table_of_contents:!0,title:"Intro"},l="Getting Started",c={unversionedId:"intro",id:"version-1.0.22-alpha/intro",title:"Intro",description:'replace(./dev/arktype.io/static,) |> replace({ type },{"{"} type {"}"}) --\x3e',source:"@site/versioned_docs/version-1.0.22-alpha/index.mdx",sourceDirName:".",slug:"/",permalink:"/docs/",draft:!1,tags:[],version:"1.0.22-alpha",frontMatter:{id:"intro",hide_table_of_contents:!0,title:"Intro"},sidebar:"sidebar",next:{title:"Scopes",permalink:"/docs/scopes"}},d={},m=[{value:"Install \ud83d\udce612KB gzipped, 0 dependencies",id:"install-12kb-gzipped-0-dependencies",level:2},{value:"Your first type",id:"your-first-type",level:2}],u={toc:m},f="wrapper";function y(e){var n=e.components,t=(0,a.Z)(e,s);return(0,o.kt)(f,(0,r.Z)({},u,t,{components:n,mdxType:"MDXLayout"}),(0,o.kt)("h1",{id:"getting-started"},"Getting Started"),(0,o.kt)("h2",{id:"install-12kb-gzipped-0-dependencies"},"Install ",(0,o.kt)("sub",null,(0,o.kt)("sub",null,"\ud83d\udce6",(0,o.kt)("inlineCode",{parentName:"h2"},"12KB")," gzipped, ",(0,o.kt)("inlineCode",{parentName:"h2"},"0")," dependencies"))),(0,o.kt)("img",{src:"/img/npm.svg",alt:"Npm Icon",height:"16px"})," ",(0,o.kt)("code",null,"npm install arktype"),(0,o.kt)("sub",null,"(or whatever package manager you prefer)"),(0,o.kt)("br",null),(0,o.kt)("p",null,"Our types are tested in ",(0,o.kt)("a",{parentName:"p",href:"https://www.typescriptlang.org/tsconfig#strict"},"strict-mode")," with TypeScript versions ",(0,o.kt)("inlineCode",{parentName:"p"},"4.8"),", ",(0,o.kt)("inlineCode",{parentName:"p"},"4.9"),", and ",(0,o.kt)("inlineCode",{parentName:"p"},"5.0"),"."),(0,o.kt)("p",null,(0,o.kt)("em",{parentName:"p"},"Our APIs have mostly stabilized, but details may still change during the alpha/beta stages of our 1.0 release. If you have suggestions that may require a breaking change, now is the time to let us know!")," \u26f5"),(0,o.kt)("h2",{id:"your-first-type"},"Your first type"),(0,o.kt)(i.g,{embedId:"type",mdxType:"StackBlitzDemo"}))}y.isMDXComponent=!0}}]); \ No newline at end of file +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[215],{7522:(e,n,t)=>{t.d(n,{Zo:()=>c,kt:()=>f});var r=t(9901);function a(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function o(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function i(e){for(var n=1;n=0||(a[t]=e[t]);return a}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}var p=r.createContext({}),l=function(e){var n=r.useContext(p),t=n;return e&&(t="function"==typeof e?e(n):i(i({},n),e)),t},c=function(e){var n=l(e.components);return r.createElement(p.Provider,{value:n},e.children)},d="mdxType",m={inlineCode:"code",wrapper:function(e){var n=e.children;return r.createElement(r.Fragment,{},n)}},u=r.forwardRef((function(e,n){var t=e.components,a=e.mdxType,o=e.originalType,p=e.parentName,c=s(e,["components","mdxType","originalType","parentName"]),d=l(t),u=a,f=d["".concat(p,".").concat(u)]||d[u]||m[u]||o;return t?r.createElement(f,i(i({ref:n},c),{},{components:t})):r.createElement(f,i({ref:n},c))}));function f(e,n){var t=arguments,a=n&&n.mdxType;if("string"==typeof e||a){var o=t.length,i=new Array(o);i[0]=u;var s={};for(var p in n)hasOwnProperty.call(n,p)&&(s[p]=n[p]);s.originalType=e,s[d]="string"==typeof e?e:a,i[1]=s;for(var l=2;l{t.d(n,{g:()=>y});var r=t(6632),a=t(2786),o=t(3800),i=t(966),s=t(9901),p=t(3346);var l=function(e){var n=c[e];return'import {populateDemo} from "./populateDemo"\n(async () => {\n try {\n '+n[0]+"\n populateDemo("+n[1]+')\n } catch(e) {\n populateDemo({ \n type: {\n definition: ""\n },\n data: "",\n problems: "ParseError: " + e.originalErr.message\n } as any)\n }\n})()'},c={type:['const { user, data, problems } = await import("./type")',"{ type: user, data, problems }"],scope:['const { types, data, problems } = await import("./scope")',"{ type: types.package, data, problems }"],demo:['const { pkg, data, problems } = await import("./demo")',"{ type: pkg, data, problems }"]};var d={"index.html":'\n \n\n
\n
\n
\n

Definition

\n
\n
\n
\n
\n
\n

Output

\n
\n
\n
\n
\n',"demo.css":'body {\n font-family: "Cascadia Code", sans-serif;\n background-color: hsl(220 18% 10%);\n}\n\n#demo {\n display: flex;\n flex-direction: column;\n gap: 1rem;\n margin: -0.5rem;\n padding: 0.5rem;\n}\n\n#input {\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n gap: 0.5rem;\n}\n\n.section {\n display: flex;\n flex-direction: column;\n flex-grow: 1;\n gap: 0.5rem;\n}\n\np {\n white-space: pre-wrap;\n}\n\npre {\n white-space: pre-wrap;\n}\n\nh3 {\n margin: 0px;\n color: #fffff0;\n}\n\n.key {\n color: #80cff8;\n}\n.val {\n color: #f5cf8f;\n}\n.operator {\n color: #eb9f2e;\n}\n.bracket {\n color: #009eff;\n}\n.card {\n padding: 1rem;\n background-color: rgb(18, 18, 18);\n color: rgb(255, 255, 255);\n /* transition: box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms; */\n border-radius: 1rem;\n box-shadow: rgba(0, 0, 0, 0.2) 0px 2px 1px -1px,\n rgba(0, 0, 0, 0.14) 0px 1px 1px 0px, rgba(0, 0, 0, 0.12) 0px 1px 3px 0px;\n background-image: linear-gradient(\n rgba(255, 255, 255, 0.05),\n rgba(255, 255, 255, 0.05)\n );\n height: 100%;\n}\n',"populateDemo.ts":'import "./demo.css"\nimport type { Problems, Type } from "arktype"\nimport { stringify } from "arktype/internal/utils/serialize.js"\n\ntype PopulateDemoArgs = {\n type: Type\n data: unknown\n problems: Problems\n}\nexport const populateDemo = ({ data, type, problems }: PopulateDemoArgs) => {\n const defElement = document.querySelector("#definition")!\n defElement.textContent = stringify(type.definition, 2)\n defElement.innerHTML = recolor(defElement.innerHTML)\n\n const resultElement = document.querySelector("#output")!\n if (problems) {\n resultElement.textContent = `\u274c problems:\n\n${problems}`\n } else {\n resultElement.textContent = `\u2705 data:\n\n${stringify(data, 2)}`\n resultElement.innerHTML = recolor(resultElement.innerHTML)\n }\n}\n\nconst recolor = (input: string) => {\n const lines = input.split("\\n")\n const fixedInput: string[] = [""]\n for (const line of lines) {\n if (line.includes(":")) {\n const parts = line.split(":")\n fixedInput.push(`${buildKey(parts[0])}: ${buildVal(parts[1])}`)\n } else {\n fixedInput.push(addArkdarkStyles(line))\n }\n }\n fixedInput.push("")\n return fixedInput.join("\\n")\n}\n\nconst buildKey = (key: string) => {\n return `${key}`\n}\nconst buildVal = (val: string) => {\n const formatted = addArkdarkStyles(val.trim())\n if (formatted[formatted.length - 1] === ",") {\n return `${formatted.replace(",", "")},`\n } else if (formatted[formatted.length - 1] === "{") {\n return "{"\n }\n return `${formatted}`\n}\nconst addArkdarkStyles = (line: string) => {\n const brackets = ["[", "]", "(", ")"]\n const operators = [">", "<", ">e;", "<e;", "|"]\n let modifiedLine = line\n for (const bracket of brackets) {\n modifiedLine = modifiedLine.replaceAll(\n bracket,\n `${bracket}`\n )\n }\n for (const operator of operators) {\n modifiedLine = modifiedLine.replaceAll(\n operator,\n `${operator}`\n )\n }\n return modifiedLine\n}\n',"tsconfig.json":JSON.stringify({compilerOptions:{module:"esnext",target:"esnext",strict:!0}},null,4)},m={type:'import { type } from "arktype"\n\n// Definitions are statically parsed and inferred as TS.\nexport const user = type({\n name: "string",\n device: {\n platform: "\'android\'|\'ios\'",\n "version?": "number"\n }\n})\n\n// Validators return typed data or clear, customizable errors.\nexport const { data, problems } = user({\n name: "Alan Turing",\n device: {\n // problems.summary: "device/platform must be \'android\' or \'ios\' (was \'enigma\')"\n platform: "enigma"\n }\n})\n',scope:'import { scope } from "arktype"\n\n// Scopes are collections of types that can reference each other.\nexport const types = scope({\n package: {\n name: "string",\n "dependencies?": "package[]",\n "contributors?": "contributor[]"\n },\n contributor: {\n // Subtypes like \'email\' are inferred like \'string\' but provide additional validation at runtime.\n email: "email",\n "packages?": "package[]"\n }\n}).compile()\n\n// Cyclic types are inferred to arbitrary depth...\nexport type Package = typeof types.package.infer\n\n// And can validate cyclic data.\nconst packageData: Package = {\n name: "arktype",\n dependencies: [{ name: "typescript" }],\n contributors: [{ email: "david@sharktypeio" }]\n}\npackageData.dependencies![0].dependencies = [packageData]\n\nexport const { data, problems } = types.package(packageData)\n',demo:'import { type } from "arktype"\n\n// Define your type...\nexport const pkg = type({\n name: "string",\n version: "semver",\n "contributors?": "1{t.r(n),t.d(n,{assets:()=>d,contentTitle:()=>l,default:()=>y,frontMatter:()=>p,metadata:()=>c,toc:()=>m});var r=t(4805),a=t(8),o=(t(9901),t(7522)),i=t(8518),s=["components"],p={id:"intro",hide_table_of_contents:!0,title:"Intro"},l="Getting Started",c={unversionedId:"intro",id:"version-1.0.22-alpha/intro",title:"Intro",description:'replace(./dev/arktype.io/static,) |> replace({ type },{"{"} type {"}"}) --\x3e',source:"@site/versioned_docs/version-1.0.22-alpha/index.mdx",sourceDirName:".",slug:"/",permalink:"/docs/",draft:!1,tags:[],version:"1.0.22-alpha",frontMatter:{id:"intro",hide_table_of_contents:!0,title:"Intro"},sidebar:"sidebar",next:{title:"Scopes",permalink:"/docs/scopes"}},d={},m=[{value:"Install \ud83d\udce612KB gzipped, 0 dependencies",id:"install-12kb-gzipped-0-dependencies",level:2},{value:"Your first type",id:"your-first-type",level:2}],u={toc:m},f="wrapper";function y(e){var n=e.components,t=(0,a.Z)(e,s);return(0,o.kt)(f,(0,r.Z)({},u,t,{components:n,mdxType:"MDXLayout"}),(0,o.kt)("h1",{id:"getting-started"},"Getting Started"),(0,o.kt)("h2",{id:"install-12kb-gzipped-0-dependencies"},"Install ",(0,o.kt)("sub",null,(0,o.kt)("sub",null,"\ud83d\udce6",(0,o.kt)("inlineCode",{parentName:"h2"},"12KB")," gzipped, ",(0,o.kt)("inlineCode",{parentName:"h2"},"0")," dependencies"))),(0,o.kt)("img",{src:"/img/npm.svg",alt:"Npm Icon",height:"16px"})," ",(0,o.kt)("code",null,"npm install arktype"),(0,o.kt)("sub",null,"(or whatever package manager you prefer)"),(0,o.kt)("br",null),(0,o.kt)("p",null,"Our types are tested in ",(0,o.kt)("a",{parentName:"p",href:"https://www.typescriptlang.org/tsconfig#strict"},"strict-mode")," with TypeScript versions ",(0,o.kt)("inlineCode",{parentName:"p"},"4.8"),", ",(0,o.kt)("inlineCode",{parentName:"p"},"4.9"),", and ",(0,o.kt)("inlineCode",{parentName:"p"},"5.0"),"."),(0,o.kt)("p",null,(0,o.kt)("em",{parentName:"p"},"Our APIs have mostly stabilized, but details may still change during the alpha/beta stages of our 1.0 release. If you have suggestions that may require a breaking change, now is the time to let us know!")," \u26f5"),(0,o.kt)("h2",{id:"your-first-type"},"Your first type"),(0,o.kt)(i.g,{embedId:"type",mdxType:"StackBlitzDemo"}))}y.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/210bc92c.7b6d65ff.js b/assets/js/210bc92c.73c3fd22.js similarity index 63% rename from assets/js/210bc92c.7b6d65ff.js rename to assets/js/210bc92c.73c3fd22.js index 56453ea45b..691707988b 100644 --- a/assets/js/210bc92c.7b6d65ff.js +++ b/assets/js/210bc92c.73c3fd22.js @@ -1 +1 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[9910],{7522:(e,t,r)=>{r.d(t,{Zo:()=>u,kt:()=>d});var n=r(9901);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function p(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var l=n.createContext({}),c=function(e){var t=n.useContext(l),r=t;return e&&(r="function"==typeof e?e(t):p(p({},t),e)),r},u=function(e){var t=c(e.components);return n.createElement(l.Provider,{value:t},e.children)},s="mdxType",f={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},y=n.forwardRef((function(e,t){var r=e.components,o=e.mdxType,a=e.originalType,l=e.parentName,u=i(e,["components","mdxType","originalType","parentName"]),s=c(r),y=o,d=s["".concat(l,".").concat(y)]||s[y]||f[y]||a;return r?n.createElement(d,p(p({ref:t},u),{},{components:r})):n.createElement(d,p({ref:t},u))}));function d(e,t){var r=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var a=r.length,p=new Array(a);p[0]=y;var i={};for(var l in t)hasOwnProperty.call(t,l)&&(i[l]=t[l]);i.originalType=e,i[s]="string"==typeof e?e:o,p[1]=i;for(var c=2;c{r.r(t),r.d(t,{assets:()=>u,contentTitle:()=>l,default:()=>d,frontMatter:()=>i,metadata:()=>c,toc:()=>s});var n=r(3341),o=r(1792),a=(r(9901),r(7522)),p=["components"],i={hide_table_of_contents:!0},l="parseConfigTuple",c={unversionedId:"api/parseconfigtuple",id:"version-1.0.22-alpha/api/parseconfigtuple",title:"parseConfigTuple",description:"operator",source:"@site/versioned_docs/version-1.0.22-alpha/api/parseconfigtuple.md",sourceDirName:"api",slug:"/api/parseconfigtuple",permalink:"/docs/api/parseconfigtuple",draft:!1,tags:[],version:"1.0.22-alpha",frontMatter:{hide_table_of_contents:!0}},u={},s=[{value:"operator",id:"operator",level:2},{value:"tuple",id:"tuple",level:2}],f={toc:s},y="wrapper";function d(e){var t=e.components,r=(0,o.Z)(e,p);return(0,a.kt)(y,(0,n.Z)({},f,r,{components:t,mdxType:"MDXLayout"}),(0,a.kt)("h1",{id:"parseconfigtuple"},"parseConfigTuple"),(0,a.kt)("h2",{id:"operator"},"operator"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},(0,a.kt)("a",{parentName:"li",href:"/docs/api/parseconfigtuple"},":"))),(0,a.kt)("h2",{id:"tuple"},"tuple"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},'["type", ":", config]')))}d.isMDXComponent=!0}}]); \ No newline at end of file +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[9910],{7522:(e,t,r)=>{r.d(t,{Zo:()=>u,kt:()=>d});var n=r(9901);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function p(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var l=n.createContext({}),c=function(e){var t=n.useContext(l),r=t;return e&&(r="function"==typeof e?e(t):p(p({},t),e)),r},u=function(e){var t=c(e.components);return n.createElement(l.Provider,{value:t},e.children)},s="mdxType",f={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},y=n.forwardRef((function(e,t){var r=e.components,o=e.mdxType,a=e.originalType,l=e.parentName,u=i(e,["components","mdxType","originalType","parentName"]),s=c(r),y=o,d=s["".concat(l,".").concat(y)]||s[y]||f[y]||a;return r?n.createElement(d,p(p({ref:t},u),{},{components:r})):n.createElement(d,p({ref:t},u))}));function d(e,t){var r=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var a=r.length,p=new Array(a);p[0]=y;var i={};for(var l in t)hasOwnProperty.call(t,l)&&(i[l]=t[l]);i.originalType=e,i[s]="string"==typeof e?e:o,p[1]=i;for(var c=2;c{r.r(t),r.d(t,{assets:()=>u,contentTitle:()=>l,default:()=>d,frontMatter:()=>i,metadata:()=>c,toc:()=>s});var n=r(4805),o=r(8),a=(r(9901),r(7522)),p=["components"],i={hide_table_of_contents:!0},l="parseConfigTuple",c={unversionedId:"api/parseconfigtuple",id:"version-1.0.22-alpha/api/parseconfigtuple",title:"parseConfigTuple",description:"operator",source:"@site/versioned_docs/version-1.0.22-alpha/api/parseconfigtuple.md",sourceDirName:"api",slug:"/api/parseconfigtuple",permalink:"/docs/api/parseconfigtuple",draft:!1,tags:[],version:"1.0.22-alpha",frontMatter:{hide_table_of_contents:!0}},u={},s=[{value:"operator",id:"operator",level:2},{value:"tuple",id:"tuple",level:2}],f={toc:s},y="wrapper";function d(e){var t=e.components,r=(0,o.Z)(e,p);return(0,a.kt)(y,(0,n.Z)({},f,r,{components:t,mdxType:"MDXLayout"}),(0,a.kt)("h1",{id:"parseconfigtuple"},"parseConfigTuple"),(0,a.kt)("h2",{id:"operator"},"operator"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},(0,a.kt)("a",{parentName:"li",href:"/docs/api/parseconfigtuple"},":"))),(0,a.kt)("h2",{id:"tuple"},"tuple"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},'["type", ":", config]')))}d.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/2461ffa2.84820cd1.js b/assets/js/2461ffa2.66ef5939.js similarity index 55% rename from assets/js/2461ffa2.84820cd1.js rename to assets/js/2461ffa2.66ef5939.js index 6f3135f2ae..556fe4eac9 100644 --- a/assets/js/2461ffa2.84820cd1.js +++ b/assets/js/2461ffa2.66ef5939.js @@ -1 +1 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[7600],{7522:(e,t,r)=>{r.d(t,{Zo:()=>u,kt:()=>d});var n=r(9901);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var s=n.createContext({}),c=function(e){var t=n.useContext(s),r=t;return e&&(r="function"==typeof e?e(t):i(i({},t),e)),r},u=function(e){var t=c(e.components);return n.createElement(s.Provider,{value:t},e.children)},l="mdxType",f={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},y=n.forwardRef((function(e,t){var r=e.components,o=e.mdxType,a=e.originalType,s=e.parentName,u=p(e,["components","mdxType","originalType","parentName"]),l=c(r),y=o,d=l["".concat(s,".").concat(y)]||l[y]||f[y]||a;return r?n.createElement(d,i(i({ref:t},u),{},{components:r})):n.createElement(d,i({ref:t},u))}));function d(e,t){var r=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var a=r.length,i=new Array(a);i[0]=y;var p={};for(var s in t)hasOwnProperty.call(t,s)&&(p[s]=t[s]);p.originalType=e,p[l]="string"==typeof e?e:o,i[1]=p;for(var c=2;c{r.r(t),r.d(t,{assets:()=>u,contentTitle:()=>s,default:()=>d,frontMatter:()=>p,metadata:()=>c,toc:()=>l});var n=r(3341),o=r(1792),a=(r(9901),r(7522)),i=["components"],p={id:"api",hide_table_of_contents:!0,title:"API"},s="API",c={unversionedId:"api",id:"api",title:"API",description:"replace(./dev/test,https://github.com/arktypeio/arktype/tree/main/dev/test) --\x3e",source:"@site/docs/api.mdx",sourceDirName:".",slug:"/api",permalink:"/docs/next/api",draft:!1,tags:[],version:"current",frontMatter:{id:"api",hide_table_of_contents:!0,title:"API"},sidebar:"sidebar",previous:{title:"Operators",permalink:"/docs/next/api/operators"}},u={},l=[],f={toc:l},y="wrapper";function d(e){var t=e.components,r=(0,o.Z)(e,i);return(0,a.kt)(y,(0,n.Z)({},f,r,{components:t,mdxType:"MDXLayout"}),(0,a.kt)("h1",{id:"api"},"API"),(0,a.kt)("p",null,"ArkType supports many of TypeScript's built-in types and operators, as well as some new ones dedicated exclusively to runtime validation. In fact, we got a little ahead of ourselves and built a ton of cool features, but we're still working on getting caught up syntax and API docs. Keep an eye out for more in the next couple weeks \u26f5"),(0,a.kt)("p",null,"In the meantime, check out the examples here and use the type hints you get to learn how you can customize your types and scopes. If you want to explore some of the more advanced features, take a look at ",(0,a.kt)("a",{parentName:"p",href:"https://github.com/arktypeio/arktype/tree/main/dev/test"},"our unit tests")," or ask us ",(0,a.kt)("a",{parentName:"p",href:"https://discord.gg/xEzdc3fJQC"},"on Discord")," if your functionality is supported. If not, ",(0,a.kt)("a",{parentName:"p",href:"https://github.com/arktypeio/arktype/issues/new"},"create a GitHub issue")," so we can prioritize it!"))}d.isMDXComponent=!0}}]); \ No newline at end of file +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[7600],{7522:(e,t,r)=>{r.d(t,{Zo:()=>u,kt:()=>d});var n=r(9901);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var s=n.createContext({}),c=function(e){var t=n.useContext(s),r=t;return e&&(r="function"==typeof e?e(t):i(i({},t),e)),r},u=function(e){var t=c(e.components);return n.createElement(s.Provider,{value:t},e.children)},l="mdxType",f={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},y=n.forwardRef((function(e,t){var r=e.components,o=e.mdxType,a=e.originalType,s=e.parentName,u=p(e,["components","mdxType","originalType","parentName"]),l=c(r),y=o,d=l["".concat(s,".").concat(y)]||l[y]||f[y]||a;return r?n.createElement(d,i(i({ref:t},u),{},{components:r})):n.createElement(d,i({ref:t},u))}));function d(e,t){var r=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var a=r.length,i=new Array(a);i[0]=y;var p={};for(var s in t)hasOwnProperty.call(t,s)&&(p[s]=t[s]);p.originalType=e,p[l]="string"==typeof e?e:o,i[1]=p;for(var c=2;c{r.r(t),r.d(t,{assets:()=>u,contentTitle:()=>s,default:()=>d,frontMatter:()=>p,metadata:()=>c,toc:()=>l});var n=r(4805),o=r(8),a=(r(9901),r(7522)),i=["components"],p={id:"api",hide_table_of_contents:!0,title:"API"},s="API",c={unversionedId:"api",id:"api",title:"API",description:"replace(./dev/test,https://github.com/arktypeio/arktype/tree/main/dev/test) --\x3e",source:"@site/docs/api.mdx",sourceDirName:".",slug:"/api",permalink:"/docs/next/api",draft:!1,tags:[],version:"current",frontMatter:{id:"api",hide_table_of_contents:!0,title:"API"},sidebar:"sidebar",previous:{title:"Operators",permalink:"/docs/next/api/operators"}},u={},l=[],f={toc:l},y="wrapper";function d(e){var t=e.components,r=(0,o.Z)(e,i);return(0,a.kt)(y,(0,n.Z)({},f,r,{components:t,mdxType:"MDXLayout"}),(0,a.kt)("h1",{id:"api"},"API"),(0,a.kt)("p",null,"ArkType supports many of TypeScript's built-in types and operators, as well as some new ones dedicated exclusively to runtime validation. In fact, we got a little ahead of ourselves and built a ton of cool features, but we're still working on getting caught up syntax and API docs. Keep an eye out for more in the next couple weeks \u26f5"),(0,a.kt)("p",null,"In the meantime, check out the examples here and use the type hints you get to learn how you can customize your types and scopes. If you want to explore some of the more advanced features, take a look at ",(0,a.kt)("a",{parentName:"p",href:"https://github.com/arktypeio/arktype/tree/main/dev/test"},"our unit tests")," or ask us ",(0,a.kt)("a",{parentName:"p",href:"https://discord.gg/xEzdc3fJQC"},"on Discord")," if your functionality is supported. If not, ",(0,a.kt)("a",{parentName:"p",href:"https://github.com/arktypeio/arktype/issues/new"},"create a GitHub issue")," so we can prioritize it!"))}d.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/26c0ba22.16c3acdf.js b/assets/js/26c0ba22.16c3acdf.js deleted file mode 100644 index 1dfb41efa6..0000000000 --- a/assets/js/26c0ba22.16c3acdf.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[6580],{7522:(t,e,n)=>{n.d(e,{Zo:()=>d,kt:()=>k});var r=n(9901);function a(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function l(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function o(t){for(var e=1;e=0||(a[n]=t[n]);return a}(t,e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(a[n]=t[n])}return a}var i=r.createContext({}),c=function(t){var e=r.useContext(i),n=e;return t&&(n="function"==typeof t?t(e):o(o({},e),t)),n},d=function(t){var e=c(t.components);return r.createElement(i.Provider,{value:e},t.children)},u="mdxType",m={inlineCode:"code",wrapper:function(t){var e=t.children;return r.createElement(r.Fragment,{},e)}},s=r.forwardRef((function(t,e){var n=t.components,a=t.mdxType,l=t.originalType,i=t.parentName,d=p(t,["components","mdxType","originalType","parentName"]),u=c(n),s=a,k=u["".concat(i,".").concat(s)]||u[s]||m[s]||l;return n?r.createElement(k,o(o({ref:e},d),{},{components:n})):r.createElement(k,o({ref:e},d))}));function k(t,e){var n=arguments,a=e&&e.mdxType;if("string"==typeof t||a){var l=n.length,o=new Array(l);o[0]=s;var p={};for(var i in e)hasOwnProperty.call(e,i)&&(p[i]=e[i]);p.originalType=t,p[u]="string"==typeof t?t:a,o[1]=p;for(var c=2;c{n.r(e),n.d(e,{assets:()=>d,contentTitle:()=>i,default:()=>k,frontMatter:()=>p,metadata:()=>c,toc:()=>u});var r=n(3341),a=n(1792),l=(n(9901),n(7522)),o=["components"],p={hide_table_of_contents:!0},i="jsObjectsScope",c={unversionedId:"api/jsobjectsscope",id:"version-1.0.22-alpha/api/jsobjectsscope",title:"jsObjectsScope",description:"text",source:"@site/versioned_docs/version-1.0.22-alpha/api/jsobjectsscope.md",sourceDirName:"api",slug:"/api/jsobjectsscope",permalink:"/docs/api/jsobjectsscope",draft:!1,tags:[],version:"1.0.22-alpha",frontMatter:{hide_table_of_contents:!0}},d={},u=[{value:"text",id:"text",level:2}],m={toc:u},s="wrapper";function k(t){var e=t.components,n=(0,a.Z)(t,o);return(0,l.kt)(s,(0,r.Z)({},m,n,{components:e,mdxType:"MDXLayout"}),(0,l.kt)("h1",{id:"jsobjectsscope"},"jsObjectsScope"),(0,l.kt)("h2",{id:"text"},"text"),(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:null},"Name"),(0,l.kt)("th",{parentName:"tr",align:null},"Type"),(0,l.kt)("th",{parentName:"tr",align:null},"Description"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Function"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," (...args: any[]) => unknown")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Date"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," Date")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Error"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," Error")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Map"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," Map")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"RegExp"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," RegExp")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Set"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," Set")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"WeakMap"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," WeakMap")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"WeakSet"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," WeakSet")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Promise"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," Promise")),(0,l.kt)("td",{parentName:"tr",align:null})))))}k.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/26c0ba22.d78e5835.js b/assets/js/26c0ba22.d78e5835.js new file mode 100644 index 0000000000..f1daafe3ba --- /dev/null +++ b/assets/js/26c0ba22.d78e5835.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[6580],{7522:(t,e,n)=>{n.d(e,{Zo:()=>d,kt:()=>k});var r=n(9901);function a(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function l(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function o(t){for(var e=1;e=0||(a[n]=t[n]);return a}(t,e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(a[n]=t[n])}return a}var i=r.createContext({}),c=function(t){var e=r.useContext(i),n=e;return t&&(n="function"==typeof t?t(e):o(o({},e),t)),n},d=function(t){var e=c(t.components);return r.createElement(i.Provider,{value:e},t.children)},u="mdxType",m={inlineCode:"code",wrapper:function(t){var e=t.children;return r.createElement(r.Fragment,{},e)}},s=r.forwardRef((function(t,e){var n=t.components,a=t.mdxType,l=t.originalType,i=t.parentName,d=p(t,["components","mdxType","originalType","parentName"]),u=c(n),s=a,k=u["".concat(i,".").concat(s)]||u[s]||m[s]||l;return n?r.createElement(k,o(o({ref:e},d),{},{components:n})):r.createElement(k,o({ref:e},d))}));function k(t,e){var n=arguments,a=e&&e.mdxType;if("string"==typeof t||a){var l=n.length,o=new Array(l);o[0]=s;var p={};for(var i in e)hasOwnProperty.call(e,i)&&(p[i]=e[i]);p.originalType=t,p[u]="string"==typeof t?t:a,o[1]=p;for(var c=2;c{n.r(e),n.d(e,{assets:()=>d,contentTitle:()=>i,default:()=>k,frontMatter:()=>p,metadata:()=>c,toc:()=>u});var r=n(4805),a=n(8),l=(n(9901),n(7522)),o=["components"],p={hide_table_of_contents:!0},i="jsObjectsScope",c={unversionedId:"api/jsobjectsscope",id:"version-1.0.22-alpha/api/jsobjectsscope",title:"jsObjectsScope",description:"text",source:"@site/versioned_docs/version-1.0.22-alpha/api/jsobjectsscope.md",sourceDirName:"api",slug:"/api/jsobjectsscope",permalink:"/docs/api/jsobjectsscope",draft:!1,tags:[],version:"1.0.22-alpha",frontMatter:{hide_table_of_contents:!0}},d={},u=[{value:"text",id:"text",level:2}],m={toc:u},s="wrapper";function k(t){var e=t.components,n=(0,a.Z)(t,o);return(0,l.kt)(s,(0,r.Z)({},m,n,{components:e,mdxType:"MDXLayout"}),(0,l.kt)("h1",{id:"jsobjectsscope"},"jsObjectsScope"),(0,l.kt)("h2",{id:"text"},"text"),(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:null},"Name"),(0,l.kt)("th",{parentName:"tr",align:null},"Type"),(0,l.kt)("th",{parentName:"tr",align:null},"Description"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Function"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," (...args: any[]) => unknown")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Date"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," Date")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Error"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," Error")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Map"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," Map")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"RegExp"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," RegExp")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Set"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," Set")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"WeakMap"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," WeakMap")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"WeakSet"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," WeakSet")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Promise"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," Promise")),(0,l.kt)("td",{parentName:"tr",align:null})))))}k.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/288a554d.0fffcee6.js b/assets/js/288a554d.0fffcee6.js deleted file mode 100644 index 5c5aa5985f..0000000000 --- a/assets/js/288a554d.0fffcee6.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[4644],{7522:(e,n,t)=>{t.d(n,{Zo:()=>l,kt:()=>m});var r=t(9901);function o(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function s(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function a(e){for(var n=1;n=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var p=r.createContext({}),c=function(e){var n=r.useContext(p),t=n;return e&&(t="function"==typeof e?e(n):a(a({},n),e)),t},l=function(e){var n=c(e.components);return r.createElement(p.Provider,{value:n},e.children)},u="mdxType",d={inlineCode:"code",wrapper:function(e){var n=e.children;return r.createElement(r.Fragment,{},n)}},f=r.forwardRef((function(e,n){var t=e.components,o=e.mdxType,s=e.originalType,p=e.parentName,l=i(e,["components","mdxType","originalType","parentName"]),u=c(t),f=o,m=u["".concat(p,".").concat(f)]||u[f]||d[f]||s;return t?r.createElement(m,a(a({ref:n},l),{},{components:t})):r.createElement(m,a({ref:n},l))}));function m(e,n){var t=arguments,o=n&&n.mdxType;if("string"==typeof e||o){var s=t.length,a=new Array(s);a[0]=f;var i={};for(var p in n)hasOwnProperty.call(n,p)&&(i[p]=n[p]);i.originalType=e,i[u]="string"==typeof e?e:o,a[1]=i;for(var c=2;c{t.r(n),t.d(n,{assets:()=>l,contentTitle:()=>p,default:()=>m,frontMatter:()=>i,metadata:()=>c,toc:()=>u});var r=t(3341),o=t(1792),s=(t(9901),t(7522)),a=["components"],i={hide_table_of_contents:!0},p="scope",c={unversionedId:"api/scope",id:"version-1.0.21-alpha/api/scope",title:"scope",description:"text",source:"@site/versioned_docs/version-1.0.21-alpha/api/scope.md",sourceDirName:"api",slug:"/api/scope",permalink:"/docs/1.0.21-alpha/api/scope",draft:!1,tags:[],version:"1.0.21-alpha",frontMatter:{hide_table_of_contents:!0}},l={},u=[{value:"text",id:"text",level:2},{value:"hide_table_of_contents: true",id:"hide_table_of_contents-true",level:2},{value:"text",id:"text-1",level:2}],d={toc:u},f="wrapper";function m(e){var n=e.components,t=(0,o.Z)(e,a);return(0,s.kt)(f,(0,r.Z)({},d,t,{components:n,mdxType:"MDXLayout"}),(0,s.kt)("h1",{id:"scope"},"scope"),(0,s.kt)("h2",{id:"text"},"text"),(0,s.kt)("pre",null,(0,s.kt)("code",{parentName:"pre",className:"language-ts"},"scope: ScopeParser\n")),(0,s.kt)("hr",null),(0,s.kt)("h2",{id:"hide_table_of_contents-true"},"hide_table_of_contents: true"),(0,s.kt)("h1",{id:"scope-1"},"Scope"),(0,s.kt)("h2",{id:"text-1"},"text"),(0,s.kt)("pre",null,(0,s.kt)("code",{parentName:"pre",className:"language-ts"},'export declare class Scope {\n #private\n aliases: Dict\n name: string\n config: ScopeConfig\n parseCache: FreezingCache\n constructor(aliases: Dict, opts?: ScopeOptions)\n getAnonymousQualifiedName(base: AnonymousTypeName): QualifiedTypeName\n addAnonymousTypeReference(referencedType: Type, ctx: ParseContext): Node\n get infer(): exportsOf\n compile(): Space>\n addParsedReferenceIfResolvable(\n name: name,\n ctx: ParseContext\n ): boolean\n resolve(name: name): Type\n resolveNode(node: Node): ResolvedNode\n resolveTypeNode(node: Node): TypeNode\n expressions: Expressions>\n intersection: import("./expressions.js").BinaryExpressionParser<\n resolutions,\n "&"\n >\n union: import("./expressions.js").BinaryExpressionParser<\n resolutions,\n "|"\n >\n arrayOf: import("./expressions.js").UnaryExpressionParser<\n resolutions,\n "[]"\n >\n keyOf: import("./expressions.js").UnaryExpressionParser<\n resolutions,\n "keyof"\n >\n valueOf: import("./expressions.js").UnvalidatedExpressionParser<\n resolutions,\n "==="\n >\n instanceOf: import("./expressions.js").UnvalidatedExpressionParser<\n resolutions,\n "instanceof"\n >\n narrow: import("./expressions.js").FunctionalExpressionParser<\n resolutions,\n "=>"\n >\n morph: import("./expressions.js").FunctionalExpressionParser<\n resolutions,\n "|>"\n >\n type: TypeParser>\n isResolvable(name: string): unknown\n}\n')))}m.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/288a554d.68106fc4.js b/assets/js/288a554d.68106fc4.js new file mode 100644 index 0000000000..5fc17ff107 --- /dev/null +++ b/assets/js/288a554d.68106fc4.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[4644],{7522:(e,n,t)=>{t.d(n,{Zo:()=>l,kt:()=>m});var r=t(9901);function o(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function s(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function a(e){for(var n=1;n=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var p=r.createContext({}),c=function(e){var n=r.useContext(p),t=n;return e&&(t="function"==typeof e?e(n):a(a({},n),e)),t},l=function(e){var n=c(e.components);return r.createElement(p.Provider,{value:n},e.children)},u="mdxType",d={inlineCode:"code",wrapper:function(e){var n=e.children;return r.createElement(r.Fragment,{},n)}},f=r.forwardRef((function(e,n){var t=e.components,o=e.mdxType,s=e.originalType,p=e.parentName,l=i(e,["components","mdxType","originalType","parentName"]),u=c(t),f=o,m=u["".concat(p,".").concat(f)]||u[f]||d[f]||s;return t?r.createElement(m,a(a({ref:n},l),{},{components:t})):r.createElement(m,a({ref:n},l))}));function m(e,n){var t=arguments,o=n&&n.mdxType;if("string"==typeof e||o){var s=t.length,a=new Array(s);a[0]=f;var i={};for(var p in n)hasOwnProperty.call(n,p)&&(i[p]=n[p]);i.originalType=e,i[u]="string"==typeof e?e:o,a[1]=i;for(var c=2;c{t.r(n),t.d(n,{assets:()=>l,contentTitle:()=>p,default:()=>m,frontMatter:()=>i,metadata:()=>c,toc:()=>u});var r=t(4805),o=t(8),s=(t(9901),t(7522)),a=["components"],i={hide_table_of_contents:!0},p="scope",c={unversionedId:"api/scope",id:"version-1.0.21-alpha/api/scope",title:"scope",description:"text",source:"@site/versioned_docs/version-1.0.21-alpha/api/scope.md",sourceDirName:"api",slug:"/api/scope",permalink:"/docs/1.0.21-alpha/api/scope",draft:!1,tags:[],version:"1.0.21-alpha",frontMatter:{hide_table_of_contents:!0}},l={},u=[{value:"text",id:"text",level:2},{value:"hide_table_of_contents: true",id:"hide_table_of_contents-true",level:2},{value:"text",id:"text-1",level:2}],d={toc:u},f="wrapper";function m(e){var n=e.components,t=(0,o.Z)(e,a);return(0,s.kt)(f,(0,r.Z)({},d,t,{components:n,mdxType:"MDXLayout"}),(0,s.kt)("h1",{id:"scope"},"scope"),(0,s.kt)("h2",{id:"text"},"text"),(0,s.kt)("pre",null,(0,s.kt)("code",{parentName:"pre",className:"language-ts"},"scope: ScopeParser\n")),(0,s.kt)("hr",null),(0,s.kt)("h2",{id:"hide_table_of_contents-true"},"hide_table_of_contents: true"),(0,s.kt)("h1",{id:"scope-1"},"Scope"),(0,s.kt)("h2",{id:"text-1"},"text"),(0,s.kt)("pre",null,(0,s.kt)("code",{parentName:"pre",className:"language-ts"},'export declare class Scope {\n #private\n aliases: Dict\n name: string\n config: ScopeConfig\n parseCache: FreezingCache\n constructor(aliases: Dict, opts?: ScopeOptions)\n getAnonymousQualifiedName(base: AnonymousTypeName): QualifiedTypeName\n addAnonymousTypeReference(referencedType: Type, ctx: ParseContext): Node\n get infer(): exportsOf\n compile(): Space>\n addParsedReferenceIfResolvable(\n name: name,\n ctx: ParseContext\n ): boolean\n resolve(name: name): Type\n resolveNode(node: Node): ResolvedNode\n resolveTypeNode(node: Node): TypeNode\n expressions: Expressions>\n intersection: import("./expressions.js").BinaryExpressionParser<\n resolutions,\n "&"\n >\n union: import("./expressions.js").BinaryExpressionParser<\n resolutions,\n "|"\n >\n arrayOf: import("./expressions.js").UnaryExpressionParser<\n resolutions,\n "[]"\n >\n keyOf: import("./expressions.js").UnaryExpressionParser<\n resolutions,\n "keyof"\n >\n valueOf: import("./expressions.js").UnvalidatedExpressionParser<\n resolutions,\n "==="\n >\n instanceOf: import("./expressions.js").UnvalidatedExpressionParser<\n resolutions,\n "instanceof"\n >\n narrow: import("./expressions.js").FunctionalExpressionParser<\n resolutions,\n "=>"\n >\n morph: import("./expressions.js").FunctionalExpressionParser<\n resolutions,\n "|>"\n >\n type: TypeParser>\n isResolvable(name: string): unknown\n}\n')))}m.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/29e92f5e.aabdc367.js b/assets/js/29e92f5e.8e322341.js similarity index 60% rename from assets/js/29e92f5e.aabdc367.js rename to assets/js/29e92f5e.8e322341.js index e85da36836..ad2c915836 100644 --- a/assets/js/29e92f5e.aabdc367.js +++ b/assets/js/29e92f5e.8e322341.js @@ -1 +1 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[8202],{7522:(e,t,n)=>{n.d(t,{Zo:()=>u,kt:()=>d});var r=n(9901);function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var c=r.createContext({}),p=function(e){var t=r.useContext(c),n=t;return e&&(n="function"==typeof e?e(t):l(l({},t),e)),n},u=function(e){var t=p(e.components);return r.createElement(c.Provider,{value:t},e.children)},s="mdxType",f={inlineCode:"code",wrapper:function(e){var t=e.children;return r.createElement(r.Fragment,{},t)}},m=r.forwardRef((function(e,t){var n=e.components,a=e.mdxType,o=e.originalType,c=e.parentName,u=i(e,["components","mdxType","originalType","parentName"]),s=p(n),m=a,d=s["".concat(c,".").concat(m)]||s[m]||f[m]||o;return n?r.createElement(d,l(l({ref:t},u),{},{components:n})):r.createElement(d,l({ref:t},u))}));function d(e,t){var n=arguments,a=t&&t.mdxType;if("string"==typeof e||a){var o=n.length,l=new Array(o);l[0]=m;var i={};for(var c in t)hasOwnProperty.call(t,c)&&(i[c]=t[c]);i.originalType=e,i[s]="string"==typeof e?e:a,l[1]=i;for(var p=2;p{n.r(t),n.d(t,{assets:()=>u,contentTitle:()=>c,default:()=>d,frontMatter:()=>i,metadata:()=>p,toc:()=>s});var r=n(3341),a=n(1792),o=(n(9901),n(7522)),l=["components"],i={hide_table_of_contents:!0},c="instanceOf",p={unversionedId:"api/instanceof",id:"api/instanceof",title:"instanceOf",description:"operator",source:"@site/docs/api/instanceof.md",sourceDirName:"api",slug:"/api/instanceof",permalink:"/docs/next/api/instanceof",draft:!1,tags:[],version:"current",frontMatter:{hide_table_of_contents:!0}},u={},s=[{value:"operator",id:"operator",level:2},{value:"tuple",id:"tuple",level:2},{value:"helper",id:"helper",level:2}],f={toc:s},m="wrapper";function d(e){var t=e.components,n=(0,a.Z)(e,l);return(0,o.kt)(m,(0,r.Z)({},f,n,{components:t,mdxType:"MDXLayout"}),(0,o.kt)("h1",{id:"instanceof"},"instanceOf"),(0,o.kt)("h2",{id:"operator"},"operator"),(0,o.kt)("ul",null,(0,o.kt)("li",{parentName:"ul"},(0,o.kt)("a",{parentName:"li",href:"/docs/next/api/instanceof"},"instanceOf"))),(0,o.kt)("h2",{id:"tuple"},"tuple"),(0,o.kt)("ul",null,(0,o.kt)("li",{parentName:"ul"},'["instanceOf", T]'," ",(0,o.kt)("br",null)),(0,o.kt)("li",{parentName:"ul"},"const tupleInstanceOf = type(",'["instanceOf", Date]',")",(0,o.kt)("br",null))),(0,o.kt)("h2",{id:"helper"},"helper"),(0,o.kt)("ul",null,(0,o.kt)("li",{parentName:"ul"},"instanceOf(T) ",(0,o.kt)("br",null)),(0,o.kt)("li",{parentName:"ul"},"const helperInstanceOf = instanceOf(Date)",(0,o.kt)("br",null))))}d.isMDXComponent=!0}}]); \ No newline at end of file +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[8202],{7522:(e,t,n)=>{n.d(t,{Zo:()=>u,kt:()=>d});var r=n(9901);function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var c=r.createContext({}),p=function(e){var t=r.useContext(c),n=t;return e&&(n="function"==typeof e?e(t):l(l({},t),e)),n},u=function(e){var t=p(e.components);return r.createElement(c.Provider,{value:t},e.children)},s="mdxType",f={inlineCode:"code",wrapper:function(e){var t=e.children;return r.createElement(r.Fragment,{},t)}},m=r.forwardRef((function(e,t){var n=e.components,a=e.mdxType,o=e.originalType,c=e.parentName,u=i(e,["components","mdxType","originalType","parentName"]),s=p(n),m=a,d=s["".concat(c,".").concat(m)]||s[m]||f[m]||o;return n?r.createElement(d,l(l({ref:t},u),{},{components:n})):r.createElement(d,l({ref:t},u))}));function d(e,t){var n=arguments,a=t&&t.mdxType;if("string"==typeof e||a){var o=n.length,l=new Array(o);l[0]=m;var i={};for(var c in t)hasOwnProperty.call(t,c)&&(i[c]=t[c]);i.originalType=e,i[s]="string"==typeof e?e:a,l[1]=i;for(var p=2;p{n.r(t),n.d(t,{assets:()=>u,contentTitle:()=>c,default:()=>d,frontMatter:()=>i,metadata:()=>p,toc:()=>s});var r=n(4805),a=n(8),o=(n(9901),n(7522)),l=["components"],i={hide_table_of_contents:!0},c="instanceOf",p={unversionedId:"api/instanceof",id:"api/instanceof",title:"instanceOf",description:"operator",source:"@site/docs/api/instanceof.md",sourceDirName:"api",slug:"/api/instanceof",permalink:"/docs/next/api/instanceof",draft:!1,tags:[],version:"current",frontMatter:{hide_table_of_contents:!0}},u={},s=[{value:"operator",id:"operator",level:2},{value:"tuple",id:"tuple",level:2},{value:"helper",id:"helper",level:2}],f={toc:s},m="wrapper";function d(e){var t=e.components,n=(0,a.Z)(e,l);return(0,o.kt)(m,(0,r.Z)({},f,n,{components:t,mdxType:"MDXLayout"}),(0,o.kt)("h1",{id:"instanceof"},"instanceOf"),(0,o.kt)("h2",{id:"operator"},"operator"),(0,o.kt)("ul",null,(0,o.kt)("li",{parentName:"ul"},(0,o.kt)("a",{parentName:"li",href:"/docs/next/api/instanceof"},"instanceOf"))),(0,o.kt)("h2",{id:"tuple"},"tuple"),(0,o.kt)("ul",null,(0,o.kt)("li",{parentName:"ul"},'["instanceOf", T]'," ",(0,o.kt)("br",null)),(0,o.kt)("li",{parentName:"ul"},"const tupleInstanceOf = type(",'["instanceOf", Date]',")",(0,o.kt)("br",null))),(0,o.kt)("h2",{id:"helper"},"helper"),(0,o.kt)("ul",null,(0,o.kt)("li",{parentName:"ul"},"instanceOf(T) ",(0,o.kt)("br",null)),(0,o.kt)("li",{parentName:"ul"},"const helperInstanceOf = instanceOf(Date)",(0,o.kt)("br",null))))}d.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/2d805ff0.1c9b1551.js b/assets/js/2d805ff0.3d0d064d.js similarity index 62% rename from assets/js/2d805ff0.1c9b1551.js rename to assets/js/2d805ff0.3d0d064d.js index 245671e46f..0247ef2f5a 100644 --- a/assets/js/2d805ff0.1c9b1551.js +++ b/assets/js/2d805ff0.3d0d064d.js @@ -1 +1 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[2310],{7522:(e,t,r)=>{r.d(t,{Zo:()=>s,kt:()=>f});var n=r(9901);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function c(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var p=n.createContext({}),l=function(e){var t=n.useContext(p),r=t;return e&&(r="function"==typeof e?e(t):c(c({},t),e)),r},s=function(e){var t=l(e.components);return n.createElement(p.Provider,{value:t},e.children)},u="mdxType",m={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},d=n.forwardRef((function(e,t){var r=e.components,o=e.mdxType,a=e.originalType,p=e.parentName,s=i(e,["components","mdxType","originalType","parentName"]),u=l(r),d=o,f=u["".concat(p,".").concat(d)]||u[d]||m[d]||a;return r?n.createElement(f,c(c({ref:t},s),{},{components:r})):n.createElement(f,c({ref:t},s))}));function f(e,t){var r=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var a=r.length,c=new Array(a);c[0]=d;var i={};for(var p in t)hasOwnProperty.call(t,p)&&(i[p]=t[p]);i.originalType=e,i[u]="string"==typeof e?e:o,c[1]=i;for(var l=2;l{r.r(t),r.d(t,{assets:()=>s,contentTitle:()=>p,default:()=>f,frontMatter:()=>i,metadata:()=>l,toc:()=>u});var n=r(3341),o=r(1792),a=(r(9901),r(7522)),c=["components"],i={hide_table_of_contents:!0},p="Problem",l={unversionedId:"api/problem",id:"version-1.0.20-alpha/api/problem",title:"Problem",description:"text",source:"@site/versioned_docs/version-1.0.20-alpha/api/problem.md",sourceDirName:"api",slug:"/api/problem",permalink:"/docs/1.0.20-alpha/api/problem",draft:!1,tags:[],version:"1.0.20-alpha",frontMatter:{hide_table_of_contents:!0}},s={},u=[{value:"text",id:"text",level:2}],m={toc:u},d="wrapper";function f(e){var t=e.components,r=(0,o.Z)(e,c);return(0,a.kt)(d,(0,n.Z)({},m,r,{components:t,mdxType:"MDXLayout"}),(0,a.kt)("h1",{id:"problem"},"Problem"),(0,a.kt)("h2",{id:"text"},"text"),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-ts"},"export declare class Problem {\n code: code\n path: Path\n private data\n private source\n private writers\n parts?: Problem[]\n constructor(\n code: code,\n path: Path,\n data: ProblemData,\n source: ProblemSource,\n writers: ProblemWriters\n )\n toString(): string\n get message(): string\n get reason(): string\n get mustBe(): string\n}\n")))}f.isMDXComponent=!0}}]); \ No newline at end of file +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[2310],{7522:(e,t,r)=>{r.d(t,{Zo:()=>s,kt:()=>f});var n=r(9901);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function c(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var p=n.createContext({}),l=function(e){var t=n.useContext(p),r=t;return e&&(r="function"==typeof e?e(t):c(c({},t),e)),r},s=function(e){var t=l(e.components);return n.createElement(p.Provider,{value:t},e.children)},u="mdxType",m={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},d=n.forwardRef((function(e,t){var r=e.components,o=e.mdxType,a=e.originalType,p=e.parentName,s=i(e,["components","mdxType","originalType","parentName"]),u=l(r),d=o,f=u["".concat(p,".").concat(d)]||u[d]||m[d]||a;return r?n.createElement(f,c(c({ref:t},s),{},{components:r})):n.createElement(f,c({ref:t},s))}));function f(e,t){var r=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var a=r.length,c=new Array(a);c[0]=d;var i={};for(var p in t)hasOwnProperty.call(t,p)&&(i[p]=t[p]);i.originalType=e,i[u]="string"==typeof e?e:o,c[1]=i;for(var l=2;l{r.r(t),r.d(t,{assets:()=>s,contentTitle:()=>p,default:()=>f,frontMatter:()=>i,metadata:()=>l,toc:()=>u});var n=r(4805),o=r(8),a=(r(9901),r(7522)),c=["components"],i={hide_table_of_contents:!0},p="Problem",l={unversionedId:"api/problem",id:"version-1.0.20-alpha/api/problem",title:"Problem",description:"text",source:"@site/versioned_docs/version-1.0.20-alpha/api/problem.md",sourceDirName:"api",slug:"/api/problem",permalink:"/docs/1.0.20-alpha/api/problem",draft:!1,tags:[],version:"1.0.20-alpha",frontMatter:{hide_table_of_contents:!0}},s={},u=[{value:"text",id:"text",level:2}],m={toc:u},d="wrapper";function f(e){var t=e.components,r=(0,o.Z)(e,c);return(0,a.kt)(d,(0,n.Z)({},m,r,{components:t,mdxType:"MDXLayout"}),(0,a.kt)("h1",{id:"problem"},"Problem"),(0,a.kt)("h2",{id:"text"},"text"),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-ts"},"export declare class Problem {\n code: code\n path: Path\n private data\n private source\n private writers\n parts?: Problem[]\n constructor(\n code: code,\n path: Path,\n data: ProblemData,\n source: ProblemSource,\n writers: ProblemWriters\n )\n toString(): string\n get message(): string\n get reason(): string\n get mustBe(): string\n}\n")))}f.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/336ac60a.a90c9e9b.js b/assets/js/336ac60a.1348a464.js similarity index 63% rename from assets/js/336ac60a.a90c9e9b.js rename to assets/js/336ac60a.1348a464.js index 3037c88e8c..c2e2100e4a 100644 --- a/assets/js/336ac60a.a90c9e9b.js +++ b/assets/js/336ac60a.1348a464.js @@ -1 +1 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[9549],{7522:(e,t,r)=>{r.d(t,{Zo:()=>u,kt:()=>v});var n=r(9901);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function l(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var p=n.createContext({}),c=function(e){var t=n.useContext(p),r=t;return e&&(r="function"==typeof e?e(t):l(l({},t),e)),r},u=function(e){var t=c(e.components);return n.createElement(p.Provider,{value:t},e.children)},d="mdxType",s={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},f=n.forwardRef((function(e,t){var r=e.components,o=e.mdxType,a=e.originalType,p=e.parentName,u=i(e,["components","mdxType","originalType","parentName"]),d=c(r),f=o,v=d["".concat(p,".").concat(f)]||d[f]||s[f]||a;return r?n.createElement(v,l(l({ref:t},u),{},{components:r})):n.createElement(v,l({ref:t},u))}));function v(e,t){var r=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var a=r.length,l=new Array(a);l[0]=f;var i={};for(var p in t)hasOwnProperty.call(t,p)&&(i[p]=t[p]);i.originalType=e,i[d]="string"==typeof e?e:o,l[1]=i;for(var c=2;c{r.r(t),r.d(t,{assets:()=>u,contentTitle:()=>p,default:()=>v,frontMatter:()=>i,metadata:()=>c,toc:()=>d});var n=r(3341),o=r(1792),a=(r(9901),r(7522)),l=["components"],i={hide_table_of_contents:!0},p="ResolvedNode",c={unversionedId:"api/resolvednode",id:"version-1.0.20-alpha/api/resolvednode",title:"ResolvedNode",description:"operator",source:"@site/versioned_docs/version-1.0.20-alpha/api/resolvednode.md",sourceDirName:"api",slug:"/api/resolvednode",permalink:"/docs/1.0.20-alpha/api/resolvednode",draft:!1,tags:[],version:"1.0.20-alpha",frontMatter:{hide_table_of_contents:!0}},u={},d=[{value:"operator",id:"operator",level:2},{value:"tuple",id:"tuple",level:2},{value:"helper",id:"helper",level:2}],s={toc:d},f="wrapper";function v(e){var t=e.components,r=(0,o.Z)(e,l);return(0,a.kt)(f,(0,n.Z)({},s,r,{components:t,mdxType:"MDXLayout"}),(0,a.kt)("h1",{id:"resolvednode"},"ResolvedNode"),(0,a.kt)("h2",{id:"operator"},"operator"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},(0,a.kt)("a",{parentName:"li",href:"/docs/1.0.20-alpha/api/resolvednode"},"node"))),(0,a.kt)("h2",{id:"tuple"},"tuple"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},'["node", nodeDefinition]')),(0,a.kt)("h2",{id:"helper"},"helper"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},"type.from(nodeDefinition)")))}v.isMDXComponent=!0}}]); \ No newline at end of file +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[9549],{7522:(e,t,r)=>{r.d(t,{Zo:()=>u,kt:()=>v});var n=r(9901);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function l(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var p=n.createContext({}),c=function(e){var t=n.useContext(p),r=t;return e&&(r="function"==typeof e?e(t):l(l({},t),e)),r},u=function(e){var t=c(e.components);return n.createElement(p.Provider,{value:t},e.children)},d="mdxType",s={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},f=n.forwardRef((function(e,t){var r=e.components,o=e.mdxType,a=e.originalType,p=e.parentName,u=i(e,["components","mdxType","originalType","parentName"]),d=c(r),f=o,v=d["".concat(p,".").concat(f)]||d[f]||s[f]||a;return r?n.createElement(v,l(l({ref:t},u),{},{components:r})):n.createElement(v,l({ref:t},u))}));function v(e,t){var r=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var a=r.length,l=new Array(a);l[0]=f;var i={};for(var p in t)hasOwnProperty.call(t,p)&&(i[p]=t[p]);i.originalType=e,i[d]="string"==typeof e?e:o,l[1]=i;for(var c=2;c{r.r(t),r.d(t,{assets:()=>u,contentTitle:()=>p,default:()=>v,frontMatter:()=>i,metadata:()=>c,toc:()=>d});var n=r(4805),o=r(8),a=(r(9901),r(7522)),l=["components"],i={hide_table_of_contents:!0},p="ResolvedNode",c={unversionedId:"api/resolvednode",id:"version-1.0.20-alpha/api/resolvednode",title:"ResolvedNode",description:"operator",source:"@site/versioned_docs/version-1.0.20-alpha/api/resolvednode.md",sourceDirName:"api",slug:"/api/resolvednode",permalink:"/docs/1.0.20-alpha/api/resolvednode",draft:!1,tags:[],version:"1.0.20-alpha",frontMatter:{hide_table_of_contents:!0}},u={},d=[{value:"operator",id:"operator",level:2},{value:"tuple",id:"tuple",level:2},{value:"helper",id:"helper",level:2}],s={toc:d},f="wrapper";function v(e){var t=e.components,r=(0,o.Z)(e,l);return(0,a.kt)(f,(0,n.Z)({},s,r,{components:t,mdxType:"MDXLayout"}),(0,a.kt)("h1",{id:"resolvednode"},"ResolvedNode"),(0,a.kt)("h2",{id:"operator"},"operator"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},(0,a.kt)("a",{parentName:"li",href:"/docs/1.0.20-alpha/api/resolvednode"},"node"))),(0,a.kt)("h2",{id:"tuple"},"tuple"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},'["node", nodeDefinition]')),(0,a.kt)("h2",{id:"helper"},"helper"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},"type.from(nodeDefinition)")))}v.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/339d3c17.32e58553.js b/assets/js/339d3c17.32e58553.js new file mode 100644 index 0000000000..bd201d7b87 --- /dev/null +++ b/assets/js/339d3c17.32e58553.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[4597],{7522:(t,e,n)=>{n.d(e,{Zo:()=>d,kt:()=>k});var r=n(9901);function a(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function l(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function o(t){for(var e=1;e=0||(a[n]=t[n]);return a}(t,e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(a[n]=t[n])}return a}var i=r.createContext({}),c=function(t){var e=r.useContext(i),n=e;return t&&(n="function"==typeof t?t(e):o(o({},e),t)),n},d=function(t){var e=c(t.components);return r.createElement(i.Provider,{value:e},t.children)},u="mdxType",m={inlineCode:"code",wrapper:function(t){var e=t.children;return r.createElement(r.Fragment,{},e)}},s=r.forwardRef((function(t,e){var n=t.components,a=t.mdxType,l=t.originalType,i=t.parentName,d=p(t,["components","mdxType","originalType","parentName"]),u=c(n),s=a,k=u["".concat(i,".").concat(s)]||u[s]||m[s]||l;return n?r.createElement(k,o(o({ref:e},d),{},{components:n})):r.createElement(k,o({ref:e},d))}));function k(t,e){var n=arguments,a=e&&e.mdxType;if("string"==typeof t||a){var l=n.length,o=new Array(l);o[0]=s;var p={};for(var i in e)hasOwnProperty.call(e,i)&&(p[i]=e[i]);p.originalType=t,p[u]="string"==typeof t?t:a,o[1]=p;for(var c=2;c{n.r(e),n.d(e,{assets:()=>d,contentTitle:()=>i,default:()=>k,frontMatter:()=>p,metadata:()=>c,toc:()=>u});var r=n(4805),a=n(8),l=(n(9901),n(7522)),o=["components"],p={hide_table_of_contents:!0},i="jsObjectsScope",c={unversionedId:"api/jsobjectsscope",id:"version-1.0.21-alpha/api/jsobjectsscope",title:"jsObjectsScope",description:"text",source:"@site/versioned_docs/version-1.0.21-alpha/api/jsobjectsscope.md",sourceDirName:"api",slug:"/api/jsobjectsscope",permalink:"/docs/1.0.21-alpha/api/jsobjectsscope",draft:!1,tags:[],version:"1.0.21-alpha",frontMatter:{hide_table_of_contents:!0}},d={},u=[{value:"text",id:"text",level:2}],m={toc:u},s="wrapper";function k(t){var e=t.components,n=(0,a.Z)(t,o);return(0,l.kt)(s,(0,r.Z)({},m,n,{components:e,mdxType:"MDXLayout"}),(0,l.kt)("h1",{id:"jsobjectsscope"},"jsObjectsScope"),(0,l.kt)("h2",{id:"text"},"text"),(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:null},"Name"),(0,l.kt)("th",{parentName:"tr",align:null},"Type"),(0,l.kt)("th",{parentName:"tr",align:null},"Description"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Function"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," (...args: any[]) => unknown")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Date"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," Date")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Error"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," Error")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Map"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," Map")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"RegExp"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," RegExp")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Set"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," Set")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"WeakMap"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," WeakMap")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"WeakSet"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," WeakSet")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Promise"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," Promise")),(0,l.kt)("td",{parentName:"tr",align:null})))))}k.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/339d3c17.8a1b9ec1.js b/assets/js/339d3c17.8a1b9ec1.js deleted file mode 100644 index 74f1da9437..0000000000 --- a/assets/js/339d3c17.8a1b9ec1.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[4597],{7522:(t,e,n)=>{n.d(e,{Zo:()=>d,kt:()=>k});var r=n(9901);function a(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function l(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function o(t){for(var e=1;e=0||(a[n]=t[n]);return a}(t,e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(a[n]=t[n])}return a}var i=r.createContext({}),c=function(t){var e=r.useContext(i),n=e;return t&&(n="function"==typeof t?t(e):o(o({},e),t)),n},d=function(t){var e=c(t.components);return r.createElement(i.Provider,{value:e},t.children)},u="mdxType",m={inlineCode:"code",wrapper:function(t){var e=t.children;return r.createElement(r.Fragment,{},e)}},s=r.forwardRef((function(t,e){var n=t.components,a=t.mdxType,l=t.originalType,i=t.parentName,d=p(t,["components","mdxType","originalType","parentName"]),u=c(n),s=a,k=u["".concat(i,".").concat(s)]||u[s]||m[s]||l;return n?r.createElement(k,o(o({ref:e},d),{},{components:n})):r.createElement(k,o({ref:e},d))}));function k(t,e){var n=arguments,a=e&&e.mdxType;if("string"==typeof t||a){var l=n.length,o=new Array(l);o[0]=s;var p={};for(var i in e)hasOwnProperty.call(e,i)&&(p[i]=e[i]);p.originalType=t,p[u]="string"==typeof t?t:a,o[1]=p;for(var c=2;c{n.r(e),n.d(e,{assets:()=>d,contentTitle:()=>i,default:()=>k,frontMatter:()=>p,metadata:()=>c,toc:()=>u});var r=n(3341),a=n(1792),l=(n(9901),n(7522)),o=["components"],p={hide_table_of_contents:!0},i="jsObjectsScope",c={unversionedId:"api/jsobjectsscope",id:"version-1.0.21-alpha/api/jsobjectsscope",title:"jsObjectsScope",description:"text",source:"@site/versioned_docs/version-1.0.21-alpha/api/jsobjectsscope.md",sourceDirName:"api",slug:"/api/jsobjectsscope",permalink:"/docs/1.0.21-alpha/api/jsobjectsscope",draft:!1,tags:[],version:"1.0.21-alpha",frontMatter:{hide_table_of_contents:!0}},d={},u=[{value:"text",id:"text",level:2}],m={toc:u},s="wrapper";function k(t){var e=t.components,n=(0,a.Z)(t,o);return(0,l.kt)(s,(0,r.Z)({},m,n,{components:e,mdxType:"MDXLayout"}),(0,l.kt)("h1",{id:"jsobjectsscope"},"jsObjectsScope"),(0,l.kt)("h2",{id:"text"},"text"),(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:null},"Name"),(0,l.kt)("th",{parentName:"tr",align:null},"Type"),(0,l.kt)("th",{parentName:"tr",align:null},"Description"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Function"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," (...args: any[]) => unknown")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Date"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," Date")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Error"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," Error")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Map"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," Map")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"RegExp"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," RegExp")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Set"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," Set")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"WeakMap"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," WeakMap")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"WeakSet"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," WeakSet")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Promise"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," Promise")),(0,l.kt)("td",{parentName:"tr",align:null})))))}k.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/3437bd2a.771f54bf.js b/assets/js/3437bd2a.771f54bf.js new file mode 100644 index 0000000000..ca2458a7f5 --- /dev/null +++ b/assets/js/3437bd2a.771f54bf.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[8810],{7522:(t,e,n)=>{n.d(e,{Zo:()=>o,kt:()=>g});var a=n(9901);function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function l(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,a)}return n}function i(t){for(var e=1;e=0||(r[n]=t[n]);return r}(t,e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(t);for(a=0;a=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}var p=a.createContext({}),m=function(t){var e=a.useContext(p),n=e;return t&&(n="function"==typeof t?t(e):i(i({},e),t)),n},o=function(t){var e=m(t.components);return a.createElement(p.Provider,{value:e},t.children)},k="mdxType",u={inlineCode:"code",wrapper:function(t){var e=t.children;return a.createElement(a.Fragment,{},e)}},N=a.forwardRef((function(t,e){var n=t.components,r=t.mdxType,l=t.originalType,p=t.parentName,o=d(t,["components","mdxType","originalType","parentName"]),k=m(n),N=r,g=k["".concat(p,".").concat(N)]||k[N]||u[N]||l;return n?a.createElement(g,i(i({ref:e},o),{},{components:n})):a.createElement(g,i({ref:e},o))}));function g(t,e){var n=arguments,r=e&&e.mdxType;if("string"==typeof t||r){var l=n.length,i=new Array(l);i[0]=N;var d={};for(var p in e)hasOwnProperty.call(e,p)&&(d[p]=e[p]);d.originalType=t,d[k]="string"==typeof t?t:r,i[1]=d;for(var m=2;m{n.r(e),n.d(e,{assets:()=>o,contentTitle:()=>p,default:()=>g,frontMatter:()=>d,metadata:()=>m,toc:()=>k});var a=n(4805),r=n(8),l=(n(9901),n(7522)),i=["components"],d={hide_table_of_contents:!0},p="Keywords",m={unversionedId:"api/keywords",id:"version-1.0.22-alpha/api/keywords",title:"Keywords",description:"jsObjectsScope",source:"@site/versioned_docs/version-1.0.22-alpha/api/keywords.md",sourceDirName:"api",slug:"/api/keywords",permalink:"/docs/api/keywords",draft:!1,tags:[],version:"1.0.22-alpha",frontMatter:{hide_table_of_contents:!0},sidebar:"sidebar",previous:{title:"Scopes",permalink:"/docs/scopes"},next:{title:"Operators",permalink:"/docs/api/operators"}},o={},k=[{value:"jsObjectsScope",id:"jsobjectsscope",level:2},{value:"tsKeywordsScope",id:"tskeywordsscope",level:2},{value:"validationScope",id:"validationscope",level:2}],u={toc:k},N="wrapper";function g(t){var e=t.components,n=(0,r.Z)(t,i);return(0,l.kt)(N,(0,a.Z)({},u,n,{components:e,mdxType:"MDXLayout"}),(0,l.kt)("h1",{id:"keywords"},"Keywords"),(0,l.kt)("h2",{id:"jsobjectsscope"},"jsObjectsScope"),(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:null},"Name"),(0,l.kt)("th",{parentName:"tr",align:null},"Type"),(0,l.kt)("th",{parentName:"tr",align:null},"Description"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Function"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," (...args: any[]) => unknown")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Date"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," Date")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Error"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," Error")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Map"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," Map")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"RegExp"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," RegExp")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Set"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," Set")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"WeakMap"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," WeakMap")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"WeakSet"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," WeakSet")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Promise"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," Promise")),(0,l.kt)("td",{parentName:"tr",align:null})))),(0,l.kt)("h2",{id:"tskeywordsscope"},"tsKeywordsScope"),(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:null},"Name"),(0,l.kt)("th",{parentName:"tr",align:null},"Type"),(0,l.kt)("th",{parentName:"tr",align:null},"Description"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"any"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," any")),(0,l.kt)("td",{parentName:"tr",align:null},"any")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"bigint"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," bigint")),(0,l.kt)("td",{parentName:"tr",align:null},"a bigint")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"boolean"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," boolean")),(0,l.kt)("td",{parentName:"tr",align:null},"a boolean")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"false"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," false")),(0,l.kt)("td",{parentName:"tr",align:null},"false")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"never"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," never")),(0,l.kt)("td",{parentName:"tr",align:null},"never")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"null"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," null")),(0,l.kt)("td",{parentName:"tr",align:null},"null")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"number"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," number")),(0,l.kt)("td",{parentName:"tr",align:null},"a number")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"object"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," object")),(0,l.kt)("td",{parentName:"tr",align:null},"an object")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"string"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"a string")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"symbol"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," symbol")),(0,l.kt)("td",{parentName:"tr",align:null},"a symbol")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"true"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," true")),(0,l.kt)("td",{parentName:"tr",align:null},"true")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"unknown"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," unknown")),(0,l.kt)("td",{parentName:"tr",align:null},"unknown")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"void"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," void")),(0,l.kt)("td",{parentName:"tr",align:null},"void")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"undefined"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," undefined")),(0,l.kt)("td",{parentName:"tr",align:null},"undefined")))),(0,l.kt)("h2",{id:"validationscope"},"validationScope"),(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:null},"Name"),(0,l.kt)("th",{parentName:"tr",align:null},"Type"),(0,l.kt)("th",{parentName:"tr",align:null},"Description"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"alpha"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"only letters")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"alphanumeric"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"only letters and digits")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"lowercase"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"only lowercase letters")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"uppercase"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"only uppercase letters")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"creditCard"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"a valid credit card number")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"email"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"a valid email")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"uuid"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"a valid UUID")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"parsedNumber"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," (In: string) => number")),(0,l.kt)("td",{parentName:"tr",align:null},"a well-formed numeric string")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"parsedInteger"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," (In: string) => number")),(0,l.kt)("td",{parentName:"tr",align:null},"a well-formed integer string")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"parsedDate"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," (In: string) => Date")),(0,l.kt)("td",{parentName:"tr",align:null},"a valid date")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"semver"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"a valid semantic version")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"json"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," (In: string) => unknown")),(0,l.kt)("td",{parentName:"tr",align:null},"a JSON-parsable string")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"integer"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," number")),(0,l.kt)("td",{parentName:"tr",align:null},"an integer")))))}g.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/3437bd2a.cd1c421e.js b/assets/js/3437bd2a.cd1c421e.js deleted file mode 100644 index cb9d906ab0..0000000000 --- a/assets/js/3437bd2a.cd1c421e.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[8810],{7522:(t,e,n)=>{n.d(e,{Zo:()=>o,kt:()=>g});var a=n(9901);function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function l(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,a)}return n}function i(t){for(var e=1;e=0||(r[n]=t[n]);return r}(t,e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(t);for(a=0;a=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}var p=a.createContext({}),m=function(t){var e=a.useContext(p),n=e;return t&&(n="function"==typeof t?t(e):i(i({},e),t)),n},o=function(t){var e=m(t.components);return a.createElement(p.Provider,{value:e},t.children)},k="mdxType",u={inlineCode:"code",wrapper:function(t){var e=t.children;return a.createElement(a.Fragment,{},e)}},N=a.forwardRef((function(t,e){var n=t.components,r=t.mdxType,l=t.originalType,p=t.parentName,o=d(t,["components","mdxType","originalType","parentName"]),k=m(n),N=r,g=k["".concat(p,".").concat(N)]||k[N]||u[N]||l;return n?a.createElement(g,i(i({ref:e},o),{},{components:n})):a.createElement(g,i({ref:e},o))}));function g(t,e){var n=arguments,r=e&&e.mdxType;if("string"==typeof t||r){var l=n.length,i=new Array(l);i[0]=N;var d={};for(var p in e)hasOwnProperty.call(e,p)&&(d[p]=e[p]);d.originalType=t,d[k]="string"==typeof t?t:r,i[1]=d;for(var m=2;m{n.r(e),n.d(e,{assets:()=>o,contentTitle:()=>p,default:()=>g,frontMatter:()=>d,metadata:()=>m,toc:()=>k});var a=n(3341),r=n(1792),l=(n(9901),n(7522)),i=["components"],d={hide_table_of_contents:!0},p="Keywords",m={unversionedId:"api/keywords",id:"version-1.0.22-alpha/api/keywords",title:"Keywords",description:"jsObjectsScope",source:"@site/versioned_docs/version-1.0.22-alpha/api/keywords.md",sourceDirName:"api",slug:"/api/keywords",permalink:"/docs/api/keywords",draft:!1,tags:[],version:"1.0.22-alpha",frontMatter:{hide_table_of_contents:!0},sidebar:"sidebar",previous:{title:"Scopes",permalink:"/docs/scopes"},next:{title:"Operators",permalink:"/docs/api/operators"}},o={},k=[{value:"jsObjectsScope",id:"jsobjectsscope",level:2},{value:"tsKeywordsScope",id:"tskeywordsscope",level:2},{value:"validationScope",id:"validationscope",level:2}],u={toc:k},N="wrapper";function g(t){var e=t.components,n=(0,r.Z)(t,i);return(0,l.kt)(N,(0,a.Z)({},u,n,{components:e,mdxType:"MDXLayout"}),(0,l.kt)("h1",{id:"keywords"},"Keywords"),(0,l.kt)("h2",{id:"jsobjectsscope"},"jsObjectsScope"),(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:null},"Name"),(0,l.kt)("th",{parentName:"tr",align:null},"Type"),(0,l.kt)("th",{parentName:"tr",align:null},"Description"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Function"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," (...args: any[]) => unknown")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Date"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," Date")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Error"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," Error")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Map"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," Map")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"RegExp"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," RegExp")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Set"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," Set")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"WeakMap"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," WeakMap")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"WeakSet"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," WeakSet")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Promise"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," Promise")),(0,l.kt)("td",{parentName:"tr",align:null})))),(0,l.kt)("h2",{id:"tskeywordsscope"},"tsKeywordsScope"),(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:null},"Name"),(0,l.kt)("th",{parentName:"tr",align:null},"Type"),(0,l.kt)("th",{parentName:"tr",align:null},"Description"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"any"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," any")),(0,l.kt)("td",{parentName:"tr",align:null},"any")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"bigint"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," bigint")),(0,l.kt)("td",{parentName:"tr",align:null},"a bigint")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"boolean"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," boolean")),(0,l.kt)("td",{parentName:"tr",align:null},"a boolean")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"false"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," false")),(0,l.kt)("td",{parentName:"tr",align:null},"false")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"never"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," never")),(0,l.kt)("td",{parentName:"tr",align:null},"never")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"null"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," null")),(0,l.kt)("td",{parentName:"tr",align:null},"null")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"number"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," number")),(0,l.kt)("td",{parentName:"tr",align:null},"a number")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"object"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," object")),(0,l.kt)("td",{parentName:"tr",align:null},"an object")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"string"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"a string")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"symbol"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," symbol")),(0,l.kt)("td",{parentName:"tr",align:null},"a symbol")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"true"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," true")),(0,l.kt)("td",{parentName:"tr",align:null},"true")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"unknown"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," unknown")),(0,l.kt)("td",{parentName:"tr",align:null},"unknown")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"void"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," void")),(0,l.kt)("td",{parentName:"tr",align:null},"void")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"undefined"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," undefined")),(0,l.kt)("td",{parentName:"tr",align:null},"undefined")))),(0,l.kt)("h2",{id:"validationscope"},"validationScope"),(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:null},"Name"),(0,l.kt)("th",{parentName:"tr",align:null},"Type"),(0,l.kt)("th",{parentName:"tr",align:null},"Description"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"alpha"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"only letters")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"alphanumeric"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"only letters and digits")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"lowercase"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"only lowercase letters")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"uppercase"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"only uppercase letters")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"creditCard"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"a valid credit card number")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"email"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"a valid email")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"uuid"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"a valid UUID")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"parsedNumber"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," (In: string) => number")),(0,l.kt)("td",{parentName:"tr",align:null},"a well-formed numeric string")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"parsedInteger"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," (In: string) => number")),(0,l.kt)("td",{parentName:"tr",align:null},"a well-formed integer string")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"parsedDate"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," (In: string) => Date")),(0,l.kt)("td",{parentName:"tr",align:null},"a valid date")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"semver"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"a valid semantic version")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"json"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," (In: string) => unknown")),(0,l.kt)("td",{parentName:"tr",align:null},"a JSON-parsable string")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"integer"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," number")),(0,l.kt)("td",{parentName:"tr",align:null},"an integer")))))}g.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/3a4716de.597bd66f.js b/assets/js/3a4716de.597bd66f.js new file mode 100644 index 0000000000..cad3d38934 --- /dev/null +++ b/assets/js/3a4716de.597bd66f.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[4910],{7522:(t,e,n)=>{n.d(e,{Zo:()=>m,kt:()=>k});var a=n(9901);function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function l(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,a)}return n}function i(t){for(var e=1;e=0||(r[n]=t[n]);return r}(t,e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(t);for(a=0;a=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}var o=a.createContext({}),d=function(t){var e=a.useContext(o),n=e;return t&&(n="function"==typeof t?t(e):i(i({},e),t)),n},m=function(t){var e=d(t.components);return a.createElement(o.Provider,{value:e},t.children)},u="mdxType",s={inlineCode:"code",wrapper:function(t){var e=t.children;return a.createElement(a.Fragment,{},e)}},c=a.forwardRef((function(t,e){var n=t.components,r=t.mdxType,l=t.originalType,o=t.parentName,m=p(t,["components","mdxType","originalType","parentName"]),u=d(n),c=r,k=u["".concat(o,".").concat(c)]||u[c]||s[c]||l;return n?a.createElement(k,i(i({ref:e},m),{},{components:n})):a.createElement(k,i({ref:e},m))}));function k(t,e){var n=arguments,r=e&&e.mdxType;if("string"==typeof t||r){var l=n.length,i=new Array(l);i[0]=c;var p={};for(var o in e)hasOwnProperty.call(e,o)&&(p[o]=e[o]);p.originalType=t,p[u]="string"==typeof t?t:r,i[1]=p;for(var d=2;d{n.r(e),n.d(e,{assets:()=>m,contentTitle:()=>o,default:()=>k,frontMatter:()=>p,metadata:()=>d,toc:()=>u});var a=n(4805),r=n(8),l=(n(9901),n(7522)),i=["components"],p={hide_table_of_contents:!0},o="validationScope",d={unversionedId:"api/validationscope",id:"version-1.0.21-alpha/api/validationscope",title:"validationScope",description:"keywords",source:"@site/versioned_docs/version-1.0.21-alpha/api/validationscope.md",sourceDirName:"api",slug:"/api/validationscope",permalink:"/docs/1.0.21-alpha/api/validationscope",draft:!1,tags:[],version:"1.0.21-alpha",frontMatter:{hide_table_of_contents:!0}},m={},u=[{value:"keywords",id:"keywords",level:2},{value:"text",id:"text",level:2}],s={toc:u},c="wrapper";function k(t){var e=t.components,n=(0,r.Z)(t,i);return(0,l.kt)(c,(0,a.Z)({},s,n,{components:e,mdxType:"MDXLayout"}),(0,l.kt)("h1",{id:"validationscope"},"validationScope"),(0,l.kt)("h2",{id:"keywords"},"keywords"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},'keywords: { "alpha": "only letters", "alphanumeric": "only letters and digits", "lowercase": "only lowercase letters", "uppercase": "only uppercase letters", "creditCard": "a valid credit card number", "email": "a valid email", "uuid": "a valid UUID", "parsedNumber": "a well-formed numeric string", "parsedInteger": "a well-formed integer string", "parsedDate": "a valid date", "semver": "a valid semantic version", "json": "a JSON-parsable string", "integer": "an integer"}')),(0,l.kt)("h2",{id:"text"},"text"),(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:null},"Name"),(0,l.kt)("th",{parentName:"tr",align:null},"Type"),(0,l.kt)("th",{parentName:"tr",align:null},"Description"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"alpha"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"only letters")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"alphanumeric"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"only letters and digits")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"lowercase"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"only lowercase letters")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"uppercase"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"only uppercase letters")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"creditCard"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"a valid credit card number")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"email"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"a valid email")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"uuid"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"a valid UUID")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"parsedNumber"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," (In: string) => number")),(0,l.kt)("td",{parentName:"tr",align:null},"a well-formed numeric string")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"parsedInteger"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," (In: string) => number")),(0,l.kt)("td",{parentName:"tr",align:null},"a well-formed integer string")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"parsedDate"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," (In: string) => Date")),(0,l.kt)("td",{parentName:"tr",align:null},"a valid date")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"semver"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"a valid semantic version")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"json"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," (In: string) => unknown")),(0,l.kt)("td",{parentName:"tr",align:null},"a JSON-parsable string")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"integer"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," number")),(0,l.kt)("td",{parentName:"tr",align:null},"an integer")))))}k.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/3a4716de.eca5fb40.js b/assets/js/3a4716de.eca5fb40.js deleted file mode 100644 index 6402ae39ff..0000000000 --- a/assets/js/3a4716de.eca5fb40.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[4910],{7522:(t,e,n)=>{n.d(e,{Zo:()=>m,kt:()=>k});var a=n(9901);function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function l(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,a)}return n}function i(t){for(var e=1;e=0||(r[n]=t[n]);return r}(t,e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(t);for(a=0;a=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}var o=a.createContext({}),d=function(t){var e=a.useContext(o),n=e;return t&&(n="function"==typeof t?t(e):i(i({},e),t)),n},m=function(t){var e=d(t.components);return a.createElement(o.Provider,{value:e},t.children)},u="mdxType",s={inlineCode:"code",wrapper:function(t){var e=t.children;return a.createElement(a.Fragment,{},e)}},c=a.forwardRef((function(t,e){var n=t.components,r=t.mdxType,l=t.originalType,o=t.parentName,m=p(t,["components","mdxType","originalType","parentName"]),u=d(n),c=r,k=u["".concat(o,".").concat(c)]||u[c]||s[c]||l;return n?a.createElement(k,i(i({ref:e},m),{},{components:n})):a.createElement(k,i({ref:e},m))}));function k(t,e){var n=arguments,r=e&&e.mdxType;if("string"==typeof t||r){var l=n.length,i=new Array(l);i[0]=c;var p={};for(var o in e)hasOwnProperty.call(e,o)&&(p[o]=e[o]);p.originalType=t,p[u]="string"==typeof t?t:r,i[1]=p;for(var d=2;d{n.r(e),n.d(e,{assets:()=>m,contentTitle:()=>o,default:()=>k,frontMatter:()=>p,metadata:()=>d,toc:()=>u});var a=n(3341),r=n(1792),l=(n(9901),n(7522)),i=["components"],p={hide_table_of_contents:!0},o="validationScope",d={unversionedId:"api/validationscope",id:"version-1.0.21-alpha/api/validationscope",title:"validationScope",description:"keywords",source:"@site/versioned_docs/version-1.0.21-alpha/api/validationscope.md",sourceDirName:"api",slug:"/api/validationscope",permalink:"/docs/1.0.21-alpha/api/validationscope",draft:!1,tags:[],version:"1.0.21-alpha",frontMatter:{hide_table_of_contents:!0}},m={},u=[{value:"keywords",id:"keywords",level:2},{value:"text",id:"text",level:2}],s={toc:u},c="wrapper";function k(t){var e=t.components,n=(0,r.Z)(t,i);return(0,l.kt)(c,(0,a.Z)({},s,n,{components:e,mdxType:"MDXLayout"}),(0,l.kt)("h1",{id:"validationscope"},"validationScope"),(0,l.kt)("h2",{id:"keywords"},"keywords"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},'keywords: { "alpha": "only letters", "alphanumeric": "only letters and digits", "lowercase": "only lowercase letters", "uppercase": "only uppercase letters", "creditCard": "a valid credit card number", "email": "a valid email", "uuid": "a valid UUID", "parsedNumber": "a well-formed numeric string", "parsedInteger": "a well-formed integer string", "parsedDate": "a valid date", "semver": "a valid semantic version", "json": "a JSON-parsable string", "integer": "an integer"}')),(0,l.kt)("h2",{id:"text"},"text"),(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:null},"Name"),(0,l.kt)("th",{parentName:"tr",align:null},"Type"),(0,l.kt)("th",{parentName:"tr",align:null},"Description"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"alpha"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"only letters")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"alphanumeric"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"only letters and digits")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"lowercase"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"only lowercase letters")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"uppercase"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"only uppercase letters")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"creditCard"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"a valid credit card number")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"email"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"a valid email")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"uuid"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"a valid UUID")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"parsedNumber"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," (In: string) => number")),(0,l.kt)("td",{parentName:"tr",align:null},"a well-formed numeric string")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"parsedInteger"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," (In: string) => number")),(0,l.kt)("td",{parentName:"tr",align:null},"a well-formed integer string")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"parsedDate"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," (In: string) => Date")),(0,l.kt)("td",{parentName:"tr",align:null},"a valid date")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"semver"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"a valid semantic version")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"json"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," (In: string) => unknown")),(0,l.kt)("td",{parentName:"tr",align:null},"a JSON-parsable string")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"integer"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," number")),(0,l.kt)("td",{parentName:"tr",align:null},"an integer")))))}k.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/3c3913a6.528173ce.js b/assets/js/3c3913a6.45d2941c.js similarity index 62% rename from assets/js/3c3913a6.528173ce.js rename to assets/js/3c3913a6.45d2941c.js index 39bbcc1527..45a3524b36 100644 --- a/assets/js/3c3913a6.528173ce.js +++ b/assets/js/3c3913a6.45d2941c.js @@ -1 +1 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[9293],{7522:(e,t,r)=>{r.d(t,{Zo:()=>s,kt:()=>f});var n=r(9901);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function c(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var p=n.createContext({}),l=function(e){var t=n.useContext(p),r=t;return e&&(r="function"==typeof e?e(t):c(c({},t),e)),r},s=function(e){var t=l(e.components);return n.createElement(p.Provider,{value:t},e.children)},u="mdxType",m={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},d=n.forwardRef((function(e,t){var r=e.components,o=e.mdxType,a=e.originalType,p=e.parentName,s=i(e,["components","mdxType","originalType","parentName"]),u=l(r),d=o,f=u["".concat(p,".").concat(d)]||u[d]||m[d]||a;return r?n.createElement(f,c(c({ref:t},s),{},{components:r})):n.createElement(f,c({ref:t},s))}));function f(e,t){var r=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var a=r.length,c=new Array(a);c[0]=d;var i={};for(var p in t)hasOwnProperty.call(t,p)&&(i[p]=t[p]);i.originalType=e,i[u]="string"==typeof e?e:o,c[1]=i;for(var l=2;l{r.r(t),r.d(t,{assets:()=>s,contentTitle:()=>p,default:()=>f,frontMatter:()=>i,metadata:()=>l,toc:()=>u});var n=r(3341),o=r(1792),a=(r(9901),r(7522)),c=["components"],i={hide_table_of_contents:!0},p="Problem",l={unversionedId:"api/problem",id:"version-1.0.22-alpha/api/problem",title:"Problem",description:"text",source:"@site/versioned_docs/version-1.0.22-alpha/api/problem.md",sourceDirName:"api",slug:"/api/problem",permalink:"/docs/api/problem",draft:!1,tags:[],version:"1.0.22-alpha",frontMatter:{hide_table_of_contents:!0}},s={},u=[{value:"text",id:"text",level:2}],m={toc:u},d="wrapper";function f(e){var t=e.components,r=(0,o.Z)(e,c);return(0,a.kt)(d,(0,n.Z)({},m,r,{components:t,mdxType:"MDXLayout"}),(0,a.kt)("h1",{id:"problem"},"Problem"),(0,a.kt)("h2",{id:"text"},"text"),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-ts"},"export declare class Problem {\n code: code\n path: Path\n private data\n private source\n private writers\n parts?: Problem[]\n constructor(\n code: code,\n path: Path,\n data: ProblemData,\n source: ProblemSource,\n writers: ProblemWriters\n )\n toString(): string\n get message(): string\n get reason(): string\n get mustBe(): string\n}\n")))}f.isMDXComponent=!0}}]); \ No newline at end of file +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[9293],{7522:(e,t,r)=>{r.d(t,{Zo:()=>s,kt:()=>f});var n=r(9901);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function c(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var p=n.createContext({}),l=function(e){var t=n.useContext(p),r=t;return e&&(r="function"==typeof e?e(t):c(c({},t),e)),r},s=function(e){var t=l(e.components);return n.createElement(p.Provider,{value:t},e.children)},u="mdxType",m={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},d=n.forwardRef((function(e,t){var r=e.components,o=e.mdxType,a=e.originalType,p=e.parentName,s=i(e,["components","mdxType","originalType","parentName"]),u=l(r),d=o,f=u["".concat(p,".").concat(d)]||u[d]||m[d]||a;return r?n.createElement(f,c(c({ref:t},s),{},{components:r})):n.createElement(f,c({ref:t},s))}));function f(e,t){var r=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var a=r.length,c=new Array(a);c[0]=d;var i={};for(var p in t)hasOwnProperty.call(t,p)&&(i[p]=t[p]);i.originalType=e,i[u]="string"==typeof e?e:o,c[1]=i;for(var l=2;l{r.r(t),r.d(t,{assets:()=>s,contentTitle:()=>p,default:()=>f,frontMatter:()=>i,metadata:()=>l,toc:()=>u});var n=r(4805),o=r(8),a=(r(9901),r(7522)),c=["components"],i={hide_table_of_contents:!0},p="Problem",l={unversionedId:"api/problem",id:"version-1.0.22-alpha/api/problem",title:"Problem",description:"text",source:"@site/versioned_docs/version-1.0.22-alpha/api/problem.md",sourceDirName:"api",slug:"/api/problem",permalink:"/docs/api/problem",draft:!1,tags:[],version:"1.0.22-alpha",frontMatter:{hide_table_of_contents:!0}},s={},u=[{value:"text",id:"text",level:2}],m={toc:u},d="wrapper";function f(e){var t=e.components,r=(0,o.Z)(e,c);return(0,a.kt)(d,(0,n.Z)({},m,r,{components:t,mdxType:"MDXLayout"}),(0,a.kt)("h1",{id:"problem"},"Problem"),(0,a.kt)("h2",{id:"text"},"text"),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-ts"},"export declare class Problem {\n code: code\n path: Path\n private data\n private source\n private writers\n parts?: Problem[]\n constructor(\n code: code,\n path: Path,\n data: ProblemData,\n source: ProblemSource,\n writers: ProblemWriters\n )\n toString(): string\n get message(): string\n get reason(): string\n get mustBe(): string\n}\n")))}f.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/3c576763.6bdfe4ca.js b/assets/js/3c576763.70d4e84e.js similarity index 64% rename from assets/js/3c576763.6bdfe4ca.js rename to assets/js/3c576763.70d4e84e.js index b87fb7c291..3b53a823de 100644 --- a/assets/js/3c576763.6bdfe4ca.js +++ b/assets/js/3c576763.70d4e84e.js @@ -1 +1 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[1749],{7522:(e,t,r)=>{r.d(t,{Zo:()=>u,kt:()=>m});var n=r(9901);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function p(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var l=n.createContext({}),c=function(e){var t=n.useContext(l),r=t;return e&&(r="function"==typeof e?e(t):p(p({},t),e)),r},u=function(e){var t=c(e.components);return n.createElement(l.Provider,{value:t},e.children)},f="mdxType",s={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},y=n.forwardRef((function(e,t){var r=e.components,o=e.mdxType,a=e.originalType,l=e.parentName,u=i(e,["components","mdxType","originalType","parentName"]),f=c(r),y=o,m=f["".concat(l,".").concat(y)]||f[y]||s[y]||a;return r?n.createElement(m,p(p({ref:t},u),{},{components:r})):n.createElement(m,p({ref:t},u))}));function m(e,t){var r=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var a=r.length,p=new Array(a);p[0]=y;var i={};for(var l in t)hasOwnProperty.call(t,l)&&(i[l]=t[l]);i.originalType=e,i[f]="string"==typeof e?e:o,p[1]=i;for(var c=2;c{r.r(t),r.d(t,{assets:()=>u,contentTitle:()=>l,default:()=>m,frontMatter:()=>i,metadata:()=>c,toc:()=>f});var n=r(3341),o=r(1792),a=(r(9901),r(7522)),p=["components"],i={hide_table_of_contents:!0},l="parseConfigTuple",c={unversionedId:"api/parseconfigtuple",id:"api/parseconfigtuple",title:"parseConfigTuple",description:"operator",source:"@site/docs/api/parseconfigtuple.md",sourceDirName:"api",slug:"/api/parseconfigtuple",permalink:"/docs/next/api/parseconfigtuple",draft:!1,tags:[],version:"current",frontMatter:{hide_table_of_contents:!0}},u={},f=[{value:"operator",id:"operator",level:2},{value:"tuple",id:"tuple",level:2}],s={toc:f},y="wrapper";function m(e){var t=e.components,r=(0,o.Z)(e,p);return(0,a.kt)(y,(0,n.Z)({},s,r,{components:t,mdxType:"MDXLayout"}),(0,a.kt)("h1",{id:"parseconfigtuple"},"parseConfigTuple"),(0,a.kt)("h2",{id:"operator"},"operator"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},(0,a.kt)("a",{parentName:"li",href:"/docs/next/api/parseconfigtuple"},":"))),(0,a.kt)("h2",{id:"tuple"},"tuple"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},'["type", ":", config]')))}m.isMDXComponent=!0}}]); \ No newline at end of file +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[1749],{7522:(e,t,r)=>{r.d(t,{Zo:()=>u,kt:()=>m});var n=r(9901);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function p(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var l=n.createContext({}),c=function(e){var t=n.useContext(l),r=t;return e&&(r="function"==typeof e?e(t):p(p({},t),e)),r},u=function(e){var t=c(e.components);return n.createElement(l.Provider,{value:t},e.children)},f="mdxType",s={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},y=n.forwardRef((function(e,t){var r=e.components,o=e.mdxType,a=e.originalType,l=e.parentName,u=i(e,["components","mdxType","originalType","parentName"]),f=c(r),y=o,m=f["".concat(l,".").concat(y)]||f[y]||s[y]||a;return r?n.createElement(m,p(p({ref:t},u),{},{components:r})):n.createElement(m,p({ref:t},u))}));function m(e,t){var r=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var a=r.length,p=new Array(a);p[0]=y;var i={};for(var l in t)hasOwnProperty.call(t,l)&&(i[l]=t[l]);i.originalType=e,i[f]="string"==typeof e?e:o,p[1]=i;for(var c=2;c{r.r(t),r.d(t,{assets:()=>u,contentTitle:()=>l,default:()=>m,frontMatter:()=>i,metadata:()=>c,toc:()=>f});var n=r(4805),o=r(8),a=(r(9901),r(7522)),p=["components"],i={hide_table_of_contents:!0},l="parseConfigTuple",c={unversionedId:"api/parseconfigtuple",id:"api/parseconfigtuple",title:"parseConfigTuple",description:"operator",source:"@site/docs/api/parseconfigtuple.md",sourceDirName:"api",slug:"/api/parseconfigtuple",permalink:"/docs/next/api/parseconfigtuple",draft:!1,tags:[],version:"current",frontMatter:{hide_table_of_contents:!0}},u={},f=[{value:"operator",id:"operator",level:2},{value:"tuple",id:"tuple",level:2}],s={toc:f},y="wrapper";function m(e){var t=e.components,r=(0,o.Z)(e,p);return(0,a.kt)(y,(0,n.Z)({},s,r,{components:t,mdxType:"MDXLayout"}),(0,a.kt)("h1",{id:"parseconfigtuple"},"parseConfigTuple"),(0,a.kt)("h2",{id:"operator"},"operator"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},(0,a.kt)("a",{parentName:"li",href:"/docs/next/api/parseconfigtuple"},":"))),(0,a.kt)("h2",{id:"tuple"},"tuple"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},'["type", ":", config]')))}m.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/3ca54c20.1f19ce29.js b/assets/js/3ca54c20.1f19ce29.js new file mode 100644 index 0000000000..f1c85a841c --- /dev/null +++ b/assets/js/3ca54c20.1f19ce29.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[2065],{7522:(e,n,t)=>{t.d(n,{Zo:()=>l,kt:()=>m});var r=t(9901);function o(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function s(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function a(e){for(var n=1;n=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var p=r.createContext({}),c=function(e){var n=r.useContext(p),t=n;return e&&(t="function"==typeof e?e(n):a(a({},n),e)),t},l=function(e){var n=c(e.components);return r.createElement(p.Provider,{value:n},e.children)},u="mdxType",d={inlineCode:"code",wrapper:function(e){var n=e.children;return r.createElement(r.Fragment,{},n)}},f=r.forwardRef((function(e,n){var t=e.components,o=e.mdxType,s=e.originalType,p=e.parentName,l=i(e,["components","mdxType","originalType","parentName"]),u=c(t),f=o,m=u["".concat(p,".").concat(f)]||u[f]||d[f]||s;return t?r.createElement(m,a(a({ref:n},l),{},{components:t})):r.createElement(m,a({ref:n},l))}));function m(e,n){var t=arguments,o=n&&n.mdxType;if("string"==typeof e||o){var s=t.length,a=new Array(s);a[0]=f;var i={};for(var p in n)hasOwnProperty.call(n,p)&&(i[p]=n[p]);i.originalType=e,i[u]="string"==typeof e?e:o,a[1]=i;for(var c=2;c{t.r(n),t.d(n,{assets:()=>l,contentTitle:()=>p,default:()=>m,frontMatter:()=>i,metadata:()=>c,toc:()=>u});var r=t(4805),o=t(8),s=(t(9901),t(7522)),a=["components"],i={hide_table_of_contents:!0},p="scope",c={unversionedId:"api/scope",id:"version-1.0.19-alpha/api/scope",title:"scope",description:"text",source:"@site/versioned_docs/version-1.0.19-alpha/api/scope.md",sourceDirName:"api",slug:"/api/scope",permalink:"/docs/1.0.19-alpha/api/scope",draft:!1,tags:[],version:"1.0.19-alpha",frontMatter:{hide_table_of_contents:!0}},l={},u=[{value:"text",id:"text",level:2},{value:"hide_table_of_contents: true",id:"hide_table_of_contents-true",level:2},{value:"text",id:"text-1",level:2}],d={toc:u},f="wrapper";function m(e){var n=e.components,t=(0,o.Z)(e,a);return(0,s.kt)(f,(0,r.Z)({},d,t,{components:n,mdxType:"MDXLayout"}),(0,s.kt)("h1",{id:"scope"},"scope"),(0,s.kt)("h2",{id:"text"},"text"),(0,s.kt)("pre",null,(0,s.kt)("code",{parentName:"pre",className:"language-ts"},"scope: ScopeParser\n")),(0,s.kt)("hr",null),(0,s.kt)("h2",{id:"hide_table_of_contents-true"},"hide_table_of_contents: true"),(0,s.kt)("h1",{id:"scope-1"},"Scope"),(0,s.kt)("h2",{id:"text-1"},"text"),(0,s.kt)("pre",null,(0,s.kt)("code",{parentName:"pre",className:"language-ts"},'export declare class Scope {\n #private\n aliases: Dict\n name: string\n config: ScopeConfig\n parseCache: FreezingCache\n constructor(aliases: Dict, opts?: ScopeOptions)\n getAnonymousQualifiedName(base: AnonymousTypeName): QualifiedTypeName\n addAnonymousTypeReference(referencedType: Type, ctx: ParseContext): Node\n get infer(): exportsOf\n compile(): Space>\n addParsedReferenceIfResolvable(\n name: name,\n ctx: ParseContext\n ): boolean\n resolve(name: name): Type\n resolveNode(node: Node): ResolvedNode\n resolveTypeNode(node: Node): TypeNode\n expressions: Expressions>\n intersection: import("./expressions.js").BinaryExpressionParser<\n resolutions,\n "&"\n >\n union: import("./expressions.js").BinaryExpressionParser<\n resolutions,\n "|"\n >\n arrayOf: import("./expressions.js").UnaryExpressionParser<\n resolutions,\n "[]"\n >\n keyOf: import("./expressions.js").UnaryExpressionParser<\n resolutions,\n "keyof"\n >\n valueOf: import("./expressions.js").UnvalidatedExpressionParser<\n resolutions,\n "==="\n >\n instanceOf: import("./expressions.js").UnvalidatedExpressionParser<\n resolutions,\n "instanceof"\n >\n narrow: import("./expressions.js").FunctionalExpressionParser<\n resolutions,\n "=>"\n >\n morph: import("./expressions.js").FunctionalExpressionParser<\n resolutions,\n "|>"\n >\n type: TypeParser>\n isResolvable(name: string): unknown\n}\n')))}m.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/3ca54c20.90e4e101.js b/assets/js/3ca54c20.90e4e101.js deleted file mode 100644 index e4529c60ab..0000000000 --- a/assets/js/3ca54c20.90e4e101.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[2065],{7522:(e,n,t)=>{t.d(n,{Zo:()=>l,kt:()=>m});var r=t(9901);function o(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function s(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function a(e){for(var n=1;n=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var p=r.createContext({}),c=function(e){var n=r.useContext(p),t=n;return e&&(t="function"==typeof e?e(n):a(a({},n),e)),t},l=function(e){var n=c(e.components);return r.createElement(p.Provider,{value:n},e.children)},u="mdxType",d={inlineCode:"code",wrapper:function(e){var n=e.children;return r.createElement(r.Fragment,{},n)}},f=r.forwardRef((function(e,n){var t=e.components,o=e.mdxType,s=e.originalType,p=e.parentName,l=i(e,["components","mdxType","originalType","parentName"]),u=c(t),f=o,m=u["".concat(p,".").concat(f)]||u[f]||d[f]||s;return t?r.createElement(m,a(a({ref:n},l),{},{components:t})):r.createElement(m,a({ref:n},l))}));function m(e,n){var t=arguments,o=n&&n.mdxType;if("string"==typeof e||o){var s=t.length,a=new Array(s);a[0]=f;var i={};for(var p in n)hasOwnProperty.call(n,p)&&(i[p]=n[p]);i.originalType=e,i[u]="string"==typeof e?e:o,a[1]=i;for(var c=2;c{t.r(n),t.d(n,{assets:()=>l,contentTitle:()=>p,default:()=>m,frontMatter:()=>i,metadata:()=>c,toc:()=>u});var r=t(3341),o=t(1792),s=(t(9901),t(7522)),a=["components"],i={hide_table_of_contents:!0},p="scope",c={unversionedId:"api/scope",id:"version-1.0.19-alpha/api/scope",title:"scope",description:"text",source:"@site/versioned_docs/version-1.0.19-alpha/api/scope.md",sourceDirName:"api",slug:"/api/scope",permalink:"/docs/1.0.19-alpha/api/scope",draft:!1,tags:[],version:"1.0.19-alpha",frontMatter:{hide_table_of_contents:!0}},l={},u=[{value:"text",id:"text",level:2},{value:"hide_table_of_contents: true",id:"hide_table_of_contents-true",level:2},{value:"text",id:"text-1",level:2}],d={toc:u},f="wrapper";function m(e){var n=e.components,t=(0,o.Z)(e,a);return(0,s.kt)(f,(0,r.Z)({},d,t,{components:n,mdxType:"MDXLayout"}),(0,s.kt)("h1",{id:"scope"},"scope"),(0,s.kt)("h2",{id:"text"},"text"),(0,s.kt)("pre",null,(0,s.kt)("code",{parentName:"pre",className:"language-ts"},"scope: ScopeParser\n")),(0,s.kt)("hr",null),(0,s.kt)("h2",{id:"hide_table_of_contents-true"},"hide_table_of_contents: true"),(0,s.kt)("h1",{id:"scope-1"},"Scope"),(0,s.kt)("h2",{id:"text-1"},"text"),(0,s.kt)("pre",null,(0,s.kt)("code",{parentName:"pre",className:"language-ts"},'export declare class Scope {\n #private\n aliases: Dict\n name: string\n config: ScopeConfig\n parseCache: FreezingCache\n constructor(aliases: Dict, opts?: ScopeOptions)\n getAnonymousQualifiedName(base: AnonymousTypeName): QualifiedTypeName\n addAnonymousTypeReference(referencedType: Type, ctx: ParseContext): Node\n get infer(): exportsOf\n compile(): Space>\n addParsedReferenceIfResolvable(\n name: name,\n ctx: ParseContext\n ): boolean\n resolve(name: name): Type\n resolveNode(node: Node): ResolvedNode\n resolveTypeNode(node: Node): TypeNode\n expressions: Expressions>\n intersection: import("./expressions.js").BinaryExpressionParser<\n resolutions,\n "&"\n >\n union: import("./expressions.js").BinaryExpressionParser<\n resolutions,\n "|"\n >\n arrayOf: import("./expressions.js").UnaryExpressionParser<\n resolutions,\n "[]"\n >\n keyOf: import("./expressions.js").UnaryExpressionParser<\n resolutions,\n "keyof"\n >\n valueOf: import("./expressions.js").UnvalidatedExpressionParser<\n resolutions,\n "==="\n >\n instanceOf: import("./expressions.js").UnvalidatedExpressionParser<\n resolutions,\n "instanceof"\n >\n narrow: import("./expressions.js").FunctionalExpressionParser<\n resolutions,\n "=>"\n >\n morph: import("./expressions.js").FunctionalExpressionParser<\n resolutions,\n "|>"\n >\n type: TypeParser>\n isResolvable(name: string): unknown\n}\n')))}m.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/4100.55b87735.js b/assets/js/4100.55b87735.js new file mode 100644 index 0000000000..442ff5dca9 --- /dev/null +++ b/assets/js/4100.55b87735.js @@ -0,0 +1,74 @@ +(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[4100],{6832:(t,e,n)=>{"use strict";var r=n(626);e.Z=void 0;var o=r(n(618)),i=n(1250),a=(0,o.default)((0,i.jsx)("path",{d:"m12 8-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"}),"ExpandLess");e.Z=a},931:(t,e,n)=>{"use strict";var r=n(626);e.Z=void 0;var o=r(n(618)),i=n(1250),a=(0,o.default)((0,i.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore");e.Z=a},618:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r.createSvgIcon}});var r=n(968)},5850:(t,e,n)=>{"use strict";n.d(e,{ZP:()=>S});var r=n(8),o=n(4805),i=n(3839),a=n(571),s=n(7417),u=n(6047),l=n(7932),c=n(5837),d=n(529),p=n(3734),f=n(4517),v=n(9901),h=n(6196);function m(t){return(0,h.Z)("MuiMasonry",t)}(0,n(132).Z)("MuiMasonry",["root"]);var g=n(1250);const y=["children","className","component","columns","spacing","defaultColumns","defaultHeight","defaultSpacing"],b=t=>Number(t.replace("px","")),x={flexBasis:"100%",width:0,margin:0,padding:0},w=(0,s.ZP)("div",{name:"MuiMasonry",slot:"Root",overridesResolver:(t,e)=>[e.root]})((({ownerState:t,theme:e})=>{let n={width:"100%",display:"flex",flexFlow:"column wrap",alignContent:"flex-start",boxSizing:"border-box","& > *":{boxSizing:"border-box"}};const r={};if(t.isSSR){const i={},a=b(e.spacing(t.defaultSpacing));for(let e=1;e<=t.defaultColumns;e+=1)i[`&:nth-of-type(${t.defaultColumns}n+${e%t.defaultColumns})`]={order:e};return r.height=t.defaultHeight,r.margin=-a/2,r["& > *"]=(0,o.Z)({},n["& > *"],i,{margin:a/2,width:`calc(${(100/t.defaultColumns).toFixed(2)}% - ${a}px)`}),(0,o.Z)({},n,r)}const i=(0,l.P$)({values:t.spacing,breakpoints:e.breakpoints.values}),a=(0,c.hB)(e);n=(0,d.Z)(n,(0,l.k9)({theme:e},i,(e=>{let n;if("string"==typeof e&&!Number.isNaN(Number(e))||"number"==typeof e){const t=Number(e);n=(0,c.NA)(a,t)}else n=e;return(0,o.Z)({margin:`calc(0px - (${n} / 2))`,"& > *":{margin:`calc(${n} / 2)`}},t.maxColumnHeight&&{height:"number"==typeof n?Math.ceil(t.maxColumnHeight+b(n)):`calc(${t.maxColumnHeight}px + ${n})`})})));const s=(0,l.P$)({values:t.columns,breakpoints:e.breakpoints.values});return n=(0,d.Z)(n,(0,l.k9)({theme:e},s,(t=>({"& > *":{width:`calc(${`${(100/Number(t)).toFixed(2)}%`} - ${"string"==typeof i&&!Number.isNaN(Number(i))||"number"==typeof i?(0,c.NA)(a,Number(i)):"0px"})`}})))),"object"==typeof i&&(n=(0,d.Z)(n,(0,l.k9)({theme:e},i,((t,e)=>{if(e){const n=Number(t),r=Object.keys(s).pop(),o=(0,c.NA)(a,n);return{"& > *":{width:`calc(${`${(100/("object"==typeof s?s[e]||s[r]:s)).toFixed(2)}%`} - ${o})`}}}return null})))),n})),S=v.forwardRef((function(t,e){const n=(0,u.Z)({props:t,name:"MuiMasonry"}),{children:s,className:l,component:c="div",columns:d=4,spacing:h=1,defaultColumns:S,defaultHeight:E,defaultSpacing:C}=n,T=(0,r.Z)(n,y),P=v.useRef(),[R,M]=v.useState(),A=!R&&E&&void 0!==S&&void 0!==C,[V,k]=v.useState(A?S-1:0),L=(0,o.Z)({},n,{spacing:h,columns:d,maxColumnHeight:R,defaultColumns:S,defaultHeight:E,defaultSpacing:C,isSSR:A}),Z=(t=>{const{classes:e}=t;return(0,i.Z)({root:["root"]},m,e)})(L),j=v.useRef("undefined"==typeof ResizeObserver?void 0:new ResizeObserver((t=>{if(!P.current||!t||0===t.length)return;const e=P.current,n=P.current.firstChild,r=e.clientWidth,o=n.clientWidth;if(0===r||0===o)return;const i=window.getComputedStyle(n),s=b(i.marginLeft),u=b(i.marginRight),l=Math.round(r/(o+s+u)),c=new Array(l).fill(0);let d=!1;e.childNodes.forEach((t=>{if(t.nodeType!==Node.ELEMENT_NODE||"line-break"===t.dataset.class||d)return;const e=window.getComputedStyle(t),n=b(e.marginTop),r=b(e.marginBottom),o=b(e.height)?Math.ceil(b(e.height))+n+r:0;if(0!==o){for(let e=0;e{M(Math.max(...c)),k(l>0?l-1:0)}))})));v.useEffect((()=>{const t=j.current;if(void 0!==t)return P.current&&P.current.childNodes.forEach((e=>{t.observe(e)})),()=>t?t.disconnect():{}}),[d,h,s]);const D=(0,p.Z)(e,P),O=new Array(V).fill("").map(((t,e)=>(0,g.jsx)("span",{"data-class":"line-break",style:(0,o.Z)({},x,{order:e+1})},e)));return(0,g.jsxs)(w,(0,o.Z)({as:c,className:(0,f.Z)(Z.root,l),ref:D,ownerState:L},T,{children:[s,O]}))}))},3760:(t,e,n)=>{"use strict";n.d(e,{Z:()=>et});var r=n(8),o=n(4805),i=n(9901),a=n(4517),s=n(8621),u=n(3839),l=n(6959),c=n(7417),d=n(6047),p=n(2433),f=n(9271),v=n(6334);var h=n(5701);const m=i.createContext(null);function g(t,e){var n=Object.create(null);return t&&i.Children.map(t,(function(t){return t})).forEach((function(t){n[t.key]=function(t){return e&&(0,i.isValidElement)(t)?e(t):t}(t)})),n}function y(t,e,n){return null!=n[e]?n[e]:t.props[e]}function b(t,e,n){var r=g(t.children),o=function(t,e){function n(n){return n in e?e[n]:t[n]}t=t||{},e=e||{};var r,o=Object.create(null),i=[];for(var a in t)a in e?i.length&&(o[a]=i,i=[]):i.push(a);var s={};for(var u in e){if(o[u])for(r=0;r{if(!l&&null!=c){const t=setTimeout(c,d);return()=>{clearTimeout(t)}}}),[c,l,d]),(0,C.jsx)("span",{className:v,style:h,children:(0,C.jsx)("span",{className:m})})};var P=n(132);const R=(0,P.Z)("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),M=["center","classes","className"];let A,V,k,L,Z=t=>t;const j=(0,E.F4)(A||(A=Z` + 0% { + transform: scale(0); + opacity: 0.1; + } + + 100% { + transform: scale(1); + opacity: 0.3; + } +`)),D=(0,E.F4)(V||(V=Z` + 0% { + opacity: 1; + } + + 100% { + opacity: 0; + } +`)),O=(0,E.F4)(k||(k=Z` + 0% { + transform: scale(1); + } + + 50% { + transform: scale(0.92); + } + + 100% { + transform: scale(1); + } +`)),B=(0,c.ZP)("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),I=(0,c.ZP)(T,{name:"MuiTouchRipple",slot:"Ripple"})(L||(L=Z` + opacity: 0; + position: absolute; + + &.${0} { + opacity: 0.3; + transform: scale(1); + animation-name: ${0}; + animation-duration: ${0}ms; + animation-timing-function: ${0}; + } + + &.${0} { + animation-duration: ${0}ms; + } + + & .${0} { + opacity: 1; + display: block; + width: 100%; + height: 100%; + border-radius: 50%; + background-color: currentColor; + } + + & .${0} { + opacity: 0; + animation-name: ${0}; + animation-duration: ${0}ms; + animation-timing-function: ${0}; + } + + & .${0} { + position: absolute; + /* @noflip */ + left: 0px; + top: 0; + animation-name: ${0}; + animation-duration: 2500ms; + animation-timing-function: ${0}; + animation-iteration-count: infinite; + animation-delay: 200ms; + } +`),R.rippleVisible,j,550,(({theme:t})=>t.transitions.easing.easeInOut),R.ripplePulsate,(({theme:t})=>t.transitions.duration.shorter),R.child,R.childLeaving,D,550,(({theme:t})=>t.transitions.easing.easeInOut),R.childPulsate,O,(({theme:t})=>t.transitions.easing.easeInOut)),F=i.forwardRef((function(t,e){const n=(0,d.Z)({props:t,name:"MuiTouchRipple"}),{center:s=!1,classes:u={},className:l}=n,c=(0,r.Z)(n,M),[p,f]=i.useState([]),v=i.useRef(0),h=i.useRef(null);i.useEffect((()=>{h.current&&(h.current(),h.current=null)}),[p]);const m=i.useRef(!1),g=i.useRef(null),y=i.useRef(null),b=i.useRef(null);i.useEffect((()=>()=>{clearTimeout(g.current)}),[]);const x=i.useCallback((t=>{const{pulsate:e,rippleX:n,rippleY:r,rippleSize:o,cb:i}=t;f((t=>[...t,(0,C.jsx)(I,{classes:{ripple:(0,a.Z)(u.ripple,R.ripple),rippleVisible:(0,a.Z)(u.rippleVisible,R.rippleVisible),ripplePulsate:(0,a.Z)(u.ripplePulsate,R.ripplePulsate),child:(0,a.Z)(u.child,R.child),childLeaving:(0,a.Z)(u.childLeaving,R.childLeaving),childPulsate:(0,a.Z)(u.childPulsate,R.childPulsate)},timeout:550,pulsate:e,rippleX:n,rippleY:r,rippleSize:o},v.current)])),v.current+=1,h.current=i}),[u]),w=i.useCallback(((t={},e={},n=(()=>{}))=>{const{pulsate:r=!1,center:o=s||e.pulsate,fakeElement:i=!1}=e;if("mousedown"===(null==t?void 0:t.type)&&m.current)return void(m.current=!1);"touchstart"===(null==t?void 0:t.type)&&(m.current=!0);const a=i?null:b.current,u=a?a.getBoundingClientRect():{width:0,height:0,left:0,top:0};let l,c,d;if(o||void 0===t||0===t.clientX&&0===t.clientY||!t.clientX&&!t.touches)l=Math.round(u.width/2),c=Math.round(u.height/2);else{const{clientX:e,clientY:n}=t.touches&&t.touches.length>0?t.touches[0]:t;l=Math.round(e-u.left),c=Math.round(n-u.top)}if(o)d=Math.sqrt((2*u.width**2+u.height**2)/3),d%2==0&&(d+=1);else{const t=2*Math.max(Math.abs((a?a.clientWidth:0)-l),l)+2,e=2*Math.max(Math.abs((a?a.clientHeight:0)-c),c)+2;d=Math.sqrt(t**2+e**2)}null!=t&&t.touches?null===y.current&&(y.current=()=>{x({pulsate:r,rippleX:l,rippleY:c,rippleSize:d,cb:n})},g.current=setTimeout((()=>{y.current&&(y.current(),y.current=null)}),80)):x({pulsate:r,rippleX:l,rippleY:c,rippleSize:d,cb:n})}),[s,x]),E=i.useCallback((()=>{w({},{pulsate:!0})}),[w]),T=i.useCallback(((t,e)=>{if(clearTimeout(g.current),"touchend"===(null==t?void 0:t.type)&&y.current)return y.current(),y.current=null,void(g.current=setTimeout((()=>{T(t,e)})));y.current=null,f((t=>t.length>0?t.slice(1):t)),h.current=e}),[]);return i.useImperativeHandle(e,(()=>({pulsate:E,start:w,stop:T})),[E,w,T]),(0,C.jsx)(B,(0,o.Z)({className:(0,a.Z)(R.root,u.root,l),ref:b},c,{children:(0,C.jsx)(S,{component:null,exit:!0,children:p})}))}));var z=n(6196);function N(t){return(0,z.Z)("MuiButtonBase",t)}const $=(0,P.Z)("MuiButtonBase",["root","disabled","focusVisible"]),U=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],W=(0,c.ZP)("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(t,e)=>e.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${$.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),H=i.forwardRef((function(t,e){const n=(0,d.Z)({props:t,name:"MuiButtonBase"}),{action:s,centerRipple:l=!1,children:c,className:h,component:m="button",disabled:g=!1,disableRipple:y=!1,disableTouchRipple:b=!1,focusRipple:x=!1,LinkComponent:w="a",onBlur:S,onClick:E,onContextMenu:T,onDragLeave:P,onFocus:R,onFocusVisible:M,onKeyDown:A,onKeyUp:V,onMouseDown:k,onMouseLeave:L,onMouseUp:Z,onTouchEnd:j,onTouchMove:D,onTouchStart:O,tabIndex:B=0,TouchRippleProps:I,touchRippleRef:z,type:$}=n,H=(0,r.Z)(n,U),_=i.useRef(null),Y=i.useRef(null),q=(0,p.Z)(Y,z),{isFocusVisibleRef:X,onFocus:G,onBlur:K,ref:J}=(0,v.Z)(),[Q,tt]=i.useState(!1);g&&Q&&tt(!1),i.useImperativeHandle(s,(()=>({focusVisible:()=>{tt(!0),_.current.focus()}})),[]);const[et,nt]=i.useState(!1);i.useEffect((()=>{nt(!0)}),[]);const rt=et&&!y&&!g;function ot(t,e,n=b){return(0,f.Z)((r=>{e&&e(r);return!n&&Y.current&&Y.current[t](r),!0}))}i.useEffect((()=>{Q&&x&&!y&&et&&Y.current.pulsate()}),[y,x,Q,et]);const it=ot("start",k),at=ot("stop",T),st=ot("stop",P),ut=ot("stop",Z),lt=ot("stop",(t=>{Q&&t.preventDefault(),L&&L(t)})),ct=ot("start",O),dt=ot("stop",j),pt=ot("stop",D),ft=ot("stop",(t=>{K(t),!1===X.current&&tt(!1),S&&S(t)}),!1),vt=(0,f.Z)((t=>{_.current||(_.current=t.currentTarget),G(t),!0===X.current&&(tt(!0),M&&M(t)),R&&R(t)})),ht=()=>{const t=_.current;return m&&"button"!==m&&!("A"===t.tagName&&t.href)},mt=i.useRef(!1),gt=(0,f.Z)((t=>{x&&!mt.current&&Q&&Y.current&&" "===t.key&&(mt.current=!0,Y.current.stop(t,(()=>{Y.current.start(t)}))),t.target===t.currentTarget&&ht()&&" "===t.key&&t.preventDefault(),A&&A(t),t.target===t.currentTarget&&ht()&&"Enter"===t.key&&!g&&(t.preventDefault(),E&&E(t))})),yt=(0,f.Z)((t=>{x&&" "===t.key&&Y.current&&Q&&!t.defaultPrevented&&(mt.current=!1,Y.current.stop(t,(()=>{Y.current.pulsate(t)}))),V&&V(t),E&&t.target===t.currentTarget&&ht()&&" "===t.key&&!t.defaultPrevented&&E(t)}));let bt=m;"button"===bt&&(H.href||H.to)&&(bt=w);const xt={};"button"===bt?(xt.type=void 0===$?"button":$,xt.disabled=g):(H.href||H.to||(xt.role="button"),g&&(xt["aria-disabled"]=g));const wt=(0,p.Z)(e,J,_);const St=(0,o.Z)({},n,{centerRipple:l,component:m,disabled:g,disableRipple:y,disableTouchRipple:b,focusRipple:x,tabIndex:B,focusVisible:Q}),Et=(t=>{const{disabled:e,focusVisible:n,focusVisibleClassName:r,classes:o}=t,i={root:["root",e&&"disabled",n&&"focusVisible"]},a=(0,u.Z)(i,N,o);return n&&r&&(a.root+=` ${r}`),a})(St);return(0,C.jsxs)(W,(0,o.Z)({as:bt,className:(0,a.Z)(Et.root,h),ownerState:St,onBlur:ft,onClick:E,onContextMenu:at,onFocus:vt,onKeyDown:gt,onKeyUp:yt,onMouseDown:it,onMouseLeave:lt,onMouseUp:ut,onDragLeave:st,onTouchEnd:dt,onTouchMove:pt,onTouchStart:ct,ref:wt,tabIndex:g?-1:B,type:$},xt,H,{children:[c,rt?(0,C.jsx)(F,(0,o.Z)({ref:q,center:l},I)):null]}))}));var _=n(3424);function Y(t){return(0,z.Z)("MuiButton",t)}const q=(0,P.Z)("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]);const X=i.createContext({}),G=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],K=t=>(0,o.Z)({},"small"===t.size&&{"& > *:nth-of-type(1)":{fontSize:18}},"medium"===t.size&&{"& > *:nth-of-type(1)":{fontSize:20}},"large"===t.size&&{"& > *:nth-of-type(1)":{fontSize:22}}),J=(0,c.ZP)(H,{shouldForwardProp:t=>(0,c.FO)(t)||"classes"===t,name:"MuiButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e[n.variant],e[`${n.variant}${(0,_.Z)(n.color)}`],e[`size${(0,_.Z)(n.size)}`],e[`${n.variant}Size${(0,_.Z)(n.size)}`],"inherit"===n.color&&e.colorInherit,n.disableElevation&&e.disableElevation,n.fullWidth&&e.fullWidth]}})((({theme:t,ownerState:e})=>{var n,r;return(0,o.Z)({},t.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(t.vars||t).shape.borderRadius,transition:t.transitions.create(["background-color","box-shadow","border-color","color"],{duration:t.transitions.duration.short}),"&:hover":(0,o.Z)({textDecoration:"none",backgroundColor:t.vars?`rgba(${t.vars.palette.text.primaryChannel} / ${t.vars.palette.action.hoverOpacity})`:(0,l.Fq)(t.palette.text.primary,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===e.variant&&"inherit"!==e.color&&{backgroundColor:t.vars?`rgba(${t.vars.palette[e.color].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:(0,l.Fq)(t.palette[e.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===e.variant&&"inherit"!==e.color&&{border:`1px solid ${(t.vars||t).palette[e.color].main}`,backgroundColor:t.vars?`rgba(${t.vars.palette[e.color].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:(0,l.Fq)(t.palette[e.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===e.variant&&{backgroundColor:(t.vars||t).palette.grey.A100,boxShadow:(t.vars||t).shadows[4],"@media (hover: none)":{boxShadow:(t.vars||t).shadows[2],backgroundColor:(t.vars||t).palette.grey[300]}},"contained"===e.variant&&"inherit"!==e.color&&{backgroundColor:(t.vars||t).palette[e.color].dark,"@media (hover: none)":{backgroundColor:(t.vars||t).palette[e.color].main}}),"&:active":(0,o.Z)({},"contained"===e.variant&&{boxShadow:(t.vars||t).shadows[8]}),[`&.${q.focusVisible}`]:(0,o.Z)({},"contained"===e.variant&&{boxShadow:(t.vars||t).shadows[6]}),[`&.${q.disabled}`]:(0,o.Z)({color:(t.vars||t).palette.action.disabled},"outlined"===e.variant&&{border:`1px solid ${(t.vars||t).palette.action.disabledBackground}`},"contained"===e.variant&&{color:(t.vars||t).palette.action.disabled,boxShadow:(t.vars||t).shadows[0],backgroundColor:(t.vars||t).palette.action.disabledBackground})},"text"===e.variant&&{padding:"6px 8px"},"text"===e.variant&&"inherit"!==e.color&&{color:(t.vars||t).palette[e.color].main},"outlined"===e.variant&&{padding:"5px 15px",border:"1px solid currentColor"},"outlined"===e.variant&&"inherit"!==e.color&&{color:(t.vars||t).palette[e.color].main,border:t.vars?`1px solid rgba(${t.vars.palette[e.color].mainChannel} / 0.5)`:`1px solid ${(0,l.Fq)(t.palette[e.color].main,.5)}`},"contained"===e.variant&&{color:t.vars?t.vars.palette.text.primary:null==(n=(r=t.palette).getContrastText)?void 0:n.call(r,t.palette.grey[300]),backgroundColor:(t.vars||t).palette.grey[300],boxShadow:(t.vars||t).shadows[2]},"contained"===e.variant&&"inherit"!==e.color&&{color:(t.vars||t).palette[e.color].contrastText,backgroundColor:(t.vars||t).palette[e.color].main},"inherit"===e.color&&{color:"inherit",borderColor:"currentColor"},"small"===e.size&&"text"===e.variant&&{padding:"4px 5px",fontSize:t.typography.pxToRem(13)},"large"===e.size&&"text"===e.variant&&{padding:"8px 11px",fontSize:t.typography.pxToRem(15)},"small"===e.size&&"outlined"===e.variant&&{padding:"3px 9px",fontSize:t.typography.pxToRem(13)},"large"===e.size&&"outlined"===e.variant&&{padding:"7px 21px",fontSize:t.typography.pxToRem(15)},"small"===e.size&&"contained"===e.variant&&{padding:"4px 10px",fontSize:t.typography.pxToRem(13)},"large"===e.size&&"contained"===e.variant&&{padding:"8px 22px",fontSize:t.typography.pxToRem(15)},e.fullWidth&&{width:"100%"})}),(({ownerState:t})=>t.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${q.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${q.disabled}`]:{boxShadow:"none"}})),Q=(0,c.ZP)("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.startIcon,e[`iconSize${(0,_.Z)(n.size)}`]]}})((({ownerState:t})=>(0,o.Z)({display:"inherit",marginRight:8,marginLeft:-4},"small"===t.size&&{marginLeft:-2},K(t)))),tt=(0,c.ZP)("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.endIcon,e[`iconSize${(0,_.Z)(n.size)}`]]}})((({ownerState:t})=>(0,o.Z)({display:"inherit",marginRight:-4,marginLeft:8},"small"===t.size&&{marginRight:-2},K(t)))),et=i.forwardRef((function(t,e){const n=i.useContext(X),l=(0,s.Z)(n,t),c=(0,d.Z)({props:l,name:"MuiButton"}),{children:p,color:f="primary",component:v="button",className:h,disabled:m=!1,disableElevation:g=!1,disableFocusRipple:y=!1,endIcon:b,focusVisibleClassName:x,fullWidth:w=!1,size:S="medium",startIcon:E,type:T,variant:P="text"}=c,R=(0,r.Z)(c,G),M=(0,o.Z)({},c,{color:f,component:v,disabled:m,disableElevation:g,disableFocusRipple:y,fullWidth:w,size:S,type:T,variant:P}),A=(t=>{const{color:e,disableElevation:n,fullWidth:r,size:i,variant:a,classes:s}=t,l={root:["root",a,`${a}${(0,_.Z)(e)}`,`size${(0,_.Z)(i)}`,`${a}Size${(0,_.Z)(i)}`,"inherit"===e&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${(0,_.Z)(i)}`],endIcon:["endIcon",`iconSize${(0,_.Z)(i)}`]},c=(0,u.Z)(l,Y,s);return(0,o.Z)({},s,c)})(M),V=E&&(0,C.jsx)(Q,{className:A.startIcon,ownerState:M,children:E}),k=b&&(0,C.jsx)(tt,{className:A.endIcon,ownerState:M,children:b});return(0,C.jsxs)(J,(0,o.Z)({ownerState:M,className:(0,a.Z)(n.className,A.root,h),component:v,disabled:m,focusRipple:!y,focusVisibleClassName:(0,a.Z)(A.focusVisible,x),ref:e,type:T},R,{classes:A,children:[V,p,k]}))}))},7699:(t,e,n)=>{"use strict";n.d(e,{Z:()=>S});var r=n(4805),o=n(8),i=n(9901),a=n(4517),s=n(3839),u=n(7417),l=n(6047),c=n(6959);const d=t=>{let e;return e=t<1?5.11916*t**2:4.5*Math.log(t+1)+2,(e/100).toFixed(2)};var p=n(132),f=n(6196);function v(t){return(0,f.Z)("MuiPaper",t)}(0,p.Z)("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);var h=n(1250);const m=["className","component","elevation","square","variant"],g=(0,u.ZP)("div",{name:"MuiPaper",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e[n.variant],!n.square&&e.rounded,"elevation"===n.variant&&e[`elevation${n.elevation}`]]}})((({theme:t,ownerState:e})=>{var n;return(0,r.Z)({backgroundColor:(t.vars||t).palette.background.paper,color:(t.vars||t).palette.text.primary,transition:t.transitions.create("box-shadow")},!e.square&&{borderRadius:t.shape.borderRadius},"outlined"===e.variant&&{border:`1px solid ${(t.vars||t).palette.divider}`},"elevation"===e.variant&&(0,r.Z)({boxShadow:(t.vars||t).shadows[e.elevation]},!t.vars&&"dark"===t.palette.mode&&{backgroundImage:`linear-gradient(${(0,c.Fq)("#fff",d(e.elevation))}, ${(0,c.Fq)("#fff",d(e.elevation))})`},t.vars&&{backgroundImage:null==(n=t.vars.overlays)?void 0:n[e.elevation]}))})),y=i.forwardRef((function(t,e){const n=(0,l.Z)({props:t,name:"MuiPaper"}),{className:i,component:u="div",elevation:c=1,square:d=!1,variant:p="elevation"}=n,f=(0,o.Z)(n,m),y=(0,r.Z)({},n,{component:u,elevation:c,square:d,variant:p}),b=(t=>{const{square:e,elevation:n,variant:r,classes:o}=t,i={root:["root",r,!e&&"rounded","elevation"===r&&`elevation${n}`]};return(0,s.Z)(i,v,o)})(y);return(0,h.jsx)(g,(0,r.Z)({as:u,ownerState:y,className:(0,a.Z)(b.root,i),ref:e},f))}));function b(t){return(0,f.Z)("MuiCard",t)}(0,p.Z)("MuiCard",["root"]);const x=["className","raised"],w=(0,u.ZP)(y,{name:"MuiCard",slot:"Root",overridesResolver:(t,e)=>e.root})((()=>({overflow:"hidden"}))),S=i.forwardRef((function(t,e){const n=(0,l.Z)({props:t,name:"MuiCard"}),{className:i,raised:u=!1}=n,c=(0,o.Z)(n,x),d=(0,r.Z)({},n,{raised:u}),p=(t=>{const{classes:e}=t;return(0,s.Z)({root:["root"]},b,e)})(d);return(0,h.jsx)(w,(0,r.Z)({className:(0,a.Z)(p.root,i),elevation:u?8:void 0,ref:e,ownerState:d},c))}))},5569:(t,e,n)=>{"use strict";n.d(e,{Z:()=>x});var r=n(8),o=n(4805),i=n(9901),a=n(4517),s=n(1221),u=n(3839),l=n(7417),c=n(6047),d=n(3424),p=n(132),f=n(6196);function v(t){return(0,f.Z)("MuiTypography",t)}(0,p.Z)("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);var h=n(1250);const m=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],g=(0,l.ZP)("span",{name:"MuiTypography",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.variant&&e[n.variant],"inherit"!==n.align&&e[`align${(0,d.Z)(n.align)}`],n.noWrap&&e.noWrap,n.gutterBottom&&e.gutterBottom,n.paragraph&&e.paragraph]}})((({theme:t,ownerState:e})=>(0,o.Z)({margin:0},e.variant&&t.typography[e.variant],"inherit"!==e.align&&{textAlign:e.align},e.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},e.gutterBottom&&{marginBottom:"0.35em"},e.paragraph&&{marginBottom:16}))),y={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},b={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},x=i.forwardRef((function(t,e){const n=(0,c.Z)({props:t,name:"MuiTypography"}),i=(t=>b[t]||t)(n.color),l=(0,s.Z)((0,o.Z)({},n,{color:i})),{align:p="inherit",className:f,component:x,gutterBottom:w=!1,noWrap:S=!1,paragraph:E=!1,variant:C="body1",variantMapping:T=y}=l,P=(0,r.Z)(l,m),R=(0,o.Z)({},l,{align:p,color:i,className:f,component:x,gutterBottom:w,noWrap:S,paragraph:E,variant:C,variantMapping:T}),M=x||(E?"p":T[C]||y[C])||"span",A=(t=>{const{align:e,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=t,s={root:["root",i,"inherit"!==t.align&&`align${(0,d.Z)(e)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return(0,u.Z)(s,v,a)})(R);return(0,h.jsx)(g,(0,o.Z)({as:M,ref:e,ownerState:R,className:(0,a.Z)(A.root,f)},P))}))},7188:(t,e,n)=>{"use strict";n.d(e,{Z:()=>l});var r=n(4805),o=n(2927);function i(t){return String(parseFloat(t)).length===String(t).length}function a(t){return parseFloat(t)}function s(t){return(e,n)=>{const r=String(e).match(/[\d.\-+]*\s*(.*)/)[1]||"";if(r===n)return e;let o=a(e);"px"!==r&&("em"===r||"rem"===r)&&(o=a(e)*a(t));let i=o;if("px"!==n)if("em"===n)i=o/a(t);else{if("rem"!==n)return e;i=o/a(t)}return parseFloat(i.toFixed(5))+n}}function u({lineHeight:t,pixels:e,htmlFontSize:n}){return e/(t*n)}function l(t,e={}){const{breakpoints:n=["sm","md","lg"],disableAlign:a=!1,factor:l=2,variants:c=["h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","caption","button","overline"]}=e,d=(0,r.Z)({},t);d.typography=(0,r.Z)({},d.typography);const p=d.typography,f=s(p.htmlFontSize),v=n.map((t=>d.breakpoints.values[t]));return c.forEach((t=>{const e=p[t],n=parseFloat(f(e.fontSize,"rem"));if(n<=1)return;const s=n,c=1+(s-1)/l;let{lineHeight:d}=e;if(!i(d)&&!a)throw new Error((0,o.Z)(6));i(d)||(d=parseFloat(f(d,"rem"))/parseFloat(n));let h=null;a||(h=t=>function({size:t,grid:e}){const n=t-t%e,r=n+e;return t-n{let o=e+s*n;null!==i&&(o=i(o)),a[`@media (min-width:${n}px)`]={[t]:`${Math.round(1e4*o)/1e4}${r}`}})),a}({cssProperty:"fontSize",min:c,max:s,unit:"rem",breakpoints:v,transform:h}))})),d}},4043:(t,e,n)=>{"use strict";var r;n.d(e,{Z:()=>d});var o=n(9901),i=n(1328),a=n(5576),s=n(9115);function u(t,e,n,r,i){const[a,u]=o.useState((()=>i&&n?n(t).matches:r?r(t).matches:e));return(0,s.Z)((()=>{let e=!0;if(!n)return;const r=n(t),o=()=>{e&&u(r.matches)};return o(),r.addListener(o),()=>{e=!1,r.removeListener(o)}}),[t,n]),a}const l=(r||(r=n.t(o,2))).useSyncExternalStore;function c(t,e,n,r,i){const a=o.useCallback((()=>e),[e]),s=o.useMemo((()=>{if(i&&n)return()=>n(t).matches;if(null!==r){const{matches:e}=r(t);return()=>e}return a}),[a,t,r,i,n]),[u,c]=o.useMemo((()=>{if(null===n)return[a,()=>()=>{}];const e=n(t);return[()=>e.matches,t=>(e.addListener(t),()=>{e.removeListener(t)})]}),[a,n,t]);return l(c,u,s)}function d(t,e={}){const n=(0,i.Z)(),r="undefined"!=typeof window&&void 0!==window.matchMedia,{defaultMatches:o=!1,matchMedia:s=(r?window.matchMedia:null),ssrMatchMedia:d=null,noSsr:p=!1}=(0,a.Z)({name:"MuiUseMediaQuery",props:e,theme:n});let f="function"==typeof t?t(n):t;f=f.replace(/^@media( ?)/m,"");return(void 0!==l?c:u)(f,o,s,d,p)}},968:(t,e,n)=>{"use strict";n.r(e),n.d(e,{capitalize:()=>o.Z,createChainedFunction:()=>i,createSvgIcon:()=>S,debounce:()=>E,deprecatedPropType:()=>C,isMuiElement:()=>T,ownerDocument:()=>R,ownerWindow:()=>M,requirePropFactory:()=>A,setRef:()=>V,unstable_ClassNameGenerator:()=>z,unstable_useEnhancedEffect:()=>k.Z,unstable_useId:()=>j,unsupportedProp:()=>D,useControlled:()=>O,useEventCallback:()=>B.Z,useForkRef:()=>I.Z,useIsFocusVisible:()=>F.Z});var r=n(211),o=n(3424);const i=function(...t){return t.reduce(((t,e)=>null==e?t:function(...n){t.apply(this,n),e.apply(this,n)}),(()=>{}))};var a=n(4805),s=n(9901),u=n.t(s,2),l=n(8),c=n(4517),d=n(3839),p=n(6047),f=n(7417),v=n(132),h=n(6196);function m(t){return(0,h.Z)("MuiSvgIcon",t)}(0,v.Z)("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);var g=n(1250);const y=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],b=(0,f.ZP)("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,"inherit"!==n.color&&e[`color${(0,o.Z)(n.color)}`],e[`fontSize${(0,o.Z)(n.fontSize)}`]]}})((({theme:t,ownerState:e})=>{var n,r,o,i,a,s,u,l,c,d,p,f,v,h,m,g,y;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0,transition:null==(n=t.transitions)||null==(r=n.create)?void 0:r.call(n,"fill",{duration:null==(o=t.transitions)||null==(i=o.duration)?void 0:i.shorter}),fontSize:{inherit:"inherit",small:(null==(a=t.typography)||null==(s=a.pxToRem)?void 0:s.call(a,20))||"1.25rem",medium:(null==(u=t.typography)||null==(l=u.pxToRem)?void 0:l.call(u,24))||"1.5rem",large:(null==(c=t.typography)||null==(d=c.pxToRem)?void 0:d.call(c,35))||"2.1875rem"}[e.fontSize],color:null!=(p=null==(f=(t.vars||t).palette)||null==(v=f[e.color])?void 0:v.main)?p:{action:null==(h=(t.vars||t).palette)||null==(m=h.action)?void 0:m.active,disabled:null==(g=(t.vars||t).palette)||null==(y=g.action)?void 0:y.disabled,inherit:void 0}[e.color]}})),x=s.forwardRef((function(t,e){const n=(0,p.Z)({props:t,name:"MuiSvgIcon"}),{children:r,className:i,color:s="inherit",component:u="svg",fontSize:f="medium",htmlColor:v,inheritViewBox:h=!1,titleAccess:x,viewBox:w="0 0 24 24"}=n,S=(0,l.Z)(n,y),E=(0,a.Z)({},n,{color:s,component:u,fontSize:f,instanceFontSize:t.fontSize,inheritViewBox:h,viewBox:w}),C={};h||(C.viewBox=w);const T=(t=>{const{color:e,fontSize:n,classes:r}=t,i={root:["root","inherit"!==e&&`color${(0,o.Z)(e)}`,`fontSize${(0,o.Z)(n)}`]};return(0,d.Z)(i,m,r)})(E);return(0,g.jsxs)(b,(0,a.Z)({as:u,className:(0,c.Z)(T.root,i),focusable:"false",color:v,"aria-hidden":!x||void 0,role:x?"img":void 0,ref:e},C,S,{ownerState:E,children:[r,x?(0,g.jsx)("title",{children:x}):null]}))}));x.muiName="SvgIcon";const w=x;function S(t,e){function n(n,r){return(0,g.jsx)(w,(0,a.Z)({"data-testid":`${e}Icon`,ref:r},n,{children:t}))}return n.muiName=w.muiName,s.memo(s.forwardRef(n))}const E=function(t,e=166){let n;function r(...r){clearTimeout(n),n=setTimeout((()=>{t.apply(this,r)}),e)}return r.clear=()=>{clearTimeout(n)},r};const C=function(t,e){return()=>null};const T=function(t,e){var n,r;return s.isValidElement(t)&&-1!==e.indexOf(null!=(n=t.type.muiName)?n:null==(r=t.type)||null==(r=r._payload)||null==(r=r.value)?void 0:r.muiName)};function P(t){return t&&t.ownerDocument||document}const R=P;const M=function(t){return P(t).defaultView||window};const A=function(t,e){return()=>null};const V=n(6431).Z;var k=n(9115);let L=0;const Z=u["useId".toString()];const j=function(t){if(void 0!==Z){const e=Z();return null!=t?t:e}return function(t){const[e,n]=s.useState(t),r=t||e;return s.useEffect((()=>{null==e&&(L+=1,n(`mui-${L}`))}),[e]),r}(t)};const D=function(t,e,n,r,o){return null};const O=function({controlled:t,default:e,name:n,state:r="value"}){const{current:o}=s.useRef(void 0!==t),[i,a]=s.useState(e);return[o?t:i,s.useCallback((t=>{o||a(t)}),[])]};var B=n(9271),I=n(2433),F=n(6334);const z={configure:t=>{r.Z.configure(t)}}},9115:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r});const r=n(5641).Z},9271:(t,e,n)=>{"use strict";n.d(e,{Z:()=>i});var r=n(9901),o=n(5641);const i=function(t){const e=r.useRef(t);return(0,o.Z)((()=>{e.current=t})),r.useCallback(((...t)=>(0,e.current)(...t)),[])}},2433:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r});const r=n(3734).Z},6334:(t,e,n)=>{"use strict";n.d(e,{Z:()=>p});var r=n(9901);let o,i=!0,a=!1;const s={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function u(t){t.metaKey||t.altKey||t.ctrlKey||(i=!0)}function l(){i=!1}function c(){"hidden"===this.visibilityState&&a&&(i=!0)}function d(t){const{target:e}=t;try{return e.matches(":focus-visible")}catch(n){}return i||function(t){const{type:e,tagName:n}=t;return!("INPUT"!==n||!s[e]||t.readOnly)||"TEXTAREA"===n&&!t.readOnly||!!t.isContentEditable}(e)}const p=function(){const t=r.useCallback((t=>{var e;null!=t&&((e=t.ownerDocument).addEventListener("keydown",u,!0),e.addEventListener("mousedown",l,!0),e.addEventListener("pointerdown",l,!0),e.addEventListener("touchstart",l,!0),e.addEventListener("visibilitychange",c,!0))}),[]),e=r.useRef(!1);return{isFocusVisibleRef:e,onFocus:function(t){return!!d(t)&&(e.current=!0,!0)},onBlur:function(){return!!e.current&&(a=!0,window.clearTimeout(o),o=window.setTimeout((()=>{a=!1}),100),e.current=!1,!0)},ref:t}}},1398:(t,e,n)=>{"use strict";n.d(e,{Z:()=>v});var r=n(4805),o=n(9901);const i=o.createContext(null);function a(){return o.useContext(i)}const s="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";var u=n(1250);const l=function(t){const{children:e,theme:n}=t,l=a(),c=o.useMemo((()=>{const t=null===l?n:function(t,e){if("function"==typeof e)return e(t);return(0,r.Z)({},t,e)}(l,n);return null!=t&&(t[s]=null!==l),t}),[n,l]);return(0,u.jsx)(i.Provider,{value:c,children:e})};var c=n(4221),d=n(1328);const p={};function f(t,e,n,i=!1){return o.useMemo((()=>{const o=t&&e[t]||e;if("function"==typeof n){const a=n(o),s=t?(0,r.Z)({},e,{[t]:a}):a;return i?()=>s:s}return t?(0,r.Z)({},e,{[t]:n}):(0,r.Z)({},e,n)}),[t,e,n,i])}const v=function(t){const{children:e,theme:n,themeId:r}=t,o=(0,d.Z)(p),i=a()||p,s=f(r,o,n),v=f(r,i,n,!0);return(0,u.jsx)(l,{theme:v,children:(0,u.jsx)(c.T.Provider,{value:s,children:e})})}},6431:(t,e,n)=>{"use strict";function r(t,e){"function"==typeof t?t(e):t&&(t.current=e)}n.d(e,{Z:()=>r})},5641:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});var r=n(9901);const o="undefined"!=typeof window?r.useLayoutEffect:r.useEffect},3734:(t,e,n)=>{"use strict";n.d(e,{Z:()=>i});var r=n(9901),o=n(6431);function i(...t){return r.useMemo((()=>t.every((t=>null==t))?null:e=>{t.forEach((t=>{(0,o.Z)(t,e)}))}),t)}},2894:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var r=n(9901),o=n(4517);const i={tabItem:"tabItem_ydMX"};function a(t){var e=t.children,n=t.hidden,a=t.className;return r.createElement("div",{role:"tabpanel",className:(0,o.Z)(i.tabItem,a),hidden:n},e)}},1980:(t,e,n)=>{"use strict";n.d(e,{Z:()=>w});var r=n(4805),o=n(9901),i=n(4517),a=n(5061),s=n(6172),u=n(540),l=n(1217),c=n(8969);function d(t){return function(t){var e,n;return null!=(e=null==(n=o.Children.map(t,(function(t){if(!t||(0,o.isValidElement)(t)&&(e=t.props)&&"object"==typeof e&&"value"in e)return t;var e;throw new Error("Docusaurus error: Bad child <"+("string"==typeof t.type?t.type:t.type.name)+'>: all children of the component should be , and every should have a unique "value" prop.')})))?void 0:n.filter(Boolean))?e:[]}(t).map((function(t){var e=t.props;return{value:e.value,label:e.label,attributes:e.attributes,default:e.default}}))}function p(t){var e=t.values,n=t.children;return(0,o.useMemo)((function(){var t=null!=e?e:d(n);return function(t){var e=(0,l.l)(t,(function(t,e){return t.value===e.value}));if(e.length>0)throw new Error('Docusaurus error: Duplicate values "'+e.map((function(t){return t.value})).join(", ")+'" found in . Every value needs to be unique.')}(t),t}),[e,n])}function f(t){var e=t.value;return t.tabValues.some((function(t){return t.value===e}))}function v(t){var e=t.queryString,n=void 0!==e&&e,r=t.groupId,i=(0,s.k6)(),a=function(t){var e=t.queryString,n=void 0!==e&&e,r=t.groupId;if("string"==typeof n)return n;if(!1===n)return null;if(!0===n&&!r)throw new Error('Docusaurus error: The component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return null!=r?r:null}({queryString:n,groupId:r});return[(0,u._X)(a),(0,o.useCallback)((function(t){if(a){var e=new URLSearchParams(i.location.search);e.set(a,t),i.replace(Object.assign({},i.location,{search:e.toString()}))}}),[a,i])]}function h(t){var e,n,r,i,a=t.defaultValue,s=t.queryString,u=void 0!==s&&s,l=t.groupId,d=p(t),h=(0,o.useState)((function(){return function(t){var e,n=t.defaultValue,r=t.tabValues;if(0===r.length)throw new Error("Docusaurus error: the component requires at least one children component");if(n){if(!f({value:n,tabValues:r}))throw new Error('Docusaurus error: The has a defaultValue "'+n+'" but none of its children has the corresponding value. Available values are: '+r.map((function(t){return t.value})).join(", ")+". If you intend to show no default tab, use defaultValue={null} instead.");return n}var o=null!=(e=r.find((function(t){return t.default})))?e:r[0];if(!o)throw new Error("Unexpected error: 0 tabValues");return o.value}({defaultValue:a,tabValues:d})})),m=h[0],g=h[1],y=v({queryString:u,groupId:l}),b=y[0],x=y[1],w=(e=function(t){return t?"docusaurus.tab."+t:null}({groupId:l}.groupId),n=(0,c.Nk)(e),r=n[0],i=n[1],[r,(0,o.useCallback)((function(t){e&&i.set(t)}),[e,i])]),S=w[0],E=w[1],C=function(){var t=null!=b?b:S;return f({value:t,tabValues:d})?t:null}();return(0,o.useLayoutEffect)((function(){C&&g(C)}),[C]),{selectedValue:m,selectValue:(0,o.useCallback)((function(t){if(!f({value:t,tabValues:d}))throw new Error("Can't select invalid tab value="+t);g(t),x(t),E(t)}),[x,E,d]),tabValues:d}}var m=n(9173);const g={tabList:"tabList_d1Tg",tabItem:"tabItem_KvMm"};function y(t){var e=t.className,n=t.block,s=t.selectedValue,u=t.selectValue,l=t.tabValues,c=[],d=(0,a.o5)().blockElementScrollPositionUntilNextRender,p=function(t){var e=t.currentTarget,n=c.indexOf(e),r=l[n].value;r!==s&&(d(e),u(r))},f=function(t){var e,n=null;switch(t.key){case"Enter":p(t);break;case"ArrowRight":var r,o=c.indexOf(t.currentTarget)+1;n=null!=(r=c[o])?r:c[0];break;case"ArrowLeft":var i,a=c.indexOf(t.currentTarget)-1;n=null!=(i=c[a])?i:c[c.length-1]}null==(e=n)||e.focus()};return o.createElement("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,i.Z)("tabs",{"tabs--block":n},e)},l.map((function(t){var e=t.value,n=t.label,a=t.attributes;return o.createElement("li",(0,r.Z)({role:"tab",tabIndex:s===e?0:-1,"aria-selected":s===e,key:e,ref:function(t){return c.push(t)},onKeyDown:f,onClick:p},a,{className:(0,i.Z)("tabs__item",g.tabItem,null==a?void 0:a.className,{"tabs__item--active":s===e})}),null!=n?n:e)})))}function b(t){var e=t.lazy,n=t.children,r=t.selectedValue,i=(Array.isArray(n)?n:[n]).filter(Boolean);if(e){var a=i.find((function(t){return t.props.value===r}));return a?(0,o.cloneElement)(a,{className:"margin-top--md"}):null}return o.createElement("div",{className:"margin-top--md"},i.map((function(t,e){return(0,o.cloneElement)(t,{key:e,hidden:t.props.value!==r})})))}function x(t){var e=h(t);return o.createElement("div",{className:(0,i.Z)("tabs-container",g.tabList)},o.createElement(y,(0,r.Z)({},t,e)),o.createElement(b,(0,r.Z)({},t,e)))}function w(t){var e=(0,m.Z)();return o.createElement(x,(0,r.Z)({key:String(e)},t))}},694:(t,e,n)=>{"use strict";n.d(e,{K:()=>r,k:()=>o});var r=function(){},o=function(){}},626:t=>{t.exports=function(t){return t&&t.__esModule?t:{default:t}},t.exports.__esModule=!0,t.exports.default=t.exports},4123:(t,e,n)=>{"use strict";n.d(e,{_:()=>c});var r=n(3112),o=n(694),i=n(870),a=n(5555);function s(){var t=!1,e=[],n=new Set,s={subscribe:function(t){return n.add(t),function(){n.delete(t)}},start:function(r,o){if(t){var a=[];return n.forEach((function(t){a.push((0,i.d5)(t,r,{transitionOverride:o}))})),Promise.all(a)}return new Promise((function(t){e.push({animation:[r,o],resolve:t})}))},set:function(e){return(0,o.k)(t,"controls.set() should only be called after a component has mounted. Consider calling within a useEffect hook."),n.forEach((function(t){(0,a.gg)(t,e)}))},stop:function(){n.forEach((function(t){(0,i.p_)(t)}))},mount:function(){return t=!0,e.forEach((function(t){var e=t.animation,n=t.resolve;s.start.apply(s,(0,r.ev)([],(0,r.CR)(e),!1)).then(n)})),function(){t=!1,s.stop()}}};return s}var u=n(9901),l=n(1672);var c=function(){var t=(0,l.h)(s);return(0,u.useEffect)(t.mount,[]),t}},2981:(t,e,n)=>{"use strict";n.d(e,{C:()=>r});var r=function(t){return Array.isArray(t)}},7241:(t,e,n)=>{"use strict";n.d(e,{ev:()=>Mt,b8:()=>At});var r=n(3112),o=n(694),i=n(7641);const a=.001,s=.01,u=10,l=.05,c=1;function d({duration:t=800,bounce:e=.25,velocity:n=0,mass:r=1}){let d,v;(0,o.K)(t<=1e3*u,"Spring duration must be 10 seconds or less");let h=1-e;h=(0,i.u)(l,c,h),t=(0,i.u)(s,u,t/1e3),h<1?(d=e=>{const r=e*h,o=r*t,i=r-n,s=f(e,h),u=Math.exp(-o);return a-i/s*u},v=e=>{const r=e*h*t,o=r*n+n,i=Math.pow(h,2)*Math.pow(e,2)*t,s=Math.exp(-r),u=f(Math.pow(e,2),h);return(-d(e)+a>0?-1:1)*((o-i)*s)/u}):(d=e=>Math.exp(-e*t)*((e-n)*t+1)-a,v=e=>Math.exp(-e*t)*(t*t*(n-e)));const m=function(t,e,n){let r=n;for(let o=1;ovoid 0!==t[e]))}function g(t){var{from:e=0,to:n=1,restSpeed:o=2,restDelta:i}=t,a=(0,r._T)(t,["from","to","restSpeed","restDelta"]);const s={done:!1,value:e};let{stiffness:u,damping:l,mass:c,velocity:p,duration:g,isResolvedFromDuration:b}=function(t){let e=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},t);if(!m(t,h)&&m(t,v)){const n=d(t);e=Object.assign(Object.assign(Object.assign({},e),n),{velocity:0,mass:1}),e.isResolvedFromDuration=!0}return e}(a),x=y,w=y;function S(){const t=p?-p/1e3:0,r=n-e,o=l/(2*Math.sqrt(u*c)),a=Math.sqrt(u/c)/1e3;if(void 0===i&&(i=Math.min(Math.abs(n-e)/100,.4)),o<1){const e=f(a,o);x=i=>{const s=Math.exp(-o*a*i);return n-s*((t+o*a*r)/e*Math.sin(e*i)+r*Math.cos(e*i))},w=n=>{const i=Math.exp(-o*a*n);return o*a*i*(Math.sin(e*n)*(t+o*a*r)/e+r*Math.cos(e*n))-i*(Math.cos(e*n)*(t+o*a*r)-e*r*Math.sin(e*n))}}else if(1===o)x=e=>n-Math.exp(-a*e)*(r+(t+a*r)*e);else{const e=a*Math.sqrt(o*o-1);x=i=>{const s=Math.exp(-o*a*i),u=Math.min(e*i,300);return n-s*((t+o*a*r)*Math.sinh(u)+e*r*Math.cosh(u))/e}}}return S(),{next:t=>{const e=x(t);if(b)s.done=t>=g;else{const r=1e3*w(t),a=Math.abs(r)<=o,u=Math.abs(n-e)<=i;s.done=a&&u}return s.value=s.done?n:e,s},flipTarget:()=>{p=-p,[e,n]=[n,e],S()}}}g.needsInterpolation=(t,e)=>"string"==typeof t||"string"==typeof e;const y=t=>0;var b=n(6408),x=n(8539),w=n(4732),S=n(2491),E=n(9491);function C(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function T({hue:t,saturation:e,lightness:n,alpha:r}){t/=360,n/=100;let o=0,i=0,a=0;if(e/=100){const r=n<.5?n*(1+e):n+e-n*e,s=2*n-r;o=C(s,r,t+1/3),i=C(s,r,t),a=C(s,r,t-1/3)}else o=i=a=n;return{red:Math.round(255*o),green:Math.round(255*i),blue:Math.round(255*a),alpha:r}}const P=(t,e,n)=>{const r=t*t,o=e*e;return Math.sqrt(Math.max(0,n*(o-r)+r))},R=[w.$,S.m,E.J],M=t=>R.find((e=>e.test(t))),A=t=>`'${t}' is not an animatable color. Use the equivalent color code instead.`,V=(t,e)=>{let n=M(t),r=M(e);(0,o.k)(!!n,A(t)),(0,o.k)(!!r,A(e));let i=n.parse(t),a=r.parse(e);n===E.J&&(i=T(i),n=S.m),r===E.J&&(a=T(a),r=S.m);const s=Object.assign({},i);return t=>{for(const e in s)"alpha"!==e&&(s[e]=P(i[e],a[e],t));return s.alpha=(0,x.C)(i.alpha,a.alpha,t),n.transform(s)}};var k=n(8851),L=n(999),Z=n(2336),j=n(700);function D(t,e){return(0,Z.e)(t)?n=>(0,x.C)(t,e,n):k.$.test(t)?V(t,e):F(t,e)}const O=(t,e)=>{const n=[...t],r=n.length,o=t.map(((t,n)=>D(t,e[n])));return t=>{for(let e=0;e{const n=Object.assign(Object.assign({},t),e),r={};for(const o in n)void 0!==t[o]&&void 0!==e[o]&&(r[o]=D(t[o],e[o]));return t=>{for(const e in r)n[e]=r[e](t);return n}};function I(t){const e=L.P.parse(t),n=e.length;let r=0,o=0,i=0;for(let a=0;a{const n=L.P.createTransformer(e),r=I(t),i=I(e);return r.numHSL===i.numHSL&&r.numRGB===i.numRGB&&r.numNumbers>=i.numNumbers?(0,j.z)(O(r.parsed,i.parsed),n):((0,o.K)(!0,`Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),n=>`${n>0?e:t}`)},z=(t,e)=>n=>(0,x.C)(t,e,n);function N(t,e,n){const r=[],o=n||("number"==typeof(i=t[0])?z:"string"==typeof i?k.$.test(i)?V:F:Array.isArray(i)?O:"object"==typeof i?B:void 0);var i;const a=t.length-1;for(let s=0;st[s-1]&&(t=[].concat(t),e=[].concat(e),t.reverse(),e.reverse());const u=N(e,r,a),l=2===s?function([t,e],[n]){return r=>n((0,b.Y)(t,e,r))}(t,u):function(t,e){const n=t.length,r=n-1;return o=>{let i=0,a=!1;if(o<=t[0]?a=!0:o>=t[r]&&(i=r-1,a=!0),!a){let e=1;for(;eo||e===r);e++);i=e-1}const s=(0,b.Y)(t[i],t[i+1],o);return e[i](s)}}(t,u);return n?e=>l((0,i.u)(t[0],t[s-1],e)):l}var U=n(4439);function W(t,e){return t.map((()=>e||U.mZ)).splice(0,t.length-1)}function H({from:t=0,to:e=1,ease:n,offset:r,duration:o=300}){const i={done:!1,value:t},a=Array.isArray(e)?e:[t,e],s=function(t,e){return t.map((t=>t*e))}(r&&r.length===a.length?r:function(t){const e=t.length;return t.map(((t,n)=>0!==n?n/(e-1):0))}(a),o);function u(){return $(s,a,{ease:Array.isArray(n)?n:W(a,n)})}let l=u();return{next:t=>(i.value=l(t),i.done=t>=o,i),flipTarget:()=>{a.reverse(),l=u()}}}const _={keyframes:H,spring:g,decay:function({velocity:t=0,from:e=0,power:n=.8,timeConstant:r=350,restDelta:o=.5,modifyTarget:i}){const a={done:!1,value:e};let s=n*t;const u=e+s,l=void 0===i?u:i(u);return l!==u&&(s=l-e),{next:t=>{const e=-s*Math.exp(-t/r);return a.done=!(e>o||e<-o),a.value=a.done?l:l+e,a},flipTarget:()=>{}}}};var Y=n(4810);function q(t,e,n=0){return t-e-n}const X=t=>{const e=({delta:e})=>t(e);return{start:()=>Y.ZP.update(e,!0),stop:()=>Y.qY.update(e)}};function G(t){var e,n,{from:o,autoplay:i=!0,driver:a=X,elapsed:s=0,repeat:u=0,repeatType:l="loop",repeatDelay:c=0,onPlay:d,onStop:p,onComplete:f,onRepeat:v,onUpdate:h}=t,m=(0,r._T)(t,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let y,b,x,{to:w}=m,S=0,E=m.duration,C=!1,T=!0;const P=function(t){if(Array.isArray(t.to))return H;if(_[t.type])return _[t.type];const e=new Set(Object.keys(t));return e.has("ease")||e.has("duration")&&!e.has("dampingRatio")?H:e.has("dampingRatio")||e.has("stiffness")||e.has("mass")||e.has("damping")||e.has("restSpeed")||e.has("restDelta")?g:H}(m);(null===(n=(e=P).needsInterpolation)||void 0===n?void 0:n.call(e,o,w))&&(x=$([0,100],[o,w],{clamp:!1}),o=0,w=100);const R=P(Object.assign(Object.assign({},m),{from:o,to:w}));function M(){S++,"reverse"===l?(T=S%2==0,s=function(t,e,n=0,r=!0){return r?q(e+-t,e,n):e-(t-e)+n}(s,E,c,T)):(s=q(s,E,c),"mirror"===l&&R.flipTarget()),C=!1,v&&v()}function A(t){if(T||(t=-t),s+=t,!C){const t=R.next(Math.max(0,s));b=t.value,x&&(b=x(b)),C=T?t.done:s<=0}null==h||h(b),C&&(0===S&&(null!=E||(E=s)),S=e+n:t<=-n}(s,E,c,T)&&M():(y.stop(),f&&f()))}return i&&(null==d||d(),y=a(A),y.start()),{stop:()=>{null==p||p(),y.stop()}}}var K=n(7930);var J=n(847);const Q=(t,e)=>1-3*e+3*t,tt=(t,e)=>3*e-6*t,et=t=>3*t,nt=(t,e,n)=>((Q(e,n)*t+tt(e,n))*t+et(e))*t,rt=(t,e,n)=>3*Q(e,n)*t*t+2*tt(e,n)*t+et(e),ot=1e-7,it=10;const at=8;const st=.1;function ut(t,e,n,r){if(t===e&&n===r)return U.GE;const o=new Float32Array(11);for(let a=0;a<11;++a)o[a]=nt(a*st,t,n);function i(e){let r=0,i=1;for(;10!==i&&o[i]<=e;++i)r+=st;--i;const a=r+(e-o[i])/(o[i+1]-o[i])*st,s=rt(a,t,n);return s>=.001?function(t,e,n,r){for(let o=0;o0?n=a:e=a}while(Math.abs(i)>ot&&++s0===t||1===t?t:nt(i(t),e,r)}var lt={linear:U.GE,easeIn:U.YQ,easeInOut:U.mZ,easeOut:U.Vv,circIn:U.Z7,circInOut:U.X7,circOut:U.Bn,backIn:U.G2,backInOut:U.XL,backOut:U.CG,anticipate:U.LU,bounceIn:U.h9,bounceInOut:U.yD,bounceOut:U.gJ},ct=function(t){if(Array.isArray(t)){(0,o.k)(4===t.length,"Cubic bezier arrays must contain four numerical values.");var e=(0,r.CR)(t,4);return ut(e[0],e[1],e[2],e[3])}return"string"==typeof t?((0,o.k)(void 0!==lt[t],"Invalid easing type '".concat(t,"'")),lt[t]):t},dt=function(t){return Array.isArray(t)&&"number"!=typeof t[0]},pt=function(t,e){return"zIndex"!==t&&(!("number"!=typeof e&&!Array.isArray(e))||!("string"!=typeof e||!L.P.test(e)||e.startsWith("url(")))},ft=n(2981),vt=function(){return{type:"spring",stiffness:500,damping:25,restSpeed:10}},ht=function(t){return{type:"spring",stiffness:550,damping:0===t?2*Math.sqrt(550):30,restSpeed:10}},mt=function(){return{type:"keyframes",ease:"linear",duration:.3}},gt=function(t){return{type:"keyframes",duration:.8,values:t}},yt={x:vt,y:vt,z:vt,rotate:vt,rotateX:vt,rotateY:vt,rotateZ:vt,scaleX:ht,scaleY:ht,scale:ht,opacity:mt,backgroundColor:mt,color:mt,default:ht},bt=function(t,e){var n;return n=(0,ft.C)(e)?gt:yt[t]||yt.default,(0,r.pi)({to:e},n(e))},xt=n(6844),wt={current:!1},St=n(411);var Et=!1;function Ct(t,e,n){var i;return Array.isArray(e.to)&&(null!==(i=t.duration)&&void 0!==i||(t.duration=.8)),function(t){Array.isArray(t.to)&&null===t.to[0]&&(t.to=(0,r.ev)([],(0,r.CR)(t.to),!1),t.to[0]=t.from)}(e),function(t){t.when,t.delay,t.delayChildren,t.staggerChildren,t.staggerDirection,t.repeat,t.repeatType,t.repeatDelay,t.from;var e=(0,r._T)(t,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from"]);return!!Object.keys(e).length}(t)||(t=(0,r.pi)((0,r.pi)({},t),bt(n,e.to))),(0,r.pi)((0,r.pi)({},e),function(t){var e=t.ease,n=t.times,i=t.yoyo,a=t.flip,s=t.loop,u=(0,r._T)(t,["ease","times","yoyo","flip","loop"]),l=(0,r.pi)({},u);return n&&(l.offset=n),u.duration&&(l.duration=(0,J.w)(u.duration)),u.repeatDelay&&(l.repeatDelay=(0,J.w)(u.repeatDelay)),e&&(l.ease=dt(e)?e.map(ct):ct(e)),"tween"===u.type&&(l.type="keyframes"),(i||s||a)&&((0,o.K)(!Et,"yoyo, loop and flip have been removed from the API. Replace with repeat and repeatType options."),Et=!0,i?l.repeatType="reverse":s?l.repeatType="loop":a&&(l.repeatType="mirror"),l.repeat=s||i||a||u.repeat),"spring"!==u.type&&(l.type="keyframes"),l}(t))}function Tt(t,e,n,i,a){var s,u=Mt(i,t),l=null!==(s=u.from)&&void 0!==s?s:e.get(),c=pt(t,n);"none"===l&&c&&"string"==typeof n?l=(0,xt.T)(t,n):Pt(l)&&"string"==typeof n?l=Rt(n):!Array.isArray(n)&&Pt(n)&&"string"==typeof l&&(n=Rt(l));var d=pt(t,l);return(0,o.K)(d===c,"You are trying to animate ".concat(t,' from "').concat(l,'" to "').concat(n,'". ').concat(l," is not an animatable value - to enable this animation set ").concat(l," to a value animatable to ").concat(n," via the `style` property.")),d&&c&&!1!==u.type?function(){var o={from:l,to:n,velocity:e.getVelocity(),onComplete:a,onUpdate:function(t){return e.set(t)}};return"inertia"===u.type||"decay"===u.type?function({from:t=0,velocity:e=0,min:n,max:r,power:o=.8,timeConstant:i=750,bounceStiffness:a=500,bounceDamping:s=10,restDelta:u=1,modifyTarget:l,driver:c,onUpdate:d,onComplete:p,onStop:f}){let v;function h(t){return void 0!==n&&tr}function m(t){return void 0===n?r:void 0===r||Math.abs(n-t){var n;null==d||d(e),null===(n=t.onUpdate)||void 0===n||n.call(t,e)},onComplete:p,onStop:f}))}function y(t){g(Object.assign({type:"spring",stiffness:a,damping:s,restDelta:u},t))}if(h(t))y({from:t,velocity:e,to:m(t)});else{let r=o*e+t;void 0!==l&&(r=l(r));const a=m(r),s=a===n?-1:1;let c,d;const p=t=>{c=d,d=t,e=(0,K.R)(t-c,(0,Y.$B)().delta),(1===s&&t>a||-1===s&&tnull==v?void 0:v.stop()}}((0,r.pi)((0,r.pi)({},o),u)):G((0,r.pi)((0,r.pi)({},Ct(u,o,t)),{onUpdate:function(t){var e;o.onUpdate(t),null===(e=u.onUpdate)||void 0===e||e.call(u,t)},onComplete:function(){var t;o.onComplete(),null===(t=u.onComplete)||void 0===t||t.call(u)}}))}:function(){var t,r,o=(0,St.Y)(n);return e.set(o),a(),null===(t=null==u?void 0:u.onUpdate)||void 0===t||t.call(u,o),null===(r=null==u?void 0:u.onComplete)||void 0===r||r.call(u),{stop:function(){}}}}function Pt(t){return 0===t||"string"==typeof t&&0===parseFloat(t)&&-1===t.indexOf(" ")}function Rt(t){return"number"==typeof t?0:(0,xt.T)("",t)}function Mt(t,e){return t[e]||t.default||t}function At(t,e,n,r){return void 0===r&&(r={}),wt.current&&(r={type:!1}),e.start((function(o){var i,a,s=Tt(t,e,n,r,o),u=function(t,e){var n,r;return null!==(r=null!==(n=(Mt(t,e)||{}).delay)&&void 0!==n?n:t.delay)&&void 0!==r?r:0}(r,t),l=function(){return a=s()};return u?i=window.setTimeout(l,(0,J.w)(u)):l(),function(){clearTimeout(i),null==a||a.stop()}}))}},5601:(t,e,n)=>{"use strict";n.d(e,{E:()=>Xr});var r=n(3112),o=n(9901),i=("undefined"==typeof process||process.env,"production"),a=function(t){return{isEnabled:function(e){return t.some((function(t){return!!e[t]}))}}},s={measureLayout:a(["layout","layoutId","drag"]),animation:a(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:a(["exit"]),drag:a(["drag","dragControls"]),focus:a(["whileFocus"]),hover:a(["whileHover","onHoverStart","onHoverEnd"]),tap:a(["whileTap","onTap","onTapStart","onTapCancel"]),pan:a(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:a(["whileInView","onViewportEnter","onViewportLeave"])};var u=n(694),l=(0,o.createContext)({strict:!1}),c=Object.keys(s),d=c.length;var p=(0,o.createContext)({transformPagePoint:function(t){return t},isStatic:!1,reducedMotion:"never"}),f=(0,o.createContext)({});var v=(0,o.createContext)(null),h=n(4258),m=n(1182),g={current:null},y=!1;function b(){return!y&&function(){if(y=!0,m.j)if(window.matchMedia){var t=window.matchMedia("(prefers-reduced-motion)"),e=function(){return g.current=t.matches};t.addListener(e),e()}else g.current=!1}(),(0,r.CR)((0,o.useState)(g.current),1)[0]}function x(t,e,n,r){var i,a,s=(0,o.useContext)(l),u=(0,o.useContext)(f).visualElement,c=(0,o.useContext)(v),d=(i=b(),"never"!==(a=(0,o.useContext)(p).reducedMotion)&&("always"===a||i)),m=(0,o.useRef)(void 0);r||(r=s.renderer),!m.current&&r&&(m.current=r(t,{visualState:e,parent:u,props:n,presenceId:null==c?void 0:c.id,blockInitialAnimation:!1===(null==c?void 0:c.initial),shouldReduceMotion:d}));var g=m.current;return(0,h.L)((function(){null==g||g.syncRender()})),(0,o.useEffect)((function(){var t;null===(t=null==g?void 0:g.animationState)||void 0===t||t.animateChanges()})),(0,h.L)((function(){return function(){return null==g?void 0:g.notifyUnmount()}}),[]),g}function w(t){return"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}var S=n(7278);function E(t){var e=function(t,e){if((0,S.O6)(t)){var n=t.initial,r=t.animate;return{initial:!1===n||(0,S.$L)(n)?n:void 0,animate:(0,S.$L)(r)?r:void 0}}return!1!==t.inherit?e:{}}(t,(0,o.useContext)(f)),n=e.initial,r=e.animate;return(0,o.useMemo)((function(){return{initial:n,animate:r}}),[C(n),C(r)])}function C(t){return Array.isArray(t)?t.join(" "):t}var T=n(1672),P={hasAnimatedSinceResize:!0,hasEverUpdated:!1},R=1;var M=(0,o.createContext)({}),A=(0,o.createContext)({});var V=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,r.ZT)(e,t),e.prototype.getSnapshotBeforeUpdate=function(){return this.updateProps(),null},e.prototype.componentDidUpdate=function(){},e.prototype.updateProps=function(){var t=this.props,e=t.visualElement,n=t.props;e&&e.setProps(n)},e.prototype.render=function(){return this.props.children},e}(o.Component);function k(t){var e=t.preloadedFeatures,n=t.createVisualElement,a=t.projectionNodeConstructor,v=t.useRender,h=t.useVisualState,g=t.Component;return e&&function(t){for(var e in t)null!==t[e]&&("projectionNodeConstructor"===e?s.projectionNodeConstructor=t[e]:s[e].Component=t[e])}(e),(0,o.forwardRef)((function(t,y){var b=function(t){var e,n=t.layoutId,r=null===(e=(0,o.useContext)(M))||void 0===e?void 0:e.id;return r&&void 0!==n?r+"-"+n:n}(t);t=(0,r.pi)((0,r.pi)({},t),{layoutId:b});var S=(0,o.useContext)(p),C=null,k=E(t),L=S.isStatic?void 0:(0,T.h)((function(){if(P.hasEverUpdated)return R++})),Z=h(t,S.isStatic);return!S.isStatic&&m.j&&(k.visualElement=x(g,Z,(0,r.pi)((0,r.pi)({},S),t),n),function(t,e,n,r){var i,a=e.layoutId,s=e.layout,u=e.drag,l=e.dragConstraints,c=e.layoutScroll,d=(0,o.useContext)(A);r&&n&&!(null==n?void 0:n.projection)&&(n.projection=new r(t,n.getLatestValues(),null===(i=n.parent)||void 0===i?void 0:i.projection),n.projection.setOptions({layoutId:a,layout:s,alwaysMeasureLayout:Boolean(u)||l&&w(l),visualElement:n,scheduleRender:function(){return n.scheduleRender()},animationType:"string"==typeof s?s:"both",initialPromotionConfig:d,layoutScroll:c}))}(L,t,k.visualElement,a||s.projectionNodeConstructor),C=function(t,e,n){var a=[],p=(0,o.useContext)(l);if(!e)return null;"production"!==i&&n&&p.strict&&(0,u.k)(!1,"You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.");for(var f=0;f-1||/[A-Z]/.test(t))}var D={};var O=n(8572);function B(t,e){var n=e.layout,r=e.layoutId;return(0,O._c)(t)||(0,O.Ee)(t)||(n||void 0!==r)&&(!!D[t]||"opacity"===t)}var I=function(t){return Boolean(null!==t&&"object"==typeof t&&t.getVelocity)},F={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"};function z(t){return t.startsWith("--")}var N=function(t,e){return e&&"number"==typeof t?e.transform(t):t},$=n(1875);function U(t,e,n,r){var o,i=t.style,a=t.vars,s=t.transform,u=t.transformKeys,l=t.transformOrigin;u.length=0;var c=!1,d=!1,p=!0;for(var f in e){var v=e[f];if(z(f))a[f]=v;else{var h=$.j[f],m=N(v,h);if((0,O._c)(f)){if(c=!0,s[f]=m,u.push(f),!p)continue;v!==(null!==(o=h.default)&&void 0!==o?o:0)&&(p=!1)}else(0,O.Ee)(f)?(l[f]=m,d=!0):i[f]=m}}c?i.transform=function(t,e,n,r){var o=t.transform,i=t.transformKeys,a=e.enableHardwareAcceleration,s=void 0===a||a,u=e.allowTransformNone,l=void 0===u||u,c="";i.sort(O.s3);for(var d=!1,p=i.length,f=0;fh&&y,C=Array.isArray(g)?g:[g],T=C.reduce(s,{});!1===b&&(T={});var P=m.prevResolvedValues,R=void 0===P?{}:P,M=(0,r.pi)((0,r.pi)({},R),T),A=function(t){E=!0,f.delete(t),m.needsAnimating[t]=!0};for(var V in M){var k=T[V],L=R[V];v.hasOwnProperty(V)||(k!==L?(0,le.C)(k)&&(0,le.C)(L)?!ce(k,L)||w?A(V):m.protectedKeys[V]=!0:void 0!==k?A(V):f.add(V):void 0!==k&&f.has(V)?A(V):m.protectedKeys[V]=!0)}m.prevProp=g,m.prevResolvedValues=T,m.isActive&&(v=(0,r.pi)((0,r.pi)({},v),T)),a&&t.blockInitialAnimation&&(E=!1),E&&!x&&p.push.apply(p,(0,r.ev)([],(0,r.CR)(C.map((function(t){return{animation:t,options:(0,r.pi)({type:i},e)}}))),!1))},g=0;gt.hasOwnProperty("x")&&t.hasOwnProperty("y"),we=t=>xe(t)&&t.hasOwnProperty("z");var Se=n(2336);const Ee=(t,e)=>Math.abs(t-e);function Ce(t,e){if((0,Se.e)(t)&&(0,Se.e)(e))return Ee(t,e);if(xe(t)&&xe(e)){const n=Ee(t.x,e.x),r=Ee(t.y,e.y),o=we(t)&&we(e)?Ee(t.z,e.z):0;return Math.sqrt(Math.pow(n,2)+Math.pow(r,2)+Math.pow(o,2))}}var Te=function(){function t(t,e,n){var o=this,i=(void 0===n?{}:n).transformPagePoint;if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=function(){if(o.lastMoveEvent&&o.lastMoveEventInfo){var t=Me(o.lastMoveEventInfo,o.history),e=null!==o.startEvent,n=Ce(t.offset,{x:0,y:0})>=3;if(e||n){var i=t.point,a=(0,ye.$B)().timestamp;o.history.push((0,r.pi)((0,r.pi)({},i),{timestamp:a}));var s=o.handlers,u=s.onStart,l=s.onMove;e||(u&&u(o.lastMoveEvent,t),o.startEvent=o.lastMoveEvent),l&&l(o.lastMoveEvent,t)}}},this.handlePointerMove=function(t,e){o.lastMoveEvent=t,o.lastMoveEventInfo=Pe(e,o.transformPagePoint),Ct(t)&&0===t.buttons?o.handlePointerUp(t,e):ye.ZP.update(o.updatePoint,!0)},this.handlePointerUp=function(t,e){o.end();var n=o.handlers,r=n.onEnd,i=n.onSessionEnd,a=Me(Pe(e,o.transformPagePoint),o.history);o.startEvent&&r&&r(t,a),i&&i(t,a)},!(Tt(t)&&t.touches.length>1)){this.handlers=e,this.transformPagePoint=i;var a=Pe(At(t),this.transformPagePoint),s=a.point,u=(0,ye.$B)().timestamp;this.history=[(0,r.pi)((0,r.pi)({},s),{timestamp:u})];var l=e.onSessionStart;l&&l(t,Me(a,this.history)),this.removeListeners=(0,Yt.z)(Bt(window,"pointermove",this.handlePointerMove),Bt(window,"pointerup",this.handlePointerUp),Bt(window,"pointercancel",this.handlePointerUp))}}return t.prototype.updateHandlers=function(t){this.handlers=t},t.prototype.end=function(){this.removeListeners&&this.removeListeners(),ye.qY.update(this.updatePoint)},t}();function Pe(t,e){return e?{point:e(t.point)}:t}function Re(t,e){return{x:t.x-e.x,y:t.y-e.y}}function Me(t,e){var n=t.point;return{point:n,delta:Re(n,Ve(e)),offset:Re(n,Ae(e)),velocity:ke(e,.1)}}function Ae(t){return t[0]}function Ve(t){return t[t.length-1]}function ke(t,e){if(t.length<2)return{x:0,y:0};for(var n=t.length-1,r=null,o=Ve(t);n>=0&&(r=t[n],!(o.timestamp-r.timestamp>(0,be.w)(e)));)n--;if(!r)return{x:0,y:0};var i=(o.timestamp-r.timestamp)/1e3;if(0===i)return{x:0,y:0};var a={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}var Le=n(8539),Ze=n(6408),je=n(7641);function De(t){return t.max-t.min}function Oe(t,e,n){return void 0===e&&(e=0),void 0===n&&(n=.01),Ce(t,e)e?n="y":Math.abs(t.x)>e&&(n="x");return n}(u),void(null!==n.currentDirection&&(null==a||a(n.currentDirection)));n.updateAxis("x",e.point,u),n.updateAxis("y",e.point,u),n.visualElement.syncRender(),null==s||s(t,e)}},onSessionEnd:function(t,e){return n.stop(t,e)}},{transformPagePoint:this.visualElement.getTransformPagePoint()})}},t.prototype.stop=function(t,e){var n=this.isDragging;if(this.cancel(),n){var r=e.velocity;this.startAnimation(r);var o=this.getProps().onDragEnd;null==o||o(t,e)}},t.prototype.cancel=function(){var t,e;this.isDragging=!1,this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!1),null===(t=this.panSession)||void 0===t||t.end(),this.panSession=void 0,!this.getProps().dragPropagation&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),null===(e=this.visualElement.animationState)||void 0===e||e.setActive(bt.Drag,!1)},t.prototype.updateAxis=function(t,e,n){var r=this.getProps().drag;if(n&&hn(t,r,this.currentDirection)){var o,i,a,s,u,l=this.getAxisMotionValue(t),c=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(o=c,i=this.constraints[t],a=this.elastic[t],s=i.min,u=i.max,void 0!==s&&ou&&(o=a?(0,Le.C)(u,o,a.max):Math.min(o,u)),c=o),l.set(c)}},t.prototype.resolveConstraints=function(){var t=this,e=this.getProps(),n=e.dragConstraints,r=e.dragElastic,o=(this.visualElement.projection||{}).layout,i=this.constraints;n&&w(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!n||!o)&&function(t,e){var n=e.top,r=e.left,o=e.bottom,i=e.right;return{x:$e(t.x,r,i),y:$e(t.y,n,o)}}(o.actual,n),this.elastic=function(t){return void 0===t&&(t=We),!1===t?t=0:!0===t&&(t=We),{x:He(t,"left","right"),y:He(t,"top","bottom")}}(r),i!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&Xe((function(e){t.getAxisMotionValue(e)&&(t.constraints[e]=function(t,e){var n={};return void 0!==e.min&&(n.min=e.min-t.min),void 0!==e.max&&(n.max=e.max-t.min),n}(o.actual[e],t.constraints[e]))}))},t.prototype.resolveRefConstraints=function(){var t=this.getProps(),e=t.dragConstraints,n=t.onMeasureDragConstraints;if(!e||!w(e))return!1;var r=e.current;(0,u.k)(null!==r,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");var o=this.visualElement.projection;if(!o||!o.layout)return!1;var i=function(t,e,n){var r=dn(t,n),o=e.scroll;return o&&(an(r.x,o.x),an(r.y,o.y)),r}(r,o.root,this.visualElement.getTransformPagePoint()),a=function(t,e){return{x:Ue(t.x,e.x),y:Ue(t.y,e.y)}}(o.layout.actual,i);if(n){var s=n(function(t){var e=t.x,n=t.y;return{top:n.min,right:e.max,bottom:n.max,left:e.min}}(a));this.hasMutatedConstraints=!!s,s&&(a=Ge(s))}return a},t.prototype.startAnimation=function(t){var e=this,n=this.getProps(),o=n.drag,i=n.dragMomentum,a=n.dragElastic,s=n.dragTransition,u=n.dragSnapToOrigin,l=n.onDragTransitionEnd,c=this.constraints||{},d=Xe((function(n){var l;if(hn(n,o,e.currentDirection)){var d=null!==(l=null==c?void 0:c[n])&&void 0!==l?l:{};u&&(d={min:0,max:0});var p=a?200:1e6,f=a?40:1e7,v=(0,r.pi)((0,r.pi)({type:"inertia",velocity:i?t[n]:0,bounceStiffness:p,bounceDamping:f,timeConstant:750,restDelta:1,restSpeed:10},s),d);return e.startAxisValueAnimation(n,v)}}));return Promise.all(d).then(l)},t.prototype.startAxisValueAnimation=function(t,e){var n=this.getAxisMotionValue(t);return(0,pn.b8)(t,n,0,e)},t.prototype.stopAnimation=function(){var t=this;Xe((function(e){return t.getAxisMotionValue(e).stop()}))},t.prototype.getAxisMotionValue=function(t){var e,n,r="_drag"+t.toUpperCase(),o=this.visualElement.getProps()[r];return o||this.visualElement.getValue(t,null!==(n=null===(e=this.visualElement.getProps().initial)||void 0===e?void 0:e[t])&&void 0!==n?n:0)},t.prototype.snapToCursor=function(t){var e=this;Xe((function(n){if(hn(n,e.getProps().drag,e.currentDirection)){var r=e.visualElement.projection,o=e.getAxisMotionValue(n);if(r&&r.layout){var i=r.layout.actual[n],a=i.min,s=i.max;o.set(t[n]-(0,Le.C)(a,s,.5))}}}))},t.prototype.scalePositionWithinConstraints=function(){var t,e=this,n=this.getProps(),r=n.drag,o=n.dragConstraints,i=this.visualElement.projection;if(w(o)&&i&&this.constraints){this.stopAnimation();var a={x:0,y:0};Xe((function(t){var n,r,o,i,s,u=e.getAxisMotionValue(t);if(u){var l=u.get();a[t]=(n={min:l,max:l},r=e.constraints[t],o=.5,i=De(n),(s=De(r))>i?o=(0,Ze.Y)(r.min,r.max-i,n.min):i>s&&(o=(0,Ze.Y)(n.min,n.max-s,r.min)),(0,je.u)(0,1,o))}}));var s=this.visualElement.getProps().transformTemplate;this.visualElement.getInstance().style.transform=s?s({},""):"none",null===(t=i.root)||void 0===t||t.updateScroll(),i.updateLayout(),this.resolveConstraints(),Xe((function(t){if(hn(t,r,null)){var n=e.getAxisMotionValue(t),o=e.constraints[t],i=o.min,s=o.max;n.set((0,Le.C)(i,s,a[t]))}}))}},t.prototype.addListeners=function(){var t,e=this;fn.set(this.visualElement,this);var n=Bt(this.visualElement.getInstance(),"pointerdown",(function(t){var n=e.getProps(),r=n.drag,o=n.dragListener;r&&(void 0===o||o)&&e.start(t)})),r=function(){w(e.getProps().dragConstraints)&&(e.constraints=e.resolveRefConstraints())},o=this.visualElement.projection,i=o.addEventListener("measure",r);o&&!o.layout&&(null===(t=o.root)||void 0===t||t.updateScroll(),o.updateLayout()),r();var a=St(window,"resize",(function(){return e.scalePositionWithinConstraints()}));return o.addEventListener("didUpdate",(function(t){var n=t.delta,r=t.hasLayoutChanged;e.isDragging&&r&&(Xe((function(t){var r=e.getAxisMotionValue(t);r&&(e.originPoint[t]+=n[t].translate,r.set(r.get()+n[t].translate))})),e.visualElement.syncRender())})),function(){a(),n(),i()}},t.prototype.getProps=function(){var t=this.visualElement.getProps(),e=t.drag,n=void 0!==e&&e,o=t.dragDirectionLock,i=void 0!==o&&o,a=t.dragPropagation,s=void 0!==a&&a,u=t.dragConstraints,l=void 0!==u&&u,c=t.dragElastic,d=void 0===c?We:c,p=t.dragMomentum,f=void 0===p||p;return(0,r.pi)((0,r.pi)({},t),{drag:n,dragDirectionLock:i,dragPropagation:s,dragConstraints:l,dragElastic:d,dragMomentum:f})},t}();function hn(t,e,n){return!(!0!==e&&e!==t||null!==n&&n!==t)}var mn={pan:re((function(t){var e=t.onPan,n=t.onPanStart,r=t.onPanEnd,i=t.onPanSessionStart,a=t.visualElement,s=e||n||r||i,u=(0,o.useRef)(null),l=(0,o.useContext)(p).transformPagePoint,c={onSessionStart:i,onStart:n,onMove:e,onEnd:function(t,e){u.current=null,r&&r(t,e)}};(0,o.useEffect)((function(){null!==u.current&&u.current.updateHandlers(c)})),It(a,"pointerdown",s&&function(t){u.current=new Te(t,c,{transformPagePoint:l})}),_t((function(){return u.current&&u.current.end()}))})),drag:re((function(t){var e=t.dragControls,n=t.visualElement,r=(0,T.h)((function(){return new vn(n)}));(0,o.useEffect)((function(){return e&&e.subscribe(r)}),[r,e]),(0,o.useEffect)((function(){return r.addListeners()}),[r])}))},gn=n(5946),yn=n(4097),bn=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","LayoutAnimationStart","SetAxisTarget","Unmount"];var xn=function(t){var e=t.treeType,n=void 0===e?"":e,o=t.build,i=t.getBaseTarget,a=t.makeTargetAnimatable,s=t.measureViewportBox,u=t.render,l=t.readValueFromInstance,c=t.removeValueFromRenderState,d=t.sortNodePosition,p=t.scrapeMotionValuesFromProps;return function(t,e){var f=t.parent,v=t.props,h=t.presenceId,m=t.blockInitialAnimation,g=t.visualState,y=t.shouldReduceMotion;void 0===e&&(e={});var b,x,w=!1,E=g.latestValues,C=g.renderState,T=function(){var t=bn.map((function(){return new yn.L})),e={},n={clearAllListeners:function(){return t.forEach((function(t){return t.clear()}))},updatePropListeners:function(t){bn.forEach((function(r){var o,i="on"+r,a=t[i];null===(o=e[r])||void 0===o||o.call(e),a&&(e[r]=n[i](a))}))}};return t.forEach((function(t,e){n["on"+bn[e]]=function(e){return t.add(e)},n["notify"+bn[e]]=function(){for(var e=[],n=0;n=0?window.pageYOffset:null,d=function(t,e,n){var r=e.measureViewportBox(),o=e.getInstance(),i=getComputedStyle(o),a=i.display,s={};"none"===a&&e.setStaticValue("display",t.display||"block"),n.forEach((function(t){s[t]=Fn[t](r,i)})),e.syncRender();var u=e.measureViewportBox();return n.forEach((function(n){var r=e.getValue(n);Zn(r,s[n]),t[n]=Fn[n](u,i)})),t}(e,t,l);return a.length&&a.forEach((function(e){var n=(0,r.CR)(e,2),o=n[0],i=n[1];t.getValue(o).set(i)})),t.syncRender(),null!==c&&window.scrollTo({top:c}),{target:d,transitionEnd:o}}return{target:e,transitionEnd:o}};function Nn(t,e,n,r){return function(t){return Object.keys(t).some(Ln)}(e)?zn(t,e,n,r):{target:e,transitionEnd:r}}var $n=function(t,e,n,o){var i=function(t,e,n){var o,i=(0,r._T)(e,[]),a=t.getInstance();if(!(a instanceof Element))return{target:i,transitionEnd:n};for(var s in n&&(n=(0,r.pi)({},n)),t.forEachValue((function(t){var e=t.get();if(Cn(e)){var n=Rn(e,a);n&&t.set(n)}})),i){var u=i[s];if(Cn(u)){var l=Rn(u,a);l&&(i[s]=l,n&&(null!==(o=n[s])&&void 0!==o||(n[s]=u)))}}return{target:i,transitionEnd:n}}(t,e,o);return Nn(t,e=i.target,n,o=i.transitionEnd)},Un=n(7508);var Wn={treeType:"dom",readValueFromInstance:function(t,e){if((0,O._c)(e)){var n=(0,Un.A)(e);return n&&n.default||0}var r,o=(r=t,window.getComputedStyle(r));return(z(e)?o.getPropertyValue(e):o[e])||0},sortNodePosition:function(t,e){return 2&t.compareDocumentPosition(e)?1:-1},getBaseTarget:function(t,e){var n;return null===(n=t.style)||void 0===n?void 0:n[e]},measureViewportBox:function(t,e){return dn(t,e.transformPagePoint)},resetTransform:function(t,e,n){var r=n.transformTemplate;e.style.transform=r?r({},""):"none",t.scheduleRender()},restoreTransform:function(t,e){t.style.transform=e.style.transform},removeValueFromRenderState:function(t,e){var n=e.vars,r=e.style;delete n[t],delete r[t]},makeTargetAnimatable:function(t,e,n,o){var i=n.transformValues;void 0===o&&(o=!0);var a=e.transition,s=e.transitionEnd,u=(0,r._T)(e,["transition","transitionEnd"]),l=(0,En.P$)(u,a||{},t);if(i&&(s&&(s=i(s)),u&&(u=i(u)),l&&(l=i(l))),o){(0,En.GJ)(t,u,l);var c=$n(t,u,l,s);s=c.transitionEnd,u=c.target}return(0,r.pi)({transition:a,transitionEnd:s},u)},scrapeMotionValuesFromProps:dt,build:function(t,e,n,r,o){void 0!==t.isVisible&&(e.style.visibility=t.isVisible?"visible":"hidden"),U(e,n,r,o.transformTemplate)},render:ut},Hn=xn(Wn),_n=xn((0,r.pi)((0,r.pi)({},Wn),{getBaseTarget:function(t,e){return t[e]},readValueFromInstance:function(t,e){var n;return(0,O._c)(e)?(null===(n=(0,Un.A)(e))||void 0===n?void 0:n.default)||0:(e=lt.has(e)?e:st(e),t.getAttribute(e))},scrapeMotionValuesFromProps:pt,build:function(t,e,n,r,o){nt(e,n,r,o.transformTemplate)},render:ct})),Yn=function(t,e){return j(t)?_n(e,{enableHardwareAcceleration:!1}):Hn(e,{enableHardwareAcceleration:!0})};function qn(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}var Xn={correct:function(t,e){if(!e.target)return t;if("string"==typeof t){if(!J.px.test(t))return t;t=parseFloat(t)}var n=qn(t,e.target.x),r=qn(t,e.target.y);return"".concat(n,"% ").concat(r,"%")}},Gn=n(999),Kn="_$css",Jn={correct:function(t,e){var n=e.treeScale,r=e.projectionDelta,o=t,i=t.includes("var("),a=[];i&&(t=t.replace(Tn,(function(t){return a.push(t),Kn})));var s=Gn.P.parse(t);if(s.length>5)return o;var u=Gn.P.createTransformer(t),l="number"!=typeof s[0]?1:0,c=r.x.scale*n.x,d=r.y.scale*n.y;s[0+l]/=c,s[1+l]/=d;var p=(0,Le.C)(c,d,.5);"number"==typeof s[2+l]&&(s[2+l]/=p),"number"==typeof s[3+l]&&(s[3+l]/=p);var f=u(s);if(i){var v=0;f=f.replace(Kn,(function(){var t=a[v];return v++,t}))}return f}},Qn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,r.ZT)(e,t),e.prototype.componentDidMount=function(){var t,e=this,n=this.props,o=n.visualElement,i=n.layoutGroup,a=n.switchLayoutGroup,s=n.layoutId,u=o.projection;t=tr,Object.assign(D,t),u&&((null==i?void 0:i.group)&&i.group.add(u),(null==a?void 0:a.register)&&s&&a.register(u),u.root.didUpdate(),u.addEventListener("animationComplete",(function(){e.safeToRemove()})),u.setOptions((0,r.pi)((0,r.pi)({},u.options),{onExitComplete:function(){return e.safeToRemove()}}))),P.hasEverUpdated=!0},e.prototype.getSnapshotBeforeUpdate=function(t){var e=this,n=this.props,r=n.layoutDependency,o=n.visualElement,i=n.drag,a=n.isPresent,s=o.projection;return s?(s.isPresent=a,i||t.layoutDependency!==r||void 0===r?s.willUpdate():this.safeToRemove(),t.isPresent!==a&&(a?s.promote():s.relegate()||ye.ZP.postRender((function(){var t;(null===(t=s.getStack())||void 0===t?void 0:t.members.length)||e.safeToRemove()}))),null):null},e.prototype.componentDidUpdate=function(){var t=this.props.visualElement.projection;t&&(t.root.didUpdate(),!t.currentAnimation&&t.isLead()&&this.safeToRemove())},e.prototype.componentWillUnmount=function(){var t=this.props,e=t.visualElement,n=t.layoutGroup,r=t.switchLayoutGroup,o=e.projection;o&&(o.scheduleCheckAfterUnmount(),(null==n?void 0:n.group)&&n.group.remove(o),(null==r?void 0:r.deregister)&&r.deregister(o))},e.prototype.safeToRemove=function(){var t=this.props.safeToRemove;null==t||t()},e.prototype.render=function(){return null},e}(o.Component);var tr={borderRadius:(0,r.pi)((0,r.pi)({},Xn),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:Xn,borderTopRightRadius:Xn,borderBottomLeftRadius:Xn,borderBottomRightRadius:Xn,boxShadow:Jn},er={measureLayout:function(t){var e=(0,r.CR)(ue(),2),n=e[0],i=e[1],a=(0,o.useContext)(M);return o.createElement(Qn,(0,r.pi)({},t,{layoutGroup:a,switchLayoutGroup:(0,o.useContext)(A),isPresent:n,safeToRemove:i}))}};var nr=n(4439),rr=["TopLeft","TopRight","BottomLeft","BottomRight"],or=rr.length,ir=function(t){return"string"==typeof t?parseFloat(t):t},ar=function(t){return"number"==typeof t||J.px.test(t)};function sr(t,e){var n;return null!==(n=t[e])&&void 0!==n?n:t.borderRadius}var ur=cr(0,.5,nr.Bn),lr=cr(.5,.95,nr.GE);function cr(t,e,n){return function(r){return re?1:n((0,Ze.Y)(t,e,r))}}function dr(t,e){t.min=e.min,t.max=e.max}function pr(t,e){dr(t.x,e.x),dr(t.y,e.y)}function fr(t,e,n,r,o){return t=en(t-=e,1/n,r),void 0!==o&&(t=en(t,1/o,r)),t}function vr(t,e,n,o,i){var a=(0,r.CR)(n,3),s=a[0],u=a[1],l=a[2];!function(t,e,n,r,o,i,a){if(void 0===e&&(e=0),void 0===n&&(n=1),void 0===r&&(r=.5),void 0===i&&(i=t),void 0===a&&(a=t),J.aQ.test(e)&&(e=parseFloat(e),e=(0,Le.C)(a.min,a.max,e/100)-a.min),"number"==typeof e){var s=(0,Le.C)(i.min,i.max,r);t===i&&(s-=e),t.min=fr(t.min,e,n,s,o),t.max=fr(t.max,e,n,s,o)}}(t,e[s],e[u],e[l],e.scale,o,i)}var hr=["x","scaleX","originX"],mr=["y","scaleY","originY"];function gr(t,e,n,r){vr(t.x,e,hr,null==n?void 0:n.x,null==r?void 0:r.x),vr(t.y,e,mr,null==n?void 0:n.y,null==r?void 0:r.y)}function yr(t){return 0===t.translate&&1===t.scale}function br(t){return yr(t.x)&&yr(t.y)}function xr(t,e){return t.x.min===e.x.min&&t.x.max===e.x.max&&t.y.min===e.y.min&&t.y.max===e.y.max}var wr=n(3303),Sr=function(){function t(){this.members=[]}return t.prototype.add=function(t){(0,wr.y4)(this.members,t),t.scheduleRender()},t.prototype.remove=function(t){if((0,wr.cl)(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){var e=this.members[this.members.length-1];e&&this.promote(e)}},t.prototype.relegate=function(t){var e,n=this.members.findIndex((function(e){return t===e}));if(0===n)return!1;for(var r=n;r>=0;r--){var o=this.members[r];if(!1!==o.isPresent){e=o;break}}return!!e&&(this.promote(e),!0)},t.prototype.promote=function(t,e){var n,r=this.lead;t!==r&&(this.prevLead=r,this.lead=t,t.show(),r&&(r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,e&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues,t.snapshot.isShared=!0),(null===(n=t.root)||void 0===n?void 0:n.isUpdating)&&(t.isLayoutDirty=!0),!1===t.options.crossfade&&r.hide()))},t.prototype.exitAnimationComplete=function(){this.members.forEach((function(t){var e,n,r,o,i;null===(n=(e=t.options).onExitComplete)||void 0===n||n.call(e),null===(i=null===(r=t.resumingFrom)||void 0===r?void 0:(o=r.options).onExitComplete)||void 0===i||i.call(o)}))},t.prototype.scheduleRender=function(){this.members.forEach((function(t){t.instance&&t.scheduleRender(!1)}))},t.prototype.removeLeadSnapshot=function(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)},t}(),Er="translate3d(0px, 0px, 0) scale(1, 1) scale(1, 1)";function Cr(t,e,n){var r=t.x.translate/e.x,o=t.y.translate/e.y,i="translate3d(".concat(r,"px, ").concat(o,"px, 0) ");if(i+="scale(".concat(1/e.x,", ").concat(1/e.y,") "),n){var a=n.rotate,s=n.rotateX,u=n.rotateY;a&&(i+="rotate(".concat(a,"deg) ")),s&&(i+="rotateX(".concat(s,"deg) ")),u&&(i+="rotateY(".concat(u,"deg) "))}var l=t.x.scale*e.x,c=t.y.scale*e.y;return(i+="scale(".concat(l,", ").concat(c,")"))===Er?"none":i}var Tr=function(t,e){return t.depth-e.depth},Pr=function(){function t(){this.children=[],this.isDirty=!1}return t.prototype.add=function(t){(0,wr.y4)(this.children,t),this.isDirty=!0},t.prototype.remove=function(t){(0,wr.cl)(this.children,t),this.isDirty=!0},t.prototype.forEach=function(t){this.isDirty&&this.children.sort(Tr),this.isDirty=!1,this.children.forEach(t)},t}();function Rr(t){var e=t.attachResizeListener,n=t.defaultParent,o=t.measureScroll,i=t.checkIsScrollRoot,a=t.resetTransform;return function(){function t(t,e,o){var i=this;void 0===e&&(e={}),void 0===o&&(o=null==n?void 0:n()),this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.potentialNodes=new Map,this.checkUpdateFailed=function(){i.isUpdating&&(i.isUpdating=!1,i.clearAllSnapshots())},this.updateProjection=function(){i.nodes.forEach(jr),i.nodes.forEach(Dr)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.id=t,this.latestValues=e,this.root=o?o.root||o:this,this.path=o?(0,r.ev)((0,r.ev)([],(0,r.CR)(o.path),!1),[o],!1):[],this.parent=o,this.depth=o?o.depth+1:0,t&&this.root.registerPotentialNode(t,this);for(var a=0;a=0;r--)if(Boolean(t.path[r].instance)){n=t.path[r];break}var o=(n&&n!==t.root?n.instance:document).querySelector('[data-projection-id="'.concat(e,'"]'));o&&t.mount(o,!0)}function Ur(t){t.min=Math.round(t.min),t.max=Math.round(t.max)}function Wr(t){Ur(t.x),Ur(t.y)}var Hr=Rr({attachResizeListener:function(t,e){return St(t,"resize",e)},measureScroll:function(){return{x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}},checkIsScrollRoot:function(){return!0}}),_r={current:void 0},Yr=Rr({measureScroll:function(t){return{x:t.scrollLeft,y:t.scrollTop}},defaultParent:function(){if(!_r.current){var t=new Hr(0,{});t.mount(window),t.setOptions({layoutScroll:!0}),_r.current=t}return _r.current},resetTransform:function(t,e){t.style.transform=null!=e?e:"none"},checkIsScrollRoot:function(t){return Boolean("fixed"===window.getComputedStyle(t).position)}}),qr=(0,r.pi)((0,r.pi)((0,r.pi)((0,r.pi)({},ge),oe),mn),er),Xr=L((function(t,e){return function(t,e,n,o,i){var a=e.forwardMotionProps,s=void 0!==a&&a,u=j(t)?xt:wt;return(0,r.pi)((0,r.pi)({},u),{preloadedFeatures:n,useRender:it(s),createVisualElement:o,projectionNodeConstructor:i,Component:t})}(t,e,qr,Yn,Yr)}))},6844:(t,e,n)=>{"use strict";n.d(e,{T:()=>a});var r=n(765),o=n(999),i=n(7508);function a(t,e){var n,a=(0,i.A)(t);return a!==r.h&&(a=o.P),null===(n=a.getAnimatableNone)||void 0===n?void 0:n.call(a,e)}},7508:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(3112),o=n(8851),i=n(765),a=n(1875),s=(0,r.pi)((0,r.pi)({},a.j),{color:o.$,backgroundColor:o.$,outlineColor:o.$,fill:o.$,stroke:o.$,borderColor:o.$,borderTopColor:o.$,borderRightColor:o.$,borderBottomColor:o.$,borderLeftColor:o.$,filter:i.h,WebkitFilter:i.h}),u=function(t){return s[t]}},6483:(t,e,n)=>{"use strict";n.d(e,{$:()=>a,C:()=>s});var r=n(6849),o=n(321),i=n(3427),a=[r.Rx,o.px,o.aQ,o.RW,o.vw,o.vh,{test:function(t){return"auto"===t},parse:function(t){return t}}],s=function(t){return a.find((0,i.l)(t))}},1875:(t,e,n)=>{"use strict";n.d(e,{j:()=>s});var r=n(321),o=n(6849),i=n(3112),a=(0,i.pi)((0,i.pi)({},o.Rx),{transform:Math.round}),s={borderWidth:r.px,borderTopWidth:r.px,borderRightWidth:r.px,borderBottomWidth:r.px,borderLeftWidth:r.px,borderRadius:r.px,radius:r.px,borderTopLeftRadius:r.px,borderTopRightRadius:r.px,borderBottomRightRadius:r.px,borderBottomLeftRadius:r.px,width:r.px,maxWidth:r.px,height:r.px,maxHeight:r.px,size:r.px,top:r.px,right:r.px,bottom:r.px,left:r.px,padding:r.px,paddingTop:r.px,paddingRight:r.px,paddingBottom:r.px,paddingLeft:r.px,margin:r.px,marginTop:r.px,marginRight:r.px,marginBottom:r.px,marginLeft:r.px,rotate:r.RW,rotateX:r.RW,rotateY:r.RW,rotateZ:r.RW,scale:o.bA,scaleX:o.bA,scaleY:o.bA,scaleZ:o.bA,skew:r.RW,skewX:r.RW,skewY:r.RW,distance:r.px,translateX:r.px,translateY:r.px,translateZ:r.px,x:r.px,y:r.px,z:r.px,perspective:r.px,transformPerspective:r.px,opacity:o.Fq,originX:r.$C,originY:r.$C,originZ:r.px,zIndex:a,fillOpacity:o.Fq,strokeOpacity:o.Fq,numOctaves:a}},3427:(t,e,n)=>{"use strict";n.d(e,{l:()=>r});var r=function(t){return function(e){return e.test(t)}}},8572:(t,e,n)=>{"use strict";n.d(e,{Ee:()=>l,Gl:()=>o,_c:()=>s,r$:()=>r,s3:()=>i});var r=["","X","Y","Z"],o=["transformPerspective","x","y","z"];function i(t,e){return o.indexOf(t)-o.indexOf(e)}["translate","scale","rotate","skew"].forEach((function(t){return r.forEach((function(e){return o.push(t+e)}))}));var a=new Set(o);function s(t){return a.has(t)}var u=new Set(["originX","originY","originZ"]);function l(t){return u.has(t)}},870:(t,e,n)=>{"use strict";n.d(e,{d5:()=>u,p_:()=>d});var r=n(3112),o=n(7241),i=n(5555),a=n(7278),s=n(8572);function u(t,e,n){var r;if(void 0===n&&(n={}),t.notifyAnimationStart(e),Array.isArray(e)){var o=e.map((function(e){return l(t,e,n)}));r=Promise.all(o)}else if("string"==typeof e)r=l(t,e,n);else{var i="function"==typeof e?(0,a.x5)(t,e,n.custom):e;r=c(t,i,n)}return r.then((function(){return t.notifyAnimationComplete(e)}))}function l(t,e,n){var o;void 0===n&&(n={});var i=(0,a.x5)(t,e,n.custom),s=(i||{}).transition,u=void 0===s?t.getDefaultTransition()||{}:s;n.transitionOverride&&(u=n.transitionOverride);var d=i?function(){return c(t,i,n)}:function(){return Promise.resolve()},f=(null===(o=t.variantChildren)||void 0===o?void 0:o.size)?function(o){void 0===o&&(o=0);var i=u.delayChildren,a=void 0===i?0:i,s=u.staggerChildren,c=u.staggerDirection;return function(t,e,n,o,i,a){void 0===n&&(n=0);void 0===o&&(o=0);void 0===i&&(i=1);var s=[],u=(t.variantChildren.size-1)*o,c=1===i?function(t){return void 0===t&&(t=0),t*o}:function(t){return void 0===t&&(t=0),u-t*o};return Array.from(t.variantChildren).sort(p).forEach((function(t,o){s.push(l(t,e,(0,r.pi)((0,r.pi)({},a),{delay:n+c(o)})).then((function(){return t.notifyAnimationComplete(e)})))})),Promise.all(s)}(t,e,a+o,s,c,n)}:function(){return Promise.resolve()},v=u.when;if(v){var h=(0,r.CR)("beforeChildren"===v?[d,f]:[f,d],2),m=h[0],g=h[1];return m().then(g)}return Promise.all([d(),f(n.delay)])}function c(t,e,n){var a,u=void 0===n?{}:n,l=u.delay,c=void 0===l?0:l,d=u.transitionOverride,p=u.type,v=t.makeTargetAnimatable(e),h=v.transition,m=void 0===h?t.getDefaultTransition():h,g=v.transitionEnd,y=(0,r._T)(v,["transition","transitionEnd"]);d&&(m=d);var b=[],x=p&&(null===(a=t.animationState)||void 0===a?void 0:a.getState()[p]);for(var w in y){var S=t.getValue(w),E=y[w];if(!(!S||void 0===E||x&&f(x,w))){var C=(0,r.pi)({delay:c},m);t.shouldReduceMotion&&(0,s._c)(w)&&(C=(0,r.pi)((0,r.pi)({},C),{type:!1,delay:0}));var T=(0,o.b8)(w,S,E,C);b.push(T)}}return Promise.all(b).then((function(){g&&(0,i.CD)(t,g)}))}function d(t){t.forEachValue((function(t){return t.stop()}))}function p(t,e){return t.sortNodePosition(e)}function f(t,e){var n=t.protectedKeys,r=t.needsAnimating,o=n.hasOwnProperty(e)&&!0!==r[e];return r[e]=!1,o}},5555:(t,e,n)=>{"use strict";n.d(e,{GJ:()=>x,P$:()=>S,CD:()=>g,gg:()=>b});var r=n(3112),o=n(999),i=function(t){return/^\-?\d*\.?\d+$/.test(t)},a=function(t){return/^0[^.\s]+$/.test(t)},s=n(411),u=n(5946),l=n(6844),c=n(8851),d=n(6483),p=n(3427),f=(0,r.ev)((0,r.ev)([],(0,r.CR)(d.$),!1),[c.$,o.P],!1),v=function(t){return f.find((0,p.l)(t))},h=n(7278);function m(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,(0,u.B)(n))}function g(t,e){var n=(0,h.x5)(t,e),o=n?t.makeTargetAnimatable(n,!1):{},i=o.transitionEnd,a=void 0===i?{}:i;o.transition;var u=(0,r._T)(o,["transitionEnd","transition"]);for(var l in u=(0,r.pi)((0,r.pi)({},u),a)){m(t,l,(0,s.Y)(u[l]))}}function y(t,e){(0,r.ev)([],(0,r.CR)(e),!1).reverse().forEach((function(n){var r,o=t.getVariant(n);o&&g(t,o),null===(r=t.variantChildren)||void 0===r||r.forEach((function(t){y(t,e)}))}))}function b(t,e){return Array.isArray(e)?y(t,e):"string"==typeof e?y(t,[e]):void g(t,e)}function x(t,e,n){var r,s,c,d,p=Object.keys(e).filter((function(e){return!t.hasValue(e)})),f=p.length;if(f)for(var h=0;h{"use strict";function r(t){return Array.isArray(t)}function o(t){return"string"==typeof t||r(t)}function i(t,e,n,r,o){var i;return void 0===r&&(r={}),void 0===o&&(o={}),"function"==typeof e&&(e=e(null!=n?n:t.custom,r,o)),"string"==typeof e&&(e=null===(i=t.variants)||void 0===i?void 0:i[e]),"function"==typeof e&&(e=e(null!=n?n:t.custom,r,o)),e}function a(t,e,n){var r=t.getProps();return i(r,e,null!=n?n:r.custom,function(t){var e={};return t.forEachValue((function(t,n){return e[n]=t.get()})),e}(t),function(t){var e={};return t.forEachValue((function(t,n){return e[n]=t.getVelocity()})),e}(t))}function s(t){var e;return"function"==typeof(null===(e=t.animate)||void 0===e?void 0:e.start)||o(t.initial)||o(t.animate)||o(t.whileHover)||o(t.whileDrag)||o(t.whileTap)||o(t.whileFocus)||o(t.exit)}function u(t){return Boolean(s(t)||t.variants)}n.d(e,{$L:()=>o,A0:()=>r,O6:()=>s,e8:()=>u,oQ:()=>i,x5:()=>a})},3303:(t,e,n)=>{"use strict";function r(t,e){-1===t.indexOf(e)&&t.push(e)}function o(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}n.d(e,{cl:()=>o,y4:()=>r})},1182:(t,e,n)=>{"use strict";n.d(e,{j:()=>r});var r="undefined"!=typeof document},411:(t,e,n)=>{"use strict";n.d(e,{Y:()=>i,p:()=>o});var r=n(2981),o=function(t){return Boolean(t&&"object"==typeof t&&t.mix&&t.toValue)},i=function(t){return(0,r.C)(t)?t[t.length-1]||0:t}},4097:(t,e,n)=>{"use strict";n.d(e,{L:()=>o});var r=n(3303),o=function(){function t(){this.subscriptions=[]}return t.prototype.add=function(t){var e=this;return(0,r.y4)(this.subscriptions,t),function(){return(0,r.cl)(e.subscriptions,t)}},t.prototype.notify=function(t,e,n){var r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](t,e,n);else for(var o=0;o{"use strict";n.d(e,{w:()=>r});var r=function(t){return 1e3*t}},1672:(t,e,n)=>{"use strict";n.d(e,{h:()=>o});var r=n(9901);function o(t){var e=(0,r.useRef)(null);return null===e.current&&(e.current=t()),e.current}},4258:(t,e,n)=>{"use strict";n.d(e,{L:()=>o});var r=n(9901),o=n(1182).j?r.useLayoutEffect:r.useEffect},5946:(t,e,n)=>{"use strict";n.d(e,{B:()=>s});var r=n(4810),o=n(7930),i=n(4097),a=function(){function t(t){var e,n=this;this.version="6.5.1",this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new i.L,this.velocityUpdateSubscribers=new i.L,this.renderSubscribers=new i.L,this.canTrackVelocity=!1,this.updateAndNotify=function(t,e){void 0===e&&(e=!0),n.prev=n.current,n.current=t;var o=(0,r.$B)(),i=o.delta,a=o.timestamp;n.lastUpdated!==a&&(n.timeDelta=i,n.lastUpdated=a,r.ZP.postRender(n.scheduleVelocityCheck)),n.prev!==n.current&&n.updateSubscribers.notify(n.current),n.velocityUpdateSubscribers.getSize()&&n.velocityUpdateSubscribers.notify(n.getVelocity()),e&&n.renderSubscribers.notify(n.current)},this.scheduleVelocityCheck=function(){return r.ZP.postRender(n.velocityCheck)},this.velocityCheck=function(t){t.timestamp!==n.lastUpdated&&(n.prev=n.current,n.velocityUpdateSubscribers.notify(n.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=(e=this.current,!isNaN(parseFloat(e)))}return t.prototype.onChange=function(t){return this.updateSubscribers.add(t)},t.prototype.clearListeners=function(){this.updateSubscribers.clear()},t.prototype.onRenderRequest=function(t){return t(this.get()),this.renderSubscribers.add(t)},t.prototype.attach=function(t){this.passiveEffect=t},t.prototype.set=function(t,e){void 0===e&&(e=!0),e&&this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t,e)},t.prototype.get=function(){return this.current},t.prototype.getPrevious=function(){return this.prev},t.prototype.getVelocity=function(){return this.canTrackVelocity?(0,o.R)(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0},t.prototype.start=function(t){var e=this;return this.stop(),new Promise((function(n){e.hasAnimated=!0,e.stopAnimation=t(n)})).then((function(){return e.clearAnimation()}))},t.prototype.stop=function(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()},t.prototype.isAnimating=function(){return!!this.stopAnimation},t.prototype.clearAnimation=function(){this.stopAnimation=null},t.prototype.destroy=function(){this.updateSubscribers.clear(),this.renderSubscribers.clear(),this.stop()},t}();function s(t){return new a(t)}},7487:(t,e,n)=>{"use strict";n.d(e,{v:()=>H});var r=n(3112);const o=new WeakMap;let i;function a({target:t,contentRect:e,borderBoxSize:n}){var r;null===(r=o.get(t))||void 0===r||r.forEach((r=>{r({target:t,contentSize:e,get size(){return function(t,e){if(e){const{inlineSize:t,blockSize:n}=e[0];return{width:t,height:n}}return t instanceof SVGElement&&"getBBox"in t?t.getBBox():{width:t.offsetWidth,height:t.offsetHeight}}(t,n)}})}))}function s(t){t.forEach(a)}function u(t,e){i||"undefined"!=typeof ResizeObserver&&(i=new ResizeObserver(s));const n=function(t,e){var n;return"string"==typeof t?e?(null!==(n=e[t])&&void 0!==n||(e[t]=document.querySelectorAll(t)),t=e[t]):t=document.querySelectorAll(t):t instanceof Element&&(t=[t]),Array.from(t||[])}(t);return n.forEach((t=>{let n=o.get(t);n||(n=new Set,o.set(t,n)),n.add(e),null==i||i.observe(t)})),()=>{n.forEach((t=>{const n=o.get(t);null==n||n.delete(e),(null==n?void 0:n.size)||null==i||i.unobserve(t)}))}}const l=new Set;let c;function d(t){return l.add(t),c||(c=()=>{const t={width:window.innerWidth,height:window.innerHeight},e={target:window,size:t,contentSize:t};l.forEach((t=>t(e)))},window.addEventListener("resize",c)),()=>{l.delete(t),!l.size&&c&&(c=void 0)}}const p=(t,e,n)=>e-t==0?1:(n-t)/(e-t);const f=50,v=()=>({time:0,x:{current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0},y:{current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}}),h={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function m(t,e,n,r){const o=n[e],{length:i,position:a}=h[e],s=o.current,u=n.time;o.current=t["scroll"+a],o.scrollLength=t["scroll"+i]-t["client"+i],o.offset.length=0,o.offset[0]=0,o.offset[1]=o.scrollLength,o.progress=p(0,o.scrollLength,o.current);const l=r-u;var c,d;o.velocity=l>f?0:(c=o.current-s,(d=l)?c*(1e3/d):0)}const g=t=>t,y=(t,e,n)=>-n*t+n*e+t;function b(t,e){const n=t[t.length-1];for(let r=1;r<=e;r++){const o=p(0,e,r);t.push(y(n,1,o))}}function x(t){const e=[0];return b(e,t-1),e}const w=t=>"number"==typeof t,S=t=>Array.isArray(t)&&!w(t[0]),E=(t,e,n)=>{const r=e-t;return((n-t)%r+r)%r+t};const C=(t,e,n)=>Math.min(Math.max(n,t),e);function T(t,e=x(t.length),n=g){const r=t.length,o=r-e.length;return o>0&&b(e,o),o=>{let i=0;for(;i"string"==typeof t,M={start:0,center:.5,end:1};function A(t,e,n=0){let r=0;if(void 0!==M[t]&&(t=M[t]),R(t)){const e=parseFloat(t);t.endsWith("px")?r=e:t.endsWith("%")?t=e/100:t.endsWith("vw")?r=e/100*document.documentElement.clientWidth:t.endsWith("vh")?r=e/100*document.documentElement.clientHeight:t=e}return w(t)&&(r=e*t),n+r}const V=[0,0];function k(t,e,n,r){let o=Array.isArray(t)?t:V,i=0,a=0;return w(t)?o=[t,t]:R(t)&&(o=(t=t.trim()).includes(" ")?t.split(" "):[t,M[t]?t:"0"]),i=A(o[0],n,r),a=A(o[1],e),i-a}const L={x:0,y:0};function Z(t,e,n){let{offset:r=P.All}=n;const{target:o=t,axis:i="y"}=n,a="y"===i?"height":"width",s=o!==t?function(t,e){let n={x:0,y:0},r=t;for(;r&&r!==e;)if(r instanceof HTMLElement)n.x+=r.offsetLeft,n.y+=r.offsetTop,r=r.offsetParent;else if(r instanceof SVGGraphicsElement&&"getBBox"in r){const{top:t,left:e}=r.getBBox();for(n.x+=e,n.y+=t;r&&"svg"!==r.tagName;)r=r.parentNode}return n}(o,t):L,u=o===t?{width:t.scrollWidth,height:t.scrollHeight}:{width:o.clientWidth,height:o.clientHeight},l={width:t.clientWidth,height:t.clientHeight};e[i].offset.length=0;let c=!e[i].interpolate;const d=r.length;for(let p=0;pfunction(t,e=t,n){if(n.x.targetOffset=0,n.y.targetOffset=0,e!==t){let r=e;for(;r&&r!=t;)n.x.targetOffset+=r.offsetLeft,n.y.targetOffset+=r.offsetTop,r=r.offsetParent}n.x.targetLength=e===t?e.scrollWidth:e.clientWidth,n.y.targetLength=e===t?e.scrollHeight:e.clientHeight,n.x.containerLength=t.clientWidth,n.y.containerLength=t.clientHeight}(t,r.target,n),update:e=>{!function(t,e,n){m(t,"x",e,n),m(t,"y",e,n),e.time=n}(t,n,e),(r.offset||r.target)&&Z(t,n,r)},notify:"function"==typeof e?()=>e(n):D(e,n[o])}}function D(t,e){return t.pause(),t.forEachNative(((t,{easing:e})=>{var n,r;if(t.updateDuration)e||(t.easing=g),t.updateDuration(1);else{const o={duration:1e3};e||(o.easing="linear"),null===(r=null===(n=t.effect)||void 0===n?void 0:n.updateTiming)||void 0===r||r.call(n,o)}})),()=>{t.currentTime=e.progress}}const O=new WeakMap,B=new WeakMap,I=new WeakMap,F=t=>t===document.documentElement?window:t;function z(t,e={}){var{container:n=document.documentElement}=e,o=(0,r._T)(e,["container"]);let i=I.get(n);i||(i=new Set,I.set(n,i));const a=v(),s=j(n,t,a,o);if(i.add(s),!O.has(n)){const t=()=>{const t=performance.now();for(const e of i)e.measure();for(const e of i)e.update(t);for(const e of i)e.notify()};O.set(n,t);const e=F(n);window.addEventListener("resize",t,{passive:!0}),n!==document.documentElement&&B.set(n,(c=t,"function"==typeof(l=n)?d(l):u(l,c))),e.addEventListener("scroll",t,{passive:!0})}var l,c;const p=O.get(n),f=requestAnimationFrame(p);return()=>{var e;"function"!=typeof t&&t.stop(),cancelAnimationFrame(f);const r=I.get(n);if(!r)return;if(r.delete(s),r.size)return;const o=O.get(n);O.delete(n),o&&(F(n).removeEventListener("scroll",o),null===(e=B.get(n))||void 0===e||e(),window.removeEventListener("resize",o))}}var N=n(5946),$=n(1672),U=n(4258),W=function(){return{scrollX:(0,N.B)(0),scrollY:(0,N.B)(0),scrollXProgress:(0,N.B)(0),scrollYProgress:(0,N.B)(0)}};function H(t){void 0===t&&(t={});var e=t.container,n=t.target,o=(0,r._T)(t,["container","target"]),i=(0,$.h)(W);return(0,U.L)((function(){return z((function(t){var e=t.x,n=t.y;i.scrollX.set(e.current),i.scrollXProgress.set(e.progress),i.scrollY.set(n.current),i.scrollYProgress.set(n.progress)}),(0,r.pi)((0,r.pi)({},o),{container:(null==e?void 0:e.current)||void 0,target:(null==n?void 0:n.current)||void 0}))}),[]),i}},4810:(t,e,n)=>{"use strict";n.d(e,{qY:()=>f,ZP:()=>b,iW:()=>v,$B:()=>y});const r=1/60*1e3,o="undefined"!=typeof performance?()=>performance.now():()=>Date.now(),i="undefined"!=typeof window?t=>window.requestAnimationFrame(t):t=>setTimeout((()=>t(o())),r);let a=!0,s=!1,u=!1;const l={delta:0,timestamp:0},c=["read","update","preRender","render","postRender"],d=c.reduce(((t,e)=>(t[e]=function(t){let e=[],n=[],r=0,o=!1,i=!1;const a=new WeakSet,s={schedule:(t,i=!1,s=!1)=>{const u=s&&o,l=u?e:n;return i&&a.add(t),-1===l.indexOf(t)&&(l.push(t),u&&o&&(r=e.length)),t},cancel:t=>{const e=n.indexOf(t);-1!==e&&n.splice(e,1),a.delete(t)},process:u=>{if(o)i=!0;else{if(o=!0,[e,n]=[n,e],n.length=0,r=e.length,r)for(let n=0;ns=!0)),t)),{}),p=c.reduce(((t,e)=>{const n=d[e];return t[e]=(t,e=!1,r=!1)=>(s||g(),n.schedule(t,e,r)),t}),{}),f=c.reduce(((t,e)=>(t[e]=d[e].cancel,t)),{}),v=c.reduce(((t,e)=>(t[e]=()=>d[e].process(l),t)),{}),h=t=>d[t].process(l),m=t=>{s=!1,l.delta=a?r:Math.max(Math.min(t-l.timestamp,40),1),l.timestamp=t,u=!0,c.forEach(h),u=!1,s&&(a=!1,i(m))},g=()=>{s=!0,a=!0,u||i(m)},y=()=>l,b=p},4439:(t,e,n)=>{"use strict";n.d(e,{LU:()=>g,G2:()=>v,XL:()=>m,CG:()=>h,h9:()=>b,yD:()=>x,gJ:()=>y,Z7:()=>d,X7:()=>f,Bn:()=>p,YQ:()=>s,mZ:()=>c,Vv:()=>l,GE:()=>a});const r=t=>e=>1-t(1-e),o=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,i=t=>e=>e*e*((t+1)*e-t),a=t=>t,s=(u=2,t=>Math.pow(t,u));var u;const l=r(s),c=o(s),d=t=>1-Math.sin(Math.acos(t)),p=r(d),f=o(p),v=i(1.525),h=r(v),m=o(v),g=(t=>{const e=i(t);return t=>(t*=2)<1?.5*e(t):.5*(2-Math.pow(2,-10*(t-1)))})(1.525),y=t=>{if(1===t||0===t)return t;const e=t*t;return t<.36363636363636365?7.5625*e:t<.7272727272727273?9.075*e-9.9*t+3.4:t<.9?12.066481994459833*e-19.63545706371191*t+8.898060941828255:10.8*t*t-20.52*t+10.72},b=r(y),x=t=>t<.5?.5*(1-y(1-2*t)):.5*y(2*t-1)+.5},7641:(t,e,n)=>{"use strict";n.d(e,{u:()=>r});const r=(t,e,n)=>Math.min(Math.max(n,t),e)},2336:(t,e,n)=>{"use strict";n.d(e,{e:()=>r});const r=t=>"number"==typeof t},8539:(t,e,n)=>{"use strict";n.d(e,{C:()=>r});const r=(t,e,n)=>-n*t+n*e+t},700:(t,e,n)=>{"use strict";n.d(e,{z:()=>o});const r=(t,e)=>n=>e(t(n)),o=(...t)=>t.reduce(r)},6408:(t,e,n)=>{"use strict";n.d(e,{Y:()=>r});const r=(t,e,n)=>{const r=e-t;return 0===r?1:(n-t)/r}},7930:(t,e,n)=>{"use strict";function r(t,e){return e?t*(1e3/e):0}n.d(e,{R:()=>r})},4732:(t,e,n)=>{"use strict";n.d(e,{$:()=>o});var r=n(2491);const o={test:(0,n(7841).i)("#"),parse:function(t){let e="",n="",r="",o="";return t.length>5?(e=t.substr(1,2),n=t.substr(3,2),r=t.substr(5,2),o=t.substr(7,2)):(e=t.substr(1,1),n=t.substr(2,1),r=t.substr(3,1),o=t.substr(4,1),e+=e,n+=n,r+=r,o+=o),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}},transform:r.m.transform}},9491:(t,e,n)=>{"use strict";n.d(e,{J:()=>s});var r=n(6849),o=n(321),i=n(8676),a=n(7841);const s={test:(0,a.i)("hsl","hue"),parse:(0,a.d)("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:a=1})=>"hsla("+Math.round(t)+", "+o.aQ.transform((0,i.Nw)(e))+", "+o.aQ.transform((0,i.Nw)(n))+", "+(0,i.Nw)(r.Fq.transform(a))+")"}},8851:(t,e,n)=>{"use strict";n.d(e,{$:()=>s});var r=n(8676),o=n(4732),i=n(9491),a=n(2491);const s={test:t=>a.m.test(t)||o.$.test(t)||i.J.test(t),parse:t=>a.m.test(t)?a.m.parse(t):i.J.test(t)?i.J.parse(t):o.$.parse(t),transform:t=>(0,r.HD)(t)?t:t.hasOwnProperty("red")?a.m.transform(t):i.J.transform(t)}},2491:(t,e,n)=>{"use strict";n.d(e,{m:()=>u});var r=n(6849),o=n(8676),i=n(7841);const a=(0,o.uZ)(0,255),s=Object.assign(Object.assign({},r.Rx),{transform:t=>Math.round(a(t))}),u={test:(0,i.i)("rgb","red"),parse:(0,i.d)("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:i=1})=>"rgba("+s.transform(t)+", "+s.transform(e)+", "+s.transform(n)+", "+(0,o.Nw)(r.Fq.transform(i))+")"}},7841:(t,e,n)=>{"use strict";n.d(e,{d:()=>i,i:()=>o});var r=n(8676);const o=(t,e)=>n=>Boolean((0,r.HD)(n)&&r.mj.test(n)&&n.startsWith(t)||e&&Object.prototype.hasOwnProperty.call(n,e)),i=(t,e,n)=>o=>{if(!(0,r.HD)(o))return o;const[i,a,s,u]=o.match(r.KP);return{[t]:parseFloat(i),[e]:parseFloat(a),[n]:parseFloat(s),alpha:void 0!==u?parseFloat(u):1}}},765:(t,e,n)=>{"use strict";n.d(e,{h:()=>u});var r=n(999),o=n(8676);const i=new Set(["brightness","contrast","saturate","opacity"]);function a(t){let[e,n]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;const[r]=n.match(o.KP)||[];if(!r)return t;const a=n.replace(r,"");let s=i.has(e)?1:0;return r!==n&&(s*=100),e+"("+s+a+")"}const s=/([a-z-]*)\(.*?\)/g,u=Object.assign(Object.assign({},r.P),{getAnimatableNone:t=>{const e=t.match(s);return e?e.map(a).join(" "):t}})},999:(t,e,n)=>{"use strict";n.d(e,{P:()=>p});var r=n(8851),o=n(6849),i=n(8676);const a="${c}",s="${n}";function u(t){"number"==typeof t&&(t=`${t}`);const e=[];let n=0;const u=t.match(i.dA);u&&(n=u.length,t=t.replace(i.dA,a),e.push(...u.map(r.$.parse)));const l=t.match(i.KP);return l&&(t=t.replace(i.KP,s),e.push(...l.map(o.Rx.parse))),{values:e,numColors:n,tokenised:t}}function l(t){return u(t).values}function c(t){const{values:e,numColors:n,tokenised:o}=u(t),l=e.length;return t=>{let e=o;for(let o=0;o"number"==typeof t?0:t;const p={test:function(t){var e,n,r,o;return isNaN(t)&&(0,i.HD)(t)&&(null!==(n=null===(e=t.match(i.KP))||void 0===e?void 0:e.length)&&void 0!==n?n:0)+(null!==(o=null===(r=t.match(i.dA))||void 0===r?void 0:r.length)&&void 0!==o?o:0)>0},parse:l,createTransformer:c,getAnimatableNone:function(t){const e=l(t);return c(t)(e.map(d))}}},6849:(t,e,n)=>{"use strict";n.d(e,{Fq:()=>i,Rx:()=>o,bA:()=>a});var r=n(8676);const o={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},i=Object.assign(Object.assign({},o),{transform:(0,r.uZ)(0,1)}),a=Object.assign(Object.assign({},o),{default:1})},321:(t,e,n)=>{"use strict";n.d(e,{$C:()=>c,RW:()=>i,aQ:()=>a,px:()=>s,vh:()=>u,vw:()=>l});var r=n(8676);const o=t=>({test:e=>(0,r.HD)(e)&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),i=o("deg"),a=o("%"),s=o("px"),u=o("vh"),l=o("vw"),c=Object.assign(Object.assign({},a),{parse:t=>a.parse(t)/100,transform:t=>a.transform(100*t)})},8676:(t,e,n)=>{"use strict";n.d(e,{HD:()=>u,KP:()=>i,Nw:()=>o,dA:()=>a,mj:()=>s,uZ:()=>r});const r=(t,e)=>n=>Math.max(Math.min(n,e),t),o=t=>t%1?Number(t.toFixed(5)):t,i=/(-)?([\d]*\.?[\d])+/g,a=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))/gi,s=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i;function u(t){return"string"==typeof t}},3112:(t,e,n)=>{"use strict";n.d(e,{CR:()=>s,ZT:()=>o,_T:()=>a,ev:()=>u,pi:()=>i});var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)};function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var i=function(){return i=Object.assign||function(t){for(var e,n=1,r=arguments.length;n0)&&!(r=i.next()).done;)a.push(r.value)}catch(s){o={error:s}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function u(t,e,n){if(n||2===arguments.length)for(var r,o=0,i=e.length;o{a.d(e,{Zo:()=>u,kt:()=>s});var n=a(9901);function r(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}function l(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,n)}return a}function p(t){for(var e=1;e=0||(r[a]=t[a]);return r}(t,e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(t);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(t,a)&&(r[a]=t[a])}return r}var o=n.createContext({}),d=function(t){var e=n.useContext(o),a=e;return t&&(a="function"==typeof t?t(e):p(p({},e),t)),a},u=function(t){var e=d(t.components);return n.createElement(o.Provider,{value:e},t.children)},m="mdxType",k={inlineCode:"code",wrapper:function(t){var e=t.children;return n.createElement(n.Fragment,{},e)}},c=n.forwardRef((function(t,e){var a=t.components,r=t.mdxType,l=t.originalType,o=t.parentName,u=i(t,["components","mdxType","originalType","parentName"]),m=d(a),c=r,s=m["".concat(o,".").concat(c)]||m[c]||k[c]||l;return a?n.createElement(s,p(p({ref:e},u),{},{components:a})):n.createElement(s,p({ref:e},u))}));function s(t,e){var a=arguments,r=e&&e.mdxType;if("string"==typeof t||r){var l=a.length,p=new Array(l);p[0]=c;var i={};for(var o in e)hasOwnProperty.call(e,o)&&(i[o]=e[o]);i.originalType=t,i[m]="string"==typeof t?t:r,p[1]=i;for(var d=2;d{a.r(e),a.d(e,{assets:()=>u,contentTitle:()=>o,default:()=>s,frontMatter:()=>i,metadata:()=>d,toc:()=>m});var n=a(3341),r=a(1792),l=(a(9901),a(7522)),p=["components"],i={hide_table_of_contents:!0},o="Operators",d={unversionedId:"api/operators",id:"version-1.0.19-alpha/api/operators",title:"Operators",description:"Operating Table",source:"@site/versioned_docs/version-1.0.19-alpha/api/operators.md",sourceDirName:"api",slug:"/api/operators",permalink:"/docs/1.0.19-alpha/api/operators",draft:!1,tags:[],version:"1.0.19-alpha",frontMatter:{hide_table_of_contents:!0},sidebar:"sidebar",previous:{title:"Keywords",permalink:"/docs/1.0.19-alpha/api/keywords"},next:{title:"API",permalink:"/docs/1.0.19-alpha/api"}},u={},m=[{value:"Operating Table",id:"operating-table",level:2}],k={toc:m},c="wrapper";function s(t){var e=t.components,a=(0,r.Z)(t,p);return(0,l.kt)(c,(0,n.Z)({},k,a,{components:e,mdxType:"MDXLayout"}),(0,l.kt)("h1",{id:"operators"},"Operators"),(0,l.kt)("h2",{id:"operating-table"},"Operating Table"),(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:null},"operator"),(0,l.kt)("th",{parentName:"tr",align:null},"string"),(0,l.kt)("th",{parentName:"tr",align:null},"tuple"),(0,l.kt)("th",{parentName:"tr",align:null},"helper"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("a",{parentName:"td",href:"/docs/1.0.19-alpha/api/arrayof"},"arrayOf")),(0,l.kt)("td",{parentName:"tr",align:null},'"T[]"'),(0,l.kt)("td",{parentName:"tr",align:null},'[T, "[]"]'),(0,l.kt)("td",{parentName:"tr",align:null},"arrayOf(T)")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("a",{parentName:"td",href:"/docs/1.0.19-alpha/api/instanceof"},"instanceOf")),(0,l.kt)("td",{parentName:"tr",align:null}),(0,l.kt)("td",{parentName:"tr",align:null},'["instanceOf", T]'),(0,l.kt)("td",{parentName:"tr",align:null},"instanceOf(T)")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("a",{parentName:"td",href:"/docs/1.0.19-alpha/api/intersection"},"&")),(0,l.kt)("td",{parentName:"tr",align:null},'"L&R"'),(0,l.kt)("td",{parentName:"tr",align:null},'[L, "&", R]'),(0,l.kt)("td",{parentName:"tr",align:null},"intersection(L,R)")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("a",{parentName:"td",href:"/docs/1.0.19-alpha/api/keyof"},"keyOf")),(0,l.kt)("td",{parentName:"tr",align:null}),(0,l.kt)("td",{parentName:"tr",align:null},'"','["keyOf", T]','"'),(0,l.kt)("td",{parentName:"tr",align:null},"keyOf(T)")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("a",{parentName:"td",href:"/docs/1.0.19-alpha/api/morph"},"|",">")),(0,l.kt)("td",{parentName:"tr",align:null}),(0,l.kt)("td",{parentName:"tr",align:null},'[inputType, "',"|",'>", (data) => output]'),(0,l.kt)("td",{parentName:"tr",align:null},"morph(inputType, (data) => output)")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("a",{parentName:"td",href:"/docs/1.0.19-alpha/api/narrow"},"=>")),(0,l.kt)("td",{parentName:"tr",align:null}),(0,l.kt)("td",{parentName:"tr",align:null},'["type", "=>" , condition]'),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("a",{parentName:"td",href:"/docs/1.0.19-alpha/api/union"},"|")),(0,l.kt)("td",{parentName:"tr",align:null},'"L',"|",'R"'),(0,l.kt)("td",{parentName:"tr",align:null},'[L, "',"|",'" , R]'),(0,l.kt)("td",{parentName:"tr",align:null},"union(L,R)")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("a",{parentName:"td",href:"/docs/1.0.19-alpha/api/valueof"},"===")),(0,l.kt)("td",{parentName:"tr",align:null}),(0,l.kt)("td",{parentName:"tr",align:null},'["===", T]'),(0,l.kt)("td",{parentName:"tr",align:null},"valueOf(T)")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("a",{parentName:"td",href:"/docs/1.0.19-alpha/api/parseconfigtuple"},":")),(0,l.kt)("td",{parentName:"tr",align:null}),(0,l.kt)("td",{parentName:"tr",align:null},'["type", ":", config]'),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("a",{parentName:"td",href:"/docs/1.0.19-alpha/api/validatebound"},"bound")),(0,l.kt)("td",{parentName:"tr",align:null},'"N{a.d(e,{Zo:()=>u,kt:()=>s});var n=a(9901);function r(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}function l(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,n)}return a}function p(t){for(var e=1;e=0||(r[a]=t[a]);return r}(t,e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(t);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(t,a)&&(r[a]=t[a])}return r}var o=n.createContext({}),d=function(t){var e=n.useContext(o),a=e;return t&&(a="function"==typeof t?t(e):p(p({},e),t)),a},u=function(t){var e=d(t.components);return n.createElement(o.Provider,{value:e},t.children)},m="mdxType",k={inlineCode:"code",wrapper:function(t){var e=t.children;return n.createElement(n.Fragment,{},e)}},c=n.forwardRef((function(t,e){var a=t.components,r=t.mdxType,l=t.originalType,o=t.parentName,u=i(t,["components","mdxType","originalType","parentName"]),m=d(a),c=r,s=m["".concat(o,".").concat(c)]||m[c]||k[c]||l;return a?n.createElement(s,p(p({ref:e},u),{},{components:a})):n.createElement(s,p({ref:e},u))}));function s(t,e){var a=arguments,r=e&&e.mdxType;if("string"==typeof t||r){var l=a.length,p=new Array(l);p[0]=c;var i={};for(var o in e)hasOwnProperty.call(e,o)&&(i[o]=e[o]);i.originalType=t,i[m]="string"==typeof t?t:r,p[1]=i;for(var d=2;d{a.r(e),a.d(e,{assets:()=>u,contentTitle:()=>o,default:()=>s,frontMatter:()=>i,metadata:()=>d,toc:()=>m});var n=a(4805),r=a(8),l=(a(9901),a(7522)),p=["components"],i={hide_table_of_contents:!0},o="Operators",d={unversionedId:"api/operators",id:"version-1.0.19-alpha/api/operators",title:"Operators",description:"Operating Table",source:"@site/versioned_docs/version-1.0.19-alpha/api/operators.md",sourceDirName:"api",slug:"/api/operators",permalink:"/docs/1.0.19-alpha/api/operators",draft:!1,tags:[],version:"1.0.19-alpha",frontMatter:{hide_table_of_contents:!0},sidebar:"sidebar",previous:{title:"Keywords",permalink:"/docs/1.0.19-alpha/api/keywords"},next:{title:"API",permalink:"/docs/1.0.19-alpha/api"}},u={},m=[{value:"Operating Table",id:"operating-table",level:2}],k={toc:m},c="wrapper";function s(t){var e=t.components,a=(0,r.Z)(t,p);return(0,l.kt)(c,(0,n.Z)({},k,a,{components:e,mdxType:"MDXLayout"}),(0,l.kt)("h1",{id:"operators"},"Operators"),(0,l.kt)("h2",{id:"operating-table"},"Operating Table"),(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:null},"operator"),(0,l.kt)("th",{parentName:"tr",align:null},"string"),(0,l.kt)("th",{parentName:"tr",align:null},"tuple"),(0,l.kt)("th",{parentName:"tr",align:null},"helper"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("a",{parentName:"td",href:"/docs/1.0.19-alpha/api/arrayof"},"arrayOf")),(0,l.kt)("td",{parentName:"tr",align:null},'"T[]"'),(0,l.kt)("td",{parentName:"tr",align:null},'[T, "[]"]'),(0,l.kt)("td",{parentName:"tr",align:null},"arrayOf(T)")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("a",{parentName:"td",href:"/docs/1.0.19-alpha/api/instanceof"},"instanceOf")),(0,l.kt)("td",{parentName:"tr",align:null}),(0,l.kt)("td",{parentName:"tr",align:null},'["instanceOf", T]'),(0,l.kt)("td",{parentName:"tr",align:null},"instanceOf(T)")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("a",{parentName:"td",href:"/docs/1.0.19-alpha/api/intersection"},"&")),(0,l.kt)("td",{parentName:"tr",align:null},'"L&R"'),(0,l.kt)("td",{parentName:"tr",align:null},'[L, "&", R]'),(0,l.kt)("td",{parentName:"tr",align:null},"intersection(L,R)")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("a",{parentName:"td",href:"/docs/1.0.19-alpha/api/keyof"},"keyOf")),(0,l.kt)("td",{parentName:"tr",align:null}),(0,l.kt)("td",{parentName:"tr",align:null},'"','["keyOf", T]','"'),(0,l.kt)("td",{parentName:"tr",align:null},"keyOf(T)")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("a",{parentName:"td",href:"/docs/1.0.19-alpha/api/morph"},"|",">")),(0,l.kt)("td",{parentName:"tr",align:null}),(0,l.kt)("td",{parentName:"tr",align:null},'[inputType, "',"|",'>", (data) => output]'),(0,l.kt)("td",{parentName:"tr",align:null},"morph(inputType, (data) => output)")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("a",{parentName:"td",href:"/docs/1.0.19-alpha/api/narrow"},"=>")),(0,l.kt)("td",{parentName:"tr",align:null}),(0,l.kt)("td",{parentName:"tr",align:null},'["type", "=>" , condition]'),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("a",{parentName:"td",href:"/docs/1.0.19-alpha/api/union"},"|")),(0,l.kt)("td",{parentName:"tr",align:null},'"L',"|",'R"'),(0,l.kt)("td",{parentName:"tr",align:null},'[L, "',"|",'" , R]'),(0,l.kt)("td",{parentName:"tr",align:null},"union(L,R)")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("a",{parentName:"td",href:"/docs/1.0.19-alpha/api/valueof"},"===")),(0,l.kt)("td",{parentName:"tr",align:null}),(0,l.kt)("td",{parentName:"tr",align:null},'["===", T]'),(0,l.kt)("td",{parentName:"tr",align:null},"valueOf(T)")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("a",{parentName:"td",href:"/docs/1.0.19-alpha/api/parseconfigtuple"},":")),(0,l.kt)("td",{parentName:"tr",align:null}),(0,l.kt)("td",{parentName:"tr",align:null},'["type", ":", config]'),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("a",{parentName:"td",href:"/docs/1.0.19-alpha/api/validatebound"},"bound")),(0,l.kt)("td",{parentName:"tr",align:null},'"N{r.d(n,{Zo:()=>l,kt:()=>d});var t=r(9901);function o(e,n,r){return n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function a(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),r.push.apply(r,t)}return r}function i(e){for(var n=1;n=0||(o[r]=e[r]);return o}(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var c=t.createContext({}),s=function(e){var n=t.useContext(c),r=n;return e&&(r="function"==typeof e?e(n):i(i({},n),e)),r},l=function(e){var n=s(e.components);return t.createElement(c.Provider,{value:n},e.children)},u="mdxType",f={inlineCode:"code",wrapper:function(e){var n=e.children;return t.createElement(t.Fragment,{},n)}},m=t.forwardRef((function(e,n){var r=e.components,o=e.mdxType,a=e.originalType,c=e.parentName,l=p(e,["components","mdxType","originalType","parentName"]),u=s(r),m=o,d=u["".concat(c,".").concat(m)]||u[m]||f[m]||a;return r?t.createElement(d,i(i({ref:n},l),{},{components:r})):t.createElement(d,i({ref:n},l))}));function d(e,n){var r=arguments,o=n&&n.mdxType;if("string"==typeof e||o){var a=r.length,i=new Array(a);i[0]=m;var p={};for(var c in n)hasOwnProperty.call(n,c)&&(p[c]=n[c]);p.originalType=e,p[u]="string"==typeof e?e:o,i[1]=p;for(var s=2;s{r.r(n),r.d(n,{assets:()=>l,contentTitle:()=>c,default:()=>d,frontMatter:()=>p,metadata:()=>s,toc:()=>u});var t=r(3341),o=r(1792),a=(r(9901),r(7522)),i=["components"],p={hide_table_of_contents:!0},c="arkScope",s={unversionedId:"api/arkscope",id:"version-1.0.19-alpha/api/arkscope",title:"arkScope",description:"text",source:"@site/versioned_docs/version-1.0.19-alpha/api/arkscope.md",sourceDirName:"api",slug:"/api/arkscope",permalink:"/docs/1.0.19-alpha/api/arkscope",draft:!1,tags:[],version:"1.0.19-alpha",frontMatter:{hide_table_of_contents:!0}},l={},u=[{value:"text",id:"text",level:2}],f={toc:u},m="wrapper";function d(e){var n=e.components,r=(0,o.Z)(e,i);return(0,a.kt)(m,(0,t.Z)({},f,r,{components:n,mdxType:"MDXLayout"}),(0,a.kt)("h1",{id:"arkscope"},"arkScope"),(0,a.kt)("h2",{id:"text"},"text"),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-ts"},'arkScope: import("./scope.js").Scope<\n [\n {\n any: any\n bigint: bigint\n boolean: boolean\n false: false\n never: never\n null: null\n number: number\n object: object\n string: string\n symbol: symbol\n true: true\n unknown: unknown\n void: void\n undefined: undefined\n Function: (...args: any[]) => unknown\n Date: Date\n Error: Error\n Map: Map\n RegExp: RegExp\n Set: Set\n WeakMap: WeakMap\n WeakSet: WeakSet\n Promise: Promise\n alpha: string\n alphanumeric: string\n lowercase: string\n uppercase: string\n creditCard: string\n email: string\n uuid: string\n parsedNumber: (In: string) => number\n parsedInteger: (In: string) => number\n parsedDate: (In: string) => Date\n semver: string\n json: (In: string) => unknown\n integer: number\n },\n {},\n false\n ]\n>\n')))}d.isMDXComponent=!0}}]); \ No newline at end of file +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[7625],{7522:(e,n,r)=>{r.d(n,{Zo:()=>l,kt:()=>d});var t=r(9901);function o(e,n,r){return n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function a(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),r.push.apply(r,t)}return r}function i(e){for(var n=1;n=0||(o[r]=e[r]);return o}(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var c=t.createContext({}),s=function(e){var n=t.useContext(c),r=n;return e&&(r="function"==typeof e?e(n):i(i({},n),e)),r},l=function(e){var n=s(e.components);return t.createElement(c.Provider,{value:n},e.children)},u="mdxType",f={inlineCode:"code",wrapper:function(e){var n=e.children;return t.createElement(t.Fragment,{},n)}},m=t.forwardRef((function(e,n){var r=e.components,o=e.mdxType,a=e.originalType,c=e.parentName,l=p(e,["components","mdxType","originalType","parentName"]),u=s(r),m=o,d=u["".concat(c,".").concat(m)]||u[m]||f[m]||a;return r?t.createElement(d,i(i({ref:n},l),{},{components:r})):t.createElement(d,i({ref:n},l))}));function d(e,n){var r=arguments,o=n&&n.mdxType;if("string"==typeof e||o){var a=r.length,i=new Array(a);i[0]=m;var p={};for(var c in n)hasOwnProperty.call(n,c)&&(p[c]=n[c]);p.originalType=e,p[u]="string"==typeof e?e:o,i[1]=p;for(var s=2;s{r.r(n),r.d(n,{assets:()=>l,contentTitle:()=>c,default:()=>d,frontMatter:()=>p,metadata:()=>s,toc:()=>u});var t=r(4805),o=r(8),a=(r(9901),r(7522)),i=["components"],p={hide_table_of_contents:!0},c="arkScope",s={unversionedId:"api/arkscope",id:"version-1.0.19-alpha/api/arkscope",title:"arkScope",description:"text",source:"@site/versioned_docs/version-1.0.19-alpha/api/arkscope.md",sourceDirName:"api",slug:"/api/arkscope",permalink:"/docs/1.0.19-alpha/api/arkscope",draft:!1,tags:[],version:"1.0.19-alpha",frontMatter:{hide_table_of_contents:!0}},l={},u=[{value:"text",id:"text",level:2}],f={toc:u},m="wrapper";function d(e){var n=e.components,r=(0,o.Z)(e,i);return(0,a.kt)(m,(0,t.Z)({},f,r,{components:n,mdxType:"MDXLayout"}),(0,a.kt)("h1",{id:"arkscope"},"arkScope"),(0,a.kt)("h2",{id:"text"},"text"),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-ts"},'arkScope: import("./scope.js").Scope<\n [\n {\n any: any\n bigint: bigint\n boolean: boolean\n false: false\n never: never\n null: null\n number: number\n object: object\n string: string\n symbol: symbol\n true: true\n unknown: unknown\n void: void\n undefined: undefined\n Function: (...args: any[]) => unknown\n Date: Date\n Error: Error\n Map: Map\n RegExp: RegExp\n Set: Set\n WeakMap: WeakMap\n WeakSet: WeakSet\n Promise: Promise\n alpha: string\n alphanumeric: string\n lowercase: string\n uppercase: string\n creditCard: string\n email: string\n uuid: string\n parsedNumber: (In: string) => number\n parsedInteger: (In: string) => number\n parsedDate: (In: string) => Date\n semver: string\n json: (In: string) => unknown\n integer: number\n },\n {},\n false\n ]\n>\n')))}d.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/431f3670.8af31436.js b/assets/js/431f3670.8ee91678.js similarity index 60% rename from assets/js/431f3670.8af31436.js rename to assets/js/431f3670.8ee91678.js index 2f7c89bcc8..c283c377ff 100644 --- a/assets/js/431f3670.8af31436.js +++ b/assets/js/431f3670.8ee91678.js @@ -1 +1 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[6954],{7522:(e,t,r)=>{r.d(t,{Zo:()=>u,kt:()=>d});var n=r(9901);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function p(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var l=n.createContext({}),c=function(e){var t=n.useContext(l),r=t;return e&&(r="function"==typeof e?e(t):p(p({},t),e)),r},u=function(e){var t=c(e.components);return n.createElement(l.Provider,{value:t},e.children)},s="mdxType",f={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},y=n.forwardRef((function(e,t){var r=e.components,o=e.mdxType,a=e.originalType,l=e.parentName,u=i(e,["components","mdxType","originalType","parentName"]),s=c(r),y=o,d=s["".concat(l,".").concat(y)]||s[y]||f[y]||a;return r?n.createElement(d,p(p({ref:t},u),{},{components:r})):n.createElement(d,p({ref:t},u))}));function d(e,t){var r=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var a=r.length,p=new Array(a);p[0]=y;var i={};for(var l in t)hasOwnProperty.call(t,l)&&(i[l]=t[l]);i.originalType=e,i[s]="string"==typeof e?e:o,p[1]=i;for(var c=2;c{r.r(t),r.d(t,{assets:()=>u,contentTitle:()=>l,default:()=>d,frontMatter:()=>i,metadata:()=>c,toc:()=>s});var n=r(3341),o=r(1792),a=(r(9901),r(7522)),p=["components"],i={hide_table_of_contents:!0},l="type",c={unversionedId:"api/type",id:"version-1.0.19-alpha/api/type",title:"type",description:"text",source:"@site/versioned_docs/version-1.0.19-alpha/api/type.md",sourceDirName:"api",slug:"/api/type",permalink:"/docs/1.0.19-alpha/api/type",draft:!1,tags:[],version:"1.0.19-alpha",frontMatter:{hide_table_of_contents:!0}},u={},s=[{value:"text",id:"text",level:2},{value:"hide_table_of_contents: true",id:"hide_table_of_contents-true",level:2},{value:"text",id:"text-1",level:2}],f={toc:s},y="wrapper";function d(e){var t=e.components,r=(0,o.Z)(e,p);return(0,a.kt)(y,(0,n.Z)({},f,r,{components:t,mdxType:"MDXLayout"}),(0,a.kt)("h1",{id:"type"},"type"),(0,a.kt)("h2",{id:"text"},"text"),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-ts"},"type: TypeParser\n")),(0,a.kt)("hr",null),(0,a.kt)("h2",{id:"hide_table_of_contents-true"},"hide_table_of_contents: true"),(0,a.kt)("h1",{id:"type-1"},"Type"),(0,a.kt)("h2",{id:"text-1"},"text"),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-ts"},"export type Type = defer & TypeRoot>\n")))}d.isMDXComponent=!0}}]); \ No newline at end of file +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[6954],{7522:(e,t,r)=>{r.d(t,{Zo:()=>u,kt:()=>d});var n=r(9901);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function p(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var l=n.createContext({}),c=function(e){var t=n.useContext(l),r=t;return e&&(r="function"==typeof e?e(t):p(p({},t),e)),r},u=function(e){var t=c(e.components);return n.createElement(l.Provider,{value:t},e.children)},s="mdxType",f={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},y=n.forwardRef((function(e,t){var r=e.components,o=e.mdxType,a=e.originalType,l=e.parentName,u=i(e,["components","mdxType","originalType","parentName"]),s=c(r),y=o,d=s["".concat(l,".").concat(y)]||s[y]||f[y]||a;return r?n.createElement(d,p(p({ref:t},u),{},{components:r})):n.createElement(d,p({ref:t},u))}));function d(e,t){var r=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var a=r.length,p=new Array(a);p[0]=y;var i={};for(var l in t)hasOwnProperty.call(t,l)&&(i[l]=t[l]);i.originalType=e,i[s]="string"==typeof e?e:o,p[1]=i;for(var c=2;c{r.r(t),r.d(t,{assets:()=>u,contentTitle:()=>l,default:()=>d,frontMatter:()=>i,metadata:()=>c,toc:()=>s});var n=r(4805),o=r(8),a=(r(9901),r(7522)),p=["components"],i={hide_table_of_contents:!0},l="type",c={unversionedId:"api/type",id:"version-1.0.19-alpha/api/type",title:"type",description:"text",source:"@site/versioned_docs/version-1.0.19-alpha/api/type.md",sourceDirName:"api",slug:"/api/type",permalink:"/docs/1.0.19-alpha/api/type",draft:!1,tags:[],version:"1.0.19-alpha",frontMatter:{hide_table_of_contents:!0}},u={},s=[{value:"text",id:"text",level:2},{value:"hide_table_of_contents: true",id:"hide_table_of_contents-true",level:2},{value:"text",id:"text-1",level:2}],f={toc:s},y="wrapper";function d(e){var t=e.components,r=(0,o.Z)(e,p);return(0,a.kt)(y,(0,n.Z)({},f,r,{components:t,mdxType:"MDXLayout"}),(0,a.kt)("h1",{id:"type"},"type"),(0,a.kt)("h2",{id:"text"},"text"),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-ts"},"type: TypeParser\n")),(0,a.kt)("hr",null),(0,a.kt)("h2",{id:"hide_table_of_contents-true"},"hide_table_of_contents: true"),(0,a.kt)("h1",{id:"type-1"},"Type"),(0,a.kt)("h2",{id:"text-1"},"text"),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-ts"},"export type Type = defer & TypeRoot>\n")))}d.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/44abb010.8eb41f52.js b/assets/js/44abb010.7c173cc0.js similarity index 60% rename from assets/js/44abb010.8eb41f52.js rename to assets/js/44abb010.7c173cc0.js index f8c00a5be0..ec65466ee1 100644 --- a/assets/js/44abb010.8eb41f52.js +++ b/assets/js/44abb010.7c173cc0.js @@ -1 +1 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[2087],{7522:(e,r,t)=>{t.d(r,{Zo:()=>u,kt:()=>d});var n=t(9901);function o(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function a(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function l(e){for(var r=1;r=0||(o[t]=e[t]);return o}(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var i=n.createContext({}),c=function(e){var r=n.useContext(i),t=r;return e&&(t="function"==typeof e?e(r):l(l({},r),e)),t},u=function(e){var r=c(e.components);return n.createElement(i.Provider,{value:r},e.children)},s="mdxType",f={inlineCode:"code",wrapper:function(e){var r=e.children;return n.createElement(n.Fragment,{},r)}},m=n.forwardRef((function(e,r){var t=e.components,o=e.mdxType,a=e.originalType,i=e.parentName,u=p(e,["components","mdxType","originalType","parentName"]),s=c(t),m=o,d=s["".concat(i,".").concat(m)]||s[m]||f[m]||a;return t?n.createElement(d,l(l({ref:r},u),{},{components:t})):n.createElement(d,l({ref:r},u))}));function d(e,r){var t=arguments,o=r&&r.mdxType;if("string"==typeof e||o){var a=t.length,l=new Array(a);l[0]=m;var p={};for(var i in r)hasOwnProperty.call(r,i)&&(p[i]=r[i]);p.originalType=e,p[s]="string"==typeof e?e:o,l[1]=p;for(var c=2;c{t.r(r),t.d(r,{assets:()=>u,contentTitle:()=>i,default:()=>d,frontMatter:()=>p,metadata:()=>c,toc:()=>s});var n=t(3341),o=t(1792),a=(t(9901),t(7522)),l=["components"],p={hide_table_of_contents:!0},i="narrow",c={unversionedId:"api/narrow",id:"api/narrow",title:"narrow",description:"operator",source:"@site/docs/api/narrow.md",sourceDirName:"api",slug:"/api/narrow",permalink:"/docs/next/api/narrow",draft:!1,tags:[],version:"current",frontMatter:{hide_table_of_contents:!0}},u={},s=[{value:"operator",id:"operator",level:2},{value:"tuple",id:"tuple",level:2},{value:"example",id:"example",level:2}],f={toc:s},m="wrapper";function d(e){var r=e.components,t=(0,o.Z)(e,l);return(0,a.kt)(m,(0,n.Z)({},f,t,{components:r,mdxType:"MDXLayout"}),(0,a.kt)("h1",{id:"narrow"},"narrow"),(0,a.kt)("h2",{id:"operator"},"operator"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},(0,a.kt)("a",{parentName:"li",href:"/docs/next/api/narrow"},"=>"))),(0,a.kt)("h2",{id:"tuple"},"tuple"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},'["type", "=>" , condition]'," ",(0,a.kt)("br",null)),(0,a.kt)("li",{parentName:"ul"},"const narrow = type( ",'["number", "=>" , (n) => n % 2 === 0]',")",(0,a.kt)("br",null))),(0,a.kt)("h2",{id:"example"},"example"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},(0,a.kt)("pre",{parentName:"li"},(0,a.kt)("code",{parentName:"pre"}," const isEven = (x: unknown): x is number => x % 2 === 0\n")))))}d.isMDXComponent=!0}}]); \ No newline at end of file +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[2087],{7522:(e,r,t)=>{t.d(r,{Zo:()=>u,kt:()=>d});var n=t(9901);function o(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function a(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function l(e){for(var r=1;r=0||(o[t]=e[t]);return o}(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var i=n.createContext({}),c=function(e){var r=n.useContext(i),t=r;return e&&(t="function"==typeof e?e(r):l(l({},r),e)),t},u=function(e){var r=c(e.components);return n.createElement(i.Provider,{value:r},e.children)},s="mdxType",f={inlineCode:"code",wrapper:function(e){var r=e.children;return n.createElement(n.Fragment,{},r)}},m=n.forwardRef((function(e,r){var t=e.components,o=e.mdxType,a=e.originalType,i=e.parentName,u=p(e,["components","mdxType","originalType","parentName"]),s=c(t),m=o,d=s["".concat(i,".").concat(m)]||s[m]||f[m]||a;return t?n.createElement(d,l(l({ref:r},u),{},{components:t})):n.createElement(d,l({ref:r},u))}));function d(e,r){var t=arguments,o=r&&r.mdxType;if("string"==typeof e||o){var a=t.length,l=new Array(a);l[0]=m;var p={};for(var i in r)hasOwnProperty.call(r,i)&&(p[i]=r[i]);p.originalType=e,p[s]="string"==typeof e?e:o,l[1]=p;for(var c=2;c{t.r(r),t.d(r,{assets:()=>u,contentTitle:()=>i,default:()=>d,frontMatter:()=>p,metadata:()=>c,toc:()=>s});var n=t(4805),o=t(8),a=(t(9901),t(7522)),l=["components"],p={hide_table_of_contents:!0},i="narrow",c={unversionedId:"api/narrow",id:"api/narrow",title:"narrow",description:"operator",source:"@site/docs/api/narrow.md",sourceDirName:"api",slug:"/api/narrow",permalink:"/docs/next/api/narrow",draft:!1,tags:[],version:"current",frontMatter:{hide_table_of_contents:!0}},u={},s=[{value:"operator",id:"operator",level:2},{value:"tuple",id:"tuple",level:2},{value:"example",id:"example",level:2}],f={toc:s},m="wrapper";function d(e){var r=e.components,t=(0,o.Z)(e,l);return(0,a.kt)(m,(0,n.Z)({},f,t,{components:r,mdxType:"MDXLayout"}),(0,a.kt)("h1",{id:"narrow"},"narrow"),(0,a.kt)("h2",{id:"operator"},"operator"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},(0,a.kt)("a",{parentName:"li",href:"/docs/next/api/narrow"},"=>"))),(0,a.kt)("h2",{id:"tuple"},"tuple"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},'["type", "=>" , condition]'," ",(0,a.kt)("br",null)),(0,a.kt)("li",{parentName:"ul"},"const narrow = type( ",'["number", "=>" , (n) => n % 2 === 0]',")",(0,a.kt)("br",null))),(0,a.kt)("h2",{id:"example"},"example"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},(0,a.kt)("pre",{parentName:"li"},(0,a.kt)("code",{parentName:"pre"}," const isEven = (x: unknown): x is number => x % 2 === 0\n")))))}d.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/4a6ff42c.0c086300.js b/assets/js/4a6ff42c.66747c16.js similarity index 56% rename from assets/js/4a6ff42c.0c086300.js rename to assets/js/4a6ff42c.66747c16.js index 9990d4a107..96d24b8eec 100644 --- a/assets/js/4a6ff42c.0c086300.js +++ b/assets/js/4a6ff42c.66747c16.js @@ -1 +1 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[6084],{7522:(e,r,t)=>{t.d(r,{Zo:()=>c,kt:()=>m});var n=t(9901);function a(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function l(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function o(e){for(var r=1;r=0||(a[t]=e[t]);return a}(e,r);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}var p=n.createContext({}),u=function(e){var r=n.useContext(p),t=r;return e&&(t="function"==typeof e?e(r):o(o({},r),e)),t},c=function(e){var r=u(e.components);return n.createElement(p.Provider,{value:r},e.children)},f="mdxType",s={inlineCode:"code",wrapper:function(e){var r=e.children;return n.createElement(n.Fragment,{},r)}},y=n.forwardRef((function(e,r){var t=e.components,a=e.mdxType,l=e.originalType,p=e.parentName,c=i(e,["components","mdxType","originalType","parentName"]),f=u(t),y=a,m=f["".concat(p,".").concat(y)]||f[y]||s[y]||l;return t?n.createElement(m,o(o({ref:r},c),{},{components:t})):n.createElement(m,o({ref:r},c))}));function m(e,r){var t=arguments,a=r&&r.mdxType;if("string"==typeof e||a){var l=t.length,o=new Array(l);o[0]=y;var i={};for(var p in r)hasOwnProperty.call(r,p)&&(i[p]=r[p]);i.originalType=e,i[f]="string"==typeof e?e:a,o[1]=i;for(var u=2;u{t.r(r),t.d(r,{assets:()=>c,contentTitle:()=>p,default:()=>m,frontMatter:()=>i,metadata:()=>u,toc:()=>f});var n=t(3341),a=t(1792),l=(t(9901),t(7522)),o=["components"],i={hide_table_of_contents:!0},p="arrayOf",u={unversionedId:"api/arrayof",id:"version-1.0.22-alpha/api/arrayof",title:"arrayOf",description:"operator",source:"@site/versioned_docs/version-1.0.22-alpha/api/arrayof.md",sourceDirName:"api",slug:"/api/arrayof",permalink:"/docs/api/arrayof",draft:!1,tags:[],version:"1.0.22-alpha",frontMatter:{hide_table_of_contents:!0}},c={},f=[{value:"operator",id:"operator",level:2},{value:"string",id:"string",level:2},{value:"tuple",id:"tuple",level:2},{value:"helper",id:"helper",level:2}],s={toc:f},y="wrapper";function m(e){var r=e.components,t=(0,a.Z)(e,o);return(0,l.kt)(y,(0,n.Z)({},s,t,{components:r,mdxType:"MDXLayout"}),(0,l.kt)("h1",{id:"arrayof"},"arrayOf"),(0,l.kt)("h2",{id:"operator"},"operator"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},(0,l.kt)("a",{parentName:"li",href:"/docs/api/arrayof"},"arrayOf"))),(0,l.kt)("h2",{id:"string"},"string"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},'"T[]" ',(0,l.kt)("br",null)),(0,l.kt)("li",{parentName:"ul"},'const numberArray = type("number[]")',(0,l.kt)("br",null))),(0,l.kt)("h2",{id:"tuple"},"tuple"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},'[T, "[]"] ',(0,l.kt)("br",null)),(0,l.kt)("li",{parentName:"ul"},'const tupleArray = type(["number", "[]"])',(0,l.kt)("br",null))),(0,l.kt)("h2",{id:"helper"},"helper"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},"arrayOf(T) ",(0,l.kt)("br",null)),(0,l.kt)("li",{parentName:"ul"},'const helperArray = arrayOf("number")',(0,l.kt)("br",null))))}m.isMDXComponent=!0}}]); \ No newline at end of file +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[6084],{7522:(e,r,t)=>{t.d(r,{Zo:()=>c,kt:()=>m});var n=t(9901);function a(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function l(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function o(e){for(var r=1;r=0||(a[t]=e[t]);return a}(e,r);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}var p=n.createContext({}),u=function(e){var r=n.useContext(p),t=r;return e&&(t="function"==typeof e?e(r):o(o({},r),e)),t},c=function(e){var r=u(e.components);return n.createElement(p.Provider,{value:r},e.children)},f="mdxType",s={inlineCode:"code",wrapper:function(e){var r=e.children;return n.createElement(n.Fragment,{},r)}},y=n.forwardRef((function(e,r){var t=e.components,a=e.mdxType,l=e.originalType,p=e.parentName,c=i(e,["components","mdxType","originalType","parentName"]),f=u(t),y=a,m=f["".concat(p,".").concat(y)]||f[y]||s[y]||l;return t?n.createElement(m,o(o({ref:r},c),{},{components:t})):n.createElement(m,o({ref:r},c))}));function m(e,r){var t=arguments,a=r&&r.mdxType;if("string"==typeof e||a){var l=t.length,o=new Array(l);o[0]=y;var i={};for(var p in r)hasOwnProperty.call(r,p)&&(i[p]=r[p]);i.originalType=e,i[f]="string"==typeof e?e:a,o[1]=i;for(var u=2;u{t.r(r),t.d(r,{assets:()=>c,contentTitle:()=>p,default:()=>m,frontMatter:()=>i,metadata:()=>u,toc:()=>f});var n=t(4805),a=t(8),l=(t(9901),t(7522)),o=["components"],i={hide_table_of_contents:!0},p="arrayOf",u={unversionedId:"api/arrayof",id:"version-1.0.22-alpha/api/arrayof",title:"arrayOf",description:"operator",source:"@site/versioned_docs/version-1.0.22-alpha/api/arrayof.md",sourceDirName:"api",slug:"/api/arrayof",permalink:"/docs/api/arrayof",draft:!1,tags:[],version:"1.0.22-alpha",frontMatter:{hide_table_of_contents:!0}},c={},f=[{value:"operator",id:"operator",level:2},{value:"string",id:"string",level:2},{value:"tuple",id:"tuple",level:2},{value:"helper",id:"helper",level:2}],s={toc:f},y="wrapper";function m(e){var r=e.components,t=(0,a.Z)(e,o);return(0,l.kt)(y,(0,n.Z)({},s,t,{components:r,mdxType:"MDXLayout"}),(0,l.kt)("h1",{id:"arrayof"},"arrayOf"),(0,l.kt)("h2",{id:"operator"},"operator"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},(0,l.kt)("a",{parentName:"li",href:"/docs/api/arrayof"},"arrayOf"))),(0,l.kt)("h2",{id:"string"},"string"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},'"T[]" ',(0,l.kt)("br",null)),(0,l.kt)("li",{parentName:"ul"},'const numberArray = type("number[]")',(0,l.kt)("br",null))),(0,l.kt)("h2",{id:"tuple"},"tuple"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},'[T, "[]"] ',(0,l.kt)("br",null)),(0,l.kt)("li",{parentName:"ul"},'const tupleArray = type(["number", "[]"])',(0,l.kt)("br",null))),(0,l.kt)("h2",{id:"helper"},"helper"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},"arrayOf(T) ",(0,l.kt)("br",null)),(0,l.kt)("li",{parentName:"ul"},'const helperArray = arrayOf("number")',(0,l.kt)("br",null))))}m.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/4c239821.0701311e.js b/assets/js/4c239821.0701311e.js new file mode 100644 index 0000000000..edc92da109 --- /dev/null +++ b/assets/js/4c239821.0701311e.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[6971],{7522:(t,e,n)=>{n.d(e,{Zo:()=>u,kt:()=>c});var a=n(9901);function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function l(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,a)}return n}function o(t){for(var e=1;e=0||(r[n]=t[n]);return r}(t,e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(t);for(a=0;a=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}var p=a.createContext({}),d=function(t){var e=a.useContext(p),n=e;return t&&(n="function"==typeof t?t(e):o(o({},e),t)),n},u=function(t){var e=d(t.components);return a.createElement(p.Provider,{value:e},t.children)},m="mdxType",k={inlineCode:"code",wrapper:function(t){var e=t.children;return a.createElement(a.Fragment,{},e)}},s=a.forwardRef((function(t,e){var n=t.components,r=t.mdxType,l=t.originalType,p=t.parentName,u=i(t,["components","mdxType","originalType","parentName"]),m=d(n),s=r,c=m["".concat(p,".").concat(s)]||m[s]||k[s]||l;return n?a.createElement(c,o(o({ref:e},u),{},{components:n})):a.createElement(c,o({ref:e},u))}));function c(t,e){var n=arguments,r=e&&e.mdxType;if("string"==typeof t||r){var l=n.length,o=new Array(l);o[0]=s;var i={};for(var p in e)hasOwnProperty.call(e,p)&&(i[p]=e[p]);i.originalType=t,i[m]="string"==typeof t?t:r,o[1]=i;for(var d=2;d{n.r(e),n.d(e,{assets:()=>u,contentTitle:()=>p,default:()=>c,frontMatter:()=>i,metadata:()=>d,toc:()=>m});var a=n(4805),r=n(8),l=(n(9901),n(7522)),o=["components"],i={hide_table_of_contents:!0},p="tsKeywordsScope",d={unversionedId:"api/tskeywordsscope",id:"version-1.0.22-alpha/api/tskeywordsscope",title:"tsKeywordsScope",description:"keywords",source:"@site/versioned_docs/version-1.0.22-alpha/api/tskeywordsscope.md",sourceDirName:"api",slug:"/api/tskeywordsscope",permalink:"/docs/api/tskeywordsscope",draft:!1,tags:[],version:"1.0.22-alpha",frontMatter:{hide_table_of_contents:!0}},u={},m=[{value:"keywords",id:"keywords",level:2},{value:"text",id:"text",level:2}],k={toc:m},s="wrapper";function c(t){var e=t.components,n=(0,r.Z)(t,o);return(0,l.kt)(s,(0,a.Z)({},k,n,{components:e,mdxType:"MDXLayout"}),(0,l.kt)("h1",{id:"tskeywordsscope"},"tsKeywordsScope"),(0,l.kt)("h2",{id:"keywords"},"keywords"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},'keywords: {"any": "any", "bigint": "a bigint", "boolean": "a boolean", "false": "false", "never": "never", "null": "null", "number": "a number", "object": "an object", "string": "a string", "symbol": "a symbol", "true": "true", "unknown": "unknown", "void": "void", "undefined": "undefined"}')),(0,l.kt)("h2",{id:"text"},"text"),(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:null},"Name"),(0,l.kt)("th",{parentName:"tr",align:null},"Type"),(0,l.kt)("th",{parentName:"tr",align:null},"Description"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"any"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," any")),(0,l.kt)("td",{parentName:"tr",align:null},"any")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"bigint"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," bigint")),(0,l.kt)("td",{parentName:"tr",align:null},"a bigint")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"boolean"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," boolean")),(0,l.kt)("td",{parentName:"tr",align:null},"a boolean")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"false"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," false")),(0,l.kt)("td",{parentName:"tr",align:null},"false")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"never"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," never")),(0,l.kt)("td",{parentName:"tr",align:null},"never")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"null"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," null")),(0,l.kt)("td",{parentName:"tr",align:null},"null")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"number"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," number")),(0,l.kt)("td",{parentName:"tr",align:null},"a number")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"object"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," object")),(0,l.kt)("td",{parentName:"tr",align:null},"an object")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"string"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"a string")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"symbol"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," symbol")),(0,l.kt)("td",{parentName:"tr",align:null},"a symbol")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"true"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," true")),(0,l.kt)("td",{parentName:"tr",align:null},"true")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"unknown"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," unknown")),(0,l.kt)("td",{parentName:"tr",align:null},"unknown")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"void"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," void")),(0,l.kt)("td",{parentName:"tr",align:null},"void")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"undefined"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," undefined")),(0,l.kt)("td",{parentName:"tr",align:null},"undefined")))))}c.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/4c239821.ffe439dd.js b/assets/js/4c239821.ffe439dd.js deleted file mode 100644 index 390c0e86a6..0000000000 --- a/assets/js/4c239821.ffe439dd.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[6971],{7522:(t,e,n)=>{n.d(e,{Zo:()=>u,kt:()=>c});var a=n(9901);function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function l(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,a)}return n}function o(t){for(var e=1;e=0||(r[n]=t[n]);return r}(t,e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(t);for(a=0;a=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}var p=a.createContext({}),d=function(t){var e=a.useContext(p),n=e;return t&&(n="function"==typeof t?t(e):o(o({},e),t)),n},u=function(t){var e=d(t.components);return a.createElement(p.Provider,{value:e},t.children)},m="mdxType",k={inlineCode:"code",wrapper:function(t){var e=t.children;return a.createElement(a.Fragment,{},e)}},s=a.forwardRef((function(t,e){var n=t.components,r=t.mdxType,l=t.originalType,p=t.parentName,u=i(t,["components","mdxType","originalType","parentName"]),m=d(n),s=r,c=m["".concat(p,".").concat(s)]||m[s]||k[s]||l;return n?a.createElement(c,o(o({ref:e},u),{},{components:n})):a.createElement(c,o({ref:e},u))}));function c(t,e){var n=arguments,r=e&&e.mdxType;if("string"==typeof t||r){var l=n.length,o=new Array(l);o[0]=s;var i={};for(var p in e)hasOwnProperty.call(e,p)&&(i[p]=e[p]);i.originalType=t,i[m]="string"==typeof t?t:r,o[1]=i;for(var d=2;d{n.r(e),n.d(e,{assets:()=>u,contentTitle:()=>p,default:()=>c,frontMatter:()=>i,metadata:()=>d,toc:()=>m});var a=n(3341),r=n(1792),l=(n(9901),n(7522)),o=["components"],i={hide_table_of_contents:!0},p="tsKeywordsScope",d={unversionedId:"api/tskeywordsscope",id:"version-1.0.22-alpha/api/tskeywordsscope",title:"tsKeywordsScope",description:"keywords",source:"@site/versioned_docs/version-1.0.22-alpha/api/tskeywordsscope.md",sourceDirName:"api",slug:"/api/tskeywordsscope",permalink:"/docs/api/tskeywordsscope",draft:!1,tags:[],version:"1.0.22-alpha",frontMatter:{hide_table_of_contents:!0}},u={},m=[{value:"keywords",id:"keywords",level:2},{value:"text",id:"text",level:2}],k={toc:m},s="wrapper";function c(t){var e=t.components,n=(0,r.Z)(t,o);return(0,l.kt)(s,(0,a.Z)({},k,n,{components:e,mdxType:"MDXLayout"}),(0,l.kt)("h1",{id:"tskeywordsscope"},"tsKeywordsScope"),(0,l.kt)("h2",{id:"keywords"},"keywords"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},'keywords: {"any": "any", "bigint": "a bigint", "boolean": "a boolean", "false": "false", "never": "never", "null": "null", "number": "a number", "object": "an object", "string": "a string", "symbol": "a symbol", "true": "true", "unknown": "unknown", "void": "void", "undefined": "undefined"}')),(0,l.kt)("h2",{id:"text"},"text"),(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:null},"Name"),(0,l.kt)("th",{parentName:"tr",align:null},"Type"),(0,l.kt)("th",{parentName:"tr",align:null},"Description"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"any"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," any")),(0,l.kt)("td",{parentName:"tr",align:null},"any")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"bigint"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," bigint")),(0,l.kt)("td",{parentName:"tr",align:null},"a bigint")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"boolean"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," boolean")),(0,l.kt)("td",{parentName:"tr",align:null},"a boolean")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"false"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," false")),(0,l.kt)("td",{parentName:"tr",align:null},"false")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"never"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," never")),(0,l.kt)("td",{parentName:"tr",align:null},"never")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"null"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," null")),(0,l.kt)("td",{parentName:"tr",align:null},"null")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"number"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," number")),(0,l.kt)("td",{parentName:"tr",align:null},"a number")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"object"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," object")),(0,l.kt)("td",{parentName:"tr",align:null},"an object")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"string"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"a string")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"symbol"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," symbol")),(0,l.kt)("td",{parentName:"tr",align:null},"a symbol")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"true"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," true")),(0,l.kt)("td",{parentName:"tr",align:null},"true")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"unknown"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," unknown")),(0,l.kt)("td",{parentName:"tr",align:null},"unknown")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"void"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," void")),(0,l.kt)("td",{parentName:"tr",align:null},"void")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"undefined"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," undefined")),(0,l.kt)("td",{parentName:"tr",align:null},"undefined")))))}c.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/4edc808e.c7c96ebb.js b/assets/js/4edc808e.c7c96ebb.js new file mode 100644 index 0000000000..f7e371c46c --- /dev/null +++ b/assets/js/4edc808e.c7c96ebb.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[4173],{7522:(e,n,t)=>{t.d(n,{Zo:()=>c,kt:()=>f});var r=t(9901);function a(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function o(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function i(e){for(var n=1;n=0||(a[t]=e[t]);return a}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}var p=r.createContext({}),l=function(e){var n=r.useContext(p),t=n;return e&&(t="function"==typeof e?e(n):i(i({},n),e)),t},c=function(e){var n=l(e.components);return r.createElement(p.Provider,{value:n},e.children)},d="mdxType",m={inlineCode:"code",wrapper:function(e){var n=e.children;return r.createElement(r.Fragment,{},n)}},u=r.forwardRef((function(e,n){var t=e.components,a=e.mdxType,o=e.originalType,p=e.parentName,c=s(e,["components","mdxType","originalType","parentName"]),d=l(t),u=a,f=d["".concat(p,".").concat(u)]||d[u]||m[u]||o;return t?r.createElement(f,i(i({ref:n},c),{},{components:t})):r.createElement(f,i({ref:n},c))}));function f(e,n){var t=arguments,a=n&&n.mdxType;if("string"==typeof e||a){var o=t.length,i=new Array(o);i[0]=u;var s={};for(var p in n)hasOwnProperty.call(n,p)&&(s[p]=n[p]);s.originalType=e,s[d]="string"==typeof e?e:a,i[1]=s;for(var l=2;l{t.d(n,{g:()=>y});var r=t(6632),a=t(2786),o=t(3800),i=t(966),s=t(9901),p=t(3346);var l=function(e){var n=c[e];return'import {populateDemo} from "./populateDemo"\n(async () => {\n try {\n '+n[0]+"\n populateDemo("+n[1]+')\n } catch(e) {\n populateDemo({ \n type: {\n definition: ""\n },\n data: "",\n problems: "ParseError: " + e.originalErr.message\n } as any)\n }\n})()'},c={type:['const { user, data, problems } = await import("./type")',"{ type: user, data, problems }"],scope:['const { types, data, problems } = await import("./scope")',"{ type: types.package, data, problems }"],demo:['const { pkg, data, problems } = await import("./demo")',"{ type: pkg, data, problems }"]};var d={"index.html":'\n \n\n
\n
\n
\n

Definition

\n
\n
\n
\n
\n
\n

Output

\n
\n
\n
\n
\n',"demo.css":'body {\n font-family: "Cascadia Code", sans-serif;\n background-color: hsl(220 18% 10%);\n}\n\n#demo {\n display: flex;\n flex-direction: column;\n gap: 1rem;\n margin: -0.5rem;\n padding: 0.5rem;\n}\n\n#input {\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n gap: 0.5rem;\n}\n\n.section {\n display: flex;\n flex-direction: column;\n flex-grow: 1;\n gap: 0.5rem;\n}\n\np {\n white-space: pre-wrap;\n}\n\npre {\n white-space: pre-wrap;\n}\n\nh3 {\n margin: 0px;\n color: #fffff0;\n}\n\n.key {\n color: #80cff8;\n}\n.val {\n color: #f5cf8f;\n}\n.operator {\n color: #eb9f2e;\n}\n.bracket {\n color: #009eff;\n}\n.card {\n padding: 1rem;\n background-color: rgb(18, 18, 18);\n color: rgb(255, 255, 255);\n /* transition: box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms; */\n border-radius: 1rem;\n box-shadow: rgba(0, 0, 0, 0.2) 0px 2px 1px -1px,\n rgba(0, 0, 0, 0.14) 0px 1px 1px 0px, rgba(0, 0, 0, 0.12) 0px 1px 3px 0px;\n background-image: linear-gradient(\n rgba(255, 255, 255, 0.05),\n rgba(255, 255, 255, 0.05)\n );\n height: 100%;\n}\n',"populateDemo.ts":'import "./demo.css"\nimport type { Problems, Type } from "arktype"\nimport { stringify } from "arktype/internal/utils/serialize.js"\n\ntype PopulateDemoArgs = {\n type: Type\n data: unknown\n problems: Problems\n}\nexport const populateDemo = ({ data, type, problems }: PopulateDemoArgs) => {\n const defElement = document.querySelector("#definition")!\n defElement.textContent = stringify(type.definition, 2)\n defElement.innerHTML = recolor(defElement.innerHTML)\n\n const resultElement = document.querySelector("#output")!\n if (problems) {\n resultElement.textContent = `\u274c problems:\n\n${problems}`\n } else {\n resultElement.textContent = `\u2705 data:\n\n${stringify(data, 2)}`\n resultElement.innerHTML = recolor(resultElement.innerHTML)\n }\n}\n\nconst recolor = (input: string) => {\n const lines = input.split("\\n")\n const fixedInput: string[] = [""]\n for (const line of lines) {\n if (line.includes(":")) {\n const parts = line.split(":")\n fixedInput.push(`${buildKey(parts[0])}: ${buildVal(parts[1])}`)\n } else {\n fixedInput.push(addArkdarkStyles(line))\n }\n }\n fixedInput.push("")\n return fixedInput.join("\\n")\n}\n\nconst buildKey = (key: string) => {\n return `${key}`\n}\nconst buildVal = (val: string) => {\n const formatted = addArkdarkStyles(val.trim())\n if (formatted[formatted.length - 1] === ",") {\n return `${formatted.replace(",", "")},`\n } else if (formatted[formatted.length - 1] === "{") {\n return "{"\n }\n return `${formatted}`\n}\nconst addArkdarkStyles = (line: string) => {\n const brackets = ["[", "]", "(", ")"]\n const operators = [">", "<", ">e;", "<e;", "|"]\n let modifiedLine = line\n for (const bracket of brackets) {\n modifiedLine = modifiedLine.replaceAll(\n bracket,\n `${bracket}`\n )\n }\n for (const operator of operators) {\n modifiedLine = modifiedLine.replaceAll(\n operator,\n `${operator}`\n )\n }\n return modifiedLine\n}\n',"tsconfig.json":JSON.stringify({compilerOptions:{module:"esnext",target:"esnext",strict:!0}},null,4)},m={type:'import { type } from "arktype"\n\n// Definitions are statically parsed and inferred as TS.\nexport const user = type({\n name: "string",\n device: {\n platform: "\'android\'|\'ios\'",\n "version?": "number"\n }\n})\n\n// Validators return typed data or clear, customizable errors.\nexport const { data, problems } = user({\n name: "Alan Turing",\n device: {\n // problems.summary: "device/platform must be \'android\' or \'ios\' (was \'enigma\')"\n platform: "enigma"\n }\n})\n',scope:'import { scope } from "arktype"\n\n// Scopes are collections of types that can reference each other.\nexport const types = scope({\n package: {\n name: "string",\n "dependencies?": "package[]",\n "contributors?": "contributor[]"\n },\n contributor: {\n // Subtypes like \'email\' are inferred like \'string\' but provide additional validation at runtime.\n email: "email",\n "packages?": "package[]"\n }\n}).compile()\n\n// Cyclic types are inferred to arbitrary depth...\nexport type Package = typeof types.package.infer\n\n// And can validate cyclic data.\nconst packageData: Package = {\n name: "arktype",\n dependencies: [{ name: "typescript" }],\n contributors: [{ email: "david@sharktypeio" }]\n}\npackageData.dependencies![0].dependencies = [packageData]\n\nexport const { data, problems } = types.package(packageData)\n',demo:'import { type } from "arktype"\n\n// Define your type...\nexport const pkg = type({\n name: "string",\n version: "semver",\n "contributors?": "1{t.r(n),t.d(n,{assets:()=>d,contentTitle:()=>l,default:()=>y,frontMatter:()=>p,metadata:()=>c,toc:()=>m});var r=t(4805),a=t(8),o=(t(9901),t(7522)),i=t(962),s=["components"],p={id:"intro",hide_table_of_contents:!0,title:"Intro"},l="Getting Started",c={unversionedId:"intro",id:"intro",title:"Intro",description:'replace(./dev/arktype.io/static,) |> replace({ type },{"{"} type {"}"}) --\x3e',source:"@site/docs/index.mdx",sourceDirName:".",slug:"/",permalink:"/docs/next/",draft:!1,tags:[],version:"current",frontMatter:{id:"intro",hide_table_of_contents:!0,title:"Intro"},sidebar:"sidebar",next:{title:"Scopes",permalink:"/docs/next/scopes"}},d={},m=[{value:"Install \ud83d\udce612KB gzipped, 0 dependencies",id:"install-12kb-gzipped-0-dependencies",level:2},{value:"Your first type",id:"your-first-type",level:2}],u={toc:m},f="wrapper";function y(e){var n=e.components,t=(0,a.Z)(e,s);return(0,o.kt)(f,(0,r.Z)({},u,t,{components:n,mdxType:"MDXLayout"}),(0,o.kt)("h1",{id:"getting-started"},"Getting Started"),(0,o.kt)("h2",{id:"install-12kb-gzipped-0-dependencies"},"Install ",(0,o.kt)("sub",null,(0,o.kt)("sub",null,"\ud83d\udce6",(0,o.kt)("inlineCode",{parentName:"h2"},"12KB")," gzipped, ",(0,o.kt)("inlineCode",{parentName:"h2"},"0")," dependencies"))),(0,o.kt)("img",{src:"/img/npm.svg",alt:"Npm Icon",height:"16px"})," ",(0,o.kt)("code",null,"npm install arktype"),(0,o.kt)("sub",null,"(or whatever package manager you prefer)"),(0,o.kt)("br",null),(0,o.kt)("p",null,"Our types are tested in ",(0,o.kt)("a",{parentName:"p",href:"https://www.typescriptlang.org/tsconfig#strict"},"strict-mode")," with TypeScript versions ",(0,o.kt)("inlineCode",{parentName:"p"},"4.8"),", ",(0,o.kt)("inlineCode",{parentName:"p"},"4.9"),", and ",(0,o.kt)("inlineCode",{parentName:"p"},"5.0"),"."),(0,o.kt)("p",null,(0,o.kt)("em",{parentName:"p"},"Our APIs have mostly stabilized, but details may still change during the alpha/beta stages of our 1.0 release. If you have suggestions that may require a breaking change, now is the time to let us know!")," \u26f5"),(0,o.kt)("h2",{id:"your-first-type"},"Your first type"),(0,o.kt)(i.g,{embedId:"type",mdxType:"StackBlitzDemo"}))}y.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/4edc9ce5.acea1bbd.js b/assets/js/4edc9ce5.acea1bbd.js deleted file mode 100644 index 90feacf5e8..0000000000 --- a/assets/js/4edc9ce5.acea1bbd.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[5820],{7522:(t,e,n)=>{n.d(e,{Zo:()=>o,kt:()=>g});var a=n(9901);function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function l(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,a)}return n}function i(t){for(var e=1;e=0||(r[n]=t[n]);return r}(t,e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(t);for(a=0;a=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}var p=a.createContext({}),m=function(t){var e=a.useContext(p),n=e;return t&&(n="function"==typeof t?t(e):i(i({},e),t)),n},o=function(t){var e=m(t.components);return a.createElement(p.Provider,{value:e},t.children)},k="mdxType",u={inlineCode:"code",wrapper:function(t){var e=t.children;return a.createElement(a.Fragment,{},e)}},N=a.forwardRef((function(t,e){var n=t.components,r=t.mdxType,l=t.originalType,p=t.parentName,o=d(t,["components","mdxType","originalType","parentName"]),k=m(n),N=r,g=k["".concat(p,".").concat(N)]||k[N]||u[N]||l;return n?a.createElement(g,i(i({ref:e},o),{},{components:n})):a.createElement(g,i({ref:e},o))}));function g(t,e){var n=arguments,r=e&&e.mdxType;if("string"==typeof t||r){var l=n.length,i=new Array(l);i[0]=N;var d={};for(var p in e)hasOwnProperty.call(e,p)&&(d[p]=e[p]);d.originalType=t,d[k]="string"==typeof t?t:r,i[1]=d;for(var m=2;m{n.r(e),n.d(e,{assets:()=>o,contentTitle:()=>p,default:()=>g,frontMatter:()=>d,metadata:()=>m,toc:()=>k});var a=n(3341),r=n(1792),l=(n(9901),n(7522)),i=["components"],d={hide_table_of_contents:!0},p="Keywords",m={unversionedId:"api/keywords",id:"api/keywords",title:"Keywords",description:"jsObjectsScope",source:"@site/docs/api/keywords.md",sourceDirName:"api",slug:"/api/keywords",permalink:"/docs/next/api/keywords",draft:!1,tags:[],version:"current",frontMatter:{hide_table_of_contents:!0},sidebar:"sidebar",previous:{title:"Scopes",permalink:"/docs/next/scopes"},next:{title:"Operators",permalink:"/docs/next/api/operators"}},o={},k=[{value:"jsObjectsScope",id:"jsobjectsscope",level:2},{value:"tsKeywordsScope",id:"tskeywordsscope",level:2},{value:"validationScope",id:"validationscope",level:2}],u={toc:k},N="wrapper";function g(t){var e=t.components,n=(0,r.Z)(t,i);return(0,l.kt)(N,(0,a.Z)({},u,n,{components:e,mdxType:"MDXLayout"}),(0,l.kt)("h1",{id:"keywords"},"Keywords"),(0,l.kt)("h2",{id:"jsobjectsscope"},"jsObjectsScope"),(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:null},"Name"),(0,l.kt)("th",{parentName:"tr",align:null},"Type"),(0,l.kt)("th",{parentName:"tr",align:null},"Description"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Function"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," (...args: any[]) => unknown")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Date"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," Date")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Error"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," Error")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Map"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," Map")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"RegExp"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," RegExp")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Set"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," Set")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"WeakMap"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," WeakMap")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"WeakSet"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," WeakSet")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Promise"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," Promise")),(0,l.kt)("td",{parentName:"tr",align:null})))),(0,l.kt)("h2",{id:"tskeywordsscope"},"tsKeywordsScope"),(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:null},"Name"),(0,l.kt)("th",{parentName:"tr",align:null},"Type"),(0,l.kt)("th",{parentName:"tr",align:null},"Description"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"any"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," any")),(0,l.kt)("td",{parentName:"tr",align:null},"any")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"bigint"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," bigint")),(0,l.kt)("td",{parentName:"tr",align:null},"a bigint")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"boolean"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," boolean")),(0,l.kt)("td",{parentName:"tr",align:null},"a boolean")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"false"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," false")),(0,l.kt)("td",{parentName:"tr",align:null},"false")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"never"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," never")),(0,l.kt)("td",{parentName:"tr",align:null},"never")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"null"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," null")),(0,l.kt)("td",{parentName:"tr",align:null},"null")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"number"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," number")),(0,l.kt)("td",{parentName:"tr",align:null},"a number")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"object"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," object")),(0,l.kt)("td",{parentName:"tr",align:null},"an object")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"string"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"a string")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"symbol"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," symbol")),(0,l.kt)("td",{parentName:"tr",align:null},"a symbol")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"true"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," true")),(0,l.kt)("td",{parentName:"tr",align:null},"true")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"unknown"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," unknown")),(0,l.kt)("td",{parentName:"tr",align:null},"unknown")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"void"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," void")),(0,l.kt)("td",{parentName:"tr",align:null},"void")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"undefined"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," undefined")),(0,l.kt)("td",{parentName:"tr",align:null},"undefined")))),(0,l.kt)("h2",{id:"validationscope"},"validationScope"),(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:null},"Name"),(0,l.kt)("th",{parentName:"tr",align:null},"Type"),(0,l.kt)("th",{parentName:"tr",align:null},"Description"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"alpha"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"only letters")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"alphanumeric"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"only letters and digits")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"lowercase"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"only lowercase letters")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"uppercase"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"only uppercase letters")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"creditCard"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"a valid credit card number")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"email"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"a valid email")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"uuid"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"a valid UUID")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"parsedNumber"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," (In: string) => number")),(0,l.kt)("td",{parentName:"tr",align:null},"a well-formed numeric string")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"parsedInteger"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," (In: string) => number")),(0,l.kt)("td",{parentName:"tr",align:null},"a well-formed integer string")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"parsedDate"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," (In: string) => Date")),(0,l.kt)("td",{parentName:"tr",align:null},"a valid date")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"semver"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"a valid semantic version")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"json"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," (In: string) => unknown")),(0,l.kt)("td",{parentName:"tr",align:null},"a JSON-parsable string")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"integer"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," number")),(0,l.kt)("td",{parentName:"tr",align:null},"an integer")))))}g.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/4edc9ce5.c7da37b9.js b/assets/js/4edc9ce5.c7da37b9.js new file mode 100644 index 0000000000..f3b3755ac1 --- /dev/null +++ b/assets/js/4edc9ce5.c7da37b9.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[5820],{7522:(t,e,n)=>{n.d(e,{Zo:()=>o,kt:()=>g});var a=n(9901);function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function l(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,a)}return n}function i(t){for(var e=1;e=0||(r[n]=t[n]);return r}(t,e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(t);for(a=0;a=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}var p=a.createContext({}),m=function(t){var e=a.useContext(p),n=e;return t&&(n="function"==typeof t?t(e):i(i({},e),t)),n},o=function(t){var e=m(t.components);return a.createElement(p.Provider,{value:e},t.children)},k="mdxType",u={inlineCode:"code",wrapper:function(t){var e=t.children;return a.createElement(a.Fragment,{},e)}},N=a.forwardRef((function(t,e){var n=t.components,r=t.mdxType,l=t.originalType,p=t.parentName,o=d(t,["components","mdxType","originalType","parentName"]),k=m(n),N=r,g=k["".concat(p,".").concat(N)]||k[N]||u[N]||l;return n?a.createElement(g,i(i({ref:e},o),{},{components:n})):a.createElement(g,i({ref:e},o))}));function g(t,e){var n=arguments,r=e&&e.mdxType;if("string"==typeof t||r){var l=n.length,i=new Array(l);i[0]=N;var d={};for(var p in e)hasOwnProperty.call(e,p)&&(d[p]=e[p]);d.originalType=t,d[k]="string"==typeof t?t:r,i[1]=d;for(var m=2;m{n.r(e),n.d(e,{assets:()=>o,contentTitle:()=>p,default:()=>g,frontMatter:()=>d,metadata:()=>m,toc:()=>k});var a=n(4805),r=n(8),l=(n(9901),n(7522)),i=["components"],d={hide_table_of_contents:!0},p="Keywords",m={unversionedId:"api/keywords",id:"api/keywords",title:"Keywords",description:"jsObjectsScope",source:"@site/docs/api/keywords.md",sourceDirName:"api",slug:"/api/keywords",permalink:"/docs/next/api/keywords",draft:!1,tags:[],version:"current",frontMatter:{hide_table_of_contents:!0},sidebar:"sidebar",previous:{title:"Scopes",permalink:"/docs/next/scopes"},next:{title:"Operators",permalink:"/docs/next/api/operators"}},o={},k=[{value:"jsObjectsScope",id:"jsobjectsscope",level:2},{value:"tsKeywordsScope",id:"tskeywordsscope",level:2},{value:"validationScope",id:"validationscope",level:2}],u={toc:k},N="wrapper";function g(t){var e=t.components,n=(0,r.Z)(t,i);return(0,l.kt)(N,(0,a.Z)({},u,n,{components:e,mdxType:"MDXLayout"}),(0,l.kt)("h1",{id:"keywords"},"Keywords"),(0,l.kt)("h2",{id:"jsobjectsscope"},"jsObjectsScope"),(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:null},"Name"),(0,l.kt)("th",{parentName:"tr",align:null},"Type"),(0,l.kt)("th",{parentName:"tr",align:null},"Description"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Function"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," (...args: any[]) => unknown")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Date"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," Date")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Error"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," Error")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Map"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," Map")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"RegExp"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," RegExp")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Set"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," Set")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"WeakMap"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," WeakMap")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"WeakSet"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," WeakSet")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Promise"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," Promise")),(0,l.kt)("td",{parentName:"tr",align:null})))),(0,l.kt)("h2",{id:"tskeywordsscope"},"tsKeywordsScope"),(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:null},"Name"),(0,l.kt)("th",{parentName:"tr",align:null},"Type"),(0,l.kt)("th",{parentName:"tr",align:null},"Description"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"any"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," any")),(0,l.kt)("td",{parentName:"tr",align:null},"any")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"bigint"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," bigint")),(0,l.kt)("td",{parentName:"tr",align:null},"a bigint")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"boolean"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," boolean")),(0,l.kt)("td",{parentName:"tr",align:null},"a boolean")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"false"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," false")),(0,l.kt)("td",{parentName:"tr",align:null},"false")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"never"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," never")),(0,l.kt)("td",{parentName:"tr",align:null},"never")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"null"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," null")),(0,l.kt)("td",{parentName:"tr",align:null},"null")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"number"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," number")),(0,l.kt)("td",{parentName:"tr",align:null},"a number")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"object"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," object")),(0,l.kt)("td",{parentName:"tr",align:null},"an object")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"string"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"a string")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"symbol"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," symbol")),(0,l.kt)("td",{parentName:"tr",align:null},"a symbol")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"true"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," true")),(0,l.kt)("td",{parentName:"tr",align:null},"true")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"unknown"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," unknown")),(0,l.kt)("td",{parentName:"tr",align:null},"unknown")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"void"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," void")),(0,l.kt)("td",{parentName:"tr",align:null},"void")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"undefined"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," undefined")),(0,l.kt)("td",{parentName:"tr",align:null},"undefined")))),(0,l.kt)("h2",{id:"validationscope"},"validationScope"),(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:null},"Name"),(0,l.kt)("th",{parentName:"tr",align:null},"Type"),(0,l.kt)("th",{parentName:"tr",align:null},"Description"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"alpha"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"only letters")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"alphanumeric"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"only letters and digits")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"lowercase"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"only lowercase letters")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"uppercase"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"only uppercase letters")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"creditCard"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"a valid credit card number")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"email"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"a valid email")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"uuid"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"a valid UUID")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"parsedNumber"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," (In: string) => number")),(0,l.kt)("td",{parentName:"tr",align:null},"a well-formed numeric string")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"parsedInteger"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," (In: string) => number")),(0,l.kt)("td",{parentName:"tr",align:null},"a well-formed integer string")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"parsedDate"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," (In: string) => Date")),(0,l.kt)("td",{parentName:"tr",align:null},"a valid date")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"semver"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"a valid semantic version")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"json"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," (In: string) => unknown")),(0,l.kt)("td",{parentName:"tr",align:null},"a JSON-parsable string")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"integer"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," number")),(0,l.kt)("td",{parentName:"tr",align:null},"an integer")))))}g.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/4f719b32.68c79df1.js b/assets/js/4f719b32.bf8e1c84.js similarity index 53% rename from assets/js/4f719b32.68c79df1.js rename to assets/js/4f719b32.bf8e1c84.js index 052bb9e731..238cd2479f 100644 --- a/assets/js/4f719b32.68c79df1.js +++ b/assets/js/4f719b32.bf8e1c84.js @@ -1 +1 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[4603],{7522:(e,t,r)=>{r.d(t,{Zo:()=>u,kt:()=>y});var n=r(9901);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var s=n.createContext({}),c=function(e){var t=n.useContext(s),r=t;return e&&(r="function"==typeof e?e(t):i(i({},t),e)),r},u=function(e){var t=c(e.components);return n.createElement(s.Provider,{value:t},e.children)},l="mdxType",f={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},d=n.forwardRef((function(e,t){var r=e.components,o=e.mdxType,a=e.originalType,s=e.parentName,u=p(e,["components","mdxType","originalType","parentName"]),l=c(r),d=o,y=l["".concat(s,".").concat(d)]||l[d]||f[d]||a;return r?n.createElement(y,i(i({ref:t},u),{},{components:r})):n.createElement(y,i({ref:t},u))}));function y(e,t){var r=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var a=r.length,i=new Array(a);i[0]=d;var p={};for(var s in t)hasOwnProperty.call(t,s)&&(p[s]=t[s]);p.originalType=e,p[l]="string"==typeof e?e:o,i[1]=p;for(var c=2;c{r.r(t),r.d(t,{assets:()=>u,contentTitle:()=>s,default:()=>y,frontMatter:()=>p,metadata:()=>c,toc:()=>l});var n=r(3341),o=r(1792),a=(r(9901),r(7522)),i=["components"],p={id:"api",hide_table_of_contents:!0,title:"API"},s="API",c={unversionedId:"api",id:"version-1.0.22-alpha/api",title:"API",description:"replace(./dev/test,https://github.com/arktypeio/arktype/tree/main/dev/test) --\x3e",source:"@site/versioned_docs/version-1.0.22-alpha/api.mdx",sourceDirName:".",slug:"/api",permalink:"/docs/api",draft:!1,tags:[],version:"1.0.22-alpha",frontMatter:{id:"api",hide_table_of_contents:!0,title:"API"},sidebar:"sidebar",previous:{title:"Operators",permalink:"/docs/api/operators"}},u={},l=[],f={toc:l},d="wrapper";function y(e){var t=e.components,r=(0,o.Z)(e,i);return(0,a.kt)(d,(0,n.Z)({},f,r,{components:t,mdxType:"MDXLayout"}),(0,a.kt)("h1",{id:"api"},"API"),(0,a.kt)("p",null,"ArkType supports many of TypeScript's built-in types and operators, as well as some new ones dedicated exclusively to runtime validation. In fact, we got a little ahead of ourselves and built a ton of cool features, but we're still working on getting caught up syntax and API docs. Keep an eye out for more in the next couple weeks \u26f5"),(0,a.kt)("p",null,"In the meantime, check out the examples here and use the type hints you get to learn how you can customize your types and scopes. If you want to explore some of the more advanced features, take a look at ",(0,a.kt)("a",{parentName:"p",href:"https://github.com/arktypeio/arktype/tree/main/dev/test"},"our unit tests")," or ask us ",(0,a.kt)("a",{parentName:"p",href:"https://discord.gg/xEzdc3fJQC"},"on Discord")," if your functionality is supported. If not, ",(0,a.kt)("a",{parentName:"p",href:"https://github.com/arktypeio/arktype/issues/new"},"create a GitHub issue")," so we can prioritize it!"))}y.isMDXComponent=!0}}]); \ No newline at end of file +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[4603],{7522:(e,t,r)=>{r.d(t,{Zo:()=>u,kt:()=>y});var n=r(9901);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var s=n.createContext({}),c=function(e){var t=n.useContext(s),r=t;return e&&(r="function"==typeof e?e(t):i(i({},t),e)),r},u=function(e){var t=c(e.components);return n.createElement(s.Provider,{value:t},e.children)},l="mdxType",f={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},d=n.forwardRef((function(e,t){var r=e.components,o=e.mdxType,a=e.originalType,s=e.parentName,u=p(e,["components","mdxType","originalType","parentName"]),l=c(r),d=o,y=l["".concat(s,".").concat(d)]||l[d]||f[d]||a;return r?n.createElement(y,i(i({ref:t},u),{},{components:r})):n.createElement(y,i({ref:t},u))}));function y(e,t){var r=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var a=r.length,i=new Array(a);i[0]=d;var p={};for(var s in t)hasOwnProperty.call(t,s)&&(p[s]=t[s]);p.originalType=e,p[l]="string"==typeof e?e:o,i[1]=p;for(var c=2;c{r.r(t),r.d(t,{assets:()=>u,contentTitle:()=>s,default:()=>y,frontMatter:()=>p,metadata:()=>c,toc:()=>l});var n=r(4805),o=r(8),a=(r(9901),r(7522)),i=["components"],p={id:"api",hide_table_of_contents:!0,title:"API"},s="API",c={unversionedId:"api",id:"version-1.0.22-alpha/api",title:"API",description:"replace(./dev/test,https://github.com/arktypeio/arktype/tree/main/dev/test) --\x3e",source:"@site/versioned_docs/version-1.0.22-alpha/api.mdx",sourceDirName:".",slug:"/api",permalink:"/docs/api",draft:!1,tags:[],version:"1.0.22-alpha",frontMatter:{id:"api",hide_table_of_contents:!0,title:"API"},sidebar:"sidebar",previous:{title:"Operators",permalink:"/docs/api/operators"}},u={},l=[],f={toc:l},d="wrapper";function y(e){var t=e.components,r=(0,o.Z)(e,i);return(0,a.kt)(d,(0,n.Z)({},f,r,{components:t,mdxType:"MDXLayout"}),(0,a.kt)("h1",{id:"api"},"API"),(0,a.kt)("p",null,"ArkType supports many of TypeScript's built-in types and operators, as well as some new ones dedicated exclusively to runtime validation. In fact, we got a little ahead of ourselves and built a ton of cool features, but we're still working on getting caught up syntax and API docs. Keep an eye out for more in the next couple weeks \u26f5"),(0,a.kt)("p",null,"In the meantime, check out the examples here and use the type hints you get to learn how you can customize your types and scopes. If you want to explore some of the more advanced features, take a look at ",(0,a.kt)("a",{parentName:"p",href:"https://github.com/arktypeio/arktype/tree/main/dev/test"},"our unit tests")," or ask us ",(0,a.kt)("a",{parentName:"p",href:"https://discord.gg/xEzdc3fJQC"},"on Discord")," if your functionality is supported. If not, ",(0,a.kt)("a",{parentName:"p",href:"https://github.com/arktypeio/arktype/issues/new"},"create a GitHub issue")," so we can prioritize it!"))}y.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/4fc4d3de.2eb13da4.js b/assets/js/4fc4d3de.2eb13da4.js new file mode 100644 index 0000000000..17f123a000 --- /dev/null +++ b/assets/js/4fc4d3de.2eb13da4.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[2227],{7522:(t,e,n)=>{n.d(e,{Zo:()=>o,kt:()=>g});var a=n(9901);function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function l(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,a)}return n}function i(t){for(var e=1;e=0||(r[n]=t[n]);return r}(t,e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(t);for(a=0;a=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}var d=a.createContext({}),m=function(t){var e=a.useContext(d),n=e;return t&&(n="function"==typeof t?t(e):i(i({},e),t)),n},o=function(t){var e=m(t.components);return a.createElement(d.Provider,{value:e},t.children)},k="mdxType",u={inlineCode:"code",wrapper:function(t){var e=t.children;return a.createElement(a.Fragment,{},e)}},N=a.forwardRef((function(t,e){var n=t.components,r=t.mdxType,l=t.originalType,d=t.parentName,o=p(t,["components","mdxType","originalType","parentName"]),k=m(n),N=r,g=k["".concat(d,".").concat(N)]||k[N]||u[N]||l;return n?a.createElement(g,i(i({ref:e},o),{},{components:n})):a.createElement(g,i({ref:e},o))}));function g(t,e){var n=arguments,r=e&&e.mdxType;if("string"==typeof t||r){var l=n.length,i=new Array(l);i[0]=N;var p={};for(var d in e)hasOwnProperty.call(e,d)&&(p[d]=e[d]);p.originalType=t,p[k]="string"==typeof t?t:r,i[1]=p;for(var m=2;m{n.r(e),n.d(e,{assets:()=>o,contentTitle:()=>d,default:()=>g,frontMatter:()=>p,metadata:()=>m,toc:()=>k});var a=n(4805),r=n(8),l=(n(9901),n(7522)),i=["components"],p={hide_table_of_contents:!0},d="Keywords",m={unversionedId:"api/keywords",id:"version-1.0.19-alpha/api/keywords",title:"Keywords",description:"jsObjectsScope",source:"@site/versioned_docs/version-1.0.19-alpha/api/keywords.md",sourceDirName:"api",slug:"/api/keywords",permalink:"/docs/1.0.19-alpha/api/keywords",draft:!1,tags:[],version:"1.0.19-alpha",frontMatter:{hide_table_of_contents:!0},sidebar:"sidebar",previous:{title:"Scopes",permalink:"/docs/1.0.19-alpha/scopes"},next:{title:"Operators",permalink:"/docs/1.0.19-alpha/api/operators"}},o={},k=[{value:"jsObjectsScope",id:"jsobjectsscope",level:2},{value:"tsKeywordsScope",id:"tskeywordsscope",level:2},{value:"validationScope",id:"validationscope",level:2}],u={toc:k},N="wrapper";function g(t){var e=t.components,n=(0,r.Z)(t,i);return(0,l.kt)(N,(0,a.Z)({},u,n,{components:e,mdxType:"MDXLayout"}),(0,l.kt)("h1",{id:"keywords"},"Keywords"),(0,l.kt)("h2",{id:"jsobjectsscope"},"jsObjectsScope"),(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:null},"Name"),(0,l.kt)("th",{parentName:"tr",align:null},"Type"),(0,l.kt)("th",{parentName:"tr",align:null},"Description"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Function"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," (...args: any[]) => unknown")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Date"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," Date")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Error"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," Error")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Map"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," Map")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"RegExp"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," RegExp")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Set"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," Set")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"WeakMap"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," WeakMap")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"WeakSet"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," WeakSet")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Promise"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," Promise")),(0,l.kt)("td",{parentName:"tr",align:null})))),(0,l.kt)("h2",{id:"tskeywordsscope"},"tsKeywordsScope"),(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:null},"Name"),(0,l.kt)("th",{parentName:"tr",align:null},"Type"),(0,l.kt)("th",{parentName:"tr",align:null},"Description"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"any"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," any")),(0,l.kt)("td",{parentName:"tr",align:null},"any")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"bigint"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," bigint")),(0,l.kt)("td",{parentName:"tr",align:null},"a bigint")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"boolean"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," boolean")),(0,l.kt)("td",{parentName:"tr",align:null},"a boolean")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"false"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," false")),(0,l.kt)("td",{parentName:"tr",align:null},"false")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"never"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," never")),(0,l.kt)("td",{parentName:"tr",align:null},"never")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"null"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," null")),(0,l.kt)("td",{parentName:"tr",align:null},"null")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"number"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," number")),(0,l.kt)("td",{parentName:"tr",align:null},"a number")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"object"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," object")),(0,l.kt)("td",{parentName:"tr",align:null},"an object")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"string"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"a string")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"symbol"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," symbol")),(0,l.kt)("td",{parentName:"tr",align:null},"a symbol")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"true"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," true")),(0,l.kt)("td",{parentName:"tr",align:null},"true")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"unknown"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," unknown")),(0,l.kt)("td",{parentName:"tr",align:null},"unknown")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"void"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," void")),(0,l.kt)("td",{parentName:"tr",align:null},"void")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"undefined"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," undefined")),(0,l.kt)("td",{parentName:"tr",align:null},"undefined")))),(0,l.kt)("h2",{id:"validationscope"},"validationScope"),(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:null},"Name"),(0,l.kt)("th",{parentName:"tr",align:null},"Type"),(0,l.kt)("th",{parentName:"tr",align:null},"Description"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"alpha"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"only letters")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"alphanumeric"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"only letters and digits")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"lowercase"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"only lowercase letters")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"uppercase"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"only uppercase letters")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"creditCard"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"a valid credit card number")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"email"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"a valid email")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"uuid"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"a valid UUID")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"parsedNumber"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," (In: string) => number")),(0,l.kt)("td",{parentName:"tr",align:null},"a well-formed numeric string")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"parsedInteger"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," (In: string) => number")),(0,l.kt)("td",{parentName:"tr",align:null},"a well-formed integer string")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"parsedDate"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," (In: string) => Date")),(0,l.kt)("td",{parentName:"tr",align:null},"a valid date")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"semver"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"a valid semantic version")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"json"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," (In: string) => unknown")),(0,l.kt)("td",{parentName:"tr",align:null},"a JSON-parsable string")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"integer"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," number")),(0,l.kt)("td",{parentName:"tr",align:null},"an integer")))))}g.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/4fc4d3de.8b386791.js b/assets/js/4fc4d3de.8b386791.js deleted file mode 100644 index 66e29e2a5f..0000000000 --- a/assets/js/4fc4d3de.8b386791.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[2227],{7522:(t,e,n)=>{n.d(e,{Zo:()=>o,kt:()=>g});var a=n(9901);function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function l(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,a)}return n}function i(t){for(var e=1;e=0||(r[n]=t[n]);return r}(t,e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(t);for(a=0;a=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}var d=a.createContext({}),m=function(t){var e=a.useContext(d),n=e;return t&&(n="function"==typeof t?t(e):i(i({},e),t)),n},o=function(t){var e=m(t.components);return a.createElement(d.Provider,{value:e},t.children)},k="mdxType",u={inlineCode:"code",wrapper:function(t){var e=t.children;return a.createElement(a.Fragment,{},e)}},N=a.forwardRef((function(t,e){var n=t.components,r=t.mdxType,l=t.originalType,d=t.parentName,o=p(t,["components","mdxType","originalType","parentName"]),k=m(n),N=r,g=k["".concat(d,".").concat(N)]||k[N]||u[N]||l;return n?a.createElement(g,i(i({ref:e},o),{},{components:n})):a.createElement(g,i({ref:e},o))}));function g(t,e){var n=arguments,r=e&&e.mdxType;if("string"==typeof t||r){var l=n.length,i=new Array(l);i[0]=N;var p={};for(var d in e)hasOwnProperty.call(e,d)&&(p[d]=e[d]);p.originalType=t,p[k]="string"==typeof t?t:r,i[1]=p;for(var m=2;m{n.r(e),n.d(e,{assets:()=>o,contentTitle:()=>d,default:()=>g,frontMatter:()=>p,metadata:()=>m,toc:()=>k});var a=n(3341),r=n(1792),l=(n(9901),n(7522)),i=["components"],p={hide_table_of_contents:!0},d="Keywords",m={unversionedId:"api/keywords",id:"version-1.0.19-alpha/api/keywords",title:"Keywords",description:"jsObjectsScope",source:"@site/versioned_docs/version-1.0.19-alpha/api/keywords.md",sourceDirName:"api",slug:"/api/keywords",permalink:"/docs/1.0.19-alpha/api/keywords",draft:!1,tags:[],version:"1.0.19-alpha",frontMatter:{hide_table_of_contents:!0},sidebar:"sidebar",previous:{title:"Scopes",permalink:"/docs/1.0.19-alpha/scopes"},next:{title:"Operators",permalink:"/docs/1.0.19-alpha/api/operators"}},o={},k=[{value:"jsObjectsScope",id:"jsobjectsscope",level:2},{value:"tsKeywordsScope",id:"tskeywordsscope",level:2},{value:"validationScope",id:"validationscope",level:2}],u={toc:k},N="wrapper";function g(t){var e=t.components,n=(0,r.Z)(t,i);return(0,l.kt)(N,(0,a.Z)({},u,n,{components:e,mdxType:"MDXLayout"}),(0,l.kt)("h1",{id:"keywords"},"Keywords"),(0,l.kt)("h2",{id:"jsobjectsscope"},"jsObjectsScope"),(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:null},"Name"),(0,l.kt)("th",{parentName:"tr",align:null},"Type"),(0,l.kt)("th",{parentName:"tr",align:null},"Description"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Function"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," (...args: any[]) => unknown")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Date"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," Date")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Error"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," Error")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Map"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," Map")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"RegExp"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," RegExp")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Set"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," Set")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"WeakMap"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," WeakMap")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"WeakSet"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," WeakSet")),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Promise"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," Promise")),(0,l.kt)("td",{parentName:"tr",align:null})))),(0,l.kt)("h2",{id:"tskeywordsscope"},"tsKeywordsScope"),(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:null},"Name"),(0,l.kt)("th",{parentName:"tr",align:null},"Type"),(0,l.kt)("th",{parentName:"tr",align:null},"Description"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"any"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," any")),(0,l.kt)("td",{parentName:"tr",align:null},"any")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"bigint"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," bigint")),(0,l.kt)("td",{parentName:"tr",align:null},"a bigint")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"boolean"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," boolean")),(0,l.kt)("td",{parentName:"tr",align:null},"a boolean")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"false"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," false")),(0,l.kt)("td",{parentName:"tr",align:null},"false")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"never"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," never")),(0,l.kt)("td",{parentName:"tr",align:null},"never")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"null"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," null")),(0,l.kt)("td",{parentName:"tr",align:null},"null")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"number"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," number")),(0,l.kt)("td",{parentName:"tr",align:null},"a number")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"object"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," object")),(0,l.kt)("td",{parentName:"tr",align:null},"an object")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"string"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"a string")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"symbol"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," symbol")),(0,l.kt)("td",{parentName:"tr",align:null},"a symbol")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"true"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," true")),(0,l.kt)("td",{parentName:"tr",align:null},"true")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"unknown"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," unknown")),(0,l.kt)("td",{parentName:"tr",align:null},"unknown")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"void"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," void")),(0,l.kt)("td",{parentName:"tr",align:null},"void")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"undefined"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," undefined")),(0,l.kt)("td",{parentName:"tr",align:null},"undefined")))),(0,l.kt)("h2",{id:"validationscope"},"validationScope"),(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:null},"Name"),(0,l.kt)("th",{parentName:"tr",align:null},"Type"),(0,l.kt)("th",{parentName:"tr",align:null},"Description"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"alpha"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"only letters")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"alphanumeric"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"only letters and digits")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"lowercase"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"only lowercase letters")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"uppercase"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"only uppercase letters")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"creditCard"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"a valid credit card number")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"email"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"a valid email")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"uuid"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"a valid UUID")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"parsedNumber"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," (In: string) => number")),(0,l.kt)("td",{parentName:"tr",align:null},"a well-formed numeric string")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"parsedInteger"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," (In: string) => number")),(0,l.kt)("td",{parentName:"tr",align:null},"a well-formed integer string")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"parsedDate"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," (In: string) => Date")),(0,l.kt)("td",{parentName:"tr",align:null},"a valid date")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"semver"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," string")),(0,l.kt)("td",{parentName:"tr",align:null},"a valid semantic version")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"json"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," (In: string) => unknown")),(0,l.kt)("td",{parentName:"tr",align:null},"a JSON-parsable string")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"integer"),(0,l.kt)("td",{parentName:"tr",align:null},(0,l.kt)("inlineCode",{parentName:"td"}," number")),(0,l.kt)("td",{parentName:"tr",align:null},"an integer")))))}g.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/5002.3b66221f.js b/assets/js/5002.3b66221f.js deleted file mode 100644 index 11306063cc..0000000000 --- a/assets/js/5002.3b66221f.js +++ /dev/null @@ -1,74 +0,0 @@ -(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[5002],{6832:(t,e,n)=>{"use strict";var r=n(3126);e.Z=void 0;var o=r(n(618)),i=n(1250),a=(0,o.default)((0,i.jsx)("path",{d:"m12 8-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"}),"ExpandLess");e.Z=a},931:(t,e,n)=>{"use strict";var r=n(3126);e.Z=void 0;var o=r(n(618)),i=n(1250),a=(0,o.default)((0,i.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore");e.Z=a},618:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r.createSvgIcon}});var r=n(9847)},5850:(t,e,n)=>{"use strict";n.d(e,{ZP:()=>S});var r=n(1792),o=n(3341),i=n(6202),a=n(571),s=n(9659),u=n(1350),l=n(1894),c=n(3934),d=n(9321),p=n(3335),f=n(4517),v=n(9901),h=n(3159);function m(t){return(0,h.Z)("MuiMasonry",t)}(0,n(9925).Z)("MuiMasonry",["root"]);var g=n(1250);const y=["children","className","component","columns","spacing","defaultColumns","defaultHeight","defaultSpacing"],b=t=>Number(t.replace("px","")),x={flexBasis:"100%",width:0,margin:0,padding:0},w=(0,s.ZP)("div",{name:"MuiMasonry",slot:"Root",overridesResolver:(t,e)=>[e.root]})((({ownerState:t,theme:e})=>{let n={width:"100%",display:"flex",flexFlow:"column wrap",alignContent:"flex-start",boxSizing:"border-box","& > *":{boxSizing:"border-box"}};const r={};if(t.isSSR){const i={},a=b(e.spacing(t.defaultSpacing));for(let e=1;e<=t.defaultColumns;e+=1)i[`&:nth-of-type(${t.defaultColumns}n+${e%t.defaultColumns})`]={order:e};return r.height=t.defaultHeight,r.margin=-a/2,r["& > *"]=(0,o.Z)({},n["& > *"],i,{margin:a/2,width:`calc(${(100/t.defaultColumns).toFixed(2)}% - ${a}px)`}),(0,o.Z)({},n,r)}const i=(0,l.P$)({values:t.spacing,breakpoints:e.breakpoints.values}),a=(0,c.hB)(e);n=(0,d.Z)(n,(0,l.k9)({theme:e},i,(e=>{let n;if("string"==typeof e&&!Number.isNaN(Number(e))||"number"==typeof e){const t=Number(e);n=(0,c.NA)(a,t)}else n=e;return(0,o.Z)({margin:`calc(0px - (${n} / 2))`,"& > *":{margin:`calc(${n} / 2)`}},t.maxColumnHeight&&{height:"number"==typeof n?Math.ceil(t.maxColumnHeight+b(n)):`calc(${t.maxColumnHeight}px + ${n})`})})));const s=(0,l.P$)({values:t.columns,breakpoints:e.breakpoints.values});return n=(0,d.Z)(n,(0,l.k9)({theme:e},s,(t=>({"& > *":{width:`calc(${`${(100/Number(t)).toFixed(2)}%`} - ${"string"==typeof i&&!Number.isNaN(Number(i))||"number"==typeof i?(0,c.NA)(a,Number(i)):"0px"})`}})))),"object"==typeof i&&(n=(0,d.Z)(n,(0,l.k9)({theme:e},i,((t,e)=>{if(e){const n=Number(t),r=Object.keys(s).pop(),o=(0,c.NA)(a,n);return{"& > *":{width:`calc(${`${(100/("object"==typeof s?s[e]||s[r]:s)).toFixed(2)}%`} - ${o})`}}}return null})))),n})),S=v.forwardRef((function(t,e){const n=(0,u.Z)({props:t,name:"MuiMasonry"}),{children:s,className:l,component:c="div",columns:d=4,spacing:h=1,defaultColumns:S,defaultHeight:E,defaultSpacing:C}=n,T=(0,r.Z)(n,y),P=v.useRef(),[R,M]=v.useState(),A=!R&&E&&void 0!==S&&void 0!==C,[V,k]=v.useState(A?S-1:0),L=(0,o.Z)({},n,{spacing:h,columns:d,maxColumnHeight:R,defaultColumns:S,defaultHeight:E,defaultSpacing:C,isSSR:A}),Z=(t=>{const{classes:e}=t;return(0,i.Z)({root:["root"]},m,e)})(L),j=v.useRef("undefined"==typeof ResizeObserver?void 0:new ResizeObserver((t=>{if(!P.current||!t||0===t.length)return;const e=P.current,n=P.current.firstChild,r=e.clientWidth,o=n.clientWidth;if(0===r||0===o)return;const i=window.getComputedStyle(n),s=b(i.marginLeft),u=b(i.marginRight),l=Math.round(r/(o+s+u)),c=new Array(l).fill(0);let d=!1;e.childNodes.forEach((t=>{if(t.nodeType!==Node.ELEMENT_NODE||"line-break"===t.dataset.class||d)return;const e=window.getComputedStyle(t),n=b(e.marginTop),r=b(e.marginBottom),o=b(e.height)?Math.ceil(b(e.height))+n+r:0;if(0!==o){for(let e=0;e{M(Math.max(...c)),k(l>0?l-1:0)}))})));v.useEffect((()=>{const t=j.current;if(void 0!==t)return P.current&&P.current.childNodes.forEach((e=>{t.observe(e)})),()=>t?t.disconnect():{}}),[d,h,s]);const D=(0,p.Z)(e,P),O=new Array(V).fill("").map(((t,e)=>(0,g.jsx)("span",{"data-class":"line-break",style:(0,o.Z)({},x,{order:e+1})},e)));return(0,g.jsxs)(w,(0,o.Z)({as:c,className:(0,f.Z)(Z.root,l),ref:D,ownerState:L},T,{children:[s,O]}))}))},3744:(t,e,n)=>{"use strict";n.d(e,{Z:()=>et});var r=n(1792),o=n(3341),i=n(9901),a=n(4517),s=n(5765),u=n(6202),l=n(4411),c=n(9659),d=n(1350),p=n(2433),f=n(4942),v=n(5838);var h=n(8017);const m=i.createContext(null);function g(t,e){var n=Object.create(null);return t&&i.Children.map(t,(function(t){return t})).forEach((function(t){n[t.key]=function(t){return e&&(0,i.isValidElement)(t)?e(t):t}(t)})),n}function y(t,e,n){return null!=n[e]?n[e]:t.props[e]}function b(t,e,n){var r=g(t.children),o=function(t,e){function n(n){return n in e?e[n]:t[n]}t=t||{},e=e||{};var r,o=Object.create(null),i=[];for(var a in t)a in e?i.length&&(o[a]=i,i=[]):i.push(a);var s={};for(var u in e){if(o[u])for(r=0;r{if(!l&&null!=c){const t=setTimeout(c,d);return()=>{clearTimeout(t)}}}),[c,l,d]),(0,C.jsx)("span",{className:v,style:h,children:(0,C.jsx)("span",{className:m})})};var P=n(9925);const R=(0,P.Z)("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),M=["center","classes","className"];let A,V,k,L,Z=t=>t;const j=(0,E.F4)(A||(A=Z` - 0% { - transform: scale(0); - opacity: 0.1; - } - - 100% { - transform: scale(1); - opacity: 0.3; - } -`)),D=(0,E.F4)(V||(V=Z` - 0% { - opacity: 1; - } - - 100% { - opacity: 0; - } -`)),O=(0,E.F4)(k||(k=Z` - 0% { - transform: scale(1); - } - - 50% { - transform: scale(0.92); - } - - 100% { - transform: scale(1); - } -`)),B=(0,c.ZP)("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),I=(0,c.ZP)(T,{name:"MuiTouchRipple",slot:"Ripple"})(L||(L=Z` - opacity: 0; - position: absolute; - - &.${0} { - opacity: 0.3; - transform: scale(1); - animation-name: ${0}; - animation-duration: ${0}ms; - animation-timing-function: ${0}; - } - - &.${0} { - animation-duration: ${0}ms; - } - - & .${0} { - opacity: 1; - display: block; - width: 100%; - height: 100%; - border-radius: 50%; - background-color: currentColor; - } - - & .${0} { - opacity: 0; - animation-name: ${0}; - animation-duration: ${0}ms; - animation-timing-function: ${0}; - } - - & .${0} { - position: absolute; - /* @noflip */ - left: 0px; - top: 0; - animation-name: ${0}; - animation-duration: 2500ms; - animation-timing-function: ${0}; - animation-iteration-count: infinite; - animation-delay: 200ms; - } -`),R.rippleVisible,j,550,(({theme:t})=>t.transitions.easing.easeInOut),R.ripplePulsate,(({theme:t})=>t.transitions.duration.shorter),R.child,R.childLeaving,D,550,(({theme:t})=>t.transitions.easing.easeInOut),R.childPulsate,O,(({theme:t})=>t.transitions.easing.easeInOut)),F=i.forwardRef((function(t,e){const n=(0,d.Z)({props:t,name:"MuiTouchRipple"}),{center:s=!1,classes:u={},className:l}=n,c=(0,r.Z)(n,M),[p,f]=i.useState([]),v=i.useRef(0),h=i.useRef(null);i.useEffect((()=>{h.current&&(h.current(),h.current=null)}),[p]);const m=i.useRef(!1),g=i.useRef(null),y=i.useRef(null),b=i.useRef(null);i.useEffect((()=>()=>{clearTimeout(g.current)}),[]);const x=i.useCallback((t=>{const{pulsate:e,rippleX:n,rippleY:r,rippleSize:o,cb:i}=t;f((t=>[...t,(0,C.jsx)(I,{classes:{ripple:(0,a.Z)(u.ripple,R.ripple),rippleVisible:(0,a.Z)(u.rippleVisible,R.rippleVisible),ripplePulsate:(0,a.Z)(u.ripplePulsate,R.ripplePulsate),child:(0,a.Z)(u.child,R.child),childLeaving:(0,a.Z)(u.childLeaving,R.childLeaving),childPulsate:(0,a.Z)(u.childPulsate,R.childPulsate)},timeout:550,pulsate:e,rippleX:n,rippleY:r,rippleSize:o},v.current)])),v.current+=1,h.current=i}),[u]),w=i.useCallback(((t={},e={},n=(()=>{}))=>{const{pulsate:r=!1,center:o=s||e.pulsate,fakeElement:i=!1}=e;if("mousedown"===(null==t?void 0:t.type)&&m.current)return void(m.current=!1);"touchstart"===(null==t?void 0:t.type)&&(m.current=!0);const a=i?null:b.current,u=a?a.getBoundingClientRect():{width:0,height:0,left:0,top:0};let l,c,d;if(o||void 0===t||0===t.clientX&&0===t.clientY||!t.clientX&&!t.touches)l=Math.round(u.width/2),c=Math.round(u.height/2);else{const{clientX:e,clientY:n}=t.touches&&t.touches.length>0?t.touches[0]:t;l=Math.round(e-u.left),c=Math.round(n-u.top)}if(o)d=Math.sqrt((2*u.width**2+u.height**2)/3),d%2==0&&(d+=1);else{const t=2*Math.max(Math.abs((a?a.clientWidth:0)-l),l)+2,e=2*Math.max(Math.abs((a?a.clientHeight:0)-c),c)+2;d=Math.sqrt(t**2+e**2)}null!=t&&t.touches?null===y.current&&(y.current=()=>{x({pulsate:r,rippleX:l,rippleY:c,rippleSize:d,cb:n})},g.current=setTimeout((()=>{y.current&&(y.current(),y.current=null)}),80)):x({pulsate:r,rippleX:l,rippleY:c,rippleSize:d,cb:n})}),[s,x]),E=i.useCallback((()=>{w({},{pulsate:!0})}),[w]),T=i.useCallback(((t,e)=>{if(clearTimeout(g.current),"touchend"===(null==t?void 0:t.type)&&y.current)return y.current(),y.current=null,void(g.current=setTimeout((()=>{T(t,e)})));y.current=null,f((t=>t.length>0?t.slice(1):t)),h.current=e}),[]);return i.useImperativeHandle(e,(()=>({pulsate:E,start:w,stop:T})),[E,w,T]),(0,C.jsx)(B,(0,o.Z)({className:(0,a.Z)(R.root,u.root,l),ref:b},c,{children:(0,C.jsx)(S,{component:null,exit:!0,children:p})}))}));var z=n(3159);function N(t){return(0,z.Z)("MuiButtonBase",t)}const $=(0,P.Z)("MuiButtonBase",["root","disabled","focusVisible"]),U=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],W=(0,c.ZP)("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(t,e)=>e.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${$.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),H=i.forwardRef((function(t,e){const n=(0,d.Z)({props:t,name:"MuiButtonBase"}),{action:s,centerRipple:l=!1,children:c,className:h,component:m="button",disabled:g=!1,disableRipple:y=!1,disableTouchRipple:b=!1,focusRipple:x=!1,LinkComponent:w="a",onBlur:S,onClick:E,onContextMenu:T,onDragLeave:P,onFocus:R,onFocusVisible:M,onKeyDown:A,onKeyUp:V,onMouseDown:k,onMouseLeave:L,onMouseUp:Z,onTouchEnd:j,onTouchMove:D,onTouchStart:O,tabIndex:B=0,TouchRippleProps:I,touchRippleRef:z,type:$}=n,H=(0,r.Z)(n,U),_=i.useRef(null),Y=i.useRef(null),q=(0,p.Z)(Y,z),{isFocusVisibleRef:X,onFocus:G,onBlur:K,ref:J}=(0,v.Z)(),[Q,tt]=i.useState(!1);g&&Q&&tt(!1),i.useImperativeHandle(s,(()=>({focusVisible:()=>{tt(!0),_.current.focus()}})),[]);const[et,nt]=i.useState(!1);i.useEffect((()=>{nt(!0)}),[]);const rt=et&&!y&&!g;function ot(t,e,n=b){return(0,f.Z)((r=>{e&&e(r);return!n&&Y.current&&Y.current[t](r),!0}))}i.useEffect((()=>{Q&&x&&!y&&et&&Y.current.pulsate()}),[y,x,Q,et]);const it=ot("start",k),at=ot("stop",T),st=ot("stop",P),ut=ot("stop",Z),lt=ot("stop",(t=>{Q&&t.preventDefault(),L&&L(t)})),ct=ot("start",O),dt=ot("stop",j),pt=ot("stop",D),ft=ot("stop",(t=>{K(t),!1===X.current&&tt(!1),S&&S(t)}),!1),vt=(0,f.Z)((t=>{_.current||(_.current=t.currentTarget),G(t),!0===X.current&&(tt(!0),M&&M(t)),R&&R(t)})),ht=()=>{const t=_.current;return m&&"button"!==m&&!("A"===t.tagName&&t.href)},mt=i.useRef(!1),gt=(0,f.Z)((t=>{x&&!mt.current&&Q&&Y.current&&" "===t.key&&(mt.current=!0,Y.current.stop(t,(()=>{Y.current.start(t)}))),t.target===t.currentTarget&&ht()&&" "===t.key&&t.preventDefault(),A&&A(t),t.target===t.currentTarget&&ht()&&"Enter"===t.key&&!g&&(t.preventDefault(),E&&E(t))})),yt=(0,f.Z)((t=>{x&&" "===t.key&&Y.current&&Q&&!t.defaultPrevented&&(mt.current=!1,Y.current.stop(t,(()=>{Y.current.pulsate(t)}))),V&&V(t),E&&t.target===t.currentTarget&&ht()&&" "===t.key&&!t.defaultPrevented&&E(t)}));let bt=m;"button"===bt&&(H.href||H.to)&&(bt=w);const xt={};"button"===bt?(xt.type=void 0===$?"button":$,xt.disabled=g):(H.href||H.to||(xt.role="button"),g&&(xt["aria-disabled"]=g));const wt=(0,p.Z)(e,J,_);const St=(0,o.Z)({},n,{centerRipple:l,component:m,disabled:g,disableRipple:y,disableTouchRipple:b,focusRipple:x,tabIndex:B,focusVisible:Q}),Et=(t=>{const{disabled:e,focusVisible:n,focusVisibleClassName:r,classes:o}=t,i={root:["root",e&&"disabled",n&&"focusVisible"]},a=(0,u.Z)(i,N,o);return n&&r&&(a.root+=` ${r}`),a})(St);return(0,C.jsxs)(W,(0,o.Z)({as:bt,className:(0,a.Z)(Et.root,h),ownerState:St,onBlur:ft,onClick:E,onContextMenu:at,onFocus:vt,onKeyDown:gt,onKeyUp:yt,onMouseDown:it,onMouseLeave:lt,onMouseUp:ut,onDragLeave:st,onTouchEnd:dt,onTouchMove:pt,onTouchStart:ct,ref:wt,tabIndex:g?-1:B,type:$},xt,H,{children:[c,rt?(0,C.jsx)(F,(0,o.Z)({ref:q,center:l},I)):null]}))}));var _=n(3424);function Y(t){return(0,z.Z)("MuiButton",t)}const q=(0,P.Z)("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]);const X=i.createContext({}),G=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],K=t=>(0,o.Z)({},"small"===t.size&&{"& > *:nth-of-type(1)":{fontSize:18}},"medium"===t.size&&{"& > *:nth-of-type(1)":{fontSize:20}},"large"===t.size&&{"& > *:nth-of-type(1)":{fontSize:22}}),J=(0,c.ZP)(H,{shouldForwardProp:t=>(0,c.FO)(t)||"classes"===t,name:"MuiButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e[n.variant],e[`${n.variant}${(0,_.Z)(n.color)}`],e[`size${(0,_.Z)(n.size)}`],e[`${n.variant}Size${(0,_.Z)(n.size)}`],"inherit"===n.color&&e.colorInherit,n.disableElevation&&e.disableElevation,n.fullWidth&&e.fullWidth]}})((({theme:t,ownerState:e})=>{var n,r;return(0,o.Z)({},t.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(t.vars||t).shape.borderRadius,transition:t.transitions.create(["background-color","box-shadow","border-color","color"],{duration:t.transitions.duration.short}),"&:hover":(0,o.Z)({textDecoration:"none",backgroundColor:t.vars?`rgba(${t.vars.palette.text.primaryChannel} / ${t.vars.palette.action.hoverOpacity})`:(0,l.Fq)(t.palette.text.primary,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===e.variant&&"inherit"!==e.color&&{backgroundColor:t.vars?`rgba(${t.vars.palette[e.color].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:(0,l.Fq)(t.palette[e.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===e.variant&&"inherit"!==e.color&&{border:`1px solid ${(t.vars||t).palette[e.color].main}`,backgroundColor:t.vars?`rgba(${t.vars.palette[e.color].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:(0,l.Fq)(t.palette[e.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===e.variant&&{backgroundColor:(t.vars||t).palette.grey.A100,boxShadow:(t.vars||t).shadows[4],"@media (hover: none)":{boxShadow:(t.vars||t).shadows[2],backgroundColor:(t.vars||t).palette.grey[300]}},"contained"===e.variant&&"inherit"!==e.color&&{backgroundColor:(t.vars||t).palette[e.color].dark,"@media (hover: none)":{backgroundColor:(t.vars||t).palette[e.color].main}}),"&:active":(0,o.Z)({},"contained"===e.variant&&{boxShadow:(t.vars||t).shadows[8]}),[`&.${q.focusVisible}`]:(0,o.Z)({},"contained"===e.variant&&{boxShadow:(t.vars||t).shadows[6]}),[`&.${q.disabled}`]:(0,o.Z)({color:(t.vars||t).palette.action.disabled},"outlined"===e.variant&&{border:`1px solid ${(t.vars||t).palette.action.disabledBackground}`},"contained"===e.variant&&{color:(t.vars||t).palette.action.disabled,boxShadow:(t.vars||t).shadows[0],backgroundColor:(t.vars||t).palette.action.disabledBackground})},"text"===e.variant&&{padding:"6px 8px"},"text"===e.variant&&"inherit"!==e.color&&{color:(t.vars||t).palette[e.color].main},"outlined"===e.variant&&{padding:"5px 15px",border:"1px solid currentColor"},"outlined"===e.variant&&"inherit"!==e.color&&{color:(t.vars||t).palette[e.color].main,border:t.vars?`1px solid rgba(${t.vars.palette[e.color].mainChannel} / 0.5)`:`1px solid ${(0,l.Fq)(t.palette[e.color].main,.5)}`},"contained"===e.variant&&{color:t.vars?t.vars.palette.text.primary:null==(n=(r=t.palette).getContrastText)?void 0:n.call(r,t.palette.grey[300]),backgroundColor:(t.vars||t).palette.grey[300],boxShadow:(t.vars||t).shadows[2]},"contained"===e.variant&&"inherit"!==e.color&&{color:(t.vars||t).palette[e.color].contrastText,backgroundColor:(t.vars||t).palette[e.color].main},"inherit"===e.color&&{color:"inherit",borderColor:"currentColor"},"small"===e.size&&"text"===e.variant&&{padding:"4px 5px",fontSize:t.typography.pxToRem(13)},"large"===e.size&&"text"===e.variant&&{padding:"8px 11px",fontSize:t.typography.pxToRem(15)},"small"===e.size&&"outlined"===e.variant&&{padding:"3px 9px",fontSize:t.typography.pxToRem(13)},"large"===e.size&&"outlined"===e.variant&&{padding:"7px 21px",fontSize:t.typography.pxToRem(15)},"small"===e.size&&"contained"===e.variant&&{padding:"4px 10px",fontSize:t.typography.pxToRem(13)},"large"===e.size&&"contained"===e.variant&&{padding:"8px 22px",fontSize:t.typography.pxToRem(15)},e.fullWidth&&{width:"100%"})}),(({ownerState:t})=>t.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${q.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${q.disabled}`]:{boxShadow:"none"}})),Q=(0,c.ZP)("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.startIcon,e[`iconSize${(0,_.Z)(n.size)}`]]}})((({ownerState:t})=>(0,o.Z)({display:"inherit",marginRight:8,marginLeft:-4},"small"===t.size&&{marginLeft:-2},K(t)))),tt=(0,c.ZP)("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.endIcon,e[`iconSize${(0,_.Z)(n.size)}`]]}})((({ownerState:t})=>(0,o.Z)({display:"inherit",marginRight:-4,marginLeft:8},"small"===t.size&&{marginRight:-2},K(t)))),et=i.forwardRef((function(t,e){const n=i.useContext(X),l=(0,s.Z)(n,t),c=(0,d.Z)({props:l,name:"MuiButton"}),{children:p,color:f="primary",component:v="button",className:h,disabled:m=!1,disableElevation:g=!1,disableFocusRipple:y=!1,endIcon:b,focusVisibleClassName:x,fullWidth:w=!1,size:S="medium",startIcon:E,type:T,variant:P="text"}=c,R=(0,r.Z)(c,G),M=(0,o.Z)({},c,{color:f,component:v,disabled:m,disableElevation:g,disableFocusRipple:y,fullWidth:w,size:S,type:T,variant:P}),A=(t=>{const{color:e,disableElevation:n,fullWidth:r,size:i,variant:a,classes:s}=t,l={root:["root",a,`${a}${(0,_.Z)(e)}`,`size${(0,_.Z)(i)}`,`${a}Size${(0,_.Z)(i)}`,"inherit"===e&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${(0,_.Z)(i)}`],endIcon:["endIcon",`iconSize${(0,_.Z)(i)}`]},c=(0,u.Z)(l,Y,s);return(0,o.Z)({},s,c)})(M),V=E&&(0,C.jsx)(Q,{className:A.startIcon,ownerState:M,children:E}),k=b&&(0,C.jsx)(tt,{className:A.endIcon,ownerState:M,children:b});return(0,C.jsxs)(J,(0,o.Z)({ownerState:M,className:(0,a.Z)(n.className,A.root,h),component:v,disabled:m,focusRipple:!y,focusVisibleClassName:(0,a.Z)(A.focusVisible,x),ref:e,type:T},R,{classes:A,children:[V,p,k]}))}))},7699:(t,e,n)=>{"use strict";n.d(e,{Z:()=>S});var r=n(3341),o=n(1792),i=n(9901),a=n(4517),s=n(6202),u=n(9659),l=n(1350),c=n(4411);const d=t=>{let e;return e=t<1?5.11916*t**2:4.5*Math.log(t+1)+2,(e/100).toFixed(2)};var p=n(9925),f=n(3159);function v(t){return(0,f.Z)("MuiPaper",t)}(0,p.Z)("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);var h=n(1250);const m=["className","component","elevation","square","variant"],g=(0,u.ZP)("div",{name:"MuiPaper",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e[n.variant],!n.square&&e.rounded,"elevation"===n.variant&&e[`elevation${n.elevation}`]]}})((({theme:t,ownerState:e})=>{var n;return(0,r.Z)({backgroundColor:(t.vars||t).palette.background.paper,color:(t.vars||t).palette.text.primary,transition:t.transitions.create("box-shadow")},!e.square&&{borderRadius:t.shape.borderRadius},"outlined"===e.variant&&{border:`1px solid ${(t.vars||t).palette.divider}`},"elevation"===e.variant&&(0,r.Z)({boxShadow:(t.vars||t).shadows[e.elevation]},!t.vars&&"dark"===t.palette.mode&&{backgroundImage:`linear-gradient(${(0,c.Fq)("#fff",d(e.elevation))}, ${(0,c.Fq)("#fff",d(e.elevation))})`},t.vars&&{backgroundImage:null==(n=t.vars.overlays)?void 0:n[e.elevation]}))})),y=i.forwardRef((function(t,e){const n=(0,l.Z)({props:t,name:"MuiPaper"}),{className:i,component:u="div",elevation:c=1,square:d=!1,variant:p="elevation"}=n,f=(0,o.Z)(n,m),y=(0,r.Z)({},n,{component:u,elevation:c,square:d,variant:p}),b=(t=>{const{square:e,elevation:n,variant:r,classes:o}=t,i={root:["root",r,!e&&"rounded","elevation"===r&&`elevation${n}`]};return(0,s.Z)(i,v,o)})(y);return(0,h.jsx)(g,(0,r.Z)({as:u,ownerState:y,className:(0,a.Z)(b.root,i),ref:e},f))}));function b(t){return(0,f.Z)("MuiCard",t)}(0,p.Z)("MuiCard",["root"]);const x=["className","raised"],w=(0,u.ZP)(y,{name:"MuiCard",slot:"Root",overridesResolver:(t,e)=>e.root})((()=>({overflow:"hidden"}))),S=i.forwardRef((function(t,e){const n=(0,l.Z)({props:t,name:"MuiCard"}),{className:i,raised:u=!1}=n,c=(0,o.Z)(n,x),d=(0,r.Z)({},n,{raised:u}),p=(t=>{const{classes:e}=t;return(0,s.Z)({root:["root"]},b,e)})(d);return(0,h.jsx)(w,(0,r.Z)({className:(0,a.Z)(p.root,i),elevation:u?8:void 0,ref:e,ownerState:d},c))}))},5569:(t,e,n)=>{"use strict";n.d(e,{Z:()=>x});var r=n(1792),o=n(3341),i=n(9901),a=n(4517),s=n(5070),u=n(6202),l=n(9659),c=n(1350),d=n(3424),p=n(9925),f=n(3159);function v(t){return(0,f.Z)("MuiTypography",t)}(0,p.Z)("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);var h=n(1250);const m=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],g=(0,l.ZP)("span",{name:"MuiTypography",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.variant&&e[n.variant],"inherit"!==n.align&&e[`align${(0,d.Z)(n.align)}`],n.noWrap&&e.noWrap,n.gutterBottom&&e.gutterBottom,n.paragraph&&e.paragraph]}})((({theme:t,ownerState:e})=>(0,o.Z)({margin:0},e.variant&&t.typography[e.variant],"inherit"!==e.align&&{textAlign:e.align},e.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},e.gutterBottom&&{marginBottom:"0.35em"},e.paragraph&&{marginBottom:16}))),y={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},b={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},x=i.forwardRef((function(t,e){const n=(0,c.Z)({props:t,name:"MuiTypography"}),i=(t=>b[t]||t)(n.color),l=(0,s.Z)((0,o.Z)({},n,{color:i})),{align:p="inherit",className:f,component:x,gutterBottom:w=!1,noWrap:S=!1,paragraph:E=!1,variant:C="body1",variantMapping:T=y}=l,P=(0,r.Z)(l,m),R=(0,o.Z)({},l,{align:p,color:i,className:f,component:x,gutterBottom:w,noWrap:S,paragraph:E,variant:C,variantMapping:T}),M=x||(E?"p":T[C]||y[C])||"span",A=(t=>{const{align:e,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=t,s={root:["root",i,"inherit"!==t.align&&`align${(0,d.Z)(e)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return(0,u.Z)(s,v,a)})(R);return(0,h.jsx)(g,(0,o.Z)({as:M,ref:e,ownerState:R,className:(0,a.Z)(A.root,f)},P))}))},7188:(t,e,n)=>{"use strict";n.d(e,{Z:()=>l});var r=n(3341),o=n(4036);function i(t){return String(parseFloat(t)).length===String(t).length}function a(t){return parseFloat(t)}function s(t){return(e,n)=>{const r=String(e).match(/[\d.\-+]*\s*(.*)/)[1]||"";if(r===n)return e;let o=a(e);"px"!==r&&("em"===r||"rem"===r)&&(o=a(e)*a(t));let i=o;if("px"!==n)if("em"===n)i=o/a(t);else{if("rem"!==n)return e;i=o/a(t)}return parseFloat(i.toFixed(5))+n}}function u({lineHeight:t,pixels:e,htmlFontSize:n}){return e/(t*n)}function l(t,e={}){const{breakpoints:n=["sm","md","lg"],disableAlign:a=!1,factor:l=2,variants:c=["h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","caption","button","overline"]}=e,d=(0,r.Z)({},t);d.typography=(0,r.Z)({},d.typography);const p=d.typography,f=s(p.htmlFontSize),v=n.map((t=>d.breakpoints.values[t]));return c.forEach((t=>{const e=p[t],n=parseFloat(f(e.fontSize,"rem"));if(n<=1)return;const s=n,c=1+(s-1)/l;let{lineHeight:d}=e;if(!i(d)&&!a)throw new Error((0,o.Z)(6));i(d)||(d=parseFloat(f(d,"rem"))/parseFloat(n));let h=null;a||(h=t=>function({size:t,grid:e}){const n=t-t%e,r=n+e;return t-n{let o=e+s*n;null!==i&&(o=i(o)),a[`@media (min-width:${n}px)`]={[t]:`${Math.round(1e4*o)/1e4}${r}`}})),a}({cssProperty:"fontSize",min:c,max:s,unit:"rem",breakpoints:v,transform:h}))})),d}},4043:(t,e,n)=>{"use strict";var r;n.d(e,{Z:()=>d});var o=n(9901),i=n(2934),a=n(1423),s=n(9115);function u(t,e,n,r,i){const[a,u]=o.useState((()=>i&&n?n(t).matches:r?r(t).matches:e));return(0,s.Z)((()=>{let e=!0;if(!n)return;const r=n(t),o=()=>{e&&u(r.matches)};return o(),r.addListener(o),()=>{e=!1,r.removeListener(o)}}),[t,n]),a}const l=(r||(r=n.t(o,2))).useSyncExternalStore;function c(t,e,n,r,i){const a=o.useCallback((()=>e),[e]),s=o.useMemo((()=>{if(i&&n)return()=>n(t).matches;if(null!==r){const{matches:e}=r(t);return()=>e}return a}),[a,t,r,i,n]),[u,c]=o.useMemo((()=>{if(null===n)return[a,()=>()=>{}];const e=n(t);return[()=>e.matches,t=>(e.addListener(t),()=>{e.removeListener(t)})]}),[a,n,t]);return l(c,u,s)}function d(t,e={}){const n=(0,i.Z)(),r="undefined"!=typeof window&&void 0!==window.matchMedia,{defaultMatches:o=!1,matchMedia:s=(r?window.matchMedia:null),ssrMatchMedia:d=null,noSsr:p=!1}=(0,a.Z)({name:"MuiUseMediaQuery",props:e,theme:n});let f="function"==typeof t?t(n):t;f=f.replace(/^@media( ?)/m,"");return(void 0!==l?c:u)(f,o,s,d,p)}},9847:(t,e,n)=>{"use strict";n.r(e),n.d(e,{capitalize:()=>o.Z,createChainedFunction:()=>i,createSvgIcon:()=>S,debounce:()=>E,deprecatedPropType:()=>C,isMuiElement:()=>T,ownerDocument:()=>R,ownerWindow:()=>M,requirePropFactory:()=>A,setRef:()=>V,unstable_ClassNameGenerator:()=>z,unstable_useEnhancedEffect:()=>k.Z,unstable_useId:()=>j,unsupportedProp:()=>D,useControlled:()=>O,useEventCallback:()=>B.Z,useForkRef:()=>I.Z,useIsFocusVisible:()=>F.Z});var r=n(6962),o=n(3424);const i=function(...t){return t.reduce(((t,e)=>null==e?t:function(...n){t.apply(this,n),e.apply(this,n)}),(()=>{}))};var a=n(3341),s=n(9901),u=n.t(s,2),l=n(1792),c=n(4517),d=n(6202),p=n(1350),f=n(9659),v=n(9925),h=n(3159);function m(t){return(0,h.Z)("MuiSvgIcon",t)}(0,v.Z)("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);var g=n(1250);const y=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],b=(0,f.ZP)("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,"inherit"!==n.color&&e[`color${(0,o.Z)(n.color)}`],e[`fontSize${(0,o.Z)(n.fontSize)}`]]}})((({theme:t,ownerState:e})=>{var n,r,o,i,a,s,u,l,c,d,p,f,v,h,m,g,y;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0,transition:null==(n=t.transitions)||null==(r=n.create)?void 0:r.call(n,"fill",{duration:null==(o=t.transitions)||null==(i=o.duration)?void 0:i.shorter}),fontSize:{inherit:"inherit",small:(null==(a=t.typography)||null==(s=a.pxToRem)?void 0:s.call(a,20))||"1.25rem",medium:(null==(u=t.typography)||null==(l=u.pxToRem)?void 0:l.call(u,24))||"1.5rem",large:(null==(c=t.typography)||null==(d=c.pxToRem)?void 0:d.call(c,35))||"2.1875rem"}[e.fontSize],color:null!=(p=null==(f=(t.vars||t).palette)||null==(v=f[e.color])?void 0:v.main)?p:{action:null==(h=(t.vars||t).palette)||null==(m=h.action)?void 0:m.active,disabled:null==(g=(t.vars||t).palette)||null==(y=g.action)?void 0:y.disabled,inherit:void 0}[e.color]}})),x=s.forwardRef((function(t,e){const n=(0,p.Z)({props:t,name:"MuiSvgIcon"}),{children:r,className:i,color:s="inherit",component:u="svg",fontSize:f="medium",htmlColor:v,inheritViewBox:h=!1,titleAccess:x,viewBox:w="0 0 24 24"}=n,S=(0,l.Z)(n,y),E=(0,a.Z)({},n,{color:s,component:u,fontSize:f,instanceFontSize:t.fontSize,inheritViewBox:h,viewBox:w}),C={};h||(C.viewBox=w);const T=(t=>{const{color:e,fontSize:n,classes:r}=t,i={root:["root","inherit"!==e&&`color${(0,o.Z)(e)}`,`fontSize${(0,o.Z)(n)}`]};return(0,d.Z)(i,m,r)})(E);return(0,g.jsxs)(b,(0,a.Z)({as:u,className:(0,c.Z)(T.root,i),focusable:"false",color:v,"aria-hidden":!x||void 0,role:x?"img":void 0,ref:e},C,S,{ownerState:E,children:[r,x?(0,g.jsx)("title",{children:x}):null]}))}));x.muiName="SvgIcon";const w=x;function S(t,e){function n(n,r){return(0,g.jsx)(w,(0,a.Z)({"data-testid":`${e}Icon`,ref:r},n,{children:t}))}return n.muiName=w.muiName,s.memo(s.forwardRef(n))}const E=function(t,e=166){let n;function r(...r){clearTimeout(n),n=setTimeout((()=>{t.apply(this,r)}),e)}return r.clear=()=>{clearTimeout(n)},r};const C=function(t,e){return()=>null};const T=function(t,e){var n,r;return s.isValidElement(t)&&-1!==e.indexOf(null!=(n=t.type.muiName)?n:null==(r=t.type)||null==(r=r._payload)||null==(r=r.value)?void 0:r.muiName)};function P(t){return t&&t.ownerDocument||document}const R=P;const M=function(t){return P(t).defaultView||window};const A=function(t,e){return()=>null};const V=n(9972).Z;var k=n(9115);let L=0;const Z=u["useId".toString()];const j=function(t){if(void 0!==Z){const e=Z();return null!=t?t:e}return function(t){const[e,n]=s.useState(t),r=t||e;return s.useEffect((()=>{null==e&&(L+=1,n(`mui-${L}`))}),[e]),r}(t)};const D=function(t,e,n,r,o){return null};const O=function({controlled:t,default:e,name:n,state:r="value"}){const{current:o}=s.useRef(void 0!==t),[i,a]=s.useState(e);return[o?t:i,s.useCallback((t=>{o||a(t)}),[])]};var B=n(4942),I=n(2433),F=n(5838);const z={configure:t=>{r.Z.configure(t)}}},9115:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r});const r=n(9479).Z},4942:(t,e,n)=>{"use strict";n.d(e,{Z:()=>i});var r=n(9901),o=n(9479);const i=function(t){const e=r.useRef(t);return(0,o.Z)((()=>{e.current=t})),r.useCallback(((...t)=>(0,e.current)(...t)),[])}},2433:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r});const r=n(3335).Z},5838:(t,e,n)=>{"use strict";n.d(e,{Z:()=>p});var r=n(9901);let o,i=!0,a=!1;const s={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function u(t){t.metaKey||t.altKey||t.ctrlKey||(i=!0)}function l(){i=!1}function c(){"hidden"===this.visibilityState&&a&&(i=!0)}function d(t){const{target:e}=t;try{return e.matches(":focus-visible")}catch(n){}return i||function(t){const{type:e,tagName:n}=t;return!("INPUT"!==n||!s[e]||t.readOnly)||"TEXTAREA"===n&&!t.readOnly||!!t.isContentEditable}(e)}const p=function(){const t=r.useCallback((t=>{var e;null!=t&&((e=t.ownerDocument).addEventListener("keydown",u,!0),e.addEventListener("mousedown",l,!0),e.addEventListener("pointerdown",l,!0),e.addEventListener("touchstart",l,!0),e.addEventListener("visibilitychange",c,!0))}),[]),e=r.useRef(!1);return{isFocusVisibleRef:e,onFocus:function(t){return!!d(t)&&(e.current=!0,!0)},onBlur:function(){return!!e.current&&(a=!0,window.clearTimeout(o),o=window.setTimeout((()=>{a=!1}),100),e.current=!1,!0)},ref:t}}},2830:(t,e,n)=>{"use strict";n.d(e,{Z:()=>v});var r=n(3341),o=n(9901);const i=o.createContext(null);function a(){return o.useContext(i)}const s="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";var u=n(1250);const l=function(t){const{children:e,theme:n}=t,l=a(),c=o.useMemo((()=>{const t=null===l?n:function(t,e){if("function"==typeof e)return e(t);return(0,r.Z)({},t,e)}(l,n);return null!=t&&(t[s]=null!==l),t}),[n,l]);return(0,u.jsx)(i.Provider,{value:c,children:e})};var c=n(4221),d=n(2934);const p={};function f(t,e,n,i=!1){return o.useMemo((()=>{const o=t&&e[t]||e;if("function"==typeof n){const a=n(o),s=t?(0,r.Z)({},e,{[t]:a}):a;return i?()=>s:s}return t?(0,r.Z)({},e,{[t]:n}):(0,r.Z)({},e,n)}),[t,e,n,i])}const v=function(t){const{children:e,theme:n,themeId:r}=t,o=(0,d.Z)(p),i=a()||p,s=f(r,o,n),v=f(r,i,n,!0);return(0,u.jsx)(l,{theme:v,children:(0,u.jsx)(c.T.Provider,{value:s,children:e})})}},9972:(t,e,n)=>{"use strict";function r(t,e){"function"==typeof t?t(e):t&&(t.current=e)}n.d(e,{Z:()=>r})},9479:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});var r=n(9901);const o="undefined"!=typeof window?r.useLayoutEffect:r.useEffect},3335:(t,e,n)=>{"use strict";n.d(e,{Z:()=>i});var r=n(9901),o=n(9972);function i(...t){return r.useMemo((()=>t.every((t=>null==t))?null:e=>{t.forEach((t=>{(0,o.Z)(t,e)}))}),t)}},2478:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var r=n(9901),o=n(4517);const i={tabItem:"tabItem_ydMX"};function a(t){var e=t.children,n=t.hidden,a=t.className;return r.createElement("div",{role:"tabpanel",className:(0,o.Z)(i.tabItem,a),hidden:n},e)}},2484:(t,e,n)=>{"use strict";n.d(e,{Z:()=>w});var r=n(3341),o=n(9901),i=n(4517),a=n(8807),s=n(6172),u=n(8458),l=n(4900),c=n(5499);function d(t){return function(t){var e,n;return null!=(e=null==(n=o.Children.map(t,(function(t){if(!t||(0,o.isValidElement)(t)&&(e=t.props)&&"object"==typeof e&&"value"in e)return t;var e;throw new Error("Docusaurus error: Bad child <"+("string"==typeof t.type?t.type:t.type.name)+'>: all children of the component should be , and every should have a unique "value" prop.')})))?void 0:n.filter(Boolean))?e:[]}(t).map((function(t){var e=t.props;return{value:e.value,label:e.label,attributes:e.attributes,default:e.default}}))}function p(t){var e=t.values,n=t.children;return(0,o.useMemo)((function(){var t=null!=e?e:d(n);return function(t){var e=(0,l.l)(t,(function(t,e){return t.value===e.value}));if(e.length>0)throw new Error('Docusaurus error: Duplicate values "'+e.map((function(t){return t.value})).join(", ")+'" found in . Every value needs to be unique.')}(t),t}),[e,n])}function f(t){var e=t.value;return t.tabValues.some((function(t){return t.value===e}))}function v(t){var e=t.queryString,n=void 0!==e&&e,r=t.groupId,i=(0,s.k6)(),a=function(t){var e=t.queryString,n=void 0!==e&&e,r=t.groupId;if("string"==typeof n)return n;if(!1===n)return null;if(!0===n&&!r)throw new Error('Docusaurus error: The component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return null!=r?r:null}({queryString:n,groupId:r});return[(0,u._X)(a),(0,o.useCallback)((function(t){if(a){var e=new URLSearchParams(i.location.search);e.set(a,t),i.replace(Object.assign({},i.location,{search:e.toString()}))}}),[a,i])]}function h(t){var e,n,r,i,a=t.defaultValue,s=t.queryString,u=void 0!==s&&s,l=t.groupId,d=p(t),h=(0,o.useState)((function(){return function(t){var e,n=t.defaultValue,r=t.tabValues;if(0===r.length)throw new Error("Docusaurus error: the component requires at least one children component");if(n){if(!f({value:n,tabValues:r}))throw new Error('Docusaurus error: The has a defaultValue "'+n+'" but none of its children has the corresponding value. Available values are: '+r.map((function(t){return t.value})).join(", ")+". If you intend to show no default tab, use defaultValue={null} instead.");return n}var o=null!=(e=r.find((function(t){return t.default})))?e:r[0];if(!o)throw new Error("Unexpected error: 0 tabValues");return o.value}({defaultValue:a,tabValues:d})})),m=h[0],g=h[1],y=v({queryString:u,groupId:l}),b=y[0],x=y[1],w=(e=function(t){return t?"docusaurus.tab."+t:null}({groupId:l}.groupId),n=(0,c.Nk)(e),r=n[0],i=n[1],[r,(0,o.useCallback)((function(t){e&&i.set(t)}),[e,i])]),S=w[0],E=w[1],C=function(){var t=null!=b?b:S;return f({value:t,tabValues:d})?t:null}();return(0,o.useLayoutEffect)((function(){C&&g(C)}),[C]),{selectedValue:m,selectValue:(0,o.useCallback)((function(t){if(!f({value:t,tabValues:d}))throw new Error("Can't select invalid tab value="+t);g(t),x(t),E(t)}),[x,E,d]),tabValues:d}}var m=n(4474);const g={tabList:"tabList_d1Tg",tabItem:"tabItem_KvMm"};function y(t){var e=t.className,n=t.block,s=t.selectedValue,u=t.selectValue,l=t.tabValues,c=[],d=(0,a.o5)().blockElementScrollPositionUntilNextRender,p=function(t){var e=t.currentTarget,n=c.indexOf(e),r=l[n].value;r!==s&&(d(e),u(r))},f=function(t){var e,n=null;switch(t.key){case"Enter":p(t);break;case"ArrowRight":var r,o=c.indexOf(t.currentTarget)+1;n=null!=(r=c[o])?r:c[0];break;case"ArrowLeft":var i,a=c.indexOf(t.currentTarget)-1;n=null!=(i=c[a])?i:c[c.length-1]}null==(e=n)||e.focus()};return o.createElement("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,i.Z)("tabs",{"tabs--block":n},e)},l.map((function(t){var e=t.value,n=t.label,a=t.attributes;return o.createElement("li",(0,r.Z)({role:"tab",tabIndex:s===e?0:-1,"aria-selected":s===e,key:e,ref:function(t){return c.push(t)},onKeyDown:f,onClick:p},a,{className:(0,i.Z)("tabs__item",g.tabItem,null==a?void 0:a.className,{"tabs__item--active":s===e})}),null!=n?n:e)})))}function b(t){var e=t.lazy,n=t.children,r=t.selectedValue,i=(Array.isArray(n)?n:[n]).filter(Boolean);if(e){var a=i.find((function(t){return t.props.value===r}));return a?(0,o.cloneElement)(a,{className:"margin-top--md"}):null}return o.createElement("div",{className:"margin-top--md"},i.map((function(t,e){return(0,o.cloneElement)(t,{key:e,hidden:t.props.value!==r})})))}function x(t){var e=h(t);return o.createElement("div",{className:(0,i.Z)("tabs-container",g.tabList)},o.createElement(y,(0,r.Z)({},t,e)),o.createElement(b,(0,r.Z)({},t,e)))}function w(t){var e=(0,m.Z)();return o.createElement(x,(0,r.Z)({key:String(e)},t))}},694:(t,e,n)=>{"use strict";n.d(e,{K:()=>r,k:()=>o});var r=function(){},o=function(){}},3126:t=>{t.exports=function(t){return t&&t.__esModule?t:{default:t}},t.exports.__esModule=!0,t.exports.default=t.exports},4123:(t,e,n)=>{"use strict";n.d(e,{_:()=>c});var r=n(3112),o=n(694),i=n(870),a=n(5555);function s(){var t=!1,e=[],n=new Set,s={subscribe:function(t){return n.add(t),function(){n.delete(t)}},start:function(r,o){if(t){var a=[];return n.forEach((function(t){a.push((0,i.d5)(t,r,{transitionOverride:o}))})),Promise.all(a)}return new Promise((function(t){e.push({animation:[r,o],resolve:t})}))},set:function(e){return(0,o.k)(t,"controls.set() should only be called after a component has mounted. Consider calling within a useEffect hook."),n.forEach((function(t){(0,a.gg)(t,e)}))},stop:function(){n.forEach((function(t){(0,i.p_)(t)}))},mount:function(){return t=!0,e.forEach((function(t){var e=t.animation,n=t.resolve;s.start.apply(s,(0,r.ev)([],(0,r.CR)(e),!1)).then(n)})),function(){t=!1,s.stop()}}};return s}var u=n(9901),l=n(1672);var c=function(){var t=(0,l.h)(s);return(0,u.useEffect)(t.mount,[]),t}},2981:(t,e,n)=>{"use strict";n.d(e,{C:()=>r});var r=function(t){return Array.isArray(t)}},7241:(t,e,n)=>{"use strict";n.d(e,{ev:()=>Mt,b8:()=>At});var r=n(3112),o=n(694),i=n(7641);const a=.001,s=.01,u=10,l=.05,c=1;function d({duration:t=800,bounce:e=.25,velocity:n=0,mass:r=1}){let d,v;(0,o.K)(t<=1e3*u,"Spring duration must be 10 seconds or less");let h=1-e;h=(0,i.u)(l,c,h),t=(0,i.u)(s,u,t/1e3),h<1?(d=e=>{const r=e*h,o=r*t,i=r-n,s=f(e,h),u=Math.exp(-o);return a-i/s*u},v=e=>{const r=e*h*t,o=r*n+n,i=Math.pow(h,2)*Math.pow(e,2)*t,s=Math.exp(-r),u=f(Math.pow(e,2),h);return(-d(e)+a>0?-1:1)*((o-i)*s)/u}):(d=e=>Math.exp(-e*t)*((e-n)*t+1)-a,v=e=>Math.exp(-e*t)*(t*t*(n-e)));const m=function(t,e,n){let r=n;for(let o=1;ovoid 0!==t[e]))}function g(t){var{from:e=0,to:n=1,restSpeed:o=2,restDelta:i}=t,a=(0,r._T)(t,["from","to","restSpeed","restDelta"]);const s={done:!1,value:e};let{stiffness:u,damping:l,mass:c,velocity:p,duration:g,isResolvedFromDuration:b}=function(t){let e=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},t);if(!m(t,h)&&m(t,v)){const n=d(t);e=Object.assign(Object.assign(Object.assign({},e),n),{velocity:0,mass:1}),e.isResolvedFromDuration=!0}return e}(a),x=y,w=y;function S(){const t=p?-p/1e3:0,r=n-e,o=l/(2*Math.sqrt(u*c)),a=Math.sqrt(u/c)/1e3;if(void 0===i&&(i=Math.min(Math.abs(n-e)/100,.4)),o<1){const e=f(a,o);x=i=>{const s=Math.exp(-o*a*i);return n-s*((t+o*a*r)/e*Math.sin(e*i)+r*Math.cos(e*i))},w=n=>{const i=Math.exp(-o*a*n);return o*a*i*(Math.sin(e*n)*(t+o*a*r)/e+r*Math.cos(e*n))-i*(Math.cos(e*n)*(t+o*a*r)-e*r*Math.sin(e*n))}}else if(1===o)x=e=>n-Math.exp(-a*e)*(r+(t+a*r)*e);else{const e=a*Math.sqrt(o*o-1);x=i=>{const s=Math.exp(-o*a*i),u=Math.min(e*i,300);return n-s*((t+o*a*r)*Math.sinh(u)+e*r*Math.cosh(u))/e}}}return S(),{next:t=>{const e=x(t);if(b)s.done=t>=g;else{const r=1e3*w(t),a=Math.abs(r)<=o,u=Math.abs(n-e)<=i;s.done=a&&u}return s.value=s.done?n:e,s},flipTarget:()=>{p=-p,[e,n]=[n,e],S()}}}g.needsInterpolation=(t,e)=>"string"==typeof t||"string"==typeof e;const y=t=>0;var b=n(6408),x=n(8539),w=n(4732),S=n(2491),E=n(9491);function C(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function T({hue:t,saturation:e,lightness:n,alpha:r}){t/=360,n/=100;let o=0,i=0,a=0;if(e/=100){const r=n<.5?n*(1+e):n+e-n*e,s=2*n-r;o=C(s,r,t+1/3),i=C(s,r,t),a=C(s,r,t-1/3)}else o=i=a=n;return{red:Math.round(255*o),green:Math.round(255*i),blue:Math.round(255*a),alpha:r}}const P=(t,e,n)=>{const r=t*t,o=e*e;return Math.sqrt(Math.max(0,n*(o-r)+r))},R=[w.$,S.m,E.J],M=t=>R.find((e=>e.test(t))),A=t=>`'${t}' is not an animatable color. Use the equivalent color code instead.`,V=(t,e)=>{let n=M(t),r=M(e);(0,o.k)(!!n,A(t)),(0,o.k)(!!r,A(e));let i=n.parse(t),a=r.parse(e);n===E.J&&(i=T(i),n=S.m),r===E.J&&(a=T(a),r=S.m);const s=Object.assign({},i);return t=>{for(const e in s)"alpha"!==e&&(s[e]=P(i[e],a[e],t));return s.alpha=(0,x.C)(i.alpha,a.alpha,t),n.transform(s)}};var k=n(8851),L=n(999),Z=n(2336),j=n(700);function D(t,e){return(0,Z.e)(t)?n=>(0,x.C)(t,e,n):k.$.test(t)?V(t,e):F(t,e)}const O=(t,e)=>{const n=[...t],r=n.length,o=t.map(((t,n)=>D(t,e[n])));return t=>{for(let e=0;e{const n=Object.assign(Object.assign({},t),e),r={};for(const o in n)void 0!==t[o]&&void 0!==e[o]&&(r[o]=D(t[o],e[o]));return t=>{for(const e in r)n[e]=r[e](t);return n}};function I(t){const e=L.P.parse(t),n=e.length;let r=0,o=0,i=0;for(let a=0;a{const n=L.P.createTransformer(e),r=I(t),i=I(e);return r.numHSL===i.numHSL&&r.numRGB===i.numRGB&&r.numNumbers>=i.numNumbers?(0,j.z)(O(r.parsed,i.parsed),n):((0,o.K)(!0,`Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),n=>`${n>0?e:t}`)},z=(t,e)=>n=>(0,x.C)(t,e,n);function N(t,e,n){const r=[],o=n||("number"==typeof(i=t[0])?z:"string"==typeof i?k.$.test(i)?V:F:Array.isArray(i)?O:"object"==typeof i?B:void 0);var i;const a=t.length-1;for(let s=0;st[s-1]&&(t=[].concat(t),e=[].concat(e),t.reverse(),e.reverse());const u=N(e,r,a),l=2===s?function([t,e],[n]){return r=>n((0,b.Y)(t,e,r))}(t,u):function(t,e){const n=t.length,r=n-1;return o=>{let i=0,a=!1;if(o<=t[0]?a=!0:o>=t[r]&&(i=r-1,a=!0),!a){let e=1;for(;eo||e===r);e++);i=e-1}const s=(0,b.Y)(t[i],t[i+1],o);return e[i](s)}}(t,u);return n?e=>l((0,i.u)(t[0],t[s-1],e)):l}var U=n(4439);function W(t,e){return t.map((()=>e||U.mZ)).splice(0,t.length-1)}function H({from:t=0,to:e=1,ease:n,offset:r,duration:o=300}){const i={done:!1,value:t},a=Array.isArray(e)?e:[t,e],s=function(t,e){return t.map((t=>t*e))}(r&&r.length===a.length?r:function(t){const e=t.length;return t.map(((t,n)=>0!==n?n/(e-1):0))}(a),o);function u(){return $(s,a,{ease:Array.isArray(n)?n:W(a,n)})}let l=u();return{next:t=>(i.value=l(t),i.done=t>=o,i),flipTarget:()=>{a.reverse(),l=u()}}}const _={keyframes:H,spring:g,decay:function({velocity:t=0,from:e=0,power:n=.8,timeConstant:r=350,restDelta:o=.5,modifyTarget:i}){const a={done:!1,value:e};let s=n*t;const u=e+s,l=void 0===i?u:i(u);return l!==u&&(s=l-e),{next:t=>{const e=-s*Math.exp(-t/r);return a.done=!(e>o||e<-o),a.value=a.done?l:l+e,a},flipTarget:()=>{}}}};var Y=n(4810);function q(t,e,n=0){return t-e-n}const X=t=>{const e=({delta:e})=>t(e);return{start:()=>Y.ZP.update(e,!0),stop:()=>Y.qY.update(e)}};function G(t){var e,n,{from:o,autoplay:i=!0,driver:a=X,elapsed:s=0,repeat:u=0,repeatType:l="loop",repeatDelay:c=0,onPlay:d,onStop:p,onComplete:f,onRepeat:v,onUpdate:h}=t,m=(0,r._T)(t,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let y,b,x,{to:w}=m,S=0,E=m.duration,C=!1,T=!0;const P=function(t){if(Array.isArray(t.to))return H;if(_[t.type])return _[t.type];const e=new Set(Object.keys(t));return e.has("ease")||e.has("duration")&&!e.has("dampingRatio")?H:e.has("dampingRatio")||e.has("stiffness")||e.has("mass")||e.has("damping")||e.has("restSpeed")||e.has("restDelta")?g:H}(m);(null===(n=(e=P).needsInterpolation)||void 0===n?void 0:n.call(e,o,w))&&(x=$([0,100],[o,w],{clamp:!1}),o=0,w=100);const R=P(Object.assign(Object.assign({},m),{from:o,to:w}));function M(){S++,"reverse"===l?(T=S%2==0,s=function(t,e,n=0,r=!0){return r?q(e+-t,e,n):e-(t-e)+n}(s,E,c,T)):(s=q(s,E,c),"mirror"===l&&R.flipTarget()),C=!1,v&&v()}function A(t){if(T||(t=-t),s+=t,!C){const t=R.next(Math.max(0,s));b=t.value,x&&(b=x(b)),C=T?t.done:s<=0}null==h||h(b),C&&(0===S&&(null!=E||(E=s)),S=e+n:t<=-n}(s,E,c,T)&&M():(y.stop(),f&&f()))}return i&&(null==d||d(),y=a(A),y.start()),{stop:()=>{null==p||p(),y.stop()}}}var K=n(7930);var J=n(847);const Q=(t,e)=>1-3*e+3*t,tt=(t,e)=>3*e-6*t,et=t=>3*t,nt=(t,e,n)=>((Q(e,n)*t+tt(e,n))*t+et(e))*t,rt=(t,e,n)=>3*Q(e,n)*t*t+2*tt(e,n)*t+et(e),ot=1e-7,it=10;const at=8;const st=.1;function ut(t,e,n,r){if(t===e&&n===r)return U.GE;const o=new Float32Array(11);for(let a=0;a<11;++a)o[a]=nt(a*st,t,n);function i(e){let r=0,i=1;for(;10!==i&&o[i]<=e;++i)r+=st;--i;const a=r+(e-o[i])/(o[i+1]-o[i])*st,s=rt(a,t,n);return s>=.001?function(t,e,n,r){for(let o=0;o0?n=a:e=a}while(Math.abs(i)>ot&&++s0===t||1===t?t:nt(i(t),e,r)}var lt={linear:U.GE,easeIn:U.YQ,easeInOut:U.mZ,easeOut:U.Vv,circIn:U.Z7,circInOut:U.X7,circOut:U.Bn,backIn:U.G2,backInOut:U.XL,backOut:U.CG,anticipate:U.LU,bounceIn:U.h9,bounceInOut:U.yD,bounceOut:U.gJ},ct=function(t){if(Array.isArray(t)){(0,o.k)(4===t.length,"Cubic bezier arrays must contain four numerical values.");var e=(0,r.CR)(t,4);return ut(e[0],e[1],e[2],e[3])}return"string"==typeof t?((0,o.k)(void 0!==lt[t],"Invalid easing type '".concat(t,"'")),lt[t]):t},dt=function(t){return Array.isArray(t)&&"number"!=typeof t[0]},pt=function(t,e){return"zIndex"!==t&&(!("number"!=typeof e&&!Array.isArray(e))||!("string"!=typeof e||!L.P.test(e)||e.startsWith("url(")))},ft=n(2981),vt=function(){return{type:"spring",stiffness:500,damping:25,restSpeed:10}},ht=function(t){return{type:"spring",stiffness:550,damping:0===t?2*Math.sqrt(550):30,restSpeed:10}},mt=function(){return{type:"keyframes",ease:"linear",duration:.3}},gt=function(t){return{type:"keyframes",duration:.8,values:t}},yt={x:vt,y:vt,z:vt,rotate:vt,rotateX:vt,rotateY:vt,rotateZ:vt,scaleX:ht,scaleY:ht,scale:ht,opacity:mt,backgroundColor:mt,color:mt,default:ht},bt=function(t,e){var n;return n=(0,ft.C)(e)?gt:yt[t]||yt.default,(0,r.pi)({to:e},n(e))},xt=n(6844),wt={current:!1},St=n(411);var Et=!1;function Ct(t,e,n){var i;return Array.isArray(e.to)&&(null!==(i=t.duration)&&void 0!==i||(t.duration=.8)),function(t){Array.isArray(t.to)&&null===t.to[0]&&(t.to=(0,r.ev)([],(0,r.CR)(t.to),!1),t.to[0]=t.from)}(e),function(t){t.when,t.delay,t.delayChildren,t.staggerChildren,t.staggerDirection,t.repeat,t.repeatType,t.repeatDelay,t.from;var e=(0,r._T)(t,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from"]);return!!Object.keys(e).length}(t)||(t=(0,r.pi)((0,r.pi)({},t),bt(n,e.to))),(0,r.pi)((0,r.pi)({},e),function(t){var e=t.ease,n=t.times,i=t.yoyo,a=t.flip,s=t.loop,u=(0,r._T)(t,["ease","times","yoyo","flip","loop"]),l=(0,r.pi)({},u);return n&&(l.offset=n),u.duration&&(l.duration=(0,J.w)(u.duration)),u.repeatDelay&&(l.repeatDelay=(0,J.w)(u.repeatDelay)),e&&(l.ease=dt(e)?e.map(ct):ct(e)),"tween"===u.type&&(l.type="keyframes"),(i||s||a)&&((0,o.K)(!Et,"yoyo, loop and flip have been removed from the API. Replace with repeat and repeatType options."),Et=!0,i?l.repeatType="reverse":s?l.repeatType="loop":a&&(l.repeatType="mirror"),l.repeat=s||i||a||u.repeat),"spring"!==u.type&&(l.type="keyframes"),l}(t))}function Tt(t,e,n,i,a){var s,u=Mt(i,t),l=null!==(s=u.from)&&void 0!==s?s:e.get(),c=pt(t,n);"none"===l&&c&&"string"==typeof n?l=(0,xt.T)(t,n):Pt(l)&&"string"==typeof n?l=Rt(n):!Array.isArray(n)&&Pt(n)&&"string"==typeof l&&(n=Rt(l));var d=pt(t,l);return(0,o.K)(d===c,"You are trying to animate ".concat(t,' from "').concat(l,'" to "').concat(n,'". ').concat(l," is not an animatable value - to enable this animation set ").concat(l," to a value animatable to ").concat(n," via the `style` property.")),d&&c&&!1!==u.type?function(){var o={from:l,to:n,velocity:e.getVelocity(),onComplete:a,onUpdate:function(t){return e.set(t)}};return"inertia"===u.type||"decay"===u.type?function({from:t=0,velocity:e=0,min:n,max:r,power:o=.8,timeConstant:i=750,bounceStiffness:a=500,bounceDamping:s=10,restDelta:u=1,modifyTarget:l,driver:c,onUpdate:d,onComplete:p,onStop:f}){let v;function h(t){return void 0!==n&&tr}function m(t){return void 0===n?r:void 0===r||Math.abs(n-t){var n;null==d||d(e),null===(n=t.onUpdate)||void 0===n||n.call(t,e)},onComplete:p,onStop:f}))}function y(t){g(Object.assign({type:"spring",stiffness:a,damping:s,restDelta:u},t))}if(h(t))y({from:t,velocity:e,to:m(t)});else{let r=o*e+t;void 0!==l&&(r=l(r));const a=m(r),s=a===n?-1:1;let c,d;const p=t=>{c=d,d=t,e=(0,K.R)(t-c,(0,Y.$B)().delta),(1===s&&t>a||-1===s&&tnull==v?void 0:v.stop()}}((0,r.pi)((0,r.pi)({},o),u)):G((0,r.pi)((0,r.pi)({},Ct(u,o,t)),{onUpdate:function(t){var e;o.onUpdate(t),null===(e=u.onUpdate)||void 0===e||e.call(u,t)},onComplete:function(){var t;o.onComplete(),null===(t=u.onComplete)||void 0===t||t.call(u)}}))}:function(){var t,r,o=(0,St.Y)(n);return e.set(o),a(),null===(t=null==u?void 0:u.onUpdate)||void 0===t||t.call(u,o),null===(r=null==u?void 0:u.onComplete)||void 0===r||r.call(u),{stop:function(){}}}}function Pt(t){return 0===t||"string"==typeof t&&0===parseFloat(t)&&-1===t.indexOf(" ")}function Rt(t){return"number"==typeof t?0:(0,xt.T)("",t)}function Mt(t,e){return t[e]||t.default||t}function At(t,e,n,r){return void 0===r&&(r={}),wt.current&&(r={type:!1}),e.start((function(o){var i,a,s=Tt(t,e,n,r,o),u=function(t,e){var n,r;return null!==(r=null!==(n=(Mt(t,e)||{}).delay)&&void 0!==n?n:t.delay)&&void 0!==r?r:0}(r,t),l=function(){return a=s()};return u?i=window.setTimeout(l,(0,J.w)(u)):l(),function(){clearTimeout(i),null==a||a.stop()}}))}},5601:(t,e,n)=>{"use strict";n.d(e,{E:()=>Xr});var r=n(3112),o=n(9901),i=("undefined"==typeof process||process.env,"production"),a=function(t){return{isEnabled:function(e){return t.some((function(t){return!!e[t]}))}}},s={measureLayout:a(["layout","layoutId","drag"]),animation:a(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:a(["exit"]),drag:a(["drag","dragControls"]),focus:a(["whileFocus"]),hover:a(["whileHover","onHoverStart","onHoverEnd"]),tap:a(["whileTap","onTap","onTapStart","onTapCancel"]),pan:a(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:a(["whileInView","onViewportEnter","onViewportLeave"])};var u=n(694),l=(0,o.createContext)({strict:!1}),c=Object.keys(s),d=c.length;var p=(0,o.createContext)({transformPagePoint:function(t){return t},isStatic:!1,reducedMotion:"never"}),f=(0,o.createContext)({});var v=(0,o.createContext)(null),h=n(4258),m=n(1182),g={current:null},y=!1;function b(){return!y&&function(){if(y=!0,m.j)if(window.matchMedia){var t=window.matchMedia("(prefers-reduced-motion)"),e=function(){return g.current=t.matches};t.addListener(e),e()}else g.current=!1}(),(0,r.CR)((0,o.useState)(g.current),1)[0]}function x(t,e,n,r){var i,a,s=(0,o.useContext)(l),u=(0,o.useContext)(f).visualElement,c=(0,o.useContext)(v),d=(i=b(),"never"!==(a=(0,o.useContext)(p).reducedMotion)&&("always"===a||i)),m=(0,o.useRef)(void 0);r||(r=s.renderer),!m.current&&r&&(m.current=r(t,{visualState:e,parent:u,props:n,presenceId:null==c?void 0:c.id,blockInitialAnimation:!1===(null==c?void 0:c.initial),shouldReduceMotion:d}));var g=m.current;return(0,h.L)((function(){null==g||g.syncRender()})),(0,o.useEffect)((function(){var t;null===(t=null==g?void 0:g.animationState)||void 0===t||t.animateChanges()})),(0,h.L)((function(){return function(){return null==g?void 0:g.notifyUnmount()}}),[]),g}function w(t){return"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}var S=n(7278);function E(t){var e=function(t,e){if((0,S.O6)(t)){var n=t.initial,r=t.animate;return{initial:!1===n||(0,S.$L)(n)?n:void 0,animate:(0,S.$L)(r)?r:void 0}}return!1!==t.inherit?e:{}}(t,(0,o.useContext)(f)),n=e.initial,r=e.animate;return(0,o.useMemo)((function(){return{initial:n,animate:r}}),[C(n),C(r)])}function C(t){return Array.isArray(t)?t.join(" "):t}var T=n(1672),P={hasAnimatedSinceResize:!0,hasEverUpdated:!1},R=1;var M=(0,o.createContext)({}),A=(0,o.createContext)({});var V=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,r.ZT)(e,t),e.prototype.getSnapshotBeforeUpdate=function(){return this.updateProps(),null},e.prototype.componentDidUpdate=function(){},e.prototype.updateProps=function(){var t=this.props,e=t.visualElement,n=t.props;e&&e.setProps(n)},e.prototype.render=function(){return this.props.children},e}(o.Component);function k(t){var e=t.preloadedFeatures,n=t.createVisualElement,a=t.projectionNodeConstructor,v=t.useRender,h=t.useVisualState,g=t.Component;return e&&function(t){for(var e in t)null!==t[e]&&("projectionNodeConstructor"===e?s.projectionNodeConstructor=t[e]:s[e].Component=t[e])}(e),(0,o.forwardRef)((function(t,y){var b=function(t){var e,n=t.layoutId,r=null===(e=(0,o.useContext)(M))||void 0===e?void 0:e.id;return r&&void 0!==n?r+"-"+n:n}(t);t=(0,r.pi)((0,r.pi)({},t),{layoutId:b});var S=(0,o.useContext)(p),C=null,k=E(t),L=S.isStatic?void 0:(0,T.h)((function(){if(P.hasEverUpdated)return R++})),Z=h(t,S.isStatic);return!S.isStatic&&m.j&&(k.visualElement=x(g,Z,(0,r.pi)((0,r.pi)({},S),t),n),function(t,e,n,r){var i,a=e.layoutId,s=e.layout,u=e.drag,l=e.dragConstraints,c=e.layoutScroll,d=(0,o.useContext)(A);r&&n&&!(null==n?void 0:n.projection)&&(n.projection=new r(t,n.getLatestValues(),null===(i=n.parent)||void 0===i?void 0:i.projection),n.projection.setOptions({layoutId:a,layout:s,alwaysMeasureLayout:Boolean(u)||l&&w(l),visualElement:n,scheduleRender:function(){return n.scheduleRender()},animationType:"string"==typeof s?s:"both",initialPromotionConfig:d,layoutScroll:c}))}(L,t,k.visualElement,a||s.projectionNodeConstructor),C=function(t,e,n){var a=[],p=(0,o.useContext)(l);if(!e)return null;"production"!==i&&n&&p.strict&&(0,u.k)(!1,"You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.");for(var f=0;f-1||/[A-Z]/.test(t))}var D={};var O=n(8572);function B(t,e){var n=e.layout,r=e.layoutId;return(0,O._c)(t)||(0,O.Ee)(t)||(n||void 0!==r)&&(!!D[t]||"opacity"===t)}var I=function(t){return Boolean(null!==t&&"object"==typeof t&&t.getVelocity)},F={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"};function z(t){return t.startsWith("--")}var N=function(t,e){return e&&"number"==typeof t?e.transform(t):t},$=n(1875);function U(t,e,n,r){var o,i=t.style,a=t.vars,s=t.transform,u=t.transformKeys,l=t.transformOrigin;u.length=0;var c=!1,d=!1,p=!0;for(var f in e){var v=e[f];if(z(f))a[f]=v;else{var h=$.j[f],m=N(v,h);if((0,O._c)(f)){if(c=!0,s[f]=m,u.push(f),!p)continue;v!==(null!==(o=h.default)&&void 0!==o?o:0)&&(p=!1)}else(0,O.Ee)(f)?(l[f]=m,d=!0):i[f]=m}}c?i.transform=function(t,e,n,r){var o=t.transform,i=t.transformKeys,a=e.enableHardwareAcceleration,s=void 0===a||a,u=e.allowTransformNone,l=void 0===u||u,c="";i.sort(O.s3);for(var d=!1,p=i.length,f=0;fh&&y,C=Array.isArray(g)?g:[g],T=C.reduce(s,{});!1===b&&(T={});var P=m.prevResolvedValues,R=void 0===P?{}:P,M=(0,r.pi)((0,r.pi)({},R),T),A=function(t){E=!0,f.delete(t),m.needsAnimating[t]=!0};for(var V in M){var k=T[V],L=R[V];v.hasOwnProperty(V)||(k!==L?(0,le.C)(k)&&(0,le.C)(L)?!ce(k,L)||w?A(V):m.protectedKeys[V]=!0:void 0!==k?A(V):f.add(V):void 0!==k&&f.has(V)?A(V):m.protectedKeys[V]=!0)}m.prevProp=g,m.prevResolvedValues=T,m.isActive&&(v=(0,r.pi)((0,r.pi)({},v),T)),a&&t.blockInitialAnimation&&(E=!1),E&&!x&&p.push.apply(p,(0,r.ev)([],(0,r.CR)(C.map((function(t){return{animation:t,options:(0,r.pi)({type:i},e)}}))),!1))},g=0;gt.hasOwnProperty("x")&&t.hasOwnProperty("y"),we=t=>xe(t)&&t.hasOwnProperty("z");var Se=n(2336);const Ee=(t,e)=>Math.abs(t-e);function Ce(t,e){if((0,Se.e)(t)&&(0,Se.e)(e))return Ee(t,e);if(xe(t)&&xe(e)){const n=Ee(t.x,e.x),r=Ee(t.y,e.y),o=we(t)&&we(e)?Ee(t.z,e.z):0;return Math.sqrt(Math.pow(n,2)+Math.pow(r,2)+Math.pow(o,2))}}var Te=function(){function t(t,e,n){var o=this,i=(void 0===n?{}:n).transformPagePoint;if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=function(){if(o.lastMoveEvent&&o.lastMoveEventInfo){var t=Me(o.lastMoveEventInfo,o.history),e=null!==o.startEvent,n=Ce(t.offset,{x:0,y:0})>=3;if(e||n){var i=t.point,a=(0,ye.$B)().timestamp;o.history.push((0,r.pi)((0,r.pi)({},i),{timestamp:a}));var s=o.handlers,u=s.onStart,l=s.onMove;e||(u&&u(o.lastMoveEvent,t),o.startEvent=o.lastMoveEvent),l&&l(o.lastMoveEvent,t)}}},this.handlePointerMove=function(t,e){o.lastMoveEvent=t,o.lastMoveEventInfo=Pe(e,o.transformPagePoint),Ct(t)&&0===t.buttons?o.handlePointerUp(t,e):ye.ZP.update(o.updatePoint,!0)},this.handlePointerUp=function(t,e){o.end();var n=o.handlers,r=n.onEnd,i=n.onSessionEnd,a=Me(Pe(e,o.transformPagePoint),o.history);o.startEvent&&r&&r(t,a),i&&i(t,a)},!(Tt(t)&&t.touches.length>1)){this.handlers=e,this.transformPagePoint=i;var a=Pe(At(t),this.transformPagePoint),s=a.point,u=(0,ye.$B)().timestamp;this.history=[(0,r.pi)((0,r.pi)({},s),{timestamp:u})];var l=e.onSessionStart;l&&l(t,Me(a,this.history)),this.removeListeners=(0,Yt.z)(Bt(window,"pointermove",this.handlePointerMove),Bt(window,"pointerup",this.handlePointerUp),Bt(window,"pointercancel",this.handlePointerUp))}}return t.prototype.updateHandlers=function(t){this.handlers=t},t.prototype.end=function(){this.removeListeners&&this.removeListeners(),ye.qY.update(this.updatePoint)},t}();function Pe(t,e){return e?{point:e(t.point)}:t}function Re(t,e){return{x:t.x-e.x,y:t.y-e.y}}function Me(t,e){var n=t.point;return{point:n,delta:Re(n,Ve(e)),offset:Re(n,Ae(e)),velocity:ke(e,.1)}}function Ae(t){return t[0]}function Ve(t){return t[t.length-1]}function ke(t,e){if(t.length<2)return{x:0,y:0};for(var n=t.length-1,r=null,o=Ve(t);n>=0&&(r=t[n],!(o.timestamp-r.timestamp>(0,be.w)(e)));)n--;if(!r)return{x:0,y:0};var i=(o.timestamp-r.timestamp)/1e3;if(0===i)return{x:0,y:0};var a={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}var Le=n(8539),Ze=n(6408),je=n(7641);function De(t){return t.max-t.min}function Oe(t,e,n){return void 0===e&&(e=0),void 0===n&&(n=.01),Ce(t,e)e?n="y":Math.abs(t.x)>e&&(n="x");return n}(u),void(null!==n.currentDirection&&(null==a||a(n.currentDirection)));n.updateAxis("x",e.point,u),n.updateAxis("y",e.point,u),n.visualElement.syncRender(),null==s||s(t,e)}},onSessionEnd:function(t,e){return n.stop(t,e)}},{transformPagePoint:this.visualElement.getTransformPagePoint()})}},t.prototype.stop=function(t,e){var n=this.isDragging;if(this.cancel(),n){var r=e.velocity;this.startAnimation(r);var o=this.getProps().onDragEnd;null==o||o(t,e)}},t.prototype.cancel=function(){var t,e;this.isDragging=!1,this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!1),null===(t=this.panSession)||void 0===t||t.end(),this.panSession=void 0,!this.getProps().dragPropagation&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),null===(e=this.visualElement.animationState)||void 0===e||e.setActive(bt.Drag,!1)},t.prototype.updateAxis=function(t,e,n){var r=this.getProps().drag;if(n&&hn(t,r,this.currentDirection)){var o,i,a,s,u,l=this.getAxisMotionValue(t),c=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(o=c,i=this.constraints[t],a=this.elastic[t],s=i.min,u=i.max,void 0!==s&&ou&&(o=a?(0,Le.C)(u,o,a.max):Math.min(o,u)),c=o),l.set(c)}},t.prototype.resolveConstraints=function(){var t=this,e=this.getProps(),n=e.dragConstraints,r=e.dragElastic,o=(this.visualElement.projection||{}).layout,i=this.constraints;n&&w(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!n||!o)&&function(t,e){var n=e.top,r=e.left,o=e.bottom,i=e.right;return{x:$e(t.x,r,i),y:$e(t.y,n,o)}}(o.actual,n),this.elastic=function(t){return void 0===t&&(t=We),!1===t?t=0:!0===t&&(t=We),{x:He(t,"left","right"),y:He(t,"top","bottom")}}(r),i!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&Xe((function(e){t.getAxisMotionValue(e)&&(t.constraints[e]=function(t,e){var n={};return void 0!==e.min&&(n.min=e.min-t.min),void 0!==e.max&&(n.max=e.max-t.min),n}(o.actual[e],t.constraints[e]))}))},t.prototype.resolveRefConstraints=function(){var t=this.getProps(),e=t.dragConstraints,n=t.onMeasureDragConstraints;if(!e||!w(e))return!1;var r=e.current;(0,u.k)(null!==r,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");var o=this.visualElement.projection;if(!o||!o.layout)return!1;var i=function(t,e,n){var r=dn(t,n),o=e.scroll;return o&&(an(r.x,o.x),an(r.y,o.y)),r}(r,o.root,this.visualElement.getTransformPagePoint()),a=function(t,e){return{x:Ue(t.x,e.x),y:Ue(t.y,e.y)}}(o.layout.actual,i);if(n){var s=n(function(t){var e=t.x,n=t.y;return{top:n.min,right:e.max,bottom:n.max,left:e.min}}(a));this.hasMutatedConstraints=!!s,s&&(a=Ge(s))}return a},t.prototype.startAnimation=function(t){var e=this,n=this.getProps(),o=n.drag,i=n.dragMomentum,a=n.dragElastic,s=n.dragTransition,u=n.dragSnapToOrigin,l=n.onDragTransitionEnd,c=this.constraints||{},d=Xe((function(n){var l;if(hn(n,o,e.currentDirection)){var d=null!==(l=null==c?void 0:c[n])&&void 0!==l?l:{};u&&(d={min:0,max:0});var p=a?200:1e6,f=a?40:1e7,v=(0,r.pi)((0,r.pi)({type:"inertia",velocity:i?t[n]:0,bounceStiffness:p,bounceDamping:f,timeConstant:750,restDelta:1,restSpeed:10},s),d);return e.startAxisValueAnimation(n,v)}}));return Promise.all(d).then(l)},t.prototype.startAxisValueAnimation=function(t,e){var n=this.getAxisMotionValue(t);return(0,pn.b8)(t,n,0,e)},t.prototype.stopAnimation=function(){var t=this;Xe((function(e){return t.getAxisMotionValue(e).stop()}))},t.prototype.getAxisMotionValue=function(t){var e,n,r="_drag"+t.toUpperCase(),o=this.visualElement.getProps()[r];return o||this.visualElement.getValue(t,null!==(n=null===(e=this.visualElement.getProps().initial)||void 0===e?void 0:e[t])&&void 0!==n?n:0)},t.prototype.snapToCursor=function(t){var e=this;Xe((function(n){if(hn(n,e.getProps().drag,e.currentDirection)){var r=e.visualElement.projection,o=e.getAxisMotionValue(n);if(r&&r.layout){var i=r.layout.actual[n],a=i.min,s=i.max;o.set(t[n]-(0,Le.C)(a,s,.5))}}}))},t.prototype.scalePositionWithinConstraints=function(){var t,e=this,n=this.getProps(),r=n.drag,o=n.dragConstraints,i=this.visualElement.projection;if(w(o)&&i&&this.constraints){this.stopAnimation();var a={x:0,y:0};Xe((function(t){var n,r,o,i,s,u=e.getAxisMotionValue(t);if(u){var l=u.get();a[t]=(n={min:l,max:l},r=e.constraints[t],o=.5,i=De(n),(s=De(r))>i?o=(0,Ze.Y)(r.min,r.max-i,n.min):i>s&&(o=(0,Ze.Y)(n.min,n.max-s,r.min)),(0,je.u)(0,1,o))}}));var s=this.visualElement.getProps().transformTemplate;this.visualElement.getInstance().style.transform=s?s({},""):"none",null===(t=i.root)||void 0===t||t.updateScroll(),i.updateLayout(),this.resolveConstraints(),Xe((function(t){if(hn(t,r,null)){var n=e.getAxisMotionValue(t),o=e.constraints[t],i=o.min,s=o.max;n.set((0,Le.C)(i,s,a[t]))}}))}},t.prototype.addListeners=function(){var t,e=this;fn.set(this.visualElement,this);var n=Bt(this.visualElement.getInstance(),"pointerdown",(function(t){var n=e.getProps(),r=n.drag,o=n.dragListener;r&&(void 0===o||o)&&e.start(t)})),r=function(){w(e.getProps().dragConstraints)&&(e.constraints=e.resolveRefConstraints())},o=this.visualElement.projection,i=o.addEventListener("measure",r);o&&!o.layout&&(null===(t=o.root)||void 0===t||t.updateScroll(),o.updateLayout()),r();var a=St(window,"resize",(function(){return e.scalePositionWithinConstraints()}));return o.addEventListener("didUpdate",(function(t){var n=t.delta,r=t.hasLayoutChanged;e.isDragging&&r&&(Xe((function(t){var r=e.getAxisMotionValue(t);r&&(e.originPoint[t]+=n[t].translate,r.set(r.get()+n[t].translate))})),e.visualElement.syncRender())})),function(){a(),n(),i()}},t.prototype.getProps=function(){var t=this.visualElement.getProps(),e=t.drag,n=void 0!==e&&e,o=t.dragDirectionLock,i=void 0!==o&&o,a=t.dragPropagation,s=void 0!==a&&a,u=t.dragConstraints,l=void 0!==u&&u,c=t.dragElastic,d=void 0===c?We:c,p=t.dragMomentum,f=void 0===p||p;return(0,r.pi)((0,r.pi)({},t),{drag:n,dragDirectionLock:i,dragPropagation:s,dragConstraints:l,dragElastic:d,dragMomentum:f})},t}();function hn(t,e,n){return!(!0!==e&&e!==t||null!==n&&n!==t)}var mn={pan:re((function(t){var e=t.onPan,n=t.onPanStart,r=t.onPanEnd,i=t.onPanSessionStart,a=t.visualElement,s=e||n||r||i,u=(0,o.useRef)(null),l=(0,o.useContext)(p).transformPagePoint,c={onSessionStart:i,onStart:n,onMove:e,onEnd:function(t,e){u.current=null,r&&r(t,e)}};(0,o.useEffect)((function(){null!==u.current&&u.current.updateHandlers(c)})),It(a,"pointerdown",s&&function(t){u.current=new Te(t,c,{transformPagePoint:l})}),_t((function(){return u.current&&u.current.end()}))})),drag:re((function(t){var e=t.dragControls,n=t.visualElement,r=(0,T.h)((function(){return new vn(n)}));(0,o.useEffect)((function(){return e&&e.subscribe(r)}),[r,e]),(0,o.useEffect)((function(){return r.addListeners()}),[r])}))},gn=n(5946),yn=n(4097),bn=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","LayoutAnimationStart","SetAxisTarget","Unmount"];var xn=function(t){var e=t.treeType,n=void 0===e?"":e,o=t.build,i=t.getBaseTarget,a=t.makeTargetAnimatable,s=t.measureViewportBox,u=t.render,l=t.readValueFromInstance,c=t.removeValueFromRenderState,d=t.sortNodePosition,p=t.scrapeMotionValuesFromProps;return function(t,e){var f=t.parent,v=t.props,h=t.presenceId,m=t.blockInitialAnimation,g=t.visualState,y=t.shouldReduceMotion;void 0===e&&(e={});var b,x,w=!1,E=g.latestValues,C=g.renderState,T=function(){var t=bn.map((function(){return new yn.L})),e={},n={clearAllListeners:function(){return t.forEach((function(t){return t.clear()}))},updatePropListeners:function(t){bn.forEach((function(r){var o,i="on"+r,a=t[i];null===(o=e[r])||void 0===o||o.call(e),a&&(e[r]=n[i](a))}))}};return t.forEach((function(t,e){n["on"+bn[e]]=function(e){return t.add(e)},n["notify"+bn[e]]=function(){for(var e=[],n=0;n=0?window.pageYOffset:null,d=function(t,e,n){var r=e.measureViewportBox(),o=e.getInstance(),i=getComputedStyle(o),a=i.display,s={};"none"===a&&e.setStaticValue("display",t.display||"block"),n.forEach((function(t){s[t]=Fn[t](r,i)})),e.syncRender();var u=e.measureViewportBox();return n.forEach((function(n){var r=e.getValue(n);Zn(r,s[n]),t[n]=Fn[n](u,i)})),t}(e,t,l);return a.length&&a.forEach((function(e){var n=(0,r.CR)(e,2),o=n[0],i=n[1];t.getValue(o).set(i)})),t.syncRender(),null!==c&&window.scrollTo({top:c}),{target:d,transitionEnd:o}}return{target:e,transitionEnd:o}};function Nn(t,e,n,r){return function(t){return Object.keys(t).some(Ln)}(e)?zn(t,e,n,r):{target:e,transitionEnd:r}}var $n=function(t,e,n,o){var i=function(t,e,n){var o,i=(0,r._T)(e,[]),a=t.getInstance();if(!(a instanceof Element))return{target:i,transitionEnd:n};for(var s in n&&(n=(0,r.pi)({},n)),t.forEachValue((function(t){var e=t.get();if(Cn(e)){var n=Rn(e,a);n&&t.set(n)}})),i){var u=i[s];if(Cn(u)){var l=Rn(u,a);l&&(i[s]=l,n&&(null!==(o=n[s])&&void 0!==o||(n[s]=u)))}}return{target:i,transitionEnd:n}}(t,e,o);return Nn(t,e=i.target,n,o=i.transitionEnd)},Un=n(7508);var Wn={treeType:"dom",readValueFromInstance:function(t,e){if((0,O._c)(e)){var n=(0,Un.A)(e);return n&&n.default||0}var r,o=(r=t,window.getComputedStyle(r));return(z(e)?o.getPropertyValue(e):o[e])||0},sortNodePosition:function(t,e){return 2&t.compareDocumentPosition(e)?1:-1},getBaseTarget:function(t,e){var n;return null===(n=t.style)||void 0===n?void 0:n[e]},measureViewportBox:function(t,e){return dn(t,e.transformPagePoint)},resetTransform:function(t,e,n){var r=n.transformTemplate;e.style.transform=r?r({},""):"none",t.scheduleRender()},restoreTransform:function(t,e){t.style.transform=e.style.transform},removeValueFromRenderState:function(t,e){var n=e.vars,r=e.style;delete n[t],delete r[t]},makeTargetAnimatable:function(t,e,n,o){var i=n.transformValues;void 0===o&&(o=!0);var a=e.transition,s=e.transitionEnd,u=(0,r._T)(e,["transition","transitionEnd"]),l=(0,En.P$)(u,a||{},t);if(i&&(s&&(s=i(s)),u&&(u=i(u)),l&&(l=i(l))),o){(0,En.GJ)(t,u,l);var c=$n(t,u,l,s);s=c.transitionEnd,u=c.target}return(0,r.pi)({transition:a,transitionEnd:s},u)},scrapeMotionValuesFromProps:dt,build:function(t,e,n,r,o){void 0!==t.isVisible&&(e.style.visibility=t.isVisible?"visible":"hidden"),U(e,n,r,o.transformTemplate)},render:ut},Hn=xn(Wn),_n=xn((0,r.pi)((0,r.pi)({},Wn),{getBaseTarget:function(t,e){return t[e]},readValueFromInstance:function(t,e){var n;return(0,O._c)(e)?(null===(n=(0,Un.A)(e))||void 0===n?void 0:n.default)||0:(e=lt.has(e)?e:st(e),t.getAttribute(e))},scrapeMotionValuesFromProps:pt,build:function(t,e,n,r,o){nt(e,n,r,o.transformTemplate)},render:ct})),Yn=function(t,e){return j(t)?_n(e,{enableHardwareAcceleration:!1}):Hn(e,{enableHardwareAcceleration:!0})};function qn(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}var Xn={correct:function(t,e){if(!e.target)return t;if("string"==typeof t){if(!J.px.test(t))return t;t=parseFloat(t)}var n=qn(t,e.target.x),r=qn(t,e.target.y);return"".concat(n,"% ").concat(r,"%")}},Gn=n(999),Kn="_$css",Jn={correct:function(t,e){var n=e.treeScale,r=e.projectionDelta,o=t,i=t.includes("var("),a=[];i&&(t=t.replace(Tn,(function(t){return a.push(t),Kn})));var s=Gn.P.parse(t);if(s.length>5)return o;var u=Gn.P.createTransformer(t),l="number"!=typeof s[0]?1:0,c=r.x.scale*n.x,d=r.y.scale*n.y;s[0+l]/=c,s[1+l]/=d;var p=(0,Le.C)(c,d,.5);"number"==typeof s[2+l]&&(s[2+l]/=p),"number"==typeof s[3+l]&&(s[3+l]/=p);var f=u(s);if(i){var v=0;f=f.replace(Kn,(function(){var t=a[v];return v++,t}))}return f}},Qn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,r.ZT)(e,t),e.prototype.componentDidMount=function(){var t,e=this,n=this.props,o=n.visualElement,i=n.layoutGroup,a=n.switchLayoutGroup,s=n.layoutId,u=o.projection;t=tr,Object.assign(D,t),u&&((null==i?void 0:i.group)&&i.group.add(u),(null==a?void 0:a.register)&&s&&a.register(u),u.root.didUpdate(),u.addEventListener("animationComplete",(function(){e.safeToRemove()})),u.setOptions((0,r.pi)((0,r.pi)({},u.options),{onExitComplete:function(){return e.safeToRemove()}}))),P.hasEverUpdated=!0},e.prototype.getSnapshotBeforeUpdate=function(t){var e=this,n=this.props,r=n.layoutDependency,o=n.visualElement,i=n.drag,a=n.isPresent,s=o.projection;return s?(s.isPresent=a,i||t.layoutDependency!==r||void 0===r?s.willUpdate():this.safeToRemove(),t.isPresent!==a&&(a?s.promote():s.relegate()||ye.ZP.postRender((function(){var t;(null===(t=s.getStack())||void 0===t?void 0:t.members.length)||e.safeToRemove()}))),null):null},e.prototype.componentDidUpdate=function(){var t=this.props.visualElement.projection;t&&(t.root.didUpdate(),!t.currentAnimation&&t.isLead()&&this.safeToRemove())},e.prototype.componentWillUnmount=function(){var t=this.props,e=t.visualElement,n=t.layoutGroup,r=t.switchLayoutGroup,o=e.projection;o&&(o.scheduleCheckAfterUnmount(),(null==n?void 0:n.group)&&n.group.remove(o),(null==r?void 0:r.deregister)&&r.deregister(o))},e.prototype.safeToRemove=function(){var t=this.props.safeToRemove;null==t||t()},e.prototype.render=function(){return null},e}(o.Component);var tr={borderRadius:(0,r.pi)((0,r.pi)({},Xn),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:Xn,borderTopRightRadius:Xn,borderBottomLeftRadius:Xn,borderBottomRightRadius:Xn,boxShadow:Jn},er={measureLayout:function(t){var e=(0,r.CR)(ue(),2),n=e[0],i=e[1],a=(0,o.useContext)(M);return o.createElement(Qn,(0,r.pi)({},t,{layoutGroup:a,switchLayoutGroup:(0,o.useContext)(A),isPresent:n,safeToRemove:i}))}};var nr=n(4439),rr=["TopLeft","TopRight","BottomLeft","BottomRight"],or=rr.length,ir=function(t){return"string"==typeof t?parseFloat(t):t},ar=function(t){return"number"==typeof t||J.px.test(t)};function sr(t,e){var n;return null!==(n=t[e])&&void 0!==n?n:t.borderRadius}var ur=cr(0,.5,nr.Bn),lr=cr(.5,.95,nr.GE);function cr(t,e,n){return function(r){return re?1:n((0,Ze.Y)(t,e,r))}}function dr(t,e){t.min=e.min,t.max=e.max}function pr(t,e){dr(t.x,e.x),dr(t.y,e.y)}function fr(t,e,n,r,o){return t=en(t-=e,1/n,r),void 0!==o&&(t=en(t,1/o,r)),t}function vr(t,e,n,o,i){var a=(0,r.CR)(n,3),s=a[0],u=a[1],l=a[2];!function(t,e,n,r,o,i,a){if(void 0===e&&(e=0),void 0===n&&(n=1),void 0===r&&(r=.5),void 0===i&&(i=t),void 0===a&&(a=t),J.aQ.test(e)&&(e=parseFloat(e),e=(0,Le.C)(a.min,a.max,e/100)-a.min),"number"==typeof e){var s=(0,Le.C)(i.min,i.max,r);t===i&&(s-=e),t.min=fr(t.min,e,n,s,o),t.max=fr(t.max,e,n,s,o)}}(t,e[s],e[u],e[l],e.scale,o,i)}var hr=["x","scaleX","originX"],mr=["y","scaleY","originY"];function gr(t,e,n,r){vr(t.x,e,hr,null==n?void 0:n.x,null==r?void 0:r.x),vr(t.y,e,mr,null==n?void 0:n.y,null==r?void 0:r.y)}function yr(t){return 0===t.translate&&1===t.scale}function br(t){return yr(t.x)&&yr(t.y)}function xr(t,e){return t.x.min===e.x.min&&t.x.max===e.x.max&&t.y.min===e.y.min&&t.y.max===e.y.max}var wr=n(3303),Sr=function(){function t(){this.members=[]}return t.prototype.add=function(t){(0,wr.y4)(this.members,t),t.scheduleRender()},t.prototype.remove=function(t){if((0,wr.cl)(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){var e=this.members[this.members.length-1];e&&this.promote(e)}},t.prototype.relegate=function(t){var e,n=this.members.findIndex((function(e){return t===e}));if(0===n)return!1;for(var r=n;r>=0;r--){var o=this.members[r];if(!1!==o.isPresent){e=o;break}}return!!e&&(this.promote(e),!0)},t.prototype.promote=function(t,e){var n,r=this.lead;t!==r&&(this.prevLead=r,this.lead=t,t.show(),r&&(r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,e&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues,t.snapshot.isShared=!0),(null===(n=t.root)||void 0===n?void 0:n.isUpdating)&&(t.isLayoutDirty=!0),!1===t.options.crossfade&&r.hide()))},t.prototype.exitAnimationComplete=function(){this.members.forEach((function(t){var e,n,r,o,i;null===(n=(e=t.options).onExitComplete)||void 0===n||n.call(e),null===(i=null===(r=t.resumingFrom)||void 0===r?void 0:(o=r.options).onExitComplete)||void 0===i||i.call(o)}))},t.prototype.scheduleRender=function(){this.members.forEach((function(t){t.instance&&t.scheduleRender(!1)}))},t.prototype.removeLeadSnapshot=function(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)},t}(),Er="translate3d(0px, 0px, 0) scale(1, 1) scale(1, 1)";function Cr(t,e,n){var r=t.x.translate/e.x,o=t.y.translate/e.y,i="translate3d(".concat(r,"px, ").concat(o,"px, 0) ");if(i+="scale(".concat(1/e.x,", ").concat(1/e.y,") "),n){var a=n.rotate,s=n.rotateX,u=n.rotateY;a&&(i+="rotate(".concat(a,"deg) ")),s&&(i+="rotateX(".concat(s,"deg) ")),u&&(i+="rotateY(".concat(u,"deg) "))}var l=t.x.scale*e.x,c=t.y.scale*e.y;return(i+="scale(".concat(l,", ").concat(c,")"))===Er?"none":i}var Tr=function(t,e){return t.depth-e.depth},Pr=function(){function t(){this.children=[],this.isDirty=!1}return t.prototype.add=function(t){(0,wr.y4)(this.children,t),this.isDirty=!0},t.prototype.remove=function(t){(0,wr.cl)(this.children,t),this.isDirty=!0},t.prototype.forEach=function(t){this.isDirty&&this.children.sort(Tr),this.isDirty=!1,this.children.forEach(t)},t}();function Rr(t){var e=t.attachResizeListener,n=t.defaultParent,o=t.measureScroll,i=t.checkIsScrollRoot,a=t.resetTransform;return function(){function t(t,e,o){var i=this;void 0===e&&(e={}),void 0===o&&(o=null==n?void 0:n()),this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.potentialNodes=new Map,this.checkUpdateFailed=function(){i.isUpdating&&(i.isUpdating=!1,i.clearAllSnapshots())},this.updateProjection=function(){i.nodes.forEach(jr),i.nodes.forEach(Dr)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.id=t,this.latestValues=e,this.root=o?o.root||o:this,this.path=o?(0,r.ev)((0,r.ev)([],(0,r.CR)(o.path),!1),[o],!1):[],this.parent=o,this.depth=o?o.depth+1:0,t&&this.root.registerPotentialNode(t,this);for(var a=0;a=0;r--)if(Boolean(t.path[r].instance)){n=t.path[r];break}var o=(n&&n!==t.root?n.instance:document).querySelector('[data-projection-id="'.concat(e,'"]'));o&&t.mount(o,!0)}function Ur(t){t.min=Math.round(t.min),t.max=Math.round(t.max)}function Wr(t){Ur(t.x),Ur(t.y)}var Hr=Rr({attachResizeListener:function(t,e){return St(t,"resize",e)},measureScroll:function(){return{x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}},checkIsScrollRoot:function(){return!0}}),_r={current:void 0},Yr=Rr({measureScroll:function(t){return{x:t.scrollLeft,y:t.scrollTop}},defaultParent:function(){if(!_r.current){var t=new Hr(0,{});t.mount(window),t.setOptions({layoutScroll:!0}),_r.current=t}return _r.current},resetTransform:function(t,e){t.style.transform=null!=e?e:"none"},checkIsScrollRoot:function(t){return Boolean("fixed"===window.getComputedStyle(t).position)}}),qr=(0,r.pi)((0,r.pi)((0,r.pi)((0,r.pi)({},ge),oe),mn),er),Xr=L((function(t,e){return function(t,e,n,o,i){var a=e.forwardMotionProps,s=void 0!==a&&a,u=j(t)?xt:wt;return(0,r.pi)((0,r.pi)({},u),{preloadedFeatures:n,useRender:it(s),createVisualElement:o,projectionNodeConstructor:i,Component:t})}(t,e,qr,Yn,Yr)}))},6844:(t,e,n)=>{"use strict";n.d(e,{T:()=>a});var r=n(765),o=n(999),i=n(7508);function a(t,e){var n,a=(0,i.A)(t);return a!==r.h&&(a=o.P),null===(n=a.getAnimatableNone)||void 0===n?void 0:n.call(a,e)}},7508:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(3112),o=n(8851),i=n(765),a=n(1875),s=(0,r.pi)((0,r.pi)({},a.j),{color:o.$,backgroundColor:o.$,outlineColor:o.$,fill:o.$,stroke:o.$,borderColor:o.$,borderTopColor:o.$,borderRightColor:o.$,borderBottomColor:o.$,borderLeftColor:o.$,filter:i.h,WebkitFilter:i.h}),u=function(t){return s[t]}},6483:(t,e,n)=>{"use strict";n.d(e,{$:()=>a,C:()=>s});var r=n(6849),o=n(321),i=n(4559),a=[r.Rx,o.px,o.aQ,o.RW,o.vw,o.vh,{test:function(t){return"auto"===t},parse:function(t){return t}}],s=function(t){return a.find((0,i.l)(t))}},1875:(t,e,n)=>{"use strict";n.d(e,{j:()=>s});var r=n(321),o=n(6849),i=n(3112),a=(0,i.pi)((0,i.pi)({},o.Rx),{transform:Math.round}),s={borderWidth:r.px,borderTopWidth:r.px,borderRightWidth:r.px,borderBottomWidth:r.px,borderLeftWidth:r.px,borderRadius:r.px,radius:r.px,borderTopLeftRadius:r.px,borderTopRightRadius:r.px,borderBottomRightRadius:r.px,borderBottomLeftRadius:r.px,width:r.px,maxWidth:r.px,height:r.px,maxHeight:r.px,size:r.px,top:r.px,right:r.px,bottom:r.px,left:r.px,padding:r.px,paddingTop:r.px,paddingRight:r.px,paddingBottom:r.px,paddingLeft:r.px,margin:r.px,marginTop:r.px,marginRight:r.px,marginBottom:r.px,marginLeft:r.px,rotate:r.RW,rotateX:r.RW,rotateY:r.RW,rotateZ:r.RW,scale:o.bA,scaleX:o.bA,scaleY:o.bA,scaleZ:o.bA,skew:r.RW,skewX:r.RW,skewY:r.RW,distance:r.px,translateX:r.px,translateY:r.px,translateZ:r.px,x:r.px,y:r.px,z:r.px,perspective:r.px,transformPerspective:r.px,opacity:o.Fq,originX:r.$C,originY:r.$C,originZ:r.px,zIndex:a,fillOpacity:o.Fq,strokeOpacity:o.Fq,numOctaves:a}},4559:(t,e,n)=>{"use strict";n.d(e,{l:()=>r});var r=function(t){return function(e){return e.test(t)}}},8572:(t,e,n)=>{"use strict";n.d(e,{Ee:()=>l,Gl:()=>o,_c:()=>s,r$:()=>r,s3:()=>i});var r=["","X","Y","Z"],o=["transformPerspective","x","y","z"];function i(t,e){return o.indexOf(t)-o.indexOf(e)}["translate","scale","rotate","skew"].forEach((function(t){return r.forEach((function(e){return o.push(t+e)}))}));var a=new Set(o);function s(t){return a.has(t)}var u=new Set(["originX","originY","originZ"]);function l(t){return u.has(t)}},870:(t,e,n)=>{"use strict";n.d(e,{d5:()=>u,p_:()=>d});var r=n(3112),o=n(7241),i=n(5555),a=n(7278),s=n(8572);function u(t,e,n){var r;if(void 0===n&&(n={}),t.notifyAnimationStart(e),Array.isArray(e)){var o=e.map((function(e){return l(t,e,n)}));r=Promise.all(o)}else if("string"==typeof e)r=l(t,e,n);else{var i="function"==typeof e?(0,a.x5)(t,e,n.custom):e;r=c(t,i,n)}return r.then((function(){return t.notifyAnimationComplete(e)}))}function l(t,e,n){var o;void 0===n&&(n={});var i=(0,a.x5)(t,e,n.custom),s=(i||{}).transition,u=void 0===s?t.getDefaultTransition()||{}:s;n.transitionOverride&&(u=n.transitionOverride);var d=i?function(){return c(t,i,n)}:function(){return Promise.resolve()},f=(null===(o=t.variantChildren)||void 0===o?void 0:o.size)?function(o){void 0===o&&(o=0);var i=u.delayChildren,a=void 0===i?0:i,s=u.staggerChildren,c=u.staggerDirection;return function(t,e,n,o,i,a){void 0===n&&(n=0);void 0===o&&(o=0);void 0===i&&(i=1);var s=[],u=(t.variantChildren.size-1)*o,c=1===i?function(t){return void 0===t&&(t=0),t*o}:function(t){return void 0===t&&(t=0),u-t*o};return Array.from(t.variantChildren).sort(p).forEach((function(t,o){s.push(l(t,e,(0,r.pi)((0,r.pi)({},a),{delay:n+c(o)})).then((function(){return t.notifyAnimationComplete(e)})))})),Promise.all(s)}(t,e,a+o,s,c,n)}:function(){return Promise.resolve()},v=u.when;if(v){var h=(0,r.CR)("beforeChildren"===v?[d,f]:[f,d],2),m=h[0],g=h[1];return m().then(g)}return Promise.all([d(),f(n.delay)])}function c(t,e,n){var a,u=void 0===n?{}:n,l=u.delay,c=void 0===l?0:l,d=u.transitionOverride,p=u.type,v=t.makeTargetAnimatable(e),h=v.transition,m=void 0===h?t.getDefaultTransition():h,g=v.transitionEnd,y=(0,r._T)(v,["transition","transitionEnd"]);d&&(m=d);var b=[],x=p&&(null===(a=t.animationState)||void 0===a?void 0:a.getState()[p]);for(var w in y){var S=t.getValue(w),E=y[w];if(!(!S||void 0===E||x&&f(x,w))){var C=(0,r.pi)({delay:c},m);t.shouldReduceMotion&&(0,s._c)(w)&&(C=(0,r.pi)((0,r.pi)({},C),{type:!1,delay:0}));var T=(0,o.b8)(w,S,E,C);b.push(T)}}return Promise.all(b).then((function(){g&&(0,i.CD)(t,g)}))}function d(t){t.forEachValue((function(t){return t.stop()}))}function p(t,e){return t.sortNodePosition(e)}function f(t,e){var n=t.protectedKeys,r=t.needsAnimating,o=n.hasOwnProperty(e)&&!0!==r[e];return r[e]=!1,o}},5555:(t,e,n)=>{"use strict";n.d(e,{GJ:()=>x,P$:()=>S,CD:()=>g,gg:()=>b});var r=n(3112),o=n(999),i=function(t){return/^\-?\d*\.?\d+$/.test(t)},a=function(t){return/^0[^.\s]+$/.test(t)},s=n(411),u=n(5946),l=n(6844),c=n(8851),d=n(6483),p=n(4559),f=(0,r.ev)((0,r.ev)([],(0,r.CR)(d.$),!1),[c.$,o.P],!1),v=function(t){return f.find((0,p.l)(t))},h=n(7278);function m(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,(0,u.B)(n))}function g(t,e){var n=(0,h.x5)(t,e),o=n?t.makeTargetAnimatable(n,!1):{},i=o.transitionEnd,a=void 0===i?{}:i;o.transition;var u=(0,r._T)(o,["transitionEnd","transition"]);for(var l in u=(0,r.pi)((0,r.pi)({},u),a)){m(t,l,(0,s.Y)(u[l]))}}function y(t,e){(0,r.ev)([],(0,r.CR)(e),!1).reverse().forEach((function(n){var r,o=t.getVariant(n);o&&g(t,o),null===(r=t.variantChildren)||void 0===r||r.forEach((function(t){y(t,e)}))}))}function b(t,e){return Array.isArray(e)?y(t,e):"string"==typeof e?y(t,[e]):void g(t,e)}function x(t,e,n){var r,s,c,d,p=Object.keys(e).filter((function(e){return!t.hasValue(e)})),f=p.length;if(f)for(var h=0;h{"use strict";function r(t){return Array.isArray(t)}function o(t){return"string"==typeof t||r(t)}function i(t,e,n,r,o){var i;return void 0===r&&(r={}),void 0===o&&(o={}),"function"==typeof e&&(e=e(null!=n?n:t.custom,r,o)),"string"==typeof e&&(e=null===(i=t.variants)||void 0===i?void 0:i[e]),"function"==typeof e&&(e=e(null!=n?n:t.custom,r,o)),e}function a(t,e,n){var r=t.getProps();return i(r,e,null!=n?n:r.custom,function(t){var e={};return t.forEachValue((function(t,n){return e[n]=t.get()})),e}(t),function(t){var e={};return t.forEachValue((function(t,n){return e[n]=t.getVelocity()})),e}(t))}function s(t){var e;return"function"==typeof(null===(e=t.animate)||void 0===e?void 0:e.start)||o(t.initial)||o(t.animate)||o(t.whileHover)||o(t.whileDrag)||o(t.whileTap)||o(t.whileFocus)||o(t.exit)}function u(t){return Boolean(s(t)||t.variants)}n.d(e,{$L:()=>o,A0:()=>r,O6:()=>s,e8:()=>u,oQ:()=>i,x5:()=>a})},3303:(t,e,n)=>{"use strict";function r(t,e){-1===t.indexOf(e)&&t.push(e)}function o(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}n.d(e,{cl:()=>o,y4:()=>r})},1182:(t,e,n)=>{"use strict";n.d(e,{j:()=>r});var r="undefined"!=typeof document},411:(t,e,n)=>{"use strict";n.d(e,{Y:()=>i,p:()=>o});var r=n(2981),o=function(t){return Boolean(t&&"object"==typeof t&&t.mix&&t.toValue)},i=function(t){return(0,r.C)(t)?t[t.length-1]||0:t}},4097:(t,e,n)=>{"use strict";n.d(e,{L:()=>o});var r=n(3303),o=function(){function t(){this.subscriptions=[]}return t.prototype.add=function(t){var e=this;return(0,r.y4)(this.subscriptions,t),function(){return(0,r.cl)(e.subscriptions,t)}},t.prototype.notify=function(t,e,n){var r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](t,e,n);else for(var o=0;o{"use strict";n.d(e,{w:()=>r});var r=function(t){return 1e3*t}},1672:(t,e,n)=>{"use strict";n.d(e,{h:()=>o});var r=n(9901);function o(t){var e=(0,r.useRef)(null);return null===e.current&&(e.current=t()),e.current}},4258:(t,e,n)=>{"use strict";n.d(e,{L:()=>o});var r=n(9901),o=n(1182).j?r.useLayoutEffect:r.useEffect},5946:(t,e,n)=>{"use strict";n.d(e,{B:()=>s});var r=n(4810),o=n(7930),i=n(4097),a=function(){function t(t){var e,n=this;this.version="6.5.1",this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new i.L,this.velocityUpdateSubscribers=new i.L,this.renderSubscribers=new i.L,this.canTrackVelocity=!1,this.updateAndNotify=function(t,e){void 0===e&&(e=!0),n.prev=n.current,n.current=t;var o=(0,r.$B)(),i=o.delta,a=o.timestamp;n.lastUpdated!==a&&(n.timeDelta=i,n.lastUpdated=a,r.ZP.postRender(n.scheduleVelocityCheck)),n.prev!==n.current&&n.updateSubscribers.notify(n.current),n.velocityUpdateSubscribers.getSize()&&n.velocityUpdateSubscribers.notify(n.getVelocity()),e&&n.renderSubscribers.notify(n.current)},this.scheduleVelocityCheck=function(){return r.ZP.postRender(n.velocityCheck)},this.velocityCheck=function(t){t.timestamp!==n.lastUpdated&&(n.prev=n.current,n.velocityUpdateSubscribers.notify(n.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=(e=this.current,!isNaN(parseFloat(e)))}return t.prototype.onChange=function(t){return this.updateSubscribers.add(t)},t.prototype.clearListeners=function(){this.updateSubscribers.clear()},t.prototype.onRenderRequest=function(t){return t(this.get()),this.renderSubscribers.add(t)},t.prototype.attach=function(t){this.passiveEffect=t},t.prototype.set=function(t,e){void 0===e&&(e=!0),e&&this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t,e)},t.prototype.get=function(){return this.current},t.prototype.getPrevious=function(){return this.prev},t.prototype.getVelocity=function(){return this.canTrackVelocity?(0,o.R)(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0},t.prototype.start=function(t){var e=this;return this.stop(),new Promise((function(n){e.hasAnimated=!0,e.stopAnimation=t(n)})).then((function(){return e.clearAnimation()}))},t.prototype.stop=function(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()},t.prototype.isAnimating=function(){return!!this.stopAnimation},t.prototype.clearAnimation=function(){this.stopAnimation=null},t.prototype.destroy=function(){this.updateSubscribers.clear(),this.renderSubscribers.clear(),this.stop()},t}();function s(t){return new a(t)}},7487:(t,e,n)=>{"use strict";n.d(e,{v:()=>H});var r=n(3112);const o=new WeakMap;let i;function a({target:t,contentRect:e,borderBoxSize:n}){var r;null===(r=o.get(t))||void 0===r||r.forEach((r=>{r({target:t,contentSize:e,get size(){return function(t,e){if(e){const{inlineSize:t,blockSize:n}=e[0];return{width:t,height:n}}return t instanceof SVGElement&&"getBBox"in t?t.getBBox():{width:t.offsetWidth,height:t.offsetHeight}}(t,n)}})}))}function s(t){t.forEach(a)}function u(t,e){i||"undefined"!=typeof ResizeObserver&&(i=new ResizeObserver(s));const n=function(t,e){var n;return"string"==typeof t?e?(null!==(n=e[t])&&void 0!==n||(e[t]=document.querySelectorAll(t)),t=e[t]):t=document.querySelectorAll(t):t instanceof Element&&(t=[t]),Array.from(t||[])}(t);return n.forEach((t=>{let n=o.get(t);n||(n=new Set,o.set(t,n)),n.add(e),null==i||i.observe(t)})),()=>{n.forEach((t=>{const n=o.get(t);null==n||n.delete(e),(null==n?void 0:n.size)||null==i||i.unobserve(t)}))}}const l=new Set;let c;function d(t){return l.add(t),c||(c=()=>{const t={width:window.innerWidth,height:window.innerHeight},e={target:window,size:t,contentSize:t};l.forEach((t=>t(e)))},window.addEventListener("resize",c)),()=>{l.delete(t),!l.size&&c&&(c=void 0)}}const p=(t,e,n)=>e-t==0?1:(n-t)/(e-t);const f=50,v=()=>({time:0,x:{current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0},y:{current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}}),h={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function m(t,e,n,r){const o=n[e],{length:i,position:a}=h[e],s=o.current,u=n.time;o.current=t["scroll"+a],o.scrollLength=t["scroll"+i]-t["client"+i],o.offset.length=0,o.offset[0]=0,o.offset[1]=o.scrollLength,o.progress=p(0,o.scrollLength,o.current);const l=r-u;var c,d;o.velocity=l>f?0:(c=o.current-s,(d=l)?c*(1e3/d):0)}const g=t=>t,y=(t,e,n)=>-n*t+n*e+t;function b(t,e){const n=t[t.length-1];for(let r=1;r<=e;r++){const o=p(0,e,r);t.push(y(n,1,o))}}function x(t){const e=[0];return b(e,t-1),e}const w=t=>"number"==typeof t,S=t=>Array.isArray(t)&&!w(t[0]),E=(t,e,n)=>{const r=e-t;return((n-t)%r+r)%r+t};const C=(t,e,n)=>Math.min(Math.max(n,t),e);function T(t,e=x(t.length),n=g){const r=t.length,o=r-e.length;return o>0&&b(e,o),o=>{let i=0;for(;i"string"==typeof t,M={start:0,center:.5,end:1};function A(t,e,n=0){let r=0;if(void 0!==M[t]&&(t=M[t]),R(t)){const e=parseFloat(t);t.endsWith("px")?r=e:t.endsWith("%")?t=e/100:t.endsWith("vw")?r=e/100*document.documentElement.clientWidth:t.endsWith("vh")?r=e/100*document.documentElement.clientHeight:t=e}return w(t)&&(r=e*t),n+r}const V=[0,0];function k(t,e,n,r){let o=Array.isArray(t)?t:V,i=0,a=0;return w(t)?o=[t,t]:R(t)&&(o=(t=t.trim()).includes(" ")?t.split(" "):[t,M[t]?t:"0"]),i=A(o[0],n,r),a=A(o[1],e),i-a}const L={x:0,y:0};function Z(t,e,n){let{offset:r=P.All}=n;const{target:o=t,axis:i="y"}=n,a="y"===i?"height":"width",s=o!==t?function(t,e){let n={x:0,y:0},r=t;for(;r&&r!==e;)if(r instanceof HTMLElement)n.x+=r.offsetLeft,n.y+=r.offsetTop,r=r.offsetParent;else if(r instanceof SVGGraphicsElement&&"getBBox"in r){const{top:t,left:e}=r.getBBox();for(n.x+=e,n.y+=t;r&&"svg"!==r.tagName;)r=r.parentNode}return n}(o,t):L,u=o===t?{width:t.scrollWidth,height:t.scrollHeight}:{width:o.clientWidth,height:o.clientHeight},l={width:t.clientWidth,height:t.clientHeight};e[i].offset.length=0;let c=!e[i].interpolate;const d=r.length;for(let p=0;pfunction(t,e=t,n){if(n.x.targetOffset=0,n.y.targetOffset=0,e!==t){let r=e;for(;r&&r!=t;)n.x.targetOffset+=r.offsetLeft,n.y.targetOffset+=r.offsetTop,r=r.offsetParent}n.x.targetLength=e===t?e.scrollWidth:e.clientWidth,n.y.targetLength=e===t?e.scrollHeight:e.clientHeight,n.x.containerLength=t.clientWidth,n.y.containerLength=t.clientHeight}(t,r.target,n),update:e=>{!function(t,e,n){m(t,"x",e,n),m(t,"y",e,n),e.time=n}(t,n,e),(r.offset||r.target)&&Z(t,n,r)},notify:"function"==typeof e?()=>e(n):D(e,n[o])}}function D(t,e){return t.pause(),t.forEachNative(((t,{easing:e})=>{var n,r;if(t.updateDuration)e||(t.easing=g),t.updateDuration(1);else{const o={duration:1e3};e||(o.easing="linear"),null===(r=null===(n=t.effect)||void 0===n?void 0:n.updateTiming)||void 0===r||r.call(n,o)}})),()=>{t.currentTime=e.progress}}const O=new WeakMap,B=new WeakMap,I=new WeakMap,F=t=>t===document.documentElement?window:t;function z(t,e={}){var{container:n=document.documentElement}=e,o=(0,r._T)(e,["container"]);let i=I.get(n);i||(i=new Set,I.set(n,i));const a=v(),s=j(n,t,a,o);if(i.add(s),!O.has(n)){const t=()=>{const t=performance.now();for(const e of i)e.measure();for(const e of i)e.update(t);for(const e of i)e.notify()};O.set(n,t);const e=F(n);window.addEventListener("resize",t,{passive:!0}),n!==document.documentElement&&B.set(n,(c=t,"function"==typeof(l=n)?d(l):u(l,c))),e.addEventListener("scroll",t,{passive:!0})}var l,c;const p=O.get(n),f=requestAnimationFrame(p);return()=>{var e;"function"!=typeof t&&t.stop(),cancelAnimationFrame(f);const r=I.get(n);if(!r)return;if(r.delete(s),r.size)return;const o=O.get(n);O.delete(n),o&&(F(n).removeEventListener("scroll",o),null===(e=B.get(n))||void 0===e||e(),window.removeEventListener("resize",o))}}var N=n(5946),$=n(1672),U=n(4258),W=function(){return{scrollX:(0,N.B)(0),scrollY:(0,N.B)(0),scrollXProgress:(0,N.B)(0),scrollYProgress:(0,N.B)(0)}};function H(t){void 0===t&&(t={});var e=t.container,n=t.target,o=(0,r._T)(t,["container","target"]),i=(0,$.h)(W);return(0,U.L)((function(){return z((function(t){var e=t.x,n=t.y;i.scrollX.set(e.current),i.scrollXProgress.set(e.progress),i.scrollY.set(n.current),i.scrollYProgress.set(n.progress)}),(0,r.pi)((0,r.pi)({},o),{container:(null==e?void 0:e.current)||void 0,target:(null==n?void 0:n.current)||void 0}))}),[]),i}},4810:(t,e,n)=>{"use strict";n.d(e,{qY:()=>f,ZP:()=>b,iW:()=>v,$B:()=>y});const r=1/60*1e3,o="undefined"!=typeof performance?()=>performance.now():()=>Date.now(),i="undefined"!=typeof window?t=>window.requestAnimationFrame(t):t=>setTimeout((()=>t(o())),r);let a=!0,s=!1,u=!1;const l={delta:0,timestamp:0},c=["read","update","preRender","render","postRender"],d=c.reduce(((t,e)=>(t[e]=function(t){let e=[],n=[],r=0,o=!1,i=!1;const a=new WeakSet,s={schedule:(t,i=!1,s=!1)=>{const u=s&&o,l=u?e:n;return i&&a.add(t),-1===l.indexOf(t)&&(l.push(t),u&&o&&(r=e.length)),t},cancel:t=>{const e=n.indexOf(t);-1!==e&&n.splice(e,1),a.delete(t)},process:u=>{if(o)i=!0;else{if(o=!0,[e,n]=[n,e],n.length=0,r=e.length,r)for(let n=0;ns=!0)),t)),{}),p=c.reduce(((t,e)=>{const n=d[e];return t[e]=(t,e=!1,r=!1)=>(s||g(),n.schedule(t,e,r)),t}),{}),f=c.reduce(((t,e)=>(t[e]=d[e].cancel,t)),{}),v=c.reduce(((t,e)=>(t[e]=()=>d[e].process(l),t)),{}),h=t=>d[t].process(l),m=t=>{s=!1,l.delta=a?r:Math.max(Math.min(t-l.timestamp,40),1),l.timestamp=t,u=!0,c.forEach(h),u=!1,s&&(a=!1,i(m))},g=()=>{s=!0,a=!0,u||i(m)},y=()=>l,b=p},4439:(t,e,n)=>{"use strict";n.d(e,{LU:()=>g,G2:()=>v,XL:()=>m,CG:()=>h,h9:()=>b,yD:()=>x,gJ:()=>y,Z7:()=>d,X7:()=>f,Bn:()=>p,YQ:()=>s,mZ:()=>c,Vv:()=>l,GE:()=>a});const r=t=>e=>1-t(1-e),o=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,i=t=>e=>e*e*((t+1)*e-t),a=t=>t,s=(u=2,t=>Math.pow(t,u));var u;const l=r(s),c=o(s),d=t=>1-Math.sin(Math.acos(t)),p=r(d),f=o(p),v=i(1.525),h=r(v),m=o(v),g=(t=>{const e=i(t);return t=>(t*=2)<1?.5*e(t):.5*(2-Math.pow(2,-10*(t-1)))})(1.525),y=t=>{if(1===t||0===t)return t;const e=t*t;return t<.36363636363636365?7.5625*e:t<.7272727272727273?9.075*e-9.9*t+3.4:t<.9?12.066481994459833*e-19.63545706371191*t+8.898060941828255:10.8*t*t-20.52*t+10.72},b=r(y),x=t=>t<.5?.5*(1-y(1-2*t)):.5*y(2*t-1)+.5},7641:(t,e,n)=>{"use strict";n.d(e,{u:()=>r});const r=(t,e,n)=>Math.min(Math.max(n,t),e)},2336:(t,e,n)=>{"use strict";n.d(e,{e:()=>r});const r=t=>"number"==typeof t},8539:(t,e,n)=>{"use strict";n.d(e,{C:()=>r});const r=(t,e,n)=>-n*t+n*e+t},700:(t,e,n)=>{"use strict";n.d(e,{z:()=>o});const r=(t,e)=>n=>e(t(n)),o=(...t)=>t.reduce(r)},6408:(t,e,n)=>{"use strict";n.d(e,{Y:()=>r});const r=(t,e,n)=>{const r=e-t;return 0===r?1:(n-t)/r}},7930:(t,e,n)=>{"use strict";function r(t,e){return e?t*(1e3/e):0}n.d(e,{R:()=>r})},4732:(t,e,n)=>{"use strict";n.d(e,{$:()=>o});var r=n(2491);const o={test:(0,n(6781).i)("#"),parse:function(t){let e="",n="",r="",o="";return t.length>5?(e=t.substr(1,2),n=t.substr(3,2),r=t.substr(5,2),o=t.substr(7,2)):(e=t.substr(1,1),n=t.substr(2,1),r=t.substr(3,1),o=t.substr(4,1),e+=e,n+=n,r+=r,o+=o),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}},transform:r.m.transform}},9491:(t,e,n)=>{"use strict";n.d(e,{J:()=>s});var r=n(6849),o=n(321),i=n(8676),a=n(6781);const s={test:(0,a.i)("hsl","hue"),parse:(0,a.d)("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:a=1})=>"hsla("+Math.round(t)+", "+o.aQ.transform((0,i.Nw)(e))+", "+o.aQ.transform((0,i.Nw)(n))+", "+(0,i.Nw)(r.Fq.transform(a))+")"}},8851:(t,e,n)=>{"use strict";n.d(e,{$:()=>s});var r=n(8676),o=n(4732),i=n(9491),a=n(2491);const s={test:t=>a.m.test(t)||o.$.test(t)||i.J.test(t),parse:t=>a.m.test(t)?a.m.parse(t):i.J.test(t)?i.J.parse(t):o.$.parse(t),transform:t=>(0,r.HD)(t)?t:t.hasOwnProperty("red")?a.m.transform(t):i.J.transform(t)}},2491:(t,e,n)=>{"use strict";n.d(e,{m:()=>u});var r=n(6849),o=n(8676),i=n(6781);const a=(0,o.uZ)(0,255),s=Object.assign(Object.assign({},r.Rx),{transform:t=>Math.round(a(t))}),u={test:(0,i.i)("rgb","red"),parse:(0,i.d)("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:i=1})=>"rgba("+s.transform(t)+", "+s.transform(e)+", "+s.transform(n)+", "+(0,o.Nw)(r.Fq.transform(i))+")"}},6781:(t,e,n)=>{"use strict";n.d(e,{d:()=>i,i:()=>o});var r=n(8676);const o=(t,e)=>n=>Boolean((0,r.HD)(n)&&r.mj.test(n)&&n.startsWith(t)||e&&Object.prototype.hasOwnProperty.call(n,e)),i=(t,e,n)=>o=>{if(!(0,r.HD)(o))return o;const[i,a,s,u]=o.match(r.KP);return{[t]:parseFloat(i),[e]:parseFloat(a),[n]:parseFloat(s),alpha:void 0!==u?parseFloat(u):1}}},765:(t,e,n)=>{"use strict";n.d(e,{h:()=>u});var r=n(999),o=n(8676);const i=new Set(["brightness","contrast","saturate","opacity"]);function a(t){let[e,n]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;const[r]=n.match(o.KP)||[];if(!r)return t;const a=n.replace(r,"");let s=i.has(e)?1:0;return r!==n&&(s*=100),e+"("+s+a+")"}const s=/([a-z-]*)\(.*?\)/g,u=Object.assign(Object.assign({},r.P),{getAnimatableNone:t=>{const e=t.match(s);return e?e.map(a).join(" "):t}})},999:(t,e,n)=>{"use strict";n.d(e,{P:()=>p});var r=n(8851),o=n(6849),i=n(8676);const a="${c}",s="${n}";function u(t){"number"==typeof t&&(t=`${t}`);const e=[];let n=0;const u=t.match(i.dA);u&&(n=u.length,t=t.replace(i.dA,a),e.push(...u.map(r.$.parse)));const l=t.match(i.KP);return l&&(t=t.replace(i.KP,s),e.push(...l.map(o.Rx.parse))),{values:e,numColors:n,tokenised:t}}function l(t){return u(t).values}function c(t){const{values:e,numColors:n,tokenised:o}=u(t),l=e.length;return t=>{let e=o;for(let o=0;o"number"==typeof t?0:t;const p={test:function(t){var e,n,r,o;return isNaN(t)&&(0,i.HD)(t)&&(null!==(n=null===(e=t.match(i.KP))||void 0===e?void 0:e.length)&&void 0!==n?n:0)+(null!==(o=null===(r=t.match(i.dA))||void 0===r?void 0:r.length)&&void 0!==o?o:0)>0},parse:l,createTransformer:c,getAnimatableNone:function(t){const e=l(t);return c(t)(e.map(d))}}},6849:(t,e,n)=>{"use strict";n.d(e,{Fq:()=>i,Rx:()=>o,bA:()=>a});var r=n(8676);const o={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},i=Object.assign(Object.assign({},o),{transform:(0,r.uZ)(0,1)}),a=Object.assign(Object.assign({},o),{default:1})},321:(t,e,n)=>{"use strict";n.d(e,{$C:()=>c,RW:()=>i,aQ:()=>a,px:()=>s,vh:()=>u,vw:()=>l});var r=n(8676);const o=t=>({test:e=>(0,r.HD)(e)&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),i=o("deg"),a=o("%"),s=o("px"),u=o("vh"),l=o("vw"),c=Object.assign(Object.assign({},a),{parse:t=>a.parse(t)/100,transform:t=>a.transform(100*t)})},8676:(t,e,n)=>{"use strict";n.d(e,{HD:()=>u,KP:()=>i,Nw:()=>o,dA:()=>a,mj:()=>s,uZ:()=>r});const r=(t,e)=>n=>Math.max(Math.min(n,e),t),o=t=>t%1?Number(t.toFixed(5)):t,i=/(-)?([\d]*\.?[\d])+/g,a=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))/gi,s=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i;function u(t){return"string"==typeof t}},3112:(t,e,n)=>{"use strict";n.d(e,{CR:()=>s,ZT:()=>o,_T:()=>a,ev:()=>u,pi:()=>i});var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)};function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var i=function(){return i=Object.assign||function(t){for(var e,n=1,r=arguments.length;n0)&&!(r=i.next()).done;)a.push(r.value)}catch(s){o={error:s}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function u(t,e,n){if(n||2===arguments.length)for(var r,o=0,i=e.length;o{r.d(t,{Zo:()=>c,kt:()=>d});var n=r(9901);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function p(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var i=n.createContext({}),u=function(e){var t=n.useContext(i),r=t;return e&&(r="function"==typeof e?e(t):p(p({},t),e)),r},c=function(e){var t=u(e.components);return n.createElement(i.Provider,{value:t},e.children)},m="mdxType",s={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},f=n.forwardRef((function(e,t){var r=e.components,o=e.mdxType,a=e.originalType,i=e.parentName,c=l(e,["components","mdxType","originalType","parentName"]),m=u(r),f=o,d=m["".concat(i,".").concat(f)]||m[f]||s[f]||a;return r?n.createElement(d,p(p({ref:t},c),{},{components:r})):n.createElement(d,p({ref:t},c))}));function d(e,t){var r=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var a=r.length,p=new Array(a);p[0]=f;var l={};for(var i in t)hasOwnProperty.call(t,i)&&(l[i]=t[i]);l.originalType=e,l[m]="string"==typeof e?e:o,p[1]=l;for(var u=2;u{r.r(t),r.d(t,{assets:()=>c,contentTitle:()=>i,default:()=>d,frontMatter:()=>l,metadata:()=>u,toc:()=>m});var n=r(3341),o=r(1792),a=(r(9901),r(7522)),p=["components"],l={hide_table_of_contents:!0},i="morph",u={unversionedId:"api/morph",id:"api/morph",title:"morph",description:"operator",source:"@site/docs/api/morph.md",sourceDirName:"api",slug:"/api/morph",permalink:"/docs/next/api/morph",draft:!1,tags:[],version:"current",frontMatter:{hide_table_of_contents:!0}},c={},m=[{value:"operator",id:"operator",level:2},{value:"tuple",id:"tuple",level:2},{value:"helper",id:"helper",level:2}],s={toc:m},f="wrapper";function d(e){var t=e.components,r=(0,o.Z)(e,p);return(0,a.kt)(f,(0,n.Z)({},s,r,{components:t,mdxType:"MDXLayout"}),(0,a.kt)("h1",{id:"morph"},"morph"),(0,a.kt)("h2",{id:"operator"},"operator"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},(0,a.kt)("a",{parentName:"li",href:"/docs/next/api/morph"},"|",">"))),(0,a.kt)("h2",{id:"tuple"},"tuple"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},'[inputType, "',"|",'>", (data) => output]'," ",(0,a.kt)("br",null)),(0,a.kt)("li",{parentName:"ul"},"const tupleMorph = type( ",'["string", "',"|",'>" , (data) => ',"`","morphed ${data}","`]",")",(0,a.kt)("br",null))),(0,a.kt)("h2",{id:"helper"},"helper"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},"morph(inputType, (data) => output) ",(0,a.kt)("br",null)),(0,a.kt)("li",{parentName:"ul"},'const helperMorph = morph("string", (data) => ',"`","morphed ${data}","`",")",(0,a.kt)("br",null))))}d.isMDXComponent=!0}}]); \ No newline at end of file +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[9184],{7522:(e,t,r)=>{r.d(t,{Zo:()=>c,kt:()=>d});var n=r(9901);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function p(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var i=n.createContext({}),u=function(e){var t=n.useContext(i),r=t;return e&&(r="function"==typeof e?e(t):p(p({},t),e)),r},c=function(e){var t=u(e.components);return n.createElement(i.Provider,{value:t},e.children)},m="mdxType",s={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},f=n.forwardRef((function(e,t){var r=e.components,o=e.mdxType,a=e.originalType,i=e.parentName,c=l(e,["components","mdxType","originalType","parentName"]),m=u(r),f=o,d=m["".concat(i,".").concat(f)]||m[f]||s[f]||a;return r?n.createElement(d,p(p({ref:t},c),{},{components:r})):n.createElement(d,p({ref:t},c))}));function d(e,t){var r=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var a=r.length,p=new Array(a);p[0]=f;var l={};for(var i in t)hasOwnProperty.call(t,i)&&(l[i]=t[i]);l.originalType=e,l[m]="string"==typeof e?e:o,p[1]=l;for(var u=2;u{r.r(t),r.d(t,{assets:()=>c,contentTitle:()=>i,default:()=>d,frontMatter:()=>l,metadata:()=>u,toc:()=>m});var n=r(4805),o=r(8),a=(r(9901),r(7522)),p=["components"],l={hide_table_of_contents:!0},i="morph",u={unversionedId:"api/morph",id:"api/morph",title:"morph",description:"operator",source:"@site/docs/api/morph.md",sourceDirName:"api",slug:"/api/morph",permalink:"/docs/next/api/morph",draft:!1,tags:[],version:"current",frontMatter:{hide_table_of_contents:!0}},c={},m=[{value:"operator",id:"operator",level:2},{value:"tuple",id:"tuple",level:2},{value:"helper",id:"helper",level:2}],s={toc:m},f="wrapper";function d(e){var t=e.components,r=(0,o.Z)(e,p);return(0,a.kt)(f,(0,n.Z)({},s,r,{components:t,mdxType:"MDXLayout"}),(0,a.kt)("h1",{id:"morph"},"morph"),(0,a.kt)("h2",{id:"operator"},"operator"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},(0,a.kt)("a",{parentName:"li",href:"/docs/next/api/morph"},"|",">"))),(0,a.kt)("h2",{id:"tuple"},"tuple"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},'[inputType, "',"|",'>", (data) => output]'," ",(0,a.kt)("br",null)),(0,a.kt)("li",{parentName:"ul"},"const tupleMorph = type( ",'["string", "',"|",'>" , (data) => ',"`","morphed ${data}","`]",")",(0,a.kt)("br",null))),(0,a.kt)("h2",{id:"helper"},"helper"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},"morph(inputType, (data) => output) ",(0,a.kt)("br",null)),(0,a.kt)("li",{parentName:"ul"},'const helperMorph = morph("string", (data) => ',"`","morphed ${data}","`",")",(0,a.kt)("br",null))))}d.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/5193.2055b890.js b/assets/js/5193.2055b890.js deleted file mode 100644 index 3fd9651454..0000000000 --- a/assets/js/5193.2055b890.js +++ /dev/null @@ -1,55 +0,0 @@ -/*! For license information please see 5193.2055b890.js.LICENSE.txt */ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[5193],{9361:(e,t,r)=>{r.d(t,{Z:()=>oe});var n=function(){function e(e){var t=this;this._insertTag=function(e){var r;r=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,r),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var r=function(e){if(e.sheet)return e.sheet;for(var t=0;t0?u(w,--v):0,g--,10===b&&(g=1,m--),b}function _(){return b=v2||A(b)>3?"":" "}function T(e,t){for(;--t&&_()&&!(b<48||b>102||b>57&&b<65||b>70&&b<97););return O(e,P()+(t<6&&32==S()&&32==_()))}function I(e){for(;_();)switch(b){case e:return v;case 34:case 39:34!==e&&39!==e&&I(b);break;case 40:41===e&&I(e);break;case 92:_()}return v}function L(e,t){for(;_()&&e+b!==57&&(e+b!==84||47!==S()););return"/*"+O(t,v-1)+"*"+i(47===e?e:_())}function R(e){for(;!A(S());)_();return O(e,v)}var M="-ms-",N="-moz-",B="-webkit-",F="comm",K="rule",W="decl",z="@keyframes";function D(e,t){for(var r="",n=p(e),o=0;o0&&f(N)-y&&h(b>32?X(N+";",n,r,y-1):X(c(N," ","")+";",n,r,y-2),p);break;case 59:N+=";";default:if(h(M=U(N,t,r,m,g,o,d,E,C=[],I=[],y),a),123===A)if(0===g)H(N,t,M,M,C,a,y,d,I);else switch(99===v&&110===u(N,3)?100:v){case 100:case 108:case 109:case 115:H(e,M,M,n&&h(U(e,M,M,0,0,o,d,E,o,C=[],y),I),o,I,y,d,n?C:I);break;default:H(N,M,M,M,[""],I,0,d,I)}}m=g=b=0,k=O=1,E=N="",y=s;break;case 58:y=1+f(N),b=w;default:if(k<1)if(123==A)--k;else if(125==A&&0==k++&&125==Z())continue;switch(N+=i(A),A*k){case 38:O=g>0?1:(N+="\f",-1);break;case 44:d[m++]=(f(N)-1)*O,O=1;break;case 64:45===S()&&(N+=j(_())),v=S(),g=y=f(E=N+=R(P())),A++;break;case 45:45===w&&2==f(N)&&(k=0)}}return a}function U(e,t,r,n,i,a,l,u,f,h,m){for(var g=i-1,y=0===i?a:[""],v=p(y),b=0,w=0,x=0;b0?y[Z]+" "+_:c(_,/&\f/g,y[Z])))&&(f[x++]=S);return k(e,t,r,0===i?K:u,f,h,m)}function V(e,t,r){return k(e,t,r,F,i(b),d(e,2,-2),0)}function X(e,t,r,n){return k(e,t,r,W,d(e,0,n),d(e,n+1,-1),n)}var Y=function(e,t,r){for(var n=0,o=0;n=o,o=S(),38===n&&12===o&&(t[r]=1),!A(o);)_();return O(e,v)},J=function(e,t){return C(function(e,t){var r=-1,n=44;do{switch(A(n)){case 0:38===n&&12===S()&&(t[r]=1),e[r]+=Y(v-1,t,r);break;case 2:e[r]+=j(n);break;case 4:if(44===n){e[++r]=58===S()?"&\f":"",t[r]=e[r].length;break}default:e[r]+=i(n)}}while(n=_());return e}(E(e),t))},Q=new WeakMap,ee=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,r=e.parent,n=e.column===r.column&&e.line===r.line;"rule"!==r.type;)if(!(r=r.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||Q.get(r))&&!n){Q.set(e,!0);for(var o=[],i=J(t,o),a=r.props,s=0,c=0;s6)switch(u(e,t+1)){case 109:if(45!==u(e,t+4))break;case 102:return c(e,/(.+:)(.+)-([^]+)/,"$1"+B+"$2-$3$1"+N+(108==u(e,t+3)?"$3":"$2-$3"))+e;case 115:return~l(e,"stretch")?re(c(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==u(e,t+1))break;case 6444:switch(u(e,f(e)-3-(~l(e,"!important")&&10))){case 107:return c(e,":",":"+B)+e;case 101:return c(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+B+(45===u(e,14)?"inline-":"")+"box$3$1"+B+"$2$3$1"+M+"$2box$3")+e}break;case 5936:switch(u(e,t+11)){case 114:return B+e+M+c(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return B+e+M+c(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return B+e+M+c(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return B+e+M+e+e}return e}var ne=[function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case W:e.return=re(e.value,e.length);break;case z:return D([x(e,{value:c(e.value,"@","@"+B)})],n);case K:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return D([x(e,{props:[c(t,/:(read-\w+)/,":-moz-$1")]})],n);case"::placeholder":return D([x(e,{props:[c(t,/:(plac\w+)/,":"+B+"input-$1")]}),x(e,{props:[c(t,/:(plac\w+)/,":-moz-$1")]}),x(e,{props:[c(t,/:(plac\w+)/,M+"input-$1")]})],n)}return""}))}}],oe=function(e){var t=e.key;if("css"===t){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var o=e.stylisPlugins||ne;var i,a,s={},c=[];i=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),r=1;r{function n(e){var t=Object.create(null);return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}r.d(t,{Z:()=>n})},4221:(e,t,r)=>{r.d(t,{T:()=>s,w:()=>a});var n=r(9901),o=r(9361),i=(r(2623),r(9653),(0,n.createContext)("undefined"!=typeof HTMLElement?(0,o.Z)({key:"css"}):null));i.Provider;var a=function(e){return(0,n.forwardRef)((function(t,r){var o=(0,n.useContext)(i);return e(t,o,r)}))},s=(0,n.createContext)({})},2297:(e,t,r)=>{r.d(t,{F4:()=>i,iv:()=>o});r(9901),r(9361),r(63);var n=r(2623);r(9653);function o(){for(var e=arguments.length,t=new Array(e),r=0;r{r.d(t,{O:()=>h});var n={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},o=r(6119),i=/[A-Z]|^ms/g,a=/_EMO_([^_]+?)_([^]*?)_EMO_/g,s=function(e){return 45===e.charCodeAt(1)},c=function(e){return null!=e&&"boolean"!=typeof e},l=(0,o.Z)((function(e){return s(e)?e:e.replace(i,"-$&").toLowerCase()})),u=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(a,(function(e,t,r){return f={name:t,styles:r,next:f},t}))}return 1===n[e]||s(e)||"number"!=typeof t||0===t?t:t+"px"};function d(e,t,r){if(null==r)return"";if(void 0!==r.__emotion_styles)return r;switch(typeof r){case"boolean":return"";case"object":if(1===r.anim)return f={name:r.name,styles:r.styles,next:f},r.name;if(void 0!==r.styles){var n=r.next;if(void 0!==n)for(;void 0!==n;)f={name:n.name,styles:n.styles,next:f},n=n.next;return r.styles+";"}return function(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o=4;++n,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))+(59797*(t>>>16)<<16),r=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&r)+(59797*(r>>>16)<<16);switch(o){case 3:r^=(255&e.charCodeAt(n+2))<<16;case 2:r^=(255&e.charCodeAt(n+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(n)))+(59797*(r>>>16)<<16)}return(((r=1540483477*(65535&(r^=r>>>13))+(59797*(r>>>16)<<16))^r>>>15)>>>0).toString(36)}(o)+c;return{name:l,styles:o,next:f}}},9653:(e,t,r)=>{var n;r.d(t,{L:()=>a});var o=r(9901),i=!!(n||(n=r.t(o,2))).useInsertionEffect&&(n||(n=r.t(o,2))).useInsertionEffect,a=i||function(e){return e()};i||o.useLayoutEffect},966:(e,t,r)=>{r.d(t,{Z:()=>I});var n=r(1792),o=r(3341),i=r(9901),a=r(4517),s=r(6202),c=r(2297),l=r(4411),u=r(3424),d=r(8584),f=r(9659),p=r(1350),h=r(9925),m=r(3159);function g(e){return(0,m.Z)("MuiLinearProgress",e)}(0,h.Z)("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);var y=r(1250);const v=["className","color","value","valueBuffer","variant"];let b,w,k,x,Z,_,S=e=>e;const P=(0,c.F4)(b||(b=S` - 0% { - left: -35%; - right: 100%; - } - - 60% { - left: 100%; - right: -90%; - } - - 100% { - left: 100%; - right: -90%; - } -`)),O=(0,c.F4)(w||(w=S` - 0% { - left: -200%; - right: 100%; - } - - 60% { - left: 107%; - right: -8%; - } - - 100% { - left: 107%; - right: -8%; - } -`)),A=(0,c.F4)(k||(k=S` - 0% { - opacity: 1; - background-position: 0 -23px; - } - - 60% { - opacity: 0; - background-position: 0 -23px; - } - - 100% { - opacity: 1; - background-position: -200px -23px; - } -`)),E=(e,t)=>"inherit"===t?"currentColor":e.vars?e.vars.palette.LinearProgress[`${t}Bg`]:"light"===e.palette.mode?(0,l.$n)(e.palette[t].main,.62):(0,l._j)(e.palette[t].main,.5),C=(0,f.ZP)("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`color${(0,u.Z)(r.color)}`],t[r.variant]]}})((({ownerState:e,theme:t})=>(0,o.Z)({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},backgroundColor:E(t,e.color)},"inherit"===e.color&&"buffer"!==e.variant&&{backgroundColor:"none","&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:.3}},"buffer"===e.variant&&{backgroundColor:"transparent"},"query"===e.variant&&{transform:"rotate(180deg)"}))),j=(0,f.ZP)("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.dashed,t[`dashedColor${(0,u.Z)(r.color)}`]]}})((({ownerState:e,theme:t})=>{const r=E(t,e.color);return(0,o.Z)({position:"absolute",marginTop:0,height:"100%",width:"100%"},"inherit"===e.color&&{opacity:.3},{backgroundImage:`radial-gradient(${r} 0%, ${r} 16%, transparent 42%)`,backgroundSize:"10px 10px",backgroundPosition:"0 -23px"})}),(0,c.iv)(x||(x=S` - animation: ${0} 3s infinite linear; - `),A)),$=(0,f.ZP)("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.bar,t[`barColor${(0,u.Z)(r.color)}`],("indeterminate"===r.variant||"query"===r.variant)&&t.bar1Indeterminate,"determinate"===r.variant&&t.bar1Determinate,"buffer"===r.variant&&t.bar1Buffer]}})((({ownerState:e,theme:t})=>(0,o.Z)({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",backgroundColor:"inherit"===e.color?"currentColor":(t.vars||t).palette[e.color].main},"determinate"===e.variant&&{transition:"transform .4s linear"},"buffer"===e.variant&&{zIndex:1,transition:"transform .4s linear"})),(({ownerState:e})=>("indeterminate"===e.variant||"query"===e.variant)&&(0,c.iv)(Z||(Z=S` - width: auto; - animation: ${0} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite; - `),P))),T=(0,f.ZP)("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.bar,t[`barColor${(0,u.Z)(r.color)}`],("indeterminate"===r.variant||"query"===r.variant)&&t.bar2Indeterminate,"buffer"===r.variant&&t.bar2Buffer]}})((({ownerState:e,theme:t})=>(0,o.Z)({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left"},"buffer"!==e.variant&&{backgroundColor:"inherit"===e.color?"currentColor":(t.vars||t).palette[e.color].main},"inherit"===e.color&&{opacity:.3},"buffer"===e.variant&&{backgroundColor:E(t,e.color),transition:"transform .4s linear"})),(({ownerState:e})=>("indeterminate"===e.variant||"query"===e.variant)&&(0,c.iv)(_||(_=S` - width: auto; - animation: ${0} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite; - `),O))),I=i.forwardRef((function(e,t){const r=(0,p.Z)({props:e,name:"MuiLinearProgress"}),{className:i,color:c="primary",value:l,valueBuffer:f,variant:h="indeterminate"}=r,m=(0,n.Z)(r,v),b=(0,o.Z)({},r,{color:c,variant:h}),w=(e=>{const{classes:t,variant:r,color:n}=e,o={root:["root",`color${(0,u.Z)(n)}`,r],dashed:["dashed",`dashedColor${(0,u.Z)(n)}`],bar1:["bar",`barColor${(0,u.Z)(n)}`,("indeterminate"===r||"query"===r)&&"bar1Indeterminate","determinate"===r&&"bar1Determinate","buffer"===r&&"bar1Buffer"],bar2:["bar","buffer"!==r&&`barColor${(0,u.Z)(n)}`,"buffer"===r&&`color${(0,u.Z)(n)}`,("indeterminate"===r||"query"===r)&&"bar2Indeterminate","buffer"===r&&"bar2Buffer"]};return(0,s.Z)(o,g,t)})(b),k=(0,d.Z)(),x={},Z={bar1:{},bar2:{}};if("determinate"===h||"buffer"===h)if(void 0!==l){x["aria-valuenow"]=Math.round(l),x["aria-valuemin"]=0,x["aria-valuemax"]=100;let e=l-100;"rtl"===k.direction&&(e=-e),Z.bar1.transform=`translateX(${e}%)`}else 0;if("buffer"===h)if(void 0!==f){let e=(f||0)-100;"rtl"===k.direction&&(e=-e),Z.bar2.transform=`translateX(${e}%)`}else 0;return(0,y.jsxs)(C,(0,o.Z)({className:(0,a.Z)(w.root,i),ownerState:b,role:"progressbar"},x,{ref:t},m,{children:["buffer"===h?(0,y.jsx)(j,{className:w.dashed,ownerState:b}):null,(0,y.jsx)($,{className:w.bar1,ownerState:b,style:Z.bar1}),"determinate"===h?null:(0,y.jsx)(T,{className:w.bar2,ownerState:b,style:Z.bar2})]}))}))},3800:(e,t,r)=>{r.d(t,{Z:()=>g});var n=r(1792),o=r(3341),i=r(9901),a=r(1894),s=r(3934),c=r(5070),l=r(9321),u=r(9659),d=r(1350),f=r(1250);const p=["component","direction","spacing","divider","children"];function h(e,t){const r=i.Children.toArray(e).filter(Boolean);return r.reduce(((e,n,o)=>(e.push(n),o[t.root]})((({ownerState:e,theme:t})=>{let r=(0,o.Z)({display:"flex",flexDirection:"column"},(0,a.k9)({theme:t},(0,a.P$)({values:e.direction,breakpoints:t.breakpoints.values}),(e=>({flexDirection:e}))));if(e.spacing){const n=(0,s.hB)(t),o=Object.keys(t.breakpoints.values).reduce(((t,r)=>(("object"==typeof e.spacing&&null!=e.spacing[r]||"object"==typeof e.direction&&null!=e.direction[r])&&(t[r]=!0),t)),{}),i=(0,a.P$)({values:e.direction,base:o}),c=(0,a.P$)({values:e.spacing,base:o});"object"==typeof i&&Object.keys(i).forEach(((e,t,r)=>{if(!i[e]){const n=t>0?i[r[t-1]]:"column";i[e]=n}}));const u=(t,r)=>{return{"& > :not(style) + :not(style)":{margin:0,[`margin${o=r?i[r]:e.direction,{row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"}[o]}`]:(0,s.NA)(n,t)}};var o};r=(0,l.Z)(r,(0,a.k9)({theme:t},c,u))}return r=(0,a.dt)(t.breakpoints,r),r})),g=i.forwardRef((function(e,t){const r=(0,d.Z)({props:e,name:"MuiStack"}),i=(0,c.Z)(r),{component:a="div",direction:s="column",spacing:l=0,divider:u,children:g}=i,y=(0,n.Z)(i,p),v={direction:s,spacing:l};return(0,f.jsx)(m,(0,o.Z)({as:a,ownerState:v,ref:t},y,{children:u?h(g,u):g}))}))},9069:(e,t,r)=>{r.d(t,{Z:()=>B});var n=r(3341),o=r(1792),i=r(4036),a=r(9321),s=r(7538),c=r(9565),l=r(6255);var u=r(4411);const d={black:"#000",white:"#fff"},f={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},p={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},h={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},m={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},g={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},y={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},v={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},b=["mode","contrastThreshold","tonalOffset"],w={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:d.white,default:d.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},k={text:{primary:d.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:d.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function x(e,t,r,n){const o=n.light||n,i=n.dark||1.5*n;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:"light"===t?e.light=(0,u.$n)(e.main,o):"dark"===t&&(e.dark=(0,u._j)(e.main,i)))}function Z(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:s=.2}=e,c=(0,o.Z)(e,b),l=e.primary||function(e="light"){return"dark"===e?{main:g[200],light:g[50],dark:g[400]}:{main:g[700],light:g[400],dark:g[800]}}(t),Z=e.secondary||function(e="light"){return"dark"===e?{main:p[200],light:p[50],dark:p[400]}:{main:p[500],light:p[300],dark:p[700]}}(t),_=e.error||function(e="light"){return"dark"===e?{main:h[500],light:h[300],dark:h[700]}:{main:h[700],light:h[400],dark:h[800]}}(t),S=e.info||function(e="light"){return"dark"===e?{main:y[400],light:y[300],dark:y[700]}:{main:y[700],light:y[500],dark:y[900]}}(t),P=e.success||function(e="light"){return"dark"===e?{main:v[400],light:v[300],dark:v[700]}:{main:v[800],light:v[500],dark:v[900]}}(t),O=e.warning||function(e="light"){return"dark"===e?{main:m[400],light:m[300],dark:m[700]}:{main:"#ed6c02",light:m[500],dark:m[900]}}(t);function A(e){return(0,u.mi)(e,k.text.primary)>=r?k.text.primary:w.text.primary}const E=({color:e,name:t,mainShade:r=500,lightShade:o=300,darkShade:a=700})=>{if(!(e=(0,n.Z)({},e)).main&&e[r]&&(e.main=e[r]),!e.hasOwnProperty("main"))throw new Error((0,i.Z)(11,t?` (${t})`:"",r));if("string"!=typeof e.main)throw new Error((0,i.Z)(12,t?` (${t})`:"",JSON.stringify(e.main)));return x(e,"light",o,s),x(e,"dark",a,s),e.contrastText||(e.contrastText=A(e.main)),e},C={dark:k,light:w};return(0,a.Z)((0,n.Z)({common:(0,n.Z)({},d),mode:t,primary:E({color:l,name:"primary"}),secondary:E({color:Z,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:E({color:_,name:"error"}),warning:E({color:O,name:"warning"}),info:E({color:S,name:"info"}),success:E({color:P,name:"success"}),grey:f,contrastThreshold:r,getContrastText:A,augmentColor:E,tonalOffset:s},C[t]),c)}const _=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const S={textTransform:"uppercase"},P='"Roboto", "Helvetica", "Arial", sans-serif';function O(e,t){const r="function"==typeof t?t(e):t,{fontFamily:i=P,fontSize:s=14,fontWeightLight:c=300,fontWeightRegular:l=400,fontWeightMedium:u=500,fontWeightBold:d=700,htmlFontSize:f=16,allVariants:p,pxToRem:h}=r,m=(0,o.Z)(r,_);const g=s/14,y=h||(e=>e/f*g+"rem"),v=(e,t,r,o,a)=>{return(0,n.Z)({fontFamily:i,fontWeight:e,fontSize:y(t),lineHeight:r},i===P?{letterSpacing:(s=o/t,Math.round(1e5*s)/1e5)+"em"}:{},a,p);var s},b={h1:v(c,96,1.167,-1.5),h2:v(c,60,1.2,-.5),h3:v(l,48,1.167,0),h4:v(l,34,1.235,.25),h5:v(l,24,1.334,0),h6:v(u,20,1.6,.15),subtitle1:v(l,16,1.75,.15),subtitle2:v(u,14,1.57,.1),body1:v(l,16,1.5,.15),body2:v(l,14,1.43,.15),button:v(u,14,1.75,.4,S),caption:v(l,12,1.66,.4),overline:v(l,12,2.66,1,S)};return(0,a.Z)((0,n.Z)({htmlFontSize:f,pxToRem:y,fontFamily:i,fontSize:s,fontWeightLight:c,fontWeightRegular:l,fontWeightMedium:u,fontWeightBold:d},b),m,{clone:!1})}function A(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}const E=["none",A(0,2,1,-1,0,1,1,0,0,1,3,0),A(0,3,1,-2,0,2,2,0,0,1,5,0),A(0,3,3,-2,0,3,4,0,0,1,8,0),A(0,2,4,-1,0,4,5,0,0,1,10,0),A(0,3,5,-1,0,5,8,0,0,1,14,0),A(0,3,5,-1,0,6,10,0,0,1,18,0),A(0,4,5,-2,0,7,10,1,0,2,16,1),A(0,5,5,-3,0,8,10,1,0,3,14,2),A(0,5,6,-3,0,9,12,1,0,3,16,2),A(0,6,6,-3,0,10,14,1,0,4,18,3),A(0,6,7,-4,0,11,15,1,0,4,20,3),A(0,7,8,-4,0,12,17,2,0,5,22,4),A(0,7,8,-4,0,13,19,2,0,5,24,4),A(0,7,9,-4,0,14,21,2,0,5,26,4),A(0,8,9,-5,0,15,22,2,0,6,28,5),A(0,8,10,-5,0,16,24,2,0,6,30,5),A(0,8,11,-5,0,17,26,2,0,6,32,5),A(0,9,11,-5,0,18,28,2,0,7,34,6),A(0,9,12,-6,0,19,29,2,0,7,36,6),A(0,10,13,-6,0,20,31,3,0,8,38,7),A(0,10,13,-6,0,21,33,3,0,8,40,7),A(0,10,14,-6,0,22,35,3,0,8,42,7),A(0,11,14,-7,0,23,36,3,0,9,44,8),A(0,11,15,-7,0,24,38,3,0,9,46,8)],C=["duration","easing","delay"],j={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},$={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function T(e){return`${Math.round(e)}ms`}function I(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function L(e){const t=(0,n.Z)({},j,e.easing),r=(0,n.Z)({},$,e.duration);return(0,n.Z)({getAutoHeightDuration:I,create:(e=["all"],n={})=>{const{duration:i=r.standard,easing:a=t.easeInOut,delay:s=0}=n;(0,o.Z)(n,C);return(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof i?i:T(i)} ${a} ${"string"==typeof s?s:T(s)}`)).join(",")}},e,{easing:t,duration:r})}const R={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},M=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function N(e={},...t){const{mixins:r={},palette:u={},transitions:d={},typography:f={}}=e,p=(0,o.Z)(e,M);if(e.vars)throw new Error((0,i.Z)(18));const h=Z(u),m=(0,s.Z)(e);let g=(0,a.Z)(m,{mixins:(y=m.breakpoints,v=r,(0,n.Z)({toolbar:{minHeight:56,[y.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[y.up("sm")]:{minHeight:64}}},v)),palette:h,shadows:E.slice(),typography:O(h,f),transitions:L(d),zIndex:(0,n.Z)({},R)});var y,v;return g=(0,a.Z)(g,p),g=t.reduce(((e,t)=>(0,a.Z)(e,t)),g),g.unstable_sxConfig=(0,n.Z)({},c.Z,null==p?void 0:p.unstable_sxConfig),g.unstable_sx=function(e){return(0,l.Z)({sx:e,theme:this})},g}const B=N},9366:(e,t,r)=>{r.d(t,{Z:()=>n});const n=(0,r(9069).Z)()},9659:(e,t,r)=>{r.d(t,{ZP:()=>F,FO:()=>N});var n=r(1792),o=r(3341),i=r(9901),a=r(6119),s=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,c=(0,a.Z)((function(e){return s.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),l=r(4221);var u=function(e,t,r){var n=e.key+"-"+t.name;!1===r&&void 0===e.registered[n]&&(e.registered[n]=t.styles)},d=r(2623),f=r(9653),p=c,h=function(e){return"theme"!==e},m=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?p:h},g=function(e,t,r){var n;if(t){var o=t.shouldForwardProp;n=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!=typeof n&&r&&(n=e.__emotion_forwardProp),n},y=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;u(t,r,n);(0,f.L)((function(){return function(e,t,r){u(e,t,r);var n=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+n:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}}(t,r,n)}));return null};const v=function e(t,r){var n,a,s=t.__emotion_real===t,c=s&&t.__emotion_base||t;void 0!==r&&(n=r.label,a=r.target);var u=g(t,r,s),f=u||m(c),p=!f("as");return function(){var h=arguments,v=s&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==n&&v.push("label:"+n+";"),null==h[0]||void 0===h[0].raw)v.push.apply(v,h);else{0,v.push(h[0][0]);for(var b=h.length,w=1;w{o+="color"===t?S(o)?e[t]:(0,Z.Z)(e[t]):`${S(o)?t:(0,Z.Z)(t)}${(0,Z.Z)(e[t].toString())}`})),o}var O=r(6255);const A=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];const E=e=>{const t={};return e&&e.forEach((e=>{const r=P(e.props);t[r]=e.style})),t},C=(e,t,r)=>{const{ownerState:n={}}=e,o=[];return r&&r.forEach((r=>{let i=!0;Object.keys(r.props).forEach((t=>{n[t]!==r.props[t]&&e[t]!==r.props[t]&&(i=!1)})),i&&o.push(t[P(r.props)])})),o};function j(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const $=(0,x.Z)(),T=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function I({defaultTheme:e,theme:t,themeId:r}){return n=t,0===Object.keys(n).length?e:t[r]||t;var n}function L(e){return e?(t,r)=>r[e]:null}const R=({styledArg:e,props:t,defaultTheme:r,themeId:n})=>{const i=e((0,o.Z)({},t,{theme:I((0,o.Z)({},t,{defaultTheme:r,themeId:n}))}));let a;if(i&&i.variants&&(a=i.variants,delete i.variants),a){return[i,...C(t,E(a),a)]}return i};var M=r(9366);const N=e=>j(e)&&"classes"!==e,B=function(e={}){const{themeId:t,defaultTheme:r=$,rootShouldForwardProp:i=j,slotShouldForwardProp:a=j}=e,s=e=>(0,O.Z)((0,o.Z)({},e,{theme:I((0,o.Z)({},e,{defaultTheme:r,themeId:t}))}));return s.__mui_systemSx=!0,(e,c={})=>{((e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))})(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:l,slot:u,skipVariantsResolver:d,skipSx:f,overridesResolver:p=L(T(u))}=c,h=(0,n.Z)(c,A),m=void 0!==d?d:u&&"Root"!==u&&"root"!==u||!1,g=f||!1;let y=j;"Root"===u||"root"===u?y=i:u?y=a:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(y=void 0);const v=function(e,t){return w(e,t)}(e,(0,o.Z)({shouldForwardProp:y,label:undefined},h)),b=(n,...i)=>{const a=i?i.map((e=>{if("function"==typeof e&&e.__emotion_real!==e)return n=>R({styledArg:e,props:n,defaultTheme:r,themeId:t});if((0,k.P)(e)){let t,r=e;return e&&e.variants&&(t=e.variants,delete r.variants,r=r=>{let n=e;return C(r,E(t),t).forEach((e=>{n=(0,k.Z)(n,e)})),n}),r}return e})):[];let c=n;if((0,k.P)(n)){let e;n&&n.variants&&(e=n.variants,delete c.variants,c=t=>{let r=n;return C(t,E(e),e).forEach((e=>{r=(0,k.Z)(r,e)})),r})}else"function"==typeof n&&n.__emotion_real!==n&&(c=e=>R({styledArg:n,props:e,defaultTheme:r,themeId:t}));l&&p&&a.push((e=>{const n=I((0,o.Z)({},e,{defaultTheme:r,themeId:t})),i=((e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null)(l,n);if(i){const t={};return Object.entries(i).forEach((([r,i])=>{t[r]="function"==typeof i?i((0,o.Z)({},e,{theme:n})):i})),p(e,t)}return null})),l&&!m&&a.push((e=>{const n=I((0,o.Z)({},e,{defaultTheme:r,themeId:t}));return((e,t,r,n)=>{var o;const i=null==r||null==(o=r.components)||null==(o=o[n])?void 0:o.variants;return C(e,t,i)})(e,((e,t)=>{let r=[];return t&&t.components&&t.components[e]&&t.components[e].variants&&(r=t.components[e].variants),E(r)})(l,n),n,l)})),g||a.push(s);const u=a.length-i.length;if(Array.isArray(n)&&u>0){const e=new Array(u).fill("");c=[...n,...e],c.raw=[...n.raw,...e]}const d=v(c,...a);return e.muiName&&(d.muiName=e.muiName),d};return v.withConfig&&(b.withConfig=v.withConfig),b}}({defaultTheme:M.Z,rootShouldForwardProp:N}),F=B},8584:(e,t,r)=>{r.d(t,{Z:()=>i});r(9901);var n=r(9403),o=r(9366);function i(){return(0,n.Z)(o.Z)}},1350:(e,t,r)=>{r.d(t,{Z:()=>a});var n=r(1423),o=r(9403);var i=r(9366);function a({props:e,name:t}){return function({props:e,name:t,defaultTheme:r,themeId:i}){let a=(0,o.Z)(r);return i&&(a=a[i]||a),(0,n.Z)({theme:a,name:t,props:e})}({props:e,name:t,defaultTheme:i.Z})}},3424:(e,t,r)=>{r.d(t,{Z:()=>n});const n=r(1342).Z},1894:(e,t,r)=>{r.d(t,{L7:()=>c,P$:()=>u,VO:()=>o,W8:()=>s,dt:()=>l,k9:()=>a});var n=r(9321);const o={xs:0,sm:600,md:900,lg:1200,xl:1536},i={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${o[e]}px)`};function a(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const e=n.breakpoints||i;return t.reduce(((n,o,i)=>(n[e.up(e.keys[i])]=r(t[i]),n)),{})}if("object"==typeof t){const e=n.breakpoints||i;return Object.keys(t).reduce(((n,i)=>{if(-1!==Object.keys(e.values||o).indexOf(i)){n[e.up(i)]=r(t[i],i)}else{const e=i;n[e]=t[e]}return n}),{})}return r(t)}function s(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce(((t,r)=>(t[e.up(r)]={},t)),{}))||{}}function c(e,t){return e.reduce(((e,t)=>{const r=e[t];return(!r||0===Object.keys(r).length)&&delete e[t],e}),t)}function l(e,...t){const r=s(e),o=[r,...t].reduce(((e,t)=>(0,n.Z)(e,t)),{});return c(Object.keys(r),o)}function u({values:e,breakpoints:t,base:r}){const n=r||function(e,t){if("object"!=typeof e)return{};const r={},n=Object.keys(t);return Array.isArray(e)?n.forEach(((t,n)=>{n{null!=e[t]&&(r[t]=!0)})),r}(e,t),o=Object.keys(n);if(0===o.length)return e;let i;return o.reduce(((t,r,n)=>(Array.isArray(e)?(t[r]=null!=e[n]?e[n]:e[i],i=n):"object"==typeof e?(t[r]=null!=e[r]?e[r]:e[i],i=r):t[r]=e,t)),{})}},4411:(e,t,r)=>{r.d(t,{$n:()=>d,Fq:()=>l,_j:()=>u,mi:()=>c});var n=r(4036);function o(e,t=0,r=1){return Math.min(Math.max(t,e),r)}function i(e){if(e.type)return e;if("#"===e.charAt(0))return i(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&1===r[0].length&&(r=r.map((e=>e+e))),r?`rgb${4===r.length?"a":""}(${r.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}(e));const t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error((0,n.Z)(9,e));let o,a=e.substring(t+1,e.length-1);if("color"===r){if(a=a.split(" "),o=a.shift(),4===a.length&&"/"===a[3].charAt(0)&&(a[3]=a[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o))throw new Error((0,n.Z)(10,o))}else a=a.split(",");return a=a.map((e=>parseFloat(e))),{type:r,values:a,colorSpace:o}}function a(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return-1!==t.indexOf("rgb")?n=n.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),n=-1!==t.indexOf("color")?`${r} ${n.join(" ")}`:`${n.join(", ")}`,`${t}(${n})`}function s(e){let t="hsl"===(e=i(e)).type||"hsla"===e.type?i(function(e){e=i(e);const{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,s=n*Math.min(o,1-o),c=(e,t=(e+r/30)%12)=>o-s*Math.max(Math.min(t-3,9-t,1),-1);let l="rgb";const u=[Math.round(255*c(0)),Math.round(255*c(8)),Math.round(255*c(4))];return"hsla"===e.type&&(l+="a",u.push(t[3])),a({type:l,values:u})}(e)).values:e.values;return t=t.map((t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function c(e,t){const r=s(e),n=s(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function l(e,t){return e=i(e),t=o(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,a(e)}function u(e,t){if(e=i(e),t=o(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let r=0;r<3;r+=1)e.values[r]*=1-t;return a(e)}function d(e,t){if(e=i(e),t=o(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(-1!==e.type.indexOf("color"))for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return a(e)}},7538:(e,t,r)=>{r.d(t,{Z:()=>p});var n=r(3341),o=r(1792),i=r(9321);const a=["values","unit","step"],s=e=>{const t=Object.keys(e).map((t=>({key:t,val:e[t]})))||[];return t.sort(((e,t)=>e.val-t.val)),t.reduce(((e,t)=>(0,n.Z)({},e,{[t.key]:t.val})),{})};const c={borderRadius:4};var l=r(3934);var u=r(6255),d=r(9565);const f=["breakpoints","palette","spacing","shape"];const p=function(e={},...t){const{breakpoints:r={},palette:p={},spacing:h,shape:m={}}=e,g=(0,o.Z)(e,f),y=function(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:i=5}=e,c=(0,o.Z)(e,a),l=s(t),u=Object.keys(l);function d(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r})`}function f(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-i/100}${r})`}function p(e,n){const o=u.indexOf(n);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r}) and (max-width:${(-1!==o&&"number"==typeof t[u[o]]?t[u[o]]:n)-i/100}${r})`}return(0,n.Z)({keys:u,values:l,up:d,down:f,between:p,only:function(e){return u.indexOf(e)+1(0===e.length?[1]:e).map((e=>{const r=t(e);return"number"==typeof r?`${r}px`:r})).join(" ");return r.mui=!0,r}(h);let b=(0,i.Z)({breakpoints:y,direction:"ltr",components:{},palette:(0,n.Z)({mode:"light"},p),spacing:v,shape:(0,n.Z)({},c,m)},g);return b=t.reduce(((e,t)=>(0,i.Z)(e,t)),b),b.unstable_sxConfig=(0,n.Z)({},d.Z,null==g?void 0:g.unstable_sxConfig),b.unstable_sx=function(e){return(0,u.Z)({sx:e,theme:this})},b}},7066:(e,t,r)=>{r.d(t,{Z:()=>o});var n=r(9321);const o=function(e,t){return t?(0,n.Z)(e,t,{clone:!1}):e}},3934:(e,t,r)=>{r.d(t,{hB:()=>h,eI:()=>p,NA:()=>m,e6:()=>v,o3:()=>b});var n=r(1894),o=r(5686),i=r(7066);const a={m:"margin",p:"padding"},s={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},c={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},l=function(e){const t={};return r=>(void 0===t[r]&&(t[r]=e(r)),t[r])}((e=>{if(e.length>2){if(!c[e])return[e];e=c[e]}const[t,r]=e.split(""),n=a[t],o=s[r]||"";return Array.isArray(o)?o.map((e=>n+e)):[n+o]})),u=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],d=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],f=[...u,...d];function p(e,t,r,n){var i;const a=null!=(i=(0,o.DW)(e,t,!1))?i:r;return"number"==typeof a?e=>"string"==typeof e?e:a*e:Array.isArray(a)?e=>"string"==typeof e?e:a[e]:"function"==typeof a?a:()=>{}}function h(e){return p(e,"spacing",8)}function m(e,t){if("string"==typeof t||null==t)return t;const r=e(Math.abs(t));return t>=0?r:"number"==typeof r?-r:`-${r}`}function g(e,t,r,o){if(-1===t.indexOf(r))return null;const i=function(e,t){return r=>e.reduce(((e,n)=>(e[n]=m(t,r),e)),{})}(l(r),o),a=e[r];return(0,n.k9)(e,a,i)}function y(e,t){const r=h(e.theme);return Object.keys(e).map((n=>g(e,t,n,r))).reduce(i.Z,{})}function v(e){return y(e,u)}function b(e){return y(e,d)}function w(e){return y(e,f)}v.propTypes={},v.filterProps=u,b.propTypes={},b.filterProps=d,w.propTypes={},w.filterProps=f},5686:(e,t,r)=>{r.d(t,{DW:()=>i,Jq:()=>a,ZP:()=>s});var n=r(1342),o=r(1894);function i(e,t,r=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&r){const r=`vars.${t}`.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=r)return r}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function a(e,t,r,n=r){let o;return o="function"==typeof e?e(r):Array.isArray(e)?e[r]||n:i(e,r)||n,t&&(o=t(o,n,e)),o}const s=function(e){const{prop:t,cssProperty:r=e.prop,themeKey:s,transform:c}=e,l=e=>{if(null==e[t])return null;const l=e[t],u=i(e.theme,s)||{};return(0,o.k9)(e,l,(e=>{let o=a(u,c,e);return e===o&&"string"==typeof e&&(o=a(u,c,`${t}${"default"===e?"":(0,n.Z)(e)}`,e)),!1===r?o:{[r]:o}}))};return l.propTypes={},l.filterProps=[t],l}},9565:(e,t,r)=>{r.d(t,{Z:()=>j});var n=r(3934),o=r(5686),i=r(7066);const a=function(...e){const t=e.reduce(((e,t)=>(t.filterProps.forEach((r=>{e[r]=t})),e)),{}),r=e=>Object.keys(e).reduce(((r,n)=>t[n]?(0,i.Z)(r,t[n](e)):r),{});return r.propTypes={},r.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),r};var s=r(1894);function c(e){return"number"!=typeof e?e:`${e}px solid`}const l=(0,o.ZP)({prop:"border",themeKey:"borders",transform:c}),u=(0,o.ZP)({prop:"borderTop",themeKey:"borders",transform:c}),d=(0,o.ZP)({prop:"borderRight",themeKey:"borders",transform:c}),f=(0,o.ZP)({prop:"borderBottom",themeKey:"borders",transform:c}),p=(0,o.ZP)({prop:"borderLeft",themeKey:"borders",transform:c}),h=(0,o.ZP)({prop:"borderColor",themeKey:"palette"}),m=(0,o.ZP)({prop:"borderTopColor",themeKey:"palette"}),g=(0,o.ZP)({prop:"borderRightColor",themeKey:"palette"}),y=(0,o.ZP)({prop:"borderBottomColor",themeKey:"palette"}),v=(0,o.ZP)({prop:"borderLeftColor",themeKey:"palette"}),b=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=(0,n.eI)(e.theme,"shape.borderRadius",4,"borderRadius"),r=e=>({borderRadius:(0,n.NA)(t,e)});return(0,s.k9)(e,e.borderRadius,r)}return null};b.propTypes={},b.filterProps=["borderRadius"];a(l,u,d,f,p,h,m,g,y,v,b);const w=e=>{if(void 0!==e.gap&&null!==e.gap){const t=(0,n.eI)(e.theme,"spacing",8,"gap"),r=e=>({gap:(0,n.NA)(t,e)});return(0,s.k9)(e,e.gap,r)}return null};w.propTypes={},w.filterProps=["gap"];const k=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=(0,n.eI)(e.theme,"spacing",8,"columnGap"),r=e=>({columnGap:(0,n.NA)(t,e)});return(0,s.k9)(e,e.columnGap,r)}return null};k.propTypes={},k.filterProps=["columnGap"];const x=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=(0,n.eI)(e.theme,"spacing",8,"rowGap"),r=e=>({rowGap:(0,n.NA)(t,e)});return(0,s.k9)(e,e.rowGap,r)}return null};x.propTypes={},x.filterProps=["rowGap"];a(w,k,x,(0,o.ZP)({prop:"gridColumn"}),(0,o.ZP)({prop:"gridRow"}),(0,o.ZP)({prop:"gridAutoFlow"}),(0,o.ZP)({prop:"gridAutoColumns"}),(0,o.ZP)({prop:"gridAutoRows"}),(0,o.ZP)({prop:"gridTemplateColumns"}),(0,o.ZP)({prop:"gridTemplateRows"}),(0,o.ZP)({prop:"gridTemplateAreas"}),(0,o.ZP)({prop:"gridArea"}));function Z(e,t){return"grey"===t?t:e}a((0,o.ZP)({prop:"color",themeKey:"palette",transform:Z}),(0,o.ZP)({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Z}),(0,o.ZP)({prop:"backgroundColor",themeKey:"palette",transform:Z}));function _(e){return e<=1&&0!==e?100*e+"%":e}const S=(0,o.ZP)({prop:"width",transform:_}),P=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var r,n;const o=(null==(r=e.theme)||null==(r=r.breakpoints)||null==(r=r.values)?void 0:r[t])||s.VO[t];return o?"px"!==(null==(n=e.theme)||null==(n=n.breakpoints)?void 0:n.unit)?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:_(t)}};return(0,s.k9)(e,e.maxWidth,t)}return null};P.filterProps=["maxWidth"];const O=(0,o.ZP)({prop:"minWidth",transform:_}),A=(0,o.ZP)({prop:"height",transform:_}),E=(0,o.ZP)({prop:"maxHeight",transform:_}),C=(0,o.ZP)({prop:"minHeight",transform:_}),j=((0,o.ZP)({prop:"size",cssProperty:"width",transform:_}),(0,o.ZP)({prop:"size",cssProperty:"height",transform:_}),a(S,P,O,A,E,C,(0,o.ZP)({prop:"boxSizing"})),{border:{themeKey:"borders",transform:c},borderTop:{themeKey:"borders",transform:c},borderRight:{themeKey:"borders",transform:c},borderBottom:{themeKey:"borders",transform:c},borderLeft:{themeKey:"borders",transform:c},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:b},color:{themeKey:"palette",transform:Z},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Z},backgroundColor:{themeKey:"palette",transform:Z},p:{style:n.o3},pt:{style:n.o3},pr:{style:n.o3},pb:{style:n.o3},pl:{style:n.o3},px:{style:n.o3},py:{style:n.o3},padding:{style:n.o3},paddingTop:{style:n.o3},paddingRight:{style:n.o3},paddingBottom:{style:n.o3},paddingLeft:{style:n.o3},paddingX:{style:n.o3},paddingY:{style:n.o3},paddingInline:{style:n.o3},paddingInlineStart:{style:n.o3},paddingInlineEnd:{style:n.o3},paddingBlock:{style:n.o3},paddingBlockStart:{style:n.o3},paddingBlockEnd:{style:n.o3},m:{style:n.e6},mt:{style:n.e6},mr:{style:n.e6},mb:{style:n.e6},ml:{style:n.e6},mx:{style:n.e6},my:{style:n.e6},margin:{style:n.e6},marginTop:{style:n.e6},marginRight:{style:n.e6},marginBottom:{style:n.e6},marginLeft:{style:n.e6},marginX:{style:n.e6},marginY:{style:n.e6},marginInline:{style:n.e6},marginInlineStart:{style:n.e6},marginInlineEnd:{style:n.e6},marginBlock:{style:n.e6},marginBlockStart:{style:n.e6},marginBlockEnd:{style:n.e6},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:w},rowGap:{style:x},columnGap:{style:k},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:_},maxWidth:{style:P},minWidth:{transform:_},height:{transform:_},maxHeight:{transform:_},minHeight:{transform:_},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}})},5070:(e,t,r)=>{r.d(t,{Z:()=>l});var n=r(3341),o=r(1792),i=r(9321),a=r(9565);const s=["sx"],c=e=>{var t,r;const n={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(r=e.theme)?void 0:r.unstable_sxConfig)?t:a.Z;return Object.keys(e).forEach((t=>{o[t]?n.systemProps[t]=e[t]:n.otherProps[t]=e[t]})),n};function l(e){const{sx:t}=e,r=(0,o.Z)(e,s),{systemProps:a,otherProps:l}=c(r);let u;return u=Array.isArray(t)?[a,...t]:"function"==typeof t?(...e)=>{const r=t(...e);return(0,i.P)(r)?(0,n.Z)({},a,r):a}:(0,n.Z)({},a,t),(0,n.Z)({},l,{sx:u})}},6255:(e,t,r)=>{r.d(t,{Z:()=>l});var n=r(1342),o=r(7066),i=r(5686),a=r(1894),s=r(9565);const c=function(){function e(e,t,r,o){const s={[e]:t,theme:r},c=o[e];if(!c)return{[e]:t};const{cssProperty:l=e,themeKey:u,transform:d,style:f}=c;if(null==t)return null;if("typography"===u&&"inherit"===t)return{[e]:t};const p=(0,i.DW)(r,u)||{};if(f)return f(s);return(0,a.k9)(s,t,(t=>{let r=(0,i.Jq)(p,d,t);return t===r&&"string"==typeof t&&(r=(0,i.Jq)(p,d,`${e}${"default"===t?"":(0,n.Z)(t)}`,t)),!1===l?r:{[l]:r}}))}return function t(r){var n;const{sx:i,theme:c={}}=r||{};if(!i)return null;const l=null!=(n=c.unstable_sxConfig)?n:s.Z;function u(r){let n=r;if("function"==typeof r)n=r(c);else if("object"!=typeof r)return r;if(!n)return null;const i=(0,a.W8)(c.breakpoints),s=Object.keys(i);let u=i;return Object.keys(n).forEach((r=>{const i=(s=n[r],d=c,"function"==typeof s?s(d):s);var s,d;if(null!=i)if("object"==typeof i)if(l[r])u=(0,o.Z)(u,e(r,i,c,l));else{const e=(0,a.k9)({theme:c},i,(e=>({[r]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),r=new Set(t);return e.every((e=>r.size===Object.keys(e).length))}(e,i)?u=(0,o.Z)(u,e):u[r]=t({sx:i,theme:c})}else u=(0,o.Z)(u,e(r,i,c,l))})),(0,a.L7)(s,u)}return Array.isArray(i)?i.map(u):u(i)}}();c.filterProps=["sx"];const l=c},9403:(e,t,r)=>{r.d(t,{Z:()=>a});var n=r(7538),o=r(2934);const i=(0,n.Z)();const a=function(e=i){return(0,o.Z)(e)}},1423:(e,t,r)=>{r.d(t,{Z:()=>o});var n=r(5765);function o(e){const{theme:t,name:r,props:o}=e;return t&&t.components&&t.components[r]&&t.components[r].defaultProps?(0,n.Z)(t.components[r].defaultProps,o):o}},2934:(e,t,r)=>{r.d(t,{Z:()=>i});var n=r(9901),o=r(4221);const i=function(e=null){const t=n.useContext(o.T);return t&&(r=t,0!==Object.keys(r).length)?t:e;var r}},6962:(e,t,r)=>{r.d(t,{Z:()=>o});const n=e=>e,o=(()=>{let e=n;return{configure(t){e=t},generate:t=>e(t),reset(){e=n}}})()},1342:(e,t,r)=>{r.d(t,{Z:()=>o});var n=r(4036);function o(e){if("string"!=typeof e)throw new Error((0,n.Z)(7));return e.charAt(0).toUpperCase()+e.slice(1)}},6202:(e,t,r)=>{function n(e,t,r=void 0){const n={};return Object.keys(e).forEach((o=>{n[o]=e[o].reduce(((e,n)=>{if(n){const o=t(n);""!==o&&e.push(o),r&&r[n]&&e.push(r[n])}return e}),[]).join(" ")})),n}r.d(t,{Z:()=>n})},9321:(e,t,r)=>{r.d(t,{P:()=>o,Z:()=>a});var n=r(3341);function o(e){return null!==e&&"object"==typeof e&&e.constructor===Object}function i(e){if(!o(e))return e;const t={};return Object.keys(e).forEach((r=>{t[r]=i(e[r])})),t}function a(e,t,r={clone:!0}){const s=r.clone?(0,n.Z)({},e):e;return o(e)&&o(t)&&Object.keys(t).forEach((n=>{"__proto__"!==n&&(o(t[n])&&n in e&&o(e[n])?s[n]=a(e[n],t[n],r):r.clone?s[n]=o(t[n])?i(t[n]):t[n]:s[n]=t[n])})),s}},4036:(e,t,r)=>{function n(e){let t="https://mui.com/production-error/?code="+e;for(let r=1;rn})},3159:(e,t,r)=>{r.d(t,{Z:()=>i});var n=r(6962);const o={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function i(e,t,r="Mui"){const i=o[t];return i?`${r}-${i}`:`${n.Z.generate(e)}-${t}`}},9925:(e,t,r)=>{r.d(t,{Z:()=>o});var n=r(3159);function o(e,t,r="Mui"){const o={};return t.forEach((t=>{o[t]=(0,n.Z)(e,t,r)})),o}},5765:(e,t,r)=>{r.d(t,{Z:()=>o});var n=r(3341);function o(e,t){const r=(0,n.Z)({},t);return Object.keys(e).forEach((i=>{if(i.toString().match(/^(components|slots)$/))r[i]=(0,n.Z)({},e[i],r[i]);else if(i.toString().match(/^(componentsProps|slotProps)$/)){const a=e[i]||{},s=t[i];r[i]={},s&&Object.keys(s)?a&&Object.keys(a)?(r[i]=(0,n.Z)({},s),Object.keys(a).forEach((e=>{r[i][e]=o(a[e],s[e])}))):r[i]=s:r[i]=a}else void 0===r[i]&&(r[i]=e[i])})),r}},3346:(e,t,r)=>{r.d(t,{Z:()=>_});var n=["angular-cli","create-react-app","html","javascript","node","polymer","typescript","vue"],o={clickToLoad:function(e){return a("ctl",e)},devToolsHeight:function(e){return s("devtoolsheight",e)},forceEmbedLayout:function(e){return a("embed",e)},hideDevTools:function(e){return a("hidedevtools",e)},hideExplorer:function(e){return a("hideExplorer",e)},hideNavigation:function(e){return a("hideNavigation",e)},showSidebar:function(e){return function(e,t){return"boolean"==typeof t?"showSidebar="+(t?"1":"0"):""}(0,e)},openFile:function(e){return function(e,t){return(Array.isArray(t)?t:[t]).filter((function(e){return"string"==typeof e&&""!==e.trim()})).map((function(e){return"file="+encodeURIComponent(e.trim())}))}(0,e).join("&")},terminalHeight:function(e){return s("terminalHeight",e)},theme:function(e){return c("theme",["light","dark"],e)},view:function(e){return c("view",["preview","editor"],e)}};function i(e){void 0===e&&(e={});var t=Object.entries(e).map((function(e){var t=e[0],r=e[1];return null!=r&&o.hasOwnProperty(t)?o[t](r):""})).filter(Boolean);return t.length?"?"+t.join("&"):""}function a(e,t){return!0===t?e+"=1":""}function s(e,t){return"number"==typeof t&&t>=0&&t<=100?e+"="+Math.round(t):""}function c(e,t,r){return"string"==typeof r&&t.includes(r)?e+"="+r:""}function l(){return Math.random().toString(36).slice(2,6)+Math.random().toString(36).slice(2,6)}function u(e,t){return""+f(t)+e+i(t)}function d(e,t){var r={forceEmbedLayout:!0};return t&&"object"==typeof t&&Object.assign(r,t),""+f(r)+e+i(r)}function f(e){return void 0===e&&(e={}),"string"==typeof e.origin?e.origin:"https://stackblitz.com"}function p(e,t,r){if(!t||!e||!e.parentNode)throw new Error("Invalid Element");e.id&&(t.id=e.id),e.className&&(t.className=e.className),function(e,t){t&&"object"==typeof t&&(Object.hasOwnProperty.call(t,"height")&&(e.height=""+t.height),Object.hasOwnProperty.call(t,"width")&&(e.width=""+t.width)),e.height||(e.height="300"),e.width||e.setAttribute("style","width:100%;")}(t,r),e.parentNode.replaceChild(t,e)}function h(e){if("string"==typeof e){var t=document.getElementById(e);if(!t)throw new Error("Could not find element with id '"+e+"'");return t}if(e instanceof HTMLElement)return e;throw new Error("Invalid element: "+e)}function m(e){return e&&!1===e.newWindow?"_self":"_blank"}function g(){return g=Object.assign||function(e){for(var t=1;t=20)return i(),r("Timeout: Unable to establish a connection with the StackBlitz VM"),void b.forEach((function(e,r){e.id===t.id&&b.splice(r,1)}));a++,o()}}),500)})),b.push(this)};function k(e,t){var r=document.createElement("input");return r.type="hidden",r.name=e,r.value=t,r}function x(e){if(!n.includes(e.template)){var t=n.map((function(e){return"'"+e+"'"})).join(", ");console.warn("Unsupported project.template: must be one of "+t)}var r="node"===e.template,o=document.createElement("form");return o.method="POST",o.setAttribute("style","display:none!important;"),o.appendChild(k("project[title]",e.title)),o.appendChild(k("project[description]",e.description)),o.appendChild(k("project[template]",e.template)),e.dependencies&&(r?console.warn("Invalid project.dependencies: dependencies must be provided as a 'package.json' file when using the 'node' template."):o.appendChild(k("project[dependencies]",JSON.stringify(e.dependencies)))),e.settings&&o.appendChild(k("project[settings]",JSON.stringify(e.settings))),Object.keys(e.files).forEach((function(t){var r="project[files]"+function(e){return"["+e.replace(/\[/g,"%5B").replace(/\]/g,"%5D")+"]"}(t),n=e.files[t];"string"==typeof n&&o.appendChild(k(r,n))})),o}function Z(e){var t,r,n,o;return null!=e&&e.contentWindow?(null!=(o=(r=e)instanceof Element?"element":"id",t=null!=(n=b.find((function(e){return e[o]===r})))?n:null)?t:new w(e)).pending:Promise.reject("Provided element is not an iframe.")}var _={connect:Z,embedGithubProject:function(e,t,r){var n=h(e),o=document.createElement("iframe");return o.src=d("/github/"+t,r),p(n,o,r),Z(o)},embedProject:function(e,t,r){var n,o=h(e),i=function(e,t){var r=x(e);return r.action=d("/run",t),r.id="sb",""+r.outerHTML+" - - + +
- - + + \ No newline at end of file diff --git a/docs/1.0.19-alpha/api/ark/index.html b/docs/1.0.19-alpha/api/ark/index.html index 0f8f0196bf..2146f87236 100644 --- a/docs/1.0.19-alpha/api/ark/index.html +++ b/docs/1.0.19-alpha/api/ark/index.html @@ -7,13 +7,13 @@ - - + +
Version: 1.0.19-alpha

ark

text​

ark: Space<PrecompiledDefaults>
- - + + \ No newline at end of file diff --git a/docs/1.0.19-alpha/api/arkscope/index.html b/docs/1.0.19-alpha/api/arkscope/index.html index 3af086f594..61a17dd068 100644 --- a/docs/1.0.19-alpha/api/arkscope/index.html +++ b/docs/1.0.19-alpha/api/arkscope/index.html @@ -7,13 +7,13 @@ - - + +
Version: 1.0.19-alpha

arkScope

text​

arkScope: import("./scope.js").Scope<
[
{
any: any
bigint: bigint
boolean: boolean
false: false
never: never
null: null
number: number
object: object
string: string
symbol: symbol
true: true
unknown: unknown
void: void
undefined: undefined
Function: (...args: any[]) => unknown
Date: Date
Error: Error
Map: Map<unknown, unknown>
RegExp: RegExp
Set: Set<unknown>
WeakMap: WeakMap<object, unknown>
WeakSet: WeakSet<object>
Promise: Promise<unknown>
alpha: string
alphanumeric: string
lowercase: string
uppercase: string
creditCard: string
email: string
uuid: string
parsedNumber: (In: string) => number
parsedInteger: (In: string) => number
parsedDate: (In: string) => Date
semver: string
json: (In: string) => unknown
integer: number
},
{},
false
]
>
- - + + \ No newline at end of file diff --git a/docs/1.0.19-alpha/api/arrayof/index.html b/docs/1.0.19-alpha/api/arrayof/index.html index 454e092491..e195ae3255 100644 --- a/docs/1.0.19-alpha/api/arrayof/index.html +++ b/docs/1.0.19-alpha/api/arrayof/index.html @@ -7,13 +7,13 @@ - - + +
Version: 1.0.19-alpha

arrayOf

operator​

string​

  • "T[]"
  • const numberArray = type("number[]")

tuple​

  • [T, "[]"]
  • const tupleArray = type(["number", "[]"])

helper​

  • arrayOf(T)
  • const helperArray = arrayOf("number")
- - + + \ No newline at end of file diff --git a/docs/1.0.19-alpha/api/index.html b/docs/1.0.19-alpha/api/index.html index 60ae8d361b..9da8d83d39 100644 --- a/docs/1.0.19-alpha/api/index.html +++ b/docs/1.0.19-alpha/api/index.html @@ -7,13 +7,13 @@ - - + +
Version: 1.0.19-alpha

API

ArkType supports many of TypeScript's built-in types and operators, as well as some new ones dedicated exclusively to runtime validation. In fact, we got a little ahead of ourselves and built a ton of cool features, but we're still working on getting caught up syntax and API docs. Keep an eye out for more in the next couple weeks ⛵

In the meantime, check out the examples here and use the type hints you get to learn how you can customize your types and scopes. If you want to explore some of the more advanced features, take a look at our unit tests or ask us on Discord if your functionality is supported. If not, create a GitHub issue so we can prioritize it!

- - + + \ No newline at end of file diff --git a/docs/1.0.19-alpha/api/infer/index.html b/docs/1.0.19-alpha/api/infer/index.html index 385c9c108f..5f83ebc9c3 100644 --- a/docs/1.0.19-alpha/api/infer/index.html +++ b/docs/1.0.19-alpha/api/infer/index.html @@ -7,13 +7,13 @@ - - + +
Version: 1.0.19-alpha

Infer

text​

export type Infer<t> = {
[as]?: t
}
- - + + \ No newline at end of file diff --git a/docs/1.0.19-alpha/api/instanceof/index.html b/docs/1.0.19-alpha/api/instanceof/index.html index 36041d37d9..38bd71b401 100644 --- a/docs/1.0.19-alpha/api/instanceof/index.html +++ b/docs/1.0.19-alpha/api/instanceof/index.html @@ -7,13 +7,13 @@ - - + +
Version: 1.0.19-alpha

instanceOf

operator​

tuple​

  • ["instanceOf", T]
  • const tupleInstanceOf = type(["instanceOf", Date])

helper​

  • instanceOf(T)
  • const helperInstanceOf = instanceOf(Date)
- - + + \ No newline at end of file diff --git a/docs/1.0.19-alpha/api/intersection/index.html b/docs/1.0.19-alpha/api/intersection/index.html index 22357b17f8..f2f96f7096 100644 --- a/docs/1.0.19-alpha/api/intersection/index.html +++ b/docs/1.0.19-alpha/api/intersection/index.html @@ -7,13 +7,13 @@ - - + +
Version: 1.0.19-alpha

intersection

operator​

string​

  • "L&R"
  • const intersection = type("/@arktype.io$/ & email")

tuple​

  • [L, "&", R]
  • const tupleIntersection = type(["/@arktype.io$/", "&", "email"])

helper​

  • intersection(L,R)
  • const helperIntersection = intersection("/@arktype.io$/","email")
- - + + \ No newline at end of file diff --git a/docs/1.0.19-alpha/api/jsobjectsscope/index.html b/docs/1.0.19-alpha/api/jsobjectsscope/index.html index 1e56f96182..8cdcf4adaf 100644 --- a/docs/1.0.19-alpha/api/jsobjectsscope/index.html +++ b/docs/1.0.19-alpha/api/jsobjectsscope/index.html @@ -7,13 +7,13 @@ - - + +
Version: 1.0.19-alpha

jsObjectsScope

text​

NameTypeDescription
Function (...args: any[]) => unknown
Date Date
Error Error
Map Map<unknown, unknown>
RegExp RegExp
Set Set<unknown>
WeakMap WeakMap<object, unknown>
WeakSet WeakSet<object>
Promise Promise<unknown>
- - + + \ No newline at end of file diff --git a/docs/1.0.19-alpha/api/keyof/index.html b/docs/1.0.19-alpha/api/keyof/index.html index ee97d77b49..4a7f862a8f 100644 --- a/docs/1.0.19-alpha/api/keyof/index.html +++ b/docs/1.0.19-alpha/api/keyof/index.html @@ -7,13 +7,13 @@ - - + +
Version: 1.0.19-alpha

keyOf

operator​

tuple​

  • "["keyOf", T]"
  • const tupleKeyOf = type(["keyOf", {a:"string"}])

helper​

  • keyOf(T)
  • const helperKeyOf = keyOf({a:"string"})
- - + + \ No newline at end of file diff --git a/docs/1.0.19-alpha/api/keywords/index.html b/docs/1.0.19-alpha/api/keywords/index.html index 8c8d9736f0..63aad2be7f 100644 --- a/docs/1.0.19-alpha/api/keywords/index.html +++ b/docs/1.0.19-alpha/api/keywords/index.html @@ -7,13 +7,13 @@ - - + +
Version: 1.0.19-alpha

Keywords

jsObjectsScope​

NameTypeDescription
Function (...args: any[]) => unknown
Date Date
Error Error
Map Map<unknown, unknown>
RegExp RegExp
Set Set<unknown>
WeakMap WeakMap<object, unknown>
WeakSet WeakSet<object>
Promise Promise<unknown>

tsKeywordsScope​

NameTypeDescription
any anyany
bigint biginta bigint
boolean booleana boolean
false falsefalse
never nevernever
null nullnull
number numbera number
object objectan object
string stringa string
symbol symbola symbol
true truetrue
unknown unknownunknown
void voidvoid
undefined undefinedundefined

validationScope​

NameTypeDescription
alpha stringonly letters
alphanumeric stringonly letters and digits
lowercase stringonly lowercase letters
uppercase stringonly uppercase letters
creditCard stringa valid credit card number
email stringa valid email
uuid stringa valid UUID
parsedNumber (In: string) => numbera well-formed numeric string
parsedInteger (In: string) => numbera well-formed integer string
parsedDate (In: string) => Datea valid date
semver stringa valid semantic version
json (In: string) => unknowna JSON-parsable string
integer numberan integer
- - + + \ No newline at end of file diff --git a/docs/1.0.19-alpha/api/morph/index.html b/docs/1.0.19-alpha/api/morph/index.html index a8a773cf4d..b63ac175c3 100644 --- a/docs/1.0.19-alpha/api/morph/index.html +++ b/docs/1.0.19-alpha/api/morph/index.html @@ -7,13 +7,13 @@ - - + +
Version: 1.0.19-alpha

morph

operator​

tuple​

  • [inputType, "|>", (data) => output]
  • const tupleMorph = type( ["string", "|>" , (data) => `morphed ${data}`])

helper​

  • morph(inputType, (data) => output)
  • const helperMorph = morph("string", (data) => `morphed ${data}`)
- - + + \ No newline at end of file diff --git a/docs/1.0.19-alpha/api/narrow/index.html b/docs/1.0.19-alpha/api/narrow/index.html index e31e411a5c..2781b7b250 100644 --- a/docs/1.0.19-alpha/api/narrow/index.html +++ b/docs/1.0.19-alpha/api/narrow/index.html @@ -7,13 +7,13 @@ - - + +
Version: 1.0.19-alpha

narrow

operator​

tuple​

  • ["type", "=>" , condition]
  • const narrow = type( ["number", "=>" , (n) => n % 2 === 0])

example​

  •      const isEven = (x: unknown): x is number => x % 2 === 0
- - + + \ No newline at end of file diff --git a/docs/1.0.19-alpha/api/operators/index.html b/docs/1.0.19-alpha/api/operators/index.html index 0421acc58a..49a7e7b46c 100644 --- a/docs/1.0.19-alpha/api/operators/index.html +++ b/docs/1.0.19-alpha/api/operators/index.html @@ -7,13 +7,13 @@ - - + +
Version: 1.0.19-alpha

Operators

Operating Table​

operatorstringtuplehelper
arrayOf"T[]"[T, "[]"]arrayOf(T)
instanceOf["instanceOf", T]instanceOf(T)
&"L&R"[L, "&", R]intersection(L,R)
keyOf"["keyOf", T]"keyOf(T)
|>[inputType, "|>", (data) => output]morph(inputType, (data) => output)
=>["type", "=>" , condition]
|"L|R"[L, "|" , R]union(L,R)
===["===", T]valueOf(T)
:["type", ":", config]
bound"N<S<N", with comparators restricted to < or <=
%"N%D", where "N" is a number and "D" is a non-zero integer
node["node", nodeDefinition]type.from(nodeDefinition)
- - + + \ No newline at end of file diff --git a/docs/1.0.19-alpha/api/parseconfigtuple/index.html b/docs/1.0.19-alpha/api/parseconfigtuple/index.html index 86b1a925c0..6e22a15988 100644 --- a/docs/1.0.19-alpha/api/parseconfigtuple/index.html +++ b/docs/1.0.19-alpha/api/parseconfigtuple/index.html @@ -7,13 +7,13 @@ - - + +
Version: 1.0.19-alpha

parseConfigTuple

operator​

tuple​

  • ["type", ":", config]
- - + + \ No newline at end of file diff --git a/docs/1.0.19-alpha/api/problem/index.html b/docs/1.0.19-alpha/api/problem/index.html index 4c89853d8e..fabaccae4d 100644 --- a/docs/1.0.19-alpha/api/problem/index.html +++ b/docs/1.0.19-alpha/api/problem/index.html @@ -7,13 +7,13 @@ - - + +
Version: 1.0.19-alpha

Problem

text​

export declare class Problem<code extends ProblemCode = ProblemCode> {
code: code
path: Path
private data
private source
private writers
parts?: Problem[]
constructor(
code: code,
path: Path,
data: ProblemData<code>,
source: ProblemSource<code>,
writers: ProblemWriters<code>
)
toString(): string
get message(): string
get reason(): string
get mustBe(): string
}
- - + + \ No newline at end of file diff --git a/docs/1.0.19-alpha/api/problems/index.html b/docs/1.0.19-alpha/api/problems/index.html index 4b0a86c44c..ef72eb5daa 100644 --- a/docs/1.0.19-alpha/api/problems/index.html +++ b/docs/1.0.19-alpha/api/problems/index.html @@ -7,13 +7,13 @@ - - + +
Version: 1.0.19-alpha

Problems

text​

Problems: new (state: TraversalState) => Problems
export type Problems = arraySubclassToReadonly<ProblemArray>;
- - + + \ No newline at end of file diff --git a/docs/1.0.19-alpha/api/resolvednode/index.html b/docs/1.0.19-alpha/api/resolvednode/index.html index 43933237e2..c398040b27 100644 --- a/docs/1.0.19-alpha/api/resolvednode/index.html +++ b/docs/1.0.19-alpha/api/resolvednode/index.html @@ -7,13 +7,13 @@ - - + +
- - + + \ No newline at end of file diff --git a/docs/1.0.19-alpha/api/scope/index.html b/docs/1.0.19-alpha/api/scope/index.html index 04d6cc0140..352ef21ee9 100644 --- a/docs/1.0.19-alpha/api/scope/index.html +++ b/docs/1.0.19-alpha/api/scope/index.html @@ -7,13 +7,13 @@ - - + +
Version: 1.0.19-alpha

scope

text​

scope: ScopeParser

hide_table_of_contents: true​

Scope

text​

export declare class Scope<context extends ScopeContext = any> {
#private
aliases: Dict
name: string
config: ScopeConfig
parseCache: FreezingCache<Node>
constructor(aliases: Dict, opts?: ScopeOptions)
getAnonymousQualifiedName(base: AnonymousTypeName): QualifiedTypeName
addAnonymousTypeReference(referencedType: Type, ctx: ParseContext): Node
get infer(): exportsOf<context>
compile(): Space<exportsOf<context>>
addParsedReferenceIfResolvable(
name: name<context>,
ctx: ParseContext
): boolean
resolve(name: name<context>): Type
resolveNode(node: Node): ResolvedNode
resolveTypeNode(node: Node): TypeNode
expressions: Expressions<resolutions<context>>
intersection: import("./expressions.js").BinaryExpressionParser<
resolutions<context>,
"&"
>
union: import("./expressions.js").BinaryExpressionParser<
resolutions<context>,
"|"
>
arrayOf: import("./expressions.js").UnaryExpressionParser<
resolutions<context>,
"[]"
>
keyOf: import("./expressions.js").UnaryExpressionParser<
resolutions<context>,
"keyof"
>
valueOf: import("./expressions.js").UnvalidatedExpressionParser<
resolutions<context>,
"==="
>
instanceOf: import("./expressions.js").UnvalidatedExpressionParser<
resolutions<context>,
"instanceof"
>
narrow: import("./expressions.js").FunctionalExpressionParser<
resolutions<context>,
"=>"
>
morph: import("./expressions.js").FunctionalExpressionParser<
resolutions<context>,
"|>"
>
type: TypeParser<resolutions<context>>
isResolvable(name: string): unknown
}
- - + + \ No newline at end of file diff --git a/docs/1.0.19-alpha/api/space/index.html b/docs/1.0.19-alpha/api/space/index.html index 4096ea17f6..7a6c6b6204 100644 --- a/docs/1.0.19-alpha/api/space/index.html +++ b/docs/1.0.19-alpha/api/space/index.html @@ -7,13 +7,13 @@ - - + +
Version: 1.0.19-alpha

Space

text​

export type Space<exports = Dict> = {
[k in keyof exports]: Type<exports[k]>
}
- - + + \ No newline at end of file diff --git a/docs/1.0.19-alpha/api/tskeywordsscope/index.html b/docs/1.0.19-alpha/api/tskeywordsscope/index.html index d1e71dd161..ab855f5067 100644 --- a/docs/1.0.19-alpha/api/tskeywordsscope/index.html +++ b/docs/1.0.19-alpha/api/tskeywordsscope/index.html @@ -7,13 +7,13 @@ - - + +
Version: 1.0.19-alpha

tsKeywordsScope

keywords​

  • keywords: {"any": "any", "bigint": "a bigint", "boolean": "a boolean", "false": "false", "never": "never", "null": "null", "number": "a number", "object": "an object", "string": "a string", "symbol": "a symbol", "true": "true", "unknown": "unknown", "void": "void", "undefined": "undefined"}

text​

NameTypeDescription
any anyany
bigint biginta bigint
boolean booleana boolean
false falsefalse
never nevernever
null nullnull
number numbera number
object objectan object
string stringa string
symbol symbola symbol
true truetrue
unknown unknownunknown
void voidvoid
undefined undefinedundefined
- - + + \ No newline at end of file diff --git a/docs/1.0.19-alpha/api/type/index.html b/docs/1.0.19-alpha/api/type/index.html index 0b7b4a12d6..245c875567 100644 --- a/docs/1.0.19-alpha/api/type/index.html +++ b/docs/1.0.19-alpha/api/type/index.html @@ -7,13 +7,13 @@ - - + +
Version: 1.0.19-alpha

type

text​

type: TypeParser<PrecompiledDefaults>

hide_table_of_contents: true​

Type

text​

export type Type<t = unknown> = defer<Checker<t> & TypeRoot<t>>
- - + + \ No newline at end of file diff --git a/docs/1.0.19-alpha/api/union/index.html b/docs/1.0.19-alpha/api/union/index.html index f25c22ffc2..1166172d77 100644 --- a/docs/1.0.19-alpha/api/union/index.html +++ b/docs/1.0.19-alpha/api/union/index.html @@ -7,13 +7,13 @@ - - + +
Version: 1.0.19-alpha

union

operator​

string​

  • "L|R"
  • const union = type("string|number")

tuple​

  • [L, "|" , R]
  • const tupleUnion = type(["string", "|", "number"])

helper​

  • union(L,R)
  • const helperUnion = union("string", "number")
- - + + \ No newline at end of file diff --git a/docs/1.0.19-alpha/api/validatebound/index.html b/docs/1.0.19-alpha/api/validatebound/index.html index 306bacbd2c..d114d20c1a 100644 --- a/docs/1.0.19-alpha/api/validatebound/index.html +++ b/docs/1.0.19-alpha/api/validatebound/index.html @@ -7,13 +7,13 @@ - - + +
Version: 1.0.19-alpha

validateBound

operator​

tableRow​

VariableDescription
Nnumber literal
Ssized data (a number, string or array)
<Comparator (one of <, <=, ==, >=, >)

description​

  • Bound operators allow data to be bounded in the format "S<N", or as a Range: "N<S<N", with comparators restricted to < or <=

string​

  • "N<S<N", with comparators restricted to < or <=
  • const range = type("2<=number<5")
  • const bound = type("string[]==5")
- - + + \ No newline at end of file diff --git a/docs/1.0.19-alpha/api/validatedivisor/index.html b/docs/1.0.19-alpha/api/validatedivisor/index.html index fc9a904375..eddf699d77 100644 --- a/docs/1.0.19-alpha/api/validatedivisor/index.html +++ b/docs/1.0.19-alpha/api/validatedivisor/index.html @@ -7,13 +7,13 @@ - - + +
Version: 1.0.19-alpha

validateDivisor

operator​

string​

  • "N%D", where "N" is a number and "D" is a non-zero integer
- - + + \ No newline at end of file diff --git a/docs/1.0.19-alpha/api/validationscope/index.html b/docs/1.0.19-alpha/api/validationscope/index.html index c27c978a42..4a1c12713a 100644 --- a/docs/1.0.19-alpha/api/validationscope/index.html +++ b/docs/1.0.19-alpha/api/validationscope/index.html @@ -7,13 +7,13 @@ - - + +
Version: 1.0.19-alpha

validationScope

keywords​

  • keywords: { "alpha": "only letters", "alphanumeric": "only letters and digits", "lowercase": "only lowercase letters", "uppercase": "only uppercase letters", "creditCard": "a valid credit card number", "email": "a valid email", "uuid": "a valid UUID", "parsedNumber": "a well-formed numeric string", "parsedInteger": "a well-formed integer string", "parsedDate": "a valid date", "semver": "a valid semantic version", "json": "a JSON-parsable string", "integer": "an integer"}

text​

NameTypeDescription
alpha stringonly letters
alphanumeric stringonly letters and digits
lowercase stringonly lowercase letters
uppercase stringonly uppercase letters
creditCard stringa valid credit card number
email stringa valid email
uuid stringa valid UUID
parsedNumber (In: string) => numbera well-formed numeric string
parsedInteger (In: string) => numbera well-formed integer string
parsedDate (In: string) => Datea valid date
semver stringa valid semantic version
json (In: string) => unknowna JSON-parsable string
integer numberan integer
- - + + \ No newline at end of file diff --git a/docs/1.0.19-alpha/api/valueof/index.html b/docs/1.0.19-alpha/api/valueof/index.html index ca6f2cb2ca..d22505e0b3 100644 --- a/docs/1.0.19-alpha/api/valueof/index.html +++ b/docs/1.0.19-alpha/api/valueof/index.html @@ -7,13 +7,13 @@ - - + +
Version: 1.0.19-alpha

valueOf

operator​

tuple​

  • ["===", T]
  • const tupleValueOf = type(["valueOf", {a:"string"}])

helper​

  • valueOf(T)
  • const helperValueOf = valueOf({a:"string"})
- - + + \ No newline at end of file diff --git a/docs/1.0.19-alpha/index.html b/docs/1.0.19-alpha/index.html index 726bce4ad2..2f1ab1c06d 100644 --- a/docs/1.0.19-alpha/index.html +++ b/docs/1.0.19-alpha/index.html @@ -7,13 +7,13 @@ - - + +
Version: 1.0.19-alpha

Getting Started

Install 📦12KB gzipped, 0 dependencies​

Npm Icon npm install arktype(or whatever package manager you prefer)

Our types are tested in strict-mode with TypeScript versions 4.8, 4.9, and 5.0.

Our APIs have mostly stabilized, but details may still change during the alpha/beta stages of our 1.0 release. If you have suggestions that may require a breaking change, now is the time to let us know! ⛵

Your first type​

- - + + \ No newline at end of file diff --git a/docs/1.0.19-alpha/scopes/index.html b/docs/1.0.19-alpha/scopes/index.html index bf2606892d..d990d2850b 100644 --- a/docs/1.0.19-alpha/scopes/index.html +++ b/docs/1.0.19-alpha/scopes/index.html @@ -7,13 +7,13 @@ - - + +
Version: 1.0.19-alpha

Scopes

- - + + \ No newline at end of file diff --git a/docs/1.0.20-alpha/api/ark/index.html b/docs/1.0.20-alpha/api/ark/index.html index eeb42d7e55..918ae81b9f 100644 --- a/docs/1.0.20-alpha/api/ark/index.html +++ b/docs/1.0.20-alpha/api/ark/index.html @@ -7,13 +7,13 @@ - - + +
Version: 1.0.20-alpha

ark

text​

ark: Space<PrecompiledDefaults>
- - + + \ No newline at end of file diff --git a/docs/1.0.20-alpha/api/arkscope/index.html b/docs/1.0.20-alpha/api/arkscope/index.html index 6768a25fa1..cead475054 100644 --- a/docs/1.0.20-alpha/api/arkscope/index.html +++ b/docs/1.0.20-alpha/api/arkscope/index.html @@ -7,13 +7,13 @@ - - + +
Version: 1.0.20-alpha

arkScope

text​

arkScope: import("./scope.js").Scope<
[
{
any: any
bigint: bigint
boolean: boolean
false: false
never: never
null: null
number: number
object: object
string: string
symbol: symbol
true: true
unknown: unknown
void: void
undefined: undefined
Function: (...args: any[]) => unknown
Date: Date
Error: Error
Map: Map<unknown, unknown>
RegExp: RegExp
Set: Set<unknown>
WeakMap: WeakMap<object, unknown>
WeakSet: WeakSet<object>
Promise: Promise<unknown>
alpha: string
alphanumeric: string
lowercase: string
uppercase: string
creditCard: string
email: string
uuid: string
parsedNumber: (In: string) => number
parsedInteger: (In: string) => number
parsedDate: (In: string) => Date
semver: string
json: (In: string) => unknown
integer: number
},
{},
false
]
>
- - + + \ No newline at end of file diff --git a/docs/1.0.20-alpha/api/arrayof/index.html b/docs/1.0.20-alpha/api/arrayof/index.html index 05cd90e857..da49c0f6c4 100644 --- a/docs/1.0.20-alpha/api/arrayof/index.html +++ b/docs/1.0.20-alpha/api/arrayof/index.html @@ -7,13 +7,13 @@ - - + +
Version: 1.0.20-alpha

arrayOf

operator​

string​

  • "T[]"
  • const numberArray = type("number[]")

tuple​

  • [T, "[]"]
  • const tupleArray = type(["number", "[]"])

helper​

  • arrayOf(T)
  • const helperArray = arrayOf("number")
- - + + \ No newline at end of file diff --git a/docs/1.0.20-alpha/api/index.html b/docs/1.0.20-alpha/api/index.html index 5c1460d23c..8a25c9aec8 100644 --- a/docs/1.0.20-alpha/api/index.html +++ b/docs/1.0.20-alpha/api/index.html @@ -7,13 +7,13 @@ - - + +
Version: 1.0.20-alpha

API

ArkType supports many of TypeScript's built-in types and operators, as well as some new ones dedicated exclusively to runtime validation. In fact, we got a little ahead of ourselves and built a ton of cool features, but we're still working on getting caught up syntax and API docs. Keep an eye out for more in the next couple weeks ⛵

In the meantime, check out the examples here and use the type hints you get to learn how you can customize your types and scopes. If you want to explore some of the more advanced features, take a look at our unit tests or ask us on Discord if your functionality is supported. If not, create a GitHub issue so we can prioritize it!

- - + + \ No newline at end of file diff --git a/docs/1.0.20-alpha/api/infer/index.html b/docs/1.0.20-alpha/api/infer/index.html index 71435540f1..75df050c4c 100644 --- a/docs/1.0.20-alpha/api/infer/index.html +++ b/docs/1.0.20-alpha/api/infer/index.html @@ -7,13 +7,13 @@ - - + +
Version: 1.0.20-alpha

Infer

text​

export type Infer<t> = {
[as]?: t
}
- - + + \ No newline at end of file diff --git a/docs/1.0.20-alpha/api/instanceof/index.html b/docs/1.0.20-alpha/api/instanceof/index.html index 91498d41e2..8f9097450d 100644 --- a/docs/1.0.20-alpha/api/instanceof/index.html +++ b/docs/1.0.20-alpha/api/instanceof/index.html @@ -7,13 +7,13 @@ - - + +
Version: 1.0.20-alpha

instanceOf

operator​

tuple​

  • ["instanceOf", T]
  • const tupleInstanceOf = type(["instanceOf", Date])

helper​

  • instanceOf(T)
  • const helperInstanceOf = instanceOf(Date)
- - + + \ No newline at end of file diff --git a/docs/1.0.20-alpha/api/intersection/index.html b/docs/1.0.20-alpha/api/intersection/index.html index b062118a85..6398d75c32 100644 --- a/docs/1.0.20-alpha/api/intersection/index.html +++ b/docs/1.0.20-alpha/api/intersection/index.html @@ -7,13 +7,13 @@ - - + +
Version: 1.0.20-alpha

intersection

operator​

string​

  • "L&R"
  • const intersection = type("/@arktype.io$/ & email")

tuple​

  • [L, "&", R]
  • const tupleIntersection = type(["/@arktype.io$/", "&", "email"])

helper​

  • intersection(L,R)
  • const helperIntersection = intersection("/@arktype.io$/","email")
- - + + \ No newline at end of file diff --git a/docs/1.0.20-alpha/api/jsobjectsscope/index.html b/docs/1.0.20-alpha/api/jsobjectsscope/index.html index a784c2cd29..130d30e007 100644 --- a/docs/1.0.20-alpha/api/jsobjectsscope/index.html +++ b/docs/1.0.20-alpha/api/jsobjectsscope/index.html @@ -7,13 +7,13 @@ - - + +
Version: 1.0.20-alpha

jsObjectsScope

text​

NameTypeDescription
Function (...args: any[]) => unknown
Date Date
Error Error
Map Map<unknown, unknown>
RegExp RegExp
Set Set<unknown>
WeakMap WeakMap<object, unknown>
WeakSet WeakSet<object>
Promise Promise<unknown>
- - + + \ No newline at end of file diff --git a/docs/1.0.20-alpha/api/keyof/index.html b/docs/1.0.20-alpha/api/keyof/index.html index cf53b15701..3d801ab154 100644 --- a/docs/1.0.20-alpha/api/keyof/index.html +++ b/docs/1.0.20-alpha/api/keyof/index.html @@ -7,13 +7,13 @@ - - + +
Version: 1.0.20-alpha

keyOf

operator​

tuple​

  • "["keyOf", T]"
  • const tupleKeyOf = type(["keyOf", {a:"string"}])

helper​

  • keyOf(T)
  • const helperKeyOf = keyOf({a:"string"})
- - + + \ No newline at end of file diff --git a/docs/1.0.20-alpha/api/keywords/index.html b/docs/1.0.20-alpha/api/keywords/index.html index 52e013445d..57cc0b7be2 100644 --- a/docs/1.0.20-alpha/api/keywords/index.html +++ b/docs/1.0.20-alpha/api/keywords/index.html @@ -7,13 +7,13 @@ - - + +
Version: 1.0.20-alpha

Keywords

jsObjectsScope​

NameTypeDescription
Function (...args: any[]) => unknown
Date Date
Error Error
Map Map<unknown, unknown>
RegExp RegExp
Set Set<unknown>
WeakMap WeakMap<object, unknown>
WeakSet WeakSet<object>
Promise Promise<unknown>

tsKeywordsScope​

NameTypeDescription
any anyany
bigint biginta bigint
boolean booleana boolean
false falsefalse
never nevernever
null nullnull
number numbera number
object objectan object
string stringa string
symbol symbola symbol
true truetrue
unknown unknownunknown
void voidvoid
undefined undefinedundefined

validationScope​

NameTypeDescription
alpha stringonly letters
alphanumeric stringonly letters and digits
lowercase stringonly lowercase letters
uppercase stringonly uppercase letters
creditCard stringa valid credit card number
email stringa valid email
uuid stringa valid UUID
parsedNumber (In: string) => numbera well-formed numeric string
parsedInteger (In: string) => numbera well-formed integer string
parsedDate (In: string) => Datea valid date
semver stringa valid semantic version
json (In: string) => unknowna JSON-parsable string
integer numberan integer
- - + + \ No newline at end of file diff --git a/docs/1.0.20-alpha/api/morph/index.html b/docs/1.0.20-alpha/api/morph/index.html index e0b971548f..d008738804 100644 --- a/docs/1.0.20-alpha/api/morph/index.html +++ b/docs/1.0.20-alpha/api/morph/index.html @@ -7,13 +7,13 @@ - - + +
Version: 1.0.20-alpha

morph

operator​

tuple​

  • [inputType, "|>", (data) => output]
  • const tupleMorph = type( ["string", "|>" , (data) => `morphed ${data}`])

helper​

  • morph(inputType, (data) => output)
  • const helperMorph = morph("string", (data) => `morphed ${data}`)
- - + + \ No newline at end of file diff --git a/docs/1.0.20-alpha/api/narrow/index.html b/docs/1.0.20-alpha/api/narrow/index.html index 6068f6625b..1f6d80743b 100644 --- a/docs/1.0.20-alpha/api/narrow/index.html +++ b/docs/1.0.20-alpha/api/narrow/index.html @@ -7,13 +7,13 @@ - - + +
Version: 1.0.20-alpha

narrow

operator​

tuple​

  • ["type", "=>" , condition]
  • const narrow = type( ["number", "=>" , (n) => n % 2 === 0])

example​

  •      const isEven = (x: unknown): x is number => x % 2 === 0
- - + + \ No newline at end of file diff --git a/docs/1.0.20-alpha/api/operators/index.html b/docs/1.0.20-alpha/api/operators/index.html index b9ac2cd668..a7d27b41e9 100644 --- a/docs/1.0.20-alpha/api/operators/index.html +++ b/docs/1.0.20-alpha/api/operators/index.html @@ -7,13 +7,13 @@ - - + +
Version: 1.0.20-alpha

Operators

Operating Table​

operatorstringtuplehelper
arrayOf"T[]"[T, "[]"]arrayOf(T)
instanceOf["instanceOf", T]instanceOf(T)
&"L&R"[L, "&", R]intersection(L,R)
keyOf"["keyOf", T]"keyOf(T)
|>[inputType, "|>", (data) => output]morph(inputType, (data) => output)
=>["type", "=>" , condition]
|"L|R"[L, "|" , R]union(L,R)
===["===", T]valueOf(T)
:["type", ":", config]
bound"N<S<N", with comparators restricted to < or <=
%"N%D", where "N" is a number and "D" is a non-zero integer
node["node", nodeDefinition]type.from(nodeDefinition)
- - + + \ No newline at end of file diff --git a/docs/1.0.20-alpha/api/parseconfigtuple/index.html b/docs/1.0.20-alpha/api/parseconfigtuple/index.html index e01bc424c0..be515a496c 100644 --- a/docs/1.0.20-alpha/api/parseconfigtuple/index.html +++ b/docs/1.0.20-alpha/api/parseconfigtuple/index.html @@ -7,13 +7,13 @@ - - + +
Version: 1.0.20-alpha

parseConfigTuple

operator​

tuple​

  • ["type", ":", config]
- - + + \ No newline at end of file diff --git a/docs/1.0.20-alpha/api/problem/index.html b/docs/1.0.20-alpha/api/problem/index.html index d65dc69d51..3f47fa0082 100644 --- a/docs/1.0.20-alpha/api/problem/index.html +++ b/docs/1.0.20-alpha/api/problem/index.html @@ -7,13 +7,13 @@ - - + +
Version: 1.0.20-alpha

Problem

text​

export declare class Problem<code extends ProblemCode = ProblemCode> {
code: code
path: Path
private data
private source
private writers
parts?: Problem[]
constructor(
code: code,
path: Path,
data: ProblemData<code>,
source: ProblemSource<code>,
writers: ProblemWriters<code>
)
toString(): string
get message(): string
get reason(): string
get mustBe(): string
}
- - + + \ No newline at end of file diff --git a/docs/1.0.20-alpha/api/problems/index.html b/docs/1.0.20-alpha/api/problems/index.html index 7658011759..634e40fdde 100644 --- a/docs/1.0.20-alpha/api/problems/index.html +++ b/docs/1.0.20-alpha/api/problems/index.html @@ -7,13 +7,13 @@ - - + +
Version: 1.0.20-alpha

Problems

text​

Problems: new (state: TraversalState) => Problems
export type Problems = arraySubclassToReadonly<ProblemArray>;
- - + + \ No newline at end of file diff --git a/docs/1.0.20-alpha/api/resolvednode/index.html b/docs/1.0.20-alpha/api/resolvednode/index.html index cabb111867..86a9fd8050 100644 --- a/docs/1.0.20-alpha/api/resolvednode/index.html +++ b/docs/1.0.20-alpha/api/resolvednode/index.html @@ -7,13 +7,13 @@ - - + +
- - + + \ No newline at end of file diff --git a/docs/1.0.20-alpha/api/scope/index.html b/docs/1.0.20-alpha/api/scope/index.html index 9d6f00d802..21e2aad218 100644 --- a/docs/1.0.20-alpha/api/scope/index.html +++ b/docs/1.0.20-alpha/api/scope/index.html @@ -7,13 +7,13 @@ - - + +
Version: 1.0.20-alpha

scope

text​

scope: ScopeParser

hide_table_of_contents: true​

Scope

text​

export declare class Scope<context extends ScopeContext = any> {
#private
aliases: Dict
name: string
config: ScopeConfig
parseCache: FreezingCache<Node>
constructor(aliases: Dict, opts?: ScopeOptions)
getAnonymousQualifiedName(base: AnonymousTypeName): QualifiedTypeName
addAnonymousTypeReference(referencedType: Type, ctx: ParseContext): Node
get infer(): exportsOf<context>
compile(): Space<exportsOf<context>>
addParsedReferenceIfResolvable(
name: name<context>,
ctx: ParseContext
): boolean
resolve(name: name<context>): Type
resolveNode(node: Node): ResolvedNode
resolveTypeNode(node: Node): TypeNode
expressions: Expressions<resolutions<context>>
intersection: import("./expressions.js").BinaryExpressionParser<
resolutions<context>,
"&"
>
union: import("./expressions.js").BinaryExpressionParser<
resolutions<context>,
"|"
>
arrayOf: import("./expressions.js").UnaryExpressionParser<
resolutions<context>,
"[]"
>
keyOf: import("./expressions.js").UnaryExpressionParser<
resolutions<context>,
"keyof"
>
valueOf: import("./expressions.js").UnvalidatedExpressionParser<
resolutions<context>,
"==="
>
instanceOf: import("./expressions.js").UnvalidatedExpressionParser<
resolutions<context>,
"instanceof"
>
narrow: import("./expressions.js").FunctionalExpressionParser<
resolutions<context>,
"=>"
>
morph: import("./expressions.js").FunctionalExpressionParser<
resolutions<context>,
"|>"
>
type: TypeParser<resolutions<context>>
isResolvable(name: string): unknown
}
- - + + \ No newline at end of file diff --git a/docs/1.0.20-alpha/api/space/index.html b/docs/1.0.20-alpha/api/space/index.html index 7d4a44886f..8702844f59 100644 --- a/docs/1.0.20-alpha/api/space/index.html +++ b/docs/1.0.20-alpha/api/space/index.html @@ -7,13 +7,13 @@ - - + +
Version: 1.0.20-alpha

Space

text​

export type Space<exports = Dict> = {
[k in keyof exports]: Type<exports[k]>
}
- - + + \ No newline at end of file diff --git a/docs/1.0.20-alpha/api/tskeywordsscope/index.html b/docs/1.0.20-alpha/api/tskeywordsscope/index.html index 9381cb2ebc..c082b3cf88 100644 --- a/docs/1.0.20-alpha/api/tskeywordsscope/index.html +++ b/docs/1.0.20-alpha/api/tskeywordsscope/index.html @@ -7,13 +7,13 @@ - - + +
Version: 1.0.20-alpha

tsKeywordsScope

keywords​

  • keywords: {"any": "any", "bigint": "a bigint", "boolean": "a boolean", "false": "false", "never": "never", "null": "null", "number": "a number", "object": "an object", "string": "a string", "symbol": "a symbol", "true": "true", "unknown": "unknown", "void": "void", "undefined": "undefined"}

text​

NameTypeDescription
any anyany
bigint biginta bigint
boolean booleana boolean
false falsefalse
never nevernever
null nullnull
number numbera number
object objectan object
string stringa string
symbol symbola symbol
true truetrue
unknown unknownunknown
void voidvoid
undefined undefinedundefined
- - + + \ No newline at end of file diff --git a/docs/1.0.20-alpha/api/type/index.html b/docs/1.0.20-alpha/api/type/index.html index e3889e3fbc..82e8754b44 100644 --- a/docs/1.0.20-alpha/api/type/index.html +++ b/docs/1.0.20-alpha/api/type/index.html @@ -7,13 +7,13 @@ - - + +
Version: 1.0.20-alpha

type

text​

type: TypeParser<PrecompiledDefaults>

hide_table_of_contents: true​

Type

text​

export type Type<t = unknown> = defer<Checker<t> & TypeRoot<t>>
- - + + \ No newline at end of file diff --git a/docs/1.0.20-alpha/api/union/index.html b/docs/1.0.20-alpha/api/union/index.html index d5c5c7df62..5439429689 100644 --- a/docs/1.0.20-alpha/api/union/index.html +++ b/docs/1.0.20-alpha/api/union/index.html @@ -7,13 +7,13 @@ - - + +
Version: 1.0.20-alpha

union

operator​

string​

  • "L|R"
  • const union = type("string|number")

tuple​

  • [L, "|" , R]
  • const tupleUnion = type(["string", "|", "number"])

helper​

  • union(L,R)
  • const helperUnion = union("string", "number")
- - + + \ No newline at end of file diff --git a/docs/1.0.20-alpha/api/validatebound/index.html b/docs/1.0.20-alpha/api/validatebound/index.html index 24e0131961..f57ccf37b5 100644 --- a/docs/1.0.20-alpha/api/validatebound/index.html +++ b/docs/1.0.20-alpha/api/validatebound/index.html @@ -7,13 +7,13 @@ - - + +
Version: 1.0.20-alpha

validateBound

operator​

tableRow​

VariableDescription
Nnumber literal
Ssized data (a number, string or array)
<Comparator (one of <, <=, ==, >=, >)

description​

  • Bound operators allow data to be bounded in the format "S<N", or as a Range: "N<S<N", with comparators restricted to < or <=

string​

  • "N<S<N", with comparators restricted to < or <=
  • const range = type("2<=number<5")
  • const bound = type("string[]==5")
- - + + \ No newline at end of file diff --git a/docs/1.0.20-alpha/api/validatedivisor/index.html b/docs/1.0.20-alpha/api/validatedivisor/index.html index 15204090b0..ec0409d841 100644 --- a/docs/1.0.20-alpha/api/validatedivisor/index.html +++ b/docs/1.0.20-alpha/api/validatedivisor/index.html @@ -7,13 +7,13 @@ - - + +
Version: 1.0.20-alpha

validateDivisor

operator​

string​

  • "N%D", where "N" is a number and "D" is a non-zero integer
- - + + \ No newline at end of file diff --git a/docs/1.0.20-alpha/api/validationscope/index.html b/docs/1.0.20-alpha/api/validationscope/index.html index 20c8193e0b..8c7c909245 100644 --- a/docs/1.0.20-alpha/api/validationscope/index.html +++ b/docs/1.0.20-alpha/api/validationscope/index.html @@ -7,13 +7,13 @@ - - + +
Version: 1.0.20-alpha

validationScope

keywords​

  • keywords: { "alpha": "only letters", "alphanumeric": "only letters and digits", "lowercase": "only lowercase letters", "uppercase": "only uppercase letters", "creditCard": "a valid credit card number", "email": "a valid email", "uuid": "a valid UUID", "parsedNumber": "a well-formed numeric string", "parsedInteger": "a well-formed integer string", "parsedDate": "a valid date", "semver": "a valid semantic version", "json": "a JSON-parsable string", "integer": "an integer"}

text​

NameTypeDescription
alpha stringonly letters
alphanumeric stringonly letters and digits
lowercase stringonly lowercase letters
uppercase stringonly uppercase letters
creditCard stringa valid credit card number
email stringa valid email
uuid stringa valid UUID
parsedNumber (In: string) => numbera well-formed numeric string
parsedInteger (In: string) => numbera well-formed integer string
parsedDate (In: string) => Datea valid date
semver stringa valid semantic version
json (In: string) => unknowna JSON-parsable string
integer numberan integer
- - + + \ No newline at end of file diff --git a/docs/1.0.20-alpha/api/valueof/index.html b/docs/1.0.20-alpha/api/valueof/index.html index cad424e7fd..13b94b7086 100644 --- a/docs/1.0.20-alpha/api/valueof/index.html +++ b/docs/1.0.20-alpha/api/valueof/index.html @@ -7,13 +7,13 @@ - - + +
Version: 1.0.20-alpha

valueOf

operator​

tuple​

  • ["===", T]
  • const tupleValueOf = type(["valueOf", {a:"string"}])

helper​

  • valueOf(T)
  • const helperValueOf = valueOf({a:"string"})
- - + + \ No newline at end of file diff --git a/docs/1.0.20-alpha/index.html b/docs/1.0.20-alpha/index.html index 390f9aec9f..f2cdbeb511 100644 --- a/docs/1.0.20-alpha/index.html +++ b/docs/1.0.20-alpha/index.html @@ -7,13 +7,13 @@ - - + +
Version: 1.0.20-alpha

Getting Started

Install 📦12KB gzipped, 0 dependencies​

Npm Icon npm install arktype(or whatever package manager you prefer)

Our types are tested in strict-mode with TypeScript versions 4.8, 4.9, and 5.0.

Our APIs have mostly stabilized, but details may still change during the alpha/beta stages of our 1.0 release. If you have suggestions that may require a breaking change, now is the time to let us know! ⛵

Your first type​

- - + + \ No newline at end of file diff --git a/docs/1.0.20-alpha/scopes/index.html b/docs/1.0.20-alpha/scopes/index.html index 37e0f0e69b..ac23843d18 100644 --- a/docs/1.0.20-alpha/scopes/index.html +++ b/docs/1.0.20-alpha/scopes/index.html @@ -7,13 +7,13 @@ - - + +
Version: 1.0.20-alpha

Scopes

- - + + \ No newline at end of file diff --git a/docs/1.0.21-alpha/api/ark/index.html b/docs/1.0.21-alpha/api/ark/index.html index f861121d22..30d83c46ad 100644 --- a/docs/1.0.21-alpha/api/ark/index.html +++ b/docs/1.0.21-alpha/api/ark/index.html @@ -7,13 +7,13 @@ - - + +
Version: 1.0.21-alpha

ark

text​

ark: Space<PrecompiledDefaults>
- - + + \ No newline at end of file diff --git a/docs/1.0.21-alpha/api/arkscope/index.html b/docs/1.0.21-alpha/api/arkscope/index.html index 48962a1771..865203b6c9 100644 --- a/docs/1.0.21-alpha/api/arkscope/index.html +++ b/docs/1.0.21-alpha/api/arkscope/index.html @@ -7,13 +7,13 @@ - - + +
Version: 1.0.21-alpha

arkScope

text​

arkScope: import("./scope.js").Scope<
[
{
any: any
bigint: bigint
boolean: boolean
false: false
never: never
null: null
number: number
object: object
string: string
symbol: symbol
true: true
unknown: unknown
void: void
undefined: undefined
Function: (...args: any[]) => unknown
Date: Date
Error: Error
Map: Map<unknown, unknown>
RegExp: RegExp
Set: Set<unknown>
WeakMap: WeakMap<object, unknown>
WeakSet: WeakSet<object>
Promise: Promise<unknown>
alpha: string
alphanumeric: string
lowercase: string
uppercase: string
creditCard: string
email: string
uuid: string
parsedNumber: (In: string) => number
parsedInteger: (In: string) => number
parsedDate: (In: string) => Date
semver: string
json: (In: string) => unknown
integer: number
},
{},
false
]
>
- - + + \ No newline at end of file diff --git a/docs/1.0.21-alpha/api/arrayof/index.html b/docs/1.0.21-alpha/api/arrayof/index.html index 0a07ef42c8..76bc4ccba8 100644 --- a/docs/1.0.21-alpha/api/arrayof/index.html +++ b/docs/1.0.21-alpha/api/arrayof/index.html @@ -7,13 +7,13 @@ - - + +
Version: 1.0.21-alpha

arrayOf

operator​

string​

  • "T[]"
  • const numberArray = type("number[]")

tuple​

  • [T, "[]"]
  • const tupleArray = type(["number", "[]"])

helper​

  • arrayOf(T)
  • const helperArray = arrayOf("number")
- - + + \ No newline at end of file diff --git a/docs/1.0.21-alpha/api/index.html b/docs/1.0.21-alpha/api/index.html index 922bc91fc0..153fd39006 100644 --- a/docs/1.0.21-alpha/api/index.html +++ b/docs/1.0.21-alpha/api/index.html @@ -7,13 +7,13 @@ - - + +
Version: 1.0.21-alpha

API

ArkType supports many of TypeScript's built-in types and operators, as well as some new ones dedicated exclusively to runtime validation. In fact, we got a little ahead of ourselves and built a ton of cool features, but we're still working on getting caught up syntax and API docs. Keep an eye out for more in the next couple weeks ⛵

In the meantime, check out the examples here and use the type hints you get to learn how you can customize your types and scopes. If you want to explore some of the more advanced features, take a look at our unit tests or ask us on Discord if your functionality is supported. If not, create a GitHub issue so we can prioritize it!

- - + + \ No newline at end of file diff --git a/docs/1.0.21-alpha/api/infer/index.html b/docs/1.0.21-alpha/api/infer/index.html index 0b1c513366..e4a1440428 100644 --- a/docs/1.0.21-alpha/api/infer/index.html +++ b/docs/1.0.21-alpha/api/infer/index.html @@ -7,13 +7,13 @@ - - + +
Version: 1.0.21-alpha

Infer

text​

export type Infer<t> = {
[as]?: t
}
- - + + \ No newline at end of file diff --git a/docs/1.0.21-alpha/api/instanceof/index.html b/docs/1.0.21-alpha/api/instanceof/index.html index 617f783caa..2bd6dff668 100644 --- a/docs/1.0.21-alpha/api/instanceof/index.html +++ b/docs/1.0.21-alpha/api/instanceof/index.html @@ -7,13 +7,13 @@ - - + +
Version: 1.0.21-alpha

instanceOf

operator​

tuple​

  • ["instanceOf", T]
  • const tupleInstanceOf = type(["instanceOf", Date])

helper​

  • instanceOf(T)
  • const helperInstanceOf = instanceOf(Date)
- - + + \ No newline at end of file diff --git a/docs/1.0.21-alpha/api/intersection/index.html b/docs/1.0.21-alpha/api/intersection/index.html index 4adabe716d..fdcc3f2ec7 100644 --- a/docs/1.0.21-alpha/api/intersection/index.html +++ b/docs/1.0.21-alpha/api/intersection/index.html @@ -7,13 +7,13 @@ - - + +
Version: 1.0.21-alpha

intersection

operator​

string​

  • "L&R"
  • const intersection = type("/@arktype.io$/ & email")

tuple​

  • [L, "&", R]
  • const tupleIntersection = type(["/@arktype.io$/", "&", "email"])

helper​

  • intersection(L,R)
  • const helperIntersection = intersection("/@arktype.io$/","email")
- - + + \ No newline at end of file diff --git a/docs/1.0.21-alpha/api/jsobjectsscope/index.html b/docs/1.0.21-alpha/api/jsobjectsscope/index.html index 79a14f529e..f104c4b785 100644 --- a/docs/1.0.21-alpha/api/jsobjectsscope/index.html +++ b/docs/1.0.21-alpha/api/jsobjectsscope/index.html @@ -7,13 +7,13 @@ - - + +
Version: 1.0.21-alpha

jsObjectsScope

text​

NameTypeDescription
Function (...args: any[]) => unknown
Date Date
Error Error
Map Map<unknown, unknown>
RegExp RegExp
Set Set<unknown>
WeakMap WeakMap<object, unknown>
WeakSet WeakSet<object>
Promise Promise<unknown>
- - + + \ No newline at end of file diff --git a/docs/1.0.21-alpha/api/keyof/index.html b/docs/1.0.21-alpha/api/keyof/index.html index 3e886f3dfd..06bbdc65b0 100644 --- a/docs/1.0.21-alpha/api/keyof/index.html +++ b/docs/1.0.21-alpha/api/keyof/index.html @@ -7,13 +7,13 @@ - - + +
Version: 1.0.21-alpha

keyOf

operator​

tuple​

  • "["keyOf", T]"
  • const tupleKeyOf = type(["keyOf", {a:"string"}])

helper​

  • keyOf(T)
  • const helperKeyOf = keyOf({a:"string"})
- - + + \ No newline at end of file diff --git a/docs/1.0.21-alpha/api/keywords/index.html b/docs/1.0.21-alpha/api/keywords/index.html index 3c106cfc5e..424c20d9c9 100644 --- a/docs/1.0.21-alpha/api/keywords/index.html +++ b/docs/1.0.21-alpha/api/keywords/index.html @@ -7,13 +7,13 @@ - - + +
Version: 1.0.21-alpha

Keywords

jsObjectsScope​

NameTypeDescription
Function (...args: any[]) => unknown
Date Date
Error Error
Map Map<unknown, unknown>
RegExp RegExp
Set Set<unknown>
WeakMap WeakMap<object, unknown>
WeakSet WeakSet<object>
Promise Promise<unknown>

tsKeywordsScope​

NameTypeDescription
any anyany
bigint biginta bigint
boolean booleana boolean
false falsefalse
never nevernever
null nullnull
number numbera number
object objectan object
string stringa string
symbol symbola symbol
true truetrue
unknown unknownunknown
void voidvoid
undefined undefinedundefined

validationScope​

NameTypeDescription
alpha stringonly letters
alphanumeric stringonly letters and digits
lowercase stringonly lowercase letters
uppercase stringonly uppercase letters
creditCard stringa valid credit card number
email stringa valid email
uuid stringa valid UUID
parsedNumber (In: string) => numbera well-formed numeric string
parsedInteger (In: string) => numbera well-formed integer string
parsedDate (In: string) => Datea valid date
semver stringa valid semantic version
json (In: string) => unknowna JSON-parsable string
integer numberan integer
- - + + \ No newline at end of file diff --git a/docs/1.0.21-alpha/api/morph/index.html b/docs/1.0.21-alpha/api/morph/index.html index 5bf7366afd..df55d023df 100644 --- a/docs/1.0.21-alpha/api/morph/index.html +++ b/docs/1.0.21-alpha/api/morph/index.html @@ -7,13 +7,13 @@ - - + +
Version: 1.0.21-alpha

morph

operator​

tuple​

  • [inputType, "|>", (data) => output]
  • const tupleMorph = type( ["string", "|>" , (data) => `morphed ${data}`])

helper​

  • morph(inputType, (data) => output)
  • const helperMorph = morph("string", (data) => `morphed ${data}`)
- - + + \ No newline at end of file diff --git a/docs/1.0.21-alpha/api/narrow/index.html b/docs/1.0.21-alpha/api/narrow/index.html index 58ca52d76a..37395d25d5 100644 --- a/docs/1.0.21-alpha/api/narrow/index.html +++ b/docs/1.0.21-alpha/api/narrow/index.html @@ -7,13 +7,13 @@ - - + +
Version: 1.0.21-alpha

narrow

operator​

tuple​

  • ["type", "=>" , condition]
  • const narrow = type( ["number", "=>" , (n) => n % 2 === 0])

example​

  •      const isEven = (x: unknown): x is number => x % 2 === 0
- - + + \ No newline at end of file diff --git a/docs/1.0.21-alpha/api/operators/index.html b/docs/1.0.21-alpha/api/operators/index.html index 995832b224..c157580947 100644 --- a/docs/1.0.21-alpha/api/operators/index.html +++ b/docs/1.0.21-alpha/api/operators/index.html @@ -7,13 +7,13 @@ - - + +
Version: 1.0.21-alpha

Operators

Operating Table​

operatorstringtuplehelper
arrayOf"T[]"[T, "[]"]arrayOf(T)
instanceOf["instanceOf", T]instanceOf(T)
&"L&R"[L, "&", R]intersection(L,R)
keyOf"["keyOf", T]"keyOf(T)
|>[inputType, "|>", (data) => output]morph(inputType, (data) => output)
=>["type", "=>" , condition]
|"L|R"[L, "|" , R]union(L,R)
===["===", T]valueOf(T)
:["type", ":", config]
bound"N<S<N", with comparators restricted to < or <=
%"N%D", where "N" is a number and "D" is a non-zero integer
node["node", nodeDefinition]type.from(nodeDefinition)
- - + + \ No newline at end of file diff --git a/docs/1.0.21-alpha/api/parseconfigtuple/index.html b/docs/1.0.21-alpha/api/parseconfigtuple/index.html index a7a7814309..57d60184b4 100644 --- a/docs/1.0.21-alpha/api/parseconfigtuple/index.html +++ b/docs/1.0.21-alpha/api/parseconfigtuple/index.html @@ -7,13 +7,13 @@ - - + +
Version: 1.0.21-alpha

parseConfigTuple

operator​

tuple​

  • ["type", ":", config]
- - + + \ No newline at end of file diff --git a/docs/1.0.21-alpha/api/problem/index.html b/docs/1.0.21-alpha/api/problem/index.html index d7aaea65a7..b203fadba4 100644 --- a/docs/1.0.21-alpha/api/problem/index.html +++ b/docs/1.0.21-alpha/api/problem/index.html @@ -7,13 +7,13 @@ - - + +
Version: 1.0.21-alpha

Problem

text​

export declare class Problem<code extends ProblemCode = ProblemCode> {
code: code
path: Path
private data
private source
private writers
parts?: Problem[]
constructor(
code: code,
path: Path,
data: ProblemData<code>,
source: ProblemSource<code>,
writers: ProblemWriters<code>
)
toString(): string
get message(): string
get reason(): string
get mustBe(): string
}
- - + + \ No newline at end of file diff --git a/docs/1.0.21-alpha/api/problems/index.html b/docs/1.0.21-alpha/api/problems/index.html index 53f1d3e3a5..eedfc78f28 100644 --- a/docs/1.0.21-alpha/api/problems/index.html +++ b/docs/1.0.21-alpha/api/problems/index.html @@ -7,13 +7,13 @@ - - + +
Version: 1.0.21-alpha

Problems

text​

Problems: new (state: TraversalState) => Problems
export type Problems = arraySubclassToReadonly<ProblemArray>;
- - + + \ No newline at end of file diff --git a/docs/1.0.21-alpha/api/resolvednode/index.html b/docs/1.0.21-alpha/api/resolvednode/index.html index b8af764802..370eb779df 100644 --- a/docs/1.0.21-alpha/api/resolvednode/index.html +++ b/docs/1.0.21-alpha/api/resolvednode/index.html @@ -7,13 +7,13 @@ - - + +
- - + + \ No newline at end of file diff --git a/docs/1.0.21-alpha/api/scope/index.html b/docs/1.0.21-alpha/api/scope/index.html index 224e0b607e..3e7d3b955c 100644 --- a/docs/1.0.21-alpha/api/scope/index.html +++ b/docs/1.0.21-alpha/api/scope/index.html @@ -7,13 +7,13 @@ - - + +
Version: 1.0.21-alpha

scope

text​

scope: ScopeParser

hide_table_of_contents: true​

Scope

text​

export declare class Scope<context extends ScopeContext = any> {
#private
aliases: Dict
name: string
config: ScopeConfig
parseCache: FreezingCache<Node>
constructor(aliases: Dict, opts?: ScopeOptions)
getAnonymousQualifiedName(base: AnonymousTypeName): QualifiedTypeName
addAnonymousTypeReference(referencedType: Type, ctx: ParseContext): Node
get infer(): exportsOf<context>
compile(): Space<exportsOf<context>>
addParsedReferenceIfResolvable(
name: name<context>,
ctx: ParseContext
): boolean
resolve(name: name<context>): Type
resolveNode(node: Node): ResolvedNode
resolveTypeNode(node: Node): TypeNode
expressions: Expressions<resolutions<context>>
intersection: import("./expressions.js").BinaryExpressionParser<
resolutions<context>,
"&"
>
union: import("./expressions.js").BinaryExpressionParser<
resolutions<context>,
"|"
>
arrayOf: import("./expressions.js").UnaryExpressionParser<
resolutions<context>,
"[]"
>
keyOf: import("./expressions.js").UnaryExpressionParser<
resolutions<context>,
"keyof"
>
valueOf: import("./expressions.js").UnvalidatedExpressionParser<
resolutions<context>,
"==="
>
instanceOf: import("./expressions.js").UnvalidatedExpressionParser<
resolutions<context>,
"instanceof"
>
narrow: import("./expressions.js").FunctionalExpressionParser<
resolutions<context>,
"=>"
>
morph: import("./expressions.js").FunctionalExpressionParser<
resolutions<context>,
"|>"
>
type: TypeParser<resolutions<context>>
isResolvable(name: string): unknown
}
- - + + \ No newline at end of file diff --git a/docs/1.0.21-alpha/api/space/index.html b/docs/1.0.21-alpha/api/space/index.html index 8b15b47017..5e999326e0 100644 --- a/docs/1.0.21-alpha/api/space/index.html +++ b/docs/1.0.21-alpha/api/space/index.html @@ -7,13 +7,13 @@ - - + +
Version: 1.0.21-alpha

Space

text​

export type Space<exports = Dict> = {
[k in keyof exports]: Type<exports[k]>
}
- - + + \ No newline at end of file diff --git a/docs/1.0.21-alpha/api/tskeywordsscope/index.html b/docs/1.0.21-alpha/api/tskeywordsscope/index.html index 6bd4fb7411..42f465069a 100644 --- a/docs/1.0.21-alpha/api/tskeywordsscope/index.html +++ b/docs/1.0.21-alpha/api/tskeywordsscope/index.html @@ -7,13 +7,13 @@ - - + +
Version: 1.0.21-alpha

tsKeywordsScope

keywords​

  • keywords: {"any": "any", "bigint": "a bigint", "boolean": "a boolean", "false": "false", "never": "never", "null": "null", "number": "a number", "object": "an object", "string": "a string", "symbol": "a symbol", "true": "true", "unknown": "unknown", "void": "void", "undefined": "undefined"}

text​

NameTypeDescription
any anyany
bigint biginta bigint
boolean booleana boolean
false falsefalse
never nevernever
null nullnull
number numbera number
object objectan object
string stringa string
symbol symbola symbol
true truetrue
unknown unknownunknown
void voidvoid
undefined undefinedundefined
- - + + \ No newline at end of file diff --git a/docs/1.0.21-alpha/api/type/index.html b/docs/1.0.21-alpha/api/type/index.html index d32dd538cb..947dadbe1f 100644 --- a/docs/1.0.21-alpha/api/type/index.html +++ b/docs/1.0.21-alpha/api/type/index.html @@ -7,13 +7,13 @@ - - + +
Version: 1.0.21-alpha

type

text​

type: TypeParser<PrecompiledDefaults>

hide_table_of_contents: true​

Type

text​

export type Type<t = unknown> = defer<Checker<t> & TypeRoot<t>>
- - + + \ No newline at end of file diff --git a/docs/1.0.21-alpha/api/union/index.html b/docs/1.0.21-alpha/api/union/index.html index 1539c23575..bc51577385 100644 --- a/docs/1.0.21-alpha/api/union/index.html +++ b/docs/1.0.21-alpha/api/union/index.html @@ -7,13 +7,13 @@ - - + +
Version: 1.0.21-alpha

union

operator​

string​

  • "L|R"
  • const union = type("string|number")

tuple​

  • [L, "|" , R]
  • const tupleUnion = type(["string", "|", "number"])

helper​

  • union(L,R)
  • const helperUnion = union("string", "number")
- - + + \ No newline at end of file diff --git a/docs/1.0.21-alpha/api/validatebound/index.html b/docs/1.0.21-alpha/api/validatebound/index.html index 355a5eec4d..5b067c5be6 100644 --- a/docs/1.0.21-alpha/api/validatebound/index.html +++ b/docs/1.0.21-alpha/api/validatebound/index.html @@ -7,13 +7,13 @@ - - + +
Version: 1.0.21-alpha

validateBound

operator​

tableRow​

VariableDescription
Nnumber literal
Ssized data (a number, string or array)
<Comparator (one of <, <=, ==, >=, >)

description​

  • Bound operators allow data to be bounded in the format "S<N", or as a Range: "N<S<N", with comparators restricted to < or <=

string​

  • "N<S<N", with comparators restricted to < or <=
  • const range = type("2<=number<5")
  • const bound = type("string[]==5")
- - + + \ No newline at end of file diff --git a/docs/1.0.21-alpha/api/validatedivisor/index.html b/docs/1.0.21-alpha/api/validatedivisor/index.html index af3b0e673e..621801c009 100644 --- a/docs/1.0.21-alpha/api/validatedivisor/index.html +++ b/docs/1.0.21-alpha/api/validatedivisor/index.html @@ -7,13 +7,13 @@ - - + +
Version: 1.0.21-alpha

validateDivisor

operator​

string​

  • "N%D", where "N" is a number and "D" is a non-zero integer
- - + + \ No newline at end of file diff --git a/docs/1.0.21-alpha/api/validationscope/index.html b/docs/1.0.21-alpha/api/validationscope/index.html index 8c1a311f34..41a748df09 100644 --- a/docs/1.0.21-alpha/api/validationscope/index.html +++ b/docs/1.0.21-alpha/api/validationscope/index.html @@ -7,13 +7,13 @@ - - + +
Version: 1.0.21-alpha

validationScope

keywords​

  • keywords: { "alpha": "only letters", "alphanumeric": "only letters and digits", "lowercase": "only lowercase letters", "uppercase": "only uppercase letters", "creditCard": "a valid credit card number", "email": "a valid email", "uuid": "a valid UUID", "parsedNumber": "a well-formed numeric string", "parsedInteger": "a well-formed integer string", "parsedDate": "a valid date", "semver": "a valid semantic version", "json": "a JSON-parsable string", "integer": "an integer"}

text​

NameTypeDescription
alpha stringonly letters
alphanumeric stringonly letters and digits
lowercase stringonly lowercase letters
uppercase stringonly uppercase letters
creditCard stringa valid credit card number
email stringa valid email
uuid stringa valid UUID
parsedNumber (In: string) => numbera well-formed numeric string
parsedInteger (In: string) => numbera well-formed integer string
parsedDate (In: string) => Datea valid date
semver stringa valid semantic version
json (In: string) => unknowna JSON-parsable string
integer numberan integer
- - + + \ No newline at end of file diff --git a/docs/1.0.21-alpha/api/valueof/index.html b/docs/1.0.21-alpha/api/valueof/index.html index 91dfe0298c..c6277a4808 100644 --- a/docs/1.0.21-alpha/api/valueof/index.html +++ b/docs/1.0.21-alpha/api/valueof/index.html @@ -7,13 +7,13 @@ - - + +
Version: 1.0.21-alpha

valueOf

operator​

tuple​

  • ["===", T]
  • const tupleValueOf = type(["valueOf", {a:"string"}])

helper​

  • valueOf(T)
  • const helperValueOf = valueOf({a:"string"})
- - + + \ No newline at end of file diff --git a/docs/1.0.21-alpha/index.html b/docs/1.0.21-alpha/index.html index 17edf1a408..f895681c2b 100644 --- a/docs/1.0.21-alpha/index.html +++ b/docs/1.0.21-alpha/index.html @@ -7,13 +7,13 @@ - - + +
Version: 1.0.21-alpha

Getting Started

Install 📦12KB gzipped, 0 dependencies​

Npm Icon npm install arktype(or whatever package manager you prefer)

Our types are tested in strict-mode with TypeScript versions 4.8, 4.9, and 5.0.

Our APIs have mostly stabilized, but details may still change during the alpha/beta stages of our 1.0 release. If you have suggestions that may require a breaking change, now is the time to let us know! ⛵

Your first type​

- - + + \ No newline at end of file diff --git a/docs/1.0.21-alpha/scopes/index.html b/docs/1.0.21-alpha/scopes/index.html index c2211dc38f..adec2ea46d 100644 --- a/docs/1.0.21-alpha/scopes/index.html +++ b/docs/1.0.21-alpha/scopes/index.html @@ -7,13 +7,13 @@ - - + +
Version: 1.0.21-alpha

Scopes

- - + + \ No newline at end of file diff --git a/docs/api/ark/index.html b/docs/api/ark/index.html index 42da129683..3f6aa2bbca 100644 --- a/docs/api/ark/index.html +++ b/docs/api/ark/index.html @@ -7,13 +7,13 @@ - - + + - - + + \ No newline at end of file diff --git a/docs/api/arkscope/index.html b/docs/api/arkscope/index.html index 7ebb188186..d1492f4d25 100644 --- a/docs/api/arkscope/index.html +++ b/docs/api/arkscope/index.html @@ -7,13 +7,13 @@ - - + +
Version: 1.0.22-alpha

arkScope

text​

arkScope: import("./scope.js").Scope<
[
{
any: any
bigint: bigint
boolean: boolean
false: false
never: never
null: null
number: number
object: object
string: string
symbol: symbol
true: true
unknown: unknown
void: void
undefined: undefined
Function: (...args: any[]) => unknown
Date: Date
Error: Error
Map: Map<unknown, unknown>
RegExp: RegExp
Set: Set<unknown>
WeakMap: WeakMap<object, unknown>
WeakSet: WeakSet<object>
Promise: Promise<unknown>
alpha: string
alphanumeric: string
lowercase: string
uppercase: string
creditCard: string
email: string
uuid: string
parsedNumber: (In: string) => number
parsedInteger: (In: string) => number
parsedDate: (In: string) => Date
semver: string
json: (In: string) => unknown
integer: number
},
{},
false
]
>
- - + + \ No newline at end of file diff --git a/docs/api/arrayof/index.html b/docs/api/arrayof/index.html index 7ec8bb9784..d86a7b19e7 100644 --- a/docs/api/arrayof/index.html +++ b/docs/api/arrayof/index.html @@ -7,13 +7,13 @@ - - + +
Version: 1.0.22-alpha

arrayOf

operator​

string​

  • "T[]"
  • const numberArray = type("number[]")

tuple​

  • [T, "[]"]
  • const tupleArray = type(["number", "[]"])

helper​

  • arrayOf(T)
  • const helperArray = arrayOf("number")
- - + + \ No newline at end of file diff --git a/docs/api/index.html b/docs/api/index.html index b870f83cb7..bde0688ac8 100644 --- a/docs/api/index.html +++ b/docs/api/index.html @@ -7,13 +7,13 @@ - - + +
Version: 1.0.22-alpha

API

ArkType supports many of TypeScript's built-in types and operators, as well as some new ones dedicated exclusively to runtime validation. In fact, we got a little ahead of ourselves and built a ton of cool features, but we're still working on getting caught up syntax and API docs. Keep an eye out for more in the next couple weeks ⛵

In the meantime, check out the examples here and use the type hints you get to learn how you can customize your types and scopes. If you want to explore some of the more advanced features, take a look at our unit tests or ask us on Discord if your functionality is supported. If not, create a GitHub issue so we can prioritize it!

- - + + \ No newline at end of file diff --git a/docs/api/infer/index.html b/docs/api/infer/index.html index b456fbe6ca..09902f95f1 100644 --- a/docs/api/infer/index.html +++ b/docs/api/infer/index.html @@ -7,13 +7,13 @@ - - + + - - + + \ No newline at end of file diff --git a/docs/api/instanceof/index.html b/docs/api/instanceof/index.html index 92f595d141..168aaab654 100644 --- a/docs/api/instanceof/index.html +++ b/docs/api/instanceof/index.html @@ -7,13 +7,13 @@ - - + +
Version: 1.0.22-alpha

instanceOf

operator​

tuple​

  • ["instanceOf", T]
  • const tupleInstanceOf = type(["instanceOf", Date])

helper​

  • instanceOf(T)
  • const helperInstanceOf = instanceOf(Date)
- - + + \ No newline at end of file diff --git a/docs/api/intersection/index.html b/docs/api/intersection/index.html index 08272787ca..9fadce4554 100644 --- a/docs/api/intersection/index.html +++ b/docs/api/intersection/index.html @@ -7,13 +7,13 @@ - - + +
Version: 1.0.22-alpha

intersection

operator​

string​

  • "L&R"
  • const intersection = type("/@arktype.io$/ & email")

tuple​

  • [L, "&", R]
  • const tupleIntersection = type(["/@arktype.io$/", "&", "email"])

helper​

  • intersection(L,R)
  • const helperIntersection = intersection("/@arktype.io$/","email")
- - + + \ No newline at end of file diff --git a/docs/api/jsobjectsscope/index.html b/docs/api/jsobjectsscope/index.html index 0ab7510ba4..4e14ba25df 100644 --- a/docs/api/jsobjectsscope/index.html +++ b/docs/api/jsobjectsscope/index.html @@ -7,13 +7,13 @@ - - + +
Version: 1.0.22-alpha

jsObjectsScope

text​

NameTypeDescription
Function (...args: any[]) => unknown
Date Date
Error Error
Map Map<unknown, unknown>
RegExp RegExp
Set Set<unknown>
WeakMap WeakMap<object, unknown>
WeakSet WeakSet<object>
Promise Promise<unknown>
- - + + \ No newline at end of file diff --git a/docs/api/keyof/index.html b/docs/api/keyof/index.html index 5204a8784b..2b12ee5dad 100644 --- a/docs/api/keyof/index.html +++ b/docs/api/keyof/index.html @@ -7,13 +7,13 @@ - - + +
Version: 1.0.22-alpha

keyOf

operator​

tuple​

  • "["keyOf", T]"
  • const tupleKeyOf = type(["keyOf", {a:"string"}])

helper​

  • keyOf(T)
  • const helperKeyOf = keyOf({a:"string"})
- - + + \ No newline at end of file diff --git a/docs/api/keywords/index.html b/docs/api/keywords/index.html index c812a0b9b3..347f01c2de 100644 --- a/docs/api/keywords/index.html +++ b/docs/api/keywords/index.html @@ -7,13 +7,13 @@ - - + +
Version: 1.0.22-alpha

Keywords

jsObjectsScope​

NameTypeDescription
Function (...args: any[]) => unknown
Date Date
Error Error
Map Map<unknown, unknown>
RegExp RegExp
Set Set<unknown>
WeakMap WeakMap<object, unknown>
WeakSet WeakSet<object>
Promise Promise<unknown>

tsKeywordsScope​

NameTypeDescription
any anyany
bigint biginta bigint
boolean booleana boolean
false falsefalse
never nevernever
null nullnull
number numbera number
object objectan object
string stringa string
symbol symbola symbol
true truetrue
unknown unknownunknown
void voidvoid
undefined undefinedundefined

validationScope​

NameTypeDescription
alpha stringonly letters
alphanumeric stringonly letters and digits
lowercase stringonly lowercase letters
uppercase stringonly uppercase letters
creditCard stringa valid credit card number
email stringa valid email
uuid stringa valid UUID
parsedNumber (In: string) => numbera well-formed numeric string
parsedInteger (In: string) => numbera well-formed integer string
parsedDate (In: string) => Datea valid date
semver stringa valid semantic version
json (In: string) => unknowna JSON-parsable string
integer numberan integer
- - + + \ No newline at end of file diff --git a/docs/api/morph/index.html b/docs/api/morph/index.html index d1b70495f7..de2d8eb604 100644 --- a/docs/api/morph/index.html +++ b/docs/api/morph/index.html @@ -7,13 +7,13 @@ - - + +
Version: 1.0.22-alpha

morph

operator​

tuple​

  • [inputType, "|>", (data) => output]
  • const tupleMorph = type( ["string", "|>" , (data) => `morphed ${data}`])

helper​

  • morph(inputType, (data) => output)
  • const helperMorph = morph("string", (data) => `morphed ${data}`)
- - + + \ No newline at end of file diff --git a/docs/api/narrow/index.html b/docs/api/narrow/index.html index 2166076320..35812b26be 100644 --- a/docs/api/narrow/index.html +++ b/docs/api/narrow/index.html @@ -7,13 +7,13 @@ - - + +
Version: 1.0.22-alpha

narrow

operator​

tuple​

  • ["type", "=>" , condition]
  • const narrow = type( ["number", "=>" , (n) => n % 2 === 0])

example​

  •      const isEven = (x: unknown): x is number => x % 2 === 0
- - + + \ No newline at end of file diff --git a/docs/api/operators/index.html b/docs/api/operators/index.html index 54adc0de26..d76cdb9959 100644 --- a/docs/api/operators/index.html +++ b/docs/api/operators/index.html @@ -7,13 +7,13 @@ - - + +
Version: 1.0.22-alpha

Operators

Operating Table​

operatorstringtuplehelper
arrayOf"T[]"[T, "[]"]arrayOf(T)
instanceOf["instanceOf", T]instanceOf(T)
&"L&R"[L, "&", R]intersection(L,R)
keyOf"["keyOf", T]"keyOf(T)
|>[inputType, "|>", (data) => output]morph(inputType, (data) => output)
=>["type", "=>" , condition]
|"L|R"[L, "|" , R]union(L,R)
===["===", T]valueOf(T)
:["type", ":", config]
bound"N<S<N", with comparators restricted to < or <=
%"N%D", where "N" is a number and "D" is a non-zero integer
node["node", nodeDefinition]type.from(nodeDefinition)
- - + + \ No newline at end of file diff --git a/docs/api/parseconfigtuple/index.html b/docs/api/parseconfigtuple/index.html index 25cb005a6c..39edf4aa74 100644 --- a/docs/api/parseconfigtuple/index.html +++ b/docs/api/parseconfigtuple/index.html @@ -7,13 +7,13 @@ - - + + - - + + \ No newline at end of file diff --git a/docs/api/problem/index.html b/docs/api/problem/index.html index cbd43c9464..0e563ddcb4 100644 --- a/docs/api/problem/index.html +++ b/docs/api/problem/index.html @@ -7,13 +7,13 @@ - - + +
Version: 1.0.22-alpha

Problem

text​

export declare class Problem<code extends ProblemCode = ProblemCode> {
code: code
path: Path
private data
private source
private writers
parts?: Problem[]
constructor(
code: code,
path: Path,
data: ProblemData<code>,
source: ProblemSource<code>,
writers: ProblemWriters<code>
)
toString(): string
get message(): string
get reason(): string
get mustBe(): string
}
- - + + \ No newline at end of file diff --git a/docs/api/problems/index.html b/docs/api/problems/index.html index 47182bac2d..ecb31d04f5 100644 --- a/docs/api/problems/index.html +++ b/docs/api/problems/index.html @@ -7,13 +7,13 @@ - - + +
Version: 1.0.22-alpha

Problems

text​

Problems: new (state: TraversalState) => Problems
export type Problems = arraySubclassToReadonly<ProblemArray>;
- - + + \ No newline at end of file diff --git a/docs/api/resolvednode/index.html b/docs/api/resolvednode/index.html index 9dd9ddfbb4..0d21d67a64 100644 --- a/docs/api/resolvednode/index.html +++ b/docs/api/resolvednode/index.html @@ -7,13 +7,13 @@ - - + +
- - + + \ No newline at end of file diff --git a/docs/api/scope/index.html b/docs/api/scope/index.html index 8b9299dcb0..3dd6b77caa 100644 --- a/docs/api/scope/index.html +++ b/docs/api/scope/index.html @@ -7,13 +7,13 @@ - - + +
Version: 1.0.22-alpha

scope

text​

scope: ScopeParser

hide_table_of_contents: true​

Scope

text​

export declare class Scope<context extends ScopeContext = any> {
#private
aliases: Dict
name: string
config: ScopeConfig
parseCache: FreezingCache<Node>
constructor(aliases: Dict, opts?: ScopeOptions)
getAnonymousQualifiedName(base: AnonymousTypeName): QualifiedTypeName
addAnonymousTypeReference(referencedType: Type, ctx: ParseContext): Node
get infer(): exportsOf<context>
compile(): Space<exportsOf<context>>
addParsedReferenceIfResolvable(
name: name<context>,
ctx: ParseContext
): boolean
resolve(name: name<context>): Type
resolveNode(node: Node): ResolvedNode
resolveTypeNode(node: Node): TypeNode
expressions: Expressions<resolutions<context>>
intersection: import("./expressions.js").BinaryExpressionParser<
resolutions<context>,
"&"
>
union: import("./expressions.js").BinaryExpressionParser<
resolutions<context>,
"|"
>
arrayOf: import("./expressions.js").UnaryExpressionParser<
resolutions<context>,
"[]"
>
keyOf: import("./expressions.js").UnaryExpressionParser<
resolutions<context>,
"keyof"
>
valueOf: import("./expressions.js").UnvalidatedExpressionParser<
resolutions<context>,
"==="
>
instanceOf: import("./expressions.js").UnvalidatedExpressionParser<
resolutions<context>,
"instanceof"
>
narrow: import("./expressions.js").FunctionalExpressionParser<
resolutions<context>,
"=>"
>
morph: import("./expressions.js").FunctionalExpressionParser<
resolutions<context>,
"|>"
>
type: TypeParser<resolutions<context>>
isResolvable(name: string): unknown
}
- - + + \ No newline at end of file diff --git a/docs/api/space/index.html b/docs/api/space/index.html index 810da86f5b..9d832f65a0 100644 --- a/docs/api/space/index.html +++ b/docs/api/space/index.html @@ -7,13 +7,13 @@ - - + +
Version: 1.0.22-alpha

Space

text​

export type Space<exports = Dict> = {
[k in keyof exports]: Type<exports[k]>
}
- - + + \ No newline at end of file diff --git a/docs/api/tskeywordsscope/index.html b/docs/api/tskeywordsscope/index.html index 28517b0fe4..07d3be8d40 100644 --- a/docs/api/tskeywordsscope/index.html +++ b/docs/api/tskeywordsscope/index.html @@ -7,13 +7,13 @@ - - + +
Version: 1.0.22-alpha

tsKeywordsScope

keywords​

  • keywords: {"any": "any", "bigint": "a bigint", "boolean": "a boolean", "false": "false", "never": "never", "null": "null", "number": "a number", "object": "an object", "string": "a string", "symbol": "a symbol", "true": "true", "unknown": "unknown", "void": "void", "undefined": "undefined"}

text​

NameTypeDescription
any anyany
bigint biginta bigint
boolean booleana boolean
false falsefalse
never nevernever
null nullnull
number numbera number
object objectan object
string stringa string
symbol symbola symbol
true truetrue
unknown unknownunknown
void voidvoid
undefined undefinedundefined
- - + + \ No newline at end of file diff --git a/docs/api/type/index.html b/docs/api/type/index.html index 5d3e01610b..7c3853f5c5 100644 --- a/docs/api/type/index.html +++ b/docs/api/type/index.html @@ -7,13 +7,13 @@ - - + +
Version: 1.0.22-alpha

type

text​

type: TypeParser<PrecompiledDefaults>

hide_table_of_contents: true​

Type

text​

export type Type<t = unknown> = defer<Checker<t> & TypeRoot<t>>
- - + + \ No newline at end of file diff --git a/docs/api/union/index.html b/docs/api/union/index.html index c9320a69d9..187bebd9cd 100644 --- a/docs/api/union/index.html +++ b/docs/api/union/index.html @@ -7,13 +7,13 @@ - - + +
Version: 1.0.22-alpha

union

operator​

string​

  • "L|R"
  • const union = type("string|number")

tuple​

  • [L, "|" , R]
  • const tupleUnion = type(["string", "|", "number"])

helper​

  • union(L,R)
  • const helperUnion = union("string", "number")
- - + + \ No newline at end of file diff --git a/docs/api/validatebound/index.html b/docs/api/validatebound/index.html index 88040a1cda..d748ad3b10 100644 --- a/docs/api/validatebound/index.html +++ b/docs/api/validatebound/index.html @@ -7,13 +7,13 @@ - - + +
Version: 1.0.22-alpha

validateBound

operator​

tableRow​

VariableDescription
Nnumber literal
Ssized data (a number, string or array)
<Comparator (one of <, <=, ==, >=, >)

description​

  • Bound operators allow data to be bounded in the format "S<N", or as a Range: "N<S<N", with comparators restricted to < or <=

string​

  • "N<S<N", with comparators restricted to < or <=
  • const range = type("2<=number<5")
  • const bound = type("string[]==5")
- - + + \ No newline at end of file diff --git a/docs/api/validatedivisor/index.html b/docs/api/validatedivisor/index.html index 4fd194f3cc..bfbe55fedf 100644 --- a/docs/api/validatedivisor/index.html +++ b/docs/api/validatedivisor/index.html @@ -7,13 +7,13 @@ - - + +
Version: 1.0.22-alpha

validateDivisor

operator​

string​

  • "N%D", where "N" is a number and "D" is a non-zero integer
- - + + \ No newline at end of file diff --git a/docs/api/validationscope/index.html b/docs/api/validationscope/index.html index 871441084c..66720aac31 100644 --- a/docs/api/validationscope/index.html +++ b/docs/api/validationscope/index.html @@ -7,13 +7,13 @@ - - + +
Version: 1.0.22-alpha

validationScope

keywords​

  • keywords: { "alpha": "only letters", "alphanumeric": "only letters and digits", "lowercase": "only lowercase letters", "uppercase": "only uppercase letters", "creditCard": "a valid credit card number", "email": "a valid email", "uuid": "a valid UUID", "parsedNumber": "a well-formed numeric string", "parsedInteger": "a well-formed integer string", "parsedDate": "a valid date", "semver": "a valid semantic version", "json": "a JSON-parsable string", "integer": "an integer"}

text​

NameTypeDescription
alpha stringonly letters
alphanumeric stringonly letters and digits
lowercase stringonly lowercase letters
uppercase stringonly uppercase letters
creditCard stringa valid credit card number
email stringa valid email
uuid stringa valid UUID
parsedNumber (In: string) => numbera well-formed numeric string
parsedInteger (In: string) => numbera well-formed integer string
parsedDate (In: string) => Datea valid date
semver stringa valid semantic version
json (In: string) => unknowna JSON-parsable string
integer numberan integer
- - + + \ No newline at end of file diff --git a/docs/api/valueof/index.html b/docs/api/valueof/index.html index b6f1d46d81..757979097d 100644 --- a/docs/api/valueof/index.html +++ b/docs/api/valueof/index.html @@ -7,13 +7,13 @@ - - + +
Version: 1.0.22-alpha

valueOf

operator​

tuple​

  • ["===", T]
  • const tupleValueOf = type(["valueOf", {a:"string"}])

helper​

  • valueOf(T)
  • const helperValueOf = valueOf({a:"string"})
- - + + \ No newline at end of file diff --git a/docs/index.html b/docs/index.html index 1a24f4da1d..38f63ccbc0 100644 --- a/docs/index.html +++ b/docs/index.html @@ -7,13 +7,13 @@ - - + +
Version: 1.0.22-alpha

Getting Started

Install 📦12KB gzipped, 0 dependencies​

Npm Icon npm install arktype(or whatever package manager you prefer)

Our types are tested in strict-mode with TypeScript versions 4.8, 4.9, and 5.0.

Our APIs have mostly stabilized, but details may still change during the alpha/beta stages of our 1.0 release. If you have suggestions that may require a breaking change, now is the time to let us know! ⛵

Your first type​

- - + + \ No newline at end of file diff --git a/docs/next/api/ark/index.html b/docs/next/api/ark/index.html index cb21265ed0..a741227781 100644 --- a/docs/next/api/ark/index.html +++ b/docs/next/api/ark/index.html @@ -7,13 +7,13 @@ - - + +
Version: Next

ark

text​

ark: Space<PrecompiledDefaults>
- - + + \ No newline at end of file diff --git a/docs/next/api/arkscope/index.html b/docs/next/api/arkscope/index.html index 6161341d82..5a857e5c31 100644 --- a/docs/next/api/arkscope/index.html +++ b/docs/next/api/arkscope/index.html @@ -7,13 +7,13 @@ - - + +
Version: Next

arkScope

text​

arkScope: import("./scope.js").Scope<
[
{
any: any
bigint: bigint
boolean: boolean
false: false
never: never
null: null
number: number
object: object
string: string
symbol: symbol
true: true
unknown: unknown
void: void
undefined: undefined
Function: (...args: any[]) => unknown
Date: Date
Error: Error
Map: Map<unknown, unknown>
RegExp: RegExp
Set: Set<unknown>
WeakMap: WeakMap<object, unknown>
WeakSet: WeakSet<object>
Promise: Promise<unknown>
alpha: string
alphanumeric: string
lowercase: string
uppercase: string
creditCard: string
email: string
uuid: string
parsedNumber: (In: string) => number
parsedInteger: (In: string) => number
parsedDate: (In: string) => Date
semver: string
json: (In: string) => unknown
integer: number
},
{},
false
]
>
- - + + \ No newline at end of file diff --git a/docs/next/api/arrayof/index.html b/docs/next/api/arrayof/index.html index a7e2a945da..18b7f03c67 100644 --- a/docs/next/api/arrayof/index.html +++ b/docs/next/api/arrayof/index.html @@ -7,13 +7,13 @@ - - + +
Version: Next

arrayOf

operator​

string​

  • "T[]"
  • const numberArray = type("number[]")

tuple​

  • [T, "[]"]
  • const tupleArray = type(["number", "[]"])

helper​

  • arrayOf(T)
  • const helperArray = arrayOf("number")
- - + + \ No newline at end of file diff --git a/docs/next/api/index.html b/docs/next/api/index.html index 1577877109..f7caee14d8 100644 --- a/docs/next/api/index.html +++ b/docs/next/api/index.html @@ -7,13 +7,13 @@ - - + +
Version: Next

API

ArkType supports many of TypeScript's built-in types and operators, as well as some new ones dedicated exclusively to runtime validation. In fact, we got a little ahead of ourselves and built a ton of cool features, but we're still working on getting caught up syntax and API docs. Keep an eye out for more in the next couple weeks ⛵

In the meantime, check out the examples here and use the type hints you get to learn how you can customize your types and scopes. If you want to explore some of the more advanced features, take a look at our unit tests or ask us on Discord if your functionality is supported. If not, create a GitHub issue so we can prioritize it!

- - + + \ No newline at end of file diff --git a/docs/next/api/infer/index.html b/docs/next/api/infer/index.html index 87da1ef2fc..43f1dccd3a 100644 --- a/docs/next/api/infer/index.html +++ b/docs/next/api/infer/index.html @@ -7,13 +7,13 @@ - - + +
Version: Next

Infer

text​

export type Infer<t> = {
[as]?: t
}
- - + + \ No newline at end of file diff --git a/docs/next/api/instanceof/index.html b/docs/next/api/instanceof/index.html index 9008daa61d..9deb032bbf 100644 --- a/docs/next/api/instanceof/index.html +++ b/docs/next/api/instanceof/index.html @@ -7,13 +7,13 @@ - - + +
Version: Next

instanceOf

operator​

tuple​

  • ["instanceOf", T]
  • const tupleInstanceOf = type(["instanceOf", Date])

helper​

  • instanceOf(T)
  • const helperInstanceOf = instanceOf(Date)
- - + + \ No newline at end of file diff --git a/docs/next/api/intersection/index.html b/docs/next/api/intersection/index.html index 32e3fb0aa3..2132b62114 100644 --- a/docs/next/api/intersection/index.html +++ b/docs/next/api/intersection/index.html @@ -7,13 +7,13 @@ - - + +
Version: Next

intersection

operator​

string​

  • "L&R"
  • const intersection = type("/@arktype.io$/ & email")

tuple​

  • [L, "&", R]
  • const tupleIntersection = type(["/@arktype.io$/", "&", "email"])

helper​

  • intersection(L,R)
  • const helperIntersection = intersection("/@arktype.io$/","email")
- - + + \ No newline at end of file diff --git a/docs/next/api/jsobjectsscope/index.html b/docs/next/api/jsobjectsscope/index.html index 9dd662f2d2..d59cef11a4 100644 --- a/docs/next/api/jsobjectsscope/index.html +++ b/docs/next/api/jsobjectsscope/index.html @@ -7,13 +7,13 @@ - - + +
Version: Next

jsObjectsScope

text​

NameTypeDescription
Function (...args: any[]) => unknown
Date Date
Error Error
Map Map<unknown, unknown>
RegExp RegExp
Set Set<unknown>
WeakMap WeakMap<object, unknown>
WeakSet WeakSet<object>
Promise Promise<unknown>
- - + + \ No newline at end of file diff --git a/docs/next/api/keyof/index.html b/docs/next/api/keyof/index.html index 339bf10313..91fad621c0 100644 --- a/docs/next/api/keyof/index.html +++ b/docs/next/api/keyof/index.html @@ -7,13 +7,13 @@ - - + +
Version: Next

keyOf

operator​

tuple​

  • "["keyOf", T]"
  • const tupleKeyOf = type(["keyOf", {a:"string"}])

helper​

  • keyOf(T)
  • const helperKeyOf = keyOf({a:"string"})
- - + + \ No newline at end of file diff --git a/docs/next/api/keywords/index.html b/docs/next/api/keywords/index.html index 51b6f36a49..9f3681f78a 100644 --- a/docs/next/api/keywords/index.html +++ b/docs/next/api/keywords/index.html @@ -7,13 +7,13 @@ - - + +
Version: Next

Keywords

jsObjectsScope​

NameTypeDescription
Function (...args: any[]) => unknown
Date Date
Error Error
Map Map<unknown, unknown>
RegExp RegExp
Set Set<unknown>
WeakMap WeakMap<object, unknown>
WeakSet WeakSet<object>
Promise Promise<unknown>

tsKeywordsScope​

NameTypeDescription
any anyany
bigint biginta bigint
boolean booleana boolean
false falsefalse
never nevernever
null nullnull
number numbera number
object objectan object
string stringa string
symbol symbola symbol
true truetrue
unknown unknownunknown
void voidvoid
undefined undefinedundefined

validationScope​

NameTypeDescription
alpha stringonly letters
alphanumeric stringonly letters and digits
lowercase stringonly lowercase letters
uppercase stringonly uppercase letters
creditCard stringa valid credit card number
email stringa valid email
uuid stringa valid UUID
parsedNumber (In: string) => numbera well-formed numeric string
parsedInteger (In: string) => numbera well-formed integer string
parsedDate (In: string) => Datea valid date
semver stringa valid semantic version
json (In: string) => unknowna JSON-parsable string
integer numberan integer
- - + + \ No newline at end of file diff --git a/docs/next/api/morph/index.html b/docs/next/api/morph/index.html index bb7dc6195d..11f66249b7 100644 --- a/docs/next/api/morph/index.html +++ b/docs/next/api/morph/index.html @@ -7,13 +7,13 @@ - - + +
Version: Next

morph

operator​

tuple​

  • [inputType, "|>", (data) => output]
  • const tupleMorph = type( ["string", "|>" , (data) => `morphed ${data}`])

helper​

  • morph(inputType, (data) => output)
  • const helperMorph = morph("string", (data) => `morphed ${data}`)
- - + + \ No newline at end of file diff --git a/docs/next/api/narrow/index.html b/docs/next/api/narrow/index.html index 0f68b6ecee..19ab9a5bdd 100644 --- a/docs/next/api/narrow/index.html +++ b/docs/next/api/narrow/index.html @@ -7,13 +7,13 @@ - - + +
Version: Next

narrow

operator​

tuple​

  • ["type", "=>" , condition]
  • const narrow = type( ["number", "=>" , (n) => n % 2 === 0])

example​

  •      const isEven = (x: unknown): x is number => x % 2 === 0
- - + + \ No newline at end of file diff --git a/docs/next/api/operators/index.html b/docs/next/api/operators/index.html index 11ae570d61..951b99f41a 100644 --- a/docs/next/api/operators/index.html +++ b/docs/next/api/operators/index.html @@ -7,13 +7,13 @@ - - + +
Version: Next

Operators

Operating Table​

operatorstringtuplehelper
arrayOf"T[]"[T, "[]"]arrayOf(T)
instanceOf["instanceOf", T]instanceOf(T)
&"L&R"[L, "&", R]intersection(L,R)
keyOf"["keyOf", T]"keyOf(T)
|>[inputType, "|>", (data) => output]morph(inputType, (data) => output)
=>["type", "=>" , condition]
|"L|R"[L, "|" , R]union(L,R)
===["===", T]valueOf(T)
:["type", ":", config]
bound"N<S<N", with comparators restricted to < or <=
%"N%D", where "N" is a number and "D" is a non-zero integer
node["node", nodeDefinition]type.from(nodeDefinition)
- - + + \ No newline at end of file diff --git a/docs/next/api/parseconfigtuple/index.html b/docs/next/api/parseconfigtuple/index.html index 8c9b56c1ac..b33b2a83ab 100644 --- a/docs/next/api/parseconfigtuple/index.html +++ b/docs/next/api/parseconfigtuple/index.html @@ -7,13 +7,13 @@ - - + +
- - + + \ No newline at end of file diff --git a/docs/next/api/problem/index.html b/docs/next/api/problem/index.html index 193697249e..c72d765808 100644 --- a/docs/next/api/problem/index.html +++ b/docs/next/api/problem/index.html @@ -7,13 +7,13 @@ - - + +
Version: Next

Problem

text​

export declare class Problem<code extends ProblemCode = ProblemCode> {
code: code
path: Path
private data
private source
private writers
parts?: Problem[]
constructor(
code: code,
path: Path,
data: ProblemData<code>,
source: ProblemSource<code>,
writers: ProblemWriters<code>
)
toString(): string
get message(): string
get reason(): string
get mustBe(): string
}
- - + + \ No newline at end of file diff --git a/docs/next/api/problems/index.html b/docs/next/api/problems/index.html index 96d0a3f4d0..3fcc975f70 100644 --- a/docs/next/api/problems/index.html +++ b/docs/next/api/problems/index.html @@ -7,13 +7,13 @@ - - + +
Version: Next

Problems

text​

Problems: new (state: TraversalState) => Problems
export type Problems = arraySubclassToReadonly<ProblemArray>;
- - + + \ No newline at end of file diff --git a/docs/next/api/resolvednode/index.html b/docs/next/api/resolvednode/index.html index 97a266ebc8..1de15173e7 100644 --- a/docs/next/api/resolvednode/index.html +++ b/docs/next/api/resolvednode/index.html @@ -7,13 +7,13 @@ - - + +
- - + + \ No newline at end of file diff --git a/docs/next/api/scope/index.html b/docs/next/api/scope/index.html index c89c25d6b9..92e0061e0a 100644 --- a/docs/next/api/scope/index.html +++ b/docs/next/api/scope/index.html @@ -7,13 +7,13 @@ - - + +
Version: Next

scope

text​

scope: ScopeParser

hide_table_of_contents: true​

Scope

text​

export declare class Scope<context extends ScopeContext = any> {
#private
aliases: Dict
name: string
config: ScopeConfig
parseCache: FreezingCache<Node>
constructor(aliases: Dict, opts?: ScopeOptions)
getAnonymousQualifiedName(base: AnonymousTypeName): QualifiedTypeName
addAnonymousTypeReference(referencedType: Type, ctx: ParseContext): Node
get infer(): exportsOf<context>
compile(): Space<exportsOf<context>>
addParsedReferenceIfResolvable(
name: name<context>,
ctx: ParseContext
): boolean
resolve(name: name<context>): Type
resolveNode(node: Node): ResolvedNode
resolveTypeNode(node: Node): TypeNode
expressions: Expressions<resolutions<context>>
intersection: import("./expressions.js").BinaryExpressionParser<
resolutions<context>,
"&"
>
union: import("./expressions.js").BinaryExpressionParser<
resolutions<context>,
"|"
>
arrayOf: import("./expressions.js").UnaryExpressionParser<
resolutions<context>,
"[]"
>
keyOf: import("./expressions.js").UnaryExpressionParser<
resolutions<context>,
"keyof"
>
valueOf: import("./expressions.js").UnvalidatedExpressionParser<
resolutions<context>,
"==="
>
instanceOf: import("./expressions.js").UnvalidatedExpressionParser<
resolutions<context>,
"instanceof"
>
narrow: import("./expressions.js").FunctionalExpressionParser<
resolutions<context>,
"=>"
>
morph: import("./expressions.js").FunctionalExpressionParser<
resolutions<context>,
"|>"
>
type: TypeParser<resolutions<context>>
isResolvable(name: string): unknown
}
- - + + \ No newline at end of file diff --git a/docs/next/api/space/index.html b/docs/next/api/space/index.html index a4f52e9648..18721dc170 100644 --- a/docs/next/api/space/index.html +++ b/docs/next/api/space/index.html @@ -7,13 +7,13 @@ - - + +
Version: Next

Space

text​

export type Space<exports = Dict> = {
[k in keyof exports]: Type<exports[k]>
}
- - + + \ No newline at end of file diff --git a/docs/next/api/tskeywordsscope/index.html b/docs/next/api/tskeywordsscope/index.html index 358e88b9cb..8a4c98866f 100644 --- a/docs/next/api/tskeywordsscope/index.html +++ b/docs/next/api/tskeywordsscope/index.html @@ -7,13 +7,13 @@ - - + +
Version: Next

tsKeywordsScope

keywords​

  • keywords: {"any": "any", "bigint": "a bigint", "boolean": "a boolean", "false": "false", "never": "never", "null": "null", "number": "a number", "object": "an object", "string": "a string", "symbol": "a symbol", "true": "true", "unknown": "unknown", "void": "void", "undefined": "undefined"}

text​

NameTypeDescription
any anyany
bigint biginta bigint
boolean booleana boolean
false falsefalse
never nevernever
null nullnull
number numbera number
object objectan object
string stringa string
symbol symbola symbol
true truetrue
unknown unknownunknown
void voidvoid
undefined undefinedundefined
- - + + \ No newline at end of file diff --git a/docs/next/api/type/index.html b/docs/next/api/type/index.html index f975ecd174..8b5903a823 100644 --- a/docs/next/api/type/index.html +++ b/docs/next/api/type/index.html @@ -7,13 +7,13 @@ - - + +
Version: Next

type

text​

type: TypeParser<PrecompiledDefaults>

hide_table_of_contents: true​

Type

text​

export type Type<t = unknown> = defer<Checker<t> & TypeRoot<t>>
- - + + \ No newline at end of file diff --git a/docs/next/api/union/index.html b/docs/next/api/union/index.html index 1bb8091c6d..00ebf6eb89 100644 --- a/docs/next/api/union/index.html +++ b/docs/next/api/union/index.html @@ -7,13 +7,13 @@ - - + +
Version: Next

union

operator​

string​

  • "L|R"
  • const union = type("string|number")

tuple​

  • [L, "|" , R]
  • const tupleUnion = type(["string", "|", "number"])

helper​

  • union(L,R)
  • const helperUnion = union("string", "number")
- - + + \ No newline at end of file diff --git a/docs/next/api/validatebound/index.html b/docs/next/api/validatebound/index.html index 397851a704..3f332e8213 100644 --- a/docs/next/api/validatebound/index.html +++ b/docs/next/api/validatebound/index.html @@ -7,13 +7,13 @@ - - + +
Version: Next

validateBound

operator​

tableRow​

VariableDescription
Nnumber literal
Ssized data (a number, string or array)
<Comparator (one of <, <=, ==, >=, >)

description​

  • Bound operators allow data to be bounded in the format "S<N", or as a Range: "N<S<N", with comparators restricted to < or <=

string​

  • "N<S<N", with comparators restricted to < or <=
  • const range = type("2<=number<5")
  • const bound = type("string[]==5")
- - + + \ No newline at end of file diff --git a/docs/next/api/validatedivisor/index.html b/docs/next/api/validatedivisor/index.html index 95aed6f9f9..b275efc4d0 100644 --- a/docs/next/api/validatedivisor/index.html +++ b/docs/next/api/validatedivisor/index.html @@ -7,13 +7,13 @@ - - + +
Version: Next

validateDivisor

operator​

string​

  • "N%D", where "N" is a number and "D" is a non-zero integer
- - + + \ No newline at end of file diff --git a/docs/next/api/validationscope/index.html b/docs/next/api/validationscope/index.html index dc40197b8e..6270bfb683 100644 --- a/docs/next/api/validationscope/index.html +++ b/docs/next/api/validationscope/index.html @@ -7,13 +7,13 @@ - - + +
Version: Next

validationScope

keywords​

  • keywords: { "alpha": "only letters", "alphanumeric": "only letters and digits", "lowercase": "only lowercase letters", "uppercase": "only uppercase letters", "creditCard": "a valid credit card number", "email": "a valid email", "uuid": "a valid UUID", "parsedNumber": "a well-formed numeric string", "parsedInteger": "a well-formed integer string", "parsedDate": "a valid date", "semver": "a valid semantic version", "json": "a JSON-parsable string", "integer": "an integer"}

text​

NameTypeDescription
alpha stringonly letters
alphanumeric stringonly letters and digits
lowercase stringonly lowercase letters
uppercase stringonly uppercase letters
creditCard stringa valid credit card number
email stringa valid email
uuid stringa valid UUID
parsedNumber (In: string) => numbera well-formed numeric string
parsedInteger (In: string) => numbera well-formed integer string
parsedDate (In: string) => Datea valid date
semver stringa valid semantic version
json (In: string) => unknowna JSON-parsable string
integer numberan integer
- - + + \ No newline at end of file diff --git a/docs/next/api/valueof/index.html b/docs/next/api/valueof/index.html index d9792b65c6..8c369d9b83 100644 --- a/docs/next/api/valueof/index.html +++ b/docs/next/api/valueof/index.html @@ -7,13 +7,13 @@ - - + +
Version: Next

valueOf

operator​

tuple​

  • ["===", T]
  • const tupleValueOf = type(["valueOf", {a:"string"}])

helper​

  • valueOf(T)
  • const helperValueOf = valueOf({a:"string"})
- - + + \ No newline at end of file diff --git a/docs/next/index.html b/docs/next/index.html index 3c73566204..6c461e3cf9 100644 --- a/docs/next/index.html +++ b/docs/next/index.html @@ -7,13 +7,13 @@ - - + +
Version: Next

Getting Started

Install 📦12KB gzipped, 0 dependencies​

Npm Icon npm install arktype(or whatever package manager you prefer)

Our types are tested in strict-mode with TypeScript versions 4.8, 4.9, and 5.0.

Our APIs have mostly stabilized, but details may still change during the alpha/beta stages of our 1.0 release. If you have suggestions that may require a breaking change, now is the time to let us know! ⛵

Your first type​

- - + + \ No newline at end of file diff --git a/docs/next/scopes/index.html b/docs/next/scopes/index.html index d8b1b7b433..4a3532f060 100644 --- a/docs/next/scopes/index.html +++ b/docs/next/scopes/index.html @@ -7,13 +7,13 @@ - - + +
Version: Next

Scopes

- - + + \ No newline at end of file diff --git a/docs/scopes/index.html b/docs/scopes/index.html index 996070460d..8cffbaf17e 100644 --- a/docs/scopes/index.html +++ b/docs/scopes/index.html @@ -7,13 +7,13 @@ - - + +
Version: 1.0.22-alpha

Scopes

- - + + \ No newline at end of file diff --git a/index.html b/index.html index 6d7aabec6c..309d165128 100644 --- a/index.html +++ b/index.html @@ -7,13 +7,13 @@ - - + +

ArkType

TypeScript's 1:1 validator, optimized from editor to runtime

typescript@4.9.5 in VS Code— no extensions or plugins required (how?)
npm install arktype

ArkType is a runtime validation library that can infer TypeScript definitions 1:1 and reuse them as highly-optimized validators for your data.

With each character you type, you'll get immediate feedback from your editor in the form of either a fully-inferred Type or a specific and helpful ParseError.

This result exactly mirrors what you can expect to happen at runtime down to the punctuation of the error message- no plugins required.

Isomorphic

Define types using TS syntax. Infer them 1:1. Use them to validate your data at runtime.

const user = type({
name: "string",
device: {
platform: "'android'|'ios'",
"version?": "number"
}
})


// Hover to infer...
type User = typeof user.infer

Concise

Say more with less

// Hover to infer...
const arkUser = type({
name: /^ark.*$/ as Infer<`ark${string}`>,
birthday: morph("string", (s) => new Date(s)),
"powerLevel?": "1<=number<9000"
})
// Hover to infer...
const zodUser = z.object({
name: z.custom<`zod${string}`>(
(val) => typeof val === "string" && /^zod.*$/.test(val)
),
birthday: z.preprocess(
(arg) => (typeof arg === "string" ? new Date(arg) : undefined),
z.date()
),
powerLevel: z.number().gte(1).lt(9000).optional()
})

Optimized

ArkType is not just a validator— it's a full type system. Operations are deeply computed and optimized by default

// Hover to see internal representation...
export const deepLeftOrRight = union(
{
auto: {
discriminated: "'left'"
}
},
{
auto: {
discriminated: "'right'"
}
}
)
// Hover to see internal representation...
export const numericIntersection = type(
"(1 <= number%2 < 100) & (0 < number%3 <= 99)"
)





Type-safe

String definitions are statically parsed with each character you type and give detailed feedback just like in your editor.

Worried about performance? Don't be. This is how it feels to interact with a scope of 100 cyclic types (you may want to go fullscreen to see the details!)
- - + + \ No newline at end of file diff --git a/try/index.html b/try/index.html index 60fca37978..5ad7beb12c 100644 --- a/try/index.html +++ b/try/index.html @@ -7,13 +7,13 @@ - - + +

ArkType

TypeScript's 1:1 validator, optimized from editor to runtime

typescript@4.9.5 in VS Code— no extensions or plugins required (how?)
npm install arktype

ArkType is a runtime validation library that can infer TypeScript definitions 1:1 and reuse them as highly-optimized validators for your data.

With each character you type, you'll get immediate feedback from your editor in the form of either a fully-inferred Type or a specific and helpful ParseError.

This result exactly mirrors what you can expect to happen at runtime down to the punctuation of the error message- no plugins required.

Isomorphic

Define types using TS syntax. Infer them 1:1. Use them to validate your data at runtime.

const user = type({
name: "string",
device: {
platform: "'android'|'ios'",
"version?": "number"
}
})


// Hover to infer...
type User = typeof user.infer

Concise

Say more with less

// Hover to infer...
const arkUser = type({
name: /^ark.*$/ as Infer<`ark${string}`>,
birthday: morph("string", (s) => new Date(s)),
"powerLevel?": "1<=number<9000"
})
// Hover to infer...
const zodUser = z.object({
name: z.custom<`zod${string}`>(
(val) => typeof val === "string" && /^zod.*$/.test(val)
),
birthday: z.preprocess(
(arg) => (typeof arg === "string" ? new Date(arg) : undefined),
z.date()
),
powerLevel: z.number().gte(1).lt(9000).optional()
})

Optimized

ArkType is not just a validator— it's a full type system. Operations are deeply computed and optimized by default

// Hover to see internal representation...
export const deepLeftOrRight = union(
{
auto: {
discriminated: "'left'"
}
},
{
auto: {
discriminated: "'right'"
}
}
)
// Hover to see internal representation...
export const numericIntersection = type(
"(1 <= number%2 < 100) & (0 < number%3 <= 99)"
)





Type-safe

String definitions are statically parsed with each character you type and give detailed feedback just like in your editor.

Worried about performance? Don't be. This is how it feels to interact with a scope of 100 cyclic types (you may want to go fullscreen to see the details!)
- - + + \ No newline at end of file