inferred-types 1.2.2 → 1.2.3

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.
@@ -168,6 +168,309 @@ const WHITESPACE_CHARS = [
168
168
  "\b"
169
169
  ];
170
170
 
171
+ //#endregion
172
+ //#region ../constants/src/colors.ts
173
+ const CSS_NAMED_COLORS = [
174
+ "aliceblue",
175
+ "antiquewhite",
176
+ "aqua",
177
+ "aquamarine",
178
+ "azure",
179
+ "beige",
180
+ "bisque",
181
+ "black",
182
+ "blanchedalmond",
183
+ "blue",
184
+ "blueviolet",
185
+ "brown",
186
+ "burlywood",
187
+ "cadetblue",
188
+ "chartreuse",
189
+ "chocolate",
190
+ "coral",
191
+ "cornflowerblue",
192
+ "cornsilk",
193
+ "crimson",
194
+ "cyan",
195
+ "darkblue",
196
+ "darkcyan",
197
+ "darkgoldenrod",
198
+ "darkgray",
199
+ "darkgreen",
200
+ "darkgrey",
201
+ "darkkhaki",
202
+ "darkmagenta",
203
+ "darkolivegreen",
204
+ "darkorange",
205
+ "darkorchid",
206
+ "darkred",
207
+ "darksalmon",
208
+ "darkseagreen",
209
+ "darkslateblue",
210
+ "darkslategray",
211
+ "darkslategrey",
212
+ "darkturquoise",
213
+ "darkviolet",
214
+ "deeppink",
215
+ "deepskyblue",
216
+ "dimgray",
217
+ "dimgrey",
218
+ "dodgerblue",
219
+ "firebrick",
220
+ "floralwhite",
221
+ "forestgreen",
222
+ "fuchsia",
223
+ "gainsboro",
224
+ "ghostwhite",
225
+ "gold",
226
+ "goldenrod",
227
+ "gray",
228
+ "green",
229
+ "greenyellow",
230
+ "grey",
231
+ "honeydew",
232
+ "hotpink",
233
+ "indianred",
234
+ "indigo",
235
+ "ivory",
236
+ "khaki",
237
+ "lavender",
238
+ "lavenderblush",
239
+ "lawngreen",
240
+ "lemonchiffon",
241
+ "lightblue",
242
+ "lightcoral",
243
+ "lightcyan",
244
+ "lightgoldenrodyellow",
245
+ "lightgray",
246
+ "lightgreen",
247
+ "lightgrey",
248
+ "lightpink",
249
+ "lightsalmon",
250
+ "lightseagreen",
251
+ "lightskyblue",
252
+ "lightslategray",
253
+ "lightslategrey",
254
+ "lightsteelblue",
255
+ "lightyellow",
256
+ "lime",
257
+ "limegreen",
258
+ "linen",
259
+ "magenta",
260
+ "maroon",
261
+ "mediumaquamarine",
262
+ "mediumblue",
263
+ "mediumorchid",
264
+ "mediumpurple",
265
+ "mediumseagreen",
266
+ "mediumslateblue",
267
+ "mediumspringgreen",
268
+ "mediumturquoise",
269
+ "mediumvioletred",
270
+ "midnightblue",
271
+ "mintcream",
272
+ "mistyrose",
273
+ "moccasin",
274
+ "navajowhite",
275
+ "navy",
276
+ "oldlace",
277
+ "olive",
278
+ "olivedrab",
279
+ "orange",
280
+ "orangered",
281
+ "orchid",
282
+ "palegoldenrod",
283
+ "palegreen",
284
+ "paleturquoise",
285
+ "palevioletred",
286
+ "papayawhip",
287
+ "peachpuff",
288
+ "peru",
289
+ "pink",
290
+ "plum",
291
+ "powderblue",
292
+ "purple",
293
+ "rebeccapurple",
294
+ "red",
295
+ "rosybrown",
296
+ "royalblue",
297
+ "saddlebrown",
298
+ "salmon",
299
+ "sandybrown",
300
+ "seagreen",
301
+ "seashell",
302
+ "sienna",
303
+ "silver",
304
+ "skyblue",
305
+ "slateblue",
306
+ "slategray",
307
+ "slategrey",
308
+ "snow",
309
+ "springgreen",
310
+ "steelblue",
311
+ "tan",
312
+ "teal",
313
+ "thistle",
314
+ "tomato",
315
+ "turquoise",
316
+ "violet",
317
+ "wheat",
318
+ "white",
319
+ "whitesmoke",
320
+ "yellow",
321
+ "yellowgreen"
322
+ ];
323
+ const CSS_COLOR_LOOKUP = {
324
+ aliceblue: "rgb(240,248,255)",
325
+ antiquewhite: "rgb(250,235,215)",
326
+ aqua: "rgb(0,255,255)",
327
+ aquamarine: "rgb(127,255,212)",
328
+ azure: "rgb(240,255,255)",
329
+ beige: "rgb(245,245,220)",
330
+ bisque: "rgb(255,228,196)",
331
+ black: "rgb(0,0,0)",
332
+ blanchedalmond: "rgb(255,235,205)",
333
+ blue: "rgb(0,0,255)",
334
+ blueviolet: "rgb(138,43,226)",
335
+ brown: "rgb(165,42,42)",
336
+ burlywood: "rgb(222,184,135)",
337
+ cadetblue: "rgb(95,158,160)",
338
+ chartreuse: "rgb(127,255,0)",
339
+ chocolate: "rgb(210,105,30)",
340
+ coral: "rgb(255,127,80)",
341
+ cornflowerblue: "rgb(100,149,237)",
342
+ cornsilk: "rgb(255,248,220)",
343
+ crimson: "rgb(220,20,60)",
344
+ cyan: "rgb(0,255,255)",
345
+ darkblue: "rgb(0,0,139)",
346
+ darkcyan: "rgb(0,139,139)",
347
+ darkgoldenrod: "rgb(184,134,11)",
348
+ darkgray: "rgb(169,169,169)",
349
+ darkgreen: "rgb(0,100,0)",
350
+ darkgrey: "rgb(169,169,169)",
351
+ darkkhaki: "rgb(189,183,107)",
352
+ darkmagenta: "rgb(139,0,139)",
353
+ darkolivegreen: "rgb(85,107,47)",
354
+ darkorange: "rgb(255,140,0)",
355
+ darkorchid: "rgb(153,50,204)",
356
+ darkred: "rgb(139,0,0)",
357
+ darksalmon: "rgb(233,150,122)",
358
+ darkseagreen: "rgb(143,188,143)",
359
+ darkslateblue: "rgb(72,61,139)",
360
+ darkslategray: "rgb(47,79,79)",
361
+ darkslategrey: "rgb(47,79,79)",
362
+ darkturquoise: "rgb(0,206,209)",
363
+ darkviolet: "rgb(148,0,211)",
364
+ deeppink: "rgb(255,20,147)",
365
+ deepskyblue: "rgb(0,191,255)",
366
+ dimgray: "rgb(105,105,105)",
367
+ dimgrey: "rgb(105,105,105)",
368
+ dodgerblue: "rgb(30,144,255)",
369
+ firebrick: "rgb(178,34,34)",
370
+ floralwhite: "rgb(255,250,240)",
371
+ forestgreen: "rgb(34,139,34)",
372
+ fuchsia: "rgb(255,0,255)",
373
+ gainsboro: "rgb(220,220,220)",
374
+ ghostwhite: "rgb(248,248,255)",
375
+ gold: "rgb(255,215,0)",
376
+ goldenrod: "rgb(218,165,32)",
377
+ gray: "rgb(128,128,128)",
378
+ green: "rgb(0,128,0)",
379
+ greenyellow: "rgb(173,255,47)",
380
+ grey: "rgb(128,128,128)",
381
+ honeydew: "rgb(240,255,240)",
382
+ hotpink: "rgb(255,105,180)",
383
+ indianred: "rgb(205,92,92)",
384
+ indigo: "rgb(75,0,130)",
385
+ ivory: "rgb(255,255,240)",
386
+ khaki: "rgb(240,230,140)",
387
+ lavender: "rgb(230,230,250)",
388
+ lavenderblush: "rgb(255,240,245)",
389
+ lawngreen: "rgb(124,252,0)",
390
+ lemonchiffon: "rgb(255,250,205)",
391
+ lightblue: "rgb(173,216,230)",
392
+ lightcoral: "rgb(240,128,128)",
393
+ lightcyan: "rgb(224,255,255)",
394
+ lightgoldenrodyellow: "rgb(250,250,210)",
395
+ lightgray: "rgb(211,211,211)",
396
+ lightgreen: "rgb(144,238,144)",
397
+ lightgrey: "rgb(211,211,211)",
398
+ lightpink: "rgb(255,182,193)",
399
+ lightsalmon: "rgb(255,160,122)",
400
+ lightseagreen: "rgb(32,178,170)",
401
+ lightskyblue: "rgb(135,206,250)",
402
+ lightslategray: "rgb(119,136,153)",
403
+ lightslategrey: "rgb(119,136,153)",
404
+ lightsteelblue: "rgb(176,196,222)",
405
+ lightyellow: "rgb(255,255,224)",
406
+ lime: "rgb(0,255,0)",
407
+ limegreen: "rgb(50,205,50)",
408
+ linen: "rgb(250,240,230)",
409
+ magenta: "rgb(255,0,255)",
410
+ maroon: "rgb(128,0,0)",
411
+ mediumaquamarine: "rgb(102,205,170)",
412
+ mediumblue: "rgb(0,0,205)",
413
+ mediumorchid: "rgb(186,85,211)",
414
+ mediumpurple: "rgb(147,112,219)",
415
+ mediumseagreen: "rgb(60,179,113)",
416
+ mediumslateblue: "rgb(123,104,238)",
417
+ mediumspringgreen: "rgb(0,250,154)",
418
+ mediumturquoise: "rgb(72,209,204)",
419
+ mediumvioletred: "rgb(199,21,133)",
420
+ midnightblue: "rgb(25,25,112)",
421
+ mintcream: "rgb(245,255,250)",
422
+ mistyrose: "rgb(255,228,225)",
423
+ moccasin: "rgb(255,228,181)",
424
+ navajowhite: "rgb(255,222,173)",
425
+ navy: "rgb(0,0,128)",
426
+ oldlace: "rgb(253,245,230)",
427
+ olive: "rgb(128,128,0)",
428
+ olivedrab: "rgb(107,142,35)",
429
+ orange: "rgb(255,165,0)",
430
+ orangered: "rgb(255,69,0)",
431
+ orchid: "rgb(218,112,214)",
432
+ palegoldenrod: "rgb(238,232,170)",
433
+ palegreen: "rgb(152,251,152)",
434
+ paleturquoise: "rgb(175,238,238)",
435
+ palevioletred: "rgb(219,112,147)",
436
+ papayawhip: "rgb(255,239,213)",
437
+ peachpuff: "rgb(255,218,185)",
438
+ peru: "rgb(205,133,63)",
439
+ pink: "rgb(255,192,203)",
440
+ plum: "rgb(221,160,221)",
441
+ powderblue: "rgb(176,224,230)",
442
+ purple: "rgb(128,0,128)",
443
+ rebeccapurple: "rgb(102,51,153)",
444
+ red: "rgb(255,0,0)",
445
+ rosybrown: "rgb(188,143,143)",
446
+ royalblue: "rgb(65,105,225)",
447
+ saddlebrown: "rgb(139,69,19)",
448
+ salmon: "rgb(250,128,114)",
449
+ sandybrown: "rgb(244,164,96)",
450
+ seagreen: "rgb(46,139,87)",
451
+ seashell: "rgb(255,245,238)",
452
+ sienna: "rgb(160,82,45)",
453
+ silver: "rgb(192,192,192)",
454
+ skyblue: "rgb(135,206,235)",
455
+ slateblue: "rgb(106,90,205)",
456
+ slategray: "rgb(112,128,144)",
457
+ slategrey: "rgb(112,128,144)",
458
+ snow: "rgb(255,250,250)",
459
+ springgreen: "rgb(0,255,127)",
460
+ steelblue: "rgb(70,130,180)",
461
+ tan: "rgb(210,180,140)",
462
+ teal: "rgb(0,128,128)",
463
+ thistle: "rgb(216,191,216)",
464
+ tomato: "rgb(255,99,71)",
465
+ turquoise: "rgb(64,224,208)",
466
+ violet: "rgb(238,130,238)",
467
+ wheat: "rgb(245,222,179)",
468
+ white: "rgb(255,255,255)",
469
+ whitesmoke: "rgb(245,245,245)",
470
+ yellow: "rgb(255,255,0)",
471
+ yellowgreen: "rgb(154,205,50)"
472
+ };
473
+
171
474
  //#endregion
