{"version":3,"file":"ng-zorro-antd-core-time.mjs","names":[],"sources":["../../components/core/time/candy-date.ts","../../components/core/time/time.ts","../../components/core/time/date-config.ts","../../components/core/time/date-adapter.ts","../../components/core/time/date-fns-adapter.ts","../../components/core/time/native-adapter.ts","../../components/core/time/time-parser.ts"],"sourcesContent":["/**\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE\n */\n\nimport {\n  addMonths,\n  addYears,\n  differenceInCalendarDays,\n  differenceInCalendarMonths,\n  differenceInCalendarQuarters,\n  differenceInCalendarYears,\n  differenceInHours,\n  differenceInMinutes,\n  differenceInSeconds,\n  getQuarter,\n  isFirstDayOfMonth,\n  isLastDayOfMonth,\n  isSameDay,\n  isSameHour,\n  isSameMinute,\n  isSameMonth,\n  isSameQuarter,\n  isSameSecond,\n  isSameYear,\n  isToday,\n  isValid,\n  setDay,\n  setMonth,\n  setQuarter,\n  setYear,\n  startOfMonth,\n  startOfWeek\n} from 'date-fns';\n\nimport { warn } from 'ng-zorro-antd/core/logger';\nimport { IndexableObject, NzSafeAny } from 'ng-zorro-antd/core/types';\n\nimport { WeekDayIndex } from './date-config';\n\n/**\n * @deprecated Will be removed in v23.\n */\nexport type CandyDateMode = 'decade' | 'year' | 'quarter' | 'month' | 'day' | 'hour' | 'minute' | 'second';\n\n/**\n * @deprecated Use `NzDateAdapter` directly instead. Will be removed in v23.\n */\nexport type NormalizedMode = 'decade' | 'year' | 'month';\n\n/**\n * @deprecated Use `Date` and `NzDateAdapter` directly instead. Will be removed in v23.\n */\nexport type CandyDateType = CandyDate | Date | null | undefined;\n\n/**\n * @deprecated Use `Date | null` directly instead. Will be removed in v23.\n */\nexport type SingleValue = CandyDate | null;\n\n/**\n * @deprecated Use `Date | null` or `(Date | null)[]` directly instead. Will be removed in v23.\n */\nexport type CompatibleValue = SingleValue | SingleValue[];\n\n/**\n * @deprecated Will be removed in v23.\n */\nexport function wrongSortOrder(rangeValue: SingleValue[]): boolean {\n  const [start, end] = rangeValue;\n  return !!start && !!end && end.isBeforeDay(start);\n}\n\n/**\n * @deprecated Use `NzDateAdapter` directly instead. Will be removed in v23.\n */\nexport function normalizeRangeValue(\n  value: SingleValue[],\n  hasTimePicker: boolean,\n  type: NormalizedMode = 'month',\n  activePart: 'left' | 'right' = 'left'\n): CandyDate[] {\n  const [start, end] = value;\n  let newStart: CandyDate = start || new CandyDate();\n  let newEnd: CandyDate = end || (hasTimePicker ? newStart : newStart.add(1, type));\n\n  if (start && !end) {\n    newStart = start;\n    newEnd = hasTimePicker ? start : start.add(1, type);\n  } else if (!start && end) {\n    newStart = hasTimePicker ? end : end.add(-1, type);\n    newEnd = end;\n  } else if (start && end && !hasTimePicker) {\n    if (start.isSame(end, type)) {\n      newEnd = newStart.add(1, type);\n    } else {\n      if (activePart === 'left') {\n        newEnd = newStart.add(1, type);\n      } else {\n        newStart = newEnd.add(-1, type);\n      }\n    }\n  }\n  return [newStart, newEnd];\n}\n\n/**\n * @deprecated Use `Date` cloning directly instead. Will be removed in v23.\n */\nexport function cloneDate(value: CompatibleValue): CompatibleValue {\n  if (Array.isArray(value)) {\n    return value.map(v => (v instanceof CandyDate ? v.clone() : null));\n  } else {\n    return value instanceof CandyDate ? value.clone() : null;\n  }\n}\n\n/**\n * Wrapping kind APIs for date operating and unify\n * NOTE: every new API return new CandyDate object without side effects to the former Date object\n * NOTE: most APIs are based on local time other than customized locale id (this needs tobe support in future)\n * TODO: support format() against to angular's core API\n *\n * @deprecated Use `NzDateAdapter` directly instead. Will be removed in v23.\n */\nexport class CandyDate implements IndexableObject {\n  nativeDate: Date;\n  // locale: string; // Custom specified locale ID\n\n  constructor(date?: Date | string | number) {\n    if (date) {\n      if (date instanceof Date) {\n        this.nativeDate = date;\n      } else if (typeof date === 'string' || typeof date === 'number') {\n        warn('The string type is not recommended for date-picker, use \"Date\" type');\n        this.nativeDate = new Date(date);\n      } else {\n        throw new Error('The input date type is not supported (\"Date\" is now recommended)');\n      }\n    } else {\n      this.nativeDate = new Date();\n    }\n  }\n\n  calendarStart(options?: { weekStartsOn: WeekDayIndex | undefined }): CandyDate {\n    return new CandyDate(startOfWeek(startOfMonth(this.nativeDate), options));\n  }\n\n  // ---------------------------------------------------------------------\n  // | Native shortcuts\n  // -----------------------------------------------------------------------------\\\n\n  getYear(): number {\n    return this.nativeDate.getFullYear();\n  }\n\n  getMonth(): number {\n    return this.nativeDate.getMonth();\n  }\n\n  getDay(): number {\n    return this.nativeDate.getDay();\n  }\n\n  getTime(): number {\n    return this.nativeDate.getTime();\n  }\n\n  getDate(): number {\n    return this.nativeDate.getDate();\n  }\n\n  getHours(): number {\n    return this.nativeDate.getHours();\n  }\n\n  getMinutes(): number {\n    return this.nativeDate.getMinutes();\n  }\n\n  getSeconds(): number {\n    return this.nativeDate.getSeconds();\n  }\n\n  getMilliseconds(): number {\n    return this.nativeDate.getMilliseconds();\n  }\n\n  // ---------------------------------------------------------------------\n  // | New implementing APIs\n  // ---------------------------------------------------------------------\n\n  clone(): CandyDate {\n    return new CandyDate(new Date(this.nativeDate));\n  }\n\n  setHms(hour: number, minute: number, second: number): CandyDate {\n    const newDate = new Date(this.nativeDate.setHours(hour, minute, second));\n    return new CandyDate(newDate);\n  }\n\n  setYear(year: number): CandyDate {\n    return new CandyDate(setYear(this.nativeDate, year));\n  }\n\n  addYears(amount: number): CandyDate {\n    return new CandyDate(addYears(this.nativeDate, amount));\n  }\n\n  // NOTE: month starts from 0\n  // NOTE: Don't use the native API for month manipulation as it not restrict the date when it overflows, eg. (new Date('2018-7-31')).setMonth(1) will be date of 2018-3-03 instead of 2018-2-28\n  setMonth(month: number): CandyDate {\n    return new CandyDate(setMonth(this.nativeDate, month));\n  }\n\n  addMonths(amount: number): CandyDate {\n    return new CandyDate(addMonths(this.nativeDate, amount));\n  }\n\n  setDay(day: number, options?: { weekStartsOn: WeekDayIndex }): CandyDate {\n    return new CandyDate(setDay(this.nativeDate, day, options));\n  }\n\n  setDate(amount: number): CandyDate {\n    const date = new Date(this.nativeDate);\n    date.setDate(amount);\n    return new CandyDate(date);\n  }\n\n  getQuarter(): number {\n    return getQuarter(this.nativeDate);\n  }\n\n  setQuarter(quarter: number): CandyDate {\n    return new CandyDate(setQuarter(this.nativeDate, quarter));\n  }\n\n  addDays(amount: number): CandyDate {\n    return this.setDate(this.getDate() + amount);\n  }\n\n  add(amount: number, mode: NormalizedMode): CandyDate {\n    switch (mode) {\n      case 'decade':\n        return this.addYears(amount * 10);\n      case 'year':\n        return this.addYears(amount);\n      case 'month':\n        return this.addMonths(amount);\n      default:\n        return this.addMonths(amount);\n    }\n  }\n\n  isSame(date: CandyDateType, grain: CandyDateMode = 'day'): boolean {\n    if (date == null) {\n      return false;\n    }\n    let fn;\n    switch (grain) {\n      case 'decade':\n        fn = (pre: Date, next: Date) => Math.abs(pre.getFullYear() - next.getFullYear()) < 11;\n        break;\n      case 'year':\n        fn = isSameYear;\n        break;\n      case 'quarter':\n        fn = isSameQuarter;\n        break;\n      case 'month':\n        fn = isSameMonth;\n        break;\n      case 'day':\n        fn = isSameDay;\n        break;\n      case 'hour':\n        fn = isSameHour;\n        break;\n      case 'minute':\n        fn = isSameMinute;\n        break;\n      case 'second':\n        fn = isSameSecond;\n        break;\n      default:\n        fn = isSameDay;\n        break;\n    }\n    return fn(this.nativeDate, this.toNativeDate(date));\n  }\n\n  isSameYear(date: CandyDateType): boolean {\n    return this.isSame(date, 'year');\n  }\n  isSameQuarter(date: CandyDateType): boolean {\n    return this.isSame(date, 'quarter');\n  }\n\n  isSameMonth(date: CandyDateType): boolean {\n    return this.isSame(date, 'month');\n  }\n\n  isSameDay(date: CandyDateType): boolean {\n    return this.isSame(date, 'day');\n  }\n\n  isSameHour(date: CandyDateType): boolean {\n    return this.isSame(date, 'hour');\n  }\n\n  isSameMinute(date: CandyDateType): boolean {\n    return this.isSame(date, 'minute');\n  }\n\n  isSameSecond(date: CandyDateType): boolean {\n    return this.isSame(date, 'second');\n  }\n\n  isBefore(date: CandyDateType, grain: CandyDateMode = 'day'): boolean {\n    if (date == null) {\n      return false;\n    }\n    let fn;\n    switch (grain) {\n      case 'year':\n        fn = differenceInCalendarYears;\n        break;\n      case 'quarter':\n        fn = differenceInCalendarQuarters;\n        break;\n      case 'month':\n        fn = differenceInCalendarMonths;\n        break;\n      case 'day':\n        fn = differenceInCalendarDays;\n        break;\n      case 'hour':\n        fn = differenceInHours;\n        break;\n      case 'minute':\n        fn = differenceInMinutes;\n        break;\n      case 'second':\n        fn = differenceInSeconds;\n        break;\n      default:\n        fn = differenceInCalendarDays;\n        break;\n    }\n    return fn(this.nativeDate, this.toNativeDate(date)) < 0;\n  }\n\n  isBeforeYear(date: CandyDateType): boolean {\n    return this.isBefore(date, 'year');\n  }\n\n  isBeforeQuarter(date: CandyDateType): boolean {\n    return this.isBefore(date, 'quarter');\n  }\n\n  isBeforeMonth(date: CandyDateType): boolean {\n    return this.isBefore(date, 'month');\n  }\n\n  isBeforeDay(date: CandyDateType): boolean {\n    return this.isBefore(date, 'day');\n  }\n\n  // Equal to today accurate to \"day\"\n  isToday(): boolean {\n    return isToday(this.nativeDate);\n  }\n\n  isValid(): boolean {\n    return isValid(this.nativeDate);\n  }\n\n  isFirstDayOfMonth(): boolean {\n    return isFirstDayOfMonth(this.nativeDate);\n  }\n\n  isLastDayOfMonth(): boolean {\n    return isLastDayOfMonth(this.nativeDate);\n  }\n\n  private toNativeDate(date: NzSafeAny): Date {\n    return date instanceof CandyDate ? date.nativeDate : date;\n  }\n}\n","/**\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE\n */\n\nexport const timeUnits: Array<[string, number]> = [\n  ['Y', 1000 * 60 * 60 * 24 * 365], // years\n  ['M', 1000 * 60 * 60 * 24 * 30], // months\n  ['D', 1000 * 60 * 60 * 24], // days\n  ['H', 1000 * 60 * 60], // hours\n  ['m', 1000 * 60], // minutes\n  ['s', 1000], // seconds\n  ['S', 1] // million seconds\n];\n","/**\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE\n */\n\nimport { InjectionToken } from '@angular/core';\n\n/** Type for week day index (0 = Sunday, 1 = Monday, etc.) */\nexport type WeekDayIndex = 0 | 1 | 2 | 3 | 4 | 5 | 6;\n\n/** Configuration for date-related features. */\nexport interface NzDateConfig {\n  /** Customize the first day of a week. */\n  firstDayOfWeek?: WeekDayIndex;\n}\n\n/** Injection token for date configuration. */\nexport const NZ_DATE_CONFIG = new InjectionToken<NzDateConfig>(\n  typeof ngDevMode !== 'undefined' && ngDevMode ? 'nz-date-config' : ''\n);\n\n/** Injection token for the date locale used by the configured date adapter. */\nexport const NZ_DATE_LOCALE = new InjectionToken<unknown>(\n  typeof ngDevMode !== 'undefined' && ngDevMode ? 'nz-date-locale' : ''\n);\n\n/** Default date configuration. */\nexport const NZ_DATE_CONFIG_DEFAULT: NzDateConfig = {\n  firstDayOfWeek: undefined\n};\n\n/** Merges user config with default config. */\nexport function mergeDateConfig(config: NzDateConfig | null): NzDateConfig {\n  return { ...NZ_DATE_CONFIG_DEFAULT, ...config };\n}\n","/**\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE\n */\n\nimport { EnvironmentProviders, inject, InjectionToken, makeEnvironmentProviders, Type } from '@angular/core';\nimport { Observable, Subject } from 'rxjs';\n\nimport { NzSafeAny } from 'ng-zorro-antd/core/types';\n\nimport { NZ_DATE_CONFIG, NZ_DATE_CONFIG_DEFAULT, NZ_DATE_LOCALE, NzDateConfig } from './date-config';\n\nconst NOT_IMPLEMENTED = 'NzDateAdapter: method not implemented. Override this method in your adapter to opt in.';\n\n/**\n * Injection token for providing a custom NzDateAdapter implementation.\n */\nexport const NZ_DATE_ADAPTER = new InjectionToken<Type<NzDateAdapter<unknown>>>(\n  typeof ngDevMode !== 'undefined' && ngDevMode ? 'nz-date-adapter-type' : ''\n);\n\n/** Configuration for a date adapter provider. */\nexport interface NzDateAdapterConfig<TLocale = unknown> extends NzDateConfig {\n  /** Locale value used by the configured date adapter. */\n  locale?: TLocale;\n}\n\n/** Factory for creating a date adapter configuration in an injection context. */\nexport type NzDateAdapterConfigFactory<TLocale = unknown> = () => NzDateAdapterConfig<TLocale>;\n\nconst NZ_DATE_ADAPTER_CONFIG = new InjectionToken<NzDateAdapterConfig>(\n  typeof ngDevMode !== 'undefined' && ngDevMode ? 'nz-date-adapter-config' : ''\n);\n\n/**\n * Provides a custom NzDateAdapter implementation.\n * Use this when you want to provide your own adapter implementation.\n *\n * @param adapterClass The adapter class to use (must extend NzDateAdapter)\n * @param config Optional configuration or configuration factory for the adapter\n * @returns EnvironmentProviders for the adapter\n *\n * @example\n * ```typescript\n * export const appConfig: ApplicationConfig = {\n *   providers: [provideNzDateAdapter(JalaliDateAdapter, { locale: faIR, firstDayOfWeek: 6 })]\n * };\n * ```\n */\nexport function provideNzDateAdapter<TDate, TLocale, TAdapter extends NzDateAdapter<TDate, TLocale>>(\n  adapterClass: Type<TAdapter>,\n  config?: NzDateAdapterConfig<TLocale> | NzDateAdapterConfigFactory<TLocale>\n): EnvironmentProviders {\n  return makeEnvironmentProviders([\n    {\n      provide: NZ_DATE_ADAPTER_CONFIG,\n      useFactory: typeof config === 'function' ? config : () => config ?? {}\n    },\n    adapterClass,\n    { provide: NzDateAdapter, useExisting: adapterClass },\n    {\n      provide: NZ_DATE_CONFIG,\n      useFactory: (): NzDateConfig => {\n        const { locale: _locale, ...dateConfig } = inject(NZ_DATE_ADAPTER_CONFIG);\n        return { ...NZ_DATE_CONFIG_DEFAULT, ...dateConfig };\n      }\n    },\n    {\n      provide: NZ_DATE_LOCALE,\n      useFactory: (): unknown => inject(NZ_DATE_ADAPTER_CONFIG).locale\n    }\n  ]);\n}\n\n/**\n * NzDateAdapter is the abstraction boundary between ng-zorro-antd and any date library.\n *\n * CONTRACT FOR SUBCLASS AUTHORS:\n *\n * - You MUST implement all abstract methods.\n * - You MAY override derived methods for efficiency.\n * - You MAY override optional methods to opt into features.\n *\n * @see https://github.com/angular/components/blob/main/src/material/core/datetime/date-adapter.ts\n */\nexport abstract class NzDateAdapter<TDate, TLocale = unknown> {\n  /** The current locale. */\n  protected locale!: TLocale;\n  protected readonly _localeChanges = new Subject<void>();\n\n  /** Stream that emits when the locale changes. */\n  readonly localeChanges: Observable<void> = this._localeChanges;\n\n  // =============================================================\n  // MATERIAL CORE: ABSTRACT METHODS (MUST IMPLEMENT)\n  // =============================================================\n\n  /** Gets today's date. */\n  abstract today(): TDate;\n\n  /** Gets a date instance representing the given year, month, and day. */\n  abstract createDate(year: number, month: number, date: number): TDate;\n\n  /** Clones the given date. */\n  abstract clone(date: TDate): TDate;\n\n  // --- Date Getters (Material naming) ---\n\n  /** Gets the year component of the given date. */\n  abstract getYear(date: TDate): number;\n\n  /** Gets the month component of the given date (0-indexed, 0 = January). */\n  abstract getMonth(date: TDate): number;\n\n  /** Gets the date of the month component of the given date (1-indexed). */\n  abstract getDate(date: TDate): number;\n\n  /** Gets the day of the week component of the given date (0-indexed, 0 = Sunday). */\n  abstract getDayOfWeek(date: TDate): number;\n\n  /** Gets the number of days in the month of the given date. */\n  abstract getNumDaysInMonth(date: TDate): number;\n\n  // --- Date Names (Material naming) ---\n\n  /** Gets the name of the month for the given date. */\n  abstract getYearName(date: TDate): string;\n\n  /** Gets a list of month names for the given style. */\n  abstract getMonthNames(style: 'long' | 'short' | 'narrow'): string[];\n\n  /** Gets a list of date names (e.g. '1', '2', ... '31'). */\n  abstract getDateNames(): string[];\n\n  /** Gets a list of day of the week names for the given style. */\n  abstract getDayOfWeekNames(style: 'long' | 'short' | 'narrow'): string[];\n\n  // --- Week ---\n\n  /** Gets the first day of the week (0 = Sunday, 1 = Monday, etc.). */\n  abstract getFirstDayOfWeek(): number;\n\n  // --- Date Math (Material naming) ---\n\n  /** Adds the specified number of years to the given date. */\n  abstract addCalendarYears(date: TDate, years: number): TDate;\n\n  /** Adds the specified number of months to the given date. */\n  abstract addCalendarMonths(date: TDate, months: number): TDate;\n\n  /** Adds the specified number of days to the given date. */\n  abstract addCalendarDays(date: TDate, days: number): TDate;\n\n  // --- Format / Parse ---\n\n  /** Formats a date as a string according to the given display format. */\n  abstract format(date: TDate, displayFormat: NzSafeAny): string;\n\n  /** Parses a value into a date. */\n  abstract parse(value: NzSafeAny, parseFormat: NzSafeAny): TDate | null;\n\n  // --- Validation ---\n\n  /** Checks whether the given object is a date instance. */\n  abstract isDateInstance(obj: NzSafeAny): boolean;\n\n  /** Checks whether the given date is valid. */\n  abstract isValid(date: TDate): boolean;\n\n  /** Gets a date instance representing an invalid date. */\n  abstract invalid(): TDate;\n\n  // =============================================================\n  // NG-ZORRO CORE: ABSTRACT METHODS (MUST IMPLEMENT)\n  // =============================================================\n\n  /** Gets the quarter component of the given date (1-4). */\n  abstract getQuarter(date: TDate): number;\n\n  /** Sets the quarter of the given date. */\n  abstract setQuarter(date: TDate, quarter: number): TDate;\n\n  /** Gets the start of the quarter for the given date. */\n  abstract startOfQuarter(date: TDate): TDate;\n\n  /** Gets the ISO week number for the given date. */\n  abstract getISOWeek(date: TDate): number;\n\n  // --- NG-ZORRO Date Setters (not in Material) ---\n\n  /** Sets the year of the given date. */\n  abstract setYear(date: TDate, year: number): TDate;\n\n  /** Sets the month of the given date (0-indexed). */\n  abstract setMonth(date: TDate, month: number): TDate;\n\n  /** Sets the day of the month of the given date (1-indexed). */\n  abstract setDate(date: TDate, day: number): TDate;\n\n  // =============================================================\n  // MATERIAL DERIVED: IMPLEMENTED METHODS (MAY OVERRIDE)\n  // =============================================================\n\n  /** Sets the locale used for formatting and parsing. */\n  setLocale(locale: TLocale): void {\n    this.locale = locale;\n    this._localeChanges.next();\n  }\n\n  /**\n   * Attempts to deserialize a value to a valid date object.\n   * Accepts ISO 8601 strings, Date objects, or null/undefined.\n   */\n  deserialize(value: NzSafeAny): TDate | null {\n    if (value == null || this.isDateInstance(value)) {\n      return value as TDate | null;\n    }\n    return this.invalid();\n  }\n\n  /** Gets a valid date object if possible, otherwise returns null. */\n  getValidDateOrNull(obj: unknown): TDate | null {\n    if (this.isDateInstance(obj)) {\n      const date = obj as TDate;\n      return this.isValid(date) ? date : null;\n    }\n    return null;\n  }\n\n  /** Compares two dates, returning a number indicating their relative order. */\n  compareDate(first: TDate, second: TDate): number {\n    return (\n      this.getYear(first) - this.getYear(second) ||\n      this.getMonth(first) - this.getMonth(second) ||\n      this.getDate(first) - this.getDate(second)\n    );\n  }\n\n  /** Checks whether two dates represent the same calendar day. */\n  sameDate(first: TDate | null, second: TDate | null): boolean {\n    if (first && second) {\n      const firstValid = this.isValid(first);\n      const secondValid = this.isValid(second);\n      if (firstValid && secondValid) {\n        return this.compareDate(first, second) === 0;\n      }\n      return firstValid === secondValid;\n    }\n    return first === second;\n  }\n\n  /** Clamps a date between min and max bounds. */\n  clampDate(date: TDate, min?: TDate | null, max?: TDate | null): TDate {\n    if (min && this.compareDate(min, date) > 0) {\n      return this.clone(min);\n    }\n    if (max && this.compareDate(date, max) > 0) {\n      return this.clone(max);\n    }\n    return date;\n  }\n\n  /** Gets the calendar's start of month (first day at midnight). */\n  calendarStartOfMonth(date: TDate): TDate {\n    return this.createDate(this.getYear(date), this.getMonth(date), 1);\n  }\n\n  /** Gets the calendar's start of week. */\n  calendarStartOfWeek(date: TDate): TDate {\n    const dayOfWeek = this.getDayOfWeek(date);\n    const firstDayOfWeek = this.getFirstDayOfWeek();\n    const diff = (dayOfWeek - firstDayOfWeek + 7) % 7;\n    return this.addCalendarDays(date, -diff);\n  }\n\n  /** Checks whether the given date is the first day of its month. */\n  isFirstDayOfMonth(date: TDate): boolean {\n    return this.getDate(date) === 1;\n  }\n\n  /** Checks whether the given date is the last day of its month. */\n  isLastDayOfMonth(date: TDate): boolean {\n    return this.getDate(date) === this.getNumDaysInMonth(date);\n  }\n\n  /** Checks whether the given date is today. */\n  isToday(date: TDate): boolean {\n    return this.sameDate(date, this.today());\n  }\n\n  // =============================================================\n  // MATERIAL OPTIONAL: TIME METHODS (THROW BY DEFAULT)\n  // =============================================================\n\n  /** Sets the time on the given date. */\n  setTime(_date: TDate, _hours: number, _minutes: number, _seconds: number): TDate {\n    throw new Error(NOT_IMPLEMENTED);\n  }\n\n  /** Gets the hours component of the given date. */\n  getHours(_date: TDate): number {\n    throw new Error(NOT_IMPLEMENTED);\n  }\n\n  /** Gets the minutes component of the given date. */\n  getMinutes(_date: TDate): number {\n    throw new Error(NOT_IMPLEMENTED);\n  }\n\n  /** Gets the seconds component of the given date. */\n  getSeconds(_date: TDate): number {\n    throw new Error(NOT_IMPLEMENTED);\n  }\n\n  /** Parses a time value into a date. */\n  parseTime(_value: NzSafeAny, _parseFormat?: NzSafeAny): TDate | null {\n    throw new Error(NOT_IMPLEMENTED);\n  }\n\n  /** Adds the specified number of seconds to the given date. */\n  addSeconds(_date: TDate, _amount: number): TDate {\n    throw new Error(NOT_IMPLEMENTED);\n  }\n\n  /** Compares two times, returning a number indicating their relative order. */\n  compareTime(first: TDate, second: TDate): number {\n    return (\n      this.getHours(first) - this.getHours(second) ||\n      this.getMinutes(first) - this.getMinutes(second) ||\n      this.getSeconds(first) - this.getSeconds(second)\n    );\n  }\n\n  /** Checks whether two dates represent the same time (same hour, minute, second). */\n  sameTime(first: TDate | null, second: TDate | null): boolean {\n    if (first && second) {\n      return (!this.isValid(first) && !this.isValid(second)) || this.compareTime(first, second) === 0;\n    }\n    return first === second;\n  }\n\n  // =============================================================\n  // NG-ZORRO OPTIONAL: EXTENDED METHODS (THROW BY DEFAULT)\n  // =============================================================\n\n  /** Gets the milliseconds component of the given date. */\n  getMilliseconds(_date: TDate): number {\n    throw new Error(NOT_IMPLEMENTED);\n  }\n\n  /** Gets the timestamp (milliseconds since epoch) of the given date. */\n  getTime(_date: TDate): number {\n    throw new Error(NOT_IMPLEMENTED);\n  }\n\n  /** Gets the calendar system identifier for the given date. */\n  getCalendarId(_date: TDate): string {\n    throw new Error(NOT_IMPLEMENTED);\n  }\n\n  /** Gets the timezone offset for the given date. */\n  getTimezoneOffset(_date: TDate): number {\n    throw new Error(NOT_IMPLEMENTED);\n  }\n\n  // --- Legacy aliases (deprecated, use Material naming instead) ---\n\n  /**\n   * @deprecated Use `addCalendarYears` instead. Will be removed in v23.\n   */\n  addYears(date: TDate, amount: number): TDate {\n    return this.addCalendarYears(date, amount);\n  }\n\n  /**\n   * @deprecated Use `addCalendarMonths` instead. Will be removed in v23.\n   */\n  addMonths(date: TDate, amount: number): TDate {\n    return this.addCalendarMonths(date, amount);\n  }\n\n  /**\n   * @deprecated Use `addCalendarDays` instead. Will be removed in v23.\n   */\n  addDays(date: TDate, amount: number): TDate {\n    return this.addCalendarDays(date, amount);\n  }\n\n  /**\n   * @deprecated Use `getNumDaysInMonth` instead. Will be removed in v23.\n   */\n  getDaysInMonth(date: TDate): number {\n    return this.getNumDaysInMonth(date);\n  }\n\n  /**\n   * @deprecated Use `getDayOfWeek` instead. Will be removed in v23.\n   */\n  getDay(date: TDate): number {\n    return this.getDayOfWeek(date);\n  }\n}\n","/**\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE\n */\n\nimport { EnvironmentProviders, Injectable, inject } from '@angular/core';\n\nimport {\n  type Locale,\n  addDays,\n  addMonths,\n  addYears,\n  addSeconds,\n  isFirstDayOfMonth,\n  isLastDayOfMonth,\n  isToday,\n  isValid,\n  setMonth,\n  setYear,\n  startOfMonth,\n  startOfWeek,\n  startOfQuarter,\n  getQuarter,\n  setQuarter,\n  getISOWeek,\n  getDaysInMonth,\n  format as fnsFormat,\n  parse as fnsParse\n} from 'date-fns';\n\nimport { NzSafeAny } from 'ng-zorro-antd/core/types';\n\nimport { NzDateAdapter, NzDateAdapterConfig, NzDateAdapterConfigFactory, provideNzDateAdapter } from './date-adapter';\nimport { NZ_DATE_CONFIG, NZ_DATE_LOCALE } from './date-config';\n\n/** Configuration for date-fns date adapter. */\nexport interface NzDateFnsAdapterConfig extends NzDateAdapterConfig<Locale> {\n  /** Locale object from date-fns. */\n  locale?: Locale;\n}\n\n/** Factory for creating date-fns adapter configuration in an injection context. */\nexport type NzDateFnsAdapterConfigFactory = NzDateAdapterConfigFactory<Locale>;\n\n/**\n * Date adapter for date-fns.\n *\n * To use this adapter, add `provideNzDateFnsAdapter()` to your application providers.\n *\n * @note Requires date-fns as a peer dependency.\n */\n@Injectable({ providedIn: 'root' })\nexport class DateFnsDateAdapter extends NzDateAdapter<Date, Locale> {\n  private readonly dateLocale = inject(NZ_DATE_LOCALE, { optional: true });\n  private readonly dateConfig = inject(NZ_DATE_CONFIG, { optional: true });\n\n  constructor() {\n    super();\n    if (this.dateLocale) {\n      super.setLocale(this.dateLocale as Locale);\n    }\n  }\n\n  // =============================================================\n  // MATERIAL CORE: ABSTRACT METHODS\n  // =============================================================\n\n  today(): Date {\n    return new Date();\n  }\n\n  createDate(year: number, month: number, date: number): Date {\n    return new Date(year, month, date);\n  }\n\n  clone(date: Date): Date {\n    return new Date(date);\n  }\n\n  // --- Date Getters ---\n\n  getYear(date: Date): number {\n    return date.getFullYear();\n  }\n\n  getMonth(date: Date): number {\n    return date.getMonth();\n  }\n\n  getDate(date: Date): number {\n    return date.getDate();\n  }\n\n  getDayOfWeek(date: Date): number {\n    return date.getDay();\n  }\n\n  getNumDaysInMonth(date: Date): number {\n    return getDaysInMonth(date);\n  }\n\n  // --- Date Names ---\n\n  getYearName(date: Date): string {\n    return fnsFormat(date, 'yyyy', { locale: this.locale });\n  }\n\n  getMonthNames(style: 'long' | 'short' | 'narrow'): string[] {\n    const format: 'MMMMM' | 'MMM' | 'MMMM' = style === 'narrow' ? 'MMMMM' : style === 'short' ? 'MMM' : 'MMMM';\n    return Array.from({ length: 12 }, (_, i) => fnsFormat(new Date(2024, i, 1), format, { locale: this.locale }));\n  }\n\n  getDateNames(): string[] {\n    return Array.from({ length: 31 }, (_, i) => String(i + 1));\n  }\n\n  getDayOfWeekNames(style: 'long' | 'short' | 'narrow'): string[] {\n    const format: 'EEEEEE' | 'EEE' | 'EEEE' = style === 'narrow' ? 'EEEEEE' : style === 'short' ? 'EEE' : 'EEEE';\n    return Array.from({ length: 7 }, (_, i) => fnsFormat(new Date(2024, 0, i + 1), format, { locale: this.locale }));\n  }\n\n  // --- Week ---\n\n  getFirstDayOfWeek(): number {\n    if (this.dateConfig?.firstDayOfWeek != null) {\n      return this.dateConfig.firstDayOfWeek;\n    } else {\n      return this.locale?.options?.weekStartsOn ?? 1;\n    }\n  }\n\n  // --- Date Math ---\n\n  addCalendarYears(date: Date, years: number): Date {\n    return addYears(date, years);\n  }\n\n  addCalendarMonths(date: Date, months: number): Date {\n    return addMonths(date, months);\n  }\n\n  addCalendarDays(date: Date, days: number): Date {\n    return addDays(date, days);\n  }\n\n  // --- Format / Parse ---\n\n  format(date: Date, displayFormat: NzSafeAny): string {\n    if (!date) {\n      return '';\n    }\n    if (!this.isValid(date)) {\n      throw new Error('DateFnsDateAdapter: Cannot format invalid date.');\n    }\n    // Convert Angular-style bracket literals to date-fns single-quote literals\n    // e.g., 'yyyy-[Q]Q' → 'yyyy-'Q'Q'\n    const formatString = (displayFormat as string).replace(/\\[(.*?)\\]/g, \"'$1'\");\n    return fnsFormat(date, formatString, {\n      locale: this.locale,\n      useAdditionalWeekYearTokens: true,\n      useAdditionalDayOfYearTokens: true\n    });\n  }\n\n  parse(value: NzSafeAny, parseFormat: NzSafeAny): Date | null {\n    if (typeof value === 'string' && value.length > 0) {\n      const formats = Array.isArray(parseFormat) ? parseFormat : [parseFormat as string];\n\n      if (!formats.length) {\n        throw new Error('Formats array must not be empty.');\n      }\n\n      for (const currentFormat of formats) {\n        // Convert Angular-style bracket literals to date-fns single-quote literals\n        const formatString = currentFormat.replace(/\\[(.*?)\\]/g, \"'$1'\");\n        const fromFormat = fnsParse(value, formatString, new Date(), {\n          locale: this.locale,\n          weekStartsOn: this.getFirstDayOfWeek() as 0 | 1 | 2 | 3 | 4 | 5 | 6,\n          useAdditionalWeekYearTokens: true,\n          useAdditionalDayOfYearTokens: true\n        });\n\n        if (this.isValid(fromFormat)) {\n          return fromFormat;\n        }\n      }\n\n      return this.invalid();\n    } else if (typeof value === 'number') {\n      return new Date(value);\n    } else if (value instanceof Date) {\n      return this.clone(value);\n    }\n\n    return null;\n  }\n\n  // --- Validation ---\n\n  isDateInstance(obj: NzSafeAny): boolean {\n    return obj instanceof Date;\n  }\n\n  isValid(date: Date): boolean {\n    return isValid(date);\n  }\n\n  invalid(): Date {\n    return new Date(NaN);\n  }\n\n  // =============================================================\n  // NG-ZORRO CORE: ABSTRACT METHODS\n  // =============================================================\n\n  getQuarter(date: Date): number {\n    return getQuarter(date);\n  }\n\n  setQuarter(date: Date, quarter: number): Date {\n    return setQuarter(date, quarter);\n  }\n\n  startOfQuarter(date: Date): Date {\n    return startOfQuarter(date);\n  }\n\n  getISOWeek(date: Date): number {\n    return getISOWeek(date);\n  }\n\n  // --- NG-ZORRO Date Setters ---\n\n  setYear(date: Date, year: number): Date {\n    return setYear(date, year);\n  }\n\n  setMonth(date: Date, month: number): Date {\n    return setMonth(date, month);\n  }\n\n  setDate(date: Date, day: number): Date {\n    const result = new Date(date);\n    result.setDate(day);\n    return result;\n  }\n\n  // =============================================================\n  // MATERIAL OPTIONAL: TIME METHODS\n  // =============================================================\n\n  override setTime(date: Date, hours: number, minutes: number, seconds: number): Date {\n    const result = new Date(date);\n    result.setHours(hours, minutes, seconds, 0);\n    return result;\n  }\n\n  override getHours(date: Date): number {\n    return date.getHours();\n  }\n\n  override getMinutes(date: Date): number {\n    return date.getMinutes();\n  }\n\n  override getSeconds(date: Date): number {\n    return date.getSeconds();\n  }\n\n  override parseTime(value: NzSafeAny, parseFormat?: NzSafeAny): Date | null {\n    return this.parse(value, parseFormat);\n  }\n\n  override addSeconds(date: Date, amount: number): Date {\n    return addSeconds(date, amount);\n  }\n\n  // =============================================================\n  // NG-ZORRO OPTIONAL: EXTENDED METHODS\n  // =============================================================\n\n  override getMilliseconds(date: Date): number {\n    return date.getMilliseconds();\n  }\n\n  override getTime(date: Date): number {\n    return date.getTime();\n  }\n\n  override isFirstDayOfMonth(date: Date): boolean {\n    return isFirstDayOfMonth(date);\n  }\n\n  override isLastDayOfMonth(date: Date): boolean {\n    return isLastDayOfMonth(date);\n  }\n\n  override isToday(date: Date): boolean {\n    return isToday(date);\n  }\n\n  override calendarStartOfMonth(date: Date): Date {\n    return startOfMonth(date);\n  }\n\n  override calendarStartOfWeek(date: Date): Date {\n    return startOfWeek(date, { weekStartsOn: this.getFirstDayOfWeek() as 0 | 1 | 2 | 3 | 4 | 5 | 6 });\n  }\n}\n\n/**\n * Provides the DateFnsDateAdapter as the NzDateAdapter implementation.\n * DateFnsDateAdapter uses date-fns library for date operations.\n *\n * @param config Optional configuration or configuration factory for the adapter\n * @returns EnvironmentProviders for the DateFnsDateAdapter\n *\n * @example\n * ```typescript\n * export const appConfig: ApplicationConfig = {\n *   providers: [provideNzDateFnsAdapter({ locale: enUS, firstDayOfWeek: 1 })]\n * };\n * ```\n *\n * The factory form runs in an injection context:\n * ```typescript\n * import { inject, LOCALE_ID } from '@angular/core';\n * import { enUS, zhCN } from 'date-fns/locale';\n *\n * providers: [\n *   provideNzDateFnsAdapter(() => ({\n *     locale: inject(LOCALE_ID).startsWith('zh') ? zhCN : enUS\n *   }))\n * ]\n * ```\n *\n * @note Requires date-fns as a peer dependency.\n */\nexport function provideNzDateFnsAdapter(\n  config?: NzDateFnsAdapterConfig | NzDateFnsAdapterConfigFactory\n): EnvironmentProviders {\n  return provideNzDateAdapter(DateFnsDateAdapter, config);\n}\n","/**\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE\n */\n\nimport { EnvironmentProviders, Injectable, inject } from '@angular/core';\n\nimport { NzSafeAny } from 'ng-zorro-antd/core/types';\n\nimport { NzDateAdapter, NzDateAdapterConfig, NzDateAdapterConfigFactory, provideNzDateAdapter } from './date-adapter';\nimport { NZ_DATE_CONFIG, NZ_DATE_LOCALE } from './date-config';\n\n/** Configuration for native date adapter. */\nexport interface NzNativeDateAdapterConfig extends NzDateAdapterConfig<string> {\n  /** Locale string used by Intl.DateTimeFormat. */\n  locale?: string;\n}\n\n/** Factory for creating native adapter configuration in an injection context. */\nexport type NzNativeDateAdapterConfigFactory = NzDateAdapterConfigFactory<string>;\n\n/** Matches strings that look like ISO 8601 dates (e.g. 2024-01-15, 2024-01-15T10:30:00). */\nconst ISO_8601_REGEX = /^\\d{4}-\\d{2}-\\d{2}(?:T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?(?:Z|(?:(?:\\+|-)\\d{2}:\\d{2}))?)?$/;\n\n/** Matches time strings in formats like: 10:30, 10:30:45, 10:30 AM, 10.30.45 PM. */\nconst TIME_REGEX = /^(\\d?\\d)[:.](\\d?\\d)(?:[:.](\\d?\\d))?\\s*(AM|PM)?$/i;\n\n/** Creates an array of length `length` with values derived from `valueFunction`. */\nfunction range<T>(length: number, valueFunction: (index: number) => T): T[] {\n  const valuesArray = Array(length);\n  for (let i = 0; i < length; i++) {\n    valuesArray[i] = valueFunction(i);\n  }\n  return valuesArray;\n}\n\n/** Checks if a value is within a specified numeric range. */\nfunction inRange(value: number, min: number, max: number): boolean {\n  return !isNaN(value) && value >= min && value <= max;\n}\n\n/**\n * Date adapter using native Date and Intl.DateTimeFormat.\n * Fully aligned with Angular Material's NativeDateAdapter implementation.\n */\n@Injectable()\nexport class NativeDateAdapter extends NzDateAdapter<Date, string> {\n  private readonly dateLocale = inject(NZ_DATE_LOCALE, { optional: true });\n  private readonly dateConfig = inject(NZ_DATE_CONFIG, { optional: true });\n\n  constructor() {\n    super();\n    if (this.dateLocale !== undefined && typeof this.dateLocale === 'string') {\n      this.setLocale(this.dateLocale);\n    } else {\n      this.setLocale('en-US');\n    }\n  }\n\n  // =============================================================\n  // MATERIAL CORE: ABSTRACT METHODS\n  // =============================================================\n\n  getYear(date: Date): number {\n    return date.getFullYear();\n  }\n\n  getMonth(date: Date): number {\n    return date.getMonth();\n  }\n\n  getDate(date: Date): number {\n    return date.getDate();\n  }\n\n  getDayOfWeek(date: Date): number {\n    return date.getDay();\n  }\n\n  getMonthNames(style: 'long' | 'short' | 'narrow'): string[] {\n    const dtf = new Intl.DateTimeFormat(this.locale, { month: style, timeZone: 'utc' });\n    return range(12, i => this._format(dtf, new Date(2017, i, 1)));\n  }\n\n  getDateNames(): string[] {\n    const dtf = new Intl.DateTimeFormat(this.locale, { day: 'numeric', timeZone: 'utc' });\n    return range(31, i => this._format(dtf, new Date(2017, 0, i + 1)));\n  }\n\n  getDayOfWeekNames(style: 'long' | 'short' | 'narrow'): string[] {\n    const dtf = new Intl.DateTimeFormat(this.locale, { weekday: style, timeZone: 'utc' });\n    return range(7, i => this._format(dtf, new Date(2017, 0, i + 1)));\n  }\n\n  getYearName(date: Date): string {\n    const dtf = new Intl.DateTimeFormat(this.locale, { year: 'numeric', timeZone: 'utc' });\n    return this._format(dtf, date);\n  }\n\n  getFirstDayOfWeek(): number {\n    // Check for configured override first\n    if (this.dateConfig?.firstDayOfWeek != null) {\n      return this.dateConfig.firstDayOfWeek;\n    }\n    // Use Intl.Locale API if available (same as Material)\n    if (typeof Intl !== 'undefined' && (Intl as NzSafeAny).Locale) {\n      const locale = new (Intl as NzSafeAny).Locale(this.locale) as {\n        getWeekInfo?: () => { firstDay: number };\n        weekInfo?: { firstDay: number };\n      };\n      const firstDay = (locale.getWeekInfo?.() || locale.weekInfo)?.firstDay ?? 0;\n      // weekInfo.firstDay is 1-7 (Mon-Sun), we need 0-6 (Sun-Sat)\n      return firstDay === 7 ? 0 : firstDay;\n    }\n    return 0;\n  }\n\n  getNumDaysInMonth(date: Date): number {\n    return this.getDate(this._createDateWithOverflow(this.getYear(date), this.getMonth(date) + 1, 0));\n  }\n\n  clone(date: Date): Date {\n    return new Date(date.getTime());\n  }\n\n  createDate(year: number, month: number, date: number): Date {\n    if (typeof ngDevMode === 'undefined' || ngDevMode) {\n      if (month < 0 || month > 11) {\n        throw Error(`Invalid month index \"${month}\". Month index has to be between 0 and 11.`);\n      }\n      if (date < 1) {\n        throw Error(`Invalid date \"${date}\". Date has to be greater than 0.`);\n      }\n    }\n    const result = this._createDateWithOverflow(year, month, date);\n    if (result.getMonth() !== month && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n      throw Error(`Invalid date \"${date}\" for month with index \"${month}\".`);\n    }\n    return result;\n  }\n\n  today(): Date {\n    return new Date();\n  }\n\n  parse(value: NzSafeAny, parseFormat: NzSafeAny): Date | null {\n    if (typeof value === 'number') {\n      return new Date(value);\n    }\n    if (value instanceof Date) {\n      return this.clone(value);\n    }\n    if (typeof value !== 'string') {\n      return null;\n    }\n    const text = value.trim();\n    if (!text) {\n      return null;\n    }\n    if (typeof parseFormat === 'string') {\n      const parsedByFormat = this.parseByToken(text, parseFormat);\n      if (parsedByFormat) {\n        return parsedByFormat;\n      }\n    }\n    const dateOnly = text.match(/^(\\d{4})-(\\d{2})-(\\d{2})$/);\n    if (dateOnly) {\n      return this.createDateOrInvalid(Number(dateOnly[1]), Number(dateOnly[2]) - 1, Number(dateOnly[3]));\n    }\n    const timestamp = Date.parse(text);\n    return isNaN(timestamp) ? this.invalid() : new Date(timestamp);\n  }\n\n  format(date: Date, displayFormat: NzSafeAny): string {\n    // NG-ZORRO extension: return empty string for null (Material throws error)\n    if (!date) {\n      return '';\n    }\n    if (!this.isValid(date)) {\n      throw Error('NativeDateAdapter: Cannot format invalid date.');\n    }\n    if (typeof displayFormat === 'object' && displayFormat !== null) {\n      const dtf = new Intl.DateTimeFormat(this.locale, {\n        ...(displayFormat as Intl.DateTimeFormatOptions),\n        timeZone: 'utc'\n      });\n      return this._format(dtf, date);\n    }\n    // String format: NG-ZORRO extension for date-fns token compatibility\n    return this.formatByToken(date, displayFormat as string);\n  }\n\n  addCalendarYears(date: Date, years: number): Date {\n    return this.addCalendarMonths(date, years * 12);\n  }\n\n  addCalendarMonths(date: Date, months: number): Date {\n    const newDate = this._createDateWithOverflow(this.getYear(date), this.getMonth(date) + months, this.getDate(date));\n    // Adjust for month overflow (e.g., Jan 31 + 1 month should become Feb 28/29, not Mar 3)\n    if (this.getMonth(newDate) !== (((this.getMonth(date) + months) % 12) + 12) % 12) {\n      newDate.setDate(0);\n    }\n    return newDate;\n  }\n\n  addCalendarDays(date: Date, days: number): Date {\n    return this._createDateWithOverflow(this.getYear(date), this.getMonth(date), this.getDate(date) + days);\n  }\n\n  override deserialize(value: NzSafeAny): Date | null {\n    if (typeof value === 'string') {\n      if (!value) {\n        return null;\n      }\n      // Strict ISO 8601 validation (same as Material)\n      if (ISO_8601_REGEX.test(value)) {\n        const date = new Date(value);\n        if (this.isValid(date)) {\n          return date;\n        }\n      }\n    }\n    return super.deserialize(value);\n  }\n\n  isDateInstance(obj: NzSafeAny): boolean {\n    return obj instanceof Date;\n  }\n\n  isValid(date: Date): boolean {\n    return !isNaN(date.getTime());\n  }\n\n  invalid(): Date {\n    return new Date(NaN);\n  }\n\n  // =============================================================\n  // NG-ZORRO CORE: ABSTRACT METHODS\n  // =============================================================\n\n  getQuarter(date: Date): number {\n    return Math.floor(date.getMonth() / 3) + 1;\n  }\n\n  setQuarter(date: Date, quarter: number): Date {\n    const currentQuarter = this.getQuarter(date);\n    const monthOffset = (quarter - currentQuarter) * 3;\n    return this.addCalendarMonths(date, monthOffset);\n  }\n\n  startOfQuarter(date: Date): Date {\n    const quarter = this.getQuarter(date);\n    const month = (quarter - 1) * 3;\n    return this.createDate(this.getYear(date), month, 1);\n  }\n\n  getISOWeek(date: Date): number {\n    // ISO week calculation (same algorithm as Material's getISOWeek if available)\n    const target = new Date(date.valueOf());\n    const dayNr = (date.getDay() + 6) % 7;\n    target.setDate(target.getDate() - dayNr + 3);\n    const firstThursday = target.valueOf();\n    target.setMonth(0, 1);\n    if (target.getDay() !== 4) {\n      target.setMonth(0, 1 + ((4 - target.getDay() + 7) % 7));\n    }\n    return 1 + Math.ceil((firstThursday - target.valueOf()) / 604800000);\n  }\n\n  setYear(date: Date, year: number): Date {\n    const result = this.clone(date);\n    result.setFullYear(year);\n    return result;\n  }\n\n  setMonth(date: Date, month: number): Date {\n    const result = this.clone(date);\n    result.setMonth(month);\n    return result;\n  }\n\n  setDate(date: Date, day: number): Date {\n    const result = this.clone(date);\n    result.setDate(day);\n    return result;\n  }\n\n  // =============================================================\n  // MATERIAL OPTIONAL: TIME METHODS\n  // =============================================================\n\n  override setTime(target: Date, hours: number, minutes: number, seconds: number): Date {\n    if (typeof ngDevMode === 'undefined' || ngDevMode) {\n      if (!inRange(hours, 0, 23)) {\n        throw Error(`Invalid hours \"${hours}\". Hours value must be between 0 and 23.`);\n      }\n      if (!inRange(minutes, 0, 59)) {\n        throw Error(`Invalid minutes \"${minutes}\". Minutes value must be between 0 and 59.`);\n      }\n      if (!inRange(seconds, 0, 59)) {\n        throw Error(`Invalid seconds \"${seconds}\". Seconds value must be between 0 and 59.`);\n      }\n    }\n    const clone = this.clone(target);\n    clone.setHours(hours, minutes, seconds, 0);\n    return clone;\n  }\n\n  override getHours(date: Date): number {\n    return date.getHours();\n  }\n\n  override getMinutes(date: Date): number {\n    return date.getMinutes();\n  }\n\n  override getSeconds(date: Date): number {\n    return date.getSeconds();\n  }\n\n  override parseTime(userValue: NzSafeAny, parseFormat?: NzSafeAny): Date | null {\n    if (typeof userValue !== 'string') {\n      return userValue instanceof Date ? new Date(userValue.getTime()) : null;\n    }\n\n    const value = userValue.trim();\n\n    if (value.length === 0) {\n      return null;\n    }\n\n    // Attempt to parse the value directly.\n    let result = this._parseTimeString(value);\n\n    // Some locales add extra characters around the time, but are otherwise parseable\n    // (e.g. `00:05 ч.` in bg-BG). Try replacing all non-number and non-colon characters.\n    if (result === null) {\n      // Try stripping non-essential characters\n      const withoutExtras = value.replace(/[^0-9:(AM|PM)]/gi, '').trim();\n\n      if (withoutExtras.length > 0) {\n        result = this._parseTimeString(withoutExtras);\n      }\n    }\n\n    return result || this.invalid();\n  }\n\n  override addSeconds(date: Date, amount: number): Date {\n    return new Date(date.getTime() + amount * 1000);\n  }\n\n  // =============================================================\n  // NG-ZORRO OPTIONAL: EXTENDED METHODS\n  // =============================================================\n\n  override getMilliseconds(date: Date): number {\n    return date.getMilliseconds();\n  }\n\n  override getTime(date: Date): number {\n    return date.getTime();\n  }\n\n  override getCalendarId(_date: Date): string {\n    // Native Date only supports Gregorian calendar\n    return 'gregory';\n  }\n\n  override isFirstDayOfMonth(date: Date): boolean {\n    return this.getDate(date) === 1;\n  }\n\n  override isLastDayOfMonth(date: Date): boolean {\n    return this.getDate(date) === this.getNumDaysInMonth(date);\n  }\n\n  override isToday(date: Date): boolean {\n    return this.sameDate(date, this.today());\n  }\n\n  override calendarStartOfMonth(date: Date): Date {\n    return this.createDate(this.getYear(date), this.getMonth(date), 1);\n  }\n\n  override calendarStartOfWeek(date: Date): Date {\n    const dayOfWeek = this.getDayOfWeek(date);\n    const firstDayOfWeek = this.getFirstDayOfWeek();\n    const diff = (dayOfWeek - firstDayOfWeek + 7) % 7;\n    const result = this.addCalendarDays(date, -diff);\n    result.setHours(0, 0, 0, 0);\n    return result;\n  }\n\n  // =============================================================\n  // PRIVATE: MATERIAL-STYLE HELPERS\n  // =============================================================\n\n  /**\n   * Creates a date allowing for month/date overflow (e.g., Jan 32 becomes Feb 1).\n   * This is how Material handles date creation internally.\n   */\n  private _createDateWithOverflow(year: number, month: number, date: number): Date {\n    const result = new Date();\n    result.setFullYear(year, month, date);\n    result.setHours(0, 0, 0, 0);\n    return result;\n  }\n\n  /** Pads a number to two digits for ISO formatting. */\n  private _2digit(n: number): string {\n    return `00${n}`.slice(-2);\n  }\n\n  /**\n   * Formats a date using Intl.DateTimeFormat while avoiding DST issues.\n   * Uses UTC internally to ensure consistent formatting across timezones.\n   */\n  private _format(dtf: Intl.DateTimeFormat, date: Date): string {\n    const d = new Date();\n    d.setUTCFullYear(date.getFullYear(), date.getMonth(), date.getDate());\n    d.setUTCHours(date.getHours(), date.getMinutes(), date.getSeconds(), date.getMilliseconds());\n    return dtf.format(d);\n  }\n\n  /**\n   * Parses time strings in various formats (10:30, 10:30:45, 10:30 AM, etc.)\n   * Returns null if the string cannot be parsed.\n   */\n  private _parseTimeString(value: string): Date | null {\n    const parsed = value.toUpperCase().match(TIME_REGEX);\n    if (parsed) {\n      let hours = parseInt(parsed[1]);\n      const minutes = parseInt(parsed[2]);\n      const seconds: number | undefined = parsed[3] == null ? undefined : parseInt(parsed[3]);\n      const amPm = parsed[4] as 'AM' | 'PM' | undefined;\n\n      // Handle 12-hour format\n      if (hours === 12) {\n        hours = amPm === 'AM' ? 0 : hours;\n      } else if (amPm === 'PM') {\n        hours += 12;\n      }\n\n      if (inRange(hours, 0, 23) && inRange(minutes, 0, 59) && (seconds == null || inRange(seconds, 0, 59))) {\n        return this.setTime(this.today(), hours, minutes, seconds || 0);\n      }\n    }\n    return null;\n  }\n\n  /**\n   * Parses the date-fns-style token subset used by NG-ZORRO default formats.\n   * This intentionally stays small; complex calendar parsing belongs in custom adapters.\n   */\n  private parseByToken(value: string, formatStr: string): Date | null {\n    const tokenPatterns: Record<string, string> = {\n      yyyy: '(?<year>\\\\d{4})',\n      yy: '(?<year2>\\\\d{2})',\n      MM: '(?<month>\\\\d{2})',\n      M: '(?<month>\\\\d{1,2})',\n      dd: '(?<day>\\\\d{2})',\n      d: '(?<day>\\\\d{1,2})',\n      HH: '(?<hour>\\\\d{2})',\n      H: '(?<hour>\\\\d{1,2})',\n      mm: '(?<minute>\\\\d{2})',\n      m: '(?<minute>\\\\d{1,2})',\n      ss: '(?<second>\\\\d{2})',\n      s: '(?<second>\\\\d{1,2})'\n    };\n    const tokens = Object.keys(tokenPatterns).sort((a, b) => b.length - a.length);\n    let source = '';\n    for (let i = 0; i < formatStr.length;) {\n      if (formatStr[i] === '[') {\n        const end = formatStr.indexOf(']', i + 1);\n        const literal = end === -1 ? formatStr.slice(i + 1) : formatStr.slice(i + 1, end);\n        source += this.escapeRegex(literal);\n        i = end === -1 ? formatStr.length : end + 1;\n        continue;\n      }\n      const token = tokens.find(item => formatStr.startsWith(item, i));\n      if (token) {\n        source += tokenPatterns[token];\n        i += token.length;\n      } else {\n        source += this.escapeRegex(formatStr[i]);\n        i++;\n      }\n    }\n    let match: RegExpMatchArray | null;\n    try {\n      match = value.match(new RegExp(`^${source}$`));\n    } catch {\n      return null;\n    }\n    if (!match?.groups) {\n      return null;\n    }\n    const year = match.groups['year']\n      ? Number(match.groups['year'])\n      : match.groups['year2']\n        ? 2000 + Number(match.groups['year2'])\n        : this.today().getFullYear();\n    const month = match.groups['month'] ? Number(match.groups['month']) - 1 : 0;\n    const day = match.groups['day'] ? Number(match.groups['day']) : 1;\n    const hour = match.groups['hour'] ? Number(match.groups['hour']) : 0;\n    const minute = match.groups['minute'] ? Number(match.groups['minute']) : 0;\n    const second = match.groups['second'] ? Number(match.groups['second']) : 0;\n    if (\n      !inRange(month, 0, 11) ||\n      !inRange(day, 1, 31) ||\n      !inRange(hour, 0, 23) ||\n      !inRange(minute, 0, 59) ||\n      !inRange(second, 0, 59)\n    ) {\n      return this.invalid();\n    }\n    const result = this.createDateOrInvalid(year, month, day);\n    if (!this.isValid(result)) {\n      return result;\n    }\n    return this.setTime(result, hour, minute, second);\n  }\n\n  private createDateOrInvalid(year: number, month: number, date: number): Date {\n    try {\n      const result = this.createDate(year, month, date);\n      return this.getYear(result) === year && this.getMonth(result) === month && this.getDate(result) === date\n        ? result\n        : this.invalid();\n    } catch {\n      return this.invalid();\n    }\n  }\n\n  private escapeRegex(value: string): string {\n    return value.replace(/[.*+?^${}()|[\\]\\\\]/g, '\\\\$&');\n  }\n\n  // =============================================================\n  // PRIVATE: NG-ZORRO TOKEN-BASED FORMATTING\n  // =============================================================\n\n  /**\n   * Formats a date using date-fns-style token strings.\n   * This is a NG-ZORRO extension for compatibility with existing formats.\n   */\n  private formatByToken(date: Date, formatStr: string): string {\n    if (!formatStr) {\n      return '';\n    }\n    const locale = this.locale as string;\n\n    const dtfMonthShort = new Intl.DateTimeFormat(locale, { month: 'short', timeZone: 'utc' });\n    const dtfMonthLong = new Intl.DateTimeFormat(locale, { month: 'long', timeZone: 'utc' });\n    const dtfWeekdayNarrow = new Intl.DateTimeFormat(locale, { weekday: 'narrow', timeZone: 'utc' });\n    const dtfWeekdayShort = new Intl.DateTimeFormat(locale, { weekday: 'short', timeZone: 'utc' });\n    const dtfWeekdayLong = new Intl.DateTimeFormat(locale, { weekday: 'long', timeZone: 'utc' });\n\n    const quarter = this.getQuarter(date);\n    const hour12 = date.getHours() % 12 || 12;\n    const tokenValues: Record<string, string> = {\n      yyyy: date.getFullYear().toString().padStart(4, '0'),\n      yy: this._2digit(date.getFullYear() % 100),\n      MMMM: this._format(dtfMonthLong, date),\n      MMM: this._format(dtfMonthShort, date),\n      MM: this._2digit(date.getMonth() + 1),\n      M: (date.getMonth() + 1).toString(),\n      dd: this._2digit(date.getDate()),\n      d: date.getDate().toString(),\n      EEEEEE: this._format(dtfWeekdayNarrow, date),\n      EEEEE: this._format(dtfWeekdayNarrow, date),\n      EEEE: this._format(dtfWeekdayLong, date),\n      EEE: this._format(dtfWeekdayShort, date),\n      EE: this._format(dtfWeekdayShort, date),\n      E: this._format(dtfWeekdayShort, date),\n      HH: this._2digit(date.getHours()),\n      H: date.getHours().toString(),\n      hh: this._2digit(hour12),\n      h: hour12.toString(),\n      mm: this._2digit(date.getMinutes()),\n      m: date.getMinutes().toString(),\n      ss: this._2digit(date.getSeconds()),\n      s: date.getSeconds().toString(),\n      ww: this._2digit(this.getISOWeek(date)),\n      w: this.getISOWeek(date).toString(),\n      QQQ: `Q${quarter}`,\n      QQ: this._2digit(quarter),\n      Q: quarter.toString(),\n      a: date.getHours() < 12 ? 'AM' : 'PM'\n    };\n    const tokens = Object.keys(tokenValues).sort((a, b) => b.length - a.length);\n    let result = '';\n\n    for (let i = 0; i < formatStr.length;) {\n      if (formatStr[i] === '[') {\n        const end = formatStr.indexOf(']', i + 1);\n        result += end === -1 ? formatStr.slice(i + 1) : formatStr.slice(i + 1, end);\n        i = end === -1 ? formatStr.length : end + 1;\n        continue;\n      }\n\n      if (formatStr[i] === 'Q') {\n        let end = i + 1;\n        while (formatStr[end] === 'Q') {\n          end++;\n        }\n        const length = end - i;\n        result += length >= 4 ? quarter.toString() : tokenValues['Q'.repeat(length)];\n        i = end;\n        continue;\n      }\n\n      const token = tokens.find(item => formatStr.startsWith(item, i));\n      if (token) {\n        result += tokenValues[token];\n        i += token.length;\n      } else {\n        result += formatStr[i];\n        i++;\n      }\n    }\n\n    return result;\n  }\n}\n\n/**\n * Provides the NativeDateAdapter as the NzDateAdapter implementation.\n * NativeDateAdapter uses native Date and Intl.DateTimeFormat.\n *\n * @param config Optional configuration or configuration factory for the adapter\n * @returns EnvironmentProviders for the NativeDateAdapter\n *\n * @example\n * ```typescript\n * export const appConfig: ApplicationConfig = {\n *   providers: [provideNzNativeDateAdapter({ locale: 'en-US', firstDayOfWeek: 0 })]\n * };\n * ```\n */\nexport function provideNzNativeDateAdapter(\n  config?: NzNativeDateAdapterConfig | NzNativeDateAdapterConfigFactory\n): EnvironmentProviders {\n  return provideNzDateAdapter(NativeDateAdapter, config);\n}\n","/**\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE\n */\n\n// from https://github.com/hsuanxyz/ng-time-parser\nimport { FormStyle, getLocaleDayPeriods, TranslationWidth } from '@angular/common';\n\nimport { isNotNil } from 'ng-zorro-antd/core/util';\n\nexport interface TimeResult {\n  hour: number | null;\n  minute: number | null;\n  second: number | null;\n  period: number | null;\n}\n\nexport class NgTimeParser {\n  regex: RegExp = null!;\n  matchMap: Record<string, null | number> = {\n    hour: null,\n    minute: null,\n    second: null,\n    periodNarrow: null,\n    periodWide: null,\n    periodAbbreviated: null\n  };\n\n  constructor(\n    private format: string,\n    private localeId: string\n  ) {\n    this.genRegexp();\n  }\n\n  toDate(str: string): Date {\n    const result = this.getTimeResult(str);\n    const time = new Date();\n\n    if (isNotNil(result?.hour)) {\n      time.setHours(result!.hour);\n    }\n\n    if (isNotNil(result?.minute)) {\n      time.setMinutes(result!.minute);\n    }\n\n    if (isNotNil(result?.second)) {\n      time.setSeconds(result!.second);\n    }\n\n    if (result?.period === 1 && time.getHours() < 12) {\n      time.setHours(time.getHours() + 12);\n    }\n\n    return time;\n  }\n\n  getTimeResult(str: string): TimeResult | null {\n    const match = this.regex.exec(str);\n    let period = null;\n    if (match) {\n      if (isNotNil(this.matchMap.periodNarrow)) {\n        period = getLocaleDayPeriods(this.localeId, FormStyle.Format, TranslationWidth.Narrow).indexOf(\n          match[this.matchMap.periodNarrow + 1]\n        );\n      }\n      if (isNotNil(this.matchMap.periodWide)) {\n        period = getLocaleDayPeriods(this.localeId, FormStyle.Format, TranslationWidth.Wide).indexOf(\n          match[this.matchMap.periodWide + 1]\n        );\n      }\n      if (isNotNil(this.matchMap.periodAbbreviated)) {\n        period = getLocaleDayPeriods(this.localeId, FormStyle.Format, TranslationWidth.Abbreviated).indexOf(\n          match[this.matchMap.periodAbbreviated + 1]\n        );\n      }\n      return {\n        hour: isNotNil(this.matchMap.hour) ? Number.parseInt(match[this.matchMap.hour + 1], 10) : null,\n        minute: isNotNil(this.matchMap.minute) ? Number.parseInt(match[this.matchMap.minute + 1], 10) : null,\n        second: isNotNil(this.matchMap.second) ? Number.parseInt(match[this.matchMap.second + 1], 10) : null,\n        period\n      };\n    } else {\n      return null;\n    }\n  }\n\n  genRegexp(): void {\n    let regexStr = this.format.replace(/([.*+?^=!:${}()|[\\]/\\\\])/g, '\\\\$&');\n    const hourRegex = /h{1,2}/i;\n    const minuteRegex = /m{1,2}/;\n    const secondRegex = /s{1,2}/;\n    const periodNarrow = /aaaaa/;\n    const periodWide = /aaaa/;\n    const periodAbbreviated = /a{1,3}/;\n\n    const hourMatch = hourRegex.exec(this.format);\n    const minuteMatch = minuteRegex.exec(this.format);\n    const secondMatch = secondRegex.exec(this.format);\n    const periodNarrowMatch = periodNarrow.exec(this.format);\n    let periodWideMatch: null | RegExpExecArray = null;\n    let periodAbbreviatedMatch: null | RegExpExecArray = null;\n    if (!periodNarrowMatch) {\n      periodWideMatch = periodWide.exec(this.format);\n    }\n    if (!periodWideMatch && !periodNarrowMatch) {\n      periodAbbreviatedMatch = periodAbbreviated.exec(this.format);\n    }\n\n    const matchs = [hourMatch, minuteMatch, secondMatch, periodNarrowMatch, periodWideMatch, periodAbbreviatedMatch]\n      .filter(m => !!m)\n      .sort((a, b) => a!.index - b!.index);\n\n    matchs.forEach((match, index) => {\n      switch (match) {\n        case hourMatch:\n          this.matchMap.hour = index;\n          regexStr = regexStr.replace(hourRegex, '(\\\\d{1,2})');\n          break;\n        case minuteMatch:\n          this.matchMap.minute = index;\n          regexStr = regexStr.replace(minuteRegex, '(\\\\d{1,2})');\n          break;\n        case secondMatch:\n          this.matchMap.second = index;\n          regexStr = regexStr.replace(secondRegex, '(\\\\d{1,2})');\n          break;\n        case periodNarrowMatch: {\n          this.matchMap.periodNarrow = index;\n          const periodsNarrow = getLocaleDayPeriods(this.localeId, FormStyle.Format, TranslationWidth.Narrow).join('|');\n          regexStr = regexStr.replace(periodNarrow, `(${periodsNarrow})`);\n          break;\n        }\n        case periodWideMatch: {\n          this.matchMap.periodWide = index;\n          const periodsWide = getLocaleDayPeriods(this.localeId, FormStyle.Format, TranslationWidth.Wide).join('|');\n          regexStr = regexStr.replace(periodWide, `(${periodsWide})`);\n          break;\n        }\n        case periodAbbreviatedMatch: {\n          this.matchMap.periodAbbreviated = index;\n          const periodsAbbreviated = getLocaleDayPeriods(\n            this.localeId,\n            FormStyle.Format,\n            TranslationWidth.Abbreviated\n          ).join('|');\n          regexStr = regexStr.replace(periodAbbreviated, `(${periodsAbbreviated})`);\n          break;\n        }\n      }\n    });\n\n    this.regex = new RegExp(regexStr);\n  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