n8n-editor-ui 1.62.2 → 1.63.1

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.
Files changed (126) hide show
  1. package/dist/assets/@jsplumb/{browser-ui-BphmFVJY.js → browser-ui-D3WTv2iL.js} +41 -76
  2. package/dist/assets/@jsplumb/{common-s1StEx7B.js → common-Cn2WooAp.js} +3 -6
  3. package/dist/assets/@jsplumb/{connector-bezier-D659hq4c.js → connector-bezier-BsoOTqok.js} +16 -29
  4. package/dist/assets/@jsplumb/{core-B__RSZHf.js → core-DLCSr9D4.js} +33 -57
  5. package/dist/assets/@jsplumb/{util-BwtpiQ4c.js → util-DggqnqQo.js} +12 -24
  6. package/dist/assets/@lezer/{common-CnY9etib.js → common-Bs5t-XhT.js} +93 -97
  7. package/dist/assets/@n8n/api-types-Clq_Leox.js +1 -0
  8. package/dist/assets/@n8n/{codemirror-lang-CIGGB1t0.js → codemirror-lang-Bizw8G99.js} +168 -196
  9. package/dist/assets/@n8n/{codemirror-lang-sql-Bygy_eOg.js → codemirror-lang-sql-C9sfSTUi.js} +61 -65
  10. package/dist/assets/@sentry/{vue-UFuYeDxK.js → vue-By9cUXYj.js} +217 -261
  11. package/dist/assets/@vue-flow/{background-VFdKMN89.js → background-B1J8rodd.js} +2 -2
  12. package/dist/assets/@vue-flow/{controls-ByUYVWad.js → controls-B4bXJQnK.js} +2 -2
  13. package/dist/assets/@vue-flow/{core-DgOSPOHv.js → core-tETEFGtP.js} +3116 -3001
  14. package/dist/assets/@vue-flow/{minimap-CXuyA5pl.js → minimap-CGW7BbeH.js} +13 -7
  15. package/dist/assets/@vue-flow/{node-resizer-BiyXe9J3.js → node-resizer-C7hxX6Ea.js} +2 -2
  16. package/dist/assets/@vueuse/{core-DVjv2hwE.js → core-BTO0AmLR.js} +5 -8
  17. package/dist/assets/{AnnotationTagsDropdown.ee-DCIPUepk.js → AnnotationTagsDropdown.ee-CEthDL8s.js} +4 -5
  18. package/dist/assets/{AuthView-DUPyWTzP.js → AuthView-Dtllm2Hm.js} +4 -4
  19. package/dist/assets/{CanvasControls-Bp-Hti67.js → CanvasControls-3e7GyyWC.js} +27 -27
  20. package/dist/assets/{ChangePasswordView-D-ZXDCSs.js → ChangePasswordView-RbBzZKmy.js} +30 -32
  21. package/dist/assets/{CredentialsView-CfTFJvIh.js → CredentialsView-BEobbBhB.js} +217 -212
  22. package/dist/assets/{ErrorView-QGaMA0LX.js → ErrorView-Dig_858_.js} +27 -27
  23. package/dist/assets/{ExecutionsFilter-Bck1b8Ij.js → ExecutionsFilter-D4gTpteQ.js} +4 -4
  24. package/dist/assets/{ExecutionsView-CzoIB_Xb.js → ExecutionsView-BzDdfbTp.js} +30 -30
  25. package/dist/assets/{FixedCollectionParameter-lpg6xB-C.js → FixedCollectionParameter-B1iBnOzV.js} +27 -27
  26. package/dist/assets/{ForgotMyPasswordView-CuYZWaqe.js → ForgotMyPasswordView-DrecvRAt.js} +28 -28
  27. package/dist/assets/{MainHeader-CyQZuyFo.js → MainHeader-BGBc_yGt.js} +45 -52
  28. package/dist/assets/{MainHeader-PNFUlNPa.css → MainHeader-m131IPYi.css} +9 -9
  29. package/dist/assets/{MainSidebar-K1l1zimY.js → MainSidebar-CGoARd9G.js} +28 -28
  30. package/dist/assets/{NodeCreation-BwNEef4i.js → NodeCreation-CJ4p9t6U.js} +14 -21
  31. package/dist/assets/{NodeCreator-B8E-cqcN.js → NodeCreator-MlJNsM5w.js} +68 -94
  32. package/dist/assets/{NodeViewSwitcher-DZNvWE_C.css → NodeViewSwitcher-BMWd0Gm9.css} +166 -128
  33. package/dist/assets/{NodeViewSwitcher-BiAFccgP.js → NodeViewSwitcher-CPwqYIKa.js} +647 -632
  34. package/dist/assets/{ProjectCardBadge-Bm4smn6X.js → ProjectCardBadge-Dsi1FktR.js} +2 -2
  35. package/dist/assets/{ProjectSettings-C0vFQjA7.js → ProjectSettings-NxkU_5Cm.js} +29 -30
  36. package/dist/assets/{ProjectTabs-BaktqVTx.js → ProjectTabs-BNt9vnB4.js} +3 -3
  37. package/dist/assets/{PushConnectionTracker-CgYWwLIC.js → PushConnectionTracker-BfyBSTsq.js} +4 -4
  38. package/dist/assets/{ResourcesListLayout-BWVlXJTF.js → ResourcesListLayout-wxQPFPh8.js} +4 -4
  39. package/dist/assets/{RunDataAi-BGOKfyvO.js → RunDataAi-BPXMLfKc.js} +11 -18
  40. package/dist/assets/{RunDataJson-Dpt6MF9e.js → RunDataJson-nHxoBXwc.js} +30 -30
  41. package/dist/assets/{RunDataJsonActions-8St1Hrls.js → RunDataJsonActions-CXjxyS8I.js} +28 -28
  42. package/dist/assets/{RunDataSearch-DSiRjRgH.js → RunDataSearch-_dTfLnCz.js} +27 -27
  43. package/dist/assets/{RunDataTable-C_7N0jmc.js → RunDataTable-Cle-Xlc9.js} +27 -27
  44. package/dist/assets/{SamlOnboarding-DZSla_S4.js → SamlOnboarding-DJd6oxdL.js} +29 -30
  45. package/dist/assets/{SettingsApiView-DT8DOVp4.js → SettingsApiView-B6K4GJFb.js} +29 -31
  46. package/dist/assets/{SettingsCommunityNodesView-CLIsL549.js → SettingsCommunityNodesView-BqLPWoe4.js} +31 -33
  47. package/dist/assets/{SettingsExternalSecrets-tTHThU03.js → SettingsExternalSecrets-hxNeJoPh.js} +28 -29
  48. package/dist/assets/{SettingsFakeDoorView-B1w2z2tW.js → SettingsFakeDoorView-B-CvApAQ.js} +27 -27
  49. package/dist/assets/{SettingsLdapView-CXjatsy2.js → SettingsLdapView-Cx9juILz.js} +31 -33
  50. package/dist/assets/{SettingsLogStreamingView-hVeF8Js7.js → SettingsLogStreamingView-DHdBwQLl.js} +31 -35
  51. package/dist/assets/{SettingsPersonalView-dPFbOBaU.js → SettingsPersonalView-BB52C_8a.js} +27 -27
  52. package/dist/assets/{SettingsSourceControl-iPHLpUWW.js → SettingsSourceControl-jvUljmfM.js} +28 -29
  53. package/dist/assets/{SettingsSso-D4kKt04i.js → SettingsSso-CtDqCHek.js} +27 -27
  54. package/dist/assets/{SettingsUsageAndPlan-DDB0UVxU.css → SettingsUsageAndPlan-B72odhIc.css} +30 -16
  55. package/dist/assets/{SettingsUsageAndPlan-DL4cSlMX.js → SettingsUsageAndPlan-DtE-8JQB.js} +110 -152
  56. package/dist/assets/{SettingsUsersView-DSKPJqAb.js → SettingsUsersView-D0fkCNqq.js} +27 -27
  57. package/dist/assets/{SettingsView-BDu7L_0_.js → SettingsView-Bdy1VVV5.js} +28 -28
  58. package/dist/assets/{SetupView-EXoXB-ik.js → SetupView-DZD5V-sp.js} +28 -28
  59. package/dist/assets/{SetupWorkflowCredentialsButton-BQelHZob.js → SetupWorkflowCredentialsButton-BniWA70J.js} +27 -27
  60. package/dist/assets/{SetupWorkflowFromTemplateView-0BtcqGD7.js → SetupWorkflowFromTemplateView-zPdNiNwz.js} +29 -29
  61. package/dist/assets/{SigninView-BaOFfcdg.js → SigninView-vhBJQAUq.js} +29 -30
  62. package/dist/assets/SignoutView-BvsyOBJl.js +57 -0
  63. package/dist/assets/{SignupView-CDCHJ_UU.js → SignupView-BnaxyfVy.js} +28 -28
  64. package/dist/assets/{TemplateDetails-CmiQhqfe.js → TemplateDetails-CgWak1sI.js} +4 -4
  65. package/dist/assets/{TemplateList-Cjfx-kvz.js → TemplateList-Dk-hIcwM.js} +3 -3
  66. package/dist/assets/{TemplatesCollectionView-BJoAQahB.js → TemplatesCollectionView-BykSqyyh.js} +31 -31
  67. package/dist/assets/{TemplatesSearchView-CcDOMLoo.js → TemplatesSearchView-Db3YPUKN.js} +30 -30
  68. package/dist/assets/{TemplatesView-S843Sfeg.js → TemplatesView-DSqSs2Fe.js} +3 -3
  69. package/dist/assets/{TemplatesWorkflowView-CJODvWh-.js → TemplatesWorkflowView-AcNIRcdH.js} +31 -31
  70. package/dist/assets/{VariablesView-CvCl_CSB.js → VariablesView-BDucuF4S.js} +29 -30
  71. package/dist/assets/{WorkerView-2i9FVRFh.js → WorkerView-Bt7mkvne.js} +33 -35
  72. package/dist/assets/{WorkflowActivator-vZvN6hnQ.js → WorkflowActivator-BBCmkXVM.js} +4 -4
  73. package/dist/assets/{WorkflowExecutionsInfoAccordion-Dat-XhDW.js → WorkflowExecutionsInfoAccordion-C1u1QoTS.js} +3 -3
  74. package/dist/assets/{WorkflowExecutionsLandingPage-BwaqELU2.js → WorkflowExecutionsLandingPage-DO0GNREn.js} +28 -28
  75. package/dist/assets/{WorkflowExecutionsPreview-CZbsi063.js → WorkflowExecutionsPreview-DKazVAlp.js} +31 -31
  76. package/dist/assets/{WorkflowExecutionsView-Dy-qrHuK.js → WorkflowExecutionsView-xQs2Ihb3.js} +33 -35
  77. package/dist/assets/{WorkflowHistory-D03vy7TN.js → WorkflowHistory-CRZhK8Sh.js} +30 -31
  78. package/dist/assets/{WorkflowOnboardingView-CnXznpEj.js → WorkflowOnboardingView-BLRc_Z_9.js} +27 -27
  79. package/dist/assets/{WorkflowPreview-Ch0qYfjN.js → WorkflowPreview-CpeWIc9m.js} +3 -3
  80. package/dist/assets/WorkflowsView-CADkCbWU.js +791 -0
  81. package/dist/assets/{axios-B4zXCSve.js → axios-BW6T4tHC.js} +12 -24
  82. package/dist/assets/{bowser-C3wWO1p5.js → bowser-CDCHPFWD.js} +16 -32
  83. package/dist/assets/{chart.js-DiBOFLDH.js → chart.js-BYpPl_l4.js} +1 -4
  84. package/dist/assets/{cloud-CxxrWb7j.js → cloud-CyEezfUz.js} +27 -27
  85. package/dist/assets/{codemirror-lang-html-n8n-COz1fWJn.js → codemirror-lang-html-n8n-BElKE4vf.js} +50 -92
  86. package/dist/assets/{dateFormatter-D2RNj1zt.js → dateFormatter-B-oph3V5.js} +1 -1
  87. package/dist/assets/{dateformat-DjCPSdAV.js → dateformat-BevCJF2z.js} +1 -1
  88. package/dist/assets/email-providers-Brdpqw-Z.js +1 -0
  89. package/dist/assets/{fast-json-stable-stringify-DSBIc8sQ.js → fast-json-stable-stringify-D9R5x91P.js} +11 -21
  90. package/dist/assets/{file-saver-Do8bJuLv.js → file-saver-Dbfm4l4I.js} +6 -11
  91. package/dist/assets/{flatted-D70IerrI.js → flatted-BLlNkUR-.js} +1 -2
  92. package/dist/assets/highlight.js-Brdpqw-Z.js +1 -0
  93. package/dist/assets/{humanize-duration-BPzNjE6S.js → humanize-duration-DdvB4QXM.js} +1 -1
  94. package/dist/assets/{index-CSBhQMYI.css → index-B5Pl_Rdy.css} +96 -21
  95. package/dist/assets/{index-B4ZmQmcP.js → index-DTqspxIG.js} +4487 -5975
  96. package/dist/assets/{jsonpath-C_2TkXL_.js → jsonpath--XXuA3UN.js} +92 -183
  97. package/dist/assets/{lodash-es-kRWQHL5K.js → lodash-es-DCRmYdQ5.js} +2 -1
  98. package/dist/assets/{luxon-Bt_g4NOb.js → luxon-N8mghSWH.js} +68 -136
  99. package/dist/assets/{n8n-2AIRllP4.css → n8n-C6KBCWah.css} +69 -27
  100. package/dist/assets/{n8n-B_ltL-ji.js → n8n-o-6nV4eX.js} +2297 -3491
  101. package/dist/assets/{pinia-CH9HlKCh.js → pinia-BWzoPyXU.js} +1 -1
  102. package/dist/assets/{prettier-DuWRKCwA.js → prettier-eWLVZldr.js} +332 -576
  103. package/dist/assets/{pushConnection.store-CUfZkZRc.js → pushConnection.store-BGMVJHP3.js} +4 -5
  104. package/dist/assets/{qrcode.vue-BxNS_c3b.js → qrcode.vue-BavVPFUM.js} +9 -18
  105. package/dist/assets/{templateActions-HBG0P7yi.js → templateActions-DOJZ_yY5.js} +1 -1
  106. package/dist/assets/{useBeforeUnload-DuM6ishT.js → useBeforeUnload-Tcm8t4ZF.js} +2 -2
  107. package/dist/assets/{useExecutionDebugging-BWhMgffE.js → useExecutionDebugging-CiwtVWXD.js} +2 -2
  108. package/dist/assets/{usePushConnection-37N3tZJ2.js → usePushConnection-CbB_XBsw.js} +7 -19
  109. package/dist/assets/{useUserHelpers-DqBuD9oN.js → useUserHelpers-CKYk9GNq.js} +1 -1
  110. package/dist/assets/{useWorkflowActivate-aYIkmCnj.js → useWorkflowActivate-C8RDXHeZ.js} +2 -2
  111. package/dist/assets/{uuid-BoySKAeK.js → uuid-DRDfXVM2.js} +2 -4
  112. package/dist/assets/{v3-infinite-loading-lAZO0HDs.js → v3-infinite-loading-CHlSsXAy.js} +1 -1
  113. package/dist/assets/{vendor-DCeaNtb_.js → vendor-D8YCjNHu.js} +18 -17
  114. package/dist/assets/{vue-agile-CyiHXD5R.js → vue-agile-Busf3nxn.js} +3 -3
  115. package/dist/assets/{vue-chartjs-CAJPqBur.js → vue-chartjs-DBNEiLG-.js} +3 -4
  116. package/dist/assets/{vue-i18n-CVQE9o3c.js → vue-i18n-CeifA_Nk.js} +2 -3
  117. package/dist/assets/{vue-json-pretty-DkJjhayc.js → vue-json-pretty-DHS8nWi_.js} +21 -40
  118. package/dist/assets/xss-Brdpqw-Z.js +1 -0
  119. package/dist/index.html +29 -29
  120. package/package.json +1 -1
  121. package/dist/assets/@n8n/api-types-Di8JQpRT.js +0 -1
  122. package/dist/assets/SignoutView-CB5tWChF.js +0 -57
  123. package/dist/assets/WorkflowsView-bdDn4gu_.js +0 -846
  124. package/dist/assets/email-providers-CUV6UfrV.js +0 -1
  125. package/dist/assets/highlight.js-CUV6UfrV.js +0 -1
  126. package/dist/assets/xss-CUV6UfrV.js +0 -1