172
475
  //#region ../constants/src/Comma.ts
173
476
  /**
@@ -7138,6 +7441,31 @@ function isValidComparisonParams(op, params) {
7138
7441
  return !!isComparisonOperation(op);
7139
7442
  }
7140
7443
 
7444
+ //#endregion
7445
+ //#region src/type-guards/css/isNamedColor.ts
7446
+ /**
7447
+ * **isNamedColor**`(val) -> is CssNamedColor`
7448
+ *
7449
+ * Typeguard to validate that `val` is a CSS/HTML Named Color.
7450
+ *
7451
+ * - to match you must make sure the string name is lowercase
7452
+ */
7453
+ function isNamedColor(val) {
7454
+ return isString(val) && CSS_NAMED_COLORS.includes(val);
7455
+ }
7456
+
7457
+ //#endregion
7458
+ //#region src/type-guards/css/isRgbColor.ts
7459
+ /**
7460
+ * **isRgbColor**`(val) -> is RgbColor`
7461
+ *
7462
+ * Typeguard that validates that `val` is a valid RbgColor (e.g.,
7463
+ * `rgb(127,0,0)`)
7464
+ */
7465
+ function isRgbColor(val) {
7466
+ return isString(val) && val.startsWith("rgb(") && val.endsWith(")");
7467
+ }
7468
+
7141
7469
  //#endregion
