@pawover/kit 0.0.0-beta.41 → 0.0.0-beta.43

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.
Files changed (44) hide show
  1. package/dist/enums.d.ts +1 -1
  2. package/dist/enums.js +144 -2
  3. package/dist/enums.js.map +1 -0
  4. package/dist/{except-MacUK44u.d.ts → except-6l9Qdmn1.d.ts} +53 -38
  5. package/dist/except-6l9Qdmn1.d.ts.map +1 -0
  6. package/dist/hooks-alova.d.ts.map +1 -1
  7. package/dist/hooks-alova.js +1 -4
  8. package/dist/hooks-alova.js.map +1 -1
  9. package/dist/hooks-react.d.ts +43 -12
  10. package/dist/hooks-react.d.ts.map +1 -1
  11. package/dist/hooks-react.js +52 -49
  12. package/dist/hooks-react.js.map +1 -1
  13. package/dist/{index-DBPmnr4a.d.ts → index-D0_YLsqN.d.ts} +2 -5
  14. package/dist/index-D0_YLsqN.d.ts.map +1 -0
  15. package/dist/index-JKtXbRi8.d.ts +149 -0
  16. package/dist/index-JKtXbRi8.d.ts.map +1 -0
  17. package/dist/index.d.ts +400 -111
  18. package/dist/index.d.ts.map +1 -1
  19. package/dist/index.js +2 -3
  20. package/dist/patches-fetchEventSource.d.ts +2 -2
  21. package/dist/patches-fetchEventSource.d.ts.map +1 -1
  22. package/dist/patches-fetchEventSource.js +2 -4
  23. package/dist/patches-fetchEventSource.js.map +1 -1
  24. package/dist/{utils-_dtCs-qa.js → utils-DvWLCdYR.js} +282 -356
  25. package/dist/utils-DvWLCdYR.js.map +1 -0
  26. package/dist/{value-of-DUmTbnuw.d.ts → value-of-Dz22arsm.d.ts} +2 -2
  27. package/dist/value-of-Dz22arsm.d.ts.map +1 -0
  28. package/dist/vite.d.ts +0 -1
  29. package/dist/vite.d.ts.map +1 -1
  30. package/dist/vite.js +2 -2
  31. package/dist/vite.js.map +1 -1
  32. package/dist/zod.d.ts.map +1 -1
  33. package/dist/zod.js +31 -69
  34. package/dist/zod.js.map +1 -1
  35. package/metadata.json +0 -3
  36. package/package.json +18 -12
  37. package/dist/enums-BL6w5-mS.js +0 -148
  38. package/dist/enums-BL6w5-mS.js.map +0 -1
  39. package/dist/except-MacUK44u.d.ts.map +0 -1
  40. package/dist/index-Bn_PNnsM.d.ts +0 -212
  41. package/dist/index-Bn_PNnsM.d.ts.map +0 -1
  42. package/dist/index-DBPmnr4a.d.ts.map +0 -1
  43. package/dist/utils-_dtCs-qa.js.map +0 -1
  44. package/dist/value-of-DUmTbnuw.d.ts.map +0 -1
