intlayer-editor 7.3.8 → 7.3.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/client/dist/assets/{CodeBlockShiki-BY8Vvfa7.js → CodeBlockShiki-BtHKWEZc.js} +3 -3
- package/client/dist/assets/{bundle-web-l-MeoJd6.js → bundle-web-BlyAAHKE.js} +1 -1
- package/client/dist/assets/{index-rrJqDgX7.js → index-DgMLPt35.js} +163 -236
- package/client/dist/index.html +1 -1
- package/package.json +22 -22
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/vue-M1-XqLgv.js","assets/css-BtVcDqlU.js","assets/javascript-DLs729Nk.js","assets/typescript-Cju7JbYj.js","assets/json-D07AUpjp.js","assets/html-derivative-Cswrtqyq.js","assets/html-BOjX3v2Q.js","assets/bundle-web-
|
|
2
|
-
import { r as reactExports, j as jsxRuntimeExports, C as CodeDefault, _ as __vitePreload } from "./index-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/vue-M1-XqLgv.js","assets/css-BtVcDqlU.js","assets/javascript-DLs729Nk.js","assets/typescript-Cju7JbYj.js","assets/json-D07AUpjp.js","assets/html-derivative-Cswrtqyq.js","assets/html-BOjX3v2Q.js","assets/bundle-web-BlyAAHKE.js","assets/index-DgMLPt35.js","assets/index-CpI4KDfc.css"])))=>i.map(i=>d[i]);
|
|
2
|
+
import { r as reactExports, j as jsxRuntimeExports, C as CodeDefault, _ as __vitePreload } from "./index-DgMLPt35.js";
|
|
3
3
|
const languageCache = /* @__PURE__ */ new Map();
|
|
4
4
|
const themeCache = /* @__PURE__ */ new Map();
|
|
5
5
|
const loadLanguage = async (lang) => {
|
|
@@ -61,7 +61,7 @@ const highlightCode = async (code, lang, isDarkMode) => {
|
|
|
61
61
|
const themeName = isDarkMode ? "github-dark" : "github-light";
|
|
62
62
|
const [{
|
|
63
63
|
codeToHtml
|
|
64
|
-
}, languageModule, themeModule] = await Promise.all([__vitePreload(() => import("./bundle-web-
|
|
64
|
+
}, languageModule, themeModule] = await Promise.all([__vitePreload(() => import("./bundle-web-BlyAAHKE.js"), true ? __vite__mapDeps([7,8,9]) : void 0), loadLanguage(lang), loadTheme(themeName)]);
|
|
65
65
|
return codeToHtml(code, {
|
|
66
66
|
lang,
|
|
67
67
|
theme: themeModule,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/angular-html-ChYFFmg7.js","assets/html-BOjX3v2Q.js","assets/javascript-DLs729Nk.js","assets/css-BtVcDqlU.js","assets/angular-ts-CpuGw9DZ.js","assets/scss-Dq-LbI_c.js","assets/astro-B0lt4qz0.js","assets/json-D07AUpjp.js","assets/typescript-Cju7JbYj.js","assets/postcss-kj1IbjVd.js","assets/tsx-B9RA6cgQ.js","assets/blade-DtOFwYfC.js","assets/html-derivative-Cswrtqyq.js","assets/xml-BMzZeaqs.js","assets/java-BfXh-0uJ.js","assets/sql-DzUuSofg.js","assets/coffee-DJkIX6_2.js","assets/cpp-zh2ePAE_.js","assets/regexp-BxWeO75u.js","assets/glsl-CGsiYPcu.js","assets/c-C4VtT7JA.js","assets/graphql-oNSp8dGZ.js","assets/jsx-BPmvoin2.js","assets/haml-BJ44RGT2.js","assets/handlebars-DTnHNTeU.js","assets/yaml-B_vW5iTY.js","assets/http-B1QlEqj7.js","assets/bash-Bz2gZrDc.js","assets/hurl-Br_hZn4E.js","assets/csv-Ba84L8e5.js","assets/jinja-BAZ4h1JD.js","assets/jison-Bwp1bXaL.js","assets/julia-D0f5tMoo.js","assets/python-CrdIx4PZ.js","assets/r-oprfD2-9.js","assets/marko-rwefYVra.js","assets/less-BAzLMJNR.js","assets/mdc-ucHOH9Vl.js","assets/markdown-F_EULe_G.js","assets/php-CI-6KGJr.js","assets/pug-C-LeC0-n.js","assets/svelte-CYSO_rLN.js","assets/ts-tags-DCkNjov3.js","assets/vue-M1-XqLgv.js","assets/vue-html-BzXE5pTE.js","assets/vue-vine-BT_ihGGO.js","assets/stylus-DXFa_2Jl.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import { _ as __vitePreload } from "./index-
|
|
2
|
+
import { _ as __vitePreload } from "./index-DgMLPt35.js";
|
|
3
3
|
let ShikiError$2 = class ShikiError extends Error {
|
|
4
4
|
constructor(message) {
|
|
5
5
|
super(message);
|
|
@@ -512,7 +512,7 @@ function requireReact_production() {
|
|
|
512
512
|
react_production.useTransition = function() {
|
|
513
513
|
return ReactSharedInternals.H.useTransition();
|
|
514
514
|
};
|
|
515
|
-
react_production.version = "19.2.
|
|
515
|
+
react_production.version = "19.2.1";
|
|
516
516
|
return react_production;
|
|
517
517
|
}
|
|
518
518
|
var hasRequiredReact;
|
|
@@ -944,7 +944,7 @@ function requireReactDom_production() {
|
|
|
944
944
|
reactDom_production.useFormStatus = function() {
|
|
945
945
|
return ReactSharedInternals.H.useHostTransitionStatus();
|
|
946
946
|
};
|
|
947
|
-
reactDom_production.version = "19.2.
|
|
947
|
+
reactDom_production.version = "19.2.1";
|
|
948
948
|
return reactDom_production;
|
|
949
949
|
}
|
|
950
950
|
var hasRequiredReactDom;
|
|
@@ -12388,12 +12388,12 @@ function requireReactDomClient_production() {
|
|
|
12388
12388
|
}
|
|
12389
12389
|
};
|
|
12390
12390
|
var isomorphicReactPackageVersion$jscomp$inline_1840 = React2.version;
|
|
12391
|
-
if ("19.2.
|
|
12391
|
+
if ("19.2.1" !== isomorphicReactPackageVersion$jscomp$inline_1840)
|
|
12392
12392
|
throw Error(
|
|
12393
12393
|
formatProdErrorMessage(
|
|
12394
12394
|
527,
|
|
12395
12395
|
isomorphicReactPackageVersion$jscomp$inline_1840,
|
|
12396
|
-
"19.2.
|
|
12396
|
+
"19.2.1"
|
|
12397
12397
|
)
|
|
12398
12398
|
);
|
|
12399
12399
|
ReactDOMSharedInternals.findDOMNode = function(componentOrElement) {
|
|
@@ -12411,10 +12411,10 @@ function requireReactDomClient_production() {
|
|
|
12411
12411
|
};
|
|
12412
12412
|
var internals$jscomp$inline_2347 = {
|
|
12413
12413
|
bundleType: 0,
|
|
12414
|
-
version: "19.2.
|
|
12414
|
+
version: "19.2.1",
|
|
12415
12415
|
rendererPackageName: "react-dom",
|
|
12416
12416
|
currentDispatcherRef: ReactSharedInternals,
|
|
12417
|
-
reconcilerVersion: "19.2.
|
|
12417
|
+
reconcilerVersion: "19.2.1"
|
|
12418
12418
|
};
|
|
12419
12419
|
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
|
|
12420
12420
|
var hook$jscomp$inline_2348 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
|
@@ -12481,7 +12481,7 @@ function requireReactDomClient_production() {
|
|
|
12481
12481
|
listenToAllSupportedEvents(container);
|
|
12482
12482
|
return new ReactDOMHydrationRoot(initialChildren);
|
|
12483
12483
|
};
|
|
12484
|
-
reactDomClient_production.version = "19.2.
|
|
12484
|
+
reactDomClient_production.version = "19.2.1";
|
|
12485
12485
|
return reactDomClient_production;
|
|
12486
12486
|
}
|
|
12487
12487
|
var hasRequiredClient;
|
|
@@ -13774,123 +13774,33 @@ const getNesting = (dictionaryKey, path, props) => {
|
|
|
13774
13774
|
}
|
|
13775
13775
|
return dictionary;
|
|
13776
13776
|
};
|
|
13777
|
-
|
|
13778
|
-
var hasRequiredCjs;
|
|
13779
|
-
function requireCjs() {
|
|
13780
|
-
if (hasRequiredCjs) return cjs;
|
|
13781
|
-
hasRequiredCjs = 1;
|
|
13782
|
-
var isMergeableObject2 = function isMergeableObject3(value) {
|
|
13783
|
-
return isNonNullObject(value) && !isSpecial(value);
|
|
13784
|
-
};
|
|
13785
|
-
function isNonNullObject(value) {
|
|
13786
|
-
return !!value && typeof value === "object";
|
|
13787
|
-
}
|
|
13788
|
-
function isSpecial(value) {
|
|
13789
|
-
var stringValue = Object.prototype.toString.call(value);
|
|
13790
|
-
return stringValue === "[object RegExp]" || stringValue === "[object Date]" || isReactElement(value);
|
|
13791
|
-
}
|
|
13792
|
-
var canUseSymbol = typeof Symbol === "function" && Symbol.for;
|
|
13793
|
-
var REACT_ELEMENT_TYPE = canUseSymbol ? Symbol.for("react.element") : 60103;
|
|
13794
|
-
function isReactElement(value) {
|
|
13795
|
-
return value.$$typeof === REACT_ELEMENT_TYPE;
|
|
13796
|
-
}
|
|
13797
|
-
function emptyTarget(val) {
|
|
13798
|
-
return Array.isArray(val) ? [] : {};
|
|
13799
|
-
}
|
|
13800
|
-
function cloneUnlessOtherwiseSpecified(value, options) {
|
|
13801
|
-
return options.clone !== false && options.isMergeableObject(value) ? deepmerge(emptyTarget(value), value, options) : value;
|
|
13802
|
-
}
|
|
13803
|
-
function defaultArrayMerge(target, source, options) {
|
|
13804
|
-
return target.concat(source).map(function(element) {
|
|
13805
|
-
return cloneUnlessOtherwiseSpecified(element, options);
|
|
13806
|
-
});
|
|
13807
|
-
}
|
|
13808
|
-
function getMergeFunction(key2, options) {
|
|
13809
|
-
if (!options.customMerge) {
|
|
13810
|
-
return deepmerge;
|
|
13811
|
-
}
|
|
13812
|
-
var customMerge = options.customMerge(key2);
|
|
13813
|
-
return typeof customMerge === "function" ? customMerge : deepmerge;
|
|
13814
|
-
}
|
|
13815
|
-
function getEnumerableOwnPropertySymbols(target) {
|
|
13816
|
-
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(target).filter(function(symbol) {
|
|
13817
|
-
return Object.propertyIsEnumerable.call(target, symbol);
|
|
13818
|
-
}) : [];
|
|
13819
|
-
}
|
|
13820
|
-
function getKeys(target) {
|
|
13821
|
-
return Object.keys(target).concat(getEnumerableOwnPropertySymbols(target));
|
|
13822
|
-
}
|
|
13823
|
-
function propertyIsOnObject(object2, property) {
|
|
13824
|
-
try {
|
|
13825
|
-
return property in object2;
|
|
13826
|
-
} catch (_2) {
|
|
13827
|
-
return false;
|
|
13828
|
-
}
|
|
13829
|
-
}
|
|
13830
|
-
function propertyIsUnsafe(target, key2) {
|
|
13831
|
-
return propertyIsOnObject(target, key2) && !(Object.hasOwnProperty.call(target, key2) && Object.propertyIsEnumerable.call(target, key2));
|
|
13832
|
-
}
|
|
13833
|
-
function mergeObject(target, source, options) {
|
|
13834
|
-
var destination = {};
|
|
13835
|
-
if (options.isMergeableObject(target)) {
|
|
13836
|
-
getKeys(target).forEach(function(key2) {
|
|
13837
|
-
destination[key2] = cloneUnlessOtherwiseSpecified(target[key2], options);
|
|
13838
|
-
});
|
|
13839
|
-
}
|
|
13840
|
-
getKeys(source).forEach(function(key2) {
|
|
13841
|
-
if (propertyIsUnsafe(target, key2)) {
|
|
13842
|
-
return;
|
|
13843
|
-
}
|
|
13844
|
-
if (propertyIsOnObject(target, key2) && options.isMergeableObject(source[key2])) {
|
|
13845
|
-
destination[key2] = getMergeFunction(key2, options)(target[key2], source[key2], options);
|
|
13846
|
-
} else {
|
|
13847
|
-
destination[key2] = cloneUnlessOtherwiseSpecified(source[key2], options);
|
|
13848
|
-
}
|
|
13849
|
-
});
|
|
13850
|
-
return destination;
|
|
13851
|
-
}
|
|
13852
|
-
function deepmerge(target, source, options) {
|
|
13853
|
-
options = options || {};
|
|
13854
|
-
options.arrayMerge = options.arrayMerge || defaultArrayMerge;
|
|
13855
|
-
options.isMergeableObject = options.isMergeableObject || isMergeableObject2;
|
|
13856
|
-
options.cloneUnlessOtherwiseSpecified = cloneUnlessOtherwiseSpecified;
|
|
13857
|
-
var sourceIsArray = Array.isArray(source);
|
|
13858
|
-
var targetIsArray = Array.isArray(target);
|
|
13859
|
-
var sourceAndTargetTypesMatch = sourceIsArray === targetIsArray;
|
|
13860
|
-
if (!sourceAndTargetTypesMatch) {
|
|
13861
|
-
return cloneUnlessOtherwiseSpecified(source, options);
|
|
13862
|
-
} else if (sourceIsArray) {
|
|
13863
|
-
return options.arrayMerge(target, source, options);
|
|
13864
|
-
} else {
|
|
13865
|
-
return mergeObject(target, source, options);
|
|
13866
|
-
}
|
|
13867
|
-
}
|
|
13868
|
-
deepmerge.all = function deepmergeAll(array2, options) {
|
|
13869
|
-
if (!Array.isArray(array2)) {
|
|
13870
|
-
throw new Error("first argument should be an array");
|
|
13871
|
-
}
|
|
13872
|
-
return array2.reduce(function(prev, next) {
|
|
13873
|
-
return deepmerge(prev, next, options);
|
|
13874
|
-
}, {});
|
|
13875
|
-
};
|
|
13876
|
-
var deepmerge_1 = deepmerge;
|
|
13877
|
-
cjs = deepmerge_1;
|
|
13878
|
-
return cjs;
|
|
13879
|
-
}
|
|
13880
|
-
var cjsExports = /* @__PURE__ */ requireCjs();
|
|
13881
|
-
const deepMerge$1 = /* @__PURE__ */ getDefaultExportFromCjs(cjsExports);
|
|
13882
|
-
const isMergeableObject = (value) => {
|
|
13777
|
+
const isPlainObject$3 = (value) => {
|
|
13883
13778
|
if (value === null || typeof value !== "object") return false;
|
|
13884
13779
|
if (value instanceof Promise || typeof value.then === "function") return false;
|
|
13885
13780
|
if (value.$$typeof !== void 0) return false;
|
|
13886
13781
|
const proto = Object.getPrototypeOf(value);
|
|
13887
13782
|
return proto === Object.prototype || proto === null || Array.isArray(value);
|
|
13888
13783
|
};
|
|
13784
|
+
const deepMergeObjects = (target, source) => {
|
|
13785
|
+
if (target === void 0) return source;
|
|
13786
|
+
if (source === void 0) return target;
|
|
13787
|
+
if (Array.isArray(target)) return target;
|
|
13788
|
+
if (isPlainObject$3(target) && isPlainObject$3(source)) {
|
|
13789
|
+
const result = { ...target };
|
|
13790
|
+
for (const key2 of Object.keys(source)) {
|
|
13791
|
+
if (key2 === "__proto__" || key2 === "constructor") continue;
|
|
13792
|
+
if (Object.hasOwn(target, key2)) result[key2] = deepMergeObjects(target[key2], source[key2]);
|
|
13793
|
+
else result[key2] = source[key2];
|
|
13794
|
+
}
|
|
13795
|
+
return result;
|
|
13796
|
+
}
|
|
13797
|
+
return target;
|
|
13798
|
+
};
|
|
13889
13799
|
const removeUndefinedValues = (object2, visited = /* @__PURE__ */ new WeakSet()) => {
|
|
13890
13800
|
if (typeof object2 !== "object" || object2 === null) return object2;
|
|
13891
13801
|
if (visited.has(object2)) return object2;
|
|
13892
13802
|
visited.add(object2);
|
|
13893
|
-
if (!
|
|
13803
|
+
if (!isPlainObject$3(object2)) return object2;
|
|
13894
13804
|
if (Array.isArray(object2)) return object2.map((item) => removeUndefinedValues(item, visited));
|
|
13895
13805
|
const result = {};
|
|
13896
13806
|
for (const [key2, value] of Object.entries(object2)) if (value !== void 0) result[key2] = removeUndefinedValues(value, visited);
|
|
@@ -13929,12 +13839,10 @@ const getTranslation = (languageContent, locale, fallback) => {
|
|
|
13929
13839
|
}
|
|
13930
13840
|
}
|
|
13931
13841
|
if (results.length === 0) return;
|
|
13932
|
-
results.reverse();
|
|
13933
13842
|
const cleanResults = results.map((item) => removeUndefinedValues(item));
|
|
13934
|
-
|
|
13935
|
-
|
|
13936
|
-
|
|
13937
|
-
});
|
|
13843
|
+
if (cleanResults.length === 1) return cleanResults[0];
|
|
13844
|
+
if (Array.isArray(cleanResults[0])) return cleanResults[0];
|
|
13845
|
+
return cleanResults.reduce((acc, curr) => deepMergeObjects(acc, curr));
|
|
13938
13846
|
};
|
|
13939
13847
|
const translationPlugin = (locale, fallback, onContentNotFound) => ({
|
|
13940
13848
|
id: "translation-plugin",
|
|
@@ -14643,6 +14551,27 @@ const createCachedIntl = () => new Proxy(Intl, { get: (target, prop, receiver) =
|
|
|
14643
14551
|
return typeof value === "function" && /^[A-Z]/.test(String(prop)) ? createCachedConstructor(value) : value;
|
|
14644
14552
|
} });
|
|
14645
14553
|
const CachedIntl = createCachedIntl();
|
|
14554
|
+
const getCookie = (name, cookieString) => {
|
|
14555
|
+
try {
|
|
14556
|
+
const str = cookieString ?? (typeof document !== "undefined" ? document.cookie : "");
|
|
14557
|
+
if (!str) return void 0;
|
|
14558
|
+
const pairs = str.split(";");
|
|
14559
|
+
for (let i2 = 0; i2 < pairs.length; i2++) {
|
|
14560
|
+
const part = pairs[i2].trim();
|
|
14561
|
+
if (!part) continue;
|
|
14562
|
+
const equalIndex = part.indexOf("=");
|
|
14563
|
+
if ((equalIndex >= 0 ? part.substring(0, equalIndex) : part) === name) {
|
|
14564
|
+
const rawValue = equalIndex >= 0 ? part.substring(equalIndex + 1) : "";
|
|
14565
|
+
try {
|
|
14566
|
+
return decodeURIComponent(rawValue);
|
|
14567
|
+
} catch {
|
|
14568
|
+
return rawValue;
|
|
14569
|
+
}
|
|
14570
|
+
}
|
|
14571
|
+
}
|
|
14572
|
+
} catch {
|
|
14573
|
+
}
|
|
14574
|
+
};
|
|
14646
14575
|
const buildCookieString = (name, value, attributes) => {
|
|
14647
14576
|
const parts = [`${name}=${encodeURIComponent(value)}`];
|
|
14648
14577
|
if (attributes.path) parts.push(`Path=${attributes.path}`);
|
|
@@ -14665,28 +14594,10 @@ const getLocaleFromStorage = (options) => {
|
|
|
14665
14594
|
const readCookie = (name) => {
|
|
14666
14595
|
try {
|
|
14667
14596
|
const fromOption = options?.getCookie?.(name);
|
|
14668
|
-
if (fromOption !== null) return fromOption;
|
|
14669
|
-
} catch {
|
|
14670
|
-
}
|
|
14671
|
-
try {
|
|
14672
|
-
const cookieString = document.cookie ?? "";
|
|
14673
|
-
if (!cookieString) return;
|
|
14674
|
-
const pairs = cookieString.split(";");
|
|
14675
|
-
for (let i2 = 0; i2 < pairs.length; i2++) {
|
|
14676
|
-
const part = pairs[i2].trim();
|
|
14677
|
-
if (!part) continue;
|
|
14678
|
-
const equalIndex = part.indexOf("=");
|
|
14679
|
-
if ((equalIndex >= 0 ? part.substring(0, equalIndex) : part) === name) {
|
|
14680
|
-
const rawValue = equalIndex >= 0 ? part.substring(equalIndex + 1) : "";
|
|
14681
|
-
try {
|
|
14682
|
-
return decodeURIComponent(rawValue);
|
|
14683
|
-
} catch {
|
|
14684
|
-
return rawValue;
|
|
14685
|
-
}
|
|
14686
|
-
}
|
|
14687
|
-
}
|
|
14597
|
+
if (fromOption !== null && fromOption !== void 0) return fromOption;
|
|
14688
14598
|
} catch {
|
|
14689
14599
|
}
|
|
14600
|
+
return getCookie(name);
|
|
14690
14601
|
};
|
|
14691
14602
|
for (let i2 = 0; i2 < storageAttributes.cookies.length; i2++) {
|
|
14692
14603
|
const { name } = storageAttributes.cookies[i2];
|
|
@@ -21466,10 +21377,10 @@ const __iconNode$o = [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]];
|
|
|
21466
21377
|
const Check = createLucideIcon("check", __iconNode$o);
|
|
21467
21378
|
const __iconNode$n = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]];
|
|
21468
21379
|
const ChevronDown = createLucideIcon("chevron-down", __iconNode$n);
|
|
21469
|
-
const __iconNode$m = [["path", { d: "
|
|
21470
|
-
const
|
|
21471
|
-
const __iconNode$l = [["path", { d: "
|
|
21472
|
-
const
|
|
21380
|
+
const __iconNode$m = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]];
|
|
21381
|
+
const ChevronRight = createLucideIcon("chevron-right", __iconNode$m);
|
|
21382
|
+
const __iconNode$l = [["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]];
|
|
21383
|
+
const ChevronLeft = createLucideIcon("chevron-left", __iconNode$l);
|
|
21473
21384
|
const __iconNode$k = [["path", { d: "m18 15-6-6-6 6", key: "153udz" }]];
|
|
21474
21385
|
const ChevronUp = createLucideIcon("chevron-up", __iconNode$k);
|
|
21475
21386
|
const __iconNode$j = [
|
|
@@ -23181,8 +23092,8 @@ function createSidecarMedium(options) {
|
|
|
23181
23092
|
medium.options = __assign({ async: true, ssr: false }, options);
|
|
23182
23093
|
return medium;
|
|
23183
23094
|
}
|
|
23184
|
-
var SideCar$1 = function(
|
|
23185
|
-
var sideCar =
|
|
23095
|
+
var SideCar$1 = function(_a2) {
|
|
23096
|
+
var sideCar = _a2.sideCar, rest = __rest(_a2, ["sideCar"]);
|
|
23186
23097
|
if (!sideCar) {
|
|
23187
23098
|
throw new Error("Sidecar: please provide `sideCar` property to import the right car");
|
|
23188
23099
|
}
|
|
@@ -23203,11 +23114,11 @@ var nothing = function() {
|
|
|
23203
23114
|
};
|
|
23204
23115
|
var RemoveScroll = reactExports.forwardRef(function(props, parentRef) {
|
|
23205
23116
|
var ref = reactExports.useRef(null);
|
|
23206
|
-
var
|
|
23117
|
+
var _a2 = reactExports.useState({
|
|
23207
23118
|
onScrollCapture: nothing,
|
|
23208
23119
|
onWheelCapture: nothing,
|
|
23209
23120
|
onTouchMoveCapture: nothing
|
|
23210
|
-
}), callbacks =
|
|
23121
|
+
}), callbacks = _a2[0], setCallbacks = _a2[1];
|
|
23211
23122
|
var forwardProps = props.forwardProps, children = props.children, className = props.className, removeScrollBar = props.removeScrollBar, enabled = props.enabled, shards = props.shards, sideCar = props.sideCar, noRelative = props.noRelative, noIsolation = props.noIsolation, inert = props.inert, allowPinchZoom = props.allowPinchZoom, _b = props.as, Container2 = _b === void 0 ? "div" : _b, gapMode = props.gapMode, rest = __rest(props, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]);
|
|
23212
23123
|
var SideCar2 = sideCar;
|
|
23213
23124
|
var containerRef = useMergeRefs([ref, parentRef]);
|
|
@@ -23291,8 +23202,8 @@ var styleHookSingleton = function() {
|
|
|
23291
23202
|
};
|
|
23292
23203
|
var styleSingleton = function() {
|
|
23293
23204
|
var useStyle2 = styleHookSingleton();
|
|
23294
|
-
var Sheet = function(
|
|
23295
|
-
var styles =
|
|
23205
|
+
var Sheet = function(_a2) {
|
|
23206
|
+
var styles = _a2.styles, dynamic = _a2.dynamic;
|
|
23296
23207
|
useStyle2(styles, dynamic);
|
|
23297
23208
|
return null;
|
|
23298
23209
|
};
|
|
@@ -23333,8 +23244,8 @@ var getGapWidth = function(gapMode) {
|
|
|
23333
23244
|
};
|
|
23334
23245
|
var Style = styleSingleton();
|
|
23335
23246
|
var lockAttribute = "data-scroll-locked";
|
|
23336
|
-
var getStyles = function(
|
|
23337
|
-
var left =
|
|
23247
|
+
var getStyles = function(_a2, allowRelative, gapMode, important) {
|
|
23248
|
+
var left = _a2.left, top = _a2.top, right = _a2.right, gap = _a2.gap;
|
|
23338
23249
|
if (gapMode === void 0) {
|
|
23339
23250
|
gapMode = "margin";
|
|
23340
23251
|
}
|
|
@@ -23361,8 +23272,8 @@ var useLockAttribute = function() {
|
|
|
23361
23272
|
};
|
|
23362
23273
|
}, []);
|
|
23363
23274
|
};
|
|
23364
|
-
var RemoveScrollBar = function(
|
|
23365
|
-
var noRelative =
|
|
23275
|
+
var RemoveScrollBar = function(_a2) {
|
|
23276
|
+
var noRelative = _a2.noRelative, noImportant = _a2.noImportant, _b = _a2.gapMode, gapMode = _b === void 0 ? "margin" : _b;
|
|
23366
23277
|
useLockAttribute();
|
|
23367
23278
|
var gap = reactExports.useMemo(function() {
|
|
23368
23279
|
return getGapWidth(gapMode);
|
|
@@ -23414,7 +23325,7 @@ var locationCouldBeScrolled = function(axis, node) {
|
|
|
23414
23325
|
}
|
|
23415
23326
|
var isScrollable = elementCouldBeScrolled(axis, current);
|
|
23416
23327
|
if (isScrollable) {
|
|
23417
|
-
var
|
|
23328
|
+
var _a2 = getScrollVariables(axis, current), scrollHeight = _a2[1], clientHeight = _a2[2];
|
|
23418
23329
|
if (scrollHeight > clientHeight) {
|
|
23419
23330
|
return true;
|
|
23420
23331
|
}
|
|
@@ -23423,16 +23334,16 @@ var locationCouldBeScrolled = function(axis, node) {
|
|
|
23423
23334
|
} while (current && current !== ownerDocument.body);
|
|
23424
23335
|
return false;
|
|
23425
23336
|
};
|
|
23426
|
-
var getVScrollVariables = function(
|
|
23427
|
-
var scrollTop =
|
|
23337
|
+
var getVScrollVariables = function(_a2) {
|
|
23338
|
+
var scrollTop = _a2.scrollTop, scrollHeight = _a2.scrollHeight, clientHeight = _a2.clientHeight;
|
|
23428
23339
|
return [
|
|
23429
23340
|
scrollTop,
|
|
23430
23341
|
scrollHeight,
|
|
23431
23342
|
clientHeight
|
|
23432
23343
|
];
|
|
23433
23344
|
};
|
|
23434
|
-
var getHScrollVariables = function(
|
|
23435
|
-
var scrollLeft =
|
|
23345
|
+
var getHScrollVariables = function(_a2) {
|
|
23346
|
+
var scrollLeft = _a2.scrollLeft, scrollWidth = _a2.scrollWidth, clientWidth = _a2.clientWidth;
|
|
23436
23347
|
return [
|
|
23437
23348
|
scrollLeft,
|
|
23438
23349
|
scrollWidth,
|
|
@@ -23461,7 +23372,7 @@ var handleScroll = function(axis, endTarget, event, sourceDelta, noOverscroll) {
|
|
|
23461
23372
|
if (!target) {
|
|
23462
23373
|
break;
|
|
23463
23374
|
}
|
|
23464
|
-
var
|
|
23375
|
+
var _a2 = getScrollVariables(axis, target), position = _a2[0], scroll_1 = _a2[1], capacity = _a2[2];
|
|
23465
23376
|
var elementScroll = scroll_1 - capacity - directionFactor * position;
|
|
23466
23377
|
if (position || elementScroll) {
|
|
23467
23378
|
if (elementCouldBeScrolled(axis, target)) {
|
|
@@ -30853,6 +30764,7 @@ function createProjectionNode({ attachResizeListener, defaultParent, measureScro
|
|
|
30853
30764
|
this.treeScale = { x: 1, y: 1 };
|
|
30854
30765
|
this.eventHandlers = /* @__PURE__ */ new Map();
|
|
30855
30766
|
this.hasTreeAnimated = false;
|
|
30767
|
+
this.layoutVersion = 0;
|
|
30856
30768
|
this.updateScheduled = false;
|
|
30857
30769
|
this.scheduleUpdate = () => this.update();
|
|
30858
30770
|
this.projectionUpdateScheduled = false;
|
|
@@ -30870,6 +30782,7 @@ function createProjectionNode({ attachResizeListener, defaultParent, measureScro
|
|
|
30870
30782
|
this.nodes.forEach(cleanDirtyNodes);
|
|
30871
30783
|
};
|
|
30872
30784
|
this.resolvedRelativeTargetAt = 0;
|
|
30785
|
+
this.linkedParentVersion = 0;
|
|
30873
30786
|
this.hasProjected = false;
|
|
30874
30787
|
this.isVisible = true;
|
|
30875
30788
|
this.animationProgress = 0;
|
|
@@ -31125,6 +31038,7 @@ function createProjectionNode({ attachResizeListener, defaultParent, measureScro
|
|
|
31125
31038
|
}
|
|
31126
31039
|
const prevLayout = this.layout;
|
|
31127
31040
|
this.layout = this.measure(false);
|
|
31041
|
+
this.layoutVersion++;
|
|
31128
31042
|
this.layoutCorrected = createBox();
|
|
31129
31043
|
this.isLayoutDirty = false;
|
|
31130
31044
|
this.projectionDelta = void 0;
|
|
@@ -31292,17 +31206,15 @@ function createProjectionNode({ attachResizeListener, defaultParent, measureScro
|
|
|
31292
31206
|
if (!this.layout || !(layout2 || layoutId))
|
|
31293
31207
|
return;
|
|
31294
31208
|
this.resolvedRelativeTargetAt = frameData.timestamp;
|
|
31209
|
+
const relativeParent = this.getClosestProjectingParent();
|
|
31210
|
+
if (relativeParent && this.linkedParentVersion !== relativeParent.layoutVersion && !relativeParent.options.layoutRoot) {
|
|
31211
|
+
this.removeRelativeTarget();
|
|
31212
|
+
}
|
|
31295
31213
|
if (!this.targetDelta && !this.relativeTarget) {
|
|
31296
|
-
|
|
31297
|
-
|
|
31298
|
-
this.relativeParent = relativeParent;
|
|
31299
|
-
this.forceRelativeParentToResolveTarget();
|
|
31300
|
-
this.relativeTarget = createBox();
|
|
31301
|
-
this.relativeTargetOrigin = createBox();
|
|
31302
|
-
calcRelativePosition(this.relativeTargetOrigin, this.layout.layoutBox, relativeParent.layout.layoutBox);
|
|
31303
|
-
copyBoxInto(this.relativeTarget, this.relativeTargetOrigin);
|
|
31214
|
+
if (relativeParent && relativeParent.layout) {
|
|
31215
|
+
this.createRelativeTarget(relativeParent, this.layout.layoutBox, relativeParent.layout.layoutBox);
|
|
31304
31216
|
} else {
|
|
31305
|
-
this.
|
|
31217
|
+
this.removeRelativeTarget();
|
|
31306
31218
|
}
|
|
31307
31219
|
}
|
|
31308
31220
|
if (!this.relativeTarget && !this.targetDelta)
|
|
@@ -31326,14 +31238,8 @@ function createProjectionNode({ attachResizeListener, defaultParent, measureScro
|
|
|
31326
31238
|
}
|
|
31327
31239
|
if (this.attemptToResolveRelativeTarget) {
|
|
31328
31240
|
this.attemptToResolveRelativeTarget = false;
|
|
31329
|
-
const relativeParent = this.getClosestProjectingParent();
|
|
31330
31241
|
if (relativeParent && Boolean(relativeParent.resumingFrom) === Boolean(this.resumingFrom) && !relativeParent.options.layoutScroll && relativeParent.target && this.animationProgress !== 1) {
|
|
31331
|
-
this.relativeParent
|
|
31332
|
-
this.forceRelativeParentToResolveTarget();
|
|
31333
|
-
this.relativeTarget = createBox();
|
|
31334
|
-
this.relativeTargetOrigin = createBox();
|
|
31335
|
-
calcRelativePosition(this.relativeTargetOrigin, this.target, relativeParent.target);
|
|
31336
|
-
copyBoxInto(this.relativeTarget, this.relativeTargetOrigin);
|
|
31242
|
+
this.createRelativeTarget(relativeParent, this.target, relativeParent.target);
|
|
31337
31243
|
} else {
|
|
31338
31244
|
this.relativeParent = this.relativeTarget = void 0;
|
|
31339
31245
|
}
|
|
@@ -31352,6 +31258,18 @@ function createProjectionNode({ attachResizeListener, defaultParent, measureScro
|
|
|
31352
31258
|
isProjecting() {
|
|
31353
31259
|
return Boolean((this.relativeTarget || this.targetDelta || this.options.layoutRoot) && this.layout);
|
|
31354
31260
|
}
|
|
31261
|
+
createRelativeTarget(relativeParent, layout2, parentLayout) {
|
|
31262
|
+
this.relativeParent = relativeParent;
|
|
31263
|
+
this.linkedParentVersion = relativeParent.layoutVersion;
|
|
31264
|
+
this.forceRelativeParentToResolveTarget();
|
|
31265
|
+
this.relativeTarget = createBox();
|
|
31266
|
+
this.relativeTargetOrigin = createBox();
|
|
31267
|
+
calcRelativePosition(this.relativeTargetOrigin, layout2, parentLayout);
|
|
31268
|
+
copyBoxInto(this.relativeTarget, this.relativeTargetOrigin);
|
|
31269
|
+
}
|
|
31270
|
+
removeRelativeTarget() {
|
|
31271
|
+
this.relativeParent = this.relativeTarget = void 0;
|
|
31272
|
+
}
|
|
31355
31273
|
calcProjection() {
|
|
31356
31274
|
const lead = this.getLead();
|
|
31357
31275
|
const isShared = Boolean(this.resumingFrom) || this !== lead;
|
|
@@ -38010,7 +37928,7 @@ var BetterFetchError = class extends Error {
|
|
|
38010
37928
|
}
|
|
38011
37929
|
};
|
|
38012
37930
|
var initializePlugins = async (url, options) => {
|
|
38013
|
-
var
|
|
37931
|
+
var _a2, _b, _c, _d, _e2, _f;
|
|
38014
37932
|
let opts = options || {};
|
|
38015
37933
|
const hooks = {
|
|
38016
37934
|
onRequest: [options == null ? void 0 : options.onRequest],
|
|
@@ -38028,7 +37946,7 @@ var initializePlugins = async (url, options) => {
|
|
|
38028
37946
|
}
|
|
38029
37947
|
for (const plugin of (options == null ? void 0 : options.plugins) || []) {
|
|
38030
37948
|
if (plugin.init) {
|
|
38031
|
-
const pluginRes = await ((
|
|
37949
|
+
const pluginRes = await ((_a2 = plugin.init) == null ? void 0 : _a2.call(plugin, url.toString(), options));
|
|
38032
37950
|
opts = pluginRes.options || opts;
|
|
38033
37951
|
url = pluginRes.url;
|
|
38034
37952
|
}
|
|
@@ -38230,12 +38148,12 @@ function getBody(options) {
|
|
|
38230
38148
|
return options.body;
|
|
38231
38149
|
}
|
|
38232
38150
|
function getMethod$1(url, options) {
|
|
38233
|
-
var
|
|
38151
|
+
var _a2;
|
|
38234
38152
|
if (options == null ? void 0 : options.method) {
|
|
38235
38153
|
return options.method.toUpperCase();
|
|
38236
38154
|
}
|
|
38237
38155
|
if (url.startsWith("@")) {
|
|
38238
|
-
const pMethod = (
|
|
38156
|
+
const pMethod = (_a2 = url.split("@")[1]) == null ? void 0 : _a2.split("/")[0];
|
|
38239
38157
|
if (!methods.includes(pMethod)) {
|
|
38240
38158
|
return (options == null ? void 0 : options.body) ? "POST" : "GET";
|
|
38241
38159
|
}
|
|
@@ -38277,11 +38195,11 @@ var applySchemaPlugin = (config2) => ({
|
|
|
38277
38195
|
name: "Apply Schema",
|
|
38278
38196
|
version: "1.0.0",
|
|
38279
38197
|
async init(url, options) {
|
|
38280
|
-
var
|
|
38281
|
-
const schema = ((_b = (
|
|
38198
|
+
var _a2, _b, _c, _d;
|
|
38199
|
+
const schema = ((_b = (_a2 = config2.plugins) == null ? void 0 : _a2.find(
|
|
38282
38200
|
(plugin) => {
|
|
38283
|
-
var
|
|
38284
|
-
return ((
|
|
38201
|
+
var _a22;
|
|
38202
|
+
return ((_a22 = plugin.schema) == null ? void 0 : _a22.config) ? url.startsWith(plugin.schema.config.baseURL || "") || url.startsWith(plugin.schema.config.prefix || "") : false;
|
|
38285
38203
|
}
|
|
38286
38204
|
)) == null ? void 0 : _b.schema) || config2.schema;
|
|
38287
38205
|
if (schema) {
|
|
@@ -38392,7 +38310,7 @@ function getURL2(url, option) {
|
|
|
38392
38310
|
return _url2;
|
|
38393
38311
|
}
|
|
38394
38312
|
var betterFetch = async (url, options) => {
|
|
38395
|
-
var
|
|
38313
|
+
var _a2, _b, _c, _d, _e2, _f, _g, _h;
|
|
38396
38314
|
const {
|
|
38397
38315
|
hooks,
|
|
38398
38316
|
url: __url,
|
|
@@ -38400,7 +38318,7 @@ var betterFetch = async (url, options) => {
|
|
|
38400
38318
|
} = await initializePlugins(url, options);
|
|
38401
38319
|
const fetch2 = getFetch(opts);
|
|
38402
38320
|
const controller = new AbortController();
|
|
38403
|
-
const signal = (
|
|
38321
|
+
const signal = (_a2 = opts.signal) != null ? _a2 : controller.signal;
|
|
38404
38322
|
const _url2 = getURL2(__url, opts);
|
|
38405
38323
|
const body = getBody(opts);
|
|
38406
38324
|
const headers = await getHeaders(opts);
|
|
@@ -39451,10 +39369,10 @@ function toPublicKeyCredentialDescriptor(descriptor) {
|
|
|
39451
39369
|
transports: descriptor.transports
|
|
39452
39370
|
};
|
|
39453
39371
|
}
|
|
39454
|
-
function isValidDomain(
|
|
39372
|
+
function isValidDomain(hostname) {
|
|
39455
39373
|
return (
|
|
39456
39374
|
// Consider localhost valid as well since it's okay wrt Secure Contexts
|
|
39457
|
-
|
|
39375
|
+
hostname === "localhost" || /^([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,}$/i.test(hostname)
|
|
39458
39376
|
);
|
|
39459
39377
|
}
|
|
39460
39378
|
class WebAuthnError extends Error {
|
|
@@ -44564,30 +44482,39 @@ function n(e) {
|
|
|
44564
44482
|
}
|
|
44565
44483
|
function $constructor(name, initializer2, params) {
|
|
44566
44484
|
function init2(inst, def) {
|
|
44567
|
-
|
|
44568
|
-
|
|
44569
|
-
|
|
44570
|
-
|
|
44571
|
-
|
|
44572
|
-
|
|
44485
|
+
if (!inst._zod) {
|
|
44486
|
+
Object.defineProperty(inst, "_zod", {
|
|
44487
|
+
value: {
|
|
44488
|
+
def,
|
|
44489
|
+
constr: _2,
|
|
44490
|
+
traits: /* @__PURE__ */ new Set()
|
|
44491
|
+
},
|
|
44492
|
+
enumerable: false
|
|
44493
|
+
});
|
|
44494
|
+
}
|
|
44495
|
+
if (inst._zod.traits.has(name)) {
|
|
44496
|
+
return;
|
|
44497
|
+
}
|
|
44573
44498
|
inst._zod.traits.add(name);
|
|
44574
44499
|
initializer2(inst, def);
|
|
44575
|
-
|
|
44576
|
-
|
|
44577
|
-
|
|
44500
|
+
const proto = _2.prototype;
|
|
44501
|
+
const keys = Object.keys(proto);
|
|
44502
|
+
for (let i2 = 0; i2 < keys.length; i2++) {
|
|
44503
|
+
const k2 = keys[i2];
|
|
44504
|
+
if (!(k2 in inst)) {
|
|
44505
|
+
inst[k2] = proto[k2].bind(inst);
|
|
44506
|
+
}
|
|
44578
44507
|
}
|
|
44579
|
-
inst._zod.constr = _2;
|
|
44580
|
-
inst._zod.def = def;
|
|
44581
44508
|
}
|
|
44582
44509
|
const Parent = params?.Parent ?? Object;
|
|
44583
44510
|
class Definition extends Parent {
|
|
44584
44511
|
}
|
|
44585
44512
|
Object.defineProperty(Definition, "name", { value: name });
|
|
44586
44513
|
function _2(def) {
|
|
44587
|
-
var
|
|
44514
|
+
var _a2;
|
|
44588
44515
|
const inst = params?.Parent ? new Definition() : this;
|
|
44589
44516
|
init2(inst, def);
|
|
44590
|
-
(
|
|
44517
|
+
(_a2 = inst._zod).deferred ?? (_a2.deferred = []);
|
|
44591
44518
|
for (const fn of inst._zod.deferred) {
|
|
44592
44519
|
fn();
|
|
44593
44520
|
}
|
|
@@ -44690,6 +44617,9 @@ function mergeDefs(...defs) {
|
|
|
44690
44617
|
function esc(str) {
|
|
44691
44618
|
return JSON.stringify(str);
|
|
44692
44619
|
}
|
|
44620
|
+
function slugify$1(input) {
|
|
44621
|
+
return input.toLowerCase().trim().replace(/[^\w\s-]/g, "").replace(/[\s_-]+/g, "-").replace(/^-+|-+$/g, "");
|
|
44622
|
+
}
|
|
44693
44623
|
const captureStackTrace = "captureStackTrace" in Error ? Error.captureStackTrace : (..._args) => {
|
|
44694
44624
|
};
|
|
44695
44625
|
function isObject$3(data) {
|
|
@@ -44713,6 +44643,8 @@ function isPlainObject(o2) {
|
|
|
44713
44643
|
const ctor = o2.constructor;
|
|
44714
44644
|
if (ctor === void 0)
|
|
44715
44645
|
return true;
|
|
44646
|
+
if (typeof ctor !== "function")
|
|
44647
|
+
return true;
|
|
44716
44648
|
const prot = ctor.prototype;
|
|
44717
44649
|
if (isObject$3(prot) === false)
|
|
44718
44650
|
return false;
|
|
@@ -44924,8 +44856,8 @@ function aborted(x, startIndex = 0) {
|
|
|
44924
44856
|
}
|
|
44925
44857
|
function prefixIssues(path, issues) {
|
|
44926
44858
|
return issues.map((iss) => {
|
|
44927
|
-
var
|
|
44928
|
-
(
|
|
44859
|
+
var _a2;
|
|
44860
|
+
(_a2 = iss).path ?? (_a2.path = []);
|
|
44929
44861
|
iss.path.unshift(path);
|
|
44930
44862
|
return iss;
|
|
44931
44863
|
});
|
|
@@ -45131,7 +45063,6 @@ const cidrv4 = /^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-
|
|
|
45131
45063
|
const cidrv6 = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/;
|
|
45132
45064
|
const base64 = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/;
|
|
45133
45065
|
const base64url = /^[A-Za-z0-9_-]*$/;
|
|
45134
|
-
const hostname = /^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/;
|
|
45135
45066
|
const e164 = /^\+(?:[0-9]){6,14}[0-9]$/;
|
|
45136
45067
|
const dateSource = `(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))`;
|
|
45137
45068
|
const date$1 = /* @__PURE__ */ new RegExp(`^${dateSource}$`);
|
|
@@ -45160,15 +45091,15 @@ const string$1 = (params) => {
|
|
|
45160
45091
|
const lowercase = /^[^A-Z]*$/;
|
|
45161
45092
|
const uppercase = /^[^a-z]*$/;
|
|
45162
45093
|
const $ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def) => {
|
|
45163
|
-
var
|
|
45094
|
+
var _a2;
|
|
45164
45095
|
inst._zod ?? (inst._zod = {});
|
|
45165
45096
|
inst._zod.def = def;
|
|
45166
|
-
(
|
|
45097
|
+
(_a2 = inst._zod).onattach ?? (_a2.onattach = []);
|
|
45167
45098
|
});
|
|
45168
45099
|
const $ZodCheckMaxLength = /* @__PURE__ */ $constructor("$ZodCheckMaxLength", (inst, def) => {
|
|
45169
|
-
var
|
|
45100
|
+
var _a2;
|
|
45170
45101
|
$ZodCheck.init(inst, def);
|
|
45171
|
-
(
|
|
45102
|
+
(_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
|
|
45172
45103
|
const val = payload.value;
|
|
45173
45104
|
return !nullish(val) && val.length !== void 0;
|
|
45174
45105
|
});
|
|
@@ -45195,9 +45126,9 @@ const $ZodCheckMaxLength = /* @__PURE__ */ $constructor("$ZodCheckMaxLength", (i
|
|
|
45195
45126
|
};
|
|
45196
45127
|
});
|
|
45197
45128
|
const $ZodCheckMinLength = /* @__PURE__ */ $constructor("$ZodCheckMinLength", (inst, def) => {
|
|
45198
|
-
var
|
|
45129
|
+
var _a2;
|
|
45199
45130
|
$ZodCheck.init(inst, def);
|
|
45200
|
-
(
|
|
45131
|
+
(_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
|
|
45201
45132
|
const val = payload.value;
|
|
45202
45133
|
return !nullish(val) && val.length !== void 0;
|
|
45203
45134
|
});
|
|
@@ -45224,9 +45155,9 @@ const $ZodCheckMinLength = /* @__PURE__ */ $constructor("$ZodCheckMinLength", (i
|
|
|
45224
45155
|
};
|
|
45225
45156
|
});
|
|
45226
45157
|
const $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEquals", (inst, def) => {
|
|
45227
|
-
var
|
|
45158
|
+
var _a2;
|
|
45228
45159
|
$ZodCheck.init(inst, def);
|
|
45229
|
-
(
|
|
45160
|
+
(_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
|
|
45230
45161
|
const val = payload.value;
|
|
45231
45162
|
return !nullish(val) && val.length !== void 0;
|
|
45232
45163
|
});
|
|
@@ -45255,7 +45186,7 @@ const $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEqual
|
|
|
45255
45186
|
};
|
|
45256
45187
|
});
|
|
45257
45188
|
const $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringFormat", (inst, def) => {
|
|
45258
|
-
var
|
|
45189
|
+
var _a2, _b;
|
|
45259
45190
|
$ZodCheck.init(inst, def);
|
|
45260
45191
|
inst._zod.onattach.push((inst2) => {
|
|
45261
45192
|
const bag = inst2._zod.bag;
|
|
@@ -45266,7 +45197,7 @@ const $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringForma
|
|
|
45266
45197
|
}
|
|
45267
45198
|
});
|
|
45268
45199
|
if (def.pattern)
|
|
45269
|
-
(
|
|
45200
|
+
(_a2 = inst._zod).check ?? (_a2.check = (payload) => {
|
|
45270
45201
|
def.pattern.lastIndex = 0;
|
|
45271
45202
|
if (def.pattern.test(payload.value))
|
|
45272
45203
|
return;
|
|
@@ -45422,10 +45353,10 @@ class Doc {
|
|
|
45422
45353
|
const version = {
|
|
45423
45354
|
major: 4,
|
|
45424
45355
|
minor: 1,
|
|
45425
|
-
patch:
|
|
45356
|
+
patch: 13
|
|
45426
45357
|
};
|
|
45427
45358
|
const $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
45428
|
-
var
|
|
45359
|
+
var _a2;
|
|
45429
45360
|
inst ?? (inst = {});
|
|
45430
45361
|
inst._zod.def = def;
|
|
45431
45362
|
inst._zod.bag = inst._zod.bag || {};
|
|
@@ -45440,7 +45371,7 @@ const $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
|
45440
45371
|
}
|
|
45441
45372
|
}
|
|
45442
45373
|
if (checks.length === 0) {
|
|
45443
|
-
(
|
|
45374
|
+
(_a2 = inst._zod).deferred ?? (_a2.deferred = []);
|
|
45444
45375
|
inst._zod.deferred?.push(() => {
|
|
45445
45376
|
inst._zod.run = inst._zod.parse;
|
|
45446
45377
|
});
|
|
@@ -45598,7 +45529,7 @@ const $ZodURL = /* @__PURE__ */ $constructor("$ZodURL", (inst, def) => {
|
|
|
45598
45529
|
code: "invalid_format",
|
|
45599
45530
|
format: "url",
|
|
45600
45531
|
note: "Invalid hostname",
|
|
45601
|
-
pattern: hostname.source,
|
|
45532
|
+
pattern: def.hostname.source,
|
|
45602
45533
|
input: payload.value,
|
|
45603
45534
|
inst,
|
|
45604
45535
|
continue: !def.abort
|
|
@@ -45683,18 +45614,12 @@ const $ZodISODuration = /* @__PURE__ */ $constructor("$ZodISODuration", (inst, d
|
|
|
45683
45614
|
const $ZodIPv4 = /* @__PURE__ */ $constructor("$ZodIPv4", (inst, def) => {
|
|
45684
45615
|
def.pattern ?? (def.pattern = ipv4);
|
|
45685
45616
|
$ZodStringFormat.init(inst, def);
|
|
45686
|
-
inst._zod.
|
|
45687
|
-
const bag = inst2._zod.bag;
|
|
45688
|
-
bag.format = `ipv4`;
|
|
45689
|
-
});
|
|
45617
|
+
inst._zod.bag.format = `ipv4`;
|
|
45690
45618
|
});
|
|
45691
45619
|
const $ZodIPv6 = /* @__PURE__ */ $constructor("$ZodIPv6", (inst, def) => {
|
|
45692
45620
|
def.pattern ?? (def.pattern = ipv6);
|
|
45693
45621
|
$ZodStringFormat.init(inst, def);
|
|
45694
|
-
inst._zod.
|
|
45695
|
-
const bag = inst2._zod.bag;
|
|
45696
|
-
bag.format = `ipv6`;
|
|
45697
|
-
});
|
|
45622
|
+
inst._zod.bag.format = `ipv6`;
|
|
45698
45623
|
inst._zod.check = (payload) => {
|
|
45699
45624
|
try {
|
|
45700
45625
|
new URL(`http://[${payload.value}]`);
|
|
@@ -45756,9 +45681,7 @@ function isValidBase64(data) {
|
|
|
45756
45681
|
const $ZodBase64 = /* @__PURE__ */ $constructor("$ZodBase64", (inst, def) => {
|
|
45757
45682
|
def.pattern ?? (def.pattern = base64);
|
|
45758
45683
|
$ZodStringFormat.init(inst, def);
|
|
45759
|
-
inst._zod.
|
|
45760
|
-
inst2._zod.bag.contentEncoding = "base64";
|
|
45761
|
-
});
|
|
45684
|
+
inst._zod.bag.contentEncoding = "base64";
|
|
45762
45685
|
inst._zod.check = (payload) => {
|
|
45763
45686
|
if (isValidBase64(payload.value))
|
|
45764
45687
|
return;
|
|
@@ -45781,9 +45704,7 @@ function isValidBase64URL(data) {
|
|
|
45781
45704
|
const $ZodBase64URL = /* @__PURE__ */ $constructor("$ZodBase64URL", (inst, def) => {
|
|
45782
45705
|
def.pattern ?? (def.pattern = base64url);
|
|
45783
45706
|
$ZodStringFormat.init(inst, def);
|
|
45784
|
-
inst._zod.
|
|
45785
|
-
inst2._zod.bag.contentEncoding = "base64url";
|
|
45786
|
-
});
|
|
45707
|
+
inst._zod.bag.contentEncoding = "base64url";
|
|
45787
45708
|
inst._zod.check = (payload) => {
|
|
45788
45709
|
if (isValidBase64URL(payload.value))
|
|
45789
45710
|
return;
|
|
@@ -45922,7 +45843,7 @@ function handleCatchall(proms, input, payload, ctx, def, inst) {
|
|
|
45922
45843
|
const keySet = def.keySet;
|
|
45923
45844
|
const _catchall = def.catchall._zod;
|
|
45924
45845
|
const t2 = _catchall.def.type;
|
|
45925
|
-
for (const key2
|
|
45846
|
+
for (const key2 in input) {
|
|
45926
45847
|
if (keySet.has(key2))
|
|
45927
45848
|
continue;
|
|
45928
45849
|
if (t2 === "never") {
|
|
@@ -46453,8 +46374,8 @@ const $ZodReadonly = /* @__PURE__ */ $constructor("$ZodReadonly", (inst, def) =>
|
|
|
46453
46374
|
$ZodType.init(inst, def);
|
|
46454
46375
|
defineLazy(inst._zod, "propValues", () => def.innerType._zod.propValues);
|
|
46455
46376
|
defineLazy(inst._zod, "values", () => def.innerType._zod.values);
|
|
46456
|
-
defineLazy(inst._zod, "optin", () => def.innerType
|
|
46457
|
-
defineLazy(inst._zod, "optout", () => def.innerType
|
|
46377
|
+
defineLazy(inst._zod, "optin", () => def.innerType?._zod?.optin);
|
|
46378
|
+
defineLazy(inst._zod, "optout", () => def.innerType?._zod?.optout);
|
|
46458
46379
|
inst._zod.parse = (payload, ctx) => {
|
|
46459
46380
|
if (ctx.direction === "backward") {
|
|
46460
46381
|
return def.innerType._zod.run(payload, ctx);
|
|
@@ -46503,6 +46424,7 @@ function handleRefineResult(result, payload, input, inst) {
|
|
|
46503
46424
|
payload.issues.push(issue(_iss));
|
|
46504
46425
|
}
|
|
46505
46426
|
}
|
|
46427
|
+
var _a;
|
|
46506
46428
|
class $ZodRegistry {
|
|
46507
46429
|
constructor() {
|
|
46508
46430
|
this._map = /* @__PURE__ */ new WeakMap();
|
|
@@ -46549,7 +46471,8 @@ class $ZodRegistry {
|
|
|
46549
46471
|
function registry() {
|
|
46550
46472
|
return new $ZodRegistry();
|
|
46551
46473
|
}
|
|
46552
|
-
|
|
46474
|
+
(_a = globalThis).__zod_globalRegistry ?? (_a.__zod_globalRegistry = registry());
|
|
46475
|
+
const globalRegistry = globalThis.__zod_globalRegistry;
|
|
46553
46476
|
function _string(Class, params) {
|
|
46554
46477
|
return new Class({
|
|
46555
46478
|
type: "string",
|
|
@@ -46890,6 +46813,9 @@ function _toLowerCase() {
|
|
|
46890
46813
|
function _toUpperCase() {
|
|
46891
46814
|
return _overwrite((input) => input.toUpperCase());
|
|
46892
46815
|
}
|
|
46816
|
+
function _slugify() {
|
|
46817
|
+
return _overwrite((input) => slugify$1(input));
|
|
46818
|
+
}
|
|
46893
46819
|
function _array(Class, element, params) {
|
|
46894
46820
|
return new Class({
|
|
46895
46821
|
type: "array",
|
|
@@ -48466,6 +48392,7 @@ const _ZodString = /* @__PURE__ */ $constructor("_ZodString", (inst, def) => {
|
|
|
48466
48392
|
inst.normalize = (...args) => inst.check(_normalize(...args));
|
|
48467
48393
|
inst.toLowerCase = () => inst.check(_toLowerCase());
|
|
48468
48394
|
inst.toUpperCase = () => inst.check(_toUpperCase());
|
|
48395
|
+
inst.slugify = () => inst.check(_slugify());
|
|
48469
48396
|
});
|
|
48470
48397
|
const ZodString = /* @__PURE__ */ $constructor("ZodString", (inst, def) => {
|
|
48471
48398
|
$ZodString.init(inst, def);
|
|
@@ -50545,7 +50472,7 @@ const CodeDefault = ({
|
|
|
50545
50472
|
})
|
|
50546
50473
|
})
|
|
50547
50474
|
});
|
|
50548
|
-
const CodeBlockShiki = reactExports.lazy(() => __vitePreload(() => import("./CodeBlockShiki-
|
|
50475
|
+
const CodeBlockShiki = reactExports.lazy(() => __vitePreload(() => import("./CodeBlockShiki-BtHKWEZc.js"), true ? [] : void 0).then((mod) => ({
|
|
50549
50476
|
default: mod.CodeBlockShiki
|
|
50550
50477
|
})));
|
|
50551
50478
|
const CodeBlock = ({
|
package/client/dist/index.html
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
|
|
6
6
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
7
7
|
<title>Intlayer Editor</title>
|
|
8
|
-
<script type="module" crossorigin src="/assets/index-
|
|
8
|
+
<script type="module" crossorigin src="/assets/index-DgMLPt35.js"></script>
|
|
9
9
|
<link rel="stylesheet" crossorigin href="/assets/index-CpI4KDfc.css">
|
|
10
10
|
</head>
|
|
11
11
|
<body>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "intlayer-editor",
|
|
3
|
-
"version": "7.3.
|
|
3
|
+
"version": "7.3.10",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Integrate the Intlayer visual editor into your Intlayer projects, enabling CMS-like content management with multilingual support.",
|
|
6
6
|
"keywords": [
|
|
@@ -85,32 +85,32 @@
|
|
|
85
85
|
"typecheck": "tsc --project ./server/tsconfig.types.json --noEmit"
|
|
86
86
|
},
|
|
87
87
|
"dependencies": {
|
|
88
|
-
"@intlayer/api": "7.3.
|
|
89
|
-
"@intlayer/chokidar": "7.3.
|
|
90
|
-
"@intlayer/config": "7.3.
|
|
91
|
-
"@intlayer/core": "7.3.
|
|
92
|
-
"@intlayer/design-system": "7.3.
|
|
93
|
-
"@intlayer/editor-react": "7.3.
|
|
94
|
-
"@intlayer/types": "7.3.
|
|
95
|
-
"@intlayer/unmerged-dictionaries-entry": "7.3.
|
|
88
|
+
"@intlayer/api": "7.3.10",
|
|
89
|
+
"@intlayer/chokidar": "7.3.10",
|
|
90
|
+
"@intlayer/config": "7.3.10",
|
|
91
|
+
"@intlayer/core": "7.3.10",
|
|
92
|
+
"@intlayer/design-system": "7.3.10",
|
|
93
|
+
"@intlayer/editor-react": "7.3.10",
|
|
94
|
+
"@intlayer/types": "7.3.10",
|
|
95
|
+
"@intlayer/unmerged-dictionaries-entry": "7.3.10",
|
|
96
96
|
"@tanstack/react-query": "5.90.10",
|
|
97
97
|
"compression": "1.8.1",
|
|
98
98
|
"cookie-parser": "1.4.7",
|
|
99
99
|
"cors": "2.8.5",
|
|
100
100
|
"express": "5.1.0",
|
|
101
|
-
"express-intlayer": "7.3.
|
|
102
|
-
"framer-motion": "12.23.
|
|
101
|
+
"express-intlayer": "7.3.10",
|
|
102
|
+
"framer-motion": "12.23.25",
|
|
103
103
|
"fuse.js": "7.1.0",
|
|
104
104
|
"helmet": "8.1.0",
|
|
105
|
-
"intlayer": "7.3.
|
|
106
|
-
"lucide-react": "0.
|
|
105
|
+
"intlayer": "7.3.10",
|
|
106
|
+
"lucide-react": "0.555.0",
|
|
107
107
|
"mime": "4.1.0",
|
|
108
|
-
"react": "19.2.
|
|
109
|
-
"react-dom": "19.2.
|
|
110
|
-
"react-intlayer": "7.3.
|
|
108
|
+
"react": "19.2.1",
|
|
109
|
+
"react-dom": "19.2.1",
|
|
110
|
+
"react-intlayer": "7.3.10",
|
|
111
111
|
"react-router-dom": "7.9.5",
|
|
112
112
|
"rimraf": "6.1.2",
|
|
113
|
-
"vite-intlayer": "7.3.
|
|
113
|
+
"vite-intlayer": "7.3.10"
|
|
114
114
|
},
|
|
115
115
|
"devDependencies": {
|
|
116
116
|
"@tailwindcss/vite": "4.1.16",
|
|
@@ -119,7 +119,7 @@
|
|
|
119
119
|
"@types/cors": "2.8.19",
|
|
120
120
|
"@types/express": "5.0.5",
|
|
121
121
|
"@types/node": "24.10.1",
|
|
122
|
-
"@types/react": "19.2.
|
|
122
|
+
"@types/react": "19.2.7",
|
|
123
123
|
"@types/react-dom": "19.2.3",
|
|
124
124
|
"@utils/ts-config": "1.0.4",
|
|
125
125
|
"@vitejs/plugin-react": "^5.1.0",
|
|
@@ -134,14 +134,14 @@
|
|
|
134
134
|
},
|
|
135
135
|
"peerDependencies": {
|
|
136
136
|
"clsx": "2.1.1",
|
|
137
|
-
"framer-motion": "12.23.
|
|
138
|
-
"intlayer": "7.3.
|
|
137
|
+
"framer-motion": "12.23.25",
|
|
138
|
+
"intlayer": "7.3.10",
|
|
139
139
|
"react": ">=16.0.0",
|
|
140
140
|
"react-dom": ">=16.0.0",
|
|
141
|
-
"react-intlayer": "7.3.
|
|
141
|
+
"react-intlayer": "7.3.10",
|
|
142
142
|
"react-router-dom": ">=6.0.0",
|
|
143
143
|
"tailwind-merge": "3.4.0",
|
|
144
|
-
"vite-intlayer": "7.3.
|
|
144
|
+
"vite-intlayer": "7.3.10"
|
|
145
145
|
},
|
|
146
146
|
"engines": {
|
|
147
147
|
"node": ">=14.18"
|