@zajno/common 2.7.5 → 2.7.7
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/cjs/functions/disposer.js +10 -0
- package/cjs/functions/disposer.js.map +1 -1
- package/cjs/logger/buffered/buffered.memory.js +13 -1
- package/cjs/logger/buffered/buffered.memory.js.map +1 -1
- package/cjs/logger/loggable.js +1 -1
- package/cjs/logger/loggable.js.map +1 -1
- package/cjs/math/object/helpers.js +1 -1
- package/cjs/math/object/helpers.js.map +1 -1
- package/cjs/math/object/math.composite.js.map +1 -1
- package/cjs/math/object/math.js +1 -1
- package/cjs/math/object/math.js.map +1 -1
- package/cjs/math/object/ops.composite.js +1 -1
- package/cjs/math/object/ops.composite.js.map +1 -1
- package/cjs/math/object/ops.js +4 -3
- package/cjs/math/object/ops.js.map +1 -1
- package/cjs/structures/path/builder.helpers.js +5 -5
- package/cjs/structures/path/builder.helpers.js.map +1 -1
- package/cjs/structures/path/builder.js +3 -3
- package/cjs/structures/path/builder.js.map +1 -1
- package/cjs/structures/path/index.js +1 -1
- package/cjs/structures/path/index.js.map +1 -1
- package/cjs/structures/path/{utils.js → utils/combineUrls.js} +3 -16
- package/cjs/structures/path/utils/combineUrls.js.map +1 -0
- package/cjs/structures/path/utils/index.js +7 -0
- package/cjs/structures/path/utils/index.js.map +1 -0
- package/cjs/structures/path/utils/indexTrim.js +17 -0
- package/cjs/structures/path/utils/indexTrim.js.map +1 -0
- package/cjs/structures/path/utils/optionals.js +11 -0
- package/cjs/structures/path/utils/optionals.js.map +1 -0
- package/cjs/structures/singleton.js +44 -0
- package/cjs/structures/singleton.js.map +1 -0
- package/esm/functions/disposer.js +10 -0
- package/esm/functions/disposer.js.map +1 -1
- package/esm/logger/buffered/buffered.memory.js +13 -1
- package/esm/logger/buffered/buffered.memory.js.map +1 -1
- package/esm/logger/loggable.js +1 -1
- package/esm/logger/loggable.js.map +1 -1
- package/esm/math/object/helpers.js +1 -1
- package/esm/math/object/helpers.js.map +1 -1
- package/esm/math/object/math.composite.js.map +1 -1
- package/esm/math/object/math.js +1 -1
- package/esm/math/object/math.js.map +1 -1
- package/esm/math/object/ops.composite.js +1 -1
- package/esm/math/object/ops.composite.js.map +1 -1
- package/esm/math/object/ops.js +4 -3
- package/esm/math/object/ops.js.map +1 -1
- package/esm/structures/path/builder.helpers.js +1 -1
- package/esm/structures/path/builder.helpers.js.map +1 -1
- package/esm/structures/path/builder.js +1 -1
- package/esm/structures/path/builder.js.map +1 -1
- package/esm/structures/path/index.js +1 -1
- package/esm/structures/path/index.js.map +1 -1
- package/esm/structures/path/{utils.js → utils/combineUrls.js} +2 -14
- package/esm/structures/path/utils/combineUrls.js.map +1 -0
- package/esm/structures/path/utils/index.js +4 -0
- package/esm/structures/path/utils/index.js.map +1 -0
- package/esm/structures/path/utils/indexTrim.js +14 -0
- package/esm/structures/path/utils/indexTrim.js.map +1 -0
- package/esm/structures/path/utils/optionals.js +8 -0
- package/esm/structures/path/utils/optionals.js.map +1 -0
- package/esm/structures/singleton.js +41 -0
- package/esm/structures/singleton.js.map +1 -0
- package/package.json +7 -1
- package/tsconfig.cjs.tsbuildinfo +1 -1
- package/tsconfig.esm.tsbuildinfo +1 -1
- package/tsconfig.types.tsbuildinfo +1 -1
- package/types/functions/disposer.d.ts +3 -0
- package/types/logger/buffered/buffered.memory.d.ts +2 -0
- package/types/math/object/helpers.d.ts +5 -4
- package/types/math/object/math.composite.d.ts +9 -9
- package/types/math/object/math.d.ts +13 -12
- package/types/math/object/ops.composite.d.ts +6 -6
- package/types/math/object/ops.d.ts +8 -8
- package/types/math/object/types.d.ts +14 -14
- package/types/models/LogicModel.d.ts +1 -1
- package/types/structures/path/index.d.ts +1 -1
- package/types/structures/path/types.d.ts +1 -1
- package/types/structures/path/{utils.d.ts → utils/combineUrls.d.ts} +1 -2
- package/types/structures/path/utils/index.d.ts +3 -0
- package/types/structures/path/utils/indexTrim.d.ts +1 -0
- package/types/structures/path/utils/optionals.d.ts +2 -0
- package/types/structures/singleton.d.ts +19 -0
- package/types/types/misc.d.ts +3 -3
- package/cjs/structures/path/utils.js.map +0 -1
- package/esm/structures/path/utils.js.map +0 -1
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import type { DeepReadonly, DeepReadonlyPartial } from '../../types/deep.js';
|
|
2
|
+
import type { Nullable } from '../../types/misc.js';
|
|
2
3
|
import type { BasePair, IObjectOps, NumKey } from './types.js';
|
|
3
|
-
export declare function _getValue<T extends object, TKey extends NumKey<T> = NumKey<T>>(o: DeepReadonlyPartial<T
|
|
4
|
-
export declare function _getInnerValue<T extends object, TKey extends string & keyof T>(o: DeepReadonly<T
|
|
5
|
-
export declare function _getInnerValue<T extends object, TKey extends string & keyof T>(o: DeepReadonly<T> | number
|
|
4
|
+
export declare function _getValue<T extends object, TKey extends NumKey<T> = NumKey<T>>(o: Nullable<DeepReadonlyPartial<T>>, key: TKey): T[TKey] | undefined;
|
|
5
|
+
export declare function _getInnerValue<T extends object, TKey extends string & keyof T>(o: Nullable<DeepReadonly<T>>, key: TKey): DeepReadonly<T[TKey]>;
|
|
6
|
+
export declare function _getInnerValue<T extends object, TKey extends string & keyof T>(o: Nullable<DeepReadonly<T> | number>, key: TKey): DeepReadonly<T[TKey]> | number;
|
|
6
7
|
/** this helpers hides some cumbersome type transformations */
|
|
7
|
-
export declare function doOps<T extends object, TOps extends IObjectOps<any>>(this: void, ops: BasePair<T, string & keyof T, TOps>[], o: DeepReadonly<T
|
|
8
|
+
export declare function doOps<T extends object, TOps extends IObjectOps<any>>(this: void, ops: BasePair<T, string & keyof T, TOps>[], o: Nullable<DeepReadonly<T>>, processor?: (ops: TOps, value: DeepReadonly<T[string & keyof T]>, key: string & keyof T) => T[keyof T] | null): T;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import type { AnyObject } from '../../types/index.js';
|
|
1
|
+
import type { AnyObject, Nullable } from '../../types/index.js';
|
|
2
2
|
import type { DeepReadonly } from '../../types/deep.js';
|
|
3
3
|
import { CompositeObjectOps } from './ops.composite.js';
|
|
4
4
|
import type { AbsOptions, IObjectMath, MathPairsMap, RoundOptions } from './types.js';
|
|
5
5
|
export declare class CompositeObjectMath<T extends AnyObject> extends CompositeObjectOps<T> implements IObjectMath<T> {
|
|
6
6
|
private readonly _math;
|
|
7
7
|
constructor(innerMath: MathPairsMap<T>);
|
|
8
|
-
contains(base: DeepReadonly<T
|
|
9
|
-
inverse(o: DeepReadonly<T
|
|
10
|
-
abs(o: DeepReadonly<T
|
|
11
|
-
round(o: DeepReadonly<T
|
|
12
|
-
add(o1: DeepReadonly<T
|
|
13
|
-
subtract(base: DeepReadonly<T
|
|
14
|
-
multiply(o1: DeepReadonly<T
|
|
15
|
-
div(o1: DeepReadonly<T
|
|
8
|
+
contains(base: Nullable<DeepReadonly<T>>, target: Nullable<DeepReadonly<T>>): boolean;
|
|
9
|
+
inverse(o: Nullable<DeepReadonly<T>>): T;
|
|
10
|
+
abs(o: Nullable<DeepReadonly<T>>, options?: AbsOptions): T | null;
|
|
11
|
+
round(o: Nullable<DeepReadonly<T>>, options?: RoundOptions): T;
|
|
12
|
+
add(o1: Nullable<DeepReadonly<T>>, o2: Nullable<DeepReadonly<T>>): T;
|
|
13
|
+
subtract(base: Nullable<DeepReadonly<T>>, amount: number | Nullable<DeepReadonly<T>>): T;
|
|
14
|
+
multiply(o1: Nullable<DeepReadonly<T>>, o2: number | Nullable<DeepReadonly<T>>): T;
|
|
15
|
+
div(o1: Nullable<DeepReadonly<T>>, o2: Nullable<number | DeepReadonly<T>>): number;
|
|
16
16
|
}
|
|
@@ -1,17 +1,18 @@
|
|
|
1
|
+
import type { Nullable } from '../../types/index.js';
|
|
1
2
|
import type { DeepReadonly, DeepReadonlyPartial } from '../../types/deep.js';
|
|
2
3
|
import { ObjectOps } from './ops.js';
|
|
3
4
|
import type { AbsOptions, DELETE_TYPE, IObjectMath, NumKey, RoundOptions } from './types.js';
|
|
4
5
|
export declare class ObjectMath<T extends object> extends ObjectOps<T> implements IObjectMath<T> {
|
|
5
|
-
getTotal(o: DeepReadonlyPartial<T
|
|
6
|
-
contains(base: DeepReadonly<T
|
|
7
|
-
inverse(o: DeepReadonly<T
|
|
8
|
-
div(o1: DeepReadonly<T
|
|
9
|
-
div(o1: DeepReadonly<T
|
|
10
|
-
process(o: DeepReadonly<T
|
|
11
|
-
abs(c: DeepReadonly<T
|
|
12
|
-
round(c: DeepReadonly<T
|
|
13
|
-
calc(c1: DeepReadonly<T
|
|
14
|
-
add(c1: DeepReadonly<T
|
|
15
|
-
subtract(base: DeepReadonly<T
|
|
16
|
-
multiply(c1: DeepReadonly<T
|
|
6
|
+
getTotal(o: Nullable<DeepReadonlyPartial<T>>): number;
|
|
7
|
+
contains(base: Nullable<DeepReadonly<T>>, target: Nullable<DeepReadonly<T>>): boolean;
|
|
8
|
+
inverse(o: Nullable<DeepReadonly<T>>): T;
|
|
9
|
+
div(o1: Nullable<DeepReadonly<T>>, o2: Nullable<number>): T;
|
|
10
|
+
div(o1: Nullable<DeepReadonly<T>>, o2: Nullable<DeepReadonly<T>>): number;
|
|
11
|
+
process(o: Nullable<DeepReadonly<T>>, processor: (val: number, key: NumKey<T>) => number | DELETE_TYPE): T | null;
|
|
12
|
+
abs(c: Nullable<DeepReadonly<T>>, stripNegatives?: AbsOptions): T | null;
|
|
13
|
+
round(c: Nullable<DeepReadonly<T>>, method?: RoundOptions): T | null;
|
|
14
|
+
calc(c1: Nullable<DeepReadonly<T>>, c2: Nullable<DeepReadonly<T> | number>, operator: (n: number, n2: number) => number): T;
|
|
15
|
+
add(c1: Nullable<DeepReadonly<T>>, c2: Nullable<DeepReadonly<T> | number>): T;
|
|
16
|
+
subtract(base: Nullable<DeepReadonly<T>>, amount: Nullable<DeepReadonly<T> | number>): T;
|
|
17
|
+
multiply(c1: Nullable<DeepReadonly<T>>, c2: Nullable<DeepReadonly<T> | number>): T;
|
|
17
18
|
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import type { AnyObject } from '../../types/index.js';
|
|
1
|
+
import type { AnyObject, Nullable } from '../../types/index.js';
|
|
2
2
|
import type { DeepReadonly } from '../../types/deep.js';
|
|
3
3
|
import type { IObjectOps, OpsPairsMap } from './types.js';
|
|
4
4
|
export declare class CompositeObjectOps<T extends AnyObject> implements IObjectOps<T> {
|
|
5
5
|
readonly Empty: Readonly<T>;
|
|
6
6
|
private readonly _ops;
|
|
7
7
|
constructor(innerOps: OpsPairsMap<T>);
|
|
8
|
-
isEmpty(o: DeepReadonly<T
|
|
8
|
+
isEmpty(o: Nullable<DeepReadonly<T>>): boolean;
|
|
9
9
|
getEmpty(): T;
|
|
10
|
-
clone(o: DeepReadonly<T
|
|
11
|
-
isValid(o: DeepReadonly<T
|
|
12
|
-
isEquals(a: DeepReadonly<T
|
|
13
|
-
assign(to: T, other: DeepReadonly<T
|
|
10
|
+
clone(o: Nullable<DeepReadonly<T>>): T;
|
|
11
|
+
isValid(o: Nullable<DeepReadonly<T>>): boolean;
|
|
12
|
+
isEquals(a: Nullable<DeepReadonly<T>>, b: Nullable<DeepReadonly<T>>): boolean;
|
|
13
|
+
assign(to: T, other: Nullable<DeepReadonly<T>>): void;
|
|
14
14
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SkipCondition, SkipOptions } from '../../fields/skip.js';
|
|
2
|
-
import type { AnyObject, DeepPartial, DeepReadonly, Predicate } from '../../types/index.js';
|
|
2
|
+
import type { AnyObject, DeepPartial, DeepReadonly, Nullable, Predicate } from '../../types/index.js';
|
|
3
3
|
import type { IObjectOps, NumKey } from './types.js';
|
|
4
4
|
type Keys<T extends AnyObject> = NumKey<T>[];
|
|
5
5
|
export declare class ObjectOps<T extends AnyObject> implements IObjectOps<T> {
|
|
@@ -9,12 +9,12 @@ export declare class ObjectOps<T extends AnyObject> implements IObjectOps<T> {
|
|
|
9
9
|
constructor(keys: Keys<T>);
|
|
10
10
|
addValidator(validator: Predicate<DeepReadonly<T>>): this;
|
|
11
11
|
getEmpty(): T;
|
|
12
|
-
clone(o: DeepReadonly<T
|
|
13
|
-
isEmpty(o: DeepReadonly<T
|
|
14
|
-
isValid(o: DeepReadonly<T
|
|
15
|
-
isEquals(a: DeepReadonly<T
|
|
16
|
-
strip(v: DeepReadonly<T
|
|
17
|
-
toStringData(v: DeepReadonly<T
|
|
18
|
-
assign(to: T, other: DeepReadonly<T
|
|
12
|
+
clone(o: Nullable<DeepReadonly<T>>): T;
|
|
13
|
+
isEmpty(o: Nullable<DeepReadonly<T>>): boolean;
|
|
14
|
+
isValid(o: Nullable<DeepReadonly<T>>): boolean;
|
|
15
|
+
isEquals(a: Nullable<DeepReadonly<T>>, b: Nullable<DeepReadonly<T>>): boolean;
|
|
16
|
+
strip(v: Nullable<DeepReadonly<T>>, condition?: SkipCondition<T, NumKey<T>>): DeepPartial<T>;
|
|
17
|
+
toStringData(v: Nullable<DeepReadonly<T>>, labels: Readonly<Record<Keys<T>[number], string>>, strip?: SkipOptions): [number, string][];
|
|
18
|
+
assign(to: T, other: Nullable<DeepReadonly<T>>): T;
|
|
19
19
|
}
|
|
20
20
|
export {};
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import type { AnyObject, DeepReadonly, TypedKeys } from '../../types/index.js';
|
|
1
|
+
import type { AnyObject, DeepReadonly, Nullable, TypedKeys } from '../../types/index.js';
|
|
2
2
|
export type NumKey<T extends AnyObject> = TypedKeys<T, number>;
|
|
3
3
|
export type AbsOptions = false | 'remove' | 'zero';
|
|
4
4
|
export type RoundOptions = 'floor' | 'ceil' | 'round';
|
|
5
5
|
export type DELETE_TYPE = 'delete';
|
|
6
6
|
export interface IObjectOps<T extends AnyObject> {
|
|
7
7
|
readonly Empty: Readonly<T>;
|
|
8
|
-
isEmpty(o: DeepReadonly<T
|
|
8
|
+
isEmpty(o: Nullable<DeepReadonly<T>>): boolean;
|
|
9
9
|
getEmpty(): T;
|
|
10
|
-
clone(o: DeepReadonly<T
|
|
11
|
-
isValid(o: DeepReadonly<T
|
|
12
|
-
isEquals(a: DeepReadonly<T
|
|
13
|
-
assign(to: T, other: DeepReadonly<T
|
|
10
|
+
clone(o: Nullable<DeepReadonly<T>>): T;
|
|
11
|
+
isValid(o: Nullable<DeepReadonly<T>>): boolean;
|
|
12
|
+
isEquals(a: Nullable<DeepReadonly<T>>, b: Nullable<DeepReadonly<T>>): boolean;
|
|
13
|
+
assign(to: T, other: Nullable<DeepReadonly<T>>): void;
|
|
14
14
|
}
|
|
15
15
|
export interface IObjectMath<T extends AnyObject> extends IObjectOps<T> {
|
|
16
|
-
contains(base: DeepReadonly<T
|
|
17
|
-
inverse(o: DeepReadonly<T
|
|
18
|
-
abs(o: DeepReadonly<T
|
|
19
|
-
round(o: DeepReadonly<T
|
|
20
|
-
add(o1: DeepReadonly<T
|
|
21
|
-
subtract(base: DeepReadonly<T
|
|
22
|
-
multiply(o1: DeepReadonly<T
|
|
23
|
-
div(o1: DeepReadonly<T
|
|
16
|
+
contains(base: Nullable<DeepReadonly<T>>, target: Nullable<DeepReadonly<T>>): boolean;
|
|
17
|
+
inverse(o: Nullable<DeepReadonly<T>>): T;
|
|
18
|
+
abs(o: Nullable<DeepReadonly<T>>, options?: AbsOptions): T | null;
|
|
19
|
+
round(o: Nullable<DeepReadonly<T>>, options?: RoundOptions): T | null;
|
|
20
|
+
add(o1: Nullable<DeepReadonly<T>>, o2: Nullable<DeepReadonly<T>>): T;
|
|
21
|
+
subtract(base: Nullable<DeepReadonly<T>>, amount: Nullable<DeepReadonly<T> | number>): T;
|
|
22
|
+
multiply(o1: Nullable<DeepReadonly<T>>, o2: Nullable<DeepReadonly<T> | number>): T;
|
|
23
|
+
div(o1: Nullable<DeepReadonly<T>>, o2: Nullable<DeepReadonly<T> | number>): number;
|
|
24
24
|
}
|
|
25
25
|
export type BasePair<T extends AnyObject, TKey extends string & keyof T = string & keyof T, TOps extends IObjectOps<T[TKey]> = IObjectOps<T[TKey]>> = {
|
|
26
26
|
key: TKey;
|
|
@@ -5,7 +5,7 @@ import { Loggable } from '../logger/loggable.js';
|
|
|
5
5
|
export type ActionRunOptions = {
|
|
6
6
|
/** Action name, required for logging and joining. */
|
|
7
7
|
name?: string;
|
|
8
|
-
/** If set to truthy, will not start
|
|
8
|
+
/** If set to truthy, will not start this action if another is still in progress.
|
|
9
9
|
* Additionally, if set to 'throw', will throw an error. Otherwise, will return undefined.
|
|
10
10
|
*
|
|
11
11
|
* Note: if a current action runs in an exclusive mode, but the next one is not, the next one will still be allowed.
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './utils.js';
|
|
1
|
+
export * from './utils/index.js';
|
|
2
2
|
export * as Path from './builder.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { EmptyObject, Expand, IsNever, LengthArray, Nullable } from '../../types/misc.js';
|
|
2
2
|
import type { ArgValue, IsOptional, ReadonlyArrayNormalized, TemplateTransform, ToOptionalArray, ToRequired, ToRequiredArray, TransformMap } from './types.helpers.js';
|
|
3
|
-
import type { CombineOptions } from './utils.js';
|
|
3
|
+
import type { CombineOptions } from './utils/combineUrls.js';
|
|
4
4
|
export type ObjectBuilderArgs<TArgs extends string, TFallback = EmptyObject> = string extends TArgs ? TFallback : ArgRecord<TArgs>;
|
|
5
5
|
export type BuilderArgs<TArgs extends string, L extends number = number> = LengthArray<ArgValue | null, L> | ArgRecord<TArgs>;
|
|
6
6
|
export type ArgRecord<T extends string> = Expand<{
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import type { Nullable } from '
|
|
2
|
-
export declare function indexTrim(str: string | null | undefined, ch: string): string;
|
|
1
|
+
import type { Nullable } from '../../../types/misc.js';
|
|
3
2
|
export type CombineOptions = {
|
|
4
3
|
noTrim?: boolean;
|
|
5
4
|
addTrail?: boolean | string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function indexTrim(str: string | null | undefined, ch: string): string;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { IDisposable } from '../functions/disposer.js';
|
|
2
|
+
import type { IValueModel } from '../models/types.js';
|
|
3
|
+
interface ICtor<T extends IDisposable = IDisposable> {
|
|
4
|
+
new (id?: number): T;
|
|
5
|
+
}
|
|
6
|
+
export interface StaticSingleton<TClass extends IDisposable> extends ICtor<TClass> {
|
|
7
|
+
readonly ID: number;
|
|
8
|
+
readonly HasInstance: boolean;
|
|
9
|
+
Destroy(): void;
|
|
10
|
+
readonly BaseClass: ICtor<TClass>;
|
|
11
|
+
readonly Instance: InstanceType<ICtor<TClass>>;
|
|
12
|
+
Extend<TExtended extends TClass>(Child: ICtor<TExtended>): StaticSingleton<TExtended>;
|
|
13
|
+
}
|
|
14
|
+
type Extensions = {
|
|
15
|
+
onDestroyed?: () => void;
|
|
16
|
+
createId?: () => IValueModel<number>;
|
|
17
|
+
};
|
|
18
|
+
export declare function createSingleton<T extends IDisposable>(Ctor: ICtor<T>, extensions?: Extensions): StaticSingleton<T>;
|
|
19
|
+
export {};
|
package/types/types/misc.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
export type Predicate<T> = (value: T) => boolean;
|
|
2
2
|
/** Type for extracting only string keys from T (skips number & symbol keys) */
|
|
3
|
-
export type StringKeys<T extends AnyObject> = {
|
|
3
|
+
export type StringKeys<T extends AnyObject> = Exclude<{
|
|
4
4
|
[K in keyof T]: K extends string ? K : never;
|
|
5
|
-
}[keyof T]
|
|
5
|
+
}[keyof T], undefined | null>;
|
|
6
6
|
/** Type for extracting string keys of type `T` values of each are of certain type `K` */
|
|
7
7
|
export type TypedKeys<T extends AnyObject, K> = {
|
|
8
|
-
[P in StringKeys<T>]: T[P] extends K ? P : never;
|
|
8
|
+
[P in StringKeys<T>]: T[P] extends (K | undefined) ? P : never;
|
|
9
9
|
}[StringKeys<T>];
|
|
10
10
|
/** Type for extraction only keys, values of which are functions with certain args and return result */
|
|
11
11
|
export type FunctionKeys<T extends AnyObject, TArgs extends any[] = any[], TRes = any> = TypedKeys<T, (...args: TArgs) => TRes>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