7142
7470
  //#region src/type-guards/datetime/isDate.ts
7143
7471
  /**
@@ -12881,6 +13209,46 @@ function defineCss(defn) {
12881
13209
  return createFnWithProps(fn$1, { defn });
12882
13210
  }
12883
13211
 
13212
+ //#endregion
13213
+ //#region src/css/parseColor.ts
13214
+ function parseRgbColor(color) {
13215
+ if (isRgbColor(color)) {
13216
+ const [r, g, b] = stripTrailing(stripLeading(color, "rgb("), ")").split(",").map((i) => i.trim().toLowerCase());
13217
+ return [
13218
+ r,
13219
+ g,
13220
+ b
13221
+ ].every((i) => isNumberLike(i)) ? {
13222
+ r: asNumber(r),
13223
+ g: asNumber(g),
13224
+ b: asNumber(b)
13225
+ } : err(`invalid-color/rgb`, `Some of the values assigned to the RGB colors are unable to be parsed to a numeric value: ${color}`, {
13226
+ color,
13227
+ r,
13228
+ g,
13229
+ b
13230
+ });
13231
+ }
13232
+ return err(`invalid-color/rgb`, `Could not parse the string passed in -- '${color}' -- as an RGB color. Must look something like: rgb(#,#,#)`, { color });
13233
+ }
13234
+ function parseNamedColor(color) {
13235
+ return Object.keys(CSS_COLOR_LOOKUP).includes(color) ? parseRgbColor(CSS_COLOR_LOOKUP[color]) : err(`invalid-color/named`, `The string -- ${color} -- is not a valid "named color" recognized by HTML and CSS. Make sure you have no whitespace or uppercase characters.`, { color });
13236
+ }
13237
+ /**
13238
+ * **parseColor**`(color) -> RGB`
13239
+ *
13240
+ * Extracts the discrete RGB values from both `CssRgb` strings and
13241
+ * _named colors_ recognized by HTML and CSS.
13242
+ *
13243
+ * = Note: all strings are trimmed and forced to lowercase to help
13244
+ * with matching.
13245
+ */
13246
+ function parseColor(color) {
13247
+ if (isRgbColor(color)) return parseRgbColor(color);
13248
+ else if (isNamedColor(color)) return parseNamedColor(color);
13249
+ else return err("invalid-color", `The string passed in -- ${color} -- could not be parsed as either a CSS RGB Color or a CSS Named Color.`, { color });
13250
+ }
13251
+
12884
13252
  //#endregion
