assignment-user-matcher 1.2.3 → 1.2.5
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 +55 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/matcher.class.d.ts +92 -2
- package/dist/matcher.class.d.ts.map +1 -1
- package/dist/matcher.class.js +372 -59
- package/dist/scoring/fair-arbitration.d.ts +68 -0
- package/dist/scoring/fair-arbitration.d.ts.map +1 -0
- package/dist/scoring/fair-arbitration.js +151 -0
- package/dist/types/matcher.d.ts +119 -0
- package/dist/types/matcher.d.ts.map +1 -1
- package/dist/utils/keys.d.ts +3 -0
- package/dist/utils/keys.d.ts.map +1 -1
- package/dist/utils/keys.js +3 -0
- package/package.json +58 -57
package/README.md
CHANGED
|
@@ -75,6 +75,10 @@ await assignmentMatcher.addUser({
|
|
|
75
75
|
Note: `usingDefaultMatchScore` is an internal implementation detail and is **not** a public option.
|
|
76
76
|
Configure hard veto behavior only through `routingWeights` values.
|
|
77
77
|
|
|
78
|
+
Assignments can also veto specific users from their side: setting `vetoedUsers: ['user_1']` on an
|
|
79
|
+
assignment guarantees those users are never matched to it, no matter how well their tags, weights,
|
|
80
|
+
or other criteria fit (this also overrides workflow targeting).
|
|
81
|
+
|
|
78
82
|
3. **Prioritization Engine:**
|
|
79
83
|
Assignments are typically processed in the order they are received or by a custom prioritization function you can provide. This ensures that older or more critical assignments get attention first. The library aims to match the highest priority assignments to available, suitable users.
|
|
80
84
|
|
|
@@ -279,10 +283,11 @@ Adds a new assignment to be matched.
|
|
|
279
283
|
- `tags: string[]`: Array of tags required for the assignment.
|
|
280
284
|
- `createdAt: number`: Timestamp (e.g., `new Date().getTime()`) indicating when the assignment was created. Used for default prioritization (older assignments get higher priority). Can be influenced by `prioritizationFunction`.
|
|
281
285
|
- `priority?: number | string`: Optional explicit priority. If `prioritizationFunction` is used, this might be an input to it.
|
|
286
|
+
- `vetoedUsers?: string[]`: Optional list of user IDs that must never receive this assignment, regardless of any other matching criteria (tags, `routingWeights`, priority, or workflow targeting). Vetoed assignments are excluded from a user's candidate pool before scoring, so the veto adds no per-match overhead. To change an assignment's vetoes, remove and re-add the assignment.
|
|
282
287
|
|
|
283
288
|
### `matchUsersAssignments(): Promise<void>`
|
|
284
289
|
|
|
285
|
-
Triggers the matching process. This method iterates through pending assignments and tries to match them with suitable, available users based on tags and user backlog capacity.
|
|
290
|
+
Triggers the matching process. This method iterates through pending assignments and tries to match them with suitable, available users based on tags and user backlog capacity. With no `userId`, every eligible user is evaluated in parallel by default and contested assignments go to whoever's claim resolves first - see the `fairness` option in [Options](#options) to make the best-scoring candidate win deterministically (`'best-match'`), or to additionally balance load across users (`'balanced'`, `'spread-work'`).
|
|
286
291
|
|
|
287
292
|
### `getCurrentAssignmentsForUser(userId: string): Promise<Assignment[]>`
|
|
288
293
|
|
|
@@ -360,6 +365,54 @@ type Options = {
|
|
|
360
365
|
// the check periodically. Disabled when undefined (default).
|
|
361
366
|
idleUserTimeoutMs?: number; // Default: undefined (disabled)
|
|
362
367
|
|
|
368
|
+
// Who wins when several users are eligible for the same assignment
|
|
369
|
+
// during bulk matching (matchUsersAssignments() with no userId)?
|
|
370
|
+
// 'first-come' - whoever's claim reaches Redis first (fastest; the
|
|
371
|
+
// winner is arbitrary). This is the default.
|
|
372
|
+
// 'best-match' - the highest-scoring eligible user, deterministically.
|
|
373
|
+
// 'balanced' - best match wins, but near-ties (within ~5% of the
|
|
374
|
+
// typical candidate score) go to whoever has less work.
|
|
375
|
+
// 'spread-work' - work is spread as evenly as skills allow: every
|
|
376
|
+
// assignment already on someone's plate discounts their
|
|
377
|
+
// next bid by half the typical candidate score, so
|
|
378
|
+
// finishing work fast never just means drowning in more.
|
|
379
|
+
// The numbers behind 'balanced' / 'spread-work' are derived automatically
|
|
380
|
+
// from each matching pass's candidate scores - nothing to calibrate. Both
|
|
381
|
+
// also include an hourly guardrail by default: nobody receives at more
|
|
382
|
+
// than double the team's average grant rate (see fairnessMaxPerWindow).
|
|
383
|
+
// Switchable at runtime via `setFairness(mode)` / `getFairness()`, or
|
|
384
|
+
// retune every fairness knob below at once with
|
|
385
|
+
// `setFairnessConfig(partial)` / `getFairnessConfig()` - changes apply on
|
|
386
|
+
// the next `matchUsersAssignments()` call, no reconstruction needed.
|
|
387
|
+
fairness?: 'first-come' | 'best-match' | 'balanced' | 'spread-work'; // Default: 'first-come'
|
|
388
|
+
|
|
389
|
+
// Hard ceiling on how many assignments one user can be *granted* within a
|
|
390
|
+
// rolling time window, in any fairness mode other than 'first-come'. The
|
|
391
|
+
// backlog cap alone can't protect diligent users: fast workers keep
|
|
392
|
+
// freeing backlog slots and keep winning, so speed is rewarded with ever
|
|
393
|
+
// more work. This counts grants regardless of how quickly they were
|
|
394
|
+
// cleared; at the cap, contested work spills to the next-best eligible
|
|
395
|
+
// user (or stays queued) until the window rolls. Workflow-targeted
|
|
396
|
+
// assignments are direct handoffs and bypass the cap.
|
|
397
|
+
// Left undefined, the 'balanced' / 'spread-work' presets default it to a
|
|
398
|
+
// team-relative guardrail - max(maxUserBacklogSize, 2x the team's average
|
|
399
|
+
// grants in the window), recomputed each pass, so it adapts to any
|
|
400
|
+
// deployment's volume. Set a number to pin the ceiling, or Infinity to
|
|
401
|
+
// disable the window cap entirely.
|
|
402
|
+
fairnessMaxPerWindow?: number; // Default: auto for 'balanced'/'spread-work', else disabled
|
|
403
|
+
fairnessWindowMs?: number; // Default: 3600000 (one hour)
|
|
404
|
+
|
|
405
|
+
// Expert alternative to `fairness` - the raw switches behind it:
|
|
406
|
+
// enableFairTiebreaker is exactly `fairness: 'best-match'` when true;
|
|
407
|
+
// fairnessLoadPenalty is an absolute score discount per assignment
|
|
408
|
+
// already on a user's backlog, and fairnessTieBand treats scores in the
|
|
409
|
+
// same band-sized bucket as tied (less-loaded user wins). Explicit values
|
|
410
|
+
// here override what a `fairness` preset would derive. Runtime toggles:
|
|
411
|
+
// `setFairTiebreaker(enabled)` / `isFairTiebreakerEnabled()`.
|
|
412
|
+
enableFairTiebreaker?: boolean; // Default: false
|
|
413
|
+
fairnessLoadPenalty?: number; // Default: 0 (off)
|
|
414
|
+
fairnessTieBand?: number; // Default: 0 (off)
|
|
415
|
+
|
|
363
416
|
// A custom function to determine the priority of an assignment.
|
|
364
417
|
// The function receives assignment objects (or undefined if fewer than 3 are available for comparison)
|
|
365
418
|
// and should return a numerical priority score. Higher scores mean higher priority.
|
|
@@ -1032,4 +1085,4 @@ Consumers can `import AssignmentMatcher from 'assignment-user-matcher'` or `cons
|
|
|
1032
1085
|
|
|
1033
1086
|
## License
|
|
1034
1087
|
|
|
1035
|
-
This library is licensed
|
|
1088
|
+
This library is proprietary, commercially-licensed software — see [`LICENCE`](./LICENCE) for the full terms. No use, copying, modification, or distribution is permitted without the Owner's prior written permission (the LICENCE file's non-commercial fair-use footnote covers limited evaluation/academic use with written confirmation from the Owner). Contact viljar@forgemaster.ai for licensing.
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import AssignmentMatcher from './matcher.class';
|
|
2
|
-
export type { Assignment, MatcherOptions, options, Stats, User, GeoMatchResult, GeoMatchingFunction, ReliabilityMetrics, AssignmentStatus, } from './matcher.class';
|
|
2
|
+
export type { Assignment, MatcherOptions, options, Stats, User, GeoMatchResult, GeoMatchingFunction, ReliabilityMetrics, AssignmentStatus, FairnessMode, FairnessConfig, } from './matcher.class';
|
|
3
3
|
export type { WorkflowDefinition, WorkflowDefinitionInput, WorkflowDefinitionSummary, WorkflowInstance, WorkflowInstanceStatus, WorkflowStep, WorkflowRouting, WorkflowTargetUser, WorkflowMachineTask, WorkflowTaskType, WorkflowEvent, WorkflowEventType, AssignmentResult, ParallelBranchState, DeadLetterEntry, AuditEntry, CircuitBreakerState, WorkflowInstanceWithSnapshot, LearningOutcome, LearningRewards, LearningFeatures, LearningAssignmentContext, LearningFeatureExtractor, LearningDecisionRecord, LearningEpisodeRecord, LearningSignals, LearningSample, LearningStats, LearningTagStat, AutoRoutingWeightsOptions, PendingAssignmentInfo, WorkflowEngineMetrics, MachineTaskHandler, WorkflowHost, PaginationOptions, PaginationResult, AssignmentCounts, } from './matcher.class';
|
|
4
4
|
export { extractMatchFeatures, cosineSimilarity } from './learning/features';
|
|
5
5
|
export { synthesizeRoutingWeights, DEFAULT_AUTO_WEIGHTS_OPTIONS } from './learning/auto-weights';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,iBAAiB,MAAM,iBAAiB,CAAC;AAEhD,YAAY,EACR,UAAU,EACV,cAAc,EACd,OAAO,EACP,KAAK,EACL,IAAI,EACJ,cAAc,EACd,mBAAmB,EACnB,kBAAkB,EAClB,gBAAgB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,iBAAiB,MAAM,iBAAiB,CAAC;AAEhD,YAAY,EACR,UAAU,EACV,cAAc,EACd,OAAO,EACP,KAAK,EACL,IAAI,EACJ,cAAc,EACd,mBAAmB,EACnB,kBAAkB,EAClB,gBAAgB,EAChB,YAAY,EACZ,cAAc,GACjB,MAAM,iBAAiB,CAAC;AAGzB,YAAY,EACR,kBAAkB,EAClB,uBAAuB,EACvB,yBAAyB,EACzB,gBAAgB,EAChB,sBAAsB,EACtB,YAAY,EACZ,eAAe,EACf,kBAAkB,EAClB,mBAAmB,EACnB,gBAAgB,EAChB,aAAa,EACb,iBAAiB,EACjB,gBAAgB,EAChB,mBAAmB,EACnB,eAAe,EACf,UAAU,EACV,mBAAmB,EACnB,4BAA4B,EAC5B,eAAe,EACf,eAAe,EACf,gBAAgB,EAChB,yBAAyB,EACzB,wBAAwB,EACxB,sBAAsB,EACtB,qBAAqB,EACrB,eAAe,EACf,cAAc,EACd,aAAa,EACb,eAAe,EACf,yBAAyB,EACzB,qBAAqB,EACrB,qBAAqB,EACrB,kBAAkB,EAClB,YAAY,EACZ,iBAAiB,EACjB,gBAAgB,EAChB,gBAAgB,GACnB,MAAM,iBAAiB,CAAC;AAGzB,OAAO,EAAE,oBAAoB,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAE7E,OAAO,EAAE,wBAAwB,EAAE,4BAA4B,EAAE,MAAM,yBAAyB,CAAC;AAGjG,OAAO,EAAE,eAAe,EAAE,mBAAmB,EAAE,QAAQ,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtH,OAAO,EAAE,2BAA2B,EAAE,0BAA0B,EAAE,MAAM,uBAAuB,CAAC;AAGhG,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,OAAO,EAAE,iBAAiB,EAAE,KAAK,WAAW,EAAE,KAAK,cAAc,EAAE,MAAM,cAAc,CAAC;AAExF,OAAO,EAAE,iBAAiB,EAAE,CAAC;AAC7B,eAAe,iBAAiB,CAAC"}
|
package/dist/matcher.class.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type PaginationOptions, type PaginationResult, type AssignmentCounts } from './queries/pagination';
|
|
2
2
|
import { type WorkflowHost, type MachineTaskHandler } from './managers/WorkflowManager';
|
|
3
|
-
import type { RedisClientType, User, Assignment, Stats, PendingAssignmentInfo, MatcherOptions, WorkflowDefinition, WorkflowDefinitionInput, WorkflowDefinitionSummary, WorkflowInstance, WorkflowEvent, AssignmentResult, DeadLetterEntry, AuditEntry, WorkflowInstanceWithSnapshot, LearningSignals, LearningSample, LearningStats, LearningTagStat, ReliabilityMetrics, CircuitBreakerState, WorkflowEngineMetrics } from './types/matcher';
|
|
4
|
-
export type { RedisClientType, User, Assignment, Stats, PendingAssignmentInfo, MatcherOptions, options, GeoMatchResult, GeoMatchingFunction, ReliabilityMetrics, WorkflowInstanceStatus, WorkflowRouting, } from './types/matcher';
|
|
3
|
+
import type { RedisClientType, User, Assignment, Stats, PendingAssignmentInfo, MatcherOptions, WorkflowDefinition, WorkflowDefinitionInput, WorkflowDefinitionSummary, WorkflowInstance, WorkflowEvent, AssignmentResult, DeadLetterEntry, AuditEntry, WorkflowInstanceWithSnapshot, LearningSignals, LearningSample, LearningStats, LearningTagStat, ReliabilityMetrics, CircuitBreakerState, WorkflowEngineMetrics, FairnessMode, FairnessConfig } from './types/matcher';
|
|
4
|
+
export type { RedisClientType, User, Assignment, Stats, PendingAssignmentInfo, MatcherOptions, options, FairnessMode, FairnessConfig, GeoMatchResult, GeoMatchingFunction, ReliabilityMetrics, WorkflowInstanceStatus, WorkflowRouting, } from './types/matcher';
|
|
5
5
|
export type { WorkflowDefinition, WorkflowDefinitionInput, WorkflowDefinitionSummary, WorkflowInstance, WorkflowStep, WorkflowTargetUser, WorkflowMachineTask, WorkflowTaskType, WorkflowEvent, WorkflowEventType, AssignmentResult, ParallelBranchState, DeadLetterEntry, AuditEntry, CircuitBreakerState, WorkflowInstanceWithSnapshot, LearningOutcome, LearningRewards, LearningFeatures, LearningAssignmentContext, LearningFeatureExtractor, LearningDecisionRecord, LearningEpisodeRecord, LearningSignals, LearningSample, LearningStats, LearningTagStat, AutoRoutingWeightsOptions, WorkflowEngineMetrics, } from './types/matcher';
|
|
6
6
|
export type { MachineTaskHandler, WorkflowHost } from './managers/WorkflowManager';
|
|
7
7
|
export type { AssignmentStatus, PaginationOptions, PaginationResult, AssignmentCounts } from './queries/pagination';
|
|
@@ -40,6 +40,12 @@ export default class AssignmentMatcher implements WorkflowHost {
|
|
|
40
40
|
private geoDefaultMaxDistanceKm?;
|
|
41
41
|
private geoScoreWeight;
|
|
42
42
|
private geoMatchingFunction?;
|
|
43
|
+
private enableFairTiebreaker;
|
|
44
|
+
private fairnessMode?;
|
|
45
|
+
private fairnessLoadPenalty;
|
|
46
|
+
private fairnessTieBand;
|
|
47
|
+
private fairnessMaxPerWindow?;
|
|
48
|
+
private fairnessWindowMs;
|
|
43
49
|
constructor(redisClient: RedisClientType, options?: MatcherOptions);
|
|
44
50
|
/** Keys for the three assignment stores (used by pagination queries) */
|
|
45
51
|
private get assignmentStoreKeys();
|
|
@@ -140,6 +146,39 @@ export default class AssignmentMatcher implements WorkflowHost {
|
|
|
140
146
|
setLearningShadowMode(enabled: boolean): Promise<void>;
|
|
141
147
|
/** Current runtime shadow mode state. */
|
|
142
148
|
getLearningShadowMode(): Promise<boolean>;
|
|
149
|
+
/**
|
|
150
|
+
* Toggle fair-tiebreaker global best-match arbitration at runtime.
|
|
151
|
+
* See `MatcherOptions.enableFairTiebreaker` for what this changes.
|
|
152
|
+
*/
|
|
153
|
+
setFairTiebreaker(enabled: boolean): void;
|
|
154
|
+
/** Current runtime fair-tiebreaker state. */
|
|
155
|
+
isFairTiebreakerEnabled(): boolean;
|
|
156
|
+
/**
|
|
157
|
+
* Switch the bulk-matching fairness policy at runtime — shorthand for
|
|
158
|
+
* `setFairnessConfig({ fairness: mode })`. See `MatcherOptions.fairness`
|
|
159
|
+
* for what each mode does.
|
|
160
|
+
*/
|
|
161
|
+
setFairness(mode: FairnessMode): void;
|
|
162
|
+
/**
|
|
163
|
+
* Retune any subset of the bulk-matching fairness knobs at runtime without
|
|
164
|
+
* reconstructing the matcher. Absent fields are left unchanged; the new
|
|
165
|
+
* values take effect on the next `matchUsersAssignments()` call (a match
|
|
166
|
+
* already in flight keeps the values it started with). Merge semantics
|
|
167
|
+
* mirror the constructor exactly — in particular, an explicit `fairness`
|
|
168
|
+
* overrides `enableFairTiebreaker`. See `MatcherOptions` for each field.
|
|
169
|
+
*/
|
|
170
|
+
setFairnessConfig(config: FairnessConfig): void;
|
|
171
|
+
/** Current runtime fairness policy. */
|
|
172
|
+
getFairness(): FairnessMode;
|
|
173
|
+
/** Snapshot of the live fairness configuration. */
|
|
174
|
+
getFairnessConfig(): {
|
|
175
|
+
fairness: FairnessMode;
|
|
176
|
+
enableFairTiebreaker: boolean;
|
|
177
|
+
fairnessLoadPenalty: number;
|
|
178
|
+
fairnessTieBand: number;
|
|
179
|
+
fairnessMaxPerWindow: number | undefined;
|
|
180
|
+
fairnessWindowMs: number;
|
|
181
|
+
};
|
|
143
182
|
/**
|
|
144
183
|
* Per-user, per-tag reward statistics aggregated from learned outcomes.
|
|
145
184
|
* Requires `enableLearning` and `enableAutoRoutingWeights`.
|
|
@@ -235,7 +274,58 @@ export default class AssignmentMatcher implements WorkflowHost {
|
|
|
235
274
|
id: string;
|
|
236
275
|
priority: number;
|
|
237
276
|
}[]>;
|
|
277
|
+
/**
|
|
278
|
+
* Read-only candidate discovery for one user: workflow-targeted lookups,
|
|
279
|
+
* the weighted per-tag zset union/diff, and per-candidate scoring
|
|
280
|
+
* (learning-influenced or plain, matching the existing behavior exactly).
|
|
281
|
+
* Does NOT claim anything - see claimSelected() for that. Split out so
|
|
282
|
+
* matchAllUsersFair() can evaluate every user's candidates before any of
|
|
283
|
+
* them claim, enabling global (cross-user) score comparison.
|
|
284
|
+
*
|
|
285
|
+
* `capToBacklog` (default true, matching prior inline behavior): stop
|
|
286
|
+
* scoring once this user's own maxUserBacklogSize worth of candidates has
|
|
287
|
+
* been found. matchAllUsersFair() passes false - capping per-user during
|
|
288
|
+
* discovery would silently drop a user's lower-priority candidates before
|
|
289
|
+
* global arbitration ever runs, e.g. a user whose top picks all lose to a
|
|
290
|
+
* higher scorer should still be considered for their next-best options,
|
|
291
|
+
* not left with nothing because discovery stopped early.
|
|
292
|
+
*/
|
|
293
|
+
private computeCandidatesForUser;
|
|
294
|
+
/**
|
|
295
|
+
* Atomically claims a set of tag-scored candidate assignments for one
|
|
296
|
+
* user and returns which ones it actually won. The candidate read that
|
|
297
|
+
* produces `selected` (zDiffStore/zRangeWithScores in
|
|
298
|
+
* computeCandidatesForUser) is a snapshot taken before this point, and
|
|
299
|
+
* candidate computation runs concurrently across users -
|
|
300
|
+
* matchUsersAssignments() Promise.all's the bulk path, and a per-user
|
|
301
|
+
* matchUsersAssignments(userId) call can race a bulk pass too. Without a
|
|
302
|
+
* single atomic gate, two concurrent callers can both still see the same
|
|
303
|
+
* assignment as available and both hand it to their user. HDEL on
|
|
304
|
+
* assignmentsRefKey is atomic and idempotent (returns 1 only for
|
|
305
|
+
* whichever caller actually deletes the field), so it's used here as
|
|
306
|
+
* that gate: only assignments this call actually wins are kept - anything
|
|
307
|
+
* already claimed by a concurrent caller since the snapshot read is
|
|
308
|
+
* dropped instead of being double-assigned.
|
|
309
|
+
*/
|
|
310
|
+
private claimSelected;
|
|
238
311
|
private getUserRelatedAssignments;
|
|
312
|
+
/**
|
|
313
|
+
* Opt-in alternative to the default parallel bulk path (see
|
|
314
|
+
* MatcherOptions.enableFairTiebreaker): evaluates every user's eligible
|
|
315
|
+
* candidates first (read-only, nobody claims yet), flattens them into one
|
|
316
|
+
* global list sorted by score descending, then claims greedily in that
|
|
317
|
+
* order. This guarantees the best-fit eligible candidate wins each
|
|
318
|
+
* contested assignment, rather than whichever user's independent claim
|
|
319
|
+
* happened to reach Redis first.
|
|
320
|
+
*
|
|
321
|
+
* Known limitation: when combined with enableLearning, computeCandidatesForUser
|
|
322
|
+
* still records a bandit decision for every scored candidate at evaluation
|
|
323
|
+
* time, including ones that lose the global tiebreak here - the learning
|
|
324
|
+
* layer's per-user candidate ordering isn't itself part of the fairness
|
|
325
|
+
* comparison in this mode. Fine for the common case (fairness without
|
|
326
|
+
* learning), but a consumer combining both should be aware.
|
|
327
|
+
*/
|
|
328
|
+
private matchAllUsersFair;
|
|
239
329
|
matchUsersAssignments(userId?: string): Promise<void>;
|
|
240
330
|
getCurrentAssignmentsForUser(userId: string): Promise<string[]>;
|
|
241
331
|
acceptAssignment(userId: string, assignmentId: string): Promise<boolean>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"matcher.class.d.ts","sourceRoot":"","sources":["../src/matcher.class.ts"],"names":[],"mappings":"AAMA,OAAO,EAMH,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACxB,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"matcher.class.d.ts","sourceRoot":"","sources":["../src/matcher.class.ts"],"names":[],"mappings":"AAMA,OAAO,EAMH,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACxB,MAAM,sBAAsB,CAAC;AAO9B,OAAO,EAAmB,KAAK,YAAY,EAAE,KAAK,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AACzG,OAAO,KAAK,EACR,eAAe,EACf,IAAI,EACJ,UAAU,EACV,KAAK,EACL,qBAAqB,EACrB,cAAc,EACd,kBAAkB,EAClB,uBAAuB,EACvB,yBAAyB,EACzB,gBAAgB,EAChB,aAAa,EACb,gBAAgB,EAChB,eAAe,EACf,UAAU,EACV,4BAA4B,EAI5B,eAAe,EACf,cAAc,EACd,aAAa,EACb,eAAe,EAGf,kBAAkB,EAClB,mBAAmB,EACnB,qBAAqB,EACrB,YAAY,EACZ,cAAc,EACjB,MAAM,iBAAiB,CAAC;AAGzB,YAAY,EACR,eAAe,EACf,IAAI,EACJ,UAAU,EACV,KAAK,EACL,qBAAqB,EACrB,cAAc,EACd,OAAO,EACP,YAAY,EACZ,cAAc,EACd,cAAc,EACd,mBAAmB,EACnB,kBAAkB,EAClB,sBAAsB,EACtB,eAAe,GAClB,MAAM,iBAAiB,CAAC;AAEzB,YAAY,EACR,kBAAkB,EAClB,uBAAuB,EACvB,yBAAyB,EACzB,gBAAgB,EAChB,YAAY,EACZ,kBAAkB,EAClB,mBAAmB,EACnB,gBAAgB,EAChB,aAAa,EACb,iBAAiB,EACjB,gBAAgB,EAChB,mBAAmB,EACnB,eAAe,EACf,UAAU,EACV,mBAAmB,EACnB,4BAA4B,EAC5B,eAAe,EACf,eAAe,EACf,gBAAgB,EAChB,yBAAyB,EACzB,wBAAwB,EACxB,sBAAsB,EACtB,qBAAqB,EACrB,eAAe,EACf,cAAc,EACd,aAAa,EACb,eAAe,EACf,yBAAyB,EACzB,qBAA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