@tamagui/field 0.0.0-bootstrap.0 → 3.0.0-beta.643.1

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 (79) hide show
  1. package/LICENSE +21 -0
  2. package/dist/cjs/Field.cjs +857 -0
  3. package/dist/cjs/Field.native.cjs +1018 -0
  4. package/dist/cjs/Field.native.js +1020 -0
  5. package/dist/cjs/Field.native.js.map +1 -0
  6. package/dist/cjs/FieldContext.cjs +86 -0
  7. package/dist/cjs/FieldContext.native.cjs +90 -0
  8. package/dist/cjs/FieldContext.native.js +92 -0
  9. package/dist/cjs/FieldContext.native.js.map +1 -0
  10. package/dist/cjs/index.cjs +21 -0
  11. package/dist/cjs/index.native.cjs +23 -0
  12. package/dist/cjs/index.native.js +25 -0
  13. package/dist/cjs/index.native.js.map +1 -0
  14. package/dist/cjs/types.cjs +17 -0
  15. package/dist/cjs/types.native.cjs +19 -0
  16. package/dist/cjs/types.native.js +21 -0
  17. package/dist/cjs/types.native.js.map +1 -0
  18. package/dist/cjs/validation.cjs +114 -0
  19. package/dist/cjs/validation.native.cjs +126 -0
  20. package/dist/cjs/validation.native.js +128 -0
  21. package/dist/cjs/validation.native.js.map +1 -0
  22. package/dist/esm/Field.mjs +824 -0
  23. package/dist/esm/Field.mjs.map +1 -0
  24. package/dist/esm/Field.native.js +983 -0
  25. package/dist/esm/Field.native.js.map +1 -0
  26. package/dist/esm/FieldContext.mjs +51 -0
  27. package/dist/esm/FieldContext.mjs.map +1 -0
  28. package/dist/esm/FieldContext.native.js +53 -0
  29. package/dist/esm/FieldContext.native.js.map +1 -0
  30. package/dist/esm/index.js +5 -0
  31. package/dist/esm/index.mjs +5 -0
  32. package/dist/esm/index.native.js +5 -0
  33. package/dist/esm/types.mjs +0 -0
  34. package/dist/esm/types.native.js +0 -0
  35. package/dist/esm/validation.mjs +86 -0
  36. package/dist/esm/validation.mjs.map +1 -0
  37. package/dist/esm/validation.native.js +96 -0
  38. package/dist/esm/validation.native.js.map +1 -0
  39. package/dist/jsx/Field.mjs +824 -0
  40. package/dist/jsx/Field.mjs.map +1 -0
  41. package/dist/jsx/Field.native.cjs +1018 -0
  42. package/dist/jsx/Field.native.js +1020 -0
  43. package/dist/jsx/Field.native.js.map +1 -0
  44. package/dist/jsx/FieldContext.mjs +51 -0
  45. package/dist/jsx/FieldContext.mjs.map +1 -0
  46. package/dist/jsx/FieldContext.native.cjs +90 -0
  47. package/dist/jsx/FieldContext.native.js +92 -0
  48. package/dist/jsx/FieldContext.native.js.map +1 -0
  49. package/dist/jsx/index.js +5 -0
  50. package/dist/jsx/index.mjs +5 -0
  51. package/dist/jsx/index.native.cjs +23 -0
  52. package/dist/jsx/index.native.js +25 -0
  53. package/dist/jsx/index.native.js.map +1 -0
  54. package/dist/jsx/types.mjs +0 -0
  55. package/dist/jsx/types.native.cjs +19 -0
  56. package/dist/jsx/types.native.js +21 -0
  57. package/dist/jsx/types.native.js.map +1 -0
  58. package/dist/jsx/validation.mjs +86 -0
  59. package/dist/jsx/validation.mjs.map +1 -0
  60. package/dist/jsx/validation.native.cjs +126 -0
  61. package/dist/jsx/validation.native.js +128 -0
  62. package/dist/jsx/validation.native.js.map +1 -0
  63. package/package.json +50 -5
  64. package/src/Field.tsx +1129 -0
  65. package/src/FieldContext.tsx +61 -0
  66. package/src/index.ts +3 -0
  67. package/src/types.ts +125 -0
  68. package/src/validation.ts +136 -0
  69. package/types/Field.d.ts +401 -0
  70. package/types/Field.d.ts.map +1 -0
  71. package/types/FieldContext.d.ts +11 -0
  72. package/types/FieldContext.d.ts.map +1 -0
  73. package/types/index.d.ts +4 -0
  74. package/types/index.d.ts.map +1 -0
  75. package/types/types.d.ts +112 -0
  76. package/types/types.d.ts.map +1 -0
  77. package/types/validation.d.ts +24 -0
  78. package/types/validation.d.ts.map +1 -0
  79. package/README.md +0 -1
