@tempots/beatui 0.19.0 → 0.20.0

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 (124) hide show
  1. package/dist/{2019-D0n7sHsB.js → 2019-B4Mw3glM.js} +2 -2
  2. package/dist/{2019-CfIF9XVA.cjs → 2019-u0Cs1ZdE.cjs} +1 -1
  3. package/dist/{2020-D1ziwonq.cjs → 2020-BcwEHv2O.cjs} +1 -1
  4. package/dist/{2020-BkXWq9F8.js → 2020-BvFyb4Gy.js} +2 -2
  5. package/dist/{ar-DYmDITuw.cjs → ar-DyhaQaJU.cjs} +1 -1
  6. package/dist/{ar-CMndb3tf.js → ar-RkpJ2n6w.js} +1 -1
  7. package/dist/auth/index.cjs.js +1 -1
  8. package/dist/auth/index.es.js +646 -651
  9. package/dist/beatui.css +1 -1
  10. package/dist/{de-Cgy7XJBg.js → de-BdSVR4Zm.js} +1 -1
  11. package/dist/{de-ClQgQrXM.cjs → de-CnZ4Ik2a.cjs} +1 -1
  12. package/dist/{es-j0qszDAW.js → es-B_Qn5EUy.js} +1 -1
  13. package/dist/{es-BN5Mihv0.cjs → es-ZKraCneL.cjs} +1 -1
  14. package/dist/{fa-BUQvM0nj.cjs → fa-D2p_ch4Q.cjs} +1 -1
  15. package/dist/{fa-COUp2ofv.js → fa-jBaLjqfG.js} +1 -1
  16. package/dist/{fr-B5Ar6QcE.js → fr-B0KaMM2j.js} +1 -1
  17. package/dist/{fr-CwvsJDIZ.cjs → fr-CBeo42lQ.cjs} +1 -1
  18. package/dist/{he-HZvvmFUB.cjs → he-BmqEF3o-.cjs} +1 -1
  19. package/dist/{he-D5HTHvKh.js → he-DjeYjcW7.js} +1 -1
  20. package/dist/{hi-Cnr1RtgA.cjs → hi-BAfIFl1n.cjs} +1 -1
  21. package/dist/{hi-Bcc7iEXp.js → hi-DxBQV0uz.js} +1 -1
  22. package/dist/index-4NoQLiJo.cjs +2 -0
  23. package/dist/{index-DSvEBuy-.cjs → index-9UO7Pd64.cjs} +1 -1
  24. package/dist/{index-tuwLQMCb.js → index-B001qopB.js} +3 -3
  25. package/dist/{index-ykojBEwT.js → index-BIUeLQJ1.js} +4 -4
  26. package/dist/{index-FEy4Hwnx.cjs → index-BInDdLXi.cjs} +1 -1
  27. package/dist/{index-BUKtbimR.cjs → index-BWiQR9j3.cjs} +1 -1
  28. package/dist/{index-Dben4dbo.js → index-BX_AooS9.js} +2 -2
  29. package/dist/{index-CRfUh74G.cjs → index-Blq-MoAk.cjs} +1 -1
  30. package/dist/{index-rWglN8IQ.js → index-BnaafQ9o.js} +1 -1
  31. package/dist/{index-BJfVmi_X.js → index-BnbEC2zq.js} +2 -2
  32. package/dist/{index-CHgx0rFt.js → index-C4jYy0NW.js} +2 -2
  33. package/dist/{index-B-d5blto.js → index-C4xio93t.js} +3 -3
  34. package/dist/{index-CFo2nnaI.js → index-C5l1mFuD.js} +2 -2
  35. package/dist/{index-BYk56bqR.cjs → index-CDYYXcsk.cjs} +2 -2
  36. package/dist/{index-CIfx_bs7.cjs → index-CJM_lW9n.cjs} +1 -1
  37. package/dist/{index-D0-d-xdJ.js → index-CaNnYmEs.js} +6 -6
  38. package/dist/{index-BZHMnjr6.cjs → index-CaOzAsWD.cjs} +1 -1
  39. package/dist/{index-BF4pXHo-.js → index-CdvplJG6.js} +4 -4
  40. package/dist/{index-CUs1c8a9.js → index-ClvbjqJL.js} +8 -8
  41. package/dist/{index-DgUJYXoy.cjs → index-CpB78PPQ.cjs} +1 -1
  42. package/dist/{index-B16dbwxM.cjs → index-CpKAa22o.cjs} +1 -1
  43. package/dist/{index-DJ-avKHU.js → index-CpMCZBAl.js} +2 -2
  44. package/dist/{index-2DKUYRWr.js → index-Cs_PxtnZ.js} +1 -1
  45. package/dist/{index-DxG_avr8.cjs → index-CvRJPSEv.cjs} +1 -1
  46. package/dist/{index-DD-MOsCa.js → index-D5nWhHZv.js} +2 -2
  47. package/dist/{index-Cohec4rB.cjs → index-D7o5LhMm.cjs} +1 -1
  48. package/dist/{index-DYIv5X6N.js → index-DC5Cn-TM.js} +2 -2
  49. package/dist/{index-CKRuo2DB.js → index-DCpnqWRN.js} +3 -3
  50. package/dist/{index-BirEb-BA.js → index-DOlgncMG.js} +2178 -2193
  51. package/dist/{index-kk6qFeC5.cjs → index-DOyppfix.cjs} +1 -1
  52. package/dist/{index-DjNMMz5-.cjs → index-DXUQTPON.cjs} +1 -1
  53. package/dist/{index-C9XAXTDx.cjs → index-DdlxwtnE.cjs} +1 -1
  54. package/dist/{index-_OaxQJX1.js → index-DhJIuRg9.js} +4 -4
  55. package/dist/{index-Bg1QLlyj.js → index-DiV6JJiS.js} +3 -3
  56. package/dist/{index-DD8_efWr.cjs → index-Dl-wY6fc.cjs} +1 -1
  57. package/dist/{index-BguvTLHu.cjs → index-DlaVE6S2.cjs} +1 -1
  58. package/dist/index-JHbFZFZF.cjs +8 -0
  59. package/dist/{index-dsitEt8M.cjs → index-Jt6D3QJ7.cjs} +1 -1
  60. package/dist/{index-85k3bgcY.cjs → index-KcBlGDqr.cjs} +1 -1
  61. package/dist/{index-dV4F3c70.js → index-MyVoESdk.js} +3 -3
  62. package/dist/{index-DC4nzG_w.js → index-NysVuvZA.js} +5 -5
  63. package/dist/{index-D-Rzl363.cjs → index-RGCDszX8.cjs} +1 -1
  64. package/dist/{index-CoBM7UvE.js → index-c-O5R5i2.js} +2 -2
  65. package/dist/{index-C4UzgyIA.cjs → index-cjtIcxwt.cjs} +1 -1
  66. package/dist/{index-faGepKVA.js → index-fnMeddEM.js} +2 -2
  67. package/dist/{index-DV7tB1MN.cjs → index-uR3OZ_8K.cjs} +1 -1
  68. package/dist/index.cjs.js +25 -25
  69. package/dist/index.es.js +2248 -2264
  70. package/dist/index.esm-DJRz9AE-.cjs +1 -0
  71. package/dist/{index.esm-CSotgpVw.js → index.esm-DPNh6inz.js} +410 -420
  72. package/dist/{it-CTCKFU5g.js → it-B4qZsicu.js} +1 -1
  73. package/dist/{it-B7KeOLBm.cjs → it-CzKrFTFY.cjs} +1 -1
  74. package/dist/{ja-BGoETTZv.js → ja-BnCSmhkg.js} +1 -1
  75. package/dist/{ja-0ldomgID.cjs → ja-i_9MZ1j0.cjs} +1 -1
  76. package/dist/json-schema/index.cjs.js +1 -1
  77. package/dist/json-schema/index.es.js +1 -1
  78. package/dist/{ko-C4WEkArz.cjs → ko-CF9il-Az.cjs} +1 -1
  79. package/dist/{ko-xHeRs9LU.js → ko-D_gGkjrC.js} +1 -1
  80. package/dist/milkdown/index.cjs.js +1 -1
  81. package/dist/milkdown/index.es.js +1 -1
  82. package/dist/{milkdown-input-BbbZJGDl.js → milkdown-input-CYme9OBn.js} +14757 -14822
  83. package/dist/milkdown-input-KjtVqDzi.cjs +941 -0
  84. package/dist/modal-B-f3LBKr.cjs +1 -0
  85. package/dist/modal-BItfEmu0.js +600 -0
  86. package/dist/monaco/index.cjs.js +2 -2
  87. package/dist/monaco/index.es.js +114 -116
  88. package/dist/{nl-ey2Li7DF.js → nl-CsLCWUFF.js} +1 -1
  89. package/dist/{nl-D-y231ZO.cjs → nl-DfWlqR6T.cjs} +1 -1
  90. package/dist/notice-B7JqE59s.cjs +1 -0
  91. package/dist/notice-CmmpobJd.js +2415 -0
  92. package/dist/{pl-Bf0QaCGx.js → pl-Bsmj1KbZ.js} +1 -1
  93. package/dist/{pl-G6e4Mybr.cjs → pl-wK2sgv7l.cjs} +1 -1
  94. package/dist/{pt-D-_KxA9g.js → pt-BR_NuRJS.js} +1 -1
  95. package/dist/{pt-CD2Eqazl.cjs → pt-DAQIuOPW.cjs} +1 -1
  96. package/dist/{ru-CKh2xgqC.cjs → ru-BnoiCxrw.cjs} +1 -1
  97. package/dist/{ru-Dzbl29K2.js → ru-CiQ_qKD_.js} +1 -1
  98. package/dist/timer-BdH4cK6a.cjs +1 -0
  99. package/dist/timer-CQlK5LhW.js +47 -0
  100. package/dist/{tr-BbpC5gzM.cjs → tr-Bme5PfaE.cjs} +1 -1
  101. package/dist/{tr-yMHT8n7z.js → tr-Q9xP1nE4.js} +1 -1
  102. package/dist/translations-ClgoCEFC.js +1969 -0
  103. package/dist/{translations-DbN-OSLv.js → translations-D4hFMU4P.js} +1 -1
  104. package/dist/translations-DRBh70w8.cjs +2 -0
  105. package/dist/{translations-CXE8Z_Ac.cjs → translations-lnK_6RdU.cjs} +1 -1
  106. package/dist/{ur-kkik6-_r.cjs → ur-B4b39hNV.cjs} +1 -1
  107. package/dist/{ur-CdQA0epV.js → ur-CGTjSoJt.js} +1 -1
  108. package/dist/{vi-A8UmZU3L.js → vi-BF3HTFU9.js} +1 -1
  109. package/dist/{vi-1xtFXJc0.cjs → vi-CSpW181L.cjs} +1 -1
  110. package/dist/{zh-D0nnvX8T.js → zh-BreM8U2w.js} +1 -1
  111. package/dist/{zh-DC_SsXdk.cjs → zh-PeL8FN2c.cjs} +1 -1
  112. package/package.json +6 -6
  113. package/dist/index-B66rNs5i.cjs +0 -2
  114. package/dist/index-DXFKCiah.cjs +0 -8
  115. package/dist/index.esm-8xolKogd.cjs +0 -1
  116. package/dist/milkdown-input-C-Muq7PQ.cjs +0 -941
  117. package/dist/modal-nbZW44XS.js +0 -614
  118. package/dist/modal-wbG_oGOr.cjs +0 -1
  119. package/dist/notice-CIPcSfD5.js +0 -2432
  120. package/dist/notice-Cq02YHoN.cjs +0 -1
  121. package/dist/timer-CcMCjYrq.cjs +0 -1
  122. package/dist/timer-CkgWORR9.js +0 -42
  123. package/dist/translations-DBtfTNnM.js +0 -2005
  124. package/dist/translations-EQ1qPZ0_.cjs +0 -2
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});class l extends Array{constructor(t,e){if(super(t),this.sign=e,Object.setPrototypeOf(this,l.prototype),t>l.__kMaxLength)throw new RangeError("Maximum BigInt size exceeded")}static BigInt(t){var e=Math.floor,r=Number.isFinite;if(typeof t=="number"){if(t===0)return l.__zero();if(l.__isOneDigitInt(t))return 0>t?l.__oneDigit(-t,!0):l.__oneDigit(t,!1);if(!r(t)||e(t)!==t)throw new RangeError("The number "+t+" cannot be converted to BigInt because it is not an integer");return l.__fromDouble(t)}if(typeof t=="string"){const o=l.__fromString(t);if(o===null)throw new SyntaxError("Cannot convert "+t+" to a BigInt");return o}if(typeof t=="boolean")return t===!0?l.__oneDigit(1,!1):l.__zero();if(typeof t=="object"){if(t.constructor===l)return t;const o=l.__toPrimitive(t);return l.BigInt(o)}throw new TypeError("Cannot convert "+t+" to a BigInt")}toDebugString(){const t=["BigInt["];for(const e of this)t.push((e&&(e>>>0).toString(16))+", ");return t.push("]"),t.join("")}toString(t=10){if(2>t||36<t)throw new RangeError("toString() radix argument must be between 2 and 36");return this.length===0?"0":(t&t-1)==0?l.__toStringBasePowerOfTwo(this,t):l.__toStringGeneric(this,t,!1)}valueOf(){throw new Error("Convert JSBI instances to native numbers using `toNumber`.")}static toNumber(t){const e=t.length;if(e===0)return 0;if(e===1){const w=t.__unsignedDigit(0);return t.sign?-w:w}const r=t.__digit(e-1),o=l.__clz30(r),i=30*e-o;if(1024<i)return t.sign?-1/0:1/0;let a=i-1,s=r,c=e-1;const u=o+3;let d=u===32?0:s<<u;d>>>=12;const m=u-12;let f=12<=u?0:s<<20+u,g=20+u;for(0<m&&0<c&&(c--,s=t.__digit(c),d|=s>>>30-m,f=s<<m+2,g=m+2);0<g&&0<c;)c--,s=t.__digit(c),f|=30<=g?s<<g-30:s>>>30-g,g-=30;const y=l.__decideRounding(t,g,c,s);if((y===1||y===0&&(1&f)==1)&&(f=f+1>>>0,f===0&&(d++,d>>>20!=0&&(d=0,a++,1023<a))))return t.sign?-1/0:1/0;const p=t.sign?-2147483648:0;return a=a+1023<<20,l.__kBitConversionInts[l.__kBitConversionIntHigh]=p|a|d,l.__kBitConversionInts[l.__kBitConversionIntLow]=f,l.__kBitConversionDouble[0]}static unaryMinus(t){if(t.length===0)return t;const e=t.__copy();return e.sign=!t.sign,e}static bitwiseNot(t){return t.sign?l.__absoluteSubOne(t).__trim():l.__absoluteAddOne(t,!0)}static exponentiate(t,e){if(e.sign)throw new RangeError("Exponent must be positive");if(e.length===0)return l.__oneDigit(1,!1);if(t.length===0)return t;if(t.length===1&&t.__digit(0)===1)return t.sign&&(1&e.__digit(0))==0?l.unaryMinus(t):t;if(1<e.length)throw new RangeError("BigInt too big");let r=e.__unsignedDigit(0);if(r===1)return t;if(r>=l.__kMaxLengthBits)throw new RangeError("BigInt too big");if(t.length===1&&t.__digit(0)===2){const a=1+(0|r/30),s=t.sign&&(1&r)!=0,c=new l(a,s);c.__initializeDigits();const u=1<<r%30;return c.__setDigit(a-1,u),c}let o=null,i=t;for((1&r)!=0&&(o=t),r>>=1;r!==0;r>>=1)i=l.multiply(i,i),(1&r)!=0&&(o===null?o=i:o=l.multiply(o,i));return o}static multiply(t,e){if(t.length===0)return t;if(e.length===0)return e;let r=t.length+e.length;30<=t.__clzmsd()+e.__clzmsd()&&r--;const o=new l(r,t.sign!==e.sign);o.__initializeDigits();for(let i=0;i<t.length;i++)l.__multiplyAccumulate(e,t.__digit(i),o,i);return o.__trim()}static divide(t,e){if(e.length===0)throw new RangeError("Division by zero");if(0>l.__absoluteCompare(t,e))return l.__zero();const r=t.sign!==e.sign,o=e.__unsignedDigit(0);let i;if(e.length===1&&32767>=o){if(o===1)return r===t.sign?t:l.unaryMinus(t);i=l.__absoluteDivSmall(t,o,null)}else i=l.__absoluteDivLarge(t,e,!0,!1);return i.sign=r,i.__trim()}static remainder(t,e){if(e.length===0)throw new RangeError("Division by zero");if(0>l.__absoluteCompare(t,e))return t;const r=e.__unsignedDigit(0);if(e.length===1&&32767>=r){if(r===1)return l.__zero();const i=l.__absoluteModSmall(t,r);return i===0?l.__zero():l.__oneDigit(i,t.sign)}const o=l.__absoluteDivLarge(t,e,!1,!0);return o.sign=t.sign,o.__trim()}static add(t,e){const r=t.sign;return r===e.sign?l.__absoluteAdd(t,e,r):0<=l.__absoluteCompare(t,e)?l.__absoluteSub(t,e,r):l.__absoluteSub(e,t,!r)}static subtract(t,e){const r=t.sign;return r===e.sign?0<=l.__absoluteCompare(t,e)?l.__absoluteSub(t,e,r):l.__absoluteSub(e,t,!r):l.__absoluteAdd(t,e,r)}static leftShift(t,e){return e.length===0||t.length===0?t:e.sign?l.__rightShiftByAbsolute(t,e):l.__leftShiftByAbsolute(t,e)}static signedRightShift(t,e){return e.length===0||t.length===0?t:e.sign?l.__leftShiftByAbsolute(t,e):l.__rightShiftByAbsolute(t,e)}static unsignedRightShift(){throw new TypeError("BigInts have no unsigned right shift; use >> instead")}static lessThan(t,e){return 0>l.__compareToBigInt(t,e)}static lessThanOrEqual(t,e){return 0>=l.__compareToBigInt(t,e)}static greaterThan(t,e){return 0<l.__compareToBigInt(t,e)}static greaterThanOrEqual(t,e){return 0<=l.__compareToBigInt(t,e)}static equal(t,e){if(t.sign!==e.sign||t.length!==e.length)return!1;for(let r=0;r<t.length;r++)if(t.__digit(r)!==e.__digit(r))return!1;return!0}static notEqual(t,e){return!l.equal(t,e)}static bitwiseAnd(t,e){var r=Math.max;if(!t.sign&&!e.sign)return l.__absoluteAnd(t,e).__trim();if(t.sign&&e.sign){const o=r(t.length,e.length)+1;let i=l.__absoluteSubOne(t,o);const a=l.__absoluteSubOne(e);return i=l.__absoluteOr(i,a,i),l.__absoluteAddOne(i,!0,i).__trim()}return t.sign&&([t,e]=[e,t]),l.__absoluteAndNot(t,l.__absoluteSubOne(e)).__trim()}static bitwiseXor(t,e){var r=Math.max;if(!t.sign&&!e.sign)return l.__absoluteXor(t,e).__trim();if(t.sign&&e.sign){const a=r(t.length,e.length),s=l.__absoluteSubOne(t,a),c=l.__absoluteSubOne(e);return l.__absoluteXor(s,c,s).__trim()}const o=r(t.length,e.length)+1;t.sign&&([t,e]=[e,t]);let i=l.__absoluteSubOne(e,o);return i=l.__absoluteXor(i,t,i),l.__absoluteAddOne(i,!0,i).__trim()}static bitwiseOr(t,e){var r=Math.max;const o=r(t.length,e.length);if(!t.sign&&!e.sign)return l.__absoluteOr(t,e).__trim();if(t.sign&&e.sign){let a=l.__absoluteSubOne(t,o);const s=l.__absoluteSubOne(e);return a=l.__absoluteAnd(a,s,a),l.__absoluteAddOne(a,!0,a).__trim()}t.sign&&([t,e]=[e,t]);let i=l.__absoluteSubOne(e,o);return i=l.__absoluteAndNot(i,t,i),l.__absoluteAddOne(i,!0,i).__trim()}static asIntN(t,e){var r=Math.floor;if(e.length===0)return e;if(t=r(t),0>t)throw new RangeError("Invalid value: not (convertible to) a safe integer");if(t===0)return l.__zero();if(t>=l.__kMaxLengthBits)return e;const o=0|(t+29)/30;if(e.length<o)return e;const i=e.__unsignedDigit(o-1),a=1<<(t-1)%30;if(e.length===o&&i<a)return e;if((i&a)!==a)return l.__truncateToNBits(t,e);if(!e.sign)return l.__truncateAndSubFromPowerOfTwo(t,e,!0);if((i&a-1)==0){for(let s=o-2;0<=s;s--)if(e.__digit(s)!==0)return l.__truncateAndSubFromPowerOfTwo(t,e,!1);return e.length===o&&i===a?e:l.__truncateToNBits(t,e)}return l.__truncateAndSubFromPowerOfTwo(t,e,!1)}static asUintN(t,e){var r=Math.floor;if(e.length===0)return e;if(t=r(t),0>t)throw new RangeError("Invalid value: not (convertible to) a safe integer");if(t===0)return l.__zero();if(e.sign){if(t>l.__kMaxLengthBits)throw new RangeError("BigInt too big");return l.__truncateAndSubFromPowerOfTwo(t,e,!1)}if(t>=l.__kMaxLengthBits)return e;const o=0|(t+29)/30;if(e.length<o)return e;const i=t%30;return e.length==o&&(i===0||!(e.__digit(o-1)>>>i))?e:l.__truncateToNBits(t,e)}static ADD(t,e){if(t=l.__toPrimitive(t),e=l.__toPrimitive(e),typeof t=="string")return typeof e!="string"&&(e=e.toString()),t+e;if(typeof e=="string")return t.toString()+e;if(t=l.__toNumeric(t),e=l.__toNumeric(e),l.__isBigInt(t)&&l.__isBigInt(e))return l.add(t,e);if(typeof t=="number"&&typeof e=="number")return t+e;throw new TypeError("Cannot mix BigInt and other types, use explicit conversions")}static LT(t,e){return l.__compare(t,e,0)}static LE(t,e){return l.__compare(t,e,1)}static GT(t,e){return l.__compare(t,e,2)}static GE(t,e){return l.__compare(t,e,3)}static EQ(t,e){for(;;){if(l.__isBigInt(t))return l.__isBigInt(e)?l.equal(t,e):l.EQ(e,t);if(typeof t=="number"){if(l.__isBigInt(e))return l.__equalToNumber(e,t);if(typeof e!="object")return t==e;e=l.__toPrimitive(e)}else if(typeof t=="string"){if(l.__isBigInt(e))return t=l.__fromString(t),t!==null&&l.equal(t,e);if(typeof e!="object")return t==e;e=l.__toPrimitive(e)}else if(typeof t=="boolean"){if(l.__isBigInt(e))return l.__equalToNumber(e,+t);if(typeof e!="object")return t==e;e=l.__toPrimitive(e)}else if(typeof t=="symbol"){if(l.__isBigInt(e))return!1;if(typeof e!="object")return t==e;e=l.__toPrimitive(e)}else if(typeof t=="object"){if(typeof e=="object"&&e.constructor!==l)return t==e;t=l.__toPrimitive(t)}else return t==e}}static NE(t,e){return!l.EQ(t,e)}static DataViewGetBigInt64(t,e,r=!1){return l.asIntN(64,l.DataViewGetBigUint64(t,e,r))}static DataViewGetBigUint64(t,e,r=!1){const[o,i]=r?[4,0]:[0,4],a=t.getUint32(e+o,r),s=t.getUint32(e+i,r),c=new l(3,!1);return c.__setDigit(0,1073741823&s),c.__setDigit(1,(268435455&a)<<2|s>>>30),c.__setDigit(2,a>>>28),c.__trim()}static DataViewSetBigInt64(t,e,r,o=!1){l.DataViewSetBigUint64(t,e,r,o)}static DataViewSetBigUint64(t,e,r,o=!1){r=l.asUintN(64,r);let i=0,a=0;if(0<r.length&&(a=r.__digit(0),1<r.length)){const u=r.__digit(1);a|=u<<30,i=u>>>2,2<r.length&&(i|=r.__digit(2)<<28)}const[s,c]=o?[4,0]:[0,4];t.setUint32(e+s,i,o),t.setUint32(e+c,a,o)}static __zero(){return new l(0,!1)}static __oneDigit(t,e){const r=new l(1,e);return r.__setDigit(0,t),r}__copy(){const t=new l(this.length,this.sign);for(let e=0;e<this.length;e++)t[e]=this[e];return t}__trim(){let t=this.length,e=this[t-1];for(;e===0;)t--,e=this[t-1],this.pop();return t===0&&(this.sign=!1),this}__initializeDigits(){for(let t=0;t<this.length;t++)this[t]=0}static __decideRounding(t,e,r,o){if(0<e)return-1;let i;if(0>e)i=-e-1;else{if(r===0)return-1;r--,o=t.__digit(r),i=29}let a=1<<i;if((o&a)==0)return-1;if(a-=1,(o&a)!=0)return 1;for(;0<r;)if(r--,t.__digit(r)!==0)return 1;return 0}static __fromDouble(t){l.__kBitConversionDouble[0]=t;const e=2047&l.__kBitConversionInts[l.__kBitConversionIntHigh]>>>20,r=e-1023,o=(0|r/30)+1,i=new l(o,0>t);let a=1048575&l.__kBitConversionInts[l.__kBitConversionIntHigh]|1048576,s=l.__kBitConversionInts[l.__kBitConversionIntLow];const c=20,u=r%30;let d,m=0;if(u<20){const f=c-u;m=f+32,d=a>>>f,a=a<<32-f|s>>>f,s<<=32-f}else if(u===20)m=32,d=a,a=s,s=0;else{const f=u-c;m=32-f,d=a<<f|s>>>32-f,a=s<<f,s=0}i.__setDigit(o-1,d);for(let f=o-2;0<=f;f--)0<m?(m-=30,d=a>>>2,a=a<<30|s>>>2,s<<=30):d=0,i.__setDigit(f,d);return i.__trim()}static __isWhitespace(t){return 13>=t&&9<=t||(159>=t?t==32:131071>=t?t==160||t==5760:196607>=t?(t&=131071,10>=t||t==40||t==41||t==47||t==95||t==4096):t==65279)}static __fromString(t,e=0){let r=0;const o=t.length;let i=0;if(i===o)return l.__zero();let a=t.charCodeAt(i);for(;l.__isWhitespace(a);){if(++i===o)return l.__zero();a=t.charCodeAt(i)}if(a===43){if(++i===o)return null;a=t.charCodeAt(i),r=1}else if(a===45){if(++i===o)return null;a=t.charCodeAt(i),r=-1}if(e===0){if(e=10,a===48){if(++i===o)return l.__zero();if(a=t.charCodeAt(i),a===88||a===120){if(e=16,++i===o)return null;a=t.charCodeAt(i)}else if(a===79||a===111){if(e=8,++i===o)return null;a=t.charCodeAt(i)}else if(a===66||a===98){if(e=2,++i===o)return null;a=t.charCodeAt(i)}}}else if(e===16&&a===48){if(++i===o)return l.__zero();if(a=t.charCodeAt(i),a===88||a===120){if(++i===o)return null;a=t.charCodeAt(i)}}if(r!=0&&e!==10)return null;for(;a===48;){if(++i===o)return l.__zero();a=t.charCodeAt(i)}const s=o-i;let c=l.__kMaxBitsPerChar[e],u=l.__kBitsPerCharTableMultiplier-1;if(s>1073741824/c)return null;const d=c*s+u>>>l.__kBitsPerCharTableShift,m=new l(0|(d+29)/30,!1),f=10>e?e:10,g=10<e?e-10:0;if((e&e-1)==0){c>>=l.__kBitsPerCharTableShift;const y=[],p=[];let w=!1;do{let v=0,_=0;for(;;){let E;if(a-48>>>0<f)E=a-48;else if((32|a)-97>>>0<g)E=(32|a)-87;else{w=!0;break}if(_+=c,v=v<<c|E,++i===o){w=!0;break}if(a=t.charCodeAt(i),30<_+c)break}y.push(v),p.push(_)}while(!w);l.__fillFromParts(m,y,p)}else{m.__initializeDigits();let y=!1,p=0;do{let w=0,v=1;for(;;){let E;if(a-48>>>0<f)E=a-48;else if((32|a)-97>>>0<g)E=(32|a)-87;else{y=!0;break}const O=v*e;if(1073741823<O)break;if(v=O,w=w*e+E,p++,++i===o){y=!0;break}a=t.charCodeAt(i)}u=30*l.__kBitsPerCharTableMultiplier-1;const _=0|(c*p+u>>>l.__kBitsPerCharTableShift)/30;m.__inplaceMultiplyAdd(v,w,_)}while(!y)}if(i!==o){if(!l.__isWhitespace(a))return null;for(i++;i<o;i++)if(a=t.charCodeAt(i),!l.__isWhitespace(a))return null}return m.sign=r==-1,m.__trim()}static __fillFromParts(t,e,r){let o=0,i=0,a=0;for(let s=e.length-1;0<=s;s--){const c=e[s],u=r[s];i|=c<<a,a+=u,a===30?(t.__setDigit(o++,i),a=0,i=0):30<a&&(t.__setDigit(o++,1073741823&i),a-=30,i=c>>>u-a)}if(i!==0){if(o>=t.length)throw new Error("implementation bug");t.__setDigit(o++,i)}for(;o<t.length;o++)t.__setDigit(o,0)}static __toStringBasePowerOfTwo(t,e){const r=t.length;let o=e-1;o=(85&o>>>1)+(85&o),o=(51&o>>>2)+(51&o),o=(15&o>>>4)+(15&o);const i=o,a=e-1,s=t.__digit(r-1),c=l.__clz30(s);let u=0|(30*r-c+i-1)/i;if(t.sign&&u++,268435456<u)throw new Error("string too long");const d=Array(u);let m=u-1,f=0,g=0;for(let p=0;p<r-1;p++){const w=t.__digit(p),v=(f|w<<g)&a;d[m--]=l.__kConversionChars[v];const _=i-g;for(f=w>>>_,g=30-_;g>=i;)d[m--]=l.__kConversionChars[f&a],f>>>=i,g-=i}const y=(f|s<<g)&a;for(d[m--]=l.__kConversionChars[y],f=s>>>i-g;f!==0;)d[m--]=l.__kConversionChars[f&a],f>>>=i;if(t.sign&&(d[m--]="-"),m!=-1)throw new Error("implementation bug");return d.join("")}static __toStringGeneric(t,e,r){const o=t.length;if(o===0)return"";if(o===1){let p=t.__unsignedDigit(0).toString(e);return r===!1&&t.sign&&(p="-"+p),p}const i=30*o-l.__clz30(t.__digit(o-1)),a=l.__kMaxBitsPerChar[e],s=a-1;let c=i*l.__kBitsPerCharTableMultiplier;c+=s-1,c=0|c/s;const u=c+1>>1,d=l.exponentiate(l.__oneDigit(e,!1),l.__oneDigit(u,!1));let m,f;const g=d.__unsignedDigit(0);if(d.length===1&&32767>=g){m=new l(t.length,!1),m.__initializeDigits();let p=0;for(let w=2*t.length-1;0<=w;w--){const v=p<<15|t.__halfDigit(w);m.__setHalfDigit(w,0|v/g),p=0|v%g}f=p.toString(e)}else{const p=l.__absoluteDivLarge(t,d,!0,!0);m=p.quotient;const w=p.remainder.__trim();f=l.__toStringGeneric(w,e,!0)}m.__trim();let y=l.__toStringGeneric(m,e,!0);for(;f.length<u;)f="0"+f;return r===!1&&t.sign&&(y="-"+y),y+f}static __unequalSign(t){return t?-1:1}static __absoluteGreater(t){return t?-1:1}static __absoluteLess(t){return t?1:-1}static __compareToBigInt(t,e){const r=t.sign;if(r!==e.sign)return l.__unequalSign(r);const o=l.__absoluteCompare(t,e);return 0<o?l.__absoluteGreater(r):0>o?l.__absoluteLess(r):0}static __compareToNumber(t,e){if(l.__isOneDigitInt(e)){const r=t.sign,o=0>e;if(r!==o)return l.__unequalSign(r);if(t.length===0){if(o)throw new Error("implementation bug");return e===0?0:-1}if(1<t.length)return l.__absoluteGreater(r);const i=Math.abs(e),a=t.__unsignedDigit(0);return a>i?l.__absoluteGreater(r):a<i?l.__absoluteLess(r):0}return l.__compareToDouble(t,e)}static __compareToDouble(t,e){if(e!==e)return e;if(e===1/0)return-1;if(e===-1/0)return 1;const r=t.sign;if(r!==0>e)return l.__unequalSign(r);if(e===0)throw new Error("implementation bug: should be handled elsewhere");if(t.length===0)return-1;l.__kBitConversionDouble[0]=e;const o=2047&l.__kBitConversionInts[l.__kBitConversionIntHigh]>>>20;if(o==2047)throw new Error("implementation bug: handled elsewhere");const i=o-1023;if(0>i)return l.__absoluteGreater(r);const a=t.length;let s=t.__digit(a-1);const c=l.__clz30(s),u=30*a-c,d=i+1;if(u<d)return l.__absoluteLess(r);if(u>d)return l.__absoluteGreater(r);let m=1048576|1048575&l.__kBitConversionInts[l.__kBitConversionIntHigh],f=l.__kBitConversionInts[l.__kBitConversionIntLow];const g=20,y=29-c;if(y!==(0|(u-1)%30))throw new Error("implementation bug");let p,w=0;if(20>y){const v=g-y;w=v+32,p=m>>>v,m=m<<32-v|f>>>v,f<<=32-v}else if(y===20)w=32,p=m,m=f,f=0;else{const v=y-g;w=32-v,p=m<<v|f>>>32-v,m=f<<v,f=0}if(s>>>=0,p>>>=0,s>p)return l.__absoluteGreater(r);if(s<p)return l.__absoluteLess(r);for(let v=a-2;0<=v;v--){0<w?(w-=30,p=m>>>2,m=m<<30|f>>>2,f<<=30):p=0;const _=t.__unsignedDigit(v);if(_>p)return l.__absoluteGreater(r);if(_<p)return l.__absoluteLess(r)}if(m!==0||f!==0){if(w===0)throw new Error("implementation bug");return l.__absoluteLess(r)}return 0}static __equalToNumber(t,e){var r=Math.abs;return l.__isOneDigitInt(e)?e===0?t.length===0:t.length===1&&t.sign===0>e&&t.__unsignedDigit(0)===r(e):l.__compareToDouble(t,e)===0}static __comparisonResultToBool(t,e){return e===0?0>t:e===1?0>=t:e===2?0<t:e===3?0<=t:void 0}static __compare(t,e,r){if(t=l.__toPrimitive(t),e=l.__toPrimitive(e),typeof t=="string"&&typeof e=="string")switch(r){case 0:return t<e;case 1:return t<=e;case 2:return t>e;case 3:return t>=e}if(l.__isBigInt(t)&&typeof e=="string")return e=l.__fromString(e),e!==null&&l.__comparisonResultToBool(l.__compareToBigInt(t,e),r);if(typeof t=="string"&&l.__isBigInt(e))return t=l.__fromString(t),t!==null&&l.__comparisonResultToBool(l.__compareToBigInt(t,e),r);if(t=l.__toNumeric(t),e=l.__toNumeric(e),l.__isBigInt(t)){if(l.__isBigInt(e))return l.__comparisonResultToBool(l.__compareToBigInt(t,e),r);if(typeof e!="number")throw new Error("implementation bug");return l.__comparisonResultToBool(l.__compareToNumber(t,e),r)}if(typeof t!="number")throw new Error("implementation bug");if(l.__isBigInt(e))return l.__comparisonResultToBool(l.__compareToNumber(e,t),2^r);if(typeof e!="number")throw new Error("implementation bug");return r===0?t<e:r===1?t<=e:r===2?t>e:r===3?t>=e:void 0}__clzmsd(){return l.__clz30(this.__digit(this.length-1))}static __absoluteAdd(t,e,r){if(t.length<e.length)return l.__absoluteAdd(e,t,r);if(t.length===0)return t;if(e.length===0)return t.sign===r?t:l.unaryMinus(t);let o=t.length;(t.__clzmsd()===0||e.length===t.length&&e.__clzmsd()===0)&&o++;const i=new l(o,r);let a=0,s=0;for(;s<e.length;s++){const c=t.__digit(s)+e.__digit(s)+a;a=c>>>30,i.__setDigit(s,1073741823&c)}for(;s<t.length;s++){const c=t.__digit(s)+a;a=c>>>30,i.__setDigit(s,1073741823&c)}return s<i.length&&i.__setDigit(s,a),i.__trim()}static __absoluteSub(t,e,r){if(t.length===0)return t;if(e.length===0)return t.sign===r?t:l.unaryMinus(t);const o=new l(t.length,r);let i=0,a=0;for(;a<e.length;a++){const s=t.__digit(a)-e.__digit(a)-i;i=1&s>>>30,o.__setDigit(a,1073741823&s)}for(;a<t.length;a++){const s=t.__digit(a)-i;i=1&s>>>30,o.__setDigit(a,1073741823&s)}return o.__trim()}static __absoluteAddOne(t,e,r=null){const o=t.length;r===null?r=new l(o,e):r.sign=e;let i=1;for(let a=0;a<o;a++){const s=t.__digit(a)+i;i=s>>>30,r.__setDigit(a,1073741823&s)}return i!=0&&r.__setDigitGrow(o,1),r}static __absoluteSubOne(t,e){const r=t.length;e=e||r;const o=new l(e,!1);let i=1;for(let a=0;a<r;a++){const s=t.__digit(a)-i;i=1&s>>>30,o.__setDigit(a,1073741823&s)}if(i!=0)throw new Error("implementation bug");for(let a=r;a<e;a++)o.__setDigit(a,0);return o}static __absoluteAnd(t,e,r=null){let o=t.length,i=e.length,a=i;if(o<i){a=o;const u=t,d=o;t=e,o=i,e=u,i=d}let s=a;r===null?r=new l(s,!1):s=r.length;let c=0;for(;c<a;c++)r.__setDigit(c,t.__digit(c)&e.__digit(c));for(;c<s;c++)r.__setDigit(c,0);return r}static __absoluteAndNot(t,e,r=null){const o=t.length,i=e.length;let a=i;o<i&&(a=o);let s=o;r===null?r=new l(s,!1):s=r.length;let c=0;for(;c<a;c++)r.__setDigit(c,t.__digit(c)&~e.__digit(c));for(;c<o;c++)r.__setDigit(c,t.__digit(c));for(;c<s;c++)r.__setDigit(c,0);return r}static __absoluteOr(t,e,r=null){let o=t.length,i=e.length,a=i;if(o<i){a=o;const u=t,d=o;t=e,o=i,e=u,i=d}let s=o;r===null?r=new l(s,!1):s=r.length;let c=0;for(;c<a;c++)r.__setDigit(c,t.__digit(c)|e.__digit(c));for(;c<o;c++)r.__setDigit(c,t.__digit(c));for(;c<s;c++)r.__setDigit(c,0);return r}static __absoluteXor(t,e,r=null){let o=t.length,i=e.length,a=i;if(o<i){a=o;const u=t,d=o;t=e,o=i,e=u,i=d}let s=o;r===null?r=new l(s,!1):s=r.length;let c=0;for(;c<a;c++)r.__setDigit(c,t.__digit(c)^e.__digit(c));for(;c<o;c++)r.__setDigit(c,t.__digit(c));for(;c<s;c++)r.__setDigit(c,0);return r}static __absoluteCompare(t,e){const r=t.length-e.length;if(r!=0)return r;let o=t.length-1;for(;0<=o&&t.__digit(o)===e.__digit(o);)o--;return 0>o?0:t.__unsignedDigit(o)>e.__unsignedDigit(o)?1:-1}static __multiplyAccumulate(t,e,r,o){if(e===0)return;const i=32767&e,a=e>>>15;let s=0,c=0;for(let u,d=0;d<t.length;d++,o++){u=r.__digit(o);const m=t.__digit(d),f=32767&m,g=m>>>15,y=l.__imul(f,i),p=l.__imul(f,a),w=l.__imul(g,i),v=l.__imul(g,a);u+=c+y+s,s=u>>>30,u&=1073741823,u+=((32767&p)<<15)+((32767&w)<<15),s+=u>>>30,c=v+(p>>>15)+(w>>>15),r.__setDigit(o,1073741823&u)}for(;s!=0||c!==0;o++){let u=r.__digit(o);u+=s+c,c=0,s=u>>>30,r.__setDigit(o,1073741823&u)}}static __internalMultiplyAdd(t,e,r,o,i){let a=r,s=0;for(let c=0;c<o;c++){const u=t.__digit(c),d=l.__imul(32767&u,e),m=l.__imul(u>>>15,e),f=d+((32767&m)<<15)+s+a;a=f>>>30,s=m>>>15,i.__setDigit(c,1073741823&f)}if(i.length>o)for(i.__setDigit(o++,a+s);o<i.length;)i.__setDigit(o++,0);else if(a+s!==0)throw new Error("implementation bug")}__inplaceMultiplyAdd(t,e,r){r>this.length&&(r=this.length);const o=32767&t,i=t>>>15;let a=0,s=e;for(let c=0;c<r;c++){const u=this.__digit(c),d=32767&u,m=u>>>15,f=l.__imul(d,o),g=l.__imul(d,i),y=l.__imul(m,o),p=l.__imul(m,i);let w=s+f+a;a=w>>>30,w&=1073741823,w+=((32767&g)<<15)+((32767&y)<<15),a+=w>>>30,s=p+(g>>>15)+(y>>>15),this.__setDigit(c,1073741823&w)}if(a!=0||s!==0)throw new Error("implementation bug")}static __absoluteDivSmall(t,e,r=null){r===null&&(r=new l(t.length,!1));let o=0;for(let i,a=2*t.length-1;0<=a;a-=2){i=(o<<15|t.__halfDigit(a))>>>0;const s=0|i/e;o=0|i%e,i=(o<<15|t.__halfDigit(a-1))>>>0;const c=0|i/e;o=0|i%e,r.__setDigit(a>>>1,s<<15|c)}return r}static __absoluteModSmall(t,e){let r=0;for(let o=2*t.length-1;0<=o;o--)r=0|((r<<15|t.__halfDigit(o))>>>0)%e;return r}static __absoluteDivLarge(t,e,r,o){const i=e.__halfDigitLength(),a=e.length,s=t.__halfDigitLength()-i;let c=null;r&&(c=new l(s+2>>>1,!1),c.__initializeDigits());const u=new l(i+2>>>1,!1);u.__initializeDigits();const d=l.__clz15(e.__halfDigit(i-1));0<d&&(e=l.__specialLeftShift(e,d,0));const m=l.__specialLeftShift(t,d,1),f=e.__halfDigit(i-1);let g=0;for(let y,p=s;0<=p;p--){y=32767;const w=m.__halfDigit(p+i);if(w!==f){const _=(w<<15|m.__halfDigit(p+i-1))>>>0;y=0|_/f;let E=0|_%f;const O=e.__halfDigit(i-2),R=m.__halfDigit(p+i-2);for(;l.__imul(y,O)>>>0>(E<<16|R)>>>0&&(y--,E+=f,!(32767<E)););}l.__internalMultiplyAdd(e,y,0,a,u);let v=m.__inplaceSub(u,p,i+1);v!==0&&(v=m.__inplaceAdd(e,p,i),m.__setHalfDigit(p+i,32767&m.__halfDigit(p+i)+v),y--),r&&(1&p?g=y<<15:c.__setDigit(p>>>1,g|y))}if(o)return m.__inplaceRightShift(d),r?{quotient:c,remainder:m}:m;if(r)return c;throw new Error("unreachable")}static __clz15(t){return l.__clz30(t)-15}__inplaceAdd(t,e,r){let o=0;for(let i=0;i<r;i++){const a=this.__halfDigit(e+i)+t.__halfDigit(i)+o;o=a>>>15,this.__setHalfDigit(e+i,32767&a)}return o}__inplaceSub(t,e,r){let o=0;if(1&e){e>>=1;let i=this.__digit(e),a=32767&i,s=0;for(;s<r-1>>>1;s++){const d=t.__digit(s),m=(i>>>15)-(32767&d)-o;o=1&m>>>15,this.__setDigit(e+s,(32767&m)<<15|32767&a),i=this.__digit(e+s+1),a=(32767&i)-(d>>>15)-o,o=1&a>>>15}const c=t.__digit(s),u=(i>>>15)-(32767&c)-o;if(o=1&u>>>15,this.__setDigit(e+s,(32767&u)<<15|32767&a),e+s+1>=this.length)throw new RangeError("out of bounds");(1&r)==0&&(i=this.__digit(e+s+1),a=(32767&i)-(c>>>15)-o,o=1&a>>>15,this.__setDigit(e+t.length,1073709056&i|32767&a))}else{e>>=1;let i=0;for(;i<t.length-1;i++){const d=this.__digit(e+i),m=t.__digit(i),f=(32767&d)-(32767&m)-o;o=1&f>>>15;const g=(d>>>15)-(m>>>15)-o;o=1&g>>>15,this.__setDigit(e+i,(32767&g)<<15|32767&f)}const a=this.__digit(e+i),s=t.__digit(i),c=(32767&a)-(32767&s)-o;o=1&c>>>15;let u=0;(1&r)==0&&(u=(a>>>15)-(s>>>15)-o,o=1&u>>>15),this.__setDigit(e+i,(32767&u)<<15|32767&c)}return o}__inplaceRightShift(t){if(t===0)return;let e=this.__digit(0)>>>t;const r=this.length-1;for(let o=0;o<r;o++){const i=this.__digit(o+1);this.__setDigit(o,1073741823&i<<30-t|e),e=i>>>t}this.__setDigit(r,e)}static __specialLeftShift(t,e,r){const o=t.length,i=new l(o+r,!1);if(e===0){for(let s=0;s<o;s++)i.__setDigit(s,t.__digit(s));return 0<r&&i.__setDigit(o,0),i}let a=0;for(let s=0;s<o;s++){const c=t.__digit(s);i.__setDigit(s,1073741823&c<<e|a),a=c>>>30-e}return 0<r&&i.__setDigit(o,a),i}static __leftShiftByAbsolute(t,e){const r=l.__toShiftAmount(e);if(0>r)throw new RangeError("BigInt too big");const o=0|r/30,i=r%30,a=t.length,s=i!==0&&t.__digit(a-1)>>>30-i!=0,c=a+o+(s?1:0),u=new l(c,t.sign);if(i===0){let d=0;for(;d<o;d++)u.__setDigit(d,0);for(;d<c;d++)u.__setDigit(d,t.__digit(d-o))}else{let d=0;for(let m=0;m<o;m++)u.__setDigit(m,0);for(let m=0;m<a;m++){const f=t.__digit(m);u.__setDigit(m+o,1073741823&f<<i|d),d=f>>>30-i}if(s)u.__setDigit(a+o,d);else if(d!==0)throw new Error("implementation bug")}return u.__trim()}static __rightShiftByAbsolute(t,e){const r=t.length,o=t.sign,i=l.__toShiftAmount(e);if(0>i)return l.__rightShiftByMaximum(o);const a=0|i/30,s=i%30;let c=r-a;if(0>=c)return l.__rightShiftByMaximum(o);let u=!1;if(o){if((t.__digit(a)&(1<<s)-1)!=0)u=!0;else for(let m=0;m<a;m++)if(t.__digit(m)!==0){u=!0;break}}u&&s===0&&~t.__digit(r-1)==0&&c++;let d=new l(c,o);if(s===0){d.__setDigit(c-1,0);for(let m=a;m<r;m++)d.__setDigit(m-a,t.__digit(m))}else{let m=t.__digit(a)>>>s;const f=r-a-1;for(let g=0;g<f;g++){const y=t.__digit(g+a+1);d.__setDigit(g,1073741823&y<<30-s|m),m=y>>>s}d.__setDigit(f,m)}return u&&(d=l.__absoluteAddOne(d,!0,d)),d.__trim()}static __rightShiftByMaximum(t){return t?l.__oneDigit(1,!0):l.__zero()}static __toShiftAmount(t){if(1<t.length)return-1;const e=t.__unsignedDigit(0);return e>l.__kMaxLengthBits?-1:e}static __toPrimitive(t,e="default"){if(typeof t!="object"||t.constructor===l)return t;if(typeof Symbol<"u"&&typeof Symbol.toPrimitive=="symbol"&&t[Symbol.toPrimitive]){const i=t[Symbol.toPrimitive](e);if(typeof i!="object")return i;throw new TypeError("Cannot convert object to primitive value")}const r=t.valueOf;if(r){const i=r.call(t);if(typeof i!="object")return i}const o=t.toString;if(o){const i=o.call(t);if(typeof i!="object")return i}throw new TypeError("Cannot convert object to primitive value")}static __toNumeric(t){return l.__isBigInt(t)?t:+t}static __isBigInt(t){return typeof t=="object"&&t!==null&&t.constructor===l}static __truncateToNBits(t,e){const r=0|(t+29)/30,o=new l(r,e.sign),i=r-1;for(let s=0;s<i;s++)o.__setDigit(s,e.__digit(s));let a=e.__digit(i);if(t%30!=0){const s=32-t%30;a=a<<s>>>s}return o.__setDigit(i,a),o.__trim()}static __truncateAndSubFromPowerOfTwo(t,e,r){var o=Math.min;const i=0|(t+29)/30,a=new l(i,r);let s=0;const c=i-1;let u=0;for(const g=o(c,e.length);s<g;s++){const y=0-e.__digit(s)-u;u=1&y>>>30,a.__setDigit(s,1073741823&y)}for(;s<c;s++)a.__setDigit(s,0|1073741823&-u);let d=c<e.length?e.__digit(c):0;const m=t%30;let f;if(m==0)f=0-d-u,f&=1073741823;else{const g=32-m;d=d<<g>>>g;const y=1<<32-g;f=y-d-u,f&=y-1}return a.__setDigit(c,f),a.__trim()}__digit(t){return this[t]}__unsignedDigit(t){return this[t]>>>0}__setDigit(t,e){this[t]=0|e}__setDigitGrow(t,e){this[t]=0|e}__halfDigitLength(){const t=this.length;return 32767>=this.__unsignedDigit(t-1)?2*t-1:2*t}__halfDigit(t){return 32767&this[t>>>1]>>>15*(1&t)}__setHalfDigit(t,e){const r=t>>>1,o=this.__digit(r),i=1&t?32767&o|e<<15:1073709056&o|32767&e;this.__setDigit(r,i)}static __digitPow(t,e){let r=1;for(;0<e;)1&e&&(r*=t),e>>>=1,t*=t;return r}static __detectBigEndian(){return l.__kBitConversionDouble[0]=-0,l.__kBitConversionInts[0]!==0}static __isOneDigitInt(t){return(1073741823&t)===t}}l.__kMaxLength=33554432,l.__kMaxLengthBits=l.__kMaxLength<<5,l.__kMaxBitsPerChar=[0,0,32,51,64,75,83,90,96,102,107,111,115,119,122,126,128,131,134,136,139,141,143,145,147,149,151,153,154,156,158,159,160,162,163,165,166],l.__kBitsPerCharTableShift=5,l.__kBitsPerCharTableMultiplier=1<<l.__kBitsPerCharTableShift,l.__kConversionChars=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"],l.__kBitConversionBuffer=new ArrayBuffer(8),l.__kBitConversionDouble=new Float64Array(l.__kBitConversionBuffer),l.__kBitConversionInts=new Int32Array(l.__kBitConversionBuffer),l.__kBitConversionIntHigh=l.__detectBigEndian()?0:1,l.__kBitConversionIntLow=l.__detectBigEndian()?1:0,l.__clz30=Math.clz32?function(n){return Math.clz32(n)-2}:function(n){return n===0?30:0|29-(0|Math.log(n>>>0)/Math.LN2)},l.__imul=Math.imul||function(n,t){return 0|n*t};const Nt=l.BigInt(0),On=l.BigInt(1),Br=l.BigInt(2),sa=l.BigInt(10),ca=l.BigInt(24),ua=l.BigInt(60),la=l.BigInt(1e3),Pn=l.BigInt(1e6),Dn=l.BigInt(1e9),ti=l.multiply(l.BigInt(3600),Dn),ha=l.multiply(ua,Dn),ve=l.multiply(ti,ca);function ne(n){return typeof n=="bigint"?l.BigInt(n.toString(10)):n}function ei(n){return l.equal(l.remainder(n,Br),Nt)}function Ce(n){return l.lessThan(n,Nt)?l.unaryMinus(n):n}function er(n,t){return l.lessThan(n,t)?-1:l.greaterThan(n,t)?1:0}function mn(n,t){return{quotient:l.divide(n,t),remainder:l.remainder(n,t)}}var wo,bo;const T="slot-epochNanoSeconds",C="slot-iso-date",A="slot-iso-date-time",Z="slot-time",D="slot-calendar",ni="slot-date-brand",ri="slot-year-month-brand",oi="slot-month-day-brand",j="slot-time-zone",ut="slot-years",lt="slot-months",Mt="slot-weeks",ht="slot-days",dt="slot-hours",mt="slot-minutes",ft="slot-seconds",gt="slot-milliseconds",yt="slot-microseconds",Tt="slot-nanoseconds",ii="date",ai="ym",si="md",ci="time",ui="datetime",li="instant",Ie="original",He="timezone-canonical",Nr="timezone-original",fn="calendar-id",hi="locale",Lr="options",di=new WeakMap,xr=Symbol.for("@@Temporal__GetSlots");(wo=globalThis)[xr]||(wo[xr]=function(n){return di.get(n)});const mr=globalThis[xr],jr=Symbol.for("@@Temporal__CreateSlots");(bo=globalThis)[jr]||(bo[jr]=function(n){di.set(n,Object.create(null))});const de=globalThis[jr];function Dt(n,...t){if(!n||typeof n!="object")return!1;const e=mr(n);return!!e&&t.every(r=>r in e)}function h(n,t){var r;const e=(r=mr(n))==null?void 0:r[t];if(e===void 0)throw new TypeError(`Missing internal slot ${t}`);return e}function k(n,t,e){const r=mr(n);if(r===void 0)throw new TypeError("Missing slots for the given container");if(r[t])throw new TypeError(`${t} already has set`);r[t]=e}const Ir={};function me(n,t){Object.defineProperty(n.prototype,Symbol.toStringTag,{value:t,writable:!1,enumerable:!1,configurable:!0});const e=Object.getOwnPropertyNames(n);for(let o=0;o<e.length;o++){const i=e[o],a=Object.getOwnPropertyDescriptor(n,i);a.configurable&&a.enumerable&&(a.enumerable=!1,Object.defineProperty(n,i,a))}const r=Object.getOwnPropertyNames(n.prototype);for(let o=0;o<r.length;o++){const i=r[o],a=Object.getOwnPropertyDescriptor(n.prototype,i);a.configurable&&a.enumerable&&(a.enumerable=!1,Object.defineProperty(n.prototype,i,a))}Pr(t,n),Pr(`${t}.prototype`,n.prototype)}function Pr(n,t){const e=`%${n}%`;if(Ir[e]!==void 0)throw new Error(`intrinsic ${n} already exists`);Ir[e]=t}function et(n){return Ir[n]}function Ge(n,t){let e=n;if(e===0)return{div:e,mod:e};const r=Math.sign(e);e=Math.abs(e);const o=Math.trunc(1+Math.log10(e));if(t>=o)return{div:0*r,mod:r*e};if(t===0)return{div:r*e,mod:0*r};const i=e.toPrecision(o);return{div:r*Number.parseInt(i.slice(0,o-t),10),mod:r*Number.parseInt(i.slice(o-t),10)}}function Or(n,t,e){let r=n,o=e;if(r===0)return o;const i=Math.sign(r)||Math.sign(o);r=Math.abs(r),o=Math.abs(o);const a=r.toPrecision(Math.trunc(1+Math.log10(r)));if(o===0)return i*Number.parseInt(a+"0".repeat(t),10);const s=a+o.toPrecision(Math.trunc(1+Math.log10(o))).padStart(t,"0");return i*Number.parseInt(s,10)}function fr(n,t){const e=t==="negative";switch(n){case"ceil":return e?"zero":"infinity";case"floor":return e?"infinity":"zero";case"expand":return"infinity";case"trunc":return"zero";case"halfCeil":return e?"half-zero":"half-infinity";case"halfFloor":return e?"half-infinity":"half-zero";case"halfExpand":return"half-infinity";case"halfTrunc":return"half-zero";case"halfEven":return"half-even"}}function gr(n,t,e,r,o){return o==="zero"?n:o==="infinity"?t:e<0?n:e>0?t:o==="half-zero"?n:o==="half-infinity"?t:r?n:t}class N{constructor(t){this.totalNs=ne(t),this.sec=l.toNumber(l.divide(this.totalNs,Dn)),this.subsec=l.toNumber(l.remainder(this.totalNs,Dn))}static validateNew(t,e){if(l.greaterThan(Ce(t),N.MAX))throw new RangeError(`${e} of duration time units cannot exceed ${N.MAX} s`);return new N(t)}static fromEpochNsDiff(t,e){const r=l.subtract(ne(t),ne(e));return new N(r)}static fromComponents(t,e,r,o,i,a){const s=l.add(l.add(l.add(l.add(l.add(l.BigInt(a),l.multiply(l.BigInt(i),la)),l.multiply(l.BigInt(o),Pn)),l.multiply(l.BigInt(r),Dn)),l.multiply(l.BigInt(e),ha)),l.multiply(l.BigInt(t),ti));return N.validateNew(s,"total")}abs(){return new N(Ce(this.totalNs))}add(t){return N.validateNew(l.add(this.totalNs,t.totalNs),"sum")}add24HourDays(t){return N.validateNew(l.add(this.totalNs,l.multiply(l.BigInt(t),ve)),"sum")}addToEpochNs(t){return l.add(ne(t),this.totalNs)}cmp(t){return er(this.totalNs,t.totalNs)}divmod(t){const{quotient:e,remainder:r}=mn(this.totalNs,l.BigInt(t));return{quotient:l.toNumber(e),remainder:new N(r)}}fdiv(t){const e=ne(t),r=l.BigInt(e);let{quotient:o,remainder:i}=mn(this.totalNs,r);const a=[];let s;const c=(l.lessThan(this.totalNs,Nt)?-1:1)*Math.sign(l.toNumber(e));for(;!l.equal(i,Nt)&&a.length<50;)i=l.multiply(i,sa),{quotient:s,remainder:i}=mn(i,r),a.push(Math.abs(l.toNumber(s)));return c*+(Ce(o).toString()+"."+a.join(""))}isZero(){return l.equal(this.totalNs,Nt)}round(t,e){const r=ne(t);if(l.equal(r,On))return this;const{quotient:o,remainder:i}=mn(this.totalNs,r),a=l.lessThan(this.totalNs,Nt)?"negative":"positive",s=l.multiply(Ce(o),r),c=l.add(s,r),u=er(Ce(l.multiply(i,Br)),r),d=fr(e,a),m=l.equal(Ce(this.totalNs),s)?s:gr(s,c,u,ei(o),d),f=a==="positive"?m:l.unaryMinus(m);return N.validateNew(f,"rounding")}sign(){return this.cmp(new N(Nt))}subtract(t){return N.validateNew(l.subtract(this.totalNs,t.totalNs),"difference")}}N.MAX=l.BigInt("9007199254740991999999999"),N.ZERO=new N(Nt);const vo=/[A-Za-z._][A-Za-z._0-9+-]*/,An=new RegExp(`(?:${/(?:[+-](?:[01][0-9]|2[0-3])(?::?[0-5][0-9])?)/.source}|(?:${vo.source})(?:\\/(?:${vo.source}))*)`),mi=/(?:[+-]\d{6}|\d{4})/,nr=/(?:0[1-9]|1[0-2])/,Ar=/(?:0[1-9]|[12]\d|3[01])/,da=new RegExp(`(${mi.source})(?:-(${nr.source})-(${Ar.source})|(${nr.source})(${Ar.source}))`),fi=/(\d{2})(?::(\d{2})(?::(\d{2})(?:[.,](\d{1,9}))?)?|(\d{2})(?:(\d{2})(?:[.,](\d{1,9}))?)?)?/,gi=/((?:[+-])(?:[01][0-9]|2[0-3])(?::?(?:[0-5][0-9])(?::?(?:[0-5][0-9])(?:[.,](?:\d{1,9}))?)?)?)/,yi=new RegExp(`([zZ])|${gi.source}?`),Ke=/\[(!)?([a-z_][a-z0-9_-]*)=([A-Za-z0-9]+(?:-[A-Za-z0-9]+)*)\]/g,ma=new RegExp([`^${da.source}`,`(?:(?:[tT]|\\s+)${fi.source}(?:${yi.source})?)?`,`(?:\\[!?(${An.source})\\])?`,`((?:${Ke.source})*)$`].join("")),fa=new RegExp([`^[tT]?${fi.source}`,`(?:${yi.source})?`,`(?:\\[!?${An.source}\\])?`,`((?:${Ke.source})*)$`].join("")),ga=new RegExp(`^(${mi.source})-?(${nr.source})(?:\\[!?${An.source}\\])?((?:${Ke.source})*)$`),ya=new RegExp(`^(?:--)?(${nr.source})-?(${Ar.source})(?:\\[!?${An.source}\\])?((?:${Ke.source})*)$`),$r=/(\d+)(?:[.,](\d{1,9}))?/,pa=new RegExp(`(?:${$r.source}H)?(?:${$r.source}M)?(?:${$r.source}S)?`),wa=new RegExp(`^([+-])?P${/(?:(\d+)Y)?(?:(\d+)M)?(?:(\d+)W)?(?:(\d+)D)?/.source}(?:T(?!$)${pa.source})?$`,"i"),De=864e5,rr=1e6*De,ba=6e10,pi=1e8*De,Qe=Xt(pi),$n=l.unaryMinus(Qe),va=l.add(l.subtract($n,ve),On),Da=l.subtract(l.add(Qe,ve),On),_a=146097*De,Do=-271821,_o=275760,_n=Date.UTC(1847,0,1),Ea=["iso8601","hebrew","islamic","islamic-umalqura","islamic-tbla","islamic-civil","islamic-rgsa","islamicc","persian","ethiopic","ethioaa","ethiopic-amete-alem","coptic","chinese","dangi","roc","indian","buddhist","japanese","gregory"],Ma=new Set(["ACT","AET","AGT","ART","AST","BET","BST","CAT","CNT","CST","CTT","EAT","ECT","IET","IST","JST","MIT","NET","NST","PLT","PNT","PRT","PST","SST","VST"]);function q(n){return typeof n=="object"&&n!==null||typeof n=="function"}function yr(n){if(typeof n=="bigint")throw new TypeError("Cannot convert BigInt to number");return Number(n)}function pr(n){if(typeof n=="symbol")throw new TypeError("Cannot convert a Symbol value to a String");return String(n)}function $(n){const t=yr(n);if(t===0)return 0;if(Number.isNaN(t)||t===1/0||t===-1/0)throw new RangeError("invalid number value");const e=Math.trunc(t);return e===0?0:e}function Eo(n,t){const e=$(n);if(e<=0)throw t!==void 0?new RangeError(`property '${t}' cannot be a a number less than one`):new RangeError("Cannot convert a number less than one to a positive integer");return e}function Zt(n){const t=yr(n);if(Number.isNaN(t))throw new RangeError("not a number");if(t===1/0||t===-1/0)throw new RangeError("infinity is out of range");if(!function(e){if(typeof e!="number"||Number.isNaN(e)||e===1/0||e===-1/0)return!1;const r=Math.abs(e);return Math.floor(r)===r}(t))throw new RangeError(`unsupported fractional value ${n}`);return t===0?0:t}function Rn(n,t){return String(n).padStart(t,"0")}function V(n){if(typeof n!="string")throw new TypeError(`expected a string, not ${String(n)}`);return n}function Ur(n,t){if(q(n)){const e=n==null?void 0:n.toString();if(typeof e=="string"||typeof e=="number")return e;throw new TypeError("Cannot convert object to primitive value")}return n}const zr=["era","eraYear","year","month","monthCode","day","hour","minute","second","millisecond","microsecond","nanosecond","offset","timeZone"],Ta={era:pr,eraYear:$,year:$,month:Eo,monthCode:function(n){const t=V(Ur(n));if(t.length<3||t.length>4||t[0]!=="M"||"0123456789".indexOf(t[1])===-1||"0123456789".indexOf(t[2])===-1||t[1]+t[2]==="00"&&t[3]!=="L"||t[3]!=="L"&&t[3]!==void 0)throw new RangeError(`bad month code ${t}; must match M01-M99 or M00L-M99L`);return t},day:Eo,hour:$,minute:$,second:$,millisecond:$,microsecond:$,nanosecond:$,offset:function(n){const t=V(Ur(n));return cn(t),t},timeZone:bt},Ca={hour:0,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0},Be=[["years","year","date"],["months","month","date"],["weeks","week","date"],["days","day","date"],["hours","hour","time"],["minutes","minute","time"],["seconds","second","time"],["milliseconds","millisecond","time"],["microseconds","microsecond","time"],["nanoseconds","nanosecond","time"]],Mo=Object.fromEntries(Be.map(n=>[n[0],n[1]])),Oa=Object.fromEntries(Be.map(([n,t])=>[t,n])),En=Be.map(([,n])=>n),Je={day:rr,hour:36e11,minute:6e10,second:1e9,millisecond:1e6,microsecond:1e3,nanosecond:1},or=["days","hours","microseconds","milliseconds","minutes","months","nanoseconds","seconds","weeks","years"],$a=Intl.DateTimeFormat,To=new Map;function wi(n){const t=xn(n);let e=To.get(t);return e===void 0&&(e=new $a("en-us",{timeZone:t,hour12:!1,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),To.set(t,e)),e}function B(n){return Dt(n,T)&&!Dt(n,j,D)}function z(n){return Dt(n,ut,lt,ht,dt,mt,ft,gt,yt,Tt)}function F(n){return Dt(n,ni)}function H(n){return Dt(n,Z)}function I(n){return Dt(n,A)}function J(n){return Dt(n,ri)}function Yt(n){return Dt(n,oi)}function Y(n){return Dt(n,T,j,D)}function b(n,t){if(!t(n))throw new TypeError("invalid receiver: method called with the wrong type of this-object")}function on(n){if(Dt(n,D)||Dt(n,j))throw new TypeError("with() does not support a calendar or timeZone property");if(H(n))throw new TypeError("with() does not accept Temporal.PlainTime, use withPlainTime() instead");if(n.calendar!==void 0)throw new TypeError("with() does not support a calendar property");if(n.timeZone!==void 0)throw new TypeError("with() does not support a timeZone property")}function Un(n,t){return t==="never"||t==="auto"&&n==="iso8601"?"":`[${t==="critical"?"!":""}u-ca=${n}]`}function wr(n){let t,e,r=!1;for(Ke.lastIndex=0;e=Ke.exec(n);){const{1:o,2:i,3:a}=e;if(i==="u-ca"){if(t===void 0)t=a,r=o==="!";else if(o==="!"||r)throw new RangeError(`Invalid annotations in ${n}: more than one u-ca present with critical flag`)}else if(o==="!")throw new RangeError(`Unrecognized annotation: !${i}=${a}`)}return t}function te(n){const t=ma.exec(n);if(!t)throw new RangeError(`invalid RFC 9557 string: ${n}`);const e=wr(t[16]);let r=t[1];if(r==="-000000")throw new RangeError(`invalid RFC 9557 string: ${n}`);const o=+r,i=+(t[2]??t[4]??1),a=+(t[3]??t[5]??1),s=t[6]!==void 0,c=+(t[6]??0),u=+(t[7]??t[10]??0);let d=+(t[8]??t[11]??0);d===60&&(d=59);const m=(t[9]??t[12]??"")+"000000000",f=+m.slice(0,3),g=+m.slice(3,6),y=+m.slice(6,9);let p,w=!1;t[13]?(p=void 0,w=!0):t[14]&&(p=t[14]);const v=t[15];return oo(o,i,a,c,u,d,f,g,y),{year:o,month:i,day:a,time:s?{hour:c,minute:u,second:d,millisecond:f,microsecond:g,nanosecond:y}:"start-of-day",tzAnnotation:v,offset:p,z:w,calendar:e}}function bi(n){const t=fa.exec(n);let e,r,o,i,a,s,c;if(t){c=wr(t[10]),e=+(t[1]??0),r=+(t[2]??t[5]??0),o=+(t[3]??t[6]??0),o===60&&(o=59);const u=(t[4]??t[7]??"")+"000000000";if(i=+u.slice(0,3),a=+u.slice(3,6),s=+u.slice(6,9),t[8])throw new RangeError("Z designator not supported for PlainTime")}else{let u,d;if({time:u,z:d,calendar:c}=te(n),u==="start-of-day")throw new RangeError(`time is missing in string: ${n}`);if(d)throw new RangeError("Z designator not supported for PlainTime");({hour:e,minute:r,second:o,millisecond:i,microsecond:a,nanosecond:s}=u)}if(_r(e,r,o,i,a,s),/[tT ][0-9][0-9]/.test(n))return{hour:e,minute:r,second:o,millisecond:i,microsecond:a,nanosecond:s,calendar:c};try{const{month:u,day:d}=to(n);Ye(1972,u,d)}catch{try{const{year:u,month:d}=Jr(n);Ye(u,d,1)}catch{return{hour:e,minute:r,second:o,millisecond:i,microsecond:a,nanosecond:s,calendar:c}}}throw new RangeError(`invalid RFC 9557 time-only string ${n}; may need a T prefix`)}function Jr(n){const t=ga.exec(n);let e,r,o,i;if(t){o=wr(t[3]);let a=t[1];if(a==="-000000")throw new RangeError(`invalid RFC 9557 string: ${n}`);if(e=+a,r=+t[2],i=1,o!==void 0&&o!=="iso8601")throw new RangeError("YYYY-MM format is only valid with iso8601 calendar")}else{let a;if({year:e,month:r,calendar:o,day:i,z:a}=te(n),a)throw new RangeError("Z designator not supported for PlainYearMonth")}return{year:e,month:r,calendar:o,referenceISODay:i}}function to(n){const t=ya.exec(n);let e,r,o,i;if(t){if(o=wr(t[3]),e=+t[1],r=+t[2],o!==void 0&&o!=="iso8601")throw new RangeError("MM-DD format is only valid with iso8601 calendar")}else{let a;if({month:e,day:r,calendar:o,year:i,z:a}=te(n),a)throw new RangeError("Z designator not supported for PlainMonthDay")}return{month:e,day:r,calendar:o,referenceISOYear:i}}const vi=new RegExp(`^${An.source}$`,"i"),Di=new RegExp(`^${/([+-])([01][0-9]|2[0-3])(?::?([0-5][0-9])?)?/.source}$`);function _i(n){const t=ka.test(n)?"Seconds not allowed in offset time zone":"Invalid time zone";throw new RangeError(`${t}: ${n}`)}function be(n){return vi.test(n)||_i(n),Di.test(n)?{offsetMinutes:cn(n)/6e10}:{tzName:n}}function Mn(n,t,e,r){let o=n,i=t,a=e;switch(r){case"reject":Ye(o,i,a);break;case"constrain":({year:o,month:i,day:a}=Ui(o,i,a))}return{year:o,month:i,day:a}}function br(n,t,e,r,o,i,a){let s=n,c=t,u=e,d=r,m=o,f=i;switch(a){case"reject":_r(s,c,u,d,m,f);break;case"constrain":s=pt(s,0,23),c=pt(c,0,59),u=pt(u,0,59),d=pt(d,0,999),m=pt(m,0,999),f=pt(f,0,999)}return{hour:s,minute:c,second:u,millisecond:d,microsecond:m,nanosecond:f}}function Ei(n){if(!q(n))throw new TypeError("invalid duration-like");const t={years:void 0,months:void 0,weeks:void 0,days:void 0,hours:void 0,minutes:void 0,seconds:void 0,milliseconds:void 0,microseconds:void 0,nanoseconds:void 0};let e=!1;for(let r=0;r<or.length;r++){const o=or[r],i=n[o];i!==void 0&&(e=!0,t[o]=Zt(i))}if(!e)throw new TypeError("invalid duration-like");return t}function rt({years:n,months:t,weeks:e,days:r},o,i,a){return{years:n,months:a??t,weeks:i??e,days:o??r}}function x(n,t){return{isoDate:n,time:t}}function L(n){return ue(n,"overflow",["constrain","reject"],"constrain")}function Tn(n){return ue(n,"disambiguation",["compatible","earlier","later","reject"],"compatible")}function qt(n,t){return ue(n,"roundingMode",["ceil","floor","expand","trunc","halfCeil","halfFloor","halfExpand","halfTrunc","halfEven"],t)}function tr(n,t){return ue(n,"offset",["prefer","use","ignore","reject"],t)}function zn(n){return ue(n,"calendarName",["auto","always","never","critical"],"auto")}function an(n){let t=n.roundingIncrement;if(t===void 0)return 1;const e=$(t);if(e<1||e>1e9)throw new RangeError(`roundingIncrement must be at least 1 and at most 1e9, not ${t}`);return e}function sn(n,t,e){const r=e?t:t-1;if(n>r)throw new RangeError(`roundingIncrement must be at least 1 and less than ${r}, not ${n}`);if(t%n!=0)throw new RangeError(`Rounding increment must divide evenly into ${t}`)}function Fn(n){const t=n.fractionalSecondDigits;if(t===void 0)return"auto";if(typeof t!="number"){if(pr(t)!=="auto")throw new RangeError(`fractionalSecondDigits must be 'auto' or 0 through 9, not ${t}`);return"auto"}const e=Math.floor(t);if(!Number.isFinite(e)||e<0||e>9)throw new RangeError(`fractionalSecondDigits must be 'auto' or 0 through 9, not ${t}`);return e}function Zn(n,t){switch(n){case"minute":return{precision:"minute",unit:"minute",increment:1};case"second":return{precision:0,unit:"second",increment:1};case"millisecond":return{precision:3,unit:"millisecond",increment:1};case"microsecond":return{precision:6,unit:"microsecond",increment:1};case"nanosecond":return{precision:9,unit:"nanosecond",increment:1}}switch(t){case"auto":return{precision:t,unit:"nanosecond",increment:1};case 0:return{precision:t,unit:"second",increment:1};case 1:case 2:case 3:return{precision:t,unit:"millisecond",increment:10**(3-t)};case 4:case 5:case 6:return{precision:t,unit:"microsecond",increment:10**(6-t)};case 7:case 8:case 9:return{precision:t,unit:"nanosecond",increment:10**(9-t)};default:throw new RangeError(`fractionalSecondDigits must be 'auto' or 0 through 9, not ${t}`)}}const he=Symbol("~required~");function Ot(n,t,e,r,o=[]){let i=[];for(let u=0;u<Be.length;u++){const d=Be[u],m=d[1],f=d[2];e!=="datetime"&&e!==f||i.push(m)}i=i.concat(o);let a=r;a===he?a=void 0:a!==void 0&&i.push(a);let s=[];s=s.concat(i);for(let u=0;u<i.length;u++){const d=i[u],m=Oa[d];m!==void 0&&s.push(m)}let c=ue(n,t,s,a);if(c===void 0&&r===he)throw new RangeError(`${t} is required`);return c&&c in Mo?Mo[c]:c}function Rr(n){const t=n.relativeTo;if(t===void 0)return{};let e,r,o,i,a,s="option",c=!1;if(q(t)){if(Y(t))return{zonedRelativeTo:t};if(F(t))return{plainRelativeTo:t};if(I(t))return{plainRelativeTo:wt(h(t,A).isoDate,h(t,D))};o=Vn(t);const u=jt(o,t,["year","month","monthCode","day"],["hour","minute","second","millisecond","microsecond","nanosecond","offset","timeZone"],[]);({isoDate:e,time:r}=Hn(o,u,"constrain")),{offset:a,timeZone:i}=u,a===void 0&&(s="wall")}else{let u,d,m,f,g;if({year:m,month:f,day:g,time:r,calendar:o,tzAnnotation:u,offset:a,z:d}=te(V(t)),u)i=bt(u),d?s="exact":a||(s="wall"),c=!0;else if(d)throw new RangeError("Z designator not supported for PlainDate relativeTo; either remove the Z or add a bracketed time zone");o||(o="iso8601"),o=_t(o),e={year:m,month:f,day:g}}return i===void 0?{plainRelativeTo:wt(e,o)}:{zonedRelativeTo:nt(ir(e,r,s,s==="option"?cn(a):0,i,"compatible","reject",c),i,o)}}function re(n){return h(n,ut)!==0?"year":h(n,lt)!==0?"month":h(n,Mt)!==0?"week":h(n,ht)!==0?"day":h(n,dt)!==0?"hour":h(n,mt)!==0?"minute":h(n,ft)!==0?"second":h(n,gt)!==0?"millisecond":h(n,yt)!==0?"microsecond":"nanosecond"}function se(n,t){return En.indexOf(n)>En.indexOf(t)?t:n}function Wt(n){return n==="year"||n==="month"||n==="week"}function oe(n){return Wt(n)||n==="day"?"date":"time"}function Ee(n){return et("%calendarImpl%")(n)}function qn(n){return et("%calendarImpl%")(h(n,D))}function vt(n,t,e="date"){const r=Object.create(null),o=Ee(n).isoToDate(t,{year:!0,monthCode:!0,day:!0});return r.monthCode=o.monthCode,e!=="month-day"&&e!=="date"||(r.day=o.day),e!=="year-month"&&e!=="date"||(r.year=o.year),r}function jt(n,t,e,r,o){const i=Ee(n).extraFields(e),a=e.concat(r,i),s=Object.create(null);let c=!1;a.sort();for(let u=0;u<a.length;u++){const d=a[u],m=t[d];if(m!==void 0)c=!0,s[d]=(0,Ta[d])(m);else if(o!=="partial"){if(o.includes(d))throw new TypeError(`required property '${d}' missing or undefined`);s[d]=Ca[d]}}if(o==="partial"&&!c)throw new TypeError("no supported properties found");return s}function Fr(n,t="complete"){const e=["hour","microsecond","millisecond","minute","nanosecond","second"];let r=!1;const o=Object.create(null);for(let i=0;i<e.length;i++){const a=e[i],s=n[a];s!==void 0?(o[a]=$(s),r=!0):t==="complete"&&(o[a]=0)}if(!r)throw new TypeError("invalid time-like");return o}function gn(n,t){if(q(n)){if(F(n))return L(M(t)),wt(h(n,C),h(n,D));if(Y(n)){const c=zt(h(n,j),h(n,T));return L(M(t)),wt(c.isoDate,h(n,D))}if(I(n))return L(M(t)),wt(h(n,A).isoDate,h(n,D));const s=Vn(n);return wt(_e(s,jt(s,n,["year","month","monthCode","day"],[],[]),L(M(t))),s)}let{year:e,month:r,day:o,calendar:i,z:a}=te(V(n));if(a)throw new RangeError("Z designator not supported for PlainDate");return i||(i="iso8601"),i=_t(i),L(M(t)),wt({year:e,month:r,day:o},i)}function Hn(n,t,e){return x(_e(n,t,e),br(t.hour,t.minute,t.second,t.millisecond,t.microsecond,t.nanosecond,e))}function yn(n,t){let e,r,o;if(q(n)){if(I(n))return L(M(t)),It(h(n,A),h(n,D));if(Y(n)){const s=zt(h(n,j),h(n,T));return L(M(t)),It(s,h(n,D))}if(F(n))return L(M(t)),It(x(h(n,C),{deltaDays:0,hour:0,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0}),h(n,D));o=Vn(n);const i=jt(o,n,["year","month","monthCode","day"],["hour","minute","second","millisecond","microsecond","nanosecond"],[]),a=L(M(t));({isoDate:e,time:r}=Hn(o,i,a))}else{let i,a,s,c;if({year:a,month:s,day:c,time:r,calendar:o,z:i}=te(V(n)),i)throw new RangeError("Z designator not supported for PlainDateTime");r==="start-of-day"&&(r={deltaDays:0,hour:0,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0}),oo(a,s,c,r.hour,r.minute,r.second,r.millisecond,r.microsecond,r.nanosecond),o||(o="iso8601"),o=_t(o),L(M(t)),e={year:a,month:s,day:c}}return It(x(e,r),o)}function Ut(n){const t=et("%Temporal.Duration%");if(z(n))return new t(h(n,ut),h(n,lt),h(n,Mt),h(n,ht),h(n,dt),h(n,mt),h(n,ft),h(n,gt),h(n,yt),h(n,Tt));if(!q(n))return function(o){const{years:i,months:a,weeks:s,days:c,hours:u,minutes:d,seconds:m,milliseconds:f,microseconds:g,nanoseconds:y}=function(p){const w=wa.exec(p);if(!w)throw new RangeError(`invalid duration: ${p}`);if(w.every((ia,aa)=>aa<2||ia===void 0))throw new RangeError(`invalid duration: ${p}`);const v=w[1]==="-"?-1:1,_=w[2]===void 0?0:$(w[2])*v,E=w[3]===void 0?0:$(w[3])*v,O=w[4]===void 0?0:$(w[4])*v,R=w[5]===void 0?0:$(w[5])*v,W=w[6]===void 0?0:$(w[6])*v,K=w[7],G=w[8],U=w[9],Et=w[10],Q=w[11];let P=0,it=0,kt=0;if(K!==void 0){if(G??U??Et??Q)throw new RangeError("only the smallest unit can be fractional");kt=3600*$((K+"000000000").slice(0,9))*v}else if(P=G===void 0?0:$(G)*v,U!==void 0){if(Et??Q)throw new RangeError("only the smallest unit can be fractional");kt=60*$((U+"000000000").slice(0,9))*v}else it=Et===void 0?0:$(Et)*v,Q!==void 0&&(kt=$((Q+"000000000").slice(0,9))*v);const fe=kt%1e3,Ue=Math.trunc(kt/1e3)%1e3,ze=Math.trunc(kt/1e6)%1e3;return it+=Math.trunc(kt/1e9)%60,P+=Math.trunc(kt/6e10),Er(_,E,O,R,W,P,it,ze,Ue,fe),{years:_,months:E,weeks:O,days:R,hours:W,minutes:P,seconds:it,milliseconds:ze,microseconds:Ue,nanoseconds:fe}}(o);return new(et("%Temporal.Duration%"))(i,a,s,c,u,d,m,f,g,y)}(V(n));const e={years:0,months:0,weeks:0,days:0,hours:0,minutes:0,seconds:0,milliseconds:0,microseconds:0,nanoseconds:0};let r=Ei(n);for(let o=0;o<or.length;o++){const i=or[o],a=r[i];a!==void 0&&(e[i]=a)}return new t(e.years,e.months,e.weeks,e.days,e.hours,e.minutes,e.seconds,e.milliseconds,e.microseconds,e.nanoseconds)}function pn(n){let t;if(q(n)){if(B(n)||Y(n))return Vt(h(n,T));t=Ur(n)}else t=n;const{year:e,month:r,day:o,time:i,offset:a,z:s}=function(p){const w=te(p);if(!w.z&&!w.offset)throw new RangeError("Temporal.Instant requires a time zone offset");return w}(V(t)),{hour:c=0,minute:u=0,second:d=0,millisecond:m=0,microsecond:f=0,nanosecond:g=0}=i==="start-of-day"?{}:i,y=Ln(e,r,o,c,u,d,m,f,g-(s?0:cn(a)));return Xe(y.isoDate),Vt(tt(y))}function Co(n,t){if(q(n)){if(Yt(n))return L(M(t)),Ve(h(n,C),h(n,D));let s;return Dt(n,D)?s=h(n,D):(s=n.calendar,s===void 0&&(s="iso8601"),s=Gn(s)),Ve(ar(s,jt(s,n,["year","month","monthCode","day"],[],[]),L(M(t))),s)}let{month:e,day:r,referenceISOYear:o,calendar:i}=to(V(n));if(i===void 0&&(i="iso8601"),i=_t(i),L(M(t)),i==="iso8601")return Ve({year:1972,month:e,day:r},i);let a={year:o,month:e,day:r};return Pe(a),a=ar(i,vt(i,a,"month-day"),"constrain"),Ve(a,i)}function pe(n,t){let e;if(q(n)){if(H(n))return L(M(t)),ie(h(n,Z));if(I(n))return L(M(t)),ie(h(n,A).time);if(Y(n)){const u=zt(h(n,j),h(n,T));return L(M(t)),ie(u.time)}const{hour:r,minute:o,second:i,millisecond:a,microsecond:s,nanosecond:c}=Fr(n);e=br(r,o,i,a,s,c,L(M(t)))}else e=bi(V(n)),L(M(t));return ie(e)}function Mi(n){return n===void 0?{deltaDays:0,hour:0,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0}:h(pe(n),Z)}function wn(n,t){if(q(n)){if(J(n))return L(M(t)),Se(h(n,C),h(n,D));const s=Vn(n);return Se(kn(s,jt(s,n,["year","month","monthCode"],[],[]),L(M(t))),s)}let{year:e,month:r,referenceISODay:o,calendar:i}=Jr(V(n));i===void 0&&(i="iso8601"),i=_t(i),L(M(t));let a={year:e,month:r,day:o};return io(a),a=kn(i,vt(i,a,"year-month"),"constrain"),Se(a,i)}function ir(n,t,e,r,o,i,a,s){if(t==="start-of-day")return ge(o,n);const c=x(n,t);if(e==="wall"||a==="ignore")return ot(o,c,i);if(e==="exact"||a==="use"){const m=Ln(n.year,n.month,n.day,t.hour,t.minute,t.second,t.millisecond,t.microsecond,t.nanosecond-r);Xe(m.isoDate);const f=tt(m);return Bt(f),f}Xe(n);const u=tt(c),d=Yn(o,c);for(let m=0;m<d.length;m++){const f=d[m],g=l.toNumber(l.subtract(u,f)),y=we(g,6e10,"halfExpand");if(g===r||s&&y===r)return f}if(a==="reject"){const m=Zr(r),f=Nn(c,"iso8601","auto");throw new RangeError(`Offset ${m} is invalid for ${f} in ${o}`)}return Li(d,o,c,i)}function bn(n,t){let e,r,o,i,a,s,c,u=!1,d="option";if(q(n)){if(Y(n)){const p=M(t);return Tn(p),tr(p,"reject"),L(p),nt(h(n,T),h(n,j),h(n,D))}a=Vn(n);const f=jt(a,n,["year","month","monthCode","day"],["hour","minute","second","millisecond","microsecond","nanosecond","offset","timeZone"],["timeZone"]);({offset:i,timeZone:o}=f),i===void 0&&(d="wall");const g=M(t);s=Tn(g),c=tr(g,"reject");const y=L(g);({isoDate:e,time:r}=Hn(a,f,y))}else{let f,g,y,p,w;({year:y,month:p,day:w,time:r,tzAnnotation:f,offset:i,z:g,calendar:a}=function(_){const E=te(_);if(!E.tzAnnotation)throw new RangeError("Temporal.ZonedDateTime requires a time zone ID in brackets");return E}(V(n))),o=bt(f),g?d="exact":i||(d="wall"),a||(a="iso8601"),a=_t(a),u=!0;const v=M(t);s=Tn(v),c=tr(v,"reject"),L(v),e={year:y,month:p,day:w}}let m=0;return d==="option"&&(m=cn(i)),nt(ir(e,r,d,m,o,s,c,u),o,a)}function Ti(n,t,e){Pe(t),de(n),k(n,C,t),k(n,D,e),k(n,ni,!0)}function wt(n,t){const e=et("%Temporal.PlainDate%"),r=Object.create(e.prototype);return Ti(r,n,t),r}function Ci(n,t,e){Ne(t),de(n),k(n,A,t),k(n,D,e)}function It(n,t){const e=et("%Temporal.PlainDateTime%"),r=Object.create(e.prototype);return Ci(r,n,t),r}function Oi(n,t,e){Pe(t),de(n),k(n,C,t),k(n,D,e),k(n,oi,!0)}function Ve(n,t){const e=et("%Temporal.PlainMonthDay%"),r=Object.create(e.prototype);return Oi(r,n,t),r}function $i(n,t){de(n),k(n,Z,t)}function ie(n){const t=et("%Temporal.PlainTime%"),e=Object.create(t.prototype);return $i(e,n),e}function Ri(n,t,e){io(t),de(n),k(n,C,t),k(n,D,e),k(n,ri,!0)}function Se(n,t){const e=et("%Temporal.PlainYearMonth%"),r=Object.create(e.prototype);return Ri(r,n,t),r}function ki(n,t){Bt(t),de(n),k(n,T,t)}function Vt(n){const t=et("%Temporal.Instant%"),e=Object.create(t.prototype);return ki(e,n),e}function Yi(n,t,e,r){Bt(t),de(n),k(n,T,t),k(n,j,e),k(n,D,r)}function nt(n,t,e="iso8601"){const r=et("%Temporal.ZonedDateTime%"),o=Object.create(r.prototype);return Yi(o,n,t,e),o}function Oo(n){return zr.filter(t=>n[t]!==void 0)}function ke(n,t,e){const r=Oo(e),o=Ee(n).fieldKeysToIgnore(r),i=Object.create(null),a=Oo(t);for(let s=0;s<zr.length;s++){let c;const u=zr[s];a.includes(u)&&!o.includes(u)&&(c=t[u]),r.includes(u)&&(c=e[u]),c!==void 0&&(i[u]=c)}return i}function Lt(n,t,e,r){const o=Ee(n).dateAdd(t,e,r);return Pe(o),o}function Wn(n,t,e,r){return Ee(n).dateUntil(t,e,r)}function Gn(n){if(q(n)&&Dt(n,D))return h(n,D);const t=V(n);try{return _t(t)}catch{}let e;try{({calendar:e}=te(t))}catch{try{({calendar:e}=bi(t))}catch{try{({calendar:e}=Jr(t))}catch{({calendar:e}=to(t))}}}return e||(e="iso8601"),_t(e)}function Vn(n){if(Dt(n,D))return h(n,D);const{calendar:t}=n;return t===void 0?"iso8601":Gn(t)}function Qt(n,t){return _t(n)===_t(t)}function _e(n,t,e){const r=Ee(n);r.resolveFields(t,"date");const o=r.dateToISO(t,e);return Pe(o),o}function kn(n,t,e){const r=Ee(n);r.resolveFields(t,"year-month"),t.day=1;const o=r.dateToISO(t,e);return io(o),o}function ar(n,t,e){const r=Ee(n);r.resolveFields(t,"month-day");const o=r.monthDayToISOReferenceDate(t,e);return Pe(o),o}function bt(n){if(q(n)&&Y(n))return h(n,j);const t=V(n);if(t==="UTC")return"UTC";const{tzName:e,offsetMinutes:r}=function(i){const{tzAnnotation:a,offset:s,z:c}=function(u){if(vi.test(u))return{tzAnnotation:u,offset:void 0,z:!1};try{const{tzAnnotation:d,offset:m,z:f}=te(u);if(f||d||m)return{tzAnnotation:d,offset:m,z:f}}catch{}_i(u)}(i);return a?be(a):c?be("UTC"):s?be(s):void 0}(t);if(r!==void 0)return eo(r);const o=sr(e);if(!o)throw new RangeError(`Unrecognized time zone ${e}`);return o.identifier}function Ni(n,t){if(n===t)return!0;const e=be(n).offsetMinutes,r=be(t).offsetMinutes;if(e===void 0&&r===void 0){const o=sr(t);if(!o)return!1;const i=sr(n);return!!i&&i.primaryIdentifier===o.primaryIdentifier}return e===r}function ae(n,t){const e=be(n).offsetMinutes;return e!==void 0?6e10*e:qr(n,t)}function Zr(n){const t=n<0?"-":"+",e=Math.abs(n),r=Math.floor(e/36e11),o=Math.floor(e/6e10)%60,i=Math.floor(e/1e9)%60,a=e%1e9;return`${t}${vr(r,o,i,a,i===0&&a===0?"minute":"auto")}`}function zt(n,t){const e=ae(n,t);let{isoDate:{year:r,month:o,day:i},time:{hour:a,minute:s,second:c,millisecond:u,microsecond:d,nanosecond:m}}=Ii(t);return Ln(r,o,i,a,s,c,u,d,m+e)}function ot(n,t,e){return Li(Yn(n,t),n,t,e)}function Li(n,t,e,r){const o=n.length;if(o===1)return n[0];if(o)switch(r){case"compatible":case"earlier":return n[0];case"later":return n[o-1];case"reject":throw new RangeError("multiple instants found")}if(r==="reject")throw new RangeError("multiple instants found");const i=tt(e),a=l.subtract(i,ve);Bt(a);const s=ae(t,a),c=l.add(i,ve);Bt(c);const u=ae(t,c)-s;switch(r){case"earlier":{const d=N.fromComponents(0,0,0,0,0,-u),m=tn(e.time,d);return Yn(t,x($t(e.isoDate.year,e.isoDate.month,e.isoDate.day+m.deltaDays),m))[0]}case"compatible":case"later":{const d=N.fromComponents(0,0,0,0,0,u),m=tn(e.time,d),f=Yn(t,x($t(e.isoDate.year,e.isoDate.month,e.isoDate.day+m.deltaDays),m));return f[f.length-1]}}}function Yn(n,t){if(n==="UTC")return Xe(t.isoDate),[tt(t)];const e=be(n).offsetMinutes;if(e!==void 0){const r=Ln(t.isoDate.year,t.isoDate.month,t.isoDate.day,t.time.hour,t.time.minute-e,t.time.second,t.time.millisecond,t.time.microsecond,t.time.nanosecond);Xe(r.isoDate);const o=tt(r);return Bt(o),[o]}return Xe(t.isoDate),function(r,o){let i=tt(o),a=l.subtract(i,ve);l.lessThan(a,$n)&&(a=i);let s=l.add(i,ve);l.greaterThan(s,Qe)&&(s=i);const c=qr(r,a),u=qr(r,s);return(c===u?[c]:[c,u]).map(m=>{const f=l.subtract(i,l.BigInt(m)),g=function(y,p){const{epochMilliseconds:w,time:{millisecond:v,microsecond:_,nanosecond:E}}=Ii(p),{year:O,month:R,day:W,hour:K,minute:G,second:U}=Pi(y,w);return Ln(O,R,W,K,G,U,v,_,E)}(r,f);if(en(o,g)===0)return Bt(f),f}).filter(m=>m!==void 0)}(n,t)}function ge(n,t){const e=x(t,{deltaDays:0,hour:0,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0}),r=Yn(n,e);if(r.length)return r[0];const o=tt(e),i=l.subtract(o,ve);return Bt(i),ro(n,i)}function Sn(n){let t;return t=n<0||n>9999?(n<0?"-":"+")+Rn(Math.abs(n),6):Rn(n,4),t}function xt(n){return Rn(n,2)}function xi(n,t){let e;if(t==="auto"){if(n===0)return"";e=Rn(n,9).replace(/0+$/,"")}else{if(t===0)return"";e=Rn(n,9).slice(0,t)}return`.${e}`}function vr(n,t,e,r,o){let i=`${xt(n)}:${xt(t)}`;return o==="minute"||(i+=`:${xt(e)}`,i+=xi(r,o)),i}function $o(n,t,e){let r=t;r===void 0&&(r="UTC");const o=h(n,T),i=Nn(zt(r,o),"iso8601",e,"never");let a="Z";return t!==void 0&&(a=ji(ae(r,o))),`${i}${a}`}function Jn(n,t){const e=h(n,ut),r=h(n,lt),o=h(n,Mt),i=h(n,ht),a=h(n,dt),s=h(n,mt),c=ur(n);let u="";e!==0&&(u+=`${Math.abs(e)}Y`),r!==0&&(u+=`${Math.abs(r)}M`),o!==0&&(u+=`${Math.abs(o)}W`),i!==0&&(u+=`${Math.abs(i)}D`);let d="";a!==0&&(d+=`${Math.abs(a)}H`),s!==0&&(d+=`${Math.abs(s)}M`);const m=N.fromComponents(0,0,h(n,ft),h(n,gt),h(n,yt),h(n,Tt));m.isZero()&&!["second","millisecond","microsecond","nanosecond"].includes(re(n))&&t==="auto"||(d+=`${Math.abs(m.sec)}${xi(Math.abs(m.subsec),t)}S`);let f=`${c<0?"-":""}P${u}`;return d&&(f=`${f}T${d}`),f}function Ro(n,t="auto"){const{year:e,month:r,day:o}=h(n,C);return`${Sn(e)}-${xt(r)}-${xt(o)}${Un(h(n,D),t)}`}function ko({hour:n,minute:t,second:e,millisecond:r,microsecond:o,nanosecond:i},a){return vr(n,t,e,1e6*r+1e3*o+i,a)}function Nn(n,t,e,r="auto"){const{isoDate:{year:o,month:i,day:a},time:{hour:s,minute:c,second:u,millisecond:d,microsecond:m,nanosecond:f}}=n;return`${Sn(o)}-${xt(i)}-${xt(a)}T${vr(s,c,u,1e6*d+1e3*m+f,e)}${Un(t,r)}`}function Yo(n,t="auto"){const{year:e,month:r,day:o}=h(n,C);let i=`${xt(r)}-${xt(o)}`;const a=h(n,D);t!=="always"&&t!=="critical"&&a==="iso8601"||(i=`${Sn(e)}-${i}`);const s=Un(a,t);return s&&(i+=s),i}function No(n,t="auto"){const{year:e,month:r,day:o}=h(n,C);let i=`${Sn(e)}-${xt(r)}`;const a=h(n,D);t!=="always"&&t!=="critical"&&a==="iso8601"||(i+=`-${xt(o)}`);const s=Un(a,t);return s&&(i+=s),i}function Lo(n,t,e="auto",r="auto",o="auto",i=void 0){let a=h(n,T);if(i){const{unit:d,increment:m,roundingMode:f}=i;a=Vr(a,m,d,f)}const s=h(n,j),c=ae(s,a);let u=Nn(zt(s,a),"iso8601",t,"never");return o!=="never"&&(u+=ji(c)),r!=="never"&&(u+=`[${r==="critical"?"!":""}${s}]`),u+=Un(h(n,D),e),u}function xo(n){return Di.test(n)}function cn(n){const t=Ya.exec(n);if(!t)throw new RangeError(`invalid time zone offset: ${n}; must match ±HH:MM[:SS.SSSSSSSSS]`);return(t[1]==="-"?-1:1)*(1e9*(60*(60*+t[2]+ +(t[3]||0))+ +(t[4]||0))+ +((t[5]||0)+"000000000").slice(0,9))}let Te;const Ra=Object.assign(Object.create(null),{"/":!0,"-":!0,_:!0});function sr(n){var i;if(Te===void 0){const a=(i=Intl.supportedValuesOf)==null?void 0:i.call(Intl,"timeZone");if(a){Te=new Map;for(let s=0;s<a.length;s++){const c=a[s];Te.set(xn(c),c)}}else Te=null}const t=xn(n);let e=Te==null?void 0:Te.get(t);if(e)return{identifier:e,primaryIdentifier:e};try{e=wi(n).resolvedOptions().timeZone}catch{return}if(t==="antarctica/south_pole"&&(e="Antarctica/McMurdo"),Ma.has(n))throw new RangeError(`${n} is a legacy time zone identifier from ICU. Use ${e} instead`);const r=[...t].map((a,s)=>s===0||Ra[t[s-1]]?a.toUpperCase():a).join("").split("/");if(r.length===1)return t==="gb-eire"?{identifier:"GB-Eire",primaryIdentifier:e}:{identifier:t.length<=3||/[-0-9]/.test(t)?t.toUpperCase():r[0],primaryIdentifier:e};if(r[0]==="Etc")return{identifier:`Etc/${["Zulu","Greenwich","Universal"].includes(r[1])?r[1]:r[1].toUpperCase()}`,primaryIdentifier:e};if(r[0]==="Us")return{identifier:`US/${r[1]}`,primaryIdentifier:e};const o=new Map([["Act","ACT"],["Lhi","LHI"],["Nsw","NSW"],["Dar_Es_Salaam","Dar_es_Salaam"],["Port_Of_Spain","Port_of_Spain"],["Port-Au-Prince","Port-au-Prince"],["Isle_Of_Man","Isle_of_Man"],["Comodrivadavia","ComodRivadavia"],["Knox_In","Knox_IN"],["Dumontdurville","DumontDUrville"],["Mcmurdo","McMurdo"],["Denoronha","DeNoronha"],["Easterisland","EasterIsland"],["Bajanorte","BajaNorte"],["Bajasur","BajaSur"]]);return r[1]=o.get(r[1])??r[1],r.length>2&&(r[2]=o.get(r[2])??r[2]),{identifier:r.join("/"),primaryIdentifier:e}}function $e(n,t){const{year:e,month:r,day:o,hour:i,minute:a,second:s}=Pi(n,t);let c=t%1e3;return c<0&&(c+=1e3),1e6*(no({isoDate:{year:e,month:r,day:o},time:{hour:i,minute:a,second:s,millisecond:c}})-t)}function qr(n,t){return $e(n,Ft(t,"floor"))}function eo(n){const t=n<0?"-":"+",e=Math.abs(n);return`${t}${vr(Math.floor(e/60),e%60,0,0,"minute")}`}function ji(n){return eo(we(n,ba,"halfExpand")/6e10)}function no({isoDate:{year:n,month:t,day:e},time:{hour:r,minute:o,second:i,millisecond:a}}){const s=n%400,c=(n-s)/400,u=new Date;return u.setUTCHours(r,o,i,a),u.setUTCFullYear(s,t-1,e),u.getTime()+_a*c}function tt(n){const t=no(n),e=1e3*n.time.microsecond+n.time.nanosecond;return l.add(Xt(t),l.BigInt(e))}function Ii(n){let t=Ft(n,"trunc"),e=l.toNumber(l.remainder(n,Pn));e<0&&(e+=1e6,t-=1);const r=Math.floor(e/1e3)%1e3,o=e%1e3,i=new Date(t);return{epochMilliseconds:t,isoDate:{year:i.getUTCFullYear(),month:i.getUTCMonth()+1,day:i.getUTCDate()},time:{hour:i.getUTCHours(),minute:i.getUTCMinutes(),second:i.getUTCSeconds(),millisecond:i.getUTCMilliseconds(),microsecond:r,nanosecond:o}}}function ro(n,t){if(n==="UTC")return null;const e=Ft(t,"floor");if(e<_n)return ro(n,Xt(_n));const r=Date.now(),o=Math.max(e,r)+366*De*3;let i=e,a=$e(n,i),s=i,c=a;for(;a===c&&i<o;){if(s=i+2*De*7,s>pi)return null;c=$e(n,s),a===c&&(i=s)}return a===c?null:Xt(Vi(u=>$e(n,u),i,s,a,c))}function Hr(n,t){if(n==="UTC")return null;const e=Ft(t,"ceil"),r=Date.now(),o=r+366*De*3;if(e>o){const u=Hr(n,Xt(o));if(u===null||l.lessThan(u,Xt(r)))return u}if(n==="Africa/Casablanca"||n==="Africa/El_Aaiun"){const u=Date.UTC(2088,0,1);if(u<e)return Hr(n,Xt(u))}let i=e-1;if(i<_n)return null;let a=$e(n,i),s=i,c=a;for(;a===c&&i>_n;){if(s=i-2*De*7,s<_n)return null;c=$e(n,s),a===c&&(i=s)}return a===c?null:Xt(Vi(u=>$e(n,u),s,i,c,a))}function Pi(n,t){return function(e){const r=e.split(/[^\w]+/);if(r.length!==7)throw new RangeError(`expected 7 parts in "${e}`);const o=+r[0],i=+r[1];let a=+r[2];const s=r[3];if(s[0]==="b"||s[0]==="B")a=1-a;else if(s[0]!=="a"&&s[0]!=="A")throw new RangeError(`Unknown era ${s} in "${e}`);const c=r[4]==="24"?0:+r[4],u=+r[5],d=+r[6];if(!(Number.isFinite(a)&&Number.isFinite(o)&&Number.isFinite(i)&&Number.isFinite(c)&&Number.isFinite(u)&&Number.isFinite(d)))throw new RangeError(`Invalid number in "${e}`);return{year:a,month:o,day:i,hour:c,minute:u,second:d}}(wi(n).format(t))}function cr(n){return n!==void 0&&!(n%4!=0||n%100==0&&n%400!=0)}function Re(n,t){return{standard:[31,28,31,30,31,30,31,31,30,31,30,31],leapyear:[31,29,31,30,31,30,31,31,30,31,30,31]}[cr(n)?"leapyear":"standard"][t-1]}function ur(n){const t=[h(n,ut),h(n,lt),h(n,Mt),h(n,ht),h(n,dt),h(n,mt),h(n,ft),h(n,gt),h(n,yt),h(n,Tt)];for(let e=0;e<t.length;e++){const r=t[e];if(r!==0)return r<0?-1:1}return 0}function Dr(n){const t=["years","months","weeks","days"];for(let e=0;e<t.length;e++){const r=n[t[e]];if(r!==0)return r<0?-1:1}return 0}function Ai(n){const t=Dr(n.date);return t!==0?t:n.time.sign()}function Oe(n,t){let e=n,r=t;if(!Number.isFinite(e)||!Number.isFinite(r))throw new RangeError("infinity is out of range");return r-=1,e+=Math.floor(r/12),r%=12,r<0&&(r+=12),r+=1,{year:e,month:r}}function $t(n,t,e){let r=n,o=t,i=e;if(!Number.isFinite(i))throw new RangeError("infinity is out of range");({year:r,month:o}=Oe(r,o));const a=146097;if(Math.abs(i)>a){const u=Math.trunc(i/a);r+=400*u,i-=u*a}let s=0,c=o>2?r:r-1;for(;s=cr(c)?366:365,i<-s;)r-=1,c-=1,i+=s;for(c+=1;s=cr(c)?366:365,i>s;)r+=1,c+=1,i-=s;for(;i<1;)({year:r,month:o}=Oe(r,o-1)),i+=Re(r,o);for(;i>Re(r,o);)i-=Re(r,o),{year:r,month:o}=Oe(r,o+1);return{year:r,month:o,day:i}}function Ln(n,t,e,r,o,i,a,s,c){const u=ye(r,o,i,a,s,c);return x($t(n,t,e+u.deltaDays),u)}function ye(n,t,e,r,o,i){let a,s=n,c=t,u=e,d=r,m=o,f=i;({div:a,mod:f}=Ge(f,3)),m+=a,f<0&&(m-=1,f+=1e3),{div:a,mod:m}=Ge(m,3),d+=a,m<0&&(d-=1,m+=1e3),u+=Math.trunc(d/1e3),d%=1e3,d<0&&(u-=1,d+=1e3),c+=Math.trunc(u/60),u%=60,u<0&&(c-=1,u+=60),s+=Math.trunc(c/60),c%=60,c<0&&(s-=1,c+=60);let g=Math.trunc(s/24);return s%=24,s<0&&(g-=1,s+=24),g+=0,s+=0,c+=0,u+=0,d+=0,m+=0,f+=0,{deltaDays:g,hour:s,minute:c,second:u,millisecond:d,microsecond:m,nanosecond:f}}function jo(n,t){const e=rt(n,0);if(Dr(e)===0)return n.days;const r=h(t,C),o=Lt(h(t,D),r,e,"constrain"),i=Le(r.year,r.month-1,r.day),a=Le(o.year,o.month-1,o.day)-i;return n.days+a}function Rt(n){return new(et("%Temporal.Duration%"))(-h(n,ut),-h(n,lt),-h(n,Mt),-h(n,ht),-h(n,dt),-h(n,mt),-h(n,ft),-h(n,gt),-h(n,yt),-h(n,Tt))}function pt(n,t,e){return Math.min(e,Math.max(t,n))}function Ui(n,t,e){const r=pt(t,1,12);return{year:n,month:r,day:pt(e,1,Re(n,r))}}function X(n,t,e){if(n<t||n>e)throw new RangeError(`value out of range: ${t} <= ${n} <= ${e}`)}function Ye(n,t,e){X(t,1,12),X(e,1,Re(n,t))}function Pe(n){Ne(x(n,{deltaDays:0,hour:12,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0}))}function _r(n,t,e,r,o,i){X(n,0,23),X(t,0,59),X(e,0,59),X(r,0,999),X(o,0,999),X(i,0,999)}function oo(n,t,e,r,o,i,a,s,c){Ye(n,t,e),_r(r,o,i,a,s,c)}function Ne(n){const t=tt(n);(l.lessThan(t,va)||l.greaterThan(t,Da))&&Bt(t)}function Wr(n){tt(n)}function Bt(n){if(l.lessThan(n,$n)||l.greaterThan(n,Qe))throw new RangeError("date/time value is outside of supported range")}function io({year:n,month:t}){X(n,Do,_o),n===Do?X(t,4,12):n===_o&&X(t,1,9)}function Er(n,t,e,r,o,i,a,s,c,u){let d=0;const m=[n,t,e,r,o,i,a,s,c,u];for(let v=0;v<m.length;v++){const _=m[v];if(_===1/0||_===-1/0)throw new RangeError("infinite values not allowed as duration fields");if(_!==0){const E=_<0?-1:1;if(d!==0&&E!==d)throw new RangeError("mixed-sign values not allowed as duration fields");d=E}}if(Math.abs(n)>=2**32||Math.abs(t)>=2**32||Math.abs(e)>=2**32)throw new RangeError("years, months, and weeks must be < 2³²");const f=Ge(s,3),g=Ge(c,6),y=Ge(u,9),p=Ge(1e6*f.mod+1e3*g.mod+y.mod,9).div,w=86400*r+3600*o+60*i+a+f.div+g.div+y.div+p;if(!Number.isSafeInteger(w))throw new RangeError("total of duration time units cannot exceed 9007199254740991.999999999 s")}function We(n){return{date:{years:h(n,ut),months:h(n,lt),weeks:h(n,Mt),days:h(n,ht)},time:N.fromComponents(h(n,dt),h(n,mt),h(n,ft),h(n,gt),h(n,yt),h(n,Tt))}}function St(n){const t=N.fromComponents(h(n,dt),h(n,mt),h(n,ft),h(n,gt),h(n,yt),h(n,Tt)).add24HourDays(h(n,ht));return{date:{years:h(n,ut),months:h(n,lt),weeks:h(n,Mt),days:0},time:t}}function zi(n){const t=St(n),e=Math.trunc(t.time.sec/86400);return Er(t.date.years,t.date.months,t.date.weeks,e,0,0,0,0,0,0),{...t.date,days:e}}function Pt(n,t){const e=n.time.sign();let r=n.time.abs().subsec,o=0,i=0,a=n.time.abs().sec,s=0,c=0,u=0;switch(t){case"year":case"month":case"week":case"day":o=Math.trunc(r/1e3),r%=1e3,i=Math.trunc(o/1e3),o%=1e3,a+=Math.trunc(i/1e3),i%=1e3,s=Math.trunc(a/60),a%=60,c=Math.trunc(s/60),s%=60,u=Math.trunc(c/24),c%=24;break;case"hour":o=Math.trunc(r/1e3),r%=1e3,i=Math.trunc(o/1e3),o%=1e3,a+=Math.trunc(i/1e3),i%=1e3,s=Math.trunc(a/60),a%=60,c=Math.trunc(s/60),s%=60;break;case"minute":o=Math.trunc(r/1e3),r%=1e3,i=Math.trunc(o/1e3),o%=1e3,a+=Math.trunc(i/1e3),i%=1e3,s=Math.trunc(a/60),a%=60;break;case"second":o=Math.trunc(r/1e3),r%=1e3,i=Math.trunc(o/1e3),o%=1e3,a+=Math.trunc(i/1e3),i%=1e3;break;case"millisecond":o=Math.trunc(r/1e3),r%=1e3,i=Or(a,3,Math.trunc(o/1e3)),o%=1e3,a=0;break;case"microsecond":o=Or(a,6,Math.trunc(r/1e3)),r%=1e3,a=0;break;case"nanosecond":r=Or(a,9,r),a=0}return new(et("%Temporal.Duration%"))(n.date.years,n.date.months,n.date.weeks,n.date.days+e*u,e*c,e*s,e*a,e*i,e*o,e*r)}function ce(n,t){return Dr(n),t.sign(),{date:n,time:t}}function Le(n,t,e){return no({isoDate:{year:n,month:t+1,day:e},time:{hour:0,minute:0,second:0,millisecond:0}})/De}function Xe({year:n,month:t,day:e}){if(Math.abs(Le(n,t-1,e))>1e8)throw new RangeError("date/time value is outside the supported range")}function ao(n,t){const e=t.hour-n.hour,r=t.minute-n.minute,o=t.second-n.second,i=t.millisecond-n.millisecond,a=t.microsecond-n.microsecond,s=t.nanosecond-n.nanosecond;return N.fromComponents(e,r,o,i,a,s)}function so(n,t,e,r,o){let i=N.fromEpochNsDiff(t,n);return i=lr(i,e,r,o),ce({years:0,months:0,weeks:0,days:0},i)}function Fi(n,t,e,r){Wr(n),Wr(t);let o=ao(n.time,t.time);const i=o.sign(),a=Jt(n.isoDate,t.isoDate);let s=t.isoDate;a===i&&(s=$t(s.year,s.month,s.day+i),o=o.add24HourDays(-i));const c=se("day",r),u=Wn(e,n.isoDate,s,c);return r!==c&&(o=o.add24HourDays(u.days),u.days=0),ce(u,o)}function Zi(n,t,e,r,o){const i=l.subtract(t,n);if(l.equal(i,Nt))return{date:{years:0,months:0,weeks:0,days:0},time:N.ZERO};const a=l.lessThan(i,Nt)?-1:1,s=zt(e,n),c=zt(e,t);let u,d=0,m=a===1?2:1,f=ao(s.time,c.time);for(f.sign()===-a&&d++;d<=m;d++){u=x($t(c.isoDate.year,c.isoDate.month,c.isoDate.day-d*a),s.time);const y=ot(e,u,"compatible");if(f=N.fromEpochNsDiff(t,y),f.sign()!==-a)break}const g=se("day",o);return ce(Wn(r,s.isoDate,u.isoDate,g),f)}function qi(n,t,e,r,o,i,a,s,c){let u,d,m,f,g=t;switch(s){case"year":{const P=we(g.date.years,a,"trunc");u=P,d=P+a*n,m={years:u,months:0,weeks:0,days:0},f={...m,years:d};break}case"month":{const P=we(g.date.months,a,"trunc");u=P,d=P+a*n,m=rt(g.date,0,0,u),f=rt(g.date,0,0,d);break}case"week":{const P=rt(g.date,0,0),it=Lt(i,r.isoDate,P,"constrain"),kt=Wn(i,it,$t(it.year,it.month,it.day+g.date.days),"week"),fe=we(g.date.weeks+kt.weeks,a,"trunc");u=fe,d=fe+a*n,m=rt(g.date,0,u),f=rt(g.date,0,d);break}case"day":{const P=we(g.date.days,a,"trunc");u=P,d=P+a*n,m=rt(g.date,u),f=rt(g.date,d);break}}const y=Lt(i,r.isoDate,m,"constrain"),p=Lt(i,r.isoDate,f,"constrain");let w,v;const _=x(y,r.time),E=x(p,r.time);o?(w=ot(o,_,"compatible"),v=ot(o,E,"compatible")):(w=tt(_),v=tt(E));const O=N.fromEpochNsDiff(e,w),R=N.fromEpochNsDiff(v,w),W=fr(c,n<0?"negative":"positive"),K=O.add(O).abs().subtract(R.abs()).sign(),G=Math.abs(u)/a%2==0,U=O.isZero()?Math.abs(u):O.cmp(R)?gr(Math.abs(u),Math.abs(d),K,G,W):Math.abs(d),Et=new N(l.add(l.multiply(R.totalNs,l.BigInt(u)),l.multiply(O.totalNs,l.BigInt(a*n)))).fdiv(R.totalNs),Q=U===Math.abs(d);return g={date:Q?f:m,time:N.ZERO},{nudgeResult:{duration:g,nudgedEpochNs:Q?v:w,didExpandCalendarUnit:Q},total:Et}}function Mr(n,t,e,r,o,i,a,s,c){let u=n;const d=Wt(s)||r&&s==="day",m=Ai(u)<0?-1:1;let f;return d?{nudgeResult:f}=qi(m,u,t,e,r,o,a,s,c):f=r?function(g,y,p,w,v,_,E,O){let R=y;const W=Lt(v,p.isoDate,R.date,"constrain"),K=x(W,p.time),G=x($t(W.year,W.month,W.day+g),p.time),U=ot(w,K,"compatible"),Et=ot(w,G,"compatible"),Q=N.fromEpochNsDiff(Et,U);if(Q.sign()!==g)throw new RangeError("time zone returned inconsistent Instants");const P=l.BigInt(Je[E]*_);let it=R.time.round(P,O);const kt=it.subtract(Q),fe=kt.sign()!==-g;let Ue,ze;return fe?(Ue=g,it=kt.round(P,O),ze=it.addToEpochNs(Et)):(Ue=0,ze=it.addToEpochNs(U)),{duration:ce(rt(R.date,R.date.days+Ue),it),nudgedEpochNs:ze,didExpandCalendarUnit:fe}}(m,u,e,r,o,a,s,c):function(g,y,p,w,v,_){let E=g;const O=E.time.add24HourDays(E.date.days),R=O.round(l.BigInt(w*Je[v]),_),W=R.subtract(O),{quotient:K}=O.divmod(rr),{quotient:G}=R.divmod(rr),U=Math.sign(G-K)===O.sign(),Et=W.addToEpochNs(y);let Q=0,P=R;return oe(p)==="date"&&(Q=G,P=R.add(N.fromComponents(24*-G,0,0,0,0,0))),{duration:{date:rt(E.date,Q),time:P},nudgedEpochNs:Et,didExpandCalendarUnit:U}}(u,t,i,a,s,c),u=f.duration,f.didExpandCalendarUnit&&s!=="week"&&(u=function(g,y,p,w,v,_,E,O){let R=y;if(O===E)return R;const W=En.indexOf(E);for(let K=En.indexOf(O)-1;K>=W;K--){const G=En[K];if(G==="week"&&E!=="week")continue;let U;switch(G){case"year":U={years:R.date.years+g,months:0,weeks:0,days:0};break;case"month":{const P=R.date.months+g;U=rt(R.date,0,0,P);break}case"week":{const P=R.date.weeks+g;U=rt(R.date,0,P);break}}const Et=x(Lt(_,w.isoDate,U,"constrain"),w.time);let Q;if(Q=v?ot(v,Et,"compatible"):tt(Et),er(p,Q)===-g)break;R={date:U,time:N.ZERO}}return R}(m,u,f.nudgedEpochNs,e,r,o,i,se(s,"day"))),u}function Io(n,t,e,r,o,i){return Wt(i)||r&&i==="day"?qi(Ai(n)<0?-1:1,n,t,e,r,o,1,i,"trunc").total:Cn(n.time.add24HourDays(n.date.days),i)}function Hi(n,t,e,r,o,i,a){if(en(n,t)==0)return{date:{years:0,months:0,weeks:0,days:0},time:N.ZERO};Ne(n),Ne(t);const s=Fi(n,t,e,r);return i==="nanosecond"&&o===1?s:Mr(s,tt(t),n,null,e,r,o,i,a)}function Wi(n,t,e,r,o,i,a,s){if(oe(o)==="time")return so(n,t,i,a,s);const c=Zi(n,t,e,r,o);return a==="nanosecond"&&i===1?c:Mr(c,t,zt(e,n),e,r,o,i,a,s)}function un(n,t,e,r,o,i){const a=Be.reduce((g,y)=>{const p=y[0],w=y[1],v=y[2];return e!=="datetime"&&v!==e||r.includes(w)||g.push(w,p),g},[]);let s=Ot(t,"largestUnit",e,"auto");if(r.includes(s))throw new RangeError(`largestUnit must be one of ${a.join(", ")}, not ${s}`);const c=an(t);let u=qt(t,"trunc");n==="since"&&(u=function(g){switch(g){case"ceil":return"floor";case"floor":return"ceil";case"halfCeil":return"halfFloor";case"halfFloor":return"halfCeil";default:return g}}(u));const d=Ot(t,"smallestUnit",e,o);if(r.includes(d))throw new RangeError(`smallestUnit must be one of ${a.join(", ")}, not ${d}`);const m=se(i,d);if(s==="auto"&&(s=m),se(s,d)!==s)throw new RangeError(`largestUnit ${s} cannot be smaller than smallestUnit ${d}`);const f={hour:24,minute:60,second:60,millisecond:1e3,microsecond:1e3,nanosecond:1e3}[d];return f!==void 0&&sn(c,f,!1),{largestUnit:s,roundingIncrement:c,roundingMode:u,smallestUnit:d}}function Po(n,t,e,r){const o=pn(e),i=un(n,M(r),"time",[],"nanosecond","second");let a=Pt(so(h(t,T),h(o,T),i.roundingIncrement,i.smallestUnit,i.roundingMode),i.largestUnit);return n==="since"&&(a=Rt(a)),a}function Ao(n,t,e,r){const o=gn(e),i=h(t,D),a=h(o,D);if(!Qt(i,a))throw new RangeError(`cannot compute difference between dates of ${i} and ${a} calendars`);const s=un(n,M(r),"date",[],"day","day"),c=et("%Temporal.Duration%"),u=h(t,C),d=h(o,C);if(Jt(u,d)===0)return new c;let m={date:Wn(i,u,d,s.largestUnit),time:N.ZERO};if(s.smallestUnit!=="day"||s.roundingIncrement!==1){const g=x(u,{deltaDays:0,hour:0,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0});m=Mr(m,tt(x(d,{deltaDays:0,hour:0,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0})),g,null,i,s.largestUnit,s.roundingIncrement,s.smallestUnit,s.roundingMode)}let f=Pt(m,"day");return n==="since"&&(f=Rt(f)),f}function Uo(n,t,e,r){const o=yn(e),i=h(t,D),a=h(o,D);if(!Qt(i,a))throw new RangeError(`cannot compute difference between dates of ${i} and ${a} calendars`);const s=un(n,M(r),"datetime",[],"nanosecond","day"),c=et("%Temporal.Duration%"),u=h(t,A),d=h(o,A);if(en(u,d)===0)return new c;let m=Pt(Hi(u,d,i,s.largestUnit,s.roundingIncrement,s.smallestUnit,s.roundingMode),s.largestUnit);return n==="since"&&(m=Rt(m)),m}function zo(n,t,e,r){const o=pe(e),i=un(n,M(r),"time",[],"nanosecond","hour");let a=ao(h(t,Z),h(o,Z));a=lr(a,i.roundingIncrement,i.smallestUnit,i.roundingMode);let s=Pt(ce({years:0,months:0,weeks:0,days:0},a),i.largestUnit);return n==="since"&&(s=Rt(s)),s}function Fo(n,t,e,r){const o=wn(e),i=h(t,D),a=h(o,D);if(!Qt(i,a))throw new RangeError(`cannot compute difference between months of ${i} and ${a} calendars`);const s=un(n,M(r),"date",["week","day"],"month","year"),c=et("%Temporal.Duration%");if(Jt(h(t,C),h(o,C))==0)return new c;const u=vt(i,h(t,C),"year-month");u.day=1;const d=_e(i,u,"constrain"),m=vt(i,h(o,C),"year-month");m.day=1;const f=_e(i,m,"constrain");let g={date:rt(Wn(i,d,f,s.largestUnit),0,0),time:N.ZERO};if(s.smallestUnit!=="month"||s.roundingIncrement!==1){const p=x(d,{deltaDays:0,hour:0,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0});g=Mr(g,tt(x(f,{deltaDays:0,hour:0,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0})),p,null,i,s.largestUnit,s.roundingIncrement,s.smallestUnit,s.roundingMode)}let y=Pt(g,"day");return n==="since"&&(y=Rt(y)),y}function Zo(n,t,e,r){const o=bn(e),i=h(t,D),a=h(o,D);if(!Qt(i,a))throw new RangeError(`cannot compute difference between dates of ${i} and ${a} calendars`);const s=un(n,M(r),"datetime",[],"nanosecond","hour"),c=h(t,T),u=h(o,T),d=et("%Temporal.Duration%");let m;if(oe(s.largestUnit)!=="date")m=Pt(so(c,u,s.roundingIncrement,s.smallestUnit,s.roundingMode),s.largestUnit);else{const f=h(t,j);if(!Ni(f,h(o,j)))throw new RangeError("When calculating difference between time zones, largestUnit must be 'hours' or smaller because day lengths can vary between time zones due to DST or time zone offset changes.");if(l.equal(c,u))return new d;m=Pt(Wi(c,u,f,i,s.largestUnit,s.roundingIncrement,s.smallestUnit,s.roundingMode),"hour")}return n==="since"&&(m=Rt(m)),m}function tn({hour:n,minute:t,second:e,millisecond:r,microsecond:o,nanosecond:i},a){let s=e,c=i;return s+=a.sec,c+=a.subsec,ye(n,t,s,r,o,c)}function Gr(n,t){const e=t.addToEpochNs(n);return Bt(e),e}function vn(n,t,e,r,o="constrain"){if(Dr(r.date)===0)return Gr(n,r.time);const i=zt(t,n);return Gr(ot(t,x(Lt(e,i.isoDate,r.date,o),i.time),"compatible"),r.time)}function qo(n,t,e){let r=Ut(e);n==="subtract"&&(r=Rt(r));const o=se(re(t),re(r));if(Wt(o))throw new RangeError("For years, months, or weeks arithmetic, use date arithmetic relative to a starting point");const i=St(t),a=St(r);return Pt(ce({years:0,months:0,weeks:0,days:0},i.time.add(a.time)),o)}function Ho(n,t,e){let r=Ut(e);n==="subtract"&&(r=Rt(r));const o=re(r);if(oe(o)==="date")throw new RangeError(`Duration field ${o} not supported by Temporal.Instant. Try Temporal.ZonedDateTime instead.`);const i=St(r);return Vt(Gr(h(t,T),i.time))}function Wo(n,t,e,r){const o=h(t,D);let i=Ut(e);n==="subtract"&&(i=Rt(i));const a=zi(i),s=L(M(r));return wt(Lt(o,h(t,C),a,s),o)}function Go(n,t,e,r){let o=Ut(e);n==="subtract"&&(o=Rt(o));const i=L(M(r)),a=h(t,D),s=St(o),c=h(t,A),u=tn(c.time,s.time),d=rt(s.date,u.deltaDays);return Er(d.years,d.months,d.weeks,d.days,0,0,0,0,0,0),It(x(Lt(a,c.isoDate,d,i),u),a)}function Vo(n,t,e){let r=Ut(e);n==="subtract"&&(r=Rt(r));const o=St(r),{hour:i,minute:a,second:s,millisecond:c,microsecond:u,nanosecond:d}=tn(h(t,Z),o.time);return ie(br(i,a,s,c,u,d,"reject"))}function So(n,t,e,r){let o=Ut(e);n==="subtract"&&(o=Rt(o));const i=L(M(r)),a=ur(o),s=h(t,D),c=vt(s,h(t,C),"year-month");c.day=1;let u=_e(s,c,"constrain");if(a<0){const m=Lt(s,u,{months:1},"constrain");u=$t(m.year,m.month,m.day-1)}const d=zi(o);return Pe(u),Se(kn(s,vt(s,Lt(s,u,d,i),"year-month"),i),s)}function Xo(n,t,e,r){let o=Ut(e);n==="subtract"&&(o=Rt(o));const i=L(M(r)),a=h(t,j),s=h(t,D),c=We(o);return nt(vn(h(t,T),a,s,c,i),a,s)}function we(n,t,e){const r=Math.trunc(n/t),o=n%t,i=n<0?"negative":"positive",a=Math.abs(r),s=a+1,c=Ct(Math.abs(2*o)-t),u=a%2==0,d=fr(e,i),m=o===0?a:gr(a,s,c,u,d);return t*(i==="positive"?m:-m)}function Vr(n,t,e,r){const o=Je[e]*t;return function(i,a,s){const c=ne(i),u=ne(a),d=l.divide(c,u),m=l.remainder(c,u),f=fr(s,"positive");let g,y;l.lessThan(c,Nt)?(g=l.subtract(d,On),y=d):(g=d,y=l.add(d,On));const p=er(Ce(l.multiply(m,Br)),u)*(l.lessThan(c,Nt)?-1:1)+0,w=l.equal(m,Nt)?d:gr(g,y,p,ei(g),f);return l.multiply(w,u)}(n,l.BigInt(o),r)}function Sr(n,t,e,r){Wr(n);const{year:o,month:i,day:a}=n.isoDate,s=Xr(n.time,t,e,r);return x($t(o,i,a+s.deltaDays),s)}function Xr({hour:n,minute:t,second:e,millisecond:r,microsecond:o,nanosecond:i},a,s,c){let u;switch(s){case"day":case"hour":u=1e3*(1e3*(1e3*(60*(60*n+t)+e)+r)+o)+i;break;case"minute":u=1e3*(1e3*(1e3*(60*t+e)+r)+o)+i;break;case"second":u=1e3*(1e3*(1e3*e+r)+o)+i;break;case"millisecond":u=1e3*(1e3*r+o)+i;break;case"microsecond":u=1e3*o+i;break;case"nanosecond":u=i}const d=Je[s],m=we(u,d*a,c)/d;switch(s){case"day":return{deltaDays:m,hour:0,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0};case"hour":return ye(m,0,0,0,0,0);case"minute":return ye(n,m,0,0,0,0);case"second":return ye(n,t,m,0,0,0);case"millisecond":return ye(n,t,e,m,0,0);case"microsecond":return ye(n,t,e,r,m,0);case"nanosecond":return ye(n,t,e,r,o,m);default:throw new Error(`Invalid unit ${s}`)}}function lr(n,t,e,r){const o=Je[e];return n.round(l.BigInt(o*t),r)}function Cn(n,t){const e=Je[t];return n.fdiv(l.BigInt(e))}function Jt(n,t){return n.year!==t.year?Ct(n.year-t.year):n.month!==t.month?Ct(n.month-t.month):n.day!==t.day?Ct(n.day-t.day):0}function Kr(n,t){return n.hour!==t.hour?Ct(n.hour-t.hour):n.minute!==t.minute?Ct(n.minute-t.minute):n.second!==t.second?Ct(n.second-t.second):n.millisecond!==t.millisecond?Ct(n.millisecond-t.millisecond):n.microsecond!==t.microsecond?Ct(n.microsecond-t.microsecond):n.nanosecond!==t.nanosecond?Ct(n.nanosecond-t.nanosecond):0}function en(n,t){const e=Jt(n.isoDate,t.isoDate);return e!==0?e:Kr(n.time,t.time)}function Gi(n){const t=hr(n);return globalThis.BigInt!==void 0?globalThis.BigInt(t.toString(10)):t}function Ft(n,t){const e=ne(n),{quotient:r,remainder:o}=mn(e,Pn);let i=l.toNumber(r);return t==="floor"&&l.toNumber(o)<0&&(i-=1),t==="ceil"&&l.toNumber(o)>0&&(i+=1),i}function Xt(n){if(!Number.isInteger(n))throw new RangeError("epoch milliseconds must be an integer");return l.multiply(l.BigInt(n),Pn)}function hr(n){let t=n;if(typeof n=="object"){const e=n[Symbol.toPrimitive];e&&typeof e=="function"&&(t=e.call(n,"number"))}if(typeof t=="number")throw new TypeError("cannot convert number to bigint");return typeof t=="bigint"?l.BigInt(t.toString(10)):l.BigInt(t)}const Qr=(()=>{let n=l.BigInt(Date.now()%1e6);return()=>{const t=Date.now(),e=l.BigInt(t),r=l.add(Xt(t),n);return n=l.remainder(e,Pn),l.greaterThan(r,Qe)?Qe:l.lessThan(r,$n)?$n:r}})();function hn(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}function Ct(n){return n<0?-1:n>0?1:n}function M(n){if(n===void 0)return Object.create(null);if(q(n)&&n!==null)return n;throw new TypeError("Options parameter must be an object, not "+(n===null?"null":typeof n))}function xe(n,t){const e=Object.create(null);return e[n]=t,e}function ue(n,t,e,r){let o=n[t];if(o!==void 0){if(o=pr(o),!e.includes(o))throw new RangeError(`${t} must be one of ${e.join(", ")}, not ${o}`);return o}if(r===he)throw new RangeError(`${t} option is required`);return r}function _t(n){const t=xn(n);if(!Ea.includes(xn(t)))throw new RangeError(`invalid calendar identifier ${t}`);switch(t){case"ethiopic-amete-alem":return"ethioaa";case"islamicc":return"islamic-civil"}return t}function xn(n){let t="";for(let e=0;e<n.length;e++){const r=n.charCodeAt(e);t+=r>=65&&r<=90?String.fromCharCode(r+32):String.fromCharCode(r)}return t}function Me(n){throw new TypeError(`Do not use built-in arithmetic operators with Temporal objects. When comparing, use ${n==="PlainMonthDay"?"Temporal.PlainDate.compare(obj1.toPlainDate(year), obj2.toPlainDate(year))":`Temporal.${n}.compare(obj1, obj2)`}, not obj1 > obj2. When coercing to strings, use \`\${obj}\` or String(obj), not '' + obj. When coercing to numbers, use properties or methods of the object, not \`+obj\`. When concatenating with strings, use \`\${str}\${obj}\` or str.concat(obj), not str + obj. In React, coerce to a string before rendering a Temporal object.`)}const ka=new RegExp(`^${gi.source}$`),Ya=new RegExp(`^${/([+-])([01][0-9]|2[0-3])(?::?([0-5][0-9])(?::?([0-5][0-9])(?:[.,](\d{1,9}))?)?)?/.source}$`);function Vi(n,t,e,r=n(t),o=n(e)){let i=t,a=e,s=r,c=o;for(;a-i>1;){let u=Math.trunc((i+a)/2);const d=n(u);d===s?(i=u,s=d):d===c&&(a=u,c=d)}return a}function Si(n){return[...n]}function Xi(n,t){if(n!=="gregory"&&n!=="iso8601")return;const e=Xn[n];let r=t.year;const{dayOfWeek:o,dayOfYear:i,daysInYear:a}=e.isoToDate(t,{dayOfWeek:!0,dayOfYear:!0,daysInYear:!0}),s=e.getFirstDayOfWeek(),c=e.getMinimalDaysInFirstWeek();let u=(o+7-s)%7,d=(o-i+7001-s)%7,m=Math.floor((i-1+d)/7);if(7-d>=c&&++m,m==0)m=function(f,g,y,p){let w=(p-f-y+1)%7;w<0&&(w+=7);let v=Math.floor((y+w-1)/7);return 7-w>=g&&++v,v}(s,c,i+e.isoToDate(e.dateAdd(t,{years:-1},"constrain"),{daysInYear:!0}).daysInYear,o),r--;else if(i>=a-5){let f=(u+a-i)%7;f<0&&(f+=7),6-f>=c&&i+7-u>a&&(m=1,r++)}return{week:m,year:r}}function Ko(n,t,e,r,o){if(t!==o.year){if(n*(t-o.year)>0)return!0}else if(e!==o.month){if(n*(e-o.month)>0)return!0}else if(r!==o.day&&n*(r-o.day)>0)return!0;return!1}const Xn={};function je(n){if(!n.startsWith("M"))throw new RangeError(`Invalid month code: ${n}. Month codes must start with M.`);const t=+n.slice(1);if(Number.isNaN(t))throw new RangeError(`Invalid month code: ${n}`);return t}function Kt(n,t=!1){return`M${`${n}`.padStart(2,"0")}${t?"L":""}`}function co(n,t=void 0,e=12){let{month:r,monthCode:o}=n;if(o===void 0){if(r===void 0)throw new TypeError("Either month or monthCode are required");t==="reject"&&X(r,1,e),t==="constrain"&&(r=pt(r,1,e)),o=Kt(r)}else{const i=je(o);if(o!==Kt(i))throw new RangeError(`Invalid month code: ${o}`);if(r!==void 0&&r!==i)throw new RangeError(`monthCode ${o} and month ${r} must match if both are present`);if(r=i,r<1||r>e)throw new RangeError(`Invalid monthCode: ${o}`)}return{...n,month:r,monthCode:o}}Xn.iso8601={resolveFields(n,t){if((t==="date"||t==="year-month")&&n.year===void 0)throw new TypeError("year is required");if((t==="date"||t==="month-day")&&n.day===void 0)throw new TypeError("day is required");Object.assign(n,co(n))},dateToISO:(n,t)=>Mn(n.year,n.month,n.day,t),monthDayToISOReferenceDate(n,t){const{month:e,day:r}=Mn(n.year??1972,n.month,n.day,t);return{month:e,day:r,year:1972}},extraFields:()=>[],fieldKeysToIgnore(n){const t=new Set;for(let e=0;e<n.length;e++){const r=n[e];t.add(r),r==="month"?t.add("monthCode"):r==="monthCode"&&t.add("month")}return Si(t)},dateAdd(n,{years:t=0,months:e=0,weeks:r=0,days:o=0},i){let{year:a,month:s,day:c}=n;return a+=t,s+=e,{year:a,month:s}=Oe(a,s),{year:a,month:s,day:c}=Mn(a,s,c,i),c+=o+7*r,$t(a,s,c)},dateUntil(n,t,e){const r=-Jt(n,t);if(r===0)return{years:0,months:0,weeks:0,days:0};let o,i=0,a=0;if(e==="year"||e==="month"){let d=t.year-n.year;for(d!==0&&(d-=r);!Ko(r,n.year+d,n.month,n.day,t);)i=d,d+=r;let m=r;for(o=Oe(n.year+i,n.month+m);!Ko(r,o.year,o.month,n.day,t);)a=m,m+=r,o=Oe(o.year,o.month+r);e==="month"&&(a+=12*i,i=0)}o=Oe(n.year+i,n.month+a);const s=Ui(o.year,o.month,n.day);let c=0,u=Le(t.year,t.month-1,t.day)-Le(s.year,s.month-1,s.day);return e==="week"&&(c=Math.trunc(u/7),u%=7),{years:i,months:a,weeks:c,days:u}},isoToDate({year:n,month:t,day:e},r){const o={era:void 0,eraYear:void 0,year:n,month:t,day:e,daysInWeek:7,monthsInYear:12};if(r.monthCode&&(o.monthCode=Kt(t)),r.dayOfWeek){const i=t+(t<3?10:-2),a=n-(t<3?1:0),s=Math.floor(a/100),c=a-100*s,u=(e+Math.floor(2.6*i-.2)+(c+Math.floor(c/4))+(Math.floor(s/4)-2*s))%7;o.dayOfWeek=u+(u<=0?7:0)}if(r.dayOfYear){let i=e;for(let a=t-1;a>0;a--)i+=Re(n,a);o.dayOfYear=i}return r.weekOfYear&&(o.weekOfYear=Xi("iso8601",{year:n,month:t,day:e})),r.daysInMonth&&(o.daysInMonth=Re(n,t)),(r.daysInYear||r.inLeapYear)&&(o.inLeapYear=cr(n),o.daysInYear=o.inLeapYear?366:365),o},getFirstDayOfWeek:()=>1,getMinimalDaysInFirstWeek:()=>4};class S{constructor(t){if(this.map=new Map,this.calls=0,this.hits=0,this.misses=0,t!==void 0){let e=0;for(const r of t.map.entries()){if(++e>S.MAX_CACHE_ENTRIES)break;this.map.set(...r)}}}get(t){const e=this.map.get(t);return e&&(this.hits++,this.report()),this.calls++,e}set(t,e){this.map.set(t,e),this.misses++,this.report()}report(){}setObject(t){if(S.objectMap.get(t))throw new RangeError("object already cached");S.objectMap.set(t,this),this.report()}static getCacheForObject(t){let e=S.objectMap.get(t);return e||(e=new S,S.objectMap.set(t,e)),e}}function Ki({isoYear:n,isoMonth:t,isoDay:e}){return`${Sn(n)}-${xt(t)}-${xt(e)}T00:00Z`}function kr(n,t){return{years:n.year-t.year,months:n.month-t.month,days:n.day-t.day}}S.objectMap=new WeakMap,S.MAX_CACHE_ENTRIES=1e3;class Ae{constructor(){this.eras=[],this.hasEra=!1,this.erasBeginMidYear=!1}getFormatter(){return this.formatter===void 0&&(this.formatter=new Intl.DateTimeFormat(`en-US-u-ca-${this.id}`,{day:"numeric",month:"numeric",year:"numeric",era:"short",timeZone:"UTC"})),this.formatter}getCalendarParts(t){let e=this.getFormatter(),r=new Date(t);if(t==="-271821-04-19T00:00Z"){const o=e.resolvedOptions();e=new Intl.DateTimeFormat(o.locale,{...o,timeZone:"Etc/GMT+1"}),r=new Date("-271821-04-20T00:00Z")}try{return e.formatToParts(r)}catch{throw new RangeError(`Invalid ISO date: ${t}`)}}isoToCalendarDate(t,e){const{year:r,month:o,day:i}=t,a=JSON.stringify({func:"isoToCalendarDate",isoYear:r,isoMonth:o,isoDay:i,id:this.id}),s=e.get(a);if(s)return s;const c=Ki({isoYear:r,isoMonth:o,isoDay:i}),u=this.getCalendarParts(c),d={};for(let f=0;f<u.length;f++){const{type:g,value:y}=u[f];if(g!=="year"&&g!=="relatedYear"||(this.hasEra?d.eraYear=+y:d.year=+y),g==="month"){const p=/^([0-9]*)(.*?)$/.exec(y);if(!p||p.length!=3||!p[1]&&!p[2])throw new RangeError(`Unexpected month: ${y}`);if(d.month=p[1]?+p[1]:1,d.month<1)throw new RangeError(`Invalid month ${y} from ${c}[u-ca-${this.id}] (probably due to https://bugs.chromium.org/p/v8/issues/detail?id=10527)`);if(d.month>13)throw new RangeError(`Invalid month ${y} from ${c}[u-ca-${this.id}] (probably due to https://bugs.chromium.org/p/v8/issues/detail?id=10529)`);p[2]&&(d.monthExtra=p[2])}g==="day"&&(d.day=+y),this.hasEra&&g==="era"&&y!=null&&y!==""&&(d.era=y.split(" (")[0].normalize("NFD").replace(/[^-0-9 \p{L}]/gu,"").replace(/ /g,"-").toLowerCase())}if(this.hasEra&&d.eraYear===void 0)throw new RangeError(`Intl.DateTimeFormat.formatToParts lacks relatedYear in ${this.id} calendar. Try Node 14+ or modern browsers.`);if(this.hasEra){const f=this.eras.find(g=>d.era===g.genericName);f&&(d.era=f.code)}if(this.reviseIntlEra){const{era:f,eraYear:g}=this.reviseIntlEra(d,t);d.era=f,d.eraYear=g}this.checkIcuBugs&&this.checkIcuBugs(t);const m=this.adjustCalendarDate(d,e,"constrain",!0);if(m.year===void 0)throw new RangeError(`Missing year converting ${JSON.stringify(t)}`);if(m.month===void 0)throw new RangeError(`Missing month converting ${JSON.stringify(t)}`);if(m.day===void 0)throw new RangeError(`Missing day converting ${JSON.stringify(t)}`);return e.set(a,m),["constrain","reject"].forEach(f=>{const g=JSON.stringify({func:"calendarToIsoDate",year:m.year,month:m.month,day:m.day,overflow:f,id:this.id});e.set(g,t)}),m}validateCalendarDate(t){const{month:e,year:r,day:o,eraYear:i,monthCode:a,monthExtra:s}=t;if(s!==void 0)throw new RangeError("Unexpected `monthExtra` value");if(r===void 0&&i===void 0)throw new TypeError("year or eraYear is required");if(e===void 0&&a===void 0)throw new TypeError("month or monthCode is required");if(o===void 0)throw new RangeError("Missing day");if(a!==void 0){if(typeof a!="string")throw new RangeError("monthCode must be a string, not "+typeof a);if(!/^M([01]?\d)(L?)$/.test(a))throw new RangeError(`Invalid monthCode: ${a}`)}if(this.hasEra&&t.era===void 0!=(t.eraYear===void 0))throw new TypeError("properties era and eraYear must be provided together")}adjustCalendarDate(t,e=void 0,r="constrain",o=!1){if(this.calendarType==="lunisolar")throw new RangeError("Override required for lunisolar calendars");let i=t;this.validateCalendarDate(i);const a=this.monthsInYear(i,e);let{month:s,monthCode:c}=i;return{month:s,monthCode:c}=co(i,r,a),{...i,month:s,monthCode:c}}regulateMonthDayNaive(t,e,r){const o=this.monthsInYear(t,r);let{month:i,day:a}=t;return e==="reject"?(X(i,1,o),X(a,1,this.maximumMonthLength(t))):(i=pt(i,1,o),a=pt(a,1,this.maximumMonthLength({...t,month:i}))),{...t,month:i,day:a}}calendarToIsoDate(t,e="constrain",r){const o=t;let i=this.adjustCalendarDate(t,r,e,!1);i=this.regulateMonthDayNaive(i,e,r);const{year:a,month:s,day:c}=i,u=JSON.stringify({func:"calendarToIsoDate",year:a,month:s,day:c,overflow:e,id:this.id});let d,m=r.get(u);if(m||o.year!==void 0&&o.month!==void 0&&o.day!==void 0&&(o.year!==i.year||o.month!==i.month||o.day!==i.day)&&(d=JSON.stringify({func:"calendarToIsoDate",year:o.year,month:o.month,day:o.day,overflow:e,id:this.id}),m=r.get(d),m))return m;let f=this.estimateIsoDate({year:a,month:s,day:c});const g=_=>{let E=this.addDaysIso(f,_);if(i.day>this.minimumMonthLength(i)){let O=this.isoToCalendarDate(E,r);for(;O.month!==s||O.year!==a;){if(e==="reject")throw new RangeError(`day ${c} does not exist in month ${s} of year ${a}`);E=this.addDaysIso(E,-1),O=this.isoToCalendarDate(E,r)}}return E};let y=0,p=this.isoToCalendarDate(f,r),w=kr(i,p);if(w.years!==0||w.months!==0||w.days!==0){const _=365*w.years+30*w.months+w.days;f=this.addDaysIso(f,_),p=this.isoToCalendarDate(f,r),w=kr(i,p),w.years===0&&w.months===0?f=g(w.days):y=this.compareCalendarDates(i,p)}let v=8;for(;y;){f=this.addDaysIso(f,y*v);const _=p;p=this.isoToCalendarDate(f,r);const E=y;if(y=this.compareCalendarDates(i,p),y){if(w=kr(i,p),w.years===0&&w.months===0)f=g(w.days),y=0;else if(E&&y!==E)if(v>1)v/=2;else{if(e==="reject")throw new RangeError(`Can't find ISO date from calendar date: ${JSON.stringify({...o})}`);this.compareCalendarDates(p,_)>0&&(f=this.addDaysIso(f,-1)),y=0}}}if(r.set(u,f),d&&r.set(d,f),i.year===void 0||i.month===void 0||i.day===void 0||i.monthCode===void 0||this.hasEra&&(i.era===void 0||i.eraYear===void 0))throw new RangeError("Unexpected missing property");return f}compareCalendarDates(t,e){return t.year!==e.year?Ct(t.year-e.year):t.month!==e.month?Ct(t.month-e.month):t.day!==e.day?Ct(t.day-e.day):0}regulateDate(t,e="constrain",r){const o=this.calendarToIsoDate(t,e,r);return this.isoToCalendarDate(o,r)}addDaysIso(t,e){return $t(t.year,t.month,t.day+e)}addDaysCalendar(t,e,r){const o=this.calendarToIsoDate(t,"constrain",r),i=this.addDaysIso(o,e);return this.isoToCalendarDate(i,r)}addMonthsCalendar(t,e,r,o){let i=t;const{day:a}=i;for(let s=0,c=Math.abs(e);s<c;s++){const{month:u}=i,d=i,m=e<0?-Math.max(a,this.daysInPreviousMonth(i,o)):this.daysInMonth(i,o),f=this.calendarToIsoDate(i,"constrain",o);let g=this.addDaysIso(f,m);if(i=this.isoToCalendarDate(g,o),e>0){const y=this.monthsInYear(d,o);for(;i.month-1!=u%y;)g=this.addDaysIso(g,-1),i=this.isoToCalendarDate(g,o)}i.day!==a&&(i=this.regulateDate({...i,day:a},"constrain",o))}if(r==="reject"&&i.day!==a)throw new RangeError(`Day ${a} does not exist in resulting calendar month`);return i}addCalendar(t,{years:e=0,months:r=0,weeks:o=0,days:i=0},a,s){const{year:c,day:u,monthCode:d}=t,m=this.adjustCalendarDate({year:c+e,monthCode:d,day:u},s),f=this.addMonthsCalendar(m,r,a,s),g=i+7*o;return this.addDaysCalendar(f,g,s)}untilCalendar(t,e,r,o){let i=0,a=0,s=0,c=0;switch(r){case"day":i=this.calendarDaysUntil(t,e,o);break;case"week":{const u=this.calendarDaysUntil(t,e,o);i=u%7,a=(u-i)/7;break}case"month":case"year":{const u=this.compareCalendarDates(e,t);if(!u)return{years:0,months:0,weeks:0,days:0};const d=e.year-t.year,m=e.day-t.day;if(r==="year"&&d){let y=0;e.monthCode>t.monthCode&&(y=1),e.monthCode<t.monthCode&&(y=-1),y||(y=Math.sign(m)),c=y*u<0?d-u:d}let f,g=c?this.addCalendar(t,{years:c},"constrain",o):t;do s+=u,f=g,g=this.addMonthsCalendar(f,u,"constrain",o),g.day!==t.day&&(g=this.regulateDate({...g,day:t.day},"constrain",o));while(this.compareCalendarDates(e,g)*u>=0);s-=u,i=this.calendarDaysUntil(f,e,o);break}}return{years:c,months:s,weeks:a,days:i}}daysInMonth(t,e){const{day:r}=t,o=this.maximumMonthLength(t),i=this.minimumMonthLength(t);if(i===o)return i;const a=r<=o-i?o:i,s=this.calendarToIsoDate(t,"constrain",e),c=this.addDaysIso(s,a),u=this.isoToCalendarDate(c,e),d=this.addDaysIso(c,-u.day);return this.isoToCalendarDate(d,e).day}daysInPreviousMonth(t,e){const{day:r,month:o,year:i}=t;let a={year:o>1?i:i-1,month:o,day:1};const s=o>1?o-1:this.monthsInYear(a,e);a={...a,month:s};const c=this.minimumMonthLength(a),u=this.maximumMonthLength(a);if(c===u)return u;const d=this.calendarToIsoDate(t,"constrain",e),m=this.addDaysIso(d,-r);return this.isoToCalendarDate(m,e).day}startOfCalendarYear(t){return{year:t.year,month:1,monthCode:"M01",day:1}}startOfCalendarMonth(t){return{year:t.year,month:t.month,day:1}}calendarDaysUntil(t,e,r){const o=this.calendarToIsoDate(t,"constrain",r),i=this.calendarToIsoDate(e,"constrain",r);return Le(i.year,i.month-1,i.day)-Le(o.year,o.month-1,o.day)}monthDaySearchStartYear(t,e){return 1972}monthDayFromFields(t,e,r){let o,i,a,s,c,{era:u,eraYear:d,year:m,month:f,monthCode:g,day:y}=t;if(f!==void 0&&m===void 0&&(!this.hasEra||u===void 0||d===void 0))throw new TypeError("when month is present, year (or era and eraYear) are required");(g===void 0||m!==void 0||this.hasEra&&d!==void 0)&&({monthCode:g,day:y}=this.isoToCalendarDate(this.calendarToIsoDate(t,e,r),r));const p={year:this.monthDaySearchStartYear(g,y),month:12,day:31},w=this.isoToCalendarDate(p,r),v=w.monthCode>g||w.monthCode===g&&w.day>=y?w.year:w.year-1;for(let _=0;_<20;_++){const E=this.adjustCalendarDate({day:y,monthCode:g,year:v-_},r),O=this.calendarToIsoDate(E,"constrain",r),R=this.isoToCalendarDate(O,r);if({year:o,month:i,day:a}=O,R.monthCode===g&&R.day===y)return{month:i,day:a,year:o};if(e==="constrain"){const W=this.maxLengthOfMonthCodeInAnyYear(R.monthCode);if(R.monthCode===g&&R.day===W&&y>W)return{month:i,day:a,year:o};(s===void 0||R.monthCode===s.monthCode&&R.day>s.day)&&(s=R,c=O)}}if(e==="constrain"&&c!==void 0)return c;throw new RangeError(`No recent ${this.id} year with monthCode ${g} and day ${y}`)}getFirstDayOfWeek(){}getMinimalDaysInFirstWeek(){}}class Na extends Ae{constructor(){super(...arguments),this.id="hebrew",this.calendarType="lunisolar",this.months={Tishri:{leap:1,regular:1,monthCode:"M01",days:30},Heshvan:{leap:2,regular:2,monthCode:"M02",days:{min:29,max:30}},Kislev:{leap:3,regular:3,monthCode:"M03",days:{min:29,max:30}},Tevet:{leap:4,regular:4,monthCode:"M04",days:29},Shevat:{leap:5,regular:5,monthCode:"M05",days:30},Adar:{leap:void 0,regular:6,monthCode:"M06",days:29},"Adar I":{leap:6,regular:void 0,monthCode:"M05L",days:30},"Adar II":{leap:7,regular:void 0,monthCode:"M06",days:29},Nisan:{leap:8,regular:7,monthCode:"M07",days:30},Iyar:{leap:9,regular:8,monthCode:"M08",days:29},Sivan:{leap:10,regular:9,monthCode:"M09",days:30},Tamuz:{leap:11,regular:10,monthCode:"M10",days:29},Av:{leap:12,regular:11,monthCode:"M11",days:30},Elul:{leap:13,regular:12,monthCode:"M12",days:29}}}inLeapYear(t){const{year:e}=t;return(7*e+1)%19<7}monthsInYear(t){return this.inLeapYear(t)?13:12}minimumMonthLength(t){return this.minMaxMonthLength(t,"min")}maximumMonthLength(t){return this.minMaxMonthLength(t,"max")}minMaxMonthLength(t,e){const{month:r,year:o}=t,i=this.getMonthCode(o,r),a=Object.entries(this.months).find(c=>c[1].monthCode===i);if(a===void 0)throw new RangeError(`unmatched Hebrew month: ${r}`);const s=a[1].days;return typeof s=="number"?s:s[e]}maxLengthOfMonthCodeInAnyYear(t){return["M04","M06","M08","M10","M12"].includes(t)?29:30}estimateIsoDate(t){const{year:e}=t;return{year:e-3760,month:1,day:1}}getMonthCode(t,e){return this.inLeapYear({year:t})?e===6?Kt(5,!0):Kt(e<6?e:e-1):Kt(e)}adjustCalendarDate(t,e,r="constrain",o=!1){let{year:i,month:a,monthCode:s,day:c,monthExtra:u}=t;if(i===void 0)throw new TypeError("Missing property: year");if(o){if(u){const d=this.months[u];if(!d)throw new RangeError(`Unrecognized month from formatToParts: ${u}`);a=this.inLeapYear({year:i})?d.leap:d.regular}return s=this.getMonthCode(i,a),{year:i,month:a,day:c,monthCode:s}}if(this.validateCalendarDate(t),a===void 0)if(s.endsWith("L")){if(s!=="M05L")throw new RangeError(`Hebrew leap month must have monthCode M05L, not ${s}`);if(a=6,!this.inLeapYear({year:i})){if(r==="reject")throw new RangeError(`Hebrew monthCode M05L is invalid in year ${i} which is not a leap year`);a=6,s="M06"}}else{a=je(s),this.inLeapYear({year:i})&&a>=6&&a++;const d=this.monthsInYear({year:i});if(a<1||a>d)throw new RangeError(`Invalid monthCode: ${s}`)}else if(r==="reject"?(X(a,1,this.monthsInYear({year:i})),X(c,1,this.maximumMonthLength({year:i,month:a}))):(a=pt(a,1,this.monthsInYear({year:i})),c=pt(c,1,this.maximumMonthLength({year:i,month:a}))),s===void 0)s=this.getMonthCode(i,a);else if(this.getMonthCode(i,a)!==s)throw new RangeError(`monthCode ${s} doesn't correspond to month ${a} in Hebrew year ${i}`);return{...t,day:c,month:a,monthCode:s,year:i}}}class ln extends Ae{constructor(){super(...arguments),this.calendarType="lunar",this.DAYS_PER_ISLAMIC_YEAR=354+11/30,this.DAYS_PER_ISO_YEAR=365.2425}inLeapYear(t,e){const r={year:t.year,month:1,monthCode:"M01",day:1},o={year:t.year+1,month:1,monthCode:"M01",day:1};return this.calendarDaysUntil(r,o,e)===355}monthsInYear(){return 12}minimumMonthLength(){return 29}maximumMonthLength(){return 30}maxLengthOfMonthCodeInAnyYear(){return 30}estimateIsoDate(t){const{year:e}=this.adjustCalendarDate(t);return{year:Math.floor(e*this.DAYS_PER_ISLAMIC_YEAR/this.DAYS_PER_ISO_YEAR)+622,month:1,day:1}}}class La extends ln{constructor(){super(...arguments),this.id="islamic"}}class xa extends ln{constructor(){super(...arguments),this.id="islamic-umalqura"}}class ja extends ln{constructor(){super(...arguments),this.id="islamic-tbla"}}class Ia extends ln{constructor(){super(...arguments),this.id="islamic-civil"}}class Pa extends ln{constructor(){super(...arguments),this.id="islamic-rgsa"}}class Aa extends ln{constructor(){super(...arguments),this.id="islamicc"}}class Ua extends Ae{constructor(){super(...arguments),this.id="persian",this.calendarType="solar"}inLeapYear(t,e){return this.daysInMonth({year:t.year,month:12,day:1},e)===30}monthsInYear(){return 12}minimumMonthLength(t){const{month:e}=t;return e===12?29:e<=6?31:30}maximumMonthLength(t){const{month:e}=t;return e===12?30:e<=6?31:30}maxLengthOfMonthCodeInAnyYear(t){return je(t)<=6?31:30}estimateIsoDate(t){const{year:e}=this.adjustCalendarDate(t);return{year:e+621,month:1,day:1}}}class za extends Ae{constructor(){super(...arguments),this.id="indian",this.calendarType="solar",this.months={1:{length:30,month:3,day:22,leap:{length:31,month:3,day:21}},2:{length:31,month:4,day:21},3:{length:31,month:5,day:22},4:{length:31,month:6,day:22},5:{length:31,month:7,day:23},6:{length:31,month:8,day:23},7:{length:30,month:9,day:23},8:{length:30,month:10,day:23},9:{length:30,month:11,day:22},10:{length:30,month:12,day:22},11:{length:30,month:1,nextYear:!0,day:21},12:{length:30,month:2,nextYear:!0,day:20}},this.vulnerableToBceBug=new Date("0000-01-01T00:00Z").toLocaleDateString("en-US-u-ca-indian",{timeZone:"UTC"})!=="10/11/-79 Saka"}inLeapYear(t){return uo(t.year+78)}monthsInYear(){return 12}minimumMonthLength(t){return this.getMonthInfo(t).length}maximumMonthLength(t){return this.getMonthInfo(t).length}maxLengthOfMonthCodeInAnyYear(t){const e=je(t);let r=this.months[e];return r=r.leap??r,r.length}getMonthInfo(t){const{month:e}=t;let r=this.months[e];if(r===void 0)throw new RangeError(`Invalid month: ${e}`);return this.inLeapYear(t)&&r.leap&&(r=r.leap),r}estimateIsoDate(t){const e=this.adjustCalendarDate(t),r=this.getMonthInfo(e);return $t(e.year+78+(r.nextYear?1:0),r.month,r.day+e.day-1)}checkIcuBugs(t){if(this.vulnerableToBceBug&&t.year<1)throw new RangeError(`calendar '${this.id}' is broken for ISO dates before 0001-01-01 (see https://bugs.chromium.org/p/v8/issues/detail?id=10529)`)}}function uo(n){return n%4==0&&(n%100!=0||n%400==0)}class Qi extends Ae{constructor(t,e){super(),this.calendarType="solar",this.id=t,this.isoEpoch=e}inLeapYear(t){const{year:e}=this.estimateIsoDate({month:1,day:1,year:t.year});return uo(e)}monthsInYear(){return 12}minimumMonthLength(t){const{month:e}=t;return e===2?this.inLeapYear(t)?29:28:[4,6,9,11].indexOf(e)>=0?30:31}maximumMonthLength(t){return this.minimumMonthLength(t)}maxLengthOfMonthCodeInAnyYear(t){return[31,29,31,30,31,30,31,31,30,31,30,31][je(t)-1]}estimateIsoDate(t){const e=this.adjustCalendarDate(t);return Mn(e.year+this.isoEpoch.year,e.month+this.isoEpoch.month,e.day+this.isoEpoch.day,"constrain")}}class Bi extends Ae{constructor(t,e){super(),this.hasEra=!0,this.calendarType="solar",this.id=t;const{eras:r,anchorEra:o}=function(i){let a,s=i;if(s.length===0)throw new RangeError("Invalid era data: eras are required");if(s.length===1&&s[0].reverseOf)throw new RangeError("Invalid era data: anchor era cannot count years backwards");if(s.length===1&&!s[0].code)throw new RangeError("Invalid era data: at least one named era is required");if(s.filter(u=>u.reverseOf!=null).length>1)throw new RangeError("Invalid era data: only one era can count years backwards");s.forEach(u=>{if(u.isAnchor||!u.anchorEpoch&&!u.reverseOf){if(a)throw new RangeError("Invalid era data: cannot have multiple anchor eras");a=u,u.anchorEpoch={year:u.hasYearZero?0:1}}else if(!u.code)throw new RangeError("If era name is blank, it must be the anchor era")}),s=s.filter(u=>u.code),s.forEach(u=>{const{reverseOf:d}=u;if(d){const m=s.find(f=>f.code===d);if(m===void 0)throw new RangeError(`Invalid era data: unmatched reverseOf era: ${d}`);u.reverseOf=m,u.anchorEpoch=m.anchorEpoch,u.isoEpoch=m.isoEpoch}u.anchorEpoch.month===void 0&&(u.anchorEpoch.month=1),u.anchorEpoch.day===void 0&&(u.anchorEpoch.day=1)}),s.sort((u,d)=>{if(u.reverseOf)return 1;if(d.reverseOf)return-1;if(!u.isoEpoch||!d.isoEpoch)throw new RangeError("Invalid era data: missing ISO epoch");return d.isoEpoch.year-u.isoEpoch.year});const c=s[s.length-1].reverseOf;if(c&&c!==s[s.length-2])throw new RangeError("Invalid era data: invalid reverse-sign era");return s.forEach((u,d)=>{u.genericName="era"+(s.length-1-d)}),{eras:s,anchorEra:a||s[0]}}(e);this.anchorEra=o,this.eras=r}inLeapYear(t){const{year:e}=this.estimateIsoDate({month:1,day:1,year:t.year});return uo(e)}monthsInYear(){return 12}minimumMonthLength(t){const{month:e}=t;return e===2?this.inLeapYear(t)?29:28:[4,6,9,11].indexOf(e)>=0?30:31}maximumMonthLength(t){return this.minimumMonthLength(t)}maxLengthOfMonthCodeInAnyYear(t){return[31,29,31,30,31,30,31,31,30,31,30,31][je(t)-1]}completeEraYear(t){const e=(s,c,u)=>{const d=t[s];if(d!=null&&d!=c&&!(u||[]).includes(d)){const m=u==null?void 0:u[0];throw new RangeError(`Input ${s} ${d} doesn't match calculated value ${m?`${c} (also called ${m})`:c}`)}},r=s=>{let c;const u={...t,year:s},d=this.eras.find((m,f)=>{if(f===this.eras.length-1){if(m.reverseOf){if(s>0)throw new RangeError(`Signed year ${s} is invalid for era ${m.code}`);return c=m.anchorEpoch.year-s,!0}return c=s-m.anchorEpoch.year+(m.hasYearZero?0:1),!0}return this.compareCalendarDates(u,m.anchorEpoch)>=0&&(c=s-m.anchorEpoch.year+(m.hasYearZero?0:1),!0)});if(!d)throw new RangeError(`Year ${s} was not matched by any era`);return{eraYear:c,era:d.code,eraNames:d.names}};let{year:o,eraYear:i,era:a}=t;if(o!=null){const s=r(o);({eraYear:i,era:a}=s),e("era",a,s==null?void 0:s.eraNames),e("eraYear",i)}else{if(i==null)throw new RangeError("Either year or eraYear and era are required");{if(a===void 0)throw new RangeError("era and eraYear must be provided together");const s=this.eras.find(({code:c,names:u=[]})=>c===a||u.includes(a));if(!s)throw new RangeError(`Era ${a} (ISO year ${i}) was not matched by any era`);o=s.reverseOf?s.anchorEpoch.year-i:i+s.anchorEpoch.year-(s.hasYearZero?0:1),e("year",o),{eraYear:i,era:a}=r(o)}}return{...t,year:o,eraYear:i,era:a}}adjustCalendarDate(t,e,r="constrain"){let o=t;const{month:i,monthCode:a}=o;return i===void 0&&(o={...o,month:je(a)}),this.validateCalendarDate(o),o=this.completeEraYear(o),super.adjustCalendarDate(o,e,r)}estimateIsoDate(t){const e=this.adjustCalendarDate(t),{year:r,month:o,day:i}=e,{anchorEra:a}=this;return Mn(r+a.isoEpoch.year-(a.hasYearZero?0:1),o,i,"constrain")}}class lo extends Bi{constructor(t,e){super(t,e)}isoToCalendarDate(t){const{year:e,month:r,day:o}=t,i=Kt(r),a=e-this.anchorEra.isoEpoch.year+1;return this.completeEraYear({year:a,month:r,monthCode:i,day:o})}}const Gt={inLeapYear(n){const{year:t}=n;return(t+1)%4==0},monthsInYear:()=>13,minimumMonthLength(n){const{month:t}=n;return t===13?this.inLeapYear(n)?6:5:30},maximumMonthLength(n){return this.minimumMonthLength(n)},maxLengthOfMonthCodeInAnyYear:n=>n==="M13"?6:30};class Fa extends Qi{constructor(t,e){super(t,e),this.inLeapYear=Gt.inLeapYear,this.monthsInYear=Gt.monthsInYear,this.minimumMonthLength=Gt.minimumMonthLength,this.maximumMonthLength=Gt.maximumMonthLength,this.maxLengthOfMonthCodeInAnyYear=Gt.maxLengthOfMonthCodeInAnyYear}}class Ji extends Bi{constructor(t,e){super(t,e),this.inLeapYear=Gt.inLeapYear,this.monthsInYear=Gt.monthsInYear,this.minimumMonthLength=Gt.minimumMonthLength,this.maximumMonthLength=Gt.maximumMonthLength,this.maxLengthOfMonthCodeInAnyYear=Gt.maxLengthOfMonthCodeInAnyYear}}class Za extends Fa{constructor(){super("ethioaa",{year:-5492,month:7,day:17})}}class qa extends Ji{constructor(){super("coptic",[{code:"coptic",isoEpoch:{year:284,month:8,day:29}},{code:"coptic-inverse",reverseOf:"coptic"}])}}class Ha extends Ji{constructor(){super("ethiopic",[{code:"ethioaa",names:["ethiopic-amete-alem","mundi"],isoEpoch:{year:-5492,month:7,day:17}},{code:"ethiopic",names:["incar"],isoEpoch:{year:8,month:8,day:27},anchorEpoch:{year:5501}}])}}class Wa extends lo{constructor(){super("roc",[{code:"roc",names:["minguo"],isoEpoch:{year:1912,month:1,day:1}},{code:"roc-inverse",names:["before-roc"],reverseOf:"roc"}])}}class Ga extends Qi{constructor(){super("buddhist",{year:-543,month:1,day:1})}}class Va extends lo{constructor(){super("gregory",[{code:"gregory",names:["ad","ce"],isoEpoch:{year:1,month:1,day:1}},{code:"gregory-inverse",names:["be","bce"],reverseOf:"gregory"}])}reviseIntlEra(t){let{era:e,eraYear:r}=t;return e==="b"&&(e="gregory-inverse"),e==="a"&&(e="gregory"),{era:e,eraYear:r}}getFirstDayOfWeek(){return 1}getMinimalDaysInFirstWeek(){return 1}}class Sa extends lo{constructor(){super("japanese",[{code:"reiwa",isoEpoch:{year:2019,month:5,day:1},anchorEpoch:{year:2019,month:5,day:1}},{code:"heisei",isoEpoch:{year:1989,month:1,day:8},anchorEpoch:{year:1989,month:1,day:8}},{code:"showa",isoEpoch:{year:1926,month:12,day:25},anchorEpoch:{year:1926,month:12,day:25}},{code:"taisho",isoEpoch:{year:1912,month:7,day:30},anchorEpoch:{year:1912,month:7,day:30}},{code:"meiji",isoEpoch:{year:1868,month:9,day:8},anchorEpoch:{year:1868,month:9,day:8}},{code:"japanese",names:["japanese","gregory","ad","ce"],isoEpoch:{year:1,month:1,day:1}},{code:"japanese-inverse",names:["japanese-inverse","gregory-inverse","bc","bce"],reverseOf:"japanese"}]),this.erasBeginMidYear=!0}reviseIntlEra(t,e){const{era:r,eraYear:o}=t,{year:i}=e;return this.eras.find(a=>a.code===r)?{era:r,eraYear:o}:i<1?{era:"japanese-inverse",eraYear:1-i}:{era:"japanese",eraYear:i}}}class ta extends Ae{constructor(){super(...arguments),this.calendarType="lunisolar"}inLeapYear(t,e){const r=this.getMonthList(t.year,e);return Object.entries(r).length===13}monthsInYear(t,e){return this.inLeapYear(t,e)?13:12}minimumMonthLength(){return 29}maximumMonthLength(){return 30}maxLengthOfMonthCodeInAnyYear(t){return["M01L","M09L","M10L","M11L","M12L"].includes(t)?29:30}monthDaySearchStartYear(t,e){const r={M01L:[1651,1651],M02L:[1947,1765],M03L:[1966,1955],M04L:[1963,1944],M05L:[1971,1952],M06L:[1960,1941],M07L:[1968,1938],M08L:[1957,1718],M09L:[1832,1832],M10L:[1870,1870],M11L:[1814,1814],M12L:[1890,1890]}[t]??[1972,1972];return e<30?r[0]:r[1]}getMonthList(t,e){if(t===void 0)throw new TypeError("Missing year");const r=JSON.stringify({func:"getMonthList",calendarYear:t,id:this.id}),o=e.get(r);if(o)return o;const i=this.getFormatter(),a=(w,v)=>{const _=Ki({isoYear:w,isoMonth:2,isoDay:1}),E=new Date(_);E.setUTCDate(v+1);const O=i.formatToParts(E),R=O.find(U=>U.type==="month").value,W=+O.find(U=>U.type==="day").value,K=O.find(U=>U.type==="relatedYear");let G;if(K===void 0)throw new RangeError(`Intl.DateTimeFormat.formatToParts lacks relatedYear in ${this.id} calendar. Try Node 14+ or modern browsers.`);return G=+K.value,{calendarMonthString:R,calendarDay:W,calendarYearToVerify:G}};let s=17,{calendarMonthString:c,calendarDay:u,calendarYearToVerify:d}=a(t,s);c!=="1"&&(s+=29,{calendarMonthString:c,calendarDay:u}=a(t,s)),s-=u-5;const m={};let f,g,y=1,p=!1;do({calendarMonthString:c,calendarDay:u,calendarYearToVerify:d}=a(t,s)),f&&(m[g].daysInMonth=f+30-u),d!==t?p=!0:(m[c]={monthIndex:y++},s+=30),f=u,g=c;while(!p);return m[g].daysInMonth=f+30-u,e.set(r,m),m}estimateIsoDate(t){const{year:e,month:r}=t;return{year:e,month:r>=12?12:r+1,day:1}}adjustCalendarDate(t,e,r="constrain",o=!1){let{year:i,month:a,monthExtra:s,day:c,monthCode:u}=t;if(i===void 0)throw new TypeError("Missing property: year");if(o){if(s&&s!=="bis")throw new RangeError(`Unexpected leap month suffix: ${s}`);const d=Kt(a,s!==void 0),m=`${a}${s||""}`,f=this.getMonthList(i,e)[m];if(f===void 0)throw new RangeError(`Unmatched month ${m} in Chinese year ${i}`);return a=f.monthIndex,{year:i,month:a,day:c,monthCode:d}}if(this.validateCalendarDate(t),a===void 0){const d=this.getMonthList(i,e);let m=u.replace(/^M|L$/g,g=>g==="L"?"bis":"");m[0]==="0"&&(m=m.slice(1));let f=d[m];if(a=f&&f.monthIndex,a===void 0&&u.endsWith("L")&&u!="M13L"&&r==="constrain"){const g=+u.replace(/^M0?|L$/g,"");f=d[g],f&&(a=f.monthIndex,u=Kt(g))}if(a===void 0)throw new RangeError(`Unmatched month ${u} in Chinese year ${i}`)}else if(u===void 0){const d=this.getMonthList(i,e),m=Object.entries(d),f=m.length;r==="reject"?(X(a,1,f),X(c,1,this.maximumMonthLength())):(a=pt(a,1,f),c=pt(c,1,this.maximumMonthLength()));const g=m.find(y=>y[1].monthIndex===a);if(g===void 0)throw new RangeError(`Invalid month ${a} in Chinese year ${i}`);u=Kt(+g[0].replace("bis",""),g[0].indexOf("bis")!==-1)}else{const d=this.getMonthList(i,e);let m=u.replace(/^M|L$/g,g=>g==="L"?"bis":"");m[0]==="0"&&(m=m.slice(1));const f=d[m];if(!f)throw new RangeError(`Unmatched monthCode ${u} in Chinese year ${i}`);if(a!==f.monthIndex)throw new RangeError(`monthCode ${u} doesn't correspond to month ${a} in Chinese year ${i}`)}return{...t,year:i,month:a,monthCode:u,day:c}}}class Xa extends ta{constructor(){super(...arguments),this.id="chinese"}}class Ka extends ta{constructor(){super(...arguments),this.id="dangi"}}class Qa{constructor(t){this.helper=t}extraFields(t){return this.helper.hasEra&&t.includes("year")?["era","eraYear"]:[]}resolveFields(t){if(this.helper.calendarType!=="lunisolar"){const e=new S;co(t,void 0,this.helper.monthsInYear({year:t.year??1972},e))}}dateToISO(t,e){const r=new S,o=this.helper.calendarToIsoDate(t,e,r);return r.setObject(o),o}monthDayToISOReferenceDate(t,e){const r=new S,o=this.helper.monthDayFromFields(t,e,r);return r.setObject(o),o}fieldKeysToIgnore(t){const e=new Set;for(let r=0;r<t.length;r++){const o=t[r];switch(e.add(o),o){case"era":e.add("eraYear"),e.add("year");break;case"eraYear":e.add("era"),e.add("year");break;case"year":e.add("era"),e.add("eraYear");break;case"month":e.add("monthCode"),this.helper.erasBeginMidYear&&(e.add("era"),e.add("eraYear"));break;case"monthCode":e.add("month"),this.helper.erasBeginMidYear&&(e.add("era"),e.add("eraYear"));break;case"day":this.helper.erasBeginMidYear&&(e.add("era"),e.add("eraYear"))}}return Si(e)}dateAdd(t,{years:e,months:r,weeks:o,days:i},a){const s=S.getCacheForObject(t),c=this.helper.isoToCalendarDate(t,s),u=this.helper.addCalendar(c,{years:e,months:r,weeks:o,days:i},a,s),d=this.helper.calendarToIsoDate(u,"constrain",s);return S.getCacheForObject(d)||new S(s).setObject(d),d}dateUntil(t,e,r){const o=S.getCacheForObject(t),i=S.getCacheForObject(e),a=this.helper.isoToCalendarDate(t,o),s=this.helper.isoToCalendarDate(e,i);return this.helper.untilCalendar(a,s,r,o)}isoToDate(t,e){const r=S.getCacheForObject(t),o=this.helper.isoToCalendarDate(t,r);if(e.dayOfWeek&&(o.dayOfWeek=Xn.iso8601.isoToDate(t,{dayOfWeek:!0}).dayOfWeek),e.dayOfYear){const i=this.helper.startOfCalendarYear(o),a=this.helper.calendarDaysUntil(i,o,r);o.dayOfYear=a+1}if(e.weekOfYear&&(o.weekOfYear=Xi(this.helper.id,t)),o.daysInWeek=7,e.daysInMonth&&(o.daysInMonth=this.helper.daysInMonth(o,r)),e.daysInYear){const i=this.helper.startOfCalendarYear(o),a=this.helper.addCalendar(i,{years:1},"constrain",r);o.daysInYear=this.helper.calendarDaysUntil(i,a,r)}return e.monthsInYear&&(o.monthsInYear=this.helper.monthsInYear(o,r)),e.inLeapYear&&(o.inLeapYear=this.helper.inLeapYear(o,r)),o}getFirstDayOfWeek(){return this.helper.getFirstDayOfWeek()}getMinimalDaysInFirstWeek(){return this.helper.getMinimalDaysInFirstWeek()}}for(const n of[Na,Ua,Ha,Za,qa,Xa,Ka,Wa,za,Ga,Va,Sa,La,xa,ja,Ia,Pa,Aa]){const t=new n;Xn[t.id]=new Qa(t)}Pr("calendarImpl",function(n){return Xn[n]});const jn=Intl.DateTimeFormat;function Fe(n,t){let e=h(n,t);return typeof e=="function"&&(e=new jn(h(n,hi),e(h(n,Lr))),function(r,o,i){const a=mr(r);if(a===void 0)throw new TypeError("Missing slots for the given container");if(a[o]===void 0)throw new TypeError(`tried to reset ${o} which was not set`);a[o]=i}(n,t,e)),e}function dn(n){return Dt(n,Ie)}class In{constructor(t=void 0,e=void 0){(function(r,o,i){const a=i!==void 0;let s;if(a){const m=["localeMatcher","calendar","numberingSystem","hour12","hourCycle","timeZone","weekday","era","year","month","day","dayPeriod","hour","minute","second","fractionalSecondDigits","timeZoneName","formatMatcher","dateStyle","timeStyle"];s=function(g){if(g==null)throw new TypeError(`Expected object not ${g}`);return Object(g)}(i);const f=Object.create(null);for(let g=0;g<m.length;g++){const y=m[g];Object.prototype.hasOwnProperty.call(s,y)&&(f[y]=s[y])}s=f}else s=Object.create(null);const c=new jn(o,s),u=c.resolvedOptions();if(de(r),a){const m=Object.assign(Object.create(null),u);for(const f in m)Object.prototype.hasOwnProperty.call(s,f)||delete m[f];m.hour12=s.hour12,m.hourCycle=s.hourCycle,k(r,Lr,m)}else k(r,Lr,s);k(r,hi,u.locale),k(r,Ie,c),k(r,He,u.timeZone),k(r,fn,u.calendar),k(r,ii,as),k(r,ai,os),k(r,si,is),k(r,ci,rs),k(r,ui,ss),k(r,li,cs);const d=a?s.timeZone:void 0;if(d===void 0)k(r,Nr,u.timeZone);else{const m=pr(d);if(m.startsWith("−"))throw new RangeError("Unicode minus (U+2212) is not supported in time zone offsets");k(r,Nr,bt(m))}})(this,t,e)}get format(){b(this,dn);const t=Ja.bind(this);return Object.defineProperties(t,{length:{value:1,enumerable:!1,writable:!1,configurable:!0},name:{value:"",enumerable:!1,writable:!1,configurable:!0}}),t}formatRange(t,e){return b(this,dn),es.call(this,t,e)}formatToParts(t,...e){return b(this,dn),ts.call(this,t,...e)}formatRangeToParts(t,e){return b(this,dn),ns.call(this,t,e)}resolvedOptions(){return b(this,dn),Ba.call(this)}}"formatToParts"in jn.prototype||delete In.prototype.formatToParts,"formatRangeToParts"in jn.prototype||delete In.prototype.formatRangeToParts;const At=function(n=void 0,t=void 0){return new In(n,t)};function Ba(){const n=h(this,Ie).resolvedOptions();return n.timeZone=h(this,Nr),n}function Ja(n,...t){let e,r,o=nn(n,this);return o.formatter?(e=o.formatter,r=[Ft(o.epochNs,"floor")]):(e=h(this,Ie),r=[n,...t]),e.format(...r)}function ts(n,...t){let e,r,o=nn(n,this);return o.formatter?(e=o.formatter,r=[Ft(o.epochNs,"floor")]):(e=h(this,Ie),r=[n,...t]),e.formatToParts(...r)}function es(n,t){if(n===void 0||t===void 0)throw new TypeError("Intl.DateTimeFormat.formatRange requires two values");const e=dr(n),r=dr(t);let o,i=[e,r];if(le(e)!==le(r))throw new TypeError("Intl.DateTimeFormat.formatRange accepts two values of the same type");if(le(e)){if(!ea(e,r))throw new TypeError("Intl.DateTimeFormat.formatRange accepts two values of the same type");const{epochNs:a,formatter:s}=nn(e,this),{epochNs:c,formatter:u}=nn(r,this);s&&(o=s,i=[Ft(a,"floor"),Ft(c,"floor")])}return o||(o=h(this,Ie)),o.formatRange(...i)}function ns(n,t){if(n===void 0||t===void 0)throw new TypeError("Intl.DateTimeFormat.formatRange requires two values");const e=dr(n),r=dr(t);let o,i=[e,r];if(le(e)!==le(r))throw new TypeError("Intl.DateTimeFormat.formatRangeToParts accepts two values of the same type");if(le(e)){if(!ea(e,r))throw new TypeError("Intl.DateTimeFormat.formatRangeToParts accepts two values of the same type");const{epochNs:a,formatter:s}=nn(e,this),{epochNs:c,formatter:u}=nn(r,this);s&&(o=s,i=[Ft(a,"floor"),Ft(c,"floor")])}return o||(o=h(this,Ie)),o.formatRangeToParts(...i)}function Kn(n={},t={}){const e=Object.assign({},n),r=["year","month","day","hour","minute","second","weekday","dayPeriod","timeZoneName","dateStyle","timeStyle"];for(let o=0;o<r.length;o++){const i=r[o];e[i]=i in t?t[i]:e[i],e[i]!==!1&&e[i]!==void 0||delete e[i]}return e}function rs(n){const t=Kn(n,{year:!1,month:!1,day:!1,weekday:!1,timeZoneName:!1,dateStyle:!1});if(t.timeStyle!=="long"&&t.timeStyle!=="full"||(delete t.timeStyle,Object.assign(t,{hour:"numeric",minute:"2-digit",second:"2-digit"})),!Cr(t)){if(Qn(n))throw new TypeError(`cannot format Temporal.PlainTime with options [${Object.keys(n)}]`);Object.assign(t,{hour:"numeric",minute:"numeric",second:"numeric"})}return t}function os(n){const t={short:{year:"2-digit",month:"numeric"},medium:{year:"numeric",month:"short"},long:{year:"numeric",month:"long"},full:{year:"numeric",month:"long"}},e=Kn(n,{day:!1,hour:!1,minute:!1,second:!1,weekday:!1,dayPeriod:!1,timeZoneName:!1,timeStyle:!1});if("dateStyle"in e&&e.dateStyle){const r=e.dateStyle;delete e.dateStyle,Object.assign(e,t[r])}if(!("year"in e||"month"in e||"era"in e)){if(Qn(n))throw new TypeError(`cannot format PlainYearMonth with options [${Object.keys(n)}]`);Object.assign(e,{year:"numeric",month:"numeric"})}return e}function is(n){const t={short:{month:"numeric",day:"numeric"},medium:{month:"short",day:"numeric"},long:{month:"long",day:"numeric"},full:{month:"long",day:"numeric"}},e=Kn(n,{year:!1,hour:!1,minute:!1,second:!1,weekday:!1,dayPeriod:!1,timeZoneName:!1,timeStyle:!1});if("dateStyle"in e&&e.dateStyle){const r=e.dateStyle;delete e.dateStyle,Object.assign(e,t[r])}if(!("month"in e)&&!("day"in e)){if(Qn(n))throw new TypeError(`cannot format PlainMonthDay with options [${Object.keys(n)}]`);Object.assign(e,{month:"numeric",day:"numeric"})}return e}function as(n){const t=Kn(n,{hour:!1,minute:!1,second:!1,dayPeriod:!1,timeZoneName:!1,timeStyle:!1});if(!Tr(t)){if(Qn(n))throw new TypeError(`cannot format PlainDate with options [${Object.keys(n)}]`);Object.assign(t,{year:"numeric",month:"numeric",day:"numeric"})}return t}function ss(n){const t=Kn(n,{timeZoneName:!1});if((t.timeStyle==="long"||t.timeStyle==="full")&&(delete t.timeStyle,Object.assign(t,{hour:"numeric",minute:"2-digit",second:"2-digit"}),t.dateStyle)&&(Object.assign(t,{short:{year:"numeric",month:"numeric",day:"numeric"},medium:{year:"numeric",month:"short",day:"numeric"},long:{year:"numeric",month:"long",day:"numeric"},full:{year:"numeric",month:"long",day:"numeric",weekday:"long"}}[t.dateStyle]),delete t.dateStyle),!Cr(t)&&!Tr(t)){if(Qn(n))throw new TypeError(`cannot format PlainDateTime with options [${Object.keys(n)}]`);Object.assign(t,{year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"})}return t}function cs(n){let t=n;return Cr(t)||Tr(t)||(t=Object.assign({},t,{year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"})),t}function Tr(n){return"year"in n||"month"in n||"day"in n||"weekday"in n||"dateStyle"in n||"era"in n}function Cr(n){return"hour"in n||"minute"in n||"second"in n||"timeStyle"in n||"dayPeriod"in n||"fractionalSecondDigits"in n}function Qn(n){return Tr(n)||Cr(n)||"dateStyle"in n||"timeStyle"in n||"timeZoneName"in n}function le(n){return F(n)||H(n)||I(n)||Y(n)||J(n)||Yt(n)||B(n)}function dr(n){return le(n)?n:yr(n)}function ea(n,t){return!(!le(n)||!le(t)||H(n)&&!H(t)||F(n)&&!F(t)||I(n)&&!I(t)||Y(n)&&!Y(t)||J(n)&&!J(t)||Yt(n)&&!Yt(t)||B(n)&&!B(t))}function nn(n,t){if(H(n)){const e={isoDate:{year:1970,month:1,day:1},time:h(n,Z)};return{epochNs:ot(h(t,He),e,"compatible"),formatter:Fe(t,ci)}}if(J(n)){const e=h(n,D),r=h(t,fn);if(e!==r)throw new RangeError(`cannot format PlainYearMonth with calendar ${e} in locale with calendar ${r}`);const o=x(h(n,C),{deltaDays:0,hour:12,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0});return{epochNs:ot(h(t,He),o,"compatible"),formatter:Fe(t,ai)}}if(Yt(n)){const e=h(n,D),r=h(t,fn);if(e!==r)throw new RangeError(`cannot format PlainMonthDay with calendar ${e} in locale with calendar ${r}`);const o=x(h(n,C),{deltaDays:0,hour:12,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0});return{epochNs:ot(h(t,He),o,"compatible"),formatter:Fe(t,si)}}if(F(n)){const e=h(n,D),r=h(t,fn);if(e!=="iso8601"&&e!==r)throw new RangeError(`cannot format PlainDate with calendar ${e} in locale with calendar ${r}`);const o=x(h(n,C),{deltaDays:0,hour:12,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0});return{epochNs:ot(h(t,He),o,"compatible"),formatter:Fe(t,ii)}}if(I(n)){const e=h(n,D),r=h(t,fn);if(e!=="iso8601"&&e!==r)throw new RangeError(`cannot format PlainDateTime with calendar ${e} in locale with calendar ${r}`);const o=h(n,A);return{epochNs:ot(h(t,He),o,"compatible"),formatter:Fe(t,ui)}}if(Y(n))throw new TypeError("Temporal.ZonedDateTime not supported in DateTimeFormat methods. Use toLocaleString() instead.");return B(n)?{epochNs:h(n,T),formatter:Fe(t,li)}:{}}function na(n){const t=Object.create(null);return t.years=h(n,ut),t.months=h(n,lt),t.weeks=h(n,Mt),t.days=h(n,ht),t.hours=h(n,dt),t.minutes=h(n,mt),t.seconds=h(n,ft),t.milliseconds=h(n,gt),t.microseconds=h(n,yt),t.nanoseconds=h(n,Tt),t}In.prototype.constructor=At,Object.defineProperty(At,"prototype",{value:In.prototype,writable:!1,enumerable:!1,configurable:!1}),At.supportedLocalesOf=jn.supportedLocalesOf,me(At,"Intl.DateTimeFormat");var Bo;const{format:us,formatToParts:ls}=((Bo=Intl.DurationFormat)==null?void 0:Bo.prototype)??Object.create(null);function ra(n){Intl.DurationFormat.prototype.resolvedOptions.call(this);const t=na(Ut(n));return us.call(this,t)}var Jo;(Jo=Intl.DurationFormat)!=null&&Jo.prototype&&(Intl.DurationFormat.prototype.format=ra,Intl.DurationFormat.prototype.formatToParts=function(n){Intl.DurationFormat.prototype.resolvedOptions.call(this);const t=na(Ut(n));return ls.call(this,t)});class ho{constructor(t){if(arguments.length<1)throw new TypeError("missing argument: epochNanoseconds is required");ki(this,hr(t))}get epochMilliseconds(){return b(this,B),Ft(h(this,T),"floor")}get epochNanoseconds(){return b(this,B),Gi(l.BigInt(h(this,T)))}add(t){return b(this,B),Ho("add",this,t)}subtract(t){return b(this,B),Ho("subtract",this,t)}until(t,e=void 0){return b(this,B),Po("until",this,t,e)}since(t,e=void 0){return b(this,B),Po("since",this,t,e)}round(t){if(b(this,B),t===void 0)throw new TypeError("options parameter is required");const e=typeof t=="string"?xe("smallestUnit",t):M(t),r=an(e),o=qt(e,"halfExpand"),i=Ot(e,"smallestUnit","time",he);return sn(r,{hour:24,minute:1440,second:86400,millisecond:864e5,microsecond:864e8,nanosecond:864e11}[i],!0),Vt(Vr(h(this,T),r,i,o))}equals(t){b(this,B);const e=pn(t),r=h(this,T),o=h(e,T);return l.equal(l.BigInt(r),l.BigInt(o))}toString(t=void 0){b(this,B);const e=M(t),r=Fn(e),o=qt(e,"trunc"),i=Ot(e,"smallestUnit","time",void 0);if(i==="hour")throw new RangeError('smallestUnit must be a time unit other than "hour"');let a=e.timeZone;a!==void 0&&(a=bt(a));const{precision:s,unit:c,increment:u}=Zn(i,r);return $o(Vt(Vr(h(this,T),u,c,o)),a,s)}toJSON(){return b(this,B),$o(this,void 0,"auto")}toLocaleString(t=void 0,e=void 0){return b(this,B),new At(t,e).format(this)}valueOf(){Me("Instant")}toZonedDateTimeISO(t){b(this,B);const e=bt(t);return nt(h(this,T),e,"iso8601")}static fromEpochMilliseconds(t){return Vt(Xt(yr(t)))}static fromEpochNanoseconds(t){return Vt(hr(t))}static from(t){return pn(t)}static compare(t,e){const r=pn(t),o=pn(e),i=h(r,T),a=h(o,T);return l.lessThan(i,a)?-1:l.greaterThan(i,a)?1:0}}me(ho,"Temporal.Instant");class mo{constructor(t,e,r,o="iso8601"){const i=$(t),a=$(e),s=$(r),c=_t(o===void 0?"iso8601":V(o));Ye(i,a,s),Ti(this,{year:i,month:a,day:s},c)}get calendarId(){return b(this,F),h(this,D)}get era(){return at(this,"era")}get eraYear(){return at(this,"eraYear")}get year(){return at(this,"year")}get month(){return at(this,"month")}get monthCode(){return at(this,"monthCode")}get day(){return at(this,"day")}get dayOfWeek(){return at(this,"dayOfWeek")}get dayOfYear(){return at(this,"dayOfYear")}get weekOfYear(){var t;return(t=at(this,"weekOfYear"))==null?void 0:t.week}get yearOfWeek(){var t;return(t=at(this,"weekOfYear"))==null?void 0:t.year}get daysInWeek(){return at(this,"daysInWeek")}get daysInMonth(){return at(this,"daysInMonth")}get daysInYear(){return at(this,"daysInYear")}get monthsInYear(){return at(this,"monthsInYear")}get inLeapYear(){return at(this,"inLeapYear")}with(t,e=void 0){if(b(this,F),!q(t))throw new TypeError("invalid argument");on(t);const r=h(this,D);let o=vt(r,h(this,C));return o=ke(r,o,jt(r,t,["year","month","monthCode","day"],[],"partial")),wt(_e(r,o,L(M(e))),r)}withCalendar(t){b(this,F);const e=Gn(t);return wt(h(this,C),e)}add(t,e=void 0){return b(this,F),Wo("add",this,t,e)}subtract(t,e=void 0){return b(this,F),Wo("subtract",this,t,e)}until(t,e=void 0){return b(this,F),Ao("until",this,t,e)}since(t,e=void 0){return b(this,F),Ao("since",this,t,e)}equals(t){b(this,F);const e=gn(t);return Jt(h(this,C),h(e,C))===0&&Qt(h(this,D),h(e,D))}toString(t=void 0){return b(this,F),Ro(this,zn(M(t)))}toJSON(){return b(this,F),Ro(this)}toLocaleString(t=void 0,e=void 0){return b(this,F),new At(t,e).format(this)}valueOf(){Me("PlainDate")}toPlainDateTime(t=void 0){b(this,F);const e=Mi(t);return It(x(h(this,C),e),h(this,D))}toZonedDateTime(t){let e,r;if(b(this,F),q(t)){const a=t.timeZone;a===void 0?e=bt(t):(e=bt(a),r=t.plainTime)}else e=bt(t);const o=h(this,C);let i;return r===void 0?i=ge(e,o):(r=pe(r),i=ot(e,x(o,h(r,Z)),"compatible")),nt(i,e,h(this,D))}toPlainYearMonth(){b(this,F);const t=h(this,D);return Se(kn(t,vt(t,h(this,C)),"constrain"),t)}toPlainMonthDay(){b(this,F);const t=h(this,D);return Ve(ar(t,vt(t,h(this,C)),"constrain"),t)}static from(t,e=void 0){return gn(t,e)}static compare(t,e){const r=gn(t),o=gn(e);return Jt(h(r,C),h(o,C))}}function at(n,t){b(n,F);const e=h(n,C);return qn(n).isoToDate(e,{[t]:!0})[t]}me(mo,"Temporal.PlainDate");class fo{constructor(t,e,r,o=0,i=0,a=0,s=0,c=0,u=0,d="iso8601"){const m=$(t),f=$(e),g=$(r),y=o===void 0?0:$(o),p=i===void 0?0:$(i),w=a===void 0?0:$(a),v=s===void 0?0:$(s),_=c===void 0?0:$(c),E=u===void 0?0:$(u),O=_t(d===void 0?"iso8601":V(d));oo(m,f,g,y,p,w,v,_,E),Ci(this,{isoDate:{year:m,month:f,day:g},time:{hour:y,minute:p,second:w,millisecond:v,microsecond:_,nanosecond:E}},O)}get calendarId(){return b(this,I),h(this,D)}get year(){return st(this,"year")}get month(){return st(this,"month")}get monthCode(){return st(this,"monthCode")}get day(){return st(this,"day")}get hour(){return Ze(this,"hour")}get minute(){return Ze(this,"minute")}get second(){return Ze(this,"second")}get millisecond(){return Ze(this,"millisecond")}get microsecond(){return Ze(this,"microsecond")}get nanosecond(){return Ze(this,"nanosecond")}get era(){return st(this,"era")}get eraYear(){return st(this,"eraYear")}get dayOfWeek(){return st(this,"dayOfWeek")}get dayOfYear(){return st(this,"dayOfYear")}get weekOfYear(){var t;return(t=st(this,"weekOfYear"))==null?void 0:t.week}get yearOfWeek(){var t;return(t=st(this,"weekOfYear"))==null?void 0:t.year}get daysInWeek(){return st(this,"daysInWeek")}get daysInYear(){return st(this,"daysInYear")}get daysInMonth(){return st(this,"daysInMonth")}get monthsInYear(){return st(this,"monthsInYear")}get inLeapYear(){return st(this,"inLeapYear")}with(t,e=void 0){if(b(this,I),!q(t))throw new TypeError("invalid argument");on(t);const r=h(this,D),o=h(this,A);let i={...vt(r,o.isoDate),...o.time};return i=ke(r,i,jt(r,t,["year","month","monthCode","day"],["hour","minute","second","millisecond","microsecond","nanosecond"],"partial")),It(Hn(r,i,L(M(e))),r)}withPlainTime(t=void 0){b(this,I);const e=Mi(t);return It(x(h(this,A).isoDate,e),h(this,D))}withCalendar(t){b(this,I);const e=Gn(t);return It(h(this,A),e)}add(t,e=void 0){return b(this,I),Go("add",this,t,e)}subtract(t,e=void 0){return b(this,I),Go("subtract",this,t,e)}until(t,e=void 0){return b(this,I),Uo("until",this,t,e)}since(t,e=void 0){return b(this,I),Uo("since",this,t,e)}round(t){if(b(this,I),t===void 0)throw new TypeError("options parameter is required");const e=typeof t=="string"?xe("smallestUnit",t):M(t),r=an(e),o=qt(e,"halfExpand"),i=Ot(e,"smallestUnit","time",he,["day"]),a={day:1,hour:24,minute:60,second:60,millisecond:1e3,microsecond:1e3,nanosecond:1e3}[i];sn(r,a,a===1);const s=h(this,A);return It(r===1&&i==="nanosecond"?s:Sr(s,r,i,o),h(this,D))}equals(t){b(this,I);const e=yn(t);return en(h(this,A),h(e,A))===0&&Qt(h(this,D),h(e,D))}toString(t=void 0){b(this,I);const e=M(t),r=zn(e),o=Fn(e),i=qt(e,"trunc"),a=Ot(e,"smallestUnit","time",void 0);if(a==="hour")throw new RangeError('smallestUnit must be a time unit other than "hour"');const{precision:s,unit:c,increment:u}=Zn(a,o),d=Sr(h(this,A),u,c,i);return Ne(d),Nn(d,h(this,D),s,r)}toJSON(){return b(this,I),Nn(h(this,A),h(this,D),"auto")}toLocaleString(t=void 0,e=void 0){return b(this,I),new At(t,e).format(this)}valueOf(){Me("PlainDateTime")}toZonedDateTime(t,e=void 0){b(this,I);const r=bt(t),o=Tn(M(e));return nt(ot(r,h(this,A),o),r,h(this,D))}toPlainDate(){return b(this,I),wt(h(this,A).isoDate,h(this,D))}toPlainTime(){return b(this,I),ie(h(this,A).time)}static from(t,e=void 0){return yn(t,e)}static compare(t,e){const r=yn(t),o=yn(e);return en(h(r,A),h(o,A))}}function st(n,t){b(n,I);const e=h(n,A).isoDate;return qn(n).isoToDate(e,{[t]:!0})[t]}function Ze(n,t){return b(n,I),h(n,A).time[t]}me(fo,"Temporal.PlainDateTime");class rn{constructor(t=0,e=0,r=0,o=0,i=0,a=0,s=0,c=0,u=0,d=0){const m=t===void 0?0:Zt(t),f=e===void 0?0:Zt(e),g=r===void 0?0:Zt(r),y=o===void 0?0:Zt(o),p=i===void 0?0:Zt(i),w=a===void 0?0:Zt(a),v=s===void 0?0:Zt(s),_=c===void 0?0:Zt(c),E=u===void 0?0:Zt(u),O=d===void 0?0:Zt(d);Er(m,f,g,y,p,w,v,_,E,O),de(this),k(this,ut,m),k(this,lt,f),k(this,Mt,g),k(this,ht,y),k(this,dt,p),k(this,mt,w),k(this,ft,v),k(this,gt,_),k(this,yt,E),k(this,Tt,O)}get years(){return b(this,z),h(this,ut)}get months(){return b(this,z),h(this,lt)}get weeks(){return b(this,z),h(this,Mt)}get days(){return b(this,z),h(this,ht)}get hours(){return b(this,z),h(this,dt)}get minutes(){return b(this,z),h(this,mt)}get seconds(){return b(this,z),h(this,ft)}get milliseconds(){return b(this,z),h(this,gt)}get microseconds(){return b(this,z),h(this,yt)}get nanoseconds(){return b(this,z),h(this,Tt)}get sign(){return b(this,z),ur(this)}get blank(){return b(this,z),ur(this)===0}with(t){b(this,z);const e=Ei(t),{years:r=h(this,ut),months:o=h(this,lt),weeks:i=h(this,Mt),days:a=h(this,ht),hours:s=h(this,dt),minutes:c=h(this,mt),seconds:u=h(this,ft),milliseconds:d=h(this,gt),microseconds:m=h(this,yt),nanoseconds:f=h(this,Tt)}=e;return new rn(r,o,i,a,s,c,u,d,m,f)}negated(){return b(this,z),Rt(this)}abs(){return b(this,z),new rn(Math.abs(h(this,ut)),Math.abs(h(this,lt)),Math.abs(h(this,Mt)),Math.abs(h(this,ht)),Math.abs(h(this,dt)),Math.abs(h(this,mt)),Math.abs(h(this,ft)),Math.abs(h(this,gt)),Math.abs(h(this,yt)),Math.abs(h(this,Tt)))}add(t){return b(this,z),qo("add",this,t)}subtract(t){return b(this,z),qo("subtract",this,t)}round(t){if(b(this,z),t===void 0)throw new TypeError("options parameter is required");const e=re(this),r=typeof t=="string"?xe("smallestUnit",t):M(t);let o=Ot(r,"largestUnit","datetime",void 0,["auto"]),{plainRelativeTo:i,zonedRelativeTo:a}=Rr(r);const s=an(r),c=qt(r,"halfExpand");let u=Ot(r,"smallestUnit","datetime",void 0),d=!0;u||(d=!1,u="nanosecond");const m=se(e,u);let f=!0;if(o||(f=!1,o=m),o==="auto"&&(o=m),!d&&!f)throw new RangeError("at least one of smallestUnit or largestUnit is required");if(se(o,u)!==o)throw new RangeError(`largestUnit ${o} cannot be smaller than smallestUnit ${u}`);const g={hour:24,minute:60,second:60,millisecond:1e3,microsecond:1e3,nanosecond:1e3}[u];if(g!==void 0&&sn(s,g,!1),s>1&&oe(u)==="date"&&o!==u)throw new RangeError("For calendar units with roundingIncrement > 1, use largestUnit = smallestUnit");if(a){let p=We(this);const w=h(a,j),v=h(a,D),_=h(a,T);return p=Wi(_,vn(_,w,v,p),w,v,o,s,u,c),oe(o)==="date"&&(o="hour"),Pt(p,o)}if(i){let p=St(this);const w=tn({hour:0,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0},p.time),v=h(i,C),_=h(i,D),E=Lt(_,v,rt(p.date,w.deltaDays),"constrain");return p=Hi(x(v,{deltaDays:0,hour:0,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0}),x(E,w),_,o,s,u,c),Pt(p,o)}if(Wt(e))throw new RangeError(`a starting point is required for ${e}s balancing`);if(Wt(o))throw new RangeError(`a starting point is required for ${o}s balancing`);let y=St(this);if(u==="day"){const{quotient:p,remainder:w}=y.time.divmod(rr);let v=y.date.days+p+Cn(w,"day");v=we(v,s,c),y=ce({years:0,months:0,weeks:0,days:v},N.ZERO)}else y=ce({years:0,months:0,weeks:0,days:0},lr(y.time,s,u,c));return Pt(y,o)}total(t){if(b(this,z),t===void 0)throw new TypeError("options argument is required");const e=typeof t=="string"?xe("unit",t):M(t);let{plainRelativeTo:r,zonedRelativeTo:o}=Rr(e);const i=Ot(e,"unit","datetime",he);if(o){const s=We(this),c=h(o,j),u=h(o,D),d=h(o,T);return function(m,f,g,y,p){return oe(p)==="time"?Cn(N.fromEpochNsDiff(f,m),p):Io(Zi(m,f,g,y,p),f,zt(g,m),g,y,p)}(d,vn(d,c,u,s),c,u,i)}if(r){const s=St(this);let c=tn({hour:0,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0},s.time);const u=h(r,C),d=h(r,D),m=Lt(d,u,rt(s.date,c.deltaDays),"constrain");return function(f,g,y,p){if(en(f,g)==0)return 0;Ne(f),Ne(g);const w=Fi(f,g,y,p);return p==="nanosecond"?l.toNumber(w.time.totalNs):Io(w,tt(g),f,null,y,p)}(x(u,{deltaDays:0,hour:0,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0}),x(m,c),d,i)}const a=re(this);if(Wt(a))throw new RangeError(`a starting point is required for ${a}s total`);if(Wt(i))throw new RangeError(`a starting point is required for ${i}s total`);return Cn(St(this).time,i)}toString(t=void 0){b(this,z);const e=M(t),r=Fn(e),o=qt(e,"trunc"),i=Ot(e,"smallestUnit","time",void 0);if(i==="hour"||i==="minute")throw new RangeError('smallestUnit must be a time unit other than "hours" or "minutes"');const{precision:a,unit:s,increment:c}=Zn(i,r);if(s==="nanosecond"&&c===1)return Jn(this,a);const u=re(this);let d=We(this);const m=lr(d.time,c,s,o);return d=ce(d.date,m),Jn(Pt(d,se(u,"second")),a)}toJSON(){return b(this,z),Jn(this,"auto")}toLocaleString(t=void 0,e=void 0){if(b(this,z),typeof Intl.DurationFormat=="function"){const r=new Intl.DurationFormat(t,e);return ra.call(r,this)}return console.warn("Temporal.Duration.prototype.toLocaleString() requires Intl.DurationFormat."),Jn(this,"auto")}valueOf(){Me("Duration")}static from(t){return Ut(t)}static compare(t,e,r=void 0){const o=Ut(t),i=Ut(e),a=M(r),{plainRelativeTo:s,zonedRelativeTo:c}=Rr(a);if(h(o,ut)===h(i,ut)&&h(o,lt)===h(i,lt)&&h(o,Mt)===h(i,Mt)&&h(o,ht)===h(i,ht)&&h(o,dt)===h(i,dt)&&h(o,mt)===h(i,mt)&&h(o,ft)===h(i,ft)&&h(o,gt)===h(i,gt)&&h(o,yt)===h(i,yt)&&h(o,Tt)===h(i,Tt))return 0;const u=re(o),d=re(i),m=We(o),f=We(i);if(c&&(oe(u)==="date"||oe(d)==="date")){const v=h(c,j),_=h(c,D),E=h(c,T),O=vn(E,v,_,m),R=vn(E,v,_,f);return Ct(l.toNumber(l.subtract(O,R)))}let g=m.date.days,y=f.date.days;if(Wt(u)||Wt(d)){if(!s)throw new RangeError("A starting point is required for years, months, or weeks comparison");g=jo(m.date,s),y=jo(f.date,s)}const p=m.time.add24HourDays(g),w=f.time.add24HourDays(y);return p.cmp(w)}}me(rn,"Temporal.Duration");class go{constructor(t,e,r="iso8601",o=1972){const i=$(t),a=$(e),s=_t(r===void 0?"iso8601":V(r)),c=$(o);Ye(c,i,a),Oi(this,{year:c,month:i,day:a},s)}get monthCode(){return Qo(this,"monthCode")}get day(){return Qo(this,"day")}get calendarId(){return b(this,Yt),h(this,D)}with(t,e=void 0){if(b(this,Yt),!q(t))throw new TypeError("invalid argument");on(t);const r=h(this,D);let o=vt(r,h(this,C),"month-day");return o=ke(r,o,jt(r,t,["year","month","monthCode","day"],[],"partial")),Ve(ar(r,o,L(M(e))),r)}equals(t){b(this,Yt);const e=Co(t);return Jt(h(this,C),h(e,C))===0&&Qt(h(this,D),h(e,D))}toString(t=void 0){return b(this,Yt),Yo(this,zn(M(t)))}toJSON(){return b(this,Yt),Yo(this)}toLocaleString(t=void 0,e=void 0){return b(this,Yt),new At(t,e).format(this)}valueOf(){Me("PlainMonthDay")}toPlainDate(t){if(b(this,Yt),!q(t))throw new TypeError("argument should be an object");const e=h(this,D);return wt(_e(e,ke(e,vt(e,h(this,C),"month-day"),jt(e,t,["year"],[],[])),"constrain"),e)}static from(t,e=void 0){return Co(t,e)}}function Qo(n,t){b(n,Yt);const e=h(n,C);return qn(n).isoToDate(e,{[t]:!0})[t]}function Yr(n){return zt(n,Qr())}me(go,"Temporal.PlainMonthDay");const oa={instant:()=>Vt(Qr()),plainDateTimeISO:(n=hn())=>It(Yr(bt(n)),"iso8601"),plainDateISO:(n=hn())=>wt(Yr(bt(n)).isoDate,"iso8601"),plainTimeISO:(n=hn())=>ie(Yr(bt(n)).time),timeZoneId:()=>hn(),zonedDateTimeISO:(n=hn())=>{const t=bt(n);return nt(Qr(),t,"iso8601")},[Symbol.toStringTag]:"Temporal.Now"};Object.defineProperty(oa,Symbol.toStringTag,{value:"Temporal.Now",writable:!1,enumerable:!1,configurable:!0});class Bn{constructor(t=0,e=0,r=0,o=0,i=0,a=0){const s=t===void 0?0:$(t),c=e===void 0?0:$(e),u=r===void 0?0:$(r),d=o===void 0?0:$(o),m=i===void 0?0:$(i),f=a===void 0?0:$(a);_r(s,c,u,d,m,f),$i(this,{hour:s,minute:c,second:u,millisecond:d,microsecond:m,nanosecond:f})}get hour(){return b(this,H),h(this,Z).hour}get minute(){return b(this,H),h(this,Z).minute}get second(){return b(this,H),h(this,Z).second}get millisecond(){return b(this,H),h(this,Z).millisecond}get microsecond(){return b(this,H),h(this,Z).microsecond}get nanosecond(){return b(this,H),h(this,Z).nanosecond}with(t,e=void 0){if(b(this,H),!q(t))throw new TypeError("invalid argument");on(t);const r=Fr(t,"partial"),o=Fr(this);let{hour:i,minute:a,second:s,millisecond:c,microsecond:u,nanosecond:d}=Object.assign(o,r);const m=L(M(e));return{hour:i,minute:a,second:s,millisecond:c,microsecond:u,nanosecond:d}=br(i,a,s,c,u,d,m),new Bn(i,a,s,c,u,d)}add(t){return b(this,H),Vo("add",this,t)}subtract(t){return b(this,H),Vo("subtract",this,t)}until(t,e=void 0){return b(this,H),zo("until",this,t,e)}since(t,e=void 0){return b(this,H),zo("since",this,t,e)}round(t){if(b(this,H),t===void 0)throw new TypeError("options parameter is required");const e=typeof t=="string"?xe("smallestUnit",t):M(t),r=an(e),o=qt(e,"halfExpand"),i=Ot(e,"smallestUnit","time",he);return sn(r,{hour:24,minute:60,second:60,millisecond:1e3,microsecond:1e3,nanosecond:1e3}[i],!1),ie(Xr(h(this,Z),r,i,o))}equals(t){b(this,H);const e=pe(t);return Kr(h(this,Z),h(e,Z))===0}toString(t=void 0){b(this,H);const e=M(t),r=Fn(e),o=qt(e,"trunc"),i=Ot(e,"smallestUnit","time",void 0);if(i==="hour")throw new RangeError('smallestUnit must be a time unit other than "hour"');const{precision:a,unit:s,increment:c}=Zn(i,r);return ko(Xr(h(this,Z),c,s,o),a)}toJSON(){return b(this,H),ko(h(this,Z),"auto")}toLocaleString(t=void 0,e=void 0){return b(this,H),new At(t,e).format(this)}valueOf(){Me("PlainTime")}static from(t,e=void 0){return pe(t,e)}static compare(t,e){const r=pe(t),o=pe(e);return Kr(h(r,Z),h(o,Z))}}me(Bn,"Temporal.PlainTime");class yo{constructor(t,e,r="iso8601",o=1){const i=$(t),a=$(e),s=_t(r===void 0?"iso8601":V(r)),c=$(o);Ye(i,a,c),Ri(this,{year:i,month:a,day:c},s)}get year(){return ee(this,"year")}get month(){return ee(this,"month")}get monthCode(){return ee(this,"monthCode")}get calendarId(){return b(this,J),h(this,D)}get era(){return ee(this,"era")}get eraYear(){return ee(this,"eraYear")}get daysInMonth(){return ee(this,"daysInMonth")}get daysInYear(){return ee(this,"daysInYear")}get monthsInYear(){return ee(this,"monthsInYear")}get inLeapYear(){return ee(this,"inLeapYear")}with(t,e=void 0){if(b(this,J),!q(t))throw new TypeError("invalid argument");on(t);const r=h(this,D);let o=vt(r,h(this,C),"year-month");return o=ke(r,o,jt(r,t,["year","month","monthCode"],[],"partial")),Se(kn(r,o,L(M(e))),r)}add(t,e=void 0){return b(this,J),So("add",this,t,e)}subtract(t,e=void 0){return b(this,J),So("subtract",this,t,e)}until(t,e=void 0){return b(this,J),Fo("until",this,t,e)}since(t,e=void 0){return b(this,J),Fo("since",this,t,e)}equals(t){b(this,J);const e=wn(t);return Jt(h(this,C),h(e,C))===0&&Qt(h(this,D),h(e,D))}toString(t=void 0){return b(this,J),No(this,zn(M(t)))}toJSON(){return b(this,J),No(this)}toLocaleString(t=void 0,e=void 0){return b(this,J),new At(t,e).format(this)}valueOf(){Me("PlainYearMonth")}toPlainDate(t){if(b(this,J),!q(t))throw new TypeError("argument should be an object");const e=h(this,D);return wt(_e(e,ke(e,vt(e,h(this,C),"year-month"),jt(e,t,["day"],[],[])),"constrain"),e)}static from(t,e=void 0){return wn(t,e)}static compare(t,e){const r=wn(t),o=wn(e);return Jt(h(r,C),h(o,C))}}function ee(n,t){b(n,J);const e=h(n,C);return qn(n).isoToDate(e,{[t]:!0})[t]}me(yo,"Temporal.PlainYearMonth");const hs=At.prototype.resolvedOptions;class po{constructor(t,e,r="iso8601"){if(arguments.length<1)throw new TypeError("missing argument: epochNanoseconds is required");const o=hr(t);let i=V(e);const{tzName:a,offsetMinutes:s}=be(i);if(s===void 0){const c=sr(a);if(!c)throw new RangeError(`unknown time zone ${a}`);i=c.identifier}else i=eo(s);Yi(this,o,i,_t(r===void 0?"iso8601":V(r)))}get calendarId(){return b(this,Y),h(this,D)}get timeZoneId(){return b(this,Y),h(this,j)}get year(){return ct(this,"year")}get month(){return ct(this,"month")}get monthCode(){return ct(this,"monthCode")}get day(){return ct(this,"day")}get hour(){return qe(this,"hour")}get minute(){return qe(this,"minute")}get second(){return qe(this,"second")}get millisecond(){return qe(this,"millisecond")}get microsecond(){return qe(this,"microsecond")}get nanosecond(){return qe(this,"nanosecond")}get era(){return ct(this,"era")}get eraYear(){return ct(this,"eraYear")}get epochMilliseconds(){return b(this,Y),Ft(h(this,T),"floor")}get epochNanoseconds(){return b(this,Y),Gi(h(this,T))}get dayOfWeek(){return ct(this,"dayOfWeek")}get dayOfYear(){return ct(this,"dayOfYear")}get weekOfYear(){var t;return(t=ct(this,"weekOfYear"))==null?void 0:t.week}get yearOfWeek(){var t;return(t=ct(this,"weekOfYear"))==null?void 0:t.year}get hoursInDay(){b(this,Y);const t=h(this,j),e=Ht(this).isoDate,r=$t(e.year,e.month,e.day+1),o=ge(t,e),i=ge(t,r);return Cn(N.fromEpochNsDiff(i,o),"hour")}get daysInWeek(){return ct(this,"daysInWeek")}get daysInMonth(){return ct(this,"daysInMonth")}get daysInYear(){return ct(this,"daysInYear")}get monthsInYear(){return ct(this,"monthsInYear")}get inLeapYear(){return ct(this,"inLeapYear")}get offset(){return b(this,Y),Zr(ae(h(this,j),h(this,T)))}get offsetNanoseconds(){return b(this,Y),ae(h(this,j),h(this,T))}with(t,e=void 0){if(b(this,Y),!q(t))throw new TypeError("invalid zoned-date-time-like");on(t);const r=h(this,D),o=h(this,j),i=ae(o,h(this,T)),a=Ht(this);let s={...vt(r,a.isoDate),...a.time,offset:Zr(i)};s=ke(r,s,jt(r,t,["year","month","monthCode","day"],["hour","minute","second","millisecond","microsecond","nanosecond","offset"],"partial"));const c=M(e),u=Tn(c),d=tr(c,"prefer"),m=Hn(r,s,L(c)),f=cn(s.offset);return nt(ir(m.isoDate,m.time,"option",f,o,u,d,!1),o,r)}withPlainTime(t=void 0){b(this,Y);const e=h(this,j),r=h(this,D),o=Ht(this).isoDate;let i;return i=t===void 0?ge(e,o):ot(e,x(o,h(pe(t),Z)),"compatible"),nt(i,e,r)}withTimeZone(t){b(this,Y);const e=bt(t);return nt(h(this,T),e,h(this,D))}withCalendar(t){b(this,Y);const e=Gn(t);return nt(h(this,T),h(this,j),e)}add(t,e=void 0){return b(this,Y),Xo("add",this,t,e)}subtract(t,e=void 0){return b(this,Y),Xo("subtract",this,t,e)}until(t,e=void 0){return b(this,Y),Zo("until",this,t,e)}since(t,e=void 0){return b(this,Y),Zo("since",this,t,e)}round(t){if(b(this,Y),t===void 0)throw new TypeError("options parameter is required");const e=typeof t=="string"?xe("smallestUnit",t):M(t),r=an(e),o=qt(e,"halfExpand"),i=Ot(e,"smallestUnit","time",he,["day"]),a={day:1,hour:24,minute:60,second:60,millisecond:1e3,microsecond:1e3,nanosecond:1e3}[i];if(sn(r,a,a===1),i==="nanosecond"&&r===1)return nt(h(this,T),h(this,j),h(this,D));const s=h(this,j),c=h(this,T),u=Ht(this);let d;if(i==="day"){const m=u.isoDate,f=$t(m.year,m.month,m.day+1),g=ge(s,m),y=ge(s,f),p=l.subtract(y,g);d=N.fromEpochNsDiff(c,g).round(p,o).addToEpochNs(g)}else{const m=Sr(u,r,i,o),f=ae(s,c);d=ir(m.isoDate,m.time,"option",f,s,"compatible","prefer",!1)}return nt(d,s,h(this,D))}equals(t){b(this,Y);const e=bn(t),r=h(this,T),o=h(e,T);return!!l.equal(l.BigInt(r),l.BigInt(o))&&!!Ni(h(this,j),h(e,j))&&Qt(h(this,D),h(e,D))}toString(t=void 0){b(this,Y);const e=M(t),r=zn(e),o=Fn(e),i=function(f){return ue(f,"offset",["auto","never"],"auto")}(e),a=qt(e,"trunc"),s=Ot(e,"smallestUnit","time",void 0);if(s==="hour")throw new RangeError('smallestUnit must be a time unit other than "hour"');const c=function(f){return ue(f,"timeZoneName",["auto","never","critical"],"auto")}(e),{precision:u,unit:d,increment:m}=Zn(s,o);return Lo(this,u,r,c,i,{unit:d,increment:m,roundingMode:a})}toLocaleString(t=void 0,e=void 0){b(this,Y);const r=M(e),o=Object.create(null);if(function(c,u,d,m){if(u==null)return;const f=Reflect.ownKeys(u);for(let g=0;g<f.length;g++){const y=f[g];if(!d.some(p=>Object.is(p,y))&&Object.prototype.propertyIsEnumerable.call(u,y)){const p=u[y];c[y]=p}}}(o,r,["timeZone"]),r.timeZone!==void 0)throw new TypeError("ZonedDateTime toLocaleString does not accept a timeZone option");if(o.year===void 0&&o.month===void 0&&o.day===void 0&&o.era===void 0&&o.weekday===void 0&&o.dateStyle===void 0&&o.hour===void 0&&o.minute===void 0&&o.second===void 0&&o.fractionalSecondDigits===void 0&&o.timeStyle===void 0&&o.dayPeriod===void 0&&o.timeZoneName===void 0&&(o.timeZoneName="short"),o.timeZone=h(this,j),xo(o.timeZone))throw new RangeError("toLocaleString does not currently support offset time zones");const i=new At(t,o),a=hs.call(i).calendar,s=h(this,D);if(s!=="iso8601"&&a!=="iso8601"&&!Qt(a,s))throw new RangeError(`cannot format ZonedDateTime with calendar ${s} in locale with calendar ${a}`);return i.format(Vt(h(this,T)))}toJSON(){return b(this,Y),Lo(this,"auto")}valueOf(){Me("ZonedDateTime")}startOfDay(){b(this,Y);const t=h(this,j);return nt(ge(t,Ht(this).isoDate),t,h(this,D))}getTimeZoneTransition(t){b(this,Y);const e=h(this,j);if(t===void 0)throw new TypeError("options parameter is required");const r=ue(typeof t=="string"?xe("direction",t):M(t),"direction",["next","previous"],he);if(r===void 0)throw new TypeError("direction option is required");if(xo(e)||e==="UTC")return null;const o=h(this,T),i=r==="next"?ro(e,o):Hr(e,o);return i===null?null:nt(i,e,h(this,D))}toInstant(){return b(this,Y),Vt(h(this,T))}toPlainDate(){return b(this,Y),wt(Ht(this).isoDate,h(this,D))}toPlainTime(){return b(this,Y),ie(Ht(this).time)}toPlainDateTime(){return b(this,Y),It(Ht(this),h(this,D))}static from(t,e=void 0){return bn(t,e)}static compare(t,e){const r=bn(t),o=bn(e),i=h(r,T),a=h(o,T);return l.lessThan(l.BigInt(i),l.BigInt(a))?-1:l.greaterThan(l.BigInt(i),l.BigInt(a))?1:0}}function Ht(n){return zt(h(n,j),h(n,T))}function ct(n,t){b(n,Y);const e=Ht(n).isoDate;return qn(n).isoToDate(e,{[t]:!0})[t]}function qe(n,t){return b(n,Y),Ht(n).time[t]}me(po,"Temporal.ZonedDateTime");var ds=Object.freeze({__proto__:null,Duration:rn,Instant:ho,Now:oa,PlainDate:mo,PlainDateTime:fo,PlainMonthDay:go,PlainTime:Bn,PlainYearMonth:yo,ZonedDateTime:po});const ms=[ho,mo,fo,rn,go,Bn,yo,po];for(const n of ms){const t=Object.getOwnPropertyDescriptor(n,"prototype");(t.configurable||t.enumerable||t.writable)&&(t.configurable=!1,t.enumerable=!1,t.writable=!1,Object.defineProperty(n,"prototype",t))}exports.Temporal=ds;