package/dist/zod.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"zod.js","names":[],"sources":["../src/zod/primitive.ts","../src/zod/server.ts","../src/zod/validator/input.ts","../src/zod/validator/societal.ts"],"sourcesContent":["import { z } from \"zod\";\n\n/** 空 */\nexport const empty = z.union([z.null(), z.undefined()]);\n\n/** 字符串 */\nexport const string = z.string();\n/** 字符串-空 */\nexport const stringEmpty = z.literal(\"\").nullish();\n/** 字符串-非空 */\nexport const stringNoEmpty = z.string().min(1);\n/** 字符串-可空 */\nexport const stringAllowEmpty = z.string().nullish();\n\n/** 数字 */\nexport const number = z.number();\n/** 数字-可空 */\nexport const numberAllowEmpty = number.nullish();\n/** 整数 */\nexport const int = z.number().int({ error: \"应为整数\" });\n/** 整数-可空 */\nexport const intAllowEmpty = int.nullish();\n/** 自然数 */\nexport const natural = int.nonnegative({ error: \"应为非负数\" });\n/** 自然数-可空 */\nexport const naturalAllowEmpty = natural.nullish();\n\n/** 布尔值 */\nexport const boolean = z.boolean();\n/** 布尔值-可空 */\nexport const booleanAllowEmpty = z.boolean().nullish();\n\nexport const bigint = z.bigint();\n\nexport const symbol = z.symbol();\n\nexport const any = z.any();\n\nexport const unknown = z.unknown();\n\nexport const never = z.never();\n\nexport const propertyKey = z.union([string, number, symbol]);\n\nexport const anyObject = z.record(propertyKey, any);\n\nexport const plainObject = z.record(propertyKey, unknown);\n","import { z } from \"zod\";\n\nexport const id = z.union([z.string().min(1), z.number().int()]);\n\nexport const idAllowEmpty = id.nullish();\n","import { z } from \"zod\";\n\nconst _alphabet = /^[a-z]+$/i;\n/** 字母 */\nexport const alphabet = z.string().regex(_alphabet, { error: \"应为字母\" });\n\nconst _alphabetLowercase = /^[a-z]+$/;\n/** 小写字母 */\nexport const alphabetLowercase = z.string().regex(_alphabetLowercase, { error: \"应为小写字母\" });\n\nconst _alphabetUppercase = /^[A-Z]+$/;\n/** 大写字母 */\nexport const alphabetUppercase = z.string().regex(_alphabetUppercase, { error: \"应为大写字母\" });\n\nconst _alphabetOmit = /^[^A-Z]*$/i;\n/** 不包含字母 */\nexport const alphabetOmit = z.string().regex(_alphabetOmit, { error: \"应不包含字母\" });\n\nconst _numberAlphabet = /^[A-Z0-9]+$/i;\n/** 数字和字母 */\nexport const numberAlphabet = z.string().regex(_numberAlphabet, { error: \"应为数字和字母组合\" });\n\nconst _stringSignedDecimalismFloat = /^[+-]?(\\d+(\\.\\d+)?|\\.\\d+)$/;\n/** 有符号十进制浮点数字符串 */\nexport const stringSignedDecimalismFloat = z.string().regex(_stringSignedDecimalismFloat, { error: \"应为十进制数字\" });\n\nconst _stringUnsignedDecimalismFloat = /^\\+?(\\d+(\\.\\d+)?|\\.\\d+)$/;\n/** 无符号十进制浮点数字符串 */\nexport const stringUnsignedDecimalismFloat = z.string().regex(_stringUnsignedDecimalismFloat, { error: \"应为十进制正数\" });\n\nconst _stringSignedDecimalismInt = /^[+-]?\\d+$/;\n/** 有符号十进制整数字符串 */\nexport const stringSignedDecimalismInt = z.string().regex(_stringSignedDecimalismInt, { error: \"应为十进制整数\" });\n\nconst _stringUnsignedDecimalismInt = /^\\+?\\d+$/;\n/** 无符号十进制整数字符串 */\nexport const stringUnsignedDecimalismInt = z.string().regex(_stringUnsignedDecimalismInt, { error: \"应为十进制正整数\" });\n\nconst _spaceInclude = /^[^ ]+$/;\n/** 包含空格 */\nexport const spaceInclude = z.string().regex(_spaceInclude, { error: \"应不包含空格\" });\n\nconst _spaceStart = /^\\S/g;\n/** 首空格 */\nexport const spaceStart = z.string().regex(_spaceStart, { error: \"应不包含首空格\" });\n\nconst _spaceEnd = /\\s$/g;\n/** 尾空格 */\nexport const spaceEnd = z.string().regex(_spaceEnd, { error: \"应不包含尾空格\" });\n\n/** 首尾空格 */\nexport const spaceStartEnd = spaceStart.and(spaceEnd);\n","import { z } from \"zod\";\n\nconst _phone = /^1(3\\d|4[5-9]|5[0-35-9]|6[567]|7[0-8]|8\\d|9[0-35-9])\\d{8}$/;\n/** 手机号码 */\nexport const phone = z.string().regex(_phone, { error: \"手机号码格式错误\" });\n\nconst _telephone = /0\\d{2,3}-\\d{7,9}$/;\n/** 固定电话 */\nexport const telephone = z.string().regex(_telephone, { error: \"电话号码格式错误\" });\n\nconst _email = /^(([^<>()[\\]\\\\.,;:\\s@\"]+(\\.[^<>()[\\]\\\\.,;:\\s@\"]+)*)|(\".+\"))@((\\[\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\])|(([a-z\\-0-9]+\\.)+[a-z]{2,}))$/i;\n/** 电子邮箱 */\nexport const email = z.string().regex(_email, { error: \"电子邮箱格式错误\" });\n\nconst _chineseName = /^[一-龢][一·-龢]*$/;\n/** 中文姓名 */\nexport const chineseName = z.string().regex(_chineseName, { error: \"应为中文姓名\" });\n\n/** 手机机身码 */\nexport const IMEI = z.string().regex(/^\\d{15,17}$/, { error: \"手机机身码格式错误\" });\n\nconst _ID = /^\\d{6}((((((19|20)\\d{2})(0[13-9]|1[012])(0[1-9]|[12]\\d|30))|(((19|20)\\d{2})(0[13578]|1[02])31)|((19|20)\\d{2})02(0[1-9]|1\\d|2[0-8])|((((19|20)([13579][26]|[2468][048]|0[48]))|(2000))0229))\\d{3})|((((\\d{2})(0[13-9]|1[012])(0[1-9]|[12]\\d|30))|((\\d{2})(0[13578]|1[02])31)|((\\d{2})02(0[1-9]|1\\d|2[0-8]))|(([13579][26]|[2468][048]|0[048])0229))\\d{2}))([\\dX])$/i;\n/** 身份证号 */\nexport const ID = z.string().regex(_ID, { error: \"身份证号格式错误\" });\n\nconst _link = /^(((ht|f)tps?):\\/\\/)?(([\\w-]+(\\.[\\w-]+)*\\.[a-z]{2,6})|((\\d{1,3}\\.){3}\\d{1,3}))(:\\d+)?(\\/\\S*)?$/;\n/** 链接 */\nexport const link = z.string().regex(_link, { error: \"链接格式错误\" });\n\nconst _linkPort = /^((ht|f)tps?:\\/\\/)?[\\w-]+(\\.[\\w-]+)+:\\d{1,5}\\/?$/;\n/** 端口号网址 */\nexport const linkPort = z.string().regex(_linkPort, { error: \"网址格式错误\" });\n\nconst _USCC_S = /^[0-9A-HJ-NPQRTUWXY]{2}\\d{6}[0-9A-HJ-NPQRTUWXY]{10}$/;\n/** 统一社会信用代码 */\nexport const USCC_S = z.string().regex(_USCC_S, { error: \"统一社会信用代码格式错误\" });\n\nconst _USCC = /^[0-9A-HJ-NPQRTUWXY]{2}\\d{6}[0-9A-HJ-NPQRTUWXY]{10}$/;\n/** 统一社会信用代码 - 15位/18位/20位数字/字母 */\nexport const USCC = z.string().regex(_USCC, { error: \"统一社会信用代码格式错误\" });\n\nconst _thunder = /^thunderx?:\\/\\/[a-zA-Z\\d]+=$/;\n/** 迅雷链接 */\nexport const thunder = z.string().regex(_thunder, { error: \"迅雷链接格式错误\" });\n\nconst _dirPathWindows = /^[a-z]:\\\\(?:\\w+\\\\?)*$/i;\n/** windows 文件夹路径 */\nexport const dirPathWindows = z.string().regex(_dirPathWindows, { error: \"路径格式错误\" });\n\nconst _filePathWindows = /^[a-z]:\\\\(?:\\w+\\\\)*\\w+\\.\\w+$/i;\n/** windows 文件路径 */\nexport const filePathWindows = z.string().regex(_filePathWindows, { error: \"路径格式错误\" });\n\nconst _dirPathLinux = /^\\/(?:[^\\\\/\\s]+\\/)*$/;\n/** linux 文件夹路径 */\nexport const dirPathLinux = z.string().regex(_dirPathLinux, { error: \"路径格式错误\" });\n\nconst _filePathLinux = /^(\\/$|\\/(?:[^\\\\/\\s]+\\/)*[^\\\\/\\s]+$)/;\n/** linux 文件路径 */\nexport const filePathLinux = z.string().regex(_filePathLinux, { error: \"路径格式错误\" });\n\nconst _carCodeGreen = /^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领][A-HJ-NP-Z](([DF]((?![IO])[a-zA-Z0-9](?![IO]))\\d{4})|(\\d{5}[DF]))$/;\n/** 车牌号 新能源 */\nexport const carCodeGreen = z.string().regex(_carCodeGreen, { error: \"车牌号格式错误\" });\n\nconst _carCodeNotGreen = /^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领][A-HJ-NP-Z][A-HJ-NP-Z0-9]{4,5}[A-HJ-NP-Z0-9挂学警港澳]$/;\n/** 车牌号 非新能源 */\nexport const carCodeNotGreen = z.string().regex(_carCodeNotGreen, { error: \"车牌号格式错误\" });\n\nconst _chinaProvince = /^安徽|澳门|北京|重庆|福建|甘肃|广东|广西|贵州|海南|河北|河南|黑龙江|湖北|湖南|吉林|江苏|江西|辽宁|内蒙古|宁夏|青海|山东|山西|陕西|上海|四川|台湾|天津|西藏|香港|新疆|云南|浙江$/;\n/** 中国省份 */\nexport const chinaProvince = z.string().regex(_chinaProvince, { error: \"应为中国省份\" });\n\nconst _nation = /^汉族|蒙古族|回族|藏族|维吾尔族|苗族|彝族|壮族|布依族|朝鲜族|满族|侗族|瑶族|白族|土家族|哈尼族|哈萨克族|傣族|黎族|傈僳族|佤族|畲族|高山族|拉祜族|水族|东乡族|纳西族|景颇族|柯尔克孜族|土族|达斡尔族|仫佬族|羌族|布朗族|撒拉族|毛南族|仡佬族|锡伯族|阿昌族|普米族|塔吉克族|怒族|乌孜别克族|俄罗斯族|鄂温克族|德昂族|保安族|裕固族|京族|塔塔尔族|独龙族|鄂伦春族|赫哲族|门巴族|珞巴族|基诺族|其它未识别民族|外国人入中国籍$/;\n/** 民族 */\nexport const nation = z.string().regex(_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AAEvB,MAAa,gBAAgB,EAAE,QAAQ,CAAC,MAAM,gBAAgB,EAAE,OAAO,UAAU,CAAC;AAElF,MAAM,gBAAgB;;AAEtB,MAAa,eAAe,EAAE,QAAQ,CAAC,MAAM,eAAe,EAAE,OAAO,WAAW,CAAC;AAEjF,MAAM,mBAAmB;;AAEzB,MAAa,kBAAkB,EAAE,QAAQ,CAAC,MAAM,kBAAkB,EAAE,OAAO,WAAW,CAAC;AAEvF,MAAM,iBAAiB;;AAEvB,MAAa,gBAAgB,EAAE,QAAQ,CAAC,MAAM,gBAAgB,EAAE,OAAO,UAAU,CAAC;AAElF,MAAM,UAAU;;AAEhB,MAAa,SAAS,EAAE,QAAQ,CAAC,MAAM,SAAS,EAAE,OAAO,QAAQ,CAAC"}
1
+ {"version":3,"file":"zod.js","names":[],"sources":["../src/zod/primitive.ts","../src/zod/server.ts","../src/zod/validator/input.ts","../src/zod/validator/societal.ts"],"sourcesContent":["import { z } from \"zod\";\n\n/** 空 */\nexport const empty = z.union([z.null(), z.undefined()]);\n\n/** 字符串 */\nexport const string = z.string();\n/** 字符串-空 */\nexport const stringEmpty = z.literal(\"\").nullish();\n/** 字符串-非空 */\nexport const stringNoEmpty = z.string().min(1);\n/** 字符串-可空 */\nexport const stringAllowEmpty = z.string().nullish();\n\n/** 数字 */\nexport const number = z.number();\n/** 数字-可空 */\nexport const numberAllowEmpty = number.nullish();\n/** 整数 */\nexport const int = z.number().int({ error: \"应为整数\" });\n/** 整数-可空 */\nexport const intAllowEmpty = int.nullish();\n/** 自然数 */\nexport const natural = int.nonnegative({ error: \"应为非负数\" });\n/** 自然数-可空 */\nexport const naturalAllowEmpty = natural.nullish();\n\n/** 布尔值 */\nexport const boolean = z.boolean();\n/** 布尔值-可空 */\nexport const booleanAllowEmpty = z.boolean().nullish();\n\nexport const bigint = z.bigint();\n\nexport const symbol = z.symbol();\n\nexport const any = z.any();\n\nexport const unknown = z.unknown();\n\nexport const never = z.never();\n\nexport const propertyKey = z.union([string, number, symbol]);\n\nexport const anyObject = z.record(propertyKey, any);\n\nexport const plainObject = z.record(propertyKey, unknown);\n","import { z } from \"zod\";\n\nexport const id = z.union([z.string().min(1), z.number().int()]);\n\nexport const idAllowEmpty = id.nullish();\n","import { z } from \"zod\";\n\nconst _alphabet = /^[a-z]+$/i;\n/** 字母 */\nexport const alphabet = z.string().regex(_alphabet, { error: \"应为字母\" });\n\nconst _alphabetLowercase = /^[a-z]+$/;\n/** 小写字母 */\nexport const alphabetLowercase = z.string().regex(_alphabetLowercase, { error: \"应为小写字母\" });\n\nconst _alphabetUppercase = /^[A-Z]+$/;\n/** 大写字母 */\nexport const alphabetUppercase = z.string().regex(_alphabetUppercase, { error: \"应为大写字母\" });\n\nconst _alphabetOmit = /^[^A-Z]*$/i;\n/** 不包含字母 */\nexport const alphabetOmit = z.string().regex(_alphabetOmit, { error: \"应不包含字母\" });\n\nconst _numberAlphabet = /^[A-Z0-9]+$/i;\n/** 数字和字母 */\nexport const numberAlphabet = z.string().regex(_numberAlphabet, { error: \"应为数字和字母组合\" });\n\nconst _stringSignedDecimalismFloat = /^[+-]?(\\d+(\\.\\d+)?|\\.\\d+)$/;\n/** 有符号十进制浮点数字符串 */\nexport const stringSignedDecimalismFloat = z.string().regex(_stringSignedDecimalismFloat, { error: \"应为十进制数字\" });\n\nconst _stringUnsignedDecimalismFloat = /^\\+?(\\d+(\\.\\d+)?|\\.\\d+)$/;\n/** 无符号十进制浮点数字符串 */\nexport const stringUnsignedDecimalismFloat = z.string().regex(_stringUnsignedDecimalismFloat, { error: \"应为十进制正数\" });\n\nconst _stringSignedDecimalismInt = /^[+-]?\\d+$/;\n/** 有符号十进制整数字符串 */\nexport const stringSignedDecimalismInt = z.string().regex(_stringSignedDecimalismInt, { error: \"应为十进制整数\" });\n\nconst _stringUnsignedDecimalismInt = /^\\+?\\d+$/;\n/** 无符号十进制整数字符串 */\nexport const stringUnsignedDecimalismInt = z.string().regex(_stringUnsignedDecimalismInt, { error: \"应为十进制正整数\" });\n\nconst _spaceInclude = /^[^ ]+$/;\n/** 包含空格 */\nexport const spaceInclude = z.string().regex(_spaceInclude, { error: \"应不包含空格\" });\n\nconst _spaceStart = /^\\S/g;\n/** 首空格 */\nexport const spaceStart = z.string().regex(_spaceStart, { error: \"应不包含首空格\" });\n\nconst _spaceEnd = /\\s$/g;\n/** 尾空格 */\nexport const spaceEnd = z.string().regex(_spaceEnd, { error: \"应不包含尾空格\" });\n\n/** 首尾空格 */\nexport const spaceStartEnd = spaceStart.and(spaceEnd);\n","import { z } from \"zod\";\n\nconst _phone = /^1(3\\d|4[5-9]|5[0-35-9]|6[567]|7[0-8]|8\\d|9[0-35-9])\\d{8}$/;\n/** 手机号码 */\nexport const phone = z.string().regex(_phone, { error: \"手机号码格式错误\" });\n\nconst _telephone = /0\\d{2,3}-\\d{7,9}$/;\n/** 固定电话 */\nexport const telephone = z.string().regex(_telephone, { error: \"电话号码格式错误\" });\n\nconst _email = /^(([^<>()[\\]\\\\.,;:\\s@\"]+(\\.[^<>()[\\]\\\\.,;:\\s@\"]+)*)|(\".+\"))@((\\[\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\])|(([a-z\\-0-9]+\\.)+[a-z]{2,}))$/i;\n/** 电子邮箱 */\nexport const email = z.string().regex(_email, { error: \"电子邮箱格式错误\" });\n\nconst _chineseName = /^[一-龢][一·-龢]*$/;\n/** 中文姓名 */\nexport const chineseName = z.string().regex(_chineseName, { error: \"应为中文姓名\" });\n\n/** 手机机身码 */\nexport const IMEI = z.string().regex(/^\\d{15,17}$/, { error: \"手机机身码格式错误\" });\n\nconst _ID = /^\\d{6}((((((19|20)\\d{2})(0[13-9]|1[012])(0[1-9]|[12]\\d|30))|(((19|20)\\d{2})(0[13578]|1[02])31)|((19|20)\\d{2})02(0[1-9]|1\\d|2[0-8])|((((19|20)([13579][26]|[2468][048]|0[48]))|(2000))0229))\\d{3})|((((\\d{2})(0[13-9]|1[012])(0[1-9]|[12]\\d|30))|((\\d{2})(0[13578]|1[02])31)|((\\d{2})02(0[1-9]|1\\d|2[0-8]))|(([13579][26]|[2468][048]|0[048])0229))\\d{2}))([\\dX])$/i;\n/** 身份证号 */\nexport const ID = z.string().regex(_ID, { error: \"身份证号格式错误\" });\n\nconst _link = /^(((ht|f)tps?):\\/\\/)?(([\\w-]+(\\.[\\w-]+)*\\.[a-z]{2,6})|((\\d{1,3}\\.){3}\\d{1,3}))(:\\d+)?(\\/\\S*)?$/;\n/** 链接 */\nexport const link = z.string().regex(_link, { error: \"链接格式错误\" });\n\nconst _linkPort = /^((ht|f)tps?:\\/\\/)?[\\w-]+(\\.[\\w-]+)+:\\d{1,5}\\/?$/;\n/** 端口号网址 */\nexport const linkPort = z.string().regex(_linkPort, { error: \"网址格式错误\" });\n\nconst _USCC_S = /^[0-9A-HJ-NPQRTUWXY]{2}\\d{6}[0-9A-HJ-NPQRTUWXY]{10}$/;\n/** 统一社会信用代码 */\nexport const USCC_S = z.string().regex(_USCC_S, { error: \"统一社会信用代码格式错误\" });\n\nconst _USCC = /^[0-9A-HJ-NPQRTUWXY]{2}\\d{6}[0-9A-HJ-NPQRTUWXY]{10}$/;\n/** 统一社会信用代码 - 15位/18位/20位数字/字母 */\nexport const USCC = z.string().regex(_USCC, { error: \"统一社会信用代码格式错误\" });\n\nconst _thunder = /^thunderx?:\\/\\/[a-zA-Z\\d]+=$/;\n/** 迅雷链接 */\nexport const thunder = z.string().regex(_thunder, { error: \"迅雷链接格式错误\" });\n\nconst _dirPathWindows = /^[a-z]:\\\\(?:\\w+\\\\?)*$/i;\n/** windows 文件夹路径 */\nexport const dirPathWindows = z.string().regex(_dirPathWindows, { error: \"路径格式错误\" });\n\nconst _filePathWindows = /^[a-z]:\\\\(?:\\w+\\\\)*\\w+\\.\\w+$/i;\n/** windows 文件路径 */\nexport const filePathWindows = z.string().regex(_filePathWindows, { error: \"路径格式错误\" });\n\nconst _dirPathLinux = /^\\/(?:[^\\\\/\\s]+\\/)*$/;\n/** linux 文件夹路径 */\nexport const dirPathLinux = z.string().regex(_dirPathLinux, { error: \"路径格式错误\" });\n\nconst _filePathLinux = /^(\\/$|\\/(?:[^\\\\/\\s]+\\/)*[^\\\\/\\s]+$)/;\n/** linux 文件路径 */\nexport const filePathLinux = z.string().regex(_filePathLinux, { error: \"路径格式错误\" });\n\nconst _carCodeGreen = /^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领][A-HJ-NP-Z](([DF]((?![IO])[a-zA-Z0-9](?![IO]))\\d{4})|(\\d{5}[DF]))$/;\n/** 车牌号 新能源 */\nexport const carCodeGreen = z.string().regex(_carCodeGreen, { error: \"车牌号格式错误\" });\n\nconst _carCodeNotGreen = /^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领][A-HJ-NP-Z][A-HJ-NP-Z0-9]{4,5}[A-HJ-NP-Z0-9挂学警港澳]$/;\n/** 车牌号 非新能源 */\nexport const carCodeNotGreen = z.string().regex(_carCodeNotGreen, { error: \"车牌号格式错误\" });\n\nconst _chinaProvince = /^安徽|澳门|北京|重庆|福建|甘肃|广东|广西|贵州|海南|河北|河南|黑龙江|湖北|湖南|吉林|江苏|江西|辽宁|内蒙古|宁夏|青海|山东|山西|陕西|上海|四川|台湾|天津|西藏|香港|新疆|云南|浙江$/;\n/** 中国省份 */\nexport const chinaProvince = z.string().regex(_chinaProvince, { error: \"应为中国省份\" });\n\nconst _nation = /^汉族|蒙古族|回族|藏族|维吾尔族|苗族|彝族|壮族|布依族|朝鲜族|满族|侗族|瑶族|白族|土家族|哈尼族|哈萨克族|傣族|黎族|傈僳族|佤族|畲族|高山族|拉祜族|水族|东乡族|纳西族|景颇族|柯尔克孜族|土族|达斡尔族|仫佬族|羌族|布朗族|撒拉族|毛南族|仡佬族|锡伯族|阿昌族|普米族|塔吉克族|怒族|乌孜别克族|俄罗斯族|鄂温克族|德昂族|保安族|裕固族|京族|塔塔尔族|独龙族|鄂伦春族|赫哲族|门巴族|珞巴族|基诺族|其它未识别民族|外国人入中国籍$/;\n/** 民族 */\nexport const nation = z.string().regex(_nation, { error: \"应为民族\" });\n"],"mappings":";;;AAGA,MAAa,QAAQ,EAAE,MAAM,CAAC,EAAE,MAAM,EAAE,EAAE,WAAW,CAAC,CAAC;;AAGvD,MAAa,SAAS,EAAE,QAAQ;;AAEhC,MAAa,cAAc,EAAE,QAAQ,GAAG,CAAC,SAAS;;AAElD,MAAa,gBAAgB,EAAE,QAAQ,CAAC,IAAI,EAAE;;AAE9C,MAAa,mBAAmB,EAAE,QAAQ,CAAC,SAAS;;AAGpD,MAAa,SAAS,EAAE,QAAQ;;AAEhC,MAAa,mBAAmB,OAAO,SAAS;;AAEhD,MAAa,MAAM,EAAE,QAAQ,CAAC,IAAI,EAAE,OAAO,QAAQ,CAAC;;AAEpD,MAAa,gBAAgB,IAAI,SAAS;;AAE1C,MAAa,UAAU,IAAI,YAAY,EAAE,OAAO,SAAS,CAAC;;AAE1D,MAAa,oBAAoB,QAAQ,SAAS;;AAGlD,MAAa,UAAU,EAAE,SAAS;;AAElC,MAAa,oBAAoB,EAAE,SAAS,CAAC,SAAS;AAEtD,MAAa,SAAS,EAAE,QAAQ;AAEhC,MAAa,SAAS,EAAE,QAAQ;AAEhC,MAAa,MAAM,EAAE,KAAK;AAE1B,MAAa,UAAU,EAAE,SAAS;AAElC,MAAa,QAAQ,EAAE,OAAO;AAE9B,MAAa,cAAc,EAAE,MAAM;CAAC;CAAQ;CAAQ;CAAO,CAAC;AAE5D,MAAa,YAAY,EAAE,OAAO,aAAa,IAAI;AAEnD,MAAa,cAAc,EAAE,OAAO,aAAa,QAAQ;;;AC5CzD,MAAa,KAAK,EAAE,MAAM,CAAC,EAAE,QAAQ,CAAC,IAAI,EAAE,EAAE,EAAE,QAAQ,CAAC,KAAK,CAAC,CAAC;AAEhE,MAAa,eAAe,GAAG,SAAS;;ACAxC,MAA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CAAC,MAFjB,8OAEgC,EAAE,OAAO,QAAQ,CAAC"}
package/metadata.json CHANGED
@@ -16,9 +16,6 @@
16
16
  "arrayUnzip",
