/*!
Copyright (c) 2026 Lenovo SSG BASD. All rights reserved.
@license Proprietary

This software is the confidential and proprietary property of Lenovo SSG BASD.
You shall not disclose such Confidential Information and shall use it only in
accordance with the terms of the license agreement.

--- Build Info ---
Version: 1.1.1
Build Time: 2026/2/26 17:21:00
Build Commit: 81e556ed827e2f043668506dae6fae8dbb9ef395
*/
const t=(t,s)=>{const e=function(t,s){const e=/* @__PURE__ */new Map;for(const n of t){const t=n.path??[];let i=s,o="";for(let s=0;s<t.length;s++){const e=t[s];if(void 0===e)continue;const n="object"==typeof e?e.key:e,a=Number(n);Array.isArray(i)&&!Number.isNaN(a)?o+=`[${a}]`:o+=(s>0?".":"")+String(n),i="object"==typeof i&&null!==i?i[n]:void 0}e.set(o,(e.get(o)??[]).concat(n))}return Object.fromEntries(e)}(t,s);return{form:e,fields:e}},s={validate({value:s,validationSource:e},n){const i=n["~standard"].validate(s);if(i instanceof Promise)throw new Error("async function passed to sync validator");if(i.issues)return"field"===e?i.issues:t(i.issues,s)},async validateAsync({value:s,validationSource:e},n){const i=await n["~standard"].validate(s);if(i.issues)return"field"===e?i.issues:t(i.issues,s)}},e=t=>!!t&&"~standard"in t;export{e as isStandardSchemaValidator,s as standardSchemaValidators};