@@ -422,8 +422,7 @@ class IANAZone extends Zone {
422
422
  /** @override **/
423
423
  offset(ts) {
424
424
  const date = new Date(ts);
425
- if (isNaN(date))
426
- return NaN;
425
+ if (isNaN(date)) return NaN;
427
426
  const dtf = makeDTF(this.name);
428
427
  let [year, month, day, adOrBc, hour, minute, second] = dtf.formatToParts ? partsOffset(dtf, date) : hackyOffset(dtf, date);
429
428
  if (adOrBc === "BC") {
@@ -592,8 +591,7 @@ class PolyNumberFormatter {
592
591
  const { padTo, floor, ...otherOpts } = opts;
593
592
  if (!forceSimple || Object.keys(otherOpts).length > 0) {
594
593
  const intlOpts = { useGrouping: false, ...opts };
595
- if (opts.padTo > 0)
596
- intlOpts.minimumIntegerDigits = opts.padTo;
594
+ if (opts.padTo > 0) intlOpts.minimumIntegerDigits = opts.padTo;
597
595
  this.inf = getCachedINF(intl, intlOpts);
598
596
  }
599
597
  }
@@ -982,14 +980,10 @@ function normalizeZone(input, defaultZone2) {
982
980
  return input;
983
981
  } else if (isString(input)) {
984
982
  const lowered = input.toLowerCase();
985
- if (lowered === "default")
986
- return defaultZone2;
987
- else if (lowered === "local" || lowered === "system")
988
- return SystemZone.instance;
989
- else if (lowered === "utc" || lowered === "gmt")
990
- return FixedOffsetZone.utcInstance;
991
- else
992
- return FixedOffsetZone.parseSpecifier(lowered) || IANAZone.create(input);
983
+ if (lowered === "default") return defaultZone2;
984
+ else if (lowered === "local" || lowered === "system") return SystemZone.instance;
985
+ else if (lowered === "utc" || lowered === "gmt") return FixedOffsetZone.utcInstance;
986
+ else return FixedOffsetZone.parseSpecifier(lowered) || IANAZone.create(input);
993
987
  } else if (isNumber(input)) {
994
988
  return FixedOffsetZone.instance(input);
995
989
  } else if (typeof input === "object" && "offset" in input && typeof input.offset === "function") {
@@ -1224,12 +1218,9 @@ function usesLocalWeekValues(obj, loc) {
1224
1218
  "Cannot mix locale-based week fields with ISO-based week fields"
1225
1219
  );
1226
1220
  }
1227
- if (!isUndefined(obj.localWeekday))
1228
- obj.weekday = obj.localWeekday;
1229
- if (!isUndefined(obj.localWeekNumber))
1230
- obj.weekNumber = obj.localWeekNumber;
1231
- if (!isUndefined(obj.localWeekYear))
1232
- obj.weekYear = obj.localWeekYear;
1221
+ if (!isUndefined(obj.localWeekday)) obj.weekday = obj.localWeekday;
1222
+ if (!isUndefined(obj.localWeekNumber)) obj.weekNumber = obj.localWeekNumber;
1223
+ if (!isUndefined(obj.localWeekYear)) obj.weekYear = obj.localWeekYear;
1233
1224
  delete obj.localWeekday;
1234
1225
  delete obj.localWeekNumber;
1235
1226
  delete obj.localWeekYear;
@@ -1253,8 +1244,7 @@ function hasInvalidWeekData(obj, minDaysInFirstWeek = 4, startOfWeek = 1) {
1253
1244
  return unitOutOfRange("week", obj.weekNumber);
1254
1245
  } else if (!validWeekday) {
1255
1246
  return unitOutOfRange("weekday", obj.weekday);
1256
- } else
1257
- return false;
1247
+ } else return false;
1258
1248
  }
1259
1249
  function hasInvalidOrdinalData(obj) {
1260
1250
  const validYear = isInteger(obj.year), validOrdinal = integerBetween(obj.ordinal, 1, daysInYear(obj.year));
@@ -1262,8 +1252,7 @@ function hasInvalidOrdinalData(obj) {
1262
1252
  return unitOutOfRange("year", obj.year);
1263
1253
  } else if (!validOrdinal) {
1264
1254
  return unitOutOfRange("ordinal", obj.ordinal);
1265
- } else
1266
- return false;
1255
+ } else return false;
1267
1256
  }
