@softistx/alxia-react-router 0.89.4 → 0.90.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +31 -2
- package/dist/chunks/{index-1nw5yeek.js → index-qkyt0bka.js} +3 -3
- package/dist/chunks/{index-1nw5yeek.js.map → index-qkyt0bka.js.map} +1 -1
- package/dist/chunks/index-w61bjnkw.js +1019 -0
- package/dist/chunks/index-w61bjnkw.js.map +27 -0
- package/dist/clavix/api-url.d.ts +43 -0
- package/dist/clavix/api-url.d.ts.map +1 -0
- package/dist/clavix/client.d.ts +22 -0
- package/dist/clavix/client.d.ts.map +1 -0
- package/dist/clavix/core.d.ts +39 -0
- package/dist/clavix/core.d.ts.map +1 -0
- package/dist/clavix/env.d.ts +26 -0
- package/dist/clavix/env.d.ts.map +1 -0
- package/dist/clavix/index.d.ts +19 -0
- package/dist/clavix/index.d.ts.map +1 -0
- package/dist/clavix/index.js +673 -0
- package/dist/clavix/index.js.map +22 -0
- package/dist/clavix/landing.d.ts +67 -0
- package/dist/clavix/landing.d.ts.map +1 -0
- package/dist/clavix/messages.d.ts +53 -0
- package/dist/clavix/messages.d.ts.map +1 -0
- package/dist/clavix/notice.d.ts +32 -0
- package/dist/clavix/notice.d.ts.map +1 -0
- package/dist/clavix/refusal.d.ts +29 -0
- package/dist/clavix/refusal.d.ts.map +1 -0
- package/dist/clavix/relay.d.ts +41 -0
- package/dist/clavix/relay.d.ts.map +1 -0
- package/dist/clavix/routes.d.ts +5 -0
- package/dist/clavix/routes.d.ts.map +1 -0
- package/dist/clavix/send.d.ts +32 -0
- package/dist/clavix/send.d.ts.map +1 -0
- package/dist/clavix/state.d.ts +20 -0
- package/dist/clavix/state.d.ts.map +1 -0
- package/dist/clavix/types.d.ts +97 -0
- package/dist/clavix/types.d.ts.map +1 -0
- package/dist/clavix/viewer.d.ts +12 -0
- package/dist/clavix/viewer.d.ts.map +1 -0
- package/dist/fetcher/auth-refusal.d.ts +5 -1
- package/dist/fetcher/auth-refusal.d.ts.map +1 -1
- package/dist/fetcher/index.js +2 -5
- package/dist/fetcher/index.js.map +3 -3
- package/dist/oidc/index.js +23 -1025
- package/dist/oidc/index.js.map +3 -21
- package/dist/session/index.js +1 -1
- package/docs/README.md +2 -1
- package/docs/guide/clavix.md +332 -0
- package/docs/guide/fetcher.md +4 -0
- package/docs/guide/oidc.md +3 -0
- package/docs/roadmap.md +6 -0
- package/docs/troubleshooting.md +41 -0
- package/package.json +8 -2
|
@@ -11,7 +11,8 @@ export type AuthAnswer = {
|
|
|
11
11
|
/**
|
|
12
12
|
* The refusal an auth form or notice takes back from its `onSubmit`:
|
|
13
13
|
* `form` (the message above the form), `retryAfter` (seconds to wait) and
|
|
14
|
-
* the field's word under its own name.
|
|
14
|
+
* the field's word under its own name. A refusal with a `retryAfter` carries
|
|
15
|
+
* no `form`: the forms word the wait themselves.
|
|
15
16
|
*/
|
|
16
17
|
export type AuthRefusal<F extends string = string> = {
|
|
17
18
|
form?: string | undefined;
|
|
@@ -24,6 +25,9 @@ export type AuthRefusal<F extends string = string> = {
|
|
|
24
25
|
* `fields` lists the names to carry over from `fieldErrors`; any other field
|
|
25
26
|
* error is left out. Returns `undefined` for an answer that is not a refusal
|
|
26
27
|
* (`sent` is true), so `return authRefusal(answer, [...])` accepts the form.
|
|
28
|
+
* When `retryAfter` is set, `formError` is left out: material's auth forms
|
|
29
|
+
* word the wait ("Too many tries. Try again in {time}.") with their own live
|
|
30
|
+
* countdown, and a `form` message would be shown beside it, saying it twice.
|
|
27
31
|
*/
|
|
28
32
|
export declare function authRefusal<const F extends string>(answer: AuthAnswer, fields: readonly F[]): AuthRefusal<F> | undefined;
|
|
29
33
|
//# sourceMappingURL=auth-refusal.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth-refusal.d.ts","sourceRoot":"","sources":["../../src/fetcher/auth-refusal.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,MAAM,UAAU,GAAG;IACxB,IAAI,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,WAAW,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC,CAAC;CAC3D,CAAC;AAEF
|
|
1
|
+
{"version":3,"file":"auth-refusal.d.ts","sourceRoot":"","sources":["../../src/fetcher/auth-refusal.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,MAAM,UAAU,GAAG;IACxB,IAAI,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,WAAW,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC,CAAC;CAC3D,CAAC;AAEF;;;;;GAKG;AACH,MAAM,MAAM,WAAW,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,IAAI;IACpD,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAChC,GAAG;KAAG,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,MAAM,GAAG,SAAS;CAAE,CAAC;AAEtC;;;;;;;;GAQG;AACH,wBAAgB,WAAW,CAAC,KAAK,CAAC,CAAC,SAAS,MAAM,EACjD,MAAM,EAAE,UAAU,EAClB,MAAM,EAAE,SAAS,CAAC,EAAE,GAClB,WAAW,CAAC,CAAC,CAAC,GAAG,SAAS,CAQ5B"}
|
package/dist/fetcher/index.js
CHANGED
|
@@ -12,10 +12,7 @@ import {
|
|
|
12
12
|
function authRefusal(answer, fields) {
|
|
13
13
|
if (answer.sent)
|
|
14
14
|
return;
|
|
15
|
-
const refusal = {
|
|
16
|
-
form: answer.formError,
|
|
17
|
-
retryAfter: answer.retryAfter
|
|
18
|
-
};
|
|
15
|
+
const refusal = answer.retryAfter === undefined ? { form: answer.formError, retryAfter: undefined } : { retryAfter: answer.retryAfter };
|
|
19
16
|
for (const field of fields)
|
|
20
17
|
refusal[field] = answer.fieldErrors?.[field];
|
|
21
18
|
return refusal;
|
|
@@ -386,5 +383,5 @@ export {
|
|
|
386
383
|
useVisibleRevalidation
|
|
387
384
|
};
|
|
388
385
|
|
|
389
|
-
//# debugId=
|
|
386
|
+
//# debugId=B1F6D73E20F0B28964756E2164756E21
|
|
390
387
|
//# sourceMappingURL=index.js.map
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../src/fetcher/auth-refusal.ts", "../src/fetcher/section-save.ts", "../src/fetcher/use-debounced-fetcher.ts", "../src/fetcher/use-fetcher-done.ts", "../src/fetcher/use-form-refusal.ts", "../src/fetcher/use-revalidate-on-focus.ts", "../src/fetcher/use-row-save.ts", "../src/fetcher/use-section-save.ts", "../src/fetcher/section-form.ts", "../src/fetcher/section-reload.ts", "../src/fetcher/use-visible-interval.ts", "../src/fetcher/use-visible-revalidation.ts"],
|
|
4
4
|
"sourcesContent": [
|
|
5
|
-
"/**\n * What an auth route action answers when the page stays: a message, a wait,\n * a field's word. `sent` marks the answer that is not a refusal.\n */\nexport type AuthAnswer = {\n\tsent?: boolean | undefined;\n\tformError?: string | undefined;\n\tretryAfter?: number | undefined;\n\tfieldErrors?: Readonly<Record<string, string | undefined>>;\n};\n\n/**\n * The refusal an auth form or notice takes back from its `onSubmit`:\n * `form` (the message above the form), `retryAfter` (seconds to wait) and\n * the field's word under its own name.\n */\nexport type AuthRefusal<F extends string = string> = {\n\tform?: string | undefined;\n\tretryAfter?: number | undefined;\n} & { [K in F]?: string | undefined };\n\n/**\n * Maps a route action's answer to the refusal shape of an auth form.\n * `fields` lists the names to carry over from `fieldErrors`; any other field\n * error is left out. Returns `undefined` for an answer that is not a refusal\n * (`sent` is true), so `return authRefusal(answer, [...])` accepts the form.\n */\nexport function authRefusal<const F extends string>(\n\tanswer: AuthAnswer,\n\tfields: readonly F[],\n): AuthRefusal<F> | undefined {\n\tif (answer.sent) return undefined;\n\tconst refusal: Record<string, string | number | undefined>
|
|
5
|
+
"/**\n * What an auth route action answers when the page stays: a message, a wait,\n * a field's word. `sent` marks the answer that is not a refusal.\n */\nexport type AuthAnswer = {\n\tsent?: boolean | undefined;\n\tformError?: string | undefined;\n\tretryAfter?: number | undefined;\n\tfieldErrors?: Readonly<Record<string, string | undefined>>;\n};\n\n/**\n * The refusal an auth form or notice takes back from its `onSubmit`:\n * `form` (the message above the form), `retryAfter` (seconds to wait) and\n * the field's word under its own name. A refusal with a `retryAfter` carries\n * no `form`: the forms word the wait themselves.\n */\nexport type AuthRefusal<F extends string = string> = {\n\tform?: string | undefined;\n\tretryAfter?: number | undefined;\n} & { [K in F]?: string | undefined };\n\n/**\n * Maps a route action's answer to the refusal shape of an auth form.\n * `fields` lists the names to carry over from `fieldErrors`; any other field\n * error is left out. Returns `undefined` for an answer that is not a refusal\n * (`sent` is true), so `return authRefusal(answer, [...])` accepts the form.\n * When `retryAfter` is set, `formError` is left out: material's auth forms\n * word the wait (\"Too many tries. Try again in {time}.\") with their own live\n * countdown, and a `form` message would be shown beside it, saying it twice.\n */\nexport function authRefusal<const F extends string>(\n\tanswer: AuthAnswer,\n\tfields: readonly F[],\n): AuthRefusal<F> | undefined {\n\tif (answer.sent) return undefined;\n\tconst refusal: Record<string, string | number | undefined> =\n\t\tanswer.retryAfter === undefined\n\t\t\t? { form: answer.formError, retryAfter: undefined }\n\t\t\t: { retryAfter: answer.retryAfter };\n\tfor (const field of fields) refusal[field] = answer.fieldErrors?.[field];\n\treturn refusal as AuthRefusal<F>;\n}\n",
|
|
6
6
|
"import type { FormErrors } from '../errors/form-errors';\nimport type { SectionResult } from '../errors/section-action';\n\n/** The refusal of a section save. */\nexport type SectionRefusal = Extract<SectionResult, { ok: false }>;\n\n/** The answer when it is a refusal, else `undefined`. */\nexport const refusalOf = (\n\tresult: SectionResult | undefined,\n): SectionRefusal | undefined => (result && !result.ok ? result : undefined);\n\n/**\n * The messages to put under the section's fields. The rest of a refusal, and\n * a stale version, are the section's notice.\n */\nexport function fieldErrorsOf(\n\tresult: SectionResult | undefined,\n): FormErrors | undefined {\n\tconst refusal = refusalOf(result);\n\tif (!refusal || refusal.stale) return undefined;\n\treturn { fieldErrors: refusal.fieldErrors };\n}\n\n/**\n * What a section shows above its fields, as data for the app's own\n * component: a version conflict (`stale`: the record changed since it was\n * read, `reload` reads it again and refills the form), or the refusal's\n * message when it has one beyond the field messages.\n */\nexport type SectionNotice =\n\t| { kind: 'stale'; reload: () => void }\n\t| { kind: 'error'; message: string };\n\n/** The notice of a refusal, or `undefined` when the field messages say it all. */\nexport function noticeOf(\n\trefusal: SectionRefusal | undefined,\n\treload: () => void,\n): SectionNotice | undefined {\n\tif (!refusal) return undefined;\n\tif (refusal.stale) return { kind: 'stale', reload };\n\treturn refusal.error ? { kind: 'error', message: refusal.error } : undefined;\n}\n",
|
|
7
7
|
"import {\n\tstartTransition,\n\tuseCallback,\n\tuseEffect,\n\tuseLayoutEffect,\n\tuseRef,\n\tuseState,\n} from 'react';\nimport { useFetcher } from 'react-router';\n\n/** What `useFetcher<Data>` hands back as `data` (`Data` may be `typeof loader`). */\ntype FetcherData<Data> = ReturnType<typeof useFetcher<Data>>['data'];\n\n/** What `useDebouncedFetcher` is doing for the value typed. */\nexport type DebouncedFetcherState =\n\t/** Nothing to ask: disabled, or the value is shorter than `minLength`. */\n\t| 'idle'\n\t/** The value changed and the pause after the last change is running. */\n\t| 'waiting'\n\t/** The resource route is loading. */\n\t| 'loading'\n\t/** The route answered for the value as it stands. */\n\t| 'done';\n\nexport interface DebouncedFetcherOptions<Data = unknown> {\n\t/** Pause after the last change before the route is asked. Default 250. */\n\treadonly delayMs?: number;\n\t/** The trimmed value must have this many characters. Default 1. */\n\treadonly minLength?: number;\n\t/** `false` asks nothing and forgets the previous answer. Default `true`. */\n\treadonly enabled?: boolean;\n\t/** The fetcher's key, to share it with another component. */\n\treadonly key?: string;\n\t/**\n\t * Which answers may be kept as the stale `data` while the next value waits\n\t * or loads. Default: all. An answer it refuses (a failure) is still `data`\n\t * while it is the current one, but is never shown as the previous one: after a refused answer, the stale\n\t * data is the last *kept* answer, not the refused one.\n\t */\n\treadonly keep?: (data: NonNullable<FetcherData<Data>>) => boolean;\n}\n\nexport interface DebouncedFetcher<Data> {\n\t/**\n\t * The route's answer for the value as it stands, else (`stale`) the last\n\t * answer for an earlier value, kept until the new one lands. `undefined`\n\t * before any answer, and again once the hook goes `idle`.\n\t */\n\treadonly data: FetcherData<Data>;\n\t/** `data` answers an earlier value (or none is current yet). */\n\treadonly stale: boolean;\n\treadonly state: DebouncedFetcherState;\n\t/** Asks the route again for the value as it stands, without waiting. */\n\treadonly retry: () => void;\n}\n\n/**\n * A resource route loaded through a fetcher for a value that changes as the\n * user types. After `delayMs` without a change, and from `minLength`\n * characters, it calls `fetcher.load` once (a newer load cancels the\n * previous one). An answer only counts for the value it was asked for: while\n * a newer value waits or loads, `data` is the previous answer with `stale`\n * set, and an answer for an older value is never returned as current.\n * `to` is the route's URL, or a function of the trimmed value that builds it\n * (a string without a function is loaded as it is, the value being only the\n * trigger). A refusal the route answers as data is `data` like any answer.\n */\nexport function useDebouncedFetcher<Data>(\n\tvalue: string,\n\tto: string | ((value: string) => string),\n\toptions: DebouncedFetcherOptions<Data> = {},\n): DebouncedFetcher<Data> {\n\tconst { delayMs = 250, minLength = 1, enabled = true, key, keep } = options;\n\tconst keepRef = useRef(keep);\n\tkeepRef.current = keep;\n\tconst fetcher = useFetcher<Data>(key === undefined ? undefined : { key });\n\tconst load = useRef(fetcher.load);\n\tload.current = fetcher.load;\n\tconst text = value.trim();\n\tconst url =\n\t\tenabled && text.length >= minLength\n\t\t\t? typeof to === 'function'\n\t\t\t\t? to(text)\n\t\t\t\t: to\n\t\t\t: null;\n\t// The URL the fetcher was last told to load.\n\tconst [loaded, setLoaded] = useState<string | null>(null);\n\tconst previous = useRef<FetcherData<Data>>(undefined);\n\t// React Router applies the fetcher's `loading` state in a transition, so\n\t// right after `load()` a render can still show `idle` and the previous\n\t// answer. A load has landed only once the fetcher was seen busy for that very load (the load number is kept, so a busy render of a superseded load does not count), or\n\t// its `load()` promise settled and a transition queued after it committed\n\t// (a fast load whose busy state was never rendered, or a route answering\n\t// the very same object twice). `seq` numbers the loads, so a superseded\n\t// one never counts.\n\tconst seq = useRef(0);\n\tconst [settled, setSettled] = useState(0);\n\tconst busySeq = useRef(0);\n\tuseLayoutEffect(() => {\n\t\tif (fetcher.state !== 'idle') busySeq.current = seq.current;\n\t}, [fetcher.state]);\n\tconst ask = (target: string) => {\n\t\tconst mine = ++seq.current;\n\t\tsetLoaded(target);\n\t\tvoid Promise.resolve(load.current(target)).then(() => {\n\t\t\tif (mine === seq.current) startTransition(() => setSettled(mine));\n\t\t});\n\t};\n\tconst askRef = useRef(ask);\n\taskRef.current = ask;\n\n\tuseEffect(() => {\n\t\tif (url === null) {\n\t\t\tprevious.current = undefined;\n\t\t\tsetLoaded(null);\n\t\t\treturn;\n\t\t}\n\t\tconst timer = setTimeout(() => {\n\t\t\taskRef.current(url);\n\t\t}, delayMs);\n\t\treturn () => clearTimeout(timer);\n\t}, [url, text, delayMs]);\n\n\tconst landed =\n\t\tfetcher.state === 'idle' &&\n\t\t(busySeq.current === seq.current || settled === seq.current);\n\tconst current =\n\t\turl !== null && loaded === url && landed && fetcher.data !== undefined;\n\tconst answer = current ? fetcher.data : undefined;\n\tuseEffect(() => {\n\t\tif (answer === undefined || answer === null) return;\n\t\tif (keepRef.current?.(answer) ?? true) previous.current = answer;\n\t}, [answer]);\n\n\tconst data = current ? answer : url === null ? undefined : previous.current;\n\tlet state: DebouncedFetcherState;\n\tif (url === null) state = 'idle';\n\telse if (loaded !== url) state = 'waiting';\n\telse state = landed ? 'done' : 'loading';\n\n\tconst urlRef = useRef(url);\n\turlRef.current = url;\n\tconst retry = useCallback(() => {\n\t\tconst now = urlRef.current;\n\t\tif (now === null) return;\n\t\taskRef.current(now);\n\t}, []);\n\treturn { data, stale: state !== 'done' && data !== undefined, state, retry };\n}\n",
|
|
8
8
|
"import { useEffect, useRef } from 'react';\nimport type { AnswerSource } from './use-fetcher-answer';\n\n/**\n * Runs `onDone` once for each new answer of a fetcher that `isDone` accepts:\n * a save that succeeded, to close the dialog or section that sent it. A\n * fetcher keeps its last data, so an effect on `fetcher.data` alone fires\n * again when the dialog opens again; here the data present at mount counts as\n * handled, and each answer is handled once, whether `isDone` accepts it or not\n * (a refusal is not replayed when a later render flips the predicate).\n *\n * The answer is looked at while `fetcher.state` is `'idle'` only. `isDone` and\n * `onDone` are read from refs, so a new function each render never re-fires\n * the hook, and the latest ones run.\n */\nexport function useFetcherDone<Data>(\n\tfetcher: AnswerSource<Data>,\n\tisDone: (data: Data) => boolean,\n\tonDone: () => void,\n): void {\n\tconst handled = useRef<unknown>(fetcher.data);\n\tconst predicate = useRef(isDone);\n\tconst callback = useRef(onDone);\n\tpredicate.current = isDone;\n\tcallback.current = onDone;\n\tconst { state, data } = fetcher;\n\tuseEffect(() => {\n\t\tif (state !== 'idle' || data === handled.current) {\n\t\t\treturn;\n\t\t}\n\t\thandled.current = data;\n\t\tif (data !== undefined && data !== null && predicate.current(data)) {\n\t\t\tcallback.current();\n\t\t}\n\t}, [state, data]);\n}\n",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"import { useEffect, useRef } from 'react';\n\nexport interface VisibleIntervalOptions {\n\t/** `false` stops the timer. Default `true`. */\n\treadonly enabled?: boolean;\n\t/**\n\t * Run the callback as soon as a hidden page becomes visible again, when at\n\t * least the interval has passed since its last run. Default `true`.\n\t */\n\treadonly runOnVisible?: boolean;\n}\n\n/**\n * Runs `callback` every `ms` **only while the page is visible**\n * (`document.visibilityState`), for a screen that has no real-time channel\n * (a revalidation, a fetcher's `load`). A tick that fires while the page is\n * hidden is skipped; when the page becomes visible again after at least `ms`\n * since the last run, the callback runs at once (`runOnVisible`); a page that\n * comes back sooner waits for the next tick. The timer and the listener are\n * cleared on unmount and while `enabled` is false. `ms` must be positive.\n *\n * The callback is read from a ref: a new function each render never restarts\n * the timer, and the latest one runs. Skipping a read already in flight is the\n * callback's to decide. On the server nothing starts (effects do not run).\n */\nexport function useVisibleInterval(\n\tcallback: () => void,\n\tms: number,\n\toptions: VisibleIntervalOptions = {},\n): void {\n\tconst { enabled = true, runOnVisible = true } = options;\n\tconst latest = useRef(callback);\n\tlatest.current = callback;\n\n\tuseEffect(() => {\n\t\tif (!enabled || ms <= 0) return;\n\t\tlet last = Date.now();\n\t\tconst run = () => {\n\t\t\tif (document.visibilityState !== 'visible') return;\n\t\t\tlast = Date.now();\n\t\t\tlatest.current();\n\t\t};\n\t\tconst timer = setInterval(run, ms);\n\t\tconst back = () => {\n\t\t\tif (runOnVisible && Date.now() - last >= ms) run();\n\t\t};\n\t\tdocument.addEventListener('visibilitychange', back);\n\t\treturn () => {\n\t\t\tclearInterval(timer);\n\t\t\tdocument.removeEventListener('visibilitychange', back);\n\t\t};\n\t}, [ms, enabled, runOnVisible]);\n}\n",
|
|
16
16
|
"import { useRevalidator } from 'react-router';\nimport {\n\tuseVisibleInterval,\n\ttype VisibleIntervalOptions,\n} from './use-visible-interval';\n\n/**\n * Runs the current route's loaders again every `ms`, **only while the page is\n * visible**, and at once when a hidden page comes back after more than `ms`\n * (`useVisibleInterval` over React Router's `useRevalidator`). A revalidation\n * already in flight is not doubled. `enabled: false` stops it (a menu is open,\n * a change is in flight).\n */\nexport function useVisibleRevalidation(\n\tms: number,\n\toptions?: Pick<VisibleIntervalOptions, 'enabled'>,\n): void {\n\tconst revalidator = useRevalidator();\n\tuseVisibleInterval(\n\t\t() => {\n\t\t\tif (revalidator.state === 'idle') void revalidator.revalidate();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