@rpcbase/ui 0.200.0 → 0.202.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index100.js +5 -4
- package/dist/index100.js.map +1 -1
- package/dist/index101.js +5 -52
- package/dist/index101.js.map +1 -1
- package/dist/index102.js +4 -4
- package/dist/index102.js.map +1 -1
- package/dist/index103.js +6 -4
- package/dist/index103.js.map +1 -1
- package/dist/index104.js +145 -15
- package/dist/index104.js.map +1 -1
- package/dist/index105.js +39 -5
- package/dist/index105.js.map +1 -1
- package/dist/index106.js +4 -7
- package/dist/index106.js.map +1 -1
- package/dist/index107.js +7 -16
- package/dist/index107.js.map +1 -1
- package/dist/index108.js +13 -4
- package/dist/index108.js.map +1 -1
- package/dist/index109.js +13 -4
- package/dist/index109.js.map +1 -1
- package/dist/index110.js +7 -5
- package/dist/index110.js.map +1 -1
- package/dist/index111.js +31 -5
- package/dist/index111.js.map +1 -1
- package/dist/index112.js +10 -4
- package/dist/index112.js.map +1 -1
- package/dist/index113.js +10 -4
- package/dist/index113.js.map +1 -1
- package/dist/index114.js +8 -6
- package/dist/index114.js.map +1 -1
- package/dist/index115.js +13 -24
- package/dist/index115.js.map +1 -1
- package/dist/index116.js +101 -6
- package/dist/index116.js.map +1 -1
- package/dist/index117.js +20 -5
- package/dist/index117.js.map +1 -1
- package/dist/index118.js +53 -6
- package/dist/index118.js.map +1 -1
- package/dist/index119.js +72 -5
- package/dist/index119.js.map +1 -1
- package/dist/index120.js +9 -4
- package/dist/index120.js.map +1 -1
- package/dist/index121.js +20 -5
- package/dist/index121.js.map +1 -1
- package/dist/index122.js +16 -4
- package/dist/index122.js.map +1 -1
- package/dist/index123.js +23 -8
- package/dist/index123.js.map +1 -1
- package/dist/index124.js +6 -5
- package/dist/index124.js.map +1 -1
- package/dist/index125.js +5 -4
- package/dist/index125.js.map +1 -1
- package/dist/index126.js +22 -3
- package/dist/index126.js.map +1 -1
- package/dist/index127.js +35 -7
- package/dist/index127.js.map +1 -1
- package/dist/index128.js +16 -146
- package/dist/index128.js.map +1 -1
- package/dist/index129.js +6 -39
- package/dist/index129.js.map +1 -1
- package/dist/index130.js +4 -4
- package/dist/index130.js.map +1 -1
- package/dist/index131.js +4 -7
- package/dist/index131.js.map +1 -1
- package/dist/index132.js +4 -13
- package/dist/index132.js.map +1 -1
- package/dist/index133.js +4 -13
- package/dist/index133.js.map +1 -1
- package/dist/index134.js +3 -7
- package/dist/index134.js.map +1 -1
- package/dist/index135.js +6 -31
- package/dist/index135.js.map +1 -1
- package/dist/index136.js +24 -11
- package/dist/index136.js.map +1 -1
- package/dist/index137.js +7 -10
- package/dist/index137.js.map +1 -1
- package/dist/index138.js +6 -8
- package/dist/index138.js.map +1 -1
- package/dist/index139.js +5 -13
- package/dist/index139.js.map +1 -1
- package/dist/index140.js +3 -101
- package/dist/index140.js.map +1 -1
- package/dist/index141.js +4 -20
- package/dist/index141.js.map +1 -1
- package/dist/index142.js +4 -53
- package/dist/index142.js.map +1 -1
- package/dist/index143.js +3 -72
- package/dist/index143.js.map +1 -1
- package/dist/index144.js +4 -9
- package/dist/index144.js.map +1 -1
- package/dist/index145.js +3 -20
- package/dist/index145.js.map +1 -1
- package/dist/index146.js +3 -16
- package/dist/index146.js.map +1 -1
- package/dist/index147.js +3 -23
- package/dist/index147.js.map +1 -1
- package/dist/index148.js +5 -6
- package/dist/index148.js.map +1 -1
- package/dist/index149.js +7 -5
- package/dist/index149.js.map +1 -1
- package/dist/index150.js +5 -23
- package/dist/index150.js.map +1 -1
- package/dist/index151.js +45 -33
- package/dist/index151.js.map +1 -1
- package/dist/index152.js +47 -16
- package/dist/index152.js.map +1 -1
- package/dist/index153.js +205 -6
- package/dist/index153.js.map +1 -1
- package/dist/index154.js +22 -5
- package/dist/index154.js.map +1 -1
- package/dist/index155.js +24 -4
- package/dist/index155.js.map +1 -1
- package/dist/index156.js +399 -4
- package/dist/index156.js.map +1 -1
- package/dist/index157.js +605 -4
- package/dist/index157.js.map +1 -1
- package/dist/index158.js +16 -3
- package/dist/index158.js.map +1 -1
- package/dist/index159.js +5 -6
- package/dist/index159.js.map +1 -1
- package/dist/index160.js +6 -24
- package/dist/index160.js.map +1 -1
- package/dist/index161.js +58 -7
- package/dist/index161.js.map +1 -1
- package/dist/index162.js +66 -6
- package/dist/index162.js.map +1 -1
- package/dist/index163.js +6 -5
- package/dist/index163.js.map +1 -1
- package/dist/index164.js +4 -3
- package/dist/index164.js.map +1 -1
- package/dist/index165.js +7 -3
- package/dist/index165.js.map +1 -1
- package/dist/index166.js +17 -4
- package/dist/index166.js.map +1 -1
- package/dist/index167.js +5 -3
- package/dist/index167.js.map +1 -1
- package/dist/index168.js +5 -4
- package/dist/index168.js.map +1 -1
- package/dist/index169.js +13 -3
- package/dist/index169.js.map +1 -1
- package/dist/index170.js +10 -3
- package/dist/index170.js.map +1 -1
- package/dist/index171.js +14 -3
- package/dist/index171.js.map +1 -1
- package/dist/index172.js +14 -46
- package/dist/index172.js.map +1 -1
- package/dist/index173.js +5 -46
- package/dist/index173.js.map +1 -1
- package/dist/index174.js +6 -205
- package/dist/index174.js.map +1 -1
- package/dist/index175.js +8 -22
- package/dist/index175.js.map +1 -1
- package/dist/index176.js +6 -24
- package/dist/index176.js.map +1 -1
- package/dist/index177.js +9 -399
- package/dist/index177.js.map +1 -1
- package/dist/index178.js +5 -13
- package/dist/index178.js.map +1 -1
- package/dist/index179.js +5 -154
- package/dist/index179.js.map +1 -1
- package/dist/index180.js +9 -30
- package/dist/index180.js.map +1 -1
- package/dist/index181.js +5 -9
- package/dist/index181.js.map +1 -1
- package/dist/index182.js +5 -48
- package/dist/index182.js.map +1 -1
- package/dist/index183.js +4 -11
- package/dist/index183.js.map +1 -1
- package/dist/index184.js +11 -44
- package/dist/index184.js.map +1 -1
- package/dist/index185.js +10 -95
- package/dist/index185.js.map +1 -1
- package/dist/index186.js +10 -86
- package/dist/index186.js.map +1 -1
- package/dist/index187.js +11 -105
- package/dist/index187.js.map +1 -1
- package/dist/index188.js +11 -52
- package/dist/index188.js.map +1 -1
- package/dist/index189.js +10 -11
- package/dist/index189.js.map +1 -1
- package/dist/index190.js +7 -37
- package/dist/index190.js.map +1 -1
- package/dist/index191.js +6 -8
- package/dist/index191.js.map +1 -1
- package/dist/index192.js +5 -116
- package/dist/index192.js.map +1 -1
- package/dist/index193.js +6 -17
- package/dist/index193.js.map +1 -1
- package/dist/index194.js +7 -15
- package/dist/index194.js.map +1 -1
- package/dist/index195.js +6 -3
- package/dist/index195.js.map +1 -1
- package/dist/index196.js +53 -34
- package/dist/index196.js.map +1 -1
- package/dist/index197.js +8 -20
- package/dist/index197.js.map +1 -1
- package/dist/index198.js +19 -9
- package/dist/index198.js.map +1 -1
- package/dist/index199.js +29 -8
- package/dist/index199.js.map +1 -1
- package/dist/index200.js +11 -18
- package/dist/index200.js.map +1 -1
- package/dist/index201.js +23 -26
- package/dist/index201.js.map +1 -1
- package/dist/index202.js +5 -16
- package/dist/index202.js.map +1 -1
- package/dist/index203.js +14 -603
- package/dist/index203.js.map +1 -1
- package/dist/index204.js +7 -58
- package/dist/index204.js.map +1 -1
- package/dist/index205.js +10 -8
- package/dist/index205.js.map +1 -1
- package/dist/index206.js +9 -65
- package/dist/index206.js.map +1 -1
- package/dist/index207.js +21 -19
- package/dist/index207.js.map +1 -1
- package/dist/index208.js +10 -16
- package/dist/index208.js.map +1 -1
- package/dist/index209.js +9 -5
- package/dist/index209.js.map +1 -1
- package/dist/index210.js +9 -5
- package/dist/index210.js.map +1 -1
- package/dist/index211.js +4 -6
- package/dist/index211.js.map +1 -1
- package/dist/index212.js +5 -4
- package/dist/index212.js.map +1 -1
- package/dist/index213.js +16 -7
- package/dist/index213.js.map +1 -1
- package/dist/index214.js +9 -17
- package/dist/index214.js.map +1 -1
- package/dist/index215.js +18 -5
- package/dist/index215.js.map +1 -1
- package/dist/index216.js +15 -5
- package/dist/index216.js.map +1 -1
- package/dist/index217.js +12 -13
- package/dist/index217.js.map +1 -1
- package/dist/index218.js +5 -10
- package/dist/index218.js.map +1 -1
- package/dist/index219.js +68 -14
- package/dist/index219.js.map +1 -1
- package/dist/index220.js +2 -15
- package/dist/index220.js.map +1 -1
- package/dist/index221.js +363 -5
- package/dist/index221.js.map +1 -1
- package/dist/index222.js +261 -6
- package/dist/index222.js.map +1 -1
- package/dist/index223.js +60 -7
- package/dist/index223.js.map +1 -1
- package/dist/index224.js +46 -6
- package/dist/index224.js.map +1 -1
- package/dist/index225.js +169 -9
- package/dist/index225.js.map +1 -1
- package/dist/index226.js +109 -5
- package/dist/index226.js.map +1 -1
- package/dist/index227.js +24 -5
- package/dist/index227.js.map +1 -1
- package/dist/index228.js +8 -10
- package/dist/index228.js.map +1 -1
- package/dist/index229.js +4 -5
- package/dist/index229.js.map +1 -1
- package/dist/index230.js +5 -5
- package/dist/index230.js.map +1 -1
- package/dist/index231.js +4 -4
- package/dist/index231.js.map +1 -1
- package/dist/index232.js +466 -11
- package/dist/index232.js.map +1 -1
- package/dist/index233.js +185 -10
- package/dist/index233.js.map +1 -1
- package/dist/index234.js +107 -10
- package/dist/index234.js.map +1 -1
- package/dist/index235.js +262 -11
- package/dist/index235.js.map +1 -1
- package/dist/index236.js +9 -11
- package/dist/index236.js.map +1 -1
- package/dist/index237.js +42 -10
- package/dist/index237.js.map +1 -1
- package/dist/index238.js +4 -7
- package/dist/index238.js.map +1 -1
- package/dist/index239.js +24 -6
- package/dist/index239.js.map +1 -1
- package/dist/index24.js +1 -1
- package/dist/index240.js +29 -6
- package/dist/index240.js.map +1 -1
- package/dist/index241.js +5 -7
- package/dist/index241.js.map +1 -1
- package/dist/index242.js +67 -7
- package/dist/index242.js.map +1 -1
- package/dist/index243.js +180 -6
- package/dist/index243.js.map +1 -1
- package/dist/index244.js +43 -52
- package/dist/index244.js.map +1 -1
- package/dist/index245.js +4 -16
- package/dist/index245.js.map +1 -1
- package/dist/index246.js +19 -8
- package/dist/index246.js.map +1 -1
- package/dist/index247.js +12 -10
- package/dist/index247.js.map +1 -1
- package/dist/index248.js +13 -10
- package/dist/index248.js.map +1 -1
- package/dist/index249.js +153 -20
- package/dist/index249.js.map +1 -1
- package/dist/index250.js +30 -10
- package/dist/index250.js.map +1 -1
- package/dist/index251.js +9 -9
- package/dist/index251.js.map +1 -1
- package/dist/index252.js +48 -9
- package/dist/index252.js.map +1 -1
- package/dist/index253.js +11 -4
- package/dist/index253.js.map +1 -1
- package/dist/index254.js +44 -5
- package/dist/index254.js.map +1 -1
- package/dist/index255.js +93 -14
- package/dist/index255.js.map +1 -1
- package/dist/index256.js +86 -9
- package/dist/index256.js.map +1 -1
- package/dist/index257.js +103 -16
- package/dist/index257.js.map +1 -1
- package/dist/index258.js +52 -15
- package/dist/index258.js.map +1 -1
- package/dist/index259.js +11 -12
- package/dist/index259.js.map +1 -1
- package/dist/index260.js +36 -28
- package/dist/index260.js.map +1 -1
- package/dist/index261.js +8 -12
- package/dist/index261.js.map +1 -1
- package/dist/index262.js +114 -23
- package/dist/index262.js.map +1 -1
- package/dist/index263.js +17 -5
- package/dist/index263.js.map +1 -1
- package/dist/index264.js +15 -24
- package/dist/index264.js.map +1 -1
- package/dist/index265.js +4 -29
- package/dist/index265.js.map +1 -1
- package/dist/index266.js +37 -5
- package/dist/index266.js.map +1 -1
- package/dist/index267.js +20 -20
- package/dist/index267.js.map +1 -1
- package/dist/index268.js +9 -67
- package/dist/index268.js.map +1 -1
- package/dist/index269.js +7 -179
- package/dist/index269.js.map +1 -1
- package/dist/index270.js +18 -45
- package/dist/index270.js.map +1 -1
- package/dist/index271.js +28 -4
- package/dist/index271.js.map +1 -1
- package/dist/index272.js +16 -18
- package/dist/index272.js.map +1 -1
- package/dist/index273.js +5 -13
- package/dist/index273.js.map +1 -1
- package/dist/index274.js +3 -5
- package/dist/index274.js.map +1 -1
- package/dist/index275.js +24 -3
- package/dist/index275.js.map +1 -1
- package/dist/index276.js +111 -22
- package/dist/index276.js.map +1 -1
- package/dist/index277.js +14 -111
- package/dist/index277.js.map +1 -1
- package/dist/index278.js +523 -14
- package/dist/index278.js.map +1 -1
- package/dist/index279.js +114 -511
- package/dist/index279.js.map +1 -1
- package/dist/index280.js +117 -111
- package/dist/index280.js.map +1 -1
- package/dist/index281.js +5 -133
- package/dist/index281.js.map +1 -1
- package/dist/index282.js +5 -5
- package/dist/index282.js.map +1 -1
- package/dist/index283.js +4 -6
- package/dist/index283.js.map +1 -1
- package/dist/index284.js +16 -4
- package/dist/index284.js.map +1 -1
- package/dist/index285.js +7 -14
- package/dist/index285.js.map +1 -1
- package/dist/index286.js +5 -8
- package/dist/index286.js.map +1 -1
- package/dist/index287.js +4 -5
- package/dist/index287.js.map +1 -1
- package/dist/index288.js +545 -4
- package/dist/index288.js.map +1 -1
- package/dist/index289.js +45 -544
- package/dist/index289.js.map +1 -1
- package/dist/index290.js +18 -47
- package/dist/index290.js.map +1 -1
- package/dist/index291.js +6 -17
- package/dist/index291.js.map +1 -1
- package/dist/index292.js +8 -6
- package/dist/index292.js.map +1 -1
- package/dist/index293.js +7 -8
- package/dist/index293.js.map +1 -1
- package/dist/index294.js +8 -7
- package/dist/index294.js.map +1 -1
- package/dist/index295.js +12 -8
- package/dist/index295.js.map +1 -1
- package/dist/index296.js +9 -12
- package/dist/index296.js.map +1 -1
- package/dist/index297.js +13 -9
- package/dist/index297.js.map +1 -1
- package/dist/index298.js +20 -13
- package/dist/index298.js.map +1 -1
- package/dist/index299.js +1 -1
- package/dist/index300.js +1 -1
- package/dist/index31.js +5 -5
- package/dist/index32.js +24 -24
- package/dist/index33.js +3 -3
- package/dist/index36.js +1 -1
- package/dist/index37.js +2 -2
- package/dist/index40.js +2 -2
- package/dist/index41.js +20 -20
- package/dist/index45.js +1 -1
- package/dist/index46.js +1 -1
- package/dist/index49.js +1 -1
- package/dist/index50.js +1 -1
- package/dist/index51.js +7 -2
- package/dist/index51.js.map +1 -1
- package/dist/index52.js +34 -2
- package/dist/index52.js.map +1 -1
- package/dist/index53.js +26 -5
- package/dist/index53.js.map +1 -1
- package/dist/index54.js +7 -7
- package/dist/index54.js.map +1 -1
- package/dist/index55.js +11 -5
- package/dist/index55.js.map +1 -1
- package/dist/index56.js +2 -4
- package/dist/index56.js.map +1 -1
- package/dist/index57.js +2 -7
- package/dist/index57.js.map +1 -1
- package/dist/index58.js +2 -48
- package/dist/index58.js.map +1 -1
- package/dist/index59.js +2 -27
- package/dist/index59.js.map +1 -1
- package/dist/index60.js +203 -49
- package/dist/index60.js.map +1 -1
- package/dist/index61.js +3 -7
- package/dist/index61.js.map +1 -1
- package/dist/index62.js +47 -14
- package/dist/index62.js.map +1 -1
- package/dist/index63.js +46 -129
- package/dist/index63.js.map +1 -1
- package/dist/index64.js +7 -10
- package/dist/index64.js.map +1 -1
- package/dist/index65.js +13 -215
- package/dist/index65.js.map +1 -1
- package/dist/index66.js +133 -12
- package/dist/index66.js.map +1 -1
- package/dist/index67.js +10 -33
- package/dist/index67.js.map +1 -1
- package/dist/index68.js +214 -44
- package/dist/index68.js.map +1 -1
- package/dist/index69.js +13 -8
- package/dist/index69.js.map +1 -1
- package/dist/index70.js +44 -47
- package/dist/index70.js.map +1 -1
- package/dist/index71.js +50 -4
- package/dist/index71.js.map +1 -1
- package/dist/index72.js +4 -6
- package/dist/index72.js.map +1 -1
- package/dist/index73.js +6 -28
- package/dist/index73.js.map +1 -1
- package/dist/index74.js +28 -50
- package/dist/index74.js.map +1 -1
- package/dist/index75.js +50 -9
- package/dist/index75.js.map +1 -1
- package/dist/index76.js +8 -11
- package/dist/index76.js.map +1 -1
- package/dist/index77.js +52 -2
- package/dist/index77.js.map +1 -1
- package/dist/index78.js +5 -2
- package/dist/index78.js.map +1 -1
- package/dist/index79.js +5 -205
- package/dist/index79.js.map +1 -1
- package/dist/index80.js +15 -5
- package/dist/index80.js.map +1 -1
- package/dist/index81.js +5 -68
- package/dist/index81.js.map +1 -1
- package/dist/index82.js +8 -2
- package/dist/index82.js.map +1 -1
- package/dist/index83.js +16 -363
- package/dist/index83.js.map +1 -1
- package/dist/index84.js +4 -261
- package/dist/index84.js.map +1 -1
- package/dist/index85.js +4 -60
- package/dist/index85.js.map +1 -1
- package/dist/index86.js +5 -46
- package/dist/index86.js.map +1 -1
- package/dist/index87.js +5 -169
- package/dist/index87.js.map +1 -1
- package/dist/index88.js +4 -109
- package/dist/index88.js.map +1 -1
- package/dist/index89.js +4 -24
- package/dist/index89.js.map +1 -1
- package/dist/index90.js +7 -8
- package/dist/index90.js.map +1 -1
- package/dist/index91.js +24 -4
- package/dist/index91.js.map +1 -1
- package/dist/index92.js +6 -5
- package/dist/index92.js.map +1 -1
- package/dist/index93.js +3 -3
- package/dist/index93.js.map +1 -1
- package/dist/index94.js +6 -466
- package/dist/index94.js.map +1 -1
- package/dist/index95.js +5 -185
- package/dist/index95.js.map +1 -1
- package/dist/index96.js +4 -107
- package/dist/index96.js.map +1 -1
- package/dist/index97.js +5 -262
- package/dist/index97.js.map +1 -1
- package/dist/index98.js +4 -9
- package/dist/index98.js.map +1 -1
- package/dist/index99.js +8 -42
- package/dist/index99.js.map +1 -1
- package/package.json +1 -1
package/dist/index190.js
CHANGED
|
@@ -1,41 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
r && (e = r);
|
|
7
|
-
var n = 0;
|
|
8
|
-
return function() {
|
|
9
|
-
return n >= e.length ? { done: !0 } : { done: !1, value: e[n++] };
|
|
10
|
-
};
|
|
11
|
-
}
|
|
12
|
-
throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
13
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
14
|
-
}
|
|
15
|
-
function l(e, t) {
|
|
16
|
-
if (e) {
|
|
17
|
-
if (typeof e == "string") return o(e, t);
|
|
18
|
-
var r = {}.toString.call(e).slice(8, -1);
|
|
19
|
-
return r === "Object" && e.constructor && (r = e.constructor.name), r === "Map" || r === "Set" ? Array.from(e) : r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ? o(e, t) : void 0;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
function o(e, t) {
|
|
23
|
-
(t == null || t > e.length) && (t = e.length);
|
|
24
|
-
for (var r = 0, n = Array(t); r < t; r++) n[r] = e[r];
|
|
25
|
-
return n;
|
|
26
|
-
}
|
|
27
|
-
function c(e) {
|
|
28
|
-
for (var t = "", r = u(e.split("")), n; !(n = r()).done; ) {
|
|
29
|
-
var a = n.value;
|
|
30
|
-
t += f(a, t) || "";
|
|
31
|
-
}
|
|
32
|
-
return t;
|
|
33
|
-
}
|
|
34
|
-
function f(e, t, r) {
|
|
35
|
-
return e === "+" ? t ? void 0 : "+" : i(e);
|
|
1
|
+
import { constructFrom as a } from "./index281.js";
|
|
2
|
+
import { toDate as n } from "./index282.js";
|
|
3
|
+
function u(r, o, e) {
|
|
4
|
+
const t = n(r, e?.in);
|
|
5
|
+
return isNaN(+t) ? a(r, NaN) : (t.setFullYear(o), t);
|
|
36
6
|
}
|
|
37
7
|
export {
|
|
38
|
-
|
|
39
|
-
|
|
8
|
+
u as default,
|
|
9
|
+
u as setYear
|
|
40
10
|
};
|
|
41
11
|
//# sourceMappingURL=index190.js.map
|
package/dist/index190.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index190.js","sources":["../../../node_modules/
|
|
1
|
+
{"version":3,"file":"index190.js","sources":["../../../node_modules/date-fns/setYear.js"],"sourcesContent":["import { constructFrom } from \"./constructFrom.js\";\nimport { toDate } from \"./toDate.js\";\n\n/**\n * The {@link setYear} function options.\n */\n\n/**\n * @name setYear\n * @category Year Helpers\n * @summary Set the year to the given date.\n *\n * @description\n * Set the year to the given date.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.\n *\n * @param date - The date to be changed\n * @param year - The year of the new date\n * @param options - An object with options.\n *\n * @returns The new date with the year set\n *\n * @example\n * // Set year 2013 to 1 September 2014:\n * const result = setYear(new Date(2014, 8, 1), 2013)\n * //=> Sun Sep 01 2013 00:00:00\n */\nexport function setYear(date, year, options) {\n const date_ = toDate(date, options?.in);\n\n // Check if date is Invalid Date because Date.prototype.setFullYear ignores the value of Invalid Date\n if (isNaN(+date_)) return constructFrom(options?.in || date, NaN);\n\n date_.setFullYear(year);\n return date_;\n}\n\n// Fallback for modularized imports:\nexport default setYear;\n"],"names":["setYear","date","year","options","date_","toDate","constructFrom"],"mappings":";;AA6BO,SAASA,EAAQC,GAAMC,GAAMC,GAAS;AAC3C,QAAMC,IAAQC,EAAOJ,GAAME,GAAS,EAAE;AAGtC,SAAI,MAAM,CAACC,CAAK,IAAUE,EAA6BL,GAAM,GAAG,KAEhEG,EAAM,YAAYF,CAAI,GACfE;AACT;","x_google_ignoreList":[0]}
|
package/dist/index191.js
CHANGED
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
if (t[0] !== "+")
|
|
6
|
-
throw new Error('"formatRFC3966()" expects "number" to be in E.164 format.');
|
|
7
|
-
return "tel:".concat(t).concat(e ? ";ext=" + e : "");
|
|
1
|
+
import { toDate as a } from "./index282.js";
|
|
2
|
+
function n(o, r) {
|
|
3
|
+
const t = a(o, r?.in);
|
|
4
|
+
return t.setHours(0, 0, 0, 0), t;
|
|
8
5
|
}
|
|
9
6
|
export {
|
|
10
|
-
n as
|
|
7
|
+
n as default,
|
|
8
|
+
n as startOfDay
|
|
11
9
|
};
|
|
12
10
|
//# sourceMappingURL=index191.js.map
|
package/dist/index191.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index191.js","sources":["../../../node_modules/
|
|
1
|
+
{"version":3,"file":"index191.js","sources":["../../../node_modules/date-fns/startOfDay.js"],"sourcesContent":["import { toDate } from \"./toDate.js\";\n\n/**\n * The {@link startOfDay} function options.\n */\n\n/**\n * @name startOfDay\n * @category Day Helpers\n * @summary Return the start of a day for the given date.\n *\n * @description\n * Return the start of a day for the given date.\n * The result will be in the local timezone.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.\n *\n * @param date - The original date\n * @param options - The options\n *\n * @returns The start of a day\n *\n * @example\n * // The start of a day for 2 September 2014 11:55:00:\n * const result = startOfDay(new Date(2014, 8, 2, 11, 55, 0))\n * //=> Tue Sep 02 2014 00:00:00\n */\nexport function startOfDay(date, options) {\n const _date = toDate(date, options?.in);\n _date.setHours(0, 0, 0, 0);\n return _date;\n}\n\n// Fallback for modularized imports:\nexport default startOfDay;\n"],"names":["startOfDay","date","options","_date","toDate"],"mappings":";AA4BO,SAASA,EAAWC,GAAMC,GAAS;AACxC,QAAMC,IAAQC,EAAOH,GAAMC,GAAS,EAAE;AACtC,SAAAC,EAAM,SAAS,GAAG,GAAG,GAAG,CAAC,GAClBA;AACT;","x_google_ignoreList":[0]}
|
package/dist/index192.js
CHANGED
|
@@ -1,120 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import s, { isViablePhoneNumberStart as v } from "./index193.js";
|
|
5
|
-
import w from "./index194.js";
|
|
6
|
-
import y from "./index190.js";
|
|
7
|
-
import { isPossibleNumber as S } from "./index180.js";
|
|
8
|
-
import x from "./index95.js";
|
|
9
|
-
import R from "./index195.js";
|
|
10
|
-
import E from "./index184.js";
|
|
11
|
-
import I from "./index196.js";
|
|
12
|
-
import A from "./index98.js";
|
|
13
|
-
import p from "./index197.js";
|
|
14
|
-
var H = 250, L = new RegExp("[" + P + d + "]"), U = new RegExp("[^" + d + "#]+$");
|
|
15
|
-
function Z(t, r, n) {
|
|
16
|
-
if (r = r || {}, n = new T(n), r.defaultCountry && !n.hasCountry(r.defaultCountry))
|
|
17
|
-
throw r.v2 ? new m("INVALID_COUNTRY") : new Error("Unknown country: ".concat(r.defaultCountry));
|
|
18
|
-
var e = G(t, r.v2, r.extract), l = e.number, c = e.ext, i = e.error;
|
|
19
|
-
if (!l) {
|
|
20
|
-
if (r.v2)
|
|
21
|
-
throw i === "TOO_SHORT" ? new m("TOO_SHORT") : new m("NOT_A_NUMBER");
|
|
22
|
-
return {};
|
|
23
|
-
}
|
|
24
|
-
var a = D(l, r.defaultCountry, r.defaultCallingCode, n), o = a.country, u = a.nationalNumber, N = a.countryCallingCode, _ = a.countryCallingCodeSource, f = a.carrierCode;
|
|
25
|
-
if (!n.hasSelectedNumberingPlan()) {
|
|
26
|
-
if (r.v2)
|
|
27
|
-
throw new m("INVALID_COUNTRY");
|
|
28
|
-
return {};
|
|
29
|
-
}
|
|
30
|
-
if (!u || u.length < g) {
|
|
31
|
-
if (r.v2)
|
|
32
|
-
throw new m("TOO_SHORT");
|
|
33
|
-
return {};
|
|
34
|
-
}
|
|
35
|
-
if (u.length > h) {
|
|
36
|
-
if (r.v2)
|
|
37
|
-
throw new m("TOO_LONG");
|
|
38
|
-
return {};
|
|
39
|
-
}
|
|
40
|
-
if (r.v2) {
|
|
41
|
-
var C = new x(N, u, n.metadata);
|
|
42
|
-
return o && (C.country = o), f && (C.carrierCode = f), c && (C.ext = c), C.__countryCallingCodeSource = _, C;
|
|
43
|
-
}
|
|
44
|
-
var b = (r.extended ? n.hasSelectedNumberingPlan() : o) ? R(u, n.nationalNumberPattern()) : !1;
|
|
45
|
-
return r.extended ? {
|
|
46
|
-
country: o,
|
|
47
|
-
countryCallingCode: N,
|
|
48
|
-
carrierCode: f,
|
|
49
|
-
valid: b,
|
|
50
|
-
possible: b ? !0 : !!(r.extended === !0 && n.possibleLengths() && S(u, o, n)),
|
|
51
|
-
phone: u,
|
|
52
|
-
ext: c
|
|
53
|
-
} : b ? M(o, u, c) : {};
|
|
54
|
-
}
|
|
55
|
-
function F(t, r, n) {
|
|
56
|
-
if (t) {
|
|
57
|
-
if (t.length > H) {
|
|
58
|
-
if (n)
|
|
59
|
-
throw new m("TOO_LONG");
|
|
60
|
-
return;
|
|
61
|
-
}
|
|
62
|
-
if (r === !1)
|
|
63
|
-
return t;
|
|
64
|
-
var e = t.search(L);
|
|
65
|
-
if (!(e < 0))
|
|
66
|
-
return t.slice(e).replace(U, "");
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
function G(t, r, n) {
|
|
70
|
-
var e = p(t, {
|
|
71
|
-
extractFormattedPhoneNumber: function(i) {
|
|
72
|
-
return F(i, n, r);
|
|
73
|
-
}
|
|
74
|
-
});
|
|
75
|
-
if (!e)
|
|
76
|
-
return {};
|
|
77
|
-
if (!s(e))
|
|
78
|
-
return v(e) ? {
|
|
79
|
-
error: "TOO_SHORT"
|
|
80
|
-
} : {};
|
|
81
|
-
var l = w(e);
|
|
82
|
-
return l.ext ? l : {
|
|
83
|
-
number: e
|
|
84
|
-
};
|
|
85
|
-
}
|
|
86
|
-
function M(t, r, n) {
|
|
87
|
-
var e = {
|
|
88
|
-
country: t,
|
|
89
|
-
phone: r
|
|
90
|
-
};
|
|
91
|
-
return n && (e.ext = n), e;
|
|
92
|
-
}
|
|
93
|
-
function D(t, r, n, e) {
|
|
94
|
-
var l = E(y(t), void 0, r, n, e.metadata), c = l.countryCallingCodeSource, i = l.countryCallingCode, a = l.number, o;
|
|
95
|
-
if (i)
|
|
96
|
-
e.selectNumberingPlan(i);
|
|
97
|
-
else if (a && (r || n))
|
|
98
|
-
e.selectNumberingPlan(r, n), r && (o = r), i = n || O(r, e.metadata);
|
|
99
|
-
else return {};
|
|
100
|
-
if (!a)
|
|
101
|
-
return {
|
|
102
|
-
countryCallingCodeSource: c,
|
|
103
|
-
countryCallingCode: i
|
|
104
|
-
};
|
|
105
|
-
var u = I(y(a), o, e), N = u.nationalNumber, _ = u.carrierCode, f = A(i, {
|
|
106
|
-
nationalNumber: N,
|
|
107
|
-
metadata: e
|
|
108
|
-
});
|
|
109
|
-
return f && (o = f, f === "001" || e.selectNumberingPlan(o)), {
|
|
110
|
-
country: o,
|
|
111
|
-
countryCallingCode: i,
|
|
112
|
-
countryCallingCodeSource: c,
|
|
113
|
-
nationalNumber: N,
|
|
114
|
-
carrierCode: _
|
|
115
|
-
};
|
|
1
|
+
import { startOfWeek as r } from "./index194.js";
|
|
2
|
+
function f(t, e) {
|
|
3
|
+
return r(t, { ...e, weekStartsOn: 1 });
|
|
116
4
|
}
|
|
117
5
|
export {
|
|
118
|
-
|
|
6
|
+
f as default,
|
|
7
|
+
f as startOfISOWeek
|
|
119
8
|
};
|
|
120
9
|
//# sourceMappingURL=index192.js.map
|
package/dist/index192.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index192.js","sources":["../../../node_modules/libphonenumber-js/es6/parse.js"],"sourcesContent":["// This is a port of Google Android `libphonenumber`'s\n// `phonenumberutil.js` of December 31th, 2018.\n//\n// https://github.com/googlei18n/libphonenumber/commits/master/javascript/i18n/phonenumbers/phonenumberutil.js\n\nimport { VALID_DIGITS, PLUS_CHARS, MIN_LENGTH_FOR_NSN, MAX_LENGTH_FOR_NSN } from './constants.js';\nimport ParseError from './ParseError.js';\nimport Metadata from './metadata.js';\nimport isViablePhoneNumber, { isViablePhoneNumberStart } from './helpers/isViablePhoneNumber.js';\nimport extractExtension from './helpers/extension/extractExtension.js';\nimport parseIncompletePhoneNumber from './parseIncompletePhoneNumber.js';\nimport getCountryCallingCode from './getCountryCallingCode.js';\nimport { isPossibleNumber } from './isPossible.js';\n// import { parseRFC3966 } from './helpers/RFC3966.js'\nimport PhoneNumber from './PhoneNumber.js';\nimport matchesEntirely from './helpers/matchesEntirely.js';\nimport extractCountryCallingCode from './helpers/extractCountryCallingCode.js';\nimport extractNationalNumber from './helpers/extractNationalNumber.js';\n// import stripIddPrefix from './helpers/stripIddPrefix.js'\nimport getCountryByCallingCode from './helpers/getCountryByCallingCode.js';\nimport extractFormattedPhoneNumberFromPossibleRfc3966NumberUri from './helpers/extractFormattedPhoneNumberFromPossibleRfc3966NumberUri.js';\n\n// We don't allow input strings for parsing to be longer than 250 chars.\n// This prevents malicious input from consuming CPU.\nvar MAX_INPUT_STRING_LENGTH = 250;\n\n// This consists of the plus symbol, digits, and arabic-indic digits.\nvar PHONE_NUMBER_START_PATTERN = new RegExp('[' + PLUS_CHARS + VALID_DIGITS + ']');\n\n// Regular expression of trailing characters that we want to remove.\n// A trailing `#` is sometimes used when writing phone numbers with extensions in US.\n// Example: \"+1 (645) 123 1234-910#\" number has extension \"910\".\nvar AFTER_PHONE_NUMBER_END_PATTERN = new RegExp('[^' + VALID_DIGITS + '#' + ']+$');\nvar USE_NON_GEOGRAPHIC_COUNTRY_CODE = false;\n\n// Examples:\n//\n// ```js\n// parse('8 (800) 555-35-35', 'RU')\n// parse('8 (800) 555-35-35', 'RU', metadata)\n// parse('8 (800) 555-35-35', { country: { default: 'RU' } })\n// parse('8 (800) 555-35-35', { country: { default: 'RU' } }, metadata)\n// parse('+7 800 555 35 35')\n// parse('+7 800 555 35 35', metadata)\n// ```\n//\n\n/**\r\n * Parses a phone number.\r\n *\r\n * parse('123456789', { defaultCountry: 'RU', v2: true }, metadata)\r\n * parse('123456789', { defaultCountry: 'RU' }, metadata)\r\n * parse('123456789', undefined, metadata)\r\n *\r\n * @param {string} input\r\n * @param {object} [options]\r\n * @param {object} metadata\r\n * @return {object|PhoneNumber?} If `options.v2: true` flag is passed, it returns a `PhoneNumber?` instance. Otherwise, returns an object of shape `{ phone: '...', country: '...' }` (or just `{}` if no phone number was parsed).\r\n */\nexport default function parse(text, options, metadata) {\n // If assigning the `{}` default value is moved to the arguments above,\n // code coverage would decrease for some weird reason.\n options = options || {};\n metadata = new Metadata(metadata);\n\n // Validate `defaultCountry`.\n if (options.defaultCountry && !metadata.hasCountry(options.defaultCountry)) {\n if (options.v2) {\n throw new ParseError('INVALID_COUNTRY');\n }\n throw new Error(\"Unknown country: \".concat(options.defaultCountry));\n }\n\n // Parse the phone number.\n var _parseInput = parseInput(text, options.v2, options.extract),\n formattedPhoneNumber = _parseInput.number,\n ext = _parseInput.ext,\n error = _parseInput.error;\n\n // If the phone number is not viable then return nothing.\n if (!formattedPhoneNumber) {\n if (options.v2) {\n if (error === 'TOO_SHORT') {\n throw new ParseError('TOO_SHORT');\n }\n throw new ParseError('NOT_A_NUMBER');\n }\n return {};\n }\n var _parsePhoneNumber = parsePhoneNumber(formattedPhoneNumber, options.defaultCountry, options.defaultCallingCode, metadata),\n country = _parsePhoneNumber.country,\n nationalNumber = _parsePhoneNumber.nationalNumber,\n countryCallingCode = _parsePhoneNumber.countryCallingCode,\n countryCallingCodeSource = _parsePhoneNumber.countryCallingCodeSource,\n carrierCode = _parsePhoneNumber.carrierCode;\n if (!metadata.hasSelectedNumberingPlan()) {\n if (options.v2) {\n throw new ParseError('INVALID_COUNTRY');\n }\n return {};\n }\n\n // Validate national (significant) number length.\n if (!nationalNumber || nationalNumber.length < MIN_LENGTH_FOR_NSN) {\n // Won't throw here because the regexp already demands length > 1.\n /* istanbul ignore if */\n if (options.v2) {\n throw new ParseError('TOO_SHORT');\n }\n // Google's demo just throws an error in this case.\n return {};\n }\n\n // Validate national (significant) number length.\n //\n // A sidenote:\n //\n // They say that sometimes national (significant) numbers\n // can be longer than `MAX_LENGTH_FOR_NSN` (e.g. in Germany).\n // https://github.com/googlei18n/libphonenumber/blob/7e1748645552da39c4e1ba731e47969d97bdb539/resources/phonenumber.proto#L36\n // Such numbers will just be discarded.\n //\n if (nationalNumber.length > MAX_LENGTH_FOR_NSN) {\n if (options.v2) {\n throw new ParseError('TOO_LONG');\n }\n // Google's demo just throws an error in this case.\n return {};\n }\n if (options.v2) {\n var phoneNumber = new PhoneNumber(countryCallingCode, nationalNumber, metadata.metadata);\n if (country) {\n phoneNumber.country = country;\n }\n if (carrierCode) {\n phoneNumber.carrierCode = carrierCode;\n }\n if (ext) {\n phoneNumber.ext = ext;\n }\n phoneNumber.__countryCallingCodeSource = countryCallingCodeSource;\n return phoneNumber;\n }\n\n // Check if national phone number pattern matches the number.\n // National number pattern is different for each country,\n // even for those ones which are part of the \"NANPA\" group.\n var valid = (options.extended ? metadata.hasSelectedNumberingPlan() : country) ? matchesEntirely(nationalNumber, metadata.nationalNumberPattern()) : false;\n if (!options.extended) {\n return valid ? result(country, nationalNumber, ext) : {};\n }\n\n // isInternational: countryCallingCode !== undefined\n\n return {\n country: country,\n countryCallingCode: countryCallingCode,\n carrierCode: carrierCode,\n valid: valid,\n possible: valid ? true : options.extended === true && metadata.possibleLengths() && isPossibleNumber(nationalNumber, country, metadata) ? true : false,\n phone: nationalNumber,\n ext: ext\n };\n}\n\n/**\r\n * Extracts a formatted phone number from text.\r\n * Doesn't guarantee that the extracted phone number\r\n * is a valid phone number (for example, doesn't validate its length).\r\n * @param {string} text\r\n * @param {boolean} [extract] — If `false`, then will parse the entire `text` as a phone number.\r\n * @param {boolean} [throwOnError] — By default, it won't throw if the text is too long.\r\n * @return {string}\r\n * @example\r\n * // Returns \"(213) 373-4253\".\r\n * extractFormattedPhoneNumber(\"Call (213) 373-4253 for assistance.\")\r\n */\nfunction _extractFormattedPhoneNumber(text, extract, throwOnError) {\n if (!text) {\n return;\n }\n if (text.length > MAX_INPUT_STRING_LENGTH) {\n if (throwOnError) {\n throw new ParseError('TOO_LONG');\n }\n return;\n }\n if (extract === false) {\n return text;\n }\n // Attempt to extract a possible number from the string passed in\n var startsAt = text.search(PHONE_NUMBER_START_PATTERN);\n if (startsAt < 0) {\n return;\n }\n return text\n // Trim everything to the left of the phone number\n .slice(startsAt)\n // Remove trailing non-numerical characters\n .replace(AFTER_PHONE_NUMBER_END_PATTERN, '');\n}\n\n/**\r\n * @param {string} text - Input.\r\n * @param {boolean} v2 - Legacy API functions don't pass `v2: true` flag.\r\n * @param {boolean} [extract] - Whether to extract a phone number from `text`, or attempt to parse the entire text as a phone number.\r\n * @return {object} `{ ?number, ?ext }`.\r\n */\nfunction parseInput(text, v2, extract) {\n // // Parse RFC 3966 phone number URI.\n // if (text && text.indexOf('tel:') === 0) {\n // \treturn parseRFC3966(text)\n // }\n // let number = extractFormattedPhoneNumber(text, extract, v2)\n var number = extractFormattedPhoneNumberFromPossibleRfc3966NumberUri(text, {\n extractFormattedPhoneNumber: function extractFormattedPhoneNumber(text) {\n return _extractFormattedPhoneNumber(text, extract, v2);\n }\n });\n // If the phone number is not viable, then abort.\n if (!number) {\n return {};\n }\n if (!isViablePhoneNumber(number)) {\n if (isViablePhoneNumberStart(number)) {\n return {\n error: 'TOO_SHORT'\n };\n }\n return {};\n }\n // Attempt to parse extension first, since it doesn't require region-specific\n // data and we want to have the non-normalised number here.\n var withExtensionStripped = extractExtension(number);\n if (withExtensionStripped.ext) {\n return withExtensionStripped;\n }\n return {\n number: number\n };\n}\n\n/**\r\n * Creates `parse()` result object.\r\n */\nfunction result(country, nationalNumber, ext) {\n var result = {\n country: country,\n phone: nationalNumber\n };\n if (ext) {\n result.ext = ext;\n }\n return result;\n}\n\n/**\r\n * Parses a viable phone number.\r\n * @param {string} formattedPhoneNumber — Example: \"(213) 373-4253\".\r\n * @param {string} [defaultCountry]\r\n * @param {string} [defaultCallingCode]\r\n * @param {Metadata} metadata\r\n * @return {object} Returns `{ country: string?, countryCallingCode: string?, nationalNumber: string? }`.\r\n */\nfunction parsePhoneNumber(formattedPhoneNumber, defaultCountry, defaultCallingCode, metadata) {\n // Extract calling code from phone number.\n var _extractCountryCallin = extractCountryCallingCode(parseIncompletePhoneNumber(formattedPhoneNumber), undefined, defaultCountry, defaultCallingCode, metadata.metadata),\n countryCallingCodeSource = _extractCountryCallin.countryCallingCodeSource,\n countryCallingCode = _extractCountryCallin.countryCallingCode,\n number = _extractCountryCallin.number;\n\n // The exact country of the phone number\n var country;\n\n // If `formattedPhoneNumber` is passed in \"international\" format,\n // choose a country by `countryCallingCode`.\n if (countryCallingCode) {\n metadata.selectNumberingPlan(countryCallingCode);\n }\n // Else, if `formattedPhoneNumber` is passed in \"national\" format,\n // then `number` is defined and `countryCallingCode` is `undefined`.\n else if (number && (defaultCountry || defaultCallingCode)) {\n metadata.selectNumberingPlan(defaultCountry, defaultCallingCode);\n if (defaultCountry) {\n country = defaultCountry;\n } else {\n /* istanbul ignore if */\n if (USE_NON_GEOGRAPHIC_COUNTRY_CODE) {\n if (metadata.isNonGeographicCallingCode(defaultCallingCode)) {\n country = '001';\n }\n }\n }\n countryCallingCode = defaultCallingCode || getCountryCallingCode(defaultCountry, metadata.metadata);\n } else return {};\n if (!number) {\n return {\n countryCallingCodeSource: countryCallingCodeSource,\n countryCallingCode: countryCallingCode\n };\n }\n var _extractNationalNumbe = extractNationalNumber(parseIncompletePhoneNumber(number), country, metadata),\n nationalNumber = _extractNationalNumbe.nationalNumber,\n carrierCode = _extractNationalNumbe.carrierCode;\n\n // Sometimes there are several countries\n // corresponding to the same country phone code\n // (e.g. NANPA countries all having `1` country phone code).\n // Therefore, to reliably determine the exact country,\n // national (significant) number should have been parsed first.\n //\n // When `metadata.json` is generated, all \"ambiguous\" country phone codes\n // get their countries populated with the full set of\n // \"phone number type\" regular expressions.\n //\n var exactCountry = getCountryByCallingCode(countryCallingCode, {\n nationalNumber: nationalNumber,\n metadata: metadata\n });\n if (exactCountry) {\n country = exactCountry;\n /* istanbul ignore if */\n if (exactCountry === '001') {\n // Can't happen with `USE_NON_GEOGRAPHIC_COUNTRY_CODE` being `false`.\n // If `USE_NON_GEOGRAPHIC_COUNTRY_CODE` is set to `true` for some reason,\n // then remove the \"istanbul ignore if\".\n } else {\n metadata.selectNumberingPlan(country);\n }\n }\n return {\n country: country,\n countryCallingCode: countryCallingCode,\n countryCallingCodeSource: countryCallingCodeSource,\n nationalNumber: nationalNumber,\n carrierCode: carrierCode\n };\n}\n//# sourceMappingURL=parse.js.map"],"names":["MAX_INPUT_STRING_LENGTH","PHONE_NUMBER_START_PATTERN","PLUS_CHARS","VALID_DIGITS","AFTER_PHONE_NUMBER_END_PATTERN","parse","text","options","metadata","Metadata","ParseError","_parseInput","parseInput","formattedPhoneNumber","ext","error","_parsePhoneNumber","parsePhoneNumber","country","nationalNumber","countryCallingCode","countryCallingCodeSource","carrierCode","MIN_LENGTH_FOR_NSN","MAX_LENGTH_FOR_NSN","phoneNumber","PhoneNumber","valid","matchesEntirely","isPossibleNumber","result","_extractFormattedPhoneNumber","extract","throwOnError","startsAt","v2","number","extractFormattedPhoneNumberFromPossibleRfc3966NumberUri","isViablePhoneNumber","isViablePhoneNumberStart","withExtensionStripped","extractExtension","defaultCountry","defaultCallingCode","_extractCountryCallin","extractCountryCallingCode","parseIncompletePhoneNumber","getCountryCallingCode","_extractNationalNumbe","extractNationalNumber","exactCountry","getCountryByCallingCode"],"mappings":"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","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"index192.js","sources":["../../../node_modules/date-fns/startOfISOWeek.js"],"sourcesContent":["import { startOfWeek } from \"./startOfWeek.js\";\n\n/**\n * The {@link startOfISOWeek} function options.\n */\n\n/**\n * @name startOfISOWeek\n * @category ISO Week Helpers\n * @summary Return the start of an ISO week for the given date.\n *\n * @description\n * Return the start of an ISO week for the given date.\n * The result will be in the local timezone.\n *\n * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.\n *\n * @param date - The original date\n * @param options - An object with options\n *\n * @returns The start of an ISO week\n *\n * @example\n * // The start of an ISO week for 2 September 2014 11:55:00:\n * const result = startOfISOWeek(new Date(2014, 8, 2, 11, 55, 0))\n * //=> Mon Sep 01 2014 00:00:00\n */\nexport function startOfISOWeek(date, options) {\n return startOfWeek(date, { ...options, weekStartsOn: 1 });\n}\n\n// Fallback for modularized imports:\nexport default startOfISOWeek;\n"],"names":["startOfISOWeek","date","options","startOfWeek"],"mappings":";AA8BO,SAASA,EAAeC,GAAMC,GAAS;AAC5C,SAAOC,EAAYF,GAAM,EAAE,GAAGC,GAAS,cAAc,GAAG;AAC1D;","x_google_ignoreList":[0]}
|
package/dist/index193.js
CHANGED
|
@@ -1,21 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
// Either a short two-digit-only phone number
|
|
6
|
-
"^" + n + "$|^" + R + "$",
|
|
7
|
-
"i"
|
|
8
|
-
);
|
|
9
|
-
function A(N) {
|
|
10
|
-
return N.length >= e && T.test(N);
|
|
11
|
-
}
|
|
12
|
-
function o(N) {
|
|
13
|
-
return P.test(N);
|
|
1
|
+
import { toDate as r } from "./index282.js";
|
|
2
|
+
function n(e, o) {
|
|
3
|
+
const t = r(e, o?.in);
|
|
4
|
+
return t.setDate(1), t.setHours(0, 0, 0, 0), t;
|
|
14
5
|
}
|
|
15
6
|
export {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
A as default,
|
|
19
|
-
o as isViablePhoneNumberStart
|
|
7
|
+
n as default,
|
|
8
|
+
n as startOfMonth
|
|
20
9
|
};
|
|
21
10
|
//# sourceMappingURL=index193.js.map
|
package/dist/index193.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index193.js","sources":["../../../node_modules/
|
|
1
|
+
{"version":3,"file":"index193.js","sources":["../../../node_modules/date-fns/startOfMonth.js"],"sourcesContent":["import { toDate } from \"./toDate.js\";\n\n/**\n * The {@link startOfMonth} function options.\n */\n\n/**\n * @name startOfMonth\n * @category Month Helpers\n * @summary Return the start of a month for the given date.\n *\n * @description\n * Return the start of a month for the given date. The result will be in the local timezone.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments.\n * Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed,\n * or inferred from the arguments.\n *\n * @param date - The original date\n * @param options - An object with options\n *\n * @returns The start of a month\n *\n * @example\n * // The start of a month for 2 September 2014 11:55:00:\n * const result = startOfMonth(new Date(2014, 8, 2, 11, 55, 0))\n * //=> Mon Sep 01 2014 00:00:00\n */\nexport function startOfMonth(date, options) {\n const _date = toDate(date, options?.in);\n _date.setDate(1);\n _date.setHours(0, 0, 0, 0);\n return _date;\n}\n\n// Fallback for modularized imports:\nexport default startOfMonth;\n"],"names":["startOfMonth","date","options","_date","toDate"],"mappings":";AA6BO,SAASA,EAAaC,GAAMC,GAAS;AAC1C,QAAMC,IAAQC,EAAOH,GAAMC,GAAS,EAAE;AACtC,SAAAC,EAAM,QAAQ,CAAC,GACfA,EAAM,SAAS,GAAG,GAAG,GAAG,CAAC,GAClBA;AACT;","x_google_ignoreList":[0]}
|
package/dist/index194.js
CHANGED
|
@@ -1,19 +1,11 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
function
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
return {};
|
|
7
|
-
for (var i = e.slice(0, a), r = e.match(n), t = 1; t < r.length; ) {
|
|
8
|
-
if (r[t])
|
|
9
|
-
return {
|
|
10
|
-
number: i,
|
|
11
|
-
ext: r[t]
|
|
12
|
-
};
|
|
13
|
-
t++;
|
|
14
|
-
}
|
|
1
|
+
import { getDefaultOptions as f } from "./index287.js";
|
|
2
|
+
import { toDate as c } from "./index282.js";
|
|
3
|
+
function l(n, e) {
|
|
4
|
+
const a = f(), o = e?.weekStartsOn ?? e?.locale?.options?.weekStartsOn ?? a.weekStartsOn ?? a.locale?.options?.weekStartsOn ?? 0, t = c(n, e?.in), s = t.getDay(), r = (s < o ? 7 : 0) + s - o;
|
|
5
|
+
return t.setDate(t.getDate() - r), t.setHours(0, 0, 0, 0), t;
|
|
15
6
|
}
|
|
16
7
|
export {
|
|
17
|
-
|
|
8
|
+
l as default,
|
|
9
|
+
l as startOfWeek
|
|
18
10
|
};
|
|
19
11
|
//# sourceMappingURL=index194.js.map
|
package/dist/index194.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index194.js","sources":["../../../node_modules/
|
|
1
|
+
{"version":3,"file":"index194.js","sources":["../../../node_modules/date-fns/startOfWeek.js"],"sourcesContent":["import { getDefaultOptions } from \"./_lib/defaultOptions.js\";\nimport { toDate } from \"./toDate.js\";\n\n/**\n * The {@link startOfWeek} function options.\n */\n\n/**\n * @name startOfWeek\n * @category Week Helpers\n * @summary Return the start of a week for the given date.\n *\n * @description\n * Return the start of a week for the given date.\n * The result will be in the local timezone.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.\n *\n * @param date - The original date\n * @param options - An object with options\n *\n * @returns The start of a week\n *\n * @example\n * // The start of a week for 2 September 2014 11:55:00:\n * const result = startOfWeek(new Date(2014, 8, 2, 11, 55, 0))\n * //=> Sun Aug 31 2014 00:00:00\n *\n * @example\n * // If the week starts on Monday, the start of the week for 2 September 2014 11:55:00:\n * const result = startOfWeek(new Date(2014, 8, 2, 11, 55, 0), { weekStartsOn: 1 })\n * //=> Mon Sep 01 2014 00:00:00\n */\nexport function startOfWeek(date, options) {\n const defaultOptions = getDefaultOptions();\n const weekStartsOn =\n options?.weekStartsOn ??\n options?.locale?.options?.weekStartsOn ??\n defaultOptions.weekStartsOn ??\n defaultOptions.locale?.options?.weekStartsOn ??\n 0;\n\n const _date = toDate(date, options?.in);\n const day = _date.getDay();\n const diff = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn;\n\n _date.setDate(_date.getDate() - diff);\n _date.setHours(0, 0, 0, 0);\n return _date;\n}\n\n// Fallback for modularized imports:\nexport default startOfWeek;\n"],"names":["startOfWeek","date","options","defaultOptions","getDefaultOptions","weekStartsOn","_date","toDate","day","diff"],"mappings":";;AAkCO,SAASA,EAAYC,GAAMC,GAAS;AACzC,QAAMC,IAAiBC,EAAiB,GAClCC,IACJH,GAAS,gBACTA,GAAS,QAAQ,SAAS,gBAC1BC,EAAe,gBACfA,EAAe,QAAQ,SAAS,gBAChC,GAEIG,IAAQC,EAAON,GAAMC,GAAS,EAAE,GAChCM,IAAMF,EAAM,OAAM,GAClBG,KAAQD,IAAMH,IAAe,IAAI,KAAKG,IAAMH;AAElD,SAAAC,EAAM,QAAQA,EAAM,QAAO,IAAKG,CAAI,GACpCH,EAAM,SAAS,GAAG,GAAG,GAAG,CAAC,GAClBA;AACT;","x_google_ignoreList":[0]}
|
package/dist/index195.js
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { toDate as a } from "./index282.js";
|
|
2
|
+
function s(e, r) {
|
|
3
|
+
const t = a(e, r?.in);
|
|
4
|
+
return t.setFullYear(t.getFullYear(), 0, 1), t.setHours(0, 0, 0, 0), t;
|
|
3
5
|
}
|
|
4
6
|
export {
|
|
5
|
-
|
|
7
|
+
s as default,
|
|
8
|
+
s as startOfYear
|
|
6
9
|
};
|
|
7
10
|
//# sourceMappingURL=index195.js.map
|
package/dist/index195.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index195.js","sources":["../../../node_modules/
|
|
1
|
+
{"version":3,"file":"index195.js","sources":["../../../node_modules/date-fns/startOfYear.js"],"sourcesContent":["import { toDate } from \"./toDate.js\";\n\n/**\n * The {@link startOfYear} function options.\n */\n\n/**\n * @name startOfYear\n * @category Year Helpers\n * @summary Return the start of a year for the given date.\n *\n * @description\n * Return the start of a year for the given date.\n * The result will be in the local timezone.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.\n *\n * @param date - The original date\n * @param options - The options\n *\n * @returns The start of a year\n *\n * @example\n * // The start of a year for 2 September 2014 11:55:00:\n * const result = startOfYear(new Date(2014, 8, 2, 11, 55, 00))\n * //=> Wed Jan 01 2014 00:00:00\n */\nexport function startOfYear(date, options) {\n const date_ = toDate(date, options?.in);\n date_.setFullYear(date_.getFullYear(), 0, 1);\n date_.setHours(0, 0, 0, 0);\n return date_;\n}\n\n// Fallback for modularized imports:\nexport default startOfYear;\n"],"names":["startOfYear","date","options","date_","toDate"],"mappings":";AA4BO,SAASA,EAAYC,GAAMC,GAAS;AACzC,QAAMC,IAAQC,EAAOH,GAAMC,GAAS,EAAE;AACtC,SAAAC,EAAM,YAAYA,EAAM,YAAW,GAAI,GAAG,CAAC,GAC3CA,EAAM,SAAS,GAAG,GAAG,GAAG,CAAC,GAClBA;AACT;","x_google_ignoreList":[0]}
|
package/dist/index196.js
CHANGED
|
@@ -1,40 +1,59 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
1
|
+
import { getDefaultOptions as u } from "./index287.js";
|
|
2
|
+
import { formatters as f } from "./index288.js";
|
|
3
|
+
import { longFormatters as d } from "./index289.js";
|
|
4
|
+
import { isProtectedWeekYearToken as g, isProtectedDayOfYearToken as h, warnOrThrowProtectedError as w } from "./index290.js";
|
|
5
|
+
import { isValid as D } from "./index291.js";
|
|
6
|
+
import { toDate as T } from "./index282.js";
|
|
7
|
+
import { enUS as O } from "./index246.js";
|
|
8
|
+
const E = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, v = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, C = /^'([^]*?)'?$/, S = /''/g, R = /[a-zA-Z]/;
|
|
9
|
+
function L(o, a, r) {
|
|
10
|
+
const n = u(), i = r?.locale ?? n.locale ?? O, m = r?.firstWeekContainsDate ?? r?.locale?.options?.firstWeekContainsDate ?? n.firstWeekContainsDate ?? n.locale?.options?.firstWeekContainsDate ?? 1, p = r?.weekStartsOn ?? r?.locale?.options?.weekStartsOn ?? n.weekStartsOn ?? n.locale?.options?.weekStartsOn ?? 0, s = T(o, r?.in);
|
|
11
|
+
if (!D(s))
|
|
12
|
+
throw new RangeError("Invalid time value");
|
|
13
|
+
let c = a.match(v).map((t) => {
|
|
14
|
+
const e = t[0];
|
|
15
|
+
if (e === "p" || e === "P") {
|
|
16
|
+
const l = d[e];
|
|
17
|
+
return l(t, i.formatLong);
|
|
18
|
+
}
|
|
19
|
+
return t;
|
|
20
|
+
}).join("").match(E).map((t) => {
|
|
21
|
+
if (t === "''")
|
|
22
|
+
return { isToken: !1, value: "'" };
|
|
23
|
+
const e = t[0];
|
|
24
|
+
if (e === "'")
|
|
25
|
+
return { isToken: !1, value: W(t) };
|
|
26
|
+
if (f[e])
|
|
27
|
+
return { isToken: !0, value: t };
|
|
28
|
+
if (e.match(R))
|
|
29
|
+
throw new RangeError(
|
|
30
|
+
"Format string contains an unescaped latin alphabet character `" + e + "`"
|
|
31
|
+
);
|
|
32
|
+
return { isToken: !1, value: t };
|
|
33
|
+
});
|
|
34
|
+
i.localize.preprocessor && (c = i.localize.preprocessor(s, c));
|
|
35
|
+
const k = {
|
|
36
|
+
firstWeekContainsDate: m,
|
|
37
|
+
weekStartsOn: p,
|
|
38
|
+
locale: i
|
|
23
39
|
};
|
|
40
|
+
return c.map((t) => {
|
|
41
|
+
if (!t.isToken) return t.value;
|
|
42
|
+
const e = t.value;
|
|
43
|
+
(!r?.useAdditionalWeekYearTokens && g(e) || !r?.useAdditionalDayOfYearTokens && h(e)) && w(e, a, String(o));
|
|
44
|
+
const l = f[e[0]];
|
|
45
|
+
return l(s, e, i.localize, k);
|
|
46
|
+
}).join("");
|
|
24
47
|
}
|
|
25
|
-
function
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
function f(e, n, r) {
|
|
29
|
-
switch (u(e, n, r)) {
|
|
30
|
-
case "TOO_SHORT":
|
|
31
|
-
case "INVALID_LENGTH":
|
|
32
|
-
return !1;
|
|
33
|
-
default:
|
|
34
|
-
return !0;
|
|
35
|
-
}
|
|
48
|
+
function W(o) {
|
|
49
|
+
const a = o.match(C);
|
|
50
|
+
return a ? a[1].replace(S, "'") : o;
|
|
36
51
|
}
|
|
37
52
|
export {
|
|
38
|
-
|
|
53
|
+
L as default,
|
|
54
|
+
L as format,
|
|
55
|
+
L as formatDate,
|
|
56
|
+
f as formatters,
|
|
57
|
+
d as longFormatters
|
|
39
58
|
};
|
|
40
59
|
//# sourceMappingURL=index196.js.map
|