@@ -0,0 +1,114 @@
1
+
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all) __defProp(target, name, {
8
+ get: all[name],
9
+ enumerable: true
10
+ });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
15
+ get: () => from[key],
16
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
17
+ });
18
+ }
19
+ return to;
20
+ };
21
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
22
+ var validation_exports = {};
23
+ __export(validation_exports, {
24
+ createDefaultValidityState: () => createDefaultValidityState,
25
+ createValidationCommitter: () => createValidationCommitter,
26
+ getValidationResult: () => getValidationResult,
27
+ isFilled: () => isFilled,
28
+ normalizeNativeValidity: () => normalizeNativeValidity,
29
+ shouldValidateOnChange: () => shouldValidateOnChange
30
+ });
31
+ module.exports = __toCommonJS(validation_exports);
32
+ function createDefaultValidityState(valid = null) {
33
+ return {
34
+ badInput: false,
35
+ customError: false,
36
+ patternMismatch: false,
37
+ rangeOverflow: false,
38
+ rangeUnderflow: false,
39
+ stepMismatch: false,
40
+ tooLong: false,
41
+ tooShort: false,
42
+ typeMismatch: false,
43
+ valueMissing: false,
44
+ valid
45
+ };
46
+ }
47
+ function normalizeNativeValidity(state, showValueMissing) {
48
+ if (showValueMissing || !state.valueMissing) {
49
+ return { ...state };
50
+ }
51
+ const hasAnotherError = Object.entries(state).some(([key, value]) => key !== "valid" && key !== "valueMissing" && value);
52
+ if (hasAnotherError) {
53
+ return { ...state };
54
+ }
55
+ return {
56
+ ...state,
57
+ valueMissing: false,
58
+ valid: true
59
+ };
60
+ }
61
+ function isFilled(value) {
62
+ if (value === null || value === void 0 || value === false) {
63
+ return false;
64
+ }
65
+ if (typeof value === "string" || Array.isArray(value)) {
66
+ return value.length > 0;
67
+ }
68
+ return true;
69
+ }
70
+ function shouldValidateOnChange(mode, submitAttempted) {
71
+ return mode === "onChange" || mode === "onSubmit" && submitAttempted;
72
+ }
73
+ function isPromiseLike(value) {
74
+ return Boolean(value && (typeof value === "object" || typeof value === "function") && "then" in value && typeof value.then === "function");
75
+ }
76
+ function normalizeFunctionResult(result) {
77
+ if (result === null || result === "") {
78
+ return [];
79
+ }
80
+ return Array.isArray(result) ? result.filter(Boolean) : [result];
81
+ }
82
+ function normalizeSchemaResult(result) {
83
+ return "issues" in result && result.issues ? result.issues.map((issue) => issue.message).filter(Boolean) : [];
84
+ }
85
+ function getValidationResult(validator, value, formValues) {
86
+ if ("~standard" in validator) {
87
+ const result2 = validator["~standard"].validate(value);
88
+ return isPromiseLike(result2) ? Promise.resolve(result2).then(normalizeSchemaResult) : normalizeSchemaResult(result2);
89
+ }
90
+ const result = validator(value, formValues);
91
+ return isPromiseLike(result) ? Promise.resolve(result).then(normalizeFunctionResult) : normalizeFunctionResult(result);
92
+ }
93
+ function createValidationCommitter(commit) {
94
+ let commitId = 0;
95
+ return {
96
+ invalidate() {
97
+ commitId += 1;
98
+ },
99
+ run(value) {
100
+ commitId += 1;
101
+ const nextCommitId = commitId;
102
+ if (isPromiseLike(value)) {
103
+ return Promise.resolve(value).then((nextValue) => {
104
+ if (nextCommitId === commitId) {
105
+ commit(nextValue);
106
+ }
107
+ return nextValue;
108
+ });
109
+ }
110
+ commit(value);
111
+ return value;
112
+ }
113
+ };
114
+ }
@@ -0,0 +1,126 @@
1
+ "use strict";
2
+
3
+
4
+ var __defProp = Object.defineProperty;
5
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
+ var __getOwnPropNames = Object.getOwnPropertyNames;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all) __defProp(target, name, {
10
+ get: all[name],
11
+ enumerable: true
12
+ });
13
+ };
14
+ var __copyProps = (to, from, except, desc) => {
15
+ if (from && typeof from === "object" || typeof from === "function") {
16
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
17
+ get: () => from[key],
18
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
19
+ });
20
+ }
21
+ return to;
22
+ };
23
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
24
+ var validation_exports = {};
25
+ __export(validation_exports, {
26
+ createDefaultValidityState: () => createDefaultValidityState,
27
+ createValidationCommitter: () => createValidationCommitter,
28
+ getValidationResult: () => getValidationResult,
29
+ isFilled: () => isFilled,
30
+ normalizeNativeValidity: () => normalizeNativeValidity,
31
+ shouldValidateOnChange: () => shouldValidateOnChange
32
+ });
33
+ module.exports = __toCommonJS(validation_exports);
34
+ function _type_of(obj) {
35
+ "@swc/helpers - typeof";
36
+ return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
37
+ }
38
+ function createDefaultValidityState() {
39
+ var valid = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : null;
40
+ return {
41
+ badInput: false,
42
+ customError: false,
43
+ patternMismatch: false,
44
+ rangeOverflow: false,
45
+ rangeUnderflow: false,
46
+ stepMismatch: false,
47
+ tooLong: false,
48
+ tooShort: false,
49
+ typeMismatch: false,
50
+ valueMissing: false,
51
+ valid
52
+ };
53
+ }
54
+ function normalizeNativeValidity(state, showValueMissing) {
55
+ if (showValueMissing || !state.valueMissing) {
56
+ return { ...state };
57
+ }
58
+ var hasAnotherError = Object.entries(state).some(function(param) {
59
+ var [key, value] = param;
60
+ return key !== "valid" && key !== "valueMissing" && value;
61
+ });
62
+ if (hasAnotherError) {
63
+ return { ...state };
64
+ }
65
+ return {
66
+ ...state,
67
+ valueMissing: false,
68
+ valid: true
69
+ };
70
+ }
71
+ function isFilled(value) {
72
+ if (value === null || value === void 0 || value === false) {
73
+ return false;
74
+ }
75
+ if (typeof value === "string" || Array.isArray(value)) {
76
+ return value.length > 0;
77
+ }
78
+ return true;
79
+ }
80
+ function shouldValidateOnChange(mode, submitAttempted) {
81
+ return mode === "onChange" || mode === "onSubmit" && submitAttempted;
82
+ }
83
+ function isPromiseLike(value) {
84
+ return Boolean(value && ((typeof value === "undefined" ? "undefined" : _type_of(value)) === "object" || typeof value === "function") && "then" in value && typeof value.then === "function");
85
+ }
86
+ function normalizeFunctionResult(result) {
87
+ if (result === null || result === "") {
88
+ return [];
89
+ }
90
+ return Array.isArray(result) ? result.filter(Boolean) : [result];
91
+ }
92
+ function normalizeSchemaResult(result) {
93
+ return "issues" in result && result.issues ? result.issues.map(function(issue) {
94
+ return issue.message;
95
+ }).filter(Boolean) : [];
96
+ }
97
+ function getValidationResult(validator, value, formValues) {
98
+ if ("~standard" in validator) {
99
+ var result = validator["~standard"].validate(value);
100
+ return isPromiseLike(result) ? Promise.resolve(result).then(normalizeSchemaResult) : normalizeSchemaResult(result);
101
+ }
102
+ var result1 = validator(value, formValues);
103
+ return isPromiseLike(result1) ? Promise.resolve(result1).then(normalizeFunctionResult) : normalizeFunctionResult(result1);
104
+ }
105
+ function createValidationCommitter(commit) {
106
+ var commitId = 0;
107
+ return {
108
+ invalidate() {
109
+ commitId += 1;
110
+ },
111
+ run(value) {
112
+ commitId += 1;
113
+ var nextCommitId = commitId;
114
+ if (isPromiseLike(value)) {
115
+ return Promise.resolve(value).then(function(nextValue) {
116
+ if (nextCommitId === commitId) {
117
+ commit(nextValue);
118
+ }
119
+ return nextValue;
120
+ });
121
+ }
122
+ commit(value);
123
+ return value;
124
+ }
125
+ };
126
+ }
@@ -0,0 +1,128 @@
1
+ "use strict";
2
+
3
+
4
+ var __defProp = Object.defineProperty;
5
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
+ var __getOwnPropNames = Object.getOwnPropertyNames;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all) __defProp(target, name, {
10
+ get: all[name],
11
+ enumerable: true
12
+ });
13
+ };
14
+ var __copyProps = (to, from, except, desc) => {
15
+ if (from && typeof from === "object" || typeof from === "function") {
16
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
17
+ get: () => from[key],
18
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
19
+ });
20
+ }
21
+ return to;
22
+ };
23
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
24
+ var validation_exports = {};
25
+ __export(validation_exports, {
26
+ createDefaultValidityState: () => createDefaultValidityState,
27
+ createValidationCommitter: () => createValidationCommitter,
28
+ getValidationResult: () => getValidationResult,
29
+ isFilled: () => isFilled,
30
+ normalizeNativeValidity: () => normalizeNativeValidity,
31
+ shouldValidateOnChange: () => shouldValidateOnChange
32
+ });
33
+ module.exports = __toCommonJS(validation_exports);
34
+ function _type_of(obj) {
35
+ "@swc/helpers - typeof";
36
+ return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
37
+ }
38
+ function createDefaultValidityState() {
39
+ var valid = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : null;
40
+ return {
41
+ badInput: false,
42
+ customError: false,
43
+ patternMismatch: false,
44
+ rangeOverflow: false,
45
+ rangeUnderflow: false,
46
+ stepMismatch: false,
47
+ tooLong: false,
48
+ tooShort: false,
49
+ typeMismatch: false,
50
+ valueMissing: false,
51
+ valid
52
+ };
53
+ }
54
+ function normalizeNativeValidity(state, showValueMissing) {
55
+ if (showValueMissing || !state.valueMissing) {
56
+ return { ...state };
57
+ }
58
+ var hasAnotherError = Object.entries(state).some(function(param) {
59
+ var [key, value] = param;
60
+ return key !== "valid" && key !== "valueMissing" && value;
61
+ });
62
+ if (hasAnotherError) {
63
+ return { ...state };
64
+ }
65
+ return {
66
+ ...state,
67
+ valueMissing: false,
68
+ valid: true
69
+ };
70
+ }
71
+ function isFilled(value) {
72
+ if (value === null || value === void 0 || value === false) {
73
+ return false;
74
+ }
75
+ if (typeof value === "string" || Array.isArray(value)) {
76
+ return value.length > 0;
77
+ }
78
+ return true;
79
+ }
80
+ function shouldValidateOnChange(mode, submitAttempted) {
81
+ return mode === "onChange" || mode === "onSubmit" && submitAttempted;
82
+ }
83
+ function isPromiseLike(value) {
84
+ return Boolean(value && ((typeof value === "undefined" ? "undefined" : _type_of(value)) === "object" || typeof value === "function") && "then" in value && typeof value.then === "function");
85
+ }
86
+ function normalizeFunctionResult(result) {
87
+ if (result === null || result === "") {
88
+ return [];
89
+ }
90
+ return Array.isArray(result) ? result.filter(Boolean) : [result];
91
+ }
92
+ function normalizeSchemaResult(result) {
93
+ return "issues" in result && result.issues ? result.issues.map(function(issue) {
94
+ return issue.message;
95
+ }).filter(Boolean) : [];
96
+ }
97
+ function getValidationResult(validator, value, formValues) {
98
+ if ("~standard" in validator) {
99
+ var result = validator["~standard"].validate(value);
100
+ return isPromiseLike(result) ? Promise.resolve(result).then(normalizeSchemaResult) : normalizeSchemaResult(result);
101
+ }
102
+ var result1 = validator(value, formValues);
103
+ return isPromiseLike(result1) ? Promise.resolve(result1).then(normalizeFunctionResult) : normalizeFunctionResult(result1);
104
+ }
105
+ function createValidationCommitter(commit) {
106
+ var commitId = 0;
107
+ return {
108
+ invalidate() {
109
+ commitId += 1;
110
+ },
111
+ run(value) {
112
+ commitId += 1;
113
+ var nextCommitId = commitId;
114
+ if (isPromiseLike(value)) {
115
+ return Promise.resolve(value).then(function(nextValue) {
116
+ if (nextCommitId === commitId) {
117
+ commit(nextValue);
118
+ }
119
+ return nextValue;
120
+ });
121
+ }
122
+ commit(value);
123
+ return value;
124
+ }
125
+ };
126
+ }
127
+
128
+ //# sourceMappingURL=validation.native.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"validation.native.js","names":[],"sources":["cjs/validation.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar validation_exports = {};\n__export(validation_exports, {\n createDefaultValidityState: () => createDefaultValidityState,\n createValidationCommitter: () => createValidationCommitter,\n getValidationResult: () => getValidationResult,\n isFilled: () => isFilled,\n normalizeNativeValidity: () => normalizeNativeValidity,\n shouldValidateOnChange: () => shouldValidateOnChange\n});\nmodule.exports = __toCommonJS(validation_exports);\nfunction _type_of(obj) {\n \"@swc/helpers - typeof\";\n return obj && typeof Symbol !== \"undefined\" && obj.constructor === Symbol ? \"symbol\" : typeof obj;\n}\nfunction createDefaultValidityState() {\n var valid = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : null;\n return {\n badInput: false,\n customError: false,\n patternMismatch: false,\n rangeOverflow: false,\n rangeUnderflow: false,\n stepMismatch: false,\n tooLong: false,\n tooShort: false,\n typeMismatch: false,\n valueMissing: false,\n valid\n };\n}\nfunction normalizeNativeValidity(state, showValueMissing) {\n if (showValueMissing || !state.valueMissing) {\n return {\n ...state\n };\n }\n var hasAnotherError = Object.entries(state).some(function(param) {\n var [key, value] = param;\n return key !== \"valid\" && key !== \"valueMissing\" && value;\n });\n if (hasAnotherError) {\n return {\n ...state\n };\n }\n return {\n ...state,\n valueMissing: false,\n valid: true\n };\n}\nfunction isFilled(value) {\n if (value === null || value === void 0 || value === false) {\n return false;\n }\n if (typeof value === \"string\" || Array.isArray(value)) {\n return value.length > 0;\n }\n return true;\n}\nfunction shouldValidateOnChange(mode, submitAttempted) {\n return mode === \"onChange\" || mode === \"onSubmit\" && submitAttempted;\n}\nfunction isPromiseLike(value) {\n return Boolean(value && ((typeof value === \"undefined\" ? \"undefined\" : _type_of(value)) === \"object\" || typeof value === \"function\") && \"then\" in value && typeof value.then === \"function\");\n}\nfunction normalizeFunctionResult(result) {\n if (result === null || result === \"\") {\n return [];\n }\n return Array.isArray(result) ? result.filter(Boolean) : [\n result\n ];\n}\nfunction normalizeSchemaResult(result) {\n return \"issues\" in result && result.issues ? result.issues.map(function(issue) {\n return issue.message;\n }).filter(Boolean) : [];\n}\nfunction getValidationResult(validator, value, formValues) {\n if (\"~standard\" in validator) {\n var result = validator[\"~standard\"].validate(value);\n return isPromiseLike(result) ? Promise.resolve(result).then(normalizeSchemaResult) : normalizeSchemaResult(result);\n }\n var result1 = validator(value, formValues);\n return isPromiseLike(result1) ? Promise.resolve(result1).then(normalizeFunctionResult) : normalizeFunctionResult(result1);\n}\nfunction createValidationCommitter(commit) {\n var commitId = 0;\n return {\n invalidate() {\n commitId += 1;\n },\n run(value) {\n commitId += 1;\n var nextCommitId = commitId;\n if (isPromiseLike(value)) {\n return Promise.resolve(value).then(function(nextValue) {\n if (nextCommitId === commitId) {\n commit(nextValue);\n }\n return nextValue;\n });\n }\n commit(value);\n return value;\n }\n };\n}\n//# sourceMappingURL=validation.js.map\n"],"mappings":";;;;AACA,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,YAAY,QAAQ,QAAQ;CAC9B,KAAK,IAAI,QAAQ,KACf,UAAU,QAAQ,MAAM;EAAE,KAAK,IAAI;EAAO,YAAY;CAAK,CAAC;AAChE;AACA,IAAI,eAAe,IAAI,MAAM,QAAQ,SAAS;CAC5C,IAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY;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