@anoki/fse-ui 1.0.706 → 1.0.708
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +1 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.cjs10.js +1 -1
- package/dist/index.cjs10.js.map +1 -1
- package/dist/index.cjs100.js +1 -1
- package/dist/index.cjs100.js.map +1 -1
- package/dist/index.cjs101.js +1 -1
- package/dist/index.cjs101.js.map +1 -1
- package/dist/index.cjs102.js +1 -1
- package/dist/index.cjs103.js +1 -1
- package/dist/index.cjs103.js.map +1 -1
- package/dist/index.cjs104.js +1 -1
- package/dist/index.cjs105.js +1 -1
- package/dist/index.cjs105.js.map +1 -1
- package/dist/index.cjs106.js +1 -1
- package/dist/index.cjs106.js.map +1 -1
- package/dist/index.cjs107.js +1 -1
- package/dist/index.cjs107.js.map +1 -1
- package/dist/index.cjs108.js +1 -1
- package/dist/index.cjs108.js.map +1 -1
- package/dist/index.cjs109.js +1 -1
- package/dist/index.cjs109.js.map +1 -1
- package/dist/index.cjs11.js +1 -1
- package/dist/index.cjs110.js +1 -1
- package/dist/index.cjs110.js.map +1 -1
- package/dist/index.cjs111.js +1 -1
- package/dist/index.cjs111.js.map +1 -1
- package/dist/index.cjs112.js +1 -1
- package/dist/index.cjs112.js.map +1 -1
- package/dist/index.cjs113.js +1 -1
- package/dist/index.cjs113.js.map +1 -1
- package/dist/index.cjs114.js +1 -1
- package/dist/index.cjs114.js.map +1 -1
- package/dist/index.cjs115.js +1 -1
- package/dist/index.cjs115.js.map +1 -1
- package/dist/index.cjs116.js +1 -1
- package/dist/index.cjs116.js.map +1 -1
- package/dist/index.cjs117.js +1 -1
- package/dist/index.cjs117.js.map +1 -1
- package/dist/index.cjs118.js +1 -1
- package/dist/index.cjs118.js.map +1 -1
- package/dist/index.cjs119.js +1 -1
- package/dist/index.cjs119.js.map +1 -1
- package/dist/index.cjs12.js +1 -1
- package/dist/index.cjs12.js.map +1 -1
- package/dist/index.cjs120.js +1 -1
- package/dist/index.cjs120.js.map +1 -1
- package/dist/index.cjs121.js +1 -1
- package/dist/index.cjs121.js.map +1 -1
- package/dist/index.cjs122.js +1 -1
- package/dist/index.cjs122.js.map +1 -1
- package/dist/index.cjs123.js +1 -1
- package/dist/index.cjs123.js.map +1 -1
- package/dist/index.cjs124.js +1 -1
- package/dist/index.cjs124.js.map +1 -1
- package/dist/index.cjs125.js +1 -1
- package/dist/index.cjs125.js.map +1 -1
- package/dist/index.cjs126.js +1 -1
- package/dist/index.cjs126.js.map +1 -1
- package/dist/index.cjs127.js +1 -1
- package/dist/index.cjs127.js.map +1 -1
- package/dist/index.cjs128.js +1 -1
- package/dist/index.cjs128.js.map +1 -1
- package/dist/index.cjs129.js +1 -1
- package/dist/index.cjs129.js.map +1 -1
- package/dist/index.cjs13.js +1 -1
- package/dist/index.cjs13.js.map +1 -1
- package/dist/index.cjs130.js +1 -1
- package/dist/index.cjs130.js.map +1 -1
- package/dist/index.cjs131.js +1 -1
- package/dist/index.cjs131.js.map +1 -1
- package/dist/index.cjs132.js +1 -1
- package/dist/index.cjs132.js.map +1 -1
- package/dist/index.cjs133.js +1 -1
- package/dist/index.cjs133.js.map +1 -1
- package/dist/index.cjs134.js +1 -1
- package/dist/index.cjs134.js.map +1 -1
- package/dist/index.cjs135.js +1 -1
- package/dist/index.cjs135.js.map +1 -1
- package/dist/index.cjs136.js +1 -1
- package/dist/index.cjs136.js.map +1 -1
- package/dist/index.cjs137.js +1 -1
- package/dist/index.cjs137.js.map +1 -1
- package/dist/index.cjs138.js +1 -1
- package/dist/index.cjs138.js.map +1 -1
- package/dist/index.cjs139.js +1 -1
- package/dist/index.cjs139.js.map +1 -1
- package/dist/index.cjs14.js +1 -1
- package/dist/index.cjs14.js.map +1 -1
- package/dist/index.cjs140.js +1 -1
- package/dist/index.cjs140.js.map +1 -1
- package/dist/index.cjs141.js +1 -1
- package/dist/index.cjs141.js.map +1 -1
- package/dist/index.cjs142.js +1 -1
- package/dist/index.cjs142.js.map +1 -1
- package/dist/index.cjs143.js +1 -1
- package/dist/index.cjs143.js.map +1 -1
- package/dist/index.cjs144.js +1 -1
- package/dist/index.cjs144.js.map +1 -1
- package/dist/index.cjs145.js +1 -1
- package/dist/index.cjs145.js.map +1 -1
- package/dist/index.cjs146.js +1 -1
- package/dist/index.cjs146.js.map +1 -1
- package/dist/index.cjs147.js +1 -1
- package/dist/index.cjs147.js.map +1 -1
- package/dist/index.cjs148.js +1 -1
- package/dist/index.cjs148.js.map +1 -1
- package/dist/index.cjs149.js +1 -1
- package/dist/index.cjs149.js.map +1 -1
- package/dist/index.cjs15.js +1 -1
- package/dist/index.cjs15.js.map +1 -1
- package/dist/index.cjs150.js +1 -1
- package/dist/index.cjs150.js.map +1 -1
- package/dist/index.cjs151.js +1 -1
- package/dist/index.cjs151.js.map +1 -1
- package/dist/index.cjs152.js +1 -1
- package/dist/index.cjs152.js.map +1 -1
- package/dist/index.cjs153.js +1 -1
- package/dist/index.cjs153.js.map +1 -1
- package/dist/index.cjs154.js +1 -1
- package/dist/index.cjs154.js.map +1 -1
- package/dist/index.cjs155.js +1 -1
- package/dist/index.cjs155.js.map +1 -1
- package/dist/index.cjs156.js +1 -1
- package/dist/index.cjs156.js.map +1 -1
- package/dist/index.cjs157.js +1 -1
- package/dist/index.cjs157.js.map +1 -1
- package/dist/index.cjs158.js +1 -1
- package/dist/index.cjs158.js.map +1 -1
- package/dist/index.cjs159.js +1 -1
- package/dist/index.cjs159.js.map +1 -1
- package/dist/index.cjs16.js +1 -1
- package/dist/index.cjs160.js +1 -1
- package/dist/index.cjs160.js.map +1 -1
- package/dist/index.cjs161.js +1 -1
- package/dist/index.cjs161.js.map +1 -1
- package/dist/index.cjs162.js +1 -1
- package/dist/index.cjs162.js.map +1 -1
- package/dist/index.cjs163.js +1 -1
- package/dist/index.cjs163.js.map +1 -1
- package/dist/index.cjs164.js +1 -1
- package/dist/index.cjs164.js.map +1 -1
- package/dist/index.cjs165.js +1 -1
- package/dist/index.cjs165.js.map +1 -1
- package/dist/index.cjs166.js +1 -1
- package/dist/index.cjs166.js.map +1 -1
- package/dist/index.cjs167.js +1 -1
- package/dist/index.cjs167.js.map +1 -1
- package/dist/index.cjs168.js +1 -1
- package/dist/index.cjs168.js.map +1 -1
- package/dist/index.cjs169.js +1 -1
- package/dist/index.cjs169.js.map +1 -1
- package/dist/index.cjs17.js +1 -1
- package/dist/index.cjs170.js +1 -1
- package/dist/index.cjs170.js.map +1 -1
- package/dist/index.cjs171.js +1 -1
- package/dist/index.cjs171.js.map +1 -1
- package/dist/index.cjs172.js +1 -1
- package/dist/index.cjs172.js.map +1 -1
- package/dist/index.cjs173.js +1 -1
- package/dist/index.cjs173.js.map +1 -1
- package/dist/index.cjs174.js +1 -1
- package/dist/index.cjs174.js.map +1 -1
- package/dist/index.cjs175.js +1 -1
- package/dist/index.cjs175.js.map +1 -1
- package/dist/index.cjs176.js +1 -1
- package/dist/index.cjs176.js.map +1 -1
- package/dist/index.cjs177.js +1 -1
- package/dist/index.cjs177.js.map +1 -1
- package/dist/index.cjs178.js +1 -1
- package/dist/index.cjs178.js.map +1 -1
- package/dist/index.cjs179.js +1 -1
- package/dist/index.cjs179.js.map +1 -1
- package/dist/index.cjs18.js +1 -1
- package/dist/index.cjs18.js.map +1 -1
- package/dist/index.cjs180.js +1 -1
- package/dist/index.cjs180.js.map +1 -1
- package/dist/index.cjs181.js +1 -1
- package/dist/index.cjs181.js.map +1 -1
- package/dist/index.cjs182.js +1 -1
- package/dist/index.cjs182.js.map +1 -1
- package/dist/index.cjs183.js +1 -1
- package/dist/index.cjs183.js.map +1 -1
- package/dist/index.cjs184.js +1 -1
- package/dist/index.cjs184.js.map +1 -1
- package/dist/index.cjs185.js +1 -1
- package/dist/index.cjs185.js.map +1 -1
- package/dist/index.cjs186.js +1 -1
- package/dist/index.cjs186.js.map +1 -1
- package/dist/index.cjs187.js +1 -1
- package/dist/index.cjs187.js.map +1 -1
- package/dist/index.cjs188.js +1 -1
- package/dist/index.cjs188.js.map +1 -1
- package/dist/index.cjs189.js +1 -1
- package/dist/index.cjs189.js.map +1 -1
- package/dist/index.cjs19.js +1 -1
- package/dist/index.cjs19.js.map +1 -1
- package/dist/index.cjs190.js +1 -1
- package/dist/index.cjs190.js.map +1 -1
- package/dist/index.cjs191.js +1 -1
- package/dist/index.cjs191.js.map +1 -1
- package/dist/index.cjs192.js +1 -1
- package/dist/index.cjs192.js.map +1 -1
- package/dist/index.cjs193.js +1 -1
- package/dist/index.cjs193.js.map +1 -1
- package/dist/index.cjs194.js +1 -1
- package/dist/index.cjs194.js.map +1 -1
- package/dist/index.cjs195.js +1 -1
- package/dist/index.cjs195.js.map +1 -1
- package/dist/index.cjs196.js +1 -1
- package/dist/index.cjs196.js.map +1 -1
- package/dist/index.cjs197.js +1 -1
- package/dist/index.cjs197.js.map +1 -1
- package/dist/index.cjs198.js +1 -1
- package/dist/index.cjs198.js.map +1 -1
- package/dist/index.cjs199.js +1 -1
- package/dist/index.cjs199.js.map +1 -1
- package/dist/index.cjs20.js +1 -1
- package/dist/index.cjs200.js +1 -1
- package/dist/index.cjs200.js.map +1 -1
- package/dist/index.cjs201.js +1 -1
- package/dist/index.cjs201.js.map +1 -1
- package/dist/index.cjs202.js +1 -1
- package/dist/index.cjs202.js.map +1 -1
- package/dist/index.cjs203.js +1 -1
- package/dist/index.cjs203.js.map +1 -1
- package/dist/index.cjs204.js +1 -1
- package/dist/index.cjs204.js.map +1 -1
- package/dist/index.cjs205.js +1 -1
- package/dist/index.cjs205.js.map +1 -1
- package/dist/index.cjs206.js +1 -1
- package/dist/index.cjs206.js.map +1 -1
- package/dist/index.cjs207.js +1 -1
- package/dist/index.cjs207.js.map +1 -1
- package/dist/index.cjs208.js +1 -1
- package/dist/index.cjs208.js.map +1 -1
- package/dist/index.cjs209.js +1 -1
- package/dist/index.cjs209.js.map +1 -1
- package/dist/index.cjs21.js +1 -1
- package/dist/index.cjs21.js.map +1 -1
- package/dist/index.cjs210.js +1 -1
- package/dist/index.cjs210.js.map +1 -1
- package/dist/index.cjs211.js +1 -1
- package/dist/index.cjs211.js.map +1 -1
- package/dist/index.cjs212.js +2 -0
- package/dist/index.cjs212.js.map +1 -0
- package/dist/index.cjs214.js +2 -0
- package/dist/index.cjs214.js.map +1 -0
- package/dist/index.cjs217.js +2 -0
- package/dist/index.cjs217.js.map +1 -0
- package/dist/index.cjs22.js +1 -1
- package/dist/index.cjs22.js.map +1 -1
- package/dist/index.cjs224.js +2 -0
- package/dist/index.cjs224.js.map +1 -0
- package/dist/{index.cjs223.js → index.cjs225.js} +1 -1
- package/dist/{index.cjs223.js.map → index.cjs225.js.map} +1 -1
- package/dist/index.cjs228.js +1 -1
- package/dist/index.cjs228.js.map +1 -1
- package/dist/index.cjs23.js +1 -1
- package/dist/index.cjs23.js.map +1 -1
- package/dist/{index.cjs229.js → index.cjs230.js} +1 -1
- package/dist/index.cjs230.js.map +1 -0
- package/dist/{index.cjs232.js → index.cjs233.js} +1 -1
- package/dist/index.cjs233.js.map +1 -0
- package/dist/{index.cjs236.js → index.cjs237.js} +2 -2
- package/dist/index.cjs237.js.map +1 -0
- package/dist/index.cjs24.js +1 -1
- package/dist/{index.cjs240.js → index.cjs241.js} +2 -2
- package/dist/index.cjs241.js.map +1 -0
- package/dist/{index.cjs243.js → index.cjs244.js} +2 -2
- package/dist/{index.cjs243.js.map → index.cjs244.js.map} +1 -1
- package/dist/index.cjs247.js +1 -1
- package/dist/index.cjs247.js.map +1 -1
- package/dist/index.cjs248.js +1 -1
- package/dist/index.cjs248.js.map +1 -1
- package/dist/index.cjs249.js +2 -0
- package/dist/index.cjs249.js.map +1 -0
- package/dist/index.cjs25.js +1 -1
- package/dist/index.cjs25.js.map +1 -1
- package/dist/index.cjs255.js +1 -1
- package/dist/index.cjs255.js.map +1 -1
- package/dist/index.cjs256.js +2 -0
- package/dist/index.cjs256.js.map +1 -0
- package/dist/{index.cjs258.js → index.cjs259.js} +2 -2
- package/dist/index.cjs259.js.map +1 -0
- package/dist/index.cjs26.js +1 -1
- package/dist/index.cjs26.js.map +1 -1
- package/dist/index.cjs264.js +1 -1
- package/dist/index.cjs264.js.map +1 -1
- package/dist/index.cjs265.js +1 -1
- package/dist/index.cjs265.js.map +1 -1
- package/dist/index.cjs266.js +1 -1
- package/dist/index.cjs266.js.map +1 -1
- package/dist/index.cjs267.js +2 -0
- package/dist/index.cjs267.js.map +1 -0
- package/dist/{index.cjs268.js → index.cjs269.js} +2 -2
- package/dist/index.cjs269.js.map +1 -0
- package/dist/index.cjs27.js +1 -1
- package/dist/index.cjs271.js +5 -1
- package/dist/index.cjs271.js.map +1 -1
- package/dist/index.cjs272.js +1 -1
- package/dist/index.cjs272.js.map +1 -1
- package/dist/index.cjs273.js +1 -1
- package/dist/index.cjs273.js.map +1 -1
- package/dist/index.cjs274.js +1 -1
- package/dist/index.cjs274.js.map +1 -1
- package/dist/index.cjs275.js +2 -0
- package/dist/index.cjs275.js.map +1 -0
- package/dist/index.cjs277.js +1 -1
- package/dist/index.cjs277.js.map +1 -1
- package/dist/index.cjs278.js +1 -1
- package/dist/index.cjs278.js.map +1 -1
- package/dist/index.cjs279.js +2 -0
- package/dist/index.cjs279.js.map +1 -0
- package/dist/index.cjs28.js +1 -1
- package/dist/index.cjs282.js +1 -1
- package/dist/index.cjs282.js.map +1 -1
- package/dist/index.cjs283.js +2 -0
- package/dist/index.cjs283.js.map +1 -0
- package/dist/index.cjs288.js +1 -1
- package/dist/index.cjs288.js.map +1 -1
- package/dist/index.cjs289.js +1 -1
- package/dist/index.cjs289.js.map +1 -1
- package/dist/index.cjs29.js +1 -1
- package/dist/index.cjs290.js +2 -0
- package/dist/index.cjs290.js.map +1 -0
- package/dist/index.cjs292.js +1 -1
- package/dist/index.cjs292.js.map +1 -1
- package/dist/index.cjs293.js +1 -1
- package/dist/index.cjs293.js.map +1 -1
- package/dist/index.cjs294.js +2 -0
- package/dist/index.cjs294.js.map +1 -0
- package/dist/index.cjs296.js +1 -1
- package/dist/index.cjs296.js.map +1 -1
- package/dist/index.cjs297.js +1 -1
- package/dist/index.cjs297.js.map +1 -1
- package/dist/index.cjs298.js +2 -0
- package/dist/index.cjs298.js.map +1 -0
- package/dist/index.cjs3.js +1 -1
- package/dist/index.cjs30.js +1 -1
- package/dist/index.cjs30.js.map +1 -1
- package/dist/index.cjs308.js +2 -0
- package/dist/index.cjs308.js.map +1 -0
- package/dist/index.cjs31.js +1 -1
- package/dist/index.cjs31.js.map +1 -1
- package/dist/index.cjs32.js +1 -1
- package/dist/index.cjs32.js.map +1 -1
- package/dist/index.cjs33.js +1 -1
- package/dist/index.cjs33.js.map +1 -1
- package/dist/{index.cjs336.js → index.cjs337.js} +2 -2
- package/dist/{index.cjs336.js.map → index.cjs337.js.map} +1 -1
- package/dist/index.cjs34.js +1 -1
- package/dist/index.cjs34.js.map +1 -1
- package/dist/{index.cjs344.js → index.cjs345.js} +2 -2
- package/dist/index.cjs345.js.map +1 -0
- package/dist/index.cjs35.js +1 -1
- package/dist/{index.cjs349.js → index.cjs350.js} +2 -2
- package/dist/{index.cjs349.js.map → index.cjs350.js.map} +1 -1
- package/dist/{index.cjs355.js → index.cjs356.js} +2 -2
- package/dist/index.cjs356.js.map +1 -0
- package/dist/{index.cjs357.js → index.cjs358.js} +2 -2
- package/dist/index.cjs358.js.map +1 -0
- package/dist/index.cjs36.js +1 -1
- package/dist/index.cjs36.js.map +1 -1
- package/dist/{index.cjs361.js → index.cjs362.js} +2 -2
- package/dist/index.cjs362.js.map +1 -0
- package/dist/index.cjs364.js +1 -1
- package/dist/index.cjs364.js.map +1 -1
- package/dist/index.cjs365.js +1 -1
- package/dist/index.cjs365.js.map +1 -1
- package/dist/index.cjs366.js +2 -0
- package/dist/index.cjs366.js.map +1 -0
- package/dist/index.cjs37.js +1 -1
- package/dist/index.cjs37.js.map +1 -1
- package/dist/index.cjs375.js +1 -1
- package/dist/index.cjs375.js.map +1 -1
- package/dist/index.cjs376.js +1 -9
- package/dist/index.cjs376.js.map +1 -1
- package/dist/index.cjs377.js +1 -14
- package/dist/index.cjs377.js.map +1 -1
- package/dist/index.cjs378.js +9 -27
- package/dist/index.cjs378.js.map +1 -1
- package/dist/index.cjs379.js +23 -1
- package/dist/index.cjs379.js.map +1 -1
- package/dist/index.cjs38.js +1 -1
- package/dist/index.cjs38.js.map +1 -1
- package/dist/index.cjs380.js +1 -1
- package/dist/index.cjs381.js +1 -1
- package/dist/index.cjs381.js.map +1 -1
- package/dist/index.cjs382.js +1 -2
- package/dist/index.cjs382.js.map +1 -1
- package/dist/index.cjs383.js +2 -0
- package/dist/index.cjs383.js.map +1 -0
- package/dist/index.cjs384.js +2 -1
- package/dist/index.cjs384.js.map +1 -1
- package/dist/index.cjs385.js +27 -1
- package/dist/index.cjs385.js.map +1 -1
- package/dist/index.cjs386.js +1 -1
- package/dist/index.cjs386.js.map +1 -1
- package/dist/index.cjs388.js +1 -1
- package/dist/index.cjs388.js.map +1 -1
- package/dist/index.cjs389.js +1 -1
- package/dist/index.cjs389.js.map +1 -1
- package/dist/index.cjs39.js +1 -1
- package/dist/index.cjs39.js.map +1 -1
- package/dist/index.cjs390.js +1 -1
- package/dist/index.cjs390.js.map +1 -1
- package/dist/index.cjs391.js +1 -1
- package/dist/index.cjs391.js.map +1 -1
- package/dist/index.cjs392.js +2 -0
- package/dist/index.cjs392.js.map +1 -0
- package/dist/index.cjs393.js +2 -0
- package/dist/index.cjs393.js.map +1 -0
- package/dist/index.cjs394.js +2 -0
- package/dist/index.cjs394.js.map +1 -0
- package/dist/index.cjs395.js +2 -0
- package/dist/index.cjs395.js.map +1 -0
- package/dist/index.cjs398.js +2 -0
- package/dist/index.cjs398.js.map +1 -0
- package/dist/index.cjs399.js +1 -1
- package/dist/index.cjs399.js.map +1 -1
- package/dist/index.cjs4.js +1 -1
- package/dist/index.cjs40.js +1 -1
- package/dist/index.cjs40.js.map +1 -1
- package/dist/index.cjs400.js +1 -1
- package/dist/index.cjs400.js.map +1 -1
- package/dist/index.cjs401.js +1 -1
- package/dist/index.cjs401.js.map +1 -1
- package/dist/index.cjs402.js +1 -1
- package/dist/index.cjs403.js +1 -1
- package/dist/index.cjs403.js.map +1 -1
- package/dist/index.cjs404.js +1 -1
- package/dist/index.cjs404.js.map +1 -1
- package/dist/index.cjs405.js +1 -1
- package/dist/index.cjs405.js.map +1 -1
- package/dist/index.cjs406.js +1 -1
- package/dist/index.cjs406.js.map +1 -1
- package/dist/index.cjs407.js +1 -1
- package/dist/index.cjs407.js.map +1 -1
- package/dist/index.cjs408.js +1 -1
- package/dist/index.cjs408.js.map +1 -1
- package/dist/index.cjs409.js +2 -0
- package/dist/index.cjs409.js.map +1 -0
- package/dist/index.cjs41.js +1 -1
- package/dist/index.cjs41.js.map +1 -1
- package/dist/index.cjs410.js +2 -0
- package/dist/index.cjs410.js.map +1 -0
- package/dist/{index.cjs432.js → index.cjs411.js} +1 -1
- package/dist/{index.cjs432.js.map → index.cjs411.js.map} +1 -1
- package/dist/index.cjs412.js +1 -1
- package/dist/index.cjs412.js.map +1 -1
- package/dist/index.cjs413.js +2 -0
- package/dist/index.cjs413.js.map +1 -0
- package/dist/{index.cjs433.js → index.cjs414.js} +2 -2
- package/dist/{index.cjs433.js.map → index.cjs414.js.map} +1 -1
- package/dist/{index.cjs439.js → index.cjs415.js} +2 -2
- package/dist/{index.cjs439.js.map → index.cjs415.js.map} +1 -1
- package/dist/{index.cjs440.js → index.cjs416.js} +2 -2
- package/dist/{index.cjs440.js.map → index.cjs416.js.map} +1 -1
- package/dist/{index.cjs441.js → index.cjs417.js} +2 -2
- package/dist/{index.cjs441.js.map → index.cjs417.js.map} +1 -1
- package/dist/{index.cjs442.js → index.cjs418.js} +1 -1
- package/dist/{index.cjs442.js.map → index.cjs418.js.map} +1 -1
- package/dist/{index.cjs443.js → index.cjs419.js} +2 -2
- package/dist/{index.cjs443.js.map → index.cjs419.js.map} +1 -1
- package/dist/index.cjs42.js +1 -1
- package/dist/index.cjs42.js.map +1 -1
- package/dist/index.cjs420.js +2 -0
- package/dist/index.cjs420.js.map +1 -0
- package/dist/index.cjs421.js +2 -0
- package/dist/index.cjs421.js.map +1 -0
- package/dist/index.cjs424.js +1 -1
- package/dist/index.cjs424.js.map +1 -1
- package/dist/index.cjs425.js +1 -1
- package/dist/index.cjs425.js.map +1 -1
- package/dist/index.cjs426.js +1 -1
- package/dist/index.cjs426.js.map +1 -1
- package/dist/index.cjs427.js +4 -1
- package/dist/index.cjs427.js.map +1 -1
- package/dist/index.cjs428.js +1 -1
- package/dist/index.cjs428.js.map +1 -1
- package/dist/index.cjs429.js +1 -1
- package/dist/index.cjs429.js.map +1 -1
- package/dist/index.cjs43.js +1 -1
- package/dist/index.cjs43.js.map +1 -1
- package/dist/index.cjs430.js +1 -1
- package/dist/index.cjs430.js.map +1 -1
- package/dist/index.cjs431.js +1 -1
- package/dist/index.cjs431.js.map +1 -1
- package/dist/index.cjs44.js +1 -1
- package/dist/index.cjs44.js.map +1 -1
- package/dist/index.cjs444.js +1 -1
- package/dist/index.cjs444.js.map +1 -1
- package/dist/index.cjs445.js +38 -1
- package/dist/index.cjs445.js.map +1 -1
- package/dist/index.cjs446.js +1 -1
- package/dist/index.cjs446.js.map +1 -1
- package/dist/index.cjs447.js +1 -1
- package/dist/index.cjs447.js.map +1 -1
- package/dist/index.cjs448.js +1 -1
- package/dist/index.cjs448.js.map +1 -1
- package/dist/index.cjs45.js +1 -1
- package/dist/index.cjs45.js.map +1 -1
- package/dist/index.cjs450.js +1 -1
- package/dist/index.cjs450.js.map +1 -1
- package/dist/index.cjs451.js +1 -1
- package/dist/index.cjs451.js.map +1 -1
- package/dist/index.cjs452.js +1 -1
- package/dist/index.cjs452.js.map +1 -1
- package/dist/index.cjs453.js +1 -1
- package/dist/index.cjs453.js.map +1 -1
- package/dist/index.cjs454.js +1 -1
- package/dist/index.cjs454.js.map +1 -1
- package/dist/index.cjs455.js +1 -1
- package/dist/index.cjs455.js.map +1 -1
- package/dist/index.cjs458.js +1 -1
- package/dist/index.cjs458.js.map +1 -1
- package/dist/index.cjs459.js +1 -5
- package/dist/index.cjs459.js.map +1 -1
- package/dist/index.cjs46.js +1 -1
- package/dist/index.cjs46.js.map +1 -1
- package/dist/index.cjs460.js +1 -1
- package/dist/index.cjs460.js.map +1 -1
- package/dist/index.cjs461.js +1 -1
- package/dist/index.cjs461.js.map +1 -1
- package/dist/index.cjs462.js +1 -1
- package/dist/index.cjs462.js.map +1 -1
- package/dist/index.cjs463.js +1 -1
- package/dist/index.cjs463.js.map +1 -1
- package/dist/index.cjs464.js +1 -1
- package/dist/index.cjs464.js.map +1 -1
- package/dist/index.cjs465.js +1 -1
- package/dist/index.cjs465.js.map +1 -1
- package/dist/index.cjs466.js +1 -1
- package/dist/index.cjs466.js.map +1 -1
- package/dist/index.cjs467.js +1 -1
- package/dist/index.cjs467.js.map +1 -1
- package/dist/index.cjs468.js +1 -1
- package/dist/index.cjs468.js.map +1 -1
- package/dist/index.cjs469.js +1 -1
- package/dist/index.cjs469.js.map +1 -1
- package/dist/index.cjs47.js +1 -1
- package/dist/index.cjs47.js.map +1 -1
- package/dist/index.cjs470.js +1 -1
- package/dist/index.cjs470.js.map +1 -1
- package/dist/index.cjs471.js +1 -38
- package/dist/index.cjs471.js.map +1 -1
- package/dist/index.cjs472.js +1 -1
- package/dist/index.cjs472.js.map +1 -1
- package/dist/index.cjs473.js +5 -1
- package/dist/index.cjs473.js.map +1 -1
- package/dist/index.cjs474.js +1 -1
- package/dist/index.cjs474.js.map +1 -1
- package/dist/index.cjs475.js +1 -1
- package/dist/index.cjs475.js.map +1 -1
- package/dist/index.cjs476.js +1 -1
- package/dist/index.cjs476.js.map +1 -1
- package/dist/index.cjs477.js +1 -1
- package/dist/index.cjs477.js.map +1 -1
- package/dist/index.cjs478.js +1 -1
- package/dist/index.cjs478.js.map +1 -1
- package/dist/index.cjs479.js +1 -1
- package/dist/index.cjs479.js.map +1 -1
- package/dist/index.cjs48.js +1 -1
- package/dist/index.cjs48.js.map +1 -1
- package/dist/index.cjs480.js +1 -1
- package/dist/index.cjs480.js.map +1 -1
- package/dist/index.cjs481.js +1 -1
- package/dist/index.cjs481.js.map +1 -1
- package/dist/index.cjs482.js +2 -0
- package/dist/index.cjs482.js.map +1 -0
- package/dist/index.cjs483.js +2 -0
- package/dist/index.cjs483.js.map +1 -0
- package/dist/index.cjs49.js +1 -1
- package/dist/index.cjs49.js.map +1 -1
- package/dist/index.cjs5.js +1 -1
- package/dist/index.cjs50.js +1 -1
- package/dist/index.cjs50.js.map +1 -1
- package/dist/index.cjs51.js +1 -1
- package/dist/index.cjs52.js +1 -1
- package/dist/index.cjs53.js +1 -1
- package/dist/index.cjs53.js.map +1 -1
- package/dist/index.cjs54.js +1 -1
- package/dist/index.cjs54.js.map +1 -1
- package/dist/index.cjs55.js +1 -1
- package/dist/index.cjs55.js.map +1 -1
- package/dist/index.cjs56.js +1 -1
- package/dist/index.cjs57.js +1 -1
- package/dist/index.cjs58.js +1 -1
- package/dist/index.cjs58.js.map +1 -1
- package/dist/index.cjs59.js +1 -1
- package/dist/index.cjs59.js.map +1 -1
- package/dist/index.cjs6.js +1 -1
- package/dist/index.cjs6.js.map +1 -1
- package/dist/index.cjs60.js +1 -1
- package/dist/index.cjs61.js +1 -1
- package/dist/index.cjs61.js.map +1 -1
- package/dist/index.cjs62.js +1 -1
- package/dist/index.cjs63.js +1 -1
- package/dist/index.cjs63.js.map +1 -1
- package/dist/index.cjs64.js +1 -1
- package/dist/index.cjs64.js.map +1 -1
- package/dist/index.cjs65.js +1 -1
- package/dist/index.cjs65.js.map +1 -1
- package/dist/index.cjs66.js +1 -1
- package/dist/index.cjs67.js +1 -1
- package/dist/index.cjs68.js +1 -1
- package/dist/index.cjs69.js +1 -1
- package/dist/index.cjs69.js.map +1 -1
- package/dist/index.cjs7.js +1 -1
- package/dist/index.cjs7.js.map +1 -1
- package/dist/index.cjs70.js +1 -1
- package/dist/index.cjs70.js.map +1 -1
- package/dist/index.cjs71.js +1 -1
- package/dist/index.cjs71.js.map +1 -1
- package/dist/index.cjs72.js +1 -1
- package/dist/index.cjs73.js +1 -1
- package/dist/index.cjs73.js.map +1 -1
- package/dist/index.cjs74.js +1 -1
- package/dist/index.cjs74.js.map +1 -1
- package/dist/index.cjs75.js +1 -1
- package/dist/index.cjs75.js.map +1 -1
- package/dist/index.cjs76.js +1 -1
- package/dist/index.cjs76.js.map +1 -1
- package/dist/index.cjs77.js +1 -1
- package/dist/index.cjs77.js.map +1 -1
- package/dist/index.cjs78.js +1 -1
- package/dist/index.cjs78.js.map +1 -1
- package/dist/index.cjs79.js +1 -1
- package/dist/index.cjs79.js.map +1 -1
- package/dist/index.cjs8.js +1 -1
- package/dist/index.cjs8.js.map +1 -1
- package/dist/index.cjs80.js +1 -1
- package/dist/index.cjs80.js.map +1 -1
- package/dist/index.cjs81.js +1 -1
- package/dist/index.cjs81.js.map +1 -1
- package/dist/index.cjs82.js +1 -1
- package/dist/index.cjs82.js.map +1 -1
- package/dist/index.cjs83.js +1 -1
- package/dist/index.cjs83.js.map +1 -1
- package/dist/index.cjs84.js +1 -1
- package/dist/index.cjs84.js.map +1 -1
- package/dist/index.cjs85.js +1 -1
- package/dist/index.cjs85.js.map +1 -1
- package/dist/index.cjs86.js +1 -1
- package/dist/index.cjs86.js.map +1 -1
- package/dist/index.cjs87.js +1 -1
- package/dist/index.cjs87.js.map +1 -1
- package/dist/index.cjs88.js +1 -1
- package/dist/index.cjs88.js.map +1 -1
- package/dist/index.cjs89.js +1 -1
- package/dist/index.cjs89.js.map +1 -1
- package/dist/index.cjs9.js +1 -1
- package/dist/index.cjs90.js +1 -1
- package/dist/index.cjs90.js.map +1 -1
- package/dist/index.cjs91.js +1 -1
- package/dist/index.cjs92.js +1 -1
- package/dist/index.cjs92.js.map +1 -1
- package/dist/index.cjs93.js +1 -1
- package/dist/index.cjs93.js.map +1 -1
- package/dist/index.cjs94.js +1 -1
- package/dist/index.cjs94.js.map +1 -1
- package/dist/index.cjs95.js +1 -1
- package/dist/index.cjs96.js +1 -1
- package/dist/index.cjs96.js.map +1 -1
- package/dist/index.cjs97.js +1 -1
- package/dist/index.cjs97.js.map +1 -1
- package/dist/index.cjs98.js +1 -1
- package/dist/index.cjs98.js.map +1 -1
- package/dist/index.cjs99.js +1 -1
- package/dist/index.cjs99.js.map +1 -1
- package/dist/index.d.ts +19 -0
- package/dist/index.es.js +155 -153
- package/dist/index.es.js.map +1 -1
- package/dist/index.es10.js +4 -4
- package/dist/index.es10.js.map +1 -1
- package/dist/index.es100.js +2 -2
- package/dist/index.es100.js.map +1 -1
- package/dist/index.es101.js +2 -2
- package/dist/index.es101.js.map +1 -1
- package/dist/index.es102.js +4 -4
- package/dist/index.es103.js +2 -2
- package/dist/index.es103.js.map +1 -1
- package/dist/index.es104.js +2 -2
- package/dist/index.es105.js +1 -1
- package/dist/index.es105.js.map +1 -1
- package/dist/index.es106.js +1 -1
- package/dist/index.es106.js.map +1 -1
- package/dist/index.es107.js +1 -1
- package/dist/index.es107.js.map +1 -1
- package/dist/index.es108.js +3 -3
- package/dist/index.es108.js.map +1 -1
- package/dist/index.es109.js +1 -1
- package/dist/index.es109.js.map +1 -1
- package/dist/index.es11.js +2 -2
- package/dist/index.es110.js +2 -2
- package/dist/index.es110.js.map +1 -1
- package/dist/index.es111.js +2 -2
- package/dist/index.es111.js.map +1 -1
- package/dist/index.es112.js +1 -1
- package/dist/index.es112.js.map +1 -1
- package/dist/index.es113.js +4 -4
- package/dist/index.es113.js.map +1 -1
- package/dist/index.es114.js +7 -7
- package/dist/index.es114.js.map +1 -1
- package/dist/index.es115.js +3 -3
- package/dist/index.es115.js.map +1 -1
- package/dist/index.es116.js +3 -3
- package/dist/index.es116.js.map +1 -1
- package/dist/index.es117.js +121 -46
- package/dist/index.es117.js.map +1 -1
- package/dist/index.es118.js +45 -75
- package/dist/index.es118.js.map +1 -1
- package/dist/index.es119.js +78 -35
- package/dist/index.es119.js.map +1 -1
- package/dist/index.es12.js +3 -3
- package/dist/index.es12.js.map +1 -1
- package/dist/index.es120.js +35 -29
- package/dist/index.es120.js.map +1 -1
- package/dist/index.es121.js +29 -108
- package/dist/index.es121.js.map +1 -1
- package/dist/index.es122.js +109 -49
- package/dist/index.es122.js.map +1 -1
- package/dist/index.es123.js +47 -36
- package/dist/index.es123.js.map +1 -1
- package/dist/index.es124.js +34 -14
- package/dist/index.es124.js.map +1 -1
- package/dist/index.es125.js +19 -11
- package/dist/index.es125.js.map +1 -1
- package/dist/index.es126.js +11 -31
- package/dist/index.es126.js.map +1 -1
- package/dist/index.es127.js +26 -86
- package/dist/index.es127.js.map +1 -1
- package/dist/index.es128.js +91 -14
- package/dist/index.es128.js.map +1 -1
- package/dist/index.es129.js +14 -25
- package/dist/index.es129.js.map +1 -1
- package/dist/index.es13.js +2 -2
- package/dist/index.es13.js.map +1 -1
- package/dist/index.es130.js +16 -16
- package/dist/index.es130.js.map +1 -1
- package/dist/index.es131.js +14 -14
- package/dist/index.es131.js.map +1 -1
- package/dist/index.es132.js +14 -14
- package/dist/index.es132.js.map +1 -1
- package/dist/index.es133.js +11 -13
- package/dist/index.es133.js.map +1 -1
- package/dist/index.es134.js +16 -22
- package/dist/index.es134.js.map +1 -1
- package/dist/index.es135.js +23 -2266
- package/dist/index.es135.js.map +1 -1
- package/dist/index.es136.js +2267 -23
- package/dist/index.es136.js.map +1 -1
- package/dist/index.es137.js +23 -41
- package/dist/index.es137.js.map +1 -1
- package/dist/index.es138.js +32 -106
- package/dist/index.es138.js.map +1 -1
- package/dist/index.es139.js +112 -20
- package/dist/index.es139.js.map +1 -1
- package/dist/index.es14.js +2 -2
- package/dist/index.es14.js.map +1 -1
- package/dist/index.es140.js +20 -72
- package/dist/index.es140.js.map +1 -1
- package/dist/index.es141.js +67 -51
- package/dist/index.es141.js.map +1 -1
- package/dist/index.es142.js +56 -16
- package/dist/index.es142.js.map +1 -1
- package/dist/index.es143.js +16 -669
- package/dist/index.es143.js.map +1 -1
- package/dist/index.es144.js +654 -17
- package/dist/index.es144.js.map +1 -1
- package/dist/index.es145.js +34 -21
- package/dist/index.es145.js.map +1 -1
- package/dist/index.es146.js +5 -5
- package/dist/index.es146.js.map +1 -1
- package/dist/index.es147.js +17 -19
- package/dist/index.es147.js.map +1 -1
- package/dist/index.es148.js +18 -30
- package/dist/index.es148.js.map +1 -1
- package/dist/index.es149.js +28 -23
- package/dist/index.es149.js.map +1 -1
- package/dist/index.es15.js +3 -3
- package/dist/index.es15.js.map +1 -1
- package/dist/index.es150.js +21 -32
- package/dist/index.es150.js.map +1 -1
- package/dist/index.es151.js +33 -22
- package/dist/index.es151.js.map +1 -1
- package/dist/index.es152.js +40 -24
- package/dist/index.es152.js.map +1 -1
- package/dist/index.es153.js +13 -17
- package/dist/index.es153.js.map +1 -1
- package/dist/index.es154.js +17 -17
- package/dist/index.es154.js.map +1 -1
- package/dist/index.es155.js +28 -32
- package/dist/index.es155.js.map +1 -1
- package/dist/index.es156.js +20 -23
- package/dist/index.es156.js.map +1 -1
- package/dist/index.es157.js +24 -22
- package/dist/index.es157.js.map +1 -1
- package/dist/index.es158.js +33 -21
- package/dist/index.es158.js.map +1 -1
- package/dist/index.es159.js +21 -36
- package/dist/index.es159.js.map +1 -1
- package/dist/index.es16.js +7 -7
- package/dist/index.es160.js +26 -23
- package/dist/index.es160.js.map +1 -1
- package/dist/index.es161.js +12 -12
- package/dist/index.es161.js.map +1 -1
- package/dist/index.es162.js +13 -13
- package/dist/index.es162.js.map +1 -1
- package/dist/index.es163.js +17 -17
- package/dist/index.es163.js.map +1 -1
- package/dist/index.es164.js +14 -14
- package/dist/index.es164.js.map +1 -1
- package/dist/index.es165.js +16 -15
- package/dist/index.es165.js.map +1 -1
- package/dist/index.es166.js +14 -15
- package/dist/index.es166.js.map +1 -1
- package/dist/index.es167.js +24 -31
- package/dist/index.es167.js.map +1 -1
- package/dist/index.es168.js +40 -21
- package/dist/index.es168.js.map +1 -1
- package/dist/index.es169.js +21 -31
- package/dist/index.es169.js.map +1 -1
- package/dist/index.es17.js +1 -1
- package/dist/index.es170.js +17 -19
- package/dist/index.es170.js.map +1 -1
- package/dist/index.es171.js +8 -8
- package/dist/index.es171.js.map +1 -1
- package/dist/index.es172.js +21 -23
- package/dist/index.es172.js.map +1 -1
- package/dist/index.es173.js +22 -19
- package/dist/index.es173.js.map +1 -1
- package/dist/index.es174.js +16 -17
- package/dist/index.es174.js.map +1 -1
- package/dist/index.es175.js +23 -15
- package/dist/index.es175.js.map +1 -1
- package/dist/index.es176.js +25 -21
- package/dist/index.es176.js.map +1 -1
- package/dist/index.es177.js +21 -33
- package/dist/index.es177.js.map +1 -1
- package/dist/index.es178.js +15 -15
- package/dist/index.es178.js.map +1 -1
- package/dist/index.es179.js +13 -13
- package/dist/index.es179.js.map +1 -1
- package/dist/index.es18.js +2 -2
- package/dist/index.es18.js.map +1 -1
- package/dist/index.es180.js +16 -16
- package/dist/index.es180.js.map +1 -1
- package/dist/index.es181.js +16 -16
- package/dist/index.es181.js.map +1 -1
- package/dist/index.es182.js +18 -18
- package/dist/index.es182.js.map +1 -1
- package/dist/index.es183.js +16 -16
- package/dist/index.es183.js.map +1 -1
- package/dist/index.es184.js +33 -22
- package/dist/index.es184.js.map +1 -1
- package/dist/index.es185.js +13 -11
- package/dist/index.es185.js.map +1 -1
- package/dist/index.es186.js +15 -29
- package/dist/index.es186.js.map +1 -1
- package/dist/index.es187.js +28 -14
- package/dist/index.es187.js.map +1 -1
- package/dist/index.es188.js +9 -11
- package/dist/index.es188.js.map +1 -1
- package/dist/index.es189.js +17 -9
- package/dist/index.es189.js.map +1 -1
- package/dist/index.es19.js +2 -2
- package/dist/index.es19.js.map +1 -1
- package/dist/index.es190.js +14 -29
- package/dist/index.es190.js.map +1 -1
- package/dist/index.es191.js +29 -26
- package/dist/index.es191.js.map +1 -1
- package/dist/index.es192.js +24 -1799
- package/dist/index.es192.js.map +1 -1
- package/dist/index.es193.js +1644 -322
- package/dist/index.es193.js.map +1 -1
- package/dist/index.es194.js +417 -131
- package/dist/index.es194.js.map +1 -1
- package/dist/index.es195.js +164 -245
- package/dist/index.es195.js.map +1 -1
- package/dist/index.es196.js +245 -109
- package/dist/index.es196.js.map +1 -1
- package/dist/index.es197.js +120 -282
- package/dist/index.es197.js.map +1 -1
- package/dist/index.es198.js +275 -199
- package/dist/index.es198.js.map +1 -1
- package/dist/index.es199.js +203 -16
- package/dist/index.es199.js.map +1 -1
- package/dist/index.es20.js +1 -1
- package/dist/index.es200.js +16 -33
- package/dist/index.es200.js.map +1 -1
- package/dist/index.es201.js +32 -340
- package/dist/index.es201.js.map +1 -1
- package/dist/index.es202.js +335 -83
- package/dist/index.es202.js.map +1 -1
- package/dist/index.es203.js +90 -148
- package/dist/index.es203.js.map +1 -1
- package/dist/index.es204.js +148 -38
- package/dist/index.es204.js.map +1 -1
- package/dist/index.es205.js +35 -6
- package/dist/index.es205.js.map +1 -1
- package/dist/index.es206.js +6 -176
- package/dist/index.es206.js.map +1 -1
- package/dist/index.es207.js +124 -34
- package/dist/index.es207.js.map +1 -1
- package/dist/index.es208.js +73 -26
- package/dist/index.es208.js.map +1 -1
- package/dist/index.es209.js +16 -22
- package/dist/index.es209.js.map +1 -1
- package/dist/index.es21.js +2 -2
- package/dist/index.es21.js.map +1 -1
- package/dist/index.es210.js +44 -74
- package/dist/index.es210.js.map +1 -1
- package/dist/index.es211.js +72 -3
- package/dist/index.es211.js.map +1 -1
- package/dist/index.es212.js +6 -0
- package/dist/index.es212.js.map +1 -0
- package/dist/index.es214.js +5 -0
- package/dist/index.es214.js.map +1 -0
- package/dist/index.es217.js +6 -0
- package/dist/index.es217.js.map +1 -0
- package/dist/index.es22.js +4 -4
- package/dist/index.es22.js.map +1 -1
- package/dist/index.es224.js +8 -0
- package/dist/index.es224.js.map +1 -0
- package/dist/{index.es223.js → index.es225.js} +1 -1
- package/dist/{index.es223.js.map → index.es225.js.map} +1 -1
- package/dist/index.es228.js +27 -2
- package/dist/index.es228.js.map +1 -1
- package/dist/index.es23.js +3 -3
- package/dist/index.es23.js.map +1 -1
- package/dist/{index.es229.js → index.es230.js} +1 -1
- package/dist/index.es230.js.map +1 -0
- package/dist/{index.es232.js → index.es233.js} +1 -1
- package/dist/index.es233.js.map +1 -0
- package/dist/{index.es236.js → index.es237.js} +3 -3
- package/dist/index.es237.js.map +1 -0
- package/dist/index.es24.js +6 -6
- package/dist/{index.es240.js → index.es241.js} +2 -2
- package/dist/index.es241.js.map +1 -0
- package/dist/{index.es243.js → index.es244.js} +9 -9
- package/dist/{index.es243.js.map → index.es244.js.map} +1 -1
- package/dist/index.es247.js +74 -141
- package/dist/index.es247.js.map +1 -1
- package/dist/index.es248.js +129 -133
- package/dist/index.es248.js.map +1 -1
- package/dist/index.es249.js +150 -0
- package/dist/index.es249.js.map +1 -0
- package/dist/index.es25.js +5 -5
- package/dist/index.es25.js.map +1 -1
- package/dist/index.es255.js +132 -19
- package/dist/index.es255.js.map +1 -1
- package/dist/index.es256.js +23 -0
- package/dist/index.es256.js.map +1 -0
- package/dist/index.es259.js +6 -0
- package/dist/index.es259.js.map +1 -0
- package/dist/index.es26.js +2 -2
- package/dist/index.es26.js.map +1 -1
- package/dist/index.es264.js +4 -20
- package/dist/index.es264.js.map +1 -1
- package/dist/index.es265.js +19 -5
- package/dist/index.es265.js.map +1 -1
- package/dist/index.es266.js +6 -5
- package/dist/index.es266.js.map +1 -1
- package/dist/index.es267.js +8 -0
- package/dist/index.es267.js.map +1 -0
- package/dist/{index.es268.js → index.es269.js} +3 -3
- package/dist/index.es269.js.map +1 -0
- package/dist/index.es27.js +1 -1
- package/dist/index.es271.js +257 -47
- package/dist/index.es271.js.map +1 -1
- package/dist/index.es272.js +49 -18
- package/dist/index.es272.js.map +1 -1
- package/dist/index.es273.js +18 -7
- package/dist/index.es273.js.map +1 -1
- package/dist/index.es274.js +7 -28
- package/dist/index.es274.js.map +1 -1
- package/dist/index.es275.js +31 -0
- package/dist/index.es275.js.map +1 -0
- package/dist/index.es277.js +27 -4
- package/dist/index.es277.js.map +1 -1
- package/dist/index.es278.js +4 -8
- package/dist/index.es278.js.map +1 -1
- package/dist/index.es279.js +11 -0
- package/dist/index.es279.js.map +1 -0
- package/dist/index.es28.js +3 -3
- package/dist/index.es282.js +8 -4
- package/dist/index.es282.js.map +1 -1
- package/dist/index.es283.js +7 -0
- package/dist/index.es283.js.map +1 -0
- package/dist/index.es288.js +8 -27
- package/dist/index.es288.js.map +1 -1
- package/dist/index.es289.js +27 -6
- package/dist/index.es289.js.map +1 -1
- package/dist/index.es29.js +4 -4
- package/dist/index.es290.js +9 -0
- package/dist/index.es290.js.map +1 -0
- package/dist/index.es292.js +27 -8
- package/dist/index.es292.js.map +1 -1
- package/dist/index.es293.js +8 -6
- package/dist/index.es293.js.map +1 -1
- package/dist/index.es294.js +9 -0
- package/dist/index.es294.js.map +1 -0
- package/dist/index.es296.js +20 -21
- package/dist/index.es296.js.map +1 -1
- package/dist/index.es297.js +24 -112
- package/dist/index.es297.js.map +1 -1
- package/dist/index.es298.js +119 -0
- package/dist/index.es298.js.map +1 -0
- package/dist/index.es3.js +6 -6
- package/dist/index.es30.js +6 -6
- package/dist/index.es30.js.map +1 -1
- package/dist/index.es308.js +2 -0
- package/dist/index.es308.js.map +1 -0
- package/dist/index.es31.js +2 -2
- package/dist/index.es31.js.map +1 -1
- package/dist/index.es32.js +2 -2
- package/dist/index.es32.js.map +1 -1
- package/dist/index.es33.js +1 -1
- package/dist/index.es33.js.map +1 -1
- package/dist/{index.es336.js → index.es337.js} +7 -7
- package/dist/{index.es336.js.map → index.es337.js.map} +1 -1
- package/dist/index.es34.js +7 -7
- package/dist/index.es34.js.map +1 -1
- package/dist/{index.es344.js → index.es345.js} +2 -2
- package/dist/index.es345.js.map +1 -0
- package/dist/index.es35.js +3 -3
- package/dist/{index.es349.js → index.es350.js} +9 -9
- package/dist/{index.es349.js.map → index.es350.js.map} +1 -1
- package/dist/{index.es355.js → index.es356.js} +3 -3
- package/dist/index.es356.js.map +1 -0
- package/dist/{index.es357.js → index.es358.js} +4 -4
- package/dist/index.es358.js.map +1 -0
- package/dist/index.es36.js +2 -2
- package/dist/index.es36.js.map +1 -1
- package/dist/{index.es361.js → index.es362.js} +2 -2
- package/dist/index.es362.js.map +1 -0
- package/dist/index.es364.js +231 -116
- package/dist/index.es364.js.map +1 -1
- package/dist/index.es365.js +105 -205
- package/dist/index.es365.js.map +1 -1
- package/dist/index.es366.js +228 -0
- package/dist/index.es366.js.map +1 -0
- package/dist/index.es37.js +2 -2
- package/dist/index.es37.js.map +1 -1
- package/dist/index.es375.js +136 -2
- package/dist/index.es375.js.map +1 -1
- package/dist/index.es376.js +7 -32
- package/dist/index.es376.js.map +1 -1
- package/dist/index.es377.js +2 -245
- package/dist/index.es377.js.map +1 -1
- package/dist/index.es378.js +30 -3672
- package/dist/index.es378.js.map +1 -1
- package/dist/index.es379.js +405 -5
- package/dist/index.es379.js.map +1 -1
- package/dist/index.es38.js +6 -6
- package/dist/index.es38.js.map +1 -1
- package/dist/index.es380.js +2 -2
- package/dist/index.es381.js +2 -6
- package/dist/index.es381.js.map +1 -1
- package/dist/index.es382.js +5 -520
- package/dist/index.es382.js.map +1 -1
- package/dist/index.es383.js +9 -0
- package/dist/index.es383.js.map +1 -0
- package/dist/index.es384.js +519 -5
- package/dist/index.es384.js.map +1 -1
- package/dist/index.es385.js +3673 -25
- package/dist/index.es385.js.map +1 -1
- package/dist/index.es386.js +2 -68
- package/dist/index.es386.js.map +1 -1
- package/dist/index.es388.js +6 -32
- package/dist/index.es388.js.map +1 -1
- package/dist/index.es389.js +23 -618
- package/dist/index.es389.js.map +1 -1
- package/dist/index.es39.js +4 -4
- package/dist/index.es39.js.map +1 -1
- package/dist/index.es390.js +67 -10
- package/dist/index.es390.js.map +1 -1
- package/dist/index.es391.js +30 -15
- package/dist/index.es391.js.map +1 -1
- package/dist/index.es392.js +36 -0
- package/dist/index.es392.js.map +1 -0
- package/dist/index.es393.js +625 -0
- package/dist/index.es393.js.map +1 -0
- package/dist/index.es394.js +14 -0
- package/dist/index.es394.js.map +1 -0
- package/dist/index.es395.js +18 -0
- package/dist/index.es395.js.map +1 -0
- package/dist/index.es398.js +14 -0
- package/dist/index.es398.js.map +1 -0
- package/dist/index.es399.js +52 -5
- package/dist/index.es399.js.map +1 -1
- package/dist/index.es4.js +7 -7
- package/dist/index.es40.js +3 -3
- package/dist/index.es40.js.map +1 -1
- package/dist/index.es400.js +45 -24
- package/dist/index.es400.js.map +1 -1
- package/dist/index.es401.js +7 -68
- package/dist/index.es401.js.map +1 -1
- package/dist/index.es402.js +6 -6
- package/dist/index.es403.js +14 -134
- package/dist/index.es403.js.map +1 -1
- package/dist/index.es404.js +134 -13
- package/dist/index.es404.js.map +1 -1
- package/dist/index.es405.js +216 -13
- package/dist/index.es405.js.map +1 -1
- package/dist/index.es406.js +12 -7
- package/dist/index.es406.js.map +1 -1
- package/dist/index.es407.js +66 -47
- package/dist/index.es407.js.map +1 -1
- package/dist/index.es408.js +173 -48
- package/dist/index.es408.js.map +1 -1
- package/dist/index.es409.js +53 -0
- package/dist/index.es409.js.map +1 -0
- package/dist/index.es41.js +3 -3
- package/dist/index.es41.js.map +1 -1
- package/dist/index.es410.js +12 -0
- package/dist/index.es410.js.map +1 -0
- package/dist/{index.es432.js → index.es411.js} +1 -1
- package/dist/{index.es432.js.map → index.es411.js.map} +1 -1
- package/dist/index.es412.js +5 -14
- package/dist/index.es412.js.map +1 -1
- package/dist/index.es413.js +28 -0
- package/dist/index.es413.js.map +1 -0
- package/dist/{index.es433.js → index.es414.js} +2 -2
- package/dist/{index.es433.js.map → index.es414.js.map} +1 -1
- package/dist/{index.es439.js → index.es415.js} +3 -3
- package/dist/{index.es439.js.map → index.es415.js.map} +1 -1
- package/dist/{index.es440.js → index.es416.js} +3 -3
- package/dist/{index.es440.js.map → index.es416.js.map} +1 -1
- package/dist/{index.es441.js → index.es417.js} +4 -4
- package/dist/{index.es441.js.map → index.es417.js.map} +1 -1
- package/dist/{index.es442.js → index.es418.js} +1 -1
- package/dist/{index.es442.js.map → index.es418.js.map} +1 -1
- package/dist/{index.es443.js → index.es419.js} +5 -5
- package/dist/{index.es443.js.map → index.es419.js.map} +1 -1
- package/dist/index.es42.js +3 -3
- package/dist/index.es42.js.map +1 -1
- package/dist/index.es420.js +8 -0
- package/dist/index.es420.js.map +1 -0
- package/dist/index.es421.js +18 -0
- package/dist/index.es421.js.map +1 -0
- package/dist/index.es424.js +5 -189
- package/dist/index.es424.js.map +1 -1
- package/dist/index.es425.js +3 -2
- package/dist/index.es425.js.map +1 -1
- package/dist/index.es426.js +24 -2
- package/dist/index.es426.js.map +1 -1
- package/dist/index.es427.js +108 -9
- package/dist/index.es427.js.map +1 -1
- package/dist/index.es428.js +15 -45
- package/dist/index.es428.js.map +1 -1
- package/dist/index.es429.js +522 -7
- package/dist/index.es429.js.map +1 -1
- package/dist/index.es43.js +2 -2
- package/dist/index.es43.js.map +1 -1
- package/dist/index.es430.js +123 -214
- package/dist/index.es430.js.map +1 -1
- package/dist/index.es431.js +122 -171
- package/dist/index.es431.js.map +1 -1
- package/dist/index.es44.js +4 -4
- package/dist/index.es44.js.map +1 -1
- package/dist/index.es444.js +65 -5
- package/dist/index.es444.js.map +1 -1
- package/dist/index.es445.js +64 -78
- package/dist/index.es445.js.map +1 -1
- package/dist/index.es446.js +9 -5
- package/dist/index.es446.js.map +1 -1
- package/dist/index.es447.js +14 -4
- package/dist/index.es447.js.map +1 -1
- package/dist/index.es448.js +62 -5
- package/dist/index.es448.js.map +1 -1
- package/dist/index.es45.js +4 -4
- package/dist/index.es45.js.map +1 -1
- package/dist/index.es450.js +3 -55
- package/dist/index.es450.js.map +1 -1
- package/dist/index.es451.js +22 -7
- package/dist/index.es451.js.map +1 -1
- package/dist/index.es452.js +13 -6
- package/dist/index.es452.js.map +1 -1
- package/dist/index.es453.js +24 -529
- package/dist/index.es453.js.map +1 -1
- package/dist/index.es454.js +5 -5
- package/dist/index.es454.js.map +1 -1
- package/dist/index.es455.js +23 -3
- package/dist/index.es455.js.map +1 -1
- package/dist/index.es458.js +2031 -15
- package/dist/index.es458.js.map +1 -1
- package/dist/index.es459.js +59 -39
- package/dist/index.es459.js.map +1 -1
- package/dist/index.es46.js +3 -3
- package/dist/index.es46.js.map +1 -1
- package/dist/index.es460.js +189 -2
- package/dist/index.es460.js.map +1 -1
- package/dist/index.es461.js +5 -2
- package/dist/index.es461.js.map +1 -1
- package/dist/index.es462.js +4 -2
- package/dist/index.es462.js.map +1 -1
- package/dist/index.es463.js +5 -3
- package/dist/index.es463.js.map +1 -1
- package/dist/index.es464.js +10 -2
- package/dist/index.es464.js.map +1 -1
- package/dist/index.es465.js +55 -3
- package/dist/index.es465.js.map +1 -1
- package/dist/index.es466.js +7 -4
- package/dist/index.es466.js.map +1 -1
- package/dist/index.es467.js +5 -522
- package/dist/index.es467.js.map +1 -1
- package/dist/index.es468.js +523 -117
- package/dist/index.es468.js.map +1 -1
- package/dist/index.es469.js +8 -127
- package/dist/index.es469.js.map +1 -1
- package/dist/index.es47.js +3 -3
- package/dist/index.es47.js.map +1 -1
- package/dist/index.es470.js +172 -59
- package/dist/index.es470.js.map +1 -1
- package/dist/index.es471.js +4 -69
- package/dist/index.es471.js.map +1 -1
- package/dist/index.es472.js +132 -8
- package/dist/index.es472.js.map +1 -1
- package/dist/index.es473.js +39 -13
- package/dist/index.es473.js.map +1 -1
- package/dist/index.es474.js +2 -62
- package/dist/index.es474.js.map +1 -1
- package/dist/index.es475.js +2 -4
- package/dist/index.es475.js.map +1 -1
- package/dist/index.es476.js +2 -6
- package/dist/index.es476.js.map +1 -1
- package/dist/index.es477.js +2 -23
- package/dist/index.es477.js.map +1 -1
- package/dist/index.es478.js +3 -23
- package/dist/index.es478.js.map +1 -1
- package/dist/index.es479.js +2 -13
- package/dist/index.es479.js.map +1 -1
- package/dist/index.es48.js +2 -2
- package/dist/index.es48.js.map +1 -1
- package/dist/index.es480.js +3 -27
- package/dist/index.es480.js.map +1 -1
- package/dist/index.es481.js +5 -5
- package/dist/index.es481.js.map +1 -1
- package/dist/index.es482.js +7 -0
- package/dist/index.es482.js.map +1 -0
- package/dist/index.es483.js +86 -0
- package/dist/index.es483.js.map +1 -0
- package/dist/index.es49.js +3 -3
- package/dist/index.es49.js.map +1 -1
- package/dist/index.es5.js +4 -4
- package/dist/index.es50.js +1 -1
- package/dist/index.es50.js.map +1 -1
- package/dist/index.es51.js +1 -1
- package/dist/index.es52.js +2 -2
- package/dist/index.es53.js +3 -3
- package/dist/index.es53.js.map +1 -1
- package/dist/index.es54.js +1 -1
- package/dist/index.es54.js.map +1 -1
- package/dist/index.es55.js +3 -3
- package/dist/index.es55.js.map +1 -1
- package/dist/index.es56.js +2 -2
- package/dist/index.es57.js +2 -2
- package/dist/index.es58.js +1 -1
- package/dist/index.es58.js.map +1 -1
- package/dist/index.es59.js +1 -1
- package/dist/index.es59.js.map +1 -1
- package/dist/index.es6.js +2 -2
- package/dist/index.es6.js.map +1 -1
- package/dist/index.es60.js +3 -3
- package/dist/index.es61.js +2 -2
- package/dist/index.es61.js.map +1 -1
- package/dist/index.es62.js +3 -3
- package/dist/index.es63.js +1 -1
- package/dist/index.es63.js.map +1 -1
- package/dist/index.es64.js +2 -2
- package/dist/index.es64.js.map +1 -1
- package/dist/index.es65.js +2 -2
- package/dist/index.es65.js.map +1 -1
- package/dist/index.es66.js +5 -5
- package/dist/index.es67.js +5 -5
- package/dist/index.es68.js +2 -2
- package/dist/index.es69.js +3 -3
- package/dist/index.es69.js.map +1 -1
- package/dist/index.es7.js +2 -2
- package/dist/index.es7.js.map +1 -1
- package/dist/index.es70.js +2 -2
- package/dist/index.es70.js.map +1 -1
- package/dist/index.es71.js +1 -1
- package/dist/index.es71.js.map +1 -1
- package/dist/index.es72.js +2 -2
- package/dist/index.es73.js +4 -4
- package/dist/index.es73.js.map +1 -1
- package/dist/index.es74.js +1 -1
- package/dist/index.es74.js.map +1 -1
- package/dist/index.es75.js +1 -1
- package/dist/index.es75.js.map +1 -1
- package/dist/index.es76.js +1 -1
- package/dist/index.es76.js.map +1 -1
- package/dist/index.es77.js +1 -1
- package/dist/index.es77.js.map +1 -1
- package/dist/index.es78.js +1 -1
- package/dist/index.es78.js.map +1 -1
- package/dist/index.es79.js +1 -1
- package/dist/index.es79.js.map +1 -1
- package/dist/index.es8.js +2 -2
- package/dist/index.es8.js.map +1 -1
- package/dist/index.es80.js +1 -1
- package/dist/index.es80.js.map +1 -1
- package/dist/index.es81.js +1 -1
- package/dist/index.es81.js.map +1 -1
- package/dist/index.es82.js +1 -1
- package/dist/index.es82.js.map +1 -1
- package/dist/index.es83.js +1 -1
- package/dist/index.es83.js.map +1 -1
- package/dist/index.es84.js +1 -1
- package/dist/index.es84.js.map +1 -1
- package/dist/index.es85.js +1 -1
- package/dist/index.es85.js.map +1 -1
- package/dist/index.es86.js +1 -1
- package/dist/index.es86.js.map +1 -1
- package/dist/index.es87.js +1 -1
- package/dist/index.es87.js.map +1 -1
- package/dist/index.es88.js +3 -3
- package/dist/index.es88.js.map +1 -1
- package/dist/index.es89.js +2 -2
- package/dist/index.es89.js.map +1 -1
- package/dist/index.es9.js +4 -4
- package/dist/index.es90.js +6 -6
- package/dist/index.es90.js.map +1 -1
- package/dist/index.es91.js +2 -2
- package/dist/index.es92.js +1 -1
- package/dist/index.es92.js.map +1 -1
- package/dist/index.es93.js +1 -1
- package/dist/index.es93.js.map +1 -1
- package/dist/index.es94.js +4 -4
- package/dist/index.es94.js.map +1 -1
- package/dist/index.es95.js +1 -1
- package/dist/index.es96.js +2 -2
- package/dist/index.es96.js.map +1 -1
- package/dist/index.es97.js +3 -3
- package/dist/index.es97.js.map +1 -1
- package/dist/index.es98.js +1 -1
- package/dist/index.es98.js.map +1 -1
- package/dist/index.es99.js +1 -1
- package/dist/index.es99.js.map +1 -1
- package/package.json +112 -112
- package/readme.md +42 -42
- package/dist/index.cjs215.js +0 -2
- package/dist/index.cjs215.js.map +0 -1
- package/dist/index.cjs222.js +0 -2
- package/dist/index.cjs222.js.map +0 -1
- package/dist/index.cjs226.js +0 -2
- package/dist/index.cjs226.js.map +0 -1
- package/dist/index.cjs229.js.map +0 -1
- package/dist/index.cjs232.js.map +0 -1
- package/dist/index.cjs236.js.map +0 -1
- package/dist/index.cjs240.js.map +0 -1
- package/dist/index.cjs246.js +0 -2
- package/dist/index.cjs246.js.map +0 -1
- package/dist/index.cjs254.js +0 -2
- package/dist/index.cjs254.js.map +0 -1
- package/dist/index.cjs258.js.map +0 -1
- package/dist/index.cjs263.js +0 -2
- package/dist/index.cjs263.js.map +0 -1
- package/dist/index.cjs268.js.map +0 -1
- package/dist/index.cjs270.js +0 -6
- package/dist/index.cjs270.js.map +0 -1
- package/dist/index.cjs276.js +0 -2
- package/dist/index.cjs276.js.map +0 -1
- package/dist/index.cjs281.js +0 -2
- package/dist/index.cjs281.js.map +0 -1
- package/dist/index.cjs287.js +0 -2
- package/dist/index.cjs287.js.map +0 -1
- package/dist/index.cjs291.js +0 -2
- package/dist/index.cjs291.js.map +0 -1
- package/dist/index.cjs295.js +0 -2
- package/dist/index.cjs295.js.map +0 -1
- package/dist/index.cjs307.js +0 -2
- package/dist/index.cjs307.js.map +0 -1
- package/dist/index.cjs344.js.map +0 -1
- package/dist/index.cjs355.js.map +0 -1
- package/dist/index.cjs357.js.map +0 -1
- package/dist/index.cjs361.js.map +0 -1
- package/dist/index.cjs363.js +0 -2
- package/dist/index.cjs363.js.map +0 -1
- package/dist/index.cjs373.js +0 -2
- package/dist/index.cjs373.js.map +0 -1
- package/dist/index.cjs374.js +0 -2
- package/dist/index.cjs374.js.map +0 -1
- package/dist/index.cjs387.js +0 -2
- package/dist/index.cjs387.js.map +0 -1
- package/dist/index.cjs422.js +0 -2
- package/dist/index.cjs422.js.map +0 -1
- package/dist/index.cjs423.js +0 -2
- package/dist/index.cjs423.js.map +0 -1
- package/dist/index.cjs434.js +0 -2
- package/dist/index.cjs434.js.map +0 -1
- package/dist/index.cjs435.js +0 -2
- package/dist/index.cjs435.js.map +0 -1
- package/dist/index.cjs436.js +0 -2
- package/dist/index.cjs436.js.map +0 -1
- package/dist/index.cjs437.js +0 -2
- package/dist/index.cjs437.js.map +0 -1
- package/dist/index.cjs438.js +0 -2
- package/dist/index.cjs438.js.map +0 -1
- package/dist/index.cjs449.js +0 -2
- package/dist/index.cjs449.js.map +0 -1
- package/dist/index.cjs456.js +0 -2
- package/dist/index.cjs456.js.map +0 -1
- package/dist/index.cjs457.js +0 -5
- package/dist/index.cjs457.js.map +0 -1
- package/dist/index.es215.js +0 -6
- package/dist/index.es215.js.map +0 -1
- package/dist/index.es222.js +0 -8
- package/dist/index.es222.js.map +0 -1
- package/dist/index.es226.js +0 -30
- package/dist/index.es226.js.map +0 -1
- package/dist/index.es229.js.map +0 -1
- package/dist/index.es232.js.map +0 -1
- package/dist/index.es236.js.map +0 -1
- package/dist/index.es240.js.map +0 -1
- package/dist/index.es246.js +0 -79
- package/dist/index.es246.js.map +0 -1
- package/dist/index.es254.js +0 -136
- package/dist/index.es254.js.map +0 -1
- package/dist/index.es258.js +0 -6
- package/dist/index.es258.js.map +0 -1
- package/dist/index.es263.js +0 -7
- package/dist/index.es263.js.map +0 -1
- package/dist/index.es268.js.map +0 -1
- package/dist/index.es270.js +0 -262
- package/dist/index.es270.js.map +0 -1
- package/dist/index.es276.js +0 -30
- package/dist/index.es276.js.map +0 -1
- package/dist/index.es281.js +0 -11
- package/dist/index.es281.js.map +0 -1
- package/dist/index.es287.js +0 -11
- package/dist/index.es287.js.map +0 -1
- package/dist/index.es291.js +0 -30
- package/dist/index.es291.js.map +0 -1
- package/dist/index.es295.js +0 -30
- package/dist/index.es295.js.map +0 -1
- package/dist/index.es307.js +0 -2
- package/dist/index.es307.js.map +0 -1
- package/dist/index.es344.js.map +0 -1
- package/dist/index.es355.js.map +0 -1
- package/dist/index.es357.js.map +0 -1
- package/dist/index.es361.js.map +0 -1
- package/dist/index.es363.js +0 -243
- package/dist/index.es363.js.map +0 -1
- package/dist/index.es373.js +0 -139
- package/dist/index.es373.js.map +0 -1
- package/dist/index.es374.js +0 -11
- package/dist/index.es374.js.map +0 -1
- package/dist/index.es387.js +0 -33
- package/dist/index.es387.js.map +0 -1
- package/dist/index.es422.js +0 -2035
- package/dist/index.es422.js.map +0 -1
- package/dist/index.es423.js +0 -63
- package/dist/index.es423.js.map +0 -1
- package/dist/index.es434.js +0 -3
- package/dist/index.es434.js.map +0 -1
- package/dist/index.es435.js +0 -136
- package/dist/index.es435.js.map +0 -1
- package/dist/index.es436.js +0 -181
- package/dist/index.es436.js.map +0 -1
- package/dist/index.es437.js +0 -13
- package/dist/index.es437.js.map +0 -1
- package/dist/index.es438.js +0 -7
- package/dist/index.es438.js.map +0 -1
- package/dist/index.es449.js +0 -13
- package/dist/index.es449.js.map +0 -1
- package/dist/index.es456.js +0 -27
- package/dist/index.es456.js.map +0 -1
- package/dist/index.es457.js +0 -113
- package/dist/index.es457.js.map +0 -1
package/dist/index.es193.js
CHANGED
@@ -1,477 +1,1799 @@
|
|
1
|
-
import
|
2
|
-
import
|
3
|
-
import
|
4
|
-
import
|
5
|
-
import
|
6
|
-
import
|
7
|
-
import
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
1
|
+
import E from "./index.es3.js";
|
2
|
+
import Se from "./index.es194.js";
|
3
|
+
import T from "./index.es4.js";
|
4
|
+
import W from "./index.es195.js";
|
5
|
+
import O from "./index.es196.js";
|
6
|
+
import B from "./index.es197.js";
|
7
|
+
import y from "./index.es198.js";
|
8
|
+
import { isUndefined as f, isNumber as H, isDate as Ne, normalizeObject as X, objToLocalTS as P, isLeapYear as Ie, daysInMonth as $, daysInYear as De, weeksInWeekYear as ee, maybeArray as Me, bestBy as te, padStart as m, roundTo as ve } from "./index.es199.js";
|
9
|
+
import { normalizeZone as S } from "./index.es200.js";
|
10
|
+
import be from "./index.es201.js";
|
11
|
+
import { parseISODate as _e, parseRFC2822Date as Ve, parseHTTPDate as pe, parseSQL as We } from "./index.es5.js";
|
12
|
+
import { parseFromTokens as Fe, formatOptsToTokens as Le, expandMacroTokens as ze, explainFromTokens as He, TokenParser as Ue } from "./index.es202.js";
|
13
|
+
import { usesLocalWeekValues as ne, gregorianToWeek as x, gregorianToOrdinal as Z, hasInvalidWeekData as Ce, hasInvalidOrdinalData as Ae, hasInvalidGregorianData as de, hasInvalidTimeData as he, weekToGregorian as ie, ordinalToGregorian as re } from "./index.es203.js";
|
14
|
+
import { DATE_SHORT as se, DATE_MED as xe, DATE_MED_WITH_WEEKDAY as Ye, DATE_FULL as Ze, DATE_HUGE as je, TIME_SIMPLE as qe, TIME_WITH_SECONDS as Ge, TIME_WITH_SHORT_OFFSET as Re, TIME_WITH_LONG_OFFSET as $e, TIME_24_SIMPLE as Pe, TIME_24_WITH_SECONDS as Qe, TIME_24_WITH_SHORT_OFFSET as Je, TIME_24_WITH_LONG_OFFSET as Ke, DATETIME_SHORT as Be, DATETIME_SHORT_WITH_SECONDS as Xe, DATETIME_MED as et, DATETIME_MED_WITH_SECONDS as tt, DATETIME_MED_WITH_WEEKDAY as nt, DATETIME_FULL as it, DATETIME_FULL_WITH_SECONDS as rt, DATETIME_HUGE as st, DATETIME_HUGE_WITH_SECONDS as at } from "./index.es204.js";
|
15
|
+
import { InvalidArgumentError as w, ConflictingSpecificationError as F, InvalidDateTimeError as ot, InvalidUnitError as lt } from "./index.es205.js";
|
16
|
+
import N from "./index.es206.js";
|
17
|
+
const j = "Invalid DateTime", ut = 864e13;
|
18
|
+
function b(n) {
|
19
|
+
return new N("unsupported zone", `the zone "${n.name}" is not supported`);
|
14
20
|
}
|
15
|
-
|
21
|
+
function q(n) {
|
22
|
+
return n.weekData === null && (n.weekData = x(n.c)), n.weekData;
|
23
|
+
}
|
24
|
+
function G(n) {
|
25
|
+
return n.localWeekData === null && (n.localWeekData = x(
|
26
|
+
n.c,
|
27
|
+
n.loc.getMinDaysInFirstWeek(),
|
28
|
+
n.loc.getStartOfWeek()
|
29
|
+
)), n.localWeekData;
|
30
|
+
}
|
31
|
+
function k(n, e) {
|
32
|
+
const t = {
|
33
|
+
ts: n.ts,
|
34
|
+
zone: n.zone,
|
35
|
+
c: n.c,
|
36
|
+
o: n.o,
|
37
|
+
loc: n.loc,
|
38
|
+
invalid: n.invalid
|
39
|
+
};
|
40
|
+
return new l({ ...t, ...e, old: t });
|
41
|
+
}
|
42
|
+
function me(n, e, t) {
|
43
|
+
let i = n - e * 60 * 1e3;
|
44
|
+
const r = t.offset(i);
|
45
|
+
if (e === r)
|
46
|
+
return [i, e];
|
47
|
+
i -= (r - e) * 60 * 1e3;
|
48
|
+
const a = t.offset(i);
|
49
|
+
return r === a ? [i, r] : [n - Math.min(r, a) * 60 * 1e3, Math.max(r, a)];
|
50
|
+
}
|
51
|
+
function L(n, e) {
|
52
|
+
n += e * 60 * 1e3;
|
53
|
+
const t = new Date(n);
|
54
|
+
return {
|
55
|
+
year: t.getUTCFullYear(),
|
56
|
+
month: t.getUTCMonth() + 1,
|
57
|
+
day: t.getUTCDate(),
|
58
|
+
hour: t.getUTCHours(),
|
59
|
+
minute: t.getUTCMinutes(),
|
60
|
+
second: t.getUTCSeconds(),
|
61
|
+
millisecond: t.getUTCMilliseconds()
|
62
|
+
};
|
63
|
+
}
|
64
|
+
function U(n, e, t) {
|
65
|
+
return me(P(n), e, t);
|
66
|
+
}
|
67
|
+
function ae(n, e) {
|
68
|
+
const t = n.o, i = n.c.year + Math.trunc(e.years), r = n.c.month + Math.trunc(e.months) + Math.trunc(e.quarters) * 3, a = {
|
69
|
+
...n.c,
|
70
|
+
year: i,
|
71
|
+
month: r,
|
72
|
+
day: Math.min(n.c.day, $(i, r)) + Math.trunc(e.days) + Math.trunc(e.weeks) * 7
|
73
|
+
}, s = E.fromObject({
|
74
|
+
years: e.years - Math.trunc(e.years),
|
75
|
+
quarters: e.quarters - Math.trunc(e.quarters),
|
76
|
+
months: e.months - Math.trunc(e.months),
|
77
|
+
weeks: e.weeks - Math.trunc(e.weeks),
|
78
|
+
days: e.days - Math.trunc(e.days),
|
79
|
+
hours: e.hours,
|
80
|
+
minutes: e.minutes,
|
81
|
+
seconds: e.seconds,
|
82
|
+
milliseconds: e.milliseconds
|
83
|
+
}).as("milliseconds"), o = P(a);
|
84
|
+
let [u, c] = me(o, t, n.zone);
|
85
|
+
return s !== 0 && (u += s, c = n.zone.offset(u)), { ts: u, o: c };
|
86
|
+
}
|
87
|
+
function g(n, e, t, i, r, a) {
|
88
|
+
const { setZone: s, zone: o } = t;
|
89
|
+
if (n && Object.keys(n).length !== 0 || e) {
|
90
|
+
const u = e || o, c = l.fromObject(n, {
|
91
|
+
...t,
|
92
|
+
zone: u,
|
93
|
+
specificOffset: a
|
94
|
+
});
|
95
|
+
return s ? c : c.setZone(o);
|
96
|
+
} else
|
97
|
+
return l.invalid(
|
98
|
+
new N("unparsable", `the input "${r}" can't be parsed as ${i}`)
|
99
|
+
);
|
100
|
+
}
|
101
|
+
function z(n, e, t = !0) {
|
102
|
+
return n.isValid ? O.create(y.create("en-US"), {
|
103
|
+
allowZ: t,
|
104
|
+
forceSimple: !0
|
105
|
+
}).formatDateTimeFromString(n, e) : null;
|
106
|
+
}
|
107
|
+
function R(n, e) {
|
108
|
+
const t = n.c.year > 9999 || n.c.year < 0;
|
109
|
+
let i = "";
|
110
|
+
return t && n.c.year >= 0 && (i += "+"), i += m(n.c.year, t ? 6 : 4), e ? (i += "-", i += m(n.c.month), i += "-", i += m(n.c.day)) : (i += m(n.c.month), i += m(n.c.day)), i;
|
111
|
+
}
|
112
|
+
function oe(n, e, t, i, r, a) {
|
113
|
+
let s = m(n.c.hour);
|
114
|
+
return e ? (s += ":", s += m(n.c.minute), (n.c.millisecond !== 0 || n.c.second !== 0 || !t) && (s += ":")) : s += m(n.c.minute), (n.c.millisecond !== 0 || n.c.second !== 0 || !t) && (s += m(n.c.second), (n.c.millisecond !== 0 || !i) && (s += ".", s += m(n.c.millisecond, 3))), r && (n.isOffsetFixed && n.offset === 0 && !a ? s += "Z" : n.o < 0 ? (s += "-", s += m(Math.trunc(-n.o / 60)), s += ":", s += m(Math.trunc(-n.o % 60))) : (s += "+", s += m(Math.trunc(n.o / 60)), s += ":", s += m(Math.trunc(n.o % 60)))), a && (s += "[" + n.zone.ianaName + "]"), s;
|
115
|
+
}
|
116
|
+
const ye = {
|
117
|
+
month: 1,
|
118
|
+
day: 1,
|
119
|
+
hour: 0,
|
120
|
+
minute: 0,
|
121
|
+
second: 0,
|
122
|
+
millisecond: 0
|
123
|
+
}, ct = {
|
124
|
+
weekNumber: 1,
|
125
|
+
weekday: 1,
|
126
|
+
hour: 0,
|
127
|
+
minute: 0,
|
128
|
+
second: 0,
|
129
|
+
millisecond: 0
|
130
|
+
}, ft = {
|
131
|
+
ordinal: 1,
|
132
|
+
hour: 0,
|
133
|
+
minute: 0,
|
134
|
+
second: 0,
|
135
|
+
millisecond: 0
|
136
|
+
}, Te = ["year", "month", "day", "hour", "minute", "second", "millisecond"], dt = [
|
137
|
+
"weekYear",
|
138
|
+
"weekNumber",
|
139
|
+
"weekday",
|
140
|
+
"hour",
|
141
|
+
"minute",
|
142
|
+
"second",
|
143
|
+
"millisecond"
|
144
|
+
], ht = ["year", "ordinal", "hour", "minute", "second", "millisecond"];
|
145
|
+
function mt(n) {
|
146
|
+
const e = {
|
147
|
+
year: "year",
|
148
|
+
years: "year",
|
149
|
+
month: "month",
|
150
|
+
months: "month",
|
151
|
+
day: "day",
|
152
|
+
days: "day",
|
153
|
+
hour: "hour",
|
154
|
+
hours: "hour",
|
155
|
+
minute: "minute",
|
156
|
+
minutes: "minute",
|
157
|
+
quarter: "quarter",
|
158
|
+
quarters: "quarter",
|
159
|
+
second: "second",
|
160
|
+
seconds: "second",
|
161
|
+
millisecond: "millisecond",
|
162
|
+
milliseconds: "millisecond",
|
163
|
+
weekday: "weekday",
|
164
|
+
weekdays: "weekday",
|
165
|
+
weeknumber: "weekNumber",
|
166
|
+
weeksnumber: "weekNumber",
|
167
|
+
weeknumbers: "weekNumber",
|
168
|
+
weekyear: "weekYear",
|
169
|
+
weekyears: "weekYear",
|
170
|
+
ordinal: "ordinal"
|
171
|
+
}[n.toLowerCase()];
|
172
|
+
if (!e) throw new lt(n);
|
173
|
+
return e;
|
174
|
+
}
|
175
|
+
function le(n) {
|
176
|
+
switch (n.toLowerCase()) {
|
177
|
+
case "localweekday":
|
178
|
+
case "localweekdays":
|
179
|
+
return "localWeekday";
|
180
|
+
case "localweeknumber":
|
181
|
+
case "localweeknumbers":
|
182
|
+
return "localWeekNumber";
|
183
|
+
case "localweekyear":
|
184
|
+
case "localweekyears":
|
185
|
+
return "localWeekYear";
|
186
|
+
default:
|
187
|
+
return mt(n);
|
188
|
+
}
|
189
|
+
}
|
190
|
+
function yt(n) {
|
191
|
+
return A[n] || (C === void 0 && (C = T.now()), A[n] = n.offset(C)), A[n];
|
192
|
+
}
|
193
|
+
function ue(n, e) {
|
194
|
+
const t = S(e.zone, T.defaultZone);
|
195
|
+
if (!t.isValid)
|
196
|
+
return l.invalid(b(t));
|
197
|
+
const i = y.fromObject(e);
|
198
|
+
let r, a;
|
199
|
+
if (f(n.year))
|
200
|
+
r = T.now();
|
201
|
+
else {
|
202
|
+
for (const u of Te)
|
203
|
+
f(n[u]) && (n[u] = ye[u]);
|
204
|
+
const s = de(n) || he(n);
|
205
|
+
if (s)
|
206
|
+
return l.invalid(s);
|
207
|
+
const o = yt(t);
|
208
|
+
[r, a] = U(n, o, t);
|
209
|
+
}
|
210
|
+
return new l({ ts: r, zone: t, loc: i, o: a });
|
211
|
+
}
|
212
|
+
function ce(n, e, t) {
|
213
|
+
const i = f(t.round) ? !0 : t.round, r = (s, o) => (s = ve(s, i || t.calendary ? 0 : 2, !0), e.loc.clone(t).relFormatter(t).format(s, o)), a = (s) => t.calendary ? e.hasSame(n, s) ? 0 : e.startOf(s).diff(n.startOf(s), s).get(s) : e.diff(n, s).get(s);
|
214
|
+
if (t.unit)
|
215
|
+
return r(a(t.unit), t.unit);
|
216
|
+
for (const s of t.units) {
|
217
|
+
const o = a(s);
|
218
|
+
if (Math.abs(o) >= 1)
|
219
|
+
return r(o, s);
|
220
|
+
}
|
221
|
+
return r(n > e ? -0 : 0, t.units[t.units.length - 1]);
|
222
|
+
}
|
223
|
+
function fe(n) {
|
224
|
+
let e = {}, t;
|
225
|
+
return n.length > 0 && typeof n[n.length - 1] == "object" ? (e = n[n.length - 1], t = Array.from(n).slice(0, n.length - 1)) : t = Array.from(n), [e, t];
|
226
|
+
}
|
227
|
+
let C, A = {};
|
228
|
+
class l {
|
16
229
|
/**
|
17
|
-
* @private
|
230
|
+
* @access private
|
18
231
|
*/
|
19
|
-
constructor(
|
20
|
-
|
232
|
+
constructor(e) {
|
233
|
+
const t = e.zone || T.defaultZone;
|
234
|
+
let i = e.invalid || (Number.isNaN(e.ts) ? new N("invalid input") : null) || (t.isValid ? null : b(t));
|
235
|
+
this.ts = f(e.ts) ? T.now() : e.ts;
|
236
|
+
let r = null, a = null;
|
237
|
+
if (!i)
|
238
|
+
if (e.old && e.old.ts === this.ts && e.old.zone.equals(t))
|
239
|
+
[r, a] = [e.old.c, e.old.o];
|
240
|
+
else {
|
241
|
+
const o = H(e.o) && !e.old ? e.o : t.offset(this.ts);
|
242
|
+
r = L(this.ts, o), i = Number.isNaN(r.year) ? new N("invalid input") : null, r = i ? null : r, a = i ? null : o;
|
243
|
+
}
|
244
|
+
this._zone = t, this.loc = e.loc || y.create(), this.invalid = i, this.weekData = null, this.localWeekData = null, this.c = r, this.o = a, this.isLuxonDateTime = !0;
|
21
245
|
}
|
246
|
+
// CONSTRUCT
|
22
247
|
/**
|
23
|
-
* Create
|
24
|
-
*
|
25
|
-
*
|
26
|
-
* @
|
248
|
+
* Create a DateTime for the current instant, in the system's time zone.
|
249
|
+
*
|
250
|
+
* Use Settings to override these default values if needed.
|
251
|
+
* @example DateTime.now().toISO() //~> now in the ISO format
|
252
|
+
* @return {DateTime}
|
27
253
|
*/
|
28
|
-
static
|
29
|
-
|
30
|
-
throw new v("need to specify a reason the Interval is invalid");
|
31
|
-
const e = t instanceof V ? t : new V(t, i);
|
32
|
-
if (S.throwOnInvalid)
|
33
|
-
throw new p(e);
|
34
|
-
return new a({ invalid: e });
|
254
|
+
static now() {
|
255
|
+
return new l({});
|
35
256
|
}
|
36
257
|
/**
|
37
|
-
* Create
|
38
|
-
* @param {
|
39
|
-
* @param {
|
40
|
-
* @
|
258
|
+
* Create a local DateTime
|
259
|
+
* @param {number} [year] - The calendar year. If omitted (as in, call `local()` with no arguments), the current time will be used
|
260
|
+
* @param {number} [month=1] - The month, 1-indexed
|
261
|
+
* @param {number} [day=1] - The day of the month, 1-indexed
|
262
|
+
* @param {number} [hour=0] - The hour of the day, in 24-hour time
|
263
|
+
* @param {number} [minute=0] - The minute of the hour, meaning a number between 0 and 59
|
264
|
+
* @param {number} [second=0] - The second of the minute, meaning a number between 0 and 59
|
265
|
+
* @param {number} [millisecond=0] - The millisecond of the second, meaning a number between 0 and 999
|
266
|
+
* @example DateTime.local() //~> now
|
267
|
+
* @example DateTime.local({ zone: "America/New_York" }) //~> now, in US east coast time
|
268
|
+
* @example DateTime.local(2017) //~> 2017-01-01T00:00:00
|
269
|
+
* @example DateTime.local(2017, 3) //~> 2017-03-01T00:00:00
|
270
|
+
* @example DateTime.local(2017, 3, 12, { locale: "fr" }) //~> 2017-03-12T00:00:00, with a French locale
|
271
|
+
* @example DateTime.local(2017, 3, 12, 5) //~> 2017-03-12T05:00:00
|
272
|
+
* @example DateTime.local(2017, 3, 12, 5, { zone: "utc" }) //~> 2017-03-12T05:00:00, in UTC
|
273
|
+
* @example DateTime.local(2017, 3, 12, 5, 45) //~> 2017-03-12T05:45:00
|
274
|
+
* @example DateTime.local(2017, 3, 12, 5, 45, 10) //~> 2017-03-12T05:45:10
|
275
|
+
* @example DateTime.local(2017, 3, 12, 5, 45, 10, 765) //~> 2017-03-12T05:45:10.765
|
276
|
+
* @return {DateTime}
|
41
277
|
*/
|
42
|
-
static
|
43
|
-
const e =
|
44
|
-
return r
|
45
|
-
start: e,
|
46
|
-
end: s
|
47
|
-
});
|
278
|
+
static local() {
|
279
|
+
const [e, t] = fe(arguments), [i, r, a, s, o, u, c] = t;
|
280
|
+
return ue({ year: i, month: r, day: a, hour: s, minute: o, second: u, millisecond: c }, e);
|
48
281
|
}
|
49
282
|
/**
|
50
|
-
* Create
|
51
|
-
* @param {
|
52
|
-
* @param {
|
53
|
-
* @
|
283
|
+
* Create a DateTime in UTC
|
284
|
+
* @param {number} [year] - The calendar year. If omitted (as in, call `utc()` with no arguments), the current time will be used
|
285
|
+
* @param {number} [month=1] - The month, 1-indexed
|
286
|
+
* @param {number} [day=1] - The day of the month
|
287
|
+
* @param {number} [hour=0] - The hour of the day, in 24-hour time
|
288
|
+
* @param {number} [minute=0] - The minute of the hour, meaning a number between 0 and 59
|
289
|
+
* @param {number} [second=0] - The second of the minute, meaning a number between 0 and 59
|
290
|
+
* @param {number} [millisecond=0] - The millisecond of the second, meaning a number between 0 and 999
|
291
|
+
* @param {Object} options - configuration options for the DateTime
|
292
|
+
* @param {string} [options.locale] - a locale to set on the resulting DateTime instance
|
293
|
+
* @param {string} [options.outputCalendar] - the output calendar to set on the resulting DateTime instance
|
294
|
+
* @param {string} [options.numberingSystem] - the numbering system to set on the resulting DateTime instance
|
295
|
+
* @param {string} [options.weekSettings] - the week settings to set on the resulting DateTime instance
|
296
|
+
* @example DateTime.utc() //~> now
|
297
|
+
* @example DateTime.utc(2017) //~> 2017-01-01T00:00:00Z
|
298
|
+
* @example DateTime.utc(2017, 3) //~> 2017-03-01T00:00:00Z
|
299
|
+
* @example DateTime.utc(2017, 3, 12) //~> 2017-03-12T00:00:00Z
|
300
|
+
* @example DateTime.utc(2017, 3, 12, 5) //~> 2017-03-12T05:00:00Z
|
301
|
+
* @example DateTime.utc(2017, 3, 12, 5, 45) //~> 2017-03-12T05:45:00Z
|
302
|
+
* @example DateTime.utc(2017, 3, 12, 5, 45, { locale: "fr" }) //~> 2017-03-12T05:45:00Z with a French locale
|
303
|
+
* @example DateTime.utc(2017, 3, 12, 5, 45, 10) //~> 2017-03-12T05:45:10Z
|
304
|
+
* @example DateTime.utc(2017, 3, 12, 5, 45, 10, 765, { locale: "fr" }) //~> 2017-03-12T05:45:10.765Z with a French locale
|
305
|
+
* @return {DateTime}
|
54
306
|
*/
|
55
|
-
static
|
56
|
-
const e =
|
57
|
-
return
|
307
|
+
static utc() {
|
308
|
+
const [e, t] = fe(arguments), [i, r, a, s, o, u, c] = t;
|
309
|
+
return e.zone = B.utcInstance, ue({ year: i, month: r, day: a, hour: s, minute: o, second: u, millisecond: c }, e);
|
58
310
|
}
|
59
311
|
/**
|
60
|
-
* Create
|
61
|
-
* @param {
|
62
|
-
* @param {
|
63
|
-
* @
|
312
|
+
* Create a DateTime from a JavaScript Date object. Uses the default zone.
|
313
|
+
* @param {Date} date - a JavaScript Date object
|
314
|
+
* @param {Object} options - configuration options for the DateTime
|
315
|
+
* @param {string|Zone} [options.zone='local'] - the zone to place the DateTime into
|
316
|
+
* @return {DateTime}
|
64
317
|
*/
|
65
|
-
static
|
66
|
-
const
|
67
|
-
|
318
|
+
static fromJSDate(e, t = {}) {
|
319
|
+
const i = Ne(e) ? e.valueOf() : NaN;
|
320
|
+
if (Number.isNaN(i))
|
321
|
+
return l.invalid("invalid input");
|
322
|
+
const r = S(t.zone, T.defaultZone);
|
323
|
+
return r.isValid ? new l({
|
324
|
+
ts: i,
|
325
|
+
zone: r,
|
326
|
+
loc: y.fromObject(t)
|
327
|
+
}) : l.invalid(b(r));
|
68
328
|
}
|
69
329
|
/**
|
70
|
-
* Create
|
71
|
-
*
|
72
|
-
* @param {
|
73
|
-
* @param {
|
74
|
-
* @
|
75
|
-
* @
|
330
|
+
* Create a DateTime from a number of milliseconds since the epoch (meaning since 1 January 1970 00:00:00 UTC). Uses the default zone.
|
331
|
+
* @param {number} milliseconds - a number of milliseconds since 1970 UTC
|
332
|
+
* @param {Object} options - configuration options for the DateTime
|
333
|
+
* @param {string|Zone} [options.zone='local'] - the zone to place the DateTime into
|
334
|
+
* @param {string} [options.locale] - a locale to set on the resulting DateTime instance
|
335
|
+
* @param {string} options.outputCalendar - the output calendar to set on the resulting DateTime instance
|
336
|
+
* @param {string} options.numberingSystem - the numbering system to set on the resulting DateTime instance
|
337
|
+
* @param {string} options.weekSettings - the week settings to set on the resulting DateTime instance
|
338
|
+
* @return {DateTime}
|
76
339
|
*/
|
77
|
-
static
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
}
|
84
|
-
|
85
|
-
}
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
340
|
+
static fromMillis(e, t = {}) {
|
341
|
+
if (H(e))
|
342
|
+
return e < -864e13 || e > ut ? l.invalid("Timestamp out of range") : new l({
|
343
|
+
ts: e,
|
344
|
+
zone: S(t.zone, T.defaultZone),
|
345
|
+
loc: y.fromObject(t)
|
346
|
+
});
|
347
|
+
throw new w(
|
348
|
+
`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`
|
349
|
+
);
|
350
|
+
}
|
351
|
+
/**
|
352
|
+
* Create a DateTime from a number of seconds since the epoch (meaning since 1 January 1970 00:00:00 UTC). Uses the default zone.
|
353
|
+
* @param {number} seconds - a number of seconds since 1970 UTC
|
354
|
+
* @param {Object} options - configuration options for the DateTime
|
355
|
+
* @param {string|Zone} [options.zone='local'] - the zone to place the DateTime into
|
356
|
+
* @param {string} [options.locale] - a locale to set on the resulting DateTime instance
|
357
|
+
* @param {string} options.outputCalendar - the output calendar to set on the resulting DateTime instance
|
358
|
+
* @param {string} options.numberingSystem - the numbering system to set on the resulting DateTime instance
|
359
|
+
* @param {string} options.weekSettings - the week settings to set on the resulting DateTime instance
|
360
|
+
* @return {DateTime}
|
361
|
+
*/
|
362
|
+
static fromSeconds(e, t = {}) {
|
363
|
+
if (H(e))
|
364
|
+
return new l({
|
365
|
+
ts: e * 1e3,
|
366
|
+
zone: S(t.zone, T.defaultZone),
|
367
|
+
loc: y.fromObject(t)
|
368
|
+
});
|
369
|
+
throw new w("fromSeconds requires a numerical input");
|
370
|
+
}
|
371
|
+
/**
|
372
|
+
* Create a DateTime from a JavaScript object with keys like 'year' and 'hour' with reasonable defaults.
|
373
|
+
* @param {Object} obj - the object to create the DateTime from
|
374
|
+
* @param {number} obj.year - a year, such as 1987
|
375
|
+
* @param {number} obj.month - a month, 1-12
|
376
|
+
* @param {number} obj.day - a day of the month, 1-31, depending on the month
|
377
|
+
* @param {number} obj.ordinal - day of the year, 1-365 or 366
|
378
|
+
* @param {number} obj.weekYear - an ISO week year
|
379
|
+
* @param {number} obj.weekNumber - an ISO week number, between 1 and 52 or 53, depending on the year
|
380
|
+
* @param {number} obj.weekday - an ISO weekday, 1-7, where 1 is Monday and 7 is Sunday
|
381
|
+
* @param {number} obj.localWeekYear - a week year, according to the locale
|
382
|
+
* @param {number} obj.localWeekNumber - a week number, between 1 and 52 or 53, depending on the year, according to the locale
|
383
|
+
* @param {number} obj.localWeekday - a weekday, 1-7, where 1 is the first and 7 is the last day of the week, according to the locale
|
384
|
+
* @param {number} obj.hour - hour of the day, 0-23
|
385
|
+
* @param {number} obj.minute - minute of the hour, 0-59
|
386
|
+
* @param {number} obj.second - second of the minute, 0-59
|
387
|
+
* @param {number} obj.millisecond - millisecond of the second, 0-999
|
388
|
+
* @param {Object} opts - options for creating this DateTime
|
389
|
+
* @param {string|Zone} [opts.zone='local'] - interpret the numbers in the context of a particular zone. Can take any value taken as the first argument to setZone()
|
390
|
+
* @param {string} [opts.locale='system\'s locale'] - a locale to set on the resulting DateTime instance
|
391
|
+
* @param {string} opts.outputCalendar - the output calendar to set on the resulting DateTime instance
|
392
|
+
* @param {string} opts.numberingSystem - the numbering system to set on the resulting DateTime instance
|
393
|
+
* @param {string} opts.weekSettings - the week settings to set on the resulting DateTime instance
|
394
|
+
* @example DateTime.fromObject({ year: 1982, month: 5, day: 25}).toISODate() //=> '1982-05-25'
|
395
|
+
* @example DateTime.fromObject({ year: 1982 }).toISODate() //=> '1982-01-01'
|
396
|
+
* @example DateTime.fromObject({ hour: 10, minute: 26, second: 6 }) //~> today at 10:26:06
|
397
|
+
* @example DateTime.fromObject({ hour: 10, minute: 26, second: 6 }, { zone: 'utc' }),
|
398
|
+
* @example DateTime.fromObject({ hour: 10, minute: 26, second: 6 }, { zone: 'local' })
|
399
|
+
* @example DateTime.fromObject({ hour: 10, minute: 26, second: 6 }, { zone: 'America/New_York' })
|
400
|
+
* @example DateTime.fromObject({ weekYear: 2016, weekNumber: 2, weekday: 3 }).toISODate() //=> '2016-01-13'
|
401
|
+
* @example DateTime.fromObject({ localWeekYear: 2022, localWeekNumber: 1, localWeekday: 1 }, { locale: "en-US" }).toISODate() //=> '2021-12-26'
|
402
|
+
* @return {DateTime}
|
403
|
+
*/
|
404
|
+
static fromObject(e, t = {}) {
|
405
|
+
e = e || {};
|
406
|
+
const i = S(t.zone, T.defaultZone);
|
407
|
+
if (!i.isValid)
|
408
|
+
return l.invalid(b(i));
|
409
|
+
const r = y.fromObject(t), a = X(e, le), { minDaysInFirstWeek: s, startOfWeek: o } = ne(a, r), u = T.now(), c = f(t.specificOffset) ? i.offset(u) : t.specificOffset, d = !f(a.ordinal), h = !f(a.year), _ = !f(a.month) || !f(a.day), I = h || _, Q = a.weekYear || a.weekNumber;
|
410
|
+
if ((I || d) && Q)
|
411
|
+
throw new F(
|
412
|
+
"Can't mix weekYear/weekNumber units with year/month/day or ordinals"
|
413
|
+
);
|
414
|
+
if (_ && d)
|
415
|
+
throw new F("Can't mix ordinal dates with month/day");
|
416
|
+
const Y = Q || a.weekday && !I;
|
417
|
+
let V, p, D = L(u, c);
|
418
|
+
Y ? (V = dt, p = ct, D = x(D, s, o)) : d ? (V = ht, p = ft, D = Z(D)) : (V = Te, p = ye);
|
419
|
+
let J = !1;
|
420
|
+
for (const v of V) {
|
421
|
+
const Oe = a[v];
|
422
|
+
f(Oe) ? J ? a[v] = p[v] : a[v] = D[v] : J = !0;
|
103
423
|
}
|
104
|
-
|
424
|
+
const we = Y ? Ce(a, s, o) : d ? Ae(a) : de(a), K = we || he(a);
|
425
|
+
if (K)
|
426
|
+
return l.invalid(K);
|
427
|
+
const ke = Y ? ie(a, s, o) : d ? re(a) : a, [ge, Ee] = U(ke, c, i), M = new l({
|
428
|
+
ts: ge,
|
429
|
+
zone: i,
|
430
|
+
o: Ee,
|
431
|
+
loc: r
|
432
|
+
});
|
433
|
+
return a.weekday && I && e.weekday !== M.weekday ? l.invalid(
|
434
|
+
"mismatched weekday",
|
435
|
+
`you can't specify both a weekday of ${a.weekday} and a date of ${M.toISO()}`
|
436
|
+
) : M.isValid ? M : l.invalid(M.invalid);
|
437
|
+
}
|
438
|
+
/**
|
439
|
+
* Create a DateTime from an ISO 8601 string
|
440
|
+
* @param {string} text - the ISO string
|
441
|
+
* @param {Object} opts - options to affect the creation
|
442
|
+
* @param {string|Zone} [opts.zone='local'] - use this zone if no offset is specified in the input string itself. Will also convert the time to this zone
|
443
|
+
* @param {boolean} [opts.setZone=false] - override the zone with a fixed-offset zone specified in the string itself, if it specifies one
|
444
|
+
* @param {string} [opts.locale='system's locale'] - a locale to set on the resulting DateTime instance
|
445
|
+
* @param {string} [opts.outputCalendar] - the output calendar to set on the resulting DateTime instance
|
446
|
+
* @param {string} [opts.numberingSystem] - the numbering system to set on the resulting DateTime instance
|
447
|
+
* @param {string} [opts.weekSettings] - the week settings to set on the resulting DateTime instance
|
448
|
+
* @example DateTime.fromISO('2016-05-25T09:08:34.123')
|
449
|
+
* @example DateTime.fromISO('2016-05-25T09:08:34.123+06:00')
|
450
|
+
* @example DateTime.fromISO('2016-05-25T09:08:34.123+06:00', {setZone: true})
|
451
|
+
* @example DateTime.fromISO('2016-05-25T09:08:34.123', {zone: 'utc'})
|
452
|
+
* @example DateTime.fromISO('2016-W05-4')
|
453
|
+
* @return {DateTime}
|
454
|
+
*/
|
455
|
+
static fromISO(e, t = {}) {
|
456
|
+
const [i, r] = _e(e);
|
457
|
+
return g(i, r, t, "ISO 8601", e);
|
458
|
+
}
|
459
|
+
/**
|
460
|
+
* Create a DateTime from an RFC 2822 string
|
461
|
+
* @param {string} text - the RFC 2822 string
|
462
|
+
* @param {Object} opts - options to affect the creation
|
463
|
+
* @param {string|Zone} [opts.zone='local'] - convert the time to this zone. Since the offset is always specified in the string itself, this has no effect on the interpretation of string, merely the zone the resulting DateTime is expressed in.
|
464
|
+
* @param {boolean} [opts.setZone=false] - override the zone with a fixed-offset zone specified in the string itself, if it specifies one
|
465
|
+
* @param {string} [opts.locale='system's locale'] - a locale to set on the resulting DateTime instance
|
466
|
+
* @param {string} opts.outputCalendar - the output calendar to set on the resulting DateTime instance
|
467
|
+
* @param {string} opts.numberingSystem - the numbering system to set on the resulting DateTime instance
|
468
|
+
* @param {string} opts.weekSettings - the week settings to set on the resulting DateTime instance
|
469
|
+
* @example DateTime.fromRFC2822('25 Nov 2016 13:23:12 GMT')
|
470
|
+
* @example DateTime.fromRFC2822('Fri, 25 Nov 2016 13:23:12 +0600')
|
471
|
+
* @example DateTime.fromRFC2822('25 Nov 2016 13:23 Z')
|
472
|
+
* @return {DateTime}
|
473
|
+
*/
|
474
|
+
static fromRFC2822(e, t = {}) {
|
475
|
+
const [i, r] = Ve(e);
|
476
|
+
return g(i, r, t, "RFC 2822", e);
|
105
477
|
}
|
106
478
|
/**
|
107
|
-
*
|
479
|
+
* Create a DateTime from an HTTP header date
|
480
|
+
* @see https://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.3.1
|
481
|
+
* @param {string} text - the HTTP header date
|
482
|
+
* @param {Object} opts - options to affect the creation
|
483
|
+
* @param {string|Zone} [opts.zone='local'] - convert the time to this zone. Since HTTP dates are always in UTC, this has no effect on the interpretation of string, merely the zone the resulting DateTime is expressed in.
|
484
|
+
* @param {boolean} [opts.setZone=false] - override the zone with the fixed-offset zone specified in the string. For HTTP dates, this is always UTC, so this option is equivalent to setting the `zone` option to 'utc', but this option is included for consistency with similar methods.
|
485
|
+
* @param {string} [opts.locale='system's locale'] - a locale to set on the resulting DateTime instance
|
486
|
+
* @param {string} opts.outputCalendar - the output calendar to set on the resulting DateTime instance
|
487
|
+
* @param {string} opts.numberingSystem - the numbering system to set on the resulting DateTime instance
|
488
|
+
* @param {string} opts.weekSettings - the week settings to set on the resulting DateTime instance
|
489
|
+
* @example DateTime.fromHTTP('Sun, 06 Nov 1994 08:49:37 GMT')
|
490
|
+
* @example DateTime.fromHTTP('Sunday, 06-Nov-94 08:49:37 GMT')
|
491
|
+
* @example DateTime.fromHTTP('Sun Nov 6 08:49:37 1994')
|
492
|
+
* @return {DateTime}
|
493
|
+
*/
|
494
|
+
static fromHTTP(e, t = {}) {
|
495
|
+
const [i, r] = pe(e);
|
496
|
+
return g(i, r, t, "HTTP", t);
|
497
|
+
}
|
498
|
+
/**
|
499
|
+
* Create a DateTime from an input string and format string.
|
500
|
+
* Defaults to en-US if no locale has been specified, regardless of the system's locale. For a table of tokens and their interpretations, see [here](https://moment.github.io/luxon/#/parsing?id=table-of-tokens).
|
501
|
+
* @param {string} text - the string to parse
|
502
|
+
* @param {string} fmt - the format the string is expected to be in (see the link below for the formats)
|
503
|
+
* @param {Object} opts - options to affect the creation
|
504
|
+
* @param {string|Zone} [opts.zone='local'] - use this zone if no offset is specified in the input string itself. Will also convert the DateTime to this zone
|
505
|
+
* @param {boolean} [opts.setZone=false] - override the zone with a zone specified in the string itself, if it specifies one
|
506
|
+
* @param {string} [opts.locale='en-US'] - a locale string to use when parsing. Will also set the DateTime to this locale
|
507
|
+
* @param {string} opts.numberingSystem - the numbering system to use when parsing. Will also set the resulting DateTime to this numbering system
|
508
|
+
* @param {string} opts.weekSettings - the week settings to set on the resulting DateTime instance
|
509
|
+
* @param {string} opts.outputCalendar - the output calendar to set on the resulting DateTime instance
|
510
|
+
* @return {DateTime}
|
511
|
+
*/
|
512
|
+
static fromFormat(e, t, i = {}) {
|
513
|
+
if (f(e) || f(t))
|
514
|
+
throw new w("fromFormat requires an input string and a format");
|
515
|
+
const { locale: r = null, numberingSystem: a = null } = i, s = y.fromOpts({
|
516
|
+
locale: r,
|
517
|
+
numberingSystem: a,
|
518
|
+
defaultToEN: !0
|
519
|
+
}), [o, u, c, d] = Fe(s, e, t);
|
520
|
+
return d ? l.invalid(d) : g(o, u, i, `format ${t}`, e, c);
|
521
|
+
}
|
522
|
+
/**
|
523
|
+
* @deprecated use fromFormat instead
|
524
|
+
*/
|
525
|
+
static fromString(e, t, i = {}) {
|
526
|
+
return l.fromFormat(e, t, i);
|
527
|
+
}
|
528
|
+
/**
|
529
|
+
* Create a DateTime from a SQL date, time, or datetime
|
530
|
+
* Defaults to en-US if no locale has been specified, regardless of the system's locale
|
531
|
+
* @param {string} text - the string to parse
|
532
|
+
* @param {Object} opts - options to affect the creation
|
533
|
+
* @param {string|Zone} [opts.zone='local'] - use this zone if no offset is specified in the input string itself. Will also convert the DateTime to this zone
|
534
|
+
* @param {boolean} [opts.setZone=false] - override the zone with a zone specified in the string itself, if it specifies one
|
535
|
+
* @param {string} [opts.locale='en-US'] - a locale string to use when parsing. Will also set the DateTime to this locale
|
536
|
+
* @param {string} opts.numberingSystem - the numbering system to use when parsing. Will also set the resulting DateTime to this numbering system
|
537
|
+
* @param {string} opts.weekSettings - the week settings to set on the resulting DateTime instance
|
538
|
+
* @param {string} opts.outputCalendar - the output calendar to set on the resulting DateTime instance
|
539
|
+
* @example DateTime.fromSQL('2017-05-15')
|
540
|
+
* @example DateTime.fromSQL('2017-05-15 09:12:34')
|
541
|
+
* @example DateTime.fromSQL('2017-05-15 09:12:34.342')
|
542
|
+
* @example DateTime.fromSQL('2017-05-15 09:12:34.342+06:00')
|
543
|
+
* @example DateTime.fromSQL('2017-05-15 09:12:34.342 America/Los_Angeles')
|
544
|
+
* @example DateTime.fromSQL('2017-05-15 09:12:34.342 America/Los_Angeles', { setZone: true })
|
545
|
+
* @example DateTime.fromSQL('2017-05-15 09:12:34.342', { zone: 'America/Los_Angeles' })
|
546
|
+
* @example DateTime.fromSQL('09:12:34.342')
|
547
|
+
* @return {DateTime}
|
548
|
+
*/
|
549
|
+
static fromSQL(e, t = {}) {
|
550
|
+
const [i, r] = We(e);
|
551
|
+
return g(i, r, t, "SQL", e);
|
552
|
+
}
|
553
|
+
/**
|
554
|
+
* Create an invalid DateTime.
|
555
|
+
* @param {string} reason - simple string of why this DateTime is invalid. Should not contain parameters or anything else data-dependent.
|
556
|
+
* @param {string} [explanation=null] - longer explanation, may include parameters and other useful debugging information
|
557
|
+
* @return {DateTime}
|
558
|
+
*/
|
559
|
+
static invalid(e, t = null) {
|
560
|
+
if (!e)
|
561
|
+
throw new w("need to specify a reason the DateTime is invalid");
|
562
|
+
const i = e instanceof N ? e : new N(e, t);
|
563
|
+
if (T.throwOnInvalid)
|
564
|
+
throw new ot(i);
|
565
|
+
return new l({ invalid: i });
|
566
|
+
}
|
567
|
+
/**
|
568
|
+
* Check if an object is an instance of DateTime. Works across context boundaries
|
108
569
|
* @param {object} o
|
109
570
|
* @return {boolean}
|
110
571
|
*/
|
111
|
-
static
|
112
|
-
return
|
572
|
+
static isDateTime(e) {
|
573
|
+
return e && e.isLuxonDateTime || !1;
|
113
574
|
}
|
114
575
|
/**
|
115
|
-
*
|
116
|
-
* @
|
576
|
+
* Produce the format string for a set of options
|
577
|
+
* @param formatOpts
|
578
|
+
* @param localeOpts
|
579
|
+
* @returns {string}
|
117
580
|
*/
|
118
|
-
|
119
|
-
|
581
|
+
static parseFormatForOpts(e, t = {}) {
|
582
|
+
const i = Le(e, y.fromObject(t));
|
583
|
+
return i ? i.map((r) => r ? r.val : null).join("") : null;
|
120
584
|
}
|
121
585
|
/**
|
122
|
-
*
|
123
|
-
*
|
586
|
+
* Produce the the fully expanded format token for the locale
|
587
|
+
* Does NOT quote characters, so quoted tokens will not round trip correctly
|
588
|
+
* @param fmt
|
589
|
+
* @param localeOpts
|
590
|
+
* @returns {string}
|
124
591
|
*/
|
125
|
-
|
126
|
-
return
|
592
|
+
static expandFormat(e, t = {}) {
|
593
|
+
return ze(O.parseFormat(e), y.fromObject(t)).map((r) => r.val).join("");
|
594
|
+
}
|
595
|
+
static resetCache() {
|
596
|
+
C = void 0, A = {};
|
127
597
|
}
|
598
|
+
// INFO
|
128
599
|
/**
|
129
|
-
*
|
130
|
-
* @
|
600
|
+
* Get the value of unit.
|
601
|
+
* @param {string} unit - a unit such as 'minute' or 'day'
|
602
|
+
* @example DateTime.local(2017, 7, 4).get('month'); //=> 7
|
603
|
+
* @example DateTime.local(2017, 7, 4).get('day'); //=> 4
|
604
|
+
* @return {number}
|
131
605
|
*/
|
132
|
-
get
|
133
|
-
return this
|
606
|
+
get(e) {
|
607
|
+
return this[e];
|
134
608
|
}
|
135
609
|
/**
|
136
|
-
* Returns whether
|
610
|
+
* Returns whether the DateTime is valid. Invalid DateTimes occur when:
|
611
|
+
* * The DateTime was created from invalid calendar information, such as the 13th month or February 30
|
612
|
+
* * The DateTime was created by an operation on another invalid date
|
137
613
|
* @type {boolean}
|
138
614
|
*/
|
139
615
|
get isValid() {
|
140
|
-
return this.
|
616
|
+
return this.invalid === null;
|
141
617
|
}
|
142
618
|
/**
|
143
|
-
* Returns an error code if this
|
619
|
+
* Returns an error code if this DateTime is invalid, or null if the DateTime is valid
|
144
620
|
* @type {string}
|
145
621
|
*/
|
146
622
|
get invalidReason() {
|
147
623
|
return this.invalid ? this.invalid.reason : null;
|
148
624
|
}
|
149
625
|
/**
|
150
|
-
* Returns an explanation of why this
|
626
|
+
* Returns an explanation of why this DateTime became invalid, or null if the DateTime is valid
|
151
627
|
* @type {string}
|
152
628
|
*/
|
153
629
|
get invalidExplanation() {
|
154
630
|
return this.invalid ? this.invalid.explanation : null;
|
155
631
|
}
|
156
632
|
/**
|
157
|
-
*
|
158
|
-
*
|
159
|
-
* @
|
633
|
+
* Get the locale of a DateTime, such 'en-GB'. The locale is used when formatting the DateTime
|
634
|
+
*
|
635
|
+
* @type {string}
|
160
636
|
*/
|
161
|
-
|
162
|
-
return this.isValid ? this.
|
637
|
+
get locale() {
|
638
|
+
return this.isValid ? this.loc.locale : null;
|
163
639
|
}
|
164
640
|
/**
|
165
|
-
*
|
166
|
-
*
|
167
|
-
*
|
168
|
-
* @param {string} [unit='milliseconds'] - the unit of time to count.
|
169
|
-
* @param {Object} opts - options
|
170
|
-
* @param {boolean} [opts.useLocaleWeeks=false] - If true, use weeks based on the locale, i.e. use the locale-dependent start of the week; this operation will always use the locale of the start DateTime
|
171
|
-
* @return {number}
|
641
|
+
* Get the numbering system of a DateTime, such 'beng'. The numbering system is used when formatting the DateTime
|
642
|
+
*
|
643
|
+
* @type {string}
|
172
644
|
*/
|
173
|
-
|
174
|
-
|
175
|
-
const e = this.start.startOf(t, i);
|
176
|
-
let s;
|
177
|
-
return i != null && i.useLocaleWeeks ? s = this.end.reconfigure({ locale: e.locale }) : s = this.end, s = s.startOf(t, i), Math.floor(s.diff(e, t).get(t)) + (s.valueOf() !== this.end.valueOf());
|
645
|
+
get numberingSystem() {
|
646
|
+
return this.isValid ? this.loc.numberingSystem : null;
|
178
647
|
}
|
179
648
|
/**
|
180
|
-
*
|
181
|
-
*
|
182
|
-
* @
|
649
|
+
* Get the output calendar of a DateTime, such 'islamic'. The output calendar is used when formatting the DateTime
|
650
|
+
*
|
651
|
+
* @type {string}
|
183
652
|
*/
|
184
|
-
|
185
|
-
return this.isValid ? this.
|
653
|
+
get outputCalendar() {
|
654
|
+
return this.isValid ? this.loc.outputCalendar : null;
|
186
655
|
}
|
187
656
|
/**
|
188
|
-
*
|
189
|
-
* @
|
657
|
+
* Get the time zone associated with this DateTime.
|
658
|
+
* @type {Zone}
|
190
659
|
*/
|
191
|
-
|
192
|
-
return this.
|
660
|
+
get zone() {
|
661
|
+
return this._zone;
|
193
662
|
}
|
194
663
|
/**
|
195
|
-
*
|
196
|
-
* @
|
197
|
-
* @return {boolean}
|
664
|
+
* Get the name of the time zone.
|
665
|
+
* @type {string}
|
198
666
|
*/
|
199
|
-
|
200
|
-
return this.isValid ? this.
|
667
|
+
get zoneName() {
|
668
|
+
return this.isValid ? this.zone.name : null;
|
201
669
|
}
|
202
670
|
/**
|
203
|
-
*
|
204
|
-
* @
|
205
|
-
* @
|
671
|
+
* Get the year
|
672
|
+
* @example DateTime.local(2017, 5, 25).year //=> 2017
|
673
|
+
* @type {number}
|
206
674
|
*/
|
207
|
-
|
208
|
-
return this.isValid ? this.
|
675
|
+
get year() {
|
676
|
+
return this.isValid ? this.c.year : NaN;
|
209
677
|
}
|
210
678
|
/**
|
211
|
-
*
|
212
|
-
* @
|
213
|
-
* @
|
679
|
+
* Get the quarter
|
680
|
+
* @example DateTime.local(2017, 5, 25).quarter //=> 2
|
681
|
+
* @type {number}
|
214
682
|
*/
|
215
|
-
|
216
|
-
return this.isValid ?
|
683
|
+
get quarter() {
|
684
|
+
return this.isValid ? Math.ceil(this.c.month / 3) : NaN;
|
217
685
|
}
|
218
686
|
/**
|
219
|
-
*
|
220
|
-
* @
|
221
|
-
* @
|
222
|
-
* @param {DateTime} values.end - the ending DateTime
|
223
|
-
* @return {Interval}
|
687
|
+
* Get the month (1-12).
|
688
|
+
* @example DateTime.local(2017, 5, 25).month //=> 5
|
689
|
+
* @type {number}
|
224
690
|
*/
|
225
|
-
|
226
|
-
return this.isValid ?
|
691
|
+
get month() {
|
692
|
+
return this.isValid ? this.c.month : NaN;
|
227
693
|
}
|
228
694
|
/**
|
229
|
-
*
|
230
|
-
* @
|
231
|
-
* @
|
695
|
+
* Get the day of the month (1-30ish).
|
696
|
+
* @example DateTime.local(2017, 5, 25).day //=> 25
|
697
|
+
* @type {number}
|
232
698
|
*/
|
233
|
-
|
234
|
-
|
235
|
-
const i = t.map(f).filter((n) => this.contains(n)).sort((n, u) => n.toMillis() - u.toMillis()), e = [];
|
236
|
-
let { s } = this, r = 0;
|
237
|
-
for (; s < this.e; ) {
|
238
|
-
const n = i[r] || this.e, u = +n > +this.e ? this.e : n;
|
239
|
-
e.push(a.fromDateTimes(s, u)), s = u, r += 1;
|
240
|
-
}
|
241
|
-
return e;
|
242
|
-
}
|
243
|
-
/**
|
244
|
-
* Split this Interval into smaller Intervals, each of the specified length.
|
245
|
-
* Left over time is grouped into a smaller interval
|
246
|
-
* @param {Duration|Object|number} duration - The length of each resulting interval.
|
247
|
-
* @return {Array}
|
248
|
-
*/
|
249
|
-
splitBy(t) {
|
250
|
-
const i = h.fromDurationLike(t);
|
251
|
-
if (!this.isValid || !i.isValid || i.as("milliseconds") === 0)
|
252
|
-
return [];
|
253
|
-
let { s: e } = this, s = 1, r;
|
254
|
-
const n = [];
|
255
|
-
for (; e < this.e; ) {
|
256
|
-
const u = this.start.plus(i.mapUnits((l) => l * s));
|
257
|
-
r = +u > +this.e ? this.e : u, n.push(a.fromDateTimes(e, r)), e = r, s += 1;
|
258
|
-
}
|
259
|
-
return n;
|
699
|
+
get day() {
|
700
|
+
return this.isValid ? this.c.day : NaN;
|
260
701
|
}
|
261
702
|
/**
|
262
|
-
*
|
263
|
-
* @
|
264
|
-
* @
|
703
|
+
* Get the hour of the day (0-23).
|
704
|
+
* @example DateTime.local(2017, 5, 25, 9).hour //=> 9
|
705
|
+
* @type {number}
|
265
706
|
*/
|
266
|
-
|
267
|
-
return this.isValid ? this.
|
707
|
+
get hour() {
|
708
|
+
return this.isValid ? this.c.hour : NaN;
|
268
709
|
}
|
269
710
|
/**
|
270
|
-
*
|
271
|
-
* @
|
272
|
-
* @
|
711
|
+
* Get the minute of the hour (0-59).
|
712
|
+
* @example DateTime.local(2017, 5, 25, 9, 30).minute //=> 30
|
713
|
+
* @type {number}
|
273
714
|
*/
|
274
|
-
|
275
|
-
return this.
|
715
|
+
get minute() {
|
716
|
+
return this.isValid ? this.c.minute : NaN;
|
276
717
|
}
|
277
718
|
/**
|
278
|
-
*
|
279
|
-
* @
|
280
|
-
* @
|
719
|
+
* Get the second of the minute (0-59).
|
720
|
+
* @example DateTime.local(2017, 5, 25, 9, 30, 52).second //=> 52
|
721
|
+
* @type {number}
|
281
722
|
*/
|
282
|
-
|
283
|
-
return this.isValid ?
|
723
|
+
get second() {
|
724
|
+
return this.isValid ? this.c.second : NaN;
|
284
725
|
}
|
285
726
|
/**
|
286
|
-
*
|
287
|
-
* @
|
288
|
-
* @
|
727
|
+
* Get the millisecond of the second (0-999).
|
728
|
+
* @example DateTime.local(2017, 5, 25, 9, 30, 52, 654).millisecond //=> 654
|
729
|
+
* @type {number}
|
289
730
|
*/
|
290
|
-
|
291
|
-
return this.isValid ?
|
731
|
+
get millisecond() {
|
732
|
+
return this.isValid ? this.c.millisecond : NaN;
|
292
733
|
}
|
293
734
|
/**
|
294
|
-
*
|
295
|
-
* @
|
296
|
-
* @
|
735
|
+
* Get the week year
|
736
|
+
* @see https://en.wikipedia.org/wiki/ISO_week_date
|
737
|
+
* @example DateTime.local(2014, 12, 31).weekYear //=> 2015
|
738
|
+
* @type {number}
|
297
739
|
*/
|
298
|
-
|
299
|
-
return this.isValid ? this.
|
740
|
+
get weekYear() {
|
741
|
+
return this.isValid ? q(this).weekYear : NaN;
|
300
742
|
}
|
301
743
|
/**
|
302
|
-
*
|
303
|
-
* @
|
304
|
-
* @
|
744
|
+
* Get the week number of the week year (1-52ish).
|
745
|
+
* @see https://en.wikipedia.org/wiki/ISO_week_date
|
746
|
+
* @example DateTime.local(2017, 5, 25).weekNumber //=> 21
|
747
|
+
* @type {number}
|
305
748
|
*/
|
306
|
-
|
307
|
-
return
|
749
|
+
get weekNumber() {
|
750
|
+
return this.isValid ? q(this).weekNumber : NaN;
|
308
751
|
}
|
309
752
|
/**
|
310
|
-
*
|
311
|
-
*
|
312
|
-
*
|
313
|
-
* @
|
314
|
-
* @
|
753
|
+
* Get the day of the week.
|
754
|
+
* 1 is Monday and 7 is Sunday
|
755
|
+
* @see https://en.wikipedia.org/wiki/ISO_week_date
|
756
|
+
* @example DateTime.local(2014, 11, 31).weekday //=> 4
|
757
|
+
* @type {number}
|
315
758
|
*/
|
316
|
-
|
317
|
-
|
318
|
-
const i = this.s > t.s ? this.s : t.s, e = this.e < t.e ? this.e : t.e;
|
319
|
-
return i >= e ? null : a.fromDateTimes(i, e);
|
759
|
+
get weekday() {
|
760
|
+
return this.isValid ? q(this).weekday : NaN;
|
320
761
|
}
|
321
762
|
/**
|
322
|
-
*
|
323
|
-
*
|
324
|
-
* @param {Interval} other
|
325
|
-
* @return {Interval}
|
763
|
+
* Returns true if this date is on a weekend according to the locale, false otherwise
|
764
|
+
* @returns {boolean}
|
326
765
|
*/
|
327
|
-
|
766
|
+
get isWeekend() {
|
767
|
+
return this.isValid && this.loc.getWeekendDays().includes(this.weekday);
|
768
|
+
}
|
769
|
+
/**
|
770
|
+
* Get the day of the week according to the locale.
|
771
|
+
* 1 is the first day of the week and 7 is the last day of the week.
|
772
|
+
* If the locale assigns Sunday as the first day of the week, then a date which is a Sunday will return 1,
|
773
|
+
* @returns {number}
|
774
|
+
*/
|
775
|
+
get localWeekday() {
|
776
|
+
return this.isValid ? G(this).weekday : NaN;
|
777
|
+
}
|
778
|
+
/**
|
779
|
+
* Get the week number of the week year according to the locale. Different locales assign week numbers differently,
|
780
|
+
* because the week can start on different days of the week (see localWeekday) and because a different number of days
|
781
|
+
* is required for a week to count as the first week of a year.
|
782
|
+
* @returns {number}
|
783
|
+
*/
|
784
|
+
get localWeekNumber() {
|
785
|
+
return this.isValid ? G(this).weekNumber : NaN;
|
786
|
+
}
|
787
|
+
/**
|
788
|
+
* Get the week year according to the locale. Different locales assign week numbers (and therefor week years)
|
789
|
+
* differently, see localWeekNumber.
|
790
|
+
* @returns {number}
|
791
|
+
*/
|
792
|
+
get localWeekYear() {
|
793
|
+
return this.isValid ? G(this).weekYear : NaN;
|
794
|
+
}
|
795
|
+
/**
|
796
|
+
* Get the ordinal (meaning the day of the year)
|
797
|
+
* @example DateTime.local(2017, 5, 25).ordinal //=> 145
|
798
|
+
* @type {number|DateTime}
|
799
|
+
*/
|
800
|
+
get ordinal() {
|
801
|
+
return this.isValid ? Z(this.c).ordinal : NaN;
|
802
|
+
}
|
803
|
+
/**
|
804
|
+
* Get the human readable short month name, such as 'Oct'.
|
805
|
+
* Defaults to the system's locale if no locale has been specified
|
806
|
+
* @example DateTime.local(2017, 10, 30).monthShort //=> Oct
|
807
|
+
* @type {string}
|
808
|
+
*/
|
809
|
+
get monthShort() {
|
810
|
+
return this.isValid ? W.months("short", { locObj: this.loc })[this.month - 1] : null;
|
811
|
+
}
|
812
|
+
/**
|
813
|
+
* Get the human readable long month name, such as 'October'.
|
814
|
+
* Defaults to the system's locale if no locale has been specified
|
815
|
+
* @example DateTime.local(2017, 10, 30).monthLong //=> October
|
816
|
+
* @type {string}
|
817
|
+
*/
|
818
|
+
get monthLong() {
|
819
|
+
return this.isValid ? W.months("long", { locObj: this.loc })[this.month - 1] : null;
|
820
|
+
}
|
821
|
+
/**
|
822
|
+
* Get the human readable short weekday, such as 'Mon'.
|
823
|
+
* Defaults to the system's locale if no locale has been specified
|
824
|
+
* @example DateTime.local(2017, 10, 30).weekdayShort //=> Mon
|
825
|
+
* @type {string}
|
826
|
+
*/
|
827
|
+
get weekdayShort() {
|
828
|
+
return this.isValid ? W.weekdays("short", { locObj: this.loc })[this.weekday - 1] : null;
|
829
|
+
}
|
830
|
+
/**
|
831
|
+
* Get the human readable long weekday, such as 'Monday'.
|
832
|
+
* Defaults to the system's locale if no locale has been specified
|
833
|
+
* @example DateTime.local(2017, 10, 30).weekdayLong //=> Monday
|
834
|
+
* @type {string}
|
835
|
+
*/
|
836
|
+
get weekdayLong() {
|
837
|
+
return this.isValid ? W.weekdays("long", { locObj: this.loc })[this.weekday - 1] : null;
|
838
|
+
}
|
839
|
+
/**
|
840
|
+
* Get the UTC offset of this DateTime in minutes
|
841
|
+
* @example DateTime.now().offset //=> -240
|
842
|
+
* @example DateTime.utc().offset //=> 0
|
843
|
+
* @type {number}
|
844
|
+
*/
|
845
|
+
get offset() {
|
846
|
+
return this.isValid ? +this.o : NaN;
|
847
|
+
}
|
848
|
+
/**
|
849
|
+
* Get the short human name for the zone's current offset, for example "EST" or "EDT".
|
850
|
+
* Defaults to the system's locale if no locale has been specified
|
851
|
+
* @type {string}
|
852
|
+
*/
|
853
|
+
get offsetNameShort() {
|
854
|
+
return this.isValid ? this.zone.offsetName(this.ts, {
|
855
|
+
format: "short",
|
856
|
+
locale: this.locale
|
857
|
+
}) : null;
|
858
|
+
}
|
859
|
+
/**
|
860
|
+
* Get the long human name for the zone's current offset, for example "Eastern Standard Time" or "Eastern Daylight Time".
|
861
|
+
* Defaults to the system's locale if no locale has been specified
|
862
|
+
* @type {string}
|
863
|
+
*/
|
864
|
+
get offsetNameLong() {
|
865
|
+
return this.isValid ? this.zone.offsetName(this.ts, {
|
866
|
+
format: "long",
|
867
|
+
locale: this.locale
|
868
|
+
}) : null;
|
869
|
+
}
|
870
|
+
/**
|
871
|
+
* Get whether this zone's offset ever changes, as in a DST.
|
872
|
+
* @type {boolean}
|
873
|
+
*/
|
874
|
+
get isOffsetFixed() {
|
875
|
+
return this.isValid ? this.zone.isUniversal : null;
|
876
|
+
}
|
877
|
+
/**
|
878
|
+
* Get whether the DateTime is in a DST.
|
879
|
+
* @type {boolean}
|
880
|
+
*/
|
881
|
+
get isInDST() {
|
882
|
+
return this.isOffsetFixed ? !1 : this.offset > this.set({ month: 1, day: 1 }).offset || this.offset > this.set({ month: 5 }).offset;
|
883
|
+
}
|
884
|
+
/**
|
885
|
+
* Get those DateTimes which have the same local time as this DateTime, but a different offset from UTC
|
886
|
+
* in this DateTime's zone. During DST changes local time can be ambiguous, for example
|
887
|
+
* `2023-10-29T02:30:00` in `Europe/Berlin` can have offset `+01:00` or `+02:00`.
|
888
|
+
* This method will return both possible DateTimes if this DateTime's local time is ambiguous.
|
889
|
+
* @returns {DateTime[]}
|
890
|
+
*/
|
891
|
+
getPossibleOffsets() {
|
892
|
+
if (!this.isValid || this.isOffsetFixed)
|
893
|
+
return [this];
|
894
|
+
const e = 864e5, t = 6e4, i = P(this.c), r = this.zone.offset(i - e), a = this.zone.offset(i + e), s = this.zone.offset(i - r * t), o = this.zone.offset(i - a * t);
|
895
|
+
if (s === o)
|
896
|
+
return [this];
|
897
|
+
const u = i - s * t, c = i - o * t, d = L(u, s), h = L(c, o);
|
898
|
+
return d.hour === h.hour && d.minute === h.minute && d.second === h.second && d.millisecond === h.millisecond ? [k(this, { ts: u }), k(this, { ts: c })] : [this];
|
899
|
+
}
|
900
|
+
/**
|
901
|
+
* Returns true if this DateTime is in a leap year, false otherwise
|
902
|
+
* @example DateTime.local(2016).isInLeapYear //=> true
|
903
|
+
* @example DateTime.local(2013).isInLeapYear //=> false
|
904
|
+
* @type {boolean}
|
905
|
+
*/
|
906
|
+
get isInLeapYear() {
|
907
|
+
return Ie(this.year);
|
908
|
+
}
|
909
|
+
/**
|
910
|
+
* Returns the number of days in this DateTime's month
|
911
|
+
* @example DateTime.local(2016, 2).daysInMonth //=> 29
|
912
|
+
* @example DateTime.local(2016, 3).daysInMonth //=> 31
|
913
|
+
* @type {number}
|
914
|
+
*/
|
915
|
+
get daysInMonth() {
|
916
|
+
return $(this.year, this.month);
|
917
|
+
}
|
918
|
+
/**
|
919
|
+
* Returns the number of days in this DateTime's year
|
920
|
+
* @example DateTime.local(2016).daysInYear //=> 366
|
921
|
+
* @example DateTime.local(2013).daysInYear //=> 365
|
922
|
+
* @type {number}
|
923
|
+
*/
|
924
|
+
get daysInYear() {
|
925
|
+
return this.isValid ? De(this.year) : NaN;
|
926
|
+
}
|
927
|
+
/**
|
928
|
+
* Returns the number of weeks in this DateTime's year
|
929
|
+
* @see https://en.wikipedia.org/wiki/ISO_week_date
|
930
|
+
* @example DateTime.local(2004).weeksInWeekYear //=> 53
|
931
|
+
* @example DateTime.local(2013).weeksInWeekYear //=> 52
|
932
|
+
* @type {number}
|
933
|
+
*/
|
934
|
+
get weeksInWeekYear() {
|
935
|
+
return this.isValid ? ee(this.weekYear) : NaN;
|
936
|
+
}
|
937
|
+
/**
|
938
|
+
* Returns the number of weeks in this DateTime's local week year
|
939
|
+
* @example DateTime.local(2020, 6, {locale: 'en-US'}).weeksInLocalWeekYear //=> 52
|
940
|
+
* @example DateTime.local(2020, 6, {locale: 'de-DE'}).weeksInLocalWeekYear //=> 53
|
941
|
+
* @type {number}
|
942
|
+
*/
|
943
|
+
get weeksInLocalWeekYear() {
|
944
|
+
return this.isValid ? ee(
|
945
|
+
this.localWeekYear,
|
946
|
+
this.loc.getMinDaysInFirstWeek(),
|
947
|
+
this.loc.getStartOfWeek()
|
948
|
+
) : NaN;
|
949
|
+
}
|
950
|
+
/**
|
951
|
+
* Returns the resolved Intl options for this DateTime.
|
952
|
+
* This is useful in understanding the behavior of formatting methods
|
953
|
+
* @param {Object} opts - the same options as toLocaleString
|
954
|
+
* @return {Object}
|
955
|
+
*/
|
956
|
+
resolvedLocaleOptions(e = {}) {
|
957
|
+
const { locale: t, numberingSystem: i, calendar: r } = O.create(
|
958
|
+
this.loc.clone(e),
|
959
|
+
e
|
960
|
+
).resolvedOptions(this);
|
961
|
+
return { locale: t, numberingSystem: i, outputCalendar: r };
|
962
|
+
}
|
963
|
+
// TRANSFORM
|
964
|
+
/**
|
965
|
+
* "Set" the DateTime's zone to UTC. Returns a newly-constructed DateTime.
|
966
|
+
*
|
967
|
+
* Equivalent to {@link DateTime#setZone}('utc')
|
968
|
+
* @param {number} [offset=0] - optionally, an offset from UTC in minutes
|
969
|
+
* @param {Object} [opts={}] - options to pass to `setZone()`
|
970
|
+
* @return {DateTime}
|
971
|
+
*/
|
972
|
+
toUTC(e = 0, t = {}) {
|
973
|
+
return this.setZone(B.instance(e), t);
|
974
|
+
}
|
975
|
+
/**
|
976
|
+
* "Set" the DateTime's zone to the host's local zone. Returns a newly-constructed DateTime.
|
977
|
+
*
|
978
|
+
* Equivalent to `setZone('local')`
|
979
|
+
* @return {DateTime}
|
980
|
+
*/
|
981
|
+
toLocal() {
|
982
|
+
return this.setZone(T.defaultZone);
|
983
|
+
}
|
984
|
+
/**
|
985
|
+
* "Set" the DateTime's zone to specified zone. Returns a newly-constructed DateTime.
|
986
|
+
*
|
987
|
+
* By default, the setter keeps the underlying time the same (as in, the same timestamp), but the new instance will report different local times and consider DSTs when making computations, as with {@link DateTime#plus}. You may wish to use {@link DateTime#toLocal} and {@link DateTime#toUTC} which provide simple convenience wrappers for commonly used zones.
|
988
|
+
* @param {string|Zone} [zone='local'] - a zone identifier. As a string, that can be any IANA zone supported by the host environment, or a fixed-offset name of the form 'UTC+3', or the strings 'local' or 'utc'. You may also supply an instance of a {@link DateTime#Zone} class.
|
989
|
+
* @param {Object} opts - options
|
990
|
+
* @param {boolean} [opts.keepLocalTime=false] - If true, adjust the underlying time so that the local time stays the same, but in the target zone. You should rarely need this.
|
991
|
+
* @return {DateTime}
|
992
|
+
*/
|
993
|
+
setZone(e, { keepLocalTime: t = !1, keepCalendarTime: i = !1 } = {}) {
|
994
|
+
if (e = S(e, T.defaultZone), e.equals(this.zone))
|
995
|
+
return this;
|
996
|
+
if (e.isValid) {
|
997
|
+
let r = this.ts;
|
998
|
+
if (t || i) {
|
999
|
+
const a = e.offset(this.ts), s = this.toObject();
|
1000
|
+
[r] = U(s, a, e);
|
1001
|
+
}
|
1002
|
+
return k(this, { ts: r, zone: e });
|
1003
|
+
} else
|
1004
|
+
return l.invalid(b(e));
|
1005
|
+
}
|
1006
|
+
/**
|
1007
|
+
* "Set" the locale, numberingSystem, or outputCalendar. Returns a newly-constructed DateTime.
|
1008
|
+
* @param {Object} properties - the properties to set
|
1009
|
+
* @example DateTime.local(2017, 5, 25).reconfigure({ locale: 'en-GB' })
|
1010
|
+
* @return {DateTime}
|
1011
|
+
*/
|
1012
|
+
reconfigure({ locale: e, numberingSystem: t, outputCalendar: i } = {}) {
|
1013
|
+
const r = this.loc.clone({ locale: e, numberingSystem: t, outputCalendar: i });
|
1014
|
+
return k(this, { loc: r });
|
1015
|
+
}
|
1016
|
+
/**
|
1017
|
+
* "Set" the locale. Returns a newly-constructed DateTime.
|
1018
|
+
* Just a convenient alias for reconfigure({ locale })
|
1019
|
+
* @example DateTime.local(2017, 5, 25).setLocale('en-GB')
|
1020
|
+
* @return {DateTime}
|
1021
|
+
*/
|
1022
|
+
setLocale(e) {
|
1023
|
+
return this.reconfigure({ locale: e });
|
1024
|
+
}
|
1025
|
+
/**
|
1026
|
+
* "Set" the values of specified units. Returns a newly-constructed DateTime.
|
1027
|
+
* You can only set units with this method; for "setting" metadata, see {@link DateTime#reconfigure} and {@link DateTime#setZone}.
|
1028
|
+
*
|
1029
|
+
* This method also supports setting locale-based week units, i.e. `localWeekday`, `localWeekNumber` and `localWeekYear`.
|
1030
|
+
* They cannot be mixed with ISO-week units like `weekday`.
|
1031
|
+
* @param {Object} values - a mapping of units to numbers
|
1032
|
+
* @example dt.set({ year: 2017 })
|
1033
|
+
* @example dt.set({ hour: 8, minute: 30 })
|
1034
|
+
* @example dt.set({ weekday: 5 })
|
1035
|
+
* @example dt.set({ year: 2005, ordinal: 234 })
|
1036
|
+
* @return {DateTime}
|
1037
|
+
*/
|
1038
|
+
set(e) {
|
328
1039
|
if (!this.isValid) return this;
|
329
|
-
const i = this.
|
330
|
-
|
1040
|
+
const t = X(e, le), { minDaysInFirstWeek: i, startOfWeek: r } = ne(t, this.loc), a = !f(t.weekYear) || !f(t.weekNumber) || !f(t.weekday), s = !f(t.ordinal), o = !f(t.year), u = !f(t.month) || !f(t.day), c = o || u, d = t.weekYear || t.weekNumber;
|
1041
|
+
if ((c || s) && d)
|
1042
|
+
throw new F(
|
1043
|
+
"Can't mix weekYear/weekNumber units with year/month/day or ordinals"
|
1044
|
+
);
|
1045
|
+
if (u && s)
|
1046
|
+
throw new F("Can't mix ordinal dates with month/day");
|
1047
|
+
let h;
|
1048
|
+
a ? h = ie(
|
1049
|
+
{ ...x(this.c, i, r), ...t },
|
1050
|
+
i,
|
1051
|
+
r
|
1052
|
+
) : f(t.ordinal) ? (h = { ...this.toObject(), ...t }, f(t.day) && (h.day = Math.min($(h.year, h.month), h.day))) : h = re({ ...Z(this.c), ...t });
|
1053
|
+
const [_, I] = U(h, this.o, this.zone);
|
1054
|
+
return k(this, { ts: _, o: I });
|
331
1055
|
}
|
332
1056
|
/**
|
333
|
-
*
|
334
|
-
* Combines overlapping and adjacent Intervals.
|
335
|
-
* The resulting array will contain the Intervals in ascending order, that is, starting with the earliest Interval
|
336
|
-
* and ending with the latest.
|
1057
|
+
* Add a period of time to this DateTime and return the resulting DateTime
|
337
1058
|
*
|
338
|
-
*
|
339
|
-
* @
|
1059
|
+
* Adding hours, minutes, seconds, or milliseconds increases the timestamp by the right number of milliseconds. Adding days, months, or years shifts the calendar, accounting for DSTs and leap years along the way. Thus, `dt.plus({ hours: 24 })` may result in a different time than `dt.plus({ days: 1 })` if there's a DST shift in between.
|
1060
|
+
* @param {Duration|Object|number} duration - The amount to add. Either a Luxon Duration, a number of milliseconds, the object argument to Duration.fromObject()
|
1061
|
+
* @example DateTime.now().plus(123) //~> in 123 milliseconds
|
1062
|
+
* @example DateTime.now().plus({ minutes: 15 }) //~> in 15 minutes
|
1063
|
+
* @example DateTime.now().plus({ days: 1 }) //~> this time tomorrow
|
1064
|
+
* @example DateTime.now().plus({ days: -1 }) //~> this time yesterday
|
1065
|
+
* @example DateTime.now().plus({ hours: 3, minutes: 13 }) //~> in 3 hr, 13 min
|
1066
|
+
* @example DateTime.now().plus(Duration.fromObject({ hours: 3, minutes: 13 })) //~> in 3 hr, 13 min
|
1067
|
+
* @return {DateTime}
|
340
1068
|
*/
|
341
|
-
|
342
|
-
|
343
|
-
|
344
|
-
|
345
|
-
);
|
346
|
-
return e && i.push(e), i;
|
1069
|
+
plus(e) {
|
1070
|
+
if (!this.isValid) return this;
|
1071
|
+
const t = E.fromDurationLike(e);
|
1072
|
+
return k(this, ae(this, t));
|
347
1073
|
}
|
348
1074
|
/**
|
349
|
-
*
|
350
|
-
* @
|
351
|
-
* @
|
1075
|
+
* Subtract a period of time to this DateTime and return the resulting DateTime
|
1076
|
+
* See {@link DateTime#plus}
|
1077
|
+
* @param {Duration|Object|number} duration - The amount to subtract. Either a Luxon Duration, a number of milliseconds, the object argument to Duration.fromObject()
|
1078
|
+
@return {DateTime}
|
352
1079
|
*/
|
353
|
-
|
354
|
-
|
355
|
-
const
|
356
|
-
|
357
|
-
{ time: l.e, type: "e" }
|
358
|
-
]), n = Array.prototype.concat(...r), u = n.sort((l, o) => l.time - o.time);
|
359
|
-
for (const l of u)
|
360
|
-
e += l.type === "s" ? 1 : -1, e === 1 ? i = l.time : (i && +i != +l.time && s.push(a.fromDateTimes(i, l.time)), i = null);
|
361
|
-
return a.merge(s);
|
1080
|
+
minus(e) {
|
1081
|
+
if (!this.isValid) return this;
|
1082
|
+
const t = E.fromDurationLike(e).negate();
|
1083
|
+
return k(this, ae(this, t));
|
362
1084
|
}
|
363
1085
|
/**
|
364
|
-
*
|
365
|
-
* @param {
|
366
|
-
* @
|
1086
|
+
* "Set" this DateTime to the beginning of a unit of time.
|
1087
|
+
* @param {string} unit - The unit to go to the beginning of. Can be 'year', 'quarter', 'month', 'week', 'day', 'hour', 'minute', 'second', or 'millisecond'.
|
1088
|
+
* @param {Object} opts - options
|
1089
|
+
* @param {boolean} [opts.useLocaleWeeks=false] - If true, use weeks based on the locale, i.e. use the locale-dependent start of the week
|
1090
|
+
* @example DateTime.local(2014, 3, 3).startOf('month').toISODate(); //=> '2014-03-01'
|
1091
|
+
* @example DateTime.local(2014, 3, 3).startOf('year').toISODate(); //=> '2014-01-01'
|
1092
|
+
* @example DateTime.local(2014, 3, 3).startOf('week').toISODate(); //=> '2014-03-03', weeks always start on Mondays
|
1093
|
+
* @example DateTime.local(2014, 3, 3, 5, 30).startOf('day').toISOTime(); //=> '00:00.000-05:00'
|
1094
|
+
* @example DateTime.local(2014, 3, 3, 5, 30).startOf('hour').toISOTime(); //=> '05:00:00.000-05:00'
|
1095
|
+
* @return {DateTime}
|
367
1096
|
*/
|
368
|
-
|
369
|
-
|
1097
|
+
startOf(e, { useLocaleWeeks: t = !1 } = {}) {
|
1098
|
+
if (!this.isValid) return this;
|
1099
|
+
const i = {}, r = E.normalizeUnit(e);
|
1100
|
+
switch (r) {
|
1101
|
+
case "years":
|
1102
|
+
i.month = 1;
|
1103
|
+
// falls through
|
1104
|
+
case "quarters":
|
1105
|
+
case "months":
|
1106
|
+
i.day = 1;
|
1107
|
+
// falls through
|
1108
|
+
case "weeks":
|
1109
|
+
case "days":
|
1110
|
+
i.hour = 0;
|
1111
|
+
// falls through
|
1112
|
+
case "hours":
|
1113
|
+
i.minute = 0;
|
1114
|
+
// falls through
|
1115
|
+
case "minutes":
|
1116
|
+
i.second = 0;
|
1117
|
+
// falls through
|
1118
|
+
case "seconds":
|
1119
|
+
i.millisecond = 0;
|
1120
|
+
break;
|
1121
|
+
}
|
1122
|
+
if (r === "weeks")
|
1123
|
+
if (t) {
|
1124
|
+
const a = this.loc.getStartOfWeek(), { weekday: s } = this;
|
1125
|
+
s < a && (i.weekNumber = this.weekNumber - 1), i.weekday = a;
|
1126
|
+
} else
|
1127
|
+
i.weekday = 1;
|
1128
|
+
if (r === "quarters") {
|
1129
|
+
const a = Math.ceil(this.month / 3);
|
1130
|
+
i.month = (a - 1) * 3 + 1;
|
1131
|
+
}
|
1132
|
+
return this.set(i);
|
370
1133
|
}
|
371
1134
|
/**
|
372
|
-
*
|
373
|
-
* @
|
1135
|
+
* "Set" this DateTime to the end (meaning the last millisecond) of a unit of time
|
1136
|
+
* @param {string} unit - The unit to go to the end of. Can be 'year', 'quarter', 'month', 'week', 'day', 'hour', 'minute', 'second', or 'millisecond'.
|
1137
|
+
* @param {Object} opts - options
|
1138
|
+
* @param {boolean} [opts.useLocaleWeeks=false] - If true, use weeks based on the locale, i.e. use the locale-dependent start of the week
|
1139
|
+
* @example DateTime.local(2014, 3, 3).endOf('month').toISO(); //=> '2014-03-31T23:59:59.999-05:00'
|
1140
|
+
* @example DateTime.local(2014, 3, 3).endOf('year').toISO(); //=> '2014-12-31T23:59:59.999-05:00'
|
1141
|
+
* @example DateTime.local(2014, 3, 3).endOf('week').toISO(); // => '2014-03-09T23:59:59.999-05:00', weeks start on Mondays
|
1142
|
+
* @example DateTime.local(2014, 3, 3, 5, 30).endOf('day').toISO(); //=> '2014-03-03T23:59:59.999-05:00'
|
1143
|
+
* @example DateTime.local(2014, 3, 3, 5, 30).endOf('hour').toISO(); //=> '2014-03-03T05:59:59.999-05:00'
|
1144
|
+
* @return {DateTime}
|
374
1145
|
*/
|
375
|
-
|
376
|
-
return this.isValid ?
|
1146
|
+
endOf(e, t) {
|
1147
|
+
return this.isValid ? this.plus({ [e]: 1 }).startOf(e, t).minus(1) : this;
|
377
1148
|
}
|
1149
|
+
// OUTPUT
|
378
1150
|
/**
|
379
|
-
* Returns a string representation of this
|
1151
|
+
* Returns a string representation of this DateTime formatted according to the specified format string.
|
1152
|
+
* **You may not want this.** See {@link DateTime#toLocaleString} for a more flexible formatting tool. For a table of tokens and their interpretations, see [here](https://moment.github.io/luxon/#/formatting?id=table-of-tokens).
|
1153
|
+
* Defaults to en-US if no locale has been specified, regardless of the system's locale.
|
1154
|
+
* @param {string} fmt - the format string
|
1155
|
+
* @param {Object} opts - opts to override the configuration options on this DateTime
|
1156
|
+
* @example DateTime.now().toFormat('yyyy LLL dd') //=> '2017 Apr 22'
|
1157
|
+
* @example DateTime.now().setLocale('fr').toFormat('yyyy LLL dd') //=> '2017 avr. 22'
|
1158
|
+
* @example DateTime.now().toFormat('yyyy LLL dd', { locale: "fr" }) //=> '2017 avr. 22'
|
1159
|
+
* @example DateTime.now().toFormat("HH 'hours and' mm 'minutes'") //=> '20 hours and 55 minutes'
|
380
1160
|
* @return {string}
|
381
1161
|
*/
|
382
|
-
|
383
|
-
return this.isValid ?
|
1162
|
+
toFormat(e, t = {}) {
|
1163
|
+
return this.isValid ? O.create(this.loc.redefaultToEN(t)).formatDateTimeFromString(this, e) : j;
|
384
1164
|
}
|
385
1165
|
/**
|
386
|
-
* Returns a localized string representing this
|
387
|
-
*
|
388
|
-
*
|
389
|
-
*
|
390
|
-
* Interval in the assigned locale. Defaults to the system's locale if no locale has been
|
391
|
-
* specified.
|
1166
|
+
* Returns a localized string representing this date. Accepts the same options as the Intl.DateTimeFormat constructor and any presets defined by Luxon, such as `DateTime.DATE_FULL` or `DateTime.TIME_SIMPLE`.
|
1167
|
+
* The exact behavior of this method is browser-specific, but in general it will return an appropriate representation
|
1168
|
+
* of the DateTime in the assigned locale.
|
1169
|
+
* Defaults to the system's locale if no locale has been specified
|
392
1170
|
* @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DateTimeFormat
|
393
|
-
* @param {Object}
|
394
|
-
*
|
395
|
-
* @
|
396
|
-
* @example
|
397
|
-
* @example
|
398
|
-
* @example
|
399
|
-
* @example
|
400
|
-
* @example
|
1171
|
+
* @param formatOpts {Object} - Intl.DateTimeFormat constructor options and configuration options
|
1172
|
+
* @param {Object} opts - opts to override the configuration options on this DateTime
|
1173
|
+
* @example DateTime.now().toLocaleString(); //=> 4/20/2017
|
1174
|
+
* @example DateTime.now().setLocale('en-gb').toLocaleString(); //=> '20/04/2017'
|
1175
|
+
* @example DateTime.now().toLocaleString(DateTime.DATE_FULL); //=> 'April 20, 2017'
|
1176
|
+
* @example DateTime.now().toLocaleString(DateTime.DATE_FULL, { locale: 'fr' }); //=> '28 août 2022'
|
1177
|
+
* @example DateTime.now().toLocaleString(DateTime.TIME_SIMPLE); //=> '11:32 AM'
|
1178
|
+
* @example DateTime.now().toLocaleString(DateTime.DATETIME_SHORT); //=> '4/20/2017, 11:32 AM'
|
1179
|
+
* @example DateTime.now().toLocaleString({ weekday: 'long', month: 'long', day: '2-digit' }); //=> 'Thursday, April 20'
|
1180
|
+
* @example DateTime.now().toLocaleString({ weekday: 'short', month: 'short', day: '2-digit', hour: '2-digit', minute: '2-digit' }); //=> 'Thu, Apr 20, 11:27 AM'
|
1181
|
+
* @example DateTime.now().toLocaleString({ hour: '2-digit', minute: '2-digit', hourCycle: 'h23' }); //=> '11:32'
|
1182
|
+
* @return {string}
|
1183
|
+
*/
|
1184
|
+
toLocaleString(e = se, t = {}) {
|
1185
|
+
return this.isValid ? O.create(this.loc.clone(t), e).formatDateTime(this) : j;
|
1186
|
+
}
|
1187
|
+
/**
|
1188
|
+
* Returns an array of format "parts", meaning individual tokens along with metadata. This is allows callers to post-process individual sections of the formatted output.
|
1189
|
+
* Defaults to the system's locale if no locale has been specified
|
1190
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DateTimeFormat/formatToParts
|
1191
|
+
* @param opts {Object} - Intl.DateTimeFormat constructor options, same as `toLocaleString`.
|
1192
|
+
* @example DateTime.now().toLocaleParts(); //=> [
|
1193
|
+
* //=> { type: 'day', value: '25' },
|
1194
|
+
* //=> { type: 'literal', value: '/' },
|
1195
|
+
* //=> { type: 'month', value: '05' },
|
1196
|
+
* //=> { type: 'literal', value: '/' },
|
1197
|
+
* //=> { type: 'year', value: '1982' }
|
1198
|
+
* //=> ]
|
1199
|
+
*/
|
1200
|
+
toLocaleParts(e = {}) {
|
1201
|
+
return this.isValid ? O.create(this.loc.clone(e), e).formatDateTimeParts(this) : [];
|
1202
|
+
}
|
1203
|
+
/**
|
1204
|
+
* Returns an ISO 8601-compliant string representation of this DateTime
|
1205
|
+
* @param {Object} opts - options
|
1206
|
+
* @param {boolean} [opts.suppressMilliseconds=false] - exclude milliseconds from the format if they're 0
|
1207
|
+
* @param {boolean} [opts.suppressSeconds=false] - exclude seconds from the format if they're 0
|
1208
|
+
* @param {boolean} [opts.includeOffset=true] - include the offset, such as 'Z' or '-04:00'
|
1209
|
+
* @param {boolean} [opts.extendedZone=false] - add the time zone format extension
|
1210
|
+
* @param {string} [opts.format='extended'] - choose between the basic and extended format
|
1211
|
+
* @example DateTime.utc(1983, 5, 25).toISO() //=> '1982-05-25T00:00:00.000Z'
|
1212
|
+
* @example DateTime.now().toISO() //=> '2017-04-22T20:47:05.335-04:00'
|
1213
|
+
* @example DateTime.now().toISO({ includeOffset: false }) //=> '2017-04-22T20:47:05.335'
|
1214
|
+
* @example DateTime.now().toISO({ format: 'basic' }) //=> '20170422T204705.335-0400'
|
1215
|
+
* @return {string}
|
1216
|
+
*/
|
1217
|
+
toISO({
|
1218
|
+
format: e = "extended",
|
1219
|
+
suppressSeconds: t = !1,
|
1220
|
+
suppressMilliseconds: i = !1,
|
1221
|
+
includeOffset: r = !0,
|
1222
|
+
extendedZone: a = !1
|
1223
|
+
} = {}) {
|
1224
|
+
if (!this.isValid)
|
1225
|
+
return null;
|
1226
|
+
const s = e === "extended";
|
1227
|
+
let o = R(this, s);
|
1228
|
+
return o += "T", o += oe(this, s, t, i, r, a), o;
|
1229
|
+
}
|
1230
|
+
/**
|
1231
|
+
* Returns an ISO 8601-compliant string representation of this DateTime's date component
|
1232
|
+
* @param {Object} opts - options
|
1233
|
+
* @param {string} [opts.format='extended'] - choose between the basic and extended format
|
1234
|
+
* @example DateTime.utc(1982, 5, 25).toISODate() //=> '1982-05-25'
|
1235
|
+
* @example DateTime.utc(1982, 5, 25).toISODate({ format: 'basic' }) //=> '19820525'
|
1236
|
+
* @return {string}
|
1237
|
+
*/
|
1238
|
+
toISODate({ format: e = "extended" } = {}) {
|
1239
|
+
return this.isValid ? R(this, e === "extended") : null;
|
1240
|
+
}
|
1241
|
+
/**
|
1242
|
+
* Returns an ISO 8601-compliant string representation of this DateTime's week date
|
1243
|
+
* @example DateTime.utc(1982, 5, 25).toISOWeekDate() //=> '1982-W21-2'
|
401
1244
|
* @return {string}
|
402
1245
|
*/
|
403
|
-
|
404
|
-
return
|
1246
|
+
toISOWeekDate() {
|
1247
|
+
return z(this, "kkkk-'W'WW-c");
|
405
1248
|
}
|
406
1249
|
/**
|
407
|
-
* Returns an ISO 8601-compliant string representation of this
|
408
|
-
* @
|
409
|
-
* @param {
|
1250
|
+
* Returns an ISO 8601-compliant string representation of this DateTime's time component
|
1251
|
+
* @param {Object} opts - options
|
1252
|
+
* @param {boolean} [opts.suppressMilliseconds=false] - exclude milliseconds from the format if they're 0
|
1253
|
+
* @param {boolean} [opts.suppressSeconds=false] - exclude seconds from the format if they're 0
|
1254
|
+
* @param {boolean} [opts.includeOffset=true] - include the offset, such as 'Z' or '-04:00'
|
1255
|
+
* @param {boolean} [opts.extendedZone=true] - add the time zone format extension
|
1256
|
+
* @param {boolean} [opts.includePrefix=false] - include the `T` prefix
|
1257
|
+
* @param {string} [opts.format='extended'] - choose between the basic and extended format
|
1258
|
+
* @example DateTime.utc().set({ hour: 7, minute: 34 }).toISOTime() //=> '07:34:19.361Z'
|
1259
|
+
* @example DateTime.utc().set({ hour: 7, minute: 34, seconds: 0, milliseconds: 0 }).toISOTime({ suppressSeconds: true }) //=> '07:34Z'
|
1260
|
+
* @example DateTime.utc().set({ hour: 7, minute: 34 }).toISOTime({ format: 'basic' }) //=> '073419.361Z'
|
1261
|
+
* @example DateTime.utc().set({ hour: 7, minute: 34 }).toISOTime({ includePrefix: true }) //=> 'T07:34:19.361Z'
|
1262
|
+
* @return {string}
|
1263
|
+
*/
|
1264
|
+
toISOTime({
|
1265
|
+
suppressMilliseconds: e = !1,
|
1266
|
+
suppressSeconds: t = !1,
|
1267
|
+
includeOffset: i = !0,
|
1268
|
+
includePrefix: r = !1,
|
1269
|
+
extendedZone: a = !1,
|
1270
|
+
format: s = "extended"
|
1271
|
+
} = {}) {
|
1272
|
+
return this.isValid ? (r ? "T" : "") + oe(
|
1273
|
+
this,
|
1274
|
+
s === "extended",
|
1275
|
+
t,
|
1276
|
+
e,
|
1277
|
+
i,
|
1278
|
+
a
|
1279
|
+
) : null;
|
1280
|
+
}
|
1281
|
+
/**
|
1282
|
+
* Returns an RFC 2822-compatible string representation of this DateTime
|
1283
|
+
* @example DateTime.utc(2014, 7, 13).toRFC2822() //=> 'Sun, 13 Jul 2014 00:00:00 +0000'
|
1284
|
+
* @example DateTime.local(2014, 7, 13).toRFC2822() //=> 'Sun, 13 Jul 2014 00:00:00 -0400'
|
1285
|
+
* @return {string}
|
1286
|
+
*/
|
1287
|
+
toRFC2822() {
|
1288
|
+
return z(this, "EEE, dd LLL yyyy HH:mm:ss ZZZ", !1);
|
1289
|
+
}
|
1290
|
+
/**
|
1291
|
+
* Returns a string representation of this DateTime appropriate for use in HTTP headers. The output is always expressed in GMT.
|
1292
|
+
* Specifically, the string conforms to RFC 1123.
|
1293
|
+
* @see https://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.3.1
|
1294
|
+
* @example DateTime.utc(2014, 7, 13).toHTTP() //=> 'Sun, 13 Jul 2014 00:00:00 GMT'
|
1295
|
+
* @example DateTime.utc(2014, 7, 13, 19).toHTTP() //=> 'Sun, 13 Jul 2014 19:00:00 GMT'
|
1296
|
+
* @return {string}
|
1297
|
+
*/
|
1298
|
+
toHTTP() {
|
1299
|
+
return z(this.toUTC(), "EEE, dd LLL yyyy HH:mm:ss 'GMT'");
|
1300
|
+
}
|
1301
|
+
/**
|
1302
|
+
* Returns a string representation of this DateTime appropriate for use in SQL Date
|
1303
|
+
* @example DateTime.utc(2014, 7, 13).toSQLDate() //=> '2014-07-13'
|
1304
|
+
* @return {string}
|
1305
|
+
*/
|
1306
|
+
toSQLDate() {
|
1307
|
+
return this.isValid ? R(this, !0) : null;
|
1308
|
+
}
|
1309
|
+
/**
|
1310
|
+
* Returns a string representation of this DateTime appropriate for use in SQL Time
|
1311
|
+
* @param {Object} opts - options
|
1312
|
+
* @param {boolean} [opts.includeZone=false] - include the zone, such as 'America/New_York'. Overrides includeOffset.
|
1313
|
+
* @param {boolean} [opts.includeOffset=true] - include the offset, such as 'Z' or '-04:00'
|
1314
|
+
* @param {boolean} [opts.includeOffsetSpace=true] - include the space between the time and the offset, such as '05:15:16.345 -04:00'
|
1315
|
+
* @example DateTime.utc().toSQL() //=> '05:15:16.345'
|
1316
|
+
* @example DateTime.now().toSQL() //=> '05:15:16.345 -04:00'
|
1317
|
+
* @example DateTime.now().toSQL({ includeOffset: false }) //=> '05:15:16.345'
|
1318
|
+
* @example DateTime.now().toSQL({ includeZone: false }) //=> '05:15:16.345 America/New_York'
|
410
1319
|
* @return {string}
|
411
1320
|
*/
|
412
|
-
|
413
|
-
|
1321
|
+
toSQLTime({ includeOffset: e = !0, includeZone: t = !1, includeOffsetSpace: i = !0 } = {}) {
|
1322
|
+
let r = "HH:mm:ss.SSS";
|
1323
|
+
return (t || e) && (i && (r += " "), t ? r += "z" : e && (r += "ZZ")), z(this, r, !0);
|
414
1324
|
}
|
415
1325
|
/**
|
416
|
-
* Returns
|
417
|
-
*
|
418
|
-
* @
|
1326
|
+
* Returns a string representation of this DateTime appropriate for use in SQL DateTime
|
1327
|
+
* @param {Object} opts - options
|
1328
|
+
* @param {boolean} [opts.includeZone=false] - include the zone, such as 'America/New_York'. Overrides includeOffset.
|
1329
|
+
* @param {boolean} [opts.includeOffset=true] - include the offset, such as 'Z' or '-04:00'
|
1330
|
+
* @param {boolean} [opts.includeOffsetSpace=true] - include the space between the time and the offset, such as '05:15:16.345 -04:00'
|
1331
|
+
* @example DateTime.utc(2014, 7, 13).toSQL() //=> '2014-07-13 00:00:00.000 Z'
|
1332
|
+
* @example DateTime.local(2014, 7, 13).toSQL() //=> '2014-07-13 00:00:00.000 -04:00'
|
1333
|
+
* @example DateTime.local(2014, 7, 13).toSQL({ includeOffset: false }) //=> '2014-07-13 00:00:00.000'
|
1334
|
+
* @example DateTime.local(2014, 7, 13).toSQL({ includeZone: true }) //=> '2014-07-13 00:00:00.000 America/New_York'
|
419
1335
|
* @return {string}
|
420
1336
|
*/
|
421
|
-
|
422
|
-
return this.isValid ? `${this.
|
1337
|
+
toSQL(e = {}) {
|
1338
|
+
return this.isValid ? `${this.toSQLDate()} ${this.toSQLTime(e)}` : null;
|
423
1339
|
}
|
424
1340
|
/**
|
425
|
-
* Returns
|
426
|
-
* The date components are ignored.
|
427
|
-
* @see https://en.wikipedia.org/wiki/ISO_8601#Time_intervals
|
428
|
-
* @param {Object} opts - The same options as {@link DateTime#toISO}
|
1341
|
+
* Returns a string representation of this DateTime appropriate for debugging
|
429
1342
|
* @return {string}
|
430
1343
|
*/
|
431
|
-
|
432
|
-
return this.isValid ?
|
1344
|
+
toString() {
|
1345
|
+
return this.isValid ? this.toISO() : j;
|
433
1346
|
}
|
434
1347
|
/**
|
435
|
-
* Returns a string representation of this
|
436
|
-
* string. **You may not want this.** See {@link Interval#toLocaleString} for a more flexible
|
437
|
-
* formatting tool.
|
438
|
-
* @param {string} dateFormat - The format string. This string formats the start and end time.
|
439
|
-
* See {@link DateTime#toFormat} for details.
|
440
|
-
* @param {Object} opts - Options.
|
441
|
-
* @param {string} [opts.separator = ' – '] - A separator to place between the start and end
|
442
|
-
* representations.
|
1348
|
+
* Returns a string representation of this DateTime appropriate for the REPL.
|
443
1349
|
* @return {string}
|
444
1350
|
*/
|
445
|
-
|
446
|
-
return this.isValid ?
|
1351
|
+
[Symbol.for("nodejs.util.inspect.custom")]() {
|
1352
|
+
return this.isValid ? `DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }` : `DateTime { Invalid, reason: ${this.invalidReason} }`;
|
447
1353
|
}
|
448
1354
|
/**
|
449
|
-
*
|
450
|
-
* @
|
1355
|
+
* Returns the epoch milliseconds of this DateTime. Alias of {@link DateTime#toMillis}
|
1356
|
+
* @return {number}
|
1357
|
+
*/
|
1358
|
+
valueOf() {
|
1359
|
+
return this.toMillis();
|
1360
|
+
}
|
1361
|
+
/**
|
1362
|
+
* Returns the epoch milliseconds of this DateTime.
|
1363
|
+
* @return {number}
|
1364
|
+
*/
|
1365
|
+
toMillis() {
|
1366
|
+
return this.isValid ? this.ts : NaN;
|
1367
|
+
}
|
1368
|
+
/**
|
1369
|
+
* Returns the epoch seconds of this DateTime.
|
1370
|
+
* @return {number}
|
1371
|
+
*/
|
1372
|
+
toSeconds() {
|
1373
|
+
return this.isValid ? this.ts / 1e3 : NaN;
|
1374
|
+
}
|
1375
|
+
/**
|
1376
|
+
* Returns the epoch seconds (as a whole number) of this DateTime.
|
1377
|
+
* @return {number}
|
1378
|
+
*/
|
1379
|
+
toUnixInteger() {
|
1380
|
+
return this.isValid ? Math.floor(this.ts / 1e3) : NaN;
|
1381
|
+
}
|
1382
|
+
/**
|
1383
|
+
* Returns an ISO 8601 representation of this DateTime appropriate for use in JSON.
|
1384
|
+
* @return {string}
|
1385
|
+
*/
|
1386
|
+
toJSON() {
|
1387
|
+
return this.toISO();
|
1388
|
+
}
|
1389
|
+
/**
|
1390
|
+
* Returns a BSON serializable equivalent to this DateTime.
|
1391
|
+
* @return {Date}
|
1392
|
+
*/
|
1393
|
+
toBSON() {
|
1394
|
+
return this.toJSDate();
|
1395
|
+
}
|
1396
|
+
/**
|
1397
|
+
* Returns a JavaScript object with this DateTime's year, month, day, and so on.
|
1398
|
+
* @param opts - options for generating the object
|
1399
|
+
* @param {boolean} [opts.includeConfig=false] - include configuration attributes in the output
|
1400
|
+
* @example DateTime.now().toObject() //=> { year: 2017, month: 4, day: 22, hour: 20, minute: 49, second: 42, millisecond: 268 }
|
1401
|
+
* @return {Object}
|
1402
|
+
*/
|
1403
|
+
toObject(e = {}) {
|
1404
|
+
if (!this.isValid) return {};
|
1405
|
+
const t = { ...this.c };
|
1406
|
+
return e.includeConfig && (t.outputCalendar = this.outputCalendar, t.numberingSystem = this.loc.numberingSystem, t.locale = this.loc.locale), t;
|
1407
|
+
}
|
1408
|
+
/**
|
1409
|
+
* Returns a JavaScript Date equivalent to this DateTime.
|
1410
|
+
* @return {Date}
|
1411
|
+
*/
|
1412
|
+
toJSDate() {
|
1413
|
+
return new Date(this.isValid ? this.ts : NaN);
|
1414
|
+
}
|
1415
|
+
// COMPARE
|
1416
|
+
/**
|
1417
|
+
* Return the difference between two DateTimes as a Duration.
|
1418
|
+
* @param {DateTime} otherDateTime - the DateTime to compare this one to
|
1419
|
+
* @param {string|string[]} [unit=['milliseconds']] - the unit or array of units (such as 'hours' or 'days') to include in the duration.
|
1420
|
+
* @param {Object} opts - options that affect the creation of the Duration
|
1421
|
+
* @param {string} [opts.conversionAccuracy='casual'] - the conversion system to use
|
1422
|
+
* @example
|
1423
|
+
* var i1 = DateTime.fromISO('1982-05-25T09:45'),
|
1424
|
+
* i2 = DateTime.fromISO('1983-10-14T10:30');
|
1425
|
+
* i2.diff(i1).toObject() //=> { milliseconds: 43807500000 }
|
1426
|
+
* i2.diff(i1, 'hours').toObject() //=> { hours: 12168.75 }
|
1427
|
+
* i2.diff(i1, ['months', 'days']).toObject() //=> { months: 16, days: 19.03125 }
|
1428
|
+
* i2.diff(i1, ['months', 'days', 'hours']).toObject() //=> { months: 16, days: 19, hours: 0.75 }
|
1429
|
+
* @return {Duration}
|
1430
|
+
*/
|
1431
|
+
diff(e, t = "milliseconds", i = {}) {
|
1432
|
+
if (!this.isValid || !e.isValid)
|
1433
|
+
return E.invalid("created by diffing an invalid DateTime");
|
1434
|
+
const r = { locale: this.locale, numberingSystem: this.numberingSystem, ...i }, a = Me(t).map(E.normalizeUnit), s = e.valueOf() > this.valueOf(), o = s ? this : e, u = s ? e : this, c = be(o, u, a, r);
|
1435
|
+
return s ? c.negate() : c;
|
1436
|
+
}
|
1437
|
+
/**
|
1438
|
+
* Return the difference between this DateTime and right now.
|
1439
|
+
* See {@link DateTime#diff}
|
1440
|
+
* @param {string|string[]} [unit=['milliseconds']] - the unit or units units (such as 'hours' or 'days') to include in the duration
|
451
1441
|
* @param {Object} opts - options that affect the creation of the Duration
|
452
1442
|
* @param {string} [opts.conversionAccuracy='casual'] - the conversion system to use
|
453
|
-
* @example Interval.fromDateTimes(dt1, dt2).toDuration().toObject() //=> { milliseconds: 88489257 }
|
454
|
-
* @example Interval.fromDateTimes(dt1, dt2).toDuration('days').toObject() //=> { days: 1.0241812152777778 }
|
455
|
-
* @example Interval.fromDateTimes(dt1, dt2).toDuration(['hours', 'minutes']).toObject() //=> { hours: 24, minutes: 34.82095 }
|
456
|
-
* @example Interval.fromDateTimes(dt1, dt2).toDuration(['hours', 'minutes', 'seconds']).toObject() //=> { hours: 24, minutes: 34, seconds: 49.257 }
|
457
|
-
* @example Interval.fromDateTimes(dt1, dt2).toDuration('seconds').toObject() //=> { seconds: 88489.257 }
|
458
1443
|
* @return {Duration}
|
459
1444
|
*/
|
460
|
-
|
461
|
-
return this.
|
1445
|
+
diffNow(e = "milliseconds", t = {}) {
|
1446
|
+
return this.diff(l.now(), e, t);
|
462
1447
|
}
|
463
1448
|
/**
|
464
|
-
*
|
465
|
-
* @param {
|
1449
|
+
* Return an Interval spanning between this DateTime and another DateTime
|
1450
|
+
* @param {DateTime} otherDateTime - the other end point of the Interval
|
466
1451
|
* @return {Interval}
|
467
|
-
* @example Interval.fromDateTimes(dt1, dt2).mapEndpoints(endpoint => endpoint.toUTC())
|
468
|
-
* @example Interval.fromDateTimes(dt1, dt2).mapEndpoints(endpoint => endpoint.plus({ hours: 2 }))
|
469
1452
|
*/
|
470
|
-
|
471
|
-
return
|
1453
|
+
until(e) {
|
1454
|
+
return this.isValid ? Se.fromDateTimes(this, e) : this;
|
1455
|
+
}
|
1456
|
+
/**
|
1457
|
+
* Return whether this DateTime is in the same unit of time as another DateTime.
|
1458
|
+
* Higher-order units must also be identical for this function to return `true`.
|
1459
|
+
* Note that time zones are **ignored** in this comparison, which compares the **local** calendar time. Use {@link DateTime#setZone} to convert one of the dates if needed.
|
1460
|
+
* @param {DateTime} otherDateTime - the other DateTime
|
1461
|
+
* @param {string} unit - the unit of time to check sameness on
|
1462
|
+
* @param {Object} opts - options
|
1463
|
+
* @param {boolean} [opts.useLocaleWeeks=false] - If true, use weeks based on the locale, i.e. use the locale-dependent start of the week; only the locale of this DateTime is used
|
1464
|
+
* @example DateTime.now().hasSame(otherDT, 'day'); //~> true if otherDT is in the same current calendar day
|
1465
|
+
* @return {boolean}
|
1466
|
+
*/
|
1467
|
+
hasSame(e, t, i) {
|
1468
|
+
if (!this.isValid) return !1;
|
1469
|
+
const r = e.valueOf(), a = this.setZone(e.zone, { keepLocalTime: !0 });
|
1470
|
+
return a.startOf(t, i) <= r && r <= a.endOf(t, i);
|
1471
|
+
}
|
1472
|
+
/**
|
1473
|
+
* Equality check
|
1474
|
+
* Two DateTimes are equal if and only if they represent the same millisecond, have the same zone and location, and are both valid.
|
1475
|
+
* To compare just the millisecond values, use `+dt1 === +dt2`.
|
1476
|
+
* @param {DateTime} other - the other DateTime
|
1477
|
+
* @return {boolean}
|
1478
|
+
*/
|
1479
|
+
equals(e) {
|
1480
|
+
return this.isValid && e.isValid && this.valueOf() === e.valueOf() && this.zone.equals(e.zone) && this.loc.equals(e.loc);
|
1481
|
+
}
|
1482
|
+
/**
|
1483
|
+
* Returns a string representation of a this time relative to now, such as "in two days". Can only internationalize if your
|
1484
|
+
* platform supports Intl.RelativeTimeFormat. Rounds down by default.
|
1485
|
+
* @param {Object} options - options that affect the output
|
1486
|
+
* @param {DateTime} [options.base=DateTime.now()] - the DateTime to use as the basis to which this time is compared. Defaults to now.
|
1487
|
+
* @param {string} [options.style="long"] - the style of units, must be "long", "short", or "narrow"
|
1488
|
+
* @param {string|string[]} options.unit - use a specific unit or array of units; if omitted, or an array, the method will pick the best unit. Use an array or one of "years", "quarters", "months", "weeks", "days", "hours", "minutes", or "seconds"
|
1489
|
+
* @param {boolean} [options.round=true] - whether to round the numbers in the output.
|
1490
|
+
* @param {number} [options.padding=0] - padding in milliseconds. This allows you to round up the result if it fits inside the threshold. Don't use in combination with {round: false} because the decimal output will include the padding.
|
1491
|
+
* @param {string} options.locale - override the locale of this DateTime
|
1492
|
+
* @param {string} options.numberingSystem - override the numberingSystem of this DateTime. The Intl system may choose not to honor this
|
1493
|
+
* @example DateTime.now().plus({ days: 1 }).toRelative() //=> "in 1 day"
|
1494
|
+
* @example DateTime.now().setLocale("es").toRelative({ days: 1 }) //=> "dentro de 1 día"
|
1495
|
+
* @example DateTime.now().plus({ days: 1 }).toRelative({ locale: "fr" }) //=> "dans 23 heures"
|
1496
|
+
* @example DateTime.now().minus({ days: 2 }).toRelative() //=> "2 days ago"
|
1497
|
+
* @example DateTime.now().minus({ days: 2 }).toRelative({ unit: "hours" }) //=> "48 hours ago"
|
1498
|
+
* @example DateTime.now().minus({ hours: 36 }).toRelative({ round: false }) //=> "1.5 days ago"
|
1499
|
+
*/
|
1500
|
+
toRelative(e = {}) {
|
1501
|
+
if (!this.isValid) return null;
|
1502
|
+
const t = e.base || l.fromObject({}, { zone: this.zone }), i = e.padding ? this < t ? -e.padding : e.padding : 0;
|
1503
|
+
let r = ["years", "months", "days", "hours", "minutes", "seconds"], a = e.unit;
|
1504
|
+
return Array.isArray(e.unit) && (r = e.unit, a = void 0), ce(t, this.plus(i), {
|
1505
|
+
...e,
|
1506
|
+
numeric: "always",
|
1507
|
+
units: r,
|
1508
|
+
unit: a
|
1509
|
+
});
|
1510
|
+
}
|
1511
|
+
/**
|
1512
|
+
* Returns a string representation of this date relative to today, such as "yesterday" or "next month".
|
1513
|
+
* Only internationalizes on platforms that supports Intl.RelativeTimeFormat.
|
1514
|
+
* @param {Object} options - options that affect the output
|
1515
|
+
* @param {DateTime} [options.base=DateTime.now()] - the DateTime to use as the basis to which this time is compared. Defaults to now.
|
1516
|
+
* @param {string} options.locale - override the locale of this DateTime
|
1517
|
+
* @param {string} options.unit - use a specific unit; if omitted, the method will pick the unit. Use one of "years", "quarters", "months", "weeks", or "days"
|
1518
|
+
* @param {string} options.numberingSystem - override the numberingSystem of this DateTime. The Intl system may choose not to honor this
|
1519
|
+
* @example DateTime.now().plus({ days: 1 }).toRelativeCalendar() //=> "tomorrow"
|
1520
|
+
* @example DateTime.now().setLocale("es").plus({ days: 1 }).toRelative() //=> ""mañana"
|
1521
|
+
* @example DateTime.now().plus({ days: 1 }).toRelativeCalendar({ locale: "fr" }) //=> "demain"
|
1522
|
+
* @example DateTime.now().minus({ days: 2 }).toRelativeCalendar() //=> "2 days ago"
|
1523
|
+
*/
|
1524
|
+
toRelativeCalendar(e = {}) {
|
1525
|
+
return this.isValid ? ce(e.base || l.fromObject({}, { zone: this.zone }), this, {
|
1526
|
+
...e,
|
1527
|
+
numeric: "auto",
|
1528
|
+
units: ["years", "months", "days"],
|
1529
|
+
calendary: !0
|
1530
|
+
}) : null;
|
1531
|
+
}
|
1532
|
+
/**
|
1533
|
+
* Return the min of several date times
|
1534
|
+
* @param {...DateTime} dateTimes - the DateTimes from which to choose the minimum
|
1535
|
+
* @return {DateTime} the min DateTime, or undefined if called with no argument
|
1536
|
+
*/
|
1537
|
+
static min(...e) {
|
1538
|
+
if (!e.every(l.isDateTime))
|
1539
|
+
throw new w("min requires all arguments be DateTimes");
|
1540
|
+
return te(e, (t) => t.valueOf(), Math.min);
|
1541
|
+
}
|
1542
|
+
/**
|
1543
|
+
* Return the max of several date times
|
1544
|
+
* @param {...DateTime} dateTimes - the DateTimes from which to choose the maximum
|
1545
|
+
* @return {DateTime} the max DateTime, or undefined if called with no argument
|
1546
|
+
*/
|
1547
|
+
static max(...e) {
|
1548
|
+
if (!e.every(l.isDateTime))
|
1549
|
+
throw new w("max requires all arguments be DateTimes");
|
1550
|
+
return te(e, (t) => t.valueOf(), Math.max);
|
1551
|
+
}
|
1552
|
+
// MISC
|
1553
|
+
/**
|
1554
|
+
* Explain how a string would be parsed by fromFormat()
|
1555
|
+
* @param {string} text - the string to parse
|
1556
|
+
* @param {string} fmt - the format the string is expected to be in (see description)
|
1557
|
+
* @param {Object} options - options taken by fromFormat()
|
1558
|
+
* @return {Object}
|
1559
|
+
*/
|
1560
|
+
static fromFormatExplain(e, t, i = {}) {
|
1561
|
+
const { locale: r = null, numberingSystem: a = null } = i, s = y.fromOpts({
|
1562
|
+
locale: r,
|
1563
|
+
numberingSystem: a,
|
1564
|
+
defaultToEN: !0
|
1565
|
+
});
|
1566
|
+
return He(s, e, t);
|
1567
|
+
}
|
1568
|
+
/**
|
1569
|
+
* @deprecated use fromFormatExplain instead
|
1570
|
+
*/
|
1571
|
+
static fromStringExplain(e, t, i = {}) {
|
1572
|
+
return l.fromFormatExplain(e, t, i);
|
1573
|
+
}
|
1574
|
+
/**
|
1575
|
+
* Build a parser for `fmt` using the given locale. This parser can be passed
|
1576
|
+
* to {@link DateTime.fromFormatParser} to a parse a date in this format. This
|
1577
|
+
* can be used to optimize cases where many dates need to be parsed in a
|
1578
|
+
* specific format.
|
1579
|
+
*
|
1580
|
+
* @param {String} fmt - the format the string is expected to be in (see
|
1581
|
+
* description)
|
1582
|
+
* @param {Object} options - options used to set locale and numberingSystem
|
1583
|
+
* for parser
|
1584
|
+
* @returns {TokenParser} - opaque object to be used
|
1585
|
+
*/
|
1586
|
+
static buildFormatParser(e, t = {}) {
|
1587
|
+
const { locale: i = null, numberingSystem: r = null } = t, a = y.fromOpts({
|
1588
|
+
locale: i,
|
1589
|
+
numberingSystem: r,
|
1590
|
+
defaultToEN: !0
|
1591
|
+
});
|
1592
|
+
return new Ue(a, e);
|
1593
|
+
}
|
1594
|
+
/**
|
1595
|
+
* Create a DateTime from an input string and format parser.
|
1596
|
+
*
|
1597
|
+
* The format parser must have been created with the same locale as this call.
|
1598
|
+
*
|
1599
|
+
* @param {String} text - the string to parse
|
1600
|
+
* @param {TokenParser} formatParser - parser from {@link DateTime.buildFormatParser}
|
1601
|
+
* @param {Object} opts - options taken by fromFormat()
|
1602
|
+
* @returns {DateTime}
|
1603
|
+
*/
|
1604
|
+
static fromFormatParser(e, t, i = {}) {
|
1605
|
+
if (f(e) || f(t))
|
1606
|
+
throw new w(
|
1607
|
+
"fromFormatParser requires an input string and a format parser"
|
1608
|
+
);
|
1609
|
+
const { locale: r = null, numberingSystem: a = null } = i, s = y.fromOpts({
|
1610
|
+
locale: r,
|
1611
|
+
numberingSystem: a,
|
1612
|
+
defaultToEN: !0
|
1613
|
+
});
|
1614
|
+
if (!s.equals(t.locale))
|
1615
|
+
throw new w(
|
1616
|
+
`fromFormatParser called with a locale of ${s}, but the format parser was created for ${t.locale}`
|
1617
|
+
);
|
1618
|
+
const { result: o, zone: u, specificOffset: c, invalidReason: d } = t.explainFromTokens(e);
|
1619
|
+
return d ? l.invalid(d) : g(
|
1620
|
+
o,
|
1621
|
+
u,
|
1622
|
+
i,
|
1623
|
+
`format ${t.format}`,
|
1624
|
+
e,
|
1625
|
+
c
|
1626
|
+
);
|
1627
|
+
}
|
1628
|
+
// FORMAT PRESETS
|
1629
|
+
/**
|
1630
|
+
* {@link DateTime#toLocaleString} format like 10/14/1983
|
1631
|
+
* @type {Object}
|
1632
|
+
*/
|
1633
|
+
static get DATE_SHORT() {
|
1634
|
+
return se;
|
1635
|
+
}
|
1636
|
+
/**
|
1637
|
+
* {@link DateTime#toLocaleString} format like 'Oct 14, 1983'
|
1638
|
+
* @type {Object}
|
1639
|
+
*/
|
1640
|
+
static get DATE_MED() {
|
1641
|
+
return xe;
|
1642
|
+
}
|
1643
|
+
/**
|
1644
|
+
* {@link DateTime#toLocaleString} format like 'Fri, Oct 14, 1983'
|
1645
|
+
* @type {Object}
|
1646
|
+
*/
|
1647
|
+
static get DATE_MED_WITH_WEEKDAY() {
|
1648
|
+
return Ye;
|
1649
|
+
}
|
1650
|
+
/**
|
1651
|
+
* {@link DateTime#toLocaleString} format like 'October 14, 1983'
|
1652
|
+
* @type {Object}
|
1653
|
+
*/
|
1654
|
+
static get DATE_FULL() {
|
1655
|
+
return Ze;
|
1656
|
+
}
|
1657
|
+
/**
|
1658
|
+
* {@link DateTime#toLocaleString} format like 'Tuesday, October 14, 1983'
|
1659
|
+
* @type {Object}
|
1660
|
+
*/
|
1661
|
+
static get DATE_HUGE() {
|
1662
|
+
return je;
|
1663
|
+
}
|
1664
|
+
/**
|
1665
|
+
* {@link DateTime#toLocaleString} format like '09:30 AM'. Only 12-hour if the locale is.
|
1666
|
+
* @type {Object}
|
1667
|
+
*/
|
1668
|
+
static get TIME_SIMPLE() {
|
1669
|
+
return qe;
|
1670
|
+
}
|
1671
|
+
/**
|
1672
|
+
* {@link DateTime#toLocaleString} format like '09:30:23 AM'. Only 12-hour if the locale is.
|
1673
|
+
* @type {Object}
|
1674
|
+
*/
|
1675
|
+
static get TIME_WITH_SECONDS() {
|
1676
|
+
return Ge;
|
472
1677
|
}
|
1678
|
+
/**
|
1679
|
+
* {@link DateTime#toLocaleString} format like '09:30:23 AM EDT'. Only 12-hour if the locale is.
|
1680
|
+
* @type {Object}
|
1681
|
+
*/
|
1682
|
+
static get TIME_WITH_SHORT_OFFSET() {
|
1683
|
+
return Re;
|
1684
|
+
}
|
1685
|
+
/**
|
1686
|
+
* {@link DateTime#toLocaleString} format like '09:30:23 AM Eastern Daylight Time'. Only 12-hour if the locale is.
|
1687
|
+
* @type {Object}
|
1688
|
+
*/
|
1689
|
+
static get TIME_WITH_LONG_OFFSET() {
|
1690
|
+
return $e;
|
1691
|
+
}
|
1692
|
+
/**
|
1693
|
+
* {@link DateTime#toLocaleString} format like '09:30', always 24-hour.
|
1694
|
+
* @type {Object}
|
1695
|
+
*/
|
1696
|
+
static get TIME_24_SIMPLE() {
|
1697
|
+
return Pe;
|
1698
|
+
}
|
1699
|
+
/**
|
1700
|
+
* {@link DateTime#toLocaleString} format like '09:30:23', always 24-hour.
|
1701
|
+
* @type {Object}
|
1702
|
+
*/
|
1703
|
+
static get TIME_24_WITH_SECONDS() {
|
1704
|
+
return Qe;
|
1705
|
+
}
|
1706
|
+
/**
|
1707
|
+
* {@link DateTime#toLocaleString} format like '09:30:23 EDT', always 24-hour.
|
1708
|
+
* @type {Object}
|
1709
|
+
*/
|
1710
|
+
static get TIME_24_WITH_SHORT_OFFSET() {
|
1711
|
+
return Je;
|
1712
|
+
}
|
1713
|
+
/**
|
1714
|
+
* {@link DateTime#toLocaleString} format like '09:30:23 Eastern Daylight Time', always 24-hour.
|
1715
|
+
* @type {Object}
|
1716
|
+
*/
|
1717
|
+
static get TIME_24_WITH_LONG_OFFSET() {
|
1718
|
+
return Ke;
|
1719
|
+
}
|
1720
|
+
/**
|
1721
|
+
* {@link DateTime#toLocaleString} format like '10/14/1983, 9:30 AM'. Only 12-hour if the locale is.
|
1722
|
+
* @type {Object}
|
1723
|
+
*/
|
1724
|
+
static get DATETIME_SHORT() {
|
1725
|
+
return Be;
|
1726
|
+
}
|
1727
|
+
/**
|
1728
|
+
* {@link DateTime#toLocaleString} format like '10/14/1983, 9:30:33 AM'. Only 12-hour if the locale is.
|
1729
|
+
* @type {Object}
|
1730
|
+
*/
|
1731
|
+
static get DATETIME_SHORT_WITH_SECONDS() {
|
1732
|
+
return Xe;
|
1733
|
+
}
|
1734
|
+
/**
|
1735
|
+
* {@link DateTime#toLocaleString} format like 'Oct 14, 1983, 9:30 AM'. Only 12-hour if the locale is.
|
1736
|
+
* @type {Object}
|
1737
|
+
*/
|
1738
|
+
static get DATETIME_MED() {
|
1739
|
+
return et;
|
1740
|
+
}
|
1741
|
+
/**
|
1742
|
+
* {@link DateTime#toLocaleString} format like 'Oct 14, 1983, 9:30:33 AM'. Only 12-hour if the locale is.
|
1743
|
+
* @type {Object}
|
1744
|
+
*/
|
1745
|
+
static get DATETIME_MED_WITH_SECONDS() {
|
1746
|
+
return tt;
|
1747
|
+
}
|
1748
|
+
/**
|
1749
|
+
* {@link DateTime#toLocaleString} format like 'Fri, 14 Oct 1983, 9:30 AM'. Only 12-hour if the locale is.
|
1750
|
+
* @type {Object}
|
1751
|
+
*/
|
1752
|
+
static get DATETIME_MED_WITH_WEEKDAY() {
|
1753
|
+
return nt;
|
1754
|
+
}
|
1755
|
+
/**
|
1756
|
+
* {@link DateTime#toLocaleString} format like 'October 14, 1983, 9:30 AM EDT'. Only 12-hour if the locale is.
|
1757
|
+
* @type {Object}
|
1758
|
+
*/
|
1759
|
+
static get DATETIME_FULL() {
|
1760
|
+
return it;
|
1761
|
+
}
|
1762
|
+
/**
|
1763
|
+
* {@link DateTime#toLocaleString} format like 'October 14, 1983, 9:30:33 AM EDT'. Only 12-hour if the locale is.
|
1764
|
+
* @type {Object}
|
1765
|
+
*/
|
1766
|
+
static get DATETIME_FULL_WITH_SECONDS() {
|
1767
|
+
return rt;
|
1768
|
+
}
|
1769
|
+
/**
|
1770
|
+
* {@link DateTime#toLocaleString} format like 'Friday, October 14, 1983, 9:30 AM Eastern Daylight Time'. Only 12-hour if the locale is.
|
1771
|
+
* @type {Object}
|
1772
|
+
*/
|
1773
|
+
static get DATETIME_HUGE() {
|
1774
|
+
return st;
|
1775
|
+
}
|
1776
|
+
/**
|
1777
|
+
* {@link DateTime#toLocaleString} format like 'Friday, October 14, 1983, 9:30:33 AM Eastern Daylight Time'. Only 12-hour if the locale is.
|
1778
|
+
* @type {Object}
|
1779
|
+
*/
|
1780
|
+
static get DATETIME_HUGE_WITH_SECONDS() {
|
1781
|
+
return at;
|
1782
|
+
}
|
1783
|
+
}
|
1784
|
+
function Wt(n) {
|
1785
|
+
if (l.isDateTime(n))
|
1786
|
+
return n;
|
1787
|
+
if (n && n.valueOf && H(n.valueOf()))
|
1788
|
+
return l.fromJSDate(n);
|
1789
|
+
if (n && typeof n == "object")
|
1790
|
+
return l.fromObject(n);
|
1791
|
+
throw new w(
|
1792
|
+
`Unknown datetime argument: ${n}, of type ${typeof n}`
|
1793
|
+
);
|
473
1794
|
}
|
474
1795
|
export {
|
475
|
-
|
1796
|
+
l as default,
|
1797
|
+
Wt as friendlyDateTime
|
476
1798
|
};
|
477
1799
|
//# sourceMappingURL=index.es193.js.map
|