12885
13253
  //#region src/datetime/asDate.ts
12886
13254
  /**
@@ -16239,5 +16607,5 @@ function asVueRef(value) {
16239
16607
  }
16240
16608
 
16241
16609
  //#endregion
16242
- export { NO_MATCH, ShapeApiImplementation, abs, add, addFnToProps, addPropsToFn, addToken, afterFirst, and, append, array, asArray, asChars, asDate, asDateTime, asEpochTimestamp, asFourDigitYear, asFromTo, asInputToken, asIsoDate, asIsoDateTime, asNumber, asOutputFunction, asPhoneFormat, asRecord, asString, asTakeState, asTemplate, asTwoDigitMonth, asType, asTypeSubtype, asTypedError, asUnion, asVueRef, between, boolean, brand, capitalize, cardType, choices, compare, contains, createConstant, createConverter, createCssKeyframe, createCssSelector, createErrorCondition, createFifoQueue, createFixedLengthArray, createFnWithProps, createGrammar, createLifoQueue, createNestingConfig, createStaticTakeFunction, createTakeFunction, createTakeStartEndFunction, createTakeWhileFunction, createTemplateRegExp, createToken, createTokenSyntax, cssColor, cssFromDefinition, csv, dateObjectToIso, daysInMonth, decrement, defineCss, defineObj, defineObject, defineObjectWith, defineTuple, doesExtend, dropFirstStackFrame, eachAsString, endsWith, endsWithTypeguard, ensureLeading, ensureSurround, ensureTrailing, entries, equalsSome, err, errCondition, every, filter, filterEmpty, filterUndefined, find, firstChar, fn, fnProps, fourDigitYear, freeze, fromDefineObject, fromDefineTuple, fromInputToken, fromKeyValue, get, getDaysBetween, getEach, getMonthAbbrev, getMonthName, getMonthNumber, getPhoneCountryCode, getSeason, getTailwindModifiers, getToday, getTokenData, getTokenKind, getTomorrow, getTypeSubtype, getUrlBase, getUrlDefaultPort, getUrlDynamics, getUrlPath, getUrlPort, getUrlProtocol, getUrlQueryParams, getUrlSource, getWeekNumber, getYear, getYesterday, getYouTubePageType, handleDoneFn, hasCountryCode, hasDefaultValue, hasHtml, hasIndexOf, hasKeys, hasNonStringKeys, hasOnlyStringKeys, hasOnlyStringValues, hasOnlySymbolKeys, hasOverlappingKeys, hasProtocol, hasProtocolPrefix, hasSymbolKeys, hasUrlPort, hasUrlQueryParameter, hasValidHtml, hasWhiteSpace, idLiteral, idTypeGuard, identity, ifArray, ifArrayPartial, ifBoolean, ifChar, ifContainer, ifDefined, ifEmpty, ifEqual, ifError, ifFalse, ifFunction, ifHasKey, ifLength, ifLowercaseChar, ifNotNull, ifNull, ifNumber, ifObject, ifSameType, ifScalar, ifString, ifTrue, ifUndefined, ifUppercaseChar, increment, indexOf, infer, integer, intersect, intersection, ip6GroupExpansion, isAccelerationMetric, isAccelerationUom, isAfter, isAlpha, isAmazonUrl, isAmericanExpress, isApi, isApiSurface, isAppleUrl, isAreaMetric, isAreaUom, isArray, isAustralianNewsUrl, isBefore, isBelgiumNewsUrl, isBestBuyUrl, isBitbucketUrl, isBoolean, isBooleanArray, isBooleanLike, isCanadianNewsUrl, isChineseNewsUrl, isCodeCommitUrl, isComparisonOperation, isConstant, isContainer, isCostCoUrl, isCountryAbbrev, isCountryCode2, isCountryCode3, isCountryName, isCreditCard, isCssAspectRatio, isCsv, isCurrentMetric, isCurrentUom, isCvsUrl, isDanishNewsUrl, isDate, isDateLike, isDateMeta, isDayJs, isDefineObject, isDefineTuple, isDefined, isDellUrl, isDeltaReturn, isDictionary, isDistanceMetric, isDistanceUom, isDomainName, isDoneFn, isDoubleLeap, isDutchNewsUrl, isEbayUrl, isEmail, isEmpty, isEnergyMetric, isEnergyUom, isEpochInMilliseconds, isEpochInSeconds, isEqual, isErr, isError, isEscapeFunction, isEtsyUrl, isEven, isFalse, isFalsy, isFnWithParams, isFourDigitYear, isFrenchNewsUrl, isFrequencyMetric, isFrequencyUom, isFunction, isGermanNewsUrl, isGithubIssueUrl, isGithubIssuesListUrl, isGithubOrgUrl, isGithubProjectUrl, isGithubProjectsListUrl, isGithubReleaseTagUrl, isGithubReleasesListUrl, isGithubRepoReleaseTagUrl, isGithubRepoReleasesUrl, isGithubRepoUrl, isGithubUrl, isGreaterThan, isGreaterThanOrEqual, isHexadecimal, isHmUrl, isHomeDepotUrl, isHtml, isHtmlComponentTag, isHtmlElement, isIanaTimezone, isIkeaUrl, isInUnion, isIndexable, isIndianNewsUrl, isInlineSvg, isInputToken, isInputToken__String, isInteger, isIp4Address, isIp6Address, isIp6Subnet, isIpAddress, isIso3166Alpha2, isIso3166Alpha3, isIso3166CountryCode, isIso3166CountryName, isIsoDate, isIsoDateTime, isIsoExplicitDate, isIsoExplicitTime, isIsoImplicitDate, isIsoImplicitTime, isIsoMonthDate, isIsoTime, isIsoYear, isIsoYearMonth, isItalianNewsUrl, isJapaneseNewsUrl, isKrogersUrl, isLeapYear, isLength, isLikeRegExp, isLowesUrl, isLuminosityMetric, isLuminosityUom, isLuxonDate, isMacysUrl, isMap, isMassMetric, isMassUom, isMastercard, isMetric, isMetricCategory, isMexicanNewsUrl, isMinimalDigitDate, isMoment, isMonthAbbrev, isMonthName, isNarrowable, isNarrowableArray, isNarrowableDictionary, isNegativeNumber, isNestingEnd, isNestingEndMatch, isNestingKeyValue, isNestingStart, isNestingTuple, isNever, isNewsUrl, isNikeUrl, isNorwegianNewsUrl, isNotEmpty, isNotError, isNotNull, isNotUnset, isNothing, isNull, isNumber, isNumberLike, isNumericArray, isNumericString, isObject, isObjectKey, isObjectKeyRequiringQuotes, isOdd, isOk, isOptionalParamFunction, isParsedDate, isPhoneNumber, isPowerMetric, isPowerUom, isPressureMetric, isPressureUom, isProtocol, isProtocolPrefix, isReadonlyArray, isRef, isRegExp, isRepoSource, isRepoUrl, isResistanceMetric, isResistanceUom, isRetailUrl, isSameDay, isSameMonth, isSameMonthYear, isSameTypeOf, isSameYear, isScalar, isSemanticVersion, isSet, isSetContainer, isShape, isShapeCallback, isSimpleContainerToken, isSimpleContainerTokenTuple, isSimpleScalarToken, isSimpleScalarTokenTuple, isSimpleToken, isSimpleTokenTuple, isSocialMediaProfileUrl, isSocialMediaUrl, isSouthKoreanNewsUrl, isSpanishNewsUrl, isSpecificConstant, isSpeedMetric, isSpeedUom, isStaticTemplate, isString, isStringArray, isStringLiteral, isStringOrNumericArray, isSwissNewsUrl, isSymbol, isTailwindColor, isTailwindColorClass, isTailwindColorName, isTailwindColorTarget, isTailwindColorWithLuminosity, isTailwindColorWithLuminosityAndOpacity, isTailwindModifier, isTakeState, isTargetUrl, isTemperatureMetric, isTemperatureUom, isTemporalDate, isThenable, isThisMonth, isThisWeek, isThisYear, isThreeDigitMillisecond, isTimeMetric, isTimeUom, isTimezoneOffset, isToday, isTomorrow, isTrimable, isTrue, isTruthy, isTuple, isTurkishNewsUrl, isTwoDigitDate, isTwoDigitHour, isTwoDigitMinute, isTwoDigitMonth, isTwoDigitSecond, isTypeOf, isTypeSubtype, isTypeTuple, isTypedError, isUkNewsUrl, isUndefined, isUnset, isUom, isUomCategory, isUri, isUrl, isUrlPath, isUrlSource, isUsNewsUrl, isUsPhoneNumber, isUsStateAbbreviation, isUsStateName, isValidAtomicTag, isValidBlockTag, isValidComparisonParams, isValidHtml, isValidHtmlTag, isVariable, isVisa, isVisaMastercard, isVoltageMetric, isVoltageUom, isVolumeMetric, isVolumeUom, isWalgreensUrl, isWalmartUrl, isWayfairUrl, isWeakMap, isWholeFoodsUrl, isYesterday, isYouTubeCreatorUrl, isYouTubeFeedHistoryUrl, isYouTubeFeedUrl, isYouTubePlaylistUrl, isYouTubePlaylistsUrl, isYouTubeShareUrl, isYouTubeSubscriptionsUrl, isYouTubeTrendingUrl, isYouTubeUrl, isYouTubeVideoUrl, isYouTubeVideosInPlaylist, isZaraUrl, isZipCode, isZipCode5, isZipPlus4, joinWith, keysOf, keysWithError, kindLiteral, last, lastChar, lessThan, lessThanOrEqual, literal, logicalReturns, lookupCountryAlpha2, lookupCountryAlpha3, lookupCountryCode, lookupCountryName, lowercase, map, maybePhoneNumber, mergeObjects, mergeScalars, mergeTuples, mutable, nameLiteral, narrow, nbsp, nestedSplit, nesting, not, nullType, objectValues, omitKeys, optional, optionalOrNull, or, orNull, parseDate, parseDateObject, parseIsoDate, parseNumericDate, pathJoin, pluralize, pop, record, regexToken, removePhoneCountryCode, removeTailwindModifiers, removeUrlProtocol, replace, replaceAll, replaceAllFromTo, result, retainAfter, retainAfterInclusive, retainChars, retainKeys, retainUntil, retainUntilInclusive, retainUntil__Nested, retainWhile, reverse, reverseLookup, rightWhitespace, setupSafeStringEncoding, shape, sharedKeys, shift, simpleContainerToken, simpleContainerType, simpleScalarToken, simpleScalarType, simpleToken, simpleType, slice, sortByKey, split, startsWith, startsWithTypeguard, stripAfter, stripAfterLast, stripBefore, stripChars, stripLeading, stripParenthesis, stripSurround, stripTrailing, stripUntil, stripWhile, surround, take, takeNumericCharacters, takeStart, takeStringToken, threeDigitMillisecond, toAllCaps, toCamelCase, toInteger, toIsoDateString, toJSON, toJson, toKebabCase, toKeyValue, toLowercase, toNumber, toNumericArray, toPascalCase, toSnakeCase, toString, toStringLiteral, toStringLiteral__Object, toStringLiteral__Tuple, toStringToken, trim, trimEnd, trimStart, truncate, tuple, twColor, twoDigitHour, twoDigitMinute, twoDigitSecond, typedError, unbrand, uncapitalize, undefinedType, unionize, unique, uniqueKeys, unknown, unset, urlMeta, usingLookup, validHtmlAttributes, valuesOf, weakMap, widen, withDefaults, withKeys, withValue, withoutKeys, withoutValue, youtubeEmbed, youtubeMeta };
16610
+ export { NO_MATCH, ShapeApiImplementation, abs, add, addFnToProps, addPropsToFn, addToken, afterFirst, and, append, array, asArray, asChars, asDate, asDateTime, asEpochTimestamp, asFourDigitYear, asFromTo, asInputToken, asIsoDate, asIsoDateTime, asNumber, asOutputFunction, asPhoneFormat, asRecord, asString, asTakeState, asTemplate, asTwoDigitMonth, asType, asTypeSubtype, asTypedError, asUnion, asVueRef, between, boolean, brand, capitalize, cardType, choices, compare, contains, createConstant, createConverter, createCssKeyframe, createCssSelector, createErrorCondition, createFifoQueue, createFixedLengthArray, createFnWithProps, createGrammar, createLifoQueue, createNestingConfig, createStaticTakeFunction, createTakeFunction, createTakeStartEndFunction, createTakeWhileFunction, createTemplateRegExp, createToken, createTokenSyntax, cssColor, cssFromDefinition, csv, dateObjectToIso, daysInMonth, decrement, defineCss, defineObj, defineObject, defineObjectWith, defineTuple, doesExtend, dropFirstStackFrame, eachAsString, endsWith, endsWithTypeguard, ensureLeading, ensureSurround, ensureTrailing, entries, equalsSome, err, errCondition, every, filter, filterEmpty, filterUndefined, find, firstChar, fn, fnProps, fourDigitYear, freeze, fromDefineObject, fromDefineTuple, fromInputToken, fromKeyValue, get, getDaysBetween, getEach, getMonthAbbrev, getMonthName, getMonthNumber, getPhoneCountryCode, getSeason, getTailwindModifiers, getToday, getTokenData, getTokenKind, getTomorrow, getTypeSubtype, getUrlBase, getUrlDefaultPort, getUrlDynamics, getUrlPath, getUrlPort, getUrlProtocol, getUrlQueryParams, getUrlSource, getWeekNumber, getYear, getYesterday, getYouTubePageType, handleDoneFn, hasCountryCode, hasDefaultValue, hasHtml, hasIndexOf, hasKeys, hasNonStringKeys, hasOnlyStringKeys, hasOnlyStringValues, hasOnlySymbolKeys, hasOverlappingKeys, hasProtocol, hasProtocolPrefix, hasSymbolKeys, hasUrlPort, hasUrlQueryParameter, hasValidHtml, hasWhiteSpace, idLiteral, idTypeGuard, identity, ifArray, ifArrayPartial, ifBoolean, ifChar, ifContainer, ifDefined, ifEmpty, ifEqual, ifError, ifFalse, ifFunction, ifHasKey, ifLength, ifLowercaseChar, ifNotNull, ifNull, ifNumber, ifObject, ifSameType, ifScalar, ifString, ifTrue, ifUndefined, ifUppercaseChar, increment, indexOf, infer, integer, intersect, intersection, ip6GroupExpansion, isAccelerationMetric, isAccelerationUom, isAfter, isAlpha, isAmazonUrl, isAmericanExpress, isApi, isApiSurface, isAppleUrl, isAreaMetric, isAreaUom, isArray, isAustralianNewsUrl, isBefore, isBelgiumNewsUrl, isBestBuyUrl, isBitbucketUrl, isBoolean, isBooleanArray, isBooleanLike, isCanadianNewsUrl, isChineseNewsUrl, isCodeCommitUrl, isComparisonOperation, isConstant, isContainer, isCostCoUrl, isCountryAbbrev, isCountryCode2, isCountryCode3, isCountryName, isCreditCard, isCssAspectRatio, isCsv, isCurrentMetric, isCurrentUom, isCvsUrl, isDanishNewsUrl, isDate, isDateLike, isDateMeta, isDayJs, isDefineObject, isDefineTuple, isDefined, isDellUrl, isDeltaReturn, isDictionary, isDistanceMetric, isDistanceUom, isDomainName, isDoneFn, isDoubleLeap, isDutchNewsUrl, isEbayUrl, isEmail, isEmpty, isEnergyMetric, isEnergyUom, isEpochInMilliseconds, isEpochInSeconds, isEqual, isErr, isError, isEscapeFunction, isEtsyUrl, isEven, isFalse, isFalsy, isFnWithParams, isFourDigitYear, isFrenchNewsUrl, isFrequencyMetric, isFrequencyUom, isFunction, isGermanNewsUrl, isGithubIssueUrl, isGithubIssuesListUrl, isGithubOrgUrl, isGithubProjectUrl, isGithubProjectsListUrl, isGithubReleaseTagUrl, isGithubReleasesListUrl, isGithubRepoReleaseTagUrl, isGithubRepoReleasesUrl, isGithubRepoUrl, isGithubUrl, isGreaterThan, isGreaterThanOrEqual, isHexadecimal, isHmUrl, isHomeDepotUrl, isHtml, isHtmlComponentTag, isHtmlElement, isIanaTimezone, isIkeaUrl, isInUnion, isIndexable, isIndianNewsUrl, isInlineSvg, isInputToken, isInputToken__String, isInteger, isIp4Address, isIp6Address, isIp6Subnet, isIpAddress, isIso3166Alpha2, isIso3166Alpha3, isIso3166CountryCode, isIso3166CountryName, isIsoDate, isIsoDateTime, isIsoExplicitDate, isIsoExplicitTime, isIsoImplicitDate, isIsoImplicitTime, isIsoMonthDate, isIsoTime, isIsoYear, isIsoYearMonth, isItalianNewsUrl, isJapaneseNewsUrl, isKrogersUrl, isLeapYear, isLength, isLikeRegExp, isLowesUrl, isLuminosityMetric, isLuminosityUom, isLuxonDate, isMacysUrl, isMap, isMassMetric, isMassUom, isMastercard, isMetric, isMetricCategory, isMexicanNewsUrl, isMinimalDigitDate, isMoment, isMonthAbbrev, isMonthName, isNamedColor, isNarrowable, isNarrowableArray, isNarrowableDictionary, isNegativeNumber, isNestingEnd, isNestingEndMatch, isNestingKeyValue, isNestingStart, isNestingTuple, isNever, isNewsUrl, isNikeUrl, isNorwegianNewsUrl, isNotEmpty, isNotError, isNotNull, isNotUnset, isNothing, isNull, isNumber, isNumberLike, isNumericArray, isNumericString, isObject, isObjectKey, isObjectKeyRequiringQuotes, isOdd, isOk, isOptionalParamFunction, isParsedDate, isPhoneNumber, isPowerMetric, isPowerUom, isPressureMetric, isPressureUom, isProtocol, isProtocolPrefix, isReadonlyArray, isRef, isRegExp, isRepoSource, isRepoUrl, isResistanceMetric, isResistanceUom, isRetailUrl, isRgbColor, isSameDay, isSameMonth, isSameMonthYear, isSameTypeOf, isSameYear, isScalar, isSemanticVersion, isSet, isSetContainer, isShape, isShapeCallback, isSimpleContainerToken, isSimpleContainerTokenTuple, isSimpleScalarToken, isSimpleScalarTokenTuple, isSimpleToken, isSimpleTokenTuple, isSocialMediaProfileUrl, isSocialMediaUrl, isSouthKoreanNewsUrl, isSpanishNewsUrl, isSpecificConstant, isSpeedMetric, isSpeedUom, isStaticTemplate, isString, isStringArray, isStringLiteral, isStringOrNumericArray, isSwissNewsUrl, isSymbol, isTailwindColor, isTailwindColorClass, isTailwindColorName, isTailwindColorTarget, isTailwindColorWithLuminosity, isTailwindColorWithLuminosityAndOpacity, isTailwindModifier, isTakeState, isTargetUrl, isTemperatureMetric, isTemperatureUom, isTemporalDate, isThenable, isThisMonth, isThisWeek, isThisYear, isThreeDigitMillisecond, isTimeMetric, isTimeUom, isTimezoneOffset, isToday, isTomorrow, isTrimable, isTrue, isTruthy, isTuple, isTurkishNewsUrl, isTwoDigitDate, isTwoDigitHour, isTwoDigitMinute, isTwoDigitMonth, isTwoDigitSecond, isTypeOf, isTypeSubtype, isTypeTuple, isTypedError, isUkNewsUrl, isUndefined, isUnset, isUom, isUomCategory, isUri, isUrl, isUrlPath, isUrlSource, isUsNewsUrl, isUsPhoneNumber, isUsStateAbbreviation, isUsStateName, isValidAtomicTag, isValidBlockTag, isValidComparisonParams, isValidHtml, isValidHtmlTag, isVariable, isVisa, isVisaMastercard, isVoltageMetric, isVoltageUom, isVolumeMetric, isVolumeUom, isWalgreensUrl, isWalmartUrl, isWayfairUrl, isWeakMap, isWholeFoodsUrl, isYesterday, isYouTubeCreatorUrl, isYouTubeFeedHistoryUrl, isYouTubeFeedUrl, isYouTubePlaylistUrl, isYouTubePlaylistsUrl, isYouTubeShareUrl, isYouTubeSubscriptionsUrl, isYouTubeTrendingUrl, isYouTubeUrl, isYouTubeVideoUrl, isYouTubeVideosInPlaylist, isZaraUrl, isZipCode, isZipCode5, isZipPlus4, joinWith, keysOf, keysWithError, kindLiteral, last, lastChar, lessThan, lessThanOrEqual, literal, logicalReturns, lookupCountryAlpha2, lookupCountryAlpha3, lookupCountryCode, lookupCountryName, lowercase, map, maybePhoneNumber, mergeObjects, mergeScalars, mergeTuples, mutable, nameLiteral, narrow, nbsp, nestedSplit, nesting, not, nullType, objectValues, omitKeys, optional, optionalOrNull, or, orNull, parseColor, parseDate, parseDateObject, parseIsoDate, parseNamedColor, parseNumericDate, parseRgbColor, pathJoin, pluralize, pop, record, regexToken, removePhoneCountryCode, removeTailwindModifiers, removeUrlProtocol, replace, replaceAll, replaceAllFromTo, result, retainAfter, retainAfterInclusive, retainChars, retainKeys, retainUntil, retainUntilInclusive, retainUntil__Nested, retainWhile, reverse, reverseLookup, rightWhitespace, setupSafeStringEncoding, shape, sharedKeys, shift, simpleContainerToken, simpleContainerType, simpleScalarToken, simpleScalarType, simpleToken, simpleType, slice, sortByKey, split, startsWith, startsWithTypeguard, stripAfter, stripAfterLast, stripBefore, stripChars, stripLeading, stripParenthesis, stripSurround, stripTrailing, stripUntil, stripWhile, surround, take, takeNumericCharacters, takeStart, takeStringToken, threeDigitMillisecond, toAllCaps, toCamelCase, toInteger, toIsoDateString, toJSON, toJson, toKebabCase, toKeyValue, toLowercase, toNumber, toNumericArray, toPascalCase, toSnakeCase, toString, toStringLiteral, toStringLiteral__Object, toStringLiteral__Tuple, toStringToken, trim, trimEnd, trimStart, truncate, tuple, twColor, twoDigitHour, twoDigitMinute, twoDigitSecond, typedError, unbrand, uncapitalize, undefinedType, unionize, unique, uniqueKeys, unknown, unset, urlMeta, usingLookup, validHtmlAttributes, valuesOf, weakMap, widen, withDefaults, withKeys, withValue, withoutKeys, withoutValue, youtubeEmbed, youtubeMeta };
16243
16611
  //# sourceMappingURL=index.js.map