17
17
  "arrayZip",
18
18
  "arrayZipToObject",
19
- "clone",
20
- "cloneDeep",
21
- "cloneDeepWith",
22
19
  "enumEntries",
23
20
  "enumKeys",
24
21
  "enumValues",
package/package.json CHANGED
@@ -4,8 +4,12 @@
4
4
  "description": "pawover's kit",
5
5
  "license": "MIT",
6
6
  "type": "module",
7
- "version": "0.0.0-beta.41",
7
+ "version": "0.0.0-beta.43",
8
8
  "packageManager": "pnpm@10.28.2",
9
+ "publishConfig": {
10
+ "access": "public",
11
+ "tag": "beta"
12
+ },
9
13
  "engines": {
10
14
  "node": ">=22.20.0"
11
15
  },
@@ -16,7 +20,7 @@
16
20
  "homepage": "https://github.com/pawover/pawover-kit#readme",
17
21
  "repository": {
18
22
  "type": "git",
19
- "url": "https://github.com/pawover/pawover-kit.git"
23
+ "url": "git+https://github.com/pawover/pawover-kit.git"
20
24
  },
21
25
  "main": "./dist/index.js",
22
26
  "module": "./dist/index.js",
@@ -40,7 +44,7 @@
40
44
  "test": "vitest",
41
45
  "build": "tsdown && pnpm build:metadata",
42
46
  "build:metadata": "node scripts/metadata.ts",
43
- "public": "pnpm build && npm publish --access public",
47
+ "public": "pnpm build && npm publish",
44
48
  "check": "pnpm check:types & pnpm check:eslint & pnpm check:format",
45
49
  "check:types": "tsc --noEmit",
46
50
  "check:eslint": "eslint --fix \"**/*.{js,cjs,mjs,ts,cts,mts,jsx,tsx,vue}\" --cache-location=.cache/eslint.cache.json --cache",
@@ -54,7 +58,6 @@
54
58
  },
55
59
  "dependencies": {
56
60
  "alova": "^3.5.1",
57
- "lodash-es": "^4.17.23",
58
61
  "mathjs": "^15.1.1",
59
62
  "react": "^19.2.4",
60
63
  "vite": "^7.3.1",
@@ -67,25 +70,28 @@
67
70
  "@pawover/types": "^0.0.0-alpha.11",
68
71
  "@stylistic/eslint-plugin": "^5.10.0",
69
72
  "@types/fs-extra": "^11.0.4",
70
- "@types/lodash-es": "^4.17.12",
71
73
  "@types/node": "^25.5.0",
72
74
  "@types/react": "^19.2.14",
73
- "eslint": "^10.0.3",
75
+ "@vitejs/plugin-react": "^5.2.0",
76
+ "@vitest/browser-playwright": "^4.1.1",
77
+ "eslint": "^10.1.0",
74
78
  "eslint-plugin-antfu": "^3.2.2",
75
79
  "eslint-plugin-react-hooks": "^7.0.1",
76
80
  "fs-extra": "^11.3.4",
77
- "jsdom": "^29.0.0",
81
+ "jsdom": "^29.0.1",
78
82
  "prettier": "^3.8.1",
79
83
  "radashi": "^12.7.2",
84
+ "react-dom": "^19.2.4",
80
85
  "rimraf": "^6.1.3",
81
86
  "taze": "^19.10.0",
82
87
  "ts-toolbelt": "^9.6.0",
83
- "tsdown": "^0.17.4",
84
- "type-fest": "^5.4.4",
88
+ "tsdown": "^0.21.4",
89
+ "type-fest": "^5.5.0",
85
90
  "typescript": "^5.9.3",
86
- "typescript-eslint": "^8.57.0",
87
- "vitest": "^4.1.0",
88
- "vue-tsc": "^3.2.5"
91
+ "typescript-eslint": "^8.57.2",
92
+ "vitest": "^4.1.1",
93
+ "vitest-browser-react": "^2.1.0",
94
+ "vue-tsc": "^3.2.6"
89
95
  },