1268
1257
  function hasInvalidGregorianData(obj) {
1269
1258
  const validYear = isInteger(obj.year), validMonth = integerBetween(obj.month, 1, 12), validDay = integerBetween(obj.day, 1, daysInMonth(obj.year, obj.month));
@@ -1273,8 +1262,7 @@ function hasInvalidGregorianData(obj) {
1273
1262
  return unitOutOfRange("month", obj.month);
1274
1263
  } else if (!validDay) {
1275
1264
  return unitOutOfRange("day", obj.day);
1276
- } else
1277
- return false;
1265
+ } else return false;
1278
1266
  }
1279
1267
  function hasInvalidTimeData(obj) {
1280
1268
  const { hour, minute, second, millisecond } = obj;
@@ -1287,8 +1275,7 @@ function hasInvalidTimeData(obj) {
1287
1275
  return unitOutOfRange("second", second);
1288
1276
  } else if (!validMillisecond) {
1289
1277
  return unitOutOfRange("millisecond", millisecond);
1290
- } else
1291
- return false;
1278
+ } else return false;
1292
1279
  }
1293
1280
  function isUndefined(o) {
1294
1281
  return typeof o === "undefined";
@@ -1446,8 +1433,7 @@ function weeksInWeekYear(weekYear, minDaysInFirstWeek = 4, startOfWeek = 1) {
1446
1433
  function untruncateYear(year) {
1447
1434
  if (year > 99) {
1448
1435
  return year;
1449
- } else
1450
- return year > Settings.twoDigitCutoffYear ? 1900 + year : 2e3 + year;
1436
+ } else return year > Settings.twoDigitCutoffYear ? 1900 + year : 2e3 + year;
1451
1437
  }
1452
1438
  function parseZoneInfo(ts, offsetFormat, locale, timeZone = null) {
1453
1439
  const date = new Date(ts), intlOpts = {
@@ -1484,8 +1470,7 @@ function normalizeObject(obj, normalizer) {
1484
1470
  for (const u in obj) {
1485
1471
  if (hasOwnProperty(obj, u)) {
1486
1472
  const v = obj[u];
1487
- if (v === void 0 || v === null)
1488
- continue;
1473
+ if (v === void 0 || v === null) continue;
1489
1474
  normalized[normalizer(u)] = asNumber(v);
1490
1475
  }
1491
1476
  }
@@ -2104,8 +2089,7 @@ function fromStrings(weekdayStr, yearStr, monthStr, dayStr, hourStr, minuteStr,
2104
2089
  hour: parseInteger(hourStr),
2105
2090
  minute: parseInteger(minuteStr)
2106
2091
  };
2107
- if (secondStr)
2108
- result.second = parseInteger(secondStr);
2092
+ if (secondStr) result.second = parseInteger(secondStr);
2109
2093
  if (weekdayStr) {
2110
2094
  result.weekday = weekdayStr.length > 3 ? weekdaysLong.indexOf(weekdayStr) + 1 : weekdaysShort.indexOf(weekdayStr) + 1;
2111
2095
  }
@@ -2534,8 +2518,7 @@ class Duration {
2534
2518
  millisecond: "milliseconds",
2535
2519
  milliseconds: "milliseconds"
2536
2520
  }[unit ? unit.toLowerCase() : unit];
2537
- if (!normalized)
2538
- throw new InvalidUnitError(unit);
2521
+ if (!normalized) throw new InvalidUnitError(unit);
2539
2522
  return normalized;
2540
2523
  }
2541
2524
  /**
@@ -2605,8 +2588,7 @@ class Duration {
2605
2588
  * ```
2606
2589
  */
2607
2590
  toHuman(opts = {}) {
2608
- if (!this.isValid)
2609
- return INVALID$2;
2591
+ if (!this.isValid) return INVALID$2;
2610
2592
  const l2 = orderedUnits$1.map((unit) => {
2611
2593
  const val = this.values[unit];
2612
2594
  if (isUndefined(val)) {
@@ -2622,8 +2604,7 @@ class Duration {
2622
2604
  * @return {Object}
2623
2605
  */
2624
2606
  toObject() {
2625
- if (!this.isValid)
2626
- return {};
2607
+ if (!this.isValid) return {};
2627
2608
  return { ...this.values };
2628
2609
  }
2629
2610
  /**
@@ -2637,27 +2618,19 @@ class Duration {
2637
2618
  * @return {string}
2638
2619
  */
2639
2620
  toISO() {
2640
- if (!this.isValid)
2641
- return null;
2621
+ if (!this.isValid) return null;
2642
2622
  let s2 = "P";
2643
- if (this.years !== 0)
2644
- s2 += this.years + "Y";
2645
- if (this.months !== 0 || this.quarters !== 0)
2646
- s2 += this.months + this.quarters * 3 + "M";
2647
- if (this.weeks !== 0)
2648
- s2 += this.weeks + "W";
2649
- if (this.days !== 0)
2650
- s2 += this.days + "D";
2623
+ if (this.years !== 0) s2 += this.years + "Y";
2624
+ if (this.months !== 0 || this.quarters !== 0) s2 += this.months + this.quarters * 3 + "M";
2625
+ if (this.weeks !== 0) s2 += this.weeks + "W";
2626
+ if (this.days !== 0) s2 += this.days + "D";
2651
2627
  if (this.hours !== 0 || this.minutes !== 0 || this.seconds !== 0 || this.milliseconds !== 0)
2652
2628
  s2 += "T";
2653
- if (this.hours !== 0)
2654
- s2 += this.hours + "H";
2655
- if (this.minutes !== 0)
2656
- s2 += this.minutes + "M";
2629
+ if (this.hours !== 0) s2 += this.hours + "H";
2630
+ if (this.minutes !== 0) s2 += this.minutes + "M";
2657
2631
  if (this.seconds !== 0 || this.milliseconds !== 0)
2658
2632
  s2 += roundTo(this.seconds + this.milliseconds / 1e3, 3) + "S";
2659
- if (s2 === "P")
2660
- s2 += "T0S";
2633
+ if (s2 === "P") s2 += "T0S";
2661
2634
  return s2;
2662
2635
  }
2663
2636
  /**
@@ -2677,11 +2650,9 @@ class Duration {
2677
2650
  * @return {string}
2678
2651
  */
2679
2652
  toISOTime(opts = {}) {
2680
- if (!this.isValid)
2681
- return null;
2653
+ if (!this.isValid) return null;
2682
2654
  const millis = this.toMillis();
2683
- if (millis < 0 || millis >= 864e5)
2684
- return null;
2655
+ if (millis < 0 || millis >= 864e5) return null;
2685
2656
  opts = {
2686
2657
  suppressMilliseconds: false,
2687
2658
  suppressSeconds: false,
@@ -2723,8 +2694,7 @@ class Duration {
2723
2694
  * @return {number}
2724
2695
  */
2725
2696
  toMillis() {
2726
- if (!this.isValid)
2727
- return NaN;
2697
+ if (!this.isValid) return NaN;
2728
2698
  return durationToMillis(this.matrix, this.values);
2729
2699
  }
2730
2700
  /**
@@ -2740,8 +2710,7 @@ class Duration {
2740
2710
  * @return {Duration}
2741
2711
  */
2742
2712
  plus(duration) {
2743
- if (!this.isValid)
2744
- return this;
2713
+ if (!this.isValid) return this;
2745
2714
  const dur = Duration.fromDurationLike(duration), result = {};
2746
2715
  for (const k of orderedUnits$1) {
2747
2716
  if (hasOwnProperty(dur.values, k) || hasOwnProperty(this.values, k)) {
@@ -2756,8 +2725,7 @@ class Duration {
2756
2725
  * @return {Duration}
2757
2726
  */
2758
2727
  minus(duration) {
2759
- if (!this.isValid)
2760
- return this;
2728
+ if (!this.isValid) return this;
2761
2729
  const dur = Duration.fromDurationLike(duration);
2762
2730
  return this.plus(dur.negate());
2763
2731
  }
@@ -2769,8 +2737,7 @@ class Duration {
2769
2737
  * @return {Duration}
2770
2738
  */
2771
2739
  mapUnits(fn) {
2772
- if (!this.isValid)
2773
- return this;
2740
+ if (!this.isValid) return this;
2774
2741
  const result = {};
2775
2742
  for (const k of Object.keys(this.values)) {
2776
2743
  result[k] = asNumber(fn(this.values[k], k));
@@ -2796,8 +2763,7 @@ class Duration {
2796
2763
  * @return {Duration}
2797
2764
  */
2798
2765
  set(values) {
2799
- if (!this.isValid)
2800
- return this;
2766
+ if (!this.isValid) return this;
2801
2767
  const mixed = { ...this.values, ...normalizeObject(values, Duration.normalizeUnit) };
2802
2768
  return clone$1(this, { values: mixed });
2803
2769
  }
@@ -2838,8 +2804,7 @@ class Duration {
2838
2804
  * @return {Duration}
2839
2805
  */
2840
2806
  normalize() {
2841
- if (!this.isValid)
2842
- return this;
2807
+ if (!this.isValid) return this;
2843
2808
  const vals = this.toObject();
2844
2809
  normalizeValues(this.matrix, vals);
2845
2810
  return clone$1(this, { values: vals }, true);
@@ -2850,8 +2815,7 @@ class Duration {
2850
2815
  * @return {Duration}
2851
2816
  */
2852
2817
  rescale() {
2853
- if (!this.isValid)
2854
- return this;
2818
+ if (!this.isValid) return this;
2855
2819
  const vals = removeZeroes(this.normalize().shiftToAll().toObject());
2856
2820
  return clone$1(this, { values: vals }, true);
2857
2821
  }
@@ -2861,8 +2825,7 @@ class Duration {
2861
2825
  * @return {Duration}
2862
2826
  */
2863
2827
  shiftTo(...units) {
2864
- if (!this.isValid)
2865
- return this;
2828
+ if (!this.isValid) return this;
2866
2829
  if (units.length === 0) {
2867
2830
  return this;
2868
2831
  }
@@ -2901,8 +2864,7 @@ class Duration {
2901
2864
  * @return {Duration}
2902
2865
  */
2903
2866
  shiftToAll() {
2904
- if (!this.isValid)
2905
- return this;
2867
+ if (!this.isValid) return this;
2906
2868
  return this.shiftTo(
2907
2869
  "years",
2908
2870
  "months",
@@ -2920,8 +2882,7 @@ class Duration {
2920
2882
  * @return {Duration}
2921
2883
  */
2922
2884
  negate() {
2923
- if (!this.isValid)
2924
- return this;
2885
+ if (!this.isValid) return this;
2925
2886
  const negated = {};
2926
2887
  for (const k of Object.keys(this.values)) {
2927
2888
  negated[k] = this.values[k] === 0 ? 0 : -this.values[k];
@@ -3027,8 +2988,7 @@ class Duration {
3027
2988
  return false;
3028
2989
  }
3029
2990
  function eq(v1, v2) {
3030
- if (v1 === void 0 || v1 === 0)
3031
- return v2 === void 0 || v2 === 0;
2991
+ if (v1 === void 0 || v1 === 0) return v2 === void 0 || v2 === 0;
3032
2992
  return v1 === v2;
3033
2993
  }
3034
2994
  for (const u of orderedUnits$1) {
@@ -3222,8 +3182,7 @@ class Interval {
3222
3182
  * @return {number}
3223
3183
  */
3224
3184
  count(unit = "milliseconds", opts) {
3225
- if (!this.isValid)
3226
- return NaN;
3185
+ if (!this.isValid) return NaN;
3227
3186
  const start = this.start.startOf(unit, opts);
3228
3187
  let end;
3229
3188
  if (opts == null ? void 0 : opts.useLocaleWeeks) {
@@ -3255,8 +3214,7 @@ class Interval {
3255
3214
  * @return {boolean}
3256
3215
  */
3257
3216
  isAfter(dateTime) {
3258
- if (!this.isValid)
3259
- return false;
3217
+ if (!this.isValid) return false;
3260
3218
  return this.s > dateTime;
3261
3219
  }
3262
3220
  /**
@@ -3265,8 +3223,7 @@ class Interval {
3265
3223
  * @return {boolean}
3266
3224
  */
3267
3225
  isBefore(dateTime) {
3268
- if (!this.isValid)
3269
- return false;
3226
+ if (!this.isValid) return false;
3270
3227
  return this.e <= dateTime;
3271
3228
  }
3272
3229
  /**
@@ -3275,8 +3232,7 @@ class Interval {
3275
3232
  * @return {boolean}
3276
3233
  */
3277
3234
  contains(dateTime) {
3278
- if (!this.isValid)
3279
- return false;
3235
+ if (!this.isValid) return false;
3280
3236
  return this.s <= dateTime && this.e > dateTime;
3281
3237
  }
3282
3238
  /**
@@ -3287,8 +3243,7 @@ class Interval {
3287
3243
  * @return {Interval}
3288
3244
  */
3289
3245
  set({ start, end } = {}) {
3290
- if (!this.isValid)
3291
- return this;
3246
+ if (!this.isValid) return this;
3292
3247
  return Interval.fromDateTimes(start || this.s, end || this.e);
3293
3248
  }
3294
3249
  /**
@@ -3297,8 +3252,7 @@ class Interval {
3297
3252
  * @return {Array}
3298
3253
  */
3299
3254
  splitAt(...dateTimes) {
3300
- if (!this.isValid)
3301
- return [];
3255
+ if (!this.isValid) return [];
3302
3256
  const sorted = dateTimes.map(friendlyDateTime).filter((d) => this.contains(d)).sort((a, b) => a.toMillis() - b.toMillis()), results = [];
3303
3257
  let { s: s2 } = this, i = 0;
3304
3258
  while (s2 < this.e) {
@@ -3337,8 +3291,7 @@ class Interval {
3337
3291
  * @return {Array}
3338
3292
  */
3339
3293
  divideEqually(numberOfParts) {
3340
- if (!this.isValid)
3341
- return [];
3294
+ if (!this.isValid) return [];
3342
3295
  return this.splitBy(this.length() / numberOfParts).slice(0, numberOfParts);
3343
3296
  }
3344
3297
  /**
@@ -3355,8 +3308,7 @@ class Interval {
3355
3308
  * @return {boolean}
3356
3309
  */
3357
3310
  abutsStart(other) {
3358
- if (!this.isValid)
3359
- return false;
3311
+ if (!this.isValid) return false;
3360
3312
  return +this.e === +other.s;
3361
3313
  }
3362
3314
  /**
@@ -3365,8 +3317,7 @@ class Interval {
3365
3317
  * @return {boolean}
3366
3318
  */
3367
3319
  abutsEnd(other) {
3368
- if (!this.isValid)
3369
- return false;
3320
+ if (!this.isValid) return false;
3370
3321
  return +other.e === +this.s;
3371
3322
  }
3372
3323
  /**
@@ -3375,8 +3326,7 @@ class Interval {
3375
3326
  * @return {boolean}
3376
3327
  */
3377
3328
  engulfs(other) {
3378
- if (!this.isValid)
3379
- return false;
3329
+ if (!this.isValid) return false;
3380
3330
  return this.s <= other.s && this.e >= other.e;
3381
3331
  }
3382
3332
  /**
@@ -3398,8 +3348,7 @@ class Interval {
3398
3348
  * @return {Interval}
3399
3349
  */
3400
3350
  intersection(other) {
3401
- if (!this.isValid)
3402
- return this;
3351
+ if (!this.isValid) return this;
3403
3352
  const s2 = this.s > other.s ? this.s : other.s, e = this.e < other.e ? this.e : other.e;
3404
3353
  if (s2 >= e) {
3405
3354
  return null;
@@ -3414,8 +3363,7 @@ class Interval {
3414
3363
  * @return {Interval}
3415
3364
  */
3416
3365
  union(other) {
3417
- if (!this.isValid)
3418
- return this;
3366
+ if (!this.isValid) return this;
3419
3367
  const s2 = this.s < other.s ? this.s : other.s, e = this.e > other.e ? this.e : other.e;
3420
3368
  return Interval.fromDateTimes(s2, e);
3421
3369
  }
@@ -3480,8 +3428,7 @@ class Interval {
3480
3428
  * @return {string}
3481
3429
  */
3482
3430
  toString() {
3483
- if (!this.isValid)
3484
- return INVALID$1;
3431
+ if (!this.isValid) return INVALID$1;
3485
3432
  return `[${this.s.toISO()} – ${this.e.toISO()})`;
3486
3433
  }
3487
3434
  /**
@@ -3523,8 +3470,7 @@ class Interval {
3523
3470
  * @return {string}
3524
3471
  */
3525
3472
  toISO(opts) {
3526
- if (!this.isValid)
3527
- return INVALID$1;
3473
+ if (!this.isValid) return INVALID$1;
3528
3474
  return `${this.s.toISO(opts)}/${this.e.toISO(opts)}`;
3529
3475
  }
3530
3476
  /**
@@ -3534,8 +3480,7 @@ class Interval {
3534
3480
  * @return {string}
3535
3481
  */
3536
3482
  toISODate() {
3537
- if (!this.isValid)
3538
- return INVALID$1;
3483
+ if (!this.isValid) return INVALID$1;
3539
3484
  return `${this.s.toISODate()}/${this.e.toISODate()}`;
3540
3485
  }
3541
3486
  /**
@@ -3546,8 +3491,7 @@ class Interval {
3546
3491
  * @return {string}
3547
3492
  */
3548
3493
  toISOTime(opts) {
3549
- if (!this.isValid)
3550
- return INVALID$1;
3494
+ if (!this.isValid) return INVALID$1;
3551
3495
  return `${this.s.toISOTime(opts)}/${this.e.toISOTime(opts)}`;
3552
3496
  }
3553
3497
  /**
@@ -3562,8 +3506,7 @@ class Interval {
3562
3506
  * @return {string}
3563
3507
  */
3564
3508
  toFormat(dateFormat, { separator = " – " } = {}) {
3565
- if (!this.isValid)
3566
- return INVALID$1;
3509
+ if (!this.isValid) return INVALID$1;
3567
3510
  return `${this.s.toFormat(dateFormat)}${separator}${this.e.toFormat(dateFormat)}`;
3568
3511
  }
3569
3512
  /**
@@ -4373,8 +4316,7 @@ function toTechFormat(dt, format, allowZ = true) {
4373
4316
  function toISODate(o, extended) {
4374
4317
  const longFormat = o.c.year > 9999 || o.c.year < 0;
4375
4318
  let c = "";
4376
- if (longFormat && o.c.year >= 0)
4377
- c += "+";
4319
+ if (longFormat && o.c.year >= 0) c += "+";
4378
4320
  c += padStart(o.c.year, longFormat ? 6 : 4);
4379
4321
  if (extended) {
4380
4322
  c += "-";
@@ -4482,8 +4424,7 @@ function normalizeUnit(unit) {
4482
4424
  weekyears: "weekYear",
4483
4425
  ordinal: "ordinal"
4484
4426
  }[unit.toLowerCase()];
4485
- if (!normalized)
4486
- throw new InvalidUnitError(unit);
4427
+ if (!normalized) throw new InvalidUnitError(unit);
4487
4428
  return normalized;
4488
4429
  }
4489
4430
  function normalizeUnitWithLocalWeeks(unit) {
@@ -4530,8 +4471,7 @@ function diffRelative(start, end, opts) {
4530
4471
  if (opts.calendary) {
4531
4472
  if (!end.hasSame(start, unit)) {
4532
4473
  return end.startOf(unit).diff(start.startOf(unit), unit).get(unit);
4533
- } else
4534
- return 0;
4474
+ } else return 0;
4535
4475
  } else {
4536
4476
  return end.diff(start, unit).get(unit);
4537
4477
  }
@@ -5444,8 +5384,7 @@ class DateTime {
5444
5384
  * @return {DateTime}
5445
5385
  */
5446
5386
  set(values) {
5447
- if (!this.isValid)
5448
- return this;
5387
+ if (!this.isValid) return this;
5449
5388
  const normalized = normalizeObject(values, normalizeUnitWithLocalWeeks);
5450
5389
  const { minDaysInFirstWeek, startOfWeek } = usesLocalWeekValues(normalized, this.loc);
5451
5390
  const settingWeekStuff = !isUndefined(normalized.weekYear) || !isUndefined(normalized.weekNumber) || !isUndefined(normalized.weekday), containsOrdinal = !isUndefined(normalized.ordinal), containsGregorYear = !isUndefined(normalized.year), containsGregorMD = !isUndefined(normalized.month) || !isUndefined(normalized.day), containsGregor = containsGregorYear || containsGregorMD, definiteWeekDef = normalized.weekYear || normalized.weekNumber;
@@ -5489,8 +5428,7 @@ class DateTime {
5489
5428
  * @return {DateTime}
5490
5429
  */
5491
5430
  plus(duration) {
5492
- if (!this.isValid)
5493
- return this;
5431
+ if (!this.isValid) return this;
5494
5432
  const dur = Duration.fromDurationLike(duration);
5495
5433
  return clone(this, adjustTime(this, dur));
5496
5434
  }
@@ -5501,8 +5439,7 @@ class DateTime {
5501
5439
  @return {DateTime}
5502
5440
  */
5503
5441
  minus(duration) {
5504
- if (!this.isValid)
5505
- return this;
5442
+ if (!this.isValid) return this;
5506
5443
  const dur = Duration.fromDurationLike(duration).negate();
5507
5444
  return clone(this, adjustTime(this, dur));
5508
5445
  }
@@ -5519,8 +5456,7 @@ class DateTime {
5519
5456
  * @return {DateTime}
5520
5457
  */
5521
5458
  startOf(unit, { useLocaleWeeks = false } = {}) {
5522
- if (!this.isValid)
5523
- return this;
5459
+ if (!this.isValid) return this;
5524
5460
  const o = {}, normalizedUnit = Duration.normalizeUnit(unit);
5525
5461
  switch (normalizedUnit) {
5526
5462
  case "years":
@@ -5859,8 +5795,7 @@ class DateTime {
5859
5795
  * @return {Object}
5860
5796
  */
5861
5797
  toObject(opts = {}) {
5862
- if (!this.isValid)
5863
- return {};
5798
+ if (!this.isValid) return {};
5864
5799
  const base = { ...this.c };
5865
5800
  if (opts.includeConfig) {
5866
5801
  base.outputCalendar = this.outputCalendar;
@@ -5931,8 +5866,7 @@ class DateTime {
5931
5866
  * @return {boolean}
5932
5867
  */
5933
5868
  hasSame(otherDateTime, unit, opts) {
5934
- if (!this.isValid)
5935
- return false;
5869
+ if (!this.isValid) return false;
5936
5870
  const inputMs = otherDateTime.valueOf();
5937
5871
  const adjustedToZone = this.setZone(otherDateTime.zone, { keepLocalTime: true });
5938
5872
  return adjustedToZone.startOf(unit, opts) <= inputMs && inputMs <= adjustedToZone.endOf(unit, opts);
@@ -5966,8 +5900,7 @@ class DateTime {
5966
5900
  * @example DateTime.now().minus({ hours: 36 }).toRelative({ round: false }) //=> "1.5 days ago"
5967
5901
  */
5968
5902
  toRelative(options = {}) {
5969
- if (!this.isValid)
5970
- return null;
5903
+ if (!this.isValid) return null;
5971
5904
  const base = options.base || DateTime.fromObject({}, { zone: this.zone }), padding = options.padding ? this < base ? -options.padding : options.padding : 0;
5972
5905
  let units = ["years", "months", "days", "hours", "minutes", "seconds"];
5973
5906
  let unit = options.unit;
@@ -5996,8 +5929,7 @@ class DateTime {
5996
5929
  * @example DateTime.now().minus({ days: 2 }).toRelativeCalendar() //=> "2 days ago"
5997
5930
  */
5998
5931
  toRelativeCalendar(options = {}) {
5999
- if (!this.isValid)
6000
- return null;
5932
+ if (!this.isValid) return null;
6001
5933
  return diffRelative(options.base || DateTime.fromObject({}, { zone: this.zone }), this, {
6002
5934
  ...options,
6003
5935
  numeric: "auto",