From 4cdd4bca449f3f151b2f74fc1714bbffbd0cf4a6 Mon Sep 17 00:00:00 2001 From: ssalbdivad Date: Mon, 13 Nov 2023 21:12:12 +0000 Subject: [PATCH] deploy: 1192b043ded5816c38ead8cad49207b47bfeaade --- 404.html | 10 +++++----- ...f5318.c2abfe12.js => 00cf5318.22204a20.js} | 2 +- ...3da58.fac94459.js => 07cf2946.b9c1de1b.js} | 2 +- assets/js/11b4899c.03eb6f95.js | 1 + assets/js/13e267d5.1920fc89.js | 1 + ...93b7f.e4ac7638.js => 1df93b7f.8f8e36a6.js} | 2 +- ...a10b7.3b34e4e5.js => 218a10b7.65da5ac1.js} | 2 +- ...07d5b.7084c40c.js => 2378f488.8d0eeb03.js} | 2 +- ...b3c64.f8852870.js => 336b3993.537a8728.js} | 2 +- assets/js/3a7be745.cf0648ef.js | 1 + ...75d74.ffe6176f.js => 3f475d74.7333856c.js} | 2 +- assets/js/489af003.661bdefe.js | 1 + assets/js/4d157327.6a9901b0.js | 1 + ...c808e.cd42aacd.js => 4edc808e.5c64803d.js} | 2 +- assets/js/4f91d1fa.5f451cde.js | 1 - assets/js/4f91d1fa.9f0b914e.js | 1 + ...9efe7.ce84b793.js => 52828006.99814294.js} | 2 +- assets/js/598efede.1edc0c86.js | 1 + ...be745.1ba35d98.js => 5a806f6c.7bc8622c.js} | 2 +- ...3568e.5f0a3ede.js => 64a3c6e9.d8ba1cf4.js} | 2 +- ...634ec.de64b870.js => 664634ec.25fe7573.js} | 2 +- assets/js/6a5e2130.a2d7edf9.js | 1 + assets/js/6b349b64.723206a6.js | 1 + assets/js/6f3866ae.2389d02c.js | 1 + assets/js/6fdaf75b.9bb75992.js | 1 + assets/js/70865799.db0a6353.js | 1 + assets/js/7106c5f4.af2b16e5.js | 1 + ...00006.597ab34e.js => 712be200.c9e70368.js} | 2 +- assets/js/720b32b8.c353ca3c.js | 1 + ...af75b.0384dd08.js => 7955d848.efe90783.js} | 2 +- assets/js/7cdde229.2ff0a141.js | 1 + ...41c26.f3c43a4d.js => 7f741c26.f7beb387.js} | 2 +- assets/js/84389d4b.7e92f5e8.js | 1 + assets/js/8fb3568e.0f0e0ddb.js | 1 + ...267d5.44c7b56a.js => 90c008eb.fd8f8f16.js} | 2 +- ...d0e08.9a245cac.js => 91ed0e08.25af1c42.js} | 2 +- ...f6b3f.f0275d0a.js => 9250bde8.73e6dbd7.js} | 2 +- ...65799.8029d1b5.js => 9939f002.4a2113b8.js} | 2 +- assets/js/9b8bb8a5.04d48811.js | 1 - assets/js/9b8bb8a5.7e5ef358.js | 1 + ...50a53.49f9e26c.js => a1b4c482.4da81902.js} | 2 +- ...de229.081a1ec2.js => a6750165.a07d66a7.js} | 2 +- ...43108.2a5060f1.js => a8443108.f321993d.js} | 2 +- assets/js/ac907d5b.0e99e90a.js | 1 + assets/js/af2e9fab.0667831a.js | 1 + ...7f374.786a77c0.js => b207f374.c9a1648e.js} | 2 +- assets/js/b4d00006.f4e1eb05.js | 1 + ...b32b8.ff9fa1f2.js => b8be6a81.413824df.js} | 2 +- assets/js/bf95da2e.d25408d0.js | 1 - assets/js/bf95da2e.f89c6678.js | 1 + ...5356f.1718ad8d.js => bf9eb72b.3558de0e.js} | 2 +- assets/js/c1566c80.ad69bde8.js | 1 + assets/js/c40baa2c.fcd23e83.js | 1 + assets/js/c62ebc34.73328b36.js | 1 + assets/js/c96bd749.9d77f730.js | 1 + ...64daf.38b1dac4.js => c9964daf.9b87fed2.js} | 2 +- assets/js/ccfb1236.9b25d88e.js | 1 + ...89d4b.7bc9fa16.js => d939c4cf.f1db1b36.js} | 2 +- assets/js/dc29efe7.1b1cc604.js | 1 + ...49074.b76fab21.js => dda49074.47d2ae92.js} | 2 +- assets/js/e1c5356f.dd9a3e1b.js | 1 + ...6815f.8eb5e318.js => e48be19d.7cf64a56.js} | 2 +- assets/js/e593da58.353c470e.js | 1 + ...bd749.95c0eb5e.js => e87af240.1d0ee935.js} | 2 +- assets/js/ea0f6b3f.b8457f89.js | 1 + assets/js/ea18a43c.01e05ac2.js | 1 + ...4899c.cf37049e.js => ed756b6e.fb2e34fb.js} | 2 +- ...8a43c.09da4da1.js => f4577cf2.392cabc8.js} | 2 +- assets/js/f5450a53.b0663828.js | 1 + ...b1236.8b8d6510.js => f77690a0.bcdcdf42.js} | 2 +- assets/js/fa5b3c64.24f57e35.js | 1 + assets/js/fca6815f.f0f448c1.js | 1 + assets/js/main.49c9402e.js | 2 -- assets/js/main.9ce220f4.js | 2 ++ ...CENSE.txt => main.9ce220f4.js.LICENSE.txt} | 0 assets/js/runtime~main.dd2ba6a8.js | 1 + assets/js/runtime~main.df2b6a49.js | 1 - discord/index.html | 8 ++++---- docs/1.0.19-alpha/api/ark/index.html | 10 +++++----- docs/1.0.19-alpha/api/arkscope/index.html | 10 +++++----- docs/1.0.19-alpha/api/arrayof/index.html | 10 +++++----- docs/1.0.19-alpha/api/index.html | 10 +++++----- docs/1.0.19-alpha/api/infer/index.html | 10 +++++----- docs/1.0.19-alpha/api/instanceof/index.html | 10 +++++----- docs/1.0.19-alpha/api/intersection/index.html | 10 +++++----- .../api/jsobjectsscope/index.html | 10 +++++----- docs/1.0.19-alpha/api/keyof/index.html | 10 +++++----- docs/1.0.19-alpha/api/keywords/index.html | 10 +++++----- docs/1.0.19-alpha/api/morph/index.html | 10 +++++----- docs/1.0.19-alpha/api/narrow/index.html | 10 +++++----- docs/1.0.19-alpha/api/operators/index.html | 10 +++++----- .../api/parseconfigtuple/index.html | 10 +++++----- docs/1.0.19-alpha/api/problem/index.html | 10 +++++----- docs/1.0.19-alpha/api/problems/index.html | 10 +++++----- docs/1.0.19-alpha/api/resolvednode/index.html | 10 +++++----- docs/1.0.19-alpha/api/scope/index.html | 10 +++++----- docs/1.0.19-alpha/api/space/index.html | 10 +++++----- .../api/tskeywordsscope/index.html | 10 +++++----- docs/1.0.19-alpha/api/type/index.html | 10 +++++----- docs/1.0.19-alpha/api/union/index.html | 10 +++++----- .../1.0.19-alpha/api/validatebound/index.html | 10 +++++----- .../api/validatedivisor/index.html | 10 +++++----- .../api/validationscope/index.html | 10 +++++----- docs/1.0.19-alpha/api/valueof/index.html | 10 +++++----- docs/1.0.19-alpha/index.html | 10 +++++----- docs/1.0.19-alpha/scopes/index.html | 10 +++++----- docs/1.0.20-alpha/api/ark/index.html | 10 +++++----- docs/1.0.20-alpha/api/arkscope/index.html | 10 +++++----- docs/1.0.20-alpha/api/arrayof/index.html | 10 +++++----- docs/1.0.20-alpha/api/index.html | 10 +++++----- docs/1.0.20-alpha/api/infer/index.html | 10 +++++----- docs/1.0.20-alpha/api/instanceof/index.html | 10 +++++----- docs/1.0.20-alpha/api/intersection/index.html | 10 +++++----- .../api/jsobjectsscope/index.html | 10 +++++----- docs/1.0.20-alpha/api/keyof/index.html | 10 +++++----- docs/1.0.20-alpha/api/keywords/index.html | 10 +++++----- docs/1.0.20-alpha/api/morph/index.html | 10 +++++----- docs/1.0.20-alpha/api/narrow/index.html | 10 +++++----- docs/1.0.20-alpha/api/operators/index.html | 10 +++++----- .../api/parseconfigtuple/index.html | 10 +++++----- docs/1.0.20-alpha/api/problem/index.html | 10 +++++----- docs/1.0.20-alpha/api/problems/index.html | 10 +++++----- docs/1.0.20-alpha/api/resolvednode/index.html | 10 +++++----- docs/1.0.20-alpha/api/scope/index.html | 10 +++++----- docs/1.0.20-alpha/api/space/index.html | 10 +++++----- .../api/tskeywordsscope/index.html | 10 +++++----- docs/1.0.20-alpha/api/type/index.html | 10 +++++----- docs/1.0.20-alpha/api/union/index.html | 10 +++++----- .../1.0.20-alpha/api/validatebound/index.html | 10 +++++----- .../api/validatedivisor/index.html | 10 +++++----- .../api/validationscope/index.html | 10 +++++----- docs/1.0.20-alpha/api/valueof/index.html | 10 +++++----- docs/1.0.20-alpha/index.html | 10 +++++----- docs/1.0.20-alpha/scopes/index.html | 10 +++++----- docs/1.0.21-alpha/api/ark/index.html | 10 +++++----- docs/1.0.21-alpha/api/arkscope/index.html | 10 +++++----- docs/1.0.21-alpha/api/arrayof/index.html | 10 +++++----- docs/1.0.21-alpha/api/index.html | 10 +++++----- docs/1.0.21-alpha/api/infer/index.html | 10 +++++----- docs/1.0.21-alpha/api/instanceof/index.html | 10 +++++----- docs/1.0.21-alpha/api/intersection/index.html | 10 +++++----- .../api/jsobjectsscope/index.html | 10 +++++----- docs/1.0.21-alpha/api/keyof/index.html | 10 +++++----- docs/1.0.21-alpha/api/keywords/index.html | 10 +++++----- docs/1.0.21-alpha/api/morph/index.html | 10 +++++----- docs/1.0.21-alpha/api/narrow/index.html | 10 +++++----- docs/1.0.21-alpha/api/operators/index.html | 10 +++++----- .../api/parseconfigtuple/index.html | 10 +++++----- docs/1.0.21-alpha/api/problem/index.html | 10 +++++----- docs/1.0.21-alpha/api/problems/index.html | 10 +++++----- docs/1.0.21-alpha/api/resolvednode/index.html | 10 +++++----- docs/1.0.21-alpha/api/scope/index.html | 10 +++++----- docs/1.0.21-alpha/api/space/index.html | 10 +++++----- .../api/tskeywordsscope/index.html | 10 +++++----- docs/1.0.21-alpha/api/type/index.html | 10 +++++----- docs/1.0.21-alpha/api/union/index.html | 10 +++++----- .../1.0.21-alpha/api/validatebound/index.html | 10 +++++----- .../api/validatedivisor/index.html | 10 +++++----- .../api/validationscope/index.html | 10 +++++----- docs/1.0.21-alpha/api/valueof/index.html | 10 +++++----- docs/1.0.21-alpha/index.html | 10 +++++----- docs/1.0.21-alpha/scopes/index.html | 10 +++++----- docs/1.0.22-alpha/api/ark/index.html | 10 +++++----- docs/1.0.22-alpha/api/arkscope/index.html | 10 +++++----- docs/1.0.22-alpha/api/arrayof/index.html | 10 +++++----- docs/1.0.22-alpha/api/index.html | 10 +++++----- docs/1.0.22-alpha/api/infer/index.html | 10 +++++----- docs/1.0.22-alpha/api/instanceof/index.html | 10 +++++----- docs/1.0.22-alpha/api/intersection/index.html | 10 +++++----- .../api/jsobjectsscope/index.html | 10 +++++----- docs/1.0.22-alpha/api/keyof/index.html | 10 +++++----- docs/1.0.22-alpha/api/keywords/index.html | 10 +++++----- docs/1.0.22-alpha/api/morph/index.html | 10 +++++----- docs/1.0.22-alpha/api/narrow/index.html | 10 +++++----- docs/1.0.22-alpha/api/operators/index.html | 10 +++++----- .../api/parseconfigtuple/index.html | 10 +++++----- docs/1.0.22-alpha/api/problem/index.html | 10 +++++----- docs/1.0.22-alpha/api/problems/index.html | 10 +++++----- docs/1.0.22-alpha/api/resolvednode/index.html | 10 +++++----- docs/1.0.22-alpha/api/scope/index.html | 10 +++++----- docs/1.0.22-alpha/api/space/index.html | 10 +++++----- .../api/tskeywordsscope/index.html | 10 +++++----- docs/1.0.22-alpha/api/type/index.html | 10 +++++----- docs/1.0.22-alpha/api/union/index.html | 10 +++++----- .../1.0.22-alpha/api/validatebound/index.html | 10 +++++----- .../api/validatedivisor/index.html | 10 +++++----- .../api/validationscope/index.html | 10 +++++----- docs/1.0.22-alpha/api/valueof/index.html | 10 +++++----- docs/1.0.22-alpha/index.html | 10 +++++----- docs/1.0.22-alpha/scopes/index.html | 10 +++++----- docs/1.0.23-alpha/api/ark/index.html | 10 +++++----- docs/1.0.23-alpha/api/arkscope/index.html | 10 +++++----- docs/1.0.23-alpha/api/arrayof/index.html | 10 +++++----- docs/1.0.23-alpha/api/index.html | 10 +++++----- docs/1.0.23-alpha/api/infer/index.html | 10 +++++----- docs/1.0.23-alpha/api/instanceof/index.html | 10 +++++----- docs/1.0.23-alpha/api/intersection/index.html | 10 +++++----- .../api/jsobjectsscope/index.html | 10 +++++----- docs/1.0.23-alpha/api/keyof/index.html | 10 +++++----- docs/1.0.23-alpha/api/keywords/index.html | 10 +++++----- docs/1.0.23-alpha/api/morph/index.html | 10 +++++----- docs/1.0.23-alpha/api/narrow/index.html | 10 +++++----- docs/1.0.23-alpha/api/operators/index.html | 10 +++++----- .../api/parseconfigtuple/index.html | 10 +++++----- docs/1.0.23-alpha/api/problem/index.html | 10 +++++----- docs/1.0.23-alpha/api/problems/index.html | 10 +++++----- docs/1.0.23-alpha/api/resolvednode/index.html | 10 +++++----- docs/1.0.23-alpha/api/scope/index.html | 10 +++++----- docs/1.0.23-alpha/api/space/index.html | 10 +++++----- .../api/tskeywordsscope/index.html | 10 +++++----- docs/1.0.23-alpha/api/type/index.html | 10 +++++----- docs/1.0.23-alpha/api/union/index.html | 10 +++++----- .../1.0.23-alpha/api/validatebound/index.html | 10 +++++----- .../api/validatedivisor/index.html | 10 +++++----- .../api/validationscope/index.html | 10 +++++----- docs/1.0.23-alpha/api/valueof/index.html | 10 +++++----- docs/1.0.23-alpha/index.html | 10 +++++----- docs/1.0.23-alpha/scopes/index.html | 10 +++++----- docs/1.0.24-alpha/api/ark/index.html | 10 +++++----- docs/1.0.24-alpha/api/arkscope/index.html | 10 +++++----- docs/1.0.24-alpha/api/arrayof/index.html | 10 +++++----- docs/1.0.24-alpha/api/index.html | 10 +++++----- docs/1.0.24-alpha/api/infer/index.html | 10 +++++----- .../api/inferdefinition/index.html | 10 +++++----- docs/1.0.24-alpha/api/instanceof/index.html | 10 +++++----- docs/1.0.24-alpha/api/intersection/index.html | 10 +++++----- .../api/jsobjectsscope/index.html | 10 +++++----- docs/1.0.24-alpha/api/keyof/index.html | 10 +++++----- docs/1.0.24-alpha/api/keywords/index.html | 10 +++++----- docs/1.0.24-alpha/api/morph/index.html | 10 +++++----- docs/1.0.24-alpha/api/narrow/index.html | 10 +++++----- docs/1.0.24-alpha/api/operators/index.html | 10 +++++----- .../api/parseconfigtuple/index.html | 10 +++++----- .../api/precompileddefaults/index.html | 10 +++++----- docs/1.0.24-alpha/api/problem/index.html | 10 +++++----- docs/1.0.24-alpha/api/problems/index.html | 10 +++++----- docs/1.0.24-alpha/api/resolvednode/index.html | 10 +++++----- docs/1.0.24-alpha/api/scope/index.html | 10 +++++----- docs/1.0.24-alpha/api/space/index.html | 10 +++++----- .../api/tskeywordsscope/index.html | 10 +++++----- docs/1.0.24-alpha/api/type/index.html | 10 +++++----- docs/1.0.24-alpha/api/union/index.html | 10 +++++----- .../1.0.24-alpha/api/validatebound/index.html | 10 +++++----- .../api/validatedefinition/index.html | 10 +++++----- .../api/validatedivisor/index.html | 10 +++++----- .../api/validationscope/index.html | 10 +++++----- docs/1.0.24-alpha/api/valueof/index.html | 10 +++++----- docs/1.0.24-alpha/index.html | 10 +++++----- docs/1.0.24-alpha/scopes/index.html | 10 +++++----- docs/1.0.25-alpha/api/ark/index.html | 10 +++++----- docs/1.0.25-alpha/api/arkscope/index.html | 10 +++++----- docs/1.0.25-alpha/api/arrayof/index.html | 10 +++++----- docs/1.0.25-alpha/api/index.html | 10 +++++----- docs/1.0.25-alpha/api/infer/index.html | 10 +++++----- .../api/inferdefinition/index.html | 10 +++++----- docs/1.0.25-alpha/api/instanceof/index.html | 10 +++++----- docs/1.0.25-alpha/api/intersection/index.html | 10 +++++----- .../api/jsobjectsscope/index.html | 10 +++++----- docs/1.0.25-alpha/api/keyof/index.html | 10 +++++----- docs/1.0.25-alpha/api/keywords/index.html | 10 +++++----- docs/1.0.25-alpha/api/morph/index.html | 10 +++++----- docs/1.0.25-alpha/api/narrow/index.html | 10 +++++----- docs/1.0.25-alpha/api/operators/index.html | 10 +++++----- .../api/parseconfigtuple/index.html | 10 +++++----- .../api/precompileddefaults/index.html | 10 +++++----- docs/1.0.25-alpha/api/problem/index.html | 10 +++++----- docs/1.0.25-alpha/api/problems/index.html | 10 +++++----- docs/1.0.25-alpha/api/resolvednode/index.html | 10 +++++----- docs/1.0.25-alpha/api/scope/index.html | 10 +++++----- docs/1.0.25-alpha/api/space/index.html | 10 +++++----- .../api/tskeywordsscope/index.html | 10 +++++----- docs/1.0.25-alpha/api/type/index.html | 10 +++++----- docs/1.0.25-alpha/api/union/index.html | 10 +++++----- .../1.0.25-alpha/api/validatebound/index.html | 10 +++++----- .../api/validatedefinition/index.html | 10 +++++----- .../api/validatedivisor/index.html | 10 +++++----- .../api/validationscope/index.html | 10 +++++----- docs/1.0.25-alpha/api/valueof/index.html | 10 +++++----- docs/1.0.25-alpha/index.html | 10 +++++----- docs/1.0.25-alpha/scopes/index.html | 10 +++++----- docs/1.0.26-alpha/api/ark/index.html | 10 +++++----- docs/1.0.26-alpha/api/arkscope/index.html | 10 +++++----- docs/1.0.26-alpha/api/arrayof/index.html | 10 +++++----- docs/1.0.26-alpha/api/index.html | 10 +++++----- docs/1.0.26-alpha/api/infer/index.html | 10 +++++----- .../api/inferdefinition/index.html | 10 +++++----- docs/1.0.26-alpha/api/instanceof/index.html | 10 +++++----- docs/1.0.26-alpha/api/intersection/index.html | 10 +++++----- .../api/jsobjectsscope/index.html | 10 +++++----- docs/1.0.26-alpha/api/keyof/index.html | 10 +++++----- docs/1.0.26-alpha/api/keywords/index.html | 10 +++++----- docs/1.0.26-alpha/api/morph/index.html | 10 +++++----- docs/1.0.26-alpha/api/narrow/index.html | 10 +++++----- docs/1.0.26-alpha/api/operators/index.html | 10 +++++----- .../api/parseconfigtuple/index.html | 10 +++++----- .../api/precompileddefaults/index.html | 10 +++++----- docs/1.0.26-alpha/api/problem/index.html | 10 +++++----- docs/1.0.26-alpha/api/problems/index.html | 10 +++++----- docs/1.0.26-alpha/api/resolvednode/index.html | 10 +++++----- docs/1.0.26-alpha/api/scope/index.html | 10 +++++----- docs/1.0.26-alpha/api/space/index.html | 10 +++++----- .../api/tskeywordsscope/index.html | 10 +++++----- docs/1.0.26-alpha/api/type/index.html | 10 +++++----- docs/1.0.26-alpha/api/union/index.html | 10 +++++----- .../1.0.26-alpha/api/validatebound/index.html | 10 +++++----- .../api/validatedefinition/index.html | 10 +++++----- .../api/validatedivisor/index.html | 10 +++++----- .../api/validationscope/index.html | 10 +++++----- docs/1.0.26-alpha/api/valueof/index.html | 10 +++++----- docs/1.0.26-alpha/index.html | 10 +++++----- docs/1.0.26-alpha/scopes/index.html | 10 +++++----- docs/1.0.27-alpha/api/ark/index.html | 19 +++++++++++++++++++ docs/1.0.27-alpha/api/arkscope/index.html | 19 +++++++++++++++++++ docs/1.0.27-alpha/api/arrayof/index.html | 19 +++++++++++++++++++ docs/1.0.27-alpha/api/index.html | 19 +++++++++++++++++++ docs/1.0.27-alpha/api/infer/index.html | 19 +++++++++++++++++++ .../api/inferdefinition/index.html | 19 +++++++++++++++++++ docs/1.0.27-alpha/api/instanceof/index.html | 19 +++++++++++++++++++ docs/1.0.27-alpha/api/intersection/index.html | 19 +++++++++++++++++++ .../api/jsobjectsscope/index.html | 19 +++++++++++++++++++ docs/1.0.27-alpha/api/keyof/index.html | 19 +++++++++++++++++++ docs/1.0.27-alpha/api/keywords/index.html | 19 +++++++++++++++++++ docs/1.0.27-alpha/api/morph/index.html | 19 +++++++++++++++++++ docs/1.0.27-alpha/api/narrow/index.html | 19 +++++++++++++++++++ docs/1.0.27-alpha/api/operators/index.html | 19 +++++++++++++++++++ .../api/parseconfigtuple/index.html | 19 +++++++++++++++++++ .../api/precompileddefaults/index.html | 19 +++++++++++++++++++ docs/1.0.27-alpha/api/problem/index.html | 19 +++++++++++++++++++ docs/1.0.27-alpha/api/problems/index.html | 19 +++++++++++++++++++ docs/1.0.27-alpha/api/resolvednode/index.html | 19 +++++++++++++++++++ docs/1.0.27-alpha/api/scope/index.html | 19 +++++++++++++++++++ docs/1.0.27-alpha/api/space/index.html | 19 +++++++++++++++++++ .../api/tskeywordsscope/index.html | 19 +++++++++++++++++++ docs/1.0.27-alpha/api/type/index.html | 19 +++++++++++++++++++ docs/1.0.27-alpha/api/union/index.html | 19 +++++++++++++++++++ .../1.0.27-alpha/api/validatebound/index.html | 19 +++++++++++++++++++ .../api/validatedefinition/index.html | 19 +++++++++++++++++++ .../api/validatedivisor/index.html | 19 +++++++++++++++++++ .../api/validationscope/index.html | 19 +++++++++++++++++++ docs/1.0.27-alpha/api/valueof/index.html | 19 +++++++++++++++++++ docs/1.0.27-alpha/index.html | 19 +++++++++++++++++++ docs/1.0.27-alpha/scopes/index.html | 19 +++++++++++++++++++ docs/api/ark/index.html | 14 +++++++------- docs/api/arkscope/index.html | 14 +++++++------- docs/api/arrayof/index.html | 14 +++++++------- docs/api/index.html | 14 +++++++------- docs/api/infer/index.html | 14 +++++++------- docs/api/inferdefinition/index.html | 14 +++++++------- docs/api/instanceof/index.html | 14 +++++++------- docs/api/intersection/index.html | 14 +++++++------- docs/api/jsobjectsscope/index.html | 14 +++++++------- docs/api/keyof/index.html | 14 +++++++------- docs/api/keywords/index.html | 14 +++++++------- docs/api/morph/index.html | 14 +++++++------- docs/api/narrow/index.html | 14 +++++++------- docs/api/operators/index.html | 14 +++++++------- docs/api/parseconfigtuple/index.html | 14 +++++++------- docs/api/precompileddefaults/index.html | 14 +++++++------- docs/api/problem/index.html | 14 +++++++------- docs/api/problems/index.html | 14 +++++++------- docs/api/resolvednode/index.html | 14 +++++++------- docs/api/scope/index.html | 14 +++++++------- docs/api/space/index.html | 14 +++++++------- docs/api/tskeywordsscope/index.html | 14 +++++++------- docs/api/type/index.html | 14 +++++++------- docs/api/union/index.html | 14 +++++++------- docs/api/validatebound/index.html | 14 +++++++------- docs/api/validatedefinition/index.html | 14 +++++++------- docs/api/validatedivisor/index.html | 14 +++++++------- docs/api/validationscope/index.html | 14 +++++++------- docs/api/valueof/index.html | 14 +++++++------- docs/index.html | 14 +++++++------- docs/next/api/ark/index.html | 10 +++++----- docs/next/api/arkscope/index.html | 10 +++++----- docs/next/api/arrayof/index.html | 10 +++++----- docs/next/api/index.html | 10 +++++----- docs/next/api/infer/index.html | 10 +++++----- docs/next/api/inferdefinition/index.html | 10 +++++----- docs/next/api/instanceof/index.html | 10 +++++----- docs/next/api/intersection/index.html | 10 +++++----- docs/next/api/jsobjectsscope/index.html | 10 +++++----- docs/next/api/keyof/index.html | 10 +++++----- docs/next/api/keywords/index.html | 10 +++++----- docs/next/api/morph/index.html | 10 +++++----- docs/next/api/narrow/index.html | 10 +++++----- docs/next/api/operators/index.html | 10 +++++----- docs/next/api/parseconfigtuple/index.html | 10 +++++----- docs/next/api/precompileddefaults/index.html | 10 +++++----- docs/next/api/problem/index.html | 10 +++++----- docs/next/api/problems/index.html | 10 +++++----- docs/next/api/resolvednode/index.html | 10 +++++----- docs/next/api/scope/index.html | 10 +++++----- docs/next/api/space/index.html | 10 +++++----- docs/next/api/tskeywordsscope/index.html | 10 +++++----- docs/next/api/type/index.html | 10 +++++----- docs/next/api/union/index.html | 10 +++++----- docs/next/api/validatebound/index.html | 10 +++++----- docs/next/api/validatedefinition/index.html | 10 +++++----- docs/next/api/validatedivisor/index.html | 10 +++++----- docs/next/api/validationscope/index.html | 10 +++++----- docs/next/api/valueof/index.html | 10 +++++----- docs/next/index.html | 10 +++++----- docs/next/scopes/index.html | 10 +++++----- docs/scopes/index.html | 14 +++++++------- index.html | 10 +++++----- try/index.html | 10 +++++----- 406 files changed, 2216 insertions(+), 1595 deletions(-) rename assets/js/{00cf5318.c2abfe12.js => 00cf5318.22204a20.js} (99%) rename assets/js/{e593da58.fac94459.js => 07cf2946.b9c1de1b.js} (90%) create mode 100644 assets/js/11b4899c.03eb6f95.js create mode 100644 assets/js/13e267d5.1920fc89.js rename assets/js/{1df93b7f.e4ac7638.js => 1df93b7f.8f8e36a6.js} (99%) rename assets/js/{218a10b7.3b34e4e5.js => 218a10b7.65da5ac1.js} (83%) rename assets/js/{ac907d5b.7084c40c.js => 2378f488.8d0eeb03.js} (92%) rename assets/js/{fa5b3c64.f8852870.js => 336b3993.537a8728.js} (94%) create mode 100644 assets/js/3a7be745.cf0648ef.js rename assets/js/{3f475d74.ffe6176f.js => 3f475d74.7333856c.js} (80%) create mode 100644 assets/js/489af003.661bdefe.js create mode 100644 assets/js/4d157327.6a9901b0.js rename assets/js/{4edc808e.cd42aacd.js => 4edc808e.5c64803d.js} (99%) delete mode 100644 assets/js/4f91d1fa.5f451cde.js create mode 100644 assets/js/4f91d1fa.9f0b914e.js rename assets/js/{dc29efe7.ce84b793.js => 52828006.99814294.js} (80%) create mode 100644 assets/js/598efede.1edc0c86.js rename assets/js/{3a7be745.1ba35d98.js => 5a806f6c.7bc8622c.js} (89%) rename assets/js/{8fb3568e.5f0a3ede.js => 64a3c6e9.d8ba1cf4.js} (95%) rename assets/js/{664634ec.de64b870.js => 664634ec.25fe7573.js} (75%) create mode 100644 assets/js/6a5e2130.a2d7edf9.js create mode 100644 assets/js/6b349b64.723206a6.js create mode 100644 assets/js/6f3866ae.2389d02c.js create mode 100644 assets/js/6fdaf75b.9bb75992.js create mode 100644 assets/js/70865799.db0a6353.js create mode 100644 assets/js/7106c5f4.af2b16e5.js rename assets/js/{b4d00006.597ab34e.js => 712be200.c9e70368.js} (95%) create mode 100644 assets/js/720b32b8.c353ca3c.js rename assets/js/{6fdaf75b.0384dd08.js => 7955d848.efe90783.js} (91%) create mode 100644 assets/js/7cdde229.2ff0a141.js rename assets/js/{7f741c26.f3c43a4d.js => 7f741c26.f7beb387.js} (70%) create mode 100644 assets/js/84389d4b.7e92f5e8.js create mode 100644 assets/js/8fb3568e.0f0e0ddb.js rename assets/js/{13e267d5.44c7b56a.js => 90c008eb.fd8f8f16.js} (91%) rename assets/js/{91ed0e08.9a245cac.js => 91ed0e08.25af1c42.js} (72%) rename assets/js/{ea0f6b3f.f0275d0a.js => 9250bde8.73e6dbd7.js} (61%) rename assets/js/{70865799.8029d1b5.js => 9939f002.4a2113b8.js} (91%) delete mode 100644 assets/js/9b8bb8a5.04d48811.js create mode 100644 assets/js/9b8bb8a5.7e5ef358.js rename assets/js/{f5450a53.49f9e26c.js => a1b4c482.4da81902.js} (91%) rename assets/js/{7cdde229.081a1ec2.js => a6750165.a07d66a7.js} (93%) rename assets/js/{a8443108.2a5060f1.js => a8443108.f321993d.js} (95%) create mode 100644 assets/js/ac907d5b.0e99e90a.js create mode 100644 assets/js/af2e9fab.0667831a.js rename assets/js/{b207f374.786a77c0.js => b207f374.c9a1648e.js} (70%) create mode 100644 assets/js/b4d00006.f4e1eb05.js rename assets/js/{720b32b8.ff9fa1f2.js => b8be6a81.413824df.js} (89%) delete mode 100644 assets/js/bf95da2e.d25408d0.js create mode 100644 assets/js/bf95da2e.f89c6678.js rename assets/js/{e1c5356f.1718ad8d.js => bf9eb72b.3558de0e.js} (90%) create mode 100644 assets/js/c1566c80.ad69bde8.js create mode 100644 assets/js/c40baa2c.fcd23e83.js create mode 100644 assets/js/c62ebc34.73328b36.js create mode 100644 assets/js/c96bd749.9d77f730.js rename assets/js/{c9964daf.38b1dac4.js => c9964daf.9b87fed2.js} (53%) create mode 100644 assets/js/ccfb1236.9b25d88e.js rename assets/js/{84389d4b.7bc9fa16.js => d939c4cf.f1db1b36.js} (90%) create mode 100644 assets/js/dc29efe7.1b1cc604.js rename assets/js/{dda49074.b76fab21.js => dda49074.47d2ae92.js} (99%) create mode 100644 assets/js/e1c5356f.dd9a3e1b.js rename assets/js/{fca6815f.8eb5e318.js => e48be19d.7cf64a56.js} (85%) create mode 100644 assets/js/e593da58.353c470e.js rename assets/js/{c96bd749.95c0eb5e.js => e87af240.1d0ee935.js} (92%) create mode 100644 assets/js/ea0f6b3f.b8457f89.js create mode 100644 assets/js/ea18a43c.01e05ac2.js rename assets/js/{11b4899c.cf37049e.js => ed756b6e.fb2e34fb.js} (91%) rename assets/js/{ea18a43c.09da4da1.js => f4577cf2.392cabc8.js} (91%) create mode 100644 assets/js/f5450a53.b0663828.js rename assets/js/{ccfb1236.8b8d6510.js => f77690a0.bcdcdf42.js} (95%) create mode 100644 assets/js/fa5b3c64.24f57e35.js create mode 100644 assets/js/fca6815f.f0f448c1.js delete mode 100644 assets/js/main.49c9402e.js create mode 100644 assets/js/main.9ce220f4.js rename assets/js/{main.49c9402e.js.LICENSE.txt => main.9ce220f4.js.LICENSE.txt} (100%) create mode 100644 assets/js/runtime~main.dd2ba6a8.js delete mode 100644 assets/js/runtime~main.df2b6a49.js create mode 100644 docs/1.0.27-alpha/api/ark/index.html create mode 100644 docs/1.0.27-alpha/api/arkscope/index.html create mode 100644 docs/1.0.27-alpha/api/arrayof/index.html create mode 100644 docs/1.0.27-alpha/api/index.html create mode 100644 docs/1.0.27-alpha/api/infer/index.html create mode 100644 docs/1.0.27-alpha/api/inferdefinition/index.html create mode 100644 docs/1.0.27-alpha/api/instanceof/index.html create mode 100644 docs/1.0.27-alpha/api/intersection/index.html create mode 100644 docs/1.0.27-alpha/api/jsobjectsscope/index.html create mode 100644 docs/1.0.27-alpha/api/keyof/index.html create mode 100644 docs/1.0.27-alpha/api/keywords/index.html create mode 100644 docs/1.0.27-alpha/api/morph/index.html create mode 100644 docs/1.0.27-alpha/api/narrow/index.html create mode 100644 docs/1.0.27-alpha/api/operators/index.html create mode 100644 docs/1.0.27-alpha/api/parseconfigtuple/index.html create mode 100644 docs/1.0.27-alpha/api/precompileddefaults/index.html create mode 100644 docs/1.0.27-alpha/api/problem/index.html create mode 100644 docs/1.0.27-alpha/api/problems/index.html create mode 100644 docs/1.0.27-alpha/api/resolvednode/index.html create mode 100644 docs/1.0.27-alpha/api/scope/index.html create mode 100644 docs/1.0.27-alpha/api/space/index.html create mode 100644 docs/1.0.27-alpha/api/tskeywordsscope/index.html create mode 100644 docs/1.0.27-alpha/api/type/index.html create mode 100644 docs/1.0.27-alpha/api/union/index.html create mode 100644 docs/1.0.27-alpha/api/validatebound/index.html create mode 100644 docs/1.0.27-alpha/api/validatedefinition/index.html create mode 100644 docs/1.0.27-alpha/api/validatedivisor/index.html create mode 100644 docs/1.0.27-alpha/api/validationscope/index.html create mode 100644 docs/1.0.27-alpha/api/valueof/index.html create mode 100644 docs/1.0.27-alpha/index.html create mode 100644 docs/1.0.27-alpha/scopes/index.html diff --git a/404.html b/404.html index 1ab7731855..b9aab6f8bf 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.

- - +
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.c2abfe12.js b/assets/js/00cf5318.22204a20.js similarity index 99% rename from assets/js/00cf5318.c2abfe12.js rename to assets/js/00cf5318.22204a20.js index 645fdd61ce..ac4ed35726 100644 --- a/assets/js/00cf5318.c2abfe12.js +++ b/assets/js/00cf5318.22204a20.js @@ -1 +1 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[2216],{57522:(e,n,t)=>{t.d(n,{Zo:()=>l,kt:()=>f});var r=t(29901);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(56632),o=t(82786),a=t(53800),i=t(49361),s=t(29901),p=t(43346);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(54805),o=t(30008),a=(t(29901),t(57522)),i=t(76570),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 +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[2216],{57522:(e,n,t)=>{t.d(n,{Zo:()=>l,kt:()=>f});var r=t(29901);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(56632),o=t(82786),a=t(53800),i=t(49361),s=t(29901),p=t(43346);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(54805),o=t(30008),a=(t(29901),t(57522)),i=t(76570),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/e593da58.fac94459.js b/assets/js/07cf2946.b9c1de1b.js similarity index 90% rename from assets/js/e593da58.fac94459.js rename to assets/js/07cf2946.b9c1de1b.js index f77c053beb..0904abaa3d 100644 --- a/assets/js/e593da58.fac94459.js +++ b/assets/js/07cf2946.b9c1de1b.js @@ -1 +1 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[1874],{57522:(e,t,r)=>{r.d(t,{Zo:()=>u,kt:()=>v});var n=r(29901);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(54805),o=r(30008),a=(r(29901),r(57522)),l=["components"],i={hide_table_of_contents:!0},p="ResolvedNode",c={unversionedId:"api/resolvednode",id:"version-1.0.27-alpha/api/resolvednode",title:"ResolvedNode",description:"operator",source:"@site/versioned_docs/version-1.0.27-alpha/api/resolvednode.md",sourceDirName:"api",slug:"/api/resolvednode",permalink:"/docs/api/resolvednode",draft:!1,tags:[],version:"1.0.27-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/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([[7606],{57522:(e,t,r)=>{r.d(t,{Zo:()=>u,kt:()=>v});var n=r(29901);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(54805),o=r(30008),a=(r(29901),r(57522)),l=["components"],i={hide_table_of_contents:!0},p="ResolvedNode",c={unversionedId:"api/resolvednode",id:"version-1.0.28-alpha/api/resolvednode",title:"ResolvedNode",description:"operator",source:"@site/versioned_docs/version-1.0.28-alpha/api/resolvednode.md",sourceDirName:"api",slug:"/api/resolvednode",permalink:"/docs/api/resolvednode",draft:!1,tags:[],version:"1.0.28-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/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/11b4899c.03eb6f95.js b/assets/js/11b4899c.03eb6f95.js new file mode 100644 index 0000000000..ef0ad1bdd9 --- /dev/null +++ b/assets/js/11b4899c.03eb6f95.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[3246],{57522:(e,t,n)=>{n.d(t,{Zo:()=>u,kt:()=>d});var r=n(29901);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(54805),a=n(30008),o=(n(29901),n(57522)),l=["components"],i={hide_table_of_contents:!0},c="instanceOf",p={unversionedId:"api/instanceof",id:"version-1.0.27-alpha/api/instanceof",title:"instanceOf",description:"operator",source:"@site/versioned_docs/version-1.0.27-alpha/api/instanceof.md",sourceDirName:"api",slug:"/api/instanceof",permalink:"/docs/1.0.27-alpha/api/instanceof",draft:!1,tags:[],version:"1.0.27-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.27-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/13e267d5.1920fc89.js b/assets/js/13e267d5.1920fc89.js new file mode 100644 index 0000000000..4788da51c4 --- /dev/null +++ b/assets/js/13e267d5.1920fc89.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[8652],{57522:(e,r,t)=>{t.d(r,{Zo:()=>u,kt:()=>d});var n=t(29901);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 o(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||(a[t]=e[t]);return a}(e,r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}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,a=e.mdxType,o=e.originalType,i=e.parentName,u=p(e,["components","mdxType","originalType","parentName"]),s=c(t),m=a,d=s["".concat(i,".").concat(m)]||s[m]||f[m]||o;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,a=r&&r.mdxType;if("string"==typeof e||a){var o=t.length,l=new Array(o);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:a,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(54805),a=t(30008),o=(t(29901),t(57522)),l=["components"],p={hide_table_of_contents:!0},i="narrow",c={unversionedId:"api/narrow",id:"version-1.0.27-alpha/api/narrow",title:"narrow",description:"operator",source:"@site/versioned_docs/version-1.0.27-alpha/api/narrow.md",sourceDirName:"api",slug:"/api/narrow",permalink:"/docs/1.0.27-alpha/api/narrow",draft:!1,tags:[],version:"1.0.27-alpha",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,a.Z)(e,l);return(0,o.kt)(m,(0,n.Z)({},f,t,{components:r,mdxType:"MDXLayout"}),(0,o.kt)("h1",{id:"narrow"},"narrow"),(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.27-alpha/api/narrow"},"=>"))),(0,o.kt)("h2",{id:"tuple"},"tuple"),(0,o.kt)("ul",null,(0,o.kt)("li",{parentName:"ul"},'["type", "=>" , condition]'," ",(0,o.kt)("br",null)),(0,o.kt)("li",{parentName:"ul"},"const narrow = type( ",'["number", "=>" , (n) => n % 2 === 0]',")",(0,o.kt)("br",null))),(0,o.kt)("h2",{id:"example"},"example"),(0,o.kt)("ul",null,(0,o.kt)("li",{parentName:"ul"},(0,o.kt)("pre",{parentName:"li"},(0,o.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/1df93b7f.e4ac7638.js b/assets/js/1df93b7f.8f8e36a6.js similarity index 99% rename from assets/js/1df93b7f.e4ac7638.js rename to assets/js/1df93b7f.8f8e36a6.js index 0b032b3081..f12cea2fb5 100644 --- a/assets/js/1df93b7f.e4ac7638.js +++ b/assets/js/1df93b7f.8f8e36a6.js @@ -1 +1 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[3237],{76570:(e,t,n)=>{n.d(t,{g:()=>h});var r=n(56632),a=n(82786),i=n(53800),o=n(49361),l=n(29901),c=n(43346);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(43597),h=n(59359),g=n(2372),y=n(29901),b=n(63221),v=n(53800),E=n(85569),k=n(54805),x=n(55850),w=n(68584),Z=n(70856),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(14043),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(96172),$=n(36832),A=n(50931),F=n(73760),W=n(35601),U=n(76570),q=n(17188),R=n(39069),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(47699),J=n(54852),G=n(17739),K=n(57487),B=n(84123),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(56632),a=n(82786),i=n(53800),o=n(49361),l=n(29901),c=n(43346);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(43597),h=n(59359),g=n(2372),y=n(29901),b=n(63221),v=n(53800),E=n(85569),k=n(54805),x=n(55850),w=n(68584),Z=n(70856),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(14043),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(96172),$=n(36832),A=n(50931),F=n(73760),W=n(35601),U=n(76570),q=n(17188),R=n(39069),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(47699),J=n(54852),G=n(17739),K=n(57487),B=n(84123),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:()=>u,kt:()=>y});var n=r(29901);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(54805),a=r(30008),o=(r(29901),r(57522)),c=["components"],i={hide_table_of_contents:!0},p="ark",l={unversionedId:"api/ark",id:"version-1.0.27-alpha/api/ark",title:"ark",description:"text",source:"@site/versioned_docs/version-1.0.27-alpha/api/ark.md",sourceDirName:"api",slug:"/api/ark",permalink:"/docs/api/ark",draft:!1,tags:[],version:"1.0.27-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([[3],{57522:(e,t,r)=>{r.d(t,{Zo:()=>u,kt:()=>y});var n=r(29901);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(54805),a=r(30008),o=(r(29901),r(57522)),c=["components"],i={hide_table_of_contents:!0},p="ark",l={unversionedId:"api/ark",id:"version-1.0.27-alpha/api/ark",title:"ark",description:"text",source:"@site/versioned_docs/version-1.0.27-alpha/api/ark.md",sourceDirName:"api",slug:"/api/ark",permalink:"/docs/1.0.27-alpha/api/ark",draft:!1,tags:[],version:"1.0.27-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/ac907d5b.7084c40c.js b/assets/js/2378f488.8d0eeb03.js similarity index 92% rename from assets/js/ac907d5b.7084c40c.js rename to assets/js/2378f488.8d0eeb03.js index d12b59b2ab..736144dcf9 100644 --- a/assets/js/ac907d5b.7084c40c.js +++ b/assets/js/2378f488.8d0eeb03.js @@ -1 +1 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[8494],{57522:(e,t,r)=>{r.d(t,{Zo:()=>u,kt:()=>y});var n=r(29901);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(54805),o=r(30008),a=(r(29901),r(57522)),i=["components"],p={id:"api",hide_table_of_contents:!0,title:"API"},s="API",c={unversionedId:"api",id:"version-1.0.27-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.27-alpha/api.mdx",sourceDirName:".",slug:"/api",permalink:"/docs/api",draft:!1,tags:[],version:"1.0.27-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([[5834],{57522:(e,t,r)=>{r.d(t,{Zo:()=>u,kt:()=>y});var n=r(29901);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(54805),o=r(30008),a=(r(29901),r(57522)),i=["components"],p={id:"api",hide_table_of_contents:!0,title:"API"},s="API",c={unversionedId:"api",id:"version-1.0.28-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.28-alpha/api.mdx",sourceDirName:".",slug:"/api",permalink:"/docs/api",draft:!1,tags:[],version:"1.0.28-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/fa5b3c64.f8852870.js b/assets/js/336b3993.537a8728.js similarity index 94% rename from assets/js/fa5b3c64.f8852870.js rename to assets/js/336b3993.537a8728.js index 3a70f4a4f4..54e1d764b1 100644 --- a/assets/js/fa5b3c64.f8852870.js +++ b/assets/js/336b3993.537a8728.js @@ -1 +1 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[2111],{57522:(t,e,n)=>{n.d(e,{Zo:()=>d,kt:()=>k});var r=n(29901);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(54805),a=n(30008),l=(n(29901),n(57522)),o=["components"],p={hide_table_of_contents:!0},i="jsObjectsScope",c={unversionedId:"api/jsobjectsscope",id:"version-1.0.27-alpha/api/jsobjectsscope",title:"jsObjectsScope",description:"text",source:"@site/versioned_docs/version-1.0.27-alpha/api/jsobjectsscope.md",sourceDirName:"api",slug:"/api/jsobjectsscope",permalink:"/docs/api/jsobjectsscope",draft:!1,tags:[],version:"1.0.27-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 +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[8666],{57522:(t,e,n)=>{n.d(e,{Zo:()=>d,kt:()=>k});var r=n(29901);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(54805),a=n(30008),l=(n(29901),n(57522)),o=["components"],p={hide_table_of_contents:!0},i="jsObjectsScope",c={unversionedId:"api/jsobjectsscope",id:"version-1.0.28-alpha/api/jsobjectsscope",title:"jsObjectsScope",description:"text",source:"@site/versioned_docs/version-1.0.28-alpha/api/jsobjectsscope.md",sourceDirName:"api",slug:"/api/jsobjectsscope",permalink:"/docs/api/jsobjectsscope",draft:!1,tags:[],version:"1.0.28-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/3a7be745.cf0648ef.js b/assets/js/3a7be745.cf0648ef.js new file mode 100644 index 0000000000..b053d74db2 --- /dev/null +++ b/assets/js/3a7be745.cf0648ef.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[7919],{57522:(e,t,r)=>{r.d(t,{Zo:()=>f,kt:()=>m});var n=r(29901);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(54805),o=r(30008),a=(r(29901),r(57522)),i=["components"],c={hide_table_of_contents:!0},p="Infer",l={unversionedId:"api/infer",id:"version-1.0.27-alpha/api/infer",title:"Infer",description:"text",source:"@site/versioned_docs/version-1.0.27-alpha/api/infer.md",sourceDirName:"api",slug:"/api/infer",permalink:"/docs/1.0.27-alpha/api/infer",draft:!1,tags:[],version:"1.0.27-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/3f475d74.ffe6176f.js b/assets/js/3f475d74.7333856c.js similarity index 80% rename from assets/js/3f475d74.ffe6176f.js rename to assets/js/3f475d74.7333856c.js index d00bdee38d..24f154d5cd 100644 --- a/assets/js/3f475d74.ffe6176f.js +++ b/assets/js/3f475d74.7333856c.js @@ -1 +1 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[663],{57522:(e,t,r)=>{r.d(t,{Zo:()=>s,kt:()=>b});var n=r(29901);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(54805),o=r(30008),a=(r(29901),r(57522)),l=["components"],p={hide_table_of_contents:!0},c="Problems",i={unversionedId:"api/problems",id:"version-1.0.27-alpha/api/problems",title:"Problems",description:"text",source:"@site/versioned_docs/version-1.0.27-alpha/api/problems.md",sourceDirName:"api",slug:"/api/problems",permalink:"/docs/api/problems",draft:!1,tags:[],version:"1.0.27-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([[663],{57522:(e,t,r)=>{r.d(t,{Zo:()=>s,kt:()=>b});var n=r(29901);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(54805),o=r(30008),a=(r(29901),r(57522)),l=["components"],p={hide_table_of_contents:!0},c="Problems",i={unversionedId:"api/problems",id:"version-1.0.27-alpha/api/problems",title:"Problems",description:"text",source:"@site/versioned_docs/version-1.0.27-alpha/api/problems.md",sourceDirName:"api",slug:"/api/problems",permalink:"/docs/1.0.27-alpha/api/problems",draft:!1,tags:[],version:"1.0.27-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/489af003.661bdefe.js b/assets/js/489af003.661bdefe.js new file mode 100644 index 0000000000..742ebfe9e8 --- /dev/null +++ b/assets/js/489af003.661bdefe.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[5e3],{57522:(e,t,r)=>{r.d(t,{Zo:()=>u,kt:()=>d});var n=r(29901);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(54805),o=r(30008),a=(r(29901),r(57522)),p=["components"],i={hide_table_of_contents:!0},c="type",l={unversionedId:"api/type",id:"version-1.0.28-alpha/api/type",title:"type",description:"text",source:"@site/versioned_docs/version-1.0.28-alpha/api/type.md",sourceDirName:"api",slug:"/api/type",permalink:"/docs/api/type",draft:!1,tags:[],version:"1.0.28-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/4d157327.6a9901b0.js b/assets/js/4d157327.6a9901b0.js new file mode 100644 index 0000000000..c62bfe05e7 --- /dev/null +++ b/assets/js/4d157327.6a9901b0.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[9655],{57522:(e,t,r)=>{r.d(t,{Zo:()=>u,kt:()=>k});var n=r(29901);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(54805),o=r(30008),a=(r(29901),r(57522)),l=["components"],p={hide_table_of_contents:!0},i="keyOf",c={unversionedId:"api/keyof",id:"version-1.0.28-alpha/api/keyof",title:"keyOf",description:"operator",source:"@site/versioned_docs/version-1.0.28-alpha/api/keyof.md",sourceDirName:"api",slug:"/api/keyof",permalink:"/docs/api/keyof",draft:!1,tags:[],version:"1.0.28-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/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/4edc808e.cd42aacd.js b/assets/js/4edc808e.5c64803d.js similarity index 99% rename from assets/js/4edc808e.cd42aacd.js rename to assets/js/4edc808e.5c64803d.js index 5c617b1129..89a9064d86 100644 --- a/assets/js/4edc808e.cd42aacd.js +++ b/assets/js/4edc808e.5c64803d.js @@ -1 +1 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[4173],{57522:(e,n,t)=>{t.d(n,{Zo:()=>c,kt:()=>f});var r=t(29901);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(56632),a=t(82786),o=t(53800),i=t(49361),s=t(29901),p=t(43346);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(54805),a=t(30008),o=(t(29901),t(57522)),i=t(76570),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([[4173],{57522:(e,n,t)=>{t.d(n,{Zo:()=>c,kt:()=>f});var r=t(29901);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(56632),a=t(82786),o=t(53800),i=t(49361),s=t(29901),p=t(43346);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(54805),a=t(30008),o=(t(29901),t(57522)),i=t(76570),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/4f91d1fa.5f451cde.js b/assets/js/4f91d1fa.5f451cde.js deleted file mode 100644 index c5d26f9c6e..0000000000 --- a/assets/js/4f91d1fa.5f451cde.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[5520],{82727:i=>{i.exports=JSON.parse('{"pluginId":"default","version":"1.0.27-alpha","label":"1.0.27-alpha","banner":null,"badge":true,"noIndex":false,"className":"docs-version-1.0.27-alpha","isLast":true,"docsSidebars":{"sidebar":[{"type":"category","label":"Getting Started","items":[{"type":"link","label":"Types","href":"/docs/","docId":"intro"},{"type":"link","label":"Scopes","href":"/docs/scopes","docId":"scopes"},{"type":"link","label":"Keywords","href":"/docs/api/keywords","docId":"api/keywords"},{"type":"link","label":"Operators","href":"/docs/api/operators","docId":"api/operators"}],"collapsed":true,"collapsible":true},{"type":"link","label":"API","href":"/docs/api","docId":"api"}]},"docs":{"api":{"id":"api","title":"API","description":"replace(./dev/test,https://github.com/arktypeio/arktype/tree/main/dev/test) --\x3e","sidebar":"sidebar"},"api/ark":{"id":"api/ark","title":"ark","description":"text"},"api/arkscope":{"id":"api/arkscope","title":"arkScope","description":"text"},"api/arrayof":{"id":"api/arrayof","title":"arrayOf","description":"operator"},"api/infer":{"id":"api/infer","title":"Infer","description":"text"},"api/inferdefinition":{"id":"api/inferdefinition","title":"inferDefinition","description":"text"},"api/instanceof":{"id":"api/instanceof","title":"instanceOf","description":"operator"},"api/intersection":{"id":"api/intersection","title":"intersection","description":"operator"},"api/jsobjectsscope":{"id":"api/jsobjectsscope","title":"jsObjectsScope","description":"text"},"api/keyof":{"id":"api/keyof","title":"keyOf","description":"operator"},"api/keywords":{"id":"api/keywords","title":"Keywords","description":"jsObjectsScope","sidebar":"sidebar"},"api/morph":{"id":"api/morph","title":"morph","description":"operator"},"api/narrow":{"id":"api/narrow","title":"narrow","description":"operator"},"api/operators":{"id":"api/operators","title":"Operators","description":"Operating Table","sidebar":"sidebar"},"api/parseconfigtuple":{"id":"api/parseconfigtuple","title":"parseConfigTuple","description":"operator"},"api/precompileddefaults":{"id":"api/precompileddefaults","title":"PrecompiledDefaults","description":"text"},"api/problem":{"id":"api/problem","title":"Problem","description":"text"},"api/problems":{"id":"api/problems","title":"Problems","description":"text"},"api/resolvednode":{"id":"api/resolvednode","title":"ResolvedNode","description":"operator"},"api/scope":{"id":"api/scope","title":"scope","description":"text"},"api/space":{"id":"api/space","title":"Space","description":"text"},"api/tskeywordsscope":{"id":"api/tskeywordsscope","title":"tsKeywordsScope","description":"keywords"},"api/type":{"id":"api/type","title":"type","description":"text"},"api/union":{"id":"api/union","title":"union","description":"operator"},"api/validatebound":{"id":"api/validatebound","title":"validateBound","description":"operator"},"api/validatedefinition":{"id":"api/validatedefinition","title":"validateDefinition","description":"text"},"api/validatedivisor":{"id":"api/validatedivisor","title":"validateDivisor","description":"operator"},"api/validationscope":{"id":"api/validationscope","title":"validationScope","description":"keywords"},"api/valueof":{"id":"api/valueof","title":"valueOf","description":"operator"},"intro":{"id":"intro","title":"Intro","description":"replace(./dev/arktype.io/static,) |> replace({ type },{\\"{\\"} type {\\"}\\"}) --\x3e","sidebar":"sidebar"},"scopes":{"id":"scopes","title":"Scopes","description":"","sidebar":"sidebar"}}}')}}]); \ No newline at end of file diff --git a/assets/js/4f91d1fa.9f0b914e.js b/assets/js/4f91d1fa.9f0b914e.js new file mode 100644 index 0000000000..d564bb0dbd --- /dev/null +++ b/assets/js/4f91d1fa.9f0b914e.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[5520],{82727:i=>{i.exports=JSON.parse('{"pluginId":"default","version":"1.0.27-alpha","label":"1.0.27-alpha","banner":"unmaintained","badge":true,"noIndex":false,"className":"docs-version-1.0.27-alpha","isLast":false,"docsSidebars":{"sidebar":[{"type":"category","label":"Getting Started","items":[{"type":"link","label":"Types","href":"/docs/1.0.27-alpha/","docId":"intro"},{"type":"link","label":"Scopes","href":"/docs/1.0.27-alpha/scopes","docId":"scopes"},{"type":"link","label":"Keywords","href":"/docs/1.0.27-alpha/api/keywords","docId":"api/keywords"},{"type":"link","label":"Operators","href":"/docs/1.0.27-alpha/api/operators","docId":"api/operators"}],"collapsed":true,"collapsible":true},{"type":"link","label":"API","href":"/docs/1.0.27-alpha/api","docId":"api"}]},"docs":{"api":{"id":"api","title":"API","description":"replace(./dev/test,https://github.com/arktypeio/arktype/tree/main/dev/test) --\x3e","sidebar":"sidebar"},"api/ark":{"id":"api/ark","title":"ark","description":"text"},"api/arkscope":{"id":"api/arkscope","title":"arkScope","description":"text"},"api/arrayof":{"id":"api/arrayof","title":"arrayOf","description":"operator"},"api/infer":{"id":"api/infer","title":"Infer","description":"text"},"api/inferdefinition":{"id":"api/inferdefinition","title":"inferDefinition","description":"text"},"api/instanceof":{"id":"api/instanceof","title":"instanceOf","description":"operator"},"api/intersection":{"id":"api/intersection","title":"intersection","description":"operator"},"api/jsobjectsscope":{"id":"api/jsobjectsscope","title":"jsObjectsScope","description":"text"},"api/keyof":{"id":"api/keyof","title":"keyOf","description":"operator"},"api/keywords":{"id":"api/keywords","title":"Keywords","description":"jsObjectsScope","sidebar":"sidebar"},"api/morph":{"id":"api/morph","title":"morph","description":"operator"},"api/narrow":{"id":"api/narrow","title":"narrow","description":"operator"},"api/operators":{"id":"api/operators","title":"Operators","description":"Operating Table","sidebar":"sidebar"},"api/parseconfigtuple":{"id":"api/parseconfigtuple","title":"parseConfigTuple","description":"operator"},"api/precompileddefaults":{"id":"api/precompileddefaults","title":"PrecompiledDefaults","description":"text"},"api/problem":{"id":"api/problem","title":"Problem","description":"text"},"api/problems":{"id":"api/problems","title":"Problems","description":"text"},"api/resolvednode":{"id":"api/resolvednode","title":"ResolvedNode","description":"operator"},"api/scope":{"id":"api/scope","title":"scope","description":"text"},"api/space":{"id":"api/space","title":"Space","description":"text"},"api/tskeywordsscope":{"id":"api/tskeywordsscope","title":"tsKeywordsScope","description":"keywords"},"api/type":{"id":"api/type","title":"type","description":"text"},"api/union":{"id":"api/union","title":"union","description":"operator"},"api/validatebound":{"id":"api/validatebound","title":"validateBound","description":"operator"},"api/validatedefinition":{"id":"api/validatedefinition","title":"validateDefinition","description":"text"},"api/validatedivisor":{"id":"api/validatedivisor","title":"validateDivisor","description":"operator"},"api/validationscope":{"id":"api/validationscope","title":"validationScope","description":"keywords"},"api/valueof":{"id":"api/valueof","title":"valueOf","description":"operator"},"intro":{"id":"intro","title":"Intro","description":"replace(./dev/arktype.io/static,) |> replace({ type },{\\"{\\"} type {\\"}\\"}) --\x3e","sidebar":"sidebar"},"scopes":{"id":"scopes","title":"Scopes","description":"","sidebar":"sidebar"}}}')}}]); \ No newline at end of file diff --git a/assets/js/dc29efe7.ce84b793.js b/assets/js/52828006.99814294.js similarity index 80% rename from assets/js/dc29efe7.ce84b793.js rename to assets/js/52828006.99814294.js index 9b566319c1..8c5ad6b8a8 100644 --- a/assets/js/dc29efe7.ce84b793.js +++ b/assets/js/52828006.99814294.js @@ -1 +1 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[6641],{57522:(t,e,n)=>{n.d(e,{Zo:()=>o,kt:()=>g});var a=n(29901);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(54805),r=n(30008),l=(n(29901),n(57522)),i=["components"],d={hide_table_of_contents:!0},p="Keywords",m={unversionedId:"api/keywords",id:"version-1.0.27-alpha/api/keywords",title:"Keywords",description:"jsObjectsScope",source:"@site/versioned_docs/version-1.0.27-alpha/api/keywords.md",sourceDirName:"api",slug:"/api/keywords",permalink:"/docs/api/keywords",draft:!1,tags:[],version:"1.0.27-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 +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[2370],{57522:(t,e,n)=>{n.d(e,{Zo:()=>o,kt:()=>g});var a=n(29901);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(54805),r=n(30008),l=(n(29901),n(57522)),i=["components"],p={hide_table_of_contents:!0},d="Keywords",m={unversionedId:"api/keywords",id:"version-1.0.28-alpha/api/keywords",title:"Keywords",description:"jsObjectsScope",source:"@site/versioned_docs/version-1.0.28-alpha/api/keywords.md",sourceDirName:"api",slug:"/api/keywords",permalink:"/docs/api/keywords",draft:!1,tags:[],version:"1.0.28-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) => import("../../parse/ast/morph.js").Out')),(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) => import("../../parse/ast/morph.js").Out')),(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) => import("../../parse/ast/morph.js").Out')),(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) => import("../../parse/ast/morph.js").Out')),(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/598efede.1edc0c86.js b/assets/js/598efede.1edc0c86.js new file mode 100644 index 0000000000..44195ce44f --- /dev/null +++ b/assets/js/598efede.1edc0c86.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[4582],{2:i=>{i.exports=JSON.parse('{"pluginId":"default","version":"1.0.28-alpha","label":"1.0.28-alpha","banner":null,"badge":true,"noIndex":false,"className":"docs-version-1.0.28-alpha","isLast":true,"docsSidebars":{"sidebar":[{"type":"category","label":"Getting Started","items":[{"type":"link","label":"Types","href":"/docs/","docId":"intro"},{"type":"link","label":"Scopes","href":"/docs/scopes","docId":"scopes"},{"type":"link","label":"Keywords","href":"/docs/api/keywords","docId":"api/keywords"},{"type":"link","label":"Operators","href":"/docs/api/operators","docId":"api/operators"}],"collapsed":true,"collapsible":true},{"type":"link","label":"API","href":"/docs/api","docId":"api"}]},"docs":{"api":{"id":"api","title":"API","description":"replace(./dev/test,https://github.com/arktypeio/arktype/tree/main/dev/test) --\x3e","sidebar":"sidebar"},"api/ark":{"id":"api/ark","title":"ark","description":"text"},"api/arkscope":{"id":"api/arkscope","title":"arkScope","description":"text"},"api/arrayof":{"id":"api/arrayof","title":"arrayOf","description":"operator"},"api/infer":{"id":"api/infer","title":"Infer","description":"text"},"api/inferdefinition":{"id":"api/inferdefinition","title":"inferDefinition","description":"text"},"api/instanceof":{"id":"api/instanceof","title":"instanceOf","description":"operator"},"api/intersection":{"id":"api/intersection","title":"intersection","description":"operator"},"api/jsobjectsscope":{"id":"api/jsobjectsscope","title":"jsObjectsScope","description":"text"},"api/keyof":{"id":"api/keyof","title":"keyOf","description":"operator"},"api/keywords":{"id":"api/keywords","title":"Keywords","description":"jsObjectsScope","sidebar":"sidebar"},"api/morph":{"id":"api/morph","title":"morph","description":"operator"},"api/narrow":{"id":"api/narrow","title":"narrow","description":"operator"},"api/operators":{"id":"api/operators","title":"Operators","description":"Operating Table","sidebar":"sidebar"},"api/parseconfigtuple":{"id":"api/parseconfigtuple","title":"parseConfigTuple","description":"operator"},"api/precompileddefaults":{"id":"api/precompileddefaults","title":"PrecompiledDefaults","description":"text"},"api/problem":{"id":"api/problem","title":"Problem","description":"text"},"api/problems":{"id":"api/problems","title":"Problems","description":"text"},"api/resolvednode":{"id":"api/resolvednode","title":"ResolvedNode","description":"operator"},"api/scope":{"id":"api/scope","title":"scope","description":"text"},"api/space":{"id":"api/space","title":"Space","description":"text"},"api/tskeywordsscope":{"id":"api/tskeywordsscope","title":"tsKeywordsScope","description":"keywords"},"api/type":{"id":"api/type","title":"type","description":"text"},"api/union":{"id":"api/union","title":"union","description":"operator"},"api/validatebound":{"id":"api/validatebound","title":"validateBound","description":"operator"},"api/validatedefinition":{"id":"api/validatedefinition","title":"validateDefinition","description":"text"},"api/validatedivisor":{"id":"api/validatedivisor","title":"validateDivisor","description":"operator"},"api/validationscope":{"id":"api/validationscope","title":"validationScope","description":"keywords"},"api/valueof":{"id":"api/valueof","title":"valueOf","description":"operator"},"intro":{"id":"intro","title":"Intro","description":"replace(./dev/arktype.io/static,) |> replace({ type },{\\"{\\"} type {\\"}\\"}) --\x3e","sidebar":"sidebar"},"scopes":{"id":"scopes","title":"Scopes","description":"","sidebar":"sidebar"}}}')}}]); \ No newline at end of file diff --git a/assets/js/3a7be745.1ba35d98.js b/assets/js/5a806f6c.7bc8622c.js similarity index 89% rename from assets/js/3a7be745.1ba35d98.js rename to assets/js/5a806f6c.7bc8622c.js index 0a43bf5bed..61c6f3cd29 100644 --- a/assets/js/3a7be745.1ba35d98.js +++ b/assets/js/5a806f6c.7bc8622c.js @@ -1 +1 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[7919],{57522:(e,t,r)=>{r.d(t,{Zo:()=>f,kt:()=>m});var n=r(29901);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(54805),o=r(30008),a=(r(29901),r(57522)),i=["components"],c={hide_table_of_contents:!0},p="Infer",l={unversionedId:"api/infer",id:"version-1.0.27-alpha/api/infer",title:"Infer",description:"text",source:"@site/versioned_docs/version-1.0.27-alpha/api/infer.md",sourceDirName:"api",slug:"/api/infer",permalink:"/docs/api/infer",draft:!1,tags:[],version:"1.0.27-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([[9604],{57522:(e,t,r)=>{r.d(t,{Zo:()=>f,kt:()=>m});var n=r(29901);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(54805),o=r(30008),a=(r(29901),r(57522)),i=["components"],c={hide_table_of_contents:!0},p="Infer",l={unversionedId:"api/infer",id:"version-1.0.28-alpha/api/infer",title:"Infer",description:"text",source:"@site/versioned_docs/version-1.0.28-alpha/api/infer.md",sourceDirName:"api",slug:"/api/infer",permalink:"/docs/api/infer",draft:!1,tags:[],version:"1.0.28-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/8fb3568e.5f0a3ede.js b/assets/js/64a3c6e9.d8ba1cf4.js similarity index 95% rename from assets/js/8fb3568e.5f0a3ede.js rename to assets/js/64a3c6e9.d8ba1cf4.js index 7511b61f7c..a90871f537 100644 --- a/assets/js/8fb3568e.5f0a3ede.js +++ b/assets/js/64a3c6e9.d8ba1cf4.js @@ -1 +1 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[4447],{57522:(t,e,a)=>{a.d(e,{Zo:()=>u,kt:()=>s});var n=a(29901);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(54805),r=a(30008),l=(a(29901),a(57522)),p=["components"],i={hide_table_of_contents:!0},o="Operators",d={unversionedId:"api/operators",id:"version-1.0.27-alpha/api/operators",title:"Operators",description:"Operating Table",source:"@site/versioned_docs/version-1.0.27-alpha/api/operators.md",sourceDirName:"api",slug:"/api/operators",permalink:"/docs/api/operators",draft:!1,tags:[],version:"1.0.27-alpha",frontMatter:{hide_table_of_contents:!0},sidebar:"sidebar",previous:{title:"Keywords",permalink:"/docs/api/keywords"},next:{title:"API",permalink:"/docs/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/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/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/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/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/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/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/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/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/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/api/validatebound"},"bound")),(0,l.kt)("td",{parentName:"tr",align:null},'"N{a.d(e,{Zo:()=>u,kt:()=>s});var n=a(29901);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(54805),r=a(30008),l=(a(29901),a(57522)),p=["components"],i={hide_table_of_contents:!0},o="Operators",d={unversionedId:"api/operators",id:"version-1.0.28-alpha/api/operators",title:"Operators",description:"Operating Table",source:"@site/versioned_docs/version-1.0.28-alpha/api/operators.md",sourceDirName:"api",slug:"/api/operators",permalink:"/docs/api/operators",draft:!1,tags:[],version:"1.0.28-alpha",frontMatter:{hide_table_of_contents:!0},sidebar:"sidebar",previous:{title:"Keywords",permalink:"/docs/api/keywords"},next:{title:"API",permalink:"/docs/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/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/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/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/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/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/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/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/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/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/api/validatebound"},"bound")),(0,l.kt)("td",{parentName:"tr",align:null},'"N{t.d(n,{Zo:()=>l,kt:()=>y});var r=t(29901);function i(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 a(e){for(var n=1;n=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}var c=r.createContext({}),p=function(e){var n=r.useContext(c),t=n;return e&&(t="function"==typeof e?e(n):a(a({},n),e)),t},l=function(e){var n=p(e.components);return r.createElement(c.Provider,{value:n},e.children)},s="mdxType",d={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,i=e.mdxType,o=e.originalType,c=e.parentName,l=f(e,["components","mdxType","originalType","parentName"]),s=p(t),u=i,y=s["".concat(c,".").concat(u)]||s[u]||d[u]||o;return t?r.createElement(y,a(a({ref:n},l),{},{components:t})):r.createElement(y,a({ref:n},l))}));function y(e,n){var t=arguments,i=n&&n.mdxType;if("string"==typeof e||i){var o=t.length,a=new Array(o);a[0]=u;var f={};for(var c in n)hasOwnProperty.call(n,c)&&(f[c]=n[c]);f.originalType=e,f[s]="string"==typeof e?e:i,a[1]=f;for(var p=2;p{t.r(n),t.d(n,{assets:()=>l,contentTitle:()=>c,default:()=>y,frontMatter:()=>f,metadata:()=>p,toc:()=>s});var r=t(54805),i=t(30008),o=(t(29901),t(57522)),a=["components"],f={hide_table_of_contents:!0},c="inferDefinition",p={unversionedId:"api/inferdefinition",id:"version-1.0.27-alpha/api/inferdefinition",title:"inferDefinition",description:"text",source:"@site/versioned_docs/version-1.0.27-alpha/api/inferdefinition.md",sourceDirName:"api",slug:"/api/inferdefinition",permalink:"/docs/api/inferdefinition",draft:!1,tags:[],version:"1.0.27-alpha",frontMatter:{hide_table_of_contents:!0}},l={},s=[{value:"text",id:"text",level:2}],d={toc:s},u="wrapper";function y(e){var n=e.components,t=(0,i.Z)(e,a);return(0,o.kt)(u,(0,r.Z)({},d,t,{components:n,mdxType:"MDXLayout"}),(0,o.kt)("h1",{id:"inferdefinition"},"inferDefinition"),(0,o.kt)("h2",{id:"text"},"text"),(0,o.kt)("pre",null,(0,o.kt)("code",{parentName:"pre",className:"language-ts"},"export type inferDefinition = isAny extends true\n ? never\n : def extends Infer | InferredThunk\n ? t\n : def extends string\n ? inferString\n : def extends List\n ? inferTuple\n : def extends RegExp\n ? string\n : def extends Dict\n ? inferRecord\n : never\n")))}y.isMDXComponent=!0}}]); \ No newline at end of file +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[582],{57522:(e,n,t)=>{t.d(n,{Zo:()=>l,kt:()=>y});var r=t(29901);function i(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 a(e){for(var n=1;n=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}var c=r.createContext({}),p=function(e){var n=r.useContext(c),t=n;return e&&(t="function"==typeof e?e(n):a(a({},n),e)),t},l=function(e){var n=p(e.components);return r.createElement(c.Provider,{value:n},e.children)},s="mdxType",d={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,i=e.mdxType,o=e.originalType,c=e.parentName,l=f(e,["components","mdxType","originalType","parentName"]),s=p(t),u=i,y=s["".concat(c,".").concat(u)]||s[u]||d[u]||o;return t?r.createElement(y,a(a({ref:n},l),{},{components:t})):r.createElement(y,a({ref:n},l))}));function y(e,n){var t=arguments,i=n&&n.mdxType;if("string"==typeof e||i){var o=t.length,a=new Array(o);a[0]=u;var f={};for(var c in n)hasOwnProperty.call(n,c)&&(f[c]=n[c]);f.originalType=e,f[s]="string"==typeof e?e:i,a[1]=f;for(var p=2;p{t.r(n),t.d(n,{assets:()=>l,contentTitle:()=>c,default:()=>y,frontMatter:()=>f,metadata:()=>p,toc:()=>s});var r=t(54805),i=t(30008),o=(t(29901),t(57522)),a=["components"],f={hide_table_of_contents:!0},c="inferDefinition",p={unversionedId:"api/inferdefinition",id:"version-1.0.27-alpha/api/inferdefinition",title:"inferDefinition",description:"text",source:"@site/versioned_docs/version-1.0.27-alpha/api/inferdefinition.md",sourceDirName:"api",slug:"/api/inferdefinition",permalink:"/docs/1.0.27-alpha/api/inferdefinition",draft:!1,tags:[],version:"1.0.27-alpha",frontMatter:{hide_table_of_contents:!0}},l={},s=[{value:"text",id:"text",level:2}],d={toc:s},u="wrapper";function y(e){var n=e.components,t=(0,i.Z)(e,a);return(0,o.kt)(u,(0,r.Z)({},d,t,{components:n,mdxType:"MDXLayout"}),(0,o.kt)("h1",{id:"inferdefinition"},"inferDefinition"),(0,o.kt)("h2",{id:"text"},"text"),(0,o.kt)("pre",null,(0,o.kt)("code",{parentName:"pre",className:"language-ts"},"export type inferDefinition = isAny extends true\n ? never\n : def extends Infer | InferredThunk\n ? t\n : def extends string\n ? inferString\n : def extends List\n ? inferTuple\n : def extends RegExp\n ? string\n : def extends Dict\n ? inferRecord\n : never\n")))}y.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/6a5e2130.a2d7edf9.js b/assets/js/6a5e2130.a2d7edf9.js new file mode 100644 index 0000000000..e064919ab3 --- /dev/null +++ b/assets/js/6a5e2130.a2d7edf9.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[9802],{57522:(e,n,t)=>{t.d(n,{Zo:()=>l,kt:()=>m});var r=t(29901);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(54805),o=t(30008),s=(t(29901),t(57522)),a=["components"],i={hide_table_of_contents:!0},p="scope",c={unversionedId:"api/scope",id:"version-1.0.28-alpha/api/scope",title:"scope",description:"text",source:"@site/versioned_docs/version-1.0.28-alpha/api/scope.md",sourceDirName:"api",slug:"/api/scope",permalink:"/docs/api/scope",draft:!1,tags:[],version:"1.0.28-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/6b349b64.723206a6.js b/assets/js/6b349b64.723206a6.js new file mode 100644 index 0000000000..b0120689d3 --- /dev/null +++ b/assets/js/6b349b64.723206a6.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[5722],{57522:(e,t,r)=>{r.d(t,{Zo:()=>c,kt:()=>m});var n=r(29901);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(54805),a=r(30008),l=(r(29901),r(57522)),o=["components"],p={hide_table_of_contents:!0},u="valueOf",i={unversionedId:"api/valueof",id:"version-1.0.28-alpha/api/valueof",title:"valueOf",description:"operator",source:"@site/versioned_docs/version-1.0.28-alpha/api/valueof.md",sourceDirName:"api",slug:"/api/valueof",permalink:"/docs/api/valueof",draft:!1,tags:[],version:"1.0.28-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/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/6f3866ae.2389d02c.js b/assets/js/6f3866ae.2389d02c.js new file mode 100644 index 0000000000..f20235b26a --- /dev/null +++ b/assets/js/6f3866ae.2389d02c.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[874],{57522:(e,t,r)=>{r.d(t,{Zo:()=>u,kt:()=>y});var n=r(29901);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(54805),a=r(30008),o=(r(29901),r(57522)),c=["components"],i={hide_table_of_contents:!0},p="ark",l={unversionedId:"api/ark",id:"version-1.0.28-alpha/api/ark",title:"ark",description:"text",source:"@site/versioned_docs/version-1.0.28-alpha/api/ark.md",sourceDirName:"api",slug:"/api/ark",permalink:"/docs/api/ark",draft:!1,tags:[],version:"1.0.28-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/6fdaf75b.9bb75992.js b/assets/js/6fdaf75b.9bb75992.js new file mode 100644 index 0000000000..caba8628f8 --- /dev/null +++ b/assets/js/6fdaf75b.9bb75992.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[8491],{57522:(e,t,n)=>{n.d(t,{Zo:()=>c,kt:()=>d});var r=n(29901);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(54805),o=n(30008),l=(n(29901),n(57522)),a=["components"],i={hide_table_of_contents:!0},u="union",p={unversionedId:"api/union",id:"version-1.0.27-alpha/api/union",title:"union",description:"operator",source:"@site/versioned_docs/version-1.0.27-alpha/api/union.md",sourceDirName:"api",slug:"/api/union",permalink:"/docs/1.0.27-alpha/api/union",draft:!1,tags:[],version:"1.0.27-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.27-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/70865799.db0a6353.js b/assets/js/70865799.db0a6353.js new file mode 100644 index 0000000000..d51f59547c --- /dev/null +++ b/assets/js/70865799.db0a6353.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[3708],{57522:(e,t,n)=>{n.d(t,{Zo:()=>p,kt:()=>y});var r=n(29901);function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(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 o(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var d=r.createContext({}),f=function(e){var t=r.useContext(d),n=t;return e&&(n="function"==typeof e?e(t):o(o({},t),e)),n},p=function(e){var t=f(e.components);return r.createElement(d.Provider,{value:t},e.children)},c="mdxType",s={inlineCode:"code",wrapper:function(e){var t=e.children;return r.createElement(r.Fragment,{},t)}},u=r.forwardRef((function(e,t){var n=e.components,i=e.mdxType,a=e.originalType,d=e.parentName,p=l(e,["components","mdxType","originalType","parentName"]),c=f(n),u=i,y=c["".concat(d,".").concat(u)]||c[u]||s[u]||a;return n?r.createElement(y,o(o({ref:t},p),{},{components:n})):r.createElement(y,o({ref:t},p))}));function y(e,t){var n=arguments,i=t&&t.mdxType;if("string"==typeof e||i){var a=n.length,o=new Array(a);o[0]=u;var l={};for(var d in t)hasOwnProperty.call(t,d)&&(l[d]=t[d]);l.originalType=e,l[c]="string"==typeof e?e:i,o[1]=l;for(var f=2;f{n.r(t),n.d(t,{assets:()=>p,contentTitle:()=>d,default:()=>y,frontMatter:()=>l,metadata:()=>f,toc:()=>c});var r=n(54805),i=n(30008),a=(n(29901),n(57522)),o=["components"],l={hide_table_of_contents:!0},d="validateDefinition",f={unversionedId:"api/validatedefinition",id:"version-1.0.27-alpha/api/validatedefinition",title:"validateDefinition",description:"text",source:"@site/versioned_docs/version-1.0.27-alpha/api/validatedefinition.md",sourceDirName:"api",slug:"/api/validatedefinition",permalink:"/docs/1.0.27-alpha/api/validatedefinition",draft:!1,tags:[],version:"1.0.27-alpha",frontMatter:{hide_table_of_contents:!0}},p={},c=[{value:"text",id:"text",level:2}],s={toc:c},u="wrapper";function y(e){var t=e.components,n=(0,i.Z)(e,o);return(0,a.kt)(u,(0,r.Z)({},s,n,{components:t,mdxType:"MDXLayout"}),(0,a.kt)("h1",{id:"validatedefinition"},"validateDefinition"),(0,a.kt)("h2",{id:"text"},"text"),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-ts"},"export type validateDefinition = [def] extends [(...args: any[]) => any]\n ? def\n : def extends Terminal\n ? def\n : def extends string\n ? validateString\n : def extends TupleExpression\n ? validateTupleExpression\n : def extends BadDefinitionType\n ? writeBadDefinitionTypeMessage<\n objectKindOf extends string ? objectKindOf : domainOf\n >\n : isUnknown extends true\n ? stringKeyOf<$>\n : evaluate<{\n [k in keyof def]: validateDefinition\n }>\n")))}y.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/7106c5f4.af2b16e5.js b/assets/js/7106c5f4.af2b16e5.js new file mode 100644 index 0000000000..8f3480d927 --- /dev/null +++ b/assets/js/7106c5f4.af2b16e5.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[9291],{57522:(e,t,r)=>{r.d(t,{Zo:()=>s,kt:()=>b});var n=r(29901);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(54805),o=r(30008),a=(r(29901),r(57522)),l=["components"],p={hide_table_of_contents:!0},c="Problems",i={unversionedId:"api/problems",id:"version-1.0.28-alpha/api/problems",title:"Problems",description:"text",source:"@site/versioned_docs/version-1.0.28-alpha/api/problems.md",sourceDirName:"api",slug:"/api/problems",permalink:"/docs/api/problems",draft:!1,tags:[],version:"1.0.28-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/b4d00006.597ab34e.js b/assets/js/712be200.c9e70368.js similarity index 95% rename from assets/js/b4d00006.597ab34e.js rename to assets/js/712be200.c9e70368.js index c91c7ce5d7..2b6d2a33e7 100644 --- a/assets/js/b4d00006.597ab34e.js +++ b/assets/js/712be200.c9e70368.js @@ -1 +1 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[8584],{57522:(t,e,n)=>{n.d(e,{Zo:()=>u,kt:()=>c});var a=n(29901);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(54805),r=n(30008),l=(n(29901),n(57522)),o=["components"],i={hide_table_of_contents:!0},p="tsKeywordsScope",d={unversionedId:"api/tskeywordsscope",id:"version-1.0.27-alpha/api/tskeywordsscope",title:"tsKeywordsScope",description:"keywords",source:"@site/versioned_docs/version-1.0.27-alpha/api/tskeywordsscope.md",sourceDirName:"api",slug:"/api/tskeywordsscope",permalink:"/docs/api/tskeywordsscope",draft:!1,tags:[],version:"1.0.27-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 +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[1144],{57522:(t,e,n)=>{n.d(e,{Zo:()=>u,kt:()=>c});var a=n(29901);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(54805),r=n(30008),l=(n(29901),n(57522)),o=["components"],i={hide_table_of_contents:!0},p="tsKeywordsScope",d={unversionedId:"api/tskeywordsscope",id:"version-1.0.28-alpha/api/tskeywordsscope",title:"tsKeywordsScope",description:"keywords",source:"@site/versioned_docs/version-1.0.28-alpha/api/tskeywordsscope.md",sourceDirName:"api",slug:"/api/tskeywordsscope",permalink:"/docs/api/tskeywordsscope",draft:!1,tags:[],version:"1.0.28-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/720b32b8.c353ca3c.js b/assets/js/720b32b8.c353ca3c.js new file mode 100644 index 0000000000..cf8fa4308e --- /dev/null +++ b/assets/js/720b32b8.c353ca3c.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[4204],{57522:(e,t,r)=>{r.d(t,{Zo:()=>s,kt:()=>m});var n=r(29901);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 p(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 i=n.createContext({}),l=function(e){var t=n.useContext(i),r=t;return e&&(r="function"==typeof e?e(t):p(p({},t),e)),r},s=function(e){var t=l(e.components);return n.createElement(i.Provider,{value:t},e.children)},u="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,a=e.mdxType,o=e.originalType,i=e.parentName,s=c(e,["components","mdxType","originalType","parentName"]),u=l(r),y=a,m=u["".concat(i,".").concat(y)]||u[y]||f[y]||o;return r?n.createElement(m,p(p({ref:t},s),{},{components:r})):n.createElement(m,p({ref:t},s))}));function m(e,t){var r=arguments,a=t&&t.mdxType;if("string"==typeof e||a){var o=r.length,p=new Array(o);p[0]=y;var c={};for(var i in t)hasOwnProperty.call(t,i)&&(c[i]=t[i]);c.originalType=e,c[u]="string"==typeof e?e:a,p[1]=c;for(var l=2;l{r.r(t),r.d(t,{assets:()=>s,contentTitle:()=>i,default:()=>m,frontMatter:()=>c,metadata:()=>l,toc:()=>u});var n=r(54805),a=r(30008),o=(r(29901),r(57522)),p=["components"],c={hide_table_of_contents:!0},i="Space",l={unversionedId:"api/space",id:"version-1.0.27-alpha/api/space",title:"Space",description:"text",source:"@site/versioned_docs/version-1.0.27-alpha/api/space.md",sourceDirName:"api",slug:"/api/space",permalink:"/docs/1.0.27-alpha/api/space",draft:!1,tags:[],version:"1.0.27-alpha",frontMatter:{hide_table_of_contents:!0}},s={},u=[{value:"text",id:"text",level:2}],f={toc:u},y="wrapper";function m(e){var t=e.components,r=(0,a.Z)(e,p);return(0,o.kt)(y,(0,n.Z)({},f,r,{components:t,mdxType:"MDXLayout"}),(0,o.kt)("h1",{id:"space"},"Space"),(0,o.kt)("h2",{id:"text"},"text"),(0,o.kt)("pre",null,(0,o.kt)("code",{parentName:"pre",className:"language-ts"},"export type Space = {\n [k in keyof exports]: Type\n}\n")))}m.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/6fdaf75b.0384dd08.js b/assets/js/7955d848.efe90783.js similarity index 91% rename from assets/js/6fdaf75b.0384dd08.js rename to assets/js/7955d848.efe90783.js index 032e3cae6f..fd49491f40 100644 --- a/assets/js/6fdaf75b.0384dd08.js +++ b/assets/js/7955d848.efe90783.js @@ -1 +1 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[8491],{57522:(e,t,n)=>{n.d(t,{Zo:()=>c,kt:()=>d});var r=n(29901);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(54805),o=n(30008),l=(n(29901),n(57522)),a=["components"],i={hide_table_of_contents:!0},u="union",p={unversionedId:"api/union",id:"version-1.0.27-alpha/api/union",title:"union",description:"operator",source:"@site/versioned_docs/version-1.0.27-alpha/api/union.md",sourceDirName:"api",slug:"/api/union",permalink:"/docs/api/union",draft:!1,tags:[],version:"1.0.27-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([[6397],{57522:(e,t,n)=>{n.d(t,{Zo:()=>c,kt:()=>d});var r=n(29901);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(54805),o=n(30008),l=(n(29901),n(57522)),a=["components"],i={hide_table_of_contents:!0},u="union",p={unversionedId:"api/union",id:"version-1.0.28-alpha/api/union",title:"union",description:"operator",source:"@site/versioned_docs/version-1.0.28-alpha/api/union.md",sourceDirName:"api",slug:"/api/union",permalink:"/docs/api/union",draft:!1,tags:[],version:"1.0.28-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/7cdde229.2ff0a141.js b/assets/js/7cdde229.2ff0a141.js new file mode 100644 index 0000000000..d8c4bc4de9 --- /dev/null +++ b/assets/js/7cdde229.2ff0a141.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[7447],{57522:(e,t,r)=>{r.d(t,{Zo:()=>d,kt:()=>b});var n=r(29901);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 l(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({}),u=function(e){var t=n.useContext(p),r=t;return e&&(r="function"==typeof e?e(t):l(l({},t),e)),r},d=function(e){var t=u(e.components);return n.createElement(p.Provider,{value:t},e.children)},c="mdxType",s={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,d=i(e,["components","mdxType","originalType","parentName"]),c=u(r),m=a,b=c["".concat(p,".").concat(m)]||c[m]||s[m]||o;return r?n.createElement(b,l(l({ref:t},d),{},{components:r})):n.createElement(b,l({ref:t},d))}));function b(e,t){var r=arguments,a=t&&t.mdxType;if("string"==typeof e||a){var o=r.length,l=new Array(o);l[0]=m;var i={};for(var p in t)hasOwnProperty.call(t,p)&&(i[p]=t[p]);i.originalType=e,i[c]="string"==typeof e?e:a,l[1]=i;for(var u=2;u{r.r(t),r.d(t,{assets:()=>d,contentTitle:()=>p,default:()=>b,frontMatter:()=>i,metadata:()=>u,toc:()=>c});var n=r(54805),a=r(30008),o=(r(29901),r(57522)),l=["components"],i={hide_table_of_contents:!0},p="validateBound",u={unversionedId:"api/validatebound",id:"version-1.0.27-alpha/api/validatebound",title:"validateBound",description:"operator",source:"@site/versioned_docs/version-1.0.27-alpha/api/validatebound.md",sourceDirName:"api",slug:"/api/validatebound",permalink:"/docs/1.0.27-alpha/api/validatebound",draft:!1,tags:[],version:"1.0.27-alpha",frontMatter:{hide_table_of_contents:!0}},d={},c=[{value:"operator",id:"operator",level:2},{value:"tableRow",id:"tablerow",level:2},{value:"description",id:"description",level:2},{value:"string",id:"string",level:2}],s={toc:c},m="wrapper";function b(e){var t=e.components,r=(0,a.Z)(e,l);return(0,o.kt)(m,(0,n.Z)({},s,r,{components:t,mdxType:"MDXLayout"}),(0,o.kt)("h1",{id:"validatebound"},"validateBound"),(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.27-alpha/api/validatebound"},"bound"))),(0,o.kt)("h2",{id:"tablerow"},"tableRow"),(0,o.kt)("table",null,(0,o.kt)("thead",{parentName:"table"},(0,o.kt)("tr",{parentName:"thead"},(0,o.kt)("th",{parentName:"tr",align:null},"Variable"),(0,o.kt)("th",{parentName:"tr",align:null},"Description"))),(0,o.kt)("tbody",{parentName:"table"},(0,o.kt)("tr",{parentName:"tbody"},(0,o.kt)("td",{parentName:"tr",align:null},"N"),(0,o.kt)("td",{parentName:"tr",align:null},"number literal")),(0,o.kt)("tr",{parentName:"tbody"},(0,o.kt)("td",{parentName:"tr",align:null},"S"),(0,o.kt)("td",{parentName:"tr",align:null},"sized data (a number, string or array)")),(0,o.kt)("tr",{parentName:"tbody"},(0,o.kt)("td",{parentName:"tr",align:null},"<"),(0,o.kt)("td",{parentName:"tr",align:null},"Comparator (one of <, <=, ==, >=, >)")))),(0,o.kt)("h2",{id:"description"},"description"),(0,o.kt)("ul",null,(0,o.kt)("li",{parentName:"ul"},'Bound operators allow data to be bounded in the format "S{r.d(t,{Zo:()=>u,kt:()=>k});var n=r(29901);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(54805),o=r(30008),a=(r(29901),r(57522)),l=["components"],p={hide_table_of_contents:!0},i="keyOf",c={unversionedId:"api/keyof",id:"version-1.0.27-alpha/api/keyof",title:"keyOf",description:"operator",source:"@site/versioned_docs/version-1.0.27-alpha/api/keyof.md",sourceDirName:"api",slug:"/api/keyof",permalink:"/docs/api/keyof",draft:!1,tags:[],version:"1.0.27-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/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([[712],{57522:(e,t,r)=>{r.d(t,{Zo:()=>u,kt:()=>k});var n=r(29901);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(54805),o=r(30008),a=(r(29901),r(57522)),l=["components"],p={hide_table_of_contents:!0},i="keyOf",c={unversionedId:"api/keyof",id:"version-1.0.27-alpha/api/keyof",title:"keyOf",description:"operator",source:"@site/versioned_docs/version-1.0.27-alpha/api/keyof.md",sourceDirName:"api",slug:"/api/keyof",permalink:"/docs/1.0.27-alpha/api/keyof",draft:!1,tags:[],version:"1.0.27-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.27-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/84389d4b.7e92f5e8.js b/assets/js/84389d4b.7e92f5e8.js new file mode 100644 index 0000000000..e525e9e2b9 --- /dev/null +++ b/assets/js/84389d4b.7e92f5e8.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[7393],{57522:(e,t,r)=>{r.d(t,{Zo:()=>u,kt:()=>d});var n=r(29901);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(54805),o=r(30008),a=(r(29901),r(57522)),p=["components"],i={hide_table_of_contents:!0},l="parseConfigTuple",c={unversionedId:"api/parseconfigtuple",id:"version-1.0.27-alpha/api/parseconfigtuple",title:"parseConfigTuple",description:"operator",source:"@site/versioned_docs/version-1.0.27-alpha/api/parseconfigtuple.md",sourceDirName:"api",slug:"/api/parseconfigtuple",permalink:"/docs/1.0.27-alpha/api/parseconfigtuple",draft:!1,tags:[],version:"1.0.27-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/1.0.27-alpha/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/8fb3568e.0f0e0ddb.js b/assets/js/8fb3568e.0f0e0ddb.js new file mode 100644 index 0000000000..12e560ba68 --- /dev/null +++ b/assets/js/8fb3568e.0f0e0ddb.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[4447],{57522:(t,e,a)=>{a.d(e,{Zo:()=>u,kt:()=>s});var n=a(29901);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(54805),r=a(30008),l=(a(29901),a(57522)),p=["components"],i={hide_table_of_contents:!0},o="Operators",d={unversionedId:"api/operators",id:"version-1.0.27-alpha/api/operators",title:"Operators",description:"Operating Table",source:"@site/versioned_docs/version-1.0.27-alpha/api/operators.md",sourceDirName:"api",slug:"/api/operators",permalink:"/docs/1.0.27-alpha/api/operators",draft:!1,tags:[],version:"1.0.27-alpha",frontMatter:{hide_table_of_contents:!0},sidebar:"sidebar",previous:{title:"Keywords",permalink:"/docs/1.0.27-alpha/api/keywords"},next:{title:"API",permalink:"/docs/1.0.27-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.27-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.27-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.27-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.27-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.27-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.27-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.27-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.27-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.27-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.27-alpha/api/validatebound"},"bound")),(0,l.kt)("td",{parentName:"tr",align:null},'"N{t.d(r,{Zo:()=>u,kt:()=>d});var n=t(29901);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 o(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||(a[t]=e[t]);return a}(e,r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}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,a=e.mdxType,o=e.originalType,i=e.parentName,u=p(e,["components","mdxType","originalType","parentName"]),s=c(t),m=a,d=s["".concat(i,".").concat(m)]||s[m]||f[m]||o;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,a=r&&r.mdxType;if("string"==typeof e||a){var o=t.length,l=new Array(o);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:a,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(54805),a=t(30008),o=(t(29901),t(57522)),l=["components"],p={hide_table_of_contents:!0},i="narrow",c={unversionedId:"api/narrow",id:"version-1.0.27-alpha/api/narrow",title:"narrow",description:"operator",source:"@site/versioned_docs/version-1.0.27-alpha/api/narrow.md",sourceDirName:"api",slug:"/api/narrow",permalink:"/docs/api/narrow",draft:!1,tags:[],version:"1.0.27-alpha",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,a.Z)(e,l);return(0,o.kt)(m,(0,n.Z)({},f,t,{components:r,mdxType:"MDXLayout"}),(0,o.kt)("h1",{id:"narrow"},"narrow"),(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/narrow"},"=>"))),(0,o.kt)("h2",{id:"tuple"},"tuple"),(0,o.kt)("ul",null,(0,o.kt)("li",{parentName:"ul"},'["type", "=>" , condition]'," ",(0,o.kt)("br",null)),(0,o.kt)("li",{parentName:"ul"},"const narrow = type( ",'["number", "=>" , (n) => n % 2 === 0]',")",(0,o.kt)("br",null))),(0,o.kt)("h2",{id:"example"},"example"),(0,o.kt)("ul",null,(0,o.kt)("li",{parentName:"ul"},(0,o.kt)("pre",{parentName:"li"},(0,o.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([[2269],{57522:(e,r,t)=>{t.d(r,{Zo:()=>u,kt:()=>d});var n=t(29901);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 o(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||(a[t]=e[t]);return a}(e,r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}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,a=e.mdxType,o=e.originalType,i=e.parentName,u=p(e,["components","mdxType","originalType","parentName"]),s=c(t),m=a,d=s["".concat(i,".").concat(m)]||s[m]||f[m]||o;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,a=r&&r.mdxType;if("string"==typeof e||a){var o=t.length,l=new Array(o);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:a,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(54805),a=t(30008),o=(t(29901),t(57522)),l=["components"],p={hide_table_of_contents:!0},i="narrow",c={unversionedId:"api/narrow",id:"version-1.0.28-alpha/api/narrow",title:"narrow",description:"operator",source:"@site/versioned_docs/version-1.0.28-alpha/api/narrow.md",sourceDirName:"api",slug:"/api/narrow",permalink:"/docs/api/narrow",draft:!1,tags:[],version:"1.0.28-alpha",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,a.Z)(e,l);return(0,o.kt)(m,(0,n.Z)({},f,t,{components:r,mdxType:"MDXLayout"}),(0,o.kt)("h1",{id:"narrow"},"narrow"),(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/narrow"},"=>"))),(0,o.kt)("h2",{id:"tuple"},"tuple"),(0,o.kt)("ul",null,(0,o.kt)("li",{parentName:"ul"},'["type", "=>" , condition]'," ",(0,o.kt)("br",null)),(0,o.kt)("li",{parentName:"ul"},"const narrow = type( ",'["number", "=>" , (n) => n % 2 === 0]',")",(0,o.kt)("br",null))),(0,o.kt)("h2",{id:"example"},"example"),(0,o.kt)("ul",null,(0,o.kt)("li",{parentName:"ul"},(0,o.kt)("pre",{parentName:"li"},(0,o.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/91ed0e08.9a245cac.js b/assets/js/91ed0e08.25af1c42.js similarity index 72% rename from assets/js/91ed0e08.9a245cac.js rename to assets/js/91ed0e08.25af1c42.js index d365b5c216..b5f9479879 100644 --- a/assets/js/91ed0e08.9a245cac.js +++ b/assets/js/91ed0e08.25af1c42.js @@ -1 +1 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[9964],{57522:(e,t,r)=>{r.d(t,{Zo:()=>s,kt:()=>f});var n=r(29901);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(54805),o=r(30008),a=(r(29901),r(57522)),c=["components"],i={hide_table_of_contents:!0},p="Problem",l={unversionedId:"api/problem",id:"version-1.0.27-alpha/api/problem",title:"Problem",description:"text",source:"@site/versioned_docs/version-1.0.27-alpha/api/problem.md",sourceDirName:"api",slug:"/api/problem",permalink:"/docs/api/problem",draft:!1,tags:[],version:"1.0.27-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([[9964],{57522:(e,t,r)=>{r.d(t,{Zo:()=>s,kt:()=>f});var n=r(29901);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(54805),o=r(30008),a=(r(29901),r(57522)),c=["components"],i={hide_table_of_contents:!0},p="Problem",l={unversionedId:"api/problem",id:"version-1.0.27-alpha/api/problem",title:"Problem",description:"text",source:"@site/versioned_docs/version-1.0.27-alpha/api/problem.md",sourceDirName:"api",slug:"/api/problem",permalink:"/docs/1.0.27-alpha/api/problem",draft:!1,tags:[],version:"1.0.27-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/ea0f6b3f.f0275d0a.js b/assets/js/9250bde8.73e6dbd7.js similarity index 61% rename from assets/js/ea0f6b3f.f0275d0a.js rename to assets/js/9250bde8.73e6dbd7.js index 3aa61a90de..5846545941 100644 --- a/assets/js/ea0f6b3f.f0275d0a.js +++ b/assets/js/9250bde8.73e6dbd7.js @@ -1 +1 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[5783],{57522:(t,e,n)=>{n.d(e,{Zo:()=>m,kt:()=>k});var a=n(29901);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({}),d=function(t){var e=a.useContext(p),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(p.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,p=t.parentName,m=o(t,["components","mdxType","originalType","parentName"]),u=d(n),c=r,k=u["".concat(p,".").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 o={};for(var p in e)hasOwnProperty.call(e,p)&&(o[p]=e[p]);o.originalType=t,o[u]="string"==typeof t?t:r,i[1]=o;for(var d=2;d{n.r(e),n.d(e,{assets:()=>m,contentTitle:()=>p,default:()=>k,frontMatter:()=>o,metadata:()=>d,toc:()=>u});var a=n(54805),r=n(30008),l=(n(29901),n(57522)),i=["components"],o={hide_table_of_contents:!0},p="validationScope",d={unversionedId:"api/validationscope",id:"version-1.0.27-alpha/api/validationscope",title:"validationScope",description:"keywords",source:"@site/versioned_docs/version-1.0.27-alpha/api/validationscope.md",sourceDirName:"api",slug:"/api/validationscope",permalink:"/docs/api/validationscope",draft:!1,tags:[],version:"1.0.27-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 +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[8764],{57522:(t,e,n)=>{n.d(e,{Zo:()=>m,kt:()=>k});var a=n(29901);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)},s="mdxType",u={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"]),s=d(n),c=r,k=s["".concat(o,".").concat(c)]||s[c]||u[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[s]="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:()=>s});var a=n(54805),r=n(30008),l=(n(29901),n(57522)),i=["components"],p={hide_table_of_contents:!0},o="validationScope",d={unversionedId:"api/validationscope",id:"version-1.0.28-alpha/api/validationscope",title:"validationScope",description:"keywords",source:"@site/versioned_docs/version-1.0.28-alpha/api/validationscope.md",sourceDirName:"api",slug:"/api/validationscope",permalink:"/docs/api/validationscope",draft:!1,tags:[],version:"1.0.28-alpha",frontMatter:{hide_table_of_contents:!0}},m={},s=[{value:"keywords",id:"keywords",level:2},{value:"text",id:"text",level:2}],u={toc:s},c="wrapper";function k(t){var e=t.components,n=(0,r.Z)(t,i);return(0,l.kt)(c,(0,a.Z)({},u,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) => import("../../parse/ast/morph.js").Out')),(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) => import("../../parse/ast/morph.js").Out')),(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) => import("../../parse/ast/morph.js").Out')),(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) => import("../../parse/ast/morph.js").Out')),(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/70865799.8029d1b5.js b/assets/js/9939f002.4a2113b8.js similarity index 91% rename from assets/js/70865799.8029d1b5.js rename to assets/js/9939f002.4a2113b8.js index c17bcb126d..e79eac274a 100644 --- a/assets/js/70865799.8029d1b5.js +++ b/assets/js/9939f002.4a2113b8.js @@ -1 +1 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[3708],{57522:(e,t,n)=>{n.d(t,{Zo:()=>p,kt:()=>y});var r=n(29901);function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(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 o(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var f=r.createContext({}),l=function(e){var t=r.useContext(f),n=t;return e&&(n="function"==typeof e?e(t):o(o({},t),e)),n},p=function(e){var t=l(e.components);return r.createElement(f.Provider,{value:t},e.children)},c="mdxType",s={inlineCode:"code",wrapper:function(e){var t=e.children;return r.createElement(r.Fragment,{},t)}},u=r.forwardRef((function(e,t){var n=e.components,i=e.mdxType,a=e.originalType,f=e.parentName,p=d(e,["components","mdxType","originalType","parentName"]),c=l(n),u=i,y=c["".concat(f,".").concat(u)]||c[u]||s[u]||a;return n?r.createElement(y,o(o({ref:t},p),{},{components:n})):r.createElement(y,o({ref:t},p))}));function y(e,t){var n=arguments,i=t&&t.mdxType;if("string"==typeof e||i){var a=n.length,o=new Array(a);o[0]=u;var d={};for(var f in t)hasOwnProperty.call(t,f)&&(d[f]=t[f]);d.originalType=e,d[c]="string"==typeof e?e:i,o[1]=d;for(var l=2;l{n.r(t),n.d(t,{assets:()=>p,contentTitle:()=>f,default:()=>y,frontMatter:()=>d,metadata:()=>l,toc:()=>c});var r=n(54805),i=n(30008),a=(n(29901),n(57522)),o=["components"],d={hide_table_of_contents:!0},f="validateDefinition",l={unversionedId:"api/validatedefinition",id:"version-1.0.27-alpha/api/validatedefinition",title:"validateDefinition",description:"text",source:"@site/versioned_docs/version-1.0.27-alpha/api/validatedefinition.md",sourceDirName:"api",slug:"/api/validatedefinition",permalink:"/docs/api/validatedefinition",draft:!1,tags:[],version:"1.0.27-alpha",frontMatter:{hide_table_of_contents:!0}},p={},c=[{value:"text",id:"text",level:2}],s={toc:c},u="wrapper";function y(e){var t=e.components,n=(0,i.Z)(e,o);return(0,a.kt)(u,(0,r.Z)({},s,n,{components:t,mdxType:"MDXLayout"}),(0,a.kt)("h1",{id:"validatedefinition"},"validateDefinition"),(0,a.kt)("h2",{id:"text"},"text"),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-ts"},"export type validateDefinition = [def] extends [(...args: any[]) => any]\n ? def\n : def extends Terminal\n ? def\n : def extends string\n ? validateString\n : def extends TupleExpression\n ? validateTupleExpression\n : def extends BadDefinitionType\n ? writeBadDefinitionTypeMessage<\n objectKindOf extends string ? objectKindOf : domainOf\n >\n : isUnknown extends true\n ? stringKeyOf<$>\n : evaluate<{\n [k in keyof def]: validateDefinition\n }>\n")))}y.isMDXComponent=!0}}]); \ No newline at end of file +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[2979],{57522:(e,t,n)=>{n.d(t,{Zo:()=>p,kt:()=>y});var r=n(29901);function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(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 o(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var f=r.createContext({}),l=function(e){var t=r.useContext(f),n=t;return e&&(n="function"==typeof e?e(t):o(o({},t),e)),n},p=function(e){var t=l(e.components);return r.createElement(f.Provider,{value:t},e.children)},c="mdxType",s={inlineCode:"code",wrapper:function(e){var t=e.children;return r.createElement(r.Fragment,{},t)}},u=r.forwardRef((function(e,t){var n=e.components,i=e.mdxType,a=e.originalType,f=e.parentName,p=d(e,["components","mdxType","originalType","parentName"]),c=l(n),u=i,y=c["".concat(f,".").concat(u)]||c[u]||s[u]||a;return n?r.createElement(y,o(o({ref:t},p),{},{components:n})):r.createElement(y,o({ref:t},p))}));function y(e,t){var n=arguments,i=t&&t.mdxType;if("string"==typeof e||i){var a=n.length,o=new Array(a);o[0]=u;var d={};for(var f in t)hasOwnProperty.call(t,f)&&(d[f]=t[f]);d.originalType=e,d[c]="string"==typeof e?e:i,o[1]=d;for(var l=2;l{n.r(t),n.d(t,{assets:()=>p,contentTitle:()=>f,default:()=>y,frontMatter:()=>d,metadata:()=>l,toc:()=>c});var r=n(54805),i=n(30008),a=(n(29901),n(57522)),o=["components"],d={hide_table_of_contents:!0},f="validateDefinition",l={unversionedId:"api/validatedefinition",id:"version-1.0.28-alpha/api/validatedefinition",title:"validateDefinition",description:"text",source:"@site/versioned_docs/version-1.0.28-alpha/api/validatedefinition.md",sourceDirName:"api",slug:"/api/validatedefinition",permalink:"/docs/api/validatedefinition",draft:!1,tags:[],version:"1.0.28-alpha",frontMatter:{hide_table_of_contents:!0}},p={},c=[{value:"text",id:"text",level:2}],s={toc:c},u="wrapper";function y(e){var t=e.components,n=(0,i.Z)(e,o);return(0,a.kt)(u,(0,r.Z)({},s,n,{components:t,mdxType:"MDXLayout"}),(0,a.kt)("h1",{id:"validatedefinition"},"validateDefinition"),(0,a.kt)("h2",{id:"text"},"text"),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-ts"},"export type validateDefinition = [def] extends [(...args: any[]) => any]\n ? def\n : def extends Terminal\n ? def\n : def extends string\n ? validateString\n : def extends TupleExpression\n ? validateTupleExpression\n : def extends BadDefinitionType\n ? writeBadDefinitionTypeMessage<\n objectKindOf extends string ? objectKindOf : domainOf\n >\n : isUnknown extends true\n ? stringKeyOf<$>\n : evaluate<{\n [k in keyof def]: validateDefinition\n }>\n")))}y.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/9b8bb8a5.04d48811.js b/assets/js/9b8bb8a5.04d48811.js deleted file mode 100644 index 23277ee48d..0000000000 --- a/assets/js/9b8bb8a5.04d48811.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[440],{57522:(e,n,t)=>{t.d(n,{Zo:()=>l,kt:()=>m});var r=t(29901);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(54805),o=t(30008),s=(t(29901),t(57522)),a=["components"],i={hide_table_of_contents:!0},p="scope",c={unversionedId:"api/scope",id:"version-1.0.27-alpha/api/scope",title:"scope",description:"text",source:"@site/versioned_docs/version-1.0.27-alpha/api/scope.md",sourceDirName:"api",slug:"/api/scope",permalink:"/docs/api/scope",draft:!1,tags:[],version:"1.0.27-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/9b8bb8a5.7e5ef358.js b/assets/js/9b8bb8a5.7e5ef358.js new file mode 100644 index 0000000000..38365806ee --- /dev/null +++ b/assets/js/9b8bb8a5.7e5ef358.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[440],{57522:(e,n,t)=>{t.d(n,{Zo:()=>l,kt:()=>m});var r=t(29901);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(54805),o=t(30008),s=(t(29901),t(57522)),a=["components"],i={hide_table_of_contents:!0},p="scope",c={unversionedId:"api/scope",id:"version-1.0.27-alpha/api/scope",title:"scope",description:"text",source:"@site/versioned_docs/version-1.0.27-alpha/api/scope.md",sourceDirName:"api",slug:"/api/scope",permalink:"/docs/1.0.27-alpha/api/scope",draft:!1,tags:[],version:"1.0.27-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/f5450a53.49f9e26c.js b/assets/js/a1b4c482.4da81902.js similarity index 91% rename from assets/js/f5450a53.49f9e26c.js rename to assets/js/a1b4c482.4da81902.js index 5c56449820..9b5f70aaa6 100644 --- a/assets/js/f5450a53.49f9e26c.js +++ b/assets/js/a1b4c482.4da81902.js @@ -1 +1 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[4021],{57522:(e,t,r)=>{r.d(t,{Zo:()=>c,kt:()=>d});var n=r(29901);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(54805),o=r(30008),a=(r(29901),r(57522)),p=["components"],l={hide_table_of_contents:!0},i="morph",u={unversionedId:"api/morph",id:"version-1.0.27-alpha/api/morph",title:"morph",description:"operator",source:"@site/versioned_docs/version-1.0.27-alpha/api/morph.md",sourceDirName:"api",slug:"/api/morph",permalink:"/docs/api/morph",draft:!1,tags:[],version:"1.0.27-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/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([[5981],{57522:(e,t,r)=>{r.d(t,{Zo:()=>c,kt:()=>d});var n=r(29901);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(54805),o=r(30008),a=(r(29901),r(57522)),p=["components"],l={hide_table_of_contents:!0},i="morph",u={unversionedId:"api/morph",id:"version-1.0.28-alpha/api/morph",title:"morph",description:"operator",source:"@site/versioned_docs/version-1.0.28-alpha/api/morph.md",sourceDirName:"api",slug:"/api/morph",permalink:"/docs/api/morph",draft:!1,tags:[],version:"1.0.28-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/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/7cdde229.081a1ec2.js b/assets/js/a6750165.a07d66a7.js similarity index 93% rename from assets/js/7cdde229.081a1ec2.js rename to assets/js/a6750165.a07d66a7.js index 6dc692474a..5da34dbc4d 100644 --- a/assets/js/7cdde229.081a1ec2.js +++ b/assets/js/a6750165.a07d66a7.js @@ -1 +1 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[7447],{57522:(e,t,r)=>{r.d(t,{Zo:()=>d,kt:()=>b});var n=r(29901);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 l(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({}),u=function(e){var t=n.useContext(p),r=t;return e&&(r="function"==typeof e?e(t):l(l({},t),e)),r},d=function(e){var t=u(e.components);return n.createElement(p.Provider,{value:t},e.children)},c="mdxType",s={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,d=i(e,["components","mdxType","originalType","parentName"]),c=u(r),m=a,b=c["".concat(p,".").concat(m)]||c[m]||s[m]||o;return r?n.createElement(b,l(l({ref:t},d),{},{components:r})):n.createElement(b,l({ref:t},d))}));function b(e,t){var r=arguments,a=t&&t.mdxType;if("string"==typeof e||a){var o=r.length,l=new Array(o);l[0]=m;var i={};for(var p in t)hasOwnProperty.call(t,p)&&(i[p]=t[p]);i.originalType=e,i[c]="string"==typeof e?e:a,l[1]=i;for(var u=2;u{r.r(t),r.d(t,{assets:()=>d,contentTitle:()=>p,default:()=>b,frontMatter:()=>i,metadata:()=>u,toc:()=>c});var n=r(54805),a=r(30008),o=(r(29901),r(57522)),l=["components"],i={hide_table_of_contents:!0},p="validateBound",u={unversionedId:"api/validatebound",id:"version-1.0.27-alpha/api/validatebound",title:"validateBound",description:"operator",source:"@site/versioned_docs/version-1.0.27-alpha/api/validatebound.md",sourceDirName:"api",slug:"/api/validatebound",permalink:"/docs/api/validatebound",draft:!1,tags:[],version:"1.0.27-alpha",frontMatter:{hide_table_of_contents:!0}},d={},c=[{value:"operator",id:"operator",level:2},{value:"tableRow",id:"tablerow",level:2},{value:"description",id:"description",level:2},{value:"string",id:"string",level:2}],s={toc:c},m="wrapper";function b(e){var t=e.components,r=(0,a.Z)(e,l);return(0,o.kt)(m,(0,n.Z)({},s,r,{components:t,mdxType:"MDXLayout"}),(0,o.kt)("h1",{id:"validatebound"},"validateBound"),(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/validatebound"},"bound"))),(0,o.kt)("h2",{id:"tablerow"},"tableRow"),(0,o.kt)("table",null,(0,o.kt)("thead",{parentName:"table"},(0,o.kt)("tr",{parentName:"thead"},(0,o.kt)("th",{parentName:"tr",align:null},"Variable"),(0,o.kt)("th",{parentName:"tr",align:null},"Description"))),(0,o.kt)("tbody",{parentName:"table"},(0,o.kt)("tr",{parentName:"tbody"},(0,o.kt)("td",{parentName:"tr",align:null},"N"),(0,o.kt)("td",{parentName:"tr",align:null},"number literal")),(0,o.kt)("tr",{parentName:"tbody"},(0,o.kt)("td",{parentName:"tr",align:null},"S"),(0,o.kt)("td",{parentName:"tr",align:null},"sized data (a number, string or array)")),(0,o.kt)("tr",{parentName:"tbody"},(0,o.kt)("td",{parentName:"tr",align:null},"<"),(0,o.kt)("td",{parentName:"tr",align:null},"Comparator (one of <, <=, ==, >=, >)")))),(0,o.kt)("h2",{id:"description"},"description"),(0,o.kt)("ul",null,(0,o.kt)("li",{parentName:"ul"},'Bound operators allow data to be bounded in the format "S{r.d(t,{Zo:()=>d,kt:()=>b});var n=r(29901);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 l(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({}),u=function(e){var t=n.useContext(p),r=t;return e&&(r="function"==typeof e?e(t):l(l({},t),e)),r},d=function(e){var t=u(e.components);return n.createElement(p.Provider,{value:t},e.children)},c="mdxType",s={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,d=i(e,["components","mdxType","originalType","parentName"]),c=u(r),m=a,b=c["".concat(p,".").concat(m)]||c[m]||s[m]||o;return r?n.createElement(b,l(l({ref:t},d),{},{components:r})):n.createElement(b,l({ref:t},d))}));function b(e,t){var r=arguments,a=t&&t.mdxType;if("string"==typeof e||a){var o=r.length,l=new Array(o);l[0]=m;var i={};for(var p in t)hasOwnProperty.call(t,p)&&(i[p]=t[p]);i.originalType=e,i[c]="string"==typeof e?e:a,l[1]=i;for(var u=2;u{r.r(t),r.d(t,{assets:()=>d,contentTitle:()=>p,default:()=>b,frontMatter:()=>i,metadata:()=>u,toc:()=>c});var n=r(54805),a=r(30008),o=(r(29901),r(57522)),l=["components"],i={hide_table_of_contents:!0},p="validateBound",u={unversionedId:"api/validatebound",id:"version-1.0.28-alpha/api/validatebound",title:"validateBound",description:"operator",source:"@site/versioned_docs/version-1.0.28-alpha/api/validatebound.md",sourceDirName:"api",slug:"/api/validatebound",permalink:"/docs/api/validatebound",draft:!1,tags:[],version:"1.0.28-alpha",frontMatter:{hide_table_of_contents:!0}},d={},c=[{value:"operator",id:"operator",level:2},{value:"tableRow",id:"tablerow",level:2},{value:"description",id:"description",level:2},{value:"string",id:"string",level:2}],s={toc:c},m="wrapper";function b(e){var t=e.components,r=(0,a.Z)(e,l);return(0,o.kt)(m,(0,n.Z)({},s,r,{components:t,mdxType:"MDXLayout"}),(0,o.kt)("h1",{id:"validatebound"},"validateBound"),(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/validatebound"},"bound"))),(0,o.kt)("h2",{id:"tablerow"},"tableRow"),(0,o.kt)("table",null,(0,o.kt)("thead",{parentName:"table"},(0,o.kt)("tr",{parentName:"thead"},(0,o.kt)("th",{parentName:"tr",align:null},"Variable"),(0,o.kt)("th",{parentName:"tr",align:null},"Description"))),(0,o.kt)("tbody",{parentName:"table"},(0,o.kt)("tr",{parentName:"tbody"},(0,o.kt)("td",{parentName:"tr",align:null},"N"),(0,o.kt)("td",{parentName:"tr",align:null},"number literal")),(0,o.kt)("tr",{parentName:"tbody"},(0,o.kt)("td",{parentName:"tr",align:null},"S"),(0,o.kt)("td",{parentName:"tr",align:null},"sized data (a number, string or array)")),(0,o.kt)("tr",{parentName:"tbody"},(0,o.kt)("td",{parentName:"tr",align:null},"<"),(0,o.kt)("td",{parentName:"tr",align:null},"Comparator (one of <, <=, ==, >=, >)")))),(0,o.kt)("h2",{id:"description"},"description"),(0,o.kt)("ul",null,(0,o.kt)("li",{parentName:"ul"},'Bound operators allow data to be bounded in the format "S{t.d(n,{Zo:()=>l,kt:()=>f});var r=t(29901);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(56632),o=t(82786),a=t(53800),i=t(49361),s=t(29901),p=t(43346);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(54805),o=t(30008),a=(t(29901),t(57522)),i=t(78488),s=["components"],p={hide_table_of_contents:!0},c="Scopes",l={unversionedId:"scopes",id:"version-1.0.27-alpha/scopes",title:"Scopes",description:"",source:"@site/versioned_docs/version-1.0.27-alpha/scopes.mdx",sourceDirName:".",slug:"/scopes",permalink:"/docs/scopes",draft:!1,tags:[],version:"1.0.27-alpha",frontMatter:{hide_table_of_contents:!0},sidebar:"sidebar",previous:{title:"Intro",permalink:"/docs/"},next:{title:"Keywords",permalink:"/docs/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 +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[4274],{57522:(e,n,t)=>{t.d(n,{Zo:()=>l,kt:()=>f});var r=t(29901);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(56632),o=t(82786),a=t(53800),i=t(49361),s=t(29901),p=t(43346);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(54805),o=t(30008),a=(t(29901),t(57522)),i=t(78488),s=["components"],p={hide_table_of_contents:!0},c="Scopes",l={unversionedId:"scopes",id:"version-1.0.27-alpha/scopes",title:"Scopes",description:"",source:"@site/versioned_docs/version-1.0.27-alpha/scopes.mdx",sourceDirName:".",slug:"/scopes",permalink:"/docs/1.0.27-alpha/scopes",draft:!1,tags:[],version:"1.0.27-alpha",frontMatter:{hide_table_of_contents:!0},sidebar:"sidebar",previous:{title:"Intro",permalink:"/docs/1.0.27-alpha/"},next:{title:"Keywords",permalink:"/docs/1.0.27-alpha/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/ac907d5b.0e99e90a.js b/assets/js/ac907d5b.0e99e90a.js new file mode 100644 index 0000000000..b6cb05cee8 --- /dev/null +++ b/assets/js/ac907d5b.0e99e90a.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[8494],{57522:(e,t,r)=>{r.d(t,{Zo:()=>l,kt:()=>y});var n=r(29901);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},l=function(e){var t=c(e.components);return n.createElement(s.Provider,{value:t},e.children)},u="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,l=p(e,["components","mdxType","originalType","parentName"]),u=c(r),d=o,y=u["".concat(s,".").concat(d)]||u[d]||f[d]||a;return r?n.createElement(y,i(i({ref:t},l),{},{components:r})):n.createElement(y,i({ref:t},l))}));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[u]="string"==typeof e?e:o,i[1]=p;for(var c=2;c{r.r(t),r.d(t,{assets:()=>l,contentTitle:()=>s,default:()=>y,frontMatter:()=>p,metadata:()=>c,toc:()=>u});var n=r(54805),o=r(30008),a=(r(29901),r(57522)),i=["components"],p={id:"api",hide_table_of_contents:!0,title:"API"},s="API",c={unversionedId:"api",id:"version-1.0.27-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.27-alpha/api.mdx",sourceDirName:".",slug:"/api",permalink:"/docs/1.0.27-alpha/api",draft:!1,tags:[],version:"1.0.27-alpha",frontMatter:{id:"api",hide_table_of_contents:!0,title:"API"},sidebar:"sidebar",previous:{title:"Operators",permalink:"/docs/1.0.27-alpha/api/operators"}},l={},u=[],f={toc:u},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/af2e9fab.0667831a.js b/assets/js/af2e9fab.0667831a.js new file mode 100644 index 0000000000..5e16ed6b8a --- /dev/null +++ b/assets/js/af2e9fab.0667831a.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[4405],{57522:(e,n,t)=>{t.d(n,{Zo:()=>l,kt:()=>f});var r=t(29901);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(56632),o=t(82786),a=t(53800),i=t(49361),s=t(29901),p=t(43346);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(54805),o=t(30008),a=(t(29901),t(57522)),i=t(14818),s=["components"],p={hide_table_of_contents:!0},c="Scopes",l={unversionedId:"scopes",id:"version-1.0.28-alpha/scopes",title:"Scopes",description:"",source:"@site/versioned_docs/version-1.0.28-alpha/scopes.mdx",sourceDirName:".",slug:"/scopes",permalink:"/docs/scopes",draft:!1,tags:[],version:"1.0.28-alpha",frontMatter:{hide_table_of_contents:!0},sidebar:"sidebar",previous:{title:"Intro",permalink:"/docs/"},next:{title:"Keywords",permalink:"/docs/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/b207f374.786a77c0.js b/assets/js/b207f374.c9a1648e.js similarity index 70% rename from assets/js/b207f374.786a77c0.js rename to assets/js/b207f374.c9a1648e.js index 73fc7615e5..1c25b6d155 100644 --- a/assets/js/b207f374.786a77c0.js +++ b/assets/js/b207f374.c9a1648e.js @@ -1 +1 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[343],{57522:(e,t,r)=>{r.d(t,{Zo:()=>c,kt:()=>m});var n=r(29901);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(54805),a=r(30008),l=(r(29901),r(57522)),o=["components"],p={hide_table_of_contents:!0},u="valueOf",i={unversionedId:"api/valueof",id:"version-1.0.27-alpha/api/valueof",title:"valueOf",description:"operator",source:"@site/versioned_docs/version-1.0.27-alpha/api/valueof.md",sourceDirName:"api",slug:"/api/valueof",permalink:"/docs/api/valueof",draft:!1,tags:[],version:"1.0.27-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/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([[343],{57522:(e,t,r)=>{r.d(t,{Zo:()=>c,kt:()=>m});var n=r(29901);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(54805),a=r(30008),l=(r(29901),r(57522)),o=["components"],p={hide_table_of_contents:!0},u="valueOf",i={unversionedId:"api/valueof",id:"version-1.0.27-alpha/api/valueof",title:"valueOf",description:"operator",source:"@site/versioned_docs/version-1.0.27-alpha/api/valueof.md",sourceDirName:"api",slug:"/api/valueof",permalink:"/docs/1.0.27-alpha/api/valueof",draft:!1,tags:[],version:"1.0.27-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.27-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/b4d00006.f4e1eb05.js b/assets/js/b4d00006.f4e1eb05.js new file mode 100644 index 0000000000..b4c55d5368 --- /dev/null +++ b/assets/js/b4d00006.f4e1eb05.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[8584],{57522:(t,e,n)=>{n.d(e,{Zo:()=>u,kt:()=>c});var a=n(29901);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(54805),r=n(30008),l=(n(29901),n(57522)),o=["components"],i={hide_table_of_contents:!0},p="tsKeywordsScope",d={unversionedId:"api/tskeywordsscope",id:"version-1.0.27-alpha/api/tskeywordsscope",title:"tsKeywordsScope",description:"keywords",source:"@site/versioned_docs/version-1.0.27-alpha/api/tskeywordsscope.md",sourceDirName:"api",slug:"/api/tskeywordsscope",permalink:"/docs/1.0.27-alpha/api/tskeywordsscope",draft:!1,tags:[],version:"1.0.27-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/720b32b8.ff9fa1f2.js b/assets/js/b8be6a81.413824df.js similarity index 89% rename from assets/js/720b32b8.ff9fa1f2.js rename to assets/js/b8be6a81.413824df.js index ca966b6b7e..ffeae232d6 100644 --- a/assets/js/720b32b8.ff9fa1f2.js +++ b/assets/js/b8be6a81.413824df.js @@ -1 +1 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[4204],{57522:(e,t,r)=>{r.d(t,{Zo:()=>s,kt:()=>m});var n=r(29901);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 p(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 i=n.createContext({}),l=function(e){var t=n.useContext(i),r=t;return e&&(r="function"==typeof e?e(t):p(p({},t),e)),r},s=function(e){var t=l(e.components);return n.createElement(i.Provider,{value:t},e.children)},u="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,a=e.mdxType,o=e.originalType,i=e.parentName,s=c(e,["components","mdxType","originalType","parentName"]),u=l(r),y=a,m=u["".concat(i,".").concat(y)]||u[y]||f[y]||o;return r?n.createElement(m,p(p({ref:t},s),{},{components:r})):n.createElement(m,p({ref:t},s))}));function m(e,t){var r=arguments,a=t&&t.mdxType;if("string"==typeof e||a){var o=r.length,p=new Array(o);p[0]=y;var c={};for(var i in t)hasOwnProperty.call(t,i)&&(c[i]=t[i]);c.originalType=e,c[u]="string"==typeof e?e:a,p[1]=c;for(var l=2;l{r.r(t),r.d(t,{assets:()=>s,contentTitle:()=>i,default:()=>m,frontMatter:()=>c,metadata:()=>l,toc:()=>u});var n=r(54805),a=r(30008),o=(r(29901),r(57522)),p=["components"],c={hide_table_of_contents:!0},i="Space",l={unversionedId:"api/space",id:"version-1.0.27-alpha/api/space",title:"Space",description:"text",source:"@site/versioned_docs/version-1.0.27-alpha/api/space.md",sourceDirName:"api",slug:"/api/space",permalink:"/docs/api/space",draft:!1,tags:[],version:"1.0.27-alpha",frontMatter:{hide_table_of_contents:!0}},s={},u=[{value:"text",id:"text",level:2}],f={toc:u},y="wrapper";function m(e){var t=e.components,r=(0,a.Z)(e,p);return(0,o.kt)(y,(0,n.Z)({},f,r,{components:t,mdxType:"MDXLayout"}),(0,o.kt)("h1",{id:"space"},"Space"),(0,o.kt)("h2",{id:"text"},"text"),(0,o.kt)("pre",null,(0,o.kt)("code",{parentName:"pre",className:"language-ts"},"export type Space = {\n [k in keyof exports]: Type\n}\n")))}m.isMDXComponent=!0}}]); \ No newline at end of file +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[9368],{57522:(e,t,r)=>{r.d(t,{Zo:()=>s,kt:()=>m});var n=r(29901);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 p(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 i=n.createContext({}),l=function(e){var t=n.useContext(i),r=t;return e&&(r="function"==typeof e?e(t):p(p({},t),e)),r},s=function(e){var t=l(e.components);return n.createElement(i.Provider,{value:t},e.children)},u="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,a=e.mdxType,o=e.originalType,i=e.parentName,s=c(e,["components","mdxType","originalType","parentName"]),u=l(r),y=a,m=u["".concat(i,".").concat(y)]||u[y]||f[y]||o;return r?n.createElement(m,p(p({ref:t},s),{},{components:r})):n.createElement(m,p({ref:t},s))}));function m(e,t){var r=arguments,a=t&&t.mdxType;if("string"==typeof e||a){var o=r.length,p=new Array(o);p[0]=y;var c={};for(var i in t)hasOwnProperty.call(t,i)&&(c[i]=t[i]);c.originalType=e,c[u]="string"==typeof e?e:a,p[1]=c;for(var l=2;l{r.r(t),r.d(t,{assets:()=>s,contentTitle:()=>i,default:()=>m,frontMatter:()=>c,metadata:()=>l,toc:()=>u});var n=r(54805),a=r(30008),o=(r(29901),r(57522)),p=["components"],c={hide_table_of_contents:!0},i="Space",l={unversionedId:"api/space",id:"version-1.0.28-alpha/api/space",title:"Space",description:"text",source:"@site/versioned_docs/version-1.0.28-alpha/api/space.md",sourceDirName:"api",slug:"/api/space",permalink:"/docs/api/space",draft:!1,tags:[],version:"1.0.28-alpha",frontMatter:{hide_table_of_contents:!0}},s={},u=[{value:"text",id:"text",level:2}],f={toc:u},y="wrapper";function m(e){var t=e.components,r=(0,a.Z)(e,p);return(0,o.kt)(y,(0,n.Z)({},f,r,{components:t,mdxType:"MDXLayout"}),(0,o.kt)("h1",{id:"space"},"Space"),(0,o.kt)("h2",{id:"text"},"text"),(0,o.kt)("pre",null,(0,o.kt)("code",{parentName:"pre",className:"language-ts"},"export type Space = {\n [k in keyof exports]: Type\n}\n")))}m.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/bf95da2e.d25408d0.js b/assets/js/bf95da2e.d25408d0.js deleted file mode 100644 index 15a22f194b..0000000000 --- a/assets/js/bf95da2e.d25408d0.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[5239],{57522:(e,n,t)=>{t.d(n,{Zo:()=>s,kt:()=>m});var r=t(29901);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 l=r.createContext({}),c=function(e){var n=r.useContext(l),t=n;return e&&(t="function"==typeof e?e(n):i(i({},n),e)),t},s=function(e){var n=c(e.components);return r.createElement(l.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,a=e.originalType,l=e.parentName,s=p(e,["components","mdxType","originalType","parentName"]),u=c(t),f=o,m=u["".concat(l,".").concat(f)]||u[f]||d[f]||a;return t?r.createElement(m,i(i({ref:n},s),{},{components:t})):r.createElement(m,i({ref:n},s))}));function m(e,n){var t=arguments,o=n&&n.mdxType;if("string"==typeof e||o){var a=t.length,i=new Array(a);i[0]=f;var p={};for(var l in n)hasOwnProperty.call(n,l)&&(p[l]=n[l]);p.originalType=e,p[u]="string"==typeof e?e:o,i[1]=p;for(var c=2;c{t.r(n),t.d(n,{assets:()=>s,contentTitle:()=>l,default:()=>m,frontMatter:()=>p,metadata:()=>c,toc:()=>u});var r=t(54805),o=t(30008),a=(t(29901),t(57522)),i=["components"],p={hide_table_of_contents:!0},l="PrecompiledDefaults",c={unversionedId:"api/precompileddefaults",id:"version-1.0.27-alpha/api/precompileddefaults",title:"PrecompiledDefaults",description:"text",source:"@site/versioned_docs/version-1.0.27-alpha/api/precompileddefaults.md",sourceDirName:"api",slug:"/api/precompileddefaults",permalink:"/docs/api/precompileddefaults",draft:!1,tags:[],version:"1.0.27-alpha",frontMatter:{hide_table_of_contents:!0}},s={},u=[{value:"text",id:"text",level:2}],d={toc:u},f="wrapper";function m(e){var n=e.components,t=(0,o.Z)(e,i);return(0,a.kt)(f,(0,r.Z)({},d,t,{components:n,mdxType:"MDXLayout"}),(0,a.kt)("h1",{id:"precompileddefaults"},"PrecompiledDefaults"),(0,a.kt)("h2",{id:"text"},"text"),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-ts"},"export type PrecompiledDefaults = {\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 integer: number\n alpha: string\n alphanumeric: string\n lowercase: string\n uppercase: string\n creditCard: string\n email: string\n uuid: string\n semver: string\n json: (In: string) => unknown\n parsedNumber: (In: string) => number\n parsedInteger: (In: string) => number\n parsedDate: (In: string) => Date\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}\n")))}m.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/bf95da2e.f89c6678.js b/assets/js/bf95da2e.f89c6678.js new file mode 100644 index 0000000000..264300b0b0 --- /dev/null +++ b/assets/js/bf95da2e.f89c6678.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[5239],{57522:(e,n,t)=>{t.d(n,{Zo:()=>s,kt:()=>m});var r=t(29901);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 l=r.createContext({}),c=function(e){var n=r.useContext(l),t=n;return e&&(t="function"==typeof e?e(n):i(i({},n),e)),t},s=function(e){var n=c(e.components);return r.createElement(l.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,a=e.mdxType,o=e.originalType,l=e.parentName,s=p(e,["components","mdxType","originalType","parentName"]),u=c(t),f=a,m=u["".concat(l,".").concat(f)]||u[f]||d[f]||o;return t?r.createElement(m,i(i({ref:n},s),{},{components:t})):r.createElement(m,i({ref:n},s))}));function m(e,n){var t=arguments,a=n&&n.mdxType;if("string"==typeof e||a){var o=t.length,i=new Array(o);i[0]=f;var p={};for(var l in n)hasOwnProperty.call(n,l)&&(p[l]=n[l]);p.originalType=e,p[u]="string"==typeof e?e:a,i[1]=p;for(var c=2;c{t.r(n),t.d(n,{assets:()=>s,contentTitle:()=>l,default:()=>m,frontMatter:()=>p,metadata:()=>c,toc:()=>u});var r=t(54805),a=t(30008),o=(t(29901),t(57522)),i=["components"],p={hide_table_of_contents:!0},l="PrecompiledDefaults",c={unversionedId:"api/precompileddefaults",id:"version-1.0.27-alpha/api/precompileddefaults",title:"PrecompiledDefaults",description:"text",source:"@site/versioned_docs/version-1.0.27-alpha/api/precompileddefaults.md",sourceDirName:"api",slug:"/api/precompileddefaults",permalink:"/docs/1.0.27-alpha/api/precompileddefaults",draft:!1,tags:[],version:"1.0.27-alpha",frontMatter:{hide_table_of_contents:!0}},s={},u=[{value:"text",id:"text",level:2}],d={toc:u},f="wrapper";function m(e){var n=e.components,t=(0,a.Z)(e,i);return(0,o.kt)(f,(0,r.Z)({},d,t,{components:n,mdxType:"MDXLayout"}),(0,o.kt)("h1",{id:"precompileddefaults"},"PrecompiledDefaults"),(0,o.kt)("h2",{id:"text"},"text"),(0,o.kt)("pre",null,(0,o.kt)("code",{parentName:"pre",className:"language-ts"},"export type PrecompiledDefaults = {\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 integer: number\n alpha: string\n alphanumeric: string\n lowercase: string\n uppercase: string\n creditCard: string\n email: string\n uuid: string\n semver: string\n json: (In: string) => unknown\n parsedNumber: (In: string) => number\n parsedInteger: (In: string) => number\n parsedDate: (In: string) => Date\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}\n")))}m.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/e1c5356f.1718ad8d.js b/assets/js/bf9eb72b.3558de0e.js similarity index 90% rename from assets/js/e1c5356f.1718ad8d.js rename to assets/js/bf9eb72b.3558de0e.js index 275d91f630..465f91c1f8 100644 --- a/assets/js/e1c5356f.1718ad8d.js +++ b/assets/js/bf9eb72b.3558de0e.js @@ -1 +1 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[1921],{57522:(e,t,r)=>{r.d(t,{Zo:()=>s,kt:()=>f});var n=r(29901);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 i(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({}),c=function(e){var t=n.useContext(p),r=t;return e&&(r="function"==typeof e?e(t):i(i({},t),e)),r},s=function(e){var t=c(e.components);return n.createElement(p.Provider,{value:t},e.children)},u="mdxType",d={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,o=e.originalType,p=e.parentName,s=l(e,["components","mdxType","originalType","parentName"]),u=c(r),v=a,f=u["".concat(p,".").concat(v)]||u[v]||d[v]||o;return r?n.createElement(f,i(i({ref:t},s),{},{components:r})):n.createElement(f,i({ref:t},s))}));function f(e,t){var r=arguments,a=t&&t.mdxType;if("string"==typeof e||a){var o=r.length,i=new Array(o);i[0]=v;var l={};for(var p in t)hasOwnProperty.call(t,p)&&(l[p]=t[p]);l.originalType=e,l[u]="string"==typeof e?e:a,i[1]=l;for(var c=2;c{r.r(t),r.d(t,{assets:()=>s,contentTitle:()=>p,default:()=>f,frontMatter:()=>l,metadata:()=>c,toc:()=>u});var n=r(54805),a=r(30008),o=(r(29901),r(57522)),i=["components"],l={hide_table_of_contents:!0},p="validateDivisor",c={unversionedId:"api/validatedivisor",id:"version-1.0.27-alpha/api/validatedivisor",title:"validateDivisor",description:"operator",source:"@site/versioned_docs/version-1.0.27-alpha/api/validatedivisor.md",sourceDirName:"api",slug:"/api/validatedivisor",permalink:"/docs/api/validatedivisor",draft:!1,tags:[],version:"1.0.27-alpha",frontMatter:{hide_table_of_contents:!0}},s={},u=[{value:"operator",id:"operator",level:2},{value:"string",id:"string",level:2}],d={toc:u},v="wrapper";function f(e){var t=e.components,r=(0,a.Z)(e,i);return(0,o.kt)(v,(0,n.Z)({},d,r,{components:t,mdxType:"MDXLayout"}),(0,o.kt)("h1",{id:"validatedivisor"},"validateDivisor"),(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/validatedivisor"},"%"))),(0,o.kt)("h2",{id:"string"},"string"),(0,o.kt)("ul",null,(0,o.kt)("li",{parentName:"ul"},'"N%D", where "N" is a number and "D" is a non-zero integer')))}f.isMDXComponent=!0}}]); \ No newline at end of file +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[3398],{57522:(e,t,r)=>{r.d(t,{Zo:()=>s,kt:()=>f});var n=r(29901);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 i(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({}),c=function(e){var t=n.useContext(p),r=t;return e&&(r="function"==typeof e?e(t):i(i({},t),e)),r},s=function(e){var t=c(e.components);return n.createElement(p.Provider,{value:t},e.children)},u="mdxType",d={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,o=e.originalType,p=e.parentName,s=l(e,["components","mdxType","originalType","parentName"]),u=c(r),v=a,f=u["".concat(p,".").concat(v)]||u[v]||d[v]||o;return r?n.createElement(f,i(i({ref:t},s),{},{components:r})):n.createElement(f,i({ref:t},s))}));function f(e,t){var r=arguments,a=t&&t.mdxType;if("string"==typeof e||a){var o=r.length,i=new Array(o);i[0]=v;var l={};for(var p in t)hasOwnProperty.call(t,p)&&(l[p]=t[p]);l.originalType=e,l[u]="string"==typeof e?e:a,i[1]=l;for(var c=2;c{r.r(t),r.d(t,{assets:()=>s,contentTitle:()=>p,default:()=>f,frontMatter:()=>l,metadata:()=>c,toc:()=>u});var n=r(54805),a=r(30008),o=(r(29901),r(57522)),i=["components"],l={hide_table_of_contents:!0},p="validateDivisor",c={unversionedId:"api/validatedivisor",id:"version-1.0.28-alpha/api/validatedivisor",title:"validateDivisor",description:"operator",source:"@site/versioned_docs/version-1.0.28-alpha/api/validatedivisor.md",sourceDirName:"api",slug:"/api/validatedivisor",permalink:"/docs/api/validatedivisor",draft:!1,tags:[],version:"1.0.28-alpha",frontMatter:{hide_table_of_contents:!0}},s={},u=[{value:"operator",id:"operator",level:2},{value:"string",id:"string",level:2}],d={toc:u},v="wrapper";function f(e){var t=e.components,r=(0,a.Z)(e,i);return(0,o.kt)(v,(0,n.Z)({},d,r,{components:t,mdxType:"MDXLayout"}),(0,o.kt)("h1",{id:"validatedivisor"},"validateDivisor"),(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/validatedivisor"},"%"))),(0,o.kt)("h2",{id:"string"},"string"),(0,o.kt)("ul",null,(0,o.kt)("li",{parentName:"ul"},'"N%D", where "N" is a number and "D" is a non-zero integer')))}f.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/c1566c80.ad69bde8.js b/assets/js/c1566c80.ad69bde8.js new file mode 100644 index 0000000000..7f1fed3aa5 --- /dev/null +++ b/assets/js/c1566c80.ad69bde8.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[33],{57522:(e,t,r)=>{r.d(t,{Zo:()=>s,kt:()=>f});var n=r(29901);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(54805),o=r(30008),a=(r(29901),r(57522)),c=["components"],i={hide_table_of_contents:!0},p="Problem",l={unversionedId:"api/problem",id:"version-1.0.28-alpha/api/problem",title:"Problem",description:"text",source:"@site/versioned_docs/version-1.0.28-alpha/api/problem.md",sourceDirName:"api",slug:"/api/problem",permalink:"/docs/api/problem",draft:!1,tags:[],version:"1.0.28-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/c40baa2c.fcd23e83.js b/assets/js/c40baa2c.fcd23e83.js new file mode 100644 index 0000000000..84a85473c8 --- /dev/null +++ b/assets/js/c40baa2c.fcd23e83.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[513],{57522:(e,n,t)=>{t.d(n,{Zo:()=>c,kt:()=>m});var r=t(29901);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 l=r.createContext({}),u=function(e){var n=r.useContext(l),t=n;return e&&(t="function"==typeof e?e(n):i(i({},n),e)),t},c=function(e){var n=u(e.components);return r.createElement(l.Provider,{value:n},e.children)},s="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,a=e.originalType,l=e.parentName,c=p(e,["components","mdxType","originalType","parentName"]),s=u(t),f=o,m=s["".concat(l,".").concat(f)]||s[f]||d[f]||a;return t?r.createElement(m,i(i({ref:n},c),{},{components:t})):r.createElement(m,i({ref:n},c))}));function m(e,n){var t=arguments,o=n&&n.mdxType;if("string"==typeof e||o){var a=t.length,i=new Array(a);i[0]=f;var p={};for(var l in n)hasOwnProperty.call(n,l)&&(p[l]=n[l]);p.originalType=e,p[s]="string"==typeof e?e:o,i[1]=p;for(var u=2;u{t.r(n),t.d(n,{assets:()=>c,contentTitle:()=>l,default:()=>m,frontMatter:()=>p,metadata:()=>u,toc:()=>s});var r=t(54805),o=t(30008),a=(t(29901),t(57522)),i=["components"],p={hide_table_of_contents:!0},l="PrecompiledDefaults",u={unversionedId:"api/precompileddefaults",id:"version-1.0.28-alpha/api/precompileddefaults",title:"PrecompiledDefaults",description:"text",source:"@site/versioned_docs/version-1.0.28-alpha/api/precompileddefaults.md",sourceDirName:"api",slug:"/api/precompileddefaults",permalink:"/docs/api/precompileddefaults",draft:!1,tags:[],version:"1.0.28-alpha",frontMatter:{hide_table_of_contents:!0}},c={},s=[{value:"text",id:"text",level:2}],d={toc:s},f="wrapper";function m(e){var n=e.components,t=(0,o.Z)(e,i);return(0,a.kt)(f,(0,r.Z)({},d,t,{components:n,mdxType:"MDXLayout"}),(0,a.kt)("h1",{id:"precompileddefaults"},"PrecompiledDefaults"),(0,a.kt)("h2",{id:"text"},"text"),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-ts"},"export type PrecompiledDefaults = {\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 integer: number\n alpha: string\n alphanumeric: string\n lowercase: string\n uppercase: string\n creditCard: string\n email: string\n uuid: string\n semver: string\n json: (In: string) => Out\n parsedNumber: (In: string) => Out\n parsedInteger: (In: string) => Out\n parsedDate: (In: string) => Out\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}\n")))}m.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/c62ebc34.73328b36.js b/assets/js/c62ebc34.73328b36.js new file mode 100644 index 0000000000..12dfe39ac9 --- /dev/null +++ b/assets/js/c62ebc34.73328b36.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[7690],{57522:(e,n,t)=>{t.d(n,{Zo:()=>l,kt:()=>y});var r=t(29901);function i(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 a(e){for(var n=1;n=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}var c=r.createContext({}),p=function(e){var n=r.useContext(c),t=n;return e&&(t="function"==typeof e?e(n):a(a({},n),e)),t},l=function(e){var n=p(e.components);return r.createElement(c.Provider,{value:n},e.children)},s="mdxType",d={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,i=e.mdxType,o=e.originalType,c=e.parentName,l=f(e,["components","mdxType","originalType","parentName"]),s=p(t),u=i,y=s["".concat(c,".").concat(u)]||s[u]||d[u]||o;return t?r.createElement(y,a(a({ref:n},l),{},{components:t})):r.createElement(y,a({ref:n},l))}));function y(e,n){var t=arguments,i=n&&n.mdxType;if("string"==typeof e||i){var o=t.length,a=new Array(o);a[0]=u;var f={};for(var c in n)hasOwnProperty.call(n,c)&&(f[c]=n[c]);f.originalType=e,f[s]="string"==typeof e?e:i,a[1]=f;for(var p=2;p{t.r(n),t.d(n,{assets:()=>l,contentTitle:()=>c,default:()=>y,frontMatter:()=>f,metadata:()=>p,toc:()=>s});var r=t(54805),i=t(30008),o=(t(29901),t(57522)),a=["components"],f={hide_table_of_contents:!0},c="inferDefinition",p={unversionedId:"api/inferdefinition",id:"version-1.0.28-alpha/api/inferdefinition",title:"inferDefinition",description:"text",source:"@site/versioned_docs/version-1.0.28-alpha/api/inferdefinition.md",sourceDirName:"api",slug:"/api/inferdefinition",permalink:"/docs/api/inferdefinition",draft:!1,tags:[],version:"1.0.28-alpha",frontMatter:{hide_table_of_contents:!0}},l={},s=[{value:"text",id:"text",level:2}],d={toc:s},u="wrapper";function y(e){var n=e.components,t=(0,i.Z)(e,a);return(0,o.kt)(u,(0,r.Z)({},d,t,{components:n,mdxType:"MDXLayout"}),(0,o.kt)("h1",{id:"inferdefinition"},"inferDefinition"),(0,o.kt)("h2",{id:"text"},"text"),(0,o.kt)("pre",null,(0,o.kt)("code",{parentName:"pre",className:"language-ts"},"export type inferDefinition = isAny extends true\n ? never\n : def extends Infer | InferredThunk\n ? t\n : def extends string\n ? inferString\n : def extends List\n ? inferTuple\n : def extends RegExp\n ? string\n : def extends Dict\n ? inferRecord\n : never\n")))}y.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/c96bd749.9d77f730.js b/assets/js/c96bd749.9d77f730.js new file mode 100644 index 0000000000..4cc5d1bf34 --- /dev/null +++ b/assets/js/c96bd749.9d77f730.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[5024],{57522:(e,t,r)=>{r.d(t,{Zo:()=>u,kt:()=>y});var n=r(29901);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 i(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 a(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=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):a(a({},t),e)),r},u=function(e){var t=c(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,o=e.mdxType,i=e.originalType,p=e.parentName,u=l(e,["components","mdxType","originalType","parentName"]),s=c(r),m=o,y=s["".concat(p,".").concat(m)]||s[m]||f[m]||i;return r?n.createElement(y,a(a({ref:t},u),{},{components:r})):n.createElement(y,a({ref:t},u))}));function y(e,t){var r=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var i=r.length,a=new Array(i);a[0]=m;var l={};for(var p in t)hasOwnProperty.call(t,p)&&(l[p]=t[p]);l.originalType=e,l[s]="string"==typeof e?e:o,a[1]=l;for(var c=2;c{r.r(t),r.d(t,{assets:()=>u,contentTitle:()=>p,default:()=>y,frontMatter:()=>l,metadata:()=>c,toc:()=>s});var n=r(54805),o=r(30008),i=(r(29901),r(57522)),a=["components"],l={hide_table_of_contents:!0},p="intersection",c={unversionedId:"api/intersection",id:"version-1.0.27-alpha/api/intersection",title:"intersection",description:"operator",source:"@site/versioned_docs/version-1.0.27-alpha/api/intersection.md",sourceDirName:"api",slug:"/api/intersection",permalink:"/docs/1.0.27-alpha/api/intersection",draft:!1,tags:[],version:"1.0.27-alpha",frontMatter:{hide_table_of_contents:!0}},u={},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 y(e){var t=e.components,r=(0,o.Z)(e,a);return(0,i.kt)(m,(0,n.Z)({},f,r,{components:t,mdxType:"MDXLayout"}),(0,i.kt)("h1",{id:"intersection"},"intersection"),(0,i.kt)("h2",{id:"operator"},"operator"),(0,i.kt)("ul",null,(0,i.kt)("li",{parentName:"ul"},(0,i.kt)("a",{parentName:"li",href:"/docs/1.0.27-alpha/api/intersection"},"&"))),(0,i.kt)("h2",{id:"string"},"string"),(0,i.kt)("ul",null,(0,i.kt)("li",{parentName:"ul"},'"L&R" ',(0,i.kt)("br",null)),(0,i.kt)("li",{parentName:"ul"},'const intersection = type("/@arktype',".",'io$/ & email")',(0,i.kt)("br",null))),(0,i.kt)("h2",{id:"tuple"},"tuple"),(0,i.kt)("ul",null,(0,i.kt)("li",{parentName:"ul"},'[L, "&", R]'," ",(0,i.kt)("br",null)),(0,i.kt)("li",{parentName:"ul"},"const tupleIntersection = type(",'["/@arktype',".",'io$/", "&", "email"]',")",(0,i.kt)("br",null))),(0,i.kt)("h2",{id:"helper"},"helper"),(0,i.kt)("ul",null,(0,i.kt)("li",{parentName:"ul"},"intersection(L,R) ",(0,i.kt)("br",null)),(0,i.kt)("li",{parentName:"ul"},'const helperIntersection = intersection("/@arktype',".",'io$/","email")',(0,i.kt)("br",null))))}y.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/c9964daf.38b1dac4.js b/assets/js/c9964daf.9b87fed2.js similarity index 53% rename from assets/js/c9964daf.38b1dac4.js rename to assets/js/c9964daf.9b87fed2.js index 6bb3c0805d..b5ed3aa989 100644 --- a/assets/js/c9964daf.38b1dac4.js +++ b/assets/js/c9964daf.9b87fed2.js @@ -1 +1 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[4717],{57522:(e,t,r)=>{r.d(t,{Zo:()=>u,kt:()=>d});var n=r(29901);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(54805),o=r(30008),a=(r(29901),r(57522)),p=["components"],i={hide_table_of_contents:!0},c="type",l={unversionedId:"api/type",id:"version-1.0.27-alpha/api/type",title:"type",description:"text",source:"@site/versioned_docs/version-1.0.27-alpha/api/type.md",sourceDirName:"api",slug:"/api/type",permalink:"/docs/api/type",draft:!1,tags:[],version:"1.0.27-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([[4717],{57522:(e,t,r)=>{r.d(t,{Zo:()=>u,kt:()=>d});var n=r(29901);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(54805),o=r(30008),a=(r(29901),r(57522)),p=["components"],i={hide_table_of_contents:!0},l="type",c={unversionedId:"api/type",id:"version-1.0.27-alpha/api/type",title:"type",description:"text",source:"@site/versioned_docs/version-1.0.27-alpha/api/type.md",sourceDirName:"api",slug:"/api/type",permalink:"/docs/1.0.27-alpha/api/type",draft:!1,tags:[],version:"1.0.27-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/ccfb1236.9b25d88e.js b/assets/js/ccfb1236.9b25d88e.js new file mode 100644 index 0000000000..90e73aab76 --- /dev/null +++ b/assets/js/ccfb1236.9b25d88e.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[1079],{57522:(e,n,t)=>{t.d(n,{Zo:()=>c,kt:()=>f});var r=t(29901);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(56632),a=t(82786),o=t(53800),i=t(49361),s=t(29901),p=t(43346);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(54805),a=t(30008),o=(t(29901),t(57522)),i=t(78488),s=["components"],p={id:"intro",hide_table_of_contents:!0,title:"Intro"},l="Getting Started",c={unversionedId:"intro",id:"version-1.0.27-alpha/intro",title:"Intro",description:'replace(./dev/arktype.io/static,) |> replace({ type },{"{"} type {"}"}) --\x3e',source:"@site/versioned_docs/version-1.0.27-alpha/index.mdx",sourceDirName:".",slug:"/",permalink:"/docs/1.0.27-alpha/",draft:!1,tags:[],version:"1.0.27-alpha",frontMatter:{id:"intro",hide_table_of_contents:!0,title:"Intro"},sidebar:"sidebar",next:{title:"Scopes",permalink:"/docs/1.0.27-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/84389d4b.7bc9fa16.js b/assets/js/d939c4cf.f1db1b36.js similarity index 90% rename from assets/js/84389d4b.7bc9fa16.js rename to assets/js/d939c4cf.f1db1b36.js index 04df7df74c..3f868cbc9c 100644 --- a/assets/js/84389d4b.7bc9fa16.js +++ b/assets/js/d939c4cf.f1db1b36.js @@ -1 +1 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[7393],{57522:(e,t,r)=>{r.d(t,{Zo:()=>u,kt:()=>d});var n=r(29901);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(54805),o=r(30008),a=(r(29901),r(57522)),p=["components"],i={hide_table_of_contents:!0},l="parseConfigTuple",c={unversionedId:"api/parseconfigtuple",id:"version-1.0.27-alpha/api/parseconfigtuple",title:"parseConfigTuple",description:"operator",source:"@site/versioned_docs/version-1.0.27-alpha/api/parseconfigtuple.md",sourceDirName:"api",slug:"/api/parseconfigtuple",permalink:"/docs/api/parseconfigtuple",draft:!1,tags:[],version:"1.0.27-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([[4064],{57522:(e,t,r)=>{r.d(t,{Zo:()=>u,kt:()=>d});var n=r(29901);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(54805),o=r(30008),a=(r(29901),r(57522)),p=["components"],i={hide_table_of_contents:!0},l="parseConfigTuple",c={unversionedId:"api/parseconfigtuple",id:"version-1.0.28-alpha/api/parseconfigtuple",title:"parseConfigTuple",description:"operator",source:"@site/versioned_docs/version-1.0.28-alpha/api/parseconfigtuple.md",sourceDirName:"api",slug:"/api/parseconfigtuple",permalink:"/docs/api/parseconfigtuple",draft:!1,tags:[],version:"1.0.28-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/dc29efe7.1b1cc604.js b/assets/js/dc29efe7.1b1cc604.js new file mode 100644 index 0000000000..897842482e --- /dev/null +++ b/assets/js/dc29efe7.1b1cc604.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[6641],{57522:(t,e,n)=>{n.d(e,{Zo:()=>o,kt:()=>g});var a=n(29901);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(54805),r=n(30008),l=(n(29901),n(57522)),i=["components"],p={hide_table_of_contents:!0},d="Keywords",m={unversionedId:"api/keywords",id:"version-1.0.27-alpha/api/keywords",title:"Keywords",description:"jsObjectsScope",source:"@site/versioned_docs/version-1.0.27-alpha/api/keywords.md",sourceDirName:"api",slug:"/api/keywords",permalink:"/docs/1.0.27-alpha/api/keywords",draft:!1,tags:[],version:"1.0.27-alpha",frontMatter:{hide_table_of_contents:!0},sidebar:"sidebar",previous:{title:"Scopes",permalink:"/docs/1.0.27-alpha/scopes"},next:{title:"Operators",permalink:"/docs/1.0.27-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/dda49074.b76fab21.js b/assets/js/dda49074.47d2ae92.js similarity index 99% rename from assets/js/dda49074.b76fab21.js rename to assets/js/dda49074.47d2ae92.js index b7c58ff8ff..2abdb69ec1 100644 --- a/assets/js/dda49074.b76fab21.js +++ b/assets/js/dda49074.47d2ae92.js @@ -1 +1 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[3678,3237],{76570:(e,t,n)=>{n.d(t,{g:()=>h});var r=n(56632),a=n(82786),i=n(53800),o=n(49361),l=n(29901),c=n(43346);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(43597),h=n(59359),g=n(2372),y=n(29901),b=n(63221),v=n(53800),E=n(85569),k=n(54805),x=n(55850),w=n(68584),Z=n(70856),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(14043),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(96172),$=n(36832),A=n(50931),F=n(73760),W=n(35601),U=n(76570),q=n(17188),R=n(39069),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(47699),J=n(54852),G=n(17739),K=n(57487),B=n(84123),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.r(t),n.d(t,{default:()=>i});var r=n(29901),a=n(99269);const i=function(){return r.createElement(a.default,null)}}}]); \ No newline at end of file +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[3678,3237],{76570:(e,t,n)=>{n.d(t,{g:()=>h});var r=n(56632),a=n(82786),i=n(53800),o=n(49361),l=n(29901),c=n(43346);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(43597),h=n(59359),g=n(2372),y=n(29901),b=n(63221),v=n(53800),E=n(85569),k=n(54805),x=n(55850),w=n(68584),Z=n(70856),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(14043),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(96172),$=n(36832),A=n(50931),F=n(73760),W=n(35601),U=n(76570),q=n(17188),R=n(39069),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(47699),J=n(54852),G=n(17739),K=n(57487),B=n(84123),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.r(t),n.d(t,{default:()=>i});var r=n(29901),a=n(99269);const i=function(){return r.createElement(a.default,null)}}}]); \ No newline at end of file diff --git a/assets/js/e1c5356f.dd9a3e1b.js b/assets/js/e1c5356f.dd9a3e1b.js new file mode 100644 index 0000000000..8c790d0b24 --- /dev/null +++ b/assets/js/e1c5356f.dd9a3e1b.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[1921],{57522:(e,t,r)=>{r.d(t,{Zo:()=>s,kt:()=>f});var n=r(29901);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 i(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({}),c=function(e){var t=n.useContext(p),r=t;return e&&(r="function"==typeof e?e(t):i(i({},t),e)),r},s=function(e){var t=c(e.components);return n.createElement(p.Provider,{value:t},e.children)},u="mdxType",d={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,o=e.originalType,p=e.parentName,s=l(e,["components","mdxType","originalType","parentName"]),u=c(r),v=a,f=u["".concat(p,".").concat(v)]||u[v]||d[v]||o;return r?n.createElement(f,i(i({ref:t},s),{},{components:r})):n.createElement(f,i({ref:t},s))}));function f(e,t){var r=arguments,a=t&&t.mdxType;if("string"==typeof e||a){var o=r.length,i=new Array(o);i[0]=v;var l={};for(var p in t)hasOwnProperty.call(t,p)&&(l[p]=t[p]);l.originalType=e,l[u]="string"==typeof e?e:a,i[1]=l;for(var c=2;c{r.r(t),r.d(t,{assets:()=>s,contentTitle:()=>p,default:()=>f,frontMatter:()=>l,metadata:()=>c,toc:()=>u});var n=r(54805),a=r(30008),o=(r(29901),r(57522)),i=["components"],l={hide_table_of_contents:!0},p="validateDivisor",c={unversionedId:"api/validatedivisor",id:"version-1.0.27-alpha/api/validatedivisor",title:"validateDivisor",description:"operator",source:"@site/versioned_docs/version-1.0.27-alpha/api/validatedivisor.md",sourceDirName:"api",slug:"/api/validatedivisor",permalink:"/docs/1.0.27-alpha/api/validatedivisor",draft:!1,tags:[],version:"1.0.27-alpha",frontMatter:{hide_table_of_contents:!0}},s={},u=[{value:"operator",id:"operator",level:2},{value:"string",id:"string",level:2}],d={toc:u},v="wrapper";function f(e){var t=e.components,r=(0,a.Z)(e,i);return(0,o.kt)(v,(0,n.Z)({},d,r,{components:t,mdxType:"MDXLayout"}),(0,o.kt)("h1",{id:"validatedivisor"},"validateDivisor"),(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.27-alpha/api/validatedivisor"},"%"))),(0,o.kt)("h2",{id:"string"},"string"),(0,o.kt)("ul",null,(0,o.kt)("li",{parentName:"ul"},'"N%D", where "N" is a number and "D" is a non-zero integer')))}f.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/fca6815f.8eb5e318.js b/assets/js/e48be19d.7cf64a56.js similarity index 85% rename from assets/js/fca6815f.8eb5e318.js rename to assets/js/e48be19d.7cf64a56.js index f2fea35e8e..1e216c00ab 100644 --- a/assets/js/fca6815f.8eb5e318.js +++ b/assets/js/e48be19d.7cf64a56.js @@ -1 +1 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[4578],{57522:(e,n,r)=>{r.d(n,{Zo:()=>u,kt:()=>d});var t=r(29901);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},u=function(e){var n=s(e.components);return t.createElement(c.Provider,{value:n},e.children)},l="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,u=p(e,["components","mdxType","originalType","parentName"]),l=s(r),m=o,d=l["".concat(c,".").concat(m)]||l[m]||f[m]||a;return r?t.createElement(d,i(i({ref:n},u),{},{components:r})):t.createElement(d,i({ref:n},u))}));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[l]="string"==typeof e?e:o,i[1]=p;for(var s=2;s{r.r(n),r.d(n,{assets:()=>u,contentTitle:()=>c,default:()=>d,frontMatter:()=>p,metadata:()=>s,toc:()=>l});var t=r(54805),o=r(30008),a=(r(29901),r(57522)),i=["components"],p={hide_table_of_contents:!0},c="arkScope",s={unversionedId:"api/arkscope",id:"version-1.0.27-alpha/api/arkscope",title:"arkScope",description:"text",source:"@site/versioned_docs/version-1.0.27-alpha/api/arkscope.md",sourceDirName:"api",slug:"/api/arkscope",permalink:"/docs/api/arkscope",draft:!1,tags:[],version:"1.0.27-alpha",frontMatter:{hide_table_of_contents:!0}},u={},l=[{value:"text",id:"text",level:2}],f={toc:l},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([[5843],{57522:(e,n,r)=>{r.d(n,{Zo:()=>u,kt:()=>d});var t=r(29901);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},u=function(e){var n=s(e.components);return t.createElement(c.Provider,{value:n},e.children)},l="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,u=p(e,["components","mdxType","originalType","parentName"]),l=s(r),m=o,d=l["".concat(c,".").concat(m)]||l[m]||f[m]||a;return r?t.createElement(d,i(i({ref:n},u),{},{components:r})):t.createElement(d,i({ref:n},u))}));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[l]="string"==typeof e?e:o,i[1]=p;for(var s=2;s{r.r(n),r.d(n,{assets:()=>u,contentTitle:()=>c,default:()=>d,frontMatter:()=>p,metadata:()=>s,toc:()=>l});var t=r(54805),o=r(30008),a=(r(29901),r(57522)),i=["components"],p={hide_table_of_contents:!0},c="arkScope",s={unversionedId:"api/arkscope",id:"version-1.0.28-alpha/api/arkscope",title:"arkScope",description:"text",source:"@site/versioned_docs/version-1.0.28-alpha/api/arkscope.md",sourceDirName:"api",slug:"/api/arkscope",permalink:"/docs/api/arkscope",draft:!1,tags:[],version:"1.0.28-alpha",frontMatter:{hide_table_of_contents:!0}},u={},l=[{value:"text",id:"text",level:2}],f={toc:l},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) => Out\n parsedInteger: (In: string) => Out\n parsedDate: (In: string) => Out\n semver: string\n json: (In: string) => Out\n integer: number\n },\n {},\n false\n ]\n>\n')))}d.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/e593da58.353c470e.js b/assets/js/e593da58.353c470e.js new file mode 100644 index 0000000000..83adf9caa4 --- /dev/null +++ b/assets/js/e593da58.353c470e.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[1874],{57522:(e,t,r)=>{r.d(t,{Zo:()=>u,kt:()=>v});var n=r(29901);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(54805),o=r(30008),a=(r(29901),r(57522)),l=["components"],i={hide_table_of_contents:!0},p="ResolvedNode",c={unversionedId:"api/resolvednode",id:"version-1.0.27-alpha/api/resolvednode",title:"ResolvedNode",description:"operator",source:"@site/versioned_docs/version-1.0.27-alpha/api/resolvednode.md",sourceDirName:"api",slug:"/api/resolvednode",permalink:"/docs/1.0.27-alpha/api/resolvednode",draft:!1,tags:[],version:"1.0.27-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.27-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/c96bd749.95c0eb5e.js b/assets/js/e87af240.1d0ee935.js similarity index 92% rename from assets/js/c96bd749.95c0eb5e.js rename to assets/js/e87af240.1d0ee935.js index 46313f0b6b..463dda0da9 100644 --- a/assets/js/c96bd749.95c0eb5e.js +++ b/assets/js/e87af240.1d0ee935.js @@ -1 +1 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[5024],{57522:(e,t,r)=>{r.d(t,{Zo:()=>u,kt:()=>y});var n=r(29901);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 i(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 i=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)},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,o=e.mdxType,i=e.originalType,p=e.parentName,u=a(e,["components","mdxType","originalType","parentName"]),s=c(r),m=o,y=s["".concat(p,".").concat(m)]||s[m]||f[m]||i;return r?n.createElement(y,l(l({ref:t},u),{},{components:r})):n.createElement(y,l({ref:t},u))}));function y(e,t){var r=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var i=r.length,l=new Array(i);l[0]=m;var a={};for(var p in t)hasOwnProperty.call(t,p)&&(a[p]=t[p]);a.originalType=e,a[s]="string"==typeof e?e:o,l[1]=a;for(var c=2;c{r.r(t),r.d(t,{assets:()=>u,contentTitle:()=>p,default:()=>y,frontMatter:()=>a,metadata:()=>c,toc:()=>s});var n=r(54805),o=r(30008),i=(r(29901),r(57522)),l=["components"],a={hide_table_of_contents:!0},p="intersection",c={unversionedId:"api/intersection",id:"version-1.0.27-alpha/api/intersection",title:"intersection",description:"operator",source:"@site/versioned_docs/version-1.0.27-alpha/api/intersection.md",sourceDirName:"api",slug:"/api/intersection",permalink:"/docs/api/intersection",draft:!1,tags:[],version:"1.0.27-alpha",frontMatter:{hide_table_of_contents:!0}},u={},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 y(e){var t=e.components,r=(0,o.Z)(e,l);return(0,i.kt)(m,(0,n.Z)({},f,r,{components:t,mdxType:"MDXLayout"}),(0,i.kt)("h1",{id:"intersection"},"intersection"),(0,i.kt)("h2",{id:"operator"},"operator"),(0,i.kt)("ul",null,(0,i.kt)("li",{parentName:"ul"},(0,i.kt)("a",{parentName:"li",href:"/docs/api/intersection"},"&"))),(0,i.kt)("h2",{id:"string"},"string"),(0,i.kt)("ul",null,(0,i.kt)("li",{parentName:"ul"},'"L&R" ',(0,i.kt)("br",null)),(0,i.kt)("li",{parentName:"ul"},'const intersection = type("/@arktype',".",'io$/ & email")',(0,i.kt)("br",null))),(0,i.kt)("h2",{id:"tuple"},"tuple"),(0,i.kt)("ul",null,(0,i.kt)("li",{parentName:"ul"},'[L, "&", R]'," ",(0,i.kt)("br",null)),(0,i.kt)("li",{parentName:"ul"},"const tupleIntersection = type(",'["/@arktype',".",'io$/", "&", "email"]',")",(0,i.kt)("br",null))),(0,i.kt)("h2",{id:"helper"},"helper"),(0,i.kt)("ul",null,(0,i.kt)("li",{parentName:"ul"},"intersection(L,R) ",(0,i.kt)("br",null)),(0,i.kt)("li",{parentName:"ul"},'const helperIntersection = intersection("/@arktype',".",'io$/","email")',(0,i.kt)("br",null))))}y.isMDXComponent=!0}}]); \ No newline at end of file +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[1787],{57522:(e,t,r)=>{r.d(t,{Zo:()=>u,kt:()=>y});var n=r(29901);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 i(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 i=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)},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,o=e.mdxType,i=e.originalType,p=e.parentName,u=a(e,["components","mdxType","originalType","parentName"]),s=c(r),m=o,y=s["".concat(p,".").concat(m)]||s[m]||f[m]||i;return r?n.createElement(y,l(l({ref:t},u),{},{components:r})):n.createElement(y,l({ref:t},u))}));function y(e,t){var r=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var i=r.length,l=new Array(i);l[0]=m;var a={};for(var p in t)hasOwnProperty.call(t,p)&&(a[p]=t[p]);a.originalType=e,a[s]="string"==typeof e?e:o,l[1]=a;for(var c=2;c{r.r(t),r.d(t,{assets:()=>u,contentTitle:()=>p,default:()=>y,frontMatter:()=>a,metadata:()=>c,toc:()=>s});var n=r(54805),o=r(30008),i=(r(29901),r(57522)),l=["components"],a={hide_table_of_contents:!0},p="intersection",c={unversionedId:"api/intersection",id:"version-1.0.28-alpha/api/intersection",title:"intersection",description:"operator",source:"@site/versioned_docs/version-1.0.28-alpha/api/intersection.md",sourceDirName:"api",slug:"/api/intersection",permalink:"/docs/api/intersection",draft:!1,tags:[],version:"1.0.28-alpha",frontMatter:{hide_table_of_contents:!0}},u={},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 y(e){var t=e.components,r=(0,o.Z)(e,l);return(0,i.kt)(m,(0,n.Z)({},f,r,{components:t,mdxType:"MDXLayout"}),(0,i.kt)("h1",{id:"intersection"},"intersection"),(0,i.kt)("h2",{id:"operator"},"operator"),(0,i.kt)("ul",null,(0,i.kt)("li",{parentName:"ul"},(0,i.kt)("a",{parentName:"li",href:"/docs/api/intersection"},"&"))),(0,i.kt)("h2",{id:"string"},"string"),(0,i.kt)("ul",null,(0,i.kt)("li",{parentName:"ul"},'"L&R" ',(0,i.kt)("br",null)),(0,i.kt)("li",{parentName:"ul"},'const intersection = type("/@arktype',".",'io$/ & email")',(0,i.kt)("br",null))),(0,i.kt)("h2",{id:"tuple"},"tuple"),(0,i.kt)("ul",null,(0,i.kt)("li",{parentName:"ul"},'[L, "&", R]'," ",(0,i.kt)("br",null)),(0,i.kt)("li",{parentName:"ul"},"const tupleIntersection = type(",'["/@arktype',".",'io$/", "&", "email"]',")",(0,i.kt)("br",null))),(0,i.kt)("h2",{id:"helper"},"helper"),(0,i.kt)("ul",null,(0,i.kt)("li",{parentName:"ul"},"intersection(L,R) ",(0,i.kt)("br",null)),(0,i.kt)("li",{parentName:"ul"},'const helperIntersection = intersection("/@arktype',".",'io$/","email")',(0,i.kt)("br",null))))}y.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/ea0f6b3f.b8457f89.js b/assets/js/ea0f6b3f.b8457f89.js new file mode 100644 index 0000000000..34fc07dfad --- /dev/null +++ b/assets/js/ea0f6b3f.b8457f89.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[5783],{57522:(t,e,n)=>{n.d(e,{Zo:()=>m,kt:()=>k});var a=n(29901);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(54805),r=n(30008),l=(n(29901),n(57522)),i=["components"],p={hide_table_of_contents:!0},o="validationScope",d={unversionedId:"api/validationscope",id:"version-1.0.27-alpha/api/validationscope",title:"validationScope",description:"keywords",source:"@site/versioned_docs/version-1.0.27-alpha/api/validationscope.md",sourceDirName:"api",slug:"/api/validationscope",permalink:"/docs/1.0.27-alpha/api/validationscope",draft:!1,tags:[],version:"1.0.27-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/ea18a43c.01e05ac2.js b/assets/js/ea18a43c.01e05ac2.js new file mode 100644 index 0000000000..f4460c40b7 --- /dev/null +++ b/assets/js/ea18a43c.01e05ac2.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[6184],{57522:(e,r,t)=>{t.d(r,{Zo:()=>c,kt:()=>m});var n=t(29901);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(54805),a=t(30008),l=(t(29901),t(57522)),o=["components"],p={hide_table_of_contents:!0},i="arrayOf",u={unversionedId:"api/arrayof",id:"version-1.0.27-alpha/api/arrayof",title:"arrayOf",description:"operator",source:"@site/versioned_docs/version-1.0.27-alpha/api/arrayof.md",sourceDirName:"api",slug:"/api/arrayof",permalink:"/docs/1.0.27-alpha/api/arrayof",draft:!1,tags:[],version:"1.0.27-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.27-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/11b4899c.cf37049e.js b/assets/js/ed756b6e.fb2e34fb.js similarity index 91% rename from assets/js/11b4899c.cf37049e.js rename to assets/js/ed756b6e.fb2e34fb.js index 4aa77bde65..cd65ce1d53 100644 --- a/assets/js/11b4899c.cf37049e.js +++ b/assets/js/ed756b6e.fb2e34fb.js @@ -1 +1 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[3246],{57522:(e,t,n)=>{n.d(t,{Zo:()=>u,kt:()=>d});var r=n(29901);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(54805),a=n(30008),o=(n(29901),n(57522)),l=["components"],i={hide_table_of_contents:!0},c="instanceOf",p={unversionedId:"api/instanceof",id:"version-1.0.27-alpha/api/instanceof",title:"instanceOf",description:"operator",source:"@site/versioned_docs/version-1.0.27-alpha/api/instanceof.md",sourceDirName:"api",slug:"/api/instanceof",permalink:"/docs/api/instanceof",draft:!1,tags:[],version:"1.0.27-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([[6893],{57522:(e,t,n)=>{n.d(t,{Zo:()=>u,kt:()=>d});var r=n(29901);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(54805),a=n(30008),o=(n(29901),n(57522)),l=["components"],i={hide_table_of_contents:!0},c="instanceOf",p={unversionedId:"api/instanceof",id:"version-1.0.28-alpha/api/instanceof",title:"instanceOf",description:"operator",source:"@site/versioned_docs/version-1.0.28-alpha/api/instanceof.md",sourceDirName:"api",slug:"/api/instanceof",permalink:"/docs/api/instanceof",draft:!1,tags:[],version:"1.0.28-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/ea18a43c.09da4da1.js b/assets/js/f4577cf2.392cabc8.js similarity index 91% rename from assets/js/ea18a43c.09da4da1.js rename to assets/js/f4577cf2.392cabc8.js index d223beb50e..5871cb96a7 100644 --- a/assets/js/ea18a43c.09da4da1.js +++ b/assets/js/f4577cf2.392cabc8.js @@ -1 +1 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[6184],{57522:(e,r,t)=>{t.d(r,{Zo:()=>c,kt:()=>m});var n=t(29901);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(54805),a=t(30008),l=(t(29901),t(57522)),o=["components"],i={hide_table_of_contents:!0},p="arrayOf",u={unversionedId:"api/arrayof",id:"version-1.0.27-alpha/api/arrayof",title:"arrayOf",description:"operator",source:"@site/versioned_docs/version-1.0.27-alpha/api/arrayof.md",sourceDirName:"api",slug:"/api/arrayof",permalink:"/docs/api/arrayof",draft:!1,tags:[],version:"1.0.27-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([[6849],{57522:(e,r,t)=>{t.d(r,{Zo:()=>c,kt:()=>m});var n=t(29901);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(54805),a=t(30008),l=(t(29901),t(57522)),o=["components"],i={hide_table_of_contents:!0},p="arrayOf",u={unversionedId:"api/arrayof",id:"version-1.0.28-alpha/api/arrayof",title:"arrayOf",description:"operator",source:"@site/versioned_docs/version-1.0.28-alpha/api/arrayof.md",sourceDirName:"api",slug:"/api/arrayof",permalink:"/docs/api/arrayof",draft:!1,tags:[],version:"1.0.28-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/f5450a53.b0663828.js b/assets/js/f5450a53.b0663828.js new file mode 100644 index 0000000000..b12058ee6e --- /dev/null +++ b/assets/js/f5450a53.b0663828.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[4021],{57522:(e,t,r)=>{r.d(t,{Zo:()=>c,kt:()=>d});var n=r(29901);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(54805),o=r(30008),a=(r(29901),r(57522)),p=["components"],l={hide_table_of_contents:!0},i="morph",u={unversionedId:"api/morph",id:"version-1.0.27-alpha/api/morph",title:"morph",description:"operator",source:"@site/versioned_docs/version-1.0.27-alpha/api/morph.md",sourceDirName:"api",slug:"/api/morph",permalink:"/docs/1.0.27-alpha/api/morph",draft:!1,tags:[],version:"1.0.27-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.27-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/ccfb1236.8b8d6510.js b/assets/js/f77690a0.bcdcdf42.js similarity index 95% rename from assets/js/ccfb1236.8b8d6510.js rename to assets/js/f77690a0.bcdcdf42.js index 9738b62e93..821b6fb1f0 100644 --- a/assets/js/ccfb1236.8b8d6510.js +++ b/assets/js/f77690a0.bcdcdf42.js @@ -1 +1 @@ -"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[1079],{57522:(e,n,t)=>{t.d(n,{Zo:()=>c,kt:()=>f});var r=t(29901);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(56632),a=t(82786),o=t(53800),i=t(49361),s=t(29901),p=t(43346);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(54805),a=t(30008),o=(t(29901),t(57522)),i=t(78488),s=["components"],p={id:"intro",hide_table_of_contents:!0,title:"Intro"},l="Getting Started",c={unversionedId:"intro",id:"version-1.0.27-alpha/intro",title:"Intro",description:'replace(./dev/arktype.io/static,) |> replace({ type },{"{"} type {"}"}) --\x3e',source:"@site/versioned_docs/version-1.0.27-alpha/index.mdx",sourceDirName:".",slug:"/",permalink:"/docs/",draft:!1,tags:[],version:"1.0.27-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([[9971],{57522:(e,n,t)=>{t.d(n,{Zo:()=>c,kt:()=>f});var r=t(29901);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(56632),a=t(82786),o=t(53800),i=t(49361),s=t(29901),p=t(43346);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(54805),a=t(30008),o=(t(29901),t(57522)),i=t(14818),s=["components"],p={id:"intro",hide_table_of_contents:!0,title:"Intro"},l="Getting Started",c={unversionedId:"intro",id:"version-1.0.28-alpha/intro",title:"Intro",description:'replace(./dev/arktype.io/static,) |> replace({ type },{"{"} type {"}"}) --\x3e',source:"@site/versioned_docs/version-1.0.28-alpha/index.mdx",sourceDirName:".",slug:"/",permalink:"/docs/",draft:!1,tags:[],version:"1.0.28-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/fa5b3c64.24f57e35.js b/assets/js/fa5b3c64.24f57e35.js new file mode 100644 index 0000000000..ba748745ca --- /dev/null +++ b/assets/js/fa5b3c64.24f57e35.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[2111],{57522:(t,e,n)=>{n.d(e,{Zo:()=>d,kt:()=>k});var r=n(29901);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(54805),a=n(30008),l=(n(29901),n(57522)),o=["components"],p={hide_table_of_contents:!0},i="jsObjectsScope",c={unversionedId:"api/jsobjectsscope",id:"version-1.0.27-alpha/api/jsobjectsscope",title:"jsObjectsScope",description:"text",source:"@site/versioned_docs/version-1.0.27-alpha/api/jsobjectsscope.md",sourceDirName:"api",slug:"/api/jsobjectsscope",permalink:"/docs/1.0.27-alpha/api/jsobjectsscope",draft:!1,tags:[],version:"1.0.27-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/fca6815f.f0f448c1.js b/assets/js/fca6815f.f0f448c1.js new file mode 100644 index 0000000000..ee02531acf --- /dev/null +++ b/assets/js/fca6815f.f0f448c1.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[4578],{57522:(e,n,r)=>{r.d(n,{Zo:()=>l,kt:()=>d});var t=r(29901);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(54805),o=r(30008),a=(r(29901),r(57522)),i=["components"],p={hide_table_of_contents:!0},c="arkScope",s={unversionedId:"api/arkscope",id:"version-1.0.27-alpha/api/arkscope",title:"arkScope",description:"text",source:"@site/versioned_docs/version-1.0.27-alpha/api/arkscope.md",sourceDirName:"api",slug:"/api/arkscope",permalink:"/docs/1.0.27-alpha/api/arkscope",draft:!1,tags:[],version:"1.0.27-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/main.49c9402e.js b/assets/js/main.49c9402e.js deleted file mode 100644 index 5692102378..0000000000 --- a/assets/js/main.49c9402e.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see main.49c9402e.js.LICENSE.txt */ -(self.webpackChunkarktype_io=self.webpackChunkarktype_io||[]).push([[179],{40060:(e,t,n)=>{var a={"./":91548};function r(e){var t=o(e);return n(t)}function o(e){if(!n.o(a,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return a[e]}r.keys=function(){return Object.keys(a)},r.resolve=o,e.exports=r,r.id=40060},78533:(e,t,n)=>{"use strict";n.d(t,{Z:()=>f});var a=n(29901),r=n(54805),o=n(97910),i=n.n(o),s=n(16887);const l={"00cf5318":[function(){return Promise.all([n.e(6273),n.e(2216)]).then(n.bind(n,74318))},"@site/docs/scopes.mdx",74318],"01a43ec3":[function(){return n.e(4888).then(n.bind(n,2491))},"@site/versioned_docs/version-1.0.25-alpha/api/problems.md",2491],"02c148a9":[function(){return n.e(1531).then(n.bind(n,42058))},"@site/versioned_docs/version-1.0.20-alpha/api/ark.md",42058],"0493d4c1":[function(){return n.e(4665).then(n.bind(n,16521))},"@site/docs/api/arrayof.md",16521],"04ca6b23":[function(){return n.e(2154).then(n.bind(n,23053))},"@site/versioned_docs/version-1.0.20-alpha/api/keyof.md",23053],"04e96f40":[function(){return n.e(1066).then(n.bind(n,55733))},"@site/versioned_docs/version-1.0.26-alpha/api/validationscope.md",55733],"05dfa499":[function(){return n.e(6418).then(n.bind(n,87854))},"@site/versioned_docs/version-1.0.21-alpha/api/instanceof.md",87854],"094d205f":[function(){return n.e(9751).then(n.bind(n,4466))},"@site/versioned_docs/version-1.0.22-alpha/api/instanceof.md",4466],"0976b861":[function(){return n.e(4992).then(n.t.bind(n,44629,19))},"~docs/default/version-1-0-23-alpha-metadata-prop-312.json",44629],"0a1349f1":[function(){return n.e(3345).then(n.bind(n,25805))},"@site/versioned_docs/version-1.0.20-alpha/api/arkscope.md",25805],"0a39420a":[function(){return n.e(4990).then(n.bind(n,34587))},"@site/versioned_docs/version-1.0.21-alpha/api/arkscope.md",34587],"0a61f398":[function(){return n.e(4643).then(n.bind(n,64424))},"@site/versioned_docs/version-1.0.21-alpha/api/problem.md",64424],"0a7973dc":[function(){return n.e(267).then(n.bind(n,43543))},"@site/versioned_docs/version-1.0.24-alpha/api.mdx",43543],"0bd12973":[function(){return Promise.all([n.e(6273),n.e(8709)]).then(n.bind(n,35258))},"@site/versioned_docs/version-1.0.20-alpha/index.mdx",35258],"0be3f0b3":[function(){return n.e(2651).then(n.bind(n,27111))},"@site/versioned_docs/version-1.0.21-alpha/api/tskeywordsscope.md",27111],"0d0d98a4":[function(){return n.e(6101).then(n.bind(n,12913))},"@site/versioned_docs/version-1.0.23-alpha/api/tskeywordsscope.md",12913],"0dbc098c":[function(){return n.e(9780).then(n.bind(n,80970))},"@site/versioned_docs/version-1.0.22-alpha/api/type.md",80970],"0efbc173":[function(){return n.e(4174).then(n.bind(n,80318))},"@site/versioned_docs/version-1.0.19-alpha/api/infer.md",80318],"0f59f13c":[function(){return n.e(3718).then(n.bind(n,25694))},"@site/versioned_docs/version-1.0.20-alpha/api/arrayof.md",25694],"0f77207c":[function(){return n.e(8253).then(n.bind(n,19991))},"@site/versioned_docs/version-1.0.21-alpha/api/valueof.md",19991],"10ae884d":[function(){return n.e(6956).then(n.bind(n,59134))},"@site/versioned_docs/version-1.0.19-alpha/api/arrayof.md",59134],"10bb0f04":[function(){return n.e(5124).then(n.bind(n,71515))},"@site/versioned_docs/version-1.0.22-alpha/api/problems.md",71515],"114efe75":[function(){return n.e(3559).then(n.bind(n,74775))},"@site/versioned_docs/version-1.0.21-alpha/api/morph.md",74775],"119c85c3":[function(){return n.e(6075).then(n.bind(n,31935))},"@site/versioned_docs/version-1.0.20-alpha/api/instanceof.md",31935],"11b4899c":[function(){return n.e(3246).then(n.bind(n,26993))},"@site/versioned_docs/version-1.0.27-alpha/api/instanceof.md",26993],"12140a58":[function(){return n.e(5787).then(n.bind(n,1173))},"@site/versioned_docs/version-1.0.24-alpha/api/instanceof.md",1173],"12bb9ce5":[function(){return n.e(3049).then(n.bind(n,65209))},"@site/versioned_docs/version-1.0.23-alpha/api/scope.md",65209],"139f3ccb":[function(){return n.e(5095).then(n.bind(n,25996))},"@site/versioned_docs/version-1.0.23-alpha/api/validatebound.md",25996],"13e267d5":[function(){return n.e(8652).then(n.bind(n,31328))},"@site/versioned_docs/version-1.0.27-alpha/api/narrow.md",31328],"14af8986":[function(){return n.e(9370).then(n.bind(n,29343))},"@site/versioned_docs/version-1.0.21-alpha/api/union.md",29343],"15c910ba":[function(){return n.e(2382).then(n.bind(n,87289))},"@site/versioned_docs/version-1.0.24-alpha/api/keywords.md",87289],"1602d5a7":[function(){return n.e(7162).then(n.bind(n,59271))},"@site/versioned_docs/version-1.0.25-alpha/api/narrow.md",59271],17896441:[function(){return Promise.all([n.e(532),n.e(856),n.e(7918)]).then(n.bind(n,67747))},"@theme/DocItem",67747],"17a90253":[function(){return n.e(4514).then(n.bind(n,84553))},"@site/versioned_docs/version-1.0.26-alpha/api/union.md",84553],"17c9add8":[function(){return n.e(2134).then(n.bind(n,35457))},"@site/versioned_docs/version-1.0.23-alpha/api/narrow.md",35457],"1915fe21":[function(){return n.e(7019).then(n.bind(n,99673))},"@site/docs/api/inferdefinition.md",99673],"193ee87b":[function(){return n.e(7198).then(n.bind(n,67378))},"@site/versioned_docs/version-1.0.22-alpha/api/union.md",67378],"1be78505":[function(){return Promise.all([n.e(532),n.e(9514)]).then(n.bind(n,79010))},"@theme/DocPage",79010],"1cd1dcad":[function(){return n.e(6694).then(n.bind(n,10288))},"@site/versioned_docs/version-1.0.23-alpha/api/jsobjectsscope.md",10288],"1df93b7f":[function(){return Promise.all([n.e(532),n.e(6273),n.e(856),n.e(8242),n.e(3237)]).then(n.bind(n,99269))},"@site/src/pages/index.tsx",99269],"1ebef08a":[function(){return n.e(2048).then(n.bind(n,88548))},"@site/versioned_docs/version-1.0.20-alpha/api/morph.md",88548],"1ed0e172":[function(){return n.e(9461).then(n.t.bind(n,24188,19))},"~docs/default/version-1-0-20-alpha-metadata-prop-24e.json",24188],"201eb429":[function(){return n.e(2659).then(n.bind(n,41730))},"@site/versioned_docs/version-1.0.23-alpha/api/valueof.md",41730],"20bbe3a4":[function(){return Promise.all([n.e(6273),n.e(215)]).then(n.bind(n,36353))},"@site/versioned_docs/version-1.0.22-alpha/index.mdx",36353],"210bc92c":[function(){return n.e(9910).then(n.bind(n,59991))},"@site/versioned_docs/version-1.0.22-alpha/api/parseconfigtuple.md",59991],"218a10b7":[function(){return n.e(3).then(n.bind(n,34137))},"@site/versioned_docs/version-1.0.27-alpha/api/ark.md",34137],"2461ffa2":[function(){return n.e(7600).then(n.bind(n,77402))},"@site/docs/api.mdx",77402],"25c35c86":[function(){return n.e(2155).then(n.t.bind(n,15745,19))},"/home/runner/work/arktype/arktype/dev/arktype.io/.docusaurus/docusaurus-plugin-content-pages/default/plugin-route-context-module-100.json",15745],"261d4567":[function(){return n.e(504).then(n.bind(n,41155))},"@site/versioned_docs/version-1.0.26-alpha/api/resolvednode.md",41155],"26c0ba22":[function(){return n.e(6580).then(n.bind(n,33678))},"@site/versioned_docs/version-1.0.22-alpha/api/jsobjectsscope.md",33678],"288a554d":[function(){return n.e(4644).then(n.bind(n,67107))},"@site/versioned_docs/version-1.0.21-alpha/api/scope.md",67107],"28b74367":[function(){return n.e(6166).then(n.bind(n,29169))},"@site/versioned_docs/version-1.0.23-alpha/api/parseconfigtuple.md",29169],"29e92f5e":[function(){return n.e(8202).then(n.bind(n,26559))},"@site/docs/api/instanceof.md",26559],"2bea6d8f":[function(){return n.e(6284).then(n.bind(n,15198))},"@site/versioned_docs/version-1.0.24-alpha/api/valueof.md",15198],"2d805ff0":[function(){return n.e(2310).then(n.bind(n,73776))},"@site/versioned_docs/version-1.0.20-alpha/api/problem.md",73776],"336ac60a":[function(){return n.e(9549).then(n.bind(n,5216))},"@site/versioned_docs/version-1.0.20-alpha/api/resolvednode.md",5216],"337a97bf":[function(){return n.e(2206).then(n.bind(n,58313))},"@site/versioned_docs/version-1.0.26-alpha/api/validatedivisor.md",58313],"339d3c17":[function(){return n.e(4597).then(n.bind(n,56677))},"@site/versioned_docs/version-1.0.21-alpha/api/jsobjectsscope.md",56677],"33fa3649":[function(){return n.e(4378).then(n.bind(n,70800))},"@site/versioned_docs/version-1.0.24-alpha/api/type.md",70800],"3437bd2a":[function(){return n.e(8810).then(n.bind(n,39847))},"@site/versioned_docs/version-1.0.22-alpha/api/keywords.md",39847],"35c73967":[function(){return n.e(6927).then(n.t.bind(n,80971,19))},"~docs/default/version-1-0-26-alpha-metadata-prop-2d0.json",80971],"36a3925a":[function(){return n.e(1405).then(n.bind(n,23230))},"@site/versioned_docs/version-1.0.26-alpha/api/parseconfigtuple.md",23230],"37b029e4":[function(){return Promise.all([n.e(6273),n.e(1113)]).then(n.bind(n,986))},"@site/versioned_docs/version-1.0.23-alpha/index.mdx",986],"39fabe63":[function(){return n.e(309).then(n.bind(n,60187))},"@site/versioned_docs/version-1.0.26-alpha/api/validatedefinition.md",60187],"3a4716de":[function(){return n.e(4910).then(n.bind(n,9042))},"@site/versioned_docs/version-1.0.21-alpha/api/validationscope.md",9042],"3a7be745":[function(){return n.e(7919).then(n.bind(n,9096))},"@site/versioned_docs/version-1.0.27-alpha/api/infer.md",9096],"3bd62677":[function(){return n.e(8461).then(n.bind(n,83313))},"@site/versioned_docs/version-1.0.25-alpha/api/jsobjectsscope.md",83313],"3c1eb414":[function(){return n.e(5688).then(n.bind(n,97780))},"@site/versioned_docs/version-1.0.24-alpha/api/precompileddefaults.md",97780],"3c3913a6":[function(){return n.e(9293).then(n.bind(n,33690))},"@site/versioned_docs/version-1.0.22-alpha/api/problem.md",33690],"3c576763":[function(){return n.e(1749).then(n.bind(n,89604))},"@site/docs/api/parseconfigtuple.md",89604],"3ca54c20":[function(){return n.e(2065).then(n.bind(n,68844))},"@site/versioned_docs/version-1.0.19-alpha/api/scope.md",68844],"3cd667ef":[function(){return Promise.all([n.e(6273),n.e(2719)]).then(n.bind(n,88699))},"@site/versioned_docs/version-1.0.23-alpha/scopes.mdx",88699],"3da5c09b":[function(){return n.e(6751).then(n.bind(n,4740))},"@site/versioned_docs/version-1.0.24-alpha/api/inferdefinition.md",4740],"3e74f845":[function(){return n.e(1567).then(n.bind(n,70578))},"@site/versioned_docs/version-1.0.23-alpha/api.mdx",70578],"3ea57330":[function(){return n.e(6963).then(n.bind(n,90383))},"@site/versioned_docs/version-1.0.24-alpha/api/infer.md",90383],"3f475d74":[function(){return n.e(663).then(n.bind(n,73272))},"@site/versioned_docs/version-1.0.27-alpha/api/problems.md",73272],"402d9ac3":[function(){return n.e(1464).then(n.bind(n,21675))},"@site/versioned_docs/version-1.0.23-alpha/api/operators.md",21675],"412337c1":[function(){return n.e(2542).then(n.bind(n,92246))},"@site/versioned_docs/version-1.0.19-alpha/api/operators.md",92246],"412eae58":[function(){return n.e(7625).then(n.bind(n,97425))},"@site/versioned_docs/version-1.0.19-alpha/api/arkscope.md",97425],"422620c1":[function(){return n.e(5180).then(n.bind(n,85061))},"@site/versioned_docs/version-1.0.24-alpha/api/validatedivisor.md",85061],"431f3670":[function(){return n.e(6954).then(n.bind(n,10590))},"@site/versioned_docs/version-1.0.19-alpha/api/type.md",10590],"446de14b":[function(){return n.e(570).then(n.bind(n,83584))},"@site/versioned_docs/version-1.0.25-alpha/api/parseconfigtuple.md",83584],"44abb010":[function(){return n.e(2087).then(n.bind(n,61264))},"@site/docs/api/narrow.md",61264],"44ad23ca":[function(){return n.e(2078).then(n.bind(n,78684))},"@site/versioned_docs/version-1.0.26-alpha/api/tskeywordsscope.md",78684],"456f8f16":[function(){return n.e(3627).then(n.bind(n,83710))},"@site/versioned_docs/version-1.0.25-alpha/api/precompileddefaults.md",83710],"47b88856":[function(){return n.e(5557).then(n.bind(n,89228))},"@site/versioned_docs/version-1.0.25-alpha/api/instanceof.md",89228],"49fb3aca":[function(){return n.e(2889).then(n.bind(n,33293))},"@site/versioned_docs/version-1.0.23-alpha/api/ark.md",33293],"4a6ff42c":[function(){return n.e(6084).then(n.bind(n,9835))},"@site/versioned_docs/version-1.0.22-alpha/api/arrayof.md",9835],"4bc2b917":[function(){return n.e(344).then(n.bind(n,73420))},"@site/versioned_docs/version-1.0.25-alpha/api/resolvednode.md",73420],"4c239821":[function(){return n.e(6971).then(n.bind(n,61078))},"@site/versioned_docs/version-1.0.22-alpha/api/tskeywordsscope.md",61078],"4c51d941":[function(){return n.e(397).then(n.bind(n,2739))},"@site/versioned_docs/version-1.0.24-alpha/api/validationscope.md",2739],"4d0232ca":[function(){return n.e(1011).then(n.bind(n,73481))},"@site/versioned_docs/version-1.0.25-alpha/api/space.md",73481],"4edc808e":[function(){return Promise.all([n.e(6273),n.e(4173)]).then(n.bind(n,93555))},"@site/docs/index.mdx",93555],"4edc9ce5":[function(){return n.e(5820).then(n.bind(n,62528))},"@site/docs/api/keywords.md",62528],"4f719b32":[function(){return n.e(4603).then(n.bind(n,36338))},"@site/versioned_docs/version-1.0.22-alpha/api.mdx",36338],"4f91d1fa":[function(){return n.e(5520).then(n.t.bind(n,82727,19))},"~docs/default/version-1-0-27-alpha-metadata-prop-e9a.json",82727],"4fc4d3de":[function(){return n.e(2227).then(n.bind(n,22784))},"@site/versioned_docs/version-1.0.19-alpha/api/keywords.md",22784],"506c0445":[function(){return n.e(4557).then(n.bind(n,94567))},"@site/versioned_docs/version-1.0.23-alpha/api/morph.md",94567],"50afdaae":[function(){return n.e(1638).then(n.t.bind(n,59140,19))},"~docs/default/version-1-0-25-alpha-metadata-prop-717.json",59140],"5179419d":[function(){return n.e(9184).then(n.bind(n,61519))},"@site/docs/api/morph.md",61519],"51a477b6":[function(){return n.e(3050).then(n.bind(n,79245))},"@site/versioned_docs/version-1.0.26-alpha/api/inferdefinition.md",79245],"52f9fd70":[function(){return n.e(3431).then(n.bind(n,68196))},"@site/versioned_docs/version-1.0.24-alpha/api/problem.md",68196],"54746c5d":[function(){return n.e(7609).then(n.bind(n,56838))},"@site/versioned_docs/version-1.0.22-alpha/api/operators.md",56838],"54a2e480":[function(){return n.e(863).then(n.bind(n,32594))},"@site/versioned_docs/version-1.0.26-alpha/api/scope.md",32594],"55fbe152":[function(){return n.e(9197).then(n.bind(n,23387))},"@site/versioned_docs/version-1.0.20-alpha/api.mdx",23387],"56ebe7ce":[function(){return n.e(1052).then(n.bind(n,77046))},"@site/versioned_docs/version-1.0.26-alpha/api/morph.md",77046],"574c3876":[function(){return n.e(5324).then(n.bind(n,54157))},"@site/versioned_docs/version-1.0.24-alpha/api/tskeywordsscope.md",54157],"59058b9c":[function(){return n.e(6080).then(n.bind(n,51960))},"@site/versioned_docs/version-1.0.26-alpha/api/intersection.md",51960],"5c45db8c":[function(){return n.e(7375).then(n.bind(n,55625))},"@site/versioned_docs/version-1.0.25-alpha/api/infer.md",55625],"5e9f5e1a":[function(){return Promise.resolve().then(n.bind(n,36809))},"@generated/docusaurus.config",36809],"5f7bc296":[function(){return n.e(6840).then(n.bind(n,39136))},"@site/docs/api/type.md",39136],"60f4de08":[function(){return n.e(4336).then(n.bind(n,31430))},"@site/docs/api/validatedivisor.md",31430],"612311ec":[function(){return Promise.all([n.e(6273),n.e(7119)]).then(n.bind(n,41982))},"@site/versioned_docs/version-1.0.21-alpha/scopes.mdx",41982],62542541:[function(){return n.e(6250).then(n.bind(n,14765))},"@site/docs/api/precompileddefaults.md",14765],"629b5b90":[function(){return n.e(5637).then(n.bind(n,77099))},"@site/versioned_docs/version-1.0.24-alpha/api/scope.md",77099],"6309a6fc":[function(){return n.e(6843).then(n.bind(n,55537))},"@site/docs/api/intersection.md",55537],"632d73df":[function(){return n.e(1403).then(n.bind(n,26753))},"@site/versioned_docs/version-1.0.21-alpha/api/intersection.md",26753],"64b0bc0b":[function(){return n.e(173).then(n.bind(n,75126))},"@site/versioned_docs/version-1.0.21-alpha/api/keywords.md",75126],"6543d709":[function(){return n.e(3645).then(n.bind(n,47455))},"@site/versioned_docs/version-1.0.26-alpha/api/narrow.md",47455],"661942b6":[function(){return n.e(15).then(n.bind(n,26978))},"@site/versioned_docs/version-1.0.19-alpha/api/validatedivisor.md",26978],"664634ec":[function(){return n.e(582).then(n.bind(n,61964))},"@site/versioned_docs/version-1.0.27-alpha/api/inferdefinition.md",61964],"66ab3f82":[function(){return n.e(6583).then(n.bind(n,71334))},"@site/versioned_docs/version-1.0.24-alpha/api/ark.md",71334],"66d34ef6":[function(){return n.e(408).then(n.bind(n,89408))},"@site/docs/api/scope.md",89408],"693c4f31":[function(){return Promise.all([n.e(6273),n.e(3332)]).then(n.bind(n,64430))},"@site/versioned_docs/version-1.0.25-alpha/scopes.mdx",64430],"699e8c65":[function(){return Promise.all([n.e(6273),n.e(3311)]).then(n.bind(n,52013))},"@site/versioned_docs/version-1.0.25-alpha/index.mdx",52013],"6a98dd43":[function(){return n.e(589).then(n.bind(n,83267))},"@site/versioned_docs/version-1.0.21-alpha/api/arrayof.md",83267],"6b600ad8":[function(){return n.e(352).then(n.bind(n,15492))},"@site/versioned_docs/version-1.0.20-alpha/api/jsobjectsscope.md",15492],"6b6373f3":[function(){return n.e(4753).then(n.bind(n,73854))},"@site/versioned_docs/version-1.0.23-alpha/api/keywords.md",73854],"6bb186f5":[function(){return n.e(7399).then(n.bind(n,77109))},"@site/versioned_docs/version-1.0.19-alpha/api/valueof.md",77109],"6d2bdafa":[function(){return n.e(3597).then(n.bind(n,76961))},"@site/versioned_docs/version-1.0.25-alpha/api/arkscope.md",76961],"6fdaf75b":[function(){return n.e(8491).then(n.bind(n,52766))},"@site/versioned_docs/version-1.0.27-alpha/api/union.md",52766],"704654aa":[function(){return n.e(7757).then(n.bind(n,22234))},"@site/versioned_docs/version-1.0.25-alpha/api/operators.md",22234],70865799:[function(){return n.e(3708).then(n.bind(n,18301))},"@site/versioned_docs/version-1.0.27-alpha/api/validatedefinition.md",18301],"717abbec":[function(){return n.e(5185).then(n.bind(n,61942))},"@site/versioned_docs/version-1.0.19-alpha/api/validatebound.md",61942],"71aeac4f":[function(){return n.e(3801).then(n.bind(n,88529))},"@site/versioned_docs/version-1.0.21-alpha/api/resolvednode.md",88529],"71bbc623":[function(){return Promise.all([n.e(6273),n.e(3908)]).then(n.bind(n,52501))},"@site/versioned_docs/version-1.0.19-alpha/index.mdx",52501],"720b32b8":[function(){return n.e(4204).then(n.bind(n,84345))},"@site/versioned_docs/version-1.0.27-alpha/api/space.md",84345],"74013e48":[function(){return n.e(4278).then(n.bind(n,71431))},"@site/versioned_docs/version-1.0.25-alpha/api/inferdefinition.md",71431],"7544a8d8":[function(){return n.e(4785).then(n.bind(n,70385))},"@site/versioned_docs/version-1.0.19-alpha/api/validationscope.md",70385],"77b85fcc":[function(){return n.e(2064).then(n.bind(n,90065))},"@site/versioned_docs/version-1.0.24-alpha/api/arrayof.md",90065],"77ef4de7":[function(){return Promise.all([n.e(6273),n.e(5804)]).then(n.bind(n,88585))},"@site/versioned_docs/version-1.0.26-alpha/scopes.mdx",88585],78815324:[function(){return n.e(7920).then(n.bind(n,10644))},"@site/versioned_docs/version-1.0.23-alpha/api/resolvednode.md",10644],"79bbd73f":[function(){return n.e(1845).then(n.bind(n,7642))},"@site/versioned_docs/version-1.0.19-alpha/api/keyof.md",7642],"79d70776":[function(){return n.e(7297).then(n.bind(n,18918))},"@site/versioned_docs/version-1.0.20-alpha/api/tskeywordsscope.md",18918],"7b1099f0":[function(){return n.e(6155).then(n.bind(n,62589))},"@site/versioned_docs/version-1.0.21-alpha/api/space.md",62589],"7b5196a1":[function(){return n.e(3126).then(n.bind(n,31072))},"@site/versioned_docs/version-1.0.26-alpha/api/type.md",31072],"7b812af0":[function(){return n.e(2708).then(n.bind(n,15095))},"@site/docs/api/valueof.md",15095],"7caf366c":[function(){return n.e(9594).then(n.bind(n,56356))},"@site/versioned_docs/version-1.0.24-alpha/api/morph.md",56356],"7cdde229":[function(){return n.e(7447).then(n.bind(n,10751))},"@site/versioned_docs/version-1.0.27-alpha/api/validatebound.md",10751],"7db05580":[function(){return n.e(2718).then(n.bind(n,55143))},"@site/versioned_docs/version-1.0.25-alpha/api/validatebound.md",55143],"7f741c26":[function(){return n.e(712).then(n.bind(n,93785))},"@site/versioned_docs/version-1.0.27-alpha/api/keyof.md",93785],"80a2bf09":[function(){return n.e(5266).then(n.bind(n,24973))},"@site/versioned_docs/version-1.0.19-alpha/api/space.md",24973],"8122d123":[function(){return n.e(6746).then(n.bind(n,85605))},"@site/docs/api/union.md",85605],"816edea5":[function(){return n.e(6871).then(n.bind(n,1582))},"@site/versioned_docs/version-1.0.24-alpha/api/validatedefinition.md",1582],"819b7bff":[function(){return n.e(4616).then(n.bind(n,75557))},"@site/versioned_docs/version-1.0.21-alpha/api/parseconfigtuple.md",75557],"82b3c1af":[function(){return n.e(8727).then(n.bind(n,61835))},"@site/versioned_docs/version-1.0.23-alpha/api/infer.md",61835],"83647aeb":[function(){return n.e(3838).then(n.bind(n,70961))},"@site/versioned_docs/version-1.0.26-alpha/api/operators.md",70961],"83d426d9":[function(){return n.e(2967).then(n.bind(n,93088))},"@site/versioned_docs/version-1.0.22-alpha/api/arkscope.md",93088],"8417b59e":[function(){return Promise.all([n.e(6273),n.e(5737)]).then(n.bind(n,4992))},"@site/versioned_docs/version-1.0.26-alpha/index.mdx",4992],"84389d4b":[function(){return n.e(7393).then(n.bind(n,43760))},"@site/versioned_docs/version-1.0.27-alpha/api/parseconfigtuple.md",43760],"845e825f":[function(){return Promise.all([n.e(6273),n.e(8799)]).then(n.bind(n,2538))},"@site/versioned_docs/version-1.0.20-alpha/scopes.mdx",2538],"8565c7f1":[function(){return n.e(8490).then(n.bind(n,93174))},"@site/versioned_docs/version-1.0.23-alpha/api/space.md",93174],"859a2b4a":[function(){return n.e(8820).then(n.t.bind(n,7727,19))},"~docs/default/version-1-0-21-alpha-metadata-prop-dd3.json",7727],"85d86f40":[function(){return n.e(4946).then(n.bind(n,82430))},"@site/versioned_docs/version-1.0.19-alpha/api/intersection.md",82430],"861ccb4a":[function(){return n.e(7570).then(n.bind(n,4214))},"@site/versioned_docs/version-1.0.23-alpha/api/intersection.md",4214],"869384d8":[function(){return n.e(9839).then(n.bind(n,57898))},"@site/versioned_docs/version-1.0.22-alpha/api/infer.md",57898],"886330fc":[function(){return n.e(2965).then(n.bind(n,56109))},"@site/versioned_docs/version-1.0.26-alpha/api/keywords.md",56109],"893c3ed1":[function(){return n.e(5381).then(n.bind(n,90731))},"@site/versioned_docs/version-1.0.20-alpha/api/problems.md",90731],"8a580bbd":[function(){return n.e(1947).then(n.bind(n,9944))},"@site/versioned_docs/version-1.0.24-alpha/api/keyof.md",9944],"8b6844fb":[function(){return n.e(8278).then(n.bind(n,6653))},"@site/versioned_docs/version-1.0.26-alpha/api/instanceof.md",6653],"8e36631c":[function(){return n.e(5512).then(n.bind(n,6810))},"@site/versioned_docs/version-1.0.20-alpha/api/intersection.md",6810],"8ebd8584":[function(){return n.e(9331).then(n.bind(n,35173))},"@site/versioned_docs/version-1.0.24-alpha/api/jsobjectsscope.md",35173],"8fb3568e":[function(){return n.e(4447).then(n.bind(n,53993))},"@site/versioned_docs/version-1.0.27-alpha/api/operators.md",53993],"9021a768":[function(){return n.e(3038).then(n.bind(n,54766))},"@site/docs/api/validationscope.md",54766],"90a8d724":[function(){return n.e(1370).then(n.bind(n,23300))},"@site/versioned_docs/version-1.0.21-alpha/api/problems.md",23300],"90f9de61":[function(){return n.e(3683).then(n.bind(n,22328))},"@site/versioned_docs/version-1.0.23-alpha/api/arkscope.md",22328],"91c230ff":[function(){return n.e(8410).then(n.bind(n,75645))},"@site/versioned_docs/version-1.0.23-alpha/api/keyof.md",75645],"91ed0e08":[function(){return n.e(9964).then(n.bind(n,53024))},"@site/versioned_docs/version-1.0.27-alpha/api/problem.md",53024],92662164:[function(){return n.e(4770).then(n.bind(n,32605))},"@site/versioned_docs/version-1.0.26-alpha/api/problems.md",32605],"935f2afb":[function(){return n.e(53).then(n.t.bind(n,1109,19))},"~docs/default/version-current-metadata-prop-751.json",1109],"954d46d2":[function(){return n.e(4571).then(n.bind(n,1407))},"@site/docs/api/validatedefinition.md",1407],"95dbee80":[function(){return n.e(1386).then(n.bind(n,53486))},"@site/versioned_docs/version-1.0.25-alpha/api.mdx",53486],"95ee4656":[function(){return n.e(1790).then(n.bind(n,17615))},"@site/versioned_docs/version-1.0.25-alpha/api/arrayof.md",17615],"990740a9":[function(){return Promise.all([n.e(6273),n.e(9219)]).then(n.bind(n,52809))},"@site/versioned_docs/version-1.0.24-alpha/scopes.mdx",52809],"9a9123fd":[function(){return n.e(6587).then(n.bind(n,17953))},"@site/versioned_docs/version-1.0.25-alpha/api/validatedefinition.md",17953],"9b5b2f56":[function(){return n.e(2670).then(n.bind(n,39825))},"@site/versioned_docs/version-1.0.25-alpha/api/intersection.md",39825],"9b8157dc":[function(){return Promise.all([n.e(6273),n.e(3881)]).then(n.bind(n,99979))},"@site/versioned_docs/version-1.0.24-alpha/index.mdx",99979],"9b8bb8a5":[function(){return n.e(440).then(n.bind(n,79536))},"@site/versioned_docs/version-1.0.27-alpha/api/scope.md",79536],"9cf30a74":[function(){return n.e(711).then(n.bind(n,16972))},"@site/versioned_docs/version-1.0.23-alpha/api/type.md",16972],"9d12f58b":[function(){return n.e(3140).then(n.bind(n,48796))},"@site/versioned_docs/version-1.0.20-alpha/api/validatebound.md",48796],"9d30d1b5":[function(){return n.e(6731).then(n.bind(n,39490))},"@site/docs/api/validatebound.md",39490],"9ec264b0":[function(){return n.e(1800).then(n.bind(n,61001))},"@site/docs/api/operators.md",61001],a0f38637:[function(){return n.e(279).then(n.bind(n,19036))},"@site/versioned_docs/version-1.0.21-alpha/api/operators.md",19036],a15d4918:[function(){return n.e(295).then(n.bind(n,4949))},"@site/versioned_docs/version-1.0.19-alpha/api/problems.md",4949],a6052a4b:[function(){return n.e(2369).then(n.bind(n,73275))},"@site/versioned_docs/version-1.0.20-alpha/api/valueof.md",73275],a66fa827:[function(){return n.e(1711).then(n.bind(n,66774))},"@site/versioned_docs/version-1.0.23-alpha/api/validationscope.md",66774],a7d4f0a4:[function(){return n.e(400).then(n.bind(n,68030))},"@site/versioned_docs/version-1.0.26-alpha/api.mdx",68030],a8443108:[function(){return Promise.all([n.e(6273),n.e(4274)]).then(n.bind(n,8237))},"@site/versioned_docs/version-1.0.27-alpha/scopes.mdx",8237],a8d7e975:[function(){return n.e(4032).then(n.bind(n,65815))},"@site/versioned_docs/version-1.0.24-alpha/api/resolvednode.md",65815],aa2edfac:[function(){return n.e(2505).then(n.bind(n,51968))},"@site/versioned_docs/version-1.0.25-alpha/api/validationscope.md",51968],ac907d5b:[function(){return n.e(8494).then(n.bind(n,58821))},"@site/versioned_docs/version-1.0.27-alpha/api.mdx",58821],ae6a1a09:[function(){return n.e(9357).then(n.bind(n,27684))},"@site/versioned_docs/version-1.0.22-alpha/api/validationscope.md",27684],af55ed38:[function(){return n.e(5656).then(n.bind(n,37947))},"@site/versioned_docs/version-1.0.25-alpha/api/scope.md",37947],afb4c8d0:[function(){return n.e(3352).then(n.bind(n,98200))},"@site/versioned_docs/version-1.0.26-alpha/api/valueof.md",98200],b0266a2e:[function(){return n.e(4020).then(n.t.bind(n,6238,19))},"~docs/default/version-1-0-22-alpha-metadata-prop-45e.json",6238],b207f374:[function(){return n.e(343).then(n.bind(n,31352))},"@site/versioned_docs/version-1.0.27-alpha/api/valueof.md",31352],b21dc314:[function(){return n.e(308).then(n.bind(n,88477))},"@site/versioned_docs/version-1.0.22-alpha/api/keyof.md",88477],b24ac1a1:[function(){return n.e(1272).then(n.bind(n,51581))},"@site/versioned_docs/version-1.0.20-alpha/api/operators.md",51581],b3f033ae:[function(){return n.e(6606).then(n.bind(n,35078))},"@site/versioned_docs/version-1.0.25-alpha/api/union.md",35078],b3ff9d4c:[function(){return n.e(8862).then(n.bind(n,90028))},"@site/docs/api/ark.md",90028],b45a700f:[function(){return n.e(5685).then(n.bind(n,77019))},"@site/versioned_docs/version-1.0.23-alpha/api/instanceof.md",77019],b4d00006:[function(){return n.e(8584).then(n.bind(n,31358))},"@site/versioned_docs/version-1.0.27-alpha/api/tskeywordsscope.md",31358],b51773d7:[function(){return n.e(1415).then(n.bind(n,79768))},"@site/versioned_docs/version-1.0.26-alpha/api/arrayof.md",79768],b527fae2:[function(){return n.e(4468).then(n.bind(n,90906))},"@site/versioned_docs/version-1.0.25-alpha/api/keyof.md",90906],b559d85e:[function(){return n.e(2363).then(n.bind(n,72987))},"@site/versioned_docs/version-1.0.23-alpha/api/union.md",72987],b7645ba4:[function(){return n.e(9571).then(n.bind(n,62090))},"@site/versioned_docs/version-1.0.24-alpha/api/problems.md",62090],b7eb6f82:[function(){return n.e(8914).then(n.bind(n,53177))},"@site/versioned_docs/version-1.0.19-alpha/api/parseconfigtuple.md",53177],bc5f4b18:[function(){return n.e(5348).then(n.bind(n,16627))},"@site/docs/api/jsobjectsscope.md",16627],bf95da2e:[function(){return n.e(5239).then(n.bind(n,37196))},"@site/versioned_docs/version-1.0.27-alpha/api/precompileddefaults.md",37196],bfd22999:[function(){return n.e(8209).then(n.bind(n,17135))},"@site/versioned_docs/version-1.0.21-alpha/api.mdx",17135],c00cc6b2:[function(){return n.e(7071).then(n.bind(n,59286))},"@site/versioned_docs/version-1.0.20-alpha/api/validationscope.md",59286],c1789402:[function(){return n.e(6900).then(n.bind(n,53680))},"@site/docs/api/problem.md",53680],c1d314a1:[function(){return n.e(9172).then(n.bind(n,91374))},"@site/versioned_docs/version-1.0.25-alpha/api/problem.md",91374],c3541e9e:[function(){return n.e(5786).then(n.bind(n,20990))},"@site/versioned_docs/version-1.0.26-alpha/api/ark.md",20990],c3aabb3b:[function(){return n.e(6412).then(n.bind(n,16038))},"@site/versioned_docs/version-1.0.26-alpha/api/validatebound.md",16038],c6782734:[function(){return n.e(1712).then(n.bind(n,9769))},"@site/versioned_docs/version-1.0.22-alpha/api/narrow.md",9769],c7123966:[function(){return n.e(6491).then(n.bind(n,10789))},"@site/versioned_docs/version-1.0.20-alpha/api/type.md",10789],c7722782:[function(){return n.e(6966).then(n.bind(n,78971))},"@site/versioned_docs/version-1.0.26-alpha/api/infer.md",78971],c82ee514:[function(){return Promise.all([n.e(6273),n.e(4425)]).then(n.bind(n,78842))},"@site/versioned_docs/version-1.0.19-alpha/scopes.mdx",78842],c897f273:[function(){return n.e(1422).then(n.bind(n,4164))},"@site/versioned_docs/version-1.0.22-alpha/api/ark.md",4164],c96b1a52:[function(){return n.e(3207).then(n.bind(n,50613))},"@site/versioned_docs/version-1.0.20-alpha/api/scope.md",50613],c96bd749:[function(){return n.e(5024).then(n.bind(n,97995))},"@site/versioned_docs/version-1.0.27-alpha/api/intersection.md",97995],c9964daf:[function(){return n.e(4717).then(n.bind(n,7216))},"@site/versioned_docs/version-1.0.27-alpha/api/type.md",7216],c9cdb2cd:[function(){return n.e(508).then(n.bind(n,33619))},"@site/versioned_docs/version-1.0.25-alpha/api/keywords.md",33619],ca783dc8:[function(){return n.e(8877).then(n.bind(n,43853))},"@site/versioned_docs/version-1.0.22-alpha/api/space.md",43853],cb0719ba:[function(){return n.e(7760).then(n.bind(n,64250))},"@site/docs/api/problems.md",64250],cb67f2be:[function(){return n.e(5548).then(n.bind(n,71056))},"@site/versioned_docs/version-1.0.25-alpha/api/type.md",71056],cc0af677:[function(){return n.e(4069).then(n.bind(n,66937))},"@site/versioned_docs/version-1.0.24-alpha/api/intersection.md",66937],cc78971e:[function(){return n.e(709).then(n.bind(n,9237))},"@site/versioned_docs/version-1.0.19-alpha/api/jsobjectsscope.md",9237],cc8f130c:[function(){return n.e(4467).then(n.bind(n,91330))},"@site/docs/api/keyof.md",91330],ccac430f:[function(){return n.e(1384).then(n.bind(n,41461))},"@site/docs/api/space.md",41461],ccfb1236:[function(){return Promise.all([n.e(6273),n.e(1079)]).then(n.bind(n,70147))},"@site/versioned_docs/version-1.0.27-alpha/index.mdx",70147],cd758b8d:[function(){return n.e(7361).then(n.bind(n,86133))},"@site/docs/api/resolvednode.md",86133],d043b015:[function(){return n.e(5966).then(n.bind(n,42759))},"@site/versioned_docs/version-1.0.26-alpha/api/keyof.md",42759],d08a5cd9:[function(){return n.e(253).then(n.bind(n,98666))},"@site/versioned_docs/version-1.0.19-alpha/api.mdx",98666],d20ea9cb:[function(){return n.e(2761).then(n.bind(n,16667))},"@site/versioned_docs/version-1.0.20-alpha/api/infer.md",16667],d34d80a4:[function(){return n.e(5835).then(n.bind(n,67479))},"@site/versioned_docs/version-1.0.22-alpha/api/resolvednode.md",67479],d3ad1999:[function(){return n.e(9627).then(n.bind(n,45853))},"@site/versioned_docs/version-1.0.22-alpha/api/valueof.md",45853],d41cdbd4:[function(){return n.e(1211).then(n.bind(n,55070))},"@site/versioned_docs/version-1.0.21-alpha/api/validatedivisor.md",55070],d4983bd7:[function(){return Promise.all([n.e(6273),n.e(1983)]).then(n.bind(n,65827))},"@site/versioned_docs/version-1.0.21-alpha/index.mdx",65827],d64ec25b:[function(){return n.e(3631).then(n.bind(n,77123))},"@site/versioned_docs/version-1.0.23-alpha/api/validatedivisor.md",77123],d78396ad:[function(){return n.e(8011).then(n.bind(n,73910))},"@site/versioned_docs/version-1.0.20-alpha/api/validatedivisor.md",73910],d804be0b:[function(){return n.e(9408).then(n.t.bind(n,78e3,19))},"~docs/default/version-1-0-19-alpha-metadata-prop-0f1.json",78e3],d8893250:[function(){return n.e(5105).then(n.bind(n,26814))},"@site/versioned_docs/version-1.0.22-alpha/api/intersection.md",26814],d8bba269:[function(){return n.e(5732).then(n.bind(n,82844))},"@site/versioned_docs/version-1.0.25-alpha/api/validatedivisor.md",82844],d9e6bfd2:[function(){return n.e(3220).then(n.bind(n,69980))},"@site/versioned_docs/version-1.0.25-alpha/api/tskeywordsscope.md",69980],db25c6b2:[function(){return n.e(6377).then(n.bind(n,84229))},"@site/versioned_docs/version-1.0.19-alpha/api/resolvednode.md",84229],dbd74e1e:[function(){return n.e(7621).then(n.bind(n,50913))},"@site/versioned_docs/version-1.0.24-alpha/api/operators.md",50913],dc29efe7:[function(){return n.e(6641).then(n.bind(n,69821))},"@site/versioned_docs/version-1.0.27-alpha/api/keywords.md",69821],dc9876d0:[function(){return n.e(1269).then(n.bind(n,53523))},"@site/versioned_docs/version-1.0.19-alpha/api/problem.md",53523],dda49074:[function(){return Promise.all([n.e(532),n.e(6273),n.e(856),n.e(8242),n.e(3678)]).then(n.bind(n,86447))},"@site/src/pages/try.tsx",86447],de14bdb8:[function(){return n.e(7925).then(n.bind(n,32735))},"@site/versioned_docs/version-1.0.24-alpha/api/arkscope.md",32735],de63dc90:[function(){return n.e(6124).then(n.bind(n,87314))},"@site/versioned_docs/version-1.0.21-alpha/api/infer.md",87314],def5e568:[function(){return n.e(7467).then(n.bind(n,91178))},"@site/versioned_docs/version-1.0.23-alpha/api/arrayof.md",91178],df4b4745:[function(){return n.e(8235).then(n.bind(n,92287))},"@site/versioned_docs/version-1.0.22-alpha/api/validatedivisor.md",92287],dfc31940:[function(){return n.e(2056).then(n.bind(n,22822))},"@site/versioned_docs/version-1.0.22-alpha/api/validatebound.md",22822],e0823295:[function(){return n.e(1268).then(n.bind(n,80545))},"@site/versioned_docs/version-1.0.21-alpha/api/ark.md",80545],e17acbb0:[function(){return n.e(7098).then(n.bind(n,16593))},"@site/versioned_docs/version-1.0.20-alpha/api/narrow.md",16593],e1c5356f:[function(){return n.e(1921).then(n.bind(n,46597))},"@site/versioned_docs/version-1.0.27-alpha/api/validatedivisor.md",46597],e2461dfd:[function(){return n.e(1228).then(n.bind(n,45226))},"@site/versioned_docs/version-1.0.24-alpha/api/narrow.md",45226],e34113ea:[function(){return n.e(3428).then(n.bind(n,88245))},"@site/docs/api/infer.md",88245],e535037a:[function(){return n.e(7252).then(n.bind(n,64125))},"@site/versioned_docs/version-1.0.19-alpha/api/ark.md",64125],e53c2488:[function(){return n.e(4560).then(n.bind(n,94594))},"@site/src/pages/discord.tsx",94594],e593da58:[function(){return n.e(1874).then(n.bind(n,97579))},"@site/versioned_docs/version-1.0.27-alpha/api/resolvednode.md",97579],e59dc82a:[function(){return n.e(2737).then(n.bind(n,4626))},"@site/versioned_docs/version-1.0.24-alpha/api/parseconfigtuple.md",4626],e655abbb:[function(){return Promise.all([n.e(6273),n.e(7456)]).then(n.bind(n,75241))},"@site/versioned_docs/version-1.0.22-alpha/scopes.mdx",75241],e6d2a166:[function(){return n.e(9681).then(n.bind(n,47248))},"@site/versioned_docs/version-1.0.26-alpha/api/precompileddefaults.md",47248],e7930c82:[function(){return n.e(1393).then(n.bind(n,27878))},"@site/versioned_docs/version-1.0.22-alpha/api/morph.md",27878],e7d10b2a:[function(){return n.e(9633).then(n.bind(n,96046))},"@site/versioned_docs/version-1.0.25-alpha/api/ark.md",96046],e8871c82:[function(){return n.e(996).then(n.bind(n,49112))},"@site/versioned_docs/version-1.0.19-alpha/api/tskeywordsscope.md",49112],e8bf6104:[function(){return n.e(9667).then(n.bind(n,87714))},"@site/versioned_docs/version-1.0.21-alpha/api/type.md",87714],e9636bdb:[function(){return n.e(6683).then(n.bind(n,58234))},"@site/versioned_docs/version-1.0.20-alpha/api/space.md",58234],e9e96877:[function(){return n.e(6711).then(n.bind(n,84191))},"@site/versioned_docs/version-1.0.21-alpha/api/narrow.md",84191],ea0f6b3f:[function(){return n.e(5783).then(n.bind(n,86065))},"@site/versioned_docs/version-1.0.27-alpha/api/validationscope.md",86065],ea18a43c:[function(){return n.e(6184).then(n.bind(n,85850))},"@site/versioned_docs/version-1.0.27-alpha/api/arrayof.md",85850],eb3ac9bb:[function(){return n.e(6119).then(n.t.bind(n,83769,19))},"/home/runner/work/arktype/arktype/dev/arktype.io/.docusaurus/docusaurus-plugin-content-docs/default/plugin-route-context-module-100.json",83769],eb697851:[function(){return n.e(7893).then(n.bind(n,85560))},"@site/versioned_docs/version-1.0.23-alpha/api/problems.md",85560],ec95bee0:[function(){return n.e(9460).then(n.bind(n,33004))},"@site/docs/api/arkscope.md",33004],ed2f6e2d:[function(){return n.e(2488).then(n.bind(n,19903))},"@site/versioned_docs/version-1.0.26-alpha/api/jsobjectsscope.md",19903],ed32b608:[function(){return n.e(2576).then(n.bind(n,11100))},"@site/versioned_docs/version-1.0.19-alpha/api/narrow.md",11100],ef111452:[function(){return n.e(7801).then(n.bind(n,69956))},"@site/versioned_docs/version-1.0.23-alpha/api/problem.md",69956],ef2d7b11:[function(){return n.e(7691).then(n.bind(n,86871))},"@site/versioned_docs/version-1.0.26-alpha/api/problem.md",86871],f042813e:[function(){return n.e(6996).then(n.bind(n,33559))},"@site/versioned_docs/version-1.0.20-alpha/api/union.md",33559],f0d09dc7:[function(){return n.e(7806).then(n.bind(n,94766))},"@site/versioned_docs/version-1.0.26-alpha/api/space.md",94766],f2d81eea:[function(){return n.e(8879).then(n.bind(n,74063))},"@site/versioned_docs/version-1.0.19-alpha/api/instanceof.md",74063],f2fd9995:[function(){return n.e(610).then(n.bind(n,84390))},"@site/versioned_docs/version-1.0.24-alpha/api/space.md",84390],f3accd90:[function(){return n.e(1488).then(n.bind(n,19233))},"@site/versioned_docs/version-1.0.24-alpha/api/validatebound.md",19233],f4ab0997:[function(){return n.e(4041).then(n.bind(n,41659))},"@site/versioned_docs/version-1.0.24-alpha/api/union.md",41659],f4d4ef5a:[function(){return n.e(4998).then(n.bind(n,12629))},"@site/versioned_docs/version-1.0.25-alpha/api/valueof.md",12629],f5450a53:[function(){return n.e(4021).then(n.bind(n,71466))},"@site/versioned_docs/version-1.0.27-alpha/api/morph.md",71466],f56e57b8:[function(){return n.e(6465).then(n.bind(n,36432))},"@site/versioned_docs/version-1.0.19-alpha/api/union.md",36432],f5cf1540:[function(){return n.e(8871).then(n.bind(n,96672))},"@site/versioned_docs/version-1.0.20-alpha/api/parseconfigtuple.md",96672],f6abc386:[function(){return n.e(6651).then(n.bind(n,42851))},"@site/versioned_docs/version-1.0.20-alpha/api/keywords.md",42851],f7d9de65:[function(){return n.e(7218).then(n.bind(n,49931))},"@site/versioned_docs/version-1.0.22-alpha/api/scope.md",49931],f8cd29e9:[function(){return n.e(9531).then(n.bind(n,51072))},"@site/versioned_docs/version-1.0.21-alpha/api/keyof.md",51072],f90a1385:[function(){return n.e(9395).then(n.bind(n,10784))},"@site/versioned_docs/version-1.0.26-alpha/api/arkscope.md",10784],f981804c:[function(){return n.e(3709).then(n.bind(n,89352))},"@site/versioned_docs/version-1.0.25-alpha/api/morph.md",89352],fa190965:[function(){return n.e(7957).then(n.bind(n,44524))},"@site/docs/api/tskeywordsscope.md",44524],fa1e6577:[function(){return n.e(6696).then(n.bind(n,73926))},"@site/versioned_docs/version-1.0.21-alpha/api/validatebound.md",73926],fa5b3c64:[function(){return n.e(2111).then(n.bind(n,47797))},"@site/versioned_docs/version-1.0.27-alpha/api/jsobjectsscope.md",47797],fb9b701d:[function(){return n.e(9800).then(n.bind(n,82772))},"@site/versioned_docs/version-1.0.19-alpha/api/morph.md",82772],fca6815f:[function(){return n.e(4578).then(n.bind(n,51458))},"@site/versioned_docs/version-1.0.27-alpha/api/arkscope.md",51458],ff4199e5:[function(){return n.e(9385).then(n.t.bind(n,37961,19))},"~docs/default/version-1-0-24-alpha-metadata-prop-fc0.json",37961]};function c(e){var t=e.error,n=e.retry,r=e.pastDelay;return t?a.createElement("div",{style:{textAlign:"center",color:"#fff",backgroundColor:"#fa383e",borderColor:"#fa383e",borderStyle:"solid",borderRadius:"0.25rem",borderWidth:"1px",boxSizing:"border-box",display:"block",padding:"1rem",flex:"0 0 50%",marginLeft:"25%",marginRight:"25%",marginTop:"5rem",maxWidth:"50%",width:"100%"}},a.createElement("p",null,String(t)),a.createElement("div",null,a.createElement("button",{type:"button",onClick:n},"Retry"))):r?a.createElement("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100vh"}},a.createElement("svg",{id:"loader",style:{width:128,height:110,position:"absolute",top:"calc(100vh - 64%)"},viewBox:"0 0 45 45",xmlns:"http://www.w3.org/2000/svg",stroke:"#61dafb"},a.createElement("g",{fill:"none",fillRule:"evenodd",transform:"translate(1 1)",strokeWidth:"2"},a.createElement("circle",{cx:"22",cy:"22",r:"6",strokeOpacity:"0"},a.createElement("animate",{attributeName:"r",begin:"1.5s",dur:"3s",values:"6;22",calcMode:"linear",repeatCount:"indefinite"}),a.createElement("animate",{attributeName:"stroke-opacity",begin:"1.5s",dur:"3s",values:"1;0",calcMode:"linear",repeatCount:"indefinite"}),a.createElement("animate",{attributeName:"stroke-width",begin:"1.5s",dur:"3s",values:"2;0",calcMode:"linear",repeatCount:"indefinite"})),a.createElement("circle",{cx:"22",cy:"22",r:"6",strokeOpacity:"0"},a.createElement("animate",{attributeName:"r",begin:"3s",dur:"3s",values:"6;22",calcMode:"linear",repeatCount:"indefinite"}),a.createElement("animate",{attributeName:"stroke-opacity",begin:"3s",dur:"3s",values:"1;0",calcMode:"linear",repeatCount:"indefinite"}),a.createElement("animate",{attributeName:"stroke-width",begin:"3s",dur:"3s",values:"2;0",calcMode:"linear",repeatCount:"indefinite"})),a.createElement("circle",{cx:"22",cy:"22",r:"8"},a.createElement("animate",{attributeName:"r",begin:"0s",dur:"1.5s",values:"6;1;2;3;4;5;6",calcMode:"linear",repeatCount:"indefinite"}))))):null}var u=n(96071),p=n(49186);function d(e,t){if("*"===e)return i()({loading:c,loader:function(){return n.e(2523).then(n.bind(n,92523))},modules:["@theme/NotFound"],webpack:function(){return[92523]},render:function(e,t){var n=e.default;return a.createElement(p.z,{value:{plugin:{name:"native",id:"default"}}},a.createElement(n,t))}});var o=s[e+"-"+t],d={},f=[],h=[],m=(0,u.Z)(o);return Object.entries(m).forEach((function(e){var t=e[0],n=e[1],a=l[n];a&&(d[t]=a[0],f.push(a[1]),h.push(a[2]))})),i().Map({loading:c,loader:d,modules:f,webpack:function(){return h},render:function(t,n){var i=JSON.parse(JSON.stringify(o));Object.entries(t).forEach((function(t){var n=t[0],a=t[1],r=a.default;if(!r)throw new Error("The page component at "+e+" doesn't have a default export. This makes it impossible to render anything. Consider default-exporting a React component.");"object"!=typeof r&&"function"!=typeof r||Object.keys(a).filter((function(e){return"default"!==e})).forEach((function(e){r[e]=a[e]}));var o=i,s=n.split(".");s.slice(0,-1).forEach((function(e){o=o[e]})),o[s[s.length-1]]=r}));var s=i.__comp;delete i.__comp;var l=i.__context;return delete i.__context,a.createElement(p.z,{value:l},a.createElement(s,(0,r.Z)({},i,n)))}})}const f=[{path:"/discord",component:d("/discord","661"),exact:!0},{path:"/try",component:d("/try","29f"),exact:!0},{path:"/docs/1.0.19-alpha",component:d("/docs/1.0.19-alpha","2ea"),routes:[{path:"/docs/1.0.19-alpha/",component:d("/docs/1.0.19-alpha/","4d1"),exact:!0,sidebar:"sidebar"},{path:"/docs/1.0.19-alpha/api",component:d("/docs/1.0.19-alpha/api","182"),exact:!0,sidebar:"sidebar"},{path:"/docs/1.0.19-alpha/api/ark",component:d("/docs/1.0.19-alpha/api/ark","264"),exact:!0},{path:"/docs/1.0.19-alpha/api/arkscope",component:d("/docs/1.0.19-alpha/api/arkscope","c6b"),exact:!0},{path:"/docs/1.0.19-alpha/api/arrayof",component:d("/docs/1.0.19-alpha/api/arrayof","d01"),exact:!0},{path:"/docs/1.0.19-alpha/api/infer",component:d("/docs/1.0.19-alpha/api/infer","3fb"),exact:!0},{path:"/docs/1.0.19-alpha/api/instanceof",component:d("/docs/1.0.19-alpha/api/instanceof","1ad"),exact:!0},{path:"/docs/1.0.19-alpha/api/intersection",component:d("/docs/1.0.19-alpha/api/intersection","136"),exact:!0},{path:"/docs/1.0.19-alpha/api/jsobjectsscope",component:d("/docs/1.0.19-alpha/api/jsobjectsscope","d7d"),exact:!0},{path:"/docs/1.0.19-alpha/api/keyof",component:d("/docs/1.0.19-alpha/api/keyof","04d"),exact:!0},{path:"/docs/1.0.19-alpha/api/keywords",component:d("/docs/1.0.19-alpha/api/keywords","c45"),exact:!0,sidebar:"sidebar"},{path:"/docs/1.0.19-alpha/api/morph",component:d("/docs/1.0.19-alpha/api/morph","8ed"),exact:!0},{path:"/docs/1.0.19-alpha/api/narrow",component:d("/docs/1.0.19-alpha/api/narrow","e15"),exact:!0},{path:"/docs/1.0.19-alpha/api/operators",component:d("/docs/1.0.19-alpha/api/operators","9e4"),exact:!0,sidebar:"sidebar"},{path:"/docs/1.0.19-alpha/api/parseconfigtuple",component:d("/docs/1.0.19-alpha/api/parseconfigtuple","bd1"),exact:!0},{path:"/docs/1.0.19-alpha/api/problem",component:d("/docs/1.0.19-alpha/api/problem","d05"),exact:!0},{path:"/docs/1.0.19-alpha/api/problems",component:d("/docs/1.0.19-alpha/api/problems","a95"),exact:!0},{path:"/docs/1.0.19-alpha/api/resolvednode",component:d("/docs/1.0.19-alpha/api/resolvednode","4d8"),exact:!0},{path:"/docs/1.0.19-alpha/api/scope",component:d("/docs/1.0.19-alpha/api/scope","3b3"),exact:!0},{path:"/docs/1.0.19-alpha/api/space",component:d("/docs/1.0.19-alpha/api/space","e84"),exact:!0},{path:"/docs/1.0.19-alpha/api/tskeywordsscope",component:d("/docs/1.0.19-alpha/api/tskeywordsscope","972"),exact:!0},{path:"/docs/1.0.19-alpha/api/type",component:d("/docs/1.0.19-alpha/api/type","37c"),exact:!0},{path:"/docs/1.0.19-alpha/api/union",component:d("/docs/1.0.19-alpha/api/union","f53"),exact:!0},{path:"/docs/1.0.19-alpha/api/validatebound",component:d("/docs/1.0.19-alpha/api/validatebound","a20"),exact:!0},{path:"/docs/1.0.19-alpha/api/validatedivisor",component:d("/docs/1.0.19-alpha/api/validatedivisor","60b"),exact:!0},{path:"/docs/1.0.19-alpha/api/validationscope",component:d("/docs/1.0.19-alpha/api/validationscope","a3b"),exact:!0},{path:"/docs/1.0.19-alpha/api/valueof",component:d("/docs/1.0.19-alpha/api/valueof","0f6"),exact:!0},{path:"/docs/1.0.19-alpha/scopes",component:d("/docs/1.0.19-alpha/scopes","a03"),exact:!0,sidebar:"sidebar"}]},{path:"/docs/1.0.20-alpha",component:d("/docs/1.0.20-alpha","eff"),routes:[{path:"/docs/1.0.20-alpha/",component:d("/docs/1.0.20-alpha/","8d8"),exact:!0,sidebar:"sidebar"},{path:"/docs/1.0.20-alpha/api",component:d("/docs/1.0.20-alpha/api","7dc"),exact:!0,sidebar:"sidebar"},{path:"/docs/1.0.20-alpha/api/ark",component:d("/docs/1.0.20-alpha/api/ark","fc3"),exact:!0},{path:"/docs/1.0.20-alpha/api/arkscope",component:d("/docs/1.0.20-alpha/api/arkscope","83a"),exact:!0},{path:"/docs/1.0.20-alpha/api/arrayof",component:d("/docs/1.0.20-alpha/api/arrayof","320"),exact:!0},{path:"/docs/1.0.20-alpha/api/infer",component:d("/docs/1.0.20-alpha/api/infer","829"),exact:!0},{path:"/docs/1.0.20-alpha/api/instanceof",component:d("/docs/1.0.20-alpha/api/instanceof","e0e"),exact:!0},{path:"/docs/1.0.20-alpha/api/intersection",component:d("/docs/1.0.20-alpha/api/intersection","3ed"),exact:!0},{path:"/docs/1.0.20-alpha/api/jsobjectsscope",component:d("/docs/1.0.20-alpha/api/jsobjectsscope","668"),exact:!0},{path:"/docs/1.0.20-alpha/api/keyof",component:d("/docs/1.0.20-alpha/api/keyof","25f"),exact:!0},{path:"/docs/1.0.20-alpha/api/keywords",component:d("/docs/1.0.20-alpha/api/keywords","459"),exact:!0,sidebar:"sidebar"},{path:"/docs/1.0.20-alpha/api/morph",component:d("/docs/1.0.20-alpha/api/morph","533"),exact:!0},{path:"/docs/1.0.20-alpha/api/narrow",component:d("/docs/1.0.20-alpha/api/narrow","399"),exact:!0},{path:"/docs/1.0.20-alpha/api/operators",component:d("/docs/1.0.20-alpha/api/operators","341"),exact:!0,sidebar:"sidebar"},{path:"/docs/1.0.20-alpha/api/parseconfigtuple",component:d("/docs/1.0.20-alpha/api/parseconfigtuple","030"),exact:!0},{path:"/docs/1.0.20-alpha/api/problem",component:d("/docs/1.0.20-alpha/api/problem","d5a"),exact:!0},{path:"/docs/1.0.20-alpha/api/problems",component:d("/docs/1.0.20-alpha/api/problems","db4"),exact:!0},{path:"/docs/1.0.20-alpha/api/resolvednode",component:d("/docs/1.0.20-alpha/api/resolvednode","743"),exact:!0},{path:"/docs/1.0.20-alpha/api/scope",component:d("/docs/1.0.20-alpha/api/scope","4ae"),exact:!0},{path:"/docs/1.0.20-alpha/api/space",component:d("/docs/1.0.20-alpha/api/space","0d0"),exact:!0},{path:"/docs/1.0.20-alpha/api/tskeywordsscope",component:d("/docs/1.0.20-alpha/api/tskeywordsscope","656"),exact:!0},{path:"/docs/1.0.20-alpha/api/type",component:d("/docs/1.0.20-alpha/api/type","c88"),exact:!0},{path:"/docs/1.0.20-alpha/api/union",component:d("/docs/1.0.20-alpha/api/union","2b3"),exact:!0},{path:"/docs/1.0.20-alpha/api/validatebound",component:d("/docs/1.0.20-alpha/api/validatebound","fb4"),exact:!0},{path:"/docs/1.0.20-alpha/api/validatedivisor",component:d("/docs/1.0.20-alpha/api/validatedivisor","c6e"),exact:!0},{path:"/docs/1.0.20-alpha/api/validationscope",component:d("/docs/1.0.20-alpha/api/validationscope","b5e"),exact:!0},{path:"/docs/1.0.20-alpha/api/valueof",component:d("/docs/1.0.20-alpha/api/valueof","738"),exact:!0},{path:"/docs/1.0.20-alpha/scopes",component:d("/docs/1.0.20-alpha/scopes","bf1"),exact:!0,sidebar:"sidebar"}]},{path:"/docs/1.0.21-alpha",component:d("/docs/1.0.21-alpha","23f"),routes:[{path:"/docs/1.0.21-alpha/",component:d("/docs/1.0.21-alpha/","84a"),exact:!0,sidebar:"sidebar"},{path:"/docs/1.0.21-alpha/api",component:d("/docs/1.0.21-alpha/api","e9a"),exact:!0,sidebar:"sidebar"},{path:"/docs/1.0.21-alpha/api/ark",component:d("/docs/1.0.21-alpha/api/ark","020"),exact:!0},{path:"/docs/1.0.21-alpha/api/arkscope",component:d("/docs/1.0.21-alpha/api/arkscope","024"),exact:!0},{path:"/docs/1.0.21-alpha/api/arrayof",component:d("/docs/1.0.21-alpha/api/arrayof","575"),exact:!0},{path:"/docs/1.0.21-alpha/api/infer",component:d("/docs/1.0.21-alpha/api/infer","502"),exact:!0},{path:"/docs/1.0.21-alpha/api/instanceof",component:d("/docs/1.0.21-alpha/api/instanceof","4bd"),exact:!0},{path:"/docs/1.0.21-alpha/api/intersection",component:d("/docs/1.0.21-alpha/api/intersection","1c6"),exact:!0},{path:"/docs/1.0.21-alpha/api/jsobjectsscope",component:d("/docs/1.0.21-alpha/api/jsobjectsscope","e37"),exact:!0},{path:"/docs/1.0.21-alpha/api/keyof",component:d("/docs/1.0.21-alpha/api/keyof","aaf"),exact:!0},{path:"/docs/1.0.21-alpha/api/keywords",component:d("/docs/1.0.21-alpha/api/keywords","284"),exact:!0,sidebar:"sidebar"},{path:"/docs/1.0.21-alpha/api/morph",component:d("/docs/1.0.21-alpha/api/morph","6a2"),exact:!0},{path:"/docs/1.0.21-alpha/api/narrow",component:d("/docs/1.0.21-alpha/api/narrow","603"),exact:!0},{path:"/docs/1.0.21-alpha/api/operators",component:d("/docs/1.0.21-alpha/api/operators","19e"),exact:!0,sidebar:"sidebar"},{path:"/docs/1.0.21-alpha/api/parseconfigtuple",component:d("/docs/1.0.21-alpha/api/parseconfigtuple","ec3"),exact:!0},{path:"/docs/1.0.21-alpha/api/problem",component:d("/docs/1.0.21-alpha/api/problem","051"),exact:!0},{path:"/docs/1.0.21-alpha/api/problems",component:d("/docs/1.0.21-alpha/api/problems","73c"),exact:!0},{path:"/docs/1.0.21-alpha/api/resolvednode",component:d("/docs/1.0.21-alpha/api/resolvednode","d4e"),exact:!0},{path:"/docs/1.0.21-alpha/api/scope",component:d("/docs/1.0.21-alpha/api/scope","288"),exact:!0},{path:"/docs/1.0.21-alpha/api/space",component:d("/docs/1.0.21-alpha/api/space","6cd"),exact:!0},{path:"/docs/1.0.21-alpha/api/tskeywordsscope",component:d("/docs/1.0.21-alpha/api/tskeywordsscope","e24"),exact:!0},{path:"/docs/1.0.21-alpha/api/type",component:d("/docs/1.0.21-alpha/api/type","d37"),exact:!0},{path:"/docs/1.0.21-alpha/api/union",component:d("/docs/1.0.21-alpha/api/union","46a"),exact:!0},{path:"/docs/1.0.21-alpha/api/validatebound",component:d("/docs/1.0.21-alpha/api/validatebound","6bf"),exact:!0},{path:"/docs/1.0.21-alpha/api/validatedivisor",component:d("/docs/1.0.21-alpha/api/validatedivisor","3d5"),exact:!0},{path:"/docs/1.0.21-alpha/api/validationscope",component:d("/docs/1.0.21-alpha/api/validationscope","39f"),exact:!0},{path:"/docs/1.0.21-alpha/api/valueof",component:d("/docs/1.0.21-alpha/api/valueof","2a1"),exact:!0},{path:"/docs/1.0.21-alpha/scopes",component:d("/docs/1.0.21-alpha/scopes","3dd"),exact:!0,sidebar:"sidebar"}]},{path:"/docs/1.0.22-alpha",component:d("/docs/1.0.22-alpha","4d9"),routes:[{path:"/docs/1.0.22-alpha/",component:d("/docs/1.0.22-alpha/","bd9"),exact:!0,sidebar:"sidebar"},{path:"/docs/1.0.22-alpha/api",component:d("/docs/1.0.22-alpha/api","870"),exact:!0,sidebar:"sidebar"},{path:"/docs/1.0.22-alpha/api/ark",component:d("/docs/1.0.22-alpha/api/ark","0fa"),exact:!0},{path:"/docs/1.0.22-alpha/api/arkscope",component:d("/docs/1.0.22-alpha/api/arkscope","78c"),exact:!0},{path:"/docs/1.0.22-alpha/api/arrayof",component:d("/docs/1.0.22-alpha/api/arrayof","fdb"),exact:!0},{path:"/docs/1.0.22-alpha/api/infer",component:d("/docs/1.0.22-alpha/api/infer","557"),exact:!0},{path:"/docs/1.0.22-alpha/api/instanceof",component:d("/docs/1.0.22-alpha/api/instanceof","a41"),exact:!0},{path:"/docs/1.0.22-alpha/api/intersection",component:d("/docs/1.0.22-alpha/api/intersection","3d6"),exact:!0},{path:"/docs/1.0.22-alpha/api/jsobjectsscope",component:d("/docs/1.0.22-alpha/api/jsobjectsscope","9bc"),exact:!0},{path:"/docs/1.0.22-alpha/api/keyof",component:d("/docs/1.0.22-alpha/api/keyof","d8a"),exact:!0},{path:"/docs/1.0.22-alpha/api/keywords",component:d("/docs/1.0.22-alpha/api/keywords","280"),exact:!0,sidebar:"sidebar"},{path:"/docs/1.0.22-alpha/api/morph",component:d("/docs/1.0.22-alpha/api/morph","ebe"),exact:!0},{path:"/docs/1.0.22-alpha/api/narrow",component:d("/docs/1.0.22-alpha/api/narrow","fe3"),exact:!0},{path:"/docs/1.0.22-alpha/api/operators",component:d("/docs/1.0.22-alpha/api/operators","fd6"),exact:!0,sidebar:"sidebar"},{path:"/docs/1.0.22-alpha/api/parseconfigtuple",component:d("/docs/1.0.22-alpha/api/parseconfigtuple","1a9"),exact:!0},{path:"/docs/1.0.22-alpha/api/problem",component:d("/docs/1.0.22-alpha/api/problem","968"),exact:!0},{path:"/docs/1.0.22-alpha/api/problems",component:d("/docs/1.0.22-alpha/api/problems","fee"),exact:!0},{path:"/docs/1.0.22-alpha/api/resolvednode",component:d("/docs/1.0.22-alpha/api/resolvednode","99c"),exact:!0},{path:"/docs/1.0.22-alpha/api/scope",component:d("/docs/1.0.22-alpha/api/scope","d45"),exact:!0},{path:"/docs/1.0.22-alpha/api/space",component:d("/docs/1.0.22-alpha/api/space","b7a"),exact:!0},{path:"/docs/1.0.22-alpha/api/tskeywordsscope",component:d("/docs/1.0.22-alpha/api/tskeywordsscope","744"),exact:!0},{path:"/docs/1.0.22-alpha/api/type",component:d("/docs/1.0.22-alpha/api/type","a00"),exact:!0},{path:"/docs/1.0.22-alpha/api/union",component:d("/docs/1.0.22-alpha/api/union","e4c"),exact:!0},{path:"/docs/1.0.22-alpha/api/validatebound",component:d("/docs/1.0.22-alpha/api/validatebound","452"),exact:!0},{path:"/docs/1.0.22-alpha/api/validatedivisor",component:d("/docs/1.0.22-alpha/api/validatedivisor","ef3"),exact:!0},{path:"/docs/1.0.22-alpha/api/validationscope",component:d("/docs/1.0.22-alpha/api/validationscope","b90"),exact:!0},{path:"/docs/1.0.22-alpha/api/valueof",component:d("/docs/1.0.22-alpha/api/valueof","185"),exact:!0},{path:"/docs/1.0.22-alpha/scopes",component:d("/docs/1.0.22-alpha/scopes","248"),exact:!0,sidebar:"sidebar"}]},{path:"/docs/1.0.23-alpha",component:d("/docs/1.0.23-alpha","472"),routes:[{path:"/docs/1.0.23-alpha/",component:d("/docs/1.0.23-alpha/","7a7"),exact:!0,sidebar:"sidebar"},{path:"/docs/1.0.23-alpha/api",component:d("/docs/1.0.23-alpha/api","b93"),exact:!0,sidebar:"sidebar"},{path:"/docs/1.0.23-alpha/api/ark",component:d("/docs/1.0.23-alpha/api/ark","68d"),exact:!0},{path:"/docs/1.0.23-alpha/api/arkscope",component:d("/docs/1.0.23-alpha/api/arkscope","744"),exact:!0},{path:"/docs/1.0.23-alpha/api/arrayof",component:d("/docs/1.0.23-alpha/api/arrayof","18b"),exact:!0},{path:"/docs/1.0.23-alpha/api/infer",component:d("/docs/1.0.23-alpha/api/infer","6ac"),exact:!0},{path:"/docs/1.0.23-alpha/api/instanceof",component:d("/docs/1.0.23-alpha/api/instanceof","702"),exact:!0},{path:"/docs/1.0.23-alpha/api/intersection",component:d("/docs/1.0.23-alpha/api/intersection","69d"),exact:!0},{path:"/docs/1.0.23-alpha/api/jsobjectsscope",component:d("/docs/1.0.23-alpha/api/jsobjectsscope","2c9"),exact:!0},{path:"/docs/1.0.23-alpha/api/keyof",component:d("/docs/1.0.23-alpha/api/keyof","a4c"),exact:!0},{path:"/docs/1.0.23-alpha/api/keywords",component:d("/docs/1.0.23-alpha/api/keywords","2d2"),exact:!0,sidebar:"sidebar"},{path:"/docs/1.0.23-alpha/api/morph",component:d("/docs/1.0.23-alpha/api/morph","cc8"),exact:!0},{path:"/docs/1.0.23-alpha/api/narrow",component:d("/docs/1.0.23-alpha/api/narrow","e76"),exact:!0},{path:"/docs/1.0.23-alpha/api/operators",component:d("/docs/1.0.23-alpha/api/operators","12d"),exact:!0,sidebar:"sidebar"},{path:"/docs/1.0.23-alpha/api/parseconfigtuple",component:d("/docs/1.0.23-alpha/api/parseconfigtuple","b54"),exact:!0},{path:"/docs/1.0.23-alpha/api/problem",component:d("/docs/1.0.23-alpha/api/problem","234"),exact:!0},{path:"/docs/1.0.23-alpha/api/problems",component:d("/docs/1.0.23-alpha/api/problems","e9b"),exact:!0},{path:"/docs/1.0.23-alpha/api/resolvednode",component:d("/docs/1.0.23-alpha/api/resolvednode","250"),exact:!0},{path:"/docs/1.0.23-alpha/api/scope",component:d("/docs/1.0.23-alpha/api/scope","515"),exact:!0},{path:"/docs/1.0.23-alpha/api/space",component:d("/docs/1.0.23-alpha/api/space","a89"),exact:!0},{path:"/docs/1.0.23-alpha/api/tskeywordsscope",component:d("/docs/1.0.23-alpha/api/tskeywordsscope","981"),exact:!0},{path:"/docs/1.0.23-alpha/api/type",component:d("/docs/1.0.23-alpha/api/type","c70"),exact:!0},{path:"/docs/1.0.23-alpha/api/union",component:d("/docs/1.0.23-alpha/api/union","0b4"),exact:!0},{path:"/docs/1.0.23-alpha/api/validatebound",component:d("/docs/1.0.23-alpha/api/validatebound","a9e"),exact:!0},{path:"/docs/1.0.23-alpha/api/validatedivisor",component:d("/docs/1.0.23-alpha/api/validatedivisor","0d3"),exact:!0},{path:"/docs/1.0.23-alpha/api/validationscope",component:d("/docs/1.0.23-alpha/api/validationscope","349"),exact:!0},{path:"/docs/1.0.23-alpha/api/valueof",component:d("/docs/1.0.23-alpha/api/valueof","688"),exact:!0},{path:"/docs/1.0.23-alpha/scopes",component:d("/docs/1.0.23-alpha/scopes","fdf"),exact:!0,sidebar:"sidebar"}]},{path:"/docs/1.0.24-alpha",component:d("/docs/1.0.24-alpha","8b1"),routes:[{path:"/docs/1.0.24-alpha/",component:d("/docs/1.0.24-alpha/","ee8"),exact:!0,sidebar:"sidebar"},{path:"/docs/1.0.24-alpha/api",component:d("/docs/1.0.24-alpha/api","822"),exact:!0,sidebar:"sidebar"},{path:"/docs/1.0.24-alpha/api/ark",component:d("/docs/1.0.24-alpha/api/ark","fe5"),exact:!0},{path:"/docs/1.0.24-alpha/api/arkscope",component:d("/docs/1.0.24-alpha/api/arkscope","7ff"),exact:!0},{path:"/docs/1.0.24-alpha/api/arrayof",component:d("/docs/1.0.24-alpha/api/arrayof","688"),exact:!0},{path:"/docs/1.0.24-alpha/api/infer",component:d("/docs/1.0.24-alpha/api/infer","192"),exact:!0},{path:"/docs/1.0.24-alpha/api/inferdefinition",component:d("/docs/1.0.24-alpha/api/inferdefinition","d32"),exact:!0},{path:"/docs/1.0.24-alpha/api/instanceof",component:d("/docs/1.0.24-alpha/api/instanceof","523"),exact:!0},{path:"/docs/1.0.24-alpha/api/intersection",component:d("/docs/1.0.24-alpha/api/intersection","23e"),exact:!0},{path:"/docs/1.0.24-alpha/api/jsobjectsscope",component:d("/docs/1.0.24-alpha/api/jsobjectsscope","13e"),exact:!0},{path:"/docs/1.0.24-alpha/api/keyof",component:d("/docs/1.0.24-alpha/api/keyof","cb0"),exact:!0},{path:"/docs/1.0.24-alpha/api/keywords",component:d("/docs/1.0.24-alpha/api/keywords","847"),exact:!0,sidebar:"sidebar"},{path:"/docs/1.0.24-alpha/api/morph",component:d("/docs/1.0.24-alpha/api/morph","5c1"),exact:!0},{path:"/docs/1.0.24-alpha/api/narrow",component:d("/docs/1.0.24-alpha/api/narrow","a43"),exact:!0},{path:"/docs/1.0.24-alpha/api/operators",component:d("/docs/1.0.24-alpha/api/operators","9f2"),exact:!0,sidebar:"sidebar"},{path:"/docs/1.0.24-alpha/api/parseconfigtuple",component:d("/docs/1.0.24-alpha/api/parseconfigtuple","96d"),exact:!0},{path:"/docs/1.0.24-alpha/api/precompileddefaults",component:d("/docs/1.0.24-alpha/api/precompileddefaults","138"),exact:!0},{path:"/docs/1.0.24-alpha/api/problem",component:d("/docs/1.0.24-alpha/api/problem","f98"),exact:!0},{path:"/docs/1.0.24-alpha/api/problems",component:d("/docs/1.0.24-alpha/api/problems","235"),exact:!0},{path:"/docs/1.0.24-alpha/api/resolvednode",component:d("/docs/1.0.24-alpha/api/resolvednode","49b"),exact:!0},{path:"/docs/1.0.24-alpha/api/scope",component:d("/docs/1.0.24-alpha/api/scope","c55"),exact:!0},{path:"/docs/1.0.24-alpha/api/space",component:d("/docs/1.0.24-alpha/api/space","d0d"),exact:!0},{path:"/docs/1.0.24-alpha/api/tskeywordsscope",component:d("/docs/1.0.24-alpha/api/tskeywordsscope","2be"),exact:!0},{path:"/docs/1.0.24-alpha/api/type",component:d("/docs/1.0.24-alpha/api/type","6b0"),exact:!0},{path:"/docs/1.0.24-alpha/api/union",component:d("/docs/1.0.24-alpha/api/union","58b"),exact:!0},{path:"/docs/1.0.24-alpha/api/validatebound",component:d("/docs/1.0.24-alpha/api/validatebound","37c"),exact:!0},{path:"/docs/1.0.24-alpha/api/validatedefinition",component:d("/docs/1.0.24-alpha/api/validatedefinition","d49"),exact:!0},{path:"/docs/1.0.24-alpha/api/validatedivisor",component:d("/docs/1.0.24-alpha/api/validatedivisor","f0a"),exact:!0},{path:"/docs/1.0.24-alpha/api/validationscope",component:d("/docs/1.0.24-alpha/api/validationscope","cc1"),exact:!0},{path:"/docs/1.0.24-alpha/api/valueof",component:d("/docs/1.0.24-alpha/api/valueof","fa9"),exact:!0},{path:"/docs/1.0.24-alpha/scopes",component:d("/docs/1.0.24-alpha/scopes","3b7"),exact:!0,sidebar:"sidebar"}]},{path:"/docs/1.0.25-alpha",component:d("/docs/1.0.25-alpha","993"),routes:[{path:"/docs/1.0.25-alpha/",component:d("/docs/1.0.25-alpha/","4cc"),exact:!0,sidebar:"sidebar"},{path:"/docs/1.0.25-alpha/api",component:d("/docs/1.0.25-alpha/api","680"),exact:!0,sidebar:"sidebar"},{path:"/docs/1.0.25-alpha/api/ark",component:d("/docs/1.0.25-alpha/api/ark","0fe"),exact:!0},{path:"/docs/1.0.25-alpha/api/arkscope",component:d("/docs/1.0.25-alpha/api/arkscope","be9"),exact:!0},{path:"/docs/1.0.25-alpha/api/arrayof",component:d("/docs/1.0.25-alpha/api/arrayof","dfc"),exact:!0},{path:"/docs/1.0.25-alpha/api/infer",component:d("/docs/1.0.25-alpha/api/infer","252"),exact:!0},{path:"/docs/1.0.25-alpha/api/inferdefinition",component:d("/docs/1.0.25-alpha/api/inferdefinition","75e"),exact:!0},{path:"/docs/1.0.25-alpha/api/instanceof",component:d("/docs/1.0.25-alpha/api/instanceof","bda"),exact:!0},{path:"/docs/1.0.25-alpha/api/intersection",component:d("/docs/1.0.25-alpha/api/intersection","038"),exact:!0},{path:"/docs/1.0.25-alpha/api/jsobjectsscope",component:d("/docs/1.0.25-alpha/api/jsobjectsscope","859"),exact:!0},{path:"/docs/1.0.25-alpha/api/keyof",component:d("/docs/1.0.25-alpha/api/keyof","24b"),exact:!0},{path:"/docs/1.0.25-alpha/api/keywords",component:d("/docs/1.0.25-alpha/api/keywords","aad"),exact:!0,sidebar:"sidebar"},{path:"/docs/1.0.25-alpha/api/morph",component:d("/docs/1.0.25-alpha/api/morph","5dd"),exact:!0},{path:"/docs/1.0.25-alpha/api/narrow",component:d("/docs/1.0.25-alpha/api/narrow","072"),exact:!0},{path:"/docs/1.0.25-alpha/api/operators",component:d("/docs/1.0.25-alpha/api/operators","c77"),exact:!0,sidebar:"sidebar"},{path:"/docs/1.0.25-alpha/api/parseconfigtuple",component:d("/docs/1.0.25-alpha/api/parseconfigtuple","aca"),exact:!0},{path:"/docs/1.0.25-alpha/api/precompileddefaults",component:d("/docs/1.0.25-alpha/api/precompileddefaults","b50"),exact:!0},{path:"/docs/1.0.25-alpha/api/problem",component:d("/docs/1.0.25-alpha/api/problem","0b8"),exact:!0},{path:"/docs/1.0.25-alpha/api/problems",component:d("/docs/1.0.25-alpha/api/problems","696"),exact:!0},{path:"/docs/1.0.25-alpha/api/resolvednode",component:d("/docs/1.0.25-alpha/api/resolvednode","f50"),exact:!0},{path:"/docs/1.0.25-alpha/api/scope",component:d("/docs/1.0.25-alpha/api/scope","e01"),exact:!0},{path:"/docs/1.0.25-alpha/api/space",component:d("/docs/1.0.25-alpha/api/space","5ba"),exact:!0},{path:"/docs/1.0.25-alpha/api/tskeywordsscope",component:d("/docs/1.0.25-alpha/api/tskeywordsscope","1be"),exact:!0},{path:"/docs/1.0.25-alpha/api/type",component:d("/docs/1.0.25-alpha/api/type","80e"),exact:!0},{path:"/docs/1.0.25-alpha/api/union",component:d("/docs/1.0.25-alpha/api/union","f8a"),exact:!0},{path:"/docs/1.0.25-alpha/api/validatebound",component:d("/docs/1.0.25-alpha/api/validatebound","b99"),exact:!0},{path:"/docs/1.0.25-alpha/api/validatedefinition",component:d("/docs/1.0.25-alpha/api/validatedefinition","a9f"),exact:!0},{path:"/docs/1.0.25-alpha/api/validatedivisor",component:d("/docs/1.0.25-alpha/api/validatedivisor","99e"),exact:!0},{path:"/docs/1.0.25-alpha/api/validationscope",component:d("/docs/1.0.25-alpha/api/validationscope","97d"),exact:!0},{path:"/docs/1.0.25-alpha/api/valueof",component:d("/docs/1.0.25-alpha/api/valueof","db0"),exact:!0},{path:"/docs/1.0.25-alpha/scopes",component:d("/docs/1.0.25-alpha/scopes","834"),exact:!0,sidebar:"sidebar"}]},{path:"/docs/1.0.26-alpha",component:d("/docs/1.0.26-alpha","e09"),routes:[{path:"/docs/1.0.26-alpha/",component:d("/docs/1.0.26-alpha/","124"),exact:!0,sidebar:"sidebar"},{path:"/docs/1.0.26-alpha/api",component:d("/docs/1.0.26-alpha/api","361"),exact:!0,sidebar:"sidebar"},{path:"/docs/1.0.26-alpha/api/ark",component:d("/docs/1.0.26-alpha/api/ark","43b"),exact:!0},{path:"/docs/1.0.26-alpha/api/arkscope",component:d("/docs/1.0.26-alpha/api/arkscope","d14"),exact:!0},{path:"/docs/1.0.26-alpha/api/arrayof",component:d("/docs/1.0.26-alpha/api/arrayof","4ae"),exact:!0},{path:"/docs/1.0.26-alpha/api/infer",component:d("/docs/1.0.26-alpha/api/infer","6be"),exact:!0},{path:"/docs/1.0.26-alpha/api/inferdefinition",component:d("/docs/1.0.26-alpha/api/inferdefinition","fcc"),exact:!0},{path:"/docs/1.0.26-alpha/api/instanceof",component:d("/docs/1.0.26-alpha/api/instanceof","36f"),exact:!0},{path:"/docs/1.0.26-alpha/api/intersection",component:d("/docs/1.0.26-alpha/api/intersection","593"),exact:!0},{path:"/docs/1.0.26-alpha/api/jsobjectsscope",component:d("/docs/1.0.26-alpha/api/jsobjectsscope","743"),exact:!0},{path:"/docs/1.0.26-alpha/api/keyof",component:d("/docs/1.0.26-alpha/api/keyof","a8c"),exact:!0},{path:"/docs/1.0.26-alpha/api/keywords",component:d("/docs/1.0.26-alpha/api/keywords","7f9"),exact:!0,sidebar:"sidebar"},{path:"/docs/1.0.26-alpha/api/morph",component:d("/docs/1.0.26-alpha/api/morph","027"),exact:!0},{path:"/docs/1.0.26-alpha/api/narrow",component:d("/docs/1.0.26-alpha/api/narrow","fe1"),exact:!0},{path:"/docs/1.0.26-alpha/api/operators",component:d("/docs/1.0.26-alpha/api/operators","044"),exact:!0,sidebar:"sidebar"},{path:"/docs/1.0.26-alpha/api/parseconfigtuple",component:d("/docs/1.0.26-alpha/api/parseconfigtuple","9c4"),exact:!0},{path:"/docs/1.0.26-alpha/api/precompileddefaults",component:d("/docs/1.0.26-alpha/api/precompileddefaults","c48"),exact:!0},{path:"/docs/1.0.26-alpha/api/problem",component:d("/docs/1.0.26-alpha/api/problem","4c0"),exact:!0},{path:"/docs/1.0.26-alpha/api/problems",component:d("/docs/1.0.26-alpha/api/problems","b46"),exact:!0},{path:"/docs/1.0.26-alpha/api/resolvednode",component:d("/docs/1.0.26-alpha/api/resolvednode","48b"),exact:!0},{path:"/docs/1.0.26-alpha/api/scope",component:d("/docs/1.0.26-alpha/api/scope","b5b"),exact:!0},{path:"/docs/1.0.26-alpha/api/space",component:d("/docs/1.0.26-alpha/api/space","56f"),exact:!0},{path:"/docs/1.0.26-alpha/api/tskeywordsscope",component:d("/docs/1.0.26-alpha/api/tskeywordsscope","49d"),exact:!0},{path:"/docs/1.0.26-alpha/api/type",component:d("/docs/1.0.26-alpha/api/type","288"),exact:!0},{path:"/docs/1.0.26-alpha/api/union",component:d("/docs/1.0.26-alpha/api/union","fef"),exact:!0},{path:"/docs/1.0.26-alpha/api/validatebound",component:d("/docs/1.0.26-alpha/api/validatebound","535"),exact:!0},{path:"/docs/1.0.26-alpha/api/validatedefinition",component:d("/docs/1.0.26-alpha/api/validatedefinition","0ea"),exact:!0},{path:"/docs/1.0.26-alpha/api/validatedivisor",component:d("/docs/1.0.26-alpha/api/validatedivisor","fb6"),exact:!0},{path:"/docs/1.0.26-alpha/api/validationscope",component:d("/docs/1.0.26-alpha/api/validationscope","45d"),exact:!0},{path:"/docs/1.0.26-alpha/api/valueof",component:d("/docs/1.0.26-alpha/api/valueof","c89"),exact:!0},{path:"/docs/1.0.26-alpha/scopes",component:d("/docs/1.0.26-alpha/scopes","d73"),exact:!0,sidebar:"sidebar"}]},{path:"/docs/next",component:d("/docs/next","2f6"),routes:[{path:"/docs/next/",component:d("/docs/next/","fd0"),exact:!0,sidebar:"sidebar"},{path:"/docs/next/api",component:d("/docs/next/api","09f"),exact:!0,sidebar:"sidebar"},{path:"/docs/next/api/ark",component:d("/docs/next/api/ark","7a4"),exact:!0},{path:"/docs/next/api/arkscope",component:d("/docs/next/api/arkscope","2c7"),exact:!0},{path:"/docs/next/api/arrayof",component:d("/docs/next/api/arrayof","99e"),exact:!0},{path:"/docs/next/api/infer",component:d("/docs/next/api/infer","c76"),exact:!0},{path:"/docs/next/api/inferdefinition",component:d("/docs/next/api/inferdefinition","27e"),exact:!0},{path:"/docs/next/api/instanceof",component:d("/docs/next/api/instanceof","f88"),exact:!0},{path:"/docs/next/api/intersection",component:d("/docs/next/api/intersection","9b1"),exact:!0},{path:"/docs/next/api/jsobjectsscope",component:d("/docs/next/api/jsobjectsscope","93e"),exact:!0},{path:"/docs/next/api/keyof",component:d("/docs/next/api/keyof","212"),exact:!0},{path:"/docs/next/api/keywords",component:d("/docs/next/api/keywords","8a9"),exact:!0,sidebar:"sidebar"},{path:"/docs/next/api/morph",component:d("/docs/next/api/morph","102"),exact:!0},{path:"/docs/next/api/narrow",component:d("/docs/next/api/narrow","160"),exact:!0},{path:"/docs/next/api/operators",component:d("/docs/next/api/operators","64c"),exact:!0,sidebar:"sidebar"},{path:"/docs/next/api/parseconfigtuple",component:d("/docs/next/api/parseconfigtuple","adc"),exact:!0},{path:"/docs/next/api/precompileddefaults",component:d("/docs/next/api/precompileddefaults","276"),exact:!0},{path:"/docs/next/api/problem",component:d("/docs/next/api/problem","fc8"),exact:!0},{path:"/docs/next/api/problems",component:d("/docs/next/api/problems","6f3"),exact:!0},{path:"/docs/next/api/resolvednode",component:d("/docs/next/api/resolvednode","ea6"),exact:!0},{path:"/docs/next/api/scope",component:d("/docs/next/api/scope","3e4"),exact:!0},{path:"/docs/next/api/space",component:d("/docs/next/api/space","e22"),exact:!0},{path:"/docs/next/api/tskeywordsscope",component:d("/docs/next/api/tskeywordsscope","55d"),exact:!0},{path:"/docs/next/api/type",component:d("/docs/next/api/type","def"),exact:!0},{path:"/docs/next/api/union",component:d("/docs/next/api/union","870"),exact:!0},{path:"/docs/next/api/validatebound",component:d("/docs/next/api/validatebound","23c"),exact:!0},{path:"/docs/next/api/validatedefinition",component:d("/docs/next/api/validatedefinition","bc1"),exact:!0},{path:"/docs/next/api/validatedivisor",component:d("/docs/next/api/validatedivisor","206"),exact:!0},{path:"/docs/next/api/validationscope",component:d("/docs/next/api/validationscope","440"),exact:!0},{path:"/docs/next/api/valueof",component:d("/docs/next/api/valueof","dac"),exact:!0},{path:"/docs/next/scopes",component:d("/docs/next/scopes","4a8"),exact:!0,sidebar:"sidebar"}]},{path:"/docs",component:d("/docs","4e6"),routes:[{path:"/docs/",component:d("/docs/","b99"),exact:!0,sidebar:"sidebar"},{path:"/docs/api",component:d("/docs/api","05a"),exact:!0,sidebar:"sidebar"},{path:"/docs/api/ark",component:d("/docs/api/ark","6c0"),exact:!0},{path:"/docs/api/arkscope",component:d("/docs/api/arkscope","3a6"),exact:!0},{path:"/docs/api/arrayof",component:d("/docs/api/arrayof","3e9"),exact:!0},{path:"/docs/api/infer",component:d("/docs/api/infer","184"),exact:!0},{path:"/docs/api/inferdefinition",component:d("/docs/api/inferdefinition","fb2"),exact:!0},{path:"/docs/api/instanceof",component:d("/docs/api/instanceof","8fa"),exact:!0},{path:"/docs/api/intersection",component:d("/docs/api/intersection","a0f"),exact:!0},{path:"/docs/api/jsobjectsscope",component:d("/docs/api/jsobjectsscope","20b"),exact:!0},{path:"/docs/api/keyof",component:d("/docs/api/keyof","075"),exact:!0},{path:"/docs/api/keywords",component:d("/docs/api/keywords","130"),exact:!0,sidebar:"sidebar"},{path:"/docs/api/morph",component:d("/docs/api/morph","d2c"),exact:!0},{path:"/docs/api/narrow",component:d("/docs/api/narrow","68e"),exact:!0},{path:"/docs/api/operators",component:d("/docs/api/operators","e95"),exact:!0,sidebar:"sidebar"},{path:"/docs/api/parseconfigtuple",component:d("/docs/api/parseconfigtuple","5c8"),exact:!0},{path:"/docs/api/precompileddefaults",component:d("/docs/api/precompileddefaults","c71"),exact:!0},{path:"/docs/api/problem",component:d("/docs/api/problem","f21"),exact:!0},{path:"/docs/api/problems",component:d("/docs/api/problems","25a"),exact:!0},{path:"/docs/api/resolvednode",component:d("/docs/api/resolvednode","ada"),exact:!0},{path:"/docs/api/scope",component:d("/docs/api/scope","05d"),exact:!0},{path:"/docs/api/space",component:d("/docs/api/space","614"),exact:!0},{path:"/docs/api/tskeywordsscope",component:d("/docs/api/tskeywordsscope","05d"),exact:!0},{path:"/docs/api/type",component:d("/docs/api/type","12e"),exact:!0},{path:"/docs/api/union",component:d("/docs/api/union","ee2"),exact:!0},{path:"/docs/api/validatebound",component:d("/docs/api/validatebound","384"),exact:!0},{path:"/docs/api/validatedefinition",component:d("/docs/api/validatedefinition","a5e"),exact:!0},{path:"/docs/api/validatedivisor",component:d("/docs/api/validatedivisor","b8a"),exact:!0},{path:"/docs/api/validationscope",component:d("/docs/api/validationscope","0a3"),exact:!0},{path:"/docs/api/valueof",component:d("/docs/api/valueof","778"),exact:!0},{path:"/docs/scopes",component:d("/docs/scopes","e5e"),exact:!0,sidebar:"sidebar"}]},{path:"/",component:d("/","357"),exact:!0},{path:"*",component:d("*")}]},41417:(e,t,n)=>{"use strict";n.d(t,{_:()=>r,t:()=>o});var a=n(29901),r=a.createContext(!1);function o(e){var t=e.children,n=(0,a.useState)(!1),o=n[0],i=n[1];return(0,a.useEffect)((function(){i(!0)}),[]),a.createElement(r.Provider,{value:o},t)}},29020:(e,t,n)=>{"use strict";var a=n(29901),r=n(10571),o=n(97114),i=n(44455),s=n(53157);const l=[n(28458),n(86019),n(7666),n(49102),n(53555)];var c=n(78533),u=n(96172),p=n(17178);function d(e){var t=e.children;return a.createElement(a.Fragment,null,t)}var f=n(54805),h=n(89271),m=n(43597),v=n(86820),b=n(90610),g=n(22275),y=n(4197),w=n(55364),k=n(81265),_=n(30792);function x(){var e=(0,m.Z)().i18n,t=e.defaultLocale,n=e.localeConfigs,r=(0,y.l)();return a.createElement(h.Z,null,Object.entries(n).map((function(e){var t=e[0],n=e[1].htmlLang;return a.createElement("link",{key:t,rel:"alternate",href:r.createUrl({locale:t,fullyQualified:!0}),hrefLang:n})})),a.createElement("link",{rel:"alternate",href:r.createUrl({locale:t,fullyQualified:!0}),hrefLang:"x-default"}))}function E(e){var t=e.permalink,n=(0,m.Z)().siteConfig.url,r=function(){var e=(0,m.Z)().siteConfig.url,t=(0,u.TH)().pathname;return e+(0,v.Z)(t)}(),o=t?""+n+t:r;return a.createElement(h.Z,null,a.createElement("meta",{property:"og:url",content:o}),a.createElement("link",{rel:"canonical",href:o}))}function S(){var e=(0,m.Z)().i18n.currentLocale,t=(0,b.L)(),n=t.metadata,r=t.image;return a.createElement(a.Fragment,null,a.createElement(h.Z,null,a.createElement("meta",{name:"twitter:card",content:"summary_large_image"}),a.createElement("body",{className:w.h})),r&&a.createElement(g.d,{image:r}),a.createElement(E,null),a.createElement(x,null),a.createElement(_.Z,{tag:k.HX,locale:e}),a.createElement(h.Z,null,n.map((function(e,t){return a.createElement("meta",(0,f.Z)({key:t},e))}))))}var C=new Map;function T(e){if(C.has(e.pathname))return Object.assign({},e,{pathname:C.get(e.pathname)});if((0,p.f)(c.Z,e.pathname).some((function(e){return!0===e.route.exact})))return C.set(e.pathname,e.pathname),e;var t=e.pathname.trim().replace(/(?:\/index)?\.html$/,"")||"/";return C.set(e.pathname,t),Object.assign({},e,{pathname:t})}var L=n(41417),A=n(41493),R=n(45701);function P(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a\n

Your Docusaurus site did not load properly.

\n

A very common reason is a wrong site baseUrl configuration.

\n

Current configured baseUrl = '+e+" "+("/"===e?" (default value)":"")+'

\n

We suggest trying baseUrl =

\n\n'}(e)).replace(/{"use strict";n.d(t,{_:()=>u,M:()=>p});var a=n(29901),r=n(36809);const o=JSON.parse('{"docusaurus-plugin-google-gtag":{"default":{"trackingID":["G-FE16ZX1CZQ"],"anonymizeIP":true,"id":"default"}},"docusaurus-plugin-content-docs":{"default":{"path":"/docs","versions":[{"name":"current","label":"Next","isLast":false,"path":"/docs/next","mainDocId":"intro","docs":[{"id":"api","path":"/docs/next/api","sidebar":"sidebar"},{"id":"api/ark","path":"/docs/next/api/ark"},{"id":"api/arkscope","path":"/docs/next/api/arkscope"},{"id":"api/arrayof","path":"/docs/next/api/arrayof"},{"id":"api/infer","path":"/docs/next/api/infer"},{"id":"api/inferdefinition","path":"/docs/next/api/inferdefinition"},{"id":"api/instanceof","path":"/docs/next/api/instanceof"},{"id":"api/intersection","path":"/docs/next/api/intersection"},{"id":"api/jsobjectsscope","path":"/docs/next/api/jsobjectsscope"},{"id":"api/keyof","path":"/docs/next/api/keyof"},{"id":"api/keywords","path":"/docs/next/api/keywords","sidebar":"sidebar"},{"id":"api/morph","path":"/docs/next/api/morph"},{"id":"api/narrow","path":"/docs/next/api/narrow"},{"id":"api/operators","path":"/docs/next/api/operators","sidebar":"sidebar"},{"id":"api/parseconfigtuple","path":"/docs/next/api/parseconfigtuple"},{"id":"api/precompileddefaults","path":"/docs/next/api/precompileddefaults"},{"id":"api/problem","path":"/docs/next/api/problem"},{"id":"api/problems","path":"/docs/next/api/problems"},{"id":"api/resolvednode","path":"/docs/next/api/resolvednode"},{"id":"api/scope","path":"/docs/next/api/scope"},{"id":"api/space","path":"/docs/next/api/space"},{"id":"api/tskeywordsscope","path":"/docs/next/api/tskeywordsscope"},{"id":"api/type","path":"/docs/next/api/type"},{"id":"api/union","path":"/docs/next/api/union"},{"id":"api/validatebound","path":"/docs/next/api/validatebound"},{"id":"api/validatedefinition","path":"/docs/next/api/validatedefinition"},{"id":"api/validatedivisor","path":"/docs/next/api/validatedivisor"},{"id":"api/validationscope","path":"/docs/next/api/validationscope"},{"id":"api/valueof","path":"/docs/next/api/valueof"},{"id":"intro","path":"/docs/next/","sidebar":"sidebar"},{"id":"scopes","path":"/docs/next/scopes","sidebar":"sidebar"}],"draftIds":[],"sidebars":{"sidebar":{"link":{"path":"/docs/next/","label":"Types"}}}},{"name":"1.0.27-alpha","label":"1.0.27-alpha","isLast":true,"path":"/docs","mainDocId":"intro","docs":[{"id":"api","path":"/docs/api","sidebar":"sidebar"},{"id":"api/ark","path":"/docs/api/ark"},{"id":"api/arkscope","path":"/docs/api/arkscope"},{"id":"api/arrayof","path":"/docs/api/arrayof"},{"id":"api/infer","path":"/docs/api/infer"},{"id":"api/inferdefinition","path":"/docs/api/inferdefinition"},{"id":"api/instanceof","path":"/docs/api/instanceof"},{"id":"api/intersection","path":"/docs/api/intersection"},{"id":"api/jsobjectsscope","path":"/docs/api/jsobjectsscope"},{"id":"api/keyof","path":"/docs/api/keyof"},{"id":"api/keywords","path":"/docs/api/keywords","sidebar":"sidebar"},{"id":"api/morph","path":"/docs/api/morph"},{"id":"api/narrow","path":"/docs/api/narrow"},{"id":"api/operators","path":"/docs/api/operators","sidebar":"sidebar"},{"id":"api/parseconfigtuple","path":"/docs/api/parseconfigtuple"},{"id":"api/precompileddefaults","path":"/docs/api/precompileddefaults"},{"id":"api/problem","path":"/docs/api/problem"},{"id":"api/problems","path":"/docs/api/problems"},{"id":"api/resolvednode","path":"/docs/api/resolvednode"},{"id":"api/scope","path":"/docs/api/scope"},{"id":"api/space","path":"/docs/api/space"},{"id":"api/tskeywordsscope","path":"/docs/api/tskeywordsscope"},{"id":"api/type","path":"/docs/api/type"},{"id":"api/union","path":"/docs/api/union"},{"id":"api/validatebound","path":"/docs/api/validatebound"},{"id":"api/validatedefinition","path":"/docs/api/validatedefinition"},{"id":"api/validatedivisor","path":"/docs/api/validatedivisor"},{"id":"api/validationscope","path":"/docs/api/validationscope"},{"id":"api/valueof","path":"/docs/api/valueof"},{"id":"intro","path":"/docs/","sidebar":"sidebar"},{"id":"scopes","path":"/docs/scopes","sidebar":"sidebar"}],"draftIds":[],"sidebars":{"sidebar":{"link":{"path":"/docs/","label":"Types"}}}},{"name":"1.0.26-alpha","label":"1.0.26-alpha","isLast":false,"path":"/docs/1.0.26-alpha","mainDocId":"intro","docs":[{"id":"api","path":"/docs/1.0.26-alpha/api","sidebar":"sidebar"},{"id":"api/ark","path":"/docs/1.0.26-alpha/api/ark"},{"id":"api/arkscope","path":"/docs/1.0.26-alpha/api/arkscope"},{"id":"api/arrayof","path":"/docs/1.0.26-alpha/api/arrayof"},{"id":"api/infer","path":"/docs/1.0.26-alpha/api/infer"},{"id":"api/inferdefinition","path":"/docs/1.0.26-alpha/api/inferdefinition"},{"id":"api/instanceof","path":"/docs/1.0.26-alpha/api/instanceof"},{"id":"api/intersection","path":"/docs/1.0.26-alpha/api/intersection"},{"id":"api/jsobjectsscope","path":"/docs/1.0.26-alpha/api/jsobjectsscope"},{"id":"api/keyof","path":"/docs/1.0.26-alpha/api/keyof"},{"id":"api/keywords","path":"/docs/1.0.26-alpha/api/keywords","sidebar":"sidebar"},{"id":"api/morph","path":"/docs/1.0.26-alpha/api/morph"},{"id":"api/narrow","path":"/docs/1.0.26-alpha/api/narrow"},{"id":"api/operators","path":"/docs/1.0.26-alpha/api/operators","sidebar":"sidebar"},{"id":"api/parseconfigtuple","path":"/docs/1.0.26-alpha/api/parseconfigtuple"},{"id":"api/precompileddefaults","path":"/docs/1.0.26-alpha/api/precompileddefaults"},{"id":"api/problem","path":"/docs/1.0.26-alpha/api/problem"},{"id":"api/problems","path":"/docs/1.0.26-alpha/api/problems"},{"id":"api/resolvednode","path":"/docs/1.0.26-alpha/api/resolvednode"},{"id":"api/scope","path":"/docs/1.0.26-alpha/api/scope"},{"id":"api/space","path":"/docs/1.0.26-alpha/api/space"},{"id":"api/tskeywordsscope","path":"/docs/1.0.26-alpha/api/tskeywordsscope"},{"id":"api/type","path":"/docs/1.0.26-alpha/api/type"},{"id":"api/union","path":"/docs/1.0.26-alpha/api/union"},{"id":"api/validatebound","path":"/docs/1.0.26-alpha/api/validatebound"},{"id":"api/validatedefinition","path":"/docs/1.0.26-alpha/api/validatedefinition"},{"id":"api/validatedivisor","path":"/docs/1.0.26-alpha/api/validatedivisor"},{"id":"api/validationscope","path":"/docs/1.0.26-alpha/api/validationscope"},{"id":"api/valueof","path":"/docs/1.0.26-alpha/api/valueof"},{"id":"intro","path":"/docs/1.0.26-alpha/","sidebar":"sidebar"},{"id":"scopes","path":"/docs/1.0.26-alpha/scopes","sidebar":"sidebar"}],"draftIds":[],"sidebars":{"sidebar":{"link":{"path":"/docs/1.0.26-alpha/","label":"Types"}}}},{"name":"1.0.25-alpha","label":"1.0.25-alpha","isLast":false,"path":"/docs/1.0.25-alpha","mainDocId":"intro","docs":[{"id":"api","path":"/docs/1.0.25-alpha/api","sidebar":"sidebar"},{"id":"api/ark","path":"/docs/1.0.25-alpha/api/ark"},{"id":"api/arkscope","path":"/docs/1.0.25-alpha/api/arkscope"},{"id":"api/arrayof","path":"/docs/1.0.25-alpha/api/arrayof"},{"id":"api/infer","path":"/docs/1.0.25-alpha/api/infer"},{"id":"api/inferdefinition","path":"/docs/1.0.25-alpha/api/inferdefinition"},{"id":"api/instanceof","path":"/docs/1.0.25-alpha/api/instanceof"},{"id":"api/intersection","path":"/docs/1.0.25-alpha/api/intersection"},{"id":"api/jsobjectsscope","path":"/docs/1.0.25-alpha/api/jsobjectsscope"},{"id":"api/keyof","path":"/docs/1.0.25-alpha/api/keyof"},{"id":"api/keywords","path":"/docs/1.0.25-alpha/api/keywords","sidebar":"sidebar"},{"id":"api/morph","path":"/docs/1.0.25-alpha/api/morph"},{"id":"api/narrow","path":"/docs/1.0.25-alpha/api/narrow"},{"id":"api/operators","path":"/docs/1.0.25-alpha/api/operators","sidebar":"sidebar"},{"id":"api/parseconfigtuple","path":"/docs/1.0.25-alpha/api/parseconfigtuple"},{"id":"api/precompileddefaults","path":"/docs/1.0.25-alpha/api/precompileddefaults"},{"id":"api/problem","path":"/docs/1.0.25-alpha/api/problem"},{"id":"api/problems","path":"/docs/1.0.25-alpha/api/problems"},{"id":"api/resolvednode","path":"/docs/1.0.25-alpha/api/resolvednode"},{"id":"api/scope","path":"/docs/1.0.25-alpha/api/scope"},{"id":"api/space","path":"/docs/1.0.25-alpha/api/space"},{"id":"api/tskeywordsscope","path":"/docs/1.0.25-alpha/api/tskeywordsscope"},{"id":"api/type","path":"/docs/1.0.25-alpha/api/type"},{"id":"api/union","path":"/docs/1.0.25-alpha/api/union"},{"id":"api/validatebound","path":"/docs/1.0.25-alpha/api/validatebound"},{"id":"api/validatedefinition","path":"/docs/1.0.25-alpha/api/validatedefinition"},{"id":"api/validatedivisor","path":"/docs/1.0.25-alpha/api/validatedivisor"},{"id":"api/validationscope","path":"/docs/1.0.25-alpha/api/validationscope"},{"id":"api/valueof","path":"/docs/1.0.25-alpha/api/valueof"},{"id":"intro","path":"/docs/1.0.25-alpha/","sidebar":"sidebar"},{"id":"scopes","path":"/docs/1.0.25-alpha/scopes","sidebar":"sidebar"}],"draftIds":[],"sidebars":{"sidebar":{"link":{"path":"/docs/1.0.25-alpha/","label":"Types"}}}},{"name":"1.0.24-alpha","label":"1.0.24-alpha","isLast":false,"path":"/docs/1.0.24-alpha","mainDocId":"intro","docs":[{"id":"api","path":"/docs/1.0.24-alpha/api","sidebar":"sidebar"},{"id":"api/ark","path":"/docs/1.0.24-alpha/api/ark"},{"id":"api/arkscope","path":"/docs/1.0.24-alpha/api/arkscope"},{"id":"api/arrayof","path":"/docs/1.0.24-alpha/api/arrayof"},{"id":"api/infer","path":"/docs/1.0.24-alpha/api/infer"},{"id":"api/inferdefinition","path":"/docs/1.0.24-alpha/api/inferdefinition"},{"id":"api/instanceof","path":"/docs/1.0.24-alpha/api/instanceof"},{"id":"api/intersection","path":"/docs/1.0.24-alpha/api/intersection"},{"id":"api/jsobjectsscope","path":"/docs/1.0.24-alpha/api/jsobjectsscope"},{"id":"api/keyof","path":"/docs/1.0.24-alpha/api/keyof"},{"id":"api/keywords","path":"/docs/1.0.24-alpha/api/keywords","sidebar":"sidebar"},{"id":"api/morph","path":"/docs/1.0.24-alpha/api/morph"},{"id":"api/narrow","path":"/docs/1.0.24-alpha/api/narrow"},{"id":"api/operators","path":"/docs/1.0.24-alpha/api/operators","sidebar":"sidebar"},{"id":"api/parseconfigtuple","path":"/docs/1.0.24-alpha/api/parseconfigtuple"},{"id":"api/precompileddefaults","path":"/docs/1.0.24-alpha/api/precompileddefaults"},{"id":"api/problem","path":"/docs/1.0.24-alpha/api/problem"},{"id":"api/problems","path":"/docs/1.0.24-alpha/api/problems"},{"id":"api/resolvednode","path":"/docs/1.0.24-alpha/api/resolvednode"},{"id":"api/scope","path":"/docs/1.0.24-alpha/api/scope"},{"id":"api/space","path":"/docs/1.0.24-alpha/api/space"},{"id":"api/tskeywordsscope","path":"/docs/1.0.24-alpha/api/tskeywordsscope"},{"id":"api/type","path":"/docs/1.0.24-alpha/api/type"},{"id":"api/union","path":"/docs/1.0.24-alpha/api/union"},{"id":"api/validatebound","path":"/docs/1.0.24-alpha/api/validatebound"},{"id":"api/validatedefinition","path":"/docs/1.0.24-alpha/api/validatedefinition"},{"id":"api/validatedivisor","path":"/docs/1.0.24-alpha/api/validatedivisor"},{"id":"api/validationscope","path":"/docs/1.0.24-alpha/api/validationscope"},{"id":"api/valueof","path":"/docs/1.0.24-alpha/api/valueof"},{"id":"intro","path":"/docs/1.0.24-alpha/","sidebar":"sidebar"},{"id":"scopes","path":"/docs/1.0.24-alpha/scopes","sidebar":"sidebar"}],"draftIds":[],"sidebars":{"sidebar":{"link":{"path":"/docs/1.0.24-alpha/","label":"Types"}}}},{"name":"1.0.23-alpha","label":"1.0.23-alpha","isLast":false,"path":"/docs/1.0.23-alpha","mainDocId":"intro","docs":[{"id":"api","path":"/docs/1.0.23-alpha/api","sidebar":"sidebar"},{"id":"api/ark","path":"/docs/1.0.23-alpha/api/ark"},{"id":"api/arkscope","path":"/docs/1.0.23-alpha/api/arkscope"},{"id":"api/arrayof","path":"/docs/1.0.23-alpha/api/arrayof"},{"id":"api/infer","path":"/docs/1.0.23-alpha/api/infer"},{"id":"api/instanceof","path":"/docs/1.0.23-alpha/api/instanceof"},{"id":"api/intersection","path":"/docs/1.0.23-alpha/api/intersection"},{"id":"api/jsobjectsscope","path":"/docs/1.0.23-alpha/api/jsobjectsscope"},{"id":"api/keyof","path":"/docs/1.0.23-alpha/api/keyof"},{"id":"api/keywords","path":"/docs/1.0.23-alpha/api/keywords","sidebar":"sidebar"},{"id":"api/morph","path":"/docs/1.0.23-alpha/api/morph"},{"id":"api/narrow","path":"/docs/1.0.23-alpha/api/narrow"},{"id":"api/operators","path":"/docs/1.0.23-alpha/api/operators","sidebar":"sidebar"},{"id":"api/parseconfigtuple","path":"/docs/1.0.23-alpha/api/parseconfigtuple"},{"id":"api/problem","path":"/docs/1.0.23-alpha/api/problem"},{"id":"api/problems","path":"/docs/1.0.23-alpha/api/problems"},{"id":"api/resolvednode","path":"/docs/1.0.23-alpha/api/resolvednode"},{"id":"api/scope","path":"/docs/1.0.23-alpha/api/scope"},{"id":"api/space","path":"/docs/1.0.23-alpha/api/space"},{"id":"api/tskeywordsscope","path":"/docs/1.0.23-alpha/api/tskeywordsscope"},{"id":"api/type","path":"/docs/1.0.23-alpha/api/type"},{"id":"api/union","path":"/docs/1.0.23-alpha/api/union"},{"id":"api/validatebound","path":"/docs/1.0.23-alpha/api/validatebound"},{"id":"api/validatedivisor","path":"/docs/1.0.23-alpha/api/validatedivisor"},{"id":"api/validationscope","path":"/docs/1.0.23-alpha/api/validationscope"},{"id":"api/valueof","path":"/docs/1.0.23-alpha/api/valueof"},{"id":"intro","path":"/docs/1.0.23-alpha/","sidebar":"sidebar"},{"id":"scopes","path":"/docs/1.0.23-alpha/scopes","sidebar":"sidebar"}],"draftIds":[],"sidebars":{"sidebar":{"link":{"path":"/docs/1.0.23-alpha/","label":"Types"}}}},{"name":"1.0.22-alpha","label":"1.0.22-alpha","isLast":false,"path":"/docs/1.0.22-alpha","mainDocId":"intro","docs":[{"id":"api","path":"/docs/1.0.22-alpha/api","sidebar":"sidebar"},{"id":"api/ark","path":"/docs/1.0.22-alpha/api/ark"},{"id":"api/arkscope","path":"/docs/1.0.22-alpha/api/arkscope"},{"id":"api/arrayof","path":"/docs/1.0.22-alpha/api/arrayof"},{"id":"api/infer","path":"/docs/1.0.22-alpha/api/infer"},{"id":"api/instanceof","path":"/docs/1.0.22-alpha/api/instanceof"},{"id":"api/intersection","path":"/docs/1.0.22-alpha/api/intersection"},{"id":"api/jsobjectsscope","path":"/docs/1.0.22-alpha/api/jsobjectsscope"},{"id":"api/keyof","path":"/docs/1.0.22-alpha/api/keyof"},{"id":"api/keywords","path":"/docs/1.0.22-alpha/api/keywords","sidebar":"sidebar"},{"id":"api/morph","path":"/docs/1.0.22-alpha/api/morph"},{"id":"api/narrow","path":"/docs/1.0.22-alpha/api/narrow"},{"id":"api/operators","path":"/docs/1.0.22-alpha/api/operators","sidebar":"sidebar"},{"id":"api/parseconfigtuple","path":"/docs/1.0.22-alpha/api/parseconfigtuple"},{"id":"api/problem","path":"/docs/1.0.22-alpha/api/problem"},{"id":"api/problems","path":"/docs/1.0.22-alpha/api/problems"},{"id":"api/resolvednode","path":"/docs/1.0.22-alpha/api/resolvednode"},{"id":"api/scope","path":"/docs/1.0.22-alpha/api/scope"},{"id":"api/space","path":"/docs/1.0.22-alpha/api/space"},{"id":"api/tskeywordsscope","path":"/docs/1.0.22-alpha/api/tskeywordsscope"},{"id":"api/type","path":"/docs/1.0.22-alpha/api/type"},{"id":"api/union","path":"/docs/1.0.22-alpha/api/union"},{"id":"api/validatebound","path":"/docs/1.0.22-alpha/api/validatebound"},{"id":"api/validatedivisor","path":"/docs/1.0.22-alpha/api/validatedivisor"},{"id":"api/validationscope","path":"/docs/1.0.22-alpha/api/validationscope"},{"id":"api/valueof","path":"/docs/1.0.22-alpha/api/valueof"},{"id":"intro","path":"/docs/1.0.22-alpha/","sidebar":"sidebar"},{"id":"scopes","path":"/docs/1.0.22-alpha/scopes","sidebar":"sidebar"}],"draftIds":[],"sidebars":{"sidebar":{"link":{"path":"/docs/1.0.22-alpha/","label":"Types"}}}},{"name":"1.0.21-alpha","label":"1.0.21-alpha","isLast":false,"path":"/docs/1.0.21-alpha","mainDocId":"intro","docs":[{"id":"api","path":"/docs/1.0.21-alpha/api","sidebar":"sidebar"},{"id":"api/ark","path":"/docs/1.0.21-alpha/api/ark"},{"id":"api/arkscope","path":"/docs/1.0.21-alpha/api/arkscope"},{"id":"api/arrayof","path":"/docs/1.0.21-alpha/api/arrayof"},{"id":"api/infer","path":"/docs/1.0.21-alpha/api/infer"},{"id":"api/instanceof","path":"/docs/1.0.21-alpha/api/instanceof"},{"id":"api/intersection","path":"/docs/1.0.21-alpha/api/intersection"},{"id":"api/jsobjectsscope","path":"/docs/1.0.21-alpha/api/jsobjectsscope"},{"id":"api/keyof","path":"/docs/1.0.21-alpha/api/keyof"},{"id":"api/keywords","path":"/docs/1.0.21-alpha/api/keywords","sidebar":"sidebar"},{"id":"api/morph","path":"/docs/1.0.21-alpha/api/morph"},{"id":"api/narrow","path":"/docs/1.0.21-alpha/api/narrow"},{"id":"api/operators","path":"/docs/1.0.21-alpha/api/operators","sidebar":"sidebar"},{"id":"api/parseconfigtuple","path":"/docs/1.0.21-alpha/api/parseconfigtuple"},{"id":"api/problem","path":"/docs/1.0.21-alpha/api/problem"},{"id":"api/problems","path":"/docs/1.0.21-alpha/api/problems"},{"id":"api/resolvednode","path":"/docs/1.0.21-alpha/api/resolvednode"},{"id":"api/scope","path":"/docs/1.0.21-alpha/api/scope"},{"id":"api/space","path":"/docs/1.0.21-alpha/api/space"},{"id":"api/tskeywordsscope","path":"/docs/1.0.21-alpha/api/tskeywordsscope"},{"id":"api/type","path":"/docs/1.0.21-alpha/api/type"},{"id":"api/union","path":"/docs/1.0.21-alpha/api/union"},{"id":"api/validatebound","path":"/docs/1.0.21-alpha/api/validatebound"},{"id":"api/validatedivisor","path":"/docs/1.0.21-alpha/api/validatedivisor"},{"id":"api/validationscope","path":"/docs/1.0.21-alpha/api/validationscope"},{"id":"api/valueof","path":"/docs/1.0.21-alpha/api/valueof"},{"id":"intro","path":"/docs/1.0.21-alpha/","sidebar":"sidebar"},{"id":"scopes","path":"/docs/1.0.21-alpha/scopes","sidebar":"sidebar"}],"draftIds":[],"sidebars":{"sidebar":{"link":{"path":"/docs/1.0.21-alpha/","label":"Types"}}}},{"name":"1.0.20-alpha","label":"1.0.20-alpha","isLast":false,"path":"/docs/1.0.20-alpha","mainDocId":"intro","docs":[{"id":"api","path":"/docs/1.0.20-alpha/api","sidebar":"sidebar"},{"id":"api/ark","path":"/docs/1.0.20-alpha/api/ark"},{"id":"api/arkscope","path":"/docs/1.0.20-alpha/api/arkscope"},{"id":"api/arrayof","path":"/docs/1.0.20-alpha/api/arrayof"},{"id":"api/infer","path":"/docs/1.0.20-alpha/api/infer"},{"id":"api/instanceof","path":"/docs/1.0.20-alpha/api/instanceof"},{"id":"api/intersection","path":"/docs/1.0.20-alpha/api/intersection"},{"id":"api/jsobjectsscope","path":"/docs/1.0.20-alpha/api/jsobjectsscope"},{"id":"api/keyof","path":"/docs/1.0.20-alpha/api/keyof"},{"id":"api/keywords","path":"/docs/1.0.20-alpha/api/keywords","sidebar":"sidebar"},{"id":"api/morph","path":"/docs/1.0.20-alpha/api/morph"},{"id":"api/narrow","path":"/docs/1.0.20-alpha/api/narrow"},{"id":"api/operators","path":"/docs/1.0.20-alpha/api/operators","sidebar":"sidebar"},{"id":"api/parseconfigtuple","path":"/docs/1.0.20-alpha/api/parseconfigtuple"},{"id":"api/problem","path":"/docs/1.0.20-alpha/api/problem"},{"id":"api/problems","path":"/docs/1.0.20-alpha/api/problems"},{"id":"api/resolvednode","path":"/docs/1.0.20-alpha/api/resolvednode"},{"id":"api/scope","path":"/docs/1.0.20-alpha/api/scope"},{"id":"api/space","path":"/docs/1.0.20-alpha/api/space"},{"id":"api/tskeywordsscope","path":"/docs/1.0.20-alpha/api/tskeywordsscope"},{"id":"api/type","path":"/docs/1.0.20-alpha/api/type"},{"id":"api/union","path":"/docs/1.0.20-alpha/api/union"},{"id":"api/validatebound","path":"/docs/1.0.20-alpha/api/validatebound"},{"id":"api/validatedivisor","path":"/docs/1.0.20-alpha/api/validatedivisor"},{"id":"api/validationscope","path":"/docs/1.0.20-alpha/api/validationscope"},{"id":"api/valueof","path":"/docs/1.0.20-alpha/api/valueof"},{"id":"intro","path":"/docs/1.0.20-alpha/","sidebar":"sidebar"},{"id":"scopes","path":"/docs/1.0.20-alpha/scopes","sidebar":"sidebar"}],"draftIds":[],"sidebars":{"sidebar":{"link":{"path":"/docs/1.0.20-alpha/","label":"Types"}}}},{"name":"1.0.19-alpha","label":"1.0.19-alpha","isLast":false,"path":"/docs/1.0.19-alpha","mainDocId":"intro","docs":[{"id":"api","path":"/docs/1.0.19-alpha/api","sidebar":"sidebar"},{"id":"api/ark","path":"/docs/1.0.19-alpha/api/ark"},{"id":"api/arkscope","path":"/docs/1.0.19-alpha/api/arkscope"},{"id":"api/arrayof","path":"/docs/1.0.19-alpha/api/arrayof"},{"id":"api/infer","path":"/docs/1.0.19-alpha/api/infer"},{"id":"api/instanceof","path":"/docs/1.0.19-alpha/api/instanceof"},{"id":"api/intersection","path":"/docs/1.0.19-alpha/api/intersection"},{"id":"api/jsobjectsscope","path":"/docs/1.0.19-alpha/api/jsobjectsscope"},{"id":"api/keyof","path":"/docs/1.0.19-alpha/api/keyof"},{"id":"api/keywords","path":"/docs/1.0.19-alpha/api/keywords","sidebar":"sidebar"},{"id":"api/morph","path":"/docs/1.0.19-alpha/api/morph"},{"id":"api/narrow","path":"/docs/1.0.19-alpha/api/narrow"},{"id":"api/operators","path":"/docs/1.0.19-alpha/api/operators","sidebar":"sidebar"},{"id":"api/parseconfigtuple","path":"/docs/1.0.19-alpha/api/parseconfigtuple"},{"id":"api/problem","path":"/docs/1.0.19-alpha/api/problem"},{"id":"api/problems","path":"/docs/1.0.19-alpha/api/problems"},{"id":"api/resolvednode","path":"/docs/1.0.19-alpha/api/resolvednode"},{"id":"api/scope","path":"/docs/1.0.19-alpha/api/scope"},{"id":"api/space","path":"/docs/1.0.19-alpha/api/space"},{"id":"api/tskeywordsscope","path":"/docs/1.0.19-alpha/api/tskeywordsscope"},{"id":"api/type","path":"/docs/1.0.19-alpha/api/type"},{"id":"api/union","path":"/docs/1.0.19-alpha/api/union"},{"id":"api/validatebound","path":"/docs/1.0.19-alpha/api/validatebound"},{"id":"api/validatedivisor","path":"/docs/1.0.19-alpha/api/validatedivisor"},{"id":"api/validationscope","path":"/docs/1.0.19-alpha/api/validationscope"},{"id":"api/valueof","path":"/docs/1.0.19-alpha/api/valueof"},{"id":"intro","path":"/docs/1.0.19-alpha/","sidebar":"sidebar"},{"id":"scopes","path":"/docs/1.0.19-alpha/scopes","sidebar":"sidebar"}],"draftIds":[],"sidebars":{"sidebar":{"link":{"path":"/docs/1.0.19-alpha/","label":"Types"}}}}],"breadcrumbs":true}}}'),i=JSON.parse('{"defaultLocale":"en","locales":["en"],"path":"i18n","currentLocale":"en","localeConfigs":{"en":{"label":"English","direction":"ltr","htmlLang":"en","calendar":"gregory","path":"en"}}}');var s=n(57529);const l=JSON.parse('{"docusaurusVersion":"2.4.0","siteVersion":"0.0.0","pluginVersions":{"docusaurus-plugin-content-pages":{"type":"package","name":"@docusaurus/plugin-content-pages","version":"2.4.0"},"docusaurus-plugin-content-docs":{"type":"package","name":"@docusaurus/plugin-content-docs","version":"2.4.0"},"docusaurus-plugin-google-gtag":{"type":"package","name":"@docusaurus/plugin-google-gtag","version":"2.4.0"},"docusaurus-theme-classic":{"type":"package","name":"@docusaurus/theme-classic","version":"2.4.0"}}}');var c={siteConfig:r.default,siteMetadata:l,globalData:o,i18n:i,codeTranslations:s},u=a.createContext(c);function p(e){var t=e.children;return a.createElement(u.Provider,{value:c},t)}},39264:(e,t,n)=>{"use strict";n.d(t,{Z:()=>f});var a=n(45701),r=n(29901),o=n(53157),i=n(89271),s=n(11788),l=n(2372);function c(e){var t=e.error,n=e.tryAgain;return r.createElement("div",{style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"flex-start",minHeight:"100vh",width:"100%",maxWidth:"80ch",fontSize:"20px",margin:"0 auto",padding:"1rem"}},r.createElement("h1",{style:{fontSize:"3rem"}},"This page crashed"),r.createElement("button",{type:"button",onClick:n,style:{margin:"1rem 0",fontSize:"2rem",cursor:"pointer",borderRadius:20,padding:"1rem"}},"Try again"),r.createElement(u,{error:t}))}function u(e){var t=e.error,n=(0,s.getErrorCausalChain)(t).map((function(e){return e.message})).join("\n\nCause:\n");return r.createElement("p",{style:{whiteSpace:"pre-wrap"}},n)}function p(e){var t=e.error,n=e.tryAgain;return r.createElement(f,{fallback:function(){return r.createElement(c,{error:t,tryAgain:n})}},r.createElement(i.Z,null,r.createElement("title",null,"Page Error")),r.createElement(l.Z,null,r.createElement(c,{error:t,tryAgain:n})))}var d=function(e){return r.createElement(p,e)},f=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={error:null},n}(0,a.Z)(t,e);var n=t.prototype;return n.componentDidCatch=function(e){o.Z.canUseDOM&&this.setState({error:e})},n.render=function(){var e=this,t=this.props.children,n=this.state.error;if(n){var a,r={error:n,tryAgain:function(){return e.setState({error:null})}};return(null!=(a=this.props.fallback)?a:d)(r)}return null!=t?t:null},t}(r.Component)},53157:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var a="undefined"!=typeof window&&"document"in window&&"createElement"in window.document;const r={canUseDOM:a,canUseEventListeners:a&&("addEventListener"in window||"attachEvent"in window),canUseIntersectionObserver:a&&"IntersectionObserver"in window,canUseViewport:a&&"screen"in window}},89271:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var a=n(29901),r=n(44455);function o(e){return a.createElement(r.ql,e)}},36103:(e,t,n)=>{"use strict";n.d(t,{Z:()=>m});var a=n(54805),r=n(30008),o=n(29901),i=n(97114),s=n(11788),l=n(43597),c=n(62336),u=n(53157),p=o.createContext({collectLink:function(){}});var d=n(86820),f=["isNavLink","to","href","activeClassName","isActive","data-noBrokenLinkCheck","autoAddBaseUrl"];function h(e,t){var n,h,m=e.isNavLink,v=e.to,b=e.href,g=e.activeClassName,y=e.isActive,w=e["data-noBrokenLinkCheck"],k=e.autoAddBaseUrl,_=void 0===k||k,x=(0,r.Z)(e,f),E=(0,l.Z)().siteConfig,S=E.trailingSlash,C=E.baseUrl,T=(0,d.C)().withBaseUrl,L=(0,o.useContext)(p),A=(0,o.useRef)(null);(0,o.useImperativeHandle)(t,(function(){return A.current}));var R=v||b;var P,N=(0,c.Z)(R),O=null==R?void 0:R.replace("pathname://",""),I=void 0!==O?(P=O,_&&function(e){return e.startsWith("/")}(P)?T(P):P):void 0;I&&N&&(I=(0,s.applyTrailingSlash)(I,{trailingSlash:S,baseUrl:C}));var D=(0,o.useRef)(!1),M=m?i.OL:i.rU,j=u.Z.canUseIntersectionObserver,F=(0,o.useRef)(),B=function(){D.current||null==I||(window.docusaurus.preload(I),D.current=!0)};(0,o.useEffect)((function(){return!j&&N&&null!=I&&window.docusaurus.prefetch(I),function(){j&&F.current&&F.current.disconnect()}}),[F,I,j,N]);var z=null!=(n=null==(h=I)?void 0:h.startsWith("#"))&&n,U=!I||!N||z;return U||w||L.collectLink(I),U?o.createElement("a",(0,a.Z)({ref:A,href:I},R&&!N&&{target:"_blank",rel:"noopener noreferrer"},x)):o.createElement(M,(0,a.Z)({},x,{onMouseEnter:B,onTouchStart:B,innerRef:function(e){A.current=e,j&&e&&N&&(F.current=new window.IntersectionObserver((function(t){t.forEach((function(t){e===t.target&&(t.isIntersecting||t.intersectionRatio>0)&&(F.current.unobserve(e),F.current.disconnect(),null!=I&&window.docusaurus.prefetch(I))}))})),F.current.observe(e))},to:I},m&&{isActive:y,activeClassName:g}))}const m=o.forwardRef(h)},29453:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});const a=function(){return null}},85037:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l,I:()=>s});var a=n(29901);function r(e,t){var n=e.split(/(\{\w+\})/).map((function(e,n){if(n%2==1){var a=null==t?void 0:t[e.slice(1,-1)];if(void 0!==a)return a}return e}));return n.some((function(e){return(0,a.isValidElement)(e)}))?n.map((function(e,t){return(0,a.isValidElement)(e)?a.cloneElement(e,{key:t}):e})).filter((function(e){return""!==e})):n.join("")}var o=n(57529);function i(e){var t,n,a=e.id,r=e.message;if(void 0===a&&void 0===r)throw new Error("Docusaurus translation declarations must have at least a translation id or a default translation message");return null!=(t=null!=(n=o[null!=a?a:r])?n:r)?t:a}function s(e,t){return r(i({message:e.message,id:e.id}),t)}function l(e){var t=e.children,n=e.id,o=e.values;if(t&&"string"!=typeof t)throw console.warn("Illegal children",t),new Error("The Docusaurus component only accept simple string values");var s=i({message:t,id:n});return a.createElement(a.Fragment,null,r(s,o))}},91097:(e,t,n)=>{"use strict";n.d(t,{m:()=>a});var a="default"},62336:(e,t,n)=>{"use strict";function a(e){return/^(?:\w*:|\/\/)/.test(e)}function r(e){return void 0!==e&&!a(e)}n.d(t,{Z:()=>r,b:()=>a})},86820:(e,t,n)=>{"use strict";n.d(t,{C:()=>i,Z:()=>s});var a=n(29901),r=n(43597),o=n(62336);function i(){var e=(0,r.Z)().siteConfig,t=e.baseUrl,n=e.url,i=(0,a.useCallback)((function(e,a){return function(e,t,n,a){var r=void 0===a?{}:a,i=r.forcePrependBaseUrl,s=void 0!==i&&i,l=r.absolute,c=void 0!==l&&l;if(!n||n.startsWith("#")||(0,o.b)(n))return n;if(s)return t+n.replace(/^\//,"");if(n===t.replace(/\/$/,""))return t;var u=n.startsWith(t)?n:t+n.replace(/^\//,"");return c?e+u:u}(n,t,e,a)}),[n,t]);return{withBaseUrl:i}}function s(e,t){return void 0===t&&(t={}),(0,i().withBaseUrl)(e,t)}},43597:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var a=n(29901),r=n(41493);function o(){return(0,a.useContext)(r._)}},89460:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var a=n(29901),r=n(41417);function o(){return(0,a.useContext)(r._)}},96071:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var a=function(e){return"object"==typeof e&&!!e&&Object.keys(e).length>0};function r(e){var t={};return function e(n,r){Object.entries(n).forEach((function(n){var o=n[0],i=n[1],s=r?r+"."+o:o;a(i)?e(i,s):t[s]=i}))}(e),t}},49186:(e,t,n)=>{"use strict";n.d(t,{_:()=>r,z:()=>o});var a=n(29901),r=a.createContext(null);function o(e){var t=e.children,n=e.value,o=a.useContext(r),i=(0,a.useMemo)((function(){return function(e){var t=e.parent,n=e.value;if(!t){if(!n)throw new Error("Unexpected: no Docusaurus route context found");if(!("plugin"in n))throw new Error("Unexpected: Docusaurus topmost route context has no `plugin` attribute");return n}var a=Object.assign({},t.data,null==n?void 0:n.data);return{plugin:t.plugin,data:a}}({parent:o,value:n})}),[o,n]);return a.createElement(r.Provider,{value:i},t)}},88803:(e,t,n)=>{"use strict";n.d(t,{Iw:()=>m,gA:()=>d,_r:()=>u,Jo:()=>v,zh:()=>p,yW:()=>h,gB:()=>f});var a=n(96172),r=n(43597),o=n(91097);function i(e,t){void 0===t&&(t={});var n=(0,r.Z)().globalData[e];if(!n&&t.failfast)throw new Error('Docusaurus plugin global data not found for "'+e+'" plugin.');return n}var s=function(e){return e.versions.find((function(e){return e.isLast}))};function l(e,t){var n,r,o=function(e,t){var n=s(e);return[].concat(e.versions.filter((function(e){return e!==n})),[n]).find((function(e){return!!(0,a.LX)(t,{path:e.path,exact:!1,strict:!1})}))}(e,t),i=null==o?void 0:o.docs.find((function(e){return!!(0,a.LX)(t,{path:e.path,exact:!0,strict:!1})}));return{activeVersion:o,activeDoc:i,alternateDocVersions:i?(n=i.id,r={},e.versions.forEach((function(e){e.docs.forEach((function(t){t.id===n&&(r[e.name]=t)}))})),r):{}}}var c={},u=function(){var e;return null!=(e=i("docusaurus-plugin-content-docs"))?e:c},p=function(e){return function(e,t,n){void 0===t&&(t=o.m),void 0===n&&(n={});var a=i(e),r=null==a?void 0:a[t];if(!r&&n.failfast)throw new Error('Docusaurus plugin global data not found for "'+e+'" plugin with id "'+t+'".');return r}("docusaurus-plugin-content-docs",e,{failfast:!0})};function d(e){return void 0===e&&(e={}),function(e,t,n){void 0===n&&(n={});var r=Object.entries(e).sort((function(e,t){return t[1].path.localeCompare(e[1].path)})).find((function(e){var n=e[1];return!!(0,a.LX)(t,{path:n.path,exact:!1,strict:!1})})),o=r?{pluginId:r[0],pluginData:r[1]}:void 0;if(!o&&n.failfast)throw new Error("Can't find active docs plugin for \""+t+'" pathname, while it was expected to be found. Maybe you tried to use a docs feature that can only be used on a docs-related page? Existing docs plugin paths are: '+Object.values(e).map((function(e){return e.path})).join(", "));return o}(u(),(0,a.TH)().pathname,e)}function f(e){return p(e).versions}function h(e){var t=p(e);return s(t)}function m(e){return l(p(e),(0,a.TH)().pathname)}function v(e){return function(e,t){var n=s(e);return{latestDocSuggestion:l(e,t).alternateDocVersions[n.name],latestVersionSuggestion:n}}(p(e),(0,a.TH)().pathname)}},28458:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});const a={onRouteDidUpdate:function(e){var t=e.location,n=e.previousLocation;!n||t.pathname===n.pathname&&t.search===n.search&&t.hash===n.hash||setTimeout((function(){window.gtag("event","page_view",{page_title:document.title,page_location:window.location.href,page_path:t.pathname+t.search+t.hash})}))}}},97910:(e,t,n)=>{"use strict";function a(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}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 i(){return i=Object.assign||function(e){for(var t=1;t{"use strict";n.r(t),n.d(t,{default:()=>o});var a=n(66567),r=n.n(a);r().configure({showSpinner:!1});const o={onRouteUpdate:function(e){var t=e.location,n=e.previousLocation;if(n&&t.pathname!==n.pathname){var a=window.setTimeout((function(){r().start()}),200);return function(){return window.clearTimeout(a)}}},onRouteDidUpdate:function(){r().done()}}},7666:(e,t,n)=>{"use strict";n.r(t);var a,r,o=n(39335),i=n(36809);a=o.Z,r=i.default.themeConfig.prism.additionalLanguages,globalThis.Prism=a,r.forEach((function(e){n(40060)("./prism-"+e)})),delete globalThis.Prism},47430:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var a=n(29901);const r={iconExternalLink:"iconExternalLink_Pq0g"};function o(e){var t=e.width,n=void 0===t?13.5:t,o=e.height,i=void 0===o?13.5:o;return a.createElement("svg",{width:n,height:i,"aria-hidden":"true",viewBox:"0 0 24 24",className:r.iconExternalLink},a.createElement("path",{fill:"currentColor",d:"M21 13v10h-21v-19h12v2h-10v15h17v-8h2zm3-12h-10.988l4.035 4-6.977 7.07 2.828 2.828 6.977-7.07 4.125 4.172v-11z"}))}},2372:(e,t,n)=>{"use strict";n.d(t,{Z:()=>Rt});var a=n(29901),r=n(14517),o=n(39264),i=n(22275),s=n(54805),l=n(96172),c=n(85037),u=n(37129),p="docusaurus_skipToContent_fallback";function d(e){e.setAttribute("tabindex","-1"),e.focus(),e.removeAttribute("tabindex")}function f(){var e=(0,a.useRef)(null),t=(0,l.k6)().action,n=(0,a.useCallback)((function(e){e.preventDefault();var t,n=null!=(t=document.querySelector("main:first-of-type"))?t:document.getElementById(p);n&&d(n)}),[]);return(0,u.S)((function(n){var a=n.location;e.current&&!a.hash&&"PUSH"===t&&d(e.current)})),{containerRef:e,onClick:n}}var h=(0,c.I)({id:"theme.common.skipToMainContent",description:"The skip to content label used for accessibility, allowing to rapidly navigate to main content with keyboard tab/enter navigation",message:"Skip to main content"});function m(e){var t,n=null!=(t=e.children)?t:h,r=f(),o=r.containerRef,i=r.onClick;return a.createElement("div",{ref:o,role:"region","aria-label":h},a.createElement("a",(0,s.Z)({},e,{href:"#"+p,onClick:i}),n))}var v=n(72601),b=n(55364);const g={skipToContent:"skipToContent_Wp8_"};function y(){return a.createElement(m,{className:g.skipToContent})}var w=n(90610),k=n(87910),_=n(30008),x=["width","height","color","strokeWidth","className"];function E(e){var t=e.width,n=void 0===t?21:t,r=e.height,o=void 0===r?21:r,i=e.color,l=void 0===i?"currentColor":i,c=e.strokeWidth,u=void 0===c?1.2:c,p=(e.className,(0,_.Z)(e,x));return a.createElement("svg",(0,s.Z)({viewBox:"0 0 15 15",width:n,height:o},p),a.createElement("g",{stroke:l,strokeWidth:u},a.createElement("path",{d:"M.75.75l13.5 13.5M14.25.75L.75 14.25"})))}const S={closeButton:"closeButton_shyj"};function C(e){return a.createElement("button",(0,s.Z)({type:"button","aria-label":(0,c.I)({id:"theme.AnnouncementBar.closeButtonAriaLabel",message:"Close",description:"The ARIA label for close button of announcement bar"})},e,{className:(0,r.Z)("clean-btn close",S.closeButton,e.className)}),a.createElement(E,{width:14,height:14,strokeWidth:3.1}))}const T={content:"content_mecL"};function L(e){var t=(0,w.L)().announcementBar.content;return a.createElement("div",(0,s.Z)({},e,{className:(0,r.Z)(T.content,e.className),dangerouslySetInnerHTML:{__html:t}}))}const A={announcementBar:"announcementBar_xBKY",announcementBarPlaceholder:"announcementBarPlaceholder_LNw6",announcementBarClose:"announcementBarClose_iPqh",announcementBarContent:"announcementBarContent_hbqg"};function R(){var e=(0,w.L)().announcementBar,t=(0,k.nT)(),n=t.isActive,r=t.close;if(!n)return null;var o=e.backgroundColor,i=e.textColor,s=e.isCloseable;return a.createElement("div",{className:A.announcementBar,style:{backgroundColor:o,color:i},role:"banner"},s&&a.createElement("div",{className:A.announcementBarPlaceholder}),a.createElement(L,{className:A.announcementBarContent}),s&&a.createElement(C,{onClick:r,className:A.announcementBarClose}))}var P=n(36092),N=n(88003);var O=n(73154),I=n(61437),D=a.createContext(null);function M(e){var t,n,r,o,i,s,l,c=e.children,u=(t=(0,P.e)(),n=(0,I.HY)(),r=(0,a.useState)(!1),o=r[0],i=r[1],s=null!==n.component,l=(0,O.D9)(s),(0,a.useEffect)((function(){s&&!l&&i(!0)}),[s,l]),(0,a.useEffect)((function(){s?t.shown||i(!0):i(!1)}),[t.shown,s]),(0,a.useMemo)((function(){return[o,i]}),[o]));return a.createElement(D.Provider,{value:u},c)}function j(e){if(e.component){var t=e.component;return a.createElement(t,e.props)}}function F(){var e=(0,a.useContext)(D);if(!e)throw new O.i6("NavbarSecondaryMenuDisplayProvider");var t=e[0],n=e[1],r=(0,a.useCallback)((function(){return n(!1)}),[n]),o=(0,I.HY)();return(0,a.useMemo)((function(){return{shown:t,hide:r,content:j(o)}}),[r,o,t])}function B(e){var t=e.header,n=e.primaryMenu,o=e.secondaryMenu,i=F().shown;return a.createElement("div",{className:"navbar-sidebar"},t,a.createElement("div",{className:(0,r.Z)("navbar-sidebar__items",{"navbar-sidebar__items--show-secondary":i})},a.createElement("div",{className:"navbar-sidebar__item menu"},n),a.createElement("div",{className:"navbar-sidebar__item menu"},o)))}var z=n(63221),U=n(89460);function Z(e){return a.createElement("svg",(0,s.Z)({viewBox:"0 0 24 24",width:24,height:24},e),a.createElement("path",{fill:"currentColor",d:"M12,9c1.65,0,3,1.35,3,3s-1.35,3-3,3s-3-1.35-3-3S10.35,9,12,9 M12,7c-2.76,0-5,2.24-5,5s2.24,5,5,5s5-2.24,5-5 S14.76,7,12,7L12,7z M2,13l2,0c0.55,0,1-0.45,1-1s-0.45-1-1-1l-2,0c-0.55,0-1,0.45-1,1S1.45,13,2,13z M20,13l2,0c0.55,0,1-0.45,1-1 s-0.45-1-1-1l-2,0c-0.55,0-1,0.45-1,1S19.45,13,20,13z M11,2v2c0,0.55,0.45,1,1,1s1-0.45,1-1V2c0-0.55-0.45-1-1-1S11,1.45,11,2z M11,20v2c0,0.55,0.45,1,1,1s1-0.45,1-1v-2c0-0.55-0.45-1-1-1C11.45,19,11,19.45,11,20z M5.99,4.58c-0.39-0.39-1.03-0.39-1.41,0 c-0.39,0.39-0.39,1.03,0,1.41l1.06,1.06c0.39,0.39,1.03,0.39,1.41,0s0.39-1.03,0-1.41L5.99,4.58z M18.36,16.95 c-0.39-0.39-1.03-0.39-1.41,0c-0.39,0.39-0.39,1.03,0,1.41l1.06,1.06c0.39,0.39,1.03,0.39,1.41,0c0.39-0.39,0.39-1.03,0-1.41 L18.36,16.95z M19.42,5.99c0.39-0.39,0.39-1.03,0-1.41c-0.39-0.39-1.03-0.39-1.41,0l-1.06,1.06c-0.39,0.39-0.39,1.03,0,1.41 s1.03,0.39,1.41,0L19.42,5.99z M7.05,18.36c0.39-0.39,0.39-1.03,0-1.41c-0.39-0.39-1.03-0.39-1.41,0l-1.06,1.06 c-0.39,0.39-0.39,1.03,0,1.41s1.03,0.39,1.41,0L7.05,18.36z"}))}function $(e){return a.createElement("svg",(0,s.Z)({viewBox:"0 0 24 24",width:24,height:24},e),a.createElement("path",{fill:"currentColor",d:"M9.37,5.51C9.19,6.15,9.1,6.82,9.1,7.5c0,4.08,3.32,7.4,7.4,7.4c0.68,0,1.35-0.09,1.99-0.27C17.45,17.19,14.93,19,12,19 c-3.86,0-7-3.14-7-7C5,9.07,6.81,6.55,9.37,5.51z M12,3c-4.97,0-9,4.03-9,9s4.03,9,9,9s9-4.03,9-9c0-0.46-0.04-0.92-0.1-1.36 c-0.98,1.37-2.58,2.26-4.4,2.26c-2.98,0-5.4-2.42-5.4-5.4c0-1.81,0.89-3.42,2.26-4.4C12.92,3.04,12.46,3,12,3L12,3z"}))}const q={toggle:"toggle_ovhU",toggleButton:"toggleButton_VXT7",darkToggleIcon:"darkToggleIcon__wIr",lightToggleIcon:"lightToggleIcon_NHje",toggleButtonDisabled:"toggleButtonDisabled_BkVM"};function H(e){var t=e.className,n=e.buttonClassName,o=e.value,i=e.onChange,s=(0,U.Z)(),l=(0,c.I)({message:"Switch between dark and light mode (currently {mode})",id:"theme.colorToggle.ariaLabel",description:"The ARIA label for the navbar color mode toggle"},{mode:"dark"===o?(0,c.I)({message:"dark mode",id:"theme.colorToggle.ariaLabel.mode.dark",description:"The name for the dark color mode"}):(0,c.I)({message:"light mode",id:"theme.colorToggle.ariaLabel.mode.light",description:"The name for the light color mode"})});return a.createElement("div",{className:(0,r.Z)(q.toggle,t)},a.createElement("button",{className:(0,r.Z)("clean-btn",q.toggleButton,!s&&q.toggleButtonDisabled,n),type:"button",onClick:function(){return i("dark"===o?"light":"dark")},disabled:!s,title:l,"aria-label":l,"aria-live":"polite"},a.createElement(Z,{className:(0,r.Z)(q.toggleIcon,q.lightToggleIcon)}),a.createElement($,{className:(0,r.Z)(q.toggleIcon,q.darkToggleIcon)})))}const G=a.memo(H),V={darkNavbarColorModeToggle:"darkNavbarColorModeToggle_LHBs"};function W(e){var t=e.className,n=(0,w.L)().navbar.style,r=(0,w.L)().colorMode.disableSwitch,o=(0,z.I)(),i=o.colorMode,s=o.setColorMode;return r?null:a.createElement(G,{className:t,buttonClassName:"dark"===n?V.darkNavbarColorModeToggle:void 0,value:i,onChange:s})}var Y=n(73697);function K(){return a.createElement(Y.Z,{className:"navbar__brand",imageClassName:"navbar__logo",titleClassName:"navbar__title text--truncate"})}function Q(){var e=(0,P.e)();return a.createElement("button",{type:"button","aria-label":(0,c.I)({id:"theme.docs.sidebar.closeSidebarButtonAriaLabel",message:"Close navigation bar",description:"The ARIA label for close button of mobile sidebar"}),className:"clean-btn navbar-sidebar__close",onClick:function(){return e.toggle()}},a.createElement(E,{color:"var(--ifm-color-emphasis-600)"}))}function X(){return a.createElement("div",{className:"navbar-sidebar__brand"},a.createElement(K,null),a.createElement(W,{className:"margin-right--md"}),a.createElement(Q,null))}var J=n(36103),ee=n(86820),te=n(62336);function ne(e,t){return void 0!==e&&void 0!==t&&new RegExp(e,"gi").test(t)}var ae=n(47430),re=["activeBasePath","activeBaseRegex","to","href","label","html","isDropdownLink","prependBaseUrlToHref"];function oe(e){var t=e.activeBasePath,n=e.activeBaseRegex,r=e.to,o=e.href,i=e.label,l=e.html,c=e.isDropdownLink,u=e.prependBaseUrlToHref,p=(0,_.Z)(e,re),d=(0,ee.Z)(r),f=(0,ee.Z)(t),h=(0,ee.Z)(o,{forcePrependBaseUrl:!0}),m=i&&o&&!(0,te.Z)(o),v=l?{dangerouslySetInnerHTML:{__html:l}}:{children:a.createElement(a.Fragment,null,i,m&&a.createElement(ae.Z,c&&{width:12,height:12}))};return o?a.createElement(J.Z,(0,s.Z)({href:u?h:o},p,v)):a.createElement(J.Z,(0,s.Z)({to:d,isNavLink:!0},(t||n)&&{isActive:function(e,t){return n?ne(n,t.pathname):t.pathname.startsWith(f)}},p,v))}var ie=["className","isDropdownItem"],se=["className","isDropdownItem"],le=["mobile","position"];function ce(e){var t=e.className,n=e.isDropdownItem,o=void 0!==n&&n,i=(0,_.Z)(e,ie),l=a.createElement(oe,(0,s.Z)({className:(0,r.Z)(o?"dropdown__link":"navbar__item navbar__link",t),isDropdownLink:o},i));return o?a.createElement("li",null,l):l}function ue(e){var t=e.className,n=(e.isDropdownItem,(0,_.Z)(e,se));return a.createElement("li",{className:"menu__list-item"},a.createElement(oe,(0,s.Z)({className:(0,r.Z)("menu__link",t)},n)))}function pe(e){var t,n=e.mobile,r=void 0!==n&&n,o=(e.position,(0,_.Z)(e,le)),i=r?ue:ce;return a.createElement(i,(0,s.Z)({},o,{activeClassName:null!=(t=o.activeClassName)?t:r?"menu__link--active":"navbar__link--active"}))}var de=n(94228),fe=n(34984),he=n(43597);var me=["items","position","className","onClick"],ve=["items","className","position","onClick"],be=["mobile"];function ge(e,t){return e.some((function(e){return function(e,t){return!!(0,fe.Mg)(e.to,t)||!!ne(e.activeBaseRegex,t)||!(!e.activeBasePath||!t.startsWith(e.activeBasePath))}(e,t)}))}function ye(e){var t,n=e.items,o=e.position,i=e.className,l=(e.onClick,(0,_.Z)(e,me)),c=(0,a.useRef)(null),u=(0,a.useState)(!1),p=u[0],d=u[1];return(0,a.useEffect)((function(){var e=function(e){c.current&&!c.current.contains(e.target)&&d(!1)};return document.addEventListener("mousedown",e),document.addEventListener("touchstart",e),document.addEventListener("focusin",e),function(){document.removeEventListener("mousedown",e),document.removeEventListener("touchstart",e),document.removeEventListener("focusin",e)}}),[c]),a.createElement("div",{ref:c,className:(0,r.Z)("navbar__item","dropdown","dropdown--hoverable",{"dropdown--right":"right"===o,"dropdown--show":p})},a.createElement(oe,(0,s.Z)({"aria-haspopup":"true","aria-expanded":p,role:"button",href:l.to?void 0:"#",className:(0,r.Z)("navbar__link",i)},l,{onClick:l.to?void 0:function(e){return e.preventDefault()},onKeyDown:function(e){"Enter"===e.key&&(e.preventDefault(),d(!p))}}),null!=(t=l.children)?t:l.label),a.createElement("ul",{className:"dropdown__menu"},n.map((function(e,t){return a.createElement(ze,(0,s.Z)({isDropdownItem:!0,activeClassName:"dropdown__link--active"},e,{key:t}))}))))}function we(e){var t,n,o=e.items,i=e.className,c=(e.position,e.onClick),u=(0,_.Z)(e,ve),p=(n=(0,he.Z)().siteConfig.baseUrl,(0,l.TH)().pathname.replace(n,"/")),d=ge(o,p),f=(0,de.u)({initialState:function(){return!d}}),h=f.collapsed,m=f.toggleCollapsed,v=f.setCollapsed;return(0,a.useEffect)((function(){d&&v(!d)}),[p,d,v]),a.createElement("li",{className:(0,r.Z)("menu__list-item",{"menu__list-item--collapsed":h})},a.createElement(oe,(0,s.Z)({role:"button",className:(0,r.Z)("menu__link menu__link--sublist menu__link--sublist-caret",i)},u,{onClick:function(e){e.preventDefault(),m()}}),null!=(t=u.children)?t:u.label),a.createElement(de.z,{lazy:!0,as:"ul",className:"menu__list",collapsed:h},o.map((function(e,t){return a.createElement(ze,(0,s.Z)({mobile:!0,isDropdownItem:!0,onClick:c,activeClassName:"menu__link--active"},e,{key:t}))}))))}function ke(e){var t=e.mobile,n=void 0!==t&&t,r=(0,_.Z)(e,be),o=n?we:ye;return a.createElement(o,r)}var _e=n(4197),xe=["width","height"];function Ee(e){var t=e.width,n=void 0===t?20:t,r=e.height,o=void 0===r?20:r,i=(0,_.Z)(e,xe);return a.createElement("svg",(0,s.Z)({viewBox:"0 0 24 24",width:n,height:o,"aria-hidden":!0},i),a.createElement("path",{fill:"currentColor",d:"M12.87 15.07l-2.54-2.51.03-.03c1.74-1.94 2.98-4.17 3.71-6.53H17V4h-7V2H8v2H1v1.99h11.17C11.5 7.92 10.44 9.75 9 11.35 8.07 10.32 7.3 9.19 6.69 8h-2c.73 1.63 1.73 3.17 2.98 4.56l-5.09 5.02L4 19l5-5 3.11 3.11.76-2.04zM18.5 10h-2L12 22h2l1.12-3h4.75L21 22h2l-4.5-12zm-2.62 7l1.62-4.33L19.12 17h-3.24z"}))}const Se="iconLanguage_UCp_";var Ce=["mobile","dropdownItemsBefore","dropdownItemsAfter"];var Te=n(29453);const Le={searchBox:"searchBox_TRjY"};function Ae(e){var t=e.children,n=e.className;return a.createElement("div",{className:(0,r.Z)(n,Le.searchBox)},t)}var Re=n(88803),Pe=n(91801),Ne=["docId","label","docsPluginId"];var Oe=["sidebarId","label","docsPluginId"];var Ie=["label","to","docsPluginId"];var De=n(88327),Me=["mobile","docsPluginId","dropdownActiveClassDisabled","dropdownItemsBefore","dropdownItemsAfter"],je=function(e){return e.docs.find((function(t){return t.id===e.mainDocId}))};const Fe={default:pe,localeDropdown:function(e){var t=e.mobile,n=e.dropdownItemsBefore,r=e.dropdownItemsAfter,o=(0,_.Z)(e,Ce),i=(0,he.Z)().i18n,u=i.currentLocale,p=i.locales,d=i.localeConfigs,f=(0,_e.l)(),h=(0,l.TH)(),m=h.search,v=h.hash,b=p.map((function(e){var n=""+("pathname://"+f.createUrl({locale:e,fullyQualified:!1}))+m+v;return{label:d[e].label,lang:d[e].htmlLang,to:n,target:"_self",autoAddBaseUrl:!1,className:e===u?t?"menu__link--active":"dropdown__link--active":""}})),g=[].concat(n,b,r),y=t?(0,c.I)({message:"Languages",id:"theme.navbar.mobileLanguageDropdown.label",description:"The label for the mobile language switcher dropdown"}):d[u].label;return a.createElement(ke,(0,s.Z)({},o,{mobile:t,label:a.createElement(a.Fragment,null,a.createElement(Ee,{className:Se}),y),items:g}))},search:function(e){var t=e.mobile,n=e.className;return t?null:a.createElement(Ae,{className:n},a.createElement(Te.Z,null))},dropdown:ke,html:function(e){var t=e.value,n=e.className,o=e.mobile,i=void 0!==o&&o,s=e.isDropdownItem,l=void 0!==s&&s,c=l?"li":"div";return a.createElement(c,{className:(0,r.Z)({navbar__item:!i&&!l,"menu__list-item":i},n),dangerouslySetInnerHTML:{__html:t}})},doc:function(e){var t=e.docId,n=e.label,r=e.docsPluginId,o=(0,_.Z)(e,Ne),i=(0,Re.Iw)(r).activeDoc,l=(0,Pe.vY)(t,r);return null===l?null:a.createElement(pe,(0,s.Z)({exact:!0},o,{isActive:function(){return(null==i?void 0:i.path)===l.path||!(null==i||!i.sidebar)&&i.sidebar===l.sidebar},label:null!=n?n:l.id,to:l.path}))},docSidebar:function(e){var t=e.sidebarId,n=e.label,r=e.docsPluginId,o=(0,_.Z)(e,Oe),i=(0,Re.Iw)(r).activeDoc,l=(0,Pe.oz)(t,r).link;if(!l)throw new Error('DocSidebarNavbarItem: Sidebar with ID "'+t+"\" doesn't have anything to be linked to.");return a.createElement(pe,(0,s.Z)({exact:!0},o,{isActive:function(){return(null==i?void 0:i.sidebar)===t},label:null!=n?n:l.label,to:l.path}))},docsVersion:function(e){var t=e.label,n=e.to,r=e.docsPluginId,o=(0,_.Z)(e,Ie),i=(0,Pe.lO)(r)[0],l=null!=t?t:i.label,c=null!=n?n:function(e){return e.docs.find((function(t){return t.id===e.mainDocId}))}(i).path;return a.createElement(pe,(0,s.Z)({},o,{label:l,to:c}))},docsVersionDropdown:function(e){var t=e.mobile,n=e.docsPluginId,r=e.dropdownActiveClassDisabled,o=e.dropdownItemsBefore,i=e.dropdownItemsAfter,u=(0,_.Z)(e,Me),p=(0,l.TH)(),d=p.search,f=p.hash,h=(0,Re.Iw)(n),m=(0,Re.gB)(n),v=(0,De.J)(n).savePreferredVersionName,b=m.map((function(e){var t,n=null!=(t=h.alternateDocVersions[e.name])?t:je(e);return{label:e.label,to:""+n.path+d+f,isActive:function(){return e===h.activeVersion},onClick:function(){return v(e.name)}}})),g=[].concat(o,b,i),y=(0,Pe.lO)(n)[0],w=t&&g.length>1?(0,c.I)({id:"theme.navbar.mobileVersionsDropdown.label",message:"Versions",description:"The label for the navbar versions dropdown on mobile view"}):y.label,k=t&&g.length>1?void 0:je(y).path;return g.length<=1?a.createElement(pe,(0,s.Z)({},u,{mobile:t,label:w,to:k,isActive:r?function(){return!1}:void 0})):a.createElement(ke,(0,s.Z)({},u,{mobile:t,label:w,to:k,items:g,isActive:r?function(){return!1}:void 0}))}};var Be=["type"];function ze(e){var t=e.type,n=(0,_.Z)(e,Be),r=function(e,t){return e&&"default"!==e?e:"items"in t?"dropdown":"default"}(t,n),o=Fe[r];if(!o)throw new Error('No NavbarItem component found for type "'+t+'".');return a.createElement(o,n)}function Ue(){var e=(0,P.e)(),t=(0,w.L)().navbar.items;return a.createElement("ul",{className:"menu__list"},t.map((function(t,n){return a.createElement(ze,(0,s.Z)({mobile:!0},t,{onClick:function(){return e.toggle()},key:n}))})))}function Ze(e){return a.createElement("button",(0,s.Z)({},e,{type:"button",className:"clean-btn navbar-sidebar__back"}),a.createElement(c.Z,{id:"theme.navbar.mobileSidebarSecondaryMenu.backButtonLabel",description:"The label of the back button to return to main menu, inside the mobile navbar sidebar secondary menu (notably used to display the docs sidebar)"},"\u2190 Back to main menu"))}function $e(){var e=0===(0,w.L)().navbar.items.length,t=F();return a.createElement(a.Fragment,null,!e&&a.createElement(Ze,{onClick:function(){return t.hide()}}),t.content)}function qe(){var e,t=(0,P.e)();return void 0===(e=t.shown)&&(e=!0),(0,a.useEffect)((function(){return document.body.style.overflow=e?"hidden":"visible",function(){document.body.style.overflow="visible"}}),[e]),t.shouldRender?a.createElement(B,{header:a.createElement(X,null),primaryMenu:a.createElement(Ue,null),secondaryMenu:a.createElement($e,null)}):null}const He={navbarHideable:"navbarHideable_evHJ",navbarHidden:"navbarHidden_JVAT"};function Ge(e){return a.createElement("div",(0,s.Z)({role:"presentation"},e,{className:(0,r.Z)("navbar-sidebar__backdrop",e.className)}))}function Ve(e){var t=e.children,n=(0,w.L)().navbar,o=n.hideOnScroll,i=n.style,s=(0,P.e)(),l=function(e){var t=(0,a.useState)(e),n=t[0],r=t[1],o=(0,a.useRef)(!1),i=(0,a.useRef)(0),s=(0,a.useCallback)((function(e){null!==e&&(i.current=e.getBoundingClientRect().height)}),[]);return(0,N.RF)((function(t,n){var a=t.scrollY;if(e)if(a=s?r(!1):a+c0&&a.createElement(bt,{links:n}),logo:r&&a.createElement(kt,{logo:r}),copyright:t&&a.createElement(_t,{copyright:t})})}const St=a.memo(Et);var Ct=(0,O.Qc)([z.S,k.pl,N.OC,De.L5,i.VC,function(e){var t=e.children;return a.createElement(I.n2,null,a.createElement(P.M,null,a.createElement(M,null,t)))}]);function Tt(e){var t=e.children;return a.createElement(Ct,null,t)}function Lt(e){var t=e.error,n=e.tryAgain;return 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(c.Z,{id:"theme.ErrorPageContent.title",description:"The title of the fallback page when the page crashed"},"This page crashed.")),a.createElement("div",{className:"margin-vert--lg"},a.createElement(Qe,{onClick:n,className:"button button--primary shadow--lw"})),a.createElement("hr",null),a.createElement("div",{className:"margin-vert--md"},a.createElement(Xe,{error:t})))))}const At={mainWrapper:"mainWrapper_flzm"};function Rt(e){var t=e.children,n=e.noFooter,s=e.wrapperClassName,l=e.title,c=e.description;return(0,b.t)(),a.createElement(Tt,null,a.createElement(i.d,{title:l,description:c}),a.createElement(y,null),a.createElement(R,null),a.createElement(lt,null),a.createElement("div",{id:p,className:(0,r.Z)(v.k.wrapper.main,At.mainWrapper,s)},a.createElement(o.Z,{fallback:function(e){return a.createElement(Lt,e)}},t)),!n&&a.createElement(St,null))}},73697:(e,t,n)=>{"use strict";n.d(t,{Z:()=>f});var a=n(54805),r=n(30008),o=n(29901),i=n(36103),s=n(86820),l=n(43597),c=n(90610),u=n(2601),p=["imageClassName","titleClassName"];function d(e){var t=e.logo,n=e.alt,a=e.imageClassName,r={light:(0,s.Z)(t.src),dark:(0,s.Z)(t.srcDark||t.src)},i=o.createElement(u.Z,{className:t.className,sources:r,height:t.height,width:t.width,alt:n,style:t.style});return a?o.createElement("div",{className:a},i):i}function f(e){var t,n=(0,l.Z)().siteConfig.title,u=(0,c.L)().navbar,f=u.title,h=u.logo,m=e.imageClassName,v=e.titleClassName,b=(0,r.Z)(e,p),g=(0,s.Z)((null==h?void 0:h.href)||"/"),y=f?"":n,w=null!=(t=null==h?void 0:h.alt)?t:y;return o.createElement(i.Z,(0,a.Z)({to:g},b,(null==h?void 0:h.target)&&{target:h.target}),h&&o.createElement(d,{logo:h,alt:w,imageClassName:m}),null!=f&&o.createElement("b",{className:v},f))}},30792:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var a=n(29901),r=n(89271);function o(e){var t=e.locale,n=e.version,o=e.tag,i=t;return a.createElement(r.Z,null,t&&a.createElement("meta",{name:"docusaurus_locale",content:t}),n&&a.createElement("meta",{name:"docusaurus_version",content:n}),o&&a.createElement("meta",{name:"docusaurus_tag",content:o}),i&&a.createElement("meta",{name:"docsearch:language",content:i}),n&&a.createElement("meta",{name:"docsearch:version",content:n}),o&&a.createElement("meta",{name:"docsearch:docusaurus_tag",content:o}))}},2601:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});var a=n(54805),r=n(30008),o=n(29901),i=n(14517),s=n(89460),l=n(63221);const c={themedImage:"themedImage_SLpL","themedImage--light":"themedImage--light_uXSA","themedImage--dark":"themedImage--dark_g84L"};var u=["sources","className","alt"];function p(e){var t=(0,s.Z)(),n=(0,l.I)().colorMode,p=e.sources,d=e.className,f=e.alt,h=(0,r.Z)(e,u),m=t?"dark"===n?["dark"]:["light"]:["light","dark"];return o.createElement(o.Fragment,null,m.map((function(e){return o.createElement("img",(0,a.Z)({key:e,src:p[e],alt:f,className:(0,i.Z)(c.themedImage,c["themedImage--"+e],d)},h))})))}},94228:(e,t,n)=>{"use strict";n.d(t,{u:()=>u,z:()=>y});var a=n(54805),r=n(30008),o=n(29901),i=n(53157),s=["collapsed"],l=["lazy"],c="ease-in-out";function u(e){var t=e.initialState,n=(0,o.useState)(null!=t&&t),a=n[0],r=n[1],i=(0,o.useCallback)((function(){r((function(e){return!e}))}),[]);return{collapsed:a,setCollapsed:r,toggleCollapsed:i}}var p={display:"none",overflow:"hidden",height:"0px"},d={display:"block",overflow:"visible",height:"auto"};function f(e,t){var n=t?p:d;e.style.display=n.display,e.style.overflow=n.overflow,e.style.height=n.height}function h(e){if(window.matchMedia("(prefers-reduced-motion: reduce)").matches)return 0;var t=e/36;return Math.round(10*(4+15*Math.pow(t,.25)+t/5))}function m(e){var t=e.collapsibleRef,n=e.collapsed,a=e.animation,r=(0,o.useRef)(!1);(0,o.useEffect)((function(){var e,o=t.current;function i(){var e,t,n,r=(n=o.scrollHeight,{transition:"height "+(null!=(e=null==a?void 0:a.duration)?e:h(n))+"ms "+(null!=(t=null==a?void 0:a.easing)?t:c),height:n+"px"});o.style.transition=r.transition,o.style.height=r.height}if(!r.current)return f(o,n),void(r.current=!0);return o.style.willChange="height",e=requestAnimationFrame((function(){n?(i(),requestAnimationFrame((function(){o.style.height=p.height,o.style.overflow=p.overflow}))):(o.style.display="block",requestAnimationFrame((function(){i()})))})),function(){return cancelAnimationFrame(e)}}),[t,n,a])}function v(e){if(!i.Z.canUseDOM)return e?p:d}function b(e){var t=e.as,n=void 0===t?"div":t,a=e.collapsed,r=e.children,i=e.animation,s=e.onCollapseTransitionEnd,l=e.className,c=e.disableSSRStyle,u=(0,o.useRef)(null);return m({collapsibleRef:u,collapsed:a,animation:i}),o.createElement(n,{ref:u,style:c?void 0:v(a),onTransitionEnd:function(e){"height"===e.propertyName&&(f(u.current,a),null==s||s(a))},className:l},r)}function g(e){var t=e.collapsed,n=(0,r.Z)(e,s),i=(0,o.useState)(!t),l=i[0],c=i[1],u=(0,o.useState)(t),p=u[0],d=u[1];return(0,o.useLayoutEffect)((function(){t||c(!0)}),[t]),(0,o.useLayoutEffect)((function(){l&&d(t)}),[l,t]),l?o.createElement(b,(0,a.Z)({},n,{collapsed:p})):null}function y(e){var t=e.lazy,n=(0,r.Z)(e,l),a=t?g:b;return o.createElement(a,n)}},87910:(e,t,n)=>{"use strict";n.d(t,{nT:()=>h,pl:()=>f});var a=n(29901),r=n(89460),o=n(42511),i=n(73154),s=n(90610),l=(0,o.WA)("docusaurus.announcement.dismiss"),c=(0,o.WA)("docusaurus.announcement.id"),u=function(){return"true"===l.get()},p=function(e){return l.set(String(e))},d=a.createContext(null);function f(e){var t=e.children,n=function(){var e=(0,s.L)().announcementBar,t=(0,r.Z)(),n=(0,a.useState)((function(){return!!t&&u()})),o=n[0],i=n[1];(0,a.useEffect)((function(){i(u())}),[]);var l=(0,a.useCallback)((function(){p(!0),i(!0)}),[]);return(0,a.useEffect)((function(){if(e){var t=e.id,n=c.get();"annoucement-bar"===n&&(n="announcement-bar");var a=t!==n;c.set(t),a&&p(!1),!a&&u()||i(!1)}}),[e]),(0,a.useMemo)((function(){return{isActive:!!e&&!o,close:l}}),[e,o,l])}();return a.createElement(d.Provider,{value:n},t)}function h(){var e=(0,a.useContext)(d);if(!e)throw new i.i6("AnnouncementBarProvider");return e}},63221:(e,t,n)=>{"use strict";n.d(t,{I:()=>v,S:()=>m});var a=n(29901),r=n(53157),o=n(73154),i=n(42511),s=n(90610),l=a.createContext(void 0),c="theme",u=(0,i.WA)(c),p={light:"light",dark:"dark"},d=function(e){return e===p.dark?p.dark:p.light},f=function(e){return r.Z.canUseDOM?d(document.documentElement.getAttribute("data-theme")):d(e)},h=function(e){u.set(d(e))};function m(e){var t=e.children,n=function(){var e=(0,s.L)().colorMode,t=e.defaultMode,n=e.disableSwitch,r=e.respectPrefersColorScheme,o=(0,a.useState)(f(t)),i=o[0],l=o[1];(0,a.useEffect)((function(){n&&u.del()}),[n]);var m=(0,a.useCallback)((function(e,n){void 0===n&&(n={});var a=n.persist,o=void 0===a||a;e?(l(e),o&&h(e)):(l(r?window.matchMedia("(prefers-color-scheme: dark)").matches?p.dark:p.light:t),u.del())}),[r,t]);(0,a.useEffect)((function(){document.documentElement.setAttribute("data-theme",d(i))}),[i]),(0,a.useEffect)((function(){if(!n){var e=function(e){if(e.key===c){var t=u.get();null!==t&&m(d(t))}};return window.addEventListener("storage",e),function(){return window.removeEventListener("storage",e)}}}),[n,m]);var v=(0,a.useRef)(!1);return(0,a.useEffect)((function(){if(!n||r){var e=window.matchMedia("(prefers-color-scheme: dark)"),t=function(){window.matchMedia("print").matches||v.current?v.current=window.matchMedia("print").matches:m(null)};return e.addListener(t),function(){return e.removeListener(t)}}}),[m,n,r]),(0,a.useMemo)((function(){return{colorMode:i,setColorMode:m,get isDarkTheme(){return i===p.dark},setLightTheme:function(){m(p.light)},setDarkTheme:function(){m(p.dark)}}}),[i,m])}();return a.createElement(l.Provider,{value:n},t)}function v(){var e=(0,a.useContext)(l);if(null==e)throw new o.i6("ColorModeProvider","Please see https://docusaurus.io/docs/api/themes/configuration#use-color-mode.");return e}},88327:(e,t,n)=>{"use strict";n.d(t,{J:()=>g,L5:()=>v});var a=n(29901),r=n(88803),o=n(91097),i=n(90610),s=n(91801),l=n(73154),c=n(42511),u=function(e){return"docs-preferred-version-"+e},p={save:function(e,t,n){(0,c.WA)(u(e),{persistence:t}).set(n)},read:function(e,t){return(0,c.WA)(u(e),{persistence:t}).get()},clear:function(e,t){(0,c.WA)(u(e),{persistence:t}).del()}},d=function(e){return Object.fromEntries(e.map((function(e){return[e,{preferredVersionName:null}]})))};var f=a.createContext(null);function h(){var e=(0,r._r)(),t=(0,i.L)().docs.versionPersistence,n=(0,a.useMemo)((function(){return Object.keys(e)}),[e]),o=(0,a.useState)((function(){return d(n)})),s=o[0],l=o[1];return(0,a.useEffect)((function(){l(function(e){var t=e.pluginIds,n=e.versionPersistence,a=e.allDocsData;return Object.fromEntries(t.map((function(e){return[e,(t=e,r=p.read(t,n),a[t].versions.some((function(e){return e.name===r}))?{preferredVersionName:r}:(p.clear(t,n),{preferredVersionName:null}))];var t,r})))}({allDocsData:e,versionPersistence:t,pluginIds:n}))}),[e,t,n]),[s,(0,a.useMemo)((function(){return{savePreferredVersion:function(e,n){p.save(e,t,n),l((function(t){var a;return Object.assign({},t,((a={})[e]={preferredVersionName:n},a))}))}}}),[t])]}function m(e){var t=e.children,n=h();return a.createElement(f.Provider,{value:n},t)}function v(e){var t=e.children;return s.cE?a.createElement(m,null,t):a.createElement(a.Fragment,null,t)}function b(){var e=(0,a.useContext)(f);if(!e)throw new l.i6("DocsPreferredVersionContextProvider");return e}function g(e){var t;void 0===e&&(e=o.m);var n=(0,r.zh)(e),i=b(),s=i[0],l=i[1],c=s[e].preferredVersionName;return{preferredVersion:null!=(t=n.versions.find((function(e){return e.name===c})))?t:null,savePreferredVersionName:(0,a.useCallback)((function(t){l.savePreferredVersion(e,t)}),[l,e])}}},51270:(e,t,n)=>{"use strict";n.d(t,{V:()=>l,b:()=>s});var a=n(29901),r=n(73154),o=Symbol("EmptyContext"),i=a.createContext(o);function s(e){var t=e.children,n=e.name,r=e.items,o=(0,a.useMemo)((function(){return n&&r?{name:n,items:r}:null}),[n,r]);return a.createElement(i.Provider,{value:o},t)}function l(){var e=(0,a.useContext)(i);if(e===o)throw new r.i6("DocsSidebarProvider");return e}},36092:(e,t,n)=>{"use strict";n.d(t,{M:()=>p,e:()=>d});var a=n(29901),r=n(61437),o=n(6255),i=n(68071),s=n(90610),l=n(73154),c=a.createContext(void 0);function u(){var e,t=(e=(0,r.HY)(),0===(0,s.L)().navbar.items.length&&!e.component),n=(0,o.i)(),l=!t&&"mobile"===n,c=(0,a.useState)(!1),u=c[0],p=c[1];(0,i.Rb)((function(){if(u)return p(!1),!1}));var d=(0,a.useCallback)((function(){p((function(e){return!e}))}),[]);return(0,a.useEffect)((function(){"desktop"===n&&p(!1)}),[n]),(0,a.useMemo)((function(){return{disabled:t,shouldRender:l,toggle:d,shown:u}}),[t,l,d,u])}function p(e){var t=e.children,n=u();return a.createElement(c.Provider,{value:n},t)}function d(){var e=a.useContext(c);if(void 0===e)throw new l.i6("NavbarMobileSidebarProvider");return e}},61437:(e,t,n)=>{"use strict";n.d(t,{HY:()=>s,Zo:()=>l,n2:()=>i});var a=n(29901),r=n(73154),o=a.createContext(null);function i(e){var t=e.children,n=(0,a.useState)({component:null,props:null});return a.createElement(o.Provider,{value:n},t)}function s(){var e=(0,a.useContext)(o);if(!e)throw new r.i6("NavbarSecondaryMenuContentProvider");return e[0]}function l(e){var t=e.component,n=e.props,i=(0,a.useContext)(o);if(!i)throw new r.i6("NavbarSecondaryMenuContentProvider");var s=i[1],l=(0,r.Ql)(n);return(0,a.useEffect)((function(){s({component:t,props:l})}),[s,t,l]),(0,a.useEffect)((function(){return function(){return s({component:null,props:null})}}),[s]),null}},55364:(e,t,n)=>{"use strict";n.d(t,{h:()=>r,t:()=>o});var a=n(29901),r="navigation-with-keyboard";function o(){(0,a.useEffect)((function(){function e(e){"keydown"===e.type&&"Tab"===e.key&&document.body.classList.add(r),"mousedown"===e.type&&document.body.classList.remove(r)}return document.addEventListener("keydown",e),document.addEventListener("mousedown",e),function(){document.body.classList.remove(r),document.removeEventListener("keydown",e),document.removeEventListener("mousedown",e)}}),[])}},6255:(e,t,n)=>{"use strict";n.d(t,{i:()=>c});var a=n(29901),r=n(53157),o={desktop:"desktop",mobile:"mobile",ssr:"ssr"},i=996;function s(){return r.Z.canUseDOM?window.innerWidth>i?o.desktop:o.mobile:o.ssr}var l=!1;function c(){var e=(0,a.useState)((function(){return l?"ssr":s()})),t=e[0],n=e[1];return(0,a.useEffect)((function(){function e(){n(s())}var t=l?window.setTimeout(e,1e3):void 0;return window.addEventListener("resize",e),function(){window.removeEventListener("resize",e),clearTimeout(t)}}),[]),t}},72601:(e,t,n)=>{"use strict";n.d(t,{k:()=>a});var a={page:{blogListPage:"blog-list-page",blogPostPage:"blog-post-page",blogTagsListPage:"blog-tags-list-page",blogTagPostListPage:"blog-tags-post-list-page",docsDocPage:"docs-doc-page",docsTagsListPage:"docs-tags-list-page",docsTagDocListPage:"docs-tags-doc-list-page",mdxPage:"mdx-page"},wrapper:{main:"main-wrapper",blogPages:"blog-wrapper",docsPages:"docs-wrapper",mdxPages:"mdx-wrapper"},common:{editThisPage:"theme-edit-this-page",lastUpdated:"theme-last-updated",backToTopButton:"theme-back-to-top-button",codeBlock:"theme-code-block",admonition:"theme-admonition",admonitionType:function(e){return"theme-admonition-"+e}},layout:{},docs:{docVersionBanner:"theme-doc-version-banner",docVersionBadge:"theme-doc-version-badge",docBreadcrumbs:"theme-doc-breadcrumbs",docMarkdown:"theme-doc-markdown",docTocMobile:"theme-doc-toc-mobile",docTocDesktop:"theme-doc-toc-desktop",docFooter:"theme-doc-footer",docFooterTagsRow:"theme-doc-footer-tags-row",docFooterEditMetaRow:"theme-doc-footer-edit-meta-row",docSidebarContainer:"theme-doc-sidebar-container",docSidebarMenu:"theme-doc-sidebar-menu",docSidebarItemCategory:"theme-doc-sidebar-item-category",docSidebarItemLink:"theme-doc-sidebar-item-link",docSidebarItemCategoryLevel:function(e){return"theme-doc-sidebar-item-category-level-"+e},docSidebarItemLinkLevel:function(e){return"theme-doc-sidebar-item-link-level-"+e}},blog:{}}},91801:(e,t,n)=>{"use strict";function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,{Wl:()=>h,_F:()=>b,cE:()=>f,hI:()=>x,lO:()=>w,vY:()=>_,oz:()=>k,s1:()=>y});var o=n(29901),i=n(96172),s=n(17178),l=n(88803),c=n(88327),u=n(51270),p=n(26831),d=n(34984),f=!!l._r;function h(e){if(e.href)return e.href;for(var t,n=r(e.items);!(t=n()).done;){var a=t.value;if("link"===a.type)return a.href;if("category"===a.type){var o=h(a);if(o)return o}}}var m=function(e,t){return void 0!==e&&(0,d.Mg)(e,t)},v=function(e,t){return e.some((function(e){return b(e,t)}))};function b(e,t){return"link"===e.type?m(e.href,t):"category"===e.type&&(m(e.href,t)||v(e.items,t))}function g(e){var t=e.sidebarItems,n=e.pathname,a=e.onlyCategories,o=void 0!==a&&a,i=[];return function e(t){for(var a,s=r(t);!(a=s()).done;){var l=a.value;if("category"===l.type&&((0,d.Mg)(l.href,n)||e(l.items))||"link"===l.type&&(0,d.Mg)(l.href,n))return o&&"category"!==l.type||i.unshift(l),!0}return!1}(t),i}function y(){var e,t=(0,u.V)(),n=(0,i.TH)().pathname;return!1!==(null==(e=(0,l.gA)())?void 0:e.pluginData.breadcrumbs)&&t?g({sidebarItems:t.items,pathname:n}):null}function w(e){var t=(0,l.Iw)(e).activeVersion,n=(0,c.J)(e).preferredVersion,a=(0,l.yW)(e);return(0,o.useMemo)((function(){return(0,p.j)([t,n,a].filter(Boolean))}),[t,n,a])}function k(e,t){var n=w(t);return(0,o.useMemo)((function(){var t=n.flatMap((function(e){return e.sidebars?Object.entries(e.sidebars):[]})),a=t.find((function(t){return t[0]===e}));if(!a)throw new Error("Can't find any sidebar with id \""+e+'" in version'+(n.length>1?"s":"")+" "+n.map((function(e){return e.name})).join(", ")+'".\nAvailable sidebar ids are:\n- '+Object.keys(t).join("\n- "));return a[1]}),[e,n])}function _(e,t){var n=w(t);return(0,o.useMemo)((function(){var t=n.flatMap((function(e){return e.docs})),a=t.find((function(t){return t.id===e}));if(!a){if(n.flatMap((function(e){return e.draftIds})).includes(e))return null;throw new Error("Couldn't find any doc with id \""+e+'" in version'+(n.length>1?"s":"")+' "'+n.map((function(e){return e.name})).join(", ")+'".\nAvailable doc ids are:\n- '+(0,p.j)(t.map((function(e){return e.id}))).join("\n- "))}return a}),[e,n])}function x(e){var t=e.route,n=e.versionMetadata,a=(0,i.TH)(),r=t.routes,o=r.find((function(e){return(0,i.LX)(a.pathname,e)}));if(!o)return null;var l=o.sidebar,c=l?n.docsSidebars[l]:void 0;return{docElement:(0,s.H)(r),sidebarName:l,sidebarItems:c}}},68071:(e,t,n)=>{"use strict";n.d(t,{Rb:()=>s,_X:()=>l});var a=n(29901),r=n(96172),o=n(19720),i=n(73154);function s(e){!function(e){var t=(0,r.k6)(),n=(0,i.zX)(e);(0,a.useEffect)((function(){return t.block((function(e,t){return n(e,t)}))}),[t,n])}((function(t,n){if("POP"===n)return e(t,n)}))}function l(e){return t=function(t){return null===e?null:new URLSearchParams(t.location.search).get(e)},n=(0,r.k6)(),(0,o.useSyncExternalStore)(n.listen,(function(){return t(n)}),(function(){return t(n)}));var t,n}},26831:(e,t,n)=>{"use strict";function a(e,t){return void 0===t&&(t=function(e,t){return e===t}),e.filter((function(n,a){return e.findIndex((function(e){return t(e,n)}))!==a}))}function r(e){return Array.from(new Set(e))}n.d(t,{j:()=>r,l:()=>a})},22275:(e,t,n)=>{"use strict";n.d(t,{FG:()=>d,d:()=>u,VC:()=>f});var a=n(29901),r=n(14517),o=n(89271),i=n(49186);function s(){var e=a.useContext(i._);if(!e)throw new Error("Unexpected: no Docusaurus route context found");return e}var l=n(86820),c=n(43597);function u(e){var t=e.title,n=e.description,r=e.keywords,i=e.image,s=e.children,u=function(e){var t=(0,c.Z)().siteConfig,n=t.title,a=t.titleDelimiter;return null!=e&&e.trim().length?e.trim()+" "+a+" "+n:n}(t),p=(0,l.C)().withBaseUrl,d=i?p(i,{absolute:!0}):void 0;return a.createElement(o.Z,null,t&&a.createElement("title",null,u),t&&a.createElement("meta",{property:"og:title",content:u}),n&&a.createElement("meta",{name:"description",content:n}),n&&a.createElement("meta",{property:"og:description",content:n}),r&&a.createElement("meta",{name:"keywords",content:Array.isArray(r)?r.join(","):r}),d&&a.createElement("meta",{property:"og:image",content:d}),d&&a.createElement("meta",{name:"twitter:image",content:d}),s)}var p=a.createContext(void 0);function d(e){var t=e.className,n=e.children,i=a.useContext(p),s=(0,r.Z)(i,t);return a.createElement(p.Provider,{value:s},a.createElement(o.Z,null,a.createElement("html",{className:s})),n)}function f(e){var t=e.children,n=s(),o="plugin-"+n.plugin.name.replace(/docusaurus-(?:plugin|theme)-(?:content-)?/gi,""),i="plugin-id-"+n.plugin.id;return a.createElement(d,{className:(0,r.Z)(o,i)},t)}},73154:(e,t,n)=>{"use strict";n.d(t,{i6:()=>f,Qc:()=>m,zX:()=>p,D9:()=>d,Ql:()=>h});var a=n(21428),r=n(45701);function o(e){return o=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},o(e)}var i=n(38691);function s(e,t,n){return s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}()?Reflect.construct.bind():function(e,t,n){var a=[null];a.push.apply(a,t);var r=new(Function.bind.apply(e,a));return n&&(0,i.Z)(r,n.prototype),r},s.apply(null,arguments)}function l(e){var t="function"==typeof Map?new Map:void 0;return l=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return s(e,arguments,o(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),(0,i.Z)(n,e)},l(e)}var c=n(29901),u=n(53157).Z.canUseDOM?c.useLayoutEffect:c.useEffect;function p(e){var t=(0,c.useRef)(e);return u((function(){t.current=e}),[e]),(0,c.useCallback)((function(){return t.current.apply(t,arguments)}),[])}function d(e){var t=(0,c.useRef)();return u((function(){t.current=e})),t.current}var f=function(e){function t(t,n){var r,o,i;return(i=e.call(this)||this).name="ReactContextError",i.message="Hook "+(null!=(r=null==(o=i.stack)||null==(o=o.split("\n")[1])||null==(o=o.match((0,a.Z)(/at (?:\w+\.)?(\w+)/,{name:1})))?void 0:o.groups.name)?r:"")+" is called outside the <"+t+">. "+(null!=n?n:""),i}return(0,r.Z)(t,e),t}(l(Error));function h(e){var t=Object.entries(e);return t.sort((function(e,t){return e[0].localeCompare(t[0])})),(0,c.useMemo)((function(){return e}),t.flat())}function m(e){return function(t){var n=t.children;return c.createElement(c.Fragment,null,e.reduceRight((function(e,t){return c.createElement(t,null,e)}),n))}}},34984:(e,t,n)=>{"use strict";n.d(t,{Mg:()=>i,Ns:()=>s});var a=n(29901),r=n(78533),o=n(43597);function i(e,t){var n=function(e){var t;return null==(t=!e||e.endsWith("/")?e:e+"/")?void 0:t.toLowerCase()};return n(e)===n(t)}function s(){var e=(0,o.Z)().siteConfig.baseUrl;return(0,a.useMemo)((function(){return function(e){var t=e.baseUrl;function n(e){return e.path===t&&!0===e.exact}function a(e){return e.path===t&&!e.exact}return function e(t){if(0!==t.length)return t.find(n)||e(t.filter(a).flatMap((function(e){var t;return null!=(t=e.routes)?t:[]})))}(e.routes)}({routes:r.Z,baseUrl:e})}),[e])}},88003:(e,t,n)=>{"use strict";n.d(t,{Ct:()=>f,OC:()=>l,RF:()=>p,o5:()=>d});var a=n(29901),r=n(53157),o=n(89460),i=n(73154);var s=a.createContext(void 0);function l(e){var t,n=e.children,r=(t=(0,a.useRef)(!0),(0,a.useMemo)((function(){return{scrollEventsEnabledRef:t,enableScrollEvents:function(){t.current=!0},disableScrollEvents:function(){t.current=!1}}}),[]));return a.createElement(s.Provider,{value:r},n)}function c(){var e=(0,a.useContext)(s);if(null==e)throw new i.i6("ScrollControllerProvider");return e}var u=function(){return r.Z.canUseDOM?{scrollX:window.pageXOffset,scrollY:window.pageYOffset}:null};function p(e,t){void 0===t&&(t=[]);var n=c().scrollEventsEnabledRef,r=(0,a.useRef)(u()),o=(0,i.zX)(e);(0,a.useEffect)((function(){var e=function(){if(n.current){var e=u();o(e,r.current),r.current=e}},t={passive:!0};return e(),window.addEventListener("scroll",e,t),function(){return window.removeEventListener("scroll",e,t)}}),[o,n].concat(t))}function d(){var e,t,n,r=c(),o=(e=(0,a.useRef)({elem:null,top:0}),t=(0,a.useCallback)((function(t){e.current={elem:t,top:t.getBoundingClientRect().top}}),[]),n=(0,a.useCallback)((function(){var t=e.current,n=t.elem,a=t.top;if(!n)return{restored:!1};var r=n.getBoundingClientRect().top-a;return r&&window.scrollBy({left:0,top:r}),e.current={elem:null,top:0},{restored:0!==r}}),[]),(0,a.useMemo)((function(){return{save:t,restore:n}}),[n,t])),i=(0,a.useRef)(void 0),s=(0,a.useCallback)((function(e){o.save(e),r.disableScrollEvents(),i.current=function(){var e=o.restore().restored;if(i.current=void 0,e){window.addEventListener("scroll",(function e(){r.enableScrollEvents(),window.removeEventListener("scroll",e)}))}else r.enableScrollEvents()}}),[r,o]);return(0,a.useLayoutEffect)((function(){queueMicrotask((function(){return null==i.current?void 0:i.current()}))})),{blockElementScrollPositionUntilNextRender:s}}function f(){var e=(0,a.useRef)(null),t=(0,o.Z)()&&"smooth"===getComputedStyle(document.documentElement).scrollBehavior;return{startScroll:function(n){e.current=t?function(e){return window.scrollTo({top:e,behavior:"smooth"}),function(){}}(n):function(e){var t=null,n=document.documentElement.scrollTop>e;return function a(){var r=document.documentElement.scrollTop;(n&&r>e||!n&&r{"use strict";n.d(t,{HX:()=>a,os:()=>r});n(43597);var a="default";function r(e,t){return"docs-"+e+"-"+t}},42511:(e,t,n)=>{"use strict";n.d(t,{Nk:()=>p,WA:()=>u});var a=n(29901),r=n(19720),o="localStorage";function i(e){var t=e.key,n=e.oldValue,a=e.newValue,r=e.storage;if(n!==a){var o=document.createEvent("StorageEvent");o.initStorageEvent("storage",!1,!1,t,n,a,window.location.href,r),window.dispatchEvent(o)}}function s(e){if(void 0===e&&(e=o),"undefined"==typeof window)throw new Error("Browser storage is not available on Node.js/Docusaurus SSR process.");if("none"===e)return null;try{return window[e]}catch(n){return t=n,l||(console.warn("Docusaurus browser storage is not available.\nPossible reasons: running Docusaurus in an iframe, in an incognito browser session, or using too strict browser privacy settings.",t),l=!0),null}var t}var l=!1;var c={get:function(){return null},set:function(){},del:function(){},listen:function(){return function(){}}};function u(e,t){if("undefined"==typeof window)return function(e){function t(){throw new Error('Illegal storage API usage for storage key "'+e+'".\nDocusaurus storage APIs are not supposed to be called on the server-rendering process.\nPlease only call storage APIs in effects and event handlers.')}return{get:t,set:t,del:t,listen:t}}(e);var n=s(null==t?void 0:t.persistence);return null===n?c:{get:function(){try{return n.getItem(e)}catch(t){return console.error("Docusaurus storage error, can't get key="+e,t),null}},set:function(t){try{var a=n.getItem(e);n.setItem(e,t),i({key:e,oldValue:a,newValue:t,storage:n})}catch(r){console.error("Docusaurus storage error, can't set "+e+"="+t,r)}},del:function(){try{var t=n.getItem(e);n.removeItem(e),i({key:e,oldValue:t,newValue:null,storage:n})}catch(a){console.error("Docusaurus storage error, can't delete key="+e,a)}},listen:function(t){try{var a=function(a){a.storageArea===n&&a.key===e&&t(a)};return window.addEventListener("storage",a),function(){return window.removeEventListener("storage",a)}}catch(r){return console.error("Docusaurus storage error, can't listen for changes of key="+e,r),function(){}}}}}function p(e,t){var n=(0,a.useRef)((function(){return null===e?c:u(e,t)})).current(),o=(0,a.useCallback)((function(e){return"undefined"==typeof window?function(){}:n.listen(e)}),[n]);return[(0,r.useSyncExternalStore)(o,(function(){return"undefined"==typeof window?null:n.get()}),(function(){return null})),n]}},4197:(e,t,n)=>{"use strict";n.d(t,{l:()=>o});var a=n(43597),r=n(96172);function o(){var e=(0,a.Z)(),t=e.siteConfig,n=t.baseUrl,o=t.url,i=e.i18n,s=i.defaultLocale,l=i.currentLocale,c=(0,r.TH)().pathname,u=l===s?n:n.replace("/"+l+"/","/"),p=c.replace(n,"");return{createUrl:function(e){var t=e.locale;return""+(e.fullyQualified?o:"")+function(e){return e===s?""+u:""+u+e+"/"}(t)+p}}}},37129:(e,t,n)=>{"use strict";n.d(t,{S:()=>i});var a=n(29901),r=n(96172),o=n(73154);function i(e){var t=(0,r.TH)(),n=(0,o.D9)(t),i=(0,o.zX)(e);(0,a.useEffect)((function(){n&&t!==n&&i({location:t,previousLocation:n})}),[i,t,n])}},90610:(e,t,n)=>{"use strict";n.d(t,{L:()=>r});var a=n(43597);function r(){return(0,a.Z)().siteConfig.themeConfig}},55124:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=t.trailingSlash,a=t.baseUrl;if(e.startsWith("#"))return e;if(void 0===n)return e;var r,o=e.split(/[#?]/)[0],i="/"===o||o===a?o:(r=o,n?function(e){return e.endsWith("/")?e:e+"/"}(r):function(e){return e.endsWith("/")?e.slice(0,-1):e}(r));return e.replace(o,i)}},99086:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getErrorCausalChain=void 0,t.getErrorCausalChain=function e(t){return t.cause?[t].concat(e(t.cause)):[t]}},11788:function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getErrorCausalChain=t.applyTrailingSlash=t.blogPostContainerID=void 0,t.blogPostContainerID="post-content";var r=n(55124);Object.defineProperty(t,"applyTrailingSlash",{enumerable:!0,get:function(){return a(r).default}});var o=n(99086);Object.defineProperty(t,"getErrorCausalChain",{enumerable:!0,get:function(){return o.getErrorCausalChain}})},14517:(e,t,n)=>{"use strict";function a(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;tr});const r=function(){for(var e,t,n=0,r="";n{"use strict";n.d(t,{lX:()=>w,q_:()=>C,ob:()=>f,PP:()=>L,Ep:()=>d});var a=n(54805);function r(e){return"/"===e.charAt(0)}function o(e,t){for(var n=t,a=n+1,r=e.length;a=0;d--){var f=i[d];"."===f?o(i,d):".."===f?(o(i,d),p++):p&&(o(i,d),p--)}if(!c)for(;p--;p)i.unshift("..");!c||""===i[0]||i[0]&&r(i[0])||i.unshift("");var h=i.join("/");return n&&"/"!==h.substr(-1)&&(h+="/"),h};var s=n(65669);function l(e){return"/"===e.charAt(0)?e:"/"+e}function c(e){return"/"===e.charAt(0)?e.substr(1):e}function u(e,t){return function(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))}(e,t)?e.substr(t.length):e}function p(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function d(e){var t=e.pathname,n=e.search,a=e.hash,r=t||"/";return n&&"?"!==n&&(r+="?"===n.charAt(0)?n:"?"+n),a&&"#"!==a&&(r+="#"===a.charAt(0)?a:"#"+a),r}function f(e,t,n,r){var o;"string"==typeof e?(o=function(e){var t=e||"/",n="",a="",r=t.indexOf("#");-1!==r&&(a=t.substr(r),t=t.substr(0,r));var o=t.indexOf("?");return-1!==o&&(n=t.substr(o),t=t.substr(0,o)),{pathname:t,search:"?"===n?"":n,hash:"#"===a?"":a}}(e),o.state=t):(void 0===(o=(0,a.Z)({},e)).pathname&&(o.pathname=""),o.search?"?"!==o.search.charAt(0)&&(o.search="?"+o.search):o.search="",o.hash?"#"!==o.hash.charAt(0)&&(o.hash="#"+o.hash):o.hash="",void 0!==t&&void 0===o.state&&(o.state=t));try{o.pathname=decodeURI(o.pathname)}catch(s){throw s instanceof URIError?new URIError('Pathname "'+o.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):s}return n&&(o.key=n),r?o.pathname?"/"!==o.pathname.charAt(0)&&(o.pathname=i(o.pathname,r.pathname)):o.pathname=r.pathname:o.pathname||(o.pathname="/"),o}function h(){var e=null;var t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,a,r){if(null!=e){var o="function"==typeof e?e(t,n):e;"string"==typeof o?"function"==typeof a?a(o,r):r(!0):r(!1!==o)}else r(!0)},appendListener:function(e){var n=!0;function a(){n&&e.apply(void 0,arguments)}return t.push(a),function(){n=!1,t=t.filter((function(e){return e!==a}))}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),a=0;at?n.splice(t,n.length-t,r):n.push(r),p({action:a,location:r,index:t,entries:n})}}))},replace:function(e,t){var a="REPLACE",r=f(e,t,m(),w.location);u.confirmTransitionTo(r,a,n,(function(e){e&&(w.entries[w.index]=r,p({action:a,location:r}))}))},go:y,goBack:function(){y(-1)},goForward:function(){y(1)},canGo:function(e){var t=w.index+e;return t>=0&&t{"use strict";var a=n(99415),r={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return a.isMemo(e)?i:s[e.$$typeof]||r}s[a.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[a.Memo]=i;var c=Object.defineProperty,u=Object.getOwnPropertyNames,p=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,a){if("string"!=typeof n){if(h){var r=f(n);r&&r!==h&&e(t,r,a)}var i=u(n);p&&(i=i.concat(p(n)));for(var s=l(t),m=l(n),v=0;v{"use strict";e.exports=function(e,t,n,a,r,o,i,s){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,a,r,o,i,s],u=0;(l=new Error(t.replace(/%s/g,(function(){return c[u++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}}},58967:e=>{e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},53555:(e,t,n)=>{"use strict";n.r(t)},86019:(e,t,n)=>{"use strict";n.r(t)},66567:function(e,t,n){var a,r;a=function(){var e,t,n={version:"0.2.0"},a=n.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'
'};function r(e,t,n){return en?n:e}function o(e){return 100*(-1+e)}function i(e,t,n){var r;return(r="translate3d"===a.positionUsing?{transform:"translate3d("+o(e)+"%,0,0)"}:"translate"===a.positionUsing?{transform:"translate("+o(e)+"%,0)"}:{"margin-left":o(e)+"%"}).transition="all "+t+"ms "+n,r}n.configure=function(e){var t,n;for(t in e)void 0!==(n=e[t])&&e.hasOwnProperty(t)&&(a[t]=n);return this},n.status=null,n.set=function(e){var t=n.isStarted();e=r(e,a.minimum,1),n.status=1===e?null:e;var o=n.render(!t),c=o.querySelector(a.barSelector),u=a.speed,p=a.easing;return o.offsetWidth,s((function(t){""===a.positionUsing&&(a.positionUsing=n.getPositioningCSS()),l(c,i(e,u,p)),1===e?(l(o,{transition:"none",opacity:1}),o.offsetWidth,setTimeout((function(){l(o,{transition:"all "+u+"ms linear",opacity:0}),setTimeout((function(){n.remove(),t()}),u)}),u)):setTimeout(t,u)})),this},n.isStarted=function(){return"number"==typeof n.status},n.start=function(){n.status||n.set(0);var e=function(){setTimeout((function(){n.status&&(n.trickle(),e())}),a.trickleSpeed)};return a.trickle&&e(),this},n.done=function(e){return e||n.status?n.inc(.3+.5*Math.random()).set(1):this},n.inc=function(e){var t=n.status;return t?("number"!=typeof e&&(e=(1-t)*r(Math.random()*t,.1,.95)),t=r(t+e,0,.994),n.set(t)):n.start()},n.trickle=function(){return n.inc(Math.random()*a.trickleRate)},e=0,t=0,n.promise=function(a){return a&&"resolved"!==a.state()?(0===t&&n.start(),e++,t++,a.always((function(){0==--t?(e=0,n.done()):n.set((e-t)/e)})),this):this},n.render=function(e){if(n.isRendered())return document.getElementById("nprogress");u(document.documentElement,"nprogress-busy");var t=document.createElement("div");t.id="nprogress",t.innerHTML=a.template;var r,i=t.querySelector(a.barSelector),s=e?"-100":o(n.status||0),c=document.querySelector(a.parent);return l(i,{transition:"all 0 linear",transform:"translate3d("+s+"%,0,0)"}),a.showSpinner||(r=t.querySelector(a.spinnerSelector))&&f(r),c!=document.body&&u(c,"nprogress-custom-parent"),c.appendChild(t),t},n.remove=function(){p(document.documentElement,"nprogress-busy"),p(document.querySelector(a.parent),"nprogress-custom-parent");var e=document.getElementById("nprogress");e&&f(e)},n.isRendered=function(){return!!document.getElementById("nprogress")},n.getPositioningCSS=function(){var e=document.body.style,t="WebkitTransform"in e?"Webkit":"MozTransform"in e?"Moz":"msTransform"in e?"ms":"OTransform"in e?"O":"";return t+"Perspective"in e?"translate3d":t+"Transform"in e?"translate":"margin"};var s=function(){var e=[];function t(){var n=e.shift();n&&n(t)}return function(n){e.push(n),1==e.length&&t()}}(),l=function(){var e=["Webkit","O","Moz","ms"],t={};function n(e){return e.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,(function(e,t){return t.toUpperCase()}))}function a(t){var n=document.body.style;if(t in n)return t;for(var a,r=e.length,o=t.charAt(0).toUpperCase()+t.slice(1);r--;)if((a=e[r]+o)in n)return a;return t}function r(e){return e=n(e),t[e]||(t[e]=a(e))}function o(e,t,n){t=r(t),e.style[t]=n}return function(e,t){var n,a,r=arguments;if(2==r.length)for(n in t)void 0!==(a=t[n])&&t.hasOwnProperty(n)&&o(e,n,a);else o(e,r[1],r[2])}}();function c(e,t){return("string"==typeof e?e:d(e)).indexOf(" "+t+" ")>=0}function u(e,t){var n=d(e),a=n+t;c(n,t)||(e.className=a.substring(1))}function p(e,t){var n,a=d(e);c(e,t)&&(n=a.replace(" "+t+" "," "),e.className=n.substring(1,n.length-1))}function d(e){return(" "+(e.className||"")+" ").replace(/\s+/gi," ")}function f(e){e&&e.parentNode&&e.parentNode.removeChild(e)}return n},void 0===(r="function"==typeof a?a.call(t,n,t,e):a)||(e.exports=r)},52458:e=>{"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var a={};return"abcdefghijklmnopqrst".split("").forEach((function(e){a[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},a)).join("")}catch(r){return!1}}()?Object.assign:function(e,r){for(var o,i,s=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),l=1;l{var a=n(58967);e.exports=f,e.exports.parse=o,e.exports.compile=function(e,t){return s(o(e,t),t)},e.exports.tokensToFunction=s,e.exports.tokensToRegExp=d;var r=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function o(e,t){for(var n,a=[],o=0,i=0,s="",u=t&&t.delimiter||"/";null!=(n=r.exec(e));){var p=n[0],d=n[1],f=n.index;if(s+=e.slice(i,f),i=f+p.length,d)s+=d[1];else{var h=e[i],m=n[2],v=n[3],b=n[4],g=n[5],y=n[6],w=n[7];s&&(a.push(s),s="");var k=null!=m&&null!=h&&h!==m,_="+"===y||"*"===y,x="?"===y||"*"===y,E=n[2]||u,S=b||g;a.push({name:v||o++,prefix:m||"",delimiter:E,optional:x,repeat:_,partial:k,asterisk:!!w,pattern:S?c(S):w?".*":"[^"+l(E)+"]+?"})}}return i{"use strict";n.d(t,{Z:()=>o});var a=function(){var e=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,t=0,n={},a={util:{encode:function e(t){return t instanceof r?new r(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&").replace(/=p.reach);x+=_.value.length,_=_.next){var E=_.value;if(t.length>e.length)return;if(!(E instanceof r)){var S,C=1;if(g){if(!(S=o(k,x,e,b))||S.index>=e.length)break;var T=S.index,L=S.index+S[0].length,A=x;for(A+=_.value.length;T>=A;)A+=(_=_.next).value.length;if(x=A-=_.value.length,_.value instanceof r)continue;for(var R=_;R!==t.tail&&(Ap.reach&&(p.reach=I);var D=_.prev;if(N&&(D=l(t,D,N),x+=N.length),c(t,D,C),_=l(t,D,new r(d,v?a.tokenize(P,v):P,y,P)),O&&l(t,_,O),C>1){var M={cause:d+","+h,reach:I};i(e,t,n,_.prev,x,M),p&&M.reach>p.reach&&(p.reach=M.reach)}}}}}}function s(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function l(e,t,n){var a=t.next,r={value:n,prev:t,next:a};return t.next=r,a.prev=r,e.length++,r}function c(e,t,n){for(var a=t.next,r=0;r"+o.content+""},a}(),r=a;a.default=a,r.languages.markup={comment:{pattern://,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern://i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},r.languages.markup.tag.inside["attr-value"].inside.entity=r.languages.markup.entity,r.languages.markup.doctype.inside["internal-subset"].inside=r.languages.markup,r.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&/,"&"))})),Object.defineProperty(r.languages.markup.tag,"addInlined",{value:function(e,t){var n={};n["language-"+t]={pattern:/(^$)/i,lookbehind:!0,inside:r.languages[t]},n.cdata=/^$/i;var a={"included-cdata":{pattern://i,inside:n}};a["language-"+t]={pattern:/[\s\S]+/,inside:r.languages[t]};var o={};o[e]={pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:a},r.languages.insertBefore("markup","cdata",o)}}),Object.defineProperty(r.languages.markup.tag,"addAttribute",{value:function(e,t){r.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:r.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),r.languages.html=r.languages.markup,r.languages.mathml=r.languages.markup,r.languages.svg=r.languages.markup,r.languages.xml=r.languages.extend("markup",{}),r.languages.ssml=r.languages.xml,r.languages.atom=r.languages.xml,r.languages.rss=r.languages.xml,function(e){var t="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",n={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},a={bash:n,environment:{pattern:RegExp("\\$"+t),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+t),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};e.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+t),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:a},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:n}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:a},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:a.entity}}],environment:{pattern:RegExp("\\$?"+t),alias:"constant"},variable:a.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},n.inside=e.languages.bash;for(var r=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],o=a.variable[1].inside,i=0;i]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},r.languages.c=r.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),r.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),r.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},r.languages.c.string],char:r.languages.c.char,comment:r.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:r.languages.c}}}}),r.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete r.languages.c.boolean,function(e){var t=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,n=/\b(?!)\w+(?:\s*\.\s*\w+)*\b/.source.replace(//g,(function(){return t.source}));e.languages.cpp=e.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!)\w+/.source.replace(//g,(function(){return t.source}))),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:t,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),e.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/(?:\s*:\s*)?|:\s*/.source.replace(//g,(function(){return n}))+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),e.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e.languages.cpp}}}}),e.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),e.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend("cpp",{})}}),e.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp["base-clause"])}(r),function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))}(r),function(e){var t,n=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/;e.languages.css.selector={pattern:e.languages.css.selector.pattern,lookbehind:!0,inside:t={"pseudo-element":/:(?:after|before|first-letter|first-line|selection)|::[-\w]+/,"pseudo-class":/:[-\w]+/,class:/\.[-\w]+/,id:/#[-\w]+/,attribute:{pattern:RegExp("\\[(?:[^[\\]\"']|"+n.source+")*\\]"),greedy:!0,inside:{punctuation:/^\[|\]$/,"case-sensitivity":{pattern:/(\s)[si]$/i,lookbehind:!0,alias:"keyword"},namespace:{pattern:/^(\s*)(?:(?!\s)[-*\w\xA0-\uFFFF])*\|(?!=)/,lookbehind:!0,inside:{punctuation:/\|$/}},"attr-name":{pattern:/^(\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+/,lookbehind:!0},"attr-value":[n,{pattern:/(=\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+(?=\s*$)/,lookbehind:!0}],operator:/[|~*^$]?=/}},"n-th":[{pattern:/(\(\s*)[+-]?\d*[\dn](?:\s*[+-]\s*\d+)?(?=\s*\))/,lookbehind:!0,inside:{number:/[\dn]+/,operator:/[+-]/}},{pattern:/(\(\s*)(?:even|odd)(?=\s*\))/i,lookbehind:!0}],combinator:/>|\+|~|\|\|/,punctuation:/[(),]/}},e.languages.css.atrule.inside["selector-function-argument"].inside=t,e.languages.insertBefore("css","property",{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,lookbehind:!0}});var a={pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0},r={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0};e.languages.insertBefore("css","function",{operator:{pattern:/(\s)[+\-*\/](?=\s)/,lookbehind:!0},hexcode:{pattern:/\B#[\da-f]{3,8}\b/i,alias:"color"},color:[{pattern:/(^|[^\w-])(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)(?![\w-])/i,lookbehind:!0},{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:a,number:r,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:a,number:r})}(r),r.languages.javascript=r.languages.extend("clike",{"class-name":[r.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),r.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,r.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:r.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:r.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:r.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:r.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:r.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),r.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:r.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),r.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),r.languages.markup&&(r.languages.markup.tag.addInlined("script","javascript"),r.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),r.languages.js=r.languages.javascript,function(e){var t=/#(?!\{).+/,n={pattern:/#\{[^}]+\}/,alias:"variable"};e.languages.coffeescript=e.languages.extend("javascript",{comment:t,string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,inside:{interpolation:n}}],keyword:/\b(?:and|break|by|catch|class|continue|debugger|delete|do|each|else|extend|extends|false|finally|for|if|in|instanceof|is|isnt|let|loop|namespace|new|no|not|null|of|off|on|or|own|return|super|switch|then|this|throw|true|try|typeof|undefined|unless|until|when|while|window|with|yes|yield)\b/,"class-member":{pattern:/@(?!\d)\w+/,alias:"variable"}}),e.languages.insertBefore("coffeescript","comment",{"multiline-comment":{pattern:/###[\s\S]+?###/,alias:"comment"},"block-regex":{pattern:/\/{3}[\s\S]*?\/{3}/,alias:"regex",inside:{comment:t,interpolation:n}}}),e.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},script:{pattern:/[\s\S]+/,alias:"language-javascript",inside:e.languages.javascript}}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:"string"},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string",inside:{interpolation:n}}]}),e.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete e.languages.coffeescript["template-string"],e.languages.coffee=e.languages.coffeescript}(r),function(e){var t=/[*&][^\s[\]{},]+/,n=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,a="(?:"+n.source+"(?:[ \t]+"+t.source+")?|"+t.source+"(?:[ \t]+"+n.source+")?)",r=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-])(?:[ \t]*(?:(?![#:])|:))*/.source.replace(//g,(function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source})),o=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function i(e,t){t=(t||"").replace(/m/g,"")+"m";var n=/([:\-,[{]\s*(?:\s<>[ \t]+)?)(?:<>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<>/g,(function(){return a})).replace(/<>/g,(function(){return e}));return RegExp(n,t)}e.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<>/g,(function(){return a}))),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<>[ \t]+)?)<>(?=\s*:\s)/.source.replace(/<>/g,(function(){return a})).replace(/<>/g,(function(){return"(?:"+r+"|"+o+")"}))),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:i(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:i(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:i(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:i(o),lookbehind:!0,greedy:!0},number:{pattern:i(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:n,important:t,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},e.languages.yml=e.languages.yaml}(r),function(e){var t=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(e){return e=e.replace(//g,(function(){return t})),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+e+")")}var a=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,r=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,(function(){return a})),o=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;e.languages.markdown=e.languages.extend("markup",{}),e.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:e.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+r+o+"(?:"+r+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+r+o+")(?:"+r+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(a),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+r+")"+o+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+r+"$"),inside:{"table-header":{pattern:RegExp(a),alias:"important",inside:e.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:n(/\b__(?:(?!_)|_(?:(?!_))+_)+__\b|\*\*(?:(?!\*)|\*(?:(?!\*))+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(/\b_(?:(?!_)|__(?:(?!_))+__)+_\b|\*(?:(?!\*)|\*\*(?:(?!\*))+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(/(~~?)(?:(?!~))+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:n(/!?\[(?:(?!\]))+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\]))+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach((function(t){["url","bold","italic","strike","code-snippet"].forEach((function(n){t!==n&&(e.languages.markdown[t].inside.content.inside[n]=e.languages.markdown[n])}))})),e.hooks.add("after-tokenize",(function(e){"markdown"!==e.language&&"md"!==e.language||function e(t){if(t&&"string"!=typeof t)for(var n=0,a=t.length;n",quot:'"'},l=String.fromCodePoint||String.fromCharCode;e.languages.md=e.languages.markdown}(r),r.languages.graphql={comment:/#.*/,description:{pattern:/(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,greedy:!0,alias:"string",inside:{"language-markdown":{pattern:/(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,lookbehind:!0,inside:r.languages.markdown}}},string:{pattern:/"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:false|true)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":{pattern:/\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"atom-input":{pattern:/\b[A-Z]\w*Input\b/,alias:"class-name"},scalar:/\b(?:Boolean|Float|ID|Int|String)\b/,constant:/\b[A-Z][A-Z_\d]*\b/,"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-mutation":{pattern:/(\bmutation\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-query":{pattern:/(\bquery\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},keyword:/\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,operator:/[!=|&]|\.{3}/,"property-query":/\w+(?=\s*\()/,object:/\w+(?=\s*\{)/,punctuation:/[!(){}\[\]:=,]/,property:/\w+/},r.hooks.add("after-tokenize",(function(e){if("graphql"===e.language)for(var t=e.tokens.filter((function(e){return"string"!=typeof e&&"comment"!==e.type&&"scalar"!==e.type})),n=0;n0)){var s=d(/^\{$/,/^\}$/);if(-1===s)continue;for(var l=n;l=0&&f(c,"variable-input")}}}}function u(e){return t[n+e]}function p(e,t){t=t||0;for(var n=0;n?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/},function(e){var t=e.languages.javascript["template-string"],n=t.pattern.source,a=t.inside.interpolation,r=a.inside["interpolation-punctuation"],o=a.pattern.source;function i(t,a){if(e.languages[t])return{pattern:RegExp("((?:"+a+")\\s*)"+n),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:t}}}}function s(e,t){return"___"+t.toUpperCase()+"_"+e+"___"}function l(t,n,a){var r={code:t,grammar:n,language:a};return e.hooks.run("before-tokenize",r),r.tokens=e.tokenize(r.code,r.grammar),e.hooks.run("after-tokenize",r),r.tokens}function c(t){var n={};n["interpolation-punctuation"]=r;var o=e.tokenize(t,n);if(3===o.length){var i=[1,1];i.push.apply(i,l(o[1],e.languages.javascript,"javascript")),o.splice.apply(o,i)}return new e.Token("interpolation",o,a.alias,t)}function u(t,n,a){var r=e.tokenize(t,{interpolation:{pattern:RegExp(o),lookbehind:!0}}),i=0,u={},p=l(r.map((function(e){if("string"==typeof e)return e;for(var n,r=e.content;-1!==t.indexOf(n=s(i++,a)););return u[n]=r,n})).join(""),n,a),d=Object.keys(u);return i=0,function e(t){for(var n=0;n=d.length)return;var a=t[n];if("string"==typeof a||"string"==typeof a.content){var r=d[i],o="string"==typeof a?a:a.content,s=o.indexOf(r);if(-1!==s){++i;var l=o.substring(0,s),p=c(u[r]),f=o.substring(s+r.length),h=[];if(l&&h.push(l),h.push(p),f){var m=[f];e(m),h.push.apply(h,m)}"string"==typeof a?(t.splice.apply(t,[n,1].concat(h)),n+=h.length-1):a.content=h}}else{var v=a.content;Array.isArray(v)?e(v):e([v])}}}(p),new e.Token(a,p,"language-"+a,t)}e.languages.javascript["template-string"]=[i("css",/\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source),i("html",/\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source),i("svg",/\bsvg/.source),i("markdown",/\b(?:markdown|md)/.source),i("graphql",/\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source),i("sql",/\bsql/.source),t].filter(Boolean);var p={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};function d(e){return"string"==typeof e?e:Array.isArray(e)?e.map(d).join(""):d(e.content)}e.hooks.add("after-tokenize",(function(t){t.language in p&&function t(n){for(var a=0,r=n.length;a]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),e.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete e.languages.typescript.parameter,delete e.languages.typescript["literal-property"];var t=e.languages.extend("typescript",{});delete t["class-name"],e.languages.typescript["class-name"].inside=t,e.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t}}}}),e.languages.ts=e.languages.typescript}(r),function(e){function t(e,t){return RegExp(e.replace(//g,(function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source})),t)}e.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+e.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),e.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+e.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),e.languages.insertBefore("javascript","constant",{"known-class-name":[{pattern:/\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,alias:"class-name"},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:"class-name"}]}),e.languages.insertBefore("javascript","keyword",{imports:{pattern:t(/(\bimport\b\s*)(?:(?:\s*,\s*(?:\*\s*as\s+|\{[^{}]*\}))?|\*\s*as\s+|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:e.languages.javascript},exports:{pattern:t(/(\bexport\b\s*)(?:\*(?:\s*as\s+)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:e.languages.javascript}}),e.languages.javascript.keyword.unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),e.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),e.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:t(/(\.\s*)#?/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var n=["function","function-variable","method","method-variable","property-access"],a=0;a*\.{3}(?:[^{}]|)*\})/.source;function o(e,t){return e=e.replace(//g,(function(){return n})).replace(//g,(function(){return a})).replace(//g,(function(){return r})),RegExp(e,t)}r=o(r).source,e.languages.jsx=e.languages.extend("markup",t),e.languages.jsx.tag.pattern=o(/<\/?(?:[\w.:-]+(?:+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|))?|))**\/?)?>/.source),e.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,e.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,e.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,e.languages.jsx.tag.inside.comment=t.comment,e.languages.insertBefore("inside","attr-name",{spread:{pattern:o(//.source),inside:e.languages.jsx}},e.languages.jsx.tag),e.languages.insertBefore("inside","special-attr",{script:{pattern:o(/=/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:e.languages.jsx}}},e.languages.jsx.tag);var i=function(e){return e?"string"==typeof e?e:"string"==typeof e.content?e.content:e.content.map(i).join(""):""},s=function(t){for(var n=[],a=0;a0&&n[n.length-1].tagName===i(r.content[0].content[1])&&n.pop():"/>"===r.content[r.content.length-1].content||n.push({tagName:i(r.content[0].content[1]),openedBraces:0}):n.length>0&&"punctuation"===r.type&&"{"===r.content?n[n.length-1].openedBraces++:n.length>0&&n[n.length-1].openedBraces>0&&"punctuation"===r.type&&"}"===r.content?n[n.length-1].openedBraces--:o=!0),(o||"string"==typeof r)&&n.length>0&&0===n[n.length-1].openedBraces){var l=i(r);a0&&("string"==typeof t[a-1]||"plain-text"===t[a-1].type)&&(l=i(t[a-1])+l,t.splice(a-1,1),a--),t[a]=new e.Token("plain-text",l,null,l)}r.content&&"string"!=typeof r.content&&s(r.content)}};e.hooks.add("after-tokenize",(function(e){"jsx"!==e.language&&"tsx"!==e.language||s(e.tokens)}))}(r),function(e){e.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};var t={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"};Object.keys(t).forEach((function(n){var a=t[n],r=[];/^\w+$/.test(n)||r.push(/\w+/.exec(n)[0]),"diff"===n&&r.push("bold"),e.languages.diff[n]={pattern:RegExp("^(?:["+a+"].*(?:\r\n?|\n|(?![\\s\\S])))+","m"),alias:r,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(n)[0]}}}})),Object.defineProperty(e.languages.diff,"PREFIXES",{value:t})}(r),r.languages.git={comment:/^#.*/m,deleted:/^[-\u2013].*/m,inserted:/^\+.*/m,string:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,command:{pattern:/^.*\$ git .*$/m,inside:{parameter:/\s--?\w+/}},coord:/^@@.*@@$/m,"commit-sha1":/^commit \w{40}$/m},r.languages.go=r.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),r.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete r.languages.go["class-name"],function(e){function t(e,t){return"___"+e.toUpperCase()+t+"___"}Object.defineProperties(e.languages["markup-templating"]={},{buildPlaceholders:{value:function(n,a,r,o){if(n.language===a){var i=n.tokenStack=[];n.code=n.code.replace(r,(function(e){if("function"==typeof o&&!o(e))return e;for(var r,s=i.length;-1!==n.code.indexOf(r=t(a,s));)++s;return i[s]=e,r})),n.grammar=e.languages.markup}}},tokenizePlaceholders:{value:function(n,a){if(n.language===a&&n.tokenStack){n.grammar=e.languages[a];var r=0,o=Object.keys(n.tokenStack);!function i(s){for(var l=0;l=o.length);l++){var c=s[l];if("string"==typeof c||c.content&&"string"==typeof c.content){var u=o[r],p=n.tokenStack[u],d="string"==typeof c?c:c.content,f=t(a,u),h=d.indexOf(f);if(h>-1){++r;var m=d.substring(0,h),v=new e.Token(a,e.tokenize(p,n.grammar),"language-"+a,p),b=d.substring(h+f.length),g=[];m&&g.push.apply(g,i([m])),g.push(v),b&&g.push.apply(g,i([b])),"string"==typeof c?s.splice.apply(s,[l,1].concat(g)):c.content=g}}else c.content&&i(c.content)}return s}(n.tokens)}}}})}(r),function(e){e.languages.handlebars={comment:/\{\{![\s\S]*?\}\}/,delimiter:{pattern:/^\{\{\{?|\}\}\}?$/,alias:"punctuation"},string:/(["'])(?:\\.|(?!\1)[^\\\r\n])*\1/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][+-]?\d+)?/,boolean:/\b(?:false|true)\b/,block:{pattern:/^(\s*(?:~\s*)?)[#\/]\S+?(?=\s*(?:~\s*)?$|\s)/,lookbehind:!0,alias:"keyword"},brackets:{pattern:/\[[^\]]+\]/,inside:{punctuation:/\[|\]/,variable:/[\s\S]+/}},punctuation:/[!"#%&':()*+,.\/;<=>@\[\\\]^`{|}~]/,variable:/[^!"#%&'()*+,\/;<=>@\[\\\]^`{|}~\s]+/},e.hooks.add("before-tokenize",(function(t){e.languages["markup-templating"].buildPlaceholders(t,"handlebars",/\{\{\{[\s\S]+?\}\}\}|\{\{[\s\S]+?\}\}/g)})),e.hooks.add("after-tokenize",(function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"handlebars")})),e.languages.hbs=e.languages.handlebars}(r),r.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},r.languages.webmanifest=r.languages.json,r.languages.less=r.languages.extend("css",{comment:[/\/\*[\s\S]*?\*\//,{pattern:/(^|[^\\])\/\/.*/,lookbehind:!0}],atrule:{pattern:/@[\w-](?:\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{punctuation:/[:()]/}},selector:{pattern:/(?:@\{[\w-]+\}|[^{};\s@])(?:@\{[\w-]+\}|\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};@\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{variable:/@+[\w-]+/}},property:/(?:@\{[\w-]+\}|[\w-])+(?:\+_?)?(?=\s*:)/,operator:/[+\-*\/]/}),r.languages.insertBefore("less","property",{variable:[{pattern:/@[\w-]+\s*:/,inside:{punctuation:/:/}},/@@?[\w-]+/],"mixin-usage":{pattern:/([{;]\s*)[.#](?!\d)[\w-].*?(?=[(;])/,lookbehind:!0,alias:"function"}}),r.languages.makefile={comment:{pattern:/(^|[^\\])#(?:\\(?:\r\n|[\s\S])|[^\\\r\n])*/,lookbehind:!0},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"builtin-target":{pattern:/\.[A-Z][^:#=\s]+(?=\s*:(?!=))/,alias:"builtin"},target:{pattern:/^(?:[^:=\s]|[ \t]+(?![\s:]))+(?=\s*:(?!=))/m,alias:"symbol",inside:{variable:/\$+(?:(?!\$)[^(){}:#=\s]+|(?=[({]))/}},variable:/\$+(?:(?!\$)[^(){}:#=\s]+|\([@*%<^+?][DF]\)|(?=[({]))/,keyword:/-include\b|\b(?:define|else|endef|endif|export|ifn?def|ifn?eq|include|override|private|sinclude|undefine|unexport|vpath)\b/,function:{pattern:/(\()(?:abspath|addsuffix|and|basename|call|dir|error|eval|file|filter(?:-out)?|findstring|firstword|flavor|foreach|guile|if|info|join|lastword|load|notdir|or|origin|patsubst|realpath|shell|sort|strip|subst|suffix|value|warning|wildcard|word(?:list|s)?)(?=[ \t])/,lookbehind:!0},operator:/(?:::|[?:+!])?=|[|@]/,punctuation:/[:;(){}]/},r.languages.objectivec=r.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete r.languages.objectivec["class-name"],r.languages.objc=r.languages.objectivec,r.languages.ocaml={comment:{pattern:/\(\*[\s\S]*?\*\)/,greedy:!0},char:{pattern:/'(?:[^\\\r\n']|\\(?:.|[ox]?[0-9a-f]{1,3}))'/i,greedy:!0},string:[{pattern:/"(?:\\(?:[\s\S]|\r\n)|[^\\\r\n"])*"/,greedy:!0},{pattern:/\{([a-z_]*)\|[\s\S]*?\|\1\}/,greedy:!0}],number:[/\b(?:0b[01][01_]*|0o[0-7][0-7_]*)\b/i,/\b0x[a-f0-9][a-f0-9_]*(?:\.[a-f0-9_]*)?(?:p[+-]?\d[\d_]*)?(?!\w)/i,/\b\d[\d_]*(?:\.[\d_]*)?(?:e[+-]?\d[\d_]*)?(?!\w)/i],directive:{pattern:/\B#\w+/,alias:"property"},label:{pattern:/\B~\w+/,alias:"property"},"type-variable":{pattern:/\B'\w+/,alias:"function"},variant:{pattern:/`\w+/,alias:"symbol"},keyword:/\b(?:as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|match|method|module|mutable|new|nonrec|object|of|open|private|rec|sig|struct|then|to|try|type|val|value|virtual|when|where|while|with)\b/,boolean:/\b(?:false|true)\b/,"operator-like-punctuation":{pattern:/\[[<>|]|[>|]\]|\{<|>\}/,alias:"punctuation"},operator:/\.[.~]|:[=>]|[=<>@^|&+\-*\/$%!?~][!$%&*+\-.\/:<=>?@^|~]*|\b(?:and|asr|land|lor|lsl|lsr|lxor|mod|or)\b/,punctuation:/;;|::|[(){}\[\].,:;#]|\b_\b/},r.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},r.languages.python["string-interpolation"].inside.interpolation.inside.rest=r.languages.python,r.languages.py=r.languages.python,r.languages.reason=r.languages.extend("clike",{string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*/,keyword:/\b(?:and|as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|sig|struct|switch|then|to|try|type|val|virtual|when|while|with)\b/,operator:/\.{3}|:[:=]|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/}),r.languages.insertBefore("reason","class-name",{char:{pattern:/'(?:\\x[\da-f]{2}|\\o[0-3][0-7][0-7]|\\\d{3}|\\.|[^'\\\r\n])'/,greedy:!0},constructor:/\b[A-Z]\w*\b(?!\s*\.)/,label:{pattern:/\b[a-z]\w*(?=::)/,alias:"symbol"}}),delete r.languages.reason.function,function(e){e.languages.sass=e.languages.extend("css",{comment:{pattern:/^([ \t]*)\/[\/*].*(?:(?:\r?\n|\r)\1[ \t].+)*/m,lookbehind:!0,greedy:!0}}),e.languages.insertBefore("sass","atrule",{"atrule-line":{pattern:/^(?:[ \t]*)[@+=].+/m,greedy:!0,inside:{atrule:/(?:@[\w-]+|[+=])/}}}),delete e.languages.sass.atrule;var t=/\$[-\w]+|#\{\$[-\w]+\}/,n=[/[+*\/%]|[=!]=|<=?|>=?|\b(?:and|not|or)\b/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}];e.languages.insertBefore("sass","property",{"variable-line":{pattern:/^[ \t]*\$.+/m,greedy:!0,inside:{punctuation:/:/,variable:t,operator:n}},"property-line":{pattern:/^[ \t]*(?:[^:\s]+ *:.*|:[^:\s].*)/m,greedy:!0,inside:{property:[/[^:\s]+(?=\s*:)/,{pattern:/(:)[^:\s]+/,lookbehind:!0}],punctuation:/:/,variable:t,operator:n,important:e.languages.sass.important}}}),delete e.languages.sass.property,delete e.languages.sass.important,e.languages.insertBefore("sass","punctuation",{selector:{pattern:/^([ \t]*)\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*(?:,(?:\r?\n|\r)\1[ \t]+\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*)*/m,lookbehind:!0,greedy:!0}})}(r),r.languages.scss=r.languages.extend("css",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},atrule:{pattern:/@[\w-](?:\([^()]+\)|[^()\s]|\s+(?!\s))*?(?=\s+[{;])/,inside:{rule:/@[\w-]+/}},url:/(?:[-a-z]+-)?url(?=\()/i,selector:{pattern:/(?=\S)[^@;{}()]?(?:[^@;{}()\s]|\s+(?!\s)|#\{\$[-\w]+\})+(?=\s*\{(?:\}|\s|[^}][^:{}]*[:{][^}]))/,inside:{parent:{pattern:/&/,alias:"important"},placeholder:/%[-\w]+/,variable:/\$[-\w]+|#\{\$[-\w]+\}/}},property:{pattern:/(?:[-\w]|\$[-\w]|#\{\$[-\w]+\})+(?=\s*:)/,inside:{variable:/\$[-\w]+|#\{\$[-\w]+\}/}}}),r.languages.insertBefore("scss","atrule",{keyword:[/@(?:content|debug|each|else(?: if)?|extend|for|forward|function|if|import|include|mixin|return|use|warn|while)\b/i,{pattern:/( )(?:from|through)(?= )/,lookbehind:!0}]}),r.languages.insertBefore("scss","important",{variable:/\$[-\w]+|#\{\$[-\w]+\}/}),r.languages.insertBefore("scss","function",{"module-modifier":{pattern:/\b(?:as|hide|show|with)\b/i,alias:"keyword"},placeholder:{pattern:/%[-\w]+/,alias:"selector"},statement:{pattern:/\B!(?:default|optional)\b/i,alias:"keyword"},boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"},operator:{pattern:/(\s)(?:[-+*\/%]|[=!]=|<=?|>=?|and|not|or)(?=\s)/,lookbehind:!0}}),r.languages.scss.atrule.inside.rest=r.languages.scss,function(e){var t={pattern:/(\b\d+)(?:%|[a-z]+)/,lookbehind:!0},n={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0},a={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},url:{pattern:/\burl\((["']?).*?\1\)/i,greedy:!0},string:{pattern:/("|')(?:(?!\1)[^\\\r\n]|\\(?:\r\n|[\s\S]))*\1/,greedy:!0},interpolation:null,func:null,important:/\B!(?:important|optional)\b/i,keyword:{pattern:/(^|\s+)(?:(?:else|for|if|return|unless)(?=\s|$)|@[\w-]+)/,lookbehind:!0},hexcode:/#[\da-f]{3,6}/i,color:[/\b(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)\b/i,{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:t,number:n,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:t,boolean:/\b(?:false|true)\b/,operator:[/~|[+!\/%<>?=]=?|[-:]=|\*[*=]?|\.{2,3}|&&|\|\||\B-\B|\b(?:and|in|is(?: a| defined| not|nt)?|not|or)\b/],number:n,punctuation:/[{}()\[\];:,]/};a.interpolation={pattern:/\{[^\r\n}:]+\}/,alias:"variable",inside:{delimiter:{pattern:/^\{|\}$/,alias:"punctuation"},rest:a}},a.func={pattern:/[\w-]+\([^)]*\).*/,inside:{function:/^[^(]+/,rest:a}},e.languages.stylus={"atrule-declaration":{pattern:/(^[ \t]*)@.+/m,lookbehind:!0,inside:{atrule:/^@[\w-]+/,rest:a}},"variable-declaration":{pattern:/(^[ \t]*)[\w$-]+\s*.?=[ \t]*(?:\{[^{}]*\}|\S.*|$)/m,lookbehind:!0,inside:{variable:/^\S+/,rest:a}},statement:{pattern:/(^[ \t]*)(?:else|for|if|return|unless)[ \t].+/m,lookbehind:!0,inside:{keyword:/^\S+/,rest:a}},"property-declaration":{pattern:/((?:^|\{)([ \t]*))(?:[\w-]|\{[^}\r\n]+\})+(?:\s*:\s*|[ \t]+)(?!\s)[^{\r\n]*(?:;|[^{\r\n,]$(?!(?:\r?\n|\r)(?:\{|\2[ \t])))/m,lookbehind:!0,inside:{property:{pattern:/^[^\s:]+/,inside:{interpolation:a.interpolation}},rest:a}},selector:{pattern:/(^[ \t]*)(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)(?:(?:\r?\n|\r)(?:\1(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)))*(?:,$|\{|(?=(?:\r?\n|\r)(?:\{|\1[ \t])))/m,lookbehind:!0,inside:{interpolation:a.interpolation,comment:a.comment,punctuation:/[{},]/}},func:a.func,string:a.string,comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},interpolation:a.interpolation,punctuation:/[{}()\[\];:.]/}}(r),function(e){var t=e.util.clone(e.languages.typescript);e.languages.tsx=e.languages.extend("jsx",t),delete e.languages.tsx.parameter,delete e.languages.tsx["literal-property"];var n=e.languages.tsx.tag;n.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+n.pattern.source+")",n.pattern.flags),n.lookbehind=!0}(r),r.languages.wasm={comment:[/\(;[\s\S]*?;\)/,{pattern:/;;.*/,greedy:!0}],string:{pattern:/"(?:\\[\s\S]|[^"\\])*"/,greedy:!0},keyword:[{pattern:/\b(?:align|offset)=/,inside:{operator:/=/}},{pattern:/\b(?:(?:f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|neg?|nearest|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|sqrt|store(?:8|16|32)?|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))?|memory\.(?:grow|size))\b/,inside:{punctuation:/\./}},/\b(?:anyfunc|block|br(?:_if|_table)?|call(?:_indirect)?|data|drop|elem|else|end|export|func|get_(?:global|local)|global|if|import|local|loop|memory|module|mut|nop|offset|param|result|return|select|set_(?:global|local)|start|table|tee_local|then|type|unreachable)\b/],variable:/\$[\w!#$%&'*+\-./:<=>?@\\^`|~]+/,number:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/,punctuation:/[()]/};const o=r},42321:e=>{e.exports&&(e.exports={core:{meta:{path:"components/prism-core.js",option:"mandatory"},core:"Core"},themes:{meta:{path:"themes/{id}.css",link:"index.html?theme={id}",exclusive:!0},prism:{title:"Default",option:"default"},"prism-dark":"Dark","prism-funky":"Funky","prism-okaidia":{title:"Okaidia",owner:"ocodia"},"prism-twilight":{title:"Twilight",owner:"remybach"},"prism-coy":{title:"Coy",owner:"tshedor"},"prism-solarizedlight":{title:"Solarized Light",owner:"hectormatos2011 "},"prism-tomorrow":{title:"Tomorrow Night",owner:"Rosey"}},languages:{meta:{path:"components/prism-{id}",noCSS:!0,examplesPath:"examples/prism-{id}",addCheckAll:!0},markup:{title:"Markup",alias:["html","xml","svg","mathml","ssml","atom","rss"],aliasTitles:{html:"HTML",xml:"XML",svg:"SVG",mathml:"MathML",ssml:"SSML",atom:"Atom",rss:"RSS"},option:"default"},css:{title:"CSS",option:"default",modify:"markup"},clike:{title:"C-like",option:"default"},javascript:{title:"JavaScript",require:"clike",modify:"markup",optional:"regex",alias:"js",option:"default"},abap:{title:"ABAP",owner:"dellagustin"},abnf:{title:"ABNF",owner:"RunDevelopment"},actionscript:{title:"ActionScript",require:"javascript",modify:"markup",owner:"Golmote"},ada:{title:"Ada",owner:"Lucretia"},agda:{title:"Agda",owner:"xy-ren"},al:{title:"AL",owner:"RunDevelopment"},antlr4:{title:"ANTLR4",alias:"g4",owner:"RunDevelopment"},apacheconf:{title:"Apache Configuration",owner:"GuiTeK"},apex:{title:"Apex",require:["clike","sql"],owner:"RunDevelopment"},apl:{title:"APL",owner:"ngn"},applescript:{title:"AppleScript",owner:"Golmote"},aql:{title:"AQL",owner:"RunDevelopment"},arduino:{title:"Arduino",require:"cpp",alias:"ino",owner:"dkern"},arff:{title:"ARFF",owner:"Golmote"},armasm:{title:"ARM Assembly",alias:"arm-asm",owner:"RunDevelopment"},arturo:{title:"Arturo",alias:"art",optional:["bash","css","javascript","markup","markdown","sql"],owner:"drkameleon"},asciidoc:{alias:"adoc",title:"AsciiDoc",owner:"Golmote"},aspnet:{title:"ASP.NET (C#)",require:["markup","csharp"],owner:"nauzilus"},asm6502:{title:"6502 Assembly",owner:"kzurawel"},asmatmel:{title:"Atmel AVR Assembly",owner:"cerkit"},autohotkey:{title:"AutoHotkey",owner:"aviaryan"},autoit:{title:"AutoIt",owner:"Golmote"},avisynth:{title:"AviSynth",alias:"avs",owner:"Zinfidel"},"avro-idl":{title:"Avro IDL",alias:"avdl",owner:"RunDevelopment"},awk:{title:"AWK",alias:"gawk",aliasTitles:{gawk:"GAWK"},owner:"RunDevelopment"},bash:{title:"Bash",alias:["sh","shell"],aliasTitles:{sh:"Shell",shell:"Shell"},owner:"zeitgeist87"},basic:{title:"BASIC",owner:"Golmote"},batch:{title:"Batch",owner:"Golmote"},bbcode:{title:"BBcode",alias:"shortcode",aliasTitles:{shortcode:"Shortcode"},owner:"RunDevelopment"},bbj:{title:"BBj",owner:"hyyan"},bicep:{title:"Bicep",owner:"johnnyreilly"},birb:{title:"Birb",require:"clike",owner:"Calamity210"},bison:{title:"Bison",require:"c",owner:"Golmote"},bnf:{title:"BNF",alias:"rbnf",aliasTitles:{rbnf:"RBNF"},owner:"RunDevelopment"},bqn:{title:"BQN",owner:"yewscion"},brainfuck:{title:"Brainfuck",owner:"Golmote"},brightscript:{title:"BrightScript",owner:"RunDevelopment"},bro:{title:"Bro",owner:"wayward710"},bsl:{title:"BSL (1C:Enterprise)",alias:"oscript",aliasTitles:{oscript:"OneScript"},owner:"Diversus23"},c:{title:"C",require:"clike",owner:"zeitgeist87"},csharp:{title:"C#",require:"clike",alias:["cs","dotnet"],owner:"mvalipour"},cpp:{title:"C++",require:"c",owner:"zeitgeist87"},cfscript:{title:"CFScript",require:"clike",alias:"cfc",owner:"mjclemente"},chaiscript:{title:"ChaiScript",require:["clike","cpp"],owner:"RunDevelopment"},cil:{title:"CIL",owner:"sbrl"},cilkc:{title:"Cilk/C",require:"c",alias:"cilk-c",owner:"OpenCilk"},cilkcpp:{title:"Cilk/C++",require:"cpp",alias:["cilk-cpp","cilk"],owner:"OpenCilk"},clojure:{title:"Clojure",owner:"troglotit"},cmake:{title:"CMake",owner:"mjrogozinski"},cobol:{title:"COBOL",owner:"RunDevelopment"},coffeescript:{title:"CoffeeScript",require:"javascript",alias:"coffee",owner:"R-osey"},concurnas:{title:"Concurnas",alias:"conc",owner:"jasontatton"},csp:{title:"Content-Security-Policy",owner:"ScottHelme"},cooklang:{title:"Cooklang",owner:"ahue"},coq:{title:"Coq",owner:"RunDevelopment"},crystal:{title:"Crystal",require:"ruby",owner:"MakeNowJust"},"css-extras":{title:"CSS Extras",require:"css",modify:"css",owner:"milesj"},csv:{title:"CSV",owner:"RunDevelopment"},cue:{title:"CUE",owner:"RunDevelopment"},cypher:{title:"Cypher",owner:"RunDevelopment"},d:{title:"D",require:"clike",owner:"Golmote"},dart:{title:"Dart",require:"clike",owner:"Golmote"},dataweave:{title:"DataWeave",owner:"machaval"},dax:{title:"DAX",owner:"peterbud"},dhall:{title:"Dhall",owner:"RunDevelopment"},diff:{title:"Diff",owner:"uranusjr"},django:{title:"Django/Jinja2",require:"markup-templating",alias:"jinja2",owner:"romanvm"},"dns-zone-file":{title:"DNS zone file",owner:"RunDevelopment",alias:"dns-zone"},docker:{title:"Docker",alias:"dockerfile",owner:"JustinBeckwith"},dot:{title:"DOT (Graphviz)",alias:"gv",optional:"markup",owner:"RunDevelopment"},ebnf:{title:"EBNF",owner:"RunDevelopment"},editorconfig:{title:"EditorConfig",owner:"osipxd"},eiffel:{title:"Eiffel",owner:"Conaclos"},ejs:{title:"EJS",require:["javascript","markup-templating"],owner:"RunDevelopment",alias:"eta",aliasTitles:{eta:"Eta"}},elixir:{title:"Elixir",owner:"Golmote"},elm:{title:"Elm",owner:"zwilias"},etlua:{title:"Embedded Lua templating",require:["lua","markup-templating"],owner:"RunDevelopment"},erb:{title:"ERB",require:["ruby","markup-templating"],owner:"Golmote"},erlang:{title:"Erlang",owner:"Golmote"},"excel-formula":{title:"Excel Formula",alias:["xlsx","xls"],owner:"RunDevelopment"},fsharp:{title:"F#",require:"clike",owner:"simonreynolds7"},factor:{title:"Factor",owner:"catb0t"},false:{title:"False",owner:"edukisto"},"firestore-security-rules":{title:"Firestore security rules",require:"clike",owner:"RunDevelopment"},flow:{title:"Flow",require:"javascript",owner:"Golmote"},fortran:{title:"Fortran",owner:"Golmote"},ftl:{title:"FreeMarker Template Language",require:"markup-templating",owner:"RunDevelopment"},gml:{title:"GameMaker Language",alias:"gamemakerlanguage",require:"clike",owner:"LiarOnce"},gap:{title:"GAP (CAS)",owner:"RunDevelopment"},gcode:{title:"G-code",owner:"RunDevelopment"},gdscript:{title:"GDScript",owner:"RunDevelopment"},gedcom:{title:"GEDCOM",owner:"Golmote"},gettext:{title:"gettext",alias:"po",owner:"RunDevelopment"},gherkin:{title:"Gherkin",owner:"hason"},git:{title:"Git",owner:"lgiraudel"},glsl:{title:"GLSL",require:"c",owner:"Golmote"},gn:{title:"GN",alias:"gni",owner:"RunDevelopment"},"linker-script":{title:"GNU Linker Script",alias:"ld",owner:"RunDevelopment"},go:{title:"Go",require:"clike",owner:"arnehormann"},"go-module":{title:"Go module",alias:"go-mod",owner:"RunDevelopment"},gradle:{title:"Gradle",require:"clike",owner:"zeabdelkhalek-badido18"},graphql:{title:"GraphQL",optional:"markdown",owner:"Golmote"},groovy:{title:"Groovy",require:"clike",owner:"robfletcher"},haml:{title:"Haml",require:"ruby",optional:["css","css-extras","coffeescript","erb","javascript","less","markdown","scss","textile"],owner:"Golmote"},handlebars:{title:"Handlebars",require:"markup-templating",alias:["hbs","mustache"],aliasTitles:{mustache:"Mustache"},owner:"Golmote"},haskell:{title:"Haskell",alias:"hs",owner:"bholst"},haxe:{title:"Haxe",require:"clike",optional:"regex",owner:"Golmote"},hcl:{title:"HCL",owner:"outsideris"},hlsl:{title:"HLSL",require:"c",owner:"RunDevelopment"},hoon:{title:"Hoon",owner:"matildepark"},http:{title:"HTTP",optional:["csp","css","hpkp","hsts","javascript","json","markup","uri"],owner:"danielgtaylor"},hpkp:{title:"HTTP Public-Key-Pins",owner:"ScottHelme"},hsts:{title:"HTTP Strict-Transport-Security",owner:"ScottHelme"},ichigojam:{title:"IchigoJam",owner:"BlueCocoa"},icon:{title:"Icon",owner:"Golmote"},"icu-message-format":{title:"ICU Message Format",owner:"RunDevelopment"},idris:{title:"Idris",alias:"idr",owner:"KeenS",require:"haskell"},ignore:{title:".ignore",owner:"osipxd",alias:["gitignore","hgignore","npmignore"],aliasTitles:{gitignore:".gitignore",hgignore:".hgignore",npmignore:".npmignore"}},inform7:{title:"Inform 7",owner:"Golmote"},ini:{title:"Ini",owner:"aviaryan"},io:{title:"Io",owner:"AlesTsurko"},j:{title:"J",owner:"Golmote"},java:{title:"Java",require:"clike",owner:"sherblot"},javadoc:{title:"JavaDoc",require:["markup","java","javadoclike"],modify:"java",optional:"scala",owner:"RunDevelopment"},javadoclike:{title:"JavaDoc-like",modify:["java","javascript","php"],owner:"RunDevelopment"},javastacktrace:{title:"Java stack trace",owner:"RunDevelopment"},jexl:{title:"Jexl",owner:"czosel"},jolie:{title:"Jolie",require:"clike",owner:"thesave"},jq:{title:"JQ",owner:"RunDevelopment"},jsdoc:{title:"JSDoc",require:["javascript","javadoclike","typescript"],modify:"javascript",optional:["actionscript","coffeescript"],owner:"RunDevelopment"},"js-extras":{title:"JS Extras",require:"javascript",modify:"javascript",optional:["actionscript","coffeescript","flow","n4js","typescript"],owner:"RunDevelopment"},json:{title:"JSON",alias:"webmanifest",aliasTitles:{webmanifest:"Web App Manifest"},owner:"CupOfTea696"},json5:{title:"JSON5",require:"json",owner:"RunDevelopment"},jsonp:{title:"JSONP",require:"json",owner:"RunDevelopment"},jsstacktrace:{title:"JS stack trace",owner:"sbrl"},"js-templates":{title:"JS Templates",require:"javascript",modify:"javascript",optional:["css","css-extras","graphql","markdown","markup","sql"],owner:"RunDevelopment"},julia:{title:"Julia",owner:"cdagnino"},keepalived:{title:"Keepalived Configure",owner:"dev-itsheng"},keyman:{title:"Keyman",owner:"mcdurdin"},kotlin:{title:"Kotlin",alias:["kt","kts"],aliasTitles:{kts:"Kotlin Script"},require:"clike",owner:"Golmote"},kumir:{title:"KuMir (\u041a\u0443\u041c\u0438\u0440)",alias:"kum",owner:"edukisto"},kusto:{title:"Kusto",owner:"RunDevelopment"},latex:{title:"LaTeX",alias:["tex","context"],aliasTitles:{tex:"TeX",context:"ConTeXt"},owner:"japborst"},latte:{title:"Latte",require:["clike","markup-templating","php"],owner:"nette"},less:{title:"Less",require:"css",optional:"css-extras",owner:"Golmote"},lilypond:{title:"LilyPond",require:"scheme",alias:"ly",owner:"RunDevelopment"},liquid:{title:"Liquid",require:"markup-templating",owner:"cinhtau"},lisp:{title:"Lisp",alias:["emacs","elisp","emacs-lisp"],owner:"JuanCaicedo"},livescript:{title:"LiveScript",owner:"Golmote"},llvm:{title:"LLVM IR",owner:"porglezomp"},log:{title:"Log file",optional:"javastacktrace",owner:"RunDevelopment"},lolcode:{title:"LOLCODE",owner:"Golmote"},lua:{title:"Lua",owner:"Golmote"},magma:{title:"Magma (CAS)",owner:"RunDevelopment"},makefile:{title:"Makefile",owner:"Golmote"},markdown:{title:"Markdown",require:"markup",optional:"yaml",alias:"md",owner:"Golmote"},"markup-templating":{title:"Markup templating",require:"markup",owner:"Golmote"},mata:{title:"Mata",owner:"RunDevelopment"},matlab:{title:"MATLAB",owner:"Golmote"},maxscript:{title:"MAXScript",owner:"RunDevelopment"},mel:{title:"MEL",owner:"Golmote"},mermaid:{title:"Mermaid",owner:"RunDevelopment"},metafont:{title:"METAFONT",owner:"LaeriExNihilo"},mizar:{title:"Mizar",owner:"Golmote"},mongodb:{title:"MongoDB",owner:"airs0urce",require:"javascript"},monkey:{title:"Monkey",owner:"Golmote"},moonscript:{title:"MoonScript",alias:"moon",owner:"RunDevelopment"},n1ql:{title:"N1QL",owner:"TMWilds"},n4js:{title:"N4JS",require:"javascript",optional:"jsdoc",alias:"n4jsd",owner:"bsmith-n4"},"nand2tetris-hdl":{title:"Nand To Tetris HDL",owner:"stephanmax"},naniscript:{title:"Naninovel Script",owner:"Elringus",alias:"nani"},nasm:{title:"NASM",owner:"rbmj"},neon:{title:"NEON",owner:"nette"},nevod:{title:"Nevod",owner:"nezaboodka"},nginx:{title:"nginx",owner:"volado"},nim:{title:"Nim",owner:"Golmote"},nix:{title:"Nix",owner:"Golmote"},nsis:{title:"NSIS",owner:"idleberg"},objectivec:{title:"Objective-C",require:"c",alias:"objc",owner:"uranusjr"},ocaml:{title:"OCaml",owner:"Golmote"},odin:{title:"Odin",owner:"edukisto"},opencl:{title:"OpenCL",require:"c",modify:["c","cpp"],owner:"Milania1"},openqasm:{title:"OpenQasm",alias:"qasm",owner:"RunDevelopment"},oz:{title:"Oz",owner:"Golmote"},parigp:{title:"PARI/GP",owner:"Golmote"},parser:{title:"Parser",require:"markup",owner:"Golmote"},pascal:{title:"Pascal",alias:"objectpascal",aliasTitles:{objectpascal:"Object Pascal"},owner:"Golmote"},pascaligo:{title:"Pascaligo",owner:"DefinitelyNotAGoat"},psl:{title:"PATROL Scripting Language",owner:"bertysentry"},pcaxis:{title:"PC-Axis",alias:"px",owner:"RunDevelopment"},peoplecode:{title:"PeopleCode",alias:"pcode",owner:"RunDevelopment"},perl:{title:"Perl",owner:"Golmote"},php:{title:"PHP",require:"markup-templating",owner:"milesj"},phpdoc:{title:"PHPDoc",require:["php","javadoclike"],modify:"php",owner:"RunDevelopment"},"php-extras":{title:"PHP Extras",require:"php",modify:"php",owner:"milesj"},"plant-uml":{title:"PlantUML",alias:"plantuml",owner:"RunDevelopment"},plsql:{title:"PL/SQL",require:"sql",owner:"Golmote"},powerquery:{title:"PowerQuery",alias:["pq","mscript"],owner:"peterbud"},powershell:{title:"PowerShell",owner:"nauzilus"},processing:{title:"Processing",require:"clike",owner:"Golmote"},prolog:{title:"Prolog",owner:"Golmote"},promql:{title:"PromQL",owner:"arendjr"},properties:{title:".properties",owner:"Golmote"},protobuf:{title:"Protocol Buffers",require:"clike",owner:"just-boris"},pug:{title:"Pug",require:["markup","javascript"],optional:["coffeescript","ejs","handlebars","less","livescript","markdown","scss","stylus","twig"],owner:"Golmote"},puppet:{title:"Puppet",owner:"Golmote"},pure:{title:"Pure",optional:["c","cpp","fortran"],owner:"Golmote"},purebasic:{title:"PureBasic",require:"clike",alias:"pbfasm",owner:"HeX0R101"},purescript:{title:"PureScript",require:"haskell",alias:"purs",owner:"sriharshachilakapati"},python:{title:"Python",alias:"py",owner:"multipetros"},qsharp:{title:"Q#",require:"clike",alias:"qs",owner:"fedonman"},q:{title:"Q (kdb+ database)",owner:"Golmote"},qml:{title:"QML",require:"javascript",owner:"RunDevelopment"},qore:{title:"Qore",require:"clike",owner:"temnroegg"},r:{title:"R",owner:"Golmote"},racket:{title:"Racket",require:"scheme",alias:"rkt",owner:"RunDevelopment"},cshtml:{title:"Razor C#",alias:"razor",require:["markup","csharp"],optional:["css","css-extras","javascript","js-extras"],owner:"RunDevelopment"},jsx:{title:"React JSX",require:["markup","javascript"],optional:["jsdoc","js-extras","js-templates"],owner:"vkbansal"},tsx:{title:"React TSX",require:["jsx","typescript"]},reason:{title:"Reason",require:"clike",owner:"Golmote"},regex:{title:"Regex",owner:"RunDevelopment"},rego:{title:"Rego",owner:"JordanSh"},renpy:{title:"Ren'py",alias:"rpy",owner:"HyuchiaDiego"},rescript:{title:"ReScript",alias:"res",owner:"vmarcosp"},rest:{title:"reST (reStructuredText)",owner:"Golmote"},rip:{title:"Rip",owner:"ravinggenius"},roboconf:{title:"Roboconf",owner:"Golmote"},robotframework:{title:"Robot Framework",alias:"robot",owner:"RunDevelopment"},ruby:{title:"Ruby",require:"clike",alias:"rb",owner:"samflores"},rust:{title:"Rust",owner:"Golmote"},sas:{title:"SAS",optional:["groovy","lua","sql"],owner:"Golmote"},sass:{title:"Sass (Sass)",require:"css",optional:"css-extras",owner:"Golmote"},scss:{title:"Sass (SCSS)",require:"css",optional:"css-extras",owner:"MoOx"},scala:{title:"Scala",require:"java",owner:"jozic"},scheme:{title:"Scheme",owner:"bacchus123"},"shell-session":{title:"Shell session",require:"bash",alias:["sh-session","shellsession"],owner:"RunDevelopment"},smali:{title:"Smali",owner:"RunDevelopment"},smalltalk:{title:"Smalltalk",owner:"Golmote"},smarty:{title:"Smarty",require:"markup-templating",optional:"php",owner:"Golmote"},sml:{title:"SML",alias:"smlnj",aliasTitles:{smlnj:"SML/NJ"},owner:"RunDevelopment"},solidity:{title:"Solidity (Ethereum)",alias:"sol",require:"clike",owner:"glachaud"},"solution-file":{title:"Solution file",alias:"sln",owner:"RunDevelopment"},soy:{title:"Soy (Closure Template)",require:"markup-templating",owner:"Golmote"},sparql:{title:"SPARQL",require:"turtle",owner:"Triply-Dev",alias:"rq"},"splunk-spl":{title:"Splunk SPL",owner:"RunDevelopment"},sqf:{title:"SQF: Status Quo Function (Arma 3)",require:"clike",owner:"RunDevelopment"},sql:{title:"SQL",owner:"multipetros"},squirrel:{title:"Squirrel",require:"clike",owner:"RunDevelopment"},stan:{title:"Stan",owner:"RunDevelopment"},stata:{title:"Stata Ado",require:["mata","java","python"],owner:"RunDevelopment"},iecst:{title:"Structured Text (IEC 61131-3)",owner:"serhioromano"},stylus:{title:"Stylus",owner:"vkbansal"},supercollider:{title:"SuperCollider",alias:"sclang",owner:"RunDevelopment"},swift:{title:"Swift",owner:"chrischares"},systemd:{title:"Systemd configuration file",owner:"RunDevelopment"},"t4-templating":{title:"T4 templating",owner:"RunDevelopment"},"t4-cs":{title:"T4 Text Templates (C#)",require:["t4-templating","csharp"],alias:"t4",owner:"RunDevelopment"},"t4-vb":{title:"T4 Text Templates (VB)",require:["t4-templating","vbnet"],owner:"RunDevelopment"},tap:{title:"TAP",owner:"isaacs",require:"yaml"},tcl:{title:"Tcl",owner:"PeterChaplin"},tt2:{title:"Template Toolkit 2",require:["clike","markup-templating"],owner:"gflohr"},textile:{title:"Textile",require:"markup",optional:"css",owner:"Golmote"},toml:{title:"TOML",owner:"RunDevelopment"},tremor:{title:"Tremor",alias:["trickle","troy"],owner:"darach",aliasTitles:{trickle:"trickle",troy:"troy"}},turtle:{title:"Turtle",alias:"trig",aliasTitles:{trig:"TriG"},owner:"jakubklimek"},twig:{title:"Twig",require:"markup-templating",owner:"brandonkelly"},typescript:{title:"TypeScript",require:"javascript",optional:"js-templates",alias:"ts",owner:"vkbansal"},typoscript:{title:"TypoScript",alias:"tsconfig",aliasTitles:{tsconfig:"TSConfig"},owner:"dkern"},unrealscript:{title:"UnrealScript",alias:["uscript","uc"],owner:"RunDevelopment"},uorazor:{title:"UO Razor Script",owner:"jaseowns"},uri:{title:"URI",alias:"url",aliasTitles:{url:"URL"},owner:"RunDevelopment"},v:{title:"V",require:"clike",owner:"taggon"},vala:{title:"Vala",require:"clike",optional:"regex",owner:"TemplarVolk"},vbnet:{title:"VB.Net",require:"basic",owner:"Bigsby"},velocity:{title:"Velocity",require:"markup",owner:"Golmote"},verilog:{title:"Verilog",owner:"a-rey"},vhdl:{title:"VHDL",owner:"a-rey"},vim:{title:"vim",owner:"westonganger"},"visual-basic":{title:"Visual Basic",alias:["vb","vba"],aliasTitles:{vba:"VBA"},owner:"Golmote"},warpscript:{title:"WarpScript",owner:"RunDevelopment"},wasm:{title:"WebAssembly",owner:"Golmote"},"web-idl":{title:"Web IDL",alias:"webidl",owner:"RunDevelopment"},wgsl:{title:"WGSL",owner:"Dr4gonthree"},wiki:{title:"Wiki markup",require:"markup",owner:"Golmote"},wolfram:{title:"Wolfram language",alias:["mathematica","nb","wl"],aliasTitles:{mathematica:"Mathematica",nb:"Mathematica Notebook"},owner:"msollami"},wren:{title:"Wren",owner:"clsource"},xeora:{title:"Xeora",require:"markup",alias:"xeoracube",aliasTitles:{xeoracube:"XeoraCube"},owner:"freakmaxi"},"xml-doc":{title:"XML doc (.net)",require:"markup",modify:["csharp","fsharp","vbnet"],owner:"RunDevelopment"},xojo:{title:"Xojo (REALbasic)",owner:"Golmote"},xquery:{title:"XQuery",require:"markup",owner:"Golmote"},yaml:{title:"YAML",alias:"yml",owner:"hason"},yang:{title:"YANG",owner:"RunDevelopment"},zig:{title:"Zig",owner:"RunDevelopment"}},plugins:{meta:{path:"plugins/{id}/prism-{id}",link:"plugins/{id}/"},"line-highlight":{title:"Line Highlight",description:"Highlights specific lines and/or line ranges."},"line-numbers":{title:"Line Numbers",description:"Line number at the beginning of code lines.",owner:"kuba-kubula"},"show-invisibles":{title:"Show Invisibles",description:"Show hidden characters such as tabs and line breaks.",optional:["autolinker","data-uri-highlight"]},autolinker:{title:"Autolinker",description:"Converts URLs and emails in code to clickable links. Parses Markdown links in comments."},wpd:{title:"WebPlatform Docs",description:'Makes tokens link to WebPlatform.org documentation. The links open in a new tab.'},"custom-class":{title:"Custom Class",description:"This plugin allows you to prefix Prism's default classes (.comment can become .namespace--comment) or replace them with your defined ones (like .editor__comment). You can even add new classes.",owner:"dvkndn",noCSS:!0},"file-highlight":{title:"File Highlight",description:"Fetch external files and highlight them with Prism. Used on the Prism website itself.",noCSS:!0},"show-language":{title:"Show Language",description:"Display the highlighted language in code blocks (inline code does not show the label).",owner:"nauzilus",noCSS:!0,require:"toolbar"},"jsonp-highlight":{title:"JSONP Highlight",description:"Fetch content with JSONP and highlight some interesting content (e.g. GitHub/Gists or Bitbucket API).",noCSS:!0,owner:"nauzilus"},"highlight-keywords":{title:"Highlight Keywords",description:"Adds special CSS classes for each keyword for fine-grained highlighting.",owner:"vkbansal",noCSS:!0},"remove-initial-line-feed":{title:"Remove initial line feed",description:"Removes the initial line feed in code blocks.",owner:"Golmote",noCSS:!0},"inline-color":{title:"Inline color",description:"Adds a small inline preview for colors in style sheets.",require:"css-extras",owner:"RunDevelopment"},previewers:{title:"Previewers",description:"Previewers for angles, colors, gradients, easing and time.",require:"css-extras",owner:"Golmote"},autoloader:{title:"Autoloader",description:"Automatically loads the needed languages to highlight the code blocks.",owner:"Golmote",noCSS:!0},"keep-markup":{title:"Keep Markup",description:"Prevents custom markup from being dropped out during highlighting.",owner:"Golmote",optional:"normalize-whitespace",noCSS:!0},"command-line":{title:"Command Line",description:"Display a command line with a prompt and, optionally, the output/response from the commands.",owner:"chriswells0"},"unescaped-markup":{title:"Unescaped Markup",description:"Write markup without having to escape anything."},"normalize-whitespace":{title:"Normalize Whitespace",description:"Supports multiple operations to normalize whitespace in code blocks.",owner:"zeitgeist87",optional:"unescaped-markup",noCSS:!0},"data-uri-highlight":{title:"Data-URI Highlight",description:"Highlights data-URI contents.",owner:"Golmote",noCSS:!0},toolbar:{title:"Toolbar",description:"Attach a toolbar for plugins to easily register buttons on the top of a code block.",owner:"mAAdhaTTah"},"copy-to-clipboard":{title:"Copy to Clipboard Button",description:"Add a button that copies the code block to the clipboard when clicked.",owner:"mAAdhaTTah",require:"toolbar",noCSS:!0},"download-button":{title:"Download Button",description:"A button in the toolbar of a code block adding a convenient way to download a code file.",owner:"Golmote",require:"toolbar",noCSS:!0},"match-braces":{title:"Match braces",description:"Highlights matching braces.",owner:"RunDevelopment"},"diff-highlight":{title:"Diff Highlight",description:"Highlights the code inside diff blocks.",owner:"RunDevelopment",require:"diff"},"filter-highlight-all":{title:"Filter highlightAll",description:"Filters the elements the highlightAll and highlightAllUnder methods actually highlight.",owner:"RunDevelopment",noCSS:!0},treeview:{title:"Treeview",description:"A language with special styles to highlight file system tree structures.",owner:"Golmote"}}})},91548:(e,t,n)=>{const a=n(42321),r=n(90076),o=new Set;function i(e){void 0===e?e=Object.keys(a.languages).filter((e=>"meta"!=e)):Array.isArray(e)||(e=[e]);const t=[...o,...Object.keys(Prism.languages)];r(a,e,t).load((e=>{if(!(e in a.languages))return void(i.silent||console.warn("Language does not exist: "+e));const t="./prism-"+e;delete n.c[n(58467).resolve(t)],delete Prism.languages[e],n(58467)(t),o.add(e)}))}i.silent=!1,e.exports=i},58467:(e,t,n)=>{var a={"./":91548};function r(e){var t=o(e);return n(t)}function o(e){if(!n.o(a,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return a[e]}r.keys=function(){return Object.keys(a)},r.resolve=o,e.exports=r,r.id=58467},90076:e=>{"use strict";var t=function(){var e=function(){};function t(e,t){Array.isArray(e)?e.forEach(t):null!=e&&t(e,0)}function n(e){for(var t={},n=0,a=e.length;n "));var s={},l=e[a];if(l){function c(t){if(!(t in e))throw new Error(a+" depends on an unknown component "+t);if(!(t in s))for(var i in r(t,o),s[t]=!0,n[t])s[i]=!0}t(l.require,c),t(l.optional,c),t(l.modify,c)}n[a]=s,o.pop()}}return function(e){var t=n[e];return t||(r(e,a),t=n[e]),t}}function r(e){for(var t in e)return!0;return!1}return function(o,i,s){var l=function(e){var t={};for(var n in e){var a=e[n];for(var r in a)if("meta"!=r){var o=a[r];t[r]="string"==typeof o?{title:o}:o}}return t}(o),c=function(e){var n;return function(a){if(a in e)return a;if(!n)for(var r in n={},e){var o=e[r];t(o&&o.alias,(function(t){if(t in n)throw new Error(t+" cannot be alias for both "+r+" and "+n[t]);if(t in e)throw new Error(t+" cannot be alias of "+r+" because it is a component.");n[t]=r}))}return n[a]||a}}(l);i=i.map(c),s=(s||[]).map(c);var u=n(i),p=n(s);i.forEach((function e(n){var a=l[n];t(a&&a.require,(function(t){t in p||(u[t]=!0,e(t))}))}));for(var d,f=a(l),h=u;r(h);){for(var m in d={},h){var v=l[m];t(v&&v.modify,(function(e){e in p&&(d[e]=!0)}))}for(var b in p)if(!(b in u))for(var g in f(b))if(g in u){d[b]=!0;break}for(var y in h=d)u[y]=!0}var w={getIds:function(){var e=[];return w.load((function(t){e.push(t)})),e},load:function(t,n){return function(t,n,a,r){var o=r?r.series:void 0,i=r?r.parallel:e,s={},l={};function c(e){if(e in s)return s[e];l[e]=!0;var r,u=[];for(var p in t(e))p in n&&u.push(p);if(0===u.length)r=a(e);else{var d=i(u.map((function(e){var t=c(e);return delete l[e],t})));o?r=o(d,(function(){return a(e)})):a(e)}return s[e]=r}for(var u in n)c(u);var p=[];for(var d in l)p.push(s[d]);return i(p)}(f,u,t,n)}};return w}}();e.exports=t},31772:(e,t,n)=>{"use strict";var a=n(25148);function r(){}function o(){}o.resetWarningCache=r,e.exports=function(){function e(e,t,n,r,o,i){if(i!==a){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:r};return n.PropTypes=n,n}},7862:(e,t,n)=>{e.exports=n(31772)()},25148:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},2340:(e,t,n)=>{"use strict";var a=n(29901),r=n(52458),o=n(86803);function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n