90
96
  "peerDependencies": {
91
97
  "alova": ">=3.3.0",
@@ -1,148 +0,0 @@
1
- //#region src/enums/date.ts
2
- const DATE_FORMAT = {
3
- ISO_DATE: "yyyy-MM-dd",
4
- ISO_TIME: "HH:mm:ss",
5
- ISO_DATE_TIME: "yyyy-MM-dd HH:mm:ss",
6
- ISO_DATE_TIME_MS: "yyyy-MM-dd HH:mm:ss.SSS",
7
- ISO_DATETIME_TZ: "yyyy-MM-dd'T'HH:mm:ssXXX",
8
- ISO_DATETIME_TZ_MS: "yyyy-MM-dd'T'HH:mm:ss.SSSXXX",
9
- US_DATE: "MM/dd/yyyy",
10
- US_DATE_TIME: "MM/dd/yyyy HH:mm:ss",
11
- US_DATE_SHORT_YEAR: "MM/dd/yy",
12
- EU_DATE: "dd/MM/yyyy",
13
- EU_DATE_TIME: "dd/MM/yyyy HH:mm:ss",
14
- CN_DATE: "yyyy年MM月dd日",
15
- CN_DATE_TIME: "yyyy年MM月dd日 HH时mm分ss秒",
16
- CN_DATE_WEEKDAY: "yyyy年MM月dd日 EEE",
17
- CN_WEEKDAY_FULL: "EEEE",
18
- SHORT_DATE: "yy-MM-dd",
19
- SHORT_DATE_SLASH: "yy/MM/dd",
20
- MONTH_DAY: "MM-dd",
21
- MONTH_DAY_CN: "MM月dd日",
22
- DATE_WITH_WEEKDAY_SHORT: "yyyy-MM-dd (EEE)",
23
- DATE_WITH_WEEKDAY_FULL: "yyyy-MM-dd (EEEE)",
24
- TIME_24: "HH:mm:ss",
25
- TIME_24_NO_SEC: "HH:mm",
26
- TIME_12: "hh:mm:ss a",
27
- TIME_12_NO_SEC: "hh:mm a",
28
- TIMESTAMP: "yyyyMMddHHmmss",
29
- TIMESTAMP_MS: "yyyyMMddHHmmssSSS",
30
- RFC2822: "EEE, dd MMM yyyy HH:mm:ss xxx",
31
- READABLE_DATE: "MMM dd, yyyy",
32
- READABLE_DATE_TIME: "MMM dd, yyyy HH:mm",
33
- COMPACT_DATETIME: "yyyyMMdd_HHmmss"
34
- };
35
-
36
- //#endregion
37
- //#region src/enums/grid.ts
38
- /** 屏幕响应断点 token 配置 */
39
- const BREAK_POINT_TOKEN_ENUM = {
40
- XS: 480,
41
- XSMax: 575,
42
- XSMin: 480,
43
- SM: 576,
44
- SMMax: 767,
45
- SMMin: 576,
46
- MD: 768,
47
- MDMax: 991,
48
- MDMin: 768,
49
- LG: 992,
50
- LGMax: 1199,
51
- LGMin: 992,
52
- XL: 1200,
53
- XLMax: 1599,
54
- XLMin: 1200,
55
- XXL: 1600,
56
- XXLMax: 1919,
57
- XXLMin: 1600,
58
- XXXL: 1920,
59
- XXXLMin: 1920
60
- };
61
-
62
- //#endregion
63
- //#region src/enums/mime.ts
64
- /**
65
- * 标准 MIME 类型常量,用于文件类型标识和 HTTP Content-Type 头部
66
- * 基于 IANA 注册标准和浏览器兼容性验证
67
- */
68
- const MIME = {
69
- TEXT: "text/plain",
70
- HTML: "text/html",
71
- CSS: "text/css",
72
- CSV: "text/csv",
73
- TSV: "text/tab-separated-values",
74
- XML: "text/xml",
75
- XHTML: "application/xhtml+xml",
76
- JS: "text/javascript",
77
- MARKDOWN: "text/markdown",
78
- RTF: "application/rtf",
79
- CALENDAR: "text/calendar",
80
- JPEG: "image/jpeg",
81
- PNG: "image/png",
82
- GIF: "image/gif",
83
- BMP: "image/bmp",
84
- SVG: "image/svg+xml",
85
- APNG: "image/apng",
86
- AVIF: "image/avif",
87
- ICO: "image/vnd.microsoft.icon",
88
- WEBP: "image/webp",
89
- MP3: "audio/mpeg",
90
- AAC: "audio/aac",
91
- MIDI: "audio/midi",
92
- OGG_AUDIO: "audio/ogg",
93
- OPUS: "audio/opus",
94
- WAV: "audio/wav",
95
- REAL_AUDIO: "audio/x-pn-realaudio",
96
- MP4: "video/mp4",
97
- MPEG: "video/mpeg",
98
- OGG_VIDEO: "video/ogg",
99
- AVI: "video/x-msvideo",
100
- THREE_GPP: "video/3gpp",
101
- THREE_GPP2: "video/3gpp2",
102
- WEBM: "video/webm",
103
- PDF: "application/pdf",
104
- DOC: "application/msword",
105
- DOCX: "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
106
- XLSX: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
107
- XLSM: "application/vnd.ms-excel.sheet.macroEnabled.12",
108
- XLTX: "application/vnd.openxmlformats-officedocument.spreadsheetml.template",
109
- PPTX: "application/vnd.openxmlformats-officedocument.presentationml.presentation",
110
- PPT: "application/vnd.ms-powerpoint",
111
- ODT: "application/vnd.oasis.opendocument.text",
112
- ODS: "application/vnd.oasis.opendocument.spreadsheet",
113
- ODP: "application/vnd.oasis.opendocument.presentation",
114
- EPUB: "application/epub+zip",
115
- AZW: "application/vnd.amazon.ebook",
116
- ZIP: "application/zip",
117
- GZIP: "application/gzip",
118
- X_GZIP: "application/x-gzip",
119
- TAR: "application/x-tar",
120
- BZIP: "application/x-bzip",
121
- BZIP2: "application/x-bzip2",
122
- SEVEN_Z: "application/x-7z-compressed",
123
- OCTET_STREAM: "application/octet-stream",
124
- JSON: "application/json",
125
- LD_JSON: "application/ld+json",
126
- JAR: "application/java-archive",
127
- EOT: "application/vnd.ms-fontobject",
128
- OTF: "font/otf",
129
- XLS: "application/vnd.ms-excel",
130
- XPS: "application/vnd.ms-xpsdocument",
131
- DOCM: "application/vnd.ms-word.document.macroEnabled.12"
132
- };
133
-
134
- //#endregion
135
- //#region src/enums/theme.ts
136
- const THEME_ENUM = {
137
- LIGHT: "light",
138
- DARK: "dark"
139
- };
140
- const THEME_MODE_ENUM = {
141
- LIGHT: "light",
142
- DARK: "dark",
143
- SYSTEM: "system"
144
- };
145
-
146
- //#endregion
147
- export { DATE_FORMAT as a, BREAK_POINT_TOKEN_ENUM as i, THEME_MODE_ENUM as n, MIME as r, THEME_ENUM as t };
148
- //# sourceMappingURL=enums-BL6w5-mS.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"enums-BL6w5-mS.js","names":[],"sources":["../src/enums/date.ts","../src/enums/grid.ts","../src/enums/mime.ts","../src/enums/theme.ts"],"sourcesContent":["export const DATE_FORMAT = {\n // ISO 8601\n ISO_DATE: \"yyyy-MM-dd\",\n ISO_TIME: \"HH:mm:ss\",\n ISO_DATE_TIME: \"yyyy-MM-dd HH:mm:ss\",\n ISO_DATE_TIME_MS: \"yyyy-MM-dd HH:mm:ss.SSS\",\n ISO_DATETIME_TZ: \"yyyy-MM-dd'T'HH:mm:ssXXX\",\n ISO_DATETIME_TZ_MS: \"yyyy-MM-dd'T'HH:mm:ss.SSSXXX\",\n\n // US\n US_DATE: \"MM/dd/yyyy\",\n US_DATE_TIME: \"MM/dd/yyyy HH:mm:ss\",\n US_DATE_SHORT_YEAR: \"MM/dd/yy\",\n\n // EU\n EU_DATE: \"dd/MM/yyyy\",\n EU_DATE_TIME: \"dd/MM/yyyy HH:mm:ss\",\n\n // CN\n CN_DATE: \"yyyy年MM月dd日\",\n CN_DATE_TIME: \"yyyy年MM月dd日 HH时mm分ss秒\",\n CN_DATE_WEEKDAY: \"yyyy年MM月dd日 EEE\",\n CN_WEEKDAY_FULL: \"EEEE\",\n\n // 简洁\n SHORT_DATE: \"yy-MM-dd\",\n SHORT_DATE_SLASH: \"yy/MM/dd\",\n MONTH_DAY: \"MM-dd\",\n MONTH_DAY_CN: \"MM月dd日\",\n\n // 带星期\n DATE_WITH_WEEKDAY_SHORT: \"yyyy-MM-dd (EEE)\",\n DATE_WITH_WEEKDAY_FULL: \"yyyy-MM-dd (EEEE)\",\n\n // 时间\n TIME_24: \"HH:mm:ss\",\n TIME_24_NO_SEC: \"HH:mm\",\n TIME_12: \"hh:mm:ss a\",\n TIME_12_NO_SEC: \"hh:mm a\",\n\n // 时间戳\n TIMESTAMP: \"yyyyMMddHHmmss\",\n TIMESTAMP_MS: \"yyyyMMddHHmmssSSS\",\n\n // RFC\n RFC2822: \"EEE, dd MMM yyyy HH:mm:ss xxx\",\n\n // 其他\n READABLE_DATE: \"MMM dd, yyyy\",\n READABLE_DATE_TIME: \"MMM dd, yyyy HH:mm\",\n COMPACT_DATETIME: \"yyyyMMdd_HHmmss\",\n} as const;\n","export type BREAK_POINT_TOKEN_TYPE = Record<keyof typeof BREAK_POINT_TOKEN_ENUM, number>;\n/** 屏幕响应断点 token 配置 */\nexport const BREAK_POINT_TOKEN_ENUM = {\n XS: 480,\n XSMax: 575,\n XSMin: 480,\n\n SM: 576,\n SMMax: 767,\n SMMin: 576,\n\n MD: 768,\n MDMax: 991,\n MDMin: 768,\n\n LG: 992,\n LGMax: 1199,\n LGMin: 992,\n\n XL: 1200,\n XLMax: 1599,\n XLMin: 1200,\n\n XXL: 1600,\n XXLMax: 1919,\n XXLMin: 1600,\n\n XXXL: 1920,\n XXXLMin: 1920,\n} as const;\n","/**\n * 标准 MIME 类型常量,用于文件类型标识和 HTTP Content-Type 头部\n * 基于 IANA 注册标准和浏览器兼容性验证\n */\nexport const MIME = {\n /** 普通文本文件 */\n TEXT: \"text/plain\",\n /** 超文本标记语言文档 */\n HTML: \"text/html\",\n /** 层叠样式表文件 */\n CSS: \"text/css\",\n /** 逗号分隔值文件(表格数据) */\n CSV: \"text/csv\",\n /** 制表符分隔值文件 */\n TSV: \"text/tab-separated-values\",\n /** XML 文档 */\n XML: \"text/xml\",\n /** XHTML 文档(XML 严格格式的 HTML) */\n XHTML: \"application/xhtml+xml\",\n /** JavaScript 脚本文件(标准推荐) */\n JS: \"text/javascript\",\n /** Markdown 格式文档 */\n MARKDOWN: \"text/markdown\",\n /** 富文本格式文档(.rtf) */\n RTF: \"application/rtf\",\n /** iCalendar 日历格式(.ics) */\n CALENDAR: \"text/calendar\",\n /** JPEG 图像(.jpg/.jpeg) */\n JPEG: \"image/jpeg\",\n /** PNG 图像(无损压缩,支持透明) */\n PNG: \"image/png\",\n /** GIF 图像(支持动画) */\n GIF: \"image/gif\",\n /** Windows 位图(.bmp) */\n BMP: \"image/bmp\",\n /** SVG 向量图形(.svg) */\n SVG: \"image/svg+xml\",\n /** APNG 动态图像(.apng) */\n APNG: \"image/apng\",\n /** AVIF 图像(高效压缩) */\n AVIF: \"image/avif\",\n /** 图标文件格式(.ico) */\n ICO: \"image/vnd.microsoft.icon\",\n /** WebP 图像(高效压缩) */\n WEBP: \"image/webp\",\n /** MP3 音频(.mp3) */\n MP3: \"audio/mpeg\",\n /** AAC 音频(.aac) */\n AAC: \"audio/aac\",\n /** MIDI 音乐文件(.mid/.midi) */\n MIDI: \"audio/midi\",\n /** OGG 音频(.oga) */\n OGG_AUDIO: \"audio/ogg\",\n /** Opus 音频(.opus) */\n OPUS: \"audio/opus\",\n /** WAV 音频(.wav) */\n WAV: \"audio/wav\",\n /** RealAudio 音频(.ra/.ram) */\n REAL_AUDIO: \"audio/x-pn-realaudio\",\n /** MP4 视频(.mp4) */\n MP4: \"video/mp4\",\n /** MPEG 视频(.mpeg/.mpg) */\n MPEG: \"video/mpeg\",\n /** OGG 视频(.ogv) */\n OGG_VIDEO: \"video/ogg\",\n /** AVI 视频(.avi) */\n AVI: \"video/x-msvideo\",\n /** 3GPP 视频(.3gp) */\n THREE_GPP: \"video/3gpp\",\n /** 3GPP2 视频(.3g2) */\n THREE_GPP2: \"video/3gpp2\",\n /** WebM 视频(.webm) */\n WEBM: \"video/webm\",\n /** PDF 文档 */\n PDF: \"application/pdf\",\n /** Word 97-2003 文档(.doc) */\n DOC: \"application/msword\",\n /** Word 2007+ 文档(.docx) */\n DOCX: \"application/vnd.openxmlformats-officedocument.wordprocessingml.document\",\n /** Excel 2007+ 工作簿(.xlsx) */\n XLSX: \"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet\",\n /** 启用宏的Excel工作簿(.xlsm) */\n XLSM: \"application/vnd.ms-excel.sheet.macroEnabled.12\",\n /** Excel模板文件(.xltx) */\n XLTX: \"application/vnd.openxmlformats-officedocument.spreadsheetml.template\",\n /** PowerPoint 2007+ 演示文稿(.pptx) */\n PPTX: \"application/vnd.openxmlformats-officedocument.presentationml.presentation\",\n /** PowerPoint 97-2003 演示文稿(.ppt) */\n PPT: \"application/vnd.ms-powerpoint\",\n /** OpenDocument 文本文档(.odt) */\n ODT: \"application/vnd.oasis.opendocument.text\",\n /** OpenDocument 表格文档(.ods) */\n ODS: \"application/vnd.oasis.opendocument.spreadsheet\",\n /** OpenDocument 演示文稿(.odp) */\n ODP: \"application/vnd.oasis.opendocument.presentation\",\n /** EPUB 电子书(.epub) */\n EPUB: \"application/epub+zip\",\n /** Kindle 电子书(.azw) */\n AZW: \"application/vnd.amazon.ebook\",\n /** ZIP 压缩文件(.zip) */\n ZIP: \"application/zip\",\n /** GZIP 压缩文件(.gz) */\n GZIP: \"application/gzip\",\n /** GZIP 压缩文件(旧格式) */\n X_GZIP: \"application/x-gzip\",\n /** TAR 归档文件(.tar) */\n TAR: \"application/x-tar\",\n /** BZip 归档(.bz) */\n BZIP: \"application/x-bzip\",\n /** BZip2 归档(.bz2) */\n BZIP2: \"application/x-bzip2\",\n /** 7-Zip 压缩文件(.7z) */\n SEVEN_Z: \"application/x-7z-compressed\",\n /** 通用二进制数据(默认类型) */\n OCTET_STREAM: \"application/octet-stream\",\n /** JSON 数据格式(.json) */\n JSON: \"application/json\",\n /** JSON-LD 格式(.jsonld) */\n LD_JSON: \"application/ld+json\",\n /** Java 归档文件(.jar) */\n JAR: \"application/java-archive\",\n /** MS 嵌入式 OpenType 字体(.eot) */\n EOT: \"application/vnd.ms-fontobject\",\n /** OpenType 字体(.otf) */\n OTF: \"font/otf\",\n /** Excel 97-2003 工作簿(.xls) */\n XLS: \"application/vnd.ms-excel\",\n /** Microsoft XPS 文档(.xps) */\n XPS: \"application/vnd.ms-xpsdocument\",\n /** Word 启用宏文档(.docm) */\n DOCM: \"application/vnd.ms-word.document.macroEnabled.12\",\n} as const;\n","import type { ValueOf } from \"type-fest\";\n\nexport type THEME_TYPE = ValueOf<typeof THEME_ENUM>;\nexport const THEME_ENUM = {\n LIGHT: \"light\",\n DARK: \"dark\",\n} as const;\n\nexport type THEME_MODE_TYPE = ValueOf<typeof THEME_MODE_ENUM>;\nexport const THEME_MODE_ENUM = {\n LIGHT: \"light\",\n DARK: \"dark\",\n SYSTEM: \"system\",\n} as const;\n"],"mappings":";AAAA,MAAa,cAAc;CAEzB,UAAU;CACV,UAAU;CACV,eAAe;CACf,kBAAkB;CAClB,iBAAiB;CACjB,oBAAoB;CAGpB,SAAS;CACT,cAAc;CACd,oBAAoB;CAGpB,SAAS;CACT,cAAc;CAGd,SAAS;CACT,cAAc;CACd,iBAAiB;CACjB,iBAAiB;CAGjB,YAAY;CACZ,kBAAkB;CAClB,WAAW;CACX,cAAc;CAGd,yBAAyB;CACzB,wBAAwB;CAGxB,SAAS;CACT,gBAAgB;CAChB,SAAS;CACT,gBAAgB;CAGhB,WAAW;CACX,cAA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1 +0,0 @@
1
- {"version":3,"file":"except-MacUK44u.d.ts","names":["UnionToIntersection","Union","Intersection","UnionToIntersection","KeysOfUnion","ObjectType","Record","IsAny","T","NoInfer","IsAny","IsOptionalKeyOf","Type","Key","Record","IsOptionalKeyOf","OptionalKeysOf","Type","Key","OptionalKeysOf","RequiredKeysOf","Type","Exclude","IsNever","T","IsNever","If","Type","IfBranch","ElseBranch","UnknownArray","If","IsAny","IsNever","Primitive","UnknownArray","BuiltIns","Date","RegExp","NonRecursiveType","Function","Promise","MapsSetsOrArrays","ReadonlyMap","WeakKey","WeakMap","ReadonlySet","WeakSet","IsBothExtends","BaseType","FirstType","SecondType","HasMultipleCallSignatures","T","IsNotFalse","IsPrimitive","Not","A","IfNotAnyOrNever","IfAny","IfNever","IsAnyOrNever","IsExactOptionalPropertyTypesEnabled","Simplify","T","KeyType","IsNever","IsEqual","A","B","_IsEqual","G","OmitIndexSignature","ObjectType","KeyType","Record","PickIndexSignature","ObjectType","KeyType","Record","OmitIndexSignature","PickIndexSignature","Simplify","If","IsEqual","SimpleMerge","Destination","Source","Key","Merge","_Merge","Simplify","IsEqual","KeysOfUnion","RequiredKeysOf","Merge","OptionalKeysOf","IsAny","If","IsNever","FilterDefinedKeys","FilterOptionalKeys","MapsSetsOrArrays","NonRecursiveType","StringToNumber","ToString","BuildObject","Key","Value","CopiedFrom","PropertyKey","Pick","NumberKey","IsPlainObject","T","ObjectValue","K","NumberK","UndefinedToOptional","Exclude","HomomorphicPick","Keys","P","Extract","ValueOfUnion","Union","ReadonlyKeysOfUnion","ApplyDefaultOptions","Options","Defaults","SpecifiedOptions","Required","Omit","Record","Partial","CollapseLiterals","NormalizedKeys","ApplyDefaultOptions","IsEqual","Filter","KeyType","ExcludeType","ExceptOptions","DefaultExceptOptions","Except","ObjectType","KeysType","Options","_Except","Required","Record","Partial"],"sources":["../node_modules/.pnpm/type-fest@5.4.4/node_modules/type-fest/source/union-to-intersection.d.ts","../node_modules/.pnpm/type-fest@5.4.4/node_modules/type-fest/source/keys-of-union.d.ts","../node_modules/.pnpm/type-fest@5.4.4/node_modules/type-fest/source/is-any.d.ts","../node_modules/.pnpm/type-fest@5.4.4/node_modules/type-fest/source/is-optional-key-of.d.ts","../node_modules/.pnpm/type-fest@5.4.4/node_modules/type-fest/source/optional-keys-of.d.ts","../node_modules/.pnpm/type-fest@5.4.4/node_modules/type-fest/source/required-keys-of.d.ts","../node_modules/.pnpm/type-fest@5.4.4/node_modules/type-fest/source/is-never.d.ts","../node_modules/.pnpm/type-fest@5.4.4/node_modules/type-fest/source/if.d.ts","../node_modules/.pnpm/type-fest@5.4.4/node_modules/type-fest/source/unknown-array.d.ts","../node_modules/.pnpm/type-fest@5.4.4/node_modules/type-fest/source/internal/type.d.ts","../node_modules/.pnpm/type-fest@5.4.4/node_modules/type-fest/source/simplify.d.ts","../node_modules/.pnpm/type-fest@5.4.4/node_modules/type-fest/source/is-equal.d.ts","../node_modules/.pnpm/type-fest@5.4.4/node_modules/type-fest/source/omit-index-signature.d.ts","../node_modules/.pnpm/type-fest@5.4.4/node_modules/type-fest/source/pick-index-signature.d.ts","../node_modules/.pnpm/type-fest@5.4.4/node_modules/type-fest/source/merge.d.ts","../node_modules/.pnpm/type-fest@5.4.4/node_modules/type-fest/source/internal/object.d.ts","../node_modules/.pnpm/type-fest@5.4.4/node_modules/type-fest/source/except.d.ts"],"sourcesContent":["/**\nConvert a union type to an intersection type using [distributive conditional types](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-2-8.html#distributive-conditional-types).\n\nInspired by [this Stack Overflow answer](https://stackoverflow.com/a/50375286/2172153).\n\n@example\n```\nimport type {UnionToIntersection} from 'type-fest';\n\ntype Union = {the(): void} | {great(arg: string): void} | {escape: boolean};\n\ntype Intersection = UnionToIntersection<Union>;\n//=> {the(): void} & {great(arg: string): void} & {escape: boolean}\n```\n\n@category Type\n*/\nexport type UnionToIntersection<Union> = (\n\t// `extends unknown` is always going to be the case and is used to convert the\n\t// `Union` into a [distributive conditional\n\t// type](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-2-8.html#distributive-conditional-types).\n\tUnion extends unknown\n\t\t// The union type is used as the only argument to a function since the union\n\t\t// of function arguments is an intersection.\n\t\t? (distributedUnion: Union) => void\n\t\t// This won't happen.\n\t\t: never\n\t\t// Infer the `Intersection` type since TypeScript represents the positional\n\t\t// arguments of unions of functions as an intersection of the union.\n) extends ((mergedIntersection: infer Intersection) => void)\n\t// The `& Union` is to ensure result of `UnionToIntersection<A | B>` is always assignable to `A | B`\n\t? Intersection & Union\n\t: never;\n\nexport {};\n","import type {UnionToIntersection} from './union-to-intersection.d.ts';\n\n/**\nCreate a union of all keys from a given type, even those exclusive to specific union members.\n\nUnlike the native `keyof` keyword, which returns keys present in **all** union members, this type returns keys from **any** member.\n\n@link https://stackoverflow.com/a/49402091\n\n@example\n```\nimport type {KeysOfUnion} from 'type-fest';\n\ntype A = {\n\tcommon: string;\n\ta: number;\n};\n\ntype B = {\n\tcommon: string;\n\tb: string;\n};\n\ntype C = {\n\tcommon: string;\n\tc: boolean;\n};\n\ntype Union = A | B | C;\n\ntype CommonKeys = keyof Union;\n//=> 'common'\n\ntype AllKeys = KeysOfUnion<Union>;\n//=> 'common' | 'a' | 'b' | 'c'\n```\n\n@category Object\n*/\nexport type KeysOfUnion<ObjectType> =\n // Hack to fix https://github.com/sindresorhus/type-fest/issues/1008\n keyof UnionToIntersection<ObjectType extends unknown ? Record<keyof ObjectType, never> : never>;\n\nexport {};\n","/**\nReturns a boolean for whether the given type is `any`.\n\n@link https://stackoverflow.com/a/49928360/1490091\n\nUseful in type utilities, such as disallowing `any`s to be passed to a function.\n\n@example\n```\nimport type {IsAny} from 'type-fest';\n\nconst typedObject = {a: 1, b: 2} as const;\nconst anyObject: any = {a: 1, b: 2};\n\nfunction get<O extends (IsAny<O> extends true ? {} : Record<string, number>), K extends keyof O = keyof O>(object: O, key: K) {\n\treturn object[key];\n}\n\nconst typedA = get(typedObject, 'a');\n//=> 1\n\nconst anyA = get(anyObject, 'a');\n//=> any\n```\n\n@category Type Guard\n@category Utilities\n*/\nexport type IsAny<T> = 0 extends 1 & NoInfer<T> ? true : false;\n\nexport {};\n","import type {IsAny} from './is-any.d.ts';\n\n/**\nReturns a boolean for whether the given key is an optional key of type.\n\nThis is useful when writing utility types or schema validators that need to differentiate `optional` keys.\n\n@example\n```\nimport type {IsOptionalKeyOf} from 'type-fest';\n\ntype User = {\n\tname: string;\n\tsurname: string;\n\n\tluckyNumber?: number;\n};\n\ntype Admin = {\n\tname: string;\n\tsurname?: string;\n};\n\ntype T1 = IsOptionalKeyOf<User, 'luckyNumber'>;\n//=> true\n\ntype T2 = IsOptionalKeyOf<User, 'name'>;\n//=> false\n\ntype T3 = IsOptionalKeyOf<User, 'name' | 'luckyNumber'>;\n//=> boolean\n\ntype T4 = IsOptionalKeyOf<User | Admin, 'name'>;\n//=> false\n\ntype T5 = IsOptionalKeyOf<User | Admin, 'surname'>;\n//=> boolean\n```\n\n@category Type Guard\n@category Utilities\n*/\nexport type IsOptionalKeyOf<Type extends object, Key extends keyof Type> =\n\tIsAny<Type | Key> extends true ? never\n\t\t: Key extends keyof Type\n\t\t\t? Type extends Record<Key, Type[Key]>\n\t\t\t\t? false\n\t\t\t\t: true\n\t\t\t: false;\n\nexport {};\n","import type {IsOptionalKeyOf} from './is-optional-key-of.d.ts';\n\n/**\nExtract all optional keys from the given type.\n\nThis is useful when you want to create a new type that contains different type values for the optional keys only.\n\n@example\n```\nimport type {OptionalKeysOf, Except} from 'type-fest';\n\ntype User = {\n\tname: string;\n\tsurname: string;\n\n\tluckyNumber?: number;\n};\n\nconst REMOVE_FIELD = Symbol('remove field symbol');\ntype UpdateOperation<Entity extends object> = Except<Partial<Entity>, OptionalKeysOf<Entity>> & {\n\t[Key in OptionalKeysOf<Entity>]?: Entity[Key] | typeof REMOVE_FIELD;\n};\n\nconst update1: UpdateOperation<User> = {\n\tname: 'Alice',\n};\n\nconst update2: UpdateOperation<User> = {\n\tname: 'Bob',\n\tluckyNumber: REMOVE_FIELD,\n};\n```\n\n@category Utilities\n*/\nexport type OptionalKeysOf<Type extends object> =\n\tType extends unknown // For distributing `Type`\n\t\t? (keyof {[Key in keyof Type as\n\t\t\tIsOptionalKeyOf<Type, Key> extends false\n\t\t\t\t? never\n\t\t\t\t: Key\n\t\t\t]: never\n\t\t}) & keyof Type // Intersect with `keyof Type` to ensure result of `OptionalKeysOf<Type>` is always assignable to `keyof Type`\n\t\t: never; // Should never happen\n\nexport {};\n","import type {OptionalKeysOf} from './optional-keys-of.d.ts';\n\n/**\nExtract all required keys from the given type.\n\nThis is useful when you want to create a new type that contains different type values for the required keys only or use the list of keys for validation purposes, etc...\n\n@example\n```\nimport type {RequiredKeysOf} from 'type-fest';\n\ndeclare function createValidation<\n\tEntity extends object,\n\tKey extends RequiredKeysOf<Entity> = RequiredKeysOf<Entity>,\n>(field: Key, validator: (value: Entity[Key]) => boolean): (entity: Entity) => boolean;\n\ntype User = {\n\tname: string;\n\tsurname: string;\n\tluckyNumber?: number;\n};\n\nconst validator1 = createValidation<User>('name', value => value.length < 25);\nconst validator2 = createValidation<User>('surname', value => value.length < 25);\n\n// @ts-expect-error\nconst validator3 = createValidation<User>('luckyNumber', value => value > 0);\n// Error: Argument of type '\"luckyNumber\"' is not assignable to parameter of type '\"name\" | \"surname\"'.\n```\n\n@category Utilities\n*/\nexport type RequiredKeysOf<Type extends object> =\n\tType extends unknown // For distributing `Type`\n\t\t? Exclude<keyof Type, OptionalKeysOf<Type>>\n\t\t: never; // Should never happen\n\nexport {};\n","/**\nReturns a boolean for whether the given type is `never`.\n\n@link https://github.com/microsoft/TypeScript/issues/31751#issuecomment-498526919\n@link https://stackoverflow.com/a/53984913/10292952\n@link https://www.zhenghao.io/posts/ts-never\n\nUseful in type utilities, such as checking if something does not occur.\n\n@example\n```\nimport type {IsNever, And} from 'type-fest';\n\ntype A = IsNever<never>;\n//=> true\n\ntype B = IsNever<any>;\n//=> false\n\ntype C = IsNever<unknown>;\n//=> false\n\ntype D = IsNever<never[]>;\n//=> false\n\ntype E = IsNever<object>;\n//=> false\n\ntype F = IsNever<string>;\n//=> false\n```\n\n@example\n```\nimport type {IsNever} from 'type-fest';\n\ntype IsTrue<T> = T extends true ? true : false;\n\n// When a distributive conditional is instantiated with `never`, the entire conditional results in `never`.\ntype A = IsTrue<never>;\n//=> never\n\n// If you don't want that behaviour, you can explicitly add an `IsNever` check before the distributive conditional.\ntype IsTrueFixed<T> =\n\tIsNever<T> extends true ? false : T extends true ? true : false;\n\ntype B = IsTrueFixed<never>;\n//=> false\n```\n\n@category Type Guard\n@category Utilities\n*/\nexport type IsNever<T> = [T] extends [never] ? true : false;\n\nexport {};\n","import type {IsNever} from './is-never.d.ts';\n\n/**\nAn if-else-like type that resolves depending on whether the given `boolean` type is `true` or `false`.\n\nUse-cases:\n- You can use this in combination with `Is*` types to create an if-else-like experience. For example, `If<IsAny<any>, 'is any', 'not any'>`.\n\nNote:\n- Returns a union of if branch and else branch if the given type is `boolean` or `any`. For example, `If<boolean, 'Y', 'N'>` will return `'Y' | 'N'`.\n- Returns the else branch if the given type is `never`. For example, `If<never, 'Y', 'N'>` will return `'N'`.\n\n@example\n```\nimport type {If} from 'type-fest';\n\ntype A = If<true, 'yes', 'no'>;\n//=> 'yes'\n\ntype B = If<false, 'yes', 'no'>;\n//=> 'no'\n\ntype C = If<boolean, 'yes', 'no'>;\n//=> 'yes' | 'no'\n\ntype D = If<any, 'yes', 'no'>;\n//=> 'yes' | 'no'\n\ntype E = If<never, 'yes', 'no'>;\n//=> 'no'\n```\n\n@example\n```\nimport type {If, IsAny, IsNever} from 'type-fest';\n\ntype A = If<IsAny<unknown>, 'is any', 'not any'>;\n//=> 'not any'\n\ntype B = If<IsNever<never>, 'is never', 'not never'>;\n//=> 'is never'\n```\n\n@example\n```\nimport type {If, IsEqual} from 'type-fest';\n\ntype IfEqual<T, U, IfBranch, ElseBranch> = If<IsEqual<T, U>, IfBranch, ElseBranch>;\n\ntype A = IfEqual<string, string, 'equal', 'not equal'>;\n//=> 'equal'\n\ntype B = IfEqual<string, number, 'equal', 'not equal'>;\n//=> 'not equal'\n```\n\nNote: Sometimes using the `If` type can make an implementation non–tail-recursive, which can impact performance. In such cases, it’s better to use a conditional directly. Refer to the following example:\n\n@example\n```\nimport type {If, IsEqual, StringRepeat} from 'type-fest';\n\ntype HundredZeroes = StringRepeat<'0', 100>;\n\n// The following implementation is not tail recursive\ntype Includes<S extends string, Char extends string> =\n\tS extends `${infer First}${infer Rest}`\n\t\t? If<IsEqual<First, Char>,\n\t\t\t'found',\n\t\t\tIncludes<Rest, Char>>\n\t\t: 'not found';\n\n// Hence, instantiations with long strings will fail\n// @ts-expect-error\ntype Fails = Includes<HundredZeroes, '1'>;\n// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n// Error: Type instantiation is excessively deep and possibly infinite.\n\n// However, if we use a simple conditional instead of `If`, the implementation becomes tail-recursive\ntype IncludesWithoutIf<S extends string, Char extends string> =\n\tS extends `${infer First}${infer Rest}`\n\t\t? IsEqual<First, Char> extends true\n\t\t\t? 'found'\n\t\t\t: IncludesWithoutIf<Rest, Char>\n\t\t: 'not found';\n\n// Now, instantiations with long strings will work\ntype Works = IncludesWithoutIf<HundredZeroes, '1'>;\n//=> 'not found'\n```\n\n@category Type Guard\n@category Utilities\n*/\nexport type If<Type extends boolean, IfBranch, ElseBranch> =\n\tIsNever<Type> extends true\n\t\t? ElseBranch\n\t\t: Type extends true\n\t\t\t? IfBranch\n\t\t\t: ElseBranch;\n\nexport {};\n","/**\nRepresents an array with `unknown` value.\n\nUse case: You want a type that all arrays can be assigned to, but you don't care about the value.\n\n@example\n```\nimport type {UnknownArray} from 'type-fest';\n\ntype IsArray<T> = T extends UnknownArray ? true : false;\n\ntype A = IsArray<['foo']>;\n//=> true\n\ntype B = IsArray<readonly number[]>;\n//=> true\n\ntype C = IsArray<string>;\n//=> false\n```\n\n@category Type\n@category Array\n*/\nexport type UnknownArray = readonly unknown[];\n\nexport {};\n","import type {If} from '../if.d.ts';\nimport type {IsAny} from '../is-any.d.ts';\nimport type {IsNever} from '../is-never.d.ts';\nimport type {Primitive} from '../primitive.d.ts';\nimport type {UnknownArray} from '../unknown-array.d.ts';\n\n/**\nMatches any primitive, `void`, `Date`, or `RegExp` value.\n*/\nexport type BuiltIns = Primitive | void | Date | RegExp;\n\n/**\nMatches non-recursive types.\n*/\nexport type NonRecursiveType = BuiltIns | Function | (new (...arguments_: any[]) => unknown) | Promise<unknown>;\n\n/**\nMatches maps, sets, or arrays.\n*/\nexport type MapsSetsOrArrays = ReadonlyMap<unknown, unknown> | WeakMap<WeakKey, unknown> | ReadonlySet<unknown> | WeakSet<WeakKey> | UnknownArray;\n\n/**\nReturns a boolean for whether the two given types extends the base type.\n*/\nexport type IsBothExtends<BaseType, FirstType, SecondType> = FirstType extends BaseType\n\t? SecondType extends BaseType\n\t\t? true\n\t\t: false\n\t: false;\n\n/**\nTest if the given function has multiple call signatures.\n\nNeeded to handle the case of a single call signature with properties.\n\nMultiple call signatures cannot currently be supported due to a TypeScript limitation.\n@see https://github.com/microsoft/TypeScript/issues/29732\n*/\nexport type HasMultipleCallSignatures<T extends (...arguments_: any[]) => unknown> =\n\tT extends {(...arguments_: infer A): unknown; (...arguments_: infer B): unknown}\n\t\t? B extends A\n\t\t\t? A extends B\n\t\t\t\t? false\n\t\t\t\t: true\n\t\t\t: true\n\t\t: false;\n\n/**\nReturns a boolean for whether the given `boolean` is not `false`.\n*/\nexport type IsNotFalse<T extends boolean> = [T] extends [false] ? false : true;\n\n/**\nReturns a boolean for whether the given type is primitive value or primitive type.\n\n@example\n```\ntype A = IsPrimitive<'string'>;\n//=> true\n\ntype B = IsPrimitive<string>;\n//=> true\n\ntype C = IsPrimitive<Object>;\n//=> false\n```\n*/\nexport type IsPrimitive<T> = [T] extends [Primitive] ? true : false;\n\n/**\nReturns a boolean for whether A is false.\n\n@example\n```\ntype A = Not<true>;\n//=> false\n\ntype B = Not<false>;\n//=> true\n```\n*/\nexport type Not<A extends boolean> = A extends true\n\t? false\n\t: A extends false\n\t\t? true\n\t\t: never;\n\n/**\nAn if-else-like type that resolves depending on whether the given type is `any` or `never`.\n\n@example\n```\n// When `T` is a NOT `any` or `never` (like `string`) => Returns `IfNotAnyOrNever` branch\ntype A = IfNotAnyOrNever<string, 'VALID', 'IS_ANY', 'IS_NEVER'>;\n//=> 'VALID'\n\n// When `T` is `any` => Returns `IfAny` branch\ntype B = IfNotAnyOrNever<any, 'VALID', 'IS_ANY', 'IS_NEVER'>;\n//=> 'IS_ANY'\n\n// When `T` is `never` => Returns `IfNever` branch\ntype C = IfNotAnyOrNever<never, 'VALID', 'IS_ANY', 'IS_NEVER'>;\n//=> 'IS_NEVER'\n```\n\nNote: Wrapping a tail-recursive type with `IfNotAnyOrNever` makes the implementation non-tail-recursive. To fix this, move the recursion into a helper type. Refer to the following example:\n\n@example\n```ts\nimport type {StringRepeat} from 'type-fest';\n\ntype NineHundredNinetyNineSpaces = StringRepeat<' ', 999>;\n\n// The following implementation is not tail recursive\ntype TrimLeft<S extends string> = IfNotAnyOrNever<S, S extends ` ${infer R}` ? TrimLeft<R> : S>;\n\n// Hence, instantiations with long strings will fail\n// @ts-expect-error\ntype T1 = TrimLeft<NineHundredNinetyNineSpaces>;\n// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n// Error: Type instantiation is excessively deep and possibly infinite.\n\n// To fix this, move the recursion into a helper type\ntype TrimLeftOptimised<S extends string> = IfNotAnyOrNever<S, _TrimLeftOptimised<S>>;\n\ntype _TrimLeftOptimised<S extends string> = S extends ` ${infer R}` ? _TrimLeftOptimised<R> : S;\n\ntype T2 = TrimLeftOptimised<NineHundredNinetyNineSpaces>;\n//=> ''\n```\n*/\nexport type IfNotAnyOrNever<T, IfNotAnyOrNever, IfAny = any, IfNever = never> =\n\tIf<IsAny<T>, IfAny, If<IsNever<T>, IfNever, IfNotAnyOrNever>>;\n\n/**\nReturns a boolean for whether the given type is `any` or `never`.\n\nThis type can be better to use than {@link IfNotAnyOrNever `IfNotAnyOrNever`} in recursive types because it does not evaluate any branches.\n\n@example\n```\n// When `T` is a NOT `any` or `never` (like `string`) => Returns `false`\ntype A = IsAnyOrNever<string>;\n//=> false\n\n// When `T` is `any` => Returns `true`\ntype B = IsAnyOrNever<any>;\n//=> true\n\n// When `T` is `never` => Returns `true`\ntype C = IsAnyOrNever<never>;\n//=> true\n```\n*/\nexport type IsAnyOrNever<T> = IsNotFalse<IsAny<T> | IsNever<T>>;\n\n/**\nIndicates the value of `exactOptionalPropertyTypes` compiler option.\n*/\nexport type IsExactOptionalPropertyTypesEnabled = [(string | undefined)?] extends [string?]\n\t? false\n\t: true;\n\nexport {};\n","/**\nUseful to flatten the type output to improve type hints shown in editors. And also to transform an interface into a type to aide with assignability.\n\n@example\n```\nimport type {Simplify} from 'type-fest';\n\ntype PositionProps = {\n\ttop: number;\n\tleft: number;\n};\n\ntype SizeProps = {\n\twidth: number;\n\theight: number;\n};\n\n// In your editor, hovering over `Props` will show a flattened object with all the properties.\ntype Props = Simplify<PositionProps & SizeProps>;\n```\n\nSometimes it is desired to pass a value as a function argument that has a different type. At first inspection it may seem assignable, and then you discover it is not because the `value`'s type definition was defined as an interface. In the following example, `fn` requires an argument of type `Record<string, unknown>`. If the value is defined as a literal, then it is assignable. And if the `value` is defined as type using the `Simplify` utility the value is assignable. But if the `value` is defined as an interface, it is not assignable because the interface is not sealed and elsewhere a non-string property could be added to the interface.\n\nIf the type definition must be an interface (perhaps it was defined in a third-party npm package), then the `value` can be defined as `const value: Simplify<SomeInterface> = ...`. Then `value` will be assignable to the `fn` argument. Or the `value` can be cast as `Simplify<SomeInterface>` if you can't re-declare the `value`.\n\n@example\n```\nimport type {Simplify} from 'type-fest';\n\ninterface SomeInterface {\n\tfoo: number;\n\tbar?: string;\n\tbaz: number | undefined;\n}\n\ntype SomeType = {\n\tfoo: number;\n\tbar?: string;\n\tbaz: number | undefined;\n};\n\nconst literal = {foo: 123, bar: 'hello', baz: 456};\nconst someType: SomeType = literal;\nconst someInterface: SomeInterface = literal;\n\ndeclare function fn(object: Record<string, unknown>): void;\n\nfn(literal); // Good: literal object type is sealed\nfn(someType); // Good: type is sealed\n// @ts-expect-error\nfn(someInterface); // Error: Index signature for type 'string' is missing in type 'someInterface'. Because `interface` can be re-opened\nfn(someInterface as Simplify<SomeInterface>); // Good: transform an `interface` into a `type`\n```\n\n@link https://github.com/microsoft/TypeScript/issues/15300\n@see {@link SimplifyDeep}\n@category Object\n*/\nexport type Simplify<T> = {[KeyType in keyof T]: T[KeyType]} & {};\n\nexport {};\n","import type {IsNever} from './is-never.d.ts';\n/**\nReturns a boolean for whether the two given types are equal.\n\n@link https://github.com/microsoft/TypeScript/issues/27024#issuecomment-421529650\n@link https://stackoverflow.com/questions/68961864/how-does-the-equals-work-in-typescript/68963796#68963796\n\nUse-cases:\n- If you want to make a conditional branch based on the result of a comparison of two types.\n\n@example\n```\nimport type {IsEqual} from 'type-fest';\n\n// This type returns a boolean for whether the given array includes the given item.\n// `IsEqual` is used to compare the given array at position 0 and the given item and then return true if they are equal.\ntype Includes<Value extends readonly any[], Item> =\n\tValue extends readonly [Value[0], ...infer rest]\n\t\t? IsEqual<Value[0], Item> extends true\n\t\t\t? true\n\t\t\t: Includes<rest, Item>\n\t\t: false;\n```\n\n@category Type Guard\n@category Utilities\n*/\nexport type IsEqual<A, B> =\n\t[A] extends [B]\n\t\t? [B] extends [A]\n\t\t\t? _IsEqual<A, B>\n\t\t\t: false\n\t\t: false;\n\n// This version fails the `equalWrappedTupleIntersectionToBeNeverAndNeverExpanded` test in `test-d/is-equal.ts`.\ntype _IsEqual<A, B> =\n\t(<G>() => G extends A & G | G ? 1 : 2) extends\n\t(<G>() => G extends B & G | G ? 1 : 2)\n\t\t? true\n\t\t: false;\n\nexport {};\n","/**\nOmit any index signatures from the given object type, leaving only explicitly defined properties.\n\nThis is the counterpart of `PickIndexSignature`.\n\nUse-cases:\n- Remove overly permissive signatures from third-party types.\n\nThis type was taken from this [StackOverflow answer](https://stackoverflow.com/a/68261113/420747).\n\nIt relies on the fact that an empty object (`{}`) is assignable to an object with just an index signature, like `Record<string, unknown>`, but not to an object with explicitly defined keys, like `Record<'foo' | 'bar', unknown>`.\n\n(The actual value type, `unknown`, is irrelevant and could be any type. Only the key type matters.)\n\n```\nconst indexed: Record<string, unknown> = {}; // Allowed\n\n// @ts-expect-error\nconst keyed: Record<'foo', unknown> = {}; // Error\n// TS2739: Type '{}' is missing the following properties from type 'Record<\"foo\" | \"bar\", unknown>': foo, bar\n```\n\nInstead of causing a type error like the above, you can also use a [conditional type](https://www.typescriptlang.org/docs/handbook/2/conditional-types.html) to test whether a type is assignable to another:\n\n```\ntype Indexed = {} extends Record<string, unknown>\n\t? '✅ `{}` is assignable to `Record<string, unknown>`'\n\t: '❌ `{}` is NOT assignable to `Record<string, unknown>`';\n\ntype IndexedResult = Indexed;\n//=> '✅ `{}` is assignable to `Record<string, unknown>`'\n\ntype Keyed = {} extends Record<'foo' | 'bar', unknown>\n\t? '✅ `{}` is assignable to `Record<\\'foo\\' | \\'bar\\', unknown>`'\n\t: '❌ `{}` is NOT assignable to `Record<\\'foo\\' | \\'bar\\', unknown>`';\n\ntype KeyedResult = Keyed;\n//=> '❌ `{}` is NOT assignable to `Record<\\'foo\\' | \\'bar\\', unknown>`'\n```\n\nUsing a [mapped type](https://www.typescriptlang.org/docs/handbook/2/mapped-types.html#further-exploration), you can then check for each `KeyType` of `ObjectType`...\n\n```\ntype OmitIndexSignature<ObjectType> = {\n\t[KeyType in keyof ObjectType // Map each key of `ObjectType`...\n\t]: ObjectType[KeyType]; // ...to its original value, i.e. `OmitIndexSignature<Foo> == Foo`.\n};\n```\n\n...whether an empty object (`{}`) would be assignable to an object with that `KeyType` (`Record<KeyType, unknown>`)...\n\n```\ntype OmitIndexSignature<ObjectType> = {\n\t[KeyType in keyof ObjectType\n\t// Is `{}` assignable to `Record<KeyType, unknown>`?\n\tas {} extends Record<KeyType, unknown>\n\t\t? never // ✅ `{}` is assignable to `Record<KeyType, unknown>`\n\t\t: KeyType // ❌ `{}` is NOT assignable to `Record<KeyType, unknown>`\n\t]: ObjectType[KeyType];\n};\n```\n\nIf `{}` is assignable, it means that `KeyType` is an index signature and we want to remove it. If it is not assignable, `KeyType` is a \"real\" key and we want to keep it.\n\n@example\n```\nimport type {OmitIndexSignature} from 'type-fest';\n\ntype Example = {\n\t// These index signatures will be removed.\n\t[x: string]: any;\n\t[x: number]: any;\n\t[x: symbol]: any;\n\t[x: `head-${string}`]: string;\n\t[x: `${string}-tail`]: string;\n\t[x: `head-${string}-tail`]: string;\n\t[x: `${bigint}`]: string;\n\t[x: `embedded-${number}`]: string;\n\n\t// These explicitly defined keys will remain.\n\tfoo: 'bar';\n\tqux?: 'baz';\n};\n\ntype ExampleWithoutIndexSignatures = OmitIndexSignature<Example>;\n//=> {foo: 'bar'; qux?: 'baz'}\n```\n\n@see {@link PickIndexSignature}\n@category Object\n*/\nexport type OmitIndexSignature<ObjectType> = {\n\t[KeyType in keyof ObjectType as {} extends Record<KeyType, unknown>\n\t\t? never\n\t\t: KeyType]: ObjectType[KeyType];\n};\n\nexport {};\n","/**\nPick only index signatures from the given object type, leaving out all explicitly defined properties.\n\nThis is the counterpart of `OmitIndexSignature`.\n\n@example\n```\nimport type {PickIndexSignature} from 'type-fest';\n\ndeclare const symbolKey: unique symbol;\n\ntype Example = {\n\t// These index signatures will remain.\n\t[x: string]: unknown;\n\t[x: number]: unknown;\n\t[x: symbol]: unknown;\n\t[x: `head-${string}`]: string;\n\t[x: `${string}-tail`]: string;\n\t[x: `head-${string}-tail`]: string;\n\t[x: `${bigint}`]: string;\n\t[x: `embedded-${number}`]: string;\n\n\t// These explicitly defined keys will be removed.\n\t['kebab-case-key']: string;\n\t[symbolKey]: string;\n\tfoo: 'bar';\n\tqux?: 'baz';\n};\n\ntype ExampleIndexSignature = PickIndexSignature<Example>;\n// {\n// \t[x: string]: unknown;\n// \t[x: number]: unknown;\n// \t[x: symbol]: unknown;\n// \t[x: `head-${string}`]: string;\n// \t[x: `${string}-tail`]: string;\n// \t[x: `head-${string}-tail`]: string;\n// \t[x: `${bigint}`]: string;\n// \t[x: `embedded-${number}`]: string;\n// }\n```\n\n@see {@link OmitIndexSignature}\n@category Object\n*/\nexport type PickIndexSignature<ObjectType> = {\n\t[KeyType in keyof ObjectType as {} extends Record<KeyType, unknown>\n\t\t? KeyType\n\t\t: never]: ObjectType[KeyType];\n};\n\nexport {};\n","import type {OmitIndexSignature} from './omit-index-signature.d.ts';\nimport type {PickIndexSignature} from './pick-index-signature.d.ts';\nimport type {Simplify} from './simplify.d.ts';\nimport type {If} from './if.d.ts';\nimport type {IsEqual} from './is-equal.d.ts';\n\n// Merges two objects without worrying about index signatures.\ntype SimpleMerge<Destination, Source> = Simplify<{\n\t[Key in keyof Destination as Key extends keyof Source ? never : Key]: Destination[Key];\n} & Source>;\n\n/**\nMerge two types into a new type. Keys of the second type overrides keys of the first type.\n\n@example\n```\nimport type {Merge} from 'type-fest';\n\ntype Foo = {\n\t[x: string]: unknown;\n\t[x: number]: unknown;\n\tfoo: string;\n\tbar: symbol;\n};\n\ntype Bar = {\n\t[x: number]: number;\n\t[x: symbol]: unknown;\n\tbar: Date;\n\tbaz: boolean;\n};\n\nexport type FooBar = Merge<Foo, Bar>;\n//=> {\n// \t[x: string]: unknown;\n// \t[x: number]: number;\n// \t[x: symbol]: unknown;\n// \tfoo: string;\n// \tbar: Date;\n// \tbaz: boolean;\n// }\n```\n\nNote: If you want a merge type that more accurately reflects the runtime behavior of object spread or `Object.assign`, refer to the {@link ObjectMerge} type.\n\n@see {@link ObjectMerge}\n@category Object\n*/\nexport type Merge<Destination, Source> =\n\tDestination extends unknown // For distributing `Destination`\n\t\t? Source extends unknown // For distributing `Source`\n\t\t\t? If<IsEqual<Destination, Source>, Destination, _Merge<Destination, Source>>\n\t\t\t: never // Should never happen\n\t\t: never; // Should never happen\n\nexport type _Merge<Destination, Source> =\n\tSimplify<\n\t\tSimpleMerge<PickIndexSignature<Destination>, PickIndexSignature<Source>>\n\t\t& SimpleMerge<OmitIndexSignature<Destination>, OmitIndexSignature<Source>>\n\t>;\n\nexport {};\n","import type {Simplify} from '../simplify.d.ts';\nimport type {IsEqual} from '../is-equal.d.ts';\nimport type {KeysOfUnion} from '../keys-of-union.d.ts';\nimport type {RequiredKeysOf} from '../required-keys-of.d.ts';\nimport type {Merge} from '../merge.d.ts';\nimport type {OptionalKeysOf} from '../optional-keys-of.d.ts';\nimport type {IsAny} from '../is-any.d.ts';\nimport type {If} from '../if.d.ts';\nimport type {IsNever} from '../is-never.d.ts';\nimport type {FilterDefinedKeys, FilterOptionalKeys} from './keys.d.ts';\nimport type {MapsSetsOrArrays, NonRecursiveType} from './type.d.ts';\nimport type {StringToNumber, ToString} from './string.d.ts';\n\n/**\nCreate an object type with the given key `<Key>` and value `<Value>`.\n\nIt will copy the prefix and optional status of the same key from the given object `CopiedFrom` into the result.\n\n@example\n```\ntype A = BuildObject<'a', string>;\n//=> {a: string}\n\n// Copy `readonly` and `?` from the key `a` of `{readonly a?: any}`\ntype B = BuildObject<'a', string, {readonly a?: any}>;\n//=> {readonly a?: string}\n```\n*/\nexport type BuildObject<Key extends PropertyKey, Value, CopiedFrom extends object = {}> =\n\tKey extends keyof CopiedFrom\n\t\t? Pick<{[_ in keyof CopiedFrom]: Value}, Key>\n\t\t: Key extends `${infer NumberKey extends number}`\n\t\t\t? NumberKey extends keyof CopiedFrom\n\t\t\t\t? Pick<{[_ in keyof CopiedFrom]: Value}, NumberKey>\n\t\t\t\t: {[_ in Key]: Value}\n\t\t\t: {[_ in Key]: Value};\n\n/**\nReturns a boolean for whether the given type is a plain key-value object.\n*/\nexport type IsPlainObject<T> =\n\tIsNever<T> extends true\n\t\t? false\n\t\t: T extends NonRecursiveType | MapsSetsOrArrays\n\t\t\t? false\n\t\t\t: T extends object\n\t\t\t\t? true\n\t\t\t\t: false;\n\n/**\nExtract the object field type if T is an object and K is a key of T, return `never` otherwise.\n\nIt creates a type-safe way to access the member type of `unknown` type.\n*/\nexport type ObjectValue<T, K> =\n\tK extends keyof T\n\t\t? T[K]\n\t\t: ToString<K> extends keyof T\n\t\t\t? T[ToString<K>]\n\t\t\t: K extends `${infer NumberK extends number}`\n\t\t\t\t? NumberK extends keyof T\n\t\t\t\t\t? T[NumberK]\n\t\t\t\t\t: never\n\t\t\t\t: never;\n\n/**\nFor an object T, if it has any properties that are a union with `undefined`, make those into optional properties instead.\n\n@example\n```\ntype User = {\n\tfirstName: string;\n\tlastName: string | undefined;\n};\n\ntype OptionalizedUser = UndefinedToOptional<User>;\n//=> {\n// \tfirstName: string;\n// \tlastName?: string;\n// }\n```\n*/\nexport type UndefinedToOptional<T extends object> = Simplify<\n\t{\n\t// Property is not a union with `undefined`, keep it as-is.\n\t\t[Key in keyof Pick<T, FilterDefinedKeys<T>>]: T[Key];\n\t} & {\n\t// Property _is_ a union with defined value. Set as optional (via `?`) and remove `undefined` from the union.\n\t\t[Key in keyof Pick<T, FilterOptionalKeys<T>>]?: Exclude<T[Key], undefined>;\n\t}\n>;\n\n/**\nWorks similar to the built-in `Pick` utility type, except for the following differences:\n- Distributes over union types and allows picking keys from any member of the union type.\n- Primitives types are returned as-is.\n- Picks all keys if `Keys` is `any`.\n- Doesn't pick `number` from a `string` index signature.\n\n@example\n```\ntype ImageUpload = {\n\turl: string;\n\tsize: number;\n\tthumbnailUrl: string;\n};\n\ntype VideoUpload = {\n\turl: string;\n\tduration: number;\n\tencodingFormat: string;\n};\n\n// Distributes over union types and allows picking keys from any member of the union type\ntype MediaDisplay = HomomorphicPick<ImageUpload | VideoUpload, \"url\" | \"size\" | \"duration\">;\n//=> {url: string; size: number} | {url: string; duration: number}\n\n// Primitive types are returned as-is\ntype Primitive = HomomorphicPick<string | number, 'toUpperCase' | 'toString'>;\n//=> string | number\n\n// Picks all keys if `Keys` is `any`\ntype Any = HomomorphicPick<{a: 1; b: 2} | {c: 3}, any>;\n//=> {a: 1; b: 2} | {c: 3}\n\n// Doesn't pick `number` from a `string` index signature\ntype IndexSignature = HomomorphicPick<{[k: string]: unknown}, number>;\n//=> {}\n*/\nexport type HomomorphicPick<T, Keys extends KeysOfUnion<T>> = {\n\t[P in keyof T as Extract<P, Keys>]: T[P]\n};\n\n/**\nExtract all possible values for a given key from a union of object types.\n\n@example\n```\ntype Statuses = ValueOfUnion<{id: 1; status: 'open'} | {id: 2; status: 'closed'}, 'status'>;\n//=> \"open\" | \"closed\"\n```\n*/\nexport type ValueOfUnion<Union, Key extends KeysOfUnion<Union>> =\n\tUnion extends unknown ? Key extends keyof Union ? Union[Key] : never : never;\n\n/**\nExtract all readonly keys from a union of object types.\n\n@example\n```\ntype User = {\n\treadonly id: string;\n\tname: string;\n};\n\ntype Post = {\n\treadonly id: string;\n\treadonly author: string;\n\tbody: string;\n};\n\ntype ReadonlyKeys = ReadonlyKeysOfUnion<User | Post>;\n//=> \"id\" | \"author\"\n```\n*/\nexport type ReadonlyKeysOfUnion<Union> = Union extends unknown ? keyof {\n\t[Key in keyof Union as IsEqual<{[K in Key]: Union[Key]}, {readonly [K in Key]: Union[Key]}> extends true ? Key : never]: never\n} : never;\n\n/**\nMerges user specified options with default options.\n\n@example\n```\ntype PathsOptions = {maxRecursionDepth?: number; leavesOnly?: boolean};\ntype DefaultPathsOptions = {maxRecursionDepth: 10; leavesOnly: false};\ntype SpecifiedOptions = {leavesOnly: true};\n\ntype Result = ApplyDefaultOptions<PathsOptions, DefaultPathsOptions, SpecifiedOptions>;\n//=> {maxRecursionDepth: 10; leavesOnly: true}\n```\n\n@example\n```\n// Complains if default values are not provided for optional options\n\ntype PathsOptions = {maxRecursionDepth?: number; leavesOnly?: boolean};\ntype DefaultPathsOptions = {maxRecursionDepth: 10};\ntype SpecifiedOptions = {};\n\ntype Result = ApplyDefaultOptions<PathsOptions, DefaultPathsOptions, SpecifiedOptions>;\n// ~~~~~~~~~~~~~~~~~~~\n// Property 'leavesOnly' is missing in type 'DefaultPathsOptions' but required in type '{ maxRecursionDepth: number; leavesOnly: boolean; }'.\n```\n\n@example\n```\n// Complains if an option's default type does not conform to the expected type\n\ntype PathsOptions = {maxRecursionDepth?: number; leavesOnly?: boolean};\ntype DefaultPathsOptions = {maxRecursionDepth: 10; leavesOnly: 'no'};\ntype SpecifiedOptions = {};\n\ntype Result = ApplyDefaultOptions<PathsOptions, DefaultPathsOptions, SpecifiedOptions>;\n// ~~~~~~~~~~~~~~~~~~~\n// Types of property 'leavesOnly' are incompatible. Type 'string' is not assignable to type 'boolean'.\n```\n\n@example\n```\n// Complains if an option's specified type does not conform to the expected type\n\ntype PathsOptions = {maxRecursionDepth?: number; leavesOnly?: boolean};\ntype DefaultPathsOptions = {maxRecursionDepth: 10; leavesOnly: false};\ntype SpecifiedOptions = {leavesOnly: 'yes'};\n\ntype Result = ApplyDefaultOptions<PathsOptions, DefaultPathsOptions, SpecifiedOptions>;\n// ~~~~~~~~~~~~~~~~\n// Types of property 'leavesOnly' are incompatible. Type 'string' is not assignable to type 'boolean'.\n```\n*/\nexport type ApplyDefaultOptions<\n\tOptions extends object,\n\tDefaults extends Simplify<Omit<Required<Options>, RequiredKeysOf<Options>> & Partial<Record<RequiredKeysOf<Options>, never>>>,\n\tSpecifiedOptions extends Options,\n> =\n\tIf<IsAny<SpecifiedOptions>, Defaults,\n\t\tIf<IsNever<SpecifiedOptions>, Defaults,\n\t\t\tSimplify<Merge<Defaults, {\n\t\t\t\t[Key in keyof SpecifiedOptions\n\t\t\t\tas Key extends OptionalKeysOf<Options> ? undefined extends SpecifiedOptions[Key] ? never : Key : Key\n\t\t\t\t]: SpecifiedOptions[Key]\n\t\t\t}> & Required<Options>>>>; // `& Required<Options>` ensures that `ApplyDefaultOptions<SomeOption, ...>` is always assignable to `Required<SomeOption>`\n\n/**\nCollapses literal types in a union into their corresponding primitive types, when possible. For example, `CollapseLiterals<'foo' | 'bar' | (string & {})>` returns `string`.\n\nNote: This doesn't collapse literals within tagged types. For example, `CollapseLiterals<Tagged<'foo' | (string & {}), 'Tag'>>` returns `(\"foo\" & Tag<\"Tag\", never>) | (string & Tag<\"Tag\", never>)` and not `string & Tag<\"Tag\", never>`.\n\nUse-case: For collapsing unions created using {@link LiteralUnion}.\n\n@example\n```\nimport type {LiteralUnion} from 'type-fest';\n\ntype A = CollapseLiterals<'foo' | 'bar' | (string & {})>;\n//=> string\n\ntype B = CollapseLiterals<LiteralUnion<1 | 2 | 3, number>>;\n//=> number\n\ntype C = CollapseLiterals<LiteralUnion<'onClick' | 'onChange', `on${string}`>>;\n//=> `on${string}`\n\ntype D = CollapseLiterals<'click' | 'change' | (`on${string}` & {})>;\n//=> 'click' | 'change' | `on${string}`\n\ntype E = CollapseLiterals<LiteralUnion<'foo' | 'bar', string> | null | undefined>;\n//=> string | null | undefined\n```\n*/\nexport type CollapseLiterals<T> = {} extends T\n\t? T\n\t: T extends infer U & {}\n\t\t? U\n\t\t: T;\n\n/**\nNormalize keys by including string and number representations wherever applicable.\n\n@example\n```ts\ntype A = NormalizedKeys<0 | '1'>;\n//=> 0 | '0' | 1 | '1'\n\ntype B = NormalizedKeys<string>;\n//=> string | number\n\ntype C = NormalizedKeys<number>;\n//=> number | `${number}`\n\ntype D = NormalizedKeys<symbol | 'foo'>;\n//=> symbol | 'foo'\n```\n*/\nexport type NormalizedKeys<Keys extends PropertyKey> =\n\t| Keys\n\t| (string extends Keys ? number : never)\n\t| StringToNumber<Keys & string>\n\t| ToString<Keys & number>;\n\nexport {};\n","import type {ApplyDefaultOptions} from './internal/index.d.ts';\nimport type {IsEqual} from './is-equal.d.ts';\n\n/**\nFilter out keys from an object.\n\nReturns `never` if `Exclude` is strictly equal to `Key`.\nReturns `never` if `Key` extends `Exclude`.\nReturns `Key` otherwise.\n\n@example\n```\ntype Filtered = Filter<'foo', 'foo'>;\n//=> never\n```\n\n@example\n```\ntype Filtered = Filter<'bar', string>;\n//=> never\n```\n\n@example\n```\ntype Filtered = Filter<'bar', 'foo'>;\n//=> 'bar'\n```\n\n@see {Except}\n*/\ntype Filter<KeyType, ExcludeType> = IsEqual<KeyType, ExcludeType> extends true ? never : (KeyType extends ExcludeType ? never : KeyType);\n\nexport type ExceptOptions = {\n\t/**\n\tDisallow assigning non-specified properties.\n\n\tNote that any omitted properties in the resulting type will be present in autocomplete as `undefined`.\n\n\t@default false\n\t*/\n\trequireExactProps?: boolean;\n};\n\ntype DefaultExceptOptions = {\n\trequireExactProps: false;\n};\n\n/**\nCreate a type from an object type without certain keys.\n\nWe recommend setting the `requireExactProps` option to `true`.\n\nThis type is a stricter version of [`Omit`](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-5.html#the-omit-helper-type). The `Omit` type does not restrict the omitted keys to be keys present on the given type, while `Except` does. The benefits of a stricter type are avoiding typos and allowing the compiler to pick up on rename refactors automatically.\n\nThis type was proposed to the TypeScript team, which declined it, saying they prefer that libraries implement stricter versions of the built-in types ([microsoft/TypeScript#30825](https://github.com/microsoft/TypeScript/issues/30825#issuecomment-523668235)).\n\n@example\n```\nimport type {Except} from 'type-fest';\n\ntype Foo = {\n\ta: number;\n\tb: string;\n};\n\ntype FooWithoutA = Except<Foo, 'a'>;\n//=> {b: string}\n\n// @ts-expect-error\nconst fooWithoutA: FooWithoutA = {a: 1, b: '2'};\n// errors: 'a' does not exist in type '{ b: string; }'\n\ntype FooWithoutB = Except<Foo, 'b', {requireExactProps: true}>;\n//=> {a: number} & Partial<Record<'b', never>>\n\n// @ts-expect-error\nconst fooWithoutB: FooWithoutB = {a: 1, b: '2'};\n// errors at 'b': Type 'string' is not assignable to type 'undefined'.\n\n// The `Omit` utility type doesn't work when omitting specific keys from objects containing index signatures.\n\n// Consider the following example:\n\ntype UserData = {\n\t[metadata: string]: string;\n\temail: string;\n\tname: string;\n\trole: 'admin' | 'user';\n};\n\n// `Omit` clearly doesn't behave as expected in this case:\ntype PostPayload = Omit<UserData, 'email'>;\n//=> {[x: string]: string; [x: number]: string}\n\n// In situations like this, `Except` works better.\n// It simply removes the `email` key while preserving all the other keys.\ntype PostPayloadFixed = Except<UserData, 'email'>;\n//=> {[x: string]: string; name: string; role: 'admin' | 'user'}\n```\n\n@category Object\n*/\nexport type Except<ObjectType, KeysType extends keyof ObjectType, Options extends ExceptOptions = {}> =\n\t_Except<ObjectType, KeysType, ApplyDefaultOptions<ExceptOptions, DefaultExceptOptions, Options>>;\n\ntype _Except<ObjectType, KeysType extends keyof ObjectType, Options extends Required<ExceptOptions>> = {\n\t[KeyType in keyof ObjectType as Filter<KeyType, KeysType>]: ObjectType[KeyType];\n} & (Options['requireExactProps'] extends true\n\t? Partial<Record<KeysType, never>>\n\t: {});\n\nexport {};\n"],"x_google_ignoreList":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],"mappings":";;AAiBA;;;;;;;;;ACsBA;;;;;;;KDtBYA;;AEWZ;;AFPCC;;AGqBD;AAAA,EAAmEW,CAAAA,gBAAAA,EHlB5CX,KGkB4CW,EAAAA,GAAAA;AAC5DA;AAAAA,EAAOC;AAAbH;AACGG;AAAAA,CAAkBD,SAAAA,CAAAA,CAAAA,kBAAAA,EAAAA,KAAAA,aAAAA,EAAAA,GAAAA,IAAAA;AACjBA;AAAAA,EHdFV,YGcsBW,GHdPZ,KGcOY,GAAKD,KAAAA;;;;;;;;;;;AFN9B;;;;;;;;;ACXA;;;;ACcA;;;;;;;;;;;;;;;;ACPYI,KHIAZ,WGJc,CAAA,UAAAa,CAAAA;AACzBA;AACyBA,MHIlBd,mBGJkBc,CHIEZ,UGJFY,SAAAA,OAAAA,GHI+BX,MGJ/BW,CAAAA,MHI4CZ,UGJ5CY,EAAAA,KAAAA,CAAAA,GAAAA,KAAAA,CAAAA;;;;AJpB1B;;;;;;;;;ACsBA;;;;;;;;;ACXA;;;;ACcA;;;;;AAEIJ,KDhBQN,KCgBRM,CAAAA,CAAAA,CAAAA,GAAAA,CAAAA,SAAAA,CAAAA,GDhBiCJ,